You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
64 KiB
JavaScript

9 months ago
(()=>{var e={"./dist/compiled/@edge-runtime/cookies/index.js":e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={};function i(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean);return`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}; ${r.join("; ")}`}function a(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,o]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=o?o:"true"))}catch{}}return t}function l(e){var t,r;if(!e)return;let[[n,o],...s]=a(e),{domain:i,expires:l,httponly:c,maxage:p,path:h,samesite:f,secure:m,priority:g}=Object.fromEntries(s.map(([e,t])=>[e.toLowerCase(),t])),v={name:n,value:decodeURIComponent(o),domain:i,...l&&{expires:new Date(l)},...c&&{httpOnly:!0},..."string"==typeof p&&{maxAge:Number(p)},path:h,...f&&{sameSite:d.includes(t=(t=f).toLowerCase())?t:void 0},...m&&{secure:!0},...g&&{priority:u.includes(r=(r=g).toLowerCase())?r:void 0}};return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}(v)}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(s,{RequestCookies:()=>c,ResponseCookies:()=>p,parseCookie:()=>a,parseSetCookie:()=>l,stringifyCookie:()=>i}),e.exports=((e,s,i,a)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let i of n(s))o.call(e,i)||void 0===i||t(e,i,{get:()=>s[i],enumerable:!(a=r(s,i))||a.enumerable});return e})(t({},"__esModule",{value:!0}),s);var d=["strict","lax","none"],u=["low","medium","high"],c=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t){let e=a(t);for(let[t,r]of e)this._parsed.set(t,{name:t,value:r})}}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>i(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>i(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},p=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let o=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[],s=Array.isArray(o)?o:function(e){if(!e)return[];var t,r,n,o,s,i=[],a=0;function l(){for(;a<e.length&&/\s/.test(e.charAt(a));)a+=1;return a<e.length}for(;a<e.length;){for(t=a,s=!1;l();)if(","===(r=e.charAt(a))){for(n=a,a+=1,l(),o=a;a<e.length&&"="!==(r=e.charAt(a))&&";"!==r&&","!==r;)a+=1;a<e.length&&"="===e.charAt(a)?(s=!0,a=o,i.push(e.substring(t,n)),t=a):a=n+1}else a+=1;(!s||a>=e.length)&&i.push(e.substring(t,e.length))}return i}(o);for(let e of s){let t=l(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/t.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var o={},s=t.split(n),i=(r||{}).decode||e,a=0;a<s.length;a++){var l=s[a],d=l.indexOf("=");if(!(d<0)){var u=l.substr(0,d).trim(),c=l.substr(++d,l.length).trim();'"'==c[0]&&(c=c.slice(1,-1)),void 0==o[u]&&(o[u]=function(e,t){try{return t(e)}catch(t){return e}}(c,i))}}return o},t.serialize=function(e,t,n){var s=n||{},i=s.encode||r;if("function"!=typeof i)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var a=i(t);if(a&&!o.test(a))throw TypeError("argument val is invalid");var l=e+"="+a;if(null!=s.maxAge){var d=s.maxAge-0;if(isNaN(d)||!isFinite(d))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(d)}if(s.domain){if(!o.test(s.domain))throw TypeError("option domain is invalid");l+="; Domain="+s.domain}if(s.path){if(!o.test(s.path))throw TypeError("option path is invalid");l+="; Path="+s.path}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw TypeError("option expires is invalid");l+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(l+="; HttpOnly"),s.secure&&(l+="; Secure"),s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l};var e=decodeURIComponent,r=encodeURIComponent,n=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/})(),e.exports=t})()},"./dist/compiled/react-is/cjs/react-is.production.min.js":(e,t)=>{"use strict";/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case s:case a:case i:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case c:case m:case f:case l:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=d,t.ContextProvider=l,t.Element=n,t.ForwardRef=c,t.Fragment=s,t.Lazy=m,t.Memo=f,t.Portal=o,t.Profiler=a,t.StrictMode=i,t.Suspense=p,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return v(e)===d},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===c},t.isFragment=function(e){return v(e)===s},t.isLazy=function(e){return v(e)===m},t.isMemo=function(e){return v(e)===f},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===a},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===p},t.isSuspenseList=function(e){return v(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===a||e===i||e===p||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===d||e.$$typeof===c||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=v},"./dist/compiled/react-is/index.js":(e,t,r)=>{"use strict";e.exports=r("./dist/compiled/react-is/cjs/react-is.production.min.js")},"./dist/compiled/strip-ansi/index.js":e=>{(()=>{"use strict";var t={511:e=>{e.exports=({onlyFirst:e=!1}={})=>RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",e?void 0:"g")},532:(e,t,r)=>{let n=r(511);e.exports=e=>"string"==typeof e?e.replace(n(),""):e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var s=r[e]={exports:{}},i=!0;try{t[e](s,s.exports,n),i=!1}finally{i&&delete r[e]}return s.exports}n.ab=__dirname+"/";var o=n(532);e.exports=o})()},"./dist/esm/build/output/log.js":(e,t,r)=>{"use strict";var n;r.d(t,{ZK:()=>v});let{env:o,stdout:s}=(null==(n=globalThis)?void 0:n.process)??{},i=o&&!o.NO_COLOR&&(o.FORCE_COLOR||(null==s?void 0:s.isTTY)&&!o.CI&&"dumb"!==o.TERM),a=(e,t,r,n)=>{let o=e.substring(0,n)+r,s=e.substring(n+t.length),i=s.indexOf(t);return~i?o+a(s,t,r,i):o+s},l=(e,t,r=e)=>i?n=>{let o=""+n,s=o.indexOf(t,e.length);return~s?e+a(o,t,r,s)+t:e+o+t}:String,d=l("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m");l("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),l("\x1b[3m","\x1b[23m"),l("\x1b[4m","\x1b[24m"),l("\x1b[7m","\x1b[27m"),l("\x1b[8m","\x1b[28m"),l("\x1b[9m","\x1b[29m"),l("\x1b[30m","\x1b[39m");let u=l("\x1b[31m","\x1b[39m"),c=l("\x1b[32m","\x1b[39m"),p=l("\x1b[33m","\x1b[39m");l("\x1b[34m","\x1b[39m");let h=l("\x1b[35m","\x1b[39m");l("\x1b[38;2;173;127;168m","\x1b[39m"),l("\x1b[36m","\x1b[39m");let f=l("\x1b[37m","\x1b[39m");l("\x1b[90m","\x1b[39m"),l("\x1b[40m","\x1b[49m"),l("\x1b[41m","\x1b[49m"),l("\x1b[42m","\x1b[49m"),l("\x1b[43m","\x1b[49m"),l("\x1b[44m","\x1b[49m"),l("\x1b[45m","\x1b[49m"),l("\x1b[46m","\x1b[49m"),l("\x1b[47m","\x1b[49m");let m={wait:f(d("")),error:u(d("")),warn:p(d("")),ready:"",info:f(d(" ")),event:c(d("")),trace:h(d("\xbb"))},g={log:"log",warn:"warn",error:"error"};function v(...e){!function(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in g?g[e]:"log",n=m[e];0===t.length?console[r](""):console[r](" "+n,...t)}("warn",...e)}},"./dist/esm/lib/constants.js":(e,t,r)=>{"use strict";r.d(t,{BR:(
Reason: ${n}`:`Error serializing props returned from \`${t}\` in "${e}".
Reason: ${n}`)}}function z(e,t,r){if(!D(r))throw new H(e,t,"",`Props must be returned as a plain object from ${t}: \`{ props: { ... } }\` (received: \`${q(r)}\`).`);function n(r,n,o){if(r.has(n))throw new H(e,t,o,`Circular references cannot be expressed in JSON (references: \`${r.get(n)||"(self)"}\`).`);r.set(n,o)}return function r(o,s,i){let a=typeof s;if(null===s||"boolean"===a||"number"===a||"string"===a)return!0;if("undefined"===a)throw new H(e,t,i,"`undefined` cannot be serialized as JSON. Please use `null` or omit this value.");if(D(s)){if(n(o,s,i),Object.entries(s).every(([e,t])=>{let n=F.test(e)?`${i}.${e}`:`${i}[${JSON.stringify(e)}]`,s=new Map(o);return r(s,e,n)&&r(s,t,n)}))return!0;throw new H(e,t,i,"invariant: Unknown error encountered in Object.")}if(Array.isArray(s)){if(n(o,s,i),s.every((e,t)=>{let n=new Map(o);return r(n,e,`${i}[${t}]`)}))return!0;throw new H(e,t,i,"invariant: Unknown error encountered in Array.")}throw new H(e,t,i,"`"+a+"`"+("object"===a?` ("${Object.prototype.toString.call(s)}")`:"")+" cannot be serialized as JSON. Please only return JSON serializable data types.")}(new Map,r,"")}let B=L().createContext({}),U=L().createContext({}),W=L().createContext(null),J=[],G=[];function V(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class Q{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function Z(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function o(){if(!n){let t=new Q(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}function s(e,t){!function(){o();let e=L().useContext(W);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let s=L().useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return L().useImperativeHandle(t,()=>({retry:n.retry}),[]),L().useMemo(()=>{var t;return s.loading||s.error?L().createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:n.retry}):s.loaded?L().createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return J.push(o),s.preload=()=>o(),s.displayName="LoadableComponent",L().forwardRef(s)}(V,e)}function Y(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return Y(e,t)})}Z.preloadAll=()=>new Promise((e,t)=>{Y(J).then(e,t)}),Z.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>t();Y(G,e).then(r,r)}));let X=Z,K=L().createContext(null);function ee(e){return e.startsWith("/")?e:"/"+e}let et=["(..)(..)","(.)","(..)","(...)"],er=/\/\[[^/]+?\](?=\/|$)/;function en(e){return void 0!==e.split("/").find(e=>et.find(t=>e.startsWith(t)))&&(e=function(e){let t,r,n;for(let o of e.split("/"))if(r=et.find(e=>o.startsWith(e))){[t,n]=e.split(r,2);break}if(!t||!r||!n)throw Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(t=ee(t.split("/").red
return { props: { title: 'My Title', content: '...' } }
Keys that need to be moved: ${t.join(", ")}.
Read more: https://nextjs.org/docs/messages/${r}`};function e9(e,t,r){let{destination:n,permanent:o,statusCode:s,basePath:i}=e,a=[],l=void 0!==s,d=void 0!==o;d&&l?a.push("`permanent` and `statusCode` can not both be provided"):d&&"boolean"!=typeof o?a.push("`permanent` must be `true` or `false`"):l&&!eh.has(s)&&a.push(`\`statusCode\` must undefined or one of ${[...eh].join(", ")}`);let u=typeof n;"string"!==u&&a.push(`\`destination\` should be string but received ${u}`);let c=typeof i;if("undefined"!==c&&"boolean"!==c&&a.push(`\`basePath\` should be undefined or a false, received ${c}`),a.length>0)throw Error(`Invalid redirect object returned from ${r} for ${t.url}
`+a.join(" and ")+"\nSee more info here: https://nextjs.org/docs/messages/invalid-redirect-gssp")}async function e6(n,s,i,a,l,d){var u,h;let f,m,g;(0,$.gk)({req:n},"cookies",(h=n.headers,function(){let{cookie:e}=h;if(!e)return{};let{parse:t}=r("./dist/compiled/cookie/index.js");return t(Array.isArray(e)?e.join("; "):e)}));let v={};if(v.assetQueryString=l.dev&&l.assetQueryString||"",l.dev&&!v.assetQueryString){let e=(n.headers["user-agent"]||"").toLowerCase();e.includes("safari")&&!e.includes("chrome")&&(v.assetQueryString=`?ts=${Date.now()}`)}l.deploymentId&&(v.assetQueryString+=`${v.assetQueryString?"&":"?"}dpl=${l.deploymentId}`),a=Object.assign({},a);let{err:y,dev:x=!1,ampPath:b="",pageConfig:w={},buildManifest:S,reactLoadableManifest:P,ErrorDebug:_,getStaticProps:j,getStaticPaths:C,getServerSideProps:R,isDataReq:T,params:A,previewProps:L,basePath:N,images:q,runtime:D,isExperimentalCompile:F}=l,{App:H}=d,J=v.assetQueryString,G=d.Document,V=l.Component,Q=!!a.__nextFallback,Z=a.__nextNotFoundSrcPage;!function(e){for(let t of eF)delete e[t]}(a);let Y=!!j,er=Y&&l.nextExport,ea=H.getInitialProps===H.origGetInitialProps,eu=!!(null==V?void 0:V.getInitialProps),ec=null==V?void 0:V.unstable_scriptLoader,eh=en(i),eg="/_error"===i&&V.getInitialProps===V.origGetInitialProps;l.nextExport&&eu&&!eg&&t(`Detected getInitialProps on page '${i}' while running export. It's recommended to use getStaticProps which has a more correct behavior for static exporting.
Read more: https://nextjs.org/docs/messages/get-initial-props-export`);let ev=!eu&&ea&&!Y&&!R;if(ev&&!x&&F&&(s.setHeader("Cache-Control","number"==typeof!1?"s-maxage=false, stale-while-revalidate":`s-maxage=${k.BR}, stale-while-revalidate`),ev=!1),eu&&Y)throw Error(k.wh+` ${i}`);if(eu&&R)throw Error(k.Wo+` ${i}`);if(R&&Y)throw Error(k.oL+` ${i}`);if(R&&"export"===l.nextConfigOutput)throw Error('getServerSideProps cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export');if(C&&!eh)throw Error(`getStaticPaths is only allowed for dynamic SSG pages and was found on '${i}'.
Read more: https://nextjs.org/docs/messages/non-dynamic-getstaticpaths-usage`);if(C&&!Y)throw Error(`getStaticPaths was added without a getStaticProps in ${i}. Without getStaticProps, getStaticPaths does nothing`);if(Y&&eh&&!C)throw Error(`getStaticPaths is required for dynamic SSG pages and is missing for '${i}'.
Read more: https://nextjs.org/docs/messages/invalid-getstaticpaths-value`);let eP=l.resolvedAsPath||n.url;if(x){let{isValidElementType:e}=r("./dist/compiled/react-is/index.js");if(!e(V))throw Error(`The default export is not a React Component in page: "${i}"`);if(!e(H))throw Error('The default export is not a React Component in page: "/_app"');if(!e(G))throw Error('The default export is not a React Component in page: "/_document"');if((ev||Q)&&(a={...a.amp?{amp:a.amp}:{}},eP=`${i}${n.url.endsWith("/")&&"/"!==i&&!eh?"/":""}`,n.url=i),"/404"===i&&(eu||R))throw Error(`\`pages/404\` ${k.Ei}`);if(M.Er.includes(i)&&(eu||R))throw Error(`\`pages${i}\` ${k.Ei}`)}for(let e of["getStaticProps","getServerSideProps","getStaticPaths"])if(null==V?void 0:V[e])throw Error(`page ${i} ${e} ${k.lk}`);await X.preloadAll(),(Y||R)&&!Q&&L&&(g=!1!==(f=e(n,s,L)));let e_=!!(R||eu||!ea&&!Y||F),ej=new e3(i,a,eP,{isFallback:Q},e_,N,l.locale,l.locales,l.defaultLocale,l.domainLocales,g,ep(n,"isLocaleDomain")),eC={back(){ej.back()},forward(){ej.forward()},refresh(){ej.reload()},push(e,t){let{scroll:r}=void 0===t?{}:t;ej.push(e,void 0,{scroll:r})},replace(e,t){let{scroll:r}=void 0===t?{}:t;ej.replace(e,void 0,{scroll:r})},prefetch(e){ej.prefetch(e)}},eR={},eT=(0,I.createStyleRegistry)(),eE={ampFirst:!0===w.amp,hasQuery:!!a.amp,hybrid:"hybrid"===w.amp},e$=function(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}(eE),eA=function(e){void 0===e&&(e=!1);let t=[(0,E.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,E.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}(e$),eL=[],eN={};ec&&(eN.beforeInteractive=[].concat(ec()).filter(e=>"beforeInteractive"===e.props.strategy).map(e=>e.props));let eO=({children:e})=>{var t;return(0,E.jsx)(eQ.Provider,{value:eC,children:(0,E.jsx)(eH.Provider,{value:ej.isReady&&ej.query?(t=ej.asPath,new URL(t,"http://n").searchParams):new URLSearchParams,children:(0,E.jsx)(eV,{router:ej,isAutoExport:ev,children:(0,E.jsx)(eB.Provider,{value:function(e){if(!e.isReady||!e.query)return null;let t={},r=function(e){let{parameterizedRoute:t,groups:r}=function(e){let t=eS(e).slice(1).split("/"),r={},n=1;return{parameterizedRoute:t.map(e=>{let t=et.find(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&o){let{key:e,optional:s,repeat:i}=eG(o[1]);return r[e]={pos:n++,repeat:i,optional:s},"/"+eJ(t)+"([^/]+?)"}if(!o)return"/"+eJ(e);{let{key:e,repeat:t,optional:s}=eG(o[1]);return r[e]={pos:n++,repeat:t,optional:s},t?s?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}(e.pathname),n=Object.keys(r.groups);for(let r of n)t[r]=e.query[r];return t}(ej),children:(0,E.jsx)(K.Provider,{value:ej,children:(0,E.jsx)(B.Provider,{value:eE,children:(0,E.jsx)(U.Provider,{value:{updateHead:e=>{eA=e},updateScripts:e=>{eR=e},scripts:eN,mountedInstances:new Set},children:(0,E.jsx)(W.Provider,{value:e=>eL.push(e),children:(0,E.jsx)(I.StyleRegistry,{registry:eT,children:(0,E.jsx)(eM.Provider,{value:q,children:e})})})})})})})})})})},eI=()=>null,eq=({children:e})=>(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(eI,{}),(0,E.jsx)(eO,{children:(0,E.jsxs)(E.Fragment,{children:[x?(0,E.jsxs)(E.Fragment,{children:[e,(0,E.jsx)(eI,{})]}):e,(0,E.jsx)(eI,{})]})})]}),ez={err:y,req:ev?void 0:n,res:ev?void 0:s,pathname:i,query:a,asPath:eP,locale:l.locale,locales:l.locales,defaultLocale:l.defaultLocale,AppTree:e=>(0,E.jsx)(eq,{children:e2(H,V,{...e,router:ej})}),defaultGetInitialProps:async(e,t={})=>{let{html:r,head:n}=await e.renderPage({enhanceApp:e=>t=>(0,E.jsx)(e,{...t})}),o=eT.styles({nonce:t.nonce});return eT.flush(),{html:r,head:n,styles:o}}},eU=!Y&&(l.nextExport||x&&(ev||Q)),eW=()=>{let e=eT.styles();return eT.flush(),(0,E.jsx)(E.Fragment,{children:e})};if(m=await ei(H,{AppTree:ez.AppTree,Component:V,router:ej,ctx:ez}),(Y||R)&&g&&(m.__N_PREVIEW=!0),Y&&(m[M.NO]=!0),Y&&!Q){let e,t;try{e=await (0,em.getTracer)().trace(c.getStaticProps,{spanName:`getStaticProps ${i}`,attributes:{"next.route":i}},()=>j({...eh?{params:a}:void 0,...g?{draftMode:!0,preview:!0,previewData:f}:void
See more info here: https://nextjs.org/docs/messages/gsp-redirect-during-prerender`);e.props={__N_REDIRECT:e.redirect.destination,__N_REDIRECT_STATUS:ef(e.redirect)},void 0!==e.redirect.basePath&&(e.props.__N_REDIRECT_BASE_PATH=e.redirect.basePath),v.isRedirect=!0}if((x||er)&&!v.isNotFound&&!z(i,"getStaticProps",e.props))throw Error("invariant: getStaticProps did not return valid props. Please report this.");if("revalidate"in e){if(e.revalidate&&"export"===l.nextConfigOutput)throw Error('ISR cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export');if("number"==typeof e.revalidate){if(Number.isInteger(e.revalidate)){if(e.revalidate<=0)throw Error(`A page's revalidate option can not be less than or equal to zero for ${n.url}. A revalidate option of zero means to revalidate after _every_ request, and implies stale data cannot be tolerated.
To never revalidate, you can set revalidate to \`false\` (only ran once at build-time).
To revalidate as soon as possible, you can set the value to \`1\`.`);e.revalidate>31536e3&&console.warn(`Warning: A page's revalidate option was set to more than a year for ${n.url}. This may have been done in error.
To only run getStaticProps at build-time and not revalidate at runtime, you can set \`revalidate\` to \`false\`!`),t=e.revalidate}else throw Error(`A page's revalidate option must be seconds expressed as a natural number for ${n.url}. Mixed numbers, such as '${e.revalidate}', cannot be used.
Try changing the value to '${Math.ceil(e.revalidate)}' or using \`Math.ceil()\` if you're computing the value.`)}else if(!0===e.revalidate)t=1;else if(!1===e.revalidate||void 0===e.revalidate)t=!1;else throw Error(`A page's revalidate option must be seconds expressed as a natural number. Mixed numbers and strings cannot be used. Received '${JSON.stringify(e.revalidate)}' for ${n.url}`)}else t=!1;if(m.pageProps=Object.assign({},m.pageProps,"props"in e?e.props:void 0),v.revalidate=t,v.pageData=m,v.isNotFound)return new ek(null,{metadata:v})}if(R&&(m[M.uY]=!0),R&&!Q){let e;let t=!1;try{e=await (0,em.getTracer)().trace(c.getServerSideProps,{spanName:`getServerSideProps ${i}`,attributes:{"next.route":i}},async()=>R({req:n,res:s,query:a,resolvedUrl:l.resolvedUrl,...eh?{params:A}:void 0,...!1!==f?{draftMode:!0,preview:!0,previewData:f}:void 0,locales:l.locales,locale:l.locale,defaultLocale:l.defaultLocale}))}catch(e){throw"object"==typeof e&&null!==e&&"name"in e&&"message"in e&&"ENOENT"===e.code&&delete e.code,e}if(null==e)throw Error(k.Lx);e.props instanceof Promise&&(t=!0);let r=Object.keys(e).filter(e=>"props"!==e&&"redirect"!==e&&"notFound"!==e);if(e.unstable_notFound)throw Error(`unstable_notFound has been renamed to notFound, please update the field to continue. Page: ${i}`);if(e.unstable_redirect)throw Error(`unstable_redirect has been renamed to redirect, please update the field to continue. Page: ${i}`);if(r.length)throw Error(e8("getServerSideProps",r));if("notFound"in e&&e.notFound){if("/404"===i)throw Error('The /404 page can not return notFound in "getStaticProps", please remove it to continue!');return v.isNotFound=!0,new ek(null,{metadata:v})}if("redirect"in e&&"object"==typeof e.redirect&&(e9(e.redirect,n,"getServerSideProps"),e.props={__N_REDIRECT:e.redirect.destination,__N_REDIRECT_STATUS:ef(e.redirect)},void 0!==e.redirect.basePath&&(e.props.__N_REDIRECT_BASE_PATH=e.redirect.basePath),v.isRedirect=!0),t&&(e.props=await e.props),(x||er)&&!z(i,"getServerSideProps",e.props))throw Error("invariant: getServerSideProps did not return valid props. Please report this.");m.pageProps=Object.assign({},m.pageProps,e.props),v.pageData=m}if(T&&!Y||v.isRedirect)return new ek(JSON.stringify(m),{metadata:v});if(Q&&(m.pageProps={}),es(s)&&!Y)return new ek(null,{metadata:v});let eZ=S;if(ev&&eh){let e;let t=(e=(function(e){let t=/^\/index(\/|$)/.test(e)&&!en(e)?"/index"+e:"/"===e?"/index":ee(e);{let{posix:e}=r("path"),n=e.normalize(t);if(n!==t)throw new el("Requested and resolved page mismatch: "+t+" "+n)}return t})(i).replace(/\\/g,"/")).startsWith("/index/")&&!en(e)?e.slice(6):"/index"!==e?e:"/";t in eZ.pages&&(eZ={...eZ,pages:{...eZ.pages,[t]:[...eZ.pages[t],...eZ.lowPriorityFiles.filter(e=>e.includes("_buildManifest"))]},lowPriorityFiles:eZ.lowPriorityFiles.filter(e=>!e.includes("_buildManifest"))})}let eY=({children:e})=>e$?e:(0,E.jsx)("div",{id:"__next",children:e}),eX=async()=>{let e,t,r;async function n(e){let t=async(t={})=>{if(ez.err&&_){e&&e(H,V);let t=await e4((0,E.jsx)(eY,{children:(0,E.jsx)(_,{error:ez.err})}));return{html:t,head:eA}}if(x&&(m.router||m.Component))throw Error("'router' and 'Component' can not be returned in getInitialProps from _app.js https://nextjs.org/docs/messages/cant-override-next-props");let{App:r,Component:n}="function"==typeof t?{App:H,Component:t(V)}:{App:t.enhanceApp?t.enhanceApp(H):H,Component:t.enhanceComponent?t.enhanceComponent(V):V};if(e)return e(r,n).then(async e=>{await e.allReady;let t=await eb(e);return{html:t,head:eA}});let o=await e4((0,E.jsx)(eY,{children:(0,E.jsx)(eq,{children:e2(r,n,{...m,router:ej})})}));return{html:o,head:eA}},r={...ez,renderPage:t},n=await ei(G,r);if(es(s)&&!Y)return null;if(!n||"string"!=typeof n.html){let e=`"${eo(G)}.getInitialProps()" should resolve to an object with a "html" prop set with a valid html string`;throw Error(e)}return{docProps:n,documentCtx:r}}G[M.wU];let o=(e,t)=>{let r=e||H,n=t||V;return ez.err&&_?(0,E.jsx)(eY,{children:(0,E.jsx)(_,{error:ez.err})}):(0,E.jsx)(eY,{children:(0,E.jsx)(eq,{children:e2(r,n,{...m,router:ej})})})},i=async(e,
//# sourceMappingURL=pages-turbo.runtime.prod.js.map