import*as e from"node:async_hooks";import{AsyncLocalStorage as t}from"node:async_hooks";globalThis.AsyncLocalStorage=e.AsyncLocalStorage;var n=globalThis,r=class{getStore(){}run(e,t,...n){return t(...n)}exit(e,...t){return e(...t)}enterWith(e){}disable(){}};function i(e){let i=Symbol.for(e);return n[i]??=typeof t==`function`?new t:new r}var a=Symbol.for(`vinext.requestContext.als`),o=globalThis,s=i(`vinext.unifiedRequestContext.als`);function c(){let e=s.getStore();return e?e.executionContext:o[a]?.getStore()??null}function l(e){return{headersContext:null,actionRevalidationKind:0,pendingRevalidatedTags:new Set,pendingRevalidations:new Set,dynamicUsageDetected:!1,renderRequestApiUsage:new Set,connectionProbe:null,invalidDynamicUsageError:null,pendingSetCookies:[],draftModeCookieHeader:null,phase:`render`,i18nContext:null,serverContext:null,serverInsertedHTMLCallbacks:[],requestScopedCacheLife:null,unstableCacheObservations:new Map,unstableCacheRevalidation:`foreground`,_privateCache:null,cacheableFetchUrls:new Set,currentRequestTags:[],currentFetchSoftTags:[],currentFetchCacheMode:null,currentForceDynamicFetchDefault:!1,dynamicFetchUrls:new Set,refreshStaleFetchesInForeground:!1,isFetchDedupeActive:!1,currentFetchDedupeEntries:new Map,executionContext:c(),requestCache:new WeakMap,ssrContext:null,ssrHeadChildren:[],documentInitialHead:[],rootParams:null,...e}}function u(e,t){return s.run(e,t)}function d(e,t){let n=s.getStore();if(!n)return t();let r={...n};return e(r),s.run(r,t)}function f(){return s.getStore()??l()}function p(){return s.getStore()!=null}var m=`x-vinext-mw-ctx`,h=`x-vinext-prerender-secret`,g=`x-vinext-prerender-route-params`,_=`x-vinext-prerender-speculative`,v=`x-middleware-request-`,y=`x-middleware-override-headers`,b=`x-middleware-set-cookie`,x=`x-middleware-skip`,S=`X-Vinext-Cache`,C=`x-nextjs-cache`,w=`x-vinext-static-file`,T=`x-vinext-timing`,E=`X-Vinext-Params`,D=`X-Vinext-Mounted-Slots`,O=`X-Vinext-Dynamic-Stale-Time`,k=`X-Vinext-Rendered-Path-And-Search`,A=`x-vinext-prerender-cache-life`,j=`X-Vinext-Interception-Context`,M=`X-Vinext-Rsc-Render-Mode`,N=`X-Vinext-Client-Reuse-Manifest`,P=`X-Vinext-Rsc-Redirect`,F=`X-Vinext-Rsc-Redirect-Type`,I=`x-nextjs-action-not-found`,L=`x-nextjs-deployment-id`,R=`x-action-forwarded`,z=`x-action-revalidated`,B=`x-middleware-next`,V=`x-middleware-rewrite`,H=`x-middleware-redirect`,U=`Next-Router-State-Tree`,W=`Next-Router-Prefetch`,G=`Next-Router-Segment-Prefetch`,K=`Next-Url`,q=[V,H,b,x,y,B,`x-now-route-matches`,`x-matched-path`,`x-nextjs-data`,`x-next-resume-state-length`,R],J=[g,_,A];function Y(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}export{_ as A,w as C,m as D,v as E,d as F,i as I,f as M,p as N,g as O,u as P,M as S,y as T,E as _,C as a,P as b,G as c,S as d,N as f,D as g,J as h,I as i,l as j,h as k,U as l,j as m,z as n,L as o,O as p,q as r,W as s,Y as t,K as u,A as v,T as w,F as x,k as y};