UNPKG

next

Version:

The React Framework

7 lines • 69.7 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,a={};function i(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean);return`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}; ${r.join("; ")}`}function s(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],...a]=s(e),{domain:i,expires:l,httponly:d,maxage:f,path:p,samesite:h,secure:m,priority:y}=Object.fromEntries(a.map(([e,t])=>[e.toLowerCase(),t])),g={name:n,value:decodeURIComponent(o),domain:i,...l&&{expires:new Date(l)},...d&&{httpOnly:!0},..."string"==typeof f&&{maxAge:Number(f)},path:p,...h&&{sameSite:u.includes(t=(t=h).toLowerCase())?t:void 0},...m&&{secure:!0},...y&&{priority:c.includes(r=(r=y).toLowerCase())?r:void 0}};return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}(g)}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(a,{RequestCookies:()=>d,ResponseCookies:()=>f,parseCookie:()=>s,parseSetCookie:()=>l,stringifyCookie:()=>i}),e.exports=((e,a,i,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let i of n(a))o.call(e,i)||void 0===i||t(e,i,{get:()=>a[i],enumerable:!(s=r(a,i))||s.enumerable});return e})(t({},"__esModule",{value:!0}),a);var u=["strict","lax","none"],c=["low","medium","high"],d=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t){let e=s(t);for(let[t,r]of e)this._parsed.set(t,{name:t,value:r})}}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>i(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>i(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},f=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:[],a=Array.isArray(o)?o:function(e){if(!e)return[];var t,r,n,o,a,i=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,a=!1;l();)if(","===(r=e.charAt(s))){for(n=s,s+=1,l(),o=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(a=!0,s=o,i.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!a||s>=e.length)&&i.push(e.substring(t,e.length))}return i}(o);for(let e of a){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=i(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(i).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={},a=t.split(n),i=(r||{}).decode||e,s=0;s<a.length;s++){var l=a[s],u=l.indexOf("=");if(!(u<0)){var c=l.substr(0,u).trim(),d=l.substr(++u,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==o[c]&&(o[c]=function(e,t){try{return t(e)}catch(t){return e}}(d,i))}}return o},t.serialize=function(e,t,n){var a=n||{},i=a.encode||r;if("function"!=typeof i)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var s=i(t);if(s&&!o.test(s))throw TypeError("argument val is invalid");var l=e+"="+s;if(null!=a.maxAge){var u=a.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(a.domain){if(!o.test(a.domain))throw TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!o.test(a.path))throw TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invalid");l+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(l+="; HttpOnly"),a.secure&&(l+="; Secure"),a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.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/cjs/react.development.js":(e,t,r)=>{"use strict";e=r.nmd(e),function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r,n,o,a,i,s,l,u,c,d,f,p,h,m=Symbol.for("react.element"),y=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),x=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),O=Symbol.for("react.cache"),T=Symbol.iterator;function E(e){if(null===e||"object"!=typeof e)return null;var t=T&&e[T]||e["@@iterator"];return"function"==typeof t?t:null}var j={current:null},A={current:null},N={transition:null},L={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1},D={current:null},$={},M=null;$.setExtraStackFrame=function(e){M=e},$.getCurrentStack=null,$.getStackAddendum=function(){var e="";M&&(e+=M);var t=$.getCurrentStack;return t&&(e+=t()||""),e};var I={ReactCurrentDispatcher:j,ReactCurrentCache:A,ReactCurrentBatchConfig:N,ReactCurrentOwner:D};function H(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];F("warn",e,r)}function U(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];F("error",e,r)}function F(e,t,r){var n=I.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}I.ReactDebugCurrentFrame=$,I.ReactCurrentActQueue=L;var q={};function B(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;q[o]||(U("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),q[o]=!0)}var G={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){B(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){B(e,"replaceState")},enqueueSetState:function(e,t,r,n){B(e,"setState")}},W=Object.assign,z={};function V(e,t,r){this.props=e,this.context=t,this.refs=z,this.updater=r||G}Object.freeze(z),V.prototype.isReactComponent={},V.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},V.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var Y={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},K=function(e,t){Object.defineProperty(V.prototype,e,{get:function(){H("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var J in Y)Y.hasOwnProperty(J)&&K(J,Y[J]);function X(){}function Z(e,t,r){this.props=e,this.context=t,this.refs=z,this.updater=r||G}X.prototype=V.prototype;var Q=Z.prototype=new X;Q.constructor=Z,W(Q,V.prototype),Q.isPureReactComponent=!0;var ee=Array.isArray;function et(e){if(function(e){try{return!1}catch(e){return!0}}(0))return U("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.","function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"),""+e}function er(e){return e.displayName||"Context"}function en(e){if(null==e)return null;if("number"==typeof e.tag&&U("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case y:return"Portal";case b:return"Profiler";case v:return"StrictMode";case _:return"Suspense";case R:return"SuspenseList";case O:return"Cache"}if("object"==typeof e)switch(e.$$typeof){case x:return er(e)+".Consumer";case S:return er(e._context)+".Provider";case w:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case C:var t=e.displayName||null;if(null!==t)return t;return en(e.type)||"Memo";case k:var r=e._payload,n=e._init;try{return en(n(r))}catch(e){}}return null}var eo=Object.prototype.hasOwnProperty,ea={key:!0,ref:!0,__self:!0,__source:!0};function ei(e){if(eo.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function es(e){if(eo.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function el(e,t,r,n,o,a,i){var s={$$typeof:m,type:e,key:t,ref:r,props:i,_owner:a};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function eu(e,t,a){var i,s={},l=null,u=null,c=null,d=null;if(null!=t)for(i in ei(t)&&(u=t.ref,function(e){if("string"==typeof e.ref&&D.current&&e.__self&&D.current.stateNode!==e.__self){var t=en(D.current.type);o[t]||(U('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),o[t]=!0)}}(t)),es(t)&&(et(t.key),l=""+t.key),c=void 0===t.__self?null:t.__self,d=void 0===t.__source?null:t.__source,t)eo.call(t,i)&&!ea.hasOwnProperty(i)&&(s[i]=t[i]);var f=arguments.length-2;if(1===f)s.children=a;else if(f>1){for(var p=Array(f),h=0;h<f;h++)p[h]=arguments[h+2];Object.freeze&&Object.freeze(p),s.children=p}if(e&&e.defaultProps){var m=e.defaultProps;for(i in m)void 0===s[i]&&(s[i]=m[i])}if(l||u){var y,g,v="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&((y=function(){r||(r=!0,U("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))}).isReactWarning=!0,Object.defineProperty(s,"key",{get:y,configurable:!0})),u&&((g=function(){n||(n=!0,U("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))}).isReactWarning=!0,Object.defineProperty(s,"ref",{get:g,configurable:!0}))}return el(e,l,u,c,d,D.current,s)}function ec(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,o,a=W({},e.props),i=e.key,s=e.ref,l=e._self,u=e._source,c=e._owner;if(null!=t)for(n in ei(t)&&(s=t.ref,c=D.current),es(t)&&(et(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)eo.call(t,n)&&!ea.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?a[n]=o[n]:a[n]=t[n]);var d=arguments.length-2;if(1===d)a.children=r;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];a.children=f}return el(e.type,i,s,l,u,c,a)}function ed(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}o={};var ef=!1,ep=/\/+/g;function eh(e){return e.replace(ep,"$&/")}function em(e,t){if("object"==typeof e&&null!==e&&null!=e.key){var r,n;return et(e.key),r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})}return t.toString(36)}function ey(e,t,r){if(null==e)return e;var n=[],o=0;return function e(t,r,n,o,a){var i=typeof t;("undefined"===i||"boolean"===i)&&(t=null);var s=!1;if(null===t)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case m:case y:s=!0}}if(s){var l,u,c=t,d=a(c),f=""===o?"."+em(c,0):o;if(ee(d)){var p="";null!=f&&(p=eh(f)+"/"),e(d,r,p,"",function(e){return e})}else null!=d&&(ed(d)&&(d.key&&(!c||c.key!==d.key)&&et(d.key),l=d,u=n+(d.key&&(!c||c.key!==d.key)?eh(""+d.key)+"/":"")+f,d=el(l.type,u,l.ref,l._self,l._source,l._owner,l.props)),r.push(d));return 1}var h=0,g=""===o?".":o+":";if(ee(t))for(var v=0;v<t.length;v++)x=g+em(S=t[v],v),h+=e(S,r,n,x,a);else{var b=E(t);if("function"==typeof b){var S,x,w,_=t;b===_.entries&&(ef||H("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ef=!0);for(var R=b.call(_),C=0;!(w=R.next()).done;)x=g+em(S=w.value,C++),h+=e(S,r,n,x,a)}else if("object"===i){var k=String(t);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===k?"object with keys {"+Object.keys(t).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}}return h}(e,n,"","",function(e){return t.call(r,e,o++)}),n}function eg(e){if(-1===e._status){var t=(0,e._result)();t.then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status){var r=e._result;return void 0===r&&U("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n  const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||U("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n  const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}var ev=Symbol.for("react.client.reference");function eb(e){return"string"==typeof e||"function"==typeof e||e===g||e===b||e===v||e===_||e===R||e===P||"object"==typeof e&&null!==e&&(e.$$typeof===k||e.$$typeof===C||e.$$typeof===S||e.$$typeof===x||e.$$typeof===w||e.$$typeof===ev||void 0!==e.getModuleId)}function eS(){return new WeakMap}function ex(){return{s:0,v:void 0,o:null,p:null}}function ew(){var e=j.current;return null===e&&U("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}var e_=0;function eR(){}eR.__reactDisabledLog=!0;var eC=I.ReactCurrentDispatcher;function ek(e,t,r){if(void 0===f)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);f=n&&n[1]||""}return"\n"+f+e}var eP=!1;function eO(e,t){if(!e||eP)return"";var r,n=p.get(e);if(void 0!==n)return n;eP=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=eC.current,eC.current=null,function(){if(0===e_){a=console.log,i=console.info,s=console.warn,l=console.error,u=console.group,c=console.groupCollapsed,d=console.groupEnd;var e={configurable:!0,enumerable:!0,value:eR,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}e_++}();var f={DetermineComponentFrameRoot:function(){var r;try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}var o=e();o&&"function"==typeof o.catch&&o.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});try{var m=f.DetermineComponentFrameRoot(),y=m[0],g=m[1];if(y&&g){for(var v=y.split("\n"),b=g.split("\n"),S=0,x=0;S<v.length&&!v[S].includes("DetermineComponentFrameRoot");)S++;for(;x<b.length&&!b[x].includes("DetermineComponentFrameRoot");)x++;if(S===v.length||x===b.length)for(S=v.length-1,x=b.length-1;S>=1&&x>=0&&v[S]!==b[x];)x--;for(;S>=1&&x>=0;S--,x--)if(v[S]!==b[x]){if(1!==S||1!==x)do if(S--,--x<0||v[S]!==b[x]){var w="\n"+v[S].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),"function"==typeof e&&p.set(e,w),w}while(S>=1&&x>=0)break}}}finally{eP=!1,eC.current=r,function(){if(0==--e_){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},e,{value:a}),info:W({},e,{value:i}),warn:W({},e,{value:s}),error:W({},e,{value:l}),group:W({},e,{value:u}),groupCollapsed:W({},e,{value:c}),groupEnd:W({},e,{value:d})})}e_<0&&U("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var _=e?e.displayName||e.name:"",R=_?ek(_):"";return"function"==typeof e&&p.set(e,R),R}function eT(e,t,r){if(null==e)return"";if("function"==typeof e)return eO(e,!!((n=e.prototype)&&n.isReactComponent));if("string"==typeof e)return ek(e);switch(e){case _:return ek("Suspense");case R:return ek("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case w:return eO(e.render,!1);case C:return eT(e.type,t,r);case k:var n,o=e._payload,a=e._init;try{return eT(a(o),t,r)}catch(e){}}return""}p=new("function"==typeof WeakMap?WeakMap:Map);var eE={},ej=I.ReactDebugCurrentFrame;function eA(e){if(e){var t=e._owner,r=eT(e.type,e._source,t?t.type:null);ej.setExtraStackFrame(r)}else ej.setExtraStackFrame(null)}var eN=Symbol.for("react.client.reference");function eL(e){if(e){var t=e._owner;M=eT(e.type,e._source,t?t.type:null)}else M=null}function eD(){if(D.current){var e=en(D.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}h=!1;var e$={};function eM(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=eD();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!e$[r]){e$[r]=!0;var n="";e&&e._owner&&e._owner!==D.current&&(n=" It was passed a child from "+en(e._owner.type)+"."),eL(e),U('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),eL(null)}}}function eI(e,t){if("object"==typeof e&&e){if(e.$$typeof===eN);else if(ee(e))for(var r=0;r<e.length;r++){var n=e[r];ed(n)&&eM(n,t)}else if(ed(e))e._store&&(e._store.validated=!0);else{var o=E(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ed(a.value)&&eM(a.value,t)}}}function eH(e){var t,r=e.type;if(null!=r&&"string"!=typeof r&&r.$$typeof!==eN){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==w&&r.$$typeof!==C)return;t=r.propTypes}if(t){var n=en(r);!function(e,t,r,n,o){var a=Function.call.bind(eo);for(var i in e)if(a(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(eA(o),U("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,i,typeof s),eA(null)),s instanceof Error&&!(s.message in eE)&&(eE[s.message]=!0,eA(o),U("Failed %s type: %s",r,s.message),eA(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||h||(h=!0,U("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",en(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||U("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function eU(e,t,r){var n=eb(e);if(!n){var o,a="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var i=function(e){if(null!=e){var t;return void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}return""}(t);(i?a+=i:a+=eD(),null===e)?o="null":ee(e)?o="array":void 0!==e&&e.$$typeof===m?(o="<"+(en(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):o=typeof e,U("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",o,a)}var s=eu.apply(this,arguments);if(null==s)return s;if(n)for(var l=2;l<arguments.length;l++)eI(arguments[l],e);return e===g?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){eL(e),U("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),eL(null);break}}null!==e.ref&&(eL(e),U("Invalid attribute `ref` supplied to `React.Fragment`."),eL(null))}(s):eH(s),s}var eF=!1,eq=!1,eB=null;function eG(t){if(null===eB)try{var r=("require"+Math.random()).slice(0,7);eB=(e&&e[r]).call(e,"timers").setImmediate}catch(e){eB=function(e){!1===eq&&(eq=!0,"undefined"==typeof MessageChannel&&U("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return eB(t)}var eW=0,ez=!1;function eV(e,t){t!==eW-1&&U("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),eW=t}function eY(e,t,r){var n=L.current;if(null!==n){if(0!==n.length)try{eJ(n),eG(function(){return eY(e,t,r)})}catch(e){r(e)}else L.current=null,t(e)}else t(e)}var eK=!1;function eJ(e){if(!eK){eK=!0;var t=0;try{for(;t<e.length;t++)for(var r=e[t];;){L.didUsePromise=!1;var n=r(!1);if(null!==n){if(L.didUsePromise){e[t]=r,e.splice(0,t);return}r=n}else break}e.length=0}catch(r){throw e.splice(0,t+1),r}finally{eK=!1}}}var eX="function"==typeof queueMicrotask?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:eG;t.Children={map:ey,forEach:function(e,t,r){ey(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ey(e,function(){t++}),t},toArray:function(e){return ey(e,function(e){return e})||[]},only:function(e){if(!ed(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=V,t.Fragment=g,t.Profiler=b,t.PureComponent=Z,t.StrictMode=v,t.Suspense=_,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cache=function(e){return function(){var t,r=A.current;if(!r)return e.apply(null,arguments);var n=r.getCacheForType(eS),o=n.get(e);void 0===o?(t=ex(),n.set(e,t)):t=o;for(var a=0,i=arguments.length;a<i;a++){var s=arguments[a];if("function"==typeof s||"object"==typeof s&&null!==s){var l=t.o;null===l&&(t.o=l=new WeakMap);var u=l.get(s);void 0===u?(t=ex(),l.set(s,t)):t=u}else{var c=t.p;null===c&&(t.p=c=new Map);var d=c.get(s);void 0===d?(t=ex(),c.set(s,t)):t=d}}if(1===t.s)return t.v;if(2===t.s)throw t.v;try{var f=e.apply(null,arguments),p=t;return p.s=1,p.v=f,f}catch(e){var h=t;throw h.s=2,h.v=e,e}}},t.cloneElement=function(e,t,r){for(var n=ec.apply(this,arguments),o=2;o<arguments.length;o++)eI(arguments[o],n.type);return eH(n),n},t.createContext=function(e){var t={$$typeof:x,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:S,_context:t};var r=!1,n=!1,o=!1,a={$$typeof:x,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return n||(n=!0,U("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,U("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(H("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=eU,t.createFactory=function(e){var t=eU.bind(null,e);return t.type=e,eF||(eF=!0,H("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return H("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===C?U("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?U("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&U("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null!=e.defaultProps||null!=e.propTypes)&&U("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var t,r={$$typeof:w,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(e.displayName=r)}}),r},t.isValidElement=ed,t.lazy=function(e){var t,r,n={$$typeof:k,_payload:{_status:-1,_result:e},_init:eg};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){U("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){U("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},t.memo=function(e,t){eb(e)||U("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:C,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(e.displayName=t)}}),n},t.startTransition=function(e,t){var r=N.transition;N.transition={};var n=N.transition;N.transition._updatedFibers=new Set;try{e()}finally{if(N.transition=r,null===r&&n._updatedFibers){var o=n._updatedFibers.size;n._updatedFibers.clear(),o>10&&H("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")}}},t.unstable_act=function(e){var t,r=L.isBatchingLegacy,n=L.current,o=eW;eW++;var a=L.current=null!==n?n:[];L.isBatchingLegacy=!0;var i=!1;try{L.didScheduleLegacyUpdate=!1,t=e();var s=L.didScheduleLegacyUpdate;!r&&s&&eJ(a),L.isBatchingLegacy=r}catch(e){throw L.isBatchingLegacy=r,eV(n,o),e}if(null!==t&&"object"==typeof t&&"function"==typeof t.then){var l=t;return eX(function(){i||ez||(ez=!0,U("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(e,t){i=!0,l.then(function(r){if(eV(n,o),0===o)try{eJ(a),eG(function(){return eY(r,e,t)})}catch(e){t(e)}else e(r)},function(e){eV(n,o),t(e)})}}}var u=t;return eV(n,o),0===o&&(eJ(a),0!==a.length&&eX(function(){i||ez||(ez=!0,U("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),L.current=null),{then:function(e,t){i=!0,0===o?(L.current=a,eG(function(){return eY(u,e,t)})):e(u)}}},t.unstable_useCacheRefresh=function(){return ew().useCacheRefresh()},t.use=function(e){return ew().use(e)},t.useCallback=function(e,t){return ew().useCallback(e,t)},t.useContext=function(e){var t=ew();if(void 0!==e._context){var r=e._context;r.Consumer===e?U("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&U("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return ew().useDebugValue(e,t)},t.useDeferredValue=function(e,t){return ew().useDeferredValue(e,t)},t.useEffect=function(e,t){return ew().useEffect(e,t)},t.useId=function(){return ew().useId()},t.useImperativeHandle=function(e,t,r){return ew().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return ew().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return ew().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ew().useMemo(e,t)},t.useOptimistic=function(e,t){return ew().useOptimistic(e,t)},t.useReducer=function(e,t,r){return ew().useReducer(e,t,r)},t.useRef=function(e){return ew().useRef(e)},t.useState=function(e){return ew().useState(e)},t.useSyncExternalStore=function(e,t,r){return ew().useSyncExternalStore(e,t,r)},t.useTransition=function(){return ew().useTransition()},t.version="18.3.0-canary-2c338b16f-20231116","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()},"./dist/compiled/react/index.js":(e,t,r)=>{"use strict";e.exports=r("./dist/compiled/react/cjs/react.development.js")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n](a,a.exports,r),a.loaded=!0,a.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})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{"use strict";r.r(n),r.d(n,{AppRouteRouteModule:()=>eI,default:()=>eH});var e,t,o,a,i,s,l,u,c,d,f,p,h,m,y={};r.r(y),r.d(y,{DYNAMIC_ERROR_CODE:()=>ex,DynamicServerError:()=>ew});var g={};r.r(g),r.d(g,{cookies:()=>eE,draftMode:()=>ej,headers:()=>eT});var v={};r.r(v),r.d(v,{AppRouterContext:()=>eL,CacheStates:()=>m,GlobalLayoutRouterContext:()=>e$,LayoutRouterContext:()=>eD,TemplateContext:()=>eM});var b={};r.r(b),r.d(b,{appRouterContext:()=>v});class S{constructor({userland:e,definition:t}){this.userland=e,this.definition=t}}let x=[["RSC"],["Next-Router-State-Tree"],["Next-Router-Prefetch"]];class w{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)}}class _ extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new _}}class R extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return w.get(t,r,n);let o=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===o);if(void 0!==a)return w.get(t,a,n)},set(t,r,n,o){if("symbol"==typeof r)return w.set(t,r,n,o);let a=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===a);return w.set(t,i??r,n,o)},has(t,r){if("symbol"==typeof r)return w.has(t,r);let n=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==o&&w.has(t,o)},deleteProperty(t,r){if("symbol"==typeof r)return w.deleteProperty(t,r);let n=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===o||w.deleteProperty(t,o)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return _.callable;default:return w.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new R(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()}}var C=r("./dist/compiled/@edge-runtime/cookies/index.js");class k extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options")}static callable(){throw new k}}class P{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return k.callable;default:return w.get(e,t,r)}}})}}let O=Symbol.for("next.mutated.cookies");function T(e,t){let r=function(e){let t=e[O];return t&&Array.isArray(t)&&0!==t.length?t:[]}(t);if(0===r.length)return!1;let n=new C.ResponseCookies(e),o=n.getAll();for(let e of r)n.set(e);for(let e of o)n.set(e);return!0}class E{static wrap(e,t){let r=new C.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let n=[],o=new Set,a=()=>{var e;let a=null==fetch.__nextGetStaticStore?void 0:null==(e=fetch.__nextGetStaticStore.call(fetch))?void 0:e.getStore();a&&(a.pathWasRevalidated=!0);let i=r.getAll();if(n=i.filter(e=>o.has(e.name)),t){let e=[];for(let t of n){let r=new C.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case O:return n;case"delete":return function(...t){o.add("string"==typeof t[0]?t[0]:t[0].name);try{e.delete(...t)}finally{a()}};case"set":return function(...t){o.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t)}finally{a()}};default:return w.get(e,t,r)}}})}}let j="_N_T_",A={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"};({...A,GROUP:{server:[A.reactServerComponents,A.actionBrowser,A.appMetadataRoute,A.appRouteHandler],nonClientServerTarget:[A.middleware,A.api],app:[A.reactServerComponents,A.actionBrowser,A.appMetadataRoute,A.appRouteHandler,A.serverSideRendering,A.appPagesBrowser]}});let N="__prerender_bypass";Symbol("__next_preview_data"),Symbol(N);class L{constructor(e,t,r,n){var o;let a=e&&function(e,t){let r=R.from(e.headers),n=r.get("x-prerender-revalidate"),o=n===t.previewModeId,a=r.has("x-prerender-revalidate-if-generated");return{isOnDemandRevalidate:o,revalidateOnlyGenerated:a}}(t,e).isOnDemandRevalidate,i=null==(o=r.get(N))?void 0:o.value;this.isEnabled=!!(!a&&i&&e&&i===e.previewModeId),this._previewModeId=null==e?void 0:e.previewModeId,this._mutableCookies=n}enable(){if(!this._previewModeId)throw Error("Invariant: previewProps missing previewModeId this should never happen");this._mutableCookies.set({name:N,value:this._previewModeId,httpOnly:!0,sameSite:"lax",secure:!1,path:"/"})}disable(){this._mutableCookies.set({name:N,value:"",httpOnly:!0,sameSite:"lax",secure:!1,path:"/",expires:new Date(0)})}}let D={wrap(e,{req:t,res:r,renderOpts:n},o){let a;function i(e){r&&r.setHeader("Set-Cookie",e)}n&&"previewProps"in n&&(a=n.previewProps);let s={},l={get headers(){return s.headers||(s.headers=function(e){let t=R.from(e);for(let e of x)t.delete(e.toString().toLowerCase());return R.seal(t)}(t.headers)),s.headers},get cookies(){return s.cookies||(s.cookies=function(e){let t=new C.RequestCookies(R.from(e));return P.seal(t)}(t.headers)),s.cookies},get mutableCookies(){return s.mutableCookies||(s.mutableCookies=function(e,t){let r=new C.RequestCookies(R.from(e));return E.wrap(r,t)}(t.headers,(null==n?void 0:n.onUpdateCookies)||(r?i:void 0))),s.mutableCookies},get draftMode(){return s.draftMode||(s.draftMode=new L(a,t,this.cookies,this.mutableCookies)),s.draftMode}};return e.run(l,o,l)}},$={wrap(e,{urlPathname:t,renderOpts:r,postpone:n},o){let a=!r.supportsDynamicHTML&&!r.isDraftMode&&!r.isServerAction,i={isStaticGeneration:a,urlPathname:t,pagePath:r.originalPathname,incrementalCache:r.incrementalCache||globalThis.__incrementalCache,isRevalidate:r.isRevalidate,isPrerendering:r.nextExport,fetchCache:r.fetchCache,isOnDemandRevalidate:r.isOnDemandRevalidate,isDraftMode:r.isDraftMode,experimental:r.experimental,postpone:n};return r.store=i,e.run(i,o,i)}};function M(){return new Response(null,{status:400})}function I(){return new Response(null,{status:405})}let H=["GET","HEAD","OPTIONS","POST","PUT","DELETE","PATCH"];(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"})(e||(e={})),function(e){e.loadDefaultErrorComponents="LoadComponents.loadDefaultErrorComponents",e.loadComponents="LoadComponents.loadComponents"}(t||(t={})),function(e){e.getRequestHandler="NextServer.getRequestHandler",e.getServer="NextServer.getServer",e.getServerRequestHandler="NextServer.getServerRequestHandler",e.createServer="createServer.createServer"}(o||(o={})),function(e){e.compression="NextNodeServer.compression",e.getBuildId="NextNodeServer.getBuildId",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.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"}(s||(s={})),function(e){e.renderToString="AppRender.renderToString",e.renderToReadableStream="AppRender.renderToReadableStream",e.getBodyResult="AppRender.getBodyResult",e.fetch="AppRender.fetch"}(l||(l={})),(u||(u={})).executeRoute="Router.executeRoute",(c||(c={})).runHandler="Node.runHandler",(d||(d={})).runHandler="AppRouteRouteHandlers.runHandler",function(e){e.generateMetadata="ResolveMetadata.generateMetadata",e.generateViewport="ResolveMetadata.generateViewport"}(f||(f={}));let U=require("next/dist/server/lib/trace/tracer"),{env:F,stdout:q}=(null==(p=globalThis)?void 0:p.process)??{},B=F&&!F.NO_COLOR&&(F.FORCE_COLOR||(null==q?void 0:q.isTTY)&&!F.CI&&"dumb"!==F.TERM),G=(e,t,r,n)=>{let o=e.substring(0,n)+r,a=e.substring(n+t.length),i=a.indexOf(t);return~i?o+G(a,t,r,i):o+a},W=(e,t,r=e)=>n=>{let o=""+n,a=o.indexOf(t,e.length);return~a?e+G(o,t,r,a)+t:e+o+t},z=B?W("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"):String;B&&W("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),B&&W("\x1b[3m","\x1b[23m"),B&&W("\x1b[4m","\x1b[24m"),B&&W("\x1b[7m","\x1b[27m"),B&&W("\x1b[8m","\x1b[28m"),B&&W("\x1b[9m","\x1b[29m"),B&&W("\x1b[30m","\x1b[39m");let V=B?W("\x1b[31m","\x1b[39m"):String,Y=B?W("\x1b[32m","\x1b[39m"):String,K=B?W("\x1b[33m","\x1b[39m"):String;B&&W("\x1b[34m","\x1b[39m");let J=B?W("\x1b[35m","\x1b[39m"):String;B&&W("\x1b[38;2;173;127;168m","\x1b[39m"),B&&W("\x1b[36m","\x1b[39m");let X=B?W("\x1b[37m","\x1b[39m"):String;B&&W("\x1b[90m","\x1b[39m"),B&&W("\x1b[40m","\x1b[49m"),B&&W("\x1b[41m","\x1b[49m"),B&&W("\x1b[42m","\x1b[49m"),B&&W("\x1b[43m","\x1b[49m"),B&&W("\x1b[44m","\x1b[49m"),B&&W("\x1b[45m","\x1b[49m"),B&&W("\x1b[46m","\x1b[49m"),B&&W("\x1b[47m","\x1b[49m");let Z={wait:X(z("○")),error:V(z("⨯")),warn:K(z("⚠")),ready:"▲",info:X(z(" ")),event:Y(z("✓")),trace:J(z("\xbb"))},Q={log:"log",warn:"warn",error:"error"};function ee(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in Q?Q[e]:"log",n=Z[e];0===t.length?console[r](""):console[r](" "+n,...t)}function et(...e){ee("error",...e)}function er(e,t){if(e.isStaticGeneration&&e.experimental.ppr){if(!e.postpone)throw Error("Invariant: PPR is enabled but the postpone API is unavailable");e.postponeWasTriggered=!0,e.postpone("This page needs to bail out of prerendering at this point because it used "+t+". React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}}let en=e=>{let t=["/layout"];if(e.startsWith("/")){let r=e.split("/");for(let e=1;e<r.length+1;e++){let n=r.slice(0,e).join("/");n&&(n.endsWith("/page")||n.endsWith("/route")||(n=`${n}${n.endsWith("/")?"":"/"}layout`),t.push(n))}}return t};function eo(e){var t,r;let n=[],{pagePath:o,urlPathname:a}=e;if(Array.isArray(e.tags)||(e.tags=[]),o){let r=en(o);for(let o of r)o=`${j}${o}`,(null==(t=e.tags)?void 0:t.includes(o))||e.tags.push(o),n.push(o)}if(a){let t=new URL(a,"http://n").pathname,o=`${j}${t}`;(null==(r=e.tags)?void 0:r.includes(o))||e.tags.push(o),n.push(o)}return n}function ea(e,t){if(!e)return;e.fetchMetrics||(e.fetchMetrics=[]);let r=["url","status","method"];e.fetchMetrics.some(e=>r.every(r=>e[r]===t[r]))||e.fetchMetrics.push({url:t.url,cacheStatus:t.cacheStatus,cacheReason:t.cacheReason,status:t.status,method:t.method,start:t.start,end:Date.now(),idx:e.nextFetchId||0})}function ei(e){return e.replace(/\/$/,"")||"/"}function es(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 el(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:o}=es(e);return""+t+r+n+o}function eu(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:o}=es(e);return""+r+t+n+o}function ec(e,t){if("string"!=typeof e)return!1;let{pathname:r}=es(e);return r===t||r.startsWith(t+"/")}function ed(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 ef=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function ep(e,t){return new URL(String(e).replace(ef,"localhost"),t&&String(t).replace(ef,"localhost"))}let eh=Symbol("NextURLInternal");class em{constructor(e,t,r){let n,o;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,o=r||{}):o=r||t||{},this[eh]={url:ep(e,n??o.base),options:o,basePath:""},this.analyze()}analyze(){var e,t,r,n,o;let a=function(e,t){var r,n;let{basePath:o,i18n:a,trailingSlash:i}=null!=(r=t.nextConfig)?r:{},s={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):i};o&&ec(s.pathname,o)&&(s.pathname=function(e,t){if(!ec(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}(s.pathname,o),s.basePath=o);let l=s.pathname;if(s.pathname.startsWith("/_next/data/")&&s.pathname.endsWith(".json")){let e=s.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];s.buildId=r,l="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(s.pathname=l)}if(a){let e=t.i18nProvider?t.i18nProvider.analyze(s.pathname):ed(s.pathname,a.locales);s.locale=e.detectedLocale,s.pathname=null!=(n=e.pathname)?n:s.pathname,!e.detectedLocale&&s.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(l):ed(l,a.locales)).detectedLocale&&(s.locale=e.detectedLocale)}return s}(this[eh].url.pathname,{nextConfig:this[eh].options.nextConfig,parseData:!process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,i18nProvider:this[eh].options.i18nProvider}),i=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[eh].url,this[eh].options.headers);this[eh].domainLocale=this[eh].options.i18nProvider?this[eh].options.i18nProvider.detectDomainLocale(i):function(e,t,r){if(e)for(let a of(r&&(r=r.toLowerCase()),e)){var n,o;let e=null==(n=a.domain)?void 0:n.split(":",1)[0].toLowerCase();if(t===e||r===a.defaultLocale.toLowerCase()||(null==(o=a.locales)?void 0:o.some(e=>e.toLowerCase()===r)))return a}}(null==(t=this[eh].options.nextConfig)?void 0:null==(e=t.i18n)?void 0:e.domains,i);let s=(null==(r=this[eh].domainLocale)?void 0:r.defaultLocale)||(null==(o=this[eh].options.nextConfig)?void 0:null==(n=o.i18n)?void 0:n.defaultLocale);this[eh].url.pathname=a.pathname,this[eh].defaultLocale=s,this[eh].basePath=a.basePath??"",this[eh].buildId=a.buildId,this[eh].locale=a.locale??s,this[eh].trailingSlash=a.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&&(ec(o,"/api")||ec(o,"/"+t.toLowerCase()))?e:el(e,"/"+t)}((e={basePath:this[eh].basePath,buildId:this[eh].buildId,defaultLocale:this[eh].options.forceLocale?void 0:this[eh].defaultLocale,locale:this[eh].locale,pathname:this[eh].url.pathname,trailingSlash:this[eh].trailingSlash}).pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix),(e.buildId||!e.trailingSlash)&&(t=ei(t)),e.buildId&&(t=eu(el(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=el(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:eu(t,"/"):ei(t)}formatSearch(){return this[eh].url.search}get buildId(){return this[eh].buildId}set buildId(e){this[eh].buildId=e}get locale(){return this[eh].locale??""}set locale(e){var t,r;if(!this[eh].locale||!(null==(r=this[eh].options.nextConfig)?void 0:null==(t=r.i18n)?void 0:t.locales.includes(e)))throw TypeError(`The NextURL configuration includes no locale "${e}"`);this[eh].locale=e}get defaultLocale(){return this[eh].defaultLocale}get domainLocale(){return this[eh].domainLocale}get searchParams(){return this[eh].url.searchParams}get host(){return this[eh].url.host}set host(e){this[eh].url.host=e}get hostname(){return this[eh].url.hostname}set hostname(e){this[eh].url.hostname=e}get port(){return this[eh].url.port}set port(e){this[eh].url.port=e}get protocol(){return this[eh].url.protocol}set protocol(e){this[eh].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[eh].url=ep(e),this.analyze()}get origin(){return this[eh].url.origin}get pathname(){return this[eh].url.pathname}set pathname(e){this[eh].url.pathname=e}get hash(){return this[eh].url.hash}set hash(e){this[eh].url.hash=e}get search(){return this[eh].url.search}set search(e){this[eh].url.search=e}get password(){return this[eh].url.password}set password(e){this[eh].url.password=e}get username(){return this[eh].url.username}set username(e){this[eh].url.username=e}get basePath(){return this[eh].basePath}set basePath(e){this[eh].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 em(String(this),this[eh].options)}}function ey(e){let t=new URL(e);return t.host="localhost:3000",t.search="",t.protocol="http",t.toString()}let eg=require("next/dist/client/components/request-async-storage.external.js");function ev(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,n,o]=e.digest.split(";",4);return"NEXT_REDIRECT"===t&&("replace"===r||"push"===r)&&"string"==typeof n&&("true"===o||"false"===o)}!function(e){e.push="push",e.replace="replace"}(h||(h={}));let eb=["HEAD","OPTIONS"],eS=["OPTIONS","POST","PUT","DELETE","PATCH"],ex="DYNAMIC_SERVER_USAGE";class ew extends Error{constructor(e){super("Dynamic server usage: "+e),this.digest=ex}}let e_=require("next/dist/client/components/action-async-storage.external.js"),eR=require("next/dist/client/components/static-generation-async-storage.external.js");class eC extends Error{constructor(...e){super(...e),this.code="NEXT_STATIC_GEN_BAILOUT"}}function ek(e,t){let{dynamic:r,link:n}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:"")}let eP=(e,t)=>{let r=eR.staticGenerationAsyncStorage.getStore();if(!r)return!1;if(r.forceStatic)return!0;if(r.dynamicShouldError){var n;throw new eC(ek(e,{...t,dynamic:null!=(n=null==t?void 0:t.dynamic)?n:"error"}))}let o=ek(e,{...t,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(er(r,e),r.revalidate=0,(null==t?void 0:t.dynamic)||(r.staticPrefetchBailout=!0),r.isStaticGeneration){let t=new ew(o);throw r.dynamicUsageDescription=e,r.dynamicUsageStack=t.stack,t}return!1};class eO{get isEnabled(){return this._provider.isEnabled}enable(){if(!eP("draftMode().enable()"))return this._provider.enable()}disable(){if(!eP("draftMode().disable()"))return this._provider.disable()}constructor(e){this._provider=e}}function eT(){if(eP("headers",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return R.seal(new Headers({}));let e=eg.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: headers() expects to have requestAsyncStorage, none available.");return e.headers}function eE(){if(eP("cookies",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return P.seal(new C.RequestCookies(new Headers({})));let e=eg.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: cookies() expects to have requestAsyncStorage, none available.");let t=e_.actionAsyncStorage.getStore();return t&&(t.isAction||t.isAppRoute)?e.mutableCookies:e.cookies}function ej(){let e=eg.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: draftMode() expects to have requestAsyncStorage, none available.");return new eO(e.draftMode)}var eA=r("./dist/compiled/react/index.js"),eN=r.n(eA);!function(e){e.LAZY_INITIALIZED="LAZYINITIALIZED",e.DATA_FETCH="DATAFETCH",e.READY="READY"}(m||(m={}));let eL=eN().createContext(null),eD=eN().createContext(null),e$=eN().createContext(null),eM=eN().createContext(null);eL.displayName="AppRouterContext",eD.displayName="LayoutRouterContext",e$.displayName="GlobalLayoutRouterContext",eM.displayName="TemplateContext";class eI extends S{static #e=this.sharedModules=b;constructor({userland:e,definition:t,resolvedPagePath:r,nextConfigOutput:n}){if(super({userland:e,definition:t}),this.requestAsyncStorage=eg.requestAsyncStorage,this.staticGenerationAsyncStorage=eR.staticGenerationAsyncStorage,this.serverHooks=y,this.headerHooks=g,this.staticGenerationBailout=eP,this.actionAsyncStorage=e_.actionAsyncStorage,this.resolvedPagePath=r,this.nextConfigOutput=n,this.methods=function(e){let t=H.reduce((t,r)=>({...t,[r]:e[r]??I}),{}),r=new Set(H.filter(t=>e[t])),n=eb.filter(e=>!r.has(e));for(let o of n){if("HEAD"===o){if(!e.GET)break;t.HEAD=e.GET,r.add("HEAD");continue}if("OPTIONS"===o){let e=["OPTIONS",...r];!r.has("HEAD")&&r.has("GET")&&e.push("HEAD");let n={Allow:e.sort().join(", ")};t.OPTIONS=()=>new Response(null,{status:204,headers:n}),r.add("OPTIONS");continue}throw Error(`Invariant: should handle all automatic implementable methods, got method: ${o}`)}return t}(e),this.nonStaticMethods=function(e){let t=eS.filter(t=>e[t]);return 0!==t.length&&t}(e),this.dynamic=this.userland.dynamic,"export"===this.nextConfigOutput){if(this.dynamic&&"auto"!==this.dynamic){if("force-dynamic"===this.dynamic)throw Error(`export const dynamic = "force-dynamic" on page "${t.pathname}" cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export`)}else this.dynamic="error"}{let e=H.map(e=>e.toLowerCase());for(let t of e)t in this.userland&&et(`Detected lowercase method '${t}' in '${this.resolvedPagePath}'. Export the uppercase '${t.toUpperCase()}' method name to fix this error.`);"default"in this.userland&&et(`Detected default export in '${this.resolvedPagePath}'. Export a named export for each HTTP method instead.`),H.some(e=>e in this.userland)||et(`No HTTP methods exported in '${this.resolvedPagePath}'. Export a named export for each HTTP method.`)}}resolve(e){return H.includes(e)?this.methods[e]:M}async execute(e,t){let r=this.resolve(e.method),n={req:e};n.renderOpts={previewProps:t.prerenderManifest.preview};let o={urlPathname:e.nextUrl.pathname,renderOpts:t.renderOpts};o.renderOpts.fetchCache=this.userland.fetchCache;let i=await this.actionAsyncStorage.run({isAppRoute:!0},()=>D.wrap(this.requestAsyncStorage,n,()=>$.wrap(this.staticGenerationAsyncStorage,o,n=>{var o;switch(this.nonStaticMethods&&this.staticGenerationBailout(`non-static methods used ${this.nonStaticMethods.join(", ")}`),this.dynamic){case"force-dynamic":n.forceDynamic=!0,this.staticGenerationBailout("force-dynamic",{dynamic:this.dynamic});break;case"force-static":n.forceStatic=!0;break;case"error":n.dynamicShouldError=!0}n.revalidate??=this.userland.revalidate??!1;let i=function(e,{dynamic:t},r){function n(e){switch(e){case"search":case"searchParams":case"toString":case"href":case"origin":r.staticGenerationBailout(`nextUrl.${e}`);return;default:return}}let o={},a=(e,t)=>{switch(t){case"search":return"";case"searchParams":return o.searchParams||(o.searchParams=new URLSearchParams),o.searchParams;case"url":case"href":return o.url||(o.url=ey(e)),o.url;case"toJSON":case"toString":return o.url||(o.url=ey(e)),o.toString||(o.toString=()=>o.url),o.toString;case"headers":return o.headers||(o.headers=new Headers),o.headers;case"cookies":return o.headers||(o.headers=new Headers),o.cookies||(o.cookies=new C.RequestCookies(o.headers)),o.cookies;case"clone":return o.url||(o.url=ey(e)),()=>new em(o.url)}},i=new Proxy(e.nextUrl,{get(e,r){if(n(r),"force-static"===t&&"string"==typeof r){let t=a(e.href,r);if(void 0!==t)return t}let o=e[r];return"function"==typeof o?o.bind(e):o},set:(e,t,r)=>(n(t),e[t]=r,!0)}),s=e=>{switch(e){case"headers":r.headerHooks.headers();return;case"url":case"cookies":case"body":case"blob":case"json":case"text":case"arrayBuffer":case"formData":r.staticGenerationBailout(`request.${e}`);return;default:return}};return new Proxy(e,{get(e,r){if(s(r),"nextUrl"===r)return i;if("force-static"===t&&"string"==typeof r){let t=a(e.url,r);if(void 0!==t)return t}let n=e[r];return"function"==typeof n?n.bind(e):n},set:(e,t,r)=>(s(t),e[t]=r,!0)})}(e,{dynamic:this.dynamic},{headerHooks:this.headerHooks,serverHooks:this.serverHooks,staticGenerationBailout:this.staticGenerationBailout}),s=function(e){let t="/app/";e.includes(t)||(t="\\app\\");let[,...r]=e.split(t),n=t[0]+r.join(t),o=n.split(".").slice(0,-1).join(".");return o}(this.resolvedPagePath);return null==(o=(0,U.getTracer)().getRootSpanAttributes())||o.set("next.route",s),(0,U.getTracer)().trace(d.runHandler,{spanName:`executing api route (app) ${s}`,attributes:{"next.route":s}},async()=>{var e;!function({serverHooks:e,staticGenerationAsyncStorage:t}){if(globalThis._nextOriginalFetch||(globalThis._nextOriginalFetch=globalThis.fetch),globalThis.fetch.__nextPatched)return;let{DynamicServerError:r}=e,n=globalThis._nextOriginalFetch;globalThis.fetch=async(e,o)=>{var i,s;let u;try{(u=new URL(e instanceof Request?e.url:e)).username="",u.password=""}catch{u=void 0}let c=(null==u?void 0:u.href)??"",d=Date.now(),f=(null==o?void 0:null==(i=o.method)?void 0:i.toUpperCase())||"GET",p=(null==(s=null==o?void 0:o.next)?void 0:s.internal)===!0;return await (0,U.getTracer)().trace(p?a.internalFetch:l.fetch,{kind:U.SpanKind.CLIENT,spanName:["fetch",f,c].filter(Boolean).join(" "),attributes:{"http.url":c,"http.method":f,"net.peer.name":null==u?void 0:u.hostname,"net.peer.port":(null==u?void 0:u.port)||void 0}},async()=>{var a;let i,s,l;let u=t.getStore()||(null==fetch.__nextGetStaticStore?void 0:fetch.__nextGetStaticStore.call(fetch)),f=e&&"object"==typeof e&&"string"==typeof e.method,h=t=>(f?e[t]:null)||(null==o?void 0:o[t]);if(!u||p||u.isDraftMode)return n(e,o);let m=t=>{var r,n,a;return void 0!==(null==o?void 0:null==(r=o.next)?void 0:r[t])?null==o?void 0:null==(n=o.next)?void 0:n[t]:f?null==(a=e.next)?void 0:a[t]:void 0},y=m("revalidate"),g=function(e,t){let r=[],n=[];for(let t of e)"string"!=typeof t?n.push({tag:t,reason:"invalid type, must be a string"}):t.length>256?n.push({tag:t,reason:"exceeded max length of 256"}):r.push(t);if(n.length>0)for(let{tag:e,reason:r}of(console.warn(`Warning: invalid tags passed to ${t}: `),n))console.log(`tag: "${e}" ${r}`);return r}(m("tags")||[],`fetch ${e.toString()}`);if(Array.isArray(g))for(let e of(u.tags||(u.tags=[]),g))u.tags.includes(e)||u.tags.push(e);let v=eo(u),b="only-cache"===u.fetchCache,S="force-cache"===u.fetchCache,x="default-cache"===u.fetchCache,w="default-no-store"===u.fetchCache,_="only-no-store"===u.fetchCache,R="force-no-store"===u.fetchCache,C=h("cache"),k="";"string"==typeof C&&void 0!==y&&(f&&"default"===C||function(...e){ee("warn",...e)}(`fetch for ${c} on ${u.urlPathname} specified "cache: ${C}" and "revalidate: ${y}", only one should be specified.`),C=void 0),"force-cache"===C?y=!1:("no-cache"===C||"no-store"===C||R||_)&&(y=0),("no-cache"===C||"no-store"===C)&&(k=`cache: ${C}`),("number"==typeof y||!1===y)&&(l=y);let P=h("headers"),O="function"==typeof(null==P?void 0:P.get)?P:new Headers(P||{}),T=O.get("authorization")||O.get("cookie"),E=!["get","head"].includes((null==(a=h("method"))?void 0:a.toLowerCase())||"get"),j=(T||E)&&0===u.revalidate;if(R&&(k="fetchCache = force-no-store"),_){if("force-cache"===C||void 0!==l&&(!1===l||l>0))throw Error(`cache: 'force-cache' used on fetch for ${c} with 'export const fetchCache = 'only-no-store'`);k="fetchCache = only-no-store"}if(b&&"no-store"===C)throw Error(`cache: 'no-store' used on fetch for ${c} with 'export const fetchCache = 'only-cache'`);S&&(void 0===y||0===y)&&(k="fetchCache = force-cache",l=!1),void 0===l?x?(l=!1,k="fetchCache = default-cache"):j?(l=0,k="auto no cache"):w?(l=0,k="fetchCache = default-no-store"):(k="auto cache",l="boolean"!=typeof u.revalidate&&void 0!==u.revalidate&&u.revalidate):k||(k=`revalidate: ${l}`),!j&&(void 0===u.revalidate||"number"==typeof l&&(!1===u.revalidate||"number"==typeof u.revalidate&&l<u.revalidate))&&(0===l&&er(u,"revalidate: 0"),u.revalidate=l);let A="number"==typeof l&&l>0||!1===l;if(u.incrementalCache&&A)try{i=await u.incrementalCache.fetchCacheKey(c,f?e:o)}catch(t){console.error("Failed to generate cache key for",e)}let N=u.nextFetchId??1;u.nextFetchId=N+1;let L="number"!=typeof l?31536e3:l,D=async(t,r)=>{let a=["cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","window","duplex",...t?[]:["signal"]];if(f){let t=e,r={body:t._ogBody||t.body};for(let e of a)r[e]=t[e];e=new Request(t.url,r)}else if(o){let e=o;for(let t of(o={body:o._ogBody||o.body},a))o[t]=e[t]}let s={...o,next:{...null==o?void 0:o.next,fetchType:"origin",fetchIdx:N}};return n(e,s).then(async n=>{if(t||ea(u,{start:d,url:c,cacheReason:r||k,cacheStatus:0===l||r?"skip":"miss",status:n.status,method:s.method||"GET"}),200===n.status&&u.incrementalCache&&i&&A){let t=Buffer.from(await n.arrayBuffer());try{await u.incrementalCache.set(i,{kind:"FETCH",data:{headers:Object.fromEntries(n.headers.entries()),body:t.toString("base64"),status:n.status,url:n.url},revalidate:L},{fetchCache:!0,revalidate:l,fetchUrl:c,fetchIdx:N,tags:g})}catch(t){console.warn("Failed to set fetch cache",e,t)}let r=new Response(t,{headers:new Headers(n.headers),status:n.status});return Object.defineProperty(r,"url",{value:n.url}),r}return n})},$=()=>Promise.resolve();if(i&&u.incrementalCache){$=await u.incrementalCache.lock(i);let e=u.isOnDemandRevalidate?null:await u.incrementalCache.get(i,{kindHint:"fetch",revalidate:l,fetchUrl:c,fetchIdx:N,tags:g,softTags:v});if(e?await $():s="cache-control: no-cache (hard refresh)",(null==e?void 0:e.value)&&"FETCH"===e.value.kind&&!(u.isRevalidate&&e.isStale)){e.isStale&&(u.pendingRevalidates||(u.pendingRevalidates=[]),u.pendingRevalidates.push(D(!0).catch(console.error)));let t=e.value.data;ea(u,{start:d,url:c,cacheReason:k,cacheStatus:"hit",status:t.status||200,method:(null==o?void 0:o.method)||"GET"});let r=new Response(Buffer.from(t.body,"base64"),{headers:t.headers,status:t.status});return Object.defineProperty(r,"url",{value:e.value.data.url}),r}}if(u.isStaticGeneration&&o&&"object"==typeof o){let{cache:t}=o;if("no-store"===t){let t=`no-store fetch ${e}${u.urlPathname?` ${u.urlPathname}`:""}`,n=new r(t);u.dynamicUsageErr=n,u.dynamicUsageStack=n.stack,u.dynamicUsageDescription=t,er(u,t),u.revalidate=0}let n="next"in o,{next:a={}}=o;if("number"==typeof a.revalidate&&(void 0===u.revalidate||"number"==typeof u.revalidate&&a.revalidate<u.revalidate)){let t=u.forceDynamic;if(!t&&0===a.revalidate){let t=`revalidate: 0 fetch ${e}${u.urlPathname?` ${u.urlPathname}`:""}`,n=new r(t);u.dynamicUsageErr=n,u.dynamicUsageStack=n.stack,u.dynamicUsageDescription=t,er(u,t)}t&&0===a.revalidate||(u.revalidate=a.revalidate)}n&&delete o.next}return D(!1,s).finally($)})},globalThis.fetch.__nextGetStaticStore=()=>t,globalThis.fetch.__nextPatched=!0}({serverHooks:this.serverHooks,staticGenerationAsyncStorage:this.staticGenerationAsyncStorage});let o=await r(i,{params:t.params?function(e){let t={};for(let[r,n]of Object.entries(e))void 0!==n&&(t[r]=n);return t}(t.params):void 0});if(!(o instanceof Response))throw Error(`No response is returned from route handler '${this.resolvedPagePath}'. Ensure you return a \`Response\` or a \`NextResponse\` in all branches of your handler.`);t.renderOpts.fetchMetrics=n.fetchMetrics,t.renderOpts.waitUntil=Promise.all(n.pendingRevalidates||[]),eo(n),t.renderOpts.fetchTags=null==(e=n.tags)?void 0:e.join(",");let s=this.requestAsyncStorage.getStore();if(s&&s.mutableCookies){let e=new Headers(o.headers);if(T(e,s.mutableCookies))return new Response(o.body,{status:o.status,statusText:o.statusText,headers:e})}return o})})));if(!(i instanceof Response))return new Response(null,{status:500});if(i.headers.has("x-middleware-rewrite"))throw Error("NextResponse.rewrite() was used in a app route handler, this is not currently supported. Please remove the invocation to continue.");if("1"===i.headers.get("x-middleware-next"))throw Error("NextResponse.next() was used in a app route handler, this is not supported. See here for more info: https://nextjs.org/docs/messages/next-response-next-in-app-route-handler");return i}async handle(e,t){try{let r=await this.execute(e,t);return r}catch(t){let e=function(e){if(ev(e)){let t=ev(e)?e.digest.split(";",3)[2]:null;if(!t)throw Error("Invariant: Unexpected redirect url format");let r=function(e){if(!ev(e))throw Error("Not a redirect error");return"true"===e.digest.split(";",4)[3]?308:307}(e);return function(e,t,r){let n=new Headers({location:e});return T(n,t),new Response(null,{status:r,headers:n})}(t,e.mutableCookies,r)}return(null==e?void 0:e.digest)==="NEXT_NOT_FOUND"&&new Response(null,{status:404})}(t);if(!e)throw t;return e}}}let eH=eI})(),module.exports=n})();
//# sourceMappingURL=app-route.runtime.dev.js.map