next
Version:
The React Framework
5 lines • 344 kB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49352,(__turbopack_context__,module,exports)=>{"use strict";let deploymentId;function getDeploymentId(){return deploymentId}function getDeploymentIdQuery(ampersand=!1){let id=deploymentId;return id?`${ampersand?"&":"?"}dpl=${id}`:""}function getAssetToken(){return!1}function getAssetTokenQuery(ampersand=!1){return""}Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{getAssetToken:function(){return getAssetToken},getAssetTokenQuery:function(){return getAssetTokenQuery},getDeploymentId:function(){return getDeploymentId},getDeploymentIdQuery:function(){return getDeploymentIdQuery}}),"u">typeof window?(deploymentId=document.documentElement.dataset.dplId,delete document.documentElement.dataset.dplId):deploymentId=void 0},79608,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"InvariantError",{enumerable:!0,get:function(){return InvariantError}});class InvariantError extends Error{constructor(message,options){super(`Invariant: ${message.endsWith(".")?message:message+"."} This is a bug in Next.js.`,options),this.name="InvariantError"}}},64478,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{BailoutToCSRError:function(){return BailoutToCSRError},isBailoutToCSRError:function(){return isBailoutToCSRError}});let BAILOUT_TO_CSR="BAILOUT_TO_CLIENT_SIDE_RENDERING";class BailoutToCSRError extends Error{constructor(reason){super(`Bail out to client-side rendering: ${reason}`),this.reason=reason,this.digest=BAILOUT_TO_CSR}}function isBailoutToCSRError(err){return"object"==typeof err&&null!==err&&"digest"in err&&err.digest===BAILOUT_TO_CSR}},13201,(__turbopack_context__,module,exports)=>{"use strict";var ReactDOM=__turbopack_context__.r(79892),decoderOptions={stream:!0},hasOwnProperty=Object.prototype.hasOwnProperty;function resolveClientReference(bundlerConfig,metadata){if(bundlerConfig){var moduleExports=bundlerConfig[metadata[0]];if(bundlerConfig=moduleExports&&moduleExports[metadata[2]])moduleExports=bundlerConfig.name;else{if(!(bundlerConfig=moduleExports&&moduleExports["*"]))throw Error('Could not find the module "'+metadata[0]+'" in the React Server Consumer Manifest. This is probably a bug in the React Server Components bundler.');moduleExports=metadata[2]}return 4===metadata.length?[bundlerConfig.id,bundlerConfig.chunks,moduleExports,1]:[bundlerConfig.id,bundlerConfig.chunks,moduleExports]}return metadata}function resolveServerReference(bundlerConfig,id){var name="",resolvedModuleData=bundlerConfig[id];if(resolvedModuleData)name=resolvedModuleData.name;else{var idx=id.lastIndexOf("#");if(-1!==idx&&(name=id.slice(idx+1),resolvedModuleData=bundlerConfig[id.slice(0,idx)]),!resolvedModuleData)throw Error('Could not find the module "'+id+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.')}return resolvedModuleData.async?[resolvedModuleData.id,resolvedModuleData.chunks,name,1]:[resolvedModuleData.id,resolvedModuleData.chunks,name]}function requireAsyncModule(id){var promise=__turbopack_context__.r(id);return"function"!=typeof promise.then||"fulfilled"===promise.status?null:(promise.then(function(value){promise.status="fulfilled",promise.value=value},function(reason){promise.status="rejected",promise.reason=reason}),promise)}var instrumentedChunks=new WeakSet,loadedChunks=new WeakSet;function ignoreReject(){}function preloadModule(metadata){for(var chunks=metadata[1],promises=[],i=0;i<chunks.length;i++){var thenable=__turbopack_context__.L(chunks[i]);if(loadedChunks.has(thenable)||promises.push(thenable),!instrumentedChunks.has(thenable)){var resolve=loadedChunks.add.bind(loadedChunks,thenable);thenable.then(resolve,ignoreReject),instrumentedChunks.add(thenable)}}return 4===metadata.length?0===promises.length?requireAsyncModule(metadata[0]):Promise.all(promises).then(function(){return requireAsyncModule(metadata[0])}):0<promises.length?Promise.all(promises):null}function requireModule(metadata){var moduleExports=__turbopack_context__.r(metadata[0]);if(4===metadata.length&&"function"==typeof moduleExports.then)if("fulfilled"===moduleExports.status)moduleExports=moduleExports.value;else throw moduleExports.reason;return"*"===metadata[2]?moduleExports:""===metadata[2]?moduleExports.__esModule?moduleExports.default:moduleExports:hasOwnProperty.call(moduleExports,metadata[2])?moduleExports[metadata[2]]:void 0}var ReactDOMSharedInternals=ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator;function getIteratorFn(maybeIterable){return null===maybeIterable||"object"!=typeof maybeIterable?null:"function"==typeof(maybeIterable=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable["@@iterator"])?maybeIterable:null}var ASYNC_ITERATOR=Symbol.asyncIterator,isArrayImpl=Array.isArray,getPrototypeOf=Object.getPrototypeOf,ObjectPrototype=Object.prototype,knownServerReferences=new WeakMap;function serializeNumber(number){return Number.isFinite(number)?0===number&&-1/0==1/number?"$-0":number:1/0===number?"$Infinity":-1/0===number?"$-Infinity":"$NaN"}function processReply(root,formFieldPrefix,temporaryReferences,resolve,reject){function serializeTypedArray(tag,typedArray){typedArray=new Blob([new Uint8Array(typedArray.buffer,typedArray.byteOffset,typedArray.byteLength)]);var blobId=nextPartId++;return null===formData&&(formData=new FormData),formData.append(formFieldPrefix+blobId,typedArray),"$"+tag+blobId.toString(16)}function serializeBinaryReader(reader){function progress(entry){entry.done?(entry=nextPartId++,data.append(formFieldPrefix+entry,new Blob(buffer)),data.append(formFieldPrefix+streamId,'"$o'+entry.toString(16)+'"'),data.append(formFieldPrefix+streamId,"C"),0==--pendingParts&&resolve(data)):(buffer.push(entry.value),reader.read(new Uint8Array(1024)).then(progress,reject))}null===formData&&(formData=new FormData);var data=formData;pendingParts++;var streamId=nextPartId++,buffer=[];return reader.read(new Uint8Array(1024)).then(progress,reject),"$r"+streamId.toString(16)}function serializeReader(reader){function progress(entry){if(entry.done)data.append(formFieldPrefix+streamId,"C"),0==--pendingParts&&resolve(data);else try{var partJSON=JSON.stringify(entry.value,resolveToJSON);data.append(formFieldPrefix+streamId,partJSON),reader.read().then(progress,reject)}catch(x){reject(x)}}null===formData&&(formData=new FormData);var data=formData;pendingParts++;var streamId=nextPartId++;return reader.read().then(progress,reject),"$R"+streamId.toString(16)}function serializeReadableStream(stream){try{var binaryReader=stream.getReader({mode:"byob"})}catch(x){return serializeReader(stream.getReader())}return serializeBinaryReader(binaryReader)}function serializeAsyncIterable(iterable,iterator){function progress(entry){if(entry.done){if(void 0===entry.value)data.append(formFieldPrefix+streamId,"C");else try{var partJSON=JSON.stringify(entry.value,resolveToJSON);data.append(formFieldPrefix+streamId,"C"+partJSON)}catch(x){reject(x);return}0==--pendingParts&&resolve(data)}else try{var partJSON$21=JSON.stringify(entry.value,resolveToJSON);data.append(formFieldPrefix+streamId,partJSON$21),iterator.next().then(progress,reject)}catch(x$22){reject(x$22)}}null===formData&&(formData=new FormData);var data=formData;pendingParts++;var streamId=nextPartId++;return iterable=iterable===iterator,iterator.next().then(progress,reject),"$"+(iterable?"x":"X")+streamId.toString(16)}function resolveToJSON(key,value){if(null===value)return null;if("object"==typeof value){switch(value.$$typeof){case REACT_ELEMENT_TYPE:if(void 0!==temporaryReferences&&-1===key.indexOf(":")){var parentReference=writtenObjects.get(this);if(void 0!==parentReference)return temporaryReferences.set(parentReference+":"+key,value),"$T"}if(void 0!==temporaryReferences&&modelRoot===value)return modelRoot=null,"$T";throw Error("React Element cannot be passed to Server Functions from the Client without a temporary reference set. Pass a TemporaryReferenceSet to the options.");case REACT_LAZY_TYPE:parentReference=value._payload;var init=value._init;null===formData&&(formData=new FormData),pendingParts++;try{var resolvedModel=init(parentReference),lazyId=nextPartId++,partJSON=serializeModel(resolvedModel,lazyId);return formData.append(formFieldPrefix+lazyId,partJSON),"$"+lazyId.toString(16)}catch(x){if("object"==typeof x&&null!==x&&"function"==typeof x.then){pendingParts++;var lazyId$23=nextPartId++;return parentReference=function(){try{var partJSON$24=serializeModel(value,lazyId$23),data$25=formData;data$25.append(formFieldPrefix+lazyId$23,partJSON$24),pendingParts--,0===pendingParts&&resolve(data$25)}catch(reason){reject(reason)}},x.then(parentReference,parentReference),"$"+lazyId$23.toString(16)}return reject(x),null}finally{pendingParts--}}if(parentReference=writtenObjects.get(value),"function"==typeof value.then){if(void 0!==parentReference)if(modelRoot!==value)return parentReference;else modelRoot=null;null===formData&&(formData=new FormData),pendingParts++;var promiseId=nextPartId++;return key="$@"+promiseId.toString(16),writtenObjects.set(value,key),value.then(function(partValue){try{var previousReference=writtenObjects.get(partValue),partJSON$27=void 0!==previousReference?JSON.stringify(previousReference):serializeModel(partValue,promiseId);(partValue=formData).append(formFieldPrefix+promiseId,partJSON$27),pendingParts--,0===pendingParts&&resolve(partValue)}catch(reason){reject(reason)}},reject),key}if(void 0!==parentReference)if(modelRoot!==value)return parentReference;else modelRoot=null;else -1===key.indexOf(":")&&void 0!==(parentReference=writtenObjects.get(this))&&(key=parentReference+":"+key,writtenObjects.set(value,key),void 0!==temporaryReferences&&temporaryReferences.set(key,value));if(isArrayImpl(value))return value;if(value instanceof FormData){null===formData&&(formData=new FormData);var data$31=formData,prefix=formFieldPrefix+(key=nextPartId++)+"_";return value.forEach(function(originalValue,originalKey){data$31.append(prefix+originalKey,originalValue)}),"$K"+key.toString(16)}if(value instanceof Map)return key=nextPartId++,parentReference=serializeModel(Array.from(value),key),null===formData&&(formData=new FormData),formData.append(formFieldPrefix+key,parentReference),"$Q"+key.toString(16);if(value instanceof Set)return key=nextPartId++,parentReference=serializeModel(Array.from(value),key),null===formData&&(formData=new FormData),formData.append(formFieldPrefix+key,parentReference),"$W"+key.toString(16);if(value instanceof ArrayBuffer)return key=new Blob([value]),parentReference=nextPartId++,null===formData&&(formData=new FormData),formData.append(formFieldPrefix+parentReference,key),"$A"+parentReference.toString(16);if(value instanceof Int8Array)return serializeTypedArray("O",value);if(value instanceof Uint8Array)return serializeTypedArray("o",value);if(value instanceof Uint8ClampedArray)return serializeTypedArray("U",value);if(value instanceof Int16Array)return serializeTypedArray("S",value);if(value instanceof Uint16Array)return serializeTypedArray("s",value);if(value instanceof Int32Array)return serializeTypedArray("L",value);if(value instanceof Uint32Array)return serializeTypedArray("l",value);if(value instanceof Float32Array)return serializeTypedArray("G",value);if(value instanceof Float64Array)return serializeTypedArray("g",value);if(value instanceof BigInt64Array)return serializeTypedArray("M",value);if(value instanceof BigUint64Array)return serializeTypedArray("m",value);if(value instanceof DataView)return serializeTypedArray("V",value);if("function"==typeof Blob&&value instanceof Blob)return null===formData&&(formData=new FormData),key=nextPartId++,formData.append(formFieldPrefix+key,value),"$B"+key.toString(16);if(key=getIteratorFn(value))return(parentReference=key.call(value))===value?(key=nextPartId++,parentReference=serializeModel(Array.from(parentReference),key),null===formData&&(formData=new FormData),formData.append(formFieldPrefix+key,parentReference),"$i"+key.toString(16)):Array.from(parentReference);if("function"==typeof ReadableStream&&value instanceof ReadableStream)return serializeReadableStream(value);if("function"==typeof(key=value[ASYNC_ITERATOR]))return serializeAsyncIterable(value,key.call(value));if((key=getPrototypeOf(value))!==ObjectPrototype&&(null===key||null!==getPrototypeOf(key))){if(void 0===temporaryReferences)throw Error("Only plain objects, and a few built-ins, can be passed to Server Functions. Classes or null prototypes are not supported.");return"$T"}return value}if("string"==typeof value)return"Z"===value[value.length-1]&&this[key]instanceof Date?"$D"+value:key="$"===value[0]?"$"+value:value;if("boolean"==typeof value)return value;if("number"==typeof value)return serializeNumber(value);if(void 0===value)return"$undefined";if("function"==typeof value){if(void 0!==(parentReference=knownServerReferences.get(value)))return void 0!==(key=writtenObjects.get(value))||(key=JSON.stringify({id:parentReference.id,bound:parentReference.bound},resolveToJSON),null===formData&&(formData=new FormData),parentReference=nextPartId++,formData.set(formFieldPrefix+parentReference,key),key="$h"+parentReference.toString(16),writtenObjects.set(value,key)),key;if(void 0!==temporaryReferences&&-1===key.indexOf(":")&&void 0!==(parentReference=writtenObjects.get(this)))return temporaryReferences.set(parentReference+":"+key,value),"$T";throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.")}if("symbol"==typeof value){if(void 0!==temporaryReferences&&-1===key.indexOf(":")&&void 0!==(parentReference=writtenObjects.get(this)))return temporaryReferences.set(parentReference+":"+key,value),"$T";throw Error("Symbols cannot be passed to a Server Function without a temporary reference set. Pass a TemporaryReferenceSet to the options.")}if("bigint"==typeof value)return"$n"+value.toString(10);throw Error("Type "+typeof value+" is not supported as an argument to a Server Function.")}function serializeModel(model,id){return"object"==typeof model&&null!==model&&(id="$"+id.toString(16),writtenObjects.set(model,id),void 0!==temporaryReferences&&temporaryReferences.set(id,model)),modelRoot=model,JSON.stringify(model,resolveToJSON)}var nextPartId=1,pendingParts=0,formData=null,writtenObjects=new WeakMap,modelRoot=root,json=serializeModel(root,0);return null===formData?resolve(json):(formData.set(formFieldPrefix+"0",json),0===pendingParts&&resolve(formData)),function(){0<pendingParts&&(pendingParts=0,null===formData?resolve(json):resolve(formData))}}function registerBoundServerReference(reference,id,bound){knownServerReferences.has(reference)||knownServerReferences.set(reference,{id:id,originalBind:reference.bind,bound:bound})}function createBoundServerReference(metaData,callServer){function action(){var args=Array.prototype.slice.call(arguments);return bound?"fulfilled"===bound.status?callServer(id,bound.value.concat(args)):Promise.resolve(bound).then(function(boundArgs){return callServer(id,boundArgs.concat(args))}):callServer(id,args)}var id=metaData.id,bound=metaData.bound;return registerBoundServerReference(action,id,bound),action}function ReactPromise(status,value,reason){this.status=status,this.value=value,this.reason=reason}function readChunk(chunk){switch(chunk.status){case"resolved_model":initializeModelChunk(chunk);break;case"resolved_module":initializeModuleChunk(chunk)}switch(chunk.status){case"fulfilled":return chunk.value;case"pending":case"blocked":case"halted":throw chunk;default:throw chunk.reason}}function createPendingChunk(){return new ReactPromise("pending",null,null)}function wakeChunk(response,listeners,value,chunk){for(var i=0;i<listeners.length;i++){var listener=listeners[i];"function"==typeof listener?listener(value):fulfillReference(response,listener,value,chunk)}}function rejectChunk(response,listeners,error){for(var i=0;i<listeners.length;i++){var listener=listeners[i];"function"==typeof listener?listener(error):rejectReference(response,listener.handler,error)}}function resolveBlockedCycle(resolvedChunk,reference){var referencedChunk=reference.handler.chunk;if(null===referencedChunk)return null;if(referencedChunk===resolvedChunk)return reference.handler;if(null!==(reference=referencedChunk.value))for(referencedChunk=0;referencedChunk<reference.length;referencedChunk++){var listener=reference[referencedChunk];if("function"!=typeof listener&&null!==(listener=resolveBlockedCycle(resolvedChunk,listener)))return listener}return null}function wakeChunkIfInitialized(response,chunk,resolveListeners,rejectListeners){switch(chunk.status){case"fulfilled":wakeChunk(response,resolveListeners,chunk.value,chunk);break;case"blocked":for(var i=0;i<resolveListeners.length;i++){var listener=resolveListeners[i];if("function"!=typeof listener){var cyclicHandler=resolveBlockedCycle(chunk,listener);if(null!==cyclicHandler)switch(fulfillReference(response,listener,cyclicHandler.value,chunk),resolveListeners.splice(i,1),i--,null!==rejectListeners&&-1!==(listener=rejectListeners.indexOf(listener))&&rejectListeners.splice(listener,1),chunk.status){case"fulfilled":wakeChunk(response,resolveListeners,chunk.value,chunk);return;case"rejected":null!==rejectListeners&&rejectChunk(response,rejectListeners,chunk.reason);return}}}case"pending":if(chunk.value)for(response=0;response<resolveListeners.length;response++)chunk.value.push(resolveListeners[response]);else chunk.value=resolveListeners;if(chunk.reason){if(rejectListeners)for(resolveListeners=0;resolveListeners<rejectListeners.length;resolveListeners++)chunk.reason.push(rejectListeners[resolveListeners])}else chunk.reason=rejectListeners;break;case"rejected":rejectListeners&&rejectChunk(response,rejectListeners,chunk.reason)}}function triggerErrorOnChunk(response,chunk,error){if("pending"!==chunk.status&&"blocked"!==chunk.status)chunk.reason.error(error);else{var listeners=chunk.reason;chunk.status="rejected",chunk.reason=error,null!==listeners&&rejectChunk(response,listeners,error)}}function createResolvedIteratorResultChunk(response,value,done){return new ReactPromise("resolved_model",(done?'{"done":true,"value":':'{"done":false,"value":')+value+"}",response)}function resolveIteratorResultChunk(response,chunk,value,done){resolveModelChunk(response,chunk,(done?'{"done":true,"value":':'{"done":false,"value":')+value+"}")}function resolveModelChunk(response,chunk,value){if("pending"!==chunk.status)chunk.reason.enqueueModel(value);else{var resolveListeners=chunk.value,rejectListeners=chunk.reason;chunk.status="resolved_model",chunk.value=value,chunk.reason=response,null!==resolveListeners&&(initializeModelChunk(chunk),wakeChunkIfInitialized(response,chunk,resolveListeners,rejectListeners))}}function resolveModuleChunk(response,chunk,value){if("pending"===chunk.status||"blocked"===chunk.status){var resolveListeners=chunk.value,rejectListeners=chunk.reason;chunk.status="resolved_module",chunk.value=value,chunk.reason=null,null!==resolveListeners&&(initializeModuleChunk(chunk),wakeChunkIfInitialized(response,chunk,resolveListeners,rejectListeners))}}ReactPromise.prototype=Object.create(Promise.prototype),ReactPromise.prototype.then=function(resolve,reject){switch(this.status){case"resolved_model":initializeModelChunk(this);break;case"resolved_module":initializeModuleChunk(this)}switch(this.status){case"fulfilled":"function"==typeof resolve&&resolve(this.value);break;case"pending":case"blocked":"function"==typeof resolve&&(null===this.value&&(this.value=[]),this.value.push(resolve)),"function"==typeof reject&&(null===this.reason&&(this.reason=[]),this.reason.push(reject));break;case"halted":break;default:"function"==typeof reject&&reject(this.reason)}};var initializingHandler=null;function initializeModelChunk(chunk){var prevHandler=initializingHandler;initializingHandler=null;var resolvedModel=chunk.value,response=chunk.reason;chunk.status="blocked",chunk.value=null,chunk.reason=null;try{var value=parseModel(response,resolvedModel),resolveListeners=chunk.value;if(null!==resolveListeners)for(chunk.value=null,chunk.reason=null,resolvedModel=0;resolvedModel<resolveListeners.length;resolvedModel++){var listener=resolveListeners[resolvedModel];"function"==typeof listener?listener(value):fulfillReference(response,listener,value,chunk)}if(null!==initializingHandler){if(initializingHandler.errored)throw initializingHandler.reason;if(0<initializingHandler.deps){initializingHandler.value=value,initializingHandler.chunk=chunk;return}}chunk.status="fulfilled",chunk.value=value,chunk.reason=null}catch(error){chunk.status="rejected",chunk.reason=error}finally{initializingHandler=prevHandler}}function initializeModuleChunk(chunk){try{var value=requireModule(chunk.value);chunk.status="fulfilled",chunk.value=value,chunk.reason=null}catch(error){chunk.status="rejected",chunk.reason=error}}function reportGlobalError(weakResponse,error){weakResponse._closed=!0,weakResponse._closedReason=error,weakResponse._chunks.forEach(function(chunk){"pending"===chunk.status?triggerErrorOnChunk(weakResponse,chunk,error):"fulfilled"===chunk.status&&null!==chunk.reason&&chunk.reason.error(error)})}function createLazyChunkWrapper(chunk){return{$$typeof:REACT_LAZY_TYPE,_payload:chunk,_init:readChunk}}function getChunk(response,id){var chunks=response._chunks,chunk=chunks.get(id);return chunk||(response._closed?response._allowPartialStream?((response=chunk=createPendingChunk()).status="halted",response.value=null,response.reason=null):chunk=new ReactPromise("rejected",null,response._closedReason):chunk=createPendingChunk(),chunks.set(id,chunk)),chunk}function fulfillReference(response,reference,value){var handler=reference.handler,parentObject=reference.parentObject,key=reference.key,map=reference.map,path=reference.path;try{for(var i=1;i<path.length;i++){for(;"object"==typeof value&&null!==value&&value.$$typeof===REACT_LAZY_TYPE;){var referencedChunk=value._payload;if(referencedChunk===handler.chunk)value=handler.value;else{switch(referencedChunk.status){case"resolved_model":initializeModelChunk(referencedChunk);break;case"resolved_module":initializeModuleChunk(referencedChunk)}switch(referencedChunk.status){case"fulfilled":value=referencedChunk.value;continue;case"blocked":var cyclicHandler=resolveBlockedCycle(referencedChunk,reference);if(null!==cyclicHandler){value=cyclicHandler.value;continue}case"pending":path.splice(0,i-1),null===referencedChunk.value?referencedChunk.value=[reference]:referencedChunk.value.push(reference),null===referencedChunk.reason?referencedChunk.reason=[reference]:referencedChunk.reason.push(reference);return;case"halted":return;default:rejectReference(response,reference.handler,referencedChunk.reason);return}}}var name=path[i];if("object"==typeof value&&null!==value&&hasOwnProperty.call(value,name))value=value[name];else throw Error("Invalid reference.")}for(;"object"==typeof value&&null!==value&&value.$$typeof===REACT_LAZY_TYPE;){var referencedChunk$44=value._payload;if(referencedChunk$44===handler.chunk)value=handler.value;else{switch(referencedChunk$44.status){case"resolved_model":initializeModelChunk(referencedChunk$44);break;case"resolved_module":initializeModuleChunk(referencedChunk$44)}if("fulfilled"===referencedChunk$44.status){value=referencedChunk$44.value;continue}break}}var mappedValue=map(response,value,parentObject,key);if("__proto__"!==key&&(parentObject[key]=mappedValue),""===key&&null===handler.value&&(handler.value=mappedValue),parentObject[0]===REACT_ELEMENT_TYPE&&"object"==typeof handler.value&&null!==handler.value&&handler.value.$$typeof===REACT_ELEMENT_TYPE){var element=handler.value;"3"===key&&(element.props=mappedValue)}}catch(error){rejectReference(response,reference.handler,error);return}handler.deps--,0===handler.deps&&null!==(reference=handler.chunk)&&"blocked"===reference.status&&(value=reference.value,reference.status="fulfilled",reference.value=handler.value,reference.reason=handler.reason,null!==value&&wakeChunk(response,value,handler.value,reference))}function rejectReference(response,handler,error){handler.errored||(handler.errored=!0,handler.value=null,handler.reason=error,null!==(handler=handler.chunk)&&"blocked"===handler.status&&triggerErrorOnChunk(response,handler,error))}function waitForReference(referencedChunk,parentObject,key,response,map,path){return initializingHandler?(response=initializingHandler,response.deps++):response=initializingHandler={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1},parentObject={handler:response,parentObject:parentObject,key:key,map:map,path:path},null===referencedChunk.value?referencedChunk.value=[parentObject]:referencedChunk.value.push(parentObject),null===referencedChunk.reason?referencedChunk.reason=[parentObject]:referencedChunk.reason.push(parentObject),null}function loadServerReference(response,metaData,parentObject,key){if(!response._serverReferenceConfig)return createBoundServerReference(metaData,response._callServer);var serverReference=resolveServerReference(response._serverReferenceConfig,metaData.id),promise=preloadModule(serverReference);if(promise)metaData.bound&&(promise=Promise.all([promise,metaData.bound]));else{if(!metaData.bound)return registerBoundServerReference(promise=requireModule(serverReference),metaData.id,metaData.bound),promise;promise=Promise.resolve(metaData.bound)}if(initializingHandler){var handler=initializingHandler;handler.deps++}else handler=initializingHandler={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1};return promise.then(function(){var resolvedValue=requireModule(serverReference);if(metaData.bound){var boundArgs=metaData.bound.value.slice(0);boundArgs.unshift(null),resolvedValue=resolvedValue.bind.apply(resolvedValue,boundArgs)}registerBoundServerReference(resolvedValue,metaData.id,metaData.bound),"__proto__"!==key&&(parentObject[key]=resolvedValue),""===key&&null===handler.value&&(handler.value=resolvedValue),parentObject[0]===REACT_ELEMENT_TYPE&&"object"==typeof handler.value&&null!==handler.value&&handler.value.$$typeof===REACT_ELEMENT_TYPE&&(boundArgs=handler.value,"3"===key)&&(boundArgs.props=resolvedValue),handler.deps--,0===handler.deps&&null!==(resolvedValue=handler.chunk)&&"blocked"===resolvedValue.status&&(boundArgs=resolvedValue.value,resolvedValue.status="fulfilled",resolvedValue.value=handler.value,resolvedValue.reason=null,null!==boundArgs&&wakeChunk(response,boundArgs,handler.value,resolvedValue))},function(error){if(!handler.errored){handler.errored=!0,handler.value=null,handler.reason=error;var chunk=handler.chunk;null!==chunk&&"blocked"===chunk.status&&triggerErrorOnChunk(response,chunk,error)}}),null}function getOutlinedModel(response,reference,parentObject,key,map){var id=parseInt((reference=reference.split(":"))[0],16);switch((id=getChunk(response,id)).status){case"resolved_model":initializeModelChunk(id);break;case"resolved_module":initializeModuleChunk(id)}switch(id.status){case"fulfilled":id=id.value;for(var i=1;i<reference.length;i++){for(;"object"==typeof id&&null!==id&&id.$$typeof===REACT_LAZY_TYPE;){switch((id=id._payload).status){case"resolved_model":initializeModelChunk(id);break;case"resolved_module":initializeModuleChunk(id)}switch(id.status){case"fulfilled":id=id.value;break;case"blocked":case"pending":return waitForReference(id,parentObject,key,response,map,reference.slice(i-1));case"halted":return initializingHandler?(response=initializingHandler,response.deps++):initializingHandler={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1},null;default:return initializingHandler?(initializingHandler.errored=!0,initializingHandler.value=null,initializingHandler.reason=id.reason):initializingHandler={parent:null,chunk:null,value:null,reason:id.reason,deps:0,errored:!0},null}}id=id[reference[i]]}for(;"object"==typeof id&&null!==id&&id.$$typeof===REACT_LAZY_TYPE;){switch((reference=id._payload).status){case"resolved_model":initializeModelChunk(reference);break;case"resolved_module":initializeModuleChunk(reference)}if("fulfilled"===reference.status){id=reference.value;continue}break}return map(response,id,parentObject,key);case"pending":case"blocked":return waitForReference(id,parentObject,key,response,map,reference);case"halted":return initializingHandler?(response=initializingHandler,response.deps++):initializingHandler={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1},null;default:return initializingHandler?(initializingHandler.errored=!0,initializingHandler.value=null,initializingHandler.reason=id.reason):initializingHandler={parent:null,chunk:null,value:null,reason:id.reason,deps:0,errored:!0},null}}function createMap(response,model){return new Map(model)}function createSet(response,model){return new Set(model)}function createBlob(response,model){return new Blob(model.slice(1),{type:model[0]})}function createFormData(response,model){response=new FormData;for(var i=0;i<model.length;i++)response.append(model[i][0],model[i][1]);return response}function extractIterator(response,model){return model[Symbol.iterator]()}function createModel(response,model){return model}function parseModelString(response,parentObject,key,value){if("$"===value[0]){if("$"===value)return null!==initializingHandler&&"0"===key&&(initializingHandler={parent:initializingHandler,chunk:null,value:null,reason:null,deps:0,errored:!1}),REACT_ELEMENT_TYPE;switch(value[1]){case"$":return value.slice(1);case"L":return createLazyChunkWrapper(response=getChunk(response,parentObject=parseInt(value.slice(2),16)));case"@":return getChunk(response,parentObject=parseInt(value.slice(2),16));case"S":return Symbol.for(value.slice(2));case"h":return getOutlinedModel(response,value=value.slice(2),parentObject,key,loadServerReference);case"T":if(parentObject="$"+value.slice(2),null==(response=response._tempRefs))throw Error("Missing a temporary reference set but the RSC response returned a temporary reference. Pass a temporaryReference option with the set that was used with the reply.");return response.get(parentObject);case"Q":return getOutlinedModel(response,value=value.slice(2),parentObject,key,createMap);case"W":return getOutlinedModel(response,value=value.slice(2),parentObject,key,createSet);case"B":return getOutlinedModel(response,value=value.slice(2),parentObject,key,createBlob);case"K":return getOutlinedModel(response,value=value.slice(2),parentObject,key,createFormData);case"Z":return resolveErrorProd();case"i":return getOutlinedModel(response,value=value.slice(2),parentObject,key,extractIterator);case"I":return 1/0;case"-":return"$-0"===value?-0:-1/0;case"N":return NaN;case"u":return;case"D":return new Date(Date.parse(value.slice(2)));case"n":return BigInt(value.slice(2));default:return getOutlinedModel(response,value=value.slice(1),parentObject,key,createModel)}}return value}function missingCall(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.')}function ResponseInstance(bundlerConfig,serverReferenceConfig,moduleLoading,callServer,encodeFormAction,nonce,temporaryReferences,allowPartialStream){var chunks=new Map;this._bundlerConfig=bundlerConfig,this._serverReferenceConfig=serverReferenceConfig,this._moduleLoading=moduleLoading,this._callServer=void 0!==callServer?callServer:missingCall,this._encodeFormAction=encodeFormAction,this._nonce=nonce,this._chunks=chunks,this._stringDecoder=new TextDecoder,this._closed=!1,this._closedReason=null,this._allowPartialStream=allowPartialStream,this._tempRefs=temporaryReferences}function resolveBuffer(response,id,buffer){var chunk=(response=response._chunks).get(id);chunk&&"pending"!==chunk.status?chunk.reason.enqueueValue(buffer):(buffer=new ReactPromise("fulfilled",buffer,null),response.set(id,buffer))}function resolveModule(response,id,model){var chunks=response._chunks,chunk=chunks.get(id);model=parseModel(response,model);var clientReference=resolveClientReference(response._bundlerConfig,model);if(model=preloadModule(clientReference)){if(chunk){var blockedChunk=chunk;blockedChunk.status="blocked"}else blockedChunk=new ReactPromise("blocked",null,null),chunks.set(id,blockedChunk);model.then(function(){return resolveModuleChunk(response,blockedChunk,clientReference)},function(error){return triggerErrorOnChunk(response,blockedChunk,error)})}else chunk?resolveModuleChunk(response,chunk,clientReference):(chunk=new ReactPromise("resolved_module",clientReference,null),chunks.set(id,chunk))}function resolveStream(response,id,stream,controller){var chunks=response._chunks,chunk=chunks.get(id);chunk?"pending"===chunk.status&&(id=chunk.value,chunk.status="fulfilled",chunk.value=stream,chunk.reason=controller,null!==id&&wakeChunk(response,id,chunk.value,chunk)):(response=new ReactPromise("fulfilled",stream,controller),chunks.set(id,response))}function startReadableStream(response,id,type){var controller=null,closed=!1;type=new ReadableStream({type:type,start:function(c){controller=c}});var previousBlockedChunk=null;resolveStream(response,id,type,{enqueueValue:function(value){null===previousBlockedChunk?controller.enqueue(value):previousBlockedChunk.then(function(){controller.enqueue(value)})},enqueueModel:function(json){if(null===previousBlockedChunk){var chunk=new ReactPromise("resolved_model",json,response);initializeModelChunk(chunk),"fulfilled"===chunk.status?controller.enqueue(chunk.value):(chunk.then(function(v){return controller.enqueue(v)},function(e){return controller.error(e)}),previousBlockedChunk=chunk)}else{chunk=previousBlockedChunk;var chunk$55=createPendingChunk();chunk$55.then(function(v){return controller.enqueue(v)},function(e){return controller.error(e)}),previousBlockedChunk=chunk$55,chunk.then(function(){previousBlockedChunk===chunk$55&&(previousBlockedChunk=null),resolveModelChunk(response,chunk$55,json)})}},close:function(){if(!closed)if(closed=!0,null===previousBlockedChunk)controller.close();else{var blockedChunk=previousBlockedChunk;previousBlockedChunk=null,blockedChunk.then(function(){return controller.close()})}},error:function(error){if(!closed)if(closed=!0,null===previousBlockedChunk)controller.error(error);else{var blockedChunk=previousBlockedChunk;previousBlockedChunk=null,blockedChunk.then(function(){return controller.error(error)})}}})}function asyncIterator(){return this}function createIterator(next){return(next={next:next})[ASYNC_ITERATOR]=asyncIterator,next}function startAsyncIterable(response,id,iterator){var buffer=[],closed=!1,nextWriteIndex=0,iterable={};iterable[ASYNC_ITERATOR]=function(){var nextReadIndex=0;return createIterator(function(arg){if(void 0!==arg)throw Error("Values cannot be passed to next() of AsyncIterables passed to Client Components.");if(nextReadIndex===buffer.length){if(closed)return new ReactPromise("fulfilled",{done:!0,value:void 0},null);buffer[nextReadIndex]=createPendingChunk()}return buffer[nextReadIndex++]})},resolveStream(response,id,iterator?iterable[ASYNC_ITERATOR]():iterable,{enqueueValue:function(value){if(nextWriteIndex===buffer.length)buffer[nextWriteIndex]=new ReactPromise("fulfilled",{done:!1,value:value},null);else{var chunk=buffer[nextWriteIndex],resolveListeners=chunk.value,rejectListeners=chunk.reason;chunk.status="fulfilled",chunk.value={done:!1,value:value},chunk.reason=null,null!==resolveListeners&&wakeChunkIfInitialized(response,chunk,resolveListeners,rejectListeners)}nextWriteIndex++},enqueueModel:function(value){nextWriteIndex===buffer.length?buffer[nextWriteIndex]=createResolvedIteratorResultChunk(response,value,!1):resolveIteratorResultChunk(response,buffer[nextWriteIndex],value,!1),nextWriteIndex++},close:function(value){if(!closed)for(closed=!0,nextWriteIndex===buffer.length?buffer[nextWriteIndex]=createResolvedIteratorResultChunk(response,value,!0):resolveIteratorResultChunk(response,buffer[nextWriteIndex],value,!0),nextWriteIndex++;nextWriteIndex<buffer.length;)resolveIteratorResultChunk(response,buffer[nextWriteIndex++],'"$undefined"',!0)},error:function(error){if(!closed)for(closed=!0,nextWriteIndex===buffer.length&&(buffer[nextWriteIndex]=createPendingChunk());nextWriteIndex<buffer.length;)triggerErrorOnChunk(response,buffer[nextWriteIndex++],error)}})}function resolveErrorProd(){var error=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");return error.stack="Error: "+error.message,error}function mergeBuffer(buffer,lastChunk){for(var l=buffer.length,byteLength=lastChunk.length,i=0;i<l;i++)byteLength+=buffer[i].byteLength;byteLength=new Uint8Array(byteLength);for(var i$56=i=0;i$56<l;i$56++){var chunk=buffer[i$56];byteLength.set(chunk,i),i+=chunk.byteLength}return byteLength.set(lastChunk,i),byteLength}function resolveTypedArray(response,id,buffer,lastChunk,constructor,bytesPerElement){resolveBuffer(response,id,constructor=new constructor((buffer=0===buffer.length&&0==lastChunk.byteOffset%bytesPerElement?lastChunk:mergeBuffer(buffer,lastChunk)).buffer,buffer.byteOffset,buffer.byteLength/bytesPerElement))}function processFullBinaryRow(response,streamState,id,tag,buffer,chunk){switch(tag){case 65:resolveBuffer(response,id,mergeBuffer(buffer,chunk).buffer);return;case 79:resolveTypedArray(response,id,buffer,chunk,Int8Array,1);return;case 111:resolveBuffer(response,id,0===buffer.length?chunk:mergeBuffer(buffer,chunk));return;case 85:resolveTypedArray(response,id,buffer,chunk,Uint8ClampedArray,1);return;case 83:resolveTypedArray(response,id,buffer,chunk,Int16Array,2);return;case 115:resolveTypedArray(response,id,buffer,chunk,Uint16Array,2);return;case 76:resolveTypedArray(response,id,buffer,chunk,Int32Array,4);return;case 108:resolveTypedArray(response,id,buffer,chunk,Uint32Array,4);return;case 71:resolveTypedArray(response,id,buffer,chunk,Float32Array,4);return;case 103:resolveTypedArray(response,id,buffer,chunk,Float64Array,8);return;case 77:resolveTypedArray(response,id,buffer,chunk,BigInt64Array,8);return;case 109:resolveTypedArray(response,id,buffer,chunk,BigUint64Array,8);return;case 86:resolveTypedArray(response,id,buffer,chunk,DataView,1);return}streamState=response._stringDecoder;for(var row="",i=0;i<buffer.length;i++)row+=streamState.decode(buffer[i],decoderOptions);switch(buffer=row+=streamState.decode(chunk),tag){case 73:resolveModule(response,id,buffer);break;case 72:switch(id=buffer[0],response=parseModel(response,buffer=buffer.slice(1)),buffer=ReactDOMSharedInternals.d,id){case"D":buffer.D(response);break;case"C":"string"==typeof response?buffer.C(response):buffer.C(response[0],response[1]);break;case"L":id=response[0],tag=response[1],3===response.length?buffer.L(id,tag,response[2]):buffer.L(id,tag);break;case"m":"string"==typeof response?buffer.m(response):buffer.m(response[0],response[1]);break;case"X":"string"==typeof response?buffer.X(response):buffer.X(response[0],response[1]);break;case"S":"string"==typeof response?buffer.S(response):buffer.S(response[0],0===response[1]?void 0:response[1],3===response.length?response[2]:void 0);break;case"M":"string"==typeof response?buffer.M(response):buffer.M(response[0],response[1])}break;case 69:chunk=(tag=response._chunks).get(id),buffer=JSON.parse(buffer),(streamState=resolveErrorProd()).digest=buffer.digest,chunk?triggerErrorOnChunk(response,chunk,streamState):(response=new ReactPromise("rejected",null,streamState),tag.set(id,response));break;case 84:(tag=(response=response._chunks).get(id))&&"pending"!==tag.status?tag.reason.enqueueValue(buffer):(buffer=new ReactPromise("fulfilled",buffer,null),response.set(id,buffer));break;case 78:case 68:case 74:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");case 82:startReadableStream(response,id,void 0);break;case 114:startReadableStream(response,id,"bytes");break;case 88:startAsyncIterable(response,id,!1);break;case 120:startAsyncIterable(response,id,!0);break;case 67:(id=response._chunks.get(id))&&"fulfilled"===id.status&&id.reason.close(""===buffer?'"$undefined"':buffer);break;default:(chunk=(tag=response._chunks).get(id))?resolveModelChunk(response,chunk,buffer):(response=new ReactPromise("resolved_model",buffer,response),tag.set(id,response))}}function parseModel(response,json){return reviveModel(response,json=JSON.parse(json),{"":json},"")}function reviveModel(response,value,parentObject,key){if("string"==typeof value)return"$"===value[0]?parseModelString(response,parentObject,key,value):value;if("object"!=typeof value||null===value)return value;if(isArrayImpl(value)){for(var i=0;i<value.length;i++)value[i]=reviveModel(response,value[i],value,""+i);return value[0]===REACT_ELEMENT_TYPE?(value[0]===REACT_ELEMENT_TYPE?(response={$$typeof:REACT_ELEMENT_TYPE,type:value[1],key:value[2],ref:null,props:value[3]},null!==initializingHandler&&(initializingHandler=(value=initializingHandler).parent,value.errored?response=createLazyChunkWrapper(response=new ReactPromise("rejected",null,value.reason)):0<value.deps&&(i=new ReactPromise("blocked",null,null),value.value=response,value.chunk=i,response=createLazyChunkWrapper(i)))):response=value,response):value}for(i in value)"__proto__"===i?delete value[i]:void 0!==(parentObject=reviveModel(response,value[i],value,i))?value[i]=parentObject:delete value[i];return value}function close(weakResponse){weakResponse._allowPartialStream?(weakResponse._closed=!0,weakResponse._chunks.forEach(function(chunk){"pending"===chunk.status?(chunk.status="halted",chunk.value=null,chunk.reason=null):"fulfilled"===chunk.status&&null!==chunk.reason&&chunk.reason.close('"$undefined"')})):reportGlobalError(weakResponse,Error("Connection closed."))}function createResponseFromOptions(options){return new ResponseInstance(null,null,null,options&&options.callServer?options.callServer:void 0,void 0,void 0,options&&options.temporaryReferences?options.temporaryReferences:void 0,!!options&&!!options.unstable_allowPartialStream&&options.unstable_allowPartialStream)}function startReadingFromStream(response,stream,onDone){function progress(_ref2){var value=_ref2.value;if(_ref2.done)return onDone();var i=0,rowState=streamState._rowState;_ref2=streamState._rowID;for(var rowTag=streamState._rowTag,rowLength=streamState._rowLength,buffer=streamState._buffer,chunkLength=value.length;i<chunkLength;){var lastIdx=-1;switch(rowState){case 0:58===(lastIdx=value[i++])?rowState=1:_ref2=_ref2<<4|(96<lastIdx?lastIdx-87:lastIdx-48);continue;case 1:84===(rowState=value[i])||65===rowState||79===rowState||111===rowState||98===rowState||85===rowState||83===rowState||115===rowState||76===rowState||108===rowState||71===rowState||103===rowState||77===rowState||109===rowState||86===rowState?(rowTag=rowState,rowState=2,i++):64<rowState&&91>rowState||35===rowState||114===rowState||120===rowState?(rowTag=rowState,rowState=3,i++):(rowTag=0,rowState=3);continue;case 2:44===(lastIdx=value[i++])?rowState=4:rowLength=rowLength<<4|(96<lastIdx?lastIdx-87:lastIdx-48);continue;case 3:lastIdx=value.indexOf(10,i);break;case 4:(lastIdx=i+rowLength)>value.length&&(lastIdx=-1)}var offset=value.byteOffset+i;if(-1<lastIdx)rowLength=new Uint8Array(value.buffer,offset,lastIdx-i),98===rowTag?resolveBuffer(response,_ref2,lastIdx===chunkLength?rowLength:rowLength.slice()):processFullBinaryRow(response,streamState,_ref2,rowTag,buffer,rowLength),i=lastIdx,3===rowState&&i++,rowLength=_ref2=rowTag=rowState=0,buffer.length=0;else{value=new Uint8Array(value.buffer,offset,value.byteLength-i),98===rowTag?(rowLength-=value.byteLength,resolveBuffer(response,_ref2,value)):(buffer.push(value),rowLength-=value.byteLength);break}}return streamState._rowState=rowState,streamState._rowID=_ref2,streamState._rowTag=rowTag,streamState._rowLength=rowLength,reader.read().then(progress).catch(error)}function error(e){reportGlobalError(response,e)}var streamState={_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]},reader=stream.getReader();reader.read().then(progress).catch(error)}exports.createFromFetch=function(promiseForResponse,options){var response=createResponseFromOptions(options);return promiseForResponse.then(function(r){startReadingFromStream(response,r.body,close.bind(null,response))},function(e){reportGlobalError(response,e)}),getChunk(response,0)},exports.createFromReadableStream=function(stream,options){return startReadingFromStream(options=createResponseFromOptions(options),stream,close.bind(null,options)),getChunk(options,0)},exports.createServerReference=function(id,callServer){function action(){var args=Array.prototype.slice.call(arguments);return callServer(id,args)}return registerBoundServerReference(action,id,null),action},exports.createTemporaryReferenceSet=function(){return new Map},exports.encodeReply=function(value,options){return new Promise(function(resolve,reject){var abort=processReply(value,"",options&&options.temporaryReferences?options.temporaryReferences:void 0,resolve,reject);if(options&&options.signal){var signal=options.signal;if(signal.aborted)abort(signal.reason);else{var listener=function(){abort(signal.reason),signal.removeEventListener("abort",listener)};signal.addEventListener("abort",listener)}}})},exports.registerServerReference=function(reference,id){return registerBoundServerReference(reference,id,null),reference}},67740,(__turbopack_context__,module,exports)=>{"use strict";module.exports=__turbopack_context__.r(13201)},89530,(__turbopack_context__,module,exports)=>{"use strict";module.exports=__turbopack_context__.r(67740)},42125,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{HTTPAccessErrorStatus:function(){return HTTPAccessErrorStatus},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return HTTP_ERROR_FALLBACK_ERROR_CODE},getAccessFallbackErrorTypeByStatus:function(){return getAccessFallbackErrorTypeByStatus},getAccessFallbackHTTPStatus:function(){return getAccessFallbackHTTPStatus},isHTTPAccessFallbackError:function(){return isHTTPAccessFallbackError}});let HTTPAccessErrorStatus={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},ALLOWED_CODES=new Set(Object.values(HTTPAccessErrorStatus)),HTTP_ERROR_FALLBACK_ERROR_CODE="NEXT_HTTP_ERROR_FALLBACK";function isHTTPAccessFallbackError(error){if("object"!=typeof error||null===error||!("digest"in error)||"string"!=typeof error.digest)return!1;let[prefix,httpStatus]=error.digest.split(";");return prefix===HTTP_ERROR_FALLBACK_ERROR_CODE&&ALLOWED_CODES.has(Number(httpStatus))}function getAccessFallbackHTTPStatus(error){return Number(error.digest.split(";")[1])}function getAccessFallbackErrorTypeByStatus(status){switch(status){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},76294,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"RedirectStatusCode",{enumerable:!0,get:function(){return RedirectStatusCode1}});var RedirectStatusCode,RedirectStatusCode1=((RedirectStatusCode={})[RedirectStatusCode.SeeOther=303]="SeeOther",RedirectStatusCode[RedirectStatusCode.TemporaryRedirect=307]="TemporaryRedirect",RedirectStatusCode[RedirectStatusCode.PermanentRedirect=308]="PermanentRedirect",RedirectStatusCode);("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},7244,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{REDIRECT_ERROR_CODE:function(){return REDIRECT_ERROR_CODE},isRedirectError:function(){return isRedirectError}});let _redirectstatuscode=__turbopack_context__.r(76294),REDIRECT_ERROR_CODE="NEXT_REDIRECT";function isRedirectError(error){if("object"!=typeof error||null===error||!("digest"in error)||"string"!=typeof error.digest)return!1;let digest=error.digest.split(";"),[errorCode,type]=digest,destination=digest.slice(2,-2).join(";"),statusCode=Number(digest.at(-2));return errorCode===REDIRECT_ERROR_CODE&&("replace"===type||"push"===type)&&"string"==typeof destination&&!isNaN(statusCode)&&statusCode in _redirectstatuscode.RedirectStatusCode}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},7986,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isNextRouterError",{enumerable:!0,get:function(){return isNextRouterError}});let _httpaccessfallback=__turbopack_context__.r(42125),_redirecterror=__turbopack_context__.r(7244);function isNextRouterError(error){return(0,_redirecterror.isRedirectError)(error)||(0,_httpaccessfallback.isHTTPAccessFallbackError)(error)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},44066,(__turbopack_context__,module,exports)=>{"use strict";function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}exports._=function _interop_require_wildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={__proto__:null},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}return newObj.default=obj,cache&&cache.set(obj,newObj),newObj}},76053,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ReadonlyURLSearchParams",{enumerable:!0,get:function(){return ReadonlyURLSearchParams}});class ReadonlyURLSearchParamsError extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class ReadonlyURLSearchParams extends URLSearchParams{append(){throw new ReadonlyURLSearchParamsError}delete(){throw new ReadonlyURLSearchParamsError}set(){throw new ReadonlyURLSearchParamsError}sort(){throw new ReadonlyURLSearchParamsError}}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},6091,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{NavigationPromisesContext:function(){return NavigationPromisesContext},PathParamsContext:function(){return PathParamsContext},PathnameContext:function(){return PathnameContext},ReadonlyURLSearchParams:function(){return _readonlyurlsearchparams.ReadonlyURLSearchParams},SearchParamsContext:function(){return SearchParamsContext},createDevToolsInstrumentedPromise:function(){return createDevToolsInstrumentedPromise}});let _react=__turbopack_context__.r(66626),_readonlyurlsearchparams=__turbopack_context__.r(76053),SearchParamsContext=(0,_react.createContext)(null),PathnameContext=(0,_react.createContext)(null),PathParamsContext=(0,_react.createContext)(null),NavigationPromisesContext=(0,_react.createContext)(null);function createDevToolsInstrumentedPromise(displayName,value){let promise=Promise.resolve(value);return promise.status="fulfilled",promise.value=value,promise.displayName=`${displayName} (SSR)`,promise}},85849,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return workUnitAsyncStorageInstance}});let workUnitAsyncStorageInstance=(0,__turbopack_context__.r(286).createAsyncLocalStorage)()},46724,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{ACTION_HEADER:function(){return ACTION_HEADER},FLIGHT_HEADERS:function(){return FLIGHT_HEADERS},NEXT_ACTION_NOT_FOUND_HEADER:function(){return NEXT_ACTION_NOT_FOUND_HEADER},NEXT_ACTION_REVALIDATED_HEADER:function(){return NEXT_ACTION_REVALIDATED_HEADER},NEXT_DID_POSTPONE_HEADER:function(){return NEXT_DID_POSTPONE_HEADER},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return NEXT_HMR_REFRESH_HASH_COOKIE},NEXT_HMR_REFRESH_HEADER:function(){return NEXT_HMR_REFRESH_HEADER},NEXT_HTML_REQUEST_ID_HEADER:function(){return NEXT_HTML_REQUEST_ID_HEADER},NEXT_INSTANT_PREFETCH_HEADER:function(){return NEXT_INSTANT_PREFETCH_HEADER},NEXT_INSTANT_TEST_COOKIE:function(){return NEXT_INSTANT_TEST_COOKIE},NEXT_IS_PRERENDER_HEADER:function(){return NEXT_IS_PRERENDER_HEADER},NEXT_REQUEST_ID_HEADER:function(){return NEXT_REQUEST_ID_HEADER},NEXT_REWRITTEN_PATH_HEADER:function(){return NEXT_REWRITTEN_PATH_HEADER},NEXT_REWRITTEN_QUERY_HEADER:function(){return NEXT_REWRITTEN_QUERY_HEADER},NEXT_ROUTER_PREFETCH_HEADER:function(){return NEXT_ROUTER_PREFETCH_HEADER},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return NEXT_ROUTER_SEGMENT_PREFETCH_HEADER},NEXT_ROUTER_STALE_TIME_HEADER:function(){return NEXT_ROUTER_STALE_TIME_HEADER},NEXT_ROUTER_STATE_TREE_HEADER:function(){return NEXT_ROUTER_STATE_TREE_HEADER},NEXT_RSC_UNION_QUERY:function(){return NEXT_RSC_UNION_QUERY},NEXT_URL:function(){return NEXT_URL},RSC_CONTENT_TYPE_HEADER:function(){return RSC_CONTENT_TYPE_HEADER},RSC_HEADER:function(){return RSC_HEADER}});let RSC_HEADER="rsc",ACTION_HEADER="next-action",NEXT_ROUTER_STATE_TREE_HEADER="next-router-state-tree",NEXT_ROUTER_PREFETCH_HEADER="next-router-prefetch",NEXT_ROUTER_SEGMENT_PREFETCH_HEADER="next-router-segment-prefetch",NEXT_HMR_REFRESH_HEADER="next-hmr-refresh",NEXT_HMR_REFRESH_HASH_COOKIE="__next_hmr_refresh_hash__",NEXT_URL="next-url",RSC_CONTENT_TYPE_HEADER="text/x-component",NEXT_INSTANT_PREFETCH_HEADER="next-instant-navigation-testing-prefetch",NEXT_INSTANT_TEST_COOKIE="next-instant-navigation-testing",FLIGHT_HEADERS=[RSC_HEADER,NEXT_ROUTER_STATE_TREE_HEADER,NEXT_ROUTER_PREFETCH_HEADER,NEXT_HMR_REFRESH_HEADER,NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],NEXT_RSC_UNION_QUERY="_rsc",NEXT_ROUTER_STALE_TIME_HEADER="x-nextjs-stale-time",NEXT_DID_POSTPONE_HEADER="x-nextjs-postponed",NEXT_REWRITTEN_PATH_HEADER="x-nextjs-rewritten-path",NEXT_REWRITTEN_QUERY_HEADER="x-nextjs-rewritten-query",NEXT_IS_PRERENDER_HEADER="x-nextjs-prerender",NEXT_ACTION_NOT_FOUND_HEADER="x-nextjs-action-not-found",NEXT_REQUEST_ID_HEADER="x-nextjs-request-id",NEXT_HTML_REQUEST_ID_HEADER="x-nextjs-html-request-id",NEXT_ACTION_REVALIDATED_HEADER="x-action-revalidated";("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},26576,(__turbopack_context__,module,exports)=>{"use strict";function createPromiseWithResolvers(){let resolve,reject,promise=new Promise((res,rej)=>{resolve=res,reject=rej});return{resolve:resolve,reject:reject,promise}}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"createPromiseWithResolvers",{enumerable:!0,get:function(){return createPromiseWithResolvers}})},84147,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{RenderStage:function(){return RenderStage1},StagedRenderingController:function(){return StagedRenderingController}});let _invarianterror=__turbopack_context__.r(79608),_promisewithresolvers=__turbopack_context__.r(26576);var RenderStage,RenderStage1=((RenderStage={})[RenderStage.Before=1]="Before",RenderStage[RenderStage.EarlyStatic=2]="EarlyStatic",RenderStage[RenderStage.Static=3]="Static",RenderStage[RenderStage.EarlyRuntime=4]="EarlyRuntime",RenderStage[RenderStage.Runtime=5]="Runtime",RenderStage[RenderStage.Dynamic=6]="Dynamic",RenderStage[RenderStage.Abandoned=7]="Abandoned",RenderStage);class StagedRenderingController{constructor(abortSignal,abandonController,shouldTrackSyncIO){this.abortSignal=abortSignal,this.abandonController=abandonController,this.shouldTrackSyncIO=shouldTrackSyncIO,this.currentStage=1,this.syncInterruptReason=null,this.staticStageEndTime=1/0,this.runtimeStageEndTime=1/0,this.staticStageListeners=[],this.earlyRuntimeStageListeners=[],this.runtimeStageListeners=[],this.dynamicStageListeners=[],this.staticStagePromise=(0,_promisewithresolvers.createPromiseWithResolvers)(),this.earlyRuntimeStagePromise=(0,_promisewithresolvers.createPromiseWithResolvers)(),this.runtimeStagePromise=(0,_promisewithresolvers.createPromiseWithResolvers)(),this.dynamicStagePromise=(0,_promisewithresolvers.createPromiseWithResolvers)(),abortSignal&&abortSignal.addEventListener("abort",()=>{let{reason}=abortSignal;this.staticStagePromise.promise.catch(ignoreReject),this.staticStagePromise.reject(reason),this.earlyRuntimeStagePromise.promise.catch(ignoreReject),this.earlyRuntimeStagePromise.reject(reason),this.runtimeStagePromise.promise.catch(ignoreReject),this.runtimeStagePromise.reject(reason),this.dynamicStagePromise.promise.catch(ignoreReject),this.dynamicStagePromise.reject(reason)},{once:!0}),abandonController&&abandonController.signal.addEventListener("abort",()=>{this.abandonRender()},{once:!0})}onStage(stage,callback){if(this.currentStage>=stage)callback();else if(3===stage)this.staticStageListeners.push(callback);else if(4===stage)this.earlyRuntimeStageListeners.push(callback);else if(5===stage)this.runtimeStageListeners.push(callback);else if(6===stage)this.dynamicStageListeners.push(callback);else throw Object.defineProperty(new _invarianterror.InvariantError(`Invalid render stage: ${stage}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}shouldTrackSyncInterrupt(){if(!this.shouldTrackSyncIO)return!1;switch(this.currentStage){case 1:case 5:case 6:case 7:default:return!1;case 2:case 3:case 4:return!0}}syncInterruptCurrentStageWithReason(reason){if(1!==this.currentStage&&7!==this.currentStage){if(this.abandonController)return void this.abandonController.abort();if(this.abortSignal){this.syncInterruptReason=reason,this.currentStage=7;return}switch(this.currentStage){case 2:case 3:case 4:this.syncInterruptReason=reason,this.advanceStage(6);return;case 5:return}}}getSyncInterruptReason(){return this.syncInterruptReason}getStaticStageEndTime(){return this.staticStageEndTime}getRuntimeStageEndTime(){return this.runtimeStageEndTime}abandonRender(){let{currentStage}=this;switch(currentStage){case 2:this.resolveStaticStage();case 3:this.resolveEarlyRuntimeStage();case 4:this.resolveRuntimeStage();case 5:this.currentStage=7;return}}advanceStage(stage){if(stage<=this.currentStage)return;let currentStage=this.currentStage;if(this.currentStage=stage,currentStage<3&&stage>=3&&this.resolveStaticStage(),currentStage<4&&stage>=4&&this.resolveEarlyRuntimeStage(),currentStage<5&&stage>=5&&(this.staticStageEndTime=performance.now()+performance.timeOrigin,this.resolveRuntimeStage()),currentStage<6&&stage>=6){this.runtimeStageEndTime=performance.now()+performance.timeOrigin,this.resolveDynamicStage();return}}resolveStaticStage(){let staticListeners=this.staticStageListeners;for(let i=0;i<staticListeners.length;i++)staticListeners[i]();staticListeners.length=0,this.staticStagePromise.resolve()}resolveEarlyRuntimeStage(){let earlyRuntimeListeners=this.earlyRuntimeStageListeners;for(let i=0;i<earlyRuntimeListeners.length;i++)earlyRuntimeListeners[i]();earlyRuntimeListeners.length=0,this.earlyRuntimeStagePromise.resolve()}resolveRuntimeStage(){let runtimeListeners=this.runtimeStageListeners;for(let i=0;i<runtimeListeners.length;i++)runtimeListeners[i]();runtimeListeners.length=0,this.runtimeStagePromise.resolve()}resolveDynamicStage(){let dynamicListeners=this.dynamicStageListeners;for(let i=0;i<dynamicListeners.length;i++)dynamicListeners[i]();dynamicListeners.length=0,this.dynamicStagePromise.resolve()}getStagePromise(stage){switch(stage){case 3:return this.staticStagePromise.promise;case 4:return this.earlyRuntimeStagePromise.promise;case 5:return this.runtimeStagePromise.promise;case 6:return this.dynamicStagePromise.promise;default:throw Object.defineProperty(new _invarianterror.InvariantError(`Invalid render stage: ${stage}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}}waitForStage(stage){return this.getStagePromise(stage)}delayUntilStage(stage,displayName,resolvedValue){let promise=makeDevtoolsIOPromiseFromIOTrigger(this.getStagePromise(stage),displayName,resolvedValue);return this.abortSignal&&promise.catch(ignoreReject),promise}}function ignoreReject(){}function makeDevtoolsIOPromiseFromIOTrigger(ioTrigger,displayName,resolvedValue){let promise=new Promise((resolve,reject)=>{ioTrigger.then(resolve.bind(null,resolvedValue),reject)});return void 0!==displayName&&(promise.displayName=displayName),promise}},89931,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{getCacheSignal:function(){return getCacheSignal},getDraftModeProviderForCacheScope:function(){return getDraftModeProviderForCacheScope},getHmrRefreshHash:function(){return getHmrRefreshHash},getPrerenderResumeDataCache:function(){return getPrerenderResumeDataCache},getRenderResumeDataCache:function(){return getRenderResumeDataCache},getServerComponentsHmrCache:function(){return getServerComponentsHmrCache},getStagedRenderingController:function(){return getStagedRenderingController},isHmrRefresh:function(){return isHmrRefresh},isInEarlyRenderStage:function(){return isInEarlyRenderStage},throwForMissingRequestStore:function(){return throwForMissingRequestStore},throwInvariantForMissingStore:function(){return throwInvariantForMissingStore},workUnitAsyncStorage:function(){return _workunitasyncstorageinstance.workUnitAsyncStorageInstance}});let _workunitasyncstorageinstance=__turbopack_context__.r(85849);__turbopack_context__.r(46724);let _invarianterror=__turbopack_context__.r(79608),_stagedrendering=__turbopack_context__.r(84147);function isInEarlyRenderStage(requestStore){let stagedRendering=requestStore.stagedRendering;return!!stagedRendering&&(stagedRendering.currentStage===_stagedrendering.RenderStage.EarlyStatic||stagedRendering.currentStage===_stagedrendering.RenderStage.EarlyRuntime)}function throwForMissingRequestStore(callingExpression){throw Object.defineProperty(Error(`\`${callingExpression}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function throwInvariantForMissingStore(){throw Object.defineProperty(new _invarianterror.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function getPrerenderResumeDataCache(workUnitStore){switch(workUnitStore.type){case"prerender":case"prerender-runtime":case"prerender-ppr":case"prerender-client":case"validation-client":return workUnitStore.prerenderResumeDataCache;case"request":if(workUnitStore.prerenderResumeDataCache)return workUnitStore.prerenderResumeDataCache;case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return workUnitStore}}function getRenderResumeDataCache(workUnitStore){switch(workUnitStore.type){case"request":case"prerender":case"prerender-runtime":case"prerender-client":case"validation-client":if(workUnitStore.renderResumeDataCache)return workUnitStore.renderResumeDataCache;case"prerender-ppr":return workUnitStore.prerenderResumeDataCache??null;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":case"generate-static-params":return null;default:return workUnitStore}}function getHmrRefreshHash(workUnitStore){}function isHmrRefresh(workUnitStore){return!1}function getServerComponentsHmrCache(workUnitStore){}function getDraftModeProviderForCacheScope(workStore,workUnitStore){if(workStore.isDraftMode)switch(workUnitStore.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return workUnitStore.draftMode}}function getStagedRenderingController(workUnitStore){switch(workUnitStore.type){case"request":case"prerender-runtime":return workUnitStore.stagedRendering??null;case"prerender":case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return workUnitStore}}function getCacheSignal(workUnitStore){switch(workUnitStore.type){case"prerender":case"prerender-client":case"validation-client":case"prerender-runtime":return workUnitStore.cacheSignal;case"request":if(workUnitStore.cacheSignal)return workUnitStore.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return workUnitStore}}},70397,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"useUntrackedPathname",{enumerable:!0,get:function(){return useUntrackedPathname}});let _react=__turbopack_context__.r(66626),_hooksclientcontextsharedruntime=__turbopack_context__.r(6091);function hasFallbackRouteParams(){if("u"<typeof window){let{workUnitAsyncStorage}=__turbopack_context__.r(89931),workUnitStore=workUnitAsyncStorage.getStore();if(!workUnitStore)return!1;switch(workUnitStore.type){case"prerender":case"prerender-client":case"prerender-ppr":case"validation-client":let fallbackParams=workUnitStore.fallbackRouteParams;return!!fallbackParams&&fallbackParams.size>0}}return!1}function useUntrackedPathname(){return hasFallbackRouteParams()?null:(0,_react.useContext)(_hooksclientcontextsharedruntime.PathnameContext)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},8204,(__turbopack_context__,module,exports)=>{"use strict";function createHrefFromUrl(url,includeHash=!0){return url.pathname+url.search+(includeHash?url.hash:"")}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"createHrefFromUrl",{enumerable:!0,get:function(){return createHrefFromUrl}}),("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},74299,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{handleHardNavError:function(){return handleHardNavError},useNavFailureHandler:function(){return useNavFailureHandler}}),__turbopack_context__.r(66626);let _createhreffromurl=__turbopack_context__.r(8204);function handleHardNavError(error){return!!(error&&"u">typeof window)&&!!window.next.__pendingUrl&&(0,_createhreffromurl.createHrefFromUrl)(new URL(window.location.href))!==(0,_createhreffromurl.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",error),window.location.href=window.next.__pendingUrl.toString(),!0)}function useNavFailureHandler(){}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},68673,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return HTML_LIMITED_BOT_UA_RE}});let HTML_LIMITED_BOT_UA_RE=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},34374,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{HTML_LIMITED_BOT_UA_RE:function(){return _htmlbots.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return HTML_LIMITED_BOT_UA_RE_STRING},getBotType:function(){return getBotType},isBot:function(){return isBot}});let _htmlbots=__turbopack_context__.r(68673),HEADLESS_BROWSER_BOT_UA_RE=/Googlebot(?!-)|Googlebot$/i,HTML_LIMITED_BOT_UA_RE_STRING=_htmlbots.HTML_LIMITED_BOT_UA_RE.source;function isHtmlLimitedBotUA(userAgent){return _htmlbots.HTML_LIMITED_BOT_UA_RE.test(userAgent)}function isBot(userAgent){return HEADLESS_BROWSER_BOT_UA_RE.test(userAgent)||isHtmlLimitedBotUA(userAgent)}function getBotType(userAgent){return HEADLESS_BROWSER_BOT_UA_RE.test(userAgent)?"dom":isHtmlLimitedBotUA(userAgent)?"html":void 0}},45836,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{AppRouterContext:function(){return AppRouterContext},GlobalLayoutRouterContext:function(){return GlobalLayoutRouterContext},LayoutRouterContext:function(){return LayoutRouterContext},MissingSlotContext:function(){return MissingSlotContext},TemplateContext:function(){return TemplateContext}});let _react=__turbopack_context__.r(81258)._(__turbopack_context__.r(66626)),AppRouterContext=_react.default.createContext(null),LayoutRouterContext=_react.default.createContext(null),GlobalLayoutRouterContext=_react.default.createContext(null),TemplateContext=_react.default.createContext(null),MissingSlotContext=_react.default.createContext(new Set)},10744,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{ErrorBoundary:function(){return ErrorBoundary},ErrorBoundaryHandler:function(){return ErrorBoundaryHandler}});let _interop_require_wildcard=__turbopack_context__.r(44066),_jsxruntime=__turbopack_context__.r(2710),_react=_interop_require_wildcard._(__turbopack_context__.r(66626)),_navigationuntracked=__turbopack_context__.r(70397),_isnextroutererror=__turbopack_context__.r(7986);__turbopack_context__.r(74299);let _handleisrerror=__turbopack_context__.r(18291),_isbot=__turbopack_context__.r(34374),_approutercontextsharedruntime=__turbopack_context__.r(45836),isBotUserAgent="u">typeof window&&(0,_isbot.isBot)(window.navigator.userAgent);class ErrorBoundaryHandler extends _react.default.Component{static{this.contextType=_approutercontextsharedruntime.AppRouterContext}constructor(props){super(props),this.reset=()=>{this.setState({error:null})},this.unstable_retry=()=>{(0,_react.startTransition)(()=>{this.context?.refresh(),this.reset()})},this.state={error:null,previousPathname:this.props.pathname}}static getDerivedStateFromError(error){if((0,_isnextroutererror.isNextRouterError)(error))throw error;return{error}}static getDerivedStateFromProps(props,state){let{error}=state;return props.pathname!==state.previousPathname&&state.error?{error:null,previousPathname:props.pathname}:{error:state.error,previousPathname:props.pathname}}render(){return this.state.error&&!isBotUserAgent?((0,_handleisrerror.handleISRError)({error:this.state.error}),(0,_jsxruntime.jsxs)(_jsxruntime.Fragment,{children:[this.props.errorStyles,this.props.errorScripts,(0,_jsxruntime.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset,unstable_retry:this.unstable_retry})]})):this.props.children}}function ErrorBoundary({errorComponent,errorStyles,errorScripts,children}){let pathname=(0,_navigationuntracked.useUntrackedPathname)();return errorComponent?(0,_jsxruntime.jsx)(ErrorBoundaryHandler,{pathname:pathname,errorComponent:errorComponent,errorStyles:errorStyles,errorScripts:errorScripts,children:children}):(0,_jsxruntime.jsx)(_jsxruntime.Fragment,{children:children})}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},33254,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{ACTION_HMR_REFRESH:function(){return ACTION_HMR_REFRESH},ACTION_NAVIGATE:function(){return ACTION_NAVIGATE},ACTION_REFRESH:function(){return ACTION_REFRESH},ACTION_RESTORE:function(){return ACTION_RESTORE},ACTION_SERVER_ACTION:function(){return ACTION_SERVER_ACTION},ACTION_SERVER_PATCH:function(){return ACTION_SERVER_PATCH},PrefetchKind:function(){return PrefetchKind1},ScrollBehavior:function(){return ScrollBehavior1}});let ACTION_REFRESH="refresh",ACTION_NAVIGATE="navigate",ACTION_RESTORE="restore",ACTION_SERVER_PATCH="server-patch",ACTION_HMR_REFRESH="hmr-refresh",ACTION_SERVER_ACTION="server-action";var PrefetchKind,ScrollBehavior,PrefetchKind1=((PrefetchKind={}).AUTO="auto",PrefetchKind.FULL="full",PrefetchKind),ScrollBehavior1=((ScrollBehavior={})[ScrollBehavior.Default=0]="Default",ScrollBehavior[ScrollBehavior.NoScroll=1]="NoScroll",ScrollBehavior);("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},9710,(__turbopack_context__,module,exports)=>{"use strict";function isThenable(promise){return null!==promise&&"object"==typeof promise&&"then"in promise&&"function"==typeof promise.then}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isThenable",{enumerable:!0,get:function(){return isThenable}})},36495,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{dispatchAppRouterAction:function(){return dispatchAppRouterAction},dispatchGestureState:function(){return dispatchGestureState},refreshOnInstantNavigationUnlock:function(){return refreshOnInstantNavigationUnlock},useActionQueue:function(){return useActionQueue}});let _react=__turbopack_context__.r(44066)._(__turbopack_context__.r(66626)),_isthenable=__turbopack_context__.r(9710);__turbopack_context__.r(33254);let dispatch=null;function refreshOnInstantNavigationUnlock(){}function dispatchAppRouterAction(action){if(null===dispatch)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});dispatch(action)}let setGestureRouterState=null;function dispatchGestureState(state){if(null===setGestureRouterState)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});setGestureRouterState(state)}function useActionQueue(actionQueue){let[canonicalState,setState]=_react.default.useState(actionQueue.state),[state,setGesture]=(0,_react.useOptimistic)(canonicalState);"u">typeof window&&(setGestureRouterState=setGesture),"u">typeof window&&(dispatch=action=>actionQueue.dispatch(action,setState));let stateWithDebugInfo=(0,_react.useMemo)(()=>state,[state]);return(0,_isthenable.isThenable)(stateWithDebugInfo)?(0,_react.use)(stateWithDebugInfo):stateWithDebugInfo}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},69147,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"callServer",{enumerable:!0,get:function(){return callServer}});let _react=__turbopack_context__.r(66626),_routerreducertypes=__turbopack_context__.r(33254),_useactionqueue=__turbopack_context__.r(36495);async function callServer(actionId,actionArgs){return new Promise((resolve,reject)=>{(0,_react.startTransition)(()=>{(0,_useactionqueue.dispatchAppRouterAction)({type:_routerreducertypes.ACTION_SERVER_ACTION,actionId,actionArgs,resolve,reject})})})}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},15679,(__turbopack_context__,module,exports)=>{"use strict";let findSourceMapURL;Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"findSourceMapURL",{enumerable:!0,get:function(){return findSourceMapURL}});("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},14522,(__turbopack_context__,module,exports)=>{"use strict";function getSegmentValue(segment){return Array.isArray(segment)?segment[1]:segment}function isGroupSegment(segment){return"("===segment[0]&&segment.endsWith(")")}function isParallelRouteSegment(segment){return segment.startsWith("@")&&"@children"!==segment}function addSearchParamsIfPageSegment(segment,searchParams){if(segment.includes(PAGE_SEGMENT_KEY)){let stringifiedQuery=JSON.stringify(searchParams);return"{}"!==stringifiedQuery?PAGE_SEGMENT_KEY+"?"+stringifiedQuery:PAGE_SEGMENT_KEY}return segment}function computeSelectedLayoutSegment(segments,parallelRouteKey){if(!segments||0===segments.length)return null;let rawSegment="children"===parallelRouteKey?segments[0]:segments[segments.length-1];return rawSegment===DEFAULT_SEGMENT_KEY?null:rawSegment}function getSelectedLayoutSegmentPath(tree,parallelRouteKey,first=!0,segmentPath=[]){let node;if(first)node=tree[1][parallelRouteKey];else{let parallelRoutes=tree[1];node=parallelRoutes.children??Object.values(parallelRoutes)[0]}if(!node)return segmentPath;let segmentValue=getSegmentValue(node[0]);return!segmentValue||segmentValue.startsWith(PAGE_SEGMENT_KEY)?segmentPath:(segmentPath.push(segmentValue),getSelectedLayoutSegmentPath(node,parallelRouteKey,!1,segmentPath))}Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{DEFAULT_SEGMENT_KEY:function(){return DEFAULT_SEGMENT_KEY},NOT_FOUND_SEGMENT_KEY:function(){return NOT_FOUND_SEGMENT_KEY},PAGE_SEGMENT_KEY:function(){return PAGE_SEGMENT_KEY},addSearchParamsIfPageSegment:function(){return addSearchParamsIfPageSegment},computeSelectedLayoutSegment:function(){return computeSelectedLayoutSegment},getSegmentValue:function(){return getSegmentValue},getSelectedLayoutSegmentPath:function(){return getSelectedLayoutSegmentPath},isGroupSegment:function(){return isGroupSegment},isParallelRouteSegment:function(){return isParallelRouteSegment}});let PAGE_SEGMENT_KEY="__PAGE__",DEFAULT_SEGMENT_KEY="__DEFAULT__",NOT_FOUND_SEGMENT_KEY="/_not-found"},63272,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{HEAD_REQUEST_KEY:function(){return HEAD_REQUEST_KEY},ROOT_SEGMENT_REQUEST_KEY:function(){return ROOT_SEGMENT_REQUEST_KEY},appendSegmentRequestKeyPart:function(){return appendSegmentRequestKeyPart},convertSegmentPathToStaticExportFilename:function(){return convertSegmentPathToStaticExportFilename},createSegmentRequestKeyPart:function(){return createSegmentRequestKeyPart}});let _segment=__turbopack_context__.r(14522),ROOT_SEGMENT_REQUEST_KEY="",HEAD_REQUEST_KEY="/_head";function createSegmentRequestKeyPart(segment){if("string"==typeof segment)return segment.startsWith(_segment.PAGE_SEGMENT_KEY)?_segment.PAGE_SEGMENT_KEY:"/_not-found"===segment?"_not-found":encodeToFilesystemAndURLSafeString(segment);let name=segment[0];return"$"+segment[2]+"$"+encodeToFilesystemAndURLSafeString(name)}function appendSegmentRequestKeyPart(parentRequestKey,parallelRouteKey,childRequestKeyPart){return parentRequestKey+"/"+("children"===parallelRouteKey?childRequestKeyPart:`@${encodeToFilesystemAndURLSafeString(parallelRouteKey)}/${childRequestKeyPart}`)}let simpleParamValueRegex=/^[a-zA-Z0-9\-_@]+$/;function encodeToFilesystemAndURLSafeString(value){return simpleParamValueRegex.test(value)?value:"!"+btoa(value).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function convertSegmentPathToStaticExportFilename(segmentPath){return`__next${segmentPath.replace(/\//g,".")}.txt`}},46997,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{doesStaticSegmentAppearInURL:function(){return doesStaticSegmentAppearInURL},getCacheKeyForDynamicParam:function(){return getCacheKeyForDynamicParam},getParamValueFromCacheKey:function(){return getParamValueFromCacheKey},getRenderedPathname:function(){return getRenderedPathname},getRenderedSearch:function(){return getRenderedSearch},parseDynamicParamFromURLPart:function(){return parseDynamicParamFromURLPart},urlSearchParamsToParsedUrlQuery:function(){return urlSearchParamsToParsedUrlQuery},urlToUrlWithoutFlightMarker:function(){return urlToUrlWithoutFlightMarker}});let _segment=__turbopack_context__.r(14522),_segmentvalueencoding=__turbopack_context__.r(63272),_approuterheaders=__turbopack_context__.r(46724);function getRenderedSearch(response){let rewrittenQuery=response.headers.get(_approuterheaders.NEXT_REWRITTEN_QUERY_HEADER);return null!==rewrittenQuery?""===rewrittenQuery?"":"?"+rewrittenQuery:urlToUrlWithoutFlightMarker(new URL(response.url)).search}function getRenderedPathname(response){return response.headers.get(_approuterheaders.NEXT_REWRITTEN_PATH_HEADER)??urlToUrlWithoutFlightMarker(new URL(response.url)).pathname}function parseDynamicParamFromURLPart(paramType,pathnameParts,partIndex){switch(paramType){case"c":return partIndex<pathnameParts.length?pathnameParts.slice(partIndex).map(s=>encodeURIComponent(s)):[];case"ci(..)(..)":case"ci(.)":case"ci(..)":case"ci(...)":{let prefix=paramType.length-2;return partIndex<pathnameParts.length?pathnameParts.slice(partIndex).map((s,i)=>0===i?encodeURIComponent(s.slice(prefix)):encodeURIComponent(s)):[]}case"oc":return partIndex<pathnameParts.length?pathnameParts.slice(partIndex).map(s=>encodeURIComponent(s)):null;case"d":if(partIndex>=pathnameParts.length)return"";return encodeURIComponent(pathnameParts[partIndex]);case"di(..)(..)":case"di(.)":case"di(..)":case"di(...)":{let prefix=paramType.length-2;if(partIndex>=pathnameParts.length)return"";return encodeURIComponent(pathnameParts[partIndex].slice(prefix))}default:return""}}function doesStaticSegmentAppearInURL(segment){return!(segment===_segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY||segment.startsWith(_segment.PAGE_SEGMENT_KEY)||"("===segment[0]&&segment.endsWith(")"))&&segment!==_segment.DEFAULT_SEGMENT_KEY&&"/_not-found"!==segment}function getCacheKeyForDynamicParam(paramValue,renderedSearch){return"string"==typeof paramValue?(0,_segment.addSearchParamsIfPageSegment)(paramValue,Object.fromEntries(new URLSearchParams(renderedSearch))):null===paramValue?"":paramValue.join("/")}function urlToUrlWithoutFlightMarker(url){let urlWithoutFlightParameters=new URL(url);if(urlWithoutFlightParameters.searchParams.delete(_approuterheaders.NEXT_RSC_UNION_QUERY),urlWithoutFlightParameters.pathname.endsWith(".txt")){let{pathname}=urlWithoutFlightParameters,length=pathname.endsWith("/index.txt")?10:4;urlWithoutFlightParameters.pathname=pathname.slice(0,-length)}return urlWithoutFlightParameters}function getParamValueFromCacheKey(paramCacheKey,paramType){return"c"===paramType||"oc"===paramType?paramCacheKey.split("/"):paramCacheKey}function urlSearchParamsToParsedUrlQuery(searchParams){let result={};for(let[key,value]of searchParams.entries())void 0===result[key]?result[key]=value:Array.isArray(result[key])?result[key].push(value):result[key]=[result[key],value];return result}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},85018,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{createInitialRSCPayloadFromFallbackPrerender:function(){return createInitialRSCPayloadFromFallbackPrerender},getFlightDataPartsFromPath:function(){return getFlightDataPartsFromPath},getNextFlightSegmentPath:function(){return getNextFlightSegmentPath},normalizeFlightData:function(){return normalizeFlightData},prepareFlightRouterStateForRequest:function(){return prepareFlightRouterStateForRequest}});let _segment=__turbopack_context__.r(14522),_routeparams=__turbopack_context__.r(46997),_createhreffromurl=__turbopack_context__.r(8204);function getFlightDataPartsFromPath(flightDataPath){let[tree,seedData,head,isHeadPartial]=flightDataPath.slice(-4),segmentPath=flightDataPath.slice(0,-4);return{pathToSegment:segmentPath.slice(0,-1),segmentPath,segment:segmentPath[segmentPath.length-1]??"",tree,seedData,head,isHeadPartial,isRootRender:4===flightDataPath.length}}function createInitialRSCPayloadFromFallbackPrerender(response,fallbackInitialRSCPayload){let renderedPathname=(0,_routeparams.getRenderedPathname)(response),renderedSearch=(0,_routeparams.getRenderedSearch)(response),canonicalUrl=(0,_createhreffromurl.createHrefFromUrl)(new URL(location.href)),originalFlightDataPath=fallbackInitialRSCPayload.f[0],originalFlightRouterState=originalFlightDataPath[0],payload={c:canonicalUrl.split("/"),q:renderedSearch,i:fallbackInitialRSCPayload.i,f:[[fillInFallbackFlightRouterState(originalFlightRouterState,renderedPathname,renderedSearch),originalFlightDataPath[1],originalFlightDataPath[2],originalFlightDataPath[2]]],m:fallbackInitialRSCPayload.m,G:fallbackInitialRSCPayload.G,S:fallbackInitialRSCPayload.S,h:fallbackInitialRSCPayload.h};return fallbackInitialRSCPayload.b&&(payload.b=fallbackInitialRSCPayload.b),payload}function fillInFallbackFlightRouterState(flightRouterState,renderedPathname,renderedSearch){return fillInFallbackFlightRouterStateImpl(flightRouterState,renderedSearch,renderedPathname.split("/").filter(p=>""!==p),0)}function fillInFallbackFlightRouterStateImpl(flightRouterState,renderedSearch,pathnameParts,pathnamePartsIndex){let newSegment,doesAppearInURL,originalSegment=flightRouterState[0];if("string"==typeof originalSegment)newSegment=originalSegment,doesAppearInURL=(0,_routeparams.doesStaticSegmentAppearInURL)(originalSegment);else{let paramName=originalSegment[0],paramType=originalSegment[2],staticSiblings=originalSegment[3],paramValue=(0,_routeparams.parseDynamicParamFromURLPart)(paramType,pathnameParts,pathnamePartsIndex);newSegment=[paramName,(0,_routeparams.getCacheKeyForDynamicParam)(paramValue,renderedSearch),paramType,staticSiblings],doesAppearInURL=!0}let childPathnamePartsIndex=doesAppearInURL?pathnamePartsIndex+1:pathnamePartsIndex,children=flightRouterState[1],newChildren={};for(let key in children){let childFlightRouterState=children[key];newChildren[key]=fillInFallbackFlightRouterStateImpl(childFlightRouterState,renderedSearch,pathnameParts,childPathnamePartsIndex)}return[newSegment,newChildren,null,flightRouterState[3],flightRouterState[4]]}function getNextFlightSegmentPath(flightSegmentPath){return flightSegmentPath.slice(2)}function normalizeFlightData(flightData){return"string"==typeof flightData?flightData:flightData.map(flightDataPath=>getFlightDataPartsFromPath(flightDataPath))}function prepareFlightRouterStateForRequest(flightRouterState,isHmrRefresh){return isHmrRefresh?encodeURIComponent(JSON.stringify(flightRouterState)):encodeURIComponent(JSON.stringify(stripClientOnlyDataFromFlightRouterState(flightRouterState)))}function stripClientOnlyDataFromFlightRouterState(flightRouterState){let[segment,parallelRoutes,_refreshState,refreshMarker,prefetchHints]=flightRouterState,cleanedSegment=stripClientOnlyDataFromSegment(segment),cleanedParallelRoutes={};for(let[key,childState]of Object.entries(parallelRoutes))cleanedParallelRoutes[key]=stripClientOnlyDataFromFlightRouterState(childState);let result=[cleanedSegment,cleanedParallelRoutes];return refreshMarker&&(result[2]=null,result[3]=refreshMarker),void 0!==prefetchHints&&(result[4]=prefetchHints),result}function stripClientOnlyDataFromSegment(segment){if("string"==typeof segment)return segment.startsWith(_segment.PAGE_SEGMENT_KEY+"?")?_segment.PAGE_SEGMENT_KEY:segment;let[paramName,paramCacheKey,paramType]=segment;return[paramName,paramCacheKey,paramType,null]}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},45391,(__turbopack_context__,module,exports)=>{"use strict";function djb2Hash(str){let hash=5381;for(let i=0;i<str.length;i++)hash=(hash<<5)+hash+str.charCodeAt(i)|0;return hash>>>0}function hexHash(str){return djb2Hash(str).toString(36).slice(0,5)}Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{djb2Hash:function(){return djb2Hash},hexHash:function(){return hexHash}})},25302,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"computeCacheBustingSearchParam",{enumerable:!0,get:function(){return computeCacheBustingSearchParam}});let _hash=__turbopack_context__.r(45391);function computeCacheBustingSearchParam(prefetchHeader,segmentPrefetchHeader,stateTreeHeader,nextUrlHeader){return(void 0===prefetchHeader||"0"===prefetchHeader)&&void 0===segmentPrefetchHeader&&void 0===stateTreeHeader&&void 0===nextUrlHeader?"":(0,_hash.hexHash)([prefetchHeader||"0",segmentPrefetchHeader||"0",stateTreeHeader||"0",nextUrlHeader||"0"].join(","))}},9432,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{setCacheBustingSearchParam:function(){return setCacheBustingSearchParam},setCacheBustingSearchParamWithHash:function(){return setCacheBustingSearchParamWithHash}});let _cachebustingsearchparam=__turbopack_context__.r(25302),_approuterheaders=__turbopack_context__.r(46724),setCacheBustingSearchParam=(url,headers)=>{setCacheBustingSearchParamWithHash(url,(0,_cachebustingsearchparam.computeCacheBustingSearchParam)(headers[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER],headers[_approuterheaders.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],headers[_approuterheaders.NEXT_ROUTER_STATE_TREE_HEADER],headers[_approuterheaders.NEXT_URL]))},setCacheBustingSearchParamWithHash=(url,hash)=>{let existingSearch=url.search,pairs=(existingSearch.startsWith("?")?existingSearch.slice(1):existingSearch).split("&").filter(pair=>pair&&!pair.startsWith(`${_approuterheaders.NEXT_RSC_UNION_QUERY}=`));hash.length>0?pairs.push(`${_approuterheaders.NEXT_RSC_UNION_QUERY}=${hash}`):pairs.push(`${_approuterheaders.NEXT_RSC_UNION_QUERY}`),url.search=pairs.length?`?${pairs.join("&")}`:""};("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},50567,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{getNavigationBuildId:function(){return getNavigationBuildId},setNavigationBuildId:function(){return setNavigationBuildId}});let globalBuildId="";function setNavigationBuildId(buildId){globalBuildId=buildId}function getNavigationBuildId(){return globalBuildId}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},80082,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{ACTION_SUFFIX:function(){return ACTION_SUFFIX},APP_DIR_ALIAS:function(){return APP_DIR_ALIAS},CACHE_ONE_YEAR_SECONDS:function(){return CACHE_ONE_YEAR_SECONDS},DOT_NEXT_ALIAS:function(){return DOT_NEXT_ALIAS},ESLINT_DEFAULT_DIRS:function(){return ESLINT_DEFAULT_DIRS},GSP_NO_RETURNED_VALUE:function(){return GSP_NO_RETURNED_VALUE},GSSP_COMPONENT_MEMBER_ERROR:function(){return GSSP_COMPONENT_MEMBER_ERROR},GSSP_NO_RETURNED_VALUE:function(){return GSSP_NO_RETURNED_VALUE},HTML_CONTENT_TYPE_HEADER:function(){return HTML_CONTENT_TYPE_HEADER},INFINITE_CACHE:function(){return INFINITE_CACHE},INSTRUMENTATION_HOOK_FILENAME:function(){return INSTRUMENTATION_HOOK_FILENAME},JSON_CONTENT_TYPE_HEADER:function(){return JSON_CONTENT_TYPE_HEADER},MATCHED_PATH_HEADER:function(){return MATCHED_PATH_HEADER},MIDDLEWARE_FILENAME:function(){return MIDDLEWARE_FILENAME},MIDDLEWARE_LOCATION_REGEXP:function(){return MIDDLEWARE_LOCATION_REGEXP},NEXT_BODY_SUFFIX:function(){return NEXT_BODY_SUFFIX},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return NEXT_CACHE_IMPLICIT_TAG_ID},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return NEXT_CACHE_REVALIDATED_TAGS_HEADER},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER},NEXT_CACHE_ROOT_PARAM_TAG_ID:function(){return NEXT_CACHE_ROOT_PARAM_TAG_ID},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return NEXT_CACHE_SOFT_TAG_MAX_LENGTH},NEXT_CACHE_TAGS_HEADER:function(){return NEXT_CACHE_TAGS_HEADER},NEXT_CACHE_TAG_MAX_ITEMS:function(){return NEXT_CACHE_TAG_MAX_ITEMS},NEXT_CACHE_TAG_MAX_LENGTH:function(){return NEXT_CACHE_TAG_MAX_LENGTH},NEXT_DATA_SUFFIX:function(){return NEXT_DATA_SUFFIX},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return NEXT_INTERCEPTION_MARKER_PREFIX},NEXT_META_SUFFIX:function(){return NEXT_META_SUFFIX},NEXT_NAV_DEPLOYMENT_ID_HEADER:function(){return NEXT_NAV_DEPLOYMENT_ID_HEADER},NEXT_QUERY_PARAM_PREFIX:function(){return NEXT_QUERY_PARAM_PREFIX},NEXT_RESUME_HEADER:function(){return NEXT_RESUME_HEADER},NEXT_RESUME_STATE_LENGTH_HEADER:function(){return NEXT_RESUME_STATE_LENGTH_HEADER},NON_STANDARD_NODE_ENV:function(){return NON_STANDARD_NODE_ENV},PAGES_DIR_ALIAS:function(){return PAGES_DIR_ALIAS},PRERENDER_REVALIDATE_HEADER:function(){return PRERENDER_REVALIDATE_HEADER},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER},PROXY_FILENAME:function(){return PROXY_FILENAME},PROXY_LOCATION_REGEXP:function(){return PROXY_LOCATION_REGEXP},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return PUBLIC_DIR_MIDDLEWARE_CONFLICT},ROOT_DIR_ALIAS:function(){return ROOT_DIR_ALIAS},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return RSC_ACTION_CLIENT_WRAPPER_ALIAS},RSC_ACTION_ENCRYPTION_ALIAS:function(){return RSC_ACTION_ENCRYPTION_ALIAS},RSC_ACTION_PROXY_ALIAS:function(){return RSC_ACTION_PROXY_ALIAS},RSC_ACTION_VALIDATE_ALIAS:function(){return RSC_ACTION_VALIDATE_ALIAS},RSC_CACHE_WRAPPER_ALIAS:function(){return RSC_CACHE_WRAPPER_ALIAS},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS},RSC_MOD_REF_PROXY_ALIAS:function(){return RSC_MOD_REF_PROXY_ALIAS},RSC_SEGMENTS_DIR_SUFFIX:function(){return RSC_SEGMENTS_DIR_SUFFIX},RSC_SEGMENT_SUFFIX:function(){return RSC_SEGMENT_SUFFIX},RSC_SUFFIX:function(){return RSC_SUFFIX},SERVER_PROPS_EXPORT_ERROR:function(){return SERVER_PROPS_EXPORT_ERROR},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return SERVER_PROPS_GET_INIT_PROPS_CONFLICT},SERVER_PROPS_SSG_CONFLICT:function(){return SERVER_PROPS_SSG_CONFLICT},SERVER_RUNTIME:function(){return SERVER_RUNTIME},SSG_FALLBACK_EXPORT_ERROR:function(){return SSG_FALLBACK_EXPORT_ERROR},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return SSG_GET_INITIAL_PROPS_CONFLICT},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return TEXT_PLAIN_CONTENT_TYPE_HEADER},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return UNSTABLE_REVALIDATE_RENAME_ERROR},WEBPACK_LAYERS:function(){return WEBPACK_LAYERS},WEBPACK_RESOURCE_QUERIES:function(){return WEBPACK_RESOURCE_QUERIES},WEB_SOCKET_MAX_RECONNECTIONS:function(){return WEB_SOCKET_MAX_RECONNECTIONS}});let TEXT_PLAIN_CONTENT_TYPE_HEADER="text/plain",HTML_CONTENT_TYPE_HEADER="text/html; charset=utf-8",JSON_CONTENT_TYPE_HEADER="application/json; charset=utf-8",NEXT_QUERY_PARAM_PREFIX="nxtP",NEXT_INTERCEPTION_MARKER_PREFIX="nxtI",MATCHED_PATH_HEADER="x-matched-path",PRERENDER_REVALIDATE_HEADER="x-prerender-revalidate",PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER="x-prerender-revalidate-if-generated",RSC_SEGMENTS_DIR_SUFFIX=".segments",RSC_SEGMENT_SUFFIX=".segment.rsc",RSC_SUFFIX=".rsc",ACTION_SUFFIX=".action",NEXT_DATA_SUFFIX=".json",NEXT_META_SUFFIX=".meta",NEXT_BODY_SUFFIX=".body",NEXT_NAV_DEPLOYMENT_ID_HEADER="x-nextjs-deployment-id",NEXT_CACHE_TAGS_HEADER="x-next-cache-tags",NEXT_CACHE_REVALIDATED_TAGS_HEADER="x-next-revalidated-tags",NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER="x-next-revalidate-tag-token",NEXT_RESUME_HEADER="next-resume",NEXT_RESUME_STATE_LENGTH_HEADER="x-next-resume-state-length",NEXT_CACHE_TAG_MAX_ITEMS=128,NEXT_CACHE_TAG_MAX_LENGTH=256,NEXT_CACHE_SOFT_TAG_MAX_LENGTH=1024,NEXT_CACHE_IMPLICIT_TAG_ID="_N_T_",NEXT_CACHE_ROOT_PARAM_TAG_ID="_N_RP_",CACHE_ONE_YEAR_SECONDS=31536e3,INFINITE_CACHE=0xfffffffe,MIDDLEWARE_FILENAME="middleware",MIDDLEWARE_LOCATION_REGEXP=`(?:src/)?${MIDDLEWARE_FILENAME}`,PROXY_FILENAME="proxy",PROXY_LOCATION_REGEXP=`(?:src/)?${PROXY_FILENAME}`,INSTRUMENTATION_HOOK_FILENAME="instrumentation",PAGES_DIR_ALIAS="private-next-pages",DOT_NEXT_ALIAS="private-dot-next",ROOT_DIR_ALIAS="private-next-root-dir",APP_DIR_ALIAS="private-next-app-dir",RSC_MOD_REF_PROXY_ALIAS="private-next-rsc-mod-ref-proxy",RSC_ACTION_VALIDATE_ALIAS="private-next-rsc-action-validate",RSC_ACTION_PROXY_ALIAS="private-next-rsc-server-reference",RSC_CACHE_WRAPPER_ALIAS="private-next-rsc-cache-wrapper",RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS="private-next-rsc-track-dynamic-import",RSC_ACTION_ENCRYPTION_ALIAS="private-next-rsc-action-encryption",RSC_ACTION_CLIENT_WRAPPER_ALIAS="private-next-rsc-action-client-wrapper",PUBLIC_DIR_MIDDLEWARE_CONFLICT="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",SSG_GET_INITIAL_PROPS_CONFLICT="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",SERVER_PROPS_GET_INIT_PROPS_CONFLICT="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",SERVER_PROPS_SSG_CONFLICT="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",SERVER_PROPS_EXPORT_ERROR="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",GSP_NO_RETURNED_VALUE="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",GSSP_NO_RETURNED_VALUE="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",UNSTABLE_REVALIDATE_RENAME_ERROR="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",GSSP_COMPONENT_MEMBER_ERROR="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",NON_STANDARD_NODE_ENV='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',SSG_FALLBACK_EXPORT_ERROR="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ESLINT_DEFAULT_DIRS=["app","pages","components","lib","src"],SERVER_RUNTIME={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},WEB_SOCKET_MAX_RECONNECTIONS=12,WEBPACK_LAYERS_NAMES={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},WEBPACK_LAYERS={...WEBPACK_LAYERS_NAMES,GROUP:{builtinReact:[WEBPACK_LAYERS_NAMES.reactServerComponents,WEBPACK_LAYERS_NAMES.actionBrowser],serverOnly:[WEBPACK_LAYERS_NAMES.reactServerComponents,WEBPACK_LAYERS_NAMES.actionBrowser,WEBPACK_LAYERS_NAMES.instrument,WEBPACK_LAYERS_NAMES.middleware],neutralTarget:[WEBPACK_LAYERS_NAMES.apiNode,WEBPACK_LAYERS_NAMES.apiEdge],clientOnly:[WEBPACK_LAYERS_NAMES.serverSideRendering,WEBPACK_LAYERS_NAMES.appPagesBrowser],bundled:[WEBPACK_LAYERS_NAMES.reactServerComponents,WEBPACK_LAYERS_NAMES.actionBrowser,WEBPACK_LAYERS_NAMES.serverSideRendering,WEBPACK_LAYERS_NAMES.appPagesBrowser,WEBPACK_LAYERS_NAMES.shared,WEBPACK_LAYERS_NAMES.instrument,WEBPACK_LAYERS_NAMES.middleware],appPages:[WEBPACK_LAYERS_NAMES.reactServerComponents,WEBPACK_LAYERS_NAMES.serverSideRendering,WEBPACK_LAYERS_NAMES.appPagesBrowser,WEBPACK_LAYERS_NAMES.actionBrowser]}},WEBPACK_RESOURCE_QUERIES={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},76735,(__turbopack_context__,module,exports)=>{"use strict";function readVaryParams(thenable){return(thenable.then(noop),"fulfilled"!==thenable.status)?null:thenable.value}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"readVaryParams",{enumerable:!0,get:function(){return readVaryParams}});let noop=()=>{}},46043,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"PrefetchHint",{enumerable:!0,get:function(){return PrefetchHint1}});var PrefetchHint,PrefetchHint1=((PrefetchHint={})[PrefetchHint.HasRuntimePrefetch=1]="HasRuntimePrefetch",PrefetchHint[PrefetchHint.SubtreeHasInstant=2]="SubtreeHasInstant",PrefetchHint[PrefetchHint.SegmentHasLoadingBoundary=4]="SegmentHasLoadingBoundary",PrefetchHint[PrefetchHint.SubtreeHasLoadingBoundary=8]="SubtreeHasLoadingBoundary",PrefetchHint[PrefetchHint.IsRootLayout=16]="IsRootLayout",PrefetchHint[PrefetchHint.ParentInlinedIntoSelf=32]="ParentInlinedIntoSelf",PrefetchHint[PrefetchHint.InlinedIntoChild=64]="InlinedIntoChild",PrefetchHint[PrefetchHint.HeadInlinedIntoSelf=128]="HeadInlinedIntoSelf",PrefetchHint[PrefetchHint.HeadOutlined=256]="HeadOutlined",PrefetchHint)},17980,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"matchSegment",{enumerable:!0,get:function(){return matchSegment}});let matchSegment=(existingSegment,segment)=>"string"==typeof existingSegment?"string"==typeof segment&&existingSegment===segment:"string"!=typeof segment&&existingSegment[0]===segment[0]&&existingSegment[1]===segment[1];("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},48111,(__turbopack_context__,module,exports)=>{"use strict";function createCacheKey(originalHref,nextUrl){let originalUrl=new URL(originalHref);return{pathname:originalUrl.pathname,search:originalUrl.search,nextUrl:nextUrl}}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"createCacheKey",{enumerable:!0,get:function(){return createCacheKey}}),("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},19012,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{FetchStrategy:function(){return FetchStrategy1},NavigationResultTag:function(){return NavigationResultTag1},PrefetchPriority:function(){return PrefetchPriority1}});var NavigationResultTag,PrefetchPriority,FetchStrategy,NavigationResultTag1=((NavigationResultTag={})[NavigationResultTag.MPA=0]="MPA",NavigationResultTag[NavigationResultTag.Success=1]="Success",NavigationResultTag[NavigationResultTag.NoOp=2]="NoOp",NavigationResultTag[NavigationResultTag.Async=3]="Async",NavigationResultTag),PrefetchPriority1=((PrefetchPriority={})[PrefetchPriority.Intent=2]="Intent",PrefetchPriority[PrefetchPriority.Default=1]="Default",PrefetchPriority[PrefetchPriority.Background=0]="Background",PrefetchPriority),FetchStrategy1=((FetchStrategy={})[FetchStrategy.LoadingBoundary=0]="LoadingBoundary",FetchStrategy[FetchStrategy.PPR=1]="PPR",FetchStrategy[FetchStrategy.PPRRuntime=2]="PPRRuntime",FetchStrategy[FetchStrategy.Full=3]="Full",FetchStrategy);("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},63351,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{Fallback:function(){return Fallback},createCacheMap:function(){return createCacheMap},deleteFromCacheMap:function(){return deleteFromCacheMap},deleteMapEntry:function(){return deleteMapEntry},getFromCacheMap:function(){return getFromCacheMap},isValueExpired:function(){return isValueExpired},setInCacheMap:function(){return setInCacheMap},setSizeInCacheMap:function(){return setSizeInCacheMap}});let _lru=__turbopack_context__.r(91845),Fallback={},Revalidation={};function createCacheMap(){return{parent:null,key:null,value:null,map:null,prev:null,next:null,size:0}}function getOrInitialize(cacheMap,keys,isRevalidation){let entry=cacheMap,remainingKeys=keys,key=null;for(;;){let previousKey=key;if(null!==remainingKeys)key=remainingKeys.value,remainingKeys=remainingKeys.parent;else if(isRevalidation&&previousKey!==Revalidation){if(null===entry.value)return entry;key=Revalidation}else break;let map=entry.map;if(null!==map){let existingEntry=map.get(key);if(void 0!==existingEntry){entry=existingEntry;continue}}else map=new Map,entry.map=map;let newEntry={parent:entry,key,value:null,map:null,prev:null,next:null,size:0};map.set(key,newEntry),entry=newEntry}return entry}function getFromCacheMap(now,currentCacheVersion,rootEntry,keys,isRevalidation){let entry=getEntryWithFallbackImpl(now,currentCacheVersion,rootEntry,keys,isRevalidation,0);return null===entry||null===entry.value?null:((0,_lru.lruPut)(entry),entry.value)}function isValueExpired(now,currentCacheVersion,value){return value.staleAt<=now||value.version<currentCacheVersion}function lazilyEvictIfNeeded(now,currentCacheVersion,entry){return null===entry.value?entry:isValueExpired(now,currentCacheVersion,entry.value)?(deleteMapEntry(entry),null):entry}function getEntryWithFallbackImpl(now,currentCacheVersion,entry,keys,isRevalidation,previousKey){let key,remainingKeys;if(null!==keys)key=keys.value,remainingKeys=keys.parent;else{if(!isRevalidation||previousKey===Revalidation)return lazilyEvictIfNeeded(now,currentCacheVersion,entry);key=Revalidation,remainingKeys=null}let map=entry.map;if(null!==map){let existingEntry=map.get(key);if(void 0!==existingEntry){let result=getEntryWithFallbackImpl(now,currentCacheVersion,existingEntry,remainingKeys,isRevalidation,key);if(null!==result)return result}let fallbackEntry=map.get(Fallback);if(void 0!==fallbackEntry)return getEntryWithFallbackImpl(now,currentCacheVersion,fallbackEntry,remainingKeys,isRevalidation,key)}return null}function setInCacheMap(cacheMap,keys,value,isRevalidation){let entry=getOrInitialize(cacheMap,keys,isRevalidation);setMapEntryValue(entry,value),(0,_lru.lruPut)(entry),(0,_lru.updateLruSize)(entry,value.size)}function setMapEntryValue(entry,value){null!==entry.value&&(entry.value.ref=null,entry.value=null);let oldEntry=value.ref;entry.value=value,value.ref=entry,(0,_lru.updateLruSize)(entry,value.size),null!==oldEntry&&oldEntry!==entry&&oldEntry.value===value&&deleteMapEntry(oldEntry)}function deleteFromCacheMap(value){let entry=value.ref;null!==entry&&(value.ref=null,deleteMapEntry(entry))}function deleteMapEntry(entry){entry.value=null,(0,_lru.deleteFromLru)(entry);let map=entry.map;if(null===map){let parent=entry.parent,key=entry.key;for(;null!==parent;){let parentMap=parent.map;if(null!==parentMap&&(parentMap.delete(key),0===parentMap.size)&&(parent.map=null,null===parent.value)){key=parent.key,parent=parent.parent;continue}break}}else{let revalidatingEntry=map.get(Revalidation);void 0!==revalidatingEntry&&null!==revalidatingEntry.value&&setMapEntryValue(entry,revalidatingEntry.value)}}function setSizeInCacheMap(value,size){let entry=value.ref;null!==entry&&(value.size=size,(0,_lru.updateLruSize)(entry,size))}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},91845,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{cleanup:function(){return cleanup},deleteFromLru:function(){return deleteFromLru},lruPut:function(){return lruPut},updateLruSize:function(){return updateLruSize}});let _cachemap=__turbopack_context__.r(63351),_scheduler=__turbopack_context__.r(6600),head=null,lruSize=0;function lruPut(node){if(head===node)return;let prev=node.prev,next=node.next;if(null===next||null===prev?(lruSize+=node.size,ensureCleanupIsScheduled()):(prev.next=next,next.prev=prev),null===head)node.prev=node,node.next=node;else{let tail=head.prev;node.prev=tail,null!==tail&&(tail.next=node),node.next=head,head.prev=node}head=node}function updateLruSize(node,newNodeSize){let prevNodeSize=node.size;node.size=newNodeSize,null!==node.next&&(lruSize=lruSize-prevNodeSize+newNodeSize,ensureCleanupIsScheduled())}function deleteFromLru(deleted){let next=deleted.next,prev=deleted.prev;null!==next&&null!==prev&&(lruSize-=deleted.size,deleted.next=null,deleted.prev=null,head===deleted?next===head?head=null:(head=next,prev.next=next,next.prev=prev):(prev.next=next,next.prev=prev))}function ensureCleanupIsScheduled(){lruSize<=0x3200000||(0,_scheduler.pingPrefetchScheduler)()}function cleanup(){if(!(lruSize<=0x3200000))for(;lruSize>0x2d00000&&null!==head;){let tail=head.prev;null!==tail&&(0,_cachemap.deleteMapEntry)(tail)}}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},6600,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{cancelPrefetchTask:function(){return cancelPrefetchTask},isPrefetchTaskDirty:function(){return isPrefetchTaskDirty},pingPrefetchScheduler:function(){return pingPrefetchScheduler},pingPrefetchTask:function(){return pingPrefetchTask},reschedulePrefetchTask:function(){return reschedulePrefetchTask},schedulePrefetchTask:function(){return schedulePrefetchTask},startRevalidationCooldown:function(){return startRevalidationCooldown}});let _approutertypes=__turbopack_context__.r(46043),_matchsegments=__turbopack_context__.r(17980),_cache=__turbopack_context__.r(69776),_cachekey=__turbopack_context__.r(48111),_types=__turbopack_context__.r(19012),_segment=__turbopack_context__.r(14522),_lru=__turbopack_context__.r(91845),scheduleMicrotask="function"==typeof queueMicrotask?queueMicrotask:fn=>Promise.resolve().then(fn).catch(error=>setTimeout(()=>{throw error})),taskHeap=[],inProgressRequests=0,sortIdCounter=0,didScheduleMicrotask=!1,mostRecentlyHoveredLink=null,revalidationCooldownTimeoutHandle=null;function startRevalidationCooldown(){null!==revalidationCooldownTimeoutHandle&&clearTimeout(revalidationCooldownTimeoutHandle),revalidationCooldownTimeoutHandle=setTimeout(()=>{revalidationCooldownTimeoutHandle=null,pingPrefetchScheduler()},300)}function schedulePrefetchTask(key,treeAtTimeOfPrefetch,fetchStrategy,priority,onInvalidate,_onComplete){let task={key,treeAtTimeOfPrefetch,routeCacheVersion:(0,_cache.getCurrentRouteCacheVersion)(),segmentCacheVersion:(0,_cache.getCurrentSegmentCacheVersion)(),priority,phase:1,hasBackgroundWork:!1,spawnedRuntimePrefetches:null,fetchStrategy,sortId:sortIdCounter++,isCanceled:!1,onInvalidate,_heapIndex:-1};return trackMostRecentlyHoveredLink(task),heapPush(taskHeap,task),pingPrefetchScheduler(),task}function cancelPrefetchTask(task){task.isCanceled=!0,heapDelete(taskHeap,task)}function reschedulePrefetchTask(task,treeAtTimeOfPrefetch,fetchStrategy,priority){task.isCanceled=!1,task.phase=1,task.sortId=sortIdCounter++,task.priority=task===mostRecentlyHoveredLink?_types.PrefetchPriority.Intent:priority,task.treeAtTimeOfPrefetch=treeAtTimeOfPrefetch,task.fetchStrategy=fetchStrategy,trackMostRecentlyHoveredLink(task),-1!==task._heapIndex?heapResift(taskHeap,task):heapPush(taskHeap,task),pingPrefetchScheduler()}function isPrefetchTaskDirty(task,nextUrl,tree){return task.routeCacheVersion!==(0,_cache.getCurrentRouteCacheVersion)()||task.segmentCacheVersion!==(0,_cache.getCurrentSegmentCacheVersion)()||task.treeAtTimeOfPrefetch!==tree||task.key.nextUrl!==nextUrl}function trackMostRecentlyHoveredLink(task){task.priority===_types.PrefetchPriority.Intent&&task!==mostRecentlyHoveredLink&&(null!==mostRecentlyHoveredLink&&mostRecentlyHoveredLink.priority!==_types.PrefetchPriority.Background&&(mostRecentlyHoveredLink.priority=_types.PrefetchPriority.Default,heapResift(taskHeap,mostRecentlyHoveredLink)),mostRecentlyHoveredLink=task)}function pingPrefetchScheduler(){didScheduleMicrotask||(didScheduleMicrotask=!0,scheduleMicrotask(processQueueInMicrotask))}function hasNetworkBandwidth(task){return null===revalidationCooldownTimeoutHandle&&(task.priority===_types.PrefetchPriority.Intent?inProgressRequests<12:inProgressRequests<4)}function spawnPrefetchSubtask(prefetchSubtask){return inProgressRequests++,prefetchSubtask.then(result=>null===result?(onPrefetchConnectionClosed(),null):(result.closed.then(onPrefetchConnectionClosed),result.value))}function onPrefetchConnectionClosed(){inProgressRequests--,pingPrefetchScheduler()}function pingPrefetchTask(task){task.isCanceled||-1!==task._heapIndex||(heapPush(taskHeap,task),pingPrefetchScheduler())}function processQueueInMicrotask(){didScheduleMicrotask=!1;let now=Date.now(),task=heapPeek(taskHeap);for(;null!==task&&hasNetworkBandwidth(task);){task.routeCacheVersion=(0,_cache.getCurrentRouteCacheVersion)(),task.segmentCacheVersion=(0,_cache.getCurrentSegmentCacheVersion)();let exitStatus=pingRoute(now,task),hasBackgroundWork=task.hasBackgroundWork;switch(task.hasBackgroundWork=!1,task.spawnedRuntimePrefetches=null,exitStatus){case 0:return;case 1:heapPop(taskHeap),task=heapPeek(taskHeap);continue;case 2:1===task.phase?(task.phase=0,heapResift(taskHeap,task)):hasBackgroundWork?(task.priority=_types.PrefetchPriority.Background,heapResift(taskHeap,task)):heapPop(taskHeap),task=heapPeek(taskHeap);continue}}null===task&&0===inProgressRequests&&(0,_lru.cleanup)()}function background(task){return task.priority===_types.PrefetchPriority.Background||(task.hasBackgroundWork=!0,!1)}function pingRoute(now,task){let key=task.key,route=(0,_cache.readOrCreateRouteCacheEntry)(now,task,key),exitStatus=pingRootRouteTree(now,task,route);if(0!==exitStatus&&""!==key.search){let url=new URL(key.pathname,location.origin),keyWithoutSearch=(0,_cachekey.createCacheKey)(url.href,key.nextUrl),routeWithoutSearch=(0,_cache.readOrCreateRouteCacheEntry)(now,task,keyWithoutSearch);switch(routeWithoutSearch.status){case _cache.EntryStatus.Empty:background(task)&&(routeWithoutSearch.status=_cache.EntryStatus.Pending,spawnPrefetchSubtask((0,_cache.fetchRouteOnCacheMiss)(routeWithoutSearch,keyWithoutSearch)));case _cache.EntryStatus.Pending:case _cache.EntryStatus.Fulfilled:case _cache.EntryStatus.Rejected:}}return exitStatus}function pingRootRouteTree(now,task,route){switch(route.status){case _cache.EntryStatus.Empty:spawnPrefetchSubtask((0,_cache.fetchRouteOnCacheMiss)(route,task.key)),route.staleAt=now+6e4,route.status=_cache.EntryStatus.Pending;case _cache.EntryStatus.Pending:{let blockedTasks=route.blockedTasks;return null===blockedTasks?route.blockedTasks=new Set([task]):blockedTasks.add(task),1}case _cache.EntryStatus.Rejected:break;case _cache.EntryStatus.Fulfilled:{let fetchStrategy;if(0!==task.phase)return 2;if(!hasNetworkBandwidth(task))return 0;let tree=route.tree;switch(fetchStrategy=tree.prefetchHints&_approutertypes.PrefetchHint.SubtreeHasInstant?_types.FetchStrategy.PPR:task.fetchStrategy===_types.FetchStrategy.PPR?route.supportsPerSegmentPrefetching?_types.FetchStrategy.PPR:_types.FetchStrategy.LoadingBoundary:task.fetchStrategy){case _types.FetchStrategy.PPR:{if(pingStaticHead(now,task,route),0===pingSharedPartOfCacheComponentsTree(now,task,route,task.treeAtTimeOfPrefetch,tree))return 0;let spawnedRuntimePrefetches=task.spawnedRuntimePrefetches;if(null!==spawnedRuntimePrefetches){let spawnedEntries=new Map;pingRuntimeHead(now,task,route,spawnedEntries,_types.FetchStrategy.PPRRuntime);let requestTree=pingRuntimePrefetches(now,task,route,tree,spawnedRuntimePrefetches,spawnedEntries);spawnedEntries.size>0&&spawnPrefetchSubtask((0,_cache.fetchSegmentPrefetchesUsingDynamicRequest)(task,route,_types.FetchStrategy.PPRRuntime,requestTree,spawnedEntries))}return 2}case _types.FetchStrategy.Full:case _types.FetchStrategy.PPRRuntime:case _types.FetchStrategy.LoadingBoundary:{let spawnedEntries=new Map;pingRuntimeHead(now,task,route,spawnedEntries,fetchStrategy);let dynamicRequestTree=diffRouteTreeAgainstCurrent(now,task,route,task.treeAtTimeOfPrefetch,tree,spawnedEntries,fetchStrategy);return spawnedEntries.size>0&&spawnPrefetchSubtask((0,_cache.fetchSegmentPrefetchesUsingDynamicRequest)(task,route,fetchStrategy,dynamicRequestTree,spawnedEntries)),2}}}}return 2}function pingStaticHead(now,task,route){pingStaticSegmentData(now,task,route,(0,_cache.readOrCreateSegmentCacheEntry)(now,_types.FetchStrategy.PPR,route.metadata),task.key,route.metadata)}function pingRuntimeHead(now,task,route,spawnedEntries,fetchStrategy){pingRouteTreeAndIncludeDynamicData(now,task,route,route.metadata,!1,spawnedEntries,fetchStrategy===_types.FetchStrategy.LoadingBoundary?_types.FetchStrategy.Full:fetchStrategy)}function pingSharedPartOfCacheComponentsTree(now,task,route,oldTree,newTree){let segment=(0,_cache.readOrCreateSegmentCacheEntry)(now,task.fetchStrategy,newTree);pingStaticSegmentData(now,task,route,segment,task.key,newTree);let oldTreeChildren=oldTree[1],newTreeChildren=newTree.slots;if(null!==newTreeChildren)for(let parallelRouteKey in newTreeChildren){if(!hasNetworkBandwidth(task))return 0;let newTreeChild=newTreeChildren[parallelRouteKey],newTreeChildSegment=newTreeChild.segment,oldTreeChild=oldTreeChildren[parallelRouteKey],oldTreeChildSegment=oldTreeChild?.[0];if(0===(void 0!==oldTreeChildSegment&&doesCurrentSegmentMatchCachedSegment(route,newTreeChildSegment,oldTreeChildSegment)?pingSharedPartOfCacheComponentsTree(now,task,route,oldTreeChild,newTreeChild):pingNewPartOfCacheComponentsTree(now,task,route,newTreeChild)))return 0}return 2}function pingNewPartOfCacheComponentsTree(now,task,route,tree){if(tree.prefetchHints&_approutertypes.PrefetchHint.HasRuntimePrefetch)return null===task.spawnedRuntimePrefetches?task.spawnedRuntimePrefetches=new Set([tree.requestKey]):task.spawnedRuntimePrefetches.add(tree.requestKey),2;let segment=(0,_cache.readOrCreateSegmentCacheEntry)(now,task.fetchStrategy,tree);if(pingStaticSegmentData(now,task,route,segment,task.key,tree),null!==tree.slots){if(!hasNetworkBandwidth(task))return 0;for(let parallelRouteKey in tree.slots)if(0===pingNewPartOfCacheComponentsTree(now,task,route,tree.slots[parallelRouteKey]))return 0}return 2}function diffRouteTreeAgainstCurrent(now,task,route,oldTree,newTree,spawnedEntries,fetchStrategy){let oldTreeChildren=oldTree[1],newTreeChildren=newTree.slots,requestTreeChildren={};if(null!==newTreeChildren)for(let parallelRouteKey in newTreeChildren){let newTreeChild=newTreeChildren[parallelRouteKey],newTreeChildSegment=newTreeChild.segment,oldTreeChild=oldTreeChildren[parallelRouteKey],oldTreeChildSegment=oldTreeChild?.[0];if(void 0!==oldTreeChildSegment&&doesCurrentSegmentMatchCachedSegment(route,newTreeChildSegment,oldTreeChildSegment)){let requestTreeChild=diffRouteTreeAgainstCurrent(now,task,route,oldTreeChild,newTreeChild,spawnedEntries,fetchStrategy);requestTreeChildren[parallelRouteKey]=requestTreeChild}else switch(fetchStrategy){case _types.FetchStrategy.LoadingBoundary:{let requestTreeChild=(newTreeChild.prefetchHints&(_approutertypes.PrefetchHint.SegmentHasLoadingBoundary|_approutertypes.PrefetchHint.SubtreeHasLoadingBoundary))!=0?pingPPRDisabledRouteTreeUpToLoadingBoundary(now,task,route,newTreeChild,null,spawnedEntries):(0,_cache.convertRouteTreeToFlightRouterState)(newTreeChild);requestTreeChildren[parallelRouteKey]=requestTreeChild;break}case _types.FetchStrategy.PPRRuntime:{let requestTreeChild=pingRouteTreeAndIncludeDynamicData(now,task,route,newTreeChild,!1,spawnedEntries,fetchStrategy);requestTreeChildren[parallelRouteKey]=requestTreeChild;break}case _types.FetchStrategy.Full:{let requestTreeChild=pingRouteTreeAndIncludeDynamicData(now,task,route,newTreeChild,!1,spawnedEntries,fetchStrategy);requestTreeChildren[parallelRouteKey]=requestTreeChild}}}return[newTree.segment,requestTreeChildren,null,null]}function pingPPRDisabledRouteTreeUpToLoadingBoundary(now,task,route,tree,refetchMarkerContext,spawnedEntries){let refetchMarker=null===refetchMarkerContext?"inside-shared-layout":null,segment=(0,_cache.readOrCreateSegmentCacheEntry)(now,task.fetchStrategy,tree);switch(segment.status){case _cache.EntryStatus.Empty:spawnedEntries.set(tree.requestKey,(0,_cache.upgradeToPendingSegment)(segment,_types.FetchStrategy.LoadingBoundary)),"refetch"!==refetchMarkerContext&&(refetchMarker=refetchMarkerContext="refetch");break;case _cache.EntryStatus.Fulfilled:if((tree.prefetchHints&_approutertypes.PrefetchHint.SegmentHasLoadingBoundary)!=0)return(0,_cache.convertRouteTreeToFlightRouterState)(tree);case _cache.EntryStatus.Pending:case _cache.EntryStatus.Rejected:}let requestTreeChildren={};if(null!==tree.slots)for(let parallelRouteKey in tree.slots){let childTree=tree.slots[parallelRouteKey];requestTreeChildren[parallelRouteKey]=pingPPRDisabledRouteTreeUpToLoadingBoundary(now,task,route,childTree,refetchMarkerContext,spawnedEntries)}return[tree.segment,requestTreeChildren,null,refetchMarker]}function pingRouteTreeAndIncludeDynamicData(now,task,route,tree,isInsideRefetchingParent,spawnedEntries,fetchStrategy){let segment=(0,_cache.readOrCreateSegmentCacheEntry)(now,fetchStrategy,tree),spawnedSegment=null;switch(segment.status){case _cache.EntryStatus.Empty:if(fetchStrategy===_types.FetchStrategy.Full&&null!==(0,_cache.attemptToFulfillDynamicSegmentFromBFCache)(now,segment,tree))break;spawnedSegment=(0,_cache.upgradeToPendingSegment)(segment,fetchStrategy);break;case _cache.EntryStatus.Fulfilled:if(segment.isPartial&&(0,_cache.canNewFetchStrategyProvideMoreContent)(segment.fetchStrategy,fetchStrategy)){if(fetchStrategy===_types.FetchStrategy.Full&&null!==(0,_cache.attemptToUpgradeSegmentFromBFCache)(now,tree))break;spawnedSegment=pingFullSegmentRevalidation(now,tree,fetchStrategy)}break;case _cache.EntryStatus.Pending:case _cache.EntryStatus.Rejected:(0,_cache.canNewFetchStrategyProvideMoreContent)(segment.fetchStrategy,fetchStrategy)&&(spawnedSegment=pingFullSegmentRevalidation(now,tree,fetchStrategy))}let requestTreeChildren={};if(null!==tree.slots)for(let parallelRouteKey in tree.slots){let childTree=tree.slots[parallelRouteKey];requestTreeChildren[parallelRouteKey]=pingRouteTreeAndIncludeDynamicData(now,task,route,childTree,isInsideRefetchingParent||null!==spawnedSegment,spawnedEntries,fetchStrategy)}null!==spawnedSegment&&spawnedEntries.set(tree.requestKey,spawnedSegment);let refetchMarker=isInsideRefetchingParent||null===spawnedSegment?null:"refetch";return[tree.segment,requestTreeChildren,null,refetchMarker]}function pingRuntimePrefetches(now,task,route,tree,spawnedRuntimePrefetches,spawnedEntries){if(spawnedRuntimePrefetches.has(tree.requestKey))return pingRouteTreeAndIncludeDynamicData(now,task,route,tree,!1,spawnedEntries,_types.FetchStrategy.PPRRuntime);let requestTreeChildren={},slots=tree.slots;if(null!==slots)for(let parallelRouteKey in slots){let childTree=slots[parallelRouteKey];requestTreeChildren[parallelRouteKey]=pingRuntimePrefetches(now,task,route,childTree,spawnedRuntimePrefetches,spawnedEntries)}return[tree.segment,requestTreeChildren,null,null]}function pingStaticSegmentData(now,task,route,segment,routeKey,tree){switch(segment.status){case _cache.EntryStatus.Empty:spawnPrefetchSubtask((0,_cache.fetchSegmentOnCacheMiss)(route,(0,_cache.upgradeToPendingSegment)(segment,_types.FetchStrategy.PPR),routeKey,tree));break;case _cache.EntryStatus.Pending:switch(segment.fetchStrategy){case _types.FetchStrategy.PPR:case _types.FetchStrategy.PPRRuntime:case _types.FetchStrategy.Full:break;case _types.FetchStrategy.LoadingBoundary:background(task)&&pingPPRSegmentRevalidation(now,route,routeKey,tree);break;default:segment.fetchStrategy}break;case _cache.EntryStatus.Rejected:switch(segment.fetchStrategy){case _types.FetchStrategy.PPR:case _types.FetchStrategy.PPRRuntime:case _types.FetchStrategy.Full:break;case _types.FetchStrategy.LoadingBoundary:pingPPRSegmentRevalidation(now,route,routeKey,tree);break;default:segment.fetchStrategy}case _cache.EntryStatus.Fulfilled:}}function pingPPRSegmentRevalidation(now,route,routeKey,tree){let revalidatingSegment=(0,_cache.readOrCreateRevalidatingSegmentEntry)(now,_types.FetchStrategy.PPR,tree);switch(revalidatingSegment.status){case _cache.EntryStatus.Empty:spawnPrefetchSubtask((0,_cache.fetchSegmentOnCacheMiss)(route,(0,_cache.upgradeToPendingSegment)(revalidatingSegment,_types.FetchStrategy.PPR),routeKey,tree));case _cache.EntryStatus.Pending:case _cache.EntryStatus.Fulfilled:case _cache.EntryStatus.Rejected:}}function pingFullSegmentRevalidation(now,tree,fetchStrategy){let revalidatingSegment=(0,_cache.readOrCreateRevalidatingSegmentEntry)(now,fetchStrategy,tree);if(revalidatingSegment.status===_cache.EntryStatus.Empty)return(0,_cache.upgradeToPendingSegment)(revalidatingSegment,fetchStrategy);if((0,_cache.canNewFetchStrategyProvideMoreContent)(revalidatingSegment.fetchStrategy,fetchStrategy)){let emptySegment=(0,_cache.overwriteRevalidatingSegmentCacheEntry)(now,fetchStrategy,tree);return(0,_cache.upgradeToPendingSegment)(emptySegment,fetchStrategy)}switch(revalidatingSegment.status){case _cache.EntryStatus.Pending:case _cache.EntryStatus.Fulfilled:case _cache.EntryStatus.Rejected:default:return null}}function doesCurrentSegmentMatchCachedSegment(route,currentSegment,cachedSegment){return cachedSegment===_segment.PAGE_SEGMENT_KEY?currentSegment===(0,_segment.addSearchParamsIfPageSegment)(_segment.PAGE_SEGMENT_KEY,Object.fromEntries(new URLSearchParams(route.renderedSearch))):(0,_matchsegments.matchSegment)(cachedSegment,currentSegment)}function compareQueuePriority(a,b){let priorityDiff=b.priority-a.priority;if(0!==priorityDiff)return priorityDiff;let phaseDiff=b.phase-a.phase;return 0!==phaseDiff?phaseDiff:b.sortId-a.sortId}function heapPush(heap,node){let index=heap.length;heap.push(node),node._heapIndex=index,heapSiftUp(heap,node,index)}function heapPeek(heap){return 0===heap.length?null:heap[0]}function heapPop(heap){if(0===heap.length)return null;let first=heap[0];first._heapIndex=-1;let last=heap.pop();return last!==first&&(heap[0]=last,last._heapIndex=0,heapSiftDown(heap,last,0)),first}function heapDelete(heap,node){let index=node._heapIndex;if(-1!==index&&(node._heapIndex=-1,0!==heap.length)){let last=heap.pop();last!==node&&(heap[index]=last,last._heapIndex=index,heapSiftDown(heap,last,index))}}function heapResift(heap,node){let index=node._heapIndex;-1!==index&&(0===index?heapSiftDown(heap,node,0):compareQueuePriority(heap[index-1>>>1],node)>0?heapSiftUp(heap,node,index):heapSiftDown(heap,node,index))}function heapSiftUp(heap,node,i){let index=i;for(;index>0;){let parentIndex=index-1>>>1,parent=heap[parentIndex];if(!(compareQueuePriority(parent,node)>0))return;heap[parentIndex]=node,node._heapIndex=parentIndex,heap[index]=parent,parent._heapIndex=index,index=parentIndex}}function heapSiftDown(heap,node,i){let index=i,length=heap.length,halfLength=length>>>1;for(;index<halfLength;){let leftIndex=(index+1)*2-1,left=heap[leftIndex],rightIndex=leftIndex+1,right=heap[rightIndex];if(0>compareQueuePriority(left,node))rightIndex<length&&0>compareQueuePriority(right,left)?(heap[index]=right,right._heapIndex=index,heap[rightIndex]=node,node._heapIndex=rightIndex,index=rightIndex):(heap[index]=left,left._heapIndex=index,heap[leftIndex]=node,node._heapIndex=leftIndex,index=leftIndex);else{if(!(rightIndex<length&&0>compareQueuePriority(right,node)))return;heap[index]=right,right._heapIndex=index,heap[rightIndex]=node,node._heapIndex=rightIndex,index=rightIndex}}}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},10815,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{appendLayoutVaryPath:function(){return appendLayoutVaryPath},clonePageVaryPathWithNewSearchParams:function(){return clonePageVaryPathWithNewSearchParams},finalizeLayoutVaryPath:function(){return finalizeLayoutVaryPath},finalizeMetadataVaryPath:function(){return finalizeMetadataVaryPath},finalizePageVaryPath:function(){return finalizePageVaryPath},getFulfilledRouteVaryPath:function(){return getFulfilledRouteVaryPath},getFulfilledSegmentVaryPath:function(){return getFulfilledSegmentVaryPath},getPartialLayoutVaryPath:function(){return getPartialLayoutVaryPath},getPartialPageVaryPath:function(){return getPartialPageVaryPath},getRenderedSearchFromVaryPath:function(){return getRenderedSearchFromVaryPath},getRouteVaryPath:function(){return getRouteVaryPath},getSegmentVaryPathForRequest:function(){return getSegmentVaryPathForRequest}});let _types=__turbopack_context__.r(19012),_cachemap=__turbopack_context__.r(63351),_segmentvalueencoding=__turbopack_context__.r(63272);function getRouteVaryPath(pathname,search,nextUrl){return{id:null,value:pathname,parent:{id:"?",value:search,parent:{id:null,value:nextUrl,parent:null}}}}function getFulfilledRouteVaryPath(pathname,search,nextUrl,couldBeIntercepted){return{id:null,value:pathname,parent:{id:"?",value:search,parent:{id:null,value:couldBeIntercepted?nextUrl:_cachemap.Fallback,parent:null}}}}function appendLayoutVaryPath(parentPath,cacheKey,paramName){return{id:paramName,value:cacheKey,parent:parentPath}}function finalizeLayoutVaryPath(requestKey,varyPath){return{id:null,value:requestKey,parent:varyPath}}function getPartialLayoutVaryPath(finalizedVaryPath){return finalizedVaryPath.parent}function finalizePageVaryPath(requestKey,renderedSearch,varyPath){return{id:null,value:requestKey,parent:{id:"?",value:renderedSearch,parent:varyPath}}}function getPartialPageVaryPath(finalizedVaryPath){return finalizedVaryPath.parent.parent}function finalizeMetadataVaryPath(pageRequestKey,renderedSearch,varyPath){return{id:null,value:pageRequestKey+_segmentvalueencoding.HEAD_REQUEST_KEY,parent:{id:"?",value:renderedSearch,parent:varyPath}}}function getSegmentVaryPathForRequest(fetchStrategy,tree){let originalVaryPath=tree.varyPath;if(tree.isPage&&fetchStrategy!==_types.FetchStrategy.Full&&fetchStrategy!==_types.FetchStrategy.PPRRuntime){let pathParamsVaryPath=originalVaryPath.parent.parent;return{id:null,value:originalVaryPath.value,parent:{id:"?",value:_cachemap.Fallback,parent:pathParamsVaryPath}}}return originalVaryPath}function clonePageVaryPathWithNewSearchParams(originalVaryPath,newSearch){let searchParamsVaryPath=originalVaryPath.parent;return{id:null,value:originalVaryPath.value,parent:{id:"?",value:newSearch,parent:searchParamsVaryPath.parent}}}function getRenderedSearchFromVaryPath(varyPath){let searchParams=varyPath.parent.value;return"string"==typeof searchParams?searchParams:null}function getFulfilledSegmentVaryPath(original,varyParams){return{id:original.id,value:null===original.id||varyParams.has(original.id)?original.value:_cachemap.Fallback,parent:null===original.parent?null:getFulfilledSegmentVaryPath(original.parent,varyParams)}}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},62826,(__turbopack_context__,module,exports)=>{"use strict";function parsePath(path){let hashIndex=path.indexOf("#"),queryIndex=path.indexOf("?"),hasQuery=queryIndex>-1&&(hashIndex<0||queryIndex<hashIndex);return hasQuery||hashIndex>-1?{pathname:path.substring(0,hasQuery?queryIndex:hashIndex),query:hasQuery?path.substring(queryIndex,hashIndex>-1?hashIndex:void 0):"",hash:hashIndex>-1?path.slice(hashIndex):""}:{pathname:path,query:"",hash:""}}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"parsePath",{enumerable:!0,get:function(){return parsePath}})},28385,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"addPathPrefix",{enumerable:!0,get:function(){return addPathPrefix}});let _parsepath=__turbopack_context__.r(62826);function addPathPrefix(path,prefix){if(!path.startsWith("/")||!prefix)return path;let{pathname,query,hash}=(0,_parsepath.parsePath)(path);return`${prefix}${pathname}${query}${hash}`}},39739,(__turbopack_context__,module,exports)=>{"use strict";function removeTrailingSlash(route){return route.replace(/\/$/,"")||"/"}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"removeTrailingSlash",{enumerable:!0,get:function(){return removeTrailingSlash}})},25325,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return normalizePathTrailingSlash}});let _removetrailingslash=__turbopack_context__.r(39739),_parsepath=__turbopack_context__.r(62826),normalizePathTrailingSlash=path=>{if(!path.startsWith("/"))return path;let{pathname,query,hash}=(0,_parsepath.parsePath)(path);return`${(0,_removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`};("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},19546,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"addBasePath",{enumerable:!0,get:function(){return addBasePath}});let _addpathprefix=__turbopack_context__.r(28385),_normalizetrailingslash=__turbopack_context__.r(25325);function addBasePath(path,required){return(0,_normalizetrailingslash.normalizePathTrailingSlash)((0,_addpathprefix.addPathPrefix)(path,""))}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},15335,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{createPrefetchURL:function(){return createPrefetchURL},isExternalURL:function(){return isExternalURL}});let _isbot=__turbopack_context__.r(34374),_addbasepath=__turbopack_context__.r(19546);function isExternalURL(url){return url.origin!==window.location.origin}function createPrefetchURL(href){let url;if((0,_isbot.isBot)(window.navigator.userAgent))return null;try{url=new URL((0,_addbasepath.addBasePath)(href),window.location.href)}catch(_){throw Object.defineProperty(Error(`Cannot prefetch '${href}' because it cannot be converted to a URL.`),"__NEXT_ERROR_CODE",{value:"E234",enumerable:!1,configurable:!0})}return isExternalURL(url)?null:url}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},51193,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{IDLE_LINK_STATUS:function(){return IDLE_LINK_STATUS},PENDING_LINK_STATUS:function(){return PENDING_LINK_STATUS},getLinkForCurrentNavigation:function(){return getLinkForCurrentNavigation},mountFormInstance:function(){return mountFormInstance},mountLinkInstance:function(){return mountLinkInstance},onLinkVisibilityChanged:function(){return onLinkVisibilityChanged},onNavigationIntent:function(){return onNavigationIntent},pingVisibleLinks:function(){return pingVisibleLinks},setLinkForCurrentNavigation:function(){return setLinkForCurrentNavigation},unmountLinkForCurrentNavigation:function(){return unmountLinkForCurrentNavigation},unmountPrefetchableInstance:function(){return unmountPrefetchableInstance}});let _types=__turbopack_context__.r(19012),_cachekey=__turbopack_context__.r(48111),_scheduler=__turbopack_context__.r(6600),_react=__turbopack_context__.r(66626),linkForMostRecentNavigation=null,PENDING_LINK_STATUS={pending:!0},IDLE_LINK_STATUS={pending:!1};function setLinkForCurrentNavigation(link){(0,_react.startTransition)(()=>{linkForMostRecentNavigation?.setOptimisticLinkStatus(IDLE_LINK_STATUS),link?.setOptimisticLinkStatus(PENDING_LINK_STATUS),linkForMostRecentNavigation=link})}function unmountLinkForCurrentNavigation(link){linkForMostRecentNavigation===link&&(linkForMostRecentNavigation=null)}function getLinkForCurrentNavigation(){return linkForMostRecentNavigation}let prefetchable="function"==typeof WeakMap?new WeakMap:new Map,prefetchableAndVisible=new Set,observer="function"==typeof IntersectionObserver?new IntersectionObserver(handleIntersect,{rootMargin:"200px"}):null;function observeVisibility(element,instance){void 0!==prefetchable.get(element)&&unmountPrefetchableInstance(element),prefetchable.set(element,instance),null!==observer&&observer.observe(element)}function coercePrefetchableUrl(href){if(!("u">typeof window))return null;{let{createPrefetchURL}=__turbopack_context__.r(15335);try{return createPrefetchURL(href)}catch{return("function"==typeof reportError?reportError:console.error)(`Cannot prefetch '${href}' because it cannot be converted to a URL.`),null}}}function mountLinkInstance(element,href,router,fetchStrategy,prefetchEnabled,setOptimisticLinkStatus){if(prefetchEnabled){let prefetchURL=coercePrefetchableUrl(href);if(null!==prefetchURL){let instance={router,fetchStrategy,isVisible:!1,prefetchTask:null,prefetchHref:prefetchURL.href,setOptimisticLinkStatus};return observeVisibility(element,instance),instance}}return{router,fetchStrategy,isVisible:!1,prefetchTask:null,prefetchHref:null,setOptimisticLinkStatus}}function mountFormInstance(element,href,router,fetchStrategy){let prefetchURL=coercePrefetchableUrl(href);null===prefetchURL||observeVisibility(element,{router,fetchStrategy,isVisible:!1,prefetchTask:null,prefetchHref:prefetchURL.href,setOptimisticLinkStatus:null})}function unmountPrefetchableInstance(element){let instance=prefetchable.get(element);if(void 0!==instance){prefetchable.delete(element),prefetchableAndVisible.delete(instance);let prefetchTask=instance.prefetchTask;null!==prefetchTask&&(0,_scheduler.cancelPrefetchTask)(prefetchTask)}null!==observer&&observer.unobserve(element)}function handleIntersect(entries){for(let entry of entries){let isVisible=entry.intersectionRatio>0;onLinkVisibilityChanged(entry.target,isVisible)}}function onLinkVisibilityChanged(element,isVisible){let instance=prefetchable.get(element);void 0!==instance&&(instance.isVisible=isVisible,isVisible?prefetchableAndVisible.add(instance):prefetchableAndVisible.delete(instance),rescheduleLinkPrefetch(instance,_types.PrefetchPriority.Default))}function onNavigationIntent(element,unstable_upgradeToDynamicPrefetch){let instance=prefetchable.get(element);void 0!==instance&&void 0!==instance&&rescheduleLinkPrefetch(instance,_types.PrefetchPriority.Intent)}function rescheduleLinkPrefetch(instance,priority){if("u">typeof window){let existingPrefetchTask=instance.prefetchTask;if(!instance.isVisible){null!==existingPrefetchTask&&(0,_scheduler.cancelPrefetchTask)(existingPrefetchTask);return}let{getCurrentAppRouterState}=__turbopack_context__.r(22283),appRouterState=getCurrentAppRouterState();if(null!==appRouterState){let treeAtTimeOfPrefetch=appRouterState.tree;if(null===existingPrefetchTask){let nextUrl=appRouterState.nextUrl,cacheKey=(0,_cachekey.createCacheKey)(instance.prefetchHref,nextUrl);instance.prefetchTask=(0,_scheduler.schedulePrefetchTask)(cacheKey,treeAtTimeOfPrefetch,instance.fetchStrategy,priority,null)}else(0,_scheduler.reschedulePrefetchTask)(existingPrefetchTask,treeAtTimeOfPrefetch,instance.fetchStrategy,priority)}}}function pingVisibleLinks(nextUrl,tree){for(let instance of prefetchableAndVisible){let task=instance.prefetchTask;if(null!==task&&!(0,_scheduler.isPrefetchTaskDirty)(task,nextUrl,tree))continue;null!==task&&(0,_scheduler.cancelPrefetchTask)(task);let cacheKey=(0,_cachekey.createCacheKey)(instance.prefetchHref,nextUrl);instance.prefetchTask=(0,_scheduler.schedulePrefetchTask)(cacheKey,tree,instance.fetchStrategy,_types.PrefetchPriority.Default,null)}}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},97705,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{UnknownDynamicStaleTime:function(){return UnknownDynamicStaleTime},computeDynamicStaleAt:function(){return computeDynamicStaleAt},invalidateBfCache:function(){return invalidateBfCache},readFromBFCache:function(){return readFromBFCache},readFromBFCacheDuringRegularNavigation:function(){return readFromBFCacheDuringRegularNavigation},updateBFCacheEntryStaleAt:function(){return updateBFCacheEntryStaleAt},writeHeadToBFCache:function(){return writeHeadToBFCache},writeToBFCache:function(){return writeToBFCache}});let _navigatereducer=__turbopack_context__.r(24503),_cachemap=__turbopack_context__.r(63351),UnknownDynamicStaleTime=-1;function computeDynamicStaleAt(now,dynamicStaleTimeSeconds){return dynamicStaleTimeSeconds!==UnknownDynamicStaleTime?now+1e3*dynamicStaleTimeSeconds:now+_navigatereducer.DYNAMIC_STALETIME_MS}let bfcacheMap=(0,_cachemap.createCacheMap)(),currentBfCacheVersion=0;function invalidateBfCache(){"u">typeof window&¤tBfCacheVersion++}function writeToBFCache(now,varyPath,rsc,prefetchRsc,head,prefetchHead,dynamicStaleAt){if("u"<typeof window)return;let entry={rsc,prefetchRsc,head,prefetchHead,ref:null,size:100,navigatedAt:now,staleAt:dynamicStaleAt,version:currentBfCacheVersion};(0,_cachemap.setInCacheMap)(bfcacheMap,varyPath,entry,!1)}function writeHeadToBFCache(now,varyPath,head,prefetchHead,dynamicStaleAt){writeToBFCache(now,varyPath,head,prefetchHead,null,null,dynamicStaleAt)}function updateBFCacheEntryStaleAt(varyPath,newStaleAt){if("u"<typeof window)return;let entry=(0,_cachemap.getFromCacheMap)(-1,currentBfCacheVersion,bfcacheMap,varyPath,!1);null!==entry&&(entry.staleAt=newStaleAt)}function readFromBFCache(varyPath){return"u"<typeof window?null:(0,_cachemap.getFromCacheMap)(-1,currentBfCacheVersion,bfcacheMap,varyPath,!1)}function readFromBFCacheDuringRegularNavigation(now,varyPath){return"u"<typeof window?null:(0,_cachemap.getFromCacheMap)(now,currentBfCacheVersion,bfcacheMap,varyPath,!1)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},50616,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{discoverKnownRoute:function(){return discoverKnownRoute},matchKnownRoute:function(){return matchKnownRoute},resetKnownRoutes:function(){return resetKnownRoutes}});let _cache=__turbopack_context__.r(69776),_routeparams=__turbopack_context__.r(46997),_varypath=__turbopack_context__.r(10815);function createEmptyPart(){return{staticChildren:null,dynamicChild:null,dynamicChildParamName:null,dynamicChildParamType:null,pattern:null}}let knownRouteTreeRoot=createEmptyPart();function discoverKnownRoute(now,pathname,nextUrl,pendingEntry,routeTree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching,hasDynamicRewrite){let pathnameParts=pathname.split("/").filter(p=>""!==p),firstPart=pathnameParts.length>0?pathnameParts[0]:null,remainingParts=pathnameParts.length>0?pathnameParts.slice(1):[];if(null!==pendingEntry){let fulfilledEntry=(0,_cache.fulfillRouteCacheEntry)(now,pendingEntry,routeTree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching);return hasDynamicRewrite&&(fulfilledEntry.hasDynamicRewrite=!0),discoverKnownRoutePart(knownRouteTreeRoot,routeTree,firstPart,remainingParts,fulfilledEntry,now,pathname,nextUrl,routeTree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching,hasDynamicRewrite),fulfilledEntry}return discoverKnownRoutePart(knownRouteTreeRoot,routeTree,firstPart,remainingParts,null,now,pathname,nextUrl,routeTree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching,hasDynamicRewrite)}function discoverDynamicChild(part,paramName,paramType){if(null!==part.dynamicChild)return part.dynamicChild;let newChild=createEmptyPart();return part.dynamicChild=newChild,part.dynamicChildParamName=paramName,part.dynamicChildParamType=paramType,newChild}function discoverKnownRoutePart(parentKnownRoutePart,routeTree,urlPart,remainingParts,existingEntry,now,pathname,nextUrl,fullTree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching,hasDynamicRewrite){let segmentAppearsInURL,entry,segment=routeTree.segment,paramName=null,paramType=null,staticSiblings=null;"string"==typeof segment?segmentAppearsInURL=(0,_routeparams.doesStaticSegmentAppearInURL)(segment):(paramName=segment[0],paramType=segment[2],staticSiblings=segment[3],segmentAppearsInURL=!0);let knownRoutePart=parentKnownRoutePart,nextUrlPart=urlPart,nextRemainingParts=remainingParts;if(segmentAppearsInURL){if(null===paramName&&urlPart!==segment)return null!==existingEntry?existingEntry:(0,_cache.writeRouteIntoCache)(now,pathname,nextUrl,fullTree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching);if(null!==paramName&&null!==paramType){if(knownRoutePart=discoverDynamicChild(parentKnownRoutePart,paramName,paramType),null!==staticSiblings)for(let sibling of(null===parentKnownRoutePart.staticChildren&&(parentKnownRoutePart.staticChildren=new Map),staticSiblings))parentKnownRoutePart.staticChildren.has(sibling)||parentKnownRoutePart.staticChildren.set(sibling,createEmptyPart())}else{null===parentKnownRoutePart.staticChildren&&(parentKnownRoutePart.staticChildren=new Map);let existingChild=parentKnownRoutePart.staticChildren.get(urlPart);void 0===existingChild&&(existingChild=createEmptyPart(),parentKnownRoutePart.staticChildren.set(urlPart,existingChild)),knownRoutePart=existingChild}nextUrlPart=remainingParts.length>0?remainingParts[0]:null,nextRemainingParts=remainingParts.length>0?remainingParts.slice(1):[]}let slots=routeTree.slots,resultFromChildren=null;if(null!==slots){for(let parallelRouteKey in slots){let childRouteTree=slots[parallelRouteKey];null===childRouteTree.refreshState&&(resultFromChildren=discoverKnownRoutePart(knownRoutePart,childRouteTree,nextUrlPart,nextRemainingParts,existingEntry,now,pathname,nextUrl,fullTree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching,hasDynamicRewrite))}return null!==resultFromChildren?resultFromChildren:null!==existingEntry?existingEntry:(0,_cache.writeRouteIntoCache)(now,pathname,nextUrl,fullTree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching)}return null!==knownRoutePart.pattern?(hasDynamicRewrite&&(knownRoutePart.pattern.hasDynamicRewrite=!0),knownRoutePart.pattern):(entry=null!==existingEntry?existingEntry:(0,_cache.writeRouteIntoCache)(now,pathname,nextUrl,fullTree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching),hasDynamicRewrite&&(entry.hasDynamicRewrite=!0),knownRoutePart.pattern=entry,entry)}function matchKnownRoute(pathname,search){let pathnameParts=pathname.split("/").filter(p=>""!==p),resolvedParams=new Map,match=matchKnownRoutePart(knownRouteTreeRoot,pathnameParts,0,resolvedParams);if(null===match)return null;let matchedPart=match.part,pattern=match.pattern;if(pattern.couldBeIntercepted)return null;let acc={metadataVaryPath:null},reifiedTree=reifyRouteTree(pattern.tree,resolvedParams,search,null,acc),metadataVaryPath=acc.metadataVaryPath;if(null===metadataVaryPath)return null;let reifiedMetadata=(0,_cache.createMetadataRouteTree)(metadataVaryPath),syntheticEntry={canonicalUrl:pathname+search,status:_cache.EntryStatus.Fulfilled,blockedTasks:null,tree:reifiedTree,metadata:reifiedMetadata,couldBeIntercepted:pattern.couldBeIntercepted,supportsPerSegmentPrefetching:pattern.supportsPerSegmentPrefetching,hasDynamicRewrite:!1,renderedSearch:search,ref:null,size:pattern.size,staleAt:pattern.staleAt,version:pattern.version};return matchedPart.pattern=syntheticEntry,syntheticEntry}function matchKnownRoutePart(part,pathnameParts,partIndex,resolvedParams){let urlPart=partIndex<pathnameParts.length?pathnameParts[partIndex]:null;if(null===part.staticChildren){if(null===urlPart){let pattern=part.pattern;if(null!==pattern&&!pattern.hasDynamicRewrite)return{part,pattern}}return null}if(null!==urlPart){let staticChild=part.staticChildren.get(urlPart);if(void 0!==staticChild){if(null===staticChild.pattern&&null===staticChild.dynamicChild&&null===staticChild.staticChildren)return null;let match=matchKnownRoutePart(staticChild,pathnameParts,partIndex+1,resolvedParams);return null!==match?match:null}}if(null!==part.dynamicChild){let dynamicPart=part.dynamicChild,paramName=part.dynamicChildParamName,paramType=part.dynamicChildParamType,dynamicPattern=dynamicPart.pattern;switch(paramType){case"c":if(null!==dynamicPattern&&!dynamicPattern.hasDynamicRewrite&&null!==urlPart)return resolvedParams.set(paramName,pathnameParts.slice(partIndex)),{part:dynamicPart,pattern:dynamicPattern};break;case"oc":if(null!==dynamicPattern&&!dynamicPattern.hasDynamicRewrite){if(null!==urlPart)return resolvedParams.set(paramName,pathnameParts.slice(partIndex)),{part:dynamicPart,pattern:dynamicPattern};if(null===part.pattern||part.pattern.hasDynamicRewrite)return resolvedParams.set(paramName,[]),{part:dynamicPart,pattern:dynamicPattern}}break;case"d":if(null!==urlPart)return resolvedParams.set(paramName,urlPart),matchKnownRoutePart(dynamicPart,pathnameParts,partIndex+1,resolvedParams);break;case"ci(..)(..)":case"ci(.)":case"ci(..)":case"ci(...)":case"di(..)(..)":case"di(.)":case"di(..)":case"di(...)":return null}}if(null===urlPart){let pattern=part.pattern;if(null!==pattern&&!pattern.hasDynamicRewrite)return{part,pattern}}return null}function reifyRouteTree(pattern,resolvedParams,search,parentPartialVaryPath,acc){let partialVaryPath,originalSegment=pattern.segment,newSegment=originalSegment;if("string"!=typeof originalSegment){let paramName=originalSegment[0],paramType=originalSegment[2],staticSiblings=originalSegment[3],newValue=resolvedParams.get(paramName);if(void 0!==newValue){let newCacheKey=Array.isArray(newValue)?newValue.join("/"):newValue;newSegment=[paramName,newCacheKey,paramType,staticSiblings],partialVaryPath=(0,_varypath.appendLayoutVaryPath)(parentPartialVaryPath,newCacheKey,paramName)}else partialVaryPath=parentPartialVaryPath}else partialVaryPath=parentPartialVaryPath;let newSlots=null;if(null!==pattern.slots)for(let key in newSlots={},pattern.slots)newSlots[key]=reifyRouteTree(pattern.slots[key],resolvedParams,search,partialVaryPath,acc);if(pattern.isPage){let newVaryPath=(0,_varypath.finalizePageVaryPath)(pattern.requestKey,search,partialVaryPath);return null===acc.metadataVaryPath&&(acc.metadataVaryPath=(0,_varypath.finalizeMetadataVaryPath)(pattern.requestKey,search,partialVaryPath)),{requestKey:pattern.requestKey,segment:newSegment,refreshState:pattern.refreshState,slots:newSlots,prefetchHints:pattern.prefetchHints,isPage:!0,varyPath:newVaryPath}}{let newVaryPath=(0,_varypath.finalizeLayoutVaryPath)(pattern.requestKey,partialVaryPath);return{requestKey:pattern.requestKey,segment:newSegment,refreshState:pattern.refreshState,slots:newSlots,prefetchHints:pattern.prefetchHints,isPage:!1,varyPath:newVaryPath}}}function resetKnownRoutes(){knownRouteTreeRoot=createEmptyPart()}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},69776,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{EntryStatus:function(){return EntryStatus1},attemptToFulfillDynamicSegmentFromBFCache:function(){return attemptToFulfillDynamicSegmentFromBFCache},attemptToUpgradeSegmentFromBFCache:function(){return attemptToUpgradeSegmentFromBFCache},canNewFetchStrategyProvideMoreContent:function(){return canNewFetchStrategyProvideMoreContent},convertReusedFlightRouterStateToRouteTree:function(){return convertReusedFlightRouterStateToRouteTree},convertRootFlightRouterStateToRouteTree:function(){return convertRootFlightRouterStateToRouteTree},convertRouteTreeToFlightRouterState:function(){return convertRouteTreeToFlightRouterState},createDetachedSegmentCacheEntry:function(){return createDetachedSegmentCacheEntry},createMetadataRouteTree:function(){return createMetadataRouteTree},deprecated_requestOptimisticRouteCacheEntry:function(){return deprecated_requestOptimisticRouteCacheEntry},fetchInlinedSegmentsOnCacheMiss:function(){return fetchInlinedSegmentsOnCacheMiss},fetchRouteOnCacheMiss:function(){return fetchRouteOnCacheMiss},fetchSegmentOnCacheMiss:function(){return fetchSegmentOnCacheMiss},fetchSegmentPrefetchesUsingDynamicRequest:function(){return fetchSegmentPrefetchesUsingDynamicRequest},fulfillRouteCacheEntry:function(){return fulfillRouteCacheEntry},getCurrentRouteCacheVersion:function(){return getCurrentRouteCacheVersion},getCurrentSegmentCacheVersion:function(){return getCurrentSegmentCacheVersion},getStaleAt:function(){return getStaleAt},getStaleTimeMs:function(){return getStaleTimeMs},invalidateEntirePrefetchCache:function(){return invalidateEntirePrefetchCache},invalidateRouteCacheEntries:function(){return invalidateRouteCacheEntries},invalidateSegmentCacheEntries:function(){return invalidateSegmentCacheEntries},markRouteEntryAsDynamicRewrite:function(){return markRouteEntryAsDynamicRewrite},overwriteRevalidatingSegmentCacheEntry:function(){return overwriteRevalidatingSegmentCacheEntry},pingInvalidationListeners:function(){return pingInvalidationListeners},processRuntimePrefetchStream:function(){return processRuntimePrefetchStream},readOrCreateRevalidatingSegmentEntry:function(){return readOrCreateRevalidatingSegmentEntry},readOrCreateRouteCacheEntry:function(){return readOrCreateRouteCacheEntry},readOrCreateSegmentCacheEntry:function(){return readOrCreateSegmentCacheEntry},readRouteCacheEntry:function(){return readRouteCacheEntry},readSegmentCacheEntry:function(){return readSegmentCacheEntry},stripIsPartialByte:function(){return stripIsPartialByte},upgradeToPendingSegment:function(){return upgradeToPendingSegment},upsertSegmentEntry:function(){return upsertSegmentEntry},waitForSegmentCacheEntry:function(){return waitForSegmentCacheEntry},writeDynamicRenderResponseIntoCache:function(){return writeDynamicRenderResponseIntoCache},writeRouteIntoCache:function(){return writeRouteIntoCache},writeStaticStageResponseIntoCache:function(){return writeStaticStageResponseIntoCache}});let _varyparamsdecoding=__turbopack_context__.r(76735),_approuterheaders=__turbopack_context__.r(46724),_fetchserverresponse=__turbopack_context__.r(43039),_scheduler=__turbopack_context__.r(6600),_varypath=__turbopack_context__.r(10815),_createhreffromurl=__turbopack_context__.r(8204),_cachekey=__turbopack_context__.r(48111),_routeparams=__turbopack_context__.r(46997),_cachemap=__turbopack_context__.r(63351),_segmentvalueencoding=__turbopack_context__.r(63272),_flightdatahelpers=__turbopack_context__.r(85018),_navigatereducer=__turbopack_context__.r(24503),_links=__turbopack_context__.r(51193),_segment=__turbopack_context__.r(14522),_types=__turbopack_context__.r(19012),_promisewithresolvers=__turbopack_context__.r(26576),_bfcache=__turbopack_context__.r(97705),_optimisticroutes=__turbopack_context__.r(50616),_navigation=__turbopack_context__.r(94206),_navigationbuildid=__turbopack_context__.r(50567),_constants=__turbopack_context__.r(80082);function getStaleTimeMs(staleTimeSeconds){return 1e3*Math.max(staleTimeSeconds,30)}var EntryStatus,EntryStatus1=((EntryStatus={})[EntryStatus.Empty=0]="Empty",EntryStatus[EntryStatus.Pending=1]="Pending",EntryStatus[EntryStatus.Fulfilled=2]="Fulfilled",EntryStatus[EntryStatus.Rejected=3]="Rejected",EntryStatus);let MetadataOnlyRequestTree=["",{},null,"metadata-only"],routeCacheMap=(0,_cachemap.createCacheMap)(),segmentCacheMap=(0,_cachemap.createCacheMap)(),invalidationListeners=null,currentRouteCacheVersion=0,currentSegmentCacheVersion=0;function getCurrentRouteCacheVersion(){return currentRouteCacheVersion}function getCurrentSegmentCacheVersion(){return currentSegmentCacheVersion}function invalidateEntirePrefetchCache(nextUrl,tree){currentRouteCacheVersion++,currentSegmentCacheVersion++,(0,_links.pingVisibleLinks)(nextUrl,tree),pingInvalidationListeners(nextUrl,tree)}function invalidateRouteCacheEntries(nextUrl,tree){currentRouteCacheVersion++,(0,_links.pingVisibleLinks)(nextUrl,tree),pingInvalidationListeners(nextUrl,tree)}function invalidateSegmentCacheEntries(nextUrl,tree){currentSegmentCacheVersion++,(0,_links.pingVisibleLinks)(nextUrl,tree),pingInvalidationListeners(nextUrl,tree)}function attachInvalidationListener(task){null!==task.onInvalidate&&(null===invalidationListeners?invalidationListeners=new Set([task]):invalidationListeners.add(task))}function notifyInvalidationListener(task){let onInvalidate=task.onInvalidate;if(null!==onInvalidate){task.onInvalidate=null;try{onInvalidate()}catch(error){"function"==typeof reportError?reportError(error):console.error(error)}}}function pingInvalidationListeners(nextUrl,tree){if(null!==invalidationListeners){let tasks=invalidationListeners;for(let task of(invalidationListeners=null,tasks))(0,_scheduler.isPrefetchTaskDirty)(task,nextUrl,tree)&¬ifyInvalidationListener(task)}}function readRouteCacheEntry(now,key){let varyPath=(0,_varypath.getRouteVaryPath)(key.pathname,key.search,key.nextUrl),existingEntry=(0,_cachemap.getFromCacheMap)(now,currentRouteCacheVersion,routeCacheMap,varyPath,!1);return null!==existingEntry?existingEntry:null}function readSegmentCacheEntry(now,varyPath){return(0,_cachemap.getFromCacheMap)(now,currentSegmentCacheVersion,segmentCacheMap,varyPath,!1)}function readRevalidatingSegmentCacheEntry(now,varyPath){return(0,_cachemap.getFromCacheMap)(now,currentSegmentCacheVersion,segmentCacheMap,varyPath,!0)}function waitForSegmentCacheEntry(pendingEntry){let promiseWithResolvers=pendingEntry.promise;return null===promiseWithResolvers&&(promiseWithResolvers=pendingEntry.promise=(0,_promisewithresolvers.createPromiseWithResolvers)()),promiseWithResolvers.promise}function createDetachedRouteCacheEntry(){return{canonicalUrl:null,status:0,blockedTasks:null,tree:null,metadata:null,couldBeIntercepted:!0,supportsPerSegmentPrefetching:!1,renderedSearch:null,ref:null,size:0,staleAt:1/0,version:currentRouteCacheVersion}}function readOrCreateRouteCacheEntry(now,task,key){attachInvalidationListener(task);let existingEntry=readRouteCacheEntry(now,key);if(null!==existingEntry)return existingEntry;let pendingEntry=createDetachedRouteCacheEntry(),varyPath=(0,_varypath.getRouteVaryPath)(key.pathname,key.search,key.nextUrl);return(0,_cachemap.setInCacheMap)(routeCacheMap,varyPath,pendingEntry,!1),pendingEntry}function deprecated_requestOptimisticRouteCacheEntry(now,requestedUrl,nextUrl){let requestedSearch=requestedUrl.search;if(""===requestedSearch)return null;let urlWithoutSearchParams=new URL(requestedUrl);urlWithoutSearchParams.search="";let routeWithNoSearchParams=readRouteCacheEntry(now,(0,_cachekey.createCacheKey)(urlWithoutSearchParams.href,nextUrl));if(null===routeWithNoSearchParams||2!==routeWithNoSearchParams.status)return null;let canonicalUrlForRouteWithNoSearchParams=new URL(routeWithNoSearchParams.canonicalUrl,requestedUrl.origin),optimisticCanonicalSearch=""!==canonicalUrlForRouteWithNoSearchParams.search?canonicalUrlForRouteWithNoSearchParams.search:requestedSearch,optimisticRenderedSearch=""!==routeWithNoSearchParams.renderedSearch?routeWithNoSearchParams.renderedSearch:requestedSearch,optimisticUrl=new URL(routeWithNoSearchParams.canonicalUrl,location.origin);return optimisticUrl.search=optimisticCanonicalSearch,{canonicalUrl:(0,_createhreffromurl.createHrefFromUrl)(optimisticUrl),status:2,blockedTasks:null,tree:deprecated_createOptimisticRouteTree(routeWithNoSearchParams.tree,optimisticRenderedSearch),metadata:deprecated_createOptimisticRouteTree(routeWithNoSearchParams.metadata,optimisticRenderedSearch),couldBeIntercepted:routeWithNoSearchParams.couldBeIntercepted,supportsPerSegmentPrefetching:routeWithNoSearchParams.supportsPerSegmentPrefetching,hasDynamicRewrite:routeWithNoSearchParams.hasDynamicRewrite,renderedSearch:optimisticRenderedSearch,ref:null,size:0,staleAt:routeWithNoSearchParams.staleAt,version:routeWithNoSearchParams.version}}function deprecated_createOptimisticRouteTree(tree,newRenderedSearch){let clonedSlots=null,originalSlots=tree.slots;if(null!==originalSlots)for(let parallelRouteKey in clonedSlots={},originalSlots){let childTree=originalSlots[parallelRouteKey];clonedSlots[parallelRouteKey]=deprecated_createOptimisticRouteTree(childTree,newRenderedSearch)}return tree.isPage?{requestKey:tree.requestKey,segment:tree.segment,refreshState:tree.refreshState,varyPath:(0,_varypath.clonePageVaryPathWithNewSearchParams)(tree.varyPath,newRenderedSearch),isPage:!0,slots:clonedSlots,prefetchHints:tree.prefetchHints}:{requestKey:tree.requestKey,segment:tree.segment,refreshState:tree.refreshState,varyPath:tree.varyPath,isPage:!1,slots:clonedSlots,prefetchHints:tree.prefetchHints}}function readOrCreateSegmentCacheEntry(now,fetchStrategy,tree){let existingEntry=readSegmentCacheEntry(now,tree.varyPath);if(null!==existingEntry)return existingEntry;let varyPathForRequest=(0,_varypath.getSegmentVaryPathForRequest)(fetchStrategy,tree),pendingEntry=createDetachedSegmentCacheEntry(now);return(0,_cachemap.setInCacheMap)(segmentCacheMap,varyPathForRequest,pendingEntry,!1),pendingEntry}function readOrCreateRevalidatingSegmentEntry(now,fetchStrategy,tree){let existingEntry=readRevalidatingSegmentCacheEntry(now,tree.varyPath);if(null!==existingEntry)return existingEntry;let varyPathForRequest=(0,_varypath.getSegmentVaryPathForRequest)(fetchStrategy,tree),pendingEntry=createDetachedSegmentCacheEntry(now);return(0,_cachemap.setInCacheMap)(segmentCacheMap,varyPathForRequest,pendingEntry,!0),pendingEntry}function overwriteRevalidatingSegmentCacheEntry(now,fetchStrategy,tree){let varyPathForRequest=(0,_varypath.getSegmentVaryPathForRequest)(fetchStrategy,tree),pendingEntry=createDetachedSegmentCacheEntry(now);return(0,_cachemap.setInCacheMap)(segmentCacheMap,varyPathForRequest,pendingEntry,!0),pendingEntry}function upsertSegmentEntry(now,varyPath,candidateEntry){if((0,_cachemap.isValueExpired)(now,currentSegmentCacheVersion,candidateEntry))return null;let existingEntry=readSegmentCacheEntry(now,varyPath);if(null!==existingEntry){var currentStrategy;if(candidateEntry.fetchStrategy!==existingEntry.fetchStrategy&&(currentStrategy=existingEntry.fetchStrategy,!(currentStrategy<candidateEntry.fetchStrategy))||!existingEntry.isPartial&&candidateEntry.isPartial)return candidateEntry.status=3,candidateEntry.rsc=null,null;(0,_cachemap.deleteFromCacheMap)(existingEntry)}return(0,_cachemap.setInCacheMap)(segmentCacheMap,varyPath,candidateEntry,!1),candidateEntry}function createDetachedSegmentCacheEntry(now){return{status:0,fetchStrategy:_types.FetchStrategy.PPR,rsc:null,isPartial:!0,promise:null,ref:null,size:0,staleAt:now+3e4,version:0}}function upgradeToPendingSegment(emptyEntry,fetchStrategy){return emptyEntry.status=1,emptyEntry.fetchStrategy=fetchStrategy,fetchStrategy===_types.FetchStrategy.Full&&(emptyEntry.isPartial=!1),emptyEntry.version=currentSegmentCacheVersion,emptyEntry}function attemptToFulfillDynamicSegmentFromBFCache(now,segment,tree){let varyPath=tree.varyPath,bfcacheEntry=(0,_bfcache.readFromBFCache)(varyPath);if(null!==bfcacheEntry){let dynamicPrefetchStaleAt=bfcacheEntry.navigatedAt+_navigatereducer.STATIC_STALETIME_MS;return now>dynamicPrefetchStaleAt?null:fulfillSegmentCacheEntry(upgradeToPendingSegment(segment,_types.FetchStrategy.Full),bfcacheEntry.rsc,dynamicPrefetchStaleAt,!1)}return null}function attemptToUpgradeSegmentFromBFCache(now,tree){let varyPath=tree.varyPath,bfcacheEntry=(0,_bfcache.readFromBFCache)(varyPath);if(null!==bfcacheEntry){let dynamicPrefetchStaleAt=bfcacheEntry.navigatedAt+_navigatereducer.STATIC_STALETIME_MS;if(now>dynamicPrefetchStaleAt)return null;let newEntry=fulfillSegmentCacheEntry(upgradeToPendingSegment(createDetachedSegmentCacheEntry(now),_types.FetchStrategy.Full),bfcacheEntry.rsc,dynamicPrefetchStaleAt,!1),upserted=upsertSegmentEntry(now,(0,_varypath.getSegmentVaryPathForRequest)(_types.FetchStrategy.Full,tree),newEntry);if(null!==upserted&&2===upserted.status)return upserted}return null}function pingBlockedTasks(entry){let blockedTasks=entry.blockedTasks;if(null!==blockedTasks){for(let task of blockedTasks)(0,_scheduler.pingPrefetchTask)(task);entry.blockedTasks=null}}function createMetadataRouteTree(metadataVaryPath){return{requestKey:_segmentvalueencoding.HEAD_REQUEST_KEY,segment:_segmentvalueencoding.HEAD_REQUEST_KEY,refreshState:null,varyPath:metadataVaryPath,isPage:!0,slots:null,prefetchHints:0}}function fulfillRouteCacheEntry(now,entry,tree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching){let renderedSearch=(0,_varypath.getRenderedSearchFromVaryPath)(metadataVaryPath)??"";return entry.status=2,entry.tree=tree,entry.metadata=createMetadataRouteTree(metadataVaryPath),entry.staleAt=now+_navigatereducer.STATIC_STALETIME_MS,entry.couldBeIntercepted=couldBeIntercepted,entry.canonicalUrl=canonicalUrl,entry.renderedSearch=renderedSearch,entry.supportsPerSegmentPrefetching=supportsPerSegmentPrefetching,entry.hasDynamicRewrite=!1,pingBlockedTasks(entry),entry}function writeRouteIntoCache(now,pathname,nextUrl,tree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching){let fulfilledEntry=fulfillRouteCacheEntry(now,createDetachedRouteCacheEntry(),tree,metadataVaryPath,couldBeIntercepted,canonicalUrl,supportsPerSegmentPrefetching),renderedSearch=fulfilledEntry.renderedSearch,varyPath=(0,_varypath.getFulfilledRouteVaryPath)(pathname,renderedSearch,nextUrl,couldBeIntercepted);return(0,_cachemap.setInCacheMap)(routeCacheMap,varyPath,fulfilledEntry,!1),fulfilledEntry}function markRouteEntryAsDynamicRewrite(entry){entry.hasDynamicRewrite=!0}function fulfillSegmentCacheEntry(segmentCacheEntry,rsc,staleAt,isPartial){return segmentCacheEntry.status=2,segmentCacheEntry.rsc=rsc,segmentCacheEntry.staleAt=staleAt,segmentCacheEntry.isPartial=isPartial,null!==segmentCacheEntry.promise&&(segmentCacheEntry.promise.resolve(segmentCacheEntry),segmentCacheEntry.promise=null),segmentCacheEntry}function rejectRouteCacheEntry(entry,staleAt){entry.status=3,entry.staleAt=staleAt,pingBlockedTasks(entry)}function rejectSegmentCacheEntry(entry,staleAt){entry.status=3,entry.staleAt=staleAt,null!==entry.promise&&(entry.promise.resolve(null),entry.promise=null)}function convertRootTreePrefetchToRouteTree(rootTree,renderedPathname,renderedSearch,acc){let pathnameParts=renderedPathname.split("/").filter(p=>""!==p),rootSegment=_segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY;return convertTreePrefetchToRouteTree(rootTree.tree,rootSegment,null,_segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY,pathnameParts,0,renderedSearch,acc)}function convertTreePrefetchToRouteTree(prefetch,segment,partialVaryPath,requestKey,pathnameParts,pathnamePartsIndex,renderedSearch,acc){let isPage,varyPath,slots=null,prefetchSlots=prefetch.slots;if(null!==prefetchSlots)for(let parallelRouteKey in isPage=!1,varyPath=(0,_varypath.finalizeLayoutVaryPath)(requestKey,partialVaryPath),slots={},prefetchSlots){let childDoesAppearInURL,childSegment,childPartialVaryPath,childPrefetch=prefetchSlots[parallelRouteKey],childSegmentName=childPrefetch.name,childParam=childPrefetch.param;if(null!==childParam){let childParamValue=(0,_routeparams.parseDynamicParamFromURLPart)(childParam.type,pathnameParts,pathnamePartsIndex),childParamKey=null!==childParam.key?childParam.key:(0,_routeparams.getCacheKeyForDynamicParam)(childParamValue,"");childPartialVaryPath=(0,_varypath.appendLayoutVaryPath)(partialVaryPath,childParamKey,childSegmentName),childSegment=[childSegmentName,childParamKey,childParam.type,childParam.siblings],childDoesAppearInURL=!0}else childPartialVaryPath=partialVaryPath,childSegment=childSegmentName,childDoesAppearInURL=(0,_routeparams.doesStaticSegmentAppearInURL)(childSegmentName);let childPathnamePartsIndex=childDoesAppearInURL?pathnamePartsIndex+1:pathnamePartsIndex,childRequestKeyPart=(0,_segmentvalueencoding.createSegmentRequestKeyPart)(childSegment),childRequestKey=(0,_segmentvalueencoding.appendSegmentRequestKeyPart)(requestKey,parallelRouteKey,childRequestKeyPart);slots[parallelRouteKey]=convertTreePrefetchToRouteTree(childPrefetch,childSegment,childPartialVaryPath,childRequestKey,pathnameParts,childPathnamePartsIndex,renderedSearch,acc)}else requestKey.endsWith(_segment.PAGE_SEGMENT_KEY)?(isPage=!0,varyPath=(0,_varypath.finalizePageVaryPath)(requestKey,renderedSearch,partialVaryPath),null===acc.metadataVaryPath&&(acc.metadataVaryPath=(0,_varypath.finalizeMetadataVaryPath)(requestKey,renderedSearch,partialVaryPath))):(isPage=!1,varyPath=(0,_varypath.finalizeLayoutVaryPath)(requestKey,partialVaryPath));return{requestKey,segment,refreshState:null,varyPath:varyPath,isPage:isPage,slots,prefetchHints:prefetch.prefetchHints}}function convertRootFlightRouterStateToRouteTree(flightRouterState,renderedSearch,acc){return convertFlightRouterStateToRouteTree(flightRouterState,_segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY,null,renderedSearch,acc)}function convertReusedFlightRouterStateToRouteTree(parentRouteTree,parallelRouteKey,flightRouterState,renderedSearch,acc){let parentPartialVaryPath=parentRouteTree.isPage?(0,_varypath.getPartialPageVaryPath)(parentRouteTree.varyPath):(0,_varypath.getPartialLayoutVaryPath)(parentRouteTree.varyPath),segment=flightRouterState[0],parentRequestKey=parentRouteTree.requestKey,requestKeyPart=(0,_segmentvalueencoding.createSegmentRequestKeyPart)(segment);return convertFlightRouterStateToRouteTree(flightRouterState,(0,_segmentvalueencoding.appendSegmentRequestKeyPart)(parentRequestKey,parallelRouteKey,requestKeyPart),parentPartialVaryPath,renderedSearch,acc)}function convertFlightRouterStateToRouteTree(flightRouterState,requestKey,parentPartialVaryPath,parentRenderedSearch,acc){let segment,partialVaryPath,isPage,varyPath,originalSegment=flightRouterState[0],compressedRefreshState=flightRouterState[2]??null,refreshState=null!==compressedRefreshState?{canonicalUrl:compressedRefreshState[0],renderedSearch:compressedRefreshState[1]}:null,renderedSearch=null!==refreshState?refreshState.renderedSearch:parentRenderedSearch;if(Array.isArray(originalSegment)){isPage=!1;let paramCacheKey=originalSegment[1],paramName=originalSegment[0];partialVaryPath=(0,_varypath.appendLayoutVaryPath)(parentPartialVaryPath,paramCacheKey,paramName),varyPath=(0,_varypath.finalizeLayoutVaryPath)(requestKey,partialVaryPath),segment=originalSegment}else partialVaryPath=parentPartialVaryPath,requestKey.endsWith(_segment.PAGE_SEGMENT_KEY)?(isPage=!0,segment=_segment.PAGE_SEGMENT_KEY,varyPath=(0,_varypath.finalizePageVaryPath)(requestKey,renderedSearch,partialVaryPath),null===acc.metadataVaryPath&&(acc.metadataVaryPath=(0,_varypath.finalizeMetadataVaryPath)(requestKey,renderedSearch,partialVaryPath))):(isPage=!1,segment=originalSegment,varyPath=(0,_varypath.finalizeLayoutVaryPath)(requestKey,partialVaryPath));let slots=null,parallelRoutes=flightRouterState[1];for(let parallelRouteKey in parallelRoutes){let childRouterState=parallelRoutes[parallelRouteKey],childSegment=childRouterState[0],childRequestKeyPart=(0,_segmentvalueencoding.createSegmentRequestKeyPart)(childSegment),childTree=convertFlightRouterStateToRouteTree(childRouterState,(0,_segmentvalueencoding.appendSegmentRequestKeyPart)(requestKey,parallelRouteKey,childRequestKeyPart),partialVaryPath,renderedSearch,acc);null===slots?slots={[parallelRouteKey]:childTree}:slots[parallelRouteKey]=childTree}return{requestKey,segment,refreshState,varyPath:varyPath,isPage:isPage,slots,prefetchHints:flightRouterState[4]??0}}function convertRouteTreeToFlightRouterState(routeTree){let parallelRoutes={};if(null!==routeTree.slots)for(let parallelRouteKey in routeTree.slots)parallelRoutes[parallelRouteKey]=convertRouteTreeToFlightRouterState(routeTree.slots[parallelRouteKey]);return[routeTree.segment,parallelRoutes,null,null]}async function fetchRouteOnCacheMiss(entry,key){let pathname=key.pathname,search=key.search,nextUrl=key.nextUrl,segmentPath="/_tree",headers={[_approuterheaders.RSC_HEADER]:"1",[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER]:"1",[_approuterheaders.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:segmentPath};null!==nextUrl&&(headers[_approuterheaders.NEXT_URL]=nextUrl),addInstantPrefetchHeaderIfLocked(headers);try{let response,urlAfterRedirects,url=new URL(pathname+search,location.origin);{let headResponse=await fetch(url,{method:"HEAD"});if(headResponse.status<200||headResponse.status>=400)return rejectRouteCacheEntry(entry,Date.now()+1e4),null;urlAfterRedirects=headResponse.redirected?new URL(headResponse.url):url,response=await fetchPrefetchResponse(addSegmentPathToUrlInOutputExportMode(urlAfterRedirects,segmentPath),headers)}if(!response||!response.ok||204===response.status||!response.body)return rejectRouteCacheEntry(entry,Date.now()+1e4),null;let canonicalUrl=(0,_createhreffromurl.createHrefFromUrl)(urlAfterRedirects),varyHeader=response.headers.get("vary"),couldBeIntercepted=null!==varyHeader&&varyHeader.includes(_approuterheaders.NEXT_URL),closed=(0,_promisewithresolvers.createPromiseWithResolvers)(),routeIsPPREnabled="2"===response.headers.get(_approuterheaders.NEXT_DID_POSTPONE_HEADER)||!0;{let{stream:prefetchStream,size:responseSize}=await createNonTaskyPrefetchResponseStream(response.body);closed.resolve(),(0,_cachemap.setSizeInCacheMap)(entry,responseSize);let serverData=await (0,_fetchserverresponse.createFromNextReadableStream)(prefetchStream,headers,{allowPartialStream:!0});if((response.headers.get(_constants.NEXT_NAV_DEPLOYMENT_ID_HEADER)??serverData.buildId)!==(0,_navigationbuildid.getNavigationBuildId)())return rejectRouteCacheEntry(entry,Date.now()+1e4),null;let renderedPathname=(0,_routeparams.getRenderedPathname)(response),renderedSearch=(0,_routeparams.getRenderedSearch)(response),acc={metadataVaryPath:null},routeTree=convertRootTreePrefetchToRouteTree(serverData,renderedPathname,renderedSearch,acc),metadataVaryPath=acc.metadataVaryPath;if(null===metadataVaryPath)return rejectRouteCacheEntry(entry,Date.now()+1e4),null;(0,_optimisticroutes.discoverKnownRoute)(Date.now(),pathname,nextUrl,entry,routeTree,metadataVaryPath,couldBeIntercepted,canonicalUrl,routeIsPPREnabled,!1)}if(!couldBeIntercepted){let fulfilledVaryPath=(0,_varypath.getFulfilledRouteVaryPath)(pathname,search,nextUrl,couldBeIntercepted);(0,_cachemap.setInCacheMap)(routeCacheMap,fulfilledVaryPath,entry,!1)}return{value:null,closed:closed.promise}}catch(error){return rejectRouteCacheEntry(entry,Date.now()+1e4),null}}async function fetchSegmentOnCacheMiss(route,segmentCacheEntry,routeKey,tree){let url=new URL(route.canonicalUrl,location.origin),nextUrl=routeKey.nextUrl,requestKey=tree.requestKey,normalizedRequestKey=requestKey===_segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY?"/_index":requestKey,headers={[_approuterheaders.RSC_HEADER]:"1",[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER]:"1",[_approuterheaders.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:normalizedRequestKey};null!==nextUrl&&(headers[_approuterheaders.NEXT_URL]=nextUrl),addInstantPrefetchHeaderIfLocked(headers);let requestUrl=addSegmentPathToUrlInOutputExportMode(url,normalizedRequestKey);try{let response=await fetchPrefetchResponse(requestUrl,headers);if(!response||!response.ok||204===response.status||"2"!==response.headers.get(_approuterheaders.NEXT_DID_POSTPONE_HEADER)&&0||!response.body)return rejectSegmentCacheEntry(segmentCacheEntry,Date.now()+1e4),null;let closed=(0,_promisewithresolvers.createPromiseWithResolvers)(),{stream:prefetchStream,size:responseSize}=await createNonTaskyPrefetchResponseStream(response.body);closed.resolve(),(0,_cachemap.setSizeInCacheMap)(segmentCacheEntry,responseSize);let serverData=await (0,_fetchserverresponse.createFromNextReadableStream)(prefetchStream,headers,{allowPartialStream:!0});if((response.headers.get(_constants.NEXT_NAV_DEPLOYMENT_ID_HEADER)??serverData.buildId)!==(0,_navigationbuildid.getNavigationBuildId)())return rejectSegmentCacheEntry(segmentCacheEntry,Date.now()+1e4),null;let now=Date.now(),staleAt=now+getStaleTimeMs(serverData.staleTime),fulfilledEntry=fulfillSegmentCacheEntry(segmentCacheEntry,serverData.rsc,staleAt,serverData.isPartial);serverData.varyParams;let fulfilledVaryPath=(0,_varypath.getSegmentVaryPathForRequest)(segmentCacheEntry.fetchStrategy,tree);return upsertSegmentEntry(now,fulfilledVaryPath,fulfilledEntry),{value:fulfilledEntry,closed:closed.promise}}catch(error){return rejectSegmentCacheEntry(segmentCacheEntry,Date.now()+1e4),null}}async function fetchInlinedSegmentsOnCacheMiss(route,routeKey,tree,spawnedEntries){let url=new URL(route.canonicalUrl,location.origin),nextUrl=routeKey.nextUrl,headers={[_approuterheaders.RSC_HEADER]:"1",[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER]:"1",[_approuterheaders.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:"/"+_segment.PAGE_SEGMENT_KEY};null!==nextUrl&&(headers[_approuterheaders.NEXT_URL]=nextUrl),addInstantPrefetchHeaderIfLocked(headers);try{let response=await fetchPrefetchResponse(url,headers);if(!response||!response.ok||204===response.status||"2"!==response.headers.get(_approuterheaders.NEXT_DID_POSTPONE_HEADER)&&0||!response.body)return rejectSegmentEntriesIfStillPending(spawnedEntries,Date.now()+1e4),null;let closed=(0,_promisewithresolvers.createPromiseWithResolvers)(),{stream:prefetchStream}=await createNonTaskyPrefetchResponseStream(response.body);closed.resolve();let serverData=await (0,_fetchserverresponse.createFromNextReadableStream)(prefetchStream,headers,{allowPartialStream:!0});if((response.headers.get(_constants.NEXT_NAV_DEPLOYMENT_ID_HEADER)??serverData.tree.segment.buildId)!==(0,_navigationbuildid.getNavigationBuildId)())return rejectSegmentEntriesIfStillPending(spawnedEntries,Date.now()+1e4),null;let now=Date.now();fillInlinedSegmentEntries(now,route,tree,serverData.tree,spawnedEntries);let headStaleAt=now+getStaleTimeMs(serverData.head.staleTime),headKey=route.metadata.requestKey,ownedHeadEntry=spawnedEntries.get(headKey);if(void 0!==ownedHeadEntry)fulfillSegmentCacheEntry(ownedHeadEntry,serverData.head.rsc,headStaleAt,serverData.head.isPartial);else{let existingEntry=readOrCreateSegmentCacheEntry(now,_types.FetchStrategy.PPR,route.metadata);0===existingEntry.status&&fulfillSegmentCacheEntry(upgradeToPendingSegment(existingEntry,_types.FetchStrategy.PPR),serverData.head.rsc,headStaleAt,serverData.head.isPartial)}return rejectSegmentEntriesIfStillPending(spawnedEntries,Date.now()+1e4),{value:null,closed:closed.promise}}catch(error){return rejectSegmentEntriesIfStillPending(spawnedEntries,Date.now()+1e4),null}}function fillInlinedSegmentEntries(now,route,tree,inlinedNode,spawnedEntries){let segment=inlinedNode.segment,staleAt=now+getStaleTimeMs(segment.staleTime),ownedEntry=spawnedEntries.get(tree.requestKey);if(void 0!==ownedEntry)fulfillSegmentCacheEntry(ownedEntry,segment.rsc,staleAt,segment.isPartial);else{let existingEntry=readOrCreateSegmentCacheEntry(now,_types.FetchStrategy.PPR,tree);0===existingEntry.status&&fulfillSegmentCacheEntry(upgradeToPendingSegment(existingEntry,_types.FetchStrategy.PPR),segment.rsc,staleAt,segment.isPartial)}if(null!==tree.slots&&null!==inlinedNode.slots)for(let parallelRouteKey in tree.slots){let childTree=tree.slots[parallelRouteKey],childInlinedNode=inlinedNode.slots[parallelRouteKey];void 0!==childInlinedNode&&fillInlinedSegmentEntries(now,route,childTree,childInlinedNode,spawnedEntries)}}async function fetchSegmentPrefetchesUsingDynamicRequest(task,route,fetchStrategy,dynamicRequestTree,spawnedEntries){let key=task.key,url=new URL(route.canonicalUrl,location.origin),nextUrl=key.nextUrl;1===spawnedEntries.size&&spawnedEntries.has(route.metadata.requestKey)&&(dynamicRequestTree=MetadataOnlyRequestTree);let headers={[_approuterheaders.RSC_HEADER]:"1",[_approuterheaders.NEXT_ROUTER_STATE_TREE_HEADER]:(0,_flightdatahelpers.prepareFlightRouterStateForRequest)(dynamicRequestTree)};switch(null!==nextUrl&&(headers[_approuterheaders.NEXT_URL]=nextUrl),fetchStrategy){case _types.FetchStrategy.Full:break;case _types.FetchStrategy.PPRRuntime:headers[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER]="2";break;case _types.FetchStrategy.LoadingBoundary:headers[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER]="1"}try{let prefetchStream,response=await fetchPrefetchResponse(url,headers);if(!response||!response.ok||!response.body)return rejectSegmentEntriesIfStillPending(spawnedEntries,Date.now()+1e4),null;let renderedSearch=(0,_routeparams.getRenderedSearch)(response);if(renderedSearch!==route.renderedSearch)return rejectSegmentEntriesIfStillPending(spawnedEntries,Date.now()+1e4),null;let closed=(0,_promisewithresolvers.createPromiseWithResolvers)(),fulfilledEntries=null,bufferedResponseSize=null;if(fetchStrategy===_types.FetchStrategy.Full)prefetchStream=createIncrementalPrefetchResponseStream(response.body,closed.resolve,function onResponseSizeUpdate(totalBytesReceivedSoFar){if(null===fulfilledEntries)return;let averageSize=totalBytesReceivedSoFar/fulfilledEntries.length;for(let entry of fulfilledEntries)(0,_cachemap.setSizeInCacheMap)(entry,averageSize)});else{let{stream,size}=await createNonTaskyPrefetchResponseStream(response.body);closed.resolve(),prefetchStream=stream,bufferedResponseSize=size}let[serverData,cacheData]=await Promise.all([(0,_fetchserverresponse.createFromNextReadableStream)(prefetchStream,headers,{allowPartialStream:!0}),response.cacheData]),headVaryParamsThenable=serverData.h,headVaryParams=null!==headVaryParamsThenable?(0,_varyparamsdecoding.readVaryParams)(headVaryParamsThenable):null,now=Date.now(),staleAt=await getStaleAt(now,serverData.s,response),isResponsePartial=fetchStrategy===_types.FetchStrategy.PPRRuntime&&(cacheData?.isResponsePartial??!1),buildId=response.headers.get(_constants.NEXT_NAV_DEPLOYMENT_ID_HEADER)??serverData.b,flightDatas=(0,_flightdatahelpers.normalizeFlightData)(serverData.f);if("string"==typeof flightDatas)return rejectSegmentEntriesIfStillPending(spawnedEntries,Date.now()+1e4),null;let navigationSeed=(0,_navigation.convertServerPatchToFullTree)(now,dynamicRequestTree,flightDatas,renderedSearch,_bfcache.UnknownDynamicStaleTime);if(fulfilledEntries=writeDynamicRenderResponseIntoCache(now,fetchStrategy,flightDatas,buildId,isResponsePartial,headVaryParams,staleAt,navigationSeed,spawnedEntries),null!==bufferedResponseSize&&null!==fulfilledEntries&&fulfilledEntries.length>0){let averageSize=bufferedResponseSize/fulfilledEntries.length;for(let entry of fulfilledEntries)(0,_cachemap.setSizeInCacheMap)(entry,averageSize)}return{value:null,closed:closed.promise}}catch(error){return rejectSegmentEntriesIfStillPending(spawnedEntries,Date.now()+1e4),null}}function rejectSegmentEntriesIfStillPending(entries,staleAt){let fulfilledEntries=[];for(let entry of entries.values())1===entry.status?rejectSegmentCacheEntry(entry,staleAt):2===entry.status&&fulfilledEntries.push(entry);return fulfilledEntries}function writeDynamicRenderResponseIntoCache(now,fetchStrategy,flightDatas,buildId,isResponsePartial,headVaryParams,staleAt,navigationSeed,spawnedEntries){if(buildId&&buildId!==(0,_navigationbuildid.getNavigationBuildId)())return null!==spawnedEntries&&rejectSegmentEntriesIfStillPending(spawnedEntries,now+1e4),null;let routeTree=navigationSeed.routeTree,metadataTree=null!==navigationSeed.metadataVaryPath?createMetadataRouteTree(navigationSeed.metadataVaryPath):null;for(let flightDataEntry of flightDatas){let seedData=flightDataEntry.seedData;if(null!==seedData){let segmentPath=flightDataEntry.segmentPath,tree=routeTree;for(let i=0;i<segmentPath.length;i+=2){let parallelRouteKey=segmentPath[i];if(tree?.slots?.[parallelRouteKey]===void 0)return null!==spawnedEntries&&rejectSegmentEntriesIfStillPending(spawnedEntries,now+1e4),null;tree=tree.slots[parallelRouteKey]}writeSeedDataIntoCache(now,fetchStrategy,tree,staleAt,seedData,isResponsePartial,spawnedEntries)}let head=flightDataEntry.head;null!==head&&null!==metadataTree&&fulfillEntrySpawnedByRuntimePrefetch(now,fetchStrategy,head,flightDataEntry.isHeadPartial,staleAt,headVaryParams,metadataTree,spawnedEntries)}return null!==spawnedEntries?rejectSegmentEntriesIfStillPending(spawnedEntries,now+1e4):null}function writeSeedDataIntoCache(now,fetchStrategy,tree,staleAt,seedData,isResponsePartial,entriesOwnedByCurrentTask){let rsc=seedData[0],varyParamsThenable=seedData[4];fulfillEntrySpawnedByRuntimePrefetch(now,fetchStrategy,rsc,null===rsc||isResponsePartial,staleAt,null!==varyParamsThenable?(0,_varyparamsdecoding.readVaryParams)(varyParamsThenable):null,tree,entriesOwnedByCurrentTask);let slots=tree.slots;if(null!==slots){let seedDataChildren=seedData[1];for(let parallelRouteKey in slots){let childTree=slots[parallelRouteKey],childSeedData=seedDataChildren[parallelRouteKey];null!=childSeedData&&writeSeedDataIntoCache(now,fetchStrategy,childTree,staleAt,childSeedData,isResponsePartial,entriesOwnedByCurrentTask)}}}function fulfillEntrySpawnedByRuntimePrefetch(now,fetchStrategy,rsc,isPartial,staleAt,segmentVaryParams,tree,entriesOwnedByCurrentTask){let ownedEntry=null!==entriesOwnedByCurrentTask?entriesOwnedByCurrentTask.get(tree.requestKey):void 0;if(void 0!==ownedEntry)fulfillSegmentCacheEntry(ownedEntry,rsc,staleAt,isPartial);else{let possiblyNewEntry=readOrCreateSegmentCacheEntry(now,fetchStrategy,tree);if(0===possiblyNewEntry.status)fulfillSegmentCacheEntry(upgradeToPendingSegment(possiblyNewEntry,fetchStrategy),rsc,staleAt,isPartial);else{let newEntry=fulfillSegmentCacheEntry(upgradeToPendingSegment(createDetachedSegmentCacheEntry(now),fetchStrategy),rsc,staleAt,isPartial);upsertSegmentEntry(now,(0,_varypath.getSegmentVaryPathForRequest)(fetchStrategy,tree),newEntry)}}}async function fetchPrefetchResponse(url,headers){let response=await (0,_fetchserverresponse.createFetch)(url,headers,"low",!1);return response.ok?response:null}async function createNonTaskyPrefetchResponseStream(body){let buffer,reader=body.getReader(),chunks=[],size=0;for(;;){let{done,value}=await reader.read();if(done)break;chunks.push(value),size+=value.byteLength}if(1===chunks.length)buffer=chunks[0];else if(chunks.length>1){buffer=new Uint8Array(size);let offset=0;for(let chunk of chunks)buffer.set(chunk,offset),offset+=chunk.byteLength}else buffer=new Uint8Array(0);return{stream:new ReadableStream({start(controller){controller.enqueue(buffer),controller.close()}}),size}}function createIncrementalPrefetchResponseStream(originalFlightStream,onStreamClose,onResponseSizeUpdate){let totalByteLength=0,reader=originalFlightStream.getReader();return new ReadableStream({async pull(controller){for(;;){let{done,value}=await reader.read();if(!done){controller.enqueue(value),onResponseSizeUpdate(totalByteLength+=value.byteLength);continue}controller.close(),onStreamClose();return}}})}function addSegmentPathToUrlInOutputExportMode(url,segmentPath){{let staticUrl=new URL(url),routeDir=staticUrl.pathname.endsWith("/")?staticUrl.pathname.slice(0,-1):staticUrl.pathname,staticExportFilename=(0,_segmentvalueencoding.convertSegmentPathToStaticExportFilename)(segmentPath);return staticUrl.pathname=`${routeDir}/${staticExportFilename}`,staticUrl}}function canNewFetchStrategyProvideMoreContent(currentStrategy,newStrategy){return currentStrategy<newStrategy}function addInstantPrefetchHeaderIfLocked(headers){}function getStaleAtFromHeader(now,response){let staleTimeSeconds=parseInt(response.headers.get(_approuterheaders.NEXT_ROUTER_STALE_TIME_HEADER)??"",10);return now+(isNaN(staleTimeSeconds)?_navigatereducer.STATIC_STALETIME_MS:getStaleTimeMs(staleTimeSeconds))}async function getStaleAt(now,staleTimeIterable,response){if(void 0!==staleTimeIterable){let staleTimeSeconds;for await(let value of staleTimeIterable)staleTimeSeconds=value;if(void 0!==staleTimeSeconds)return now+(isNaN(staleTimeSeconds)?_navigatereducer.STATIC_STALETIME_MS:getStaleTimeMs(staleTimeSeconds))}return void 0!==response?getStaleAtFromHeader(now,response):now+_navigatereducer.STATIC_STALETIME_MS}function writeStaticStageResponseIntoCache(now,flightData,buildId,headVaryParamsThenable,staleAt,baseTree,renderedSearch,isResponsePartial){let fetchStrategy=isResponsePartial?_types.FetchStrategy.PPR:_types.FetchStrategy.Full,headVaryParams=null!==headVaryParamsThenable?(0,_varyparamsdecoding.readVaryParams)(headVaryParamsThenable):null,flightDatas=(0,_flightdatahelpers.normalizeFlightData)(flightData);if("string"==typeof flightDatas)return;let navigationSeed=(0,_navigation.convertServerPatchToFullTree)(now,baseTree,flightDatas,renderedSearch,_bfcache.UnknownDynamicStaleTime);writeDynamicRenderResponseIntoCache(now,fetchStrategy,flightDatas,buildId,isResponsePartial,headVaryParams,staleAt,navigationSeed,null)}async function processRuntimePrefetchStream(now,runtimePrefetchStream,baseTree,renderedSearch){let{stream,isPartial}=await stripIsPartialByte(runtimePrefetchStream),serverData=await (0,_fetchserverresponse.createFromNextReadableStream)(stream,void 0,{allowPartialStream:!0}),headVaryParamsThenable=serverData.h,headVaryParams=null!==headVaryParamsThenable?(0,_varyparamsdecoding.readVaryParams)(headVaryParamsThenable):null,staleAt=await getStaleAt(now,serverData.s),flightDatas=(0,_flightdatahelpers.normalizeFlightData)(serverData.f);if("string"==typeof flightDatas)return null;let navigationSeed=(0,_navigation.convertServerPatchToFullTree)(now,baseTree,flightDatas,renderedSearch,_bfcache.UnknownDynamicStaleTime);return{flightDatas,navigationSeed,buildId:serverData.b,isResponsePartial:isPartial,headVaryParams,staleAt}}async function stripIsPartialByte(stream){let reader=stream.getReader(),{done,value}=await reader.read();if(done||!value||0===value.byteLength)return{stream:new ReadableStream({start:c=>c.close()}),isPartial:!1};let firstByte=value[0],hasMarker=35===firstByte||126===firstByte,remainder=hasMarker?value.byteLength>1?value.subarray(1):null:value;return{isPartial:!!hasMarker&&126===firstByte,stream:new ReadableStream({start(controller){remainder&&controller.enqueue(remainder)},async pull(controller){let result=await reader.read();result.done?controller.close():controller.enqueue(result.value)}})}}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},43039,(__turbopack_context__,module,exports)=>{"use strict";let createDebugChannel;Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{createFetch:function(){return createFetch},createFromNextReadableStream:function(){return createFromNextReadableStream},decodeStaticStage:function(){return decodeStaticStage},fetchServerResponse:function(){return fetchServerResponse},processFetch:function(){return processFetch},resolveStaticStageData:function(){return resolveStaticStageData}});let _client=__turbopack_context__.r(89530);__turbopack_context__.r(79608);let _approuterheaders=__turbopack_context__.r(46724),_appcallserver=__turbopack_context__.r(69147),_appfindsourcemapurl=__turbopack_context__.r(15679),_flightdatahelpers=__turbopack_context__.r(85018),_setcachebustingsearchparam=__turbopack_context__.r(9432),_routeparams=__turbopack_context__.r(46997),_deploymentid=__turbopack_context__.r(49352),_navigationbuildid=__turbopack_context__.r(50567),_constants=__turbopack_context__.r(80082);__turbopack_context__.r(69776);let _bfcache=__turbopack_context__.r(97705),createFromReadableStream=_client.createFromReadableStream,createFromFetch=_client.createFromFetch;function doMpaNavigation(url){return(0,_routeparams.urlToUrlWithoutFlightMarker)(new URL(url,location.origin)).toString()}let isPageUnloading=!1;async function fetchServerResponse(url,options){let{flightRouterState,nextUrl}=options,headers={[_approuterheaders.RSC_HEADER]:"1",[_approuterheaders.NEXT_ROUTER_STATE_TREE_HEADER]:(0,_flightdatahelpers.prepareFlightRouterStateForRequest)(flightRouterState,options.isHmrRefresh)};nextUrl&&(headers[_approuterheaders.NEXT_URL]=nextUrl);let originalUrl=url;try{(url=new URL(url)).pathname.endsWith("/")?url.pathname+="index.txt":url.pathname+=".txt";let res=await createFetch(url,headers,"auto",!0),responseUrl=(0,_routeparams.urlToUrlWithoutFlightMarker)(new URL(res.url)),canonicalUrl=res.redirected?responseUrl:originalUrl,contentType=res.headers.get("content-type")||"",interception=!!res.headers.get("vary")?.includes(_approuterheaders.NEXT_URL),postponed=!!res.headers.get(_approuterheaders.NEXT_DID_POSTPONE_HEADER),isFlightResponse=contentType.startsWith(_approuterheaders.RSC_CONTENT_TYPE_HEADER);if(isFlightResponse||(isFlightResponse=contentType.startsWith("text/plain")),!isFlightResponse||!res.ok||!res.body)return url.hash&&(responseUrl.hash=url.hash),doMpaNavigation(responseUrl.toString());let flightResponsePromise=res.flightResponsePromise;null===flightResponsePromise&&(flightResponsePromise=createFromNextReadableStream(res.body,headers,{allowPartialStream:postponed}));let[flightResponse,cacheData]=await Promise.all([flightResponsePromise,res.cacheData]);if((res.headers.get(_constants.NEXT_NAV_DEPLOYMENT_ID_HEADER)??flightResponse.b)!==(0,_navigationbuildid.getNavigationBuildId)())return doMpaNavigation(res.url);let normalizedFlightData=(0,_flightdatahelpers.normalizeFlightData)(flightResponse.f);if("string"==typeof normalizedFlightData)return doMpaNavigation(normalizedFlightData);let staticStageData=null!==cacheData?await resolveStaticStageData(cacheData,flightResponse,headers):null;return{flightData:normalizedFlightData,canonicalUrl:canonicalUrl,renderedSearch:flightResponse.q,couldBeIntercepted:interception,supportsPerSegmentPrefetching:flightResponse.S,postponed,dynamicStaleTime:flightResponse.d??_bfcache.UnknownDynamicStaleTime,staticStageData,runtimePrefetchStream:flightResponse.p??null,responseHeaders:res.headers,debugInfo:flightResponsePromise._debugInfo??null}}catch(err){return isPageUnloading||console.error(`Failed to fetch RSC payload for ${originalUrl}. Falling back to browser navigation.`,err),originalUrl.toString()}}async function processFetch(response){return{response,cacheData:null}}async function resolveStaticStageData(cacheData,flightResponse,headers){let{isResponsePartial,responseBodyClone}=cacheData;if(responseBodyClone){if(!isResponsePartial)return responseBodyClone.cancel(),{response:flightResponse,isResponsePartial:!1};if(void 0!==flightResponse.l)return{response:await decodeStaticStage(responseBodyClone,flightResponse.l,headers),isResponsePartial:!0};responseBodyClone.cancel()}return null}async function decodeStaticStage(responseBodyClone,staticStageByteLengthPromise,headers){return createFromNextReadableStream(truncateStream(responseBodyClone,await staticStageByteLengthPromise),headers,{allowPartialStream:!0})}async function createFetch(url,headers,fetchPriority,shouldImmediatelyDecode,signal){let deploymentId=(0,_deploymentid.getDeploymentId)();deploymentId&&(headers["x-deployment-id"]=deploymentId);let fetchUrl=new URL(url);(0,_setcachebustingsearchparam.setCacheBustingSearchParam)(fetchUrl,headers);let processed=fetch(fetchUrl,{credentials:"same-origin",headers,priority:fetchPriority||void 0,signal}).then(processFetch),fetchPromise=processed.then(({response})=>response),flightResponsePromise=shouldImmediatelyDecode?createFromNextFetch(fetchPromise,headers):null,browserResponse=await fetchPromise,redirected=browserResponse.redirected,responseUrl=new URL(browserResponse.url,fetchUrl);return responseUrl.searchParams.delete(_approuterheaders.NEXT_RSC_UNION_QUERY),{url:responseUrl.href,redirected,ok:browserResponse.ok,headers:browserResponse.headers,body:browserResponse.body,status:browserResponse.status,flightResponsePromise:flightResponsePromise,cacheData:processed.then(({cacheData})=>cacheData)}}function createFromNextReadableStream(flightStream,requestHeaders,options){return createFromReadableStream(flightStream,{callServer:_appcallserver.callServer,findSourceMapURL:_appfindsourcemapurl.findSourceMapURL,debugChannel:createDebugChannel&&createDebugChannel(requestHeaders),unstable_allowPartialStream:options?.allowPartialStream})}function createFromNextFetch(promiseForResponse,requestHeaders){return createFromFetch(promiseForResponse,{callServer:_appcallserver.callServer,findSourceMapURL:_appfindsourcemapurl.findSourceMapURL,debugChannel:createDebugChannel&&createDebugChannel(requestHeaders)})}function truncateStream(stream,byteLength){let reader=stream.getReader(),remaining=byteLength;return new ReadableStream({async pull(controller){if(remaining<=0){reader.cancel(),controller.close();return}let{done,value}=await reader.read();done?controller.close():value.byteLength<=remaining?(controller.enqueue(value),remaining-=value.byteLength):(controller.enqueue(value.subarray(0,remaining)),remaining=0,reader.cancel(),controller.close())},cancel(){reader.cancel()}})}"u">typeof window&&(window.addEventListener("pagehide",()=>{isPageUnloading=!0}),window.addEventListener("pageshow",()=>{isPageUnloading=!1})),("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},57556,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return isNavigatingToNewRootLayout}});let _approutertypes=__turbopack_context__.r(46043);function isNavigatingToNewRootLayout(currentTree,nextTree){let currentTreeSegment=currentTree[0],nextTreeSegment=nextTree.segment;if(Array.isArray(currentTreeSegment)&&Array.isArray(nextTreeSegment)){if(currentTreeSegment[0]!==nextTreeSegment[0]||currentTreeSegment[2]!==nextTreeSegment[2])return!0}else if(currentTreeSegment!==nextTreeSegment)return!0;let currentIsRootLayout=((currentTree[4]??0)&_approutertypes.PrefetchHint.IsRootLayout)!=0,nextIsRootLayout=(nextTree.prefetchHints&_approutertypes.PrefetchHint.IsRootLayout)!=0;if(currentIsRootLayout)return!nextIsRootLayout;if(nextIsRootLayout)return!0;let slots=nextTree.slots,currentTreeChildren=currentTree[1];if(null!==slots)for(let slot in slots){let nextTreeChild=slots[slot],currentTreeChild=currentTreeChildren[slot];if(void 0===currentTreeChild||isNavigatingToNewRootLayout(currentTreeChild,nextTreeChild))return!0}return!1}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},51956,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{getLastCommittedTree:function(){return getLastCommittedTree},setLastCommittedTree:function(){return setLastCommittedTree}});let lastCommittedTree=null;function getLastCommittedTree(){return lastCommittedTree}function setLastCommittedTree(tree){lastCommittedTree=tree}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},68250,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{FreshnessPolicy:function(){return FreshnessPolicy1},createInitialCacheNodeForHydration:function(){return createInitialCacheNodeForHydration},isDeferredRsc:function(){return isDeferredRsc},spawnDynamicRequests:function(){return spawnDynamicRequests},startPPRNavigation:function(){return startPPRNavigation}});let _approutertypes=__turbopack_context__.r(46043),_segment=__turbopack_context__.r(14522),_matchsegments=__turbopack_context__.r(17980),_createhreffromurl=__turbopack_context__.r(8204),_fetchserverresponse=__turbopack_context__.r(43039),_useactionqueue=__turbopack_context__.r(36495),_routerreducertypes=__turbopack_context__.r(33254),_isnavigatingtonewrootlayout=__turbopack_context__.r(57556),_committedstate=__turbopack_context__.r(51956),_navigation=__turbopack_context__.r(94206),_cache=__turbopack_context__.r(69776),_types=__turbopack_context__.r(19012),_optimisticroutes=__turbopack_context__.r(50616),_constants=__turbopack_context__.r(80082),_varypath=__turbopack_context__.r(10815),_bfcache=__turbopack_context__.r(97705);var FreshnessPolicy,FreshnessPolicy1=((FreshnessPolicy={})[FreshnessPolicy.Default=0]="Default",FreshnessPolicy[FreshnessPolicy.Hydration=1]="Hydration",FreshnessPolicy[FreshnessPolicy.HistoryTraversal=2]="HistoryTraversal",FreshnessPolicy[FreshnessPolicy.RefreshAll=3]="RefreshAll",FreshnessPolicy[FreshnessPolicy.HMRRefresh=4]="HMRRefresh",FreshnessPolicy[FreshnessPolicy.Gesture=5]="Gesture",FreshnessPolicy);let noop=()=>{};function createInitialCacheNodeForHydration(navigatedAt,initialTree,seedData,seedHead,seedDynamicStaleAt){return createCacheNodeOnNavigation(navigatedAt,initialTree,null,1,seedData,seedHead,seedDynamicStaleAt,!1,{separateRefreshUrls:null,scrollRef:null})}function startPPRNavigation(navigatedAt,oldUrl,oldRenderedSearch,oldCacheNode,oldRouterState,newRouteTree,newMetadataVaryPath,freshness,seedData,seedHead,seedDynamicStaleAt,isSamePageNavigation,accumulation){let oldRootRefreshState={canonicalUrl:(0,_createhreffromurl.createHrefFromUrl)(oldUrl),renderedSearch:oldRenderedSearch};return updateCacheNodeOnNavigation(navigatedAt,oldUrl,null!==oldCacheNode?oldCacheNode:void 0,oldRouterState,newRouteTree,newMetadataVaryPath,freshness,!1,seedData,seedHead,seedDynamicStaleAt,isSamePageNavigation,!1,oldRootRefreshState,null,accumulation)}function updateCacheNodeOnNavigation(navigatedAt,oldUrl,oldCacheNode,oldRouterState,newRouteTree,newMetadataVaryPath,freshness,didFindRootLayout,seedData,seedHead,seedDynamicStaleAt,isSamePageNavigation,parentNeedsDynamicRequest,oldRootRefreshState,parentRefreshState,accumulation){let newCacheNode,needsDynamicRequest,oldSegment=oldRouterState[0],newSegment=createSegmentFromRouteTree(newRouteTree);if(!(0,_matchsegments.matchSegment)(newSegment,oldSegment))return!didFindRootLayout&&(0,_isnavigatingtonewrootlayout.isNavigatingToNewRootLayout)(oldRouterState,newRouteTree)||newSegment===_segment.NOT_FOUND_SEGMENT_KEY?null:createCacheNodeOnNavigation(navigatedAt,newRouteTree,newMetadataVaryPath,freshness,seedData,seedHead,seedDynamicStaleAt,parentNeedsDynamicRequest,accumulation);let newSlots=newRouteTree.slots,oldRouterStateChildren=oldRouterState[1],seedDataChildren=null!==seedData?seedData[1]:null,childDidFindRootLayout=didFindRootLayout||(newRouteTree.prefetchHints&_approutertypes.PrefetchHint.IsRootLayout)!=0,shouldRefreshDynamicData=!1;switch(freshness){case 0:case 2:case 1:case 5:shouldRefreshDynamicData=!1;break;case 3:case 4:shouldRefreshDynamicData=!0}let isLeafSegment=null===newSlots;if(void 0===oldCacheNode||shouldRefreshDynamicData||isLeafSegment&&isSamePageNavigation){let result=createCacheNodeForSegment(navigatedAt,newRouteTree,null!==seedData?seedData[0]:null,newMetadataVaryPath,seedHead,freshness,seedDynamicStaleAt);newCacheNode=result.cacheNode,needsDynamicRequest=result.needsDynamicRequest,void 0!==oldCacheNode&&(newCacheNode.scrollRef=oldCacheNode.scrollRef)}else newCacheNode=reuseSharedCacheNode(!1,oldCacheNode),needsDynamicRequest=!1;let maybeRefreshState=newRouteTree.refreshState,refreshState=null!=maybeRefreshState?maybeRefreshState:parentRefreshState;needsDynamicRequest&&null!==refreshState&&accumulateRefreshUrl(accumulation,refreshState);let patchedRouterStateChildren={},taskChildren=null,childNeedsDynamicRequest=!1,dynamicRequestTreeChildren={},newCacheNodeSlots=null;if(null!==newSlots){let oldCacheNodeSlots=void 0!==oldCacheNode?oldCacheNode.slots:null;for(let parallelRouteKey in newCacheNode.slots=newCacheNodeSlots={},taskChildren=new Map,newSlots){let newRouteTreeChild=newSlots[parallelRouteKey],oldRouterStateChild=oldRouterStateChildren[parallelRouteKey];if(void 0===oldRouterStateChild)return null;let seedDataChild=null!==seedDataChildren?seedDataChildren[parallelRouteKey]:null,oldSegmentChild=oldRouterStateChild[0],newSegmentChild=createSegmentFromRouteTree(newRouteTreeChild),seedHeadChild=seedHead;2!==freshness&&newSegmentChild===_segment.DEFAULT_SEGMENT_KEY&&oldSegmentChild!==_segment.DEFAULT_SEGMENT_KEY&&(newSegmentChild=createSegmentFromRouteTree(newRouteTreeChild=reuseActiveSegmentInDefaultSlot(newRouteTree,parallelRouteKey,oldRootRefreshState,oldRouterStateChild)),seedDataChild=null,seedHeadChild=null);let taskChild=updateCacheNodeOnNavigation(navigatedAt,oldUrl,null!==oldCacheNodeSlots?oldCacheNodeSlots[parallelRouteKey]:void 0,oldRouterStateChild,newRouteTreeChild,newMetadataVaryPath,freshness,childDidFindRootLayout,seedDataChild??null,seedHeadChild,seedDynamicStaleAt,isSamePageNavigation,parentNeedsDynamicRequest||needsDynamicRequest,oldRootRefreshState,refreshState,accumulation);if(null===taskChild)return null;taskChildren.set(parallelRouteKey,taskChild),newCacheNodeSlots[parallelRouteKey]=taskChild.node;let taskChildRoute=taskChild.route;patchedRouterStateChildren[parallelRouteKey]=taskChildRoute;let dynamicRequestTreeChild=taskChild.dynamicRequestTree;null!==dynamicRequestTreeChild?(childNeedsDynamicRequest=!0,dynamicRequestTreeChildren[parallelRouteKey]=dynamicRequestTreeChild):dynamicRequestTreeChildren[parallelRouteKey]=taskChildRoute}}let newFlightRouterState=[createSegmentFromRouteTree(newRouteTree),patchedRouterStateChildren,null!==refreshState?[refreshState.canonicalUrl,refreshState.renderedSearch]:null,null,newRouteTree.prefetchHints];return{status:+!needsDynamicRequest,route:newFlightRouterState,node:newCacheNode,dynamicRequestTree:createDynamicRequestTree(newFlightRouterState,dynamicRequestTreeChildren,needsDynamicRequest,childNeedsDynamicRequest,parentNeedsDynamicRequest),refreshState,children:taskChildren}}function accumulateScrollRef(freshness,cacheNode,accumulation){switch(freshness){case 0:case 5:case 3:case 4:null===accumulation.scrollRef&&(accumulation.scrollRef={current:!0}),cacheNode.scrollRef=accumulation.scrollRef}}function createCacheNodeOnNavigation(navigatedAt,newRouteTree,newMetadataVaryPath,freshness,seedData,seedHead,seedDynamicStaleAt,parentNeedsDynamicRequest,accumulation){let newSegment=createSegmentFromRouteTree(newRouteTree),newSlots=newRouteTree.slots,seedDataChildren=null!==seedData?seedData[1]:null,result=createCacheNodeForSegment(navigatedAt,newRouteTree,null!==seedData?seedData[0]:null,newMetadataVaryPath,seedHead,freshness,seedDynamicStaleAt),newCacheNode=result.cacheNode,needsDynamicRequest=result.needsDynamicRequest;null===newSlots&&accumulateScrollRef(freshness,newCacheNode,accumulation);let patchedRouterStateChildren={},taskChildren=null,childNeedsDynamicRequest=!1,dynamicRequestTreeChildren={},newCacheNodeSlots=null;if(null!==newSlots)for(let parallelRouteKey in newCacheNode.slots=newCacheNodeSlots={},taskChildren=new Map,newSlots){let taskChild=createCacheNodeOnNavigation(navigatedAt,newSlots[parallelRouteKey],newMetadataVaryPath,freshness,(null!==seedDataChildren?seedDataChildren[parallelRouteKey]:null)??null,seedHead,seedDynamicStaleAt,parentNeedsDynamicRequest||needsDynamicRequest,accumulation);taskChildren.set(parallelRouteKey,taskChild),newCacheNodeSlots[parallelRouteKey]=taskChild.node;let taskChildRoute=taskChild.route;patchedRouterStateChildren[parallelRouteKey]=taskChildRoute;let dynamicRequestTreeChild=taskChild.dynamicRequestTree;null!==dynamicRequestTreeChild?(childNeedsDynamicRequest=!0,dynamicRequestTreeChildren[parallelRouteKey]=dynamicRequestTreeChild):dynamicRequestTreeChildren[parallelRouteKey]=taskChildRoute}let newFlightRouterState=[newSegment,patchedRouterStateChildren,null,null,newRouteTree.prefetchHints];return{status:+!needsDynamicRequest,route:newFlightRouterState,node:newCacheNode,dynamicRequestTree:createDynamicRequestTree(newFlightRouterState,dynamicRequestTreeChildren,needsDynamicRequest,childNeedsDynamicRequest,parentNeedsDynamicRequest),refreshState:null,children:taskChildren}}function createSegmentFromRouteTree(newRouteTree){if(newRouteTree.isPage){let renderedSearch=(0,_varypath.getRenderedSearchFromVaryPath)(newRouteTree.varyPath);if(null===renderedSearch)return _segment.PAGE_SEGMENT_KEY;let stringifiedQuery=JSON.stringify(Object.fromEntries(new URLSearchParams(renderedSearch)));return"{}"!==stringifiedQuery?_segment.PAGE_SEGMENT_KEY+"?"+stringifiedQuery:_segment.PAGE_SEGMENT_KEY}return newRouteTree.segment}function patchRouterStateWithNewChildren(baseRouterState,newChildren){let clone=[baseRouterState[0],newChildren];return 2 in baseRouterState&&(clone[2]=baseRouterState[2]),3 in baseRouterState&&(clone[3]=baseRouterState[3]),4 in baseRouterState&&(clone[4]=baseRouterState[4]),clone}function createDynamicRequestTree(newRouterState,dynamicRequestTreeChildren,needsDynamicRequest,childNeedsDynamicRequest,parentNeedsDynamicRequest){let dynamicRequestTree=null;return needsDynamicRequest?(dynamicRequestTree=patchRouterStateWithNewChildren(newRouterState,dynamicRequestTreeChildren),parentNeedsDynamicRequest||(dynamicRequestTree[3]="refetch")):dynamicRequestTree=childNeedsDynamicRequest?patchRouterStateWithNewChildren(newRouterState,dynamicRequestTreeChildren):null,dynamicRequestTree}function accumulateRefreshUrl(accumulation,refreshState){let refreshUrl=refreshState.canonicalUrl,separateRefreshUrls=accumulation.separateRefreshUrls;null===separateRefreshUrls?accumulation.separateRefreshUrls=new Set([refreshUrl]):separateRefreshUrls.add(refreshUrl)}function reuseActiveSegmentInDefaultSlot(parentRouteTree,parallelRouteKey,oldRootRefreshState,oldRouterState){let reusedUrl,reusedRenderedSearch,oldRefreshState=oldRouterState[2];null!=oldRefreshState?(reusedUrl=oldRefreshState[0],reusedRenderedSearch=oldRefreshState[1]):(reusedUrl=oldRootRefreshState.canonicalUrl,reusedRenderedSearch=oldRootRefreshState.renderedSearch);let reusedRouteTree=(0,_cache.convertReusedFlightRouterStateToRouteTree)(parentRouteTree,parallelRouteKey,oldRouterState,reusedRenderedSearch,{metadataVaryPath:null});return reusedRouteTree.refreshState={canonicalUrl:reusedUrl,renderedSearch:reusedRenderedSearch},reusedRouteTree}function reuseSharedCacheNode(dropPrefetchRsc,existingCacheNode){return createCacheNode(existingCacheNode.rsc,dropPrefetchRsc?null:existingCacheNode.prefetchRsc,existingCacheNode.head,dropPrefetchRsc?null:existingCacheNode.prefetchHead,existingCacheNode.scrollRef)}function createCacheNodeForSegment(now,tree,seedRsc,metadataVaryPath,seedHead,freshness,dynamicStaleAt){let prefetchRsc,rsc,doesSegmentNeedDynamicRequest,isPage=tree.isPage;switch(freshness){case 0:{let bfcacheEntry=(0,_bfcache.readFromBFCacheDuringRegularNavigation)(now,tree.varyPath);if(null!==bfcacheEntry)return{cacheNode:createCacheNode(bfcacheEntry.rsc,bfcacheEntry.prefetchRsc,bfcacheEntry.head,bfcacheEntry.prefetchHead),needsDynamicRequest:!1};break}case 1:{let head=isPage?seedHead:null;return(0,_bfcache.writeToBFCache)(now,tree.varyPath,seedRsc,null,head,null,dynamicStaleAt),isPage&&null!==metadataVaryPath&&(0,_bfcache.writeHeadToBFCache)(now,metadataVaryPath,head,null,dynamicStaleAt),{cacheNode:createCacheNode(seedRsc,null,head,null),needsDynamicRequest:!1}}case 2:let bfcacheEntry=(0,_bfcache.readFromBFCache)(tree.varyPath);if(null!==bfcacheEntry){let oldRsc=bfcacheEntry.rsc,oldRscDidResolve=!isDeferredRsc(oldRsc)||"pending"!==oldRsc.status;return{cacheNode:createCacheNode(bfcacheEntry.rsc,oldRscDidResolve?null:bfcacheEntry.prefetchRsc,bfcacheEntry.head,oldRscDidResolve?null:bfcacheEntry.prefetchHead),needsDynamicRequest:!1}}}let cachedRsc=null,isCachedRscPartial=!0,segmentEntry=(0,_cache.readSegmentCacheEntry)(now,tree.varyPath);if(null!==segmentEntry)switch(segmentEntry.status){case _cache.EntryStatus.Fulfilled:cachedRsc=segmentEntry.rsc,isCachedRscPartial=segmentEntry.isPartial;break;case _cache.EntryStatus.Pending:cachedRsc=(0,_cache.waitForSegmentCacheEntry)(segmentEntry).then(entry=>null!==entry?entry.rsc:null),isCachedRscPartial=segmentEntry.isPartial;case _cache.EntryStatus.Empty:case _cache.EntryStatus.Rejected:}null!==seedRsc?(isCachedRscPartial?(prefetchRsc=cachedRsc,rsc=seedRsc):(prefetchRsc=null,rsc=cachedRsc),doesSegmentNeedDynamicRequest=!1):(isCachedRscPartial?(prefetchRsc=cachedRsc,rsc=createDeferredRsc()):(prefetchRsc=null,rsc=cachedRsc),doesSegmentNeedDynamicRequest=isCachedRscPartial);let prefetchHead=null,head=null,doesHeadNeedDynamicRequest=isPage;if(isPage){let cachedHead=null,isCachedHeadPartial=!0;if(null!==metadataVaryPath){let metadataEntry=(0,_cache.readSegmentCacheEntry)(now,metadataVaryPath);if(null!==metadataEntry)switch(metadataEntry.status){case _cache.EntryStatus.Fulfilled:cachedHead=metadataEntry.rsc,isCachedHeadPartial=metadataEntry.isPartial;break;case _cache.EntryStatus.Pending:cachedHead=(0,_cache.waitForSegmentCacheEntry)(metadataEntry).then(entry=>null!==entry?entry.rsc:null),isCachedHeadPartial=metadataEntry.isPartial;case _cache.EntryStatus.Empty:case _cache.EntryStatus.Rejected:}}null!==seedHead?(isCachedHeadPartial?(prefetchHead=cachedHead,head=seedHead):(prefetchHead=null,head=cachedHead),doesHeadNeedDynamicRequest=!1):(isCachedHeadPartial?(prefetchHead=cachedHead,head=createDeferredRsc()):(prefetchHead=null,head=cachedHead),doesHeadNeedDynamicRequest=isCachedHeadPartial)}return 5!==freshness&&((0,_bfcache.writeToBFCache)(now,tree.varyPath,rsc,prefetchRsc,head,prefetchHead,dynamicStaleAt),isPage&&null!==metadataVaryPath&&(0,_bfcache.writeHeadToBFCache)(now,metadataVaryPath,head,prefetchHead,dynamicStaleAt)),{cacheNode:createCacheNode(rsc,prefetchRsc,head,prefetchHead),needsDynamicRequest:doesSegmentNeedDynamicRequest||doesHeadNeedDynamicRequest}}function createCacheNode(rsc,prefetchRsc,head,prefetchHead,scrollRef=null){return{rsc,prefetchRsc,head,prefetchHead,slots:null,scrollRef}}let previousNavigationDidMismatch=!1;function spawnDynamicRequests(task,primaryUrl,nextUrl,freshnessPolicy,accumulation,routeCacheEntry,navigateType){let dynamicRequestTree=task.dynamicRequestTree;if(null===dynamicRequestTree){previousNavigationDidMismatch=!1;return}let primaryRequestPromise=fetchMissingDynamicData(task,dynamicRequestTree,primaryUrl,nextUrl,freshnessPolicy,routeCacheEntry),separateRefreshUrls=accumulation.separateRefreshUrls,refreshRequestPromises=null;if(null!==separateRefreshUrls){refreshRequestPromises=[];let canonicalUrl=(0,_createhreffromurl.createHrefFromUrl)(primaryUrl);for(let refreshUrl of separateRefreshUrls)refreshUrl!==canonicalUrl&&null!==dynamicRequestTree&&refreshRequestPromises.push(fetchMissingDynamicData(task,dynamicRequestTree,new URL(refreshUrl,location.origin),nextUrl,freshnessPolicy,routeCacheEntry))}finishNavigationTask(task,nextUrl,primaryRequestPromise,refreshRequestPromises,routeCacheEntry,navigateType).then(noop,noop)}async function finishNavigationTask(task,nextUrl,primaryRequestPromise,refreshRequestPromises,routeCacheEntry,navigateType){let exitStatus=await waitForRequestsToFinish(primaryRequestPromise,refreshRequestPromises);switch(0===exitStatus&&(exitStatus=abortRemainingPendingTasks(task,null,null)),exitStatus){case 0:previousNavigationDidMismatch=!1;return;case 1:{let primaryRequestResult=await primaryRequestPromise;dispatchRetryDueToTreeMismatch(!1,primaryRequestResult.url,nextUrl,primaryRequestResult.seed,task.route,routeCacheEntry,navigateType);return}case 2:{let primaryRequestResult=await primaryRequestPromise;dispatchRetryDueToTreeMismatch(!0,primaryRequestResult.url,nextUrl,primaryRequestResult.seed,task.route,routeCacheEntry,navigateType);return}default:return exitStatus}}function waitForRequestsToFinish(primaryRequestPromise,refreshRequestPromises){return new Promise(resolve=>{let onFulfill=result=>{0===result.exitStatus?0==--remainingCount&&resolve(0):resolve(result.exitStatus)},onReject=()=>resolve(2),remainingCount=1;primaryRequestPromise.then(onFulfill,onReject),null!==refreshRequestPromises&&(remainingCount+=refreshRequestPromises.length,refreshRequestPromises.forEach(refreshRequestPromise=>refreshRequestPromise.then(onFulfill,onReject)))})}function dispatchRetryDueToTreeMismatch(isHardRetry,retryUrl,retryNextUrl,seed,baseTree,routeCacheEntry,originalNavigateType){if(null!==routeCacheEntry)(0,_cache.markRouteEntryAsDynamicRewrite)(routeCacheEntry);else if(null!==seed){let metadataVaryPath=seed.metadataVaryPath;if(null!==metadataVaryPath){let now=Date.now();(0,_optimisticroutes.discoverKnownRoute)(now,retryUrl.pathname,retryNextUrl,null,seed.routeTree,metadataVaryPath,!1,(0,_createhreffromurl.createHrefFromUrl)(retryUrl),!1,!0)}}(0,_cache.invalidateRouteCacheEntries)(retryNextUrl,baseTree),isHardRetry=isHardRetry||previousNavigationDidMismatch,previousNavigationDidMismatch=!0;let lastCommitted=(0,_committedstate.getLastCommittedTree)(),retryNavigateType=null!==lastCommitted&&baseTree!==lastCommitted?originalNavigateType:"replace",retryAction={type:_routerreducertypes.ACTION_SERVER_PATCH,previousTree:baseTree,url:retryUrl,nextUrl:retryNextUrl,seed,mpa:isHardRetry,navigateType:retryNavigateType};(0,_useactionqueue.dispatchAppRouterAction)(retryAction)}async function fetchMissingDynamicData(task,dynamicRequestTree,url,nextUrl,freshnessPolicy,routeCacheEntry){try{let result=await (0,_fetchserverresponse.fetchServerResponse)(url,{flightRouterState:dynamicRequestTree,nextUrl,isHmrRefresh:4===freshnessPolicy});if("string"==typeof result)return{exitStatus:2,url:new URL(result,location.origin),seed:null};let now=Date.now(),seed=(0,_navigation.convertServerPatchToFullTree)(now,task.route,result.flightData,result.renderedSearch,result.dynamicStaleTime);if(null!==routeCacheEntry&&null!==result.staticStageData){let{response:staticStageResponse,isResponsePartial}=result.staticStageData;(0,_cache.getStaleAt)(now,staticStageResponse.s).then(staleAt=>{let buildId=result.responseHeaders.get(_constants.NEXT_NAV_DEPLOYMENT_ID_HEADER)??staticStageResponse.b;(0,_cache.writeStaticStageResponseIntoCache)(now,staticStageResponse.f,buildId,staticStageResponse.h,staleAt,dynamicRequestTree,result.renderedSearch,isResponsePartial)}).catch(()=>{})}null!==routeCacheEntry&&null!==result.runtimePrefetchStream&&(0,_cache.processRuntimePrefetchStream)(now,result.runtimePrefetchStream,dynamicRequestTree,result.renderedSearch).then(processed=>{null!==processed&&(0,_cache.writeDynamicRenderResponseIntoCache)(now,_types.FetchStrategy.PPRRuntime,processed.flightDatas,processed.buildId,processed.isResponsePartial,processed.headVaryParams,processed.staleAt,processed.navigationSeed,null)}).catch(()=>{});let dynamicStaleAt=(0,_bfcache.computeDynamicStaleAt)(now,result.dynamicStaleTime);return{exitStatus:+!!writeDynamicDataIntoNavigationTask(task,seed.routeTree,seed.data,seed.head,dynamicStaleAt,result.debugInfo),url:new URL(result.canonicalUrl,location.origin),seed}}catch{return{exitStatus:2,url:url,seed:null}}}function writeDynamicDataIntoNavigationTask(task,serverRouteTree,dynamicData,dynamicHead,dynamicStaleAt,debugInfo){0===task.status&&null!==dynamicData&&(task.status=1,finishPendingCacheNode(task.node,dynamicData,dynamicHead,debugInfo),(0,_bfcache.updateBFCacheEntryStaleAt)(serverRouteTree.varyPath,dynamicStaleAt));let taskChildren=task.children,serverChildren=serverRouteTree.slots,dynamicDataChildren=null!==dynamicData?dynamicData[1]:null,didReceiveUnknownParallelRoute=!1;if(null!==taskChildren)if(null!==serverChildren)for(let parallelRouteKey in serverChildren){let serverRouteTreeChild=serverChildren[parallelRouteKey],dynamicDataChild=null!==dynamicDataChildren?dynamicDataChildren[parallelRouteKey]:null,taskChild=taskChildren.get(parallelRouteKey);if(void 0===taskChild)didReceiveUnknownParallelRoute=!0;else{let taskSegment=taskChild.route[0],serverSegment=createSegmentFromRouteTree(serverRouteTreeChild);(0,_matchsegments.matchSegment)(serverSegment,taskSegment)&&null!=dynamicDataChild&&writeDynamicDataIntoNavigationTask(taskChild,serverRouteTreeChild,dynamicDataChild,dynamicHead,dynamicStaleAt,debugInfo)&&(didReceiveUnknownParallelRoute=!0)}}else null!==serverChildren&&(didReceiveUnknownParallelRoute=!0);return didReceiveUnknownParallelRoute}function finishPendingCacheNode(cacheNode,dynamicData,dynamicHead,debugInfo){let rsc=cacheNode.rsc,dynamicSegmentData=dynamicData[0];if(null===dynamicSegmentData)return;null===rsc?cacheNode.rsc=dynamicSegmentData:isDeferredRsc(rsc)&&rsc.resolve(dynamicSegmentData,debugInfo);let head=cacheNode.head;isDeferredRsc(head)&&head.resolve(dynamicHead,debugInfo)}function abortRemainingPendingTasks(task,error,debugInfo){let exitStatus;0===task.status?(task.status=2,abortPendingCacheNode(task.node,error,debugInfo),exitStatus=null===task.refreshState?1:2):exitStatus=0;let taskChildren=task.children;if(null!==taskChildren)for(let[,taskChild]of taskChildren){let childExitStatus=abortRemainingPendingTasks(taskChild,error,debugInfo);childExitStatus>exitStatus&&(exitStatus=childExitStatus)}return exitStatus}function abortPendingCacheNode(cacheNode,error,debugInfo){let rsc=cacheNode.rsc;isDeferredRsc(rsc)&&(null===error?rsc.resolve(null,debugInfo):rsc.reject(error,debugInfo));let head=cacheNode.head;isDeferredRsc(head)&&head.resolve(null,debugInfo)}let DEFERRED=Symbol();function isDeferredRsc(value){return value&&"object"==typeof value&&value.tag===DEFERRED}function createDeferredRsc(){let resolve,reject,debugInfo=[],pendingRsc=new Promise((res,rej)=>{resolve=res,reject=rej});return pendingRsc.status="pending",pendingRsc.resolve=(value,responseDebugInfo)=>{"pending"===pendingRsc.status&&(pendingRsc.status="fulfilled",pendingRsc.value=value,null!==responseDebugInfo&&debugInfo.push.apply(debugInfo,responseDebugInfo),resolve(value))},pendingRsc.reject=(error,responseDebugInfo)=>{"pending"===pendingRsc.status&&(pendingRsc.status="rejected",pendingRsc.reason=error,null!==responseDebugInfo&&debugInfo.push.apply(debugInfo,responseDebugInfo),reject(error))},pendingRsc.tag=DEFERRED,pendingRsc._debugInfo=debugInfo,pendingRsc}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},97970,(__turbopack_context__,module,exports)=>{"use strict";function ensureLeadingSlash(path){return path.startsWith("/")?path:`/${path}`}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ensureLeadingSlash",{enumerable:!0,get:function(){return ensureLeadingSlash}})},444,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{compareAppPaths:function(){return compareAppPaths},normalizeAppPath:function(){return normalizeAppPath},normalizeRscURL:function(){return normalizeRscURL}});let _ensureleadingslash=__turbopack_context__.r(97970),_segment=__turbopack_context__.r(14522);function normalizeAppPath(route){return(0,_ensureleadingslash.ensureLeadingSlash)(route.split("/").reduce((pathname,segment,index,segments)=>!segment||(0,_segment.isGroupSegment)(segment)||"@"===segment[0]||("page"===segment||"route"===segment)&&index===segments.length-1?pathname:`${pathname}/${segment}`,""))}function compareAppPaths(a,b){let aHasSlot=a.includes("/@"),bHasSlot=b.includes("/@");return aHasSlot&&!bHasSlot?-1:!aHasSlot&&bHasSlot?1:a.localeCompare(b)}function normalizeRscURL(url){return url.replace(/\.rsc($|\?)/,"$1")}},76288,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{INTERCEPTION_ROUTE_MARKERS:function(){return INTERCEPTION_ROUTE_MARKERS},extractInterceptionRouteInformation:function(){return extractInterceptionRouteInformation},isInterceptionRouteAppPath:function(){return isInterceptionRouteAppPath}});let _apppaths=__turbopack_context__.r(444),INTERCEPTION_ROUTE_MARKERS=["(..)(..)","(.)","(..)","(...)"];function isInterceptionRouteAppPath(path){return void 0!==path.split("/").find(segment=>INTERCEPTION_ROUTE_MARKERS.find(m=>segment.startsWith(m)))}function extractInterceptionRouteInformation(path){let interceptingRoute,marker,interceptedRoute;for(let segment of path.split("/"))if(marker=INTERCEPTION_ROUTE_MARKERS.find(m=>segment.startsWith(m))){[interceptingRoute,interceptedRoute]=path.split(marker,2);break}if(!interceptingRoute||!marker||!interceptedRoute)throw Object.defineProperty(Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(interceptingRoute=(0,_apppaths.normalizeAppPath)(interceptingRoute),marker){case"(.)":interceptedRoute="/"===interceptingRoute?`/${interceptedRoute}`:interceptingRoute+"/"+interceptedRoute;break;case"(..)":if("/"===interceptingRoute)throw Object.defineProperty(Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});interceptedRoute=interceptingRoute.split("/").slice(0,-1).concat(interceptedRoute).join("/");break;case"(...)":interceptedRoute="/"+interceptedRoute;break;case"(..)(..)":let splitInterceptingRoute=interceptingRoute.split("/");if(splitInterceptingRoute.length<=2)throw Object.defineProperty(Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});interceptedRoute=splitInterceptingRoute.slice(0,-2).concat(interceptedRoute).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute,interceptedRoute}}},4967,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{computeChangedPath:function(){return computeChangedPath},extractPathFromFlightRouterState:function(){return extractPathFromFlightRouterState},extractSourcePageFromFlightRouterState:function(){return extractSourcePageFromFlightRouterState},getSelectedParams:function(){return getSelectedParams}});let _interceptionroutes=__turbopack_context__.r(76288),_segment=__turbopack_context__.r(14522),_matchsegments=__turbopack_context__.r(17980),removeLeadingSlash=segment=>"/"===segment[0]?segment.slice(1):segment,segmentToPathname=segment=>"string"==typeof segment?"children"===segment?"":segment:segment[1];function normalizeSegments(segments){return segments.reduce((acc,segment)=>""===(segment=removeLeadingSlash(segment))||(0,_segment.isGroupSegment)(segment)?acc:`${acc}/${segment}`,"")||"/"}function extractPathFromFlightRouterState(flightRouterState){let segment=Array.isArray(flightRouterState[0])?flightRouterState[0][1]:flightRouterState[0];if(segment===_segment.DEFAULT_SEGMENT_KEY||_interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some(m=>segment.startsWith(m)))return;if(segment.startsWith(_segment.PAGE_SEGMENT_KEY))return"";let segments=[segmentToPathname(segment)],parallelRoutes=flightRouterState[1]??{},childrenPath=parallelRoutes.children?extractPathFromFlightRouterState(parallelRoutes.children):void 0;if(void 0!==childrenPath)segments.push(childrenPath);else for(let[key,value]of Object.entries(parallelRoutes)){if("children"===key)continue;let childPath=extractPathFromFlightRouterState(value);void 0!==childPath&&segments.push(childPath)}return normalizeSegments(segments)}function extractSourcePageSegmentsFromFlightRouterState(flightRouterState){let segment=(segment=>{if("string"==typeof segment)return"children"===segment?"":segment.startsWith(_segment.PAGE_SEGMENT_KEY)?"page":segment;let[paramName,,dynamicParamType]=segment;switch(dynamicParamType){case"c":return`[...${paramName}]`;case"ci(..)(..)":return`(..)(..)[...${paramName}]`;case"ci(.)":return`(.)[...${paramName}]`;case"ci(..)":return`(..)[...${paramName}]`;case"ci(...)":return`(...)[...${paramName}]`;case"oc":return`[[...${paramName}]]`;case"d":default:return`[${paramName}]`;case"di(..)(..)":return`(..)(..)[${paramName}]`;case"di(.)":return`(.)[${paramName}]`;case"di(..)":return`(..)[${paramName}]`;case"di(...)":return`(...)[${paramName}]`}})(flightRouterState[0]);if(segment===_segment.DEFAULT_SEGMENT_KEY)return;if("page"===segment)return[segment];let parallelRoutes=flightRouterState[1]??{},childrenPath=parallelRoutes.children?extractSourcePageSegmentsFromFlightRouterState(parallelRoutes.children):void 0;if(void 0!==childrenPath)return""===segment?childrenPath:[removeLeadingSlash(segment),...childrenPath];for(let[key,value]of Object.entries(parallelRoutes)){if("children"===key)continue;let childPath=extractSourcePageSegmentsFromFlightRouterState(value);if(void 0!==childPath)return""===segment?childPath:[removeLeadingSlash(segment),...childPath]}}function extractSourcePageFromFlightRouterState(flightRouterState){let sourcePageSegments=extractSourcePageSegmentsFromFlightRouterState(flightRouterState);return sourcePageSegments?`/${sourcePageSegments.join("/")}`:void 0}function computeChangedPathImpl(treeA,treeB){let[segmentA,parallelRoutesA]=treeA,[segmentB,parallelRoutesB]=treeB,normalizedSegmentA=segmentToPathname(segmentA),normalizedSegmentB=segmentToPathname(segmentB);if(_interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some(m=>normalizedSegmentA.startsWith(m)||normalizedSegmentB.startsWith(m)))return"";if(!(0,_matchsegments.matchSegment)(segmentA,segmentB))return extractPathFromFlightRouterState(treeB)??"";for(let parallelRouterKey in parallelRoutesA)if(parallelRoutesB[parallelRouterKey]){let changedPath=computeChangedPathImpl(parallelRoutesA[parallelRouterKey],parallelRoutesB[parallelRouterKey]);if(null!==changedPath)return`${segmentToPathname(segmentB)}/${changedPath}`}return null}function computeChangedPath(treeA,treeB){let changedPath=computeChangedPathImpl(treeA,treeB);return null==changedPath||"/"===changedPath?changedPath:normalizeSegments(changedPath.split("/"))}function getSelectedParams(currentTree,params={}){for(let parallelRoute of Object.values(currentTree[1])){let segment=parallelRoute[0],isDynamicParameter=Array.isArray(segment),segmentValue=isDynamicParameter?segment[1]:segment;!segmentValue||segmentValue.startsWith(_segment.PAGE_SEGMENT_KEY)||(isDynamicParameter&&("c"===segment[2]||"oc"===segment[2])?params[segment[0]]=segment[1].split("/"):isDynamicParameter&&(params[segment[0]]=segment[1]),params=getSelectedParams(parallelRoute,params))}return params}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},72952,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isJavaScriptURLString",{enumerable:!0,get:function(){return isJavaScriptURLString}});let isJavaScriptProtocol=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function isJavaScriptURLString(url){return isJavaScriptProtocol.test(""+url)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},81305,(__turbopack_context__,module,exports)=>{"use strict";function startListeningForInstantNavigationCookie(){}function transitionToCapturedSPA(fromTree,toTree){}function updateCapturedSPAToTree(fromTree,toTree){}function isNavigationLocked(){return!1}async function waitForNavigationLockIfActive(){}Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{isNavigationLocked:function(){return isNavigationLocked},startListeningForInstantNavigationCookie:function(){return startListeningForInstantNavigationCookie},transitionToCapturedSPA:function(){return transitionToCapturedSPA},updateCapturedSPAToTree:function(){return updateCapturedSPAToTree},waitForNavigationLockIfActive:function(){return waitForNavigationLockIfActive}}),__turbopack_context__.r(46724),__turbopack_context__.r(36495),("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},94206,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{completeHardNavigation:function(){return completeHardNavigation},completeSoftNavigation:function(){return completeSoftNavigation},completeTraverseNavigation:function(){return completeTraverseNavigation},convertServerPatchToFullTree:function(){return convertServerPatchToFullTree},navigate:function(){return navigate},navigateToKnownRoute:function(){return navigateToKnownRoute}});let _fetchserverresponse=__turbopack_context__.r(43039),_pprnavigations=__turbopack_context__.r(68250),_createhreffromurl=__turbopack_context__.r(8204),_constants=__turbopack_context__.r(80082),_cache=__turbopack_context__.r(69776),_optimisticroutes=__turbopack_context__.r(50616),_cachekey=__turbopack_context__.r(48111);__turbopack_context__.r(6600);let _types=__turbopack_context__.r(19012);__turbopack_context__.r(51193);let _routerreducertypes=__turbopack_context__.r(33254),_computechangedpath=__turbopack_context__.r(4967),_javascripturl=__turbopack_context__.r(72952),_bfcache=__turbopack_context__.r(97705);function navigate(state,url,currentUrl,currentRenderedSearch,currentCacheNode,currentFlightRouterState,nextUrl,freshnessPolicy,scrollBehavior,navigateType){return navigateImpl(state,url,currentUrl,currentRenderedSearch,currentCacheNode,currentFlightRouterState,nextUrl,freshnessPolicy,scrollBehavior,navigateType)}function navigateImpl(state,url,currentUrl,currentRenderedSearch,currentCacheNode,currentFlightRouterState,nextUrl,freshnessPolicy,scrollBehavior,navigateType){let now=Date.now(),href=url.href,cacheKey=(0,_cachekey.createCacheKey)(href,nextUrl),route=(0,_cache.readRouteCacheEntry)(now,cacheKey);if(null!==route&&route.status===_cache.EntryStatus.Fulfilled)return navigateUsingPrefetchedRouteTree(now,state,url,currentUrl,currentRenderedSearch,nextUrl,currentCacheNode,currentFlightRouterState,freshnessPolicy,scrollBehavior,navigateType,route);if(null===route||route.status!==_cache.EntryStatus.Rejected){let optimisticRoute=(0,_cache.deprecated_requestOptimisticRouteCacheEntry)(now,url,nextUrl);if(null!==optimisticRoute)return navigateUsingPrefetchedRouteTree(now,state,url,currentUrl,currentRenderedSearch,nextUrl,currentCacheNode,currentFlightRouterState,freshnessPolicy,scrollBehavior,navigateType,optimisticRoute)}return navigateToUnknownRoute(now,state,url,currentUrl,currentRenderedSearch,nextUrl,currentCacheNode,currentFlightRouterState,freshnessPolicy,scrollBehavior,navigateType).catch(()=>state)}function navigateToKnownRoute(now,state,url,canonicalUrl,navigationSeed,currentUrl,currentRenderedSearch,currentCacheNode,currentFlightRouterState,freshnessPolicy,nextUrl,scrollBehavior,navigateType,debugInfo,routeCacheEntry){let accumulation={separateRefreshUrls:null,scrollRef:null},isSamePageNavigation=url.href===currentUrl.href,task=(0,_pprnavigations.startPPRNavigation)(now,currentUrl,currentRenderedSearch,currentCacheNode,currentFlightRouterState,navigationSeed.routeTree,navigationSeed.metadataVaryPath,freshnessPolicy,navigationSeed.data,navigationSeed.head,navigationSeed.dynamicStaleAt,isSamePageNavigation,accumulation);return null!==task?(freshnessPolicy!==_pprnavigations.FreshnessPolicy.Gesture&&(0,_pprnavigations.spawnDynamicRequests)(task,url,nextUrl,freshnessPolicy,accumulation,routeCacheEntry,navigateType),completeSoftNavigation(state,url,nextUrl,task.route,task.node,navigationSeed.renderedSearch,canonicalUrl,navigateType,scrollBehavior,accumulation.scrollRef,debugInfo)):completeHardNavigation(state,url,navigateType)}function navigateUsingPrefetchedRouteTree(now,state,url,currentUrl,currentRenderedSearch,nextUrl,currentCacheNode,currentFlightRouterState,freshnessPolicy,scrollBehavior,navigateType,route){let routeTree=route.tree,canonicalUrl=route.canonicalUrl+url.hash,prefetchSeed={renderedSearch:route.renderedSearch,routeTree,metadataVaryPath:route.metadata.varyPath,data:null,head:null,dynamicStaleAt:(0,_bfcache.computeDynamicStaleAt)(now,_bfcache.UnknownDynamicStaleTime)};return navigateToKnownRoute(now,state,url,canonicalUrl,prefetchSeed,currentUrl,currentRenderedSearch,currentCacheNode,currentFlightRouterState,freshnessPolicy,nextUrl,scrollBehavior,navigateType,null,route)}let DynamicRequestTreeForEntireRoute=["",{},null,"refetch"];async function navigateToUnknownRoute(now,state,url,currentUrl,currentRenderedSearch,nextUrl,currentCacheNode,currentFlightRouterState,freshnessPolicy,scrollBehavior,navigateType){let dynamicRequestTree;switch(freshnessPolicy){case _pprnavigations.FreshnessPolicy.Default:case _pprnavigations.FreshnessPolicy.HistoryTraversal:case _pprnavigations.FreshnessPolicy.Gesture:dynamicRequestTree=currentFlightRouterState;break;case _pprnavigations.FreshnessPolicy.Hydration:case _pprnavigations.FreshnessPolicy.RefreshAll:case _pprnavigations.FreshnessPolicy.HMRRefresh:dynamicRequestTree=DynamicRequestTreeForEntireRoute;break;default:dynamicRequestTree=currentFlightRouterState}let promiseForDynamicServerResponse=(0,_fetchserverresponse.fetchServerResponse)(url,{flightRouterState:dynamicRequestTree,nextUrl}),result=await promiseForDynamicServerResponse;if("string"==typeof result)return completeHardNavigation(state,new URL(result,location.origin),navigateType);let{flightData,canonicalUrl,renderedSearch,couldBeIntercepted,supportsPerSegmentPrefetching,dynamicStaleTime,staticStageData,runtimePrefetchStream,responseHeaders,debugInfo}=result,navigationSeed=convertServerPatchToFullTree(now,currentFlightRouterState,flightData,renderedSearch,dynamicStaleTime),metadataVaryPath=navigationSeed.metadataVaryPath;if(null!==metadataVaryPath){if((0,_optimisticroutes.discoverKnownRoute)(now,url.pathname,nextUrl,null,navigationSeed.routeTree,metadataVaryPath,couldBeIntercepted,(0,_createhreffromurl.createHrefFromUrl)(canonicalUrl),supportsPerSegmentPrefetching,!1),null!==staticStageData){let{response:staticStageResponse,isResponsePartial}=staticStageData;(0,_cache.getStaleAt)(now,staticStageResponse.s).then(staleAt=>{let buildId=responseHeaders.get(_constants.NEXT_NAV_DEPLOYMENT_ID_HEADER)??staticStageResponse.b;(0,_cache.writeStaticStageResponseIntoCache)(now,staticStageResponse.f,buildId,staticStageResponse.h,staleAt,currentFlightRouterState,renderedSearch,isResponsePartial)}).catch(()=>{})}null!==runtimePrefetchStream&&(0,_cache.processRuntimePrefetchStream)(now,runtimePrefetchStream,currentFlightRouterState,renderedSearch).then(processed=>{null!==processed&&(0,_cache.writeDynamicRenderResponseIntoCache)(now,_types.FetchStrategy.PPRRuntime,processed.flightDatas,processed.buildId,processed.isResponsePartial,processed.headVaryParams,processed.staleAt,processed.navigationSeed,null)}).catch(()=>{})}return navigateToKnownRoute(now,state,url,(0,_createhreffromurl.createHrefFromUrl)(canonicalUrl),navigationSeed,currentUrl,currentRenderedSearch,currentCacheNode,currentFlightRouterState,freshnessPolicy,nextUrl,scrollBehavior,navigateType,debugInfo,null)}function completeHardNavigation(state,url,navigateType){return(0,_javascripturl.isJavaScriptURLString)(url.href)?(console.error("Next.js has blocked a javascript: URL as a security precaution."),state):{canonicalUrl:url.origin===location.origin?(0,_createhreffromurl.createHrefFromUrl)(url):url.href,pushRef:{pendingPush:"push"===navigateType,mpaNavigation:!0,preserveCustomHistoryState:!1},renderedSearch:state.renderedSearch,focusAndScrollRef:state.focusAndScrollRef,cache:state.cache,tree:state.tree,nextUrl:state.nextUrl,previousNextUrl:state.previousNextUrl,debugInfo:null}}function completeSoftNavigation(oldState,url,referringNextUrl,tree,cache,renderedSearch,canonicalUrl,navigateType,scrollBehavior,scrollRef,collectedDebugInfo){let activeScrollRef,forceScroll,nextUrlForNewRoute=(0,_computechangedpath.computeChangedPath)(oldState.tree,tree)||oldState.nextUrl,oldUrl=new URL(oldState.canonicalUrl,url),onlyHashChange=url.pathname===oldUrl.pathname&&url.search===oldUrl.search&&url.hash!==oldUrl.hash;if(scrollBehavior===_routerreducertypes.ScrollBehavior.NoScroll)null!==scrollRef&&(scrollRef.current=!1),activeScrollRef=oldState.focusAndScrollRef.scrollRef,forceScroll=!1;else if(onlyHashChange){let oldScrollRef=oldState.focusAndScrollRef.scrollRef;null!==oldScrollRef&&(oldScrollRef.current=!1),null!==scrollRef&&(scrollRef.current=!1),activeScrollRef={current:!0},forceScroll=!0}else{if(activeScrollRef=scrollRef,null!==scrollRef){let oldScrollRef=oldState.focusAndScrollRef.scrollRef;null!==oldScrollRef&&(oldScrollRef.current=!1)}forceScroll=!1}return{canonicalUrl,renderedSearch,pushRef:{pendingPush:"push"===navigateType,mpaNavigation:!1,preserveCustomHistoryState:!1},focusAndScrollRef:{scrollRef:activeScrollRef,forceScroll,onlyHashChange,hashFragment:scrollBehavior!==_routerreducertypes.ScrollBehavior.NoScroll&&""!==url.hash?decodeURIComponent(url.hash.slice(1)):oldState.focusAndScrollRef.hashFragment},cache,tree,nextUrl:nextUrlForNewRoute,previousNextUrl:referringNextUrl,debugInfo:collectedDebugInfo}}function completeTraverseNavigation(state,url,renderedSearch,cache,tree,nextUrl){return{canonicalUrl:(0,_createhreffromurl.createHrefFromUrl)(url),renderedSearch,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:state.focusAndScrollRef,cache,tree,nextUrl,previousNextUrl:null,debugInfo:null}}function convertServerPatchToFullTree(now,currentTree,flightData,renderedSearch,dynamicStaleTimeSeconds){let baseTree=currentTree,baseData=null,head=null;if(null!==flightData)for(let{segmentPath,tree:treePatch,seedData:dataPatch,head:headPatch}of flightData){let result=convertServerPatchToFullTreeImpl(baseTree,baseData,treePatch,dataPatch,segmentPath,renderedSearch,0);baseTree=result.tree,baseData=result.data,head=headPatch}let finalFlightRouterState=baseTree,acc={metadataVaryPath:null};return{routeTree:(0,_cache.convertRootFlightRouterStateToRouteTree)(finalFlightRouterState,renderedSearch,acc),metadataVaryPath:acc.metadataVaryPath,data:baseData,renderedSearch,head,dynamicStaleAt:(0,_bfcache.computeDynamicStaleAt)(now,dynamicStaleTimeSeconds)}}function convertServerPatchToFullTreeImpl(baseRouterState,baseData,treePatch,dataPatch,segmentPath,renderedSearch,index){let clonedTree;if(index===segmentPath.length)return{tree:treePatch,data:dataPatch};let updatedParallelRouteKey=segmentPath[index],baseTreeChildren=baseRouterState[1],baseSeedDataChildren=null!==baseData?baseData[1]:null,newTreeChildren={},newSeedDataChildren={};for(let parallelRouteKey in baseTreeChildren){let childBaseRouterState=baseTreeChildren[parallelRouteKey],childBaseSeedData=null!==baseSeedDataChildren?baseSeedDataChildren[parallelRouteKey]??null:null;if(parallelRouteKey===updatedParallelRouteKey){let result=convertServerPatchToFullTreeImpl(childBaseRouterState,childBaseSeedData,treePatch,dataPatch,segmentPath,renderedSearch,index+2);newTreeChildren[parallelRouteKey]=result.tree,newSeedDataChildren[parallelRouteKey]=result.data}else newTreeChildren[parallelRouteKey]=childBaseRouterState,newSeedDataChildren[parallelRouteKey]=childBaseSeedData}if(clonedTree=[baseRouterState[0],newTreeChildren],2 in baseRouterState){let compressedRefreshState=baseRouterState[2];null!=compressedRefreshState&&(clonedTree[2]=[compressedRefreshState[0],renderedSearch])}return 3 in baseRouterState&&(clonedTree[3]=baseRouterState[3]),4 in baseRouterState&&(clonedTree[4]=baseRouterState[4]),{tree:clonedTree,data:[null,newSeedDataChildren,null,!0,null]}}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},24503,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{DYNAMIC_STALETIME_MS:function(){return DYNAMIC_STALETIME_MS},STATIC_STALETIME_MS:function(){return STATIC_STALETIME_MS},navigateReducer:function(){return navigateReducer}});let _navigation=__turbopack_context__.r(94206),_cache=__turbopack_context__.r(69776),_pprnavigations=__turbopack_context__.r(68250),DYNAMIC_STALETIME_MS=1e3*Number("0"),STATIC_STALETIME_MS=(0,_cache.getStaleTimeMs)(Number("300"));function navigateReducer(state,action){let{url,isExternalUrl,navigateType,scrollBehavior}=action;if(isExternalUrl||document.getElementById("__next-page-redirect"))return(0,_navigation.completeHardNavigation)(state,url,navigateType);let currentUrl=new URL(state.canonicalUrl,location.origin),currentRenderedSearch=state.renderedSearch;return(0,_navigation.navigate)(state,url,currentUrl,currentRenderedSearch,state.cache,state.tree,state.nextUrl,_pprnavigations.FreshnessPolicy.Default,scrollBehavior,navigateType)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},41778,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"hasInterceptionRouteInCurrentTree",{enumerable:!0,get:function(){return hasInterceptionRouteInCurrentTree}});let _interceptionroutes=__turbopack_context__.r(76288);function hasInterceptionRouteInCurrentTree([segment,parallelRoutes]){if(Array.isArray(segment)&&("di(..)(..)"===segment[2]||"ci(..)(..)"===segment[2]||"di(.)"===segment[2]||"ci(.)"===segment[2]||"di(..)"===segment[2]||"ci(..)"===segment[2]||"di(...)"===segment[2]||"ci(...)"===segment[2])||"string"==typeof segment&&(0,_interceptionroutes.isInterceptionRouteAppPath)(segment))return!0;if(parallelRoutes){for(let key in parallelRoutes)if(hasInterceptionRouteInCurrentTree(parallelRoutes[key]))return!0}return!1}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},14132,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{refreshDynamicData:function(){return refreshDynamicData},refreshReducer:function(){return refreshReducer}});let _routerreducertypes=__turbopack_context__.r(33254),_navigation=__turbopack_context__.r(94206),_cache=__turbopack_context__.r(69776),_hasinterceptionrouteincurrenttree=__turbopack_context__.r(41778),_pprnavigations=__turbopack_context__.r(68250),_bfcache=__turbopack_context__.r(97705);function refreshReducer(state,action){{let currentNextUrl=state.nextUrl,currentRouterState=state.tree;(0,_cache.invalidateSegmentCacheEntries)(currentNextUrl,currentRouterState)}return refreshDynamicData(state,_pprnavigations.FreshnessPolicy.RefreshAll)}function refreshDynamicData(state,freshnessPolicy){(0,_bfcache.invalidateBfCache)();let currentNextUrl=state.nextUrl,nextUrlForRefresh=(0,_hasinterceptionrouteincurrenttree.hasInterceptionRouteInCurrentTree)(state.tree)?state.previousNextUrl||currentNextUrl:null,currentCanonicalUrl=state.canonicalUrl,currentUrl=new URL(currentCanonicalUrl,location.origin),currentRenderedSearch=state.renderedSearch,currentFlightRouterState=state.tree,scrollBehavior=_routerreducertypes.ScrollBehavior.NoScroll,now=Date.now(),refreshSeed=(0,_navigation.convertServerPatchToFullTree)(now,currentFlightRouterState,null,currentRenderedSearch,_bfcache.UnknownDynamicStaleTime);return(0,_navigation.navigateToKnownRoute)(now,state,currentUrl,currentCanonicalUrl,refreshSeed,currentUrl,currentRenderedSearch,state.cache,currentFlightRouterState,freshnessPolicy,nextUrlForRefresh,scrollBehavior,"replace",null,null)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},8481,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"serverPatchReducer",{enumerable:!0,get:function(){return serverPatchReducer}});let _createhreffromurl=__turbopack_context__.r(8204),_routerreducertypes=__turbopack_context__.r(33254),_navigation=__turbopack_context__.r(94206),_refreshreducer=__turbopack_context__.r(14132),_pprnavigations=__turbopack_context__.r(68250);function serverPatchReducer(state,action){let retryMpa=action.mpa,retryUrl=new URL(action.url,location.origin),retrySeed=action.seed,navigateType=action.navigateType;if(retryMpa||null===retrySeed)return(0,_navigation.completeHardNavigation)(state,retryUrl,navigateType);let currentUrl=new URL(state.canonicalUrl,location.origin),currentRenderedSearch=state.renderedSearch;if(action.previousTree!==state.tree)return(0,_refreshreducer.refreshReducer)(state,{type:_routerreducertypes.ACTION_REFRESH});let retryCanonicalUrl=(0,_createhreffromurl.createHrefFromUrl)(retryUrl),retryNextUrl=action.nextUrl,scrollBehavior=_routerreducertypes.ScrollBehavior.Default,now=Date.now();return(0,_navigation.navigateToKnownRoute)(now,state,retryUrl,retryCanonicalUrl,retrySeed,currentUrl,currentRenderedSearch,state.cache,state.tree,_pprnavigations.FreshnessPolicy.RefreshAll,retryNextUrl,scrollBehavior,navigateType,null,null)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},89954,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"restoreReducer",{enumerable:!0,get:function(){return restoreReducer}});let _computechangedpath=__turbopack_context__.r(4967),_pprnavigations=__turbopack_context__.r(68250),_navigation=__turbopack_context__.r(94206),_bfcache=__turbopack_context__.r(97705);function restoreReducer(state,action){let treeToRestore,renderedSearch,historyState=action.historyState;historyState?(treeToRestore=historyState.tree,renderedSearch=historyState.renderedSearch):(treeToRestore=state.tree,renderedSearch=state.renderedSearch);let currentUrl=new URL(state.canonicalUrl,location.origin),restoredUrl=action.url,restoredNextUrl=(0,_computechangedpath.extractPathFromFlightRouterState)(treeToRestore)??restoredUrl.pathname,now=Date.now(),accumulation={separateRefreshUrls:null,scrollRef:null},restoreSeed=(0,_navigation.convertServerPatchToFullTree)(now,treeToRestore,null,renderedSearch,_bfcache.UnknownDynamicStaleTime),task=(0,_pprnavigations.startPPRNavigation)(now,currentUrl,state.renderedSearch,state.cache,state.tree,restoreSeed.routeTree,restoreSeed.metadataVaryPath,_pprnavigations.FreshnessPolicy.HistoryTraversal,null,null,restoreSeed.dynamicStaleAt,!1,accumulation);return null===task?(0,_navigation.completeHardNavigation)(state,restoredUrl,"replace"):((0,_pprnavigations.spawnDynamicRequests)(task,restoredUrl,restoredNextUrl,_pprnavigations.FreshnessPolicy.HistoryTraversal,accumulation,null,"replace"),(0,_navigation.completeTraverseNavigation)(state,restoredUrl,renderedSearch,task.node,task.route,restoredNextUrl))}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},34614,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"hmrRefreshReducer",{enumerable:!0,get:function(){return hmrRefreshReducer}});let _refreshreducer=__turbopack_context__.r(14132),_pprnavigations=__turbopack_context__.r(68250);function hmrRefreshReducer(state){return(0,_refreshreducer.refreshDynamicData)(state,_pprnavigations.FreshnessPolicy.HMRRefresh)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},14235,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{UnrecognizedActionError:function(){return UnrecognizedActionError},unstable_isUnrecognizedActionError:function(){return unstable_isUnrecognizedActionError}});class UnrecognizedActionError extends Error{constructor(...args){super(...args),this.name="UnrecognizedActionError"}}function unstable_isUnrecognizedActionError(error){return!!(error&&"object"==typeof error&&error instanceof UnrecognizedActionError)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},23473,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"assignLocation",{enumerable:!0,get:function(){return assignLocation}});let _addbasepath=__turbopack_context__.r(19546);function assignLocation(location1,url){if(location1.startsWith(".")){let urlBase=url.origin+url.pathname;return new URL((urlBase.endsWith("/")?urlBase:urlBase+"/")+location1)}return new URL((0,_addbasepath.addBasePath)(location1),url.href)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},79415,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return actionAsyncStorageInstance}});let actionAsyncStorageInstance=(0,__turbopack_context__.r(286).createAsyncLocalStorage)()},85602,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"actionAsyncStorage",{enumerable:!0,get:function(){return _actionasyncstorageinstance.actionAsyncStorageInstance}});let _actionasyncstorageinstance=__turbopack_context__.r(79415)},70608,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{getRedirectError:function(){return getRedirectError},getRedirectStatusCodeFromError:function(){return getRedirectStatusCodeFromError},getRedirectTypeFromError:function(){return getRedirectTypeFromError},getURLFromRedirectError:function(){return getURLFromRedirectError},permanentRedirect:function(){return permanentRedirect},redirect:function(){return redirect}});let _redirectstatuscode=__turbopack_context__.r(76294),_redirecterror=__turbopack_context__.r(7244),actionAsyncStorage="u"<typeof window?__turbopack_context__.r(85602).actionAsyncStorage:void 0;function getRedirectError(url,type,statusCode=_redirectstatuscode.RedirectStatusCode.TemporaryRedirect){let error=Object.defineProperty(Error(_redirecterror.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return error.digest=`${_redirecterror.REDIRECT_ERROR_CODE};${type};${url};${statusCode};`,error}function redirect(url,type){throw getRedirectError(url,type??=actionAsyncStorage?.getStore()?.isAction?"push":"replace",_redirectstatuscode.RedirectStatusCode.TemporaryRedirect)}function permanentRedirect(url,type="replace"){throw getRedirectError(url,type,_redirectstatuscode.RedirectStatusCode.PermanentRedirect)}function getURLFromRedirectError(error){return(0,_redirecterror.isRedirectError)(error)?error.digest.split(";").slice(2,-2).join(";"):null}function getRedirectTypeFromError(error){if(!(0,_redirecterror.isRedirectError)(error))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return error.digest.split(";",2)[1]}function getRedirectStatusCodeFromError(error){if(!(0,_redirecterror.isRedirectError)(error))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(error.digest.split(";").at(-2))}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},30624,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"pathHasPrefix",{enumerable:!0,get:function(){return pathHasPrefix}});let _parsepath=__turbopack_context__.r(62826);function pathHasPrefix(path,prefix){if("string"!=typeof path)return!1;let{pathname}=(0,_parsepath.parsePath)(path);return pathname===prefix||pathname.startsWith(prefix+"/")}},59336,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"hasBasePath",{enumerable:!0,get:function(){return hasBasePath}});let _pathhasprefix=__turbopack_context__.r(30624);function hasBasePath(path){return(0,_pathhasprefix.pathHasPrefix)(path,"")}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},60034,(__turbopack_context__,module,exports)=>{"use strict";function removeBasePath(path){return path}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"removeBasePath",{enumerable:!0,get:function(){return removeBasePath}}),__turbopack_context__.r(59336),("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},62168,(__turbopack_context__,module,exports)=>{"use strict";function extractInfoFromServerReferenceId(id){let infoByte=parseInt(id.slice(0,2),16),argMask=infoByte>>1&63,usedArgs=Array(6);for(let index=0;index<6;index++){let bit=argMask>>5-index&1;usedArgs[index]=1===bit}return{type:1==(infoByte>>7&1)?"use-cache":"server-action",usedArgs:usedArgs,hasRestArgs:1==(1&infoByte)}}function omitUnusedArgs(args,info){let filteredArgs=Array(args.length),length=0;for(let index=0;index<args.length;index++)(index<6&&info.usedArgs[index]||index>=6&&info.hasRestArgs)&&(filteredArgs[index]=args[index],length=index+1);return filteredArgs.length=length,filteredArgs}Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{extractInfoFromServerReferenceId:function(){return extractInfoFromServerReferenceId},omitUnusedArgs:function(){return omitUnusedArgs}})},78817,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{ActionDidNotRevalidate:function(){return ActionDidNotRevalidate},ActionDidRevalidateDynamicOnly:function(){return ActionDidRevalidateDynamicOnly},ActionDidRevalidateStaticAndDynamic:function(){return ActionDidRevalidateStaticAndDynamic}});let ActionDidNotRevalidate=0,ActionDidRevalidateStaticAndDynamic=1,ActionDidRevalidateDynamicOnly=2},48866,(__turbopack_context__,module,exports)=>{"use strict";let createDebugChannel;Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"serverActionReducer",{enumerable:!0,get:function(){return serverActionReducer}});let _appcallserver=__turbopack_context__.r(69147),_appfindsourcemapurl=__turbopack_context__.r(15679),_approuterheaders=__turbopack_context__.r(46724),_unrecognizedactionerror=__turbopack_context__.r(14235),_client=__turbopack_context__.r(89530),_routerreducertypes=__turbopack_context__.r(33254),_assignlocation=__turbopack_context__.r(23473),_createhreffromurl=__turbopack_context__.r(8204),_hasinterceptionrouteincurrenttree=__turbopack_context__.r(41778),_flightdatahelpers=__turbopack_context__.r(85018),_redirect=__turbopack_context__.r(70608),_removebasepath=__turbopack_context__.r(60034),_hasbasepath=__turbopack_context__.r(59336),_serverreferenceinfo=__turbopack_context__.r(62168),_cache=__turbopack_context__.r(69776),_scheduler=__turbopack_context__.r(6600),_deploymentid=__turbopack_context__.r(49352),_navigationbuildid=__turbopack_context__.r(50567),_constants=__turbopack_context__.r(80082),_navigation=__turbopack_context__.r(94206),_optimisticroutes=__turbopack_context__.r(50616),_actionrevalidationkind=__turbopack_context__.r(78817),_approuterutils=__turbopack_context__.r(15335),_pprnavigations=__turbopack_context__.r(68250),_fetchserverresponse=__turbopack_context__.r(43039),_bfcache=__turbopack_context__.r(97705),createFromFetch=_client.createFromFetch;async function fetchServerAction(state,nextUrl,{actionId,actionArgs}){let redirectType,actionResult,actionFlightData,actionFlightDataRenderedSearch,temporaryReferences=(0,_client.createTemporaryReferenceSet)(),info=(0,_serverreferenceinfo.extractInfoFromServerReferenceId)(actionId),usedArgs=(0,_serverreferenceinfo.omitUnusedArgs)(actionArgs,info),body=await (0,_client.encodeReply)(usedArgs,{temporaryReferences}),headers={Accept:_approuterheaders.RSC_CONTENT_TYPE_HEADER,[_approuterheaders.ACTION_HEADER]:actionId,[_approuterheaders.NEXT_ROUTER_STATE_TREE_HEADER]:(0,_flightdatahelpers.prepareFlightRouterStateForRequest)(state.tree)},deploymentId=(0,_deploymentid.getDeploymentId)();deploymentId&&(headers["x-deployment-id"]=deploymentId),nextUrl&&(headers[_approuterheaders.NEXT_URL]=nextUrl);let res=await fetch(state.canonicalUrl,{method:"POST",headers,body});if("1"===res.headers.get(_approuterheaders.NEXT_ACTION_NOT_FOUND_HEADER))throw Object.defineProperty(new _unrecognizedactionerror.UnrecognizedActionError(`Server Action "${actionId}" was not found on the server.
Read more: https://nextjs.org/docs/messages/failed-to-find-server-action`),"__NEXT_ERROR_CODE",{value:"E715",enumerable:!1,configurable:!0});let redirectHeader=res.headers.get("x-action-redirect"),[location1,_redirectType]=redirectHeader?.split(";")||[];switch(_redirectType){case"push":redirectType="push";break;case"replace":redirectType="replace";break;default:redirectType=void 0}let isPrerender=!!res.headers.get(_approuterheaders.NEXT_IS_PRERENDER_HEADER),revalidationKind=_actionrevalidationkind.ActionDidNotRevalidate;try{let revalidationHeader=res.headers.get("x-action-revalidated");if(revalidationHeader){let parsedKind=JSON.parse(revalidationHeader);(parsedKind===_actionrevalidationkind.ActionDidRevalidateStaticAndDynamic||parsedKind===_actionrevalidationkind.ActionDidRevalidateDynamicOnly)&&(revalidationKind=parsedKind)}}catch{}let redirectLocation=location1?(0,_assignlocation.assignLocation)(location1,new URL(state.canonicalUrl,window.location.href)):void 0,contentType=res.headers.get("content-type"),isRscResponse=!!(contentType&&contentType.startsWith(_approuterheaders.RSC_CONTENT_TYPE_HEADER));if(!isRscResponse&&!redirectLocation)throw Object.defineProperty(Error(res.status>=400&&"text/plain"===contentType?await res.text():"An unexpected response was received from the server."),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});let couldBeIntercepted=!1;if(isRscResponse){let responsePromise=redirectLocation?(0,_fetchserverresponse.processFetch)(res).then(({response:r})=>r):Promise.resolve(res),response=await createFromFetch(responsePromise,{callServer:_appcallserver.callServer,findSourceMapURL:_appfindsourcemapurl.findSourceMapURL,temporaryReferences,debugChannel:createDebugChannel&&createDebugChannel(headers)});actionResult=redirectLocation?void 0:response.a,couldBeIntercepted=response.i;let responseBuildId=res.headers.get(_constants.NEXT_NAV_DEPLOYMENT_ID_HEADER)??response.b;if(void 0!==responseBuildId&&responseBuildId!==(0,_navigationbuildid.getNavigationBuildId)());else{let maybeFlightData=(0,_flightdatahelpers.normalizeFlightData)(response.f);""!==maybeFlightData&&(actionFlightData=maybeFlightData,actionFlightDataRenderedSearch=response.q)}}else actionResult=void 0,actionFlightData=void 0,actionFlightDataRenderedSearch=void 0;return{actionResult,actionFlightData,actionFlightDataRenderedSearch,redirectLocation,redirectType,revalidationKind,isPrerender,couldBeIntercepted}}function serverActionReducer(state,action){let{resolve,reject}=action,nextUrl=(state.previousNextUrl||state.nextUrl)&&(0,_hasinterceptionrouteincurrenttree.hasInterceptionRouteInCurrentTree)(state.tree)?state.previousNextUrl||state.nextUrl:null;return fetchServerAction(state,nextUrl,action).then(async({revalidationKind,actionResult,actionFlightData:flightData,actionFlightDataRenderedSearch:flightDataRenderedSearch,redirectLocation,redirectType,isPrerender,couldBeIntercepted})=>{revalidationKind!==_actionrevalidationkind.ActionDidNotRevalidate&&((0,_bfcache.invalidateBfCache)(),action.didRevalidate=!0,revalidationKind===_actionrevalidationkind.ActionDidRevalidateStaticAndDynamic&&(0,_cache.invalidateEntirePrefetchCache)(nextUrl,state.tree),(0,_scheduler.startRevalidationCooldown)());let navigateType=redirectType||"push";if(void 0!==redirectLocation)if((0,_approuterutils.isExternalURL)(redirectLocation))return reject(createRedirectErrorForAction(redirectLocation.href,navigateType)),(0,_navigation.completeHardNavigation)(state,redirectLocation,navigateType);else{let redirectWithBasepath=(0,_createhreffromurl.createHrefFromUrl)(redirectLocation,!1);reject(createRedirectErrorForAction((0,_hasbasepath.hasBasePath)(redirectWithBasepath)?(0,_removebasepath.removeBasePath)(redirectWithBasepath):redirectWithBasepath,navigateType))}else resolve(actionResult);if(void 0===redirectLocation&&revalidationKind===_actionrevalidationkind.ActionDidNotRevalidate&&void 0===flightData)return state;if(void 0===flightData&&void 0!==redirectLocation)return(0,_navigation.completeHardNavigation)(state,redirectLocation,navigateType);if("string"==typeof flightData)return(0,_navigation.completeHardNavigation)(state,new URL(flightData,location.origin),navigateType);let currentUrl=new URL(state.canonicalUrl,location.origin),currentRenderedSearch=state.renderedSearch,redirectUrl=void 0!==redirectLocation?redirectLocation:currentUrl,currentFlightRouterState=state.tree,scrollBehavior=_routerreducertypes.ScrollBehavior.Default,freshnessPolicy=revalidationKind===_actionrevalidationkind.ActionDidNotRevalidate?_pprnavigations.FreshnessPolicy.Default:_pprnavigations.FreshnessPolicy.RefreshAll;if(void 0!==flightData&&void 0!==flightDataRenderedSearch){let redirectCanonicalUrl=(0,_createhreffromurl.createHrefFromUrl)(redirectUrl),now=Date.now(),redirectSeed=(0,_navigation.convertServerPatchToFullTree)(now,currentFlightRouterState,flightData,flightDataRenderedSearch,_bfcache.UnknownDynamicStaleTime),metadataVaryPath=redirectSeed.metadataVaryPath;return null!==metadataVaryPath&&(0,_optimisticroutes.discoverKnownRoute)(now,redirectUrl.pathname,nextUrl,null,redirectSeed.routeTree,metadataVaryPath,couldBeIntercepted,redirectCanonicalUrl,isPrerender,!1),(0,_navigation.navigateToKnownRoute)(now,state,redirectUrl,redirectCanonicalUrl,redirectSeed,currentUrl,currentRenderedSearch,state.cache,currentFlightRouterState,freshnessPolicy,nextUrl,scrollBehavior,navigateType,null,null)}return(0,_navigation.navigate)(state,redirectUrl,currentUrl,currentRenderedSearch,state.cache,currentFlightRouterState,nextUrl,freshnessPolicy,scrollBehavior,navigateType)},e=>(reject(e),state))}function createRedirectErrorForAction(redirectHref,resolvedRedirectType){let redirectError=(0,_redirect.getRedirectError)(redirectHref,resolvedRedirectType);return redirectError.handled=!0,redirectError}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},76197,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"reducer",{enumerable:!0,get:function(){return reducer}});let _routerreducertypes=__turbopack_context__.r(33254),_navigatereducer=__turbopack_context__.r(24503),_serverpatchreducer=__turbopack_context__.r(8481),_restorereducer=__turbopack_context__.r(89954),_refreshreducer=__turbopack_context__.r(14132),_hmrrefreshreducer=__turbopack_context__.r(34614),_serveractionreducer=__turbopack_context__.r(48866);function clientReducer(state,action){switch(action.type){case _routerreducertypes.ACTION_NAVIGATE:return(0,_navigatereducer.navigateReducer)(state,action);case _routerreducertypes.ACTION_SERVER_PATCH:return(0,_serverpatchreducer.serverPatchReducer)(state,action);case _routerreducertypes.ACTION_RESTORE:return(0,_restorereducer.restoreReducer)(state,action);case _routerreducertypes.ACTION_REFRESH:return(0,_refreshreducer.refreshReducer)(state,action);case _routerreducertypes.ACTION_HMR_REFRESH:return(0,_hmrrefreshreducer.hmrRefreshReducer)(state);case _routerreducertypes.ACTION_SERVER_ACTION:return(0,_serveractionreducer.serverActionReducer)(state,action);default:throw Object.defineProperty(Error("Unknown action"),"__NEXT_ERROR_CODE",{value:"E295",enumerable:!1,configurable:!0})}}function serverReducer(state,_action){return state}let reducer="u"<typeof window?serverReducer:clientReducer;("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},4219,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"prefetch",{enumerable:!0,get:function(){return prefetch}});let _approuterutils=__turbopack_context__.r(15335),_cachekey=__turbopack_context__.r(48111),_scheduler=__turbopack_context__.r(6600),_types=__turbopack_context__.r(19012);function prefetch(href,nextUrl,treeAtTimeOfPrefetch,fetchStrategy,onInvalidate){let url=(0,_approuterutils.createPrefetchURL)(href);if(null===url)return;let cacheKey=(0,_cachekey.createCacheKey)(url.href,nextUrl);(0,_scheduler.schedulePrefetchTask)(cacheKey,treeAtTimeOfPrefetch,fetchStrategy,_types.PrefetchPriority.Default,onInvalidate)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},22283,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{createMutableActionQueue:function(){return createMutableActionQueue},dispatchNavigateAction:function(){return dispatchNavigateAction},dispatchTraverseAction:function(){return dispatchTraverseAction},getCurrentAppRouterState:function(){return getCurrentAppRouterState},publicAppRouterInstance:function(){return publicAppRouterInstance}});let _routerreducertypes=__turbopack_context__.r(33254),_routerreducer=__turbopack_context__.r(76197),_react=__turbopack_context__.r(66626),_isthenable=__turbopack_context__.r(9710),_types=__turbopack_context__.r(19012),_prefetch=__turbopack_context__.r(4219);__turbopack_context__.r(94206);let _useactionqueue=__turbopack_context__.r(36495);__turbopack_context__.r(50616),__turbopack_context__.r(68250);let _addbasepath=__turbopack_context__.r(19546),_approuterutils=__turbopack_context__.r(15335),_links=__turbopack_context__.r(51193),_javascripturl=__turbopack_context__.r(72952);function runRemainingActions(actionQueue,setState){null!==actionQueue.pending?(actionQueue.pending=actionQueue.pending.next,null!==actionQueue.pending&&runAction({actionQueue,action:actionQueue.pending,setState})):actionQueue.needsRefresh&&(actionQueue.needsRefresh=!1,actionQueue.dispatch({type:_routerreducertypes.ACTION_REFRESH},setState))}async function runAction({actionQueue,action,setState}){let prevState=actionQueue.state;actionQueue.pending=action;let payload=action.payload,actionResult=actionQueue.action(prevState,payload);function handleResult(nextState){if(action.discarded){action.payload.type===_routerreducertypes.ACTION_SERVER_ACTION&&action.payload.didRevalidate&&(actionQueue.needsRefresh=!0),runRemainingActions(actionQueue,setState);return}actionQueue.state=nextState,runRemainingActions(actionQueue,setState),action.resolve(nextState)}(0,_isthenable.isThenable)(actionResult)?actionResult.then(handleResult,err=>{runRemainingActions(actionQueue,setState),action.reject(err)}):handleResult(actionResult)}function dispatchAction(actionQueue,payload,setState){let resolvers={resolve:setState,reject:()=>{}};if(payload.type!==_routerreducertypes.ACTION_RESTORE){let deferredPromise=new Promise((resolve,reject)=>{resolvers={resolve,reject}});(0,_react.startTransition)(()=>{setState(deferredPromise)})}let newAction={payload,next:null,resolve:resolvers.resolve,reject:resolvers.reject};null===actionQueue.pending?(actionQueue.last=newAction,runAction({actionQueue,action:newAction,setState})):payload.type===_routerreducertypes.ACTION_NAVIGATE||payload.type===_routerreducertypes.ACTION_RESTORE?(actionQueue.pending.discarded=!0,newAction.next=actionQueue.pending.next,runAction({actionQueue,action:newAction,setState})):(null!==actionQueue.last&&(actionQueue.last.next=newAction),actionQueue.last=newAction)}let globalActionQueue=null;function createMutableActionQueue(initialState,instrumentationHooks){let actionQueue={state:initialState,dispatch:(payload,setState)=>dispatchAction(actionQueue,payload,setState),action:async(state,action)=>(0,_routerreducer.reducer)(state,action),pending:null,last:null,onRouterTransitionStart:null!==instrumentationHooks&&"function"==typeof instrumentationHooks.onRouterTransitionStart?instrumentationHooks.onRouterTransitionStart:null};if("u">typeof window){if(null!==globalActionQueue)throw Object.defineProperty(Error("Internal Next.js Error: createMutableActionQueue was called more than once"),"__NEXT_ERROR_CODE",{value:"E624",enumerable:!1,configurable:!0});globalActionQueue=actionQueue}return actionQueue}function getCurrentAppRouterState(){return null!==globalActionQueue?globalActionQueue.state:null}function getAppRouterActionQueue(){if(null===globalActionQueue)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});return globalActionQueue}function getProfilingHookForOnNavigationStart(){return null!==globalActionQueue?globalActionQueue.onRouterTransitionStart:null}function dispatchNavigateAction(href,navigateType,scrollBehavior,linkInstanceRef,transitionTypes){if(transitionTypes)for(let type of transitionTypes)(0,_react.addTransitionType)(type);let url=new URL((0,_addbasepath.addBasePath)(href),location.href);(0,_links.setLinkForCurrentNavigation)(linkInstanceRef);let onRouterTransitionStart=getProfilingHookForOnNavigationStart();null!==onRouterTransitionStart&&onRouterTransitionStart(href,navigateType),(0,_useactionqueue.dispatchAppRouterAction)({type:_routerreducertypes.ACTION_NAVIGATE,url,isExternalUrl:(0,_approuterutils.isExternalURL)(url),locationSearch:location.search,scrollBehavior,navigateType})}function dispatchTraverseAction(href,historyState){let onRouterTransitionStart=getProfilingHookForOnNavigationStart();null!==onRouterTransitionStart&&onRouterTransitionStart(href,"traverse"),(0,_useactionqueue.dispatchAppRouterAction)({type:_routerreducertypes.ACTION_RESTORE,url:new URL(href),historyState})}let publicAppRouterInstance={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(href,options)=>{let fetchStrategy;if((0,_javascripturl.isJavaScriptURLString)(href))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});let actionQueue=getAppRouterActionQueue();switch(options?.kind??_routerreducertypes.PrefetchKind.AUTO){case _routerreducertypes.PrefetchKind.AUTO:fetchStrategy=_types.FetchStrategy.PPR;break;case _routerreducertypes.PrefetchKind.FULL:fetchStrategy=_types.FetchStrategy.Full;break;default:fetchStrategy=_types.FetchStrategy.PPR}(0,_prefetch.prefetch)(href,actionQueue.state.nextUrl,actionQueue.state.tree,fetchStrategy,options?.onInvalidate??null)},replace:(href,options)=>{if((0,_javascripturl.isJavaScriptURLString)(href))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});(0,_react.startTransition)(()=>{dispatchNavigateAction(href,"replace",options?.scroll===!1?_routerreducertypes.ScrollBehavior.NoScroll:_routerreducertypes.ScrollBehavior.Default,null,options?.transitionTypes)})},push:(href,options)=>{if((0,_javascripturl.isJavaScriptURLString)(href))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});(0,_react.startTransition)(()=>{dispatchNavigateAction(href,"push",options?.scroll===!1?_routerreducertypes.ScrollBehavior.NoScroll:_routerreducertypes.ScrollBehavior.Default,null,options?.transitionTypes)})},refresh:()=>{(0,_react.startTransition)(()=>{(0,_useactionqueue.dispatchAppRouterAction)({type:_routerreducertypes.ACTION_REFRESH})})},hmrRefresh:()=>{throw Object.defineProperty(Error("hmrRefresh can only be used in development mode. Please use refresh instead."),"__NEXT_ERROR_CODE",{value:"E485",enumerable:!1,configurable:!0})}};"u">typeof window&&window.next&&(window.next.router=publicAppRouterInstance),("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},78761,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{ServerInsertedHTMLContext:function(){return ServerInsertedHTMLContext},useServerInsertedHTML:function(){return useServerInsertedHTML}});let _react=__turbopack_context__.r(44066)._(__turbopack_context__.r(66626)),ServerInsertedHTMLContext=_react.default.createContext(null);function useServerInsertedHTML(callback){let addInsertedServerHTMLCallback=(0,_react.useContext)(ServerInsertedHTMLContext);addInsertedServerHTMLCallback&&addInsertedServerHTMLCallback(callback)}},84414,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"notFound",{enumerable:!0,get:function(){return notFound}});let _httpaccessfallback=__turbopack_context__.r(42125),DIGEST=`${_httpaccessfallback.HTTP_ERROR_FALLBACK_ERROR_CODE};404`;function notFound(){let error=Object.defineProperty(Error(DIGEST),"__NEXT_ERROR_CODE",{value:"E1041",enumerable:!1,configurable:!0});throw error.digest=DIGEST,error}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},54918,(__turbopack_context__,module,exports)=>{"use strict";function forbidden(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"forbidden",{enumerable:!0,get:function(){return forbidden}}),__turbopack_context__.r(42125).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},29599,(__turbopack_context__,module,exports)=>{"use strict";function unauthorized(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"unauthorized",{enumerable:!0,get:function(){return unauthorized}}),__turbopack_context__.r(42125).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},96392,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"unstable_rethrow",{enumerable:!0,get:function(){return unstable_rethrow}});let _bailouttocsr=__turbopack_context__.r(64478),_isnextroutererror=__turbopack_context__.r(7986);function unstable_rethrow(error){if((0,_isnextroutererror.isNextRouterError)(error)||(0,_bailouttocsr.isBailoutToCSRError)(error))throw error;error instanceof Error&&"cause"in error&&unstable_rethrow(error.cause)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},90756,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{delayUntilRuntimeStage:function(){return delayUntilRuntimeStage},getRuntimeStage:function(){return getRuntimeStage},isHangingPromiseRejectionError:function(){return isHangingPromiseRejectionError},makeDevtoolsIOAwarePromise:function(){return makeDevtoolsIOAwarePromise},makeHangingPromise:function(){return makeHangingPromise}});let _stagedrendering=__turbopack_context__.r(84147);function isHangingPromiseRejectionError(err){return"object"==typeof err&&null!==err&&"digest"in err&&err.digest===HANGING_PROMISE_REJECTION}let HANGING_PROMISE_REJECTION="HANGING_PROMISE_REJECTION";class HangingPromiseRejectionError extends Error{constructor(route,expression){super(`During prerendering, ${expression} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${expression} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${route}".`),this.route=route,this.expression=expression,this.digest=HANGING_PROMISE_REJECTION}}let abortListenersBySignal=new WeakMap;function makeHangingPromise(signal,route,expression){if(signal.aborted)return Promise.reject(new HangingPromiseRejectionError(route,expression));{let hangingPromise=new Promise((_,reject)=>{let boundRejection=reject.bind(null,new HangingPromiseRejectionError(route,expression)),currentListeners=abortListenersBySignal.get(signal);if(currentListeners)currentListeners.push(boundRejection);else{let listeners=[boundRejection];abortListenersBySignal.set(signal,listeners),signal.addEventListener("abort",()=>{for(let i=0;i<listeners.length;i++)listeners[i]()},{once:!0})}});return hangingPromise.catch(ignoreReject),hangingPromise}}function ignoreReject(){}function makeDevtoolsIOAwarePromise(underlying,requestStore,stage){return requestStore.stagedRendering?requestStore.stagedRendering.delayUntilStage(stage,void 0,underlying):new Promise(resolve=>{setTimeout(()=>{resolve(underlying)},0)})}function getRuntimeStage(stagedRendering){return stagedRendering.currentStage===_stagedrendering.RenderStage.EarlyStatic||stagedRendering.currentStage===_stagedrendering.RenderStage.EarlyRuntime?_stagedrendering.RenderStage.EarlyRuntime:_stagedrendering.RenderStage.Runtime}function delayUntilRuntimeStage(prerenderStore,result){let{stagedRendering}=prerenderStore;return stagedRendering?stagedRendering.waitForStage(getRuntimeStage(stagedRendering)).then(()=>result):result}},2187,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isPostpone",{enumerable:!0,get:function(){return isPostpone}});let REACT_POSTPONE_TYPE=Symbol.for("react.postpone");function isPostpone(error){return"object"==typeof error&&null!==error&&error.$$typeof===REACT_POSTPONE_TYPE}},38740,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{DynamicServerError:function(){return DynamicServerError},isDynamicServerError:function(){return isDynamicServerError}});let DYNAMIC_ERROR_CODE="DYNAMIC_SERVER_USAGE";class DynamicServerError extends Error{constructor(description){super(`Dynamic server usage: ${description}`),this.description=description,this.digest=DYNAMIC_ERROR_CODE}}function isDynamicServerError(err){return"object"==typeof err&&null!==err&&"digest"in err&&"string"==typeof err.digest&&err.digest===DYNAMIC_ERROR_CODE}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},23880,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{StaticGenBailoutError:function(){return StaticGenBailoutError},isStaticGenBailoutError:function(){return isStaticGenBailoutError}});let NEXT_STATIC_GEN_BAILOUT="NEXT_STATIC_GEN_BAILOUT";class StaticGenBailoutError extends Error{constructor(...args){super(...args),this.code=NEXT_STATIC_GEN_BAILOUT}}function isStaticGenBailoutError(error){return"object"==typeof error&&null!==error&&"code"in error&&error.code===NEXT_STATIC_GEN_BAILOUT}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},61344,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{METADATA_BOUNDARY_NAME:function(){return METADATA_BOUNDARY_NAME},OUTLET_BOUNDARY_NAME:function(){return OUTLET_BOUNDARY_NAME},ROOT_LAYOUT_BOUNDARY_NAME:function(){return ROOT_LAYOUT_BOUNDARY_NAME},VIEWPORT_BOUNDARY_NAME:function(){return VIEWPORT_BOUNDARY_NAME}});let METADATA_BOUNDARY_NAME="__next_metadata_boundary__",VIEWPORT_BOUNDARY_NAME="__next_viewport_boundary__",OUTLET_BOUNDARY_NAME="__next_outlet_boundary__",ROOT_LAYOUT_BOUNDARY_NAME="__next_root_layout_boundary__"},41644,(__turbopack_context__,module,exports)=>{"use strict";var __TURBOPACK__imported__module__522__=__turbopack_context__.i(522);Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{atLeastOneTask:function(){return atLeastOneTask},scheduleImmediate:function(){return scheduleImmediate},scheduleOnNextTick:function(){return scheduleOnNextTick},waitAtLeastOneReactRenderTask:function(){return waitAtLeastOneReactRenderTask}});let scheduleOnNextTick=cb=>{Promise.resolve().then(()=>{__TURBOPACK__imported__module__522__.default.nextTick(cb)})},scheduleImmediate=cb=>{setImmediate(cb)};function atLeastOneTask(){return new Promise(resolve=>scheduleImmediate(resolve))}function waitAtLeastOneReactRenderTask(){return new Promise(r=>setImmediate(r))}},45997,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"INSTANT_VALIDATION_BOUNDARY_NAME",{enumerable:!0,get:function(){return INSTANT_VALIDATION_BOUNDARY_NAME}});let INSTANT_VALIDATION_BOUNDARY_NAME="__next_instant_validation_boundary__"},61372,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{DynamicHoleKind:function(){return DynamicHoleKind1},Postpone:function(){return Postpone},PreludeState:function(){return PreludeState1},abortAndThrowOnSynchronousRequestDataAccess:function(){return abortAndThrowOnSynchronousRequestDataAccess},abortOnSynchronousPlatformIOAccess:function(){return abortOnSynchronousPlatformIOAccess},accessedDynamicData:function(){return accessedDynamicData},annotateDynamicAccess:function(){return annotateDynamicAccess},consumeDynamicAccess:function(){return consumeDynamicAccess},createDynamicTrackingState:function(){return createDynamicTrackingState},createDynamicValidationState:function(){return createDynamicValidationState},createHangingInputAbortSignal:function(){return createHangingInputAbortSignal},createInstantValidationState:function(){return createInstantValidationState},createRenderInBrowserAbortSignal:function(){return createRenderInBrowserAbortSignal},formatDynamicAPIAccesses:function(){return formatDynamicAPIAccesses},getFirstDynamicReason:function(){return getFirstDynamicReason},getNavigationDisallowedDynamicReasons:function(){return getNavigationDisallowedDynamicReasons},getStaticShellDisallowedDynamicReasons:function(){return getStaticShellDisallowedDynamicReasons},isDynamicPostpone:function(){return isDynamicPostpone},isPrerenderInterruptedError:function(){return isPrerenderInterruptedError},logDisallowedDynamicError:function(){return logDisallowedDynamicError},markCurrentScopeAsDynamic:function(){return markCurrentScopeAsDynamic},postponeWithTracking:function(){return postponeWithTracking},throwIfDisallowedDynamic:function(){return throwIfDisallowedDynamic},throwToInterruptStaticGeneration:function(){return throwToInterruptStaticGeneration},trackAllowedDynamicAccess:function(){return trackAllowedDynamicAccess},trackDynamicDataInDynamicRender:function(){return trackDynamicDataInDynamicRender},trackDynamicHoleInNavigation:function(){return trackDynamicHoleInNavigation},trackDynamicHoleInRuntimeShell:function(){return trackDynamicHoleInRuntimeShell},trackDynamicHoleInStaticShell:function(){return trackDynamicHoleInStaticShell},trackThrownErrorInNavigation:function(){return trackThrownErrorInNavigation},useDynamicRouteParams:function(){return useDynamicRouteParams},useDynamicSearchParams:function(){return useDynamicSearchParams}});let _react=_interop_require_default(__turbopack_context__.r(66626)),_hooksservercontext=__turbopack_context__.r(38740),_staticgenerationbailout=__turbopack_context__.r(23880),_workunitasyncstorageexternal=__turbopack_context__.r(89931),_workasyncstorageexternal=__turbopack_context__.r(73623),_dynamicrenderingutils=__turbopack_context__.r(90756),_boundaryconstants=__turbopack_context__.r(61344),_scheduler=__turbopack_context__.r(41644),_bailouttocsr=__turbopack_context__.r(64478),_invarianterror=__turbopack_context__.r(79608),_boundaryconstants1=__turbopack_context__.r(45997);function _interop_require_default(obj){return obj&&obj.__esModule?obj:{default:obj}}let hasPostpone="function"==typeof _react.default.unstable_postpone;function createDynamicTrackingState(isDebugDynamicAccesses){return{isDebugDynamicAccesses,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function createDynamicValidationState(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function getFirstDynamicReason(trackingState){var _trackingState_dynamicAccesses_;return null==(_trackingState_dynamicAccesses_=trackingState.dynamicAccesses[0])?void 0:_trackingState_dynamicAccesses_.expression}function markCurrentScopeAsDynamic(store,workUnitStore,expression){if(workUnitStore)switch(workUnitStore.type){case"cache":case"unstable-cache":case"private-cache":return}if(!store.forceDynamic&&!store.forceStatic){if(store.dynamicShouldError)throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${store.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(workUnitStore)switch(workUnitStore.type){case"prerender-ppr":return postponeWithTracking(store.route,expression,workUnitStore.dynamicTracking);case"prerender-legacy":workUnitStore.revalidate=0;let err=Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw store.dynamicUsageDescription=expression,store.dynamicUsageStack=err.stack,err}}}function throwToInterruptStaticGeneration(expression,store,prerenderStore){let err=Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw prerenderStore.revalidate=0,store.dynamicUsageDescription=expression,store.dynamicUsageStack=err.stack,err}function trackDynamicDataInDynamicRender(workUnitStore){switch(workUnitStore.type){case"cache":case"unstable-cache":case"private-cache":return}}function abortOnSynchronousDynamicDataAccess(route,expression,prerenderStore){let error=createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`);prerenderStore.controller.abort(error);let dynamicTracking=prerenderStore.dynamicTracking;dynamicTracking&&dynamicTracking.dynamicAccesses.push({stack:dynamicTracking.isDebugDynamicAccesses?Error().stack:void 0,expression})}function abortOnSynchronousPlatformIOAccess(route,expression,errorWithStack,prerenderStore){let dynamicTracking=prerenderStore.dynamicTracking;abortOnSynchronousDynamicDataAccess(route,expression,prerenderStore),dynamicTracking&&null===dynamicTracking.syncDynamicErrorWithStack&&(dynamicTracking.syncDynamicErrorWithStack=errorWithStack)}function abortAndThrowOnSynchronousRequestDataAccess(route,expression,errorWithStack,prerenderStore){if(!1===prerenderStore.controller.signal.aborted){abortOnSynchronousDynamicDataAccess(route,expression,prerenderStore);let dynamicTracking=prerenderStore.dynamicTracking;dynamicTracking&&null===dynamicTracking.syncDynamicErrorWithStack&&(dynamicTracking.syncDynamicErrorWithStack=errorWithStack)}throw createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`)}function Postpone({reason,route}){let prerenderStore=_workunitasyncstorageexternal.workUnitAsyncStorage.getStore();postponeWithTracking(route,reason,prerenderStore&&"prerender-ppr"===prerenderStore.type?prerenderStore.dynamicTracking:null)}function postponeWithTracking(route,expression,dynamicTracking){assertPostpone(),dynamicTracking&&dynamicTracking.dynamicAccesses.push({stack:dynamicTracking.isDebugDynamicAccesses?Error().stack:void 0,expression}),_react.default.unstable_postpone(createPostponeReason(route,expression))}function createPostponeReason(route,expression){return`Route ${route} needs to bail out of prerendering at this point because it used ${expression}. 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`}function isDynamicPostpone(err){return"object"==typeof err&&null!==err&&"string"==typeof err.message&&isDynamicPostponeReason(err.message)}function isDynamicPostponeReason(reason){return reason.includes("needs to bail out of prerendering at this point because it used")&&reason.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===isDynamicPostponeReason(createPostponeReason("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});let NEXT_PRERENDER_INTERRUPTED="NEXT_PRERENDER_INTERRUPTED";function createPrerenderInterruptedError(message){let error=Object.defineProperty(Error(message),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return error.digest=NEXT_PRERENDER_INTERRUPTED,error}function isPrerenderInterruptedError(error){return"object"==typeof error&&null!==error&&error.digest===NEXT_PRERENDER_INTERRUPTED&&"name"in error&&"message"in error&&error instanceof Error}function accessedDynamicData(dynamicAccesses){return dynamicAccesses.length>0}function consumeDynamicAccess(serverDynamic,clientDynamic){return serverDynamic.dynamicAccesses.push(...clientDynamic.dynamicAccesses),serverDynamic.dynamicAccesses}function formatDynamicAPIAccesses(dynamicAccesses){return dynamicAccesses.filter(access=>"string"==typeof access.stack&&access.stack.length>0).map(({expression,stack})=>(stack=stack.split("\n").slice(4).filter(line=>!(line.includes("node_modules/next/")||line.includes(" (<anonymous>)")||line.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${expression}:
${stack}`))}function assertPostpone(){if(!hasPostpone)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})}function createRenderInBrowserAbortSignal(){let controller=new AbortController;return controller.abort(Object.defineProperty(new _bailouttocsr.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),controller.signal}function createHangingInputAbortSignal(workUnitStore){switch(workUnitStore.type){case"prerender":case"prerender-runtime":let controller=new AbortController;if(workUnitStore.cacheSignal)workUnitStore.cacheSignal.inputReady().then(()=>{controller.abort()});else if("prerender-runtime"===workUnitStore.type&&workUnitStore.stagedRendering){let{stagedRendering}=workUnitStore;stagedRendering.waitForStage((0,_dynamicrenderingutils.getRuntimeStage)(stagedRendering)).then(()=>(0,_scheduler.scheduleOnNextTick)(()=>controller.abort()))}else(0,_scheduler.scheduleOnNextTick)(()=>controller.abort());return controller.signal;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return}}function annotateDynamicAccess(expression,prerenderStore){let dynamicTracking=prerenderStore.dynamicTracking;dynamicTracking&&dynamicTracking.dynamicAccesses.push({stack:dynamicTracking.isDebugDynamicAccesses?Error().stack:void 0,expression})}function useDynamicRouteParams(expression){let workStore=_workasyncstorageexternal.workAsyncStorage.getStore(),workUnitStore=_workunitasyncstorageexternal.workUnitAsyncStorage.getStore();if(workStore&&workUnitStore)switch(workUnitStore.type){case"prerender-client":case"prerender":{let fallbackParams=workUnitStore.fallbackRouteParams;fallbackParams&&fallbackParams.size>0&&_react.default.use((0,_dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal,workStore.route,expression));break}case"prerender-ppr":{let fallbackParams=workUnitStore.fallbackRouteParams;if(fallbackParams&&fallbackParams.size>0)return postponeWithTracking(workStore.route,expression,workUnitStore.dynamicTracking);break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called during a runtime prerender. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called inside a cache scope. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called in \`generateStaticParams\`. Next.js should be preventing ${expression} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function useDynamicSearchParams(expression){let workStore=_workasyncstorageexternal.workAsyncStorage.getStore(),workUnitStore=_workunitasyncstorageexternal.workUnitAsyncStorage.getStore();if(workStore)switch(!workUnitStore&&(0,_workunitasyncstorageexternal.throwForMissingRequestStore)(expression),workUnitStore.type){case"validation-client":case"request":return;case"prerender-client":_react.default.use((0,_dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal,workStore.route,expression));break;case"prerender-legacy":case"prerender-ppr":if(workStore.forceStatic)return;throw Object.defineProperty(new _bailouttocsr.BailoutToCSRError(expression),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called from a Server Component. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called inside a cache scope. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called in \`generateStaticParams\`. Next.js should be preventing ${expression} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let hasSuspenseRegex=/\n\s+at Suspense \(<anonymous>\)/,hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex=RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${_boundaryconstants.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),hasMetadataRegex=RegExp(`\\n\\s+at ${_boundaryconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`),hasViewportRegex=RegExp(`\\n\\s+at ${_boundaryconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),hasOutletRegex=RegExp(`\\n\\s+at ${_boundaryconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`),hasInstantValidationBoundaryRegex=RegExp(`\\n\\s+at ${_boundaryconstants1.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`);function trackAllowedDynamicAccess(workStore,componentStack,dynamicValidation,clientDynamic){if(!hasOutletRegex.test(componentStack)){if(hasMetadataRegex.test(componentStack)){dynamicValidation.hasDynamicMetadata=!0;return}if(hasViewportRegex.test(componentStack)){dynamicValidation.hasDynamicViewport=!0;return}if(hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)){dynamicValidation.hasAllowedDynamic=!0,dynamicValidation.hasSuspenseAboveBody=!0;return}else if(hasSuspenseRegex.test(componentStack)){dynamicValidation.hasAllowedDynamic=!0;return}else{if(clientDynamic.syncDynamicErrorWithStack)return void dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);let error=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": Uncached data was accessed outside of <Suspense>. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1079",enumerable:!1,configurable:!0}),componentStack,null);return void dynamicValidation.dynamicErrors.push(error)}}}var DynamicHoleKind,PreludeState,DynamicHoleKind1=((DynamicHoleKind={})[DynamicHoleKind.Runtime=1]="Runtime",DynamicHoleKind[DynamicHoleKind.Dynamic=2]="Dynamic",DynamicHoleKind);function createInstantValidationState(createInstantStack){return{hasDynamicMetadata:!1,hasAllowedClientDynamicAboveBoundary:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[],validationPreventingErrors:[],thrownErrorsOutsideBoundary:[],createInstantStack}}function trackDynamicHoleInNavigation(workStore,componentStack,dynamicValidation,clientDynamic,kind,boundaryState){if(hasOutletRegex.test(componentStack))return;if(hasMetadataRegex.test(componentStack)){let error=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": ${1===kind?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateMetadata` or you have file-based metadata such as icons that depend on dynamic params segments.":"Uncached data or `connection()` was accessed inside `generateMetadata`."} Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1076",enumerable:!1,configurable:!0}),componentStack,dynamicValidation.createInstantStack);dynamicValidation.dynamicMetadata=error;return}if(hasViewportRegex.test(componentStack)){let error=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": ${1===kind?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateViewport`.":"Uncached data or `connection()` was accessed inside `generateViewport`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1086",enumerable:!1,configurable:!0}),componentStack,dynamicValidation.createInstantStack);dynamicValidation.dynamicErrors.push(error);return}let boundaryLocation=hasInstantValidationBoundaryRegex.exec(componentStack);if(boundaryLocation){let suspenseLocation=hasSuspenseRegex.exec(componentStack);if(suspenseLocation&&suspenseLocation.index<boundaryLocation.index){dynamicValidation.hasAllowedDynamic=!0;return}}else if(boundaryState.expectedIds.size===boundaryState.renderedIds.size){dynamicValidation.hasAllowedClientDynamicAboveBoundary=!0,dynamicValidation.hasAllowedDynamic=!0;return}else{let error=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.`),"__NEXT_ERROR_CODE",{value:"E1082",enumerable:!1,configurable:!0}),componentStack,dynamicValidation.createInstantStack);dynamicValidation.validationPreventingErrors.push(error);return}if(clientDynamic.syncDynamicErrorWithStack){let syncError=clientDynamic.syncDynamicErrorWithStack;null!==dynamicValidation.createInstantStack&&void 0===syncError.cause&&(syncError.cause=dynamicValidation.createInstantStack()),dynamicValidation.dynamicErrors.push(syncError);return}let error=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": ${1===kind?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed outside of `<Suspense>`.":"Uncached data or `connection()` was accessed outside of `<Suspense>`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1078",enumerable:!1,configurable:!0}),componentStack,dynamicValidation.createInstantStack);dynamicValidation.dynamicErrors.push(error)}function trackThrownErrorInNavigation(workStore,dynamicValidation,thrownValue,componentStack){let boundaryLocation=hasInstantValidationBoundaryRegex.exec(componentStack);if(boundaryLocation){let suspenseLocation=hasSuspenseRegex.exec(componentStack);if(suspenseLocation&&suspenseLocation.index<boundaryLocation.index)return;let error=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": Could not validate \`unstable_instant\` because an error prevented the target segment from rendering.`,{cause:thrownValue}),"__NEXT_ERROR_CODE",{value:"E1112",enumerable:!1,configurable:!0}),componentStack,null);dynamicValidation.validationPreventingErrors.push(error)}else{let error=addErrorContext(Object.defineProperty(Error("An error occurred while attempting to validate instant UI. This error may be preventing the validation from completing.",{cause:thrownValue}),"__NEXT_ERROR_CODE",{value:"E1118",enumerable:!1,configurable:!0}),componentStack,null);dynamicValidation.thrownErrorsOutsideBoundary.push(error)}}function trackDynamicHoleInRuntimeShell(workStore,componentStack,dynamicValidation,clientDynamic){if(hasOutletRegex.test(componentStack))return;if(hasMetadataRegex.test(componentStack)){dynamicValidation.dynamicMetadata=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1080",enumerable:!1,configurable:!0}),componentStack,null);return}if(hasViewportRegex.test(componentStack)){let error=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1077",enumerable:!1,configurable:!0}),componentStack,null);dynamicValidation.dynamicErrors.push(error);return}if(hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)){dynamicValidation.hasAllowedDynamic=!0,dynamicValidation.hasSuspenseAboveBody=!0;return}if(hasSuspenseRegex.test(componentStack)){dynamicValidation.hasAllowedDynamic=!0;return}else if(clientDynamic.syncDynamicErrorWithStack)return void dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);let error=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1084",enumerable:!1,configurable:!0}),componentStack,null);dynamicValidation.dynamicErrors.push(error)}function trackDynamicHoleInStaticShell(workStore,componentStack,dynamicValidation,clientDynamic){if(!hasOutletRegex.test(componentStack)){if(hasMetadataRegex.test(componentStack)){dynamicValidation.dynamicMetadata=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1085",enumerable:!1,configurable:!0}),componentStack,null);return}if(hasViewportRegex.test(componentStack)){let error=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1081",enumerable:!1,configurable:!0}),componentStack,null);dynamicValidation.dynamicErrors.push(error);return}if(hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)){dynamicValidation.hasAllowedDynamic=!0,dynamicValidation.hasSuspenseAboveBody=!0;return}else if(hasSuspenseRegex.test(componentStack)){dynamicValidation.hasAllowedDynamic=!0;return}else{if(clientDynamic.syncDynamicErrorWithStack)return void dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);let error=addErrorContext(Object.defineProperty(Error(`Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1083",enumerable:!1,configurable:!0}),componentStack,null);return void dynamicValidation.dynamicErrors.push(error)}}}function addErrorContext(error,componentStack,createInstantStack){return null!==createInstantStack&&(error.cause=createInstantStack()),error.stack=error.name+": "+error.message+componentStack,error}var PreludeState1=((PreludeState={})[PreludeState.Full=0]="Full",PreludeState[PreludeState.Empty=1]="Empty",PreludeState[PreludeState.Errored=2]="Errored",PreludeState);function logDisallowedDynamicError(workStore,error){console.error(error),console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
- Start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}function throwIfDisallowedDynamic(workStore,prelude,dynamicValidation,serverDynamic){if(serverDynamic.syncDynamicErrorWithStack)throw logDisallowedDynamicError(workStore,serverDynamic.syncDynamicErrorWithStack),new _staticgenerationbailout.StaticGenBailoutError;if(0!==prelude){if(dynamicValidation.hasSuspenseAboveBody)return;let dynamicErrors=dynamicValidation.dynamicErrors;if(dynamicErrors.length>0){for(let i=0;i<dynamicErrors.length;i++)logDisallowedDynamicError(workStore,dynamicErrors[i]);throw new _staticgenerationbailout.StaticGenBailoutError}if(dynamicValidation.hasDynamicViewport)throw console.error(`Route "${workStore.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new _staticgenerationbailout.StaticGenBailoutError;if(1===prelude)throw console.error(`Route "${workStore.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new _staticgenerationbailout.StaticGenBailoutError}else if(!1===dynamicValidation.hasAllowedDynamic&&dynamicValidation.hasDynamicMetadata)throw console.error(`Route "${workStore.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new _staticgenerationbailout.StaticGenBailoutError}function getStaticShellDisallowedDynamicReasons(workStore,prelude,dynamicValidation,configAllowsBlocking){if(configAllowsBlocking||dynamicValidation.hasSuspenseAboveBody)return[];if(0!==prelude){let dynamicErrors=dynamicValidation.dynamicErrors;if(dynamicErrors.length>0)return dynamicErrors;if(1===prelude)return[Object.defineProperty(new _invarianterror.InvariantError(`Route "${workStore.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}else if(!1===dynamicValidation.hasAllowedDynamic&&0===dynamicValidation.dynamicErrors.length&&dynamicValidation.dynamicMetadata)return[dynamicValidation.dynamicMetadata];return[]}function getNavigationDisallowedDynamicReasons(workStore,prelude,dynamicValidation,validationSampleTracking,boundaryState){if(validationSampleTracking){let{missingSampleErrors}=validationSampleTracking;if(missingSampleErrors.length>0)return missingSampleErrors}let{validationPreventingErrors}=dynamicValidation;if(validationPreventingErrors.length>0)return validationPreventingErrors;if(boundaryState.renderedIds.size<boundaryState.expectedIds.size){let{thrownErrorsOutsideBoundary,createInstantStack}=dynamicValidation;if(0===thrownErrorsOutsideBoundary.length){let message=`Route "${workStore.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering for an unknown reason.`,error=null!==createInstantStack?createInstantStack():Error();return error.name="Error",error.message=message,[error]}if(1===thrownErrorsOutsideBoundary.length){let message=`Route "${workStore.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.`,error=null!==createInstantStack?createInstantStack():Error();return error.name="Error",error.message=message,[error,thrownErrorsOutsideBoundary[0]]}{let message=`Route "${workStore.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`,error=null!==createInstantStack?createInstantStack():Error();return error.name="Error",error.message=message,[error,...thrownErrorsOutsideBoundary]}}if(0!==prelude){let dynamicErrors=dynamicValidation.dynamicErrors;if(dynamicErrors.length>0)return dynamicErrors;if(1===prelude)return dynamicValidation.hasAllowedClientDynamicAboveBoundary?[]:[Object.defineProperty(new _invarianterror.InvariantError(`Route "${workStore.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})]}else{let dynamicErrors=dynamicValidation.dynamicErrors;if(dynamicErrors.length>0)return dynamicErrors;if(!1===dynamicValidation.hasAllowedDynamic&&dynamicValidation.dynamicMetadata)return[dynamicValidation.dynamicMetadata]}return[]}},55469,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"unstable_rethrow",{enumerable:!0,get:function(){return unstable_rethrow}});let _dynamicrenderingutils=__turbopack_context__.r(90756),_ispostpone=__turbopack_context__.r(2187),_bailouttocsr=__turbopack_context__.r(64478),_isnextroutererror=__turbopack_context__.r(7986),_dynamicrendering=__turbopack_context__.r(61372),_hooksservercontext=__turbopack_context__.r(38740);function unstable_rethrow(error){if((0,_isnextroutererror.isNextRouterError)(error)||(0,_bailouttocsr.isBailoutToCSRError)(error)||(0,_hooksservercontext.isDynamicServerError)(error)||(0,_dynamicrendering.isDynamicPostpone)(error)||(0,_ispostpone.isPostpone)(error)||(0,_dynamicrenderingutils.isHangingPromiseRejectionError)(error)||(0,_dynamicrendering.isPrerenderInterruptedError)(error))throw error;error instanceof Error&&"cause"in error&&unstable_rethrow(error.cause)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},96694,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"unstable_rethrow",{enumerable:!0,get:function(){return unstable_rethrow}});let unstable_rethrow="u"<typeof window?__turbopack_context__.r(55469).unstable_rethrow:__turbopack_context__.r(96392).unstable_rethrow;("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},9960,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{ReadonlyURLSearchParams:function(){return _readonlyurlsearchparams.ReadonlyURLSearchParams},RedirectType:function(){return RedirectType},forbidden:function(){return _forbidden.forbidden},notFound:function(){return _notfound.notFound},permanentRedirect:function(){return _redirect.permanentRedirect},redirect:function(){return _redirect.redirect},unauthorized:function(){return _unauthorized.unauthorized},unstable_isUnrecognizedActionError:function(){return unstable_isUnrecognizedActionError},unstable_rethrow:function(){return _unstablerethrow.unstable_rethrow}});let _readonlyurlsearchparams=__turbopack_context__.r(76053),_redirect=__turbopack_context__.r(70608),_notfound=__turbopack_context__.r(84414),_forbidden=__turbopack_context__.r(54918),_unauthorized=__turbopack_context__.r(29599),_unstablerethrow=__turbopack_context__.r(96694);function unstable_isUnrecognizedActionError(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}let RedirectType={push:"push",replace:"replace"};("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},73542,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{ReadonlyURLSearchParams:function(){return _hooksclientcontextsharedruntime.ReadonlyURLSearchParams},RedirectType:function(){return _navigationreactserver.RedirectType},ServerInsertedHTMLContext:function(){return _serverinsertedhtmlsharedruntime.ServerInsertedHTMLContext},forbidden:function(){return _navigationreactserver.forbidden},notFound:function(){return _navigationreactserver.notFound},permanentRedirect:function(){return _navigationreactserver.permanentRedirect},redirect:function(){return _navigationreactserver.redirect},unauthorized:function(){return _navigationreactserver.unauthorized},unstable_isUnrecognizedActionError:function(){return _unrecognizedactionerror.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return _navigationreactserver.unstable_rethrow},useParams:function(){return useParams},usePathname:function(){return usePathname},useRouter:function(){return useRouter},useSearchParams:function(){return useSearchParams},useSelectedLayoutSegment:function(){return useSelectedLayoutSegment},useSelectedLayoutSegments:function(){return useSelectedLayoutSegments},useServerInsertedHTML:function(){return _serverinsertedhtmlsharedruntime.useServerInsertedHTML}});let _react=__turbopack_context__.r(44066)._(__turbopack_context__.r(66626)),_approutercontextsharedruntime=__turbopack_context__.r(45836),_hooksclientcontextsharedruntime=__turbopack_context__.r(6091),_segment=__turbopack_context__.r(14522),_serverinsertedhtmlsharedruntime=__turbopack_context__.r(78761),_unrecognizedactionerror=__turbopack_context__.r(14235),_navigationreactserver=__turbopack_context__.r(9960),useDynamicRouteParams="u"<typeof window?__turbopack_context__.r(61372).useDynamicRouteParams:void 0,useDynamicSearchParams="u"<typeof window?__turbopack_context__.r(61372).useDynamicSearchParams:void 0,{instrumentParamsForClientValidation,instrumentSearchParamsForClientValidation,expectCompleteParamsInClientValidation}={};function useSearchParams(){useDynamicSearchParams?.("useSearchParams()");let searchParams=(0,_react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext);return(0,_react.useMemo)(()=>searchParams?new _hooksclientcontextsharedruntime.ReadonlyURLSearchParams(searchParams):null,[searchParams])}function usePathname(){return useDynamicRouteParams?.("usePathname()"),(0,_react.useContext)(_hooksclientcontextsharedruntime.PathnameContext)}function useRouter(){let router=(0,_react.useContext)(_approutercontextsharedruntime.AppRouterContext);if(null===router)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return router}function useParams(){return useDynamicRouteParams?.("useParams()"),(0,_react.useContext)(_hooksclientcontextsharedruntime.PathParamsContext)}function useSelectedLayoutSegments(parallelRouteKey="children"){useDynamicRouteParams?.("useSelectedLayoutSegments()");let context=(0,_react.useContext)(_approutercontextsharedruntime.LayoutRouterContext);return context?(0,_segment.getSelectedLayoutSegmentPath)(context.parentTree,parallelRouteKey):null}function useSelectedLayoutSegment(parallelRouteKey="children"){useDynamicRouteParams?.("useSelectedLayoutSegment()"),(0,_react.useContext)(_hooksclientcontextsharedruntime.NavigationPromisesContext);let selectedLayoutSegments=useSelectedLayoutSegments(parallelRouteKey);return(0,_segment.computeSelectedLayoutSegment)(selectedLayoutSegments,parallelRouteKey)}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},52344,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{RedirectBoundary:function(){return RedirectBoundary},RedirectErrorBoundary:function(){return RedirectErrorBoundary}});let _interop_require_wildcard=__turbopack_context__.r(44066),_jsxruntime=__turbopack_context__.r(2710),_react=_interop_require_wildcard._(__turbopack_context__.r(66626)),_navigation=__turbopack_context__.r(73542),_redirect=__turbopack_context__.r(70608),_redirecterror=__turbopack_context__.r(7244);function HandleRedirect({redirect,reset,redirectType}){let router=(0,_navigation.useRouter)();return(0,_react.useEffect)(()=>{_react.default.startTransition(()=>{"push"===redirectType?router.push(redirect,{}):router.replace(redirect,{}),reset()})},[redirect,redirectType,reset,router]),null}class RedirectErrorBoundary extends _react.default.Component{constructor(props){super(props),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(error){if((0,_redirecterror.isRedirectError)(error)){let url=(0,_redirect.getURLFromRedirectError)(error),redirectType=(0,_redirect.getRedirectTypeFromError)(error);return"handled"in error?{redirect:null,redirectType:null}:{redirect:url,redirectType}}throw error}render(){let{redirect,redirectType}=this.state;return null!==redirect&&null!==redirectType?(0,_jsxruntime.jsx)(HandleRedirect,{redirect:redirect,redirectType:redirectType,reset:()=>this.setState({redirect:null})}):this.props.children}}function RedirectBoundary({children}){let router=(0,_navigation.useRouter)();return(0,_jsxruntime.jsx)(RedirectErrorBoundary,{router:router,children:children})}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},69783,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"createRouterCacheKey",{enumerable:!0,get:function(){return createRouterCacheKey}});let _segment=__turbopack_context__.r(14522);function createRouterCacheKey(segment,withoutSearchParameters=!1){return Array.isArray(segment)?`${segment[0]}|${segment[1]}|${segment[2]}`:withoutSearchParameters&&segment.startsWith(_segment.PAGE_SEGMENT_KEY)?_segment.PAGE_SEGMENT_KEY:segment}("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},23501,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"unresolvedThenable",{enumerable:!0,get:function(){return unresolvedThenable}});let unresolvedThenable={then:()=>{}};("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},31167,(__turbopack_context__,module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{MetadataBoundary:function(){return MetadataBoundary},OutletBoundary:function(){return OutletBoundary},RootLayoutBoundary:function(){return RootLayoutBoundary},ViewportBoundary:function(){return ViewportBoundary}});let _boundaryconstants=__turbopack_context__.r(61344),NameSpace={[_boundaryconstants.METADATA_BOUNDARY_NAME]:function({children}){return children},[_boundaryconstants.VIEWPORT_BOUNDARY_NAME]:function({children}){return children},[_boundaryconstants.OUTLET_BOUNDARY_NAME]:function({children}){return children},[_boundaryconstants.ROOT_LAYOUT_BOUNDARY_NAME]:function({children}){return children}},MetadataBoundary=NameSpace[_boundaryconstants.METADATA_BOUNDARY_NAME.slice(0)],ViewportBoundary=NameSpace[_boundaryconstants.VIEWPORT_BOUNDARY_NAME.slice(0)],OutletBoundary=NameSpace[_boundaryconstants.OUTLET_BOUNDARY_NAME.slice(0)],RootLayoutBoundary=NameSpace[_boundaryconstants.ROOT_LAYOUT_BOUNDARY_NAME.slice(0)]}]);