UNPKG

next

Version:

The React Framework

32 lines 62.5 kB
(()=>{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 a(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 i(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]=i(e),{domain:a,expires:l,httponly:c,maxage:p,path:h,samesite:m,secure:f,partitioned:g,priority:v}=Object.fromEntries(s.map(([e,t])=>[e.toLowerCase(),t]));return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}({name:n,value:decodeURIComponent(o),domain:a,...l&&{expires:new Date(l)},...c&&{httpOnly:!0},..."string"==typeof p&&{maxAge:Number(p)},path:h,...m&&{sameSite:d.includes(t=(t=m).toLowerCase())?t:void 0},...f&&{secure:!0},...v&&{priority:u.includes(r=(r=v).toLowerCase())?r:void 0},...g&&{partitioned:!0}})}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(s,{RequestCookies:()=>c,ResponseCookies:()=>p,parseCookie:()=>i,parseSetCookie:()=>l,stringifyCookie:()=>a}),e.exports=((e,s,a,i)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let a of n(s))o.call(e,a)||void 0===a||t(e,a,{get:()=>s[a],enumerable:!(i=r(s,a))||i.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)for(let[e,r]of i(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])=>a(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])=>a(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:[];for(let e of Array.isArray(o)?o:function(e){if(!e)return[];var t,r,n,o,s,a=[],i=0;function l(){for(;i<e.length&&/\s/.test(e.charAt(i));)i+=1;return i<e.length}for(;i<e.length;){for(t=i,s=!1;l();)if(","===(r=e.charAt(i))){for(n=i,i+=1,l(),o=i;i<e.length&&"="!==(r=e.charAt(i))&&";"!==r&&","!==r;)i+=1;i<e.length&&"="===e.charAt(i)?(s=!0,i=o,a.push(e.substring(t,n)),t=i):i=n+1}else i+=1;(!s||i>=e.length)&&a.push(e.substring(t,e.length))}return a}(o)){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 r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,o=this._parsed;return o.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=a(r);t.append("set-cookie",e)}}(o,this._headers),this}delete(...e){let[t,r,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a).join("; ")}}},"./dist/compiled/cookie/index.js":e=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var t={};(()=>{/*!
 * 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),a=(r||{}).decode||e,i=0;i<s.length;i++){var l=s[i],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,a))}}return o},t.serialize=function(e,t,n){var s=n||{},a=s.encode||r;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var i=a(t);if(i&&!o.test(i))throw TypeError("argument val is invalid");var l=e+"="+i;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.js":(e,t)=>{"use strict";/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and 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=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),f=Symbol.for("react.client.reference");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case s:case u:case c:return e;default:switch(e=e&&e.$$typeof){case l:case d:case h:case p:case i:return e;default:return t}}case n:return t}}}t.ContextConsumer=i,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=h,t.Memo=p,t.Portal=n,t.Profiler=a,t.StrictMode=s,t.Suspense=u,t.SuspenseList=c,t.isContextConsumer=function(e){return g(e)===i},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return g(e)===d},t.isFragment=function(e){return g(e)===o},t.isLazy=function(e){return g(e)===h},t.isMemo=function(e){return g(e)===p},t.isPortal=function(e){return g(e)===n},t.isProfiler=function(e){return g(e)===a},t.isStrictMode=function(e){return g(e)===s},t.isSuspense=function(e){return g(e)===u},t.isSuspenseList=function(e){return g(e)===c},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===s||e===u||e===c||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===l||e.$$typeof===i||e.$$typeof===d||e.$$typeof===f||void 0!==e.getModuleId)},t.typeOf=g},"./dist/compiled/react-is/index.js":(e,t,r)=>{"use strict";e.exports=r("./dist/compiled/react-is/cjs/react-is.production.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:{}},a=!0;try{t[e](s,s.exports,n),a=!1}finally{a&&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,{R8:()=>v});let{env:o,stdout:s}=(null==(n=globalThis)?void 0:n.process)??{},a=o&&!o.NO_COLOR&&(o.FORCE_COLOR||(null==s?void 0:s.isTTY)&&!o.CI&&"dumb"!==o.TERM),i=(e,t,r,n)=>{let o=e.substring(0,n)+r,s=e.substring(n+t.length),a=s.indexOf(t);return~a?o+i(s,t,r,a):o+s},l=(e,t,r=e)=>a?n=>{let o=""+n,s=o.indexOf(t,e.length);return~s?e+i(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 m=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 f={wait:m(d("○")),error:u(d("⨯")),warn:p(d("⚠")),ready:"▲",info:m(d(" ")),event:c(d("✓")),trace:h(d("»"))},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=f[e];0===t.length?console[r](""):1===t.length&&"string"==typeof t[0]?console[r](" "+n+" "+t[0]):console[r](" "+n,...t)}("warn",...e)}},"./dist/esm/lib/constants.js":(e,t,r)=>{"use strict";r.d(t,{$1:()=>p,Oh:()=>h,UO:()=>c,_I:()=>d,bX:()=>i,g0:()=>l,iS:()=>a,kz:()=>n,qF:()=>s,r4:()=>o,xV:()=>u});let n="x-prerender-revalidate",o="x-prerender-revalidate-if-generated",s=31536e3,a="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",i="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",l="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",d="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",u="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",c="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",p="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",h="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",m={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser"};({...m,GROUP:{builtinReact:[m.reactServerComponents,m.actionBrowser],serverOnly:[m.reactServerComponents,m.actionBrowser,m.instrument,m.middleware],neutralTarget:[m.api],clientOnly:[m.serverSideRendering,m.appPagesBrowser],bundled:[m.reactServerComponents,m.actionBrowser,m.serverSideRendering,m.appPagesBrowser,m.shared,m.instrument],appPages:[m.reactServerComponents,m.serverSideRendering,m.appPagesBrowser,m.actionBrowser]}})},"./dist/esm/server/api-utils/index.js":(e,t,r)=>{"use strict";r.d(t,{C4:()=>c,Gx:()=>s,Ic:()=>a,PW:()=>l,Uc:()=>i,wE:()=>u});var n=r("./dist/esm/server/web/spec-extension/adapters/headers.js"),o=r("./dist/esm/lib/constants.js");function s(e,t){let r=n.o.from(e.headers);return{isOnDemandRevalidate:r.get(o.kz)===t.previewModeId,revalidateOnlyGenerated:r.has(o.r4)}}r("./lib/trace/tracer"),r("./dist/esm/server/lib/trace/constants.js");let a="__prerender_bypass",i="__next_preview_data",l=Symbol(i),d=Symbol(a);function u(e,t={}){if(d in e)return e;let{serialize:n}=r("./dist/compiled/cookie/index.js"),o=e.getHeader("Set-Cookie");return e.setHeader("Set-Cookie",[..."string"==typeof o?[o]:Array.isArray(o)?o:[],n(a,"",{expires:new Date(0),httpOnly:!0,sameSite:"none",secure:!0,path:"/",...void 0!==t.path?{path:t.path}:void 0}),n(i,"",{expires:new Date(0),httpOnly:!0,sameSite:"none",secure:!0,path:"/",...void 0!==t.path?{path:t.path}:void 0})]),Object.defineProperty(e,d,{value:!0,enumerable:!1}),e}function c({req:e},t,r){let n={configurable:!0,enumerable:!0},o={...n,writable:!0};Object.defineProperty(e,t,{...n,get:()=>{let n=r();return Object.defineProperty(e,t,{...o,value:n}),n},set:r=>{Object.defineProperty(e,t,{...o,value:r})}})}},"./dist/esm/server/api-utils/node/try-get-preview-data.js":(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r("./dist/esm/server/api-utils/index.js"),o=r("./dist/esm/server/web/spec-extension/cookies.js"),s=r("./dist/esm/server/web/spec-extension/adapters/headers.js");function a(e,t,a,i){var l,d;let u;if(a&&(0,n.Gx)(e,a).isOnDemandRevalidate)return!1;if(n.PW in e)return e[n.PW];let c=s.o.from(e.headers),p=new o.tm(c),h=null==(l=p.get(n.Ic))?void 0:l.value,m=null==(d=p.get(n.Uc))?void 0:d.value;if(h&&!m&&h===a.previewModeId){let t={};return Object.defineProperty(e,n.PW,{value:t,enumerable:!1}),t}if(!h&&!m)return!1;if(!h||!m||h!==a.previewModeId)return i||(0,n.wE)(t),!1;try{u=r("next/dist/compiled/jsonwebtoken").verify(m,a.previewModeSigningKey)}catch{return(0,n.wE)(t),!1}let{decryptWithSecret:f}=r("./dist/esm/server/crypto-utils.js"),g=f(Buffer.from(a.previewModeEncryptionKey),u.data);try{let t=JSON.parse(g);return Object.defineProperty(e,n.PW,{value:t,enumerable:!1}),t}catch{return!1}}},"./dist/esm/server/crypto-utils.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{decryptWithSecret:()=>i,encryptWithSecret:()=>a});let n=require("crypto");var o=r.n(n);let s="aes-256-gcm";function a(e,t){let r=o().randomBytes(16),n=o().randomBytes(64),a=o().pbkdf2Sync(e,n,1e5,32,"sha512"),i=o().createCipheriv(s,a,r),l=Buffer.concat([i.update(t,"utf8"),i.final()]),d=i.getAuthTag();return Buffer.concat([n,r,d,l]).toString("hex")}function i(e,t){let r=Buffer.from(t,"hex"),n=r.slice(0,64),a=r.slice(64,80),i=r.slice(80,96),l=r.slice(96),d=o().pbkdf2Sync(e,n,1e5,32,"sha512"),u=o().createDecipheriv(s,d,a);return u.setAuthTag(i),u.update(l)+u.final("utf8")}},"./dist/esm/server/lib/trace/constants.js":(e,t,r)=>{"use strict";var n,o,s,a,i,l,d,u,c,p,h,m;r.d(t,{Fx:()=>a,Wc:()=>d,vr:()=>l}),function(e){e.handleRequest="BaseServer.handleRequest",e.run="BaseServer.run",e.pipe="BaseServer.pipe",e.getStaticHTML="BaseServer.getStaticHTML",e.render="BaseServer.render",e.renderToResponseWithComponents="BaseServer.renderToResponseWithComponents",e.renderToResponse="BaseServer.renderToResponse",e.renderToHTML="BaseServer.renderToHTML",e.renderError="BaseServer.renderError",e.renderErrorToResponse="BaseServer.renderErrorToResponse",e.renderErrorToHTML="BaseServer.renderErrorToHTML",e.render404="BaseServer.render404"}(n||(n={})),function(e){e.loadDefaultErrorComponents="LoadComponents.loadDefaultErrorComponents",e.loadComponents="LoadComponents.loadComponents"}(o||(o={})),function(e){e.getRequestHandler="NextServer.getRequestHandler",e.getServer="NextServer.getServer",e.getServerRequestHandler="NextServer.getServerRequestHandler",e.createServer="createServer.createServer"}(s||(s={})),function(e){e.compression="NextNodeServer.compression",e.getBuildId="NextNodeServer.getBuildId",e.createComponentTree="NextNodeServer.createComponentTree",e.clientComponentLoading="NextNodeServer.clientComponentLoading",e.getLayoutOrPageModule="NextNodeServer.getLayoutOrPageModule",e.generateStaticRoutes="NextNodeServer.generateStaticRoutes",e.generateFsStaticRoutes="NextNodeServer.generateFsStaticRoutes",e.generatePublicRoutes="NextNodeServer.generatePublicRoutes",e.generateImageRoutes="NextNodeServer.generateImageRoutes.route",e.sendRenderResult="NextNodeServer.sendRenderResult",e.proxyRequest="NextNodeServer.proxyRequest",e.runApi="NextNodeServer.runApi",e.render="NextNodeServer.render",e.renderHTML="NextNodeServer.renderHTML",e.imageOptimizer="NextNodeServer.imageOptimizer",e.getPagePath="NextNodeServer.getPagePath",e.getRoutesManifest="NextNodeServer.getRoutesManifest",e.findPageComponents="NextNodeServer.findPageComponents",e.getFontManifest="NextNodeServer.getFontManifest",e.getServerComponentManifest="NextNodeServer.getServerComponentManifest",e.getRequestHandler="NextNodeServer.getRequestHandler",e.renderToHTML="NextNodeServer.renderToHTML",e.renderError="NextNodeServer.renderError",e.renderErrorToHTML="NextNodeServer.renderErrorToHTML",e.render404="NextNodeServer.render404",e.startResponse="NextNodeServer.startResponse",e.route="route",e.onProxyReq="onProxyReq",e.apiResolver="apiResolver",e.internalFetch="internalFetch"}(a||(a={})),(i||(i={})).startServer="startServer.startServer",function(e){e.getServerSideProps="Render.getServerSideProps",e.getStaticProps="Render.getStaticProps",e.renderToString="Render.renderToString",e.renderDocument="Render.renderDocument",e.createBodyResult="Render.createBodyResult"}(l||(l={})),function(e){e.renderToString="AppRender.renderToString",e.renderToReadableStream="AppRender.renderToReadableStream",e.getBodyResult="AppRender.getBodyResult",e.fetch="AppRender.fetch"}(d||(d={})),(u||(u={})).executeRoute="Router.executeRoute",(c||(c={})).runHandler="Node.runHandler",(p||(p={})).runHandler="AppRouteRouteHandlers.runHandler",function(e){e.generateMetadata="ResolveMetadata.generateMetadata",e.generateViewport="ResolveMetadata.generateViewport"}(h||(h={})),(m||(m={})).execute="Middleware.execute"},"./dist/esm/server/optimize-amp.js":(e,t,r)=>{"use strict";async function n(e,t){let n;try{n=r("next/dist/compiled/@ampproject/toolbox-optimizer")}catch(t){return e}return n.create(t).transformHtml(e,t)}r.d(t,{A:()=>n})},"./dist/esm/server/post-process.js":(e,t,r)=>{"use strict";function n(e){return null!=e}async function o(e,t,o,{inAmpMode:s,hybridAmp:a}){for(let i of[s?async t=>{let n=r("./dist/esm/server/optimize-amp.js").A;return t=await n(t,o.ampOptimizerConfig),!o.ampSkipValidation&&o.ampValidator&&await o.ampValidator(t,e),t}:null,(0,o.optimizeCss)?async e=>{let t=new(r("critters"))({ssrMode:!0,reduceInlineStyles:!1,path:o.distDir,publicPath:`${o.assetPrefix}/_next/`,preload:"media",fonts:!1,logLevel:process.env.CRITTERS_LOG_LEVEL||"warn",...o.optimizeCss});return await t.process(e)}:null,s||a?e=>e.replace(/&amp;amp=1/g,"&amp=1"):null].filter(n))i&&(t=await i(t));return t}r.d(t,{F:()=>o})},"./dist/esm/server/web/spec-extension/adapters/headers.js":(e,t,r)=>{"use strict";r.d(t,{o:()=>s});var n=r("./dist/esm/server/web/spec-extension/adapters/reflect.js");class o extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new o}}class s extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,o){if("symbol"==typeof r)return n.l.get(t,r,o);let s=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===s);if(void 0!==a)return n.l.get(t,a,o)},set(t,r,o,s){if("symbol"==typeof r)return n.l.set(t,r,o,s);let a=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===a);return n.l.set(t,i??r,o,s)},has(t,r){if("symbol"==typeof r)return n.l.has(t,r);let o=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===o);return void 0!==s&&n.l.has(t,s)},deleteProperty(t,r){if("symbol"==typeof r)return n.l.deleteProperty(t,r);let o=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===o);return void 0===s||n.l.deleteProperty(t,s)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return o.callable;default:return n.l.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new s(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},"./dist/esm/server/web/spec-extension/adapters/reflect.js":(e,t,r)=>{"use strict";r.d(t,{l:()=>n});class n{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},"./dist/esm/server/web/spec-extension/cookies.js":(e,t,r)=>{"use strict";r.d(t,{tm:()=>n.RequestCookies});var n=r("./dist/compiled/@edge-runtime/cookies/index.js")},"./dist/esm/shared/lib/modern-browserslist-target.js":e=>{e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},"./dist/server/ReactDOMServerPages.js":(e,t,r)=>{"use strict";let n;try{n=r("react-dom/server.edge")}catch(e){if("MODULE_NOT_FOUND"!==e.code&&"ERR_PACKAGE_PATH_NOT_EXPORTED"!==e.code)throw e;n=r("react-dom/server.browser")}e.exports=n},"./lib/trace/tracer":e=>{"use strict";e.exports=require("next/dist/server/lib/trace/tracer")},critters:e=>{"use strict";e.exports=require("critters")},"next/dist/compiled/@ampproject/toolbox-optimizer":e=>{"use strict";e.exports=require("next/dist/compiled/@ampproject/toolbox-optimizer")},"next/dist/compiled/jsonwebtoken":e=>{"use strict";e.exports=require("next/dist/compiled/jsonwebtoken")},"react-dom/server.browser":e=>{"use strict";e.exports=require("react-dom/server.browser")},"react-dom/server.edge":e=>{"use strict";e.exports=require("react-dom/server.edge")},path:e=>{"use strict";e.exports=require("path")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";let e,t,o;r.r(n),r.d(n,{PagesRouteModule:()=>e9,default:()=>e5,renderToHTML:()=>e2,vendored:()=>e6});var s,a={};r.r(a),r.d(a,{AmpStateContext:()=>A});var i={};r.r(i),r.d(i,{HeadManagerContext:()=>L});var l={};r.r(l),r.d(l,{LoadableContext:()=>I});var d={};r.r(d),r.d(d,{default:()=>q});var u={};r.r(u),r.d(u,{RouterContext:()=>U});var c={};r.r(c),r.d(c,{HtmlContext:()=>Y,useHtmlContext:()=>K});var p={};r.r(p),r.d(p,{ImageConfigContext:()=>eN});var h={};r.r(h),r.d(h,{PathParamsContext:()=>ek,PathnameContext:()=>eI,SearchParamsContext:()=>eL});var m={};r.r(m),r.d(m,{AppRouterContext:()=>eU,GlobalLayoutRouterContext:()=>eW,LayoutRouterContext:()=>ez,MissingSlotContext:()=>eV,TemplateContext:()=>eG});var f={};r.r(f),r.d(f,{ServerInsertedHTMLContext:()=>e3,useServerInsertedHTML:()=>e8});var g={};r.r(g),r.d(g,{AmpContext:()=>a,AppRouterContext:()=>m,HeadManagerContext:()=>i,HooksClientContext:()=>h,HtmlContext:()=>c,ImageConfigContext:()=>p,Loadable:()=>d,LoadableContext:()=>l,RouterContext:()=>u,ServerInsertedHtml:()=>f});class v{constructor({userland:e,definition:t}){this.userland=e,this.definition=t}}let y=require("react/jsx-runtime");var b=r("./dist/esm/server/api-utils/index.js");let x=require("react");var w=r.n(x),S=r("./dist/server/ReactDOMServerPages.js"),P=r.n(S);let _=require("styled-jsx");var C=r("./dist/esm/lib/constants.js");r("./dist/esm/shared/lib/modern-browserslist-target.js");let R={client:"client",server:"server",edgeServer:"edge-server"};R.client,R.server,R.edgeServer,Symbol("polyfills");let j=["/500"];function E(e){return Object.prototype.toString.call(e)}function T(e){if("[object Object]"!==E(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}let N=/^[A-Za-z_$][A-Za-z0-9_$]*$/;class $ extends Error{constructor(e,t,r,n){super(r?`Error serializing \`${r}\` returned from \`${t}\` in "${e}".
Reason: ${n}`:`Error serializing props returned from \`${t}\` in "${e}".
Reason: ${n}`)}}function O(e,t,r){if(!T(r))throw new $(e,t,"",`Props must be returned as a plain object from ${t}: \`{ props: { ... } }\` (received: \`${E(r)}\`).`);function n(r,n,o){if(r.has(n))throw new $(e,t,o,`Circular references cannot be expressed in JSON (references: \`${r.get(n)||"(self)"}\`).`);r.set(n,o)}return function r(o,s,a){let i=typeof s;if(null===s||"boolean"===i||"number"===i||"string"===i)return!0;if("undefined"===i)throw new $(e,t,a,"`undefined` cannot be serialized as JSON. Please use `null` or omit this value.");if(T(s)){if(n(o,s,a),Object.entries(s).every(([e,t])=>{let n=N.test(e)?`${a}.${e}`:`${a}[${JSON.stringify(e)}]`,s=new Map(o);return r(s,e,n)&&r(s,t,n)}))return!0;throw new $(e,t,a,"invariant: Unknown error encountered in Object.")}if(Array.isArray(s)){if(n(o,s,a),s.every((e,t)=>r(new Map(o),e,`${a}[${t}]`)))return!0;throw new $(e,t,a,"invariant: Unknown error encountered in Array.")}throw new $(e,t,a,"`"+i+"`"+("object"===i?` ("${Object.prototype.toString.call(s)}")`:"")+" cannot be serialized as JSON. Please only return JSON serializable data types.")}(new Map,r,"")}let A=w().createContext({}),L=w().createContext({}),I=w().createContext(null),k=[],M=[];function D(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 F{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 B(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 F(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=w().useContext(I);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let s=w().useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return w().useImperativeHandle(t,()=>({retry:n.retry}),[]),w().useMemo(()=>{var t;return s.loading||s.error?w().createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:n.retry}):s.loaded?w().createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return k.push(o),s.preload=()=>o(),s.displayName="LoadableComponent",w().forwardRef(s)}(D,e)}function H(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return H(e,t)})}B.preloadAll=()=>new Promise((e,t)=>{H(k).then(e,t)}),B.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>t();H(M,e).then(r,r)}));let q=B,U=w().createContext(null);function z(e){return e.startsWith("/")?e:"/"+e}let W=["(..)(..)","(.)","(..)","(...)"],G=/\/\[[^/]+?\](?=\/|$)/;function V(e){return void 0!==e.split("/").find(e=>W.find(t=>e.startsWith(t)))&&(e=function(e){let t,r,n;for(let o of e.split("/"))if(r=W.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=z(t.split("/").reduce((e,t,r,n)=>t?"("===t[0]&&t.endsWith(")")||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t:e,"")),r){case"(.)":n="/"===t?`/${n}`:t+"/"+n;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);n=t.split("/").slice(0,-1).concat(n).join("/");break;case"(...)":n="/"+n;break;case"(..)(..)":let o=t.split("/");if(o.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);n=o.slice(0,-2).concat(n).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:n}}(e).interceptedRoute),G.test(e)}function J(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function X(e){return e.finished||e.headersSent}async function Q(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await Q(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&X(r))return n;if(!n)throw Error('"'+J(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}"undefined"!=typeof performance&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class Z extends Error{}let Y=(0,x.createContext)(void 0);function K(){let e=(0,x.useContext)(Y);if(!e)throw Error("<Html> should not be imported outside of pages/_document.\nRead more: https://nextjs.org/docs/messages/no-document-import-in-page");return e}let ee=Symbol.for("NextInternalRequestMeta");function et(e,t){let r=e[ee]||{};return"string"==typeof t?r[t]:r}!function(e){e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(s||(s={}));let er=new Set([301,302,303,307,308]);function en(e){return e.statusCode||(e.permanent?s.PermanentRedirect:s.TemporaryRedirect)}var eo=r("./lib/trace/tracer"),es=r("./dist/esm/server/lib/trace/constants.js");function ea(){}new Uint8Array([60,104,116,109,108]),new Uint8Array([60,98,111,100,121]),new Uint8Array([60,47,104,101,97,100,62]),new Uint8Array([60,47,98,111,100,121,62]),new Uint8Array([60,47,104,116,109,108,62]),new Uint8Array([60,47,98,111,100,121,62,60,47,104,116,109,108,62]);let ei=new TextEncoder;function el(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}async function ed(e){let t=e.getReader(),r=[];for(;;){let{done:e,value:n}=await t.read();if(e)break;r.push(n)}return Buffer.concat(r)}async function eu(e){let t=new TextDecoder("utf-8",{fatal:!0}),r="";for await(let n of e)r+=t.decode(n,{stream:!0});return r+t.decode()}function ec(e){return e.replace(/\/$/,"")||"/"}function ep(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 eh(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:o}=ep(e);return""+t+r+n+o}function em(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:o}=ep(e);return""+r+t+n+o}function ef(e,t){if("string"!=typeof e)return!1;let{pathname:r}=ep(e);return r===t||r.startsWith(t+"/")}function eg(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}let ev=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function ey(e,t){return new URL(String(e).replace(ev,"localhost"),t&&String(t).replace(ev,"localhost"))}let eb=Symbol("NextURLInternal");class ex{constructor(e,t,r){let n,o;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,o=r||{}):o=r||t||{},this[eb]={url:ey(e,n??o.base),options:o,basePath:""},this.analyze()}analyze(){var e,t,r,n,o;let s=function(e,t){var r,n;let{basePath:o,i18n:s,trailingSlash:a}=null!=(r=t.nextConfig)?r:{},i={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):a};o&&ef(i.pathname,o)&&(i.pathname=function(e,t){if(!ef(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}(i.pathname,o),i.basePath=o);let l=i.pathname;if(i.pathname.startsWith("/_next/data/")&&i.pathname.endsWith(".json")){let e=i.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];i.buildId=r,l="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(i.pathname=l)}if(s){let e=t.i18nProvider?t.i18nProvider.analyze(i.pathname):eg(i.pathname,s.locales);i.locale=e.detectedLocale,i.pathname=null!=(n=e.pathname)?n:i.pathname,!e.detectedLocale&&i.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(l):eg(l,s.locales)).detectedLocale&&(i.locale=e.detectedLocale)}return i}(this[eb].url.pathname,{nextConfig:this[eb].options.nextConfig,parseData:!process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,i18nProvider:this[eb].options.i18nProvider}),a=function(e,t){let r;if((null==t?void 0:t.host)&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}(this[eb].url,this[eb].options.headers);this[eb].domainLocale=this[eb].options.i18nProvider?this[eb].options.i18nProvider.detectDomainLocale(a):function(e,t,r){if(e)for(let s of(r&&(r=r.toLowerCase()),e)){var n,o;if(t===(null==(n=s.domain)?void 0:n.split(":",1)[0].toLowerCase())||r===s.defaultLocale.toLowerCase()||(null==(o=s.locales)?void 0:o.some(e=>e.toLowerCase()===r)))return s}}(null==(t=this[eb].options.nextConfig)?void 0:null==(e=t.i18n)?void 0:e.domains,a);let i=(null==(r=this[eb].domainLocale)?void 0:r.defaultLocale)||(null==(o=this[eb].options.nextConfig)?void 0:null==(n=o.i18n)?void 0:n.defaultLocale);this[eb].url.pathname=s.pathname,this[eb].defaultLocale=i,this[eb].basePath=s.basePath??"",this[eb].buildId=s.buildId,this[eb].locale=s.locale??i,this[eb].trailingSlash=s.trailingSlash}formatPathname(){var e;let t;return t=function(e,t,r,n){if(!t||t===r)return e;let o=e.toLowerCase();return!n&&(ef(o,"/api")||ef(o,"/"+t.toLowerCase()))?e:eh(e,"/"+t)}((e={basePath:this[eb].basePath,buildId:this[eb].buildId,defaultLocale:this[eb].options.forceLocale?void 0:this[eb].defaultLocale,locale:this[eb].locale,pathname:this[eb].url.pathname,trailingSlash:this[eb].trailingSlash}).pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix),(e.buildId||!e.trailingSlash)&&(t=ec(t)),e.buildId&&(t=em(eh(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=eh(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:em(t,"/"):ec(t)}formatSearch(){return this[eb].url.search}get buildId(){return this[eb].buildId}set buildId(e){this[eb].buildId=e}get locale(){return this[eb].locale??""}set locale(e){var t,r;if(!this[eb].locale||!(null==(r=this[eb].options.nextConfig)?void 0:null==(t=r.i18n)?void 0:t.locales.includes(e)))throw TypeError(`The NextURL configuration includes no locale "${e}"`);this[eb].locale=e}get defaultLocale(){return this[eb].defaultLocale}get domainLocale(){return this[eb].domainLocale}get searchParams(){return this[eb].url.searchParams}get host(){return this[eb].url.host}set host(e){this[eb].url.host=e}get hostname(){return this[eb].url.hostname}set hostname(e){this[eb].url.hostname=e}get port(){return this[eb].url.port}set port(e){this[eb].url.port=e}get protocol(){return this[eb].url.protocol}set protocol(e){this[eb].url.protocol=e}get href(){let e=this.formatPathname(),t=this.formatSearch();return`${this.protocol}//${this.host}${e}${t}${this.hash}`}set href(e){this[eb].url=ey(e),this.analyze()}get origin(){return this[eb].url.origin}get pathname(){return this[eb].url.pathname}set pathname(e){this[eb].url.pathname=e}get hash(){return this[eb].url.hash}set hash(e){this[eb].url.hash=e}get search(){return this[eb].url.search}set search(e){this[eb].url.search=e}get password(){return this[eb].url.password}set password(e){this[eb].url.password=e}get username(){return this[eb].url.username}set username(e){this[eb].url.username=e}get basePath(){return this[eb].basePath}set basePath(e){this[eb].basePath=e.startsWith("/")?e:`/${e}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new ex(String(this),this[eb].options)}}r("./dist/esm/server/web/spec-extension/cookies.js"),Symbol("internal request"),Request,Symbol.for("edge-runtime.inspect.custom");let ew="ResponseAborted";class eS extends Error{constructor(...e){super(...e),this.name=ew}}class eP{constructor(){let e,t;this.promise=new Promise((r,n)=>{e=r,t=n}),this.resolve=e,this.reject=t}}let e_=0,eC=0,eR=0;function ej(e){return(null==e?void 0:e.name)==="AbortError"||(null==e?void 0:e.name)===ew}async function eE(e,t,r){try{let{errored:n,destroyed:o}=t;if(n||o)return;let s=function(e){let t=new AbortController;return e.once("close",()=>{e.writableFinished||t.abort(new eS)}),t}(t),a=function(e,t){let r=!1,n=new eP;function o(){n.resolve()}e.on("drain",o),e.once("close",()=>{e.off("drain",o),n.resolve()});let s=new eP;return e.once("finish",()=>{s.resolve()}),new WritableStream({write:async t=>{if(!r){if(r=!0,"performance"in globalThis&&process.env.NEXT_OTEL_PERFORMANCE_PREFIX){let e=function(e={}){let t=0===e_?void 0:{clientComponentLoadStart:e_,clientComponentLoadTimes:eC,clientComponentLoadCount:eR};return e.reset&&(e_=0,eC=0,eR=0),t}();e&&performance.measure(`${process.env.NEXT_OTEL_PERFORMANCE_PREFIX}:next-client-component-loading`,{start:e.clientComponentLoadStart,end:e.clientComponentLoadStart+e.clientComponentLoadTimes})}e.flushHeaders(),(0,eo.getTracer)().trace(es.Fx.startResponse,{spanName:"start response"},()=>void 0)}try{let r=e.write(t);"flush"in e&&"function"==typeof e.flush&&e.flush(),r||(await n.promise,n=new eP)}catch(t){throw e.end(),Error("failed to write chunk to response",{cause:t})}},abort:t=>{e.writableFinished||e.destroy(t)},close:async()=>{if(t&&await t,!e.writableFinished)return e.end(),s.promise}})}(t,r);await e.pipeTo(a,{signal:s.signal})}catch(e){if(ej(e))return;throw Error("failed to pipe response",{cause:e})}}class eT{static fromStatic(e){return new eT(e,{metadata:{}})}constructor(e,{contentType:t,waitUntil:r,metadata:n}){this.response=e,this.contentType=t,this.metadata=n,this.waitUntil=r}assignMetadata(e){Object.assign(this.metadata,e)}get isNull(){return null===this.response}get isDynamic(){return"string"!=typeof this.response}toUnchunkedBuffer(e=!1){if(null===this.response)throw Error("Invariant: null responses cannot be unchunked");if("string"!=typeof this.response){if(!e)throw Error("Invariant: dynamic responses cannot be unchunked. This is a bug in Next.js");return ed(this.readable)}return Buffer.from(this.response)}toUnchunkedString(e=!1){if(null===this.response)throw Error("Invariant: null responses cannot be unchunked");if("string"!=typeof this.response){if(!e)throw Error("Invariant: dynamic responses cannot be unchunked. This is a bug in Next.js");return eu(this.readable)}return this.response}get readable(){if(null===this.response)throw Error("Invariant: null responses cannot be streamed");if("string"==typeof this.response)throw Error("Invariant: static responses cannot be streamed");return Buffer.isBuffer(this.response)?el(this.response):Array.isArray(this.response)?function(...e){if(0===e.length)throw Error("Invariant: chainStreams requires at least one stream");if(1===e.length)return e[0];let{readable:t,writable:r}=new TransformStream,n=e[0].pipeTo(r,{preventClose:!0}),o=1;for(;o<e.length-1;o++){let t=e[o];n=n.then(()=>t.pipeTo(r,{preventClose:!0}))}let s=e[o];return(n=n.then(()=>s.pipeTo(r))).catch(ea),t}(...this.response):this.response}chain(e){var t;let r;if(null===this.response)throw Error("Invariant: response is null. This is a bug in Next.js");"string"==typeof this.response?r=[(t=this.response,new ReadableStream({start(e){e.enqueue(ei.encode(t)),e.close()}}))]:Array.isArray(this.response)?r=this.response:Buffer.isBuffer(this.response)?r=[el(this.response)]:r=[this.response],r.push(e),this.response=r}async pipeTo(e){try{await this.readable.pipeTo(e,{preventClose:!0}),this.waitUntil&&await this.waitUntil,await e.close()}catch(t){if(ej(t)){await e.abort(t);return}throw t}}async pipeToNodeResponse(e){await eE(this.readable,e,this.waitUntil)}}let eN=w().createContext({deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],unoptimized:!1});var e$=r("./dist/compiled/strip-ansi/index.js"),eO=r.n(e$);let eA=["__nextFallback","__nextLocale","__nextInferredLocaleFromDefault","__nextDefaultLocale","__nextIsNotFound","_rsc"],eL=(0,x.createContext)(null),eI=(0,x.createContext)(null),ek=(0,x.createContext)(null),eM=/[|\\{}()[\]^$+*?.-]/,eD=/[|\\{}()[\]^$+*?.-]/g;function eF(e){return eM.test(e)?e.replace(eD,"\\$&"):e}let eB=/\[((?:\[.*\])|.+)\]/;function eH(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function eq(e){let{children:t,router:r,...n}=e,o=(0,x.useRef)(n.isAutoExport),s=(0,x.useMemo)(()=>{let e;let t=o.current;if(t&&(o.current=!1),V(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,y.jsx)(eI.Provider,{value:s,children:t})}let eU=w().createContext(null),ez=w().createContext(null),eW=w().createContext(null),eG=w().createContext(null),eV=w().createContext(new Set),eJ=Symbol.for("NextjsError"),eX="<!DOCTYPE html>";function eQ(){throw Error('No router instance found. you should only use "next/router" inside the client side of your app. https://nextjs.org/docs/messages/no-router-instance')}async function eZ(e){let t=await P().renderToReadableStream(e);return await t.allReady,eu(t)}e=r("./dist/esm/server/api-utils/node/try-get-preview-data.js").m,t=r("./dist/esm/build/output/log.js").R8,o=r("./dist/esm/server/post-process.js").F;class eY{constructor(e,t,r,{isFallback:n},o,s,a,i,l,d,u,c){this.route=e.replace(/\/$/,"")||"/",this.pathname=e,this.query=t,this.asPath=r,this.isFallback=n,this.basePath=s,this.locale=a,this.locales=i,this.defaultLocale=l,this.isReady=o,this.domainLocales=d,this.isPreview=!!u,this.isLocaleDomain=!!c}push(){eQ()}replace(){eQ()}reload(){eQ()}back(){eQ()}forward(){eQ()}prefetch(){eQ()}beforePopState(){eQ()}}function eK(e,t,r){return(0,y.jsx)(e,{Component:t,...r})}let e0=(e,t)=>{let r=`invalid-${e.toLocaleLowerCase()}-value`;return`Additional keys were returned from \`${e}\`. Properties intended for your component must be nested under the \`props\` key, e.g.:

	return { props: { title: 'My Title', content: '...' } }

Keys that need to be moved: ${t.join(", ")}.
Read more: https://nextjs.org/docs/messages/${r}`};function e1(e,t,r){let{destination:n,permanent:o,statusCode:s,basePath:a}=e,i=[],l=void 0!==s,d=void 0!==o;d&&l?i.push("`permanent` and `statusCode` can not both be provided"):d&&"boolean"!=typeof o?i.push("`permanent` must be `true` or `false`"):l&&!er.has(s)&&i.push(`\`statusCode\` must undefined or one of ${[...er].join(", ")}`);let u=typeof n;"string"!==u&&i.push(`\`destination\` should be string but received ${u}`);let c=typeof a;if("undefined"!==c&&"boolean"!==c&&i.push(`\`basePath\` should be undefined or a false, received ${c}`),i.length>0)throw Error(`Invalid redirect object returned from ${r} for ${t.url}
`+i.join(" and ")+"\nSee more info here: https://nextjs.org/docs/messages/invalid-redirect-gssp")}async function e4(n,s,a,i,l,d){var u,c;let p,h,m,f;(0,b.C4)({req:n},"cookies",(u=n.headers,function(){let{cookie:e}=u;if(!e)return{};let{parse:t}=r("./dist/compiled/cookie/index.js");return t(Array.isArray(e)?e.join("; "):e)}));let g={};if(g.assetQueryString=l.dev&&l.assetQueryString||"",l.dev&&!g.assetQueryString){let e=(n.headers["user-agent"]||"").toLowerCase();e.includes("safari")&&!e.includes("chrome")&&(g.assetQueryString=`?ts=${Date.now()}`)}l.deploymentId&&(g.assetQueryString+=`${g.assetQueryString?"&":"?"}dpl=${l.deploymentId}`),i=Object.assign({},i);let{err:v,dev:x=!1,ampPath:w="",pageConfig:S={},buildManifest:R,reactLoadableManifest:E,ErrorDebug:T,getStaticProps:N,getStaticPaths:$,getServerSideProps:k,isNextDataRequest:M,params:D,previewProps:F,basePath:B,images:H,runtime:G,isExperimentalCompile:K,expireTime:ee}=l,{App:er}=d,ea=g.assetQueryString,ei=d.Document,el=l.Component,ed=!!i.__nextFallback,ep=i.__nextNotFoundSrcPage;!function(e){for(let t of eA)delete e[t]}(i);let eh=!!N,em=eh&&l.nextExport,ef=er.getInitialProps===er.origGetInitialProps,eg=!!(null==el?void 0:el.getInitialProps),ev=null==el?void 0:el.unstable_scriptLoader,ey=V(a),eb="/_error"===a&&el.getInitialProps===el.origGetInitialProps;l.nextExport&&eg&&!eb&&t(`Detected getInitialProps on page '${a}' 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 ex=!eg&&ef&&!eh&&!k;if(ex&&!x&&K&&(s.setHeader("Cache-Control",function({revalidate:e,expireTime:t}){let r="number"==typeof e&&void 0!==t?e>=t?"":`stale-while-revalidate=${t-e}`:"stale-while-revalidate";return 0===e?"private, no-cache, no-store, max-age=0, must-revalidate":"number"==typeof e?`s-maxage=${e}, ${r}`:`s-maxage=${C.qF}, ${r}`}({revalidate:!1,expireTime:ee})),ex=!1),eg&&eh)throw Error(C.iS+` ${a}`);if(eg&&k)throw Error(C.bX+` ${a}`);if(k&&eh)throw Error(C.g0+` ${a}`);if(k&&"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($&&!ey)throw Error(`getStaticPaths is only allowed for dynamic SSG pages and was found on '${a}'.
Read more: https://nextjs.org/docs/messages/non-dynamic-getstaticpaths-usage`);if($&&!eh)throw Error(`getStaticPaths was added without a getStaticProps in ${a}. Without getStaticProps, getStaticPaths does nothing`);if(eh&&ey&&!$)throw Error(`getStaticPaths is required for dynamic SSG pages and is missing for '${a}'.
Read more: https://nextjs.org/docs/messages/invalid-getstaticpaths-value`);let ew=l.resolvedAsPath||n.url;if(x){let{isValidElementType:e}=r("./dist/compiled/react-is/index.js");if(!e(el))throw Error(`The default export is not a React Component in page: "${a}"`);if(!e(er))throw Error('The default export is not a React Component in page: "/_app"');if(!e(ei))throw Error('The default export is not a React Component in page: "/_document"');if((ex||ed)&&(i={...i.amp?{amp:i.amp}:{}},ew=`${a}${n.url.endsWith("/")&&"/"!==a&&!ey?"/":""}`,n.url=a),"/404"===a&&(eg||k))throw Error(`\`pages/404\` ${C._I}`);if(j.includes(a)&&(eg||k))throw Error(`\`pages${a}\` ${C._I}`)}for(let e of["getStaticProps","getServerSideProps","getStaticPaths"])if(null==el?void 0:el[e])throw Error(`page ${a} ${e} ${C.Oh}`);await q.preloadAll(),(eh||k)&&!ed&&F&&(m=!1!==(p=e(n,s,F,!!l.multiZoneDraftMode)));let eS=new eY(a,i,ew,{isFallback:ed},!!(k||eg||!ef&&!eh||K),B,l.locale,l.locales,l.defaultLocale,l.domainLocales,m,et(n,"isLocaleDomain")),eP={back(){eS.back()},forward(){eS.forward()},refresh(){eS.reload()},hmrRefresh(){},push(e,t){let{scroll:r}=void 0===t?{}:t;eS.push(e,void 0,{scroll:r})},replace(e,t){let{scroll:r}=void 0===t?{}:t;eS.replace(e,void 0,{scroll:r})},prefetch(e){eS.prefetch(e)}},e_={},eC=(0,_.createStyleRegistry)(),eR={ampFirst:!0===S.amp,hasQuery:!!i.amp,hybrid:"hybrid"===S.amp},ej=function(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}(eR),eE=function(e){void 0===e&&(e=!1);let t=[(0,y.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,y.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}(ej),e$=[],eI={};ev&&(eI.beforeInteractive=[].concat(ev()).filter(e=>"beforeInteractive"===e.props.strategy).map(e=>e.props));let eM=({children:e})=>(0,y.jsx)(eU.Provider,{value:eP,children:(0,y.jsx)(eL.Provider,{value:eS.isReady&&eS.query?new URL(eS.asPath,"http://n").searchParams:new URLSearchParams,children:(0,y.jsx)(eq,{router:eS,isAutoExport:ex,children:(0,y.jsx)(ek.Provider,{value:function(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys(function(e){let{parameterizedRoute:t,groups:r}=function(e){let t=ec(e).slice(1).split("/"),r={},n=1;return{parameterizedRoute:t.map(e=>{let t=W.find(t=>e.startsWith(t)),o=e.match(eB);if(t&&o){let{key:e,optional:s,repeat:a}=eH(o[1]);return r[e]={pos:n++,repeat:a,optional:s},"/"+eF(t)+"([^/]+?)"}if(!o)return"/"+eF(e);{let{key:e,repeat:t,optional:s}=eH(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).groups))t[r]=e.query[r];return t}(eS),children:(0,y.jsx)(U.Provider,{value:eS,children:(0,y.jsx)(A.Provider,{value:eR,children:(0,y.jsx)(L.Provider,{value:{updateHead:e=>{eE=e},updateScripts:e=>{e_=e},scripts:eI,mountedInstances:new Set},children:(0,y.jsx)(I.Provider,{value:e=>e$.push(e),children:(0,y.jsx)(_.StyleRegistry,{registry:eC,children:(0,y.jsx)(eN.Provider,{value:H,children:e})})})})})})})})})}),eD=()=>null,ez=({children:e})=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(eD,{}),(0,y.jsx)(eM,{children:(0,y.jsxs)(y.Fragment,{children:[x?(0,y.jsxs)(y.Fragment,{children:[e,(0,y.jsx)(eD,{})]}):e,(0,y.jsx)(eD,{})]})})]}),eW={err:v,req:ex?void 0:n,res:ex?void 0:s,pathname:a,query:i,asPath:ew,locale:l.locale,locales:l.locales,defaultLocale:l.defaultLocale,AppTree:e=>(0,y.jsx)(ez,{children:eK(er,el,{...e,router:eS})}),defaultGetInitialProps:async(e,t={})=>{let{html:r,head:n}=await e.renderPage({enhanceApp:e=>t=>(0,y.jsx)(e,{...t})}),o=eC.styles({nonce:t.nonce});return eC.flush(),{html:r,head:n,styles:o}}},eG=!eh&&(l.nextExport||x&&(ex||ed)),eV=()=>{let e=eC.styles();return eC.flush(),(0,y.jsx)(y.Fragment,{children:e})};if(h=await Q(er,{AppTree:eW.AppTree,Component:el,router:eS,ctx:eW}),(eh||k)&&m&&(h.__N_PREVIEW=!0),eh&&(h.__N_SSG=!0),eh&&!ed){let e,t;try{e=await (0,eo.getTracer)().trace(es.vr.getStaticProps,{spanName:`getStaticProps ${a}`,attributes:{"next.route":a}},()=>N({...ey?{params:D}:void 0,...m?{draftMode:!0,preview:!0,previewData:p}:void 0,locales:l.locales,locale:l.locale,defaultLocale:l.defaultLocale,revalidateReason:l.isOnDemandRevalidate?"on-demand":em?"build":"stale"}))}catch(e){throw e&&"ENOENT"===e.code&&delete e.code,e}if(null==e)throw Error(C.xV);let r=Object.keys(e).filter(e=>"revalidate"!==e&&"props"!==e&&"redirect"!==e&&"notFound"!==e);if(r.includes("unstable_revalidate"))throw Error(C.$1);if(r.length)throw Error(e0("getStaticProps",r));if("notFound"in e&&e.notFound){if("/404"===a)throw Error('The /404 page can not return notFound in "getStaticProps", please remove it to continue!');g.isNotFound=!0}if("redirect"in e&&e.redirect&&"object"==typeof e.redirect){if(e1(e.redirect,n,"getStaticProps"),em)throw Error(`\`redirect\` can not be returned from getStaticProps during prerendering (${n.url})
See more info here: https://nextjs.org/docs/messages/gsp-redirect-during-prerender`);e.props={__N_REDIRECT:e.redirect.destination,__N_REDIRECT_STATUS:en(e.redirect)},void 0!==e.redirect.basePath&&(e.props.__N_REDIRECT_BASE_PATH=e.redirect.basePath),g.isRedirect=!0}if((x||em)&&!g.isNotFound&&!O(a,"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(h.pageProps=Object.assign({},h.pageProps,"props"in e?e.props:void 0),g.revalidate=t,g.pageData=h,g.isNotFound)return new eT(null,{metadata:g})}if(k&&(h.__N_SSP=!0),k&&!ed){let e;let t=!1;try{e=await (0,eo.getTracer)().trace(es.vr.getServerSideProps,{spanName:`getServerSideProps ${a}`,attributes:{"next.route":a}},async()=>k({req:n,res:s,query:i,resolvedUrl:l.resolvedUrl,...ey?{params:D}:void 0,...!1!==p?{draftMode:!0,preview:!0,previewData:p}:void 0,locales:l.locales,locale:l.locale,defaultLocale:l.defaultLocale})),g.revalidate=0}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(C.UO);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: ${a}`);if(e.unstable_redirect)throw Error(`unstable_redirect has been renamed to redirect, please update the field to continue. Page: ${a}`);if(r.length)throw Error(e0("getServerSideProps",r));if("notFound"in e&&e.notFound){if("/404"===a)throw Error('The /404 page can not return notFound in "getStaticProps", please remove it to continue!');return g.isNotFound=!0,new eT(null,{metadata:g})}if("redirect"in e&&"object"==typeof e.redirect&&(e1(e.redirect,n,"getServerSideProps"),e.props={__N_REDIRECT:e.redirect.destination,__N_REDIRECT_STATUS:en(e.redirect)},void 0!==e.redirect.basePath&&(e.props.__N_REDIRECT_BASE_PATH=e.redirect.basePath),g.isRedirect=!0),t&&(e.props=await e.props),(x||em)&&!O(a,"getServerSideProps",e.props))throw Error("invariant: getServerSideProps did not return valid props. Please report this.");h.pageProps=Object.assign({},h.pageProps,e.props),g.pageData=h}if(M&&!eh||g.isRedirect)return new eT(JSON.stringify(h),{metadata:g});if(ed&&(h.pageProps={}),X(s)&&!eh)return new eT(null,{metadata:g});let eQ=R;if(ex&&ey){let e;let t=(e=(function(e){let t=/^\/index(\/|$)/.test(e)&&!V(e)?"/index"+e:"/"===e?"/index":z(e);{let{posix:e}=r("path"),n=e.normalize(t);if(n!==t)throw new Z("Requested and resolved page mismatch: "+t+" "+n)}return t})(a).replace(/\\/g,"/")).startsWith("/index/")&&!V(e)?e.slice(6):"/index"!==e?e:"/";t in eQ.pages&&(eQ={...eQ,pages:{...eQ.pages,[t]:[...eQ.pages[t],...eQ.lowPriorityFiles.filter(e=>e.includes("_buildManifest"))]},lowPriorityFiles:eQ.lowPriorityFiles.filter(e=>!e.includes("_buildManifest"))})}let e4=({children:e})=>ej?e:(0,y.jsx)("div",{id:"__next",children:e}),e2=async()=>{let e,t;async function r(e){let t=async(t={})=>{if(eW.err&&T)return e&&e(er,el),{html:await eZ((0,y.jsx)(e4,{children:(0,y.jsx)(T,{error:eW.err})})),head:eE};if(x&&(h.router||h.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:er,Component:t(el)}:{App:t.enhanceApp?t.enhanceApp(er):er,Component:t.enhanceComponent?t.enhanceComponent(el):el},o=await e(r,n);return await o.allReady,{html:await eu(o),head:eE}},r={...eW,renderPage:t},n=await Q(ei,r);if(X(s)&&!eh)return null;if(!n||"string"!=typeof n.html)throw Error(`"${J(ei)}.getInitialProps()" should resolve to an object with a "html" prop set with a valid html string`);return{docProps:n,documentCtx:r}}ei.__NEXT_BUILTIN_DOCUMENT__;let n=(e,t)=>{let r=e||er,n=t||el;return eW.err&&T?(0,y.jsx)(e4,{children:(0,y.jsx)(T,{error:eW.err})}):(0,y.jsx)(e4,{children:(0,y.jsx)(ez,{children:eK(r,n,{...h,router:eS})})})},o=async(e,t)=>{let r=n(e,t);return await function({ReactDOMServer:e,element:t,streamOptions:r}){return(0,eo.getTracer)().trace(es.Wc.renderToReadableStream,async()=>e.renderToReadableStream(t,r))}({ReactDOMServer:P(),element:r})},a=!!ei.getInitialProps,[i,l]=await Promise.all([eZ(eV()),(async()=>{if(a){if(null===(e=await r(o)))return null;let{docProps:t}=e;return t.html}{e={};let t=await o(er,el);return await t.allReady,eu(t)}})()]);if(null===l)return null;let{docProps:d}=e||{};return a?(t=d.styles,eE=d.head):(t=eC.styles(),eC.flush()),{contentHTML:i+l,documentElement:e=>(0,y.jsx)(ei,{...e,...d}),head:eE,headTags:[],styles:t}};(0,eo.getTracer)().setRootSpanAttribute("next.route",l.page);let e3=await (0,eo.getTracer)().trace(es.vr.renderDocument,{spanName:`render route (pages) ${l.page}`,attributes:{"next.route":l.page}},async()=>e2());if(!e3)return new eT(null,{metadata:g});let e8=new Set,e9=new Set;for(let e of e$){let t=E[e];t&&(e8.add(t.id),t.files.forEach(e=>{e9.add(e)}))}let e6=eR.hybrid,{assetPrefix:e5,buildId:e7,customServer:te,defaultLocale:tt,disableOptimizedLoading:tr,domainLocales:tn,locale:to,locales:ts,runtimeConfig:ta}=l,ti={__NEXT_DATA__:{props:h,page:a,query:i,buildId:e7,assetPrefix:""===e5?void 0:e5,runtimeConfig:ta,nextExport:!0===eG||void 0,autoExport:!0===ex||void 0,isFallback:ed,isExperimentalCompile:K,dynamicIds:0===e8.size?void 0:Array.from(e8),err:l.err?(c=l.err,x?(f="server",f=c[eJ]||"server",{name:c.name,source:f,message:eO()(c.message),stack:c.stack,digest:c.digest}):{name:"Internal Server Error.",message:"500 - Internal Server Error.",statusCode:500}):void 0,gsp:!!N||void 0,gssp:!!k||void 0,customServer:te,gip:!!eg||void 0,appGip:!ef||void 0,locale:to,locales:ts,defaultLocale:tt,domainLocales:tn,isPreview:!0===m||void 0,notFoundSrcPage:ep&&x?ep:void 0},strictNextHead:l.strictNextHead,buildManifest:eQ,docComponentsRendered:{},dangerousAsPath:eS.asPath,canonicalBase:!l.ampPath&&et(n,"didStripLocale")?`${l.canonicalBase||""}/${l.locale}`:l.canonicalBase,ampPath:w,inAmpMode:ej,isDevelopment:!!x,hybridAmp:e6,dynamicImports:Array.from(e9),assetPrefix:e5,unstable_runtimeJS:S.unstable_runtimeJS,unstable_JsPreload:S.unstable_JsPreload,assetQueryString:ea,scriptLoader:e_,locale:to,disableOptimizedLoading:tr,head:e3.head,headTags:e3.headTags,styles:e3.styles,crossOrigin:l.crossOrigin,optimizeCss:l.optimizeCss,nextConfigOutput:l.nextConfigOutput,nextScriptWorkers:l.nextScriptWorkers,runtime:G,largePageDataBytes:l.largePageDataBytes,nextFontManifest:l.nextFontManifest,experimentalClientTraceMetadata:l.experimental.clientTraceMetadata},tl=(0,y.jsx)(A.Provider,{value:eR,children:(0,y.jsx)(Y.Provider,{value:ti,children:e3.documentElement(ti)})}),td=await (0,eo.getTracer)().trace(es.vr.renderToString,async()=>eZ(tl)),[tu,tc]=td.split("<next-js-internal-body-render-target></next-js-internal-body-render-target>",2),tp="";td.startsWith(eX)||(tp+=eX),tp+=tu,ej&&(tp+="<!-- __NEXT_DATA__ -->");let th=tp+e3.contentHTML+tc;return new eT(await o(a,th,l,{inAmpMode:ej,hybridAmp:e6}),{metadata:g})}let e2=(e,t,r,n,o)=>e4(e,t,r,n,o,o),e3=w().createContext(null);function e8(e){let t=(0,x.useContext)(e3);t&&t(e)}class e9 extends v{constructor(e){super(e),this.components=e.components}render(e,t,r){return e4(e,t,r.page,r.query,r.renderOpts,{App:this.components.App,Document:this.components.Document})}}let e6={contexts:g},e5=e9})(),module.exports=n})();
//# sourceMappingURL=pages-turbo.runtime.prod.js.map