54 lines
590 KiB
JavaScript
54 lines
590 KiB
JavaScript
|
|
(()=>{var e,t,r={"./dist/build/webpack/alias/react-dom-server.js"(e,t,r){"use strict";var n;function a(){throw Object.defineProperty(Error("Internal Error: do not use legacy react-dom/server APIs. If you encountered this error, please open an issue on the Next.js repo."),"__NEXT_ERROR_CODE",{value:"E1021",enumerable:!1,configurable:!0})}t.version=(n=r("./dist/compiled/react-dom/cjs/react-dom-server.node.production.js")).version,t.renderToReadableStream=n.renderToReadableStream,t.renderToString=a,t.renderToStaticMarkup=a,n.resume&&(t.resume=n.resume)},"./dist/compiled/@edge-runtime/cookies/index.js"(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i={},s={RequestCookies:()=>h,ResponseCookies:()=>p,parseCookie:()=>u,parseSetCookie:()=>c,stringifyCookie:()=>l};for(var o in s)t(i,o,{get:s[o],enumerable:!0});function l(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}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function u(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,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function c(e){if(!e)return;let[[t,r],...n]=u(e),{domain:a,expires:i,httponly:s,maxage:o,path:l,samesite:c,secure:h,partitioned:p,priority:m}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,y,v={name:t,value:decodeURIComponent(r),domain:a,...i&&{expires:new Date(i)},...s&&{httpOnly:!0},..."string"==typeof o&&{maxAge:Number(o)},path:l,...c&&{sameSite:d.includes(g=(g=c).toLowerCase())?g:void 0},...h&&{secure:!0},...m&&{priority:f.includes(y=(y=m).toLowerCase())?y:void 0},...p&&{partitioned:!0}};let e={};for(let t in v)v[t]&&(e[t]=v[t]);return e}}e.exports=((e,i,s,o)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let l of n(i))a.call(e,l)||l===s||t(e,l,{get:()=>i[l],enumerable:!(o=r(i,l))||o.enumerable});return e})(t({},"__esModule",{value:!0}),i);var d=["strict","lax","none"],f=["low","medium","high"],h=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of u(t))this._parsed.set(e,{name:e,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])=>l(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])=>l(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;const a=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(a)?a:function(e){if(!e)return[];var t,r,n,a,i,s=[],o=0;function l(){f
|
|||
|
|
--${w}`,B),this._writecb=null,this._finalcb=null,this.write(d)}static detect(e){return"multipart"===e.type&&"form-data"===e.subtype}_write(e,t,r){let n;this._writecb=r,this._bparser.push(e,0),this._writecb&&(n=this._writecb,this._writecb=null,n&&n())}_destroy(e,t){this._hparser=null,this._bparser=y,e||(e=w(this));let r=this._fileStream;r&&(this._fileStream=null,r.destroy(e)),t(e)}_final(e){if(this._bparser.destroy(),!this._complete)return e(Error("Unexpected end of form"));this._fileEndsLeft?this._finalcb=b.bind(null,this,e):b(this,e)}}},506:function(e,t,r){let{Writable:n}=r(781),{getDecoder:a}=r(318);function i(e,t,r,n){if(r>=n)return n;if(-1===e._byte){let a=l[t[r++]];if(-1===a)return -1;if(a>=8&&(e._encode=2),r<n){let n=l[t[r++]];if(-1===n)return -1;e._inKey?e._key+=String.fromCharCode((a<<4)+n):e._val+=String.fromCharCode((a<<4)+n),e._byte=-2,e._lastPos=r}else e._byte=a}else{let n=l[t[r++]];if(-1===n)return -1;e._inKey?e._key+=String.fromCharCode((e._byte<<4)+n):e._val+=String.fromCharCode((e._byte<<4)+n),e._byte=-2,e._lastPos=r}return r}function s(e,t,r,n){if(e._bytesKey>e.fieldNameSizeLimit){for(!e._keyTrunc&&e._lastPos<r&&(e._key+=t.latin1Slice(e._lastPos,r-1)),e._keyTrunc=!0;r<n;++r){let n=t[r];if(61===n||38===n)break;++e._bytesKey}e._lastPos=r}return r}function o(e,t,r,n){if(e._bytesVal>e.fieldSizeLimit){for(!e._valTrunc&&e._lastPos<r&&(e._val+=t.latin1Slice(e._lastPos,r-1)),e._valTrunc=!0;r<n&&38!==t[r];++r)++e._bytesVal;e._lastPos=r}return r}let l=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.exports=class extends n{constructor(e){super({autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:void 0});let t=e.defCharset||"utf8";e.conType.params&&"string"==typeof e.conType.params.charset&&(t=e.conType.params.charset),this.charset=t;const r=e.limits;this.fieldSizeLimit=r&&"number"==typeof r.fieldSize?r.fieldSize:1048576,this.fieldsLimit=r&&"number"==typeof r.fields?r.fields:1/0,this.fieldNameSizeLimit=r&&"number"==typeof r.fieldNameSize?r.fieldNameSize:100,this._inKey=!0,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,this._fields=0,this._key="",this._val="",this._byte=-2,this._lastPos=0,this._encode=0,this._decoder=a(t)}static detect(e){return"application"===e.type&&"x-www-form-urlencoded"===e.subtype}_write(e,t,r){if(this._fields>=this.fieldsLimit)return r();let n=0,a=e.length;if(this._lastPos=0,-2!==this._byte){if(-1===(n=i(this,e,n,a)))return r(Error("Malformed urlencoded form"));if(n>=a)return r();this._inKey?++this._bytesKey:++this._bytesVal}e:for(;n<a;)if(this._inKey){for(n=s(this,e,n,a);n<a;){switch(e[n]){case 61:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue e;case 38:if(this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._bytesKey>0&&this.emit("field",this._key,"",{nameTruncated:this._keyTrunc,valueTruncated:!1,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),r();continue;case 43:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._key+=" ",this._lastPos=n+1;break;
|
|||
|
|
${t}`))}function R(){let e=new AbortController;return e.abort(Object.defineProperty(new d.m("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function k(e){let t=l.workAsyncStorage.getStore(),r=o.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":case"prerender":{let n=r.fallbackRouteParams;n&&n.size>0&&i.use((0,u.W5)(r.renderSignal,t.route,e));break}case"prerender-ppr":{let s=r.fallbackRouteParams;if(s&&s.size>0){var n,a;return n=t.route,a=r.dynamicTracking,void(function(){if(!p)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})}(),a&&a.dynamicAccesses.push({stack:a.isDebugDynamicAccesses?Error().stack:void 0,expression:e}),i.unstable_postpone(y(n,e)))}break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new f.z(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new f.z(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new f.z(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function x(e){let t=l.workAsyncStorage.getStore(),r=o.workUnitAsyncStorage.getStore();if(t)switch(!r&&(0,o.throwForMissingRequestStore)(e),r.type){case"validation-client":case"request":return;case"prerender-client":i.use((0,u.W5)(r.renderSignal,t.route,e));break;case"prerender-legacy":case"prerender-ppr":if(t.forceStatic)return;throw Object.defineProperty(new d.m(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new f.z(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new f.z(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new f.z(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let P=/\n\s+at Suspense \(<anonymous>\)/,C=RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${c.ri} \\([^\\n]*\\)`),T=RegExp(`\\n\\s+at ${c.NJ}[\\n\\s]`),A=RegExp(`\\n\\s+at ${c.A$}[\\n\\s]`),O=RegExp(`\\n\\s+at ${c.DQ}[\\n\\s]`),j=RegExp(`\\n\\s+at ${h.B}[\\n\\s]`);function $(e,t,r,n){if(!O.test(t)){if(T.test(t)){r.hasDynamicMetadata=!0;return}if(A.test(t)){r.hasDynamicViewport=!0;return}if(C.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(P.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let a=L(Object.defineProperty(Error(`Route "${e.route}": Uncached data was accessed outside of <Su
|
|||
|
|
- Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error.
|
|||
|
|
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}function H(e,t,r,n){if(n.syncDynamicErrorWithStack)throw F(e,n.syncDynamicErrorWithStack),new s.f;if(0!==t){if(r.hasSuspenseAboveBody)return;let n=r.dynamicErrors;if(n.length>0){for(let t=0;t<n.length;t++)F(e,n[t]);throw new s.f}if(r.hasDynamicViewport)throw console.error(`Route "${e.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new s.f;if(1===t)throw console.error(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new s.f}else if(!1===r.hasAllowedDynamic&&r.hasDynamicMetadata)throw console.error(`Route "${e.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new s.f}function B(e,t,r,n,a){if(n){let{missingSampleErrors:e}=n;if(e.length>0)return e}let{validationPreventingErrors:i}=r;if(i.length>0)return i;if(a.renderedIds.size<a.expectedIds.size){let{thrownErrorsOutsideBoundary:t,createInstantStack:n}=r;if(0===t.length){let t=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering for an unknown reason.`,r=null!==n?n():Error();return r.name="Error",r.message=t,[r]}if(1===t.length){let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.`,a=null!==n?n():Error();return a.name="Error",a.message=r,[a,t[0]]}{let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`,a=null!==n?n():Error();return a.name="Error",a.message=r,[a,...t]}}if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t)return r.hasAllowedClientDynamicAboveBoundary?[]:[Object.defineProperty(new f.z(`Route "${e.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})]}else{let e=r.dynamicErrors;if(e.length>0)return e;if(!1===r.hasAllowedDynamic&&r.dynamicMetadata)return[r.dynamicMetadata]}return[]}},"./dist/esm/server/app-render/instant-validation/boundary-constants.js"(e,t,r){"use strict";r.d(t,{B:()=>n});let n="__next_instant_validation_boundary__"},"./dist/esm/server/app-render/instant-validation/instant-samples-client.js"(e,t,r){"use strict";r.r(t),r.d(t,{expectCompleteParamsInClientValidation:()=>l,instrumentParamsForClientValidation:()=>o,instrumentSearchParamsForClientValidation:()=>u});var n=r("../../app-render/work-unit-async-storage.external"),a=r("../../app-render/work-async-storage.external"),i=r("./dist/esm/server/app-render/instant-validation/instant-samples.js"),s=r("./dist/esm/server/app-render/instant-validation/instant-validation-error.js");function o(e){let t=a.workAsyncStorage.getStore(),r=n.workUnitAsyncStorage.getStore();if(t&&r&&"validation-client"===r.type&&r.validationSamples){let n=new Set(Object.keys(r.validationSamples.params??{}));return(0,i.createExhaustiveParamsProxy)(e,n,t.route)}return e}function l(e){let t=a.workAsyncStorage.getStore(),r=n.workUnitAsyncStorage.getStore();if(t&&r&&"validation-client"===r.type&&r.validationSamples){let n=r.fallbackRouteParams;if(n&&n.size>0){let r=Array.from(n.keys());(0,i.trackMissingSampleErrorAndThrow)(Object.defineProperty(new s.D(`Route "${t.route}" called ${e} but param${r.length>1?"s":""} ${r.map(e=>`"${e}"`).join(", ")} ${r.length>1?"are":"is"} not defined in the \`samples\` of \`unstable_instant\`. ${e} requires all route params to be provided.`),"__NEXT_ERROR_CODE",{value:"E1109",enumerable:!1,c
|
|||
|
|
<template
|
|||
|
|
data-next-error-message="Missing ${t.map(e=>`<${e}>`).join(t.length>1?" and ":"")} tags in the root layout.
|
|||
|
|
Read more at https://nextjs.org/docs/messages/missing-root-layout-tags"
|
|||
|
|
data-next-error-digest="NEXT_MISSING_ROOT_TAGS"
|
|||
|
|
data-next-error-stack=""
|
|||
|
|
></template>
|
|||
|
|
`))}})):null,ea(),et(i)])}async function el(e,{getServerInsertedHTML:t,getServerInsertedMetadata:r,deploymentId:n}){return es(e,[Z(),new TransformStream({transform(e,t){H(e,U.CLOSED.BODY_AND_HTML)||H(e,U.CLOSED.BODY)||H(e,U.CLOSED.HTML)||(e=B(e,U.CLOSED.BODY),e=B(e,U.CLOSED.HTML),t.enqueue(e))}}),n?ei(n):null,et(t),ee(r)])}async function eu(e,{inlinedDataStream:t,getServerInsertedHTML:r,getServerInsertedMetadata:n,deploymentId:a}){return es(e,[Z(),a?ei(a):null,et(r),ee(n),er(t,!0),ea()])}async function ec(e,{inlinedDataStream:t,getServerInsertedHTML:r,getServerInsertedMetadata:n,deploymentId:a}){let i,s,o,l;return es(e,[Z(),a?ei(a):null,et(r),(i=q("1","/_full",void 0,void 0),s=`${z._A}=${i}`,o=`<script>__NEXT_CLIENT_RESUME=fetch(location.pathname+'?${s}',{credentials:'same-origin',headers:{'${z.hY}': '1','${z._V}': '1','${z.qm}': '/_full'}})</script>`,l=!1,new TransformStream({transform(e,t){if(l)return void t.enqueue(e);let r=F(e,U.CLOSED.HEAD);if(-1===r)return void t.enqueue(e);let n=V.encode(o),a=new Uint8Array(e.length+n.length);a.set(e.slice(0,r)),a.set(n,r),a.set(e.slice(r),r+n.length),t.enqueue(a),l=!0}})),ee(n),er(t,!0),ea()])}async function ed(e,{delayDataUntilFirstHtmlChunk:t,inlinedDataStream:r,getServerInsertedHTML:n,getServerInsertedMetadata:a,deploymentId:i}){return es(e,[Z(),i?ei(i):null,et(n),ee(a),er(r,t),ea()])}var ef=a("./dist/esm/lib/constants.js");function eh(e){for(let t of[ef.AA,ef.h])if(e!==t&&e.startsWith(t))return e.substring(t.length);return null}function ep(e,t,r){if(e){for(let n of(r&&(r=r.toLowerCase()),e))if(t===n.domain?.split(":",1)[0].toLowerCase()||r===n.defaultLocale.toLowerCase()||n.locales?.some(e=>e.toLowerCase()===r))return n}}function em(e){return e.replace(/\/$/,"")||"/"}function eg(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}function ey(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=eg(e);return`${t}${r}${n}${a}`}function ev(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=eg(e);return`${r}${t}${n}${a}`}function eb(e,t){if("string"!=typeof e)return!1;let{pathname:r}=eg(e);return r===t||r.startsWith(t+"/")}function ew(e,t){let r;if(t?.host&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}let eS=new WeakMap;function e_(e,t){let r;if(!t)return{pathname:e};let n=eS.get(t);n||(n=t.map(e=>e.toLowerCase()),eS.set(t,n));let a=e.split("/",2);if(!a[1])return{pathname:e};let i=a[1].toLowerCase(),s=n.indexOf(i);return s<0?{pathname:e}:(r=t[s],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}function eE(e,t){if(!eb(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}let eR=/^(?:127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)$/;function ek(e,t){let r=new URL(String(e),t&&String(t));return eR.test(r.hostname)&&(r.hostname="localhost"),r}let ex=Symbol("NextURLInternal");class eP{constructor(e,t,r){let n,a;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,a=r||{}):a=r||t||{},this[ex]={url:ek(e,n??a.base),options:a,basePath:""},this.analyze()}analyze(){var e,t,r,n,a;let i=function(e,t){let{basePath:r,i18n:n,trailingSlash:a}=t.nextConfig??{},i={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):a};r&&eb(i.pathname,r)&&(i.pathname=eE(i.pathname,r),i.basePath=r);let s=i.pathname;if(i.pathname.startsWith("/_next/data/")&&i.pathname.endsWith(".json")){let e=i.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");i.buildId=e[0],s="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(i.pathname=s)}if(n){let e=t.i18nProvider?t.i18nProvider.analyze(i.pathname):e_(i.pathname,n.locales);i.locale=e.detectedLocale,i.pathname=e.pathname??i.pathname,!e.detectedLocale&&i.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(s):e_(s,n.locales)).detectedLocale&&(i.locale=e.detectedLocale)}return i}(this[ex].url.pathname,{nextConfig:this[ex].option
|
|||
|
|
|
|||
|
|
${t}`);return}if(e.message.includes("createContext is not a function"))return void tj(e,'createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component');for(let t of tO)if(RegExp(`\\b${t}\\b.*is not a function`).test(e.message))return void tj(e,`${t} only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/react-client-hook-in-server-component`)}}var tD=a("./dist/esm/shared/lib/lazy-dynamic/bailout-to-csr.js"),tN=a("./dist/esm/client/components/hooks-server-context.js"),tM=a("./dist/esm/client/components/is-next-router-error.js"),tL=a("./dist/esm/server/app-render/dynamic-rendering.js");function tU(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function tF(e){let t;return tU(e)?e:Object.defineProperty(Error(!function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}(e)?e+"":(t=new WeakSet,JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r}))),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}let tH=(e,t)=>"object"==typeof e&&null!==e&&"__NEXT_ERROR_CODE"in e?`${t}@${e.__NEXT_ERROR_CODE}`:t;function tB(e){return"object"==typeof e&&null!==e&&"message"in e&&"string"==typeof e.message&&e.message.startsWith("This rendered a large document (>")}var tz=a("./dist/esm/server/app-render/instant-validation/instant-validation-error.js");function tq(e){if((0,tD.C)(e)||(0,tM.p)(e)||(0,tN.isDynamicServerError)(e)||(0,tL.AA)(e)||(0,tz.R)(e))return e.digest}function tX(e,t,r,n,a){return i=>{var s;if("string"==typeof i)return tA()(i).toString();if(eD(i))return;let o=tq(i);if(o)return o;if(tB(i))return void console.error(i);let l=tF(i),u=!1;if(l.digest?r.has(l.digest)&&(l=r.get(l.digest),u=!0):l.digest=tH(l,tA()(l.message+(l.stack||"")).toString()),r.has(l.digest)||r.set(l.digest,l),e&&tI(l),!(t&&(null==l||null==(s=l.message)?void 0:s.includes("The specific message is omitted in production builds to avoid leaking sensitive details.")))){let e=a??(0,j.getTracer)().getActiveScopeSpan();e&&(e.recordException(l),e.setAttribute("error.type",l.name),e.setStatus({code:j.SpanStatusCode.ERROR,message:l.message})),n(l,u)}return l.digest}}function tV(e,t,r,n,a,i){return(s,o)=>{var l;if(tB(s))return void console.error(s);let u=!0;if(n.push(s),eD(s))return;let c=tq(s);if(c)return c;let d=tF(s);if(d.digest?r.has(d.digest)&&(s=r.get(d.digest),u=!1):d.digest=tH(d,tA()(d.message+((null==o?void 0:o.componentStack)||d.stack||"")).toString()),e&&tI(d),!(t&&(null==d||null==(l=d.message)?void 0:l.includes("The specific message is omitted in production builds to avoid leaking sensitive details.")))&&u){let e=i??(0,j.getTracer)().getActiveScopeSpan();e&&(e.recordException(d),e.setAttribute("error.type",d.name),e.setStatus({code:j.SpanStatusCode.ERROR,message:d.message})),a(d,o)}return d.digest}}let tW={catchall:"c","catchall-intercepted-(..)(..)":"ci(..)(..)","catchall-intercepted-(.)":"ci(.)","catchall-intercepted-(..)":"ci(..)","catchall-intercepted-(...)":"ci(...)","optional-catchall":"oc",dynamic:"d","dynamic-intercepted-(..)(..)":"di(..)(..)","dynamic-intercepted-(.)":"di(.)","dynamic-intercepted-(..)":"di(..)","dynamic-intercepted-(...)":"di(...)"};var tG=a("./dist/esm/shared/lib/router/utils/get-segment-param.js"),tJ=a("./dist/compiled/superstruct/index.cjs"),tK=a.n(tJ);let tY=tK().enums(["c","ci(..)(..)","ci(.)","ci(..)","ci(...)","oc","d","di(..)(..)","di(.)","di(..)","di(...)"]),tQ=tK().union([tK().string(),tK().tuple([tK().string(),tK().string(),tY,tK().nullable(tK().array(tK().string()))])]),tZ=tK().tuple([tQ,tK().record(tK().string(),tK().lazy(()=>tZ)),tK().optional(tK().nullable(tK().tuple([tK().string(),tK().string()]))),tK().optional(tK().nullable(tK().union([tK().literal("refetch"),tK().literal("inside-shared-layout"),tK().literal("metadata-only")]))),tK
|
|||
|
|
To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}));return}r(null,e)}});if(E)if(R){try{u=rC(_,S)}catch(e){return C(e)}let t=a("./dist/compiled/busboy/index.js")({defParamCharset:"utf8",headers:e.headers,limits:{fieldSize:T}}),r=new AbortController;try{[,c]=await Promise.all([g(w,O,t,{signal:r.signal}),n(t,S,{temporaryReferences:h})])}catch(e){throw r.abort(),e}}else{let e,t=new f,r=new Request("http://localhost",{method:"POST",headers:{"Content-Type":b},body:p.toWeb(t),duplex:"half"}),n=new AbortController;try{[,e]=await Promise.all([g(w,O,t,{signal:n.signal}),r.formData()])}catch(e){throw n.abort(),e}if(!1===function(e,t){let r=!1;for(let i of e.keys())if(i.startsWith(rA)){if(i.startsWith(rj)){var n,a;if(n=i,a=t,n.length!==rj.length+42||null==a[n.slice(rj.length)])return!1;r=!0}else if(i.startsWith(rO)){let n=rA+i.slice(rO.length)+":0",a=e.getAll(n);if(1!==a.length)return!1;let s=a[0];if("string"!=typeof s||function(e,t){if(!1===e.startsWith(r$))return!0;let r=r$.length,n=r+42,a=e.slice(r,n);return 42!==a.length||'"'!==e[n]||null==t[a]}(s,t))return!1;r=!0}}return r}(e,S))throw Object.defineProperty(Error(`Failed to find Server Action. This request might be from an older or newer deployment.
|
|||
|
|
Read more: https://nextjs.org/docs/messages/failed-to-find-server-action`),"__NEXT_ERROR_CODE",{value:"E975",enumerable:!1,configurable:!0});let a=await l(e,S);if("function"!=typeof a)return null;{v&&rh(v);let{actionResult:t}=await rP(a,[],i,s,$),r=await d(t,e,S);return{type:"done",result:void 0,formState:r}}}else{if(!R)return null;try{u=rC(_,S)}catch(e){return C(e)}let e=new f,t=[];await Promise.all([g(w,O,e),(async()=>{for await(let r of e)t.push(Buffer.from(r))})()]);let n=Buffer.concat(t).toString("utf-8");c=await r(n,S,{temporaryReferences:h})}}let d=(await r.__next_app__.require(u))[_],{type:f}=rm(_),{actionResult:p,skipPageRendering:m}=(performance.now(),await rP(d,c,i,s,$).finally(()=>{!function(e,{workStore:t,requestStore:r}){var n;let a=+(null!=(n=t.pendingRevalidatedTags)&&!!n.some(e=>void 0===e.profile)),i=+!!(0,th.YX)(r.mutableCookies).length;a||i?e.setHeader(z.ZL,JSON.stringify(rw.Du)):void 0!==t.pathWasRevalidated&&t.pathWasRevalidated!==rw.e9&&e.setHeader(z.ZL,JSON.stringify(t.pathWasRevalidated))}(t,{workStore:i,requestStore:s})}));if(!R)return null;{let t=!!m&&(0,ry.C)(i);return{type:"done",result:await n(e,l,s,{actionResult:Promise.resolve(p),skipPageRendering:m,temporaryReferences:h,waitUntil:!1===t?void 0:t})}}})}catch(r){if((0,tE.n)(r)){let n=tR(r),a=tk(r);if(t.statusCode=rg.Q.SeeOther,u.statusCode=rg.Q.SeeOther,R)return{type:"done",result:await rR(e,t,O,n,a,l.renderOpts.basePath,i,s.url.pathname)};return t.setHeader("Location",n),{type:"done",result:eL.EMPTY}}if((0,t_.RM)(r)){if(t.statusCode=(0,t_.jT)(r),u.statusCode=t.statusCode,R){let t=Promise.reject(r);try{await t}catch{}return{type:"done",result:await n(e,l,s,{skipPageRendering:!1,actionResult:t,temporaryReferences:h})}}return{type:"not-found"}}if(R){t.statusCode=500,u.statusCode=500;let a=Promise.reject(r);try{await a}catch{}return{type:"done",result:await n(e,l,s,{actionResult:a,skipPageRendering:void 0===i.pathWasRevalidated||i.pathWasRevalidated===rw.e9||$,temporaryReferences:h})}}throw r}}async function rP(e,t,r,n,a){n.phase="action";let i=a;if(t.length>1e3)throw Object.defineProperty(Error(`Server Action arguments list is too long (${t.length}). Maximum allowed is 1000.`),"__NEXT_ERROR_CODE",{value:"E986",enumerable:!1,configurable:!0});try{let a=await eq.workUnitAsyncStorage.run(n,()=>e.apply(null,t));return i||=void 0===r.pathWasRevalidated||r.pathWasRevalidated===rw.e9,{actionResult:a,skipPageRendering:i}}finally{!i&&(n.phase="render",n.cookies=th.Ck.seal((0,th.m0)(n.mutableCookies)),r.isDraftMode=n.draftMode.isEnabled,await (0,ry.C)(r))}}function rC(e,t){var r;if(!e)throw Object.defineProperty(new eM.z("Missing 'next-action' header."),"__NEXT_ERROR_CODE",{value:"E664",enumerable:!1,configurable:!0});let n=null==(r=t[e])?void 0:r.id;if(!n)throw rT(e);return n}function rT(e){return Object.defineProperty(Error(`Failed to find Server Action${e?` "${e}"`:""}. This request might be from an older or newer deployment.
|
|||
|
|
Read more: https://nextjs.org/docs/messages/failed-to-find-server-action`),"__NEXT_ERROR_CODE",{value:"E974",enumerable:!1,configurable:!0})}let rA="$ACTION_",rO="$ACTION_REF_",rj="$ACTION_ID_",r$='{"id":"',rI=O.createContext(null);function rD(e){let t=(0,O.useContext)(rI);t&&t(e)}function rN(){let e=[],t=t=>{e.push(t)};return{ServerInsertedHTMLProvider:({children:e})=>(0,T.jsx)(rI.Provider,{value:t,children:e}),renderServerInsertedHTML:()=>e.map((e,t)=>(0,T.jsx)(O.Fragment,{children:e()},"__next_server_inserted__"+t))}}function rM(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}var rL=a("./dist/compiled/react-dom/index.js");function rU(e,t,r,n,a,i,s){var o;let l,u=[],c={src:"",crossOrigin:r},d=((null==(o=e.rootMainFilesTree)?void 0:o[s])||e.rootMainFiles).map(rM);if(0===d.length)throw Object.defineProperty(Error("Invariant: missing bootstrap script. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E459",enumerable:!1,configurable:!0});if(n){c.src=`${t}/_next/`+d[0]+a,c.integrity=n[d[0]];for(let e=1;e<d.length;e++){let r=`${t}/_next/`+d[e]+a,i=n[d[e]];u.push(r,i)}l=()=>{for(let e=0;e<u.length;e+=2)rL.preinit(u[e],{as:"script",integrity:u[e+1],crossOrigin:r,nonce:i})}}else{c.src=`${t}/_next/`+d[0]+a;for(let e=1;e<d.length;e++){let r=`${t}/_next/`+d[e]+a;u.push(r)}l=()=>{for(let e=0;e<u.length;e++)rL.preinit(u[e],{as:"script",nonce:i,crossOrigin:r})}}return[l,c]}function rF({polyfills:e,renderServerInsertedHTML:t,serverCapturedErrors:r,tracingMetadata:n,basePath:a}){let i=0,s=e.map(e=>(0,T.jsx)("script",{...e},e.src)),o=(n||[]).map(({key:e,value:t},r)=>(0,T.jsx)("meta",{name:e,content:t},`next-trace-data-${r}`));return async function(){let e=[];for(;i<r.length;){let t=r[i];if(i++,(0,t_.RM)(t))e.push((0,T.jsx)("meta",{name:"robots",content:"noindex"},t.digest),null);else if((0,tE.n)(t)){let r=ey(tR(t),a),n=tx(t)===rg.Q.PermanentRedirect;r&&e.push((0,T.jsx)("meta",{id:"__next-page-redirect",httpEquiv:"refresh",content:`${+!n};url=${r}`},t.digest))}}let n=t();if(0===s.length&&0===o.length&&0===e.length&&Array.isArray(n)&&0===n.length)return"";let l=await (0,eU.renderToReadableStream)((0,T.jsxs)(T.Fragment,{children:[s,n,o,e]}),{progressiveChunkSize:1048576});return s=[],o=[],Q(l)}}let rH=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1];function rB(e,t,r,n){let a=e.replace(/\.[^.]+$/,""),i=new Set,s=new Set,{entryCSSFiles:o,entryJSFiles:l}=eJ(),u=o[a],c=null==l?void 0:l[a];if(u)for(let e of u)t.has(e.path)||(n&&t.add(e.path),i.add(e));if(c)for(let e of c)r.has(e)||(n&&r.add(e),s.add(e));return{styles:[...i],scripts:[...s]}}function rz(e,t,r){if(!e||!t)return null;let n=t.replace(/\.[^.]+$/,""),a=new Set,i=!1,s=e.app[n];if(s)for(let e of(i=!0,s))r.has(e)||(a.add(e),r.add(e));return a.size?[...a].sort():i&&0===r.size?[]:null}function rq(e){let[,t,{loading:r}]=e;return!!r||Object.values(t).some(e=>rq(e))}function rX(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=rm(e.$$id);return"use-cache"===t}async function rV(e){let t,r,n,{layout:a,page:i,defaultPage:s}=e[2],o=void 0!==a,l=void 0!==i,u=void 0!==s&&e[0]===t1.WO;return o?(t=await a[0](),r="layout",n=a[1]):l?(t=await i[0](),r="page",n=i[1]):u&&(t=await s[0](),r="page",n=s[1]),{mod:t,modType:r,filePath:n}}function rW(e){return e.default||e}function rG(e){let[t,r,n,a]=e,{layout:i,template:s}=n,{page:o}=n;o=t===t1.WO?n.defaultPage:o;let l=i?.[1]||s?.[1]||o?.[1];return{page:o,segment:t,modules:n,conventionPath:l,parallelRoutes:r,staticSiblings:a}}function rJ(e,t){let r="";return e.sharedContext.clientAssetToken&&(r+=`?dpl=${e.sharedContext.clientAssetToken}`),r}function rK(e,t,r){let{componentMod:{createElement:n}}=t;return e.map((e,a)=>{let i="next",s=`${t.assetPrefix}/_next/${rM(e.path)}${rJ(t,!0)}`;return e.inlined&&!t.parsedRequestHeaders.isRSCRequest?n("style",{key:a,nonce:t.nonce,precedence:i,href:s},e.content):(null==r||r.push(()=>{t.componentMod.preloadStyle(s,t.renderOpts.crossOrigin,t.nonce)}),n("link",{key:a,rel:"stylesheet",href:s,precedence:i,crossOrigin:t.renderOpts.cross
|
|||
|
|
:root {
|
|||
|
|
--next-error-bg: #fff;
|
|||
|
|
--next-error-text: #171717;
|
|||
|
|
--next-error-title: #171717;
|
|||
|
|
--next-error-message: #171717;
|
|||
|
|
--next-error-digest: #666666;
|
|||
|
|
--next-error-btn-text: #fff;
|
|||
|
|
--next-error-btn-bg: #171717;
|
|||
|
|
--next-error-btn-border: none;
|
|||
|
|
--next-error-btn-secondary-text: #171717;
|
|||
|
|
--next-error-btn-secondary-bg: transparent;
|
|||
|
|
--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
|
|||
|
|
}
|
|||
|
|
@media (prefers-color-scheme: dark) {
|
|||
|
|
:root {
|
|||
|
|
--next-error-bg: #0a0a0a;
|
|||
|
|
--next-error-text: #ededed;
|
|||
|
|
--next-error-title: #ededed;
|
|||
|
|
--next-error-message: #ededed;
|
|||
|
|
--next-error-digest: #a0a0a0;
|
|||
|
|
--next-error-btn-text: #0a0a0a;
|
|||
|
|
--next-error-btn-bg: #ededed;
|
|||
|
|
--next-error-btn-border: none;
|
|||
|
|
--next-error-btn-secondary-text: #ededed;
|
|||
|
|
--next-error-btn-secondary-bg: transparent;
|
|||
|
|
--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
|
|||
|
|
`.replace(/\n\s*/g,"");function oc(){return(0,T.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:ot,children:(0,T.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}let od=function({error:e}){let t=e?.digest,r=!!t;return s6({error:e}),(0,T.jsxs)("html",{id:"__next_error__",children:[(0,T.jsx)("head",{children:(0,T.jsx)("style",{dangerouslySetInnerHTML:{__html:ou}})}),(0,T.jsxs)("body",{children:[(0,T.jsx)("div",{style:s7,children:(0,T.jsxs)("div",{style:oe,children:[(0,T.jsx)(oc,{}),(0,T.jsx)("h1",{style:or,children:"This page couldn’t load"}),(0,T.jsx)("p",{style:on,children:r?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,T.jsxs)("div",{style:oi,children:[(0,T.jsx)("form",{style:oa,children:(0,T.jsx)("button",{type:"submit",style:os,children:"Reload"})}),!r&&(0,T.jsx)("button",{type:"button",style:oo,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),t&&(0,T.jsxs)("p",{style:ol,children:["ERROR ",t]})]})]})};var of=a("./dist/esm/lib/framework/boundary-constants.js");let oh={[of.NJ]:function({children:e}){return e},[of.A$]:function({children:e}){return e},[of.DQ]:function({children:e}){return e},[of.ri]:function({children:e}){return e}};oh[of.NJ.slice(0)],oh[of.A$.slice(0)],oh[of.DQ.slice(0)];let op=oh[of.ri.slice(0)],om={};function og({appRouterState:e}){return(0,O.useInsertionEffect)(()=>{process.env.__NEXT_APP_NAV_FAIL_HANDLING&&(window.next.__pendingUrl=void 0);let{tree:t,pushRef:r,canonicalUrl:n,renderedSearch:a}=e,i={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:{tree:t,renderedSearch:a}};r.pendingPush&&nX(new URL(window.location.href))!==n?(r.pendingPush=!1,window.history.pushState(i,"",n)):window.history.replaceState(i,"",n),n0=t},[e]),(0,O.useEffect)(()=>{ib(e.nextUrl,e.tree)},[e.nextUrl,e.tree]),null}function oy(e){null==e&&(e={});let t=window.history.state,r=t?.__NA;r&&(e.__NA=r);let n=t?.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function ov({headCacheNode:e}){let t=null!==e?e.head:null,r=null!==e?e.prefetchHead:null,n=null!==r?r:t;return(0,O.useDeferredValue)(t,n)}function ob({actionQueue:e,globalError:t,webSocket:r,staticIndicatorState:n}){let a,i=(0,nZ.n5)(e),{canonicalUrl:s}=i,{searchParams:o,pathname:l}=(0,O.useMemo)(()=>{var e;let t=new URL(s,"http://n");return{searchParams:t.searchParams,pathname:eb(t.pathname,ar)?(e=t.pathname,process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!eb(e,ar)||0===an.length||(e=e.slice(an.length)).startsWith("/")||(e=`/${e}`),e):t.pathname}},[s]);(0,O.useEffect)(()=>{let e,t=(e=function e(t){let r=(e=>{if("string"==typeof e)return"children"===e?"":e.startsWith(t1.OG)?"page":e;let[t,,r]=e;switch(r){case"c":return`[...${t}]`;case"ci(..)(..)":return`(..)(..)[...${t}]`;case"ci(.)":return`(.)[...${t}]`;case"ci(..)":return`(..)[...${t}]`;case"ci(...)":return`(...)[...${t}]`;case"oc":return`[[...${t}]]`;case"d":default:return`[${t}]`;case"di(..)(..)":return`(..)(..)[${t}]`;case"di(.)":return`(.)[${t}]`;case"di(..)":return`(..)[${t}]`;case"di(...)":return`(...)[${t}]`}})(t[0]);if(r===t1.WO)return;if("page"===r)return[r];let n=t[1]??{},a=n.children?e(n.children):void 0;if(void 0!==a)return""===r?a:[aa(r),...a];for(let[t,a]of Object.entries(n)){if("children"===t)continue;let n=e(a);if(void 0!==n)return""===r?n:[aa(r),...n]}}(i.tree))?`/${e.join("/")}`:void 0;void 0!==t?window.next.__internal_src_page=t:delete window.next.__internal_src_page},[i.tree]),(0,O.useEffect)((
|
|||
|
|
|
|||
|
|
Original Error: ${n}`),"__NEXT_ERROR_CODE",{value:"E949",enumerable:!1,configurable:!0});e.stack="Error: "+e.message+a.slice(i),console.error(e);return}}}else"string"==typeof e&&(n=e);if(n)return void console.error(`Route ${t} errored during ${r}. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. No stack was provided.
|
|||
|
|
|
|||
|
|
Original Message: ${n}`);console.error(`Route ${t} errored during ${r}. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. The thrown value is logged just following this message`),console.error(e)}}let oR=require("next/dist/server/node-environment-extensions/fast-set-immediate.external.js"),ok=!0;function ox(){console.warn("Next.js cannot guarantee that Cache Components will run as expected due to the current runtime's implementation of `setTimeout()`.\nPlease report a github issue here: https://github.com/vercel/next.js/issues/new/")}function oP(){}function oC(e,...t){return new Promise((r,n)=>{let a,i=function(e=0){{let n=!0,a=null,i=!1,s=!1;function t(e){return i=!0,ok&&(0,oR.unpatchedSetImmediate)(()=>{s=!0}),e()}function r(e){return ok&&s&&(ok=!1,ox()),e()}return function(s){if(i)throw Object.defineProperty(new eM.z("Cannot schedule more timers into a group that already executed"),"__NEXT_ERROR_CODE",{value:"E935",enumerable:!1,configurable:!0});let o=setTimeout(n?t:r,e,s);if(n=!1,!ok)return o;try{"_idleStart"in o&&"number"==typeof o._idleStart?null===a?a=o._idleStart:o._idleStart=a:(ok=!1,ox())}catch(e){console.error(Object.defineProperty(new eM.z("An unexpected error occurred while adjusting `_idleStart` on an atomic timer",{cause:e}),"__NEXT_ERROR_CODE",{value:"E933",enumerable:!1,configurable:!0})),ok=!1,ox()}return o}}}(),s=[];s.push(i(()=>{try{(0,oR.DANGEROUSLY_runPendingImmediatesAfterCurrentTask)(),a=e(),(0,sQ.Q)(a)&&a.then(oP,oP)}catch(e){for(let e=1;e<s.length;e++)clearTimeout(s[e]);n(e)}}));for(let e=0;e<t.length;e++){let r=t[e],a=s.length;s.push(i(()=>{try{(0,oR.DANGEROUSLY_runPendingImmediatesAfterCurrentTask)(),r()}catch(e){for(;++a<s.length;)clearTimeout(s[a]);n(e)}}))}s.push(i(()=>{try{(0,oR.expectNoPendingImmediates)(),r(a)}catch(e){n(e)}}))})}let oT=require("next/dist/server/app-render/console-async-storage.external.js");class oA{constructor(){this.count=0,this.earlyListeners=[],this.listeners=[],this.tickPending=!1,this.pendingTimeoutCleanup=null,this.subscribedSignals=null,this.invokeListenersIfNoPendingReads=()=>{if(this.pendingTimeoutCleanup=null,0===this.count){for(let e=0;e<this.listeners.length;e++)this.listeners[e]();this.listeners.length=0}}}noMorePendingCaches(){var e;let t,r;this.tickPending||(this.tickPending=!0,queueMicrotask(()=>process.nextTick(()=>{if(this.tickPending=!1,0===this.count){for(let e=0;e<this.earlyListeners.length;e++)this.earlyListeners[e]();this.earlyListeners.length=0}}))),this.pendingTimeoutCleanup&&this.pendingTimeoutCleanup(),this.pendingTimeoutCleanup=(e=this.invokeListenersIfNoPendingReads,r=setImmediate(()=>{t=clearTimeout.bind(null,setTimeout(e,0))}),t=clearImmediate.bind(null,r),()=>t())}inputReady(){return new Promise(e=>{this.earlyListeners.push(e),0===this.count&&this.noMorePendingCaches()})}cacheReady(){return new Promise(e=>{this.listeners.push(e),0===this.count&&this.noMorePendingCaches()})}beginRead(){if(this.count++,this.pendingTimeoutCleanup&&(this.pendingTimeoutCleanup(),this.pendingTimeoutCleanup=null),null!==this.subscribedSignals)for(let e of this.subscribedSignals)e.beginRead()}endRead(){if(0===this.count)throw Object.defineProperty(new eM.z("CacheSignal got more endRead() calls than beginRead() calls"),"__NEXT_ERROR_CODE",{value:"E678",enumerable:!1,configurable:!0});if(this.count--,0===this.count&&this.noMorePendingCaches(),null!==this.subscribedSignals)for(let e of this.subscribedSignals)e.endRead()}hasPendingReads(){return this.count>0}trackRead(e){this.beginRead();let t=this.endRead.bind(this);return e.then(t,t),e}subscribeToReads(e){if(e===this)throw Object.defineProperty(new eM.z("A CacheSignal cannot subscribe to itself"),"__NEXT_ERROR_CODE",{value:"E679",enumerable:!1,configurable:!0});null===this.subscribedSignals&&(this.subscribedSignals=new Set),this.subscribedSignals.add(e);for(let t=0;t<this.count;t++)e.beginRead();return this.unsubscribeFromReads.bind(this,e)}unsubscribeFromReads(e){this.subscribedSignals&&this.subscribedSignals.delete(e)}}func
|
|||
|
|
${e}`),V(y),y}if((0,t_.RM)(y))r.statusCode=(0,t_.jT)(y),l.statusCode=r.statusCode,t=(0,t_.qe)(r.statusCode);else if((0,tE.n)(y)){t="redirect",r.statusCode=tx(y),l.statusCode=r.statusCode;let n=ey(tR(y),v),a=new Headers;(0,th.IN)(a,e.mutableCookies)&&Y("set-cookie",Array.from(a.values())),Y("location",n)}else f||(r.statusCode=500,l.statusCode=r.statusCode);let[m,g]=rU(b,d,S,A,rJ(n,!1),h,"/_not-found/page");try{if(s=await eq.workUnitAsyncStorage.run(e,lR,a,n,k.has(y.digest)?null:y,t),u=eq.workUnitAsyncStorage.run(e,ta,n.componentMod,s,Z,{filterStackFrame:o,onError:j}),null===K)throw V(y),y}catch(e){throw V(e),e}try{let{stream:t,allReady:r}=await eq.workUnitAsyncStorage.run(e,ts,(0,T.jsx)(lx,{reactServerStream:u,ServerInsertedHTMLProvider:N,preinitScripts:m,nonce:h,images:n.renderOpts.images}),{nonce:h,bootstrapScriptContent:q,bootstrapScripts:[g],formState:i});return r.finally(()=>{X.isRecording()&&X.end()}),await (c={inlinedDataStream:te(K.consume(),h,i),isStaticGeneration:!0!==O||!!C,deploymentId:n.sharedContext.deploymentId,getServerInsertedHTML:rF({polyfills:H,renderServerInsertedHTML:M,serverCapturedErrors:[],basePath:v,tracingMetadata:F}),getServerInsertedMetadata:U,validateRootLayout:!1},eo(t,c))}catch(e){throw V(e),e}}})}async function lO(e,t,r){let n=[],a=[],i=[],s=e.getReader(),o=!1;function l(){o||(o=!0,s.cancel())}r&&r.addEventListener("abort",l,{once:!0});try{for(;!o;){let{done:e,value:r}=await s.read();if(e){l();break}switch(t.currentStage){case nt.D.Before:throw Object.defineProperty(new eM.z("Unexpected stream chunk while in Before stage"),"__NEXT_ERROR_CODE",{value:"E942",enumerable:!1,configurable:!0});case nt.D.EarlyStatic:case nt.D.Static:n.push(r);case nt.D.EarlyRuntime:case nt.D.Runtime:a.push(r);case nt.D.Dynamic:i.push(r);break;case nt.D.Abandoned:break;default:t.currentStage}}}catch(e){if(!o)throw e}return{staticChunks:n,runtimeChunks:a,dynamicChunks:i}}async function lj(e,t){let r=0,n=e.getReader();for(t.onStage(nt.D.EarlyRuntime,()=>{n.cancel()});;){let{done:e,value:a}=await n.read();if(e)break;if(t.currentStage<=nt.D.Static)r+=a.byteLength;else{n.cancel();break}}return r}function l$(e,t,r,n){return{cookies:e.delayUntilStage(nt.D.Runtime,"cookies",t),earlyCookies:e.delayUntilStage(nt.D.EarlyRuntime,"cookies",t),mutableCookies:e.delayUntilStage(nt.D.Runtime,"cookies",r),earlyMutableCookies:e.delayUntilStage(nt.D.EarlyRuntime,"cookies",r),headers:e.delayUntilStage(nt.D.Runtime,"headers",n),earlyHeaders:e.delayUntilStage(nt.D.EarlyRuntime,"headers",n),sharedParamsParent:e.delayUntilStage(nt.D.Runtime,void 0,"<internal params>"),earlySharedParamsParent:e.delayUntilStage(nt.D.EarlyRuntime,void 0,"<internal params>"),sharedSearchParamsParent:e.delayUntilStage(nt.D.Runtime,void 0,"<internal searchParams>"),earlySharedSearchParamsParent:e.delayUntilStage(nt.D.EarlyRuntime,void 0,"<internal searchParams>"),connection:e.delayUntilStage(nt.D.Dynamic,"connection",void 0)}}async function lI(e,t,r,n,i,s,o,l,u){let c,{implicitTags:d,nonce:f,workStore:h}=o,p=new AbortController,m=new AbortController,g=new AbortController,{ServerInsertedHTMLProvider:y}=rN();c="prerender-client"===e?{type:"prerender-client",phase:"render",rootParams:n,fallbackRouteParams:i,implicitTags:d,renderSignal:g.signal,controller:p,cacheSignal:null,dynamicTracking:null,allowEmptyStaticShell:s,revalidate:ef.AR,expire:ef.AR,stale:ef.AR,tags:[...d.tags],prerenderResumeDataCache:null,renderResumeDataCache:null,hmrRefreshHash:void 0,varyParamsAccumulator:null}:{type:"validation-client",phase:"render",rootParams:n,implicitTags:d,renderSignal:g.signal,controller:p,cacheSignal:null,dynamicTracking:null,revalidate:ef.AR,expire:ef.AR,stale:ef.AR,tags:[...d.tags],prerenderResumeDataCache:null,renderResumeDataCache:null,hmrRefreshHash:void 0,varyParamsAccumulator:null,boundaryState:null,validationSamples:l,validationSampleTracking:u,fallbackRouteParams:i};let v=function(e,t,r){{let{Readable:n}=a("node:stream"),i=0,s=new n({read(){for(;i<e.length;)this.push(e[i]),i++}});return r.addEventListener("abort",()=>{for(;i<e.length;)s.push(e[i]),i++;for(;i<t.l
|
|||
|
|
${e}`),R}if(null===V)throw R;(0,t_.RM)(R)?(t.statusCode=(0,t_.jT)(R),n.statusCode=t.statusCode,e=(0,t_.qe)(t.statusCode)):(0,tE.n)(R)?(e="redirect",t.statusCode=tx(R),n.statusCode=t.statusCode,l=ey(tR(R),y),t.setHeader("location",l),G("location")):i||(t.statusCode=500,n.statusCode=t.statusCode);let[s,d]=rU(v,c,w,P,rJ(r,!1),h,"/_not-found/page"),S=Z={type:"prerender-legacy",phase:"render",rootParams:$,implicitTags:f,revalidate:void 0!==(null==Z?void 0:Z.revalidate)?Z.revalidate:ef.AR,expire:void 0!==(null==Z?void 0:Z.expire)?Z.expire:ef.AR,stale:void 0!==(null==Z?void 0:Z.stale)?Z.stale:ef.AR,tags:[...(null==Z?void 0:Z.tags)||f.tags]},_=await eq.workUnitAsyncStorage.run(S,lR,a,r,H.has(R.digest)?void 0:R,e),E=eq.workUnitAsyncStorage.run(S,ta,b,_,Q,{filterStackFrame:o,onError:z});try{let{stream:e}=await eq.workUnitAsyncStorage.run(S,ts,(0,T.jsx)(lx,{reactServerStream:E,ServerInsertedHTMLProvider:I,preinitScripts:s,nonce:h,images:r.renderOpts.images}),{nonce:h,bootstrapScripts:[d],formState:null});if(lF(g)){let e=await Y(V.asStream());n.flightData=e,await lz(e,S,b,m,r.pagePath,n)}let t=V.consumeAsStream();return{digestErrorsMap:H,ssrErrors:q,stream:await (u={inlinedDataStream:te(t,h,null),isStaticGeneration:!0,getServerInsertedHTML:rF({polyfills:L,renderServerInsertedHTML:D,serverCapturedErrors:[],basePath:y,tracingMetadata:M}),getServerInsertedMetadata:N,validateRootLayout:!1,deploymentId:r.sharedContext.deploymentId},eo(e,u)),dynamicAccess:null,collectedRevalidate:null!==Z?Z.revalidate:ef.AR,collectedExpire:null!==Z?Z.expire:ef.AR,collectedStale:K(null!==Z?Z.stale:ef.AR),collectedTags:null!==Z?Z.tags:null}}catch(e){throw e}}}let lB=async(e,t)=>{let r=rG(e).modules["global-error"];if(!r)throw Object.defineProperty(Error("Invariant: global-error module is required but not found in loader tree"),"__NEXT_ERROR_CODE",{value:"E983",enumerable:!1,configurable:!0});let{componentMod:{createElement:n}}=t,[a,i]=await rY({ctx:t,filePath:r[1],getComponent:r[0],injectedCSS:new Set,injectedJS:new Set});return{GlobalError:a,styles:i}};async function lz(e,t,r,n,a,i){let s,{clientModules:o,edgeRscModuleMapping:l,rscModuleMapping:u}=eJ(),c={moduleLoading:null,moduleMap:u,serverModuleMap:eY()},d=o$(n.experimental)(t.stale),f=n.experimental.prefetchInlining;if(f)if(n.isBuildTimePrerendering)i.prefetchHints=s=await r.collectPrefetchHints(e,d,o,c,f.maxSize,f.maxBundleSize);else{var h;s=(null==(h=n.prefetchHints)?void 0:h[a])??null}else s=null;i.segmentData=await r.collectSegmentData(n.cacheComponents,e,d,o,c,!!n.experimental.prefetchInlining,s)}require("next/dist/build/adapter/setup-node-env.external.js"),a("./dist/esm/shared/lib/modern-browserslist-target.js");let lq="build-manifest.json";[...process?.features?.typescript?["next.config.mts"]:[]],Symbol("polyfills");let lX=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,lV=/\/\[[^/]+\](?=\/|$)/;function lW(e,t=!0){return((0,nS.m1)(e)&&(e=(0,nS.$8)(e).interceptedRoute),t)?lV.test(e):lX.test(e)}function lG(e){return eb(e||"/","/_next/data")&&"/index"===(e=e.replace(/\/_next\/data\/[^/]{1,}/,"").replace(/\.json$/,""))?"/":e}var lJ=a("./dist/esm/shared/lib/page-path/ensure-leading-slash.js");function lK(e){let t=/^\/index(\/|$)/.test(e)&&!lW(e)?`/index${e}`:"/"===e?"/index":(0,lJ.A)(e);{let{posix:e}=a("path"),r=e.normalize(t);if(r!==t)throw new oz.MK(`Requested and resolved page mismatch: ${t} ${r}`)}return t}let lY=["ico","jpg","jpeg","png","svg"],lQ=["jpg","jpeg","png"],lZ=["jpg","jpeg","png","gif"],l0=["jpg","jpeg","png","gif"],l1=(e,t)=>t&&0!==t.length?`(?:\\.(${e.join("|")})|(\\.(${t.join("|")})))`:`(\\.(?:${e.join("|")}))`,l2=/^[\\/]favicon\.ico$/,l3=/^[\\/]robots\.txt$/,l4=/^[\\/]manifest\.json$/,l6=/^[\\/]manifest\.webmanifest$/,l8=/[\\/]sitemap\.xml$/,l9=new Map;var l5=a("./dist/esm/shared/lib/isomorphic/path.js"),l7=a.n(l5),ue=a("./tags-manifest.external");class ut{constructor(e){this.fs=e,this.tasks=[]}findOrCreateTask(e){for(let t of this.tasks)if(t[0]===e)return t;let t=this.fs.mkdir(e);t.catch(()=>{});let r=[e,t,[]];return this.tasks.push(r),r}append(e,t){let r=this.findOrCreateTask(l7().dirname(e)),
|
|||
|
|
//# sourceMappingURL=app-page-turbo.runtime.prod.js.map
|