1import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{i as r,n as i,r as a}from"./framework-A1pNZAzD.js";var o=t(r(),1);function s(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var c=Symbol.for(`vinext.navigationRuntime`),l=[`boundaries`,`defaults`,`interceptions`,`interceptionsBySlotId`,`layouts`,`pages`,`rootBoundaries`,`routeHandlers`,`routes`,`slotBindings`,`slots`,`templates`];function u(){return{bootstrap:{routeManifest:null,rsc:void 0},functions:{}}}function d(){return window}function f(e){return s(e)?h(Reflect.get(e,`clearNavigationCaches`))&&h(Reflect.get(e,`commitHashNavigation`))&&h(Reflect.get(e,`navigateExternal`))&&h(Reflect.get(e,`navigate`))&&h(Reflect.get(e,`getPrefetchRouterState`))&&h(Reflect.get(e,`notifyLinkNavigationStart`))&&h(Reflect.get(e,`pingVisibleLinks`))&&h(Reflect.get(e,`preparePrefetchResponse`))&&h(Reflect.get(e,`claimCurrentHistoryTreeSnapshot`))&&h(Reflect.get(e,`commitAppOwnedHistoryStateWrite`)):!1}function p(e){return typeof e==`string`||Array.isArray(e)&&e.length===2&&e[0]===3&&typeof e[1]==`string`}function ee(e){if(!s(e))return!1;let t=Reflect.get(e,`pathname`),n=Reflect.get(e,`searchParams`);return typeof t==`string`&&Array.isArray(n)&&n.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`&&typeof e[1]==`string`)}function te(e){return s(e)?Object.values(e).every(e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`)):!1}function m(e){if(!s(e))return!1;let t=Reflect.get(e,`done`),n=Reflect.get(e,`dynamicStaleTimeSeconds`),r=Reflect.get(e,`initialCacheKind`),i=Reflect.get(e,`searchParamsFromBrowser`),a=Reflect.get(e,`nav`),o=Reflect.get(e,`params`),c=Reflect.get(e,`renderedSearch`),l=Reflect.get(e,`rsc`),u=Reflect.get(e,`staleTimeSeconds`);return(t===void 0||typeof t==`boolean`)&&ne(n)&&(r===void 0||r===`dynamic`||r===`static`)&&(i===void 0||typeof i==`boolean`)&&(a===void 0||ee(a))&&(o===void 0||te(o))&&(c===void 0||typeof c==`string`)&&Array.isArray(l)&&l.every(p)&&ne(u)}function ne(e){return e===void 0||typeof e==`number`&&Number.isFinite(e)&&e>=0}function re(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function ie(e){return e===null||typeof e==`string`}function ae(e){return s(e)?typeof e.id==`string`&&typeof e.sourcePattern==`string`&&re(e.sourcePatternParts)&&typeof e.targetPattern==`string`&&re(e.targetPatternParts)&&typeof e.slotId==`string`&&ie(e.ownerLayoutId)&&ie(e.interceptingRouteId)&&ie(e.targetRouteId):!1}function oe(e){return Array.isArray(e)&&e.every(ae)}function se(e){if(!s(e))return!1;let t=Reflect.get(e,`graphVersion`),n=Reflect.get(e,`segmentGraph`);if(typeof t!=`string`||!s(n))return!1;let r=Reflect.get(n,`interceptions`),i=Reflect.get(n,`interceptionsBySlotId`);if(!l.every(e=>Reflect.get(n,e)instanceof Map)||!(r instanceof Map)||!(i instanceof Map))return!1;for(let e of r.values())if(!ae(e))return!1;for(let e of i.values())if(!oe(e))return!1;return!0}function ce(e){if(!s(e))return!1;let t=Reflect.get(e,`routeManifest`),n=Reflect.get(e,`rsc`);return(t===null||se(t))&&(n===void 0||m(n))}function le(e){if(!s(e)||!(`bootstrap`in e)||!(`functions`in e))return!1;let{bootstrap:t,functions:n}=e;return ce(t)&&f(n)}function h(e){return e===void 0||typeof e==`function`}function g(){let e=d();if(e===null)return null;let t=Reflect.get(e,c);return le(t)?t:null}function ue(){let e=d();if(e===null)return u();let t=Reflect.get(e,c),n=le(t)?t:u();return Reflect.set(e,c,n),n}function de(e){let t=ue();return t.bootstrap={...t.bootstrap,...e},t}function fe(e){let t=ue();return t.functions={...t.functions,...e},t}function pe(){return me(ue())}function me(e){let t=e.bootstrap.rsc;if(t===void 0){let t={rsc:[]};return e.bootstrap.rsc=t,t}return t}function he(){return typeof g()?.functions.navigate==`function`}function ge(e,t,n,r){if(e===n)throw Error(`Conflicting app and page routes found for "${e}"`);
1if(!t)return r?`pages`:`app`;if(!r)return`app`;let i=e.split(`/`).filter(Boolean),a=n.split(`/`).filter(Boolean),o=e=>e.startsWith(`:`)?e.endsWith(`*`)?3:e.endsWith(`+`)?2:1:0;for(let e=0;e<Math.min(i.length,a.length);e++){let t=o(i[e]),n=o(a[e]);if(t!==n)return t<n?`pages`:`app`}return i.length===a.length||i.length<a.length?`pages`:`app`}var _e=/([/#?\\]|%(2f|23|3f|5c))/gi;function ve(e){return e.replace(_e,e=>encodeURIComponent(e))}function ye(e){try{return ve(decodeURIComponent(e))}catch{return e}}function be(e){return e.split(`/`).map(e=>ye(e)).join(`/`)}function _(e){return be(e).split(`/`).filter(Boolean)}function xe(e){try{return decodeURIComponent(e)}catch{return e}}function Se(e){let t=Object.create(null);for(let[n,r]of e)t[n]=r;return t}function Ce(e){for(let t of Object.keys(e)){let n=e[t];e[t]=Array.isArray(n)?n.map(xe):xe(n)}}function we(e){return e.startsWith(`[...`)&&e.endsWith(`]`)&&e.length>5}function Te(e){return e.startsWith(`[[...`)&&e.endsWith(`]]`)&&e.length>7}function Ee(e,t){return t?e===t||e.startsWith(t+`/`):!1}function v(e,t){return Ee(e,t)?e.slice(t.length)||`/`:e}function De(e,t){return!t||Ee(e,t)?e:e===`/`?t:`${t}${e}`}function Oe(e){if(e===`/`)return`/`;let t=e.length;for(;t>0&&e.charCodeAt(t-1)===47;)t--;return t===0?`/`:e.slice(0,t)}var ke=`x-vinext-mw-ctx`,Ae=`x-vinext-prerender-secret`,je=`x-vinext-prerender-route-params`,Me=`x-vinext-prerender-speculative`,Ne=`x-vinext-revalidate-host`,Pe=`x-middleware-override-headers`,Fe=`x-middleware-set-cookie`,Ie=`x-middleware-skip`,Le=`x-middleware-`,y=`Next-Router-State-Tree`,b=`Next-Router-Prefetch`,x=`Next-Router-Segment-Prefetch`,Re=`Next-Url`,ze=`X-Vinext-Interception-Context`,Be=`X-Vinext-Interception-Id`,Ve=`X-Vinext-Mounted-Slots`,S=`X-Vinext-Rsc-Render-Mode`,C=`X-Vinext-Rsc-State-Fingerprint`,He=[`RSC`,y,b,x,Re,ze,Be,Ve,S,C].join(`, `),Ue=new Set(He.split(`,`).map(e=>e.trim().toLowerCase()));function We(e){return Ue.has(e.trim().toLowerCase())}var Ge=e({ACTION_FORWARDED_HEADER:()=>Dt,ACTION_REDIRECT_HEADER:()=>kt,ACTION_REDIRECT_STATUS_HEADER:()=>jt,ACTION_REDIRECT_TYPE_HEADER:()=>At,ACTION_REVALIDATED_HEADER:()=>Ot,FLIGHT_HEADERS:()=>Lt,INTERNAL_HEADERS:()=>Rt,MIDDLEWARE_HEADER_PREFIX:()=>Le,MIDDLEWARE_NEXT_HEADER:()=>Mt,MIDDLEWARE_REWRITE_HEADER:()=>Nt,MIDDLEWARE_SET_COOKIE_HEADER:()=>Fe,MIDDLEWARE_SKIP_HEADER:()=>Ie,NEXTJS_ACTION_NOT_FOUND_HEADER:()=>Ct,NEXTJS_CACHE_HEADER:()=>qe,NEXTJS_DEPLOYMENT_ID_HEADER:()=>Et,NEXT_ACTION_HEADER:()=>St,NEXT_CACHE_TAGS_HEADER:()=>Je,NEXT_HTML_REQUEST_ID_HEADER:()=>It,NEXT_REQUEST_ID_HEADER:()=>Ft,NEXT_ROUTER_PREFETCH_HEADER:()=>b,NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:()=>x,NEXT_ROUTER_STALE_TIME_HEADER:()=>wt,NEXT_ROUTER_STATE_TREE_HEADER:()=>y,NEXT_URL_HEADER:()=>Re,RSC_ACTION_HEADER:()=>xt,RSC_HEADER:()=>`RSC`,VINEXT_CACHEABILITY_PROBE_HEADER:()=>et,VINEXT_CACHEABILITY_PROBE_QUERY_PARAM:()=>nt,VINEXT_CACHEABILITY_PROBE_ROUTE_HEADER:()=>tt,VINEXT_CACHE_HEADER:()=>Ke,VINEXT_CLIENT_REUSE_MANIFEST_HEADER:()=>vt,VINEXT_DYNAMIC_STALE_TIME_HEADER:()=>ft,VINEXT_EXPECTED_WORKER_VERSION_HEADER:()=>$e,VINEXT_INTERCEPTION_CONTEXT_HEADER:()=>ze,VINEXT_INTERCEPTION_ID_HEADER:()=>Be,VINEXT_INTERNAL_HEADERS:()=>zt,VINEXT_METADATA_ROUTE_CACHE_HEADER:()=>_t,VINEXT_MOUNTED_SLOTS_HEADER:()=>Ve,VINEXT_MW_CTX_HEADER:()=>ke,VINEXT_PARAMS_HEADER:()=>dt,VINEXT_PRERENDER_CACHE_LIFE_HEADER:()=>ht,VINEXT_PRERENDER_METADATA_ROUTES_PATH:()=>at,VINEXT_PRERENDER_PAGES_STATIC_PATHS_PATH:()=>it,VINEXT_PRERENDER_READINESS_HEADER:()=>st,VINEXT_PRERENDER_READINESS_PATH:()=>ot,VINEXT_PRERENDER_RENDER_ERROR_HEADER:()=>gt,VINEXT_PRERENDER_ROUTE_PARAMS_HEADER:()=>je,VINEXT_PRERENDER_SECRET_HEADER:()=>Ae,VINEXT_PRERENDER_SPECULATIVE_HEADER:()=>Me,VINEXT_PRERENDER_STATIC_PARAMS_PATH:()=>rt,VINEXT_RENDERED_PATH_AND_SEARCH_HEADER:()=>mt,VINEXT_REVALIDATED_CACHE_TAG_HEADER:()=>lt,VINEXT_REVALIDATE_HEADER:()=>ct,VINEXT_REVALIDATE_HOST_HEADER:()=>Ne,VINEXT_RSC_COMPLETION_METADATA_HEADER:()=>pt,VINEXT_RSC_MARKER_HEADER:()=>ut,VINEXT_RSC_REDIRECT_HEADER:()=>yt,VINEXT_RSC_REDIRECT_TYPE_HEADER:()=>bt,VINEXT_RSC_RENDER_MODE_HEADER:()=>S,VINEXT_RSC_STATE_FINGERPRINT_HEADER:()=>C,VINEXT_RSC_VARY_HEADER:()=>He,VINEXT_STALE_TIME_PENDING_HEADER:()=>Tt,VINEXT_TIMING_HEADER:()=>
1Ye,VINEXT_TRACE_BUFFERED_BODY_HEADER:()=>Qe,VINEXT_TRACE_ERROR_HEADER:()=>Ze,VINEXT_TRACE_ROUTE_HEADER:()=>Xe,isVinextRscVaryField:()=>We}),Ke=`X-Vinext-Cache`,qe=`x-nextjs-cache`,Je=`x-next-cache-tags`,Ye=`x-vinext-timing`,Xe=`X-Vinext-Trace-Route`,Ze=`X-Vinext-Trace-Error`,Qe=`X-Vinext-Trace-Buffered-Body`,$e=`X-Vinext-Expected-Worker-Version`,et=`X-Vinext-Cacheability-Probe`,tt=`X-Vinext-Cacheability-Probe-Route`,nt=`__vinext_cacheability_probe`,rt=`/__vinext/prerender/static-params`,it=`/__vinext/prerender/pages-static-paths`,at=`/__vinext/prerender/metadata-routes`,ot=`/__vinext/prerender/readiness`,st=`X-Vinext-Prerender-Readiness`,ct=`x-vinext-revalidate`,lt=`x-vinext-revalidated-cache-tag`,ut=`x-vinext-rsc`,dt=`X-Vinext-Params`,ft=`X-Vinext-Dynamic-Stale-Time`,pt=`X-Vinext-Rsc-Completion-Metadata`,mt=`X-Vinext-Rendered-Path-And-Search`,ht=`x-vinext-prerender-cache-life`,gt=`x-vinext-prerender-render-error`,_t=`x-vinext-metadata-route-cache`,vt=`X-Vinext-Client-Reuse-Manifest`,yt=`X-Vinext-Rsc-Redirect`,bt=`X-Vinext-Rsc-Redirect-Type`,xt=`x-rsc-action`,St=`next-action`,Ct=`x-nextjs-action-not-found`,wt=`x-nextjs-stale-time`,Tt=`X-Vinext-Stale-Time-Pending`,Et=`x-nextjs-deployment-id`,Dt=`x-action-forwarded`,Ot=`x-action-revalidated`,kt=`x-action-redirect`,At=`x-action-redirect-type`,jt=`x-action-redirect-status`,Mt=`x-middleware-next`,Nt=`x-middleware-rewrite`,Pt=`x-middleware-redirect`,Ft=`x-nextjs-request-id`,It=`x-nextjs-html-request-id`,Lt=[`rsc`,`next-router-state-tree`,`next-router-prefetch`,`next-hmr-refresh`,`next-router-segment-prefetch`,`x-vinext-rsc-state-fingerprint`],Rt=[Nt,Pt,Fe,Ie,Pe,Mt,`x-now-route-matches`,`x-matched-path`,`x-nextjs-data`,`x-next-resume-state-length`,Dt],zt=[et.toLowerCase(),tt.toLowerCase(),$e.toLowerCase(),je,Me,ht,Ne,lt,Ze.toLowerCase(),Qe.toLowerCase(),Xe.toLowerCase()],Bt=(e,t)=>
1e<t?-1:+(e>t);function Vt(e){return e.startsWith(`/`)&&!e.startsWith(`//`)&&!e.includes(`?`)&&!e.includes(`#`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function Ht(e){if(e===`/`||e.length>1&&e[0]===`/`&&!e.includes(`//`)&&!e.includes(`/./`)&&!e.includes(`/../`)&&!e.endsWith(`/.`)&&!e.endsWith(`/..`))return e;let t=e.split(`/`),n=[];for(let e of t)e!==``&&e!==`.`&&(e===`..`?n.pop():n.push(e));return`/`+n.join(`/`)}function Ut(e,t){return`slot:${e}:${t}`}function Wt(e){if(!e.startsWith(`slot:`))return!1;let t=e.slice(5),n=t.indexOf(`:`);return n>0&&t.charCodeAt(n+1)===47}function Gt(e){let t=e.indexOf(`\0`),n=t===-1?e:e.slice(0,t);return n.startsWith(`/`)?{interceptionContext:t===-1?null:e.slice(t+1),path:n}:null}function Kt(e){return e.startsWith(`/`)?e:null}function w(e){if(e.startsWith(`route:`)){let t=Gt(e.slice(6));return t?{interceptionContext:t.interceptionContext,kind:`route`,path:t.path}:null}if(e.startsWith(`page:`)){let t=Gt(e.slice(5));return t?{interceptionContext:t.interceptionContext,kind:`page`,path:t.path}:null}if(e.startsWith(`layout:`)){let t=Kt(e.slice(7));return t?{kind:`layout`,treePath:t}:null}if(e.startsWith(`template:`)){let t=Kt(e.slice(9));return t?{kind:`template`,treePath:t}:null}if(e.startsWith(`slot:`)){let t=e.slice(5),n=t.indexOf(`:`);if(n<=0)return null;let r=Kt(t.slice(n+1));return r?{kind:`slot`,name:t.slice(0,n),treePath:r}:null}return null}function qt(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=t*16777619>>>0;let n=84696351;for(let t=0;t<e.length;t++)n^=e.charCodeAt(t),n=n*16777619>>>0;return t.toString(16).padStart(8,`0`)+n.toString(16).padStart(8,`0`)}var Jt=[`schemaVersion`,`graphVersion`,`deploymentVersion`,`appElementsSchemaVersion`,`rscPayloadSchemaVersion`,`rootBoundaryId`,`renderEpoch`];function Yt(e={}){return{schemaVersion:1,graphVersion:e.graphVersion??null,deploymentVersion:e.deploymentVersion??null,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId??null,renderEpoch:e.renderEpoch??null}}function Xt(e){return typeof e==`string`||e===null}function Zt(e){return e.schemaVersion===1&&e.appElementsSchemaVersion===1&&e.rscPayloadSchemaVersion===1}function Qt(e){return!s(e)||!Zt(e)||!Xt(e.graphVersion)||!Xt(e.deploymentVersion)||!Xt(e.rootBoundaryId)||!Xt(e.renderEpoch)?null:{schemaVersion:1,graphVersion:e.graphVersion,deploymentVersion:e.deploymentVersion,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId,renderEpoch:e.renderEpoch}}var T=a(),$t=new WeakMap;function en(e,t){$t.get(e)?.get(t)?.release()}var tn=`\0`,nn=`__sourcePage`,rn=`__artifactCompatibility`,an=`__cacheEntryReuseProof`,on=`__dynamicStaleTime`,sn=`__interception`,cn=`__interceptionContext`,ln=`__layoutIds`,un=`__layoutFlags`,dn=`__route`,fn=`__rootLayout`,pn=`__skippedLayoutIds`,mn=`__srcPage`,hn=`__slotBindings`,E=`__bfcacheSegmentIdentities`,gn=`__staticSiblings`,_n=`__VINEXT_UNMATCHED_SLOT__`,D=Symbol.for(`vinext.unmatchedSlot`),vn=new Set;function yn(e){return new Set(e)}var bn=yn(`CP_CACHE_ENTRY_PROOF_MISSING.CP_MODEL_DISABLED.CP_ARTIFACT_COMPATIBILITY_INCOMPATIBLE.CP_ARTIFACT_COMPATIBILITY_UNKNOWN.CP_DIMENSION_COUNT_EXCEEDED.CP_DIMENSION_NAME_MISSING.CP_DIMENSION_NAME_TOO_LONG.CP_DIMENSION_VALUE_COUNT_EXCEEDED.CP_DIMENSION_VALUE_TOO_LONG.CP_DIMENSION_VALUES_MISSING.CP_ENCODED_VARIANT_TOO_LONG.CP_INVALID_VARIANT_BUDGET.CP_ROUTE_VARIANT_BUDGET_ROUTE_MISMATCH.CP_ROUTE_VARIANT_CEILING_EXCEEDED.CP_UNSAFE_PUBLIC_DIMENSION.CP_BOUNDARY_OUTCOME_MISMATCH.CP_BOUNDARY_OUTCOME_UNKNOWN.CP_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_CANDIDATE_OUTPUT_KIND.CP_STATIC_LAYOUT_CURRENT_OUTPUT_KIND.CP_STATIC_LAYOUT_ID_MISMATCH.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_KIND.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_MISMATCH.CP_STATIC_LAYOUT_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_REQUEST_API_OBSERVED.CP_STATIC_LAYOUT_REQUEST_API_UNKNOWN.CP_STATIC_LAYOUT_ROOT_BOUNDARY_MISMATCH.CP_STATIC_LAYOUT_ROOT_BOUNDARY_UNKNOWN.CP_STATIC_LAYOUT_VARIANT_DIMENSION_UNPROVEN`.split(`.`)),O=Bt;function xn(e,t){return O(e.slotId,t.slotId)}function Sn(e,t={}){let n=t.layoutIds?new Set(t.layoutIds):null,r=new Set,i=[];for(let t of e){if(r.has(t.slotId))throw Error(`[vinext] Invalid __slotBindings in App Router payload: duplicate slot id`);
1if(r.add(t.slotId),n&&t.ownerLayoutId!==null&&!n.has(t.ownerLayoutId))throw Error(`[vinext] Invalid __slotBindings in App Router payload: owner layout id missing from __layoutIds`);i.push({...t})}return i.sort(xn)}function Cn(e,t){return t===null?e:`${e}${tn}${t}`}function wn(e,t){return Cn(`route:${e}`,t)}function Tn(e,t){return Cn(`page:${e}`,t)}function En(e){return`layout:${e}`}function Dn(e){return`template:${e}`}function On(e,t){return Cn(e,t)}function kn(e){let t=w(e)?.kind;return t===`page`||t===`layout`||t===`template`||t===`slot`}function An(e){return Array.isArray(e)&&e.length>0&&e.every(e=>typeof e==`string`&&e.length>0&&!e.includes(`/`))}function jn(e){if(typeof e!=`string`||!e.startsWith(`/`))return null;let t=e.slice(1).split(`/`);return An(t)?t:null}function Mn(e){let t=[...e.layoutIds??[]],n=jn(e.sourcePage),r={[dn]:e.routeId,[cn]:e.interceptionContext,[ln]:t,[fn]:e.rootLayoutTreePath,...e.dynamicStaleTimeSeconds===void 0?{}:{[on]:e.dynamicStaleTimeSeconds},...e.bfcacheSegmentIdentities&&Object.keys(e.bfcacheSegmentIdentities).length>0?{[E]:e.bfcacheSegmentIdentities}:{},...n===null?{}:{[mn]:n}},i=e.interception?{...r,[sn]:e.interception}:r;return e.slotBindings&&e.slotBindings.length>0?{...i,[hn]:Sn(e.slotBindings,{layoutIds:t})}:i}function Nn(e){let t=!1;for(let[n,r]of Object.entries(e))if(Wt(n)&&r===`__VINEXT_UNMATCHED_SLOT__`){t=!0;break}if(!t)return e;let n={};for(let[t,r]of Object.entries(e))n[t]=Wt(t)&&r===`__VINEXT_UNMATCHED_SLOT__`?D:r;return n}function Pn(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;for(let t of Object.values(e))if(t!==`s`&&t!==`d`)return!1;return!0}function Fn(e){return Pn(e)?e:{}}function In(e,t){if(e===void 0)return[];if(!Array.isArray(e))throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout id string[]`);let n=[];for(let r of e){if(typeof r!=`string`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout id string[]`);if(w(r)?.kind!==`layout`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout ids`);n.push(r)}return n}function Ln(e){return In(e,ln)}function Rn(e){return In(e,pn)}function zn(e){return e===`active`||e==="default"||e===`unmatched`}function Bn(e,t={}){if(e===void 0)return[];if(!Array.isArray(e))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected array`);let n=[];for(let t of e){if(!s(t))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected objects`);let e=t.slotId;if(typeof e!=`string`||w(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected slot ids`);let r=t.ownerLayoutId;if(r!==null&&(typeof r!=`string`||w(r)?.kind!==`layout`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected owner layout ids`);let i=t.state;if(!zn(i))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected state`);let a=t.activeRouteId;if(a!=null&&(typeof a!=`string`||w(a)?.kind!==`route`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected route ids`);let o=t.interceptionId;if(o!=null&&(typeof o!=`string`||o.length===0))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected interception ids`);let c=t.interceptionSourceMatchedUrl;if(c!=null&&typeof c!=`string`)throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected interception source URLs`);typeof c==`string`&&Hn(c),n.push({...a===void 0?{}:{activeRouteId:a},...o===void 0?{}:{interceptionId:o},...c===void 0?{}:{interceptionSourceMatchedUrl:c},ownerLayoutId:r,slotId:e,state:i})}return Sn(n,t)}function Vn(e,t){let n=e[t];if(typeof n!=`string`)throw Error(`[vinext] Invalid __interception in App Router payload: expected strings`);return n}function Hn(e){if(!Vt(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected path URLs`);return e}function Un(e,t){let n=w(e);if(n?.kind!==`route`||n.path!==t||n.interceptionContext!==null)throw Error(`[vinext] Invalid __interception in App Router payload: expected route ids`);return e}function Wn(e){if(w(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __interception in App Router payload: expected slot id`);return e}function Gn(e){if(e==null)return null;if(!s(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected object`);let t=Hn(Vn(e,`sourceMatchedUrl`)),n=Hn(Vn(e,`targetMatchedUrl`));return{sourceMatchedUrl:t,sourceRouteId:Un(Vn(e,`sourceRouteId`),t),slotId:Wn(Vn(e,`slotId`)),targetMatchedUrl:n,targetRouteId:Un(Vn(e,`targetRouteId`),n)}}function Kn(e){return!(typeof e!=`object`||!e||Array.isArray(e)||(0,o.isValidElement)(e))}function qn(e,t){return{...e,[un]:t}}function Jn(e){if(!Kn(e.element))return e.element;let t=Yn(e.skipDisposition),n={};for(let[r,i]of Object.entries(e.element)){if(t.has(r)){en(e.element,r);continue}n[r]=i===D?_n:i}return n[un]=e.layoutFlags,t.size>0&&(n[pn]=[...t]),n[rn]=e.artifactCompatibility??Yt(),e.cacheEntryReuseProof&&(n[an]=e.cacheEntryReuseProof),e.dynamicStaleTimeSeconds!==void 0&&(n[on]=e.dynamicStaleTimeSeconds),n}function Yn(e){if(e?.enabled!==!0)return vn;let t=new Set;for(let n of e.skippedEntryIds)w(n)?.kind===`layout`&&t.add(n);return t}function Xn(e){return e===void 0?Yt():Qt(e)??Yt()}function Zn(e){return e==null?null:typeof e==`string`?e.startsWith(`/`)?e:null:An(e)?`/${e.join(`/`)}`:null}function Qn(){return{kind:`runtime-cache-entry`,decision:null}}function $n(e){return typeof e==`string`&&bn.has(e)}function er(e){return e===`renderFresh`||e===`privateUncacheable`}function tr(e){return e===`affectedOutput`||e===`route`}function nr(e){if(e===void 0)return null;if(!s(e)||e.kind!==`runtime-cache-entry`)return Qn();let t=e.decision;return t===null||!s(t)?Qn():t.kind===`reuse`&&t.canReuse===!0&&t.code===`CP_STATIC_LAYOUT_REUSE_PROVEN`&&t.reuseClass===`static-layout`?{kind:`runtime-cache-entry`,decision:{canReuse:!0,code:t.code,kind:`reuse`,reuseClass:t.reuseClass}}:t.kind===`reject`&&t.canReuse===!1&&$n(t.code)&&er(t.mode)&&tr(t.
1scope)?{kind:`runtime-cache-entry`,decision:{canReuse:!1,code:t.code,kind:`reject`,mode:t.mode,scope:t.scope}}:Qn()}function rr(e){if(!s(e))return{};let t={};for(let[n,r]of Object.entries(e)){if(typeof r!=`string`||!kn(n))return{};t[n]=r}return t}function ir(e){let t=e[dn];if(typeof t!=`string`)throw Error(`[vinext] Missing __route string in App Router payload`);let n=e[cn];if(n!=null&&typeof n!=`string`)throw Error(`[vinext] Invalid __interceptionContext in App Router payload`);let r=e[fn];if(r===void 0)throw Error(`[vinext] Missing __rootLayout key in App Router payload`);if(r!==null&&typeof r!=`string`)throw Error(`[vinext] Invalid __rootLayout in App Router payload: expected string or null`);let i=Fn(e[un]),a=Ln(e[ln]),o=Rn(e[pn]),s=Bn(e[hn],{layoutIds:a}),c=Gn(e[sn]),l=Xn(e[rn]),u=nr(e[an]),d=e[on],f=typeof d==`number`&&Number.isFinite(d)&&d>=0?d:void 0,p=Object.hasOwn(e,`__srcPage`)?Zn(e[mn]):Zn(e[nn]),ee=rr(e[E]);return{artifactCompatibility:l,...u?{cacheEntryReuseProof:u}:{},...f===void 0?{}:{dynamicStaleTimeSeconds:f},interception:c,interceptionContext:n??null,layoutIds:a,layoutFlags:i,routeId:t,rootLayoutTreePath:r,bfcacheSegmentIdentities:ee,skippedLayoutIds:o,slotBindings:s,sourcePage:p}}var k={keys:{artifactCompatibility:rn,cacheEntryReuseProof:an,dynamicStaleTime:on,interception:sn,interceptionContext:cn,layoutIds:ln,layoutFlags:un,rootLayout:fn,route:dn,bfcacheSegmentIdentities:E,skippedLayoutIds:pn,slotBindings:hn,sourcePageSegments:mn},unmatchedSlotValue:_n,createMetadataEntries:Mn,decode:Nn,encodeCacheKey:On,encodeLayoutId:En,encodeOutgoingPayload:Jn,encodePageId:Tn,encodeRouteId:wn,encodeSlotId:Ut,encodeTemplateId:Dn,isSlotId:Wt,parseElementKey:w,readMetadata:ir,withLayoutFlags:qn},ar=4096,or=256,sr=16;function cr(e){return e.length===0||e.length>or?!1:Wt(e)}function lr(e){if(!e||e.length>ar)return null;let t=e.split(/\s+/).filter(e=>e&&cr(e));return t.length===0?null:Array.from(new Set(t)).sort().slice(0,sr).join(` `)||null}var ur=e({APP_ARTIFACT_COMPATIBILITY_KEY:()=>rn,APP_BFCACHE_SEGMENT_IDENTITIES_KEY:()=>E,APP_CACHE_ENTRY_REUSE_PROOF_KEY:()=>an,APP_DYNAMIC_STALE_TIME_KEY:()=>on,APP_INTERCEPTION_CONTEXT_KEY:()=>cn,APP_INTERCEPTION_KEY:()=>sn,APP_LAYOUT_FLAGS_KEY:()=>un,APP_LAYOUT_IDS_KEY:()=>ln,APP_PREFETCH_LOADING_SHELL_MARKER_KEY:()=>dr,APP_ROOT_LAYOUT_KEY:()=>fn,APP_ROUTE_KEY:()=>dn,APP_SKIPPED_LAYOUT_IDS_KEY:()=>pn,APP_SLOT_BINDINGS_KEY:()=>hn,APP_SOURCE_PAGE_SEGMENTS_KEY:()=>mn,APP_STATIC_SIBLINGS_KEY:()=>gn,APP_UNMATCHED_SLOT_WIRE_VALUE:()=>_n,AppElementsWire:()=>k,UNMATCHED_SLOT:()=>D,buildOutgoingAppPayload:()=>Jn,compareAppElementsSlotIds:()=>O,getMountedSlotIds:()=>fr,getMountedSlotIdsHeader:()=>pr,isAppElementsRecord:()=>Kn,normalizeAppElements:()=>Nn,normalizeAppElementsSlotBindings:()=>Sn,readAppElementsMetadata:()=>ir,resolveVisitedResponseInterceptionContext:()=>mr,withLayoutFlags:()=>qn}),dr=`__prefetchLoadingShell`;function fr(e){return Object.keys(e).filter(t=>{let n=e[t],r=k.parseElementKey(t);return r?.kind===`slot`&&r.name!==`children`&&n!=null&&n!==D}).sort()}function pr(e){return lr(fr(e).join(` `))}function mr(e,t){return t??e}var hr=Symbol.for(`vinext.appRouterContext`),gr=Symbol.for(`vinext.globalLayoutRouterContext`),_r=Symbol.for(`vinext.layoutRouterContext`),vr=Symbol.for(`vinext.missingSlotContext`),yr=Symbol.for(`vinext.templateContext`);function br(e,t){if(typeof o.createContext!=`function`)return null;let n=globalThis;return n[e]||(n[e]=o.createContext(t)),n[e]??null}var xr=br(hr,null);br(gr,null),br(_r,null),br(vr,new Set),br(yr,null);function Sr(e,t){let n=Cr(e,t);return n&&Ce(n),n}function Cr(e,t){let n=Object.create(null);function r(i,a){if(a===t.length)return i===e.length;let o=t[a];if(o.startsWith(`:`)&&(o.endsWith(`+`)||o.endsWith(`*`))){let t=o.slice(1,-1),s=+!!o.endsWith(`+`);for(let o=i+s;o<=e.length;o++){let s=e.slice(i,o);if(s.length>0?n[t]=s:delete n[t],r(o,a+1))return!0}return delete n[t],!1}if(o.startsWith(`:`)){if(i>=e.length)return!1;let t=o.slice(1);return n[t]=e[i],r(i+1,a+1)?!0:(delete n[t],!1)}return i>=e.length||e[i]!==o?!1:r(i+1,a+1)}return r(0,0)?n:null}function wr(e,t){let n=Object.create(null),r=0;for(let i of e){if(!i.startsWith(`:`)){r+=1;continue}let e=i.endsWith(`+`)||i.endsWith(`*`),a=i.slice(1,e?-1:void 0);if(e){let e=t.slice(r);e.length>0&&(n[a]=[...e]);break}let o=t[r];o!==void 0&&(n[a]=o),r+=1}return n}function Tr(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r],a=r===t.length-1;if(i.startsWith(`:`)&&i.endsWith(`+`))return a&&e.length-n>=1;if(i.startsWith(`:`)&&i.endsWith(`*`))return a;
1if(n>=e.length)return!1;if(i.startsWith(`:`)){n++;continue}if(e[n]!==i)return!1;n++}return!0}function Er(e,t){function n(r,i){if(i===t.length)return r===e.length;let a=t[i];if(a.startsWith(`:`)&&(a.endsWith(`+`)||a.endsWith(`*`))){let t=+!!a.endsWith(`+`);for(let a=r+t;a<=e.length;a++)if(n(a,i+1))return!0;return!1}return a.startsWith(`:`)?n(r,i+1)||r<e.length&&n(r+1,i+1):r>=e.length||e[r]!==a?!1:n(r+1,i+1)}return n(0,0)}var Dr=`1.0.0`;function Or(e){let t=window.next;if(t){e.version!==void 0&&(t.version=e.version),e.appDir!==void 0&&(t.appDir=e.appDir),e.router!==void 0&&(t.router=e.router),e.__pendingUrl!==void 0&&(t.__pendingUrl=e.__pendingUrl),e.__internal_src_page!==void 0&&(t.__internal_src_page=e.__internal_src_page);return}window.next={version:e.version??Dr,...e}}function kr(e){if(Or({}),e===null){delete window.next?.__internal_src_page;return}let t=window.next;t&&(t.__internal_src_page=e)}function Ar(e){try{return decodeURIComponent(e)}catch{return e}}function jr(e){let t=Ar(e.startsWith(`#`)?e.slice(1):e);if(t===``||t===`top`){window.scrollTo(0,0);return}let n=document.getElementById(t);if(n){n.scrollIntoView({behavior:`auto`});return}let r=document.getElementsByName(t)[0];if(r){r.scrollIntoView({behavior:`auto`});return}window.scrollTo(0,0)}function Mr(e,t){requestAnimationFrame(()=>{(!t||t())&&jr(e)})}function Nr(e,t,n){let r=n?.minFrames??0,i=n?.shouldContinue??(()=>!0),a=0,o=()=>{if(!i())return;window.scrollTo(e,t);let n=Math.abs(window.scrollY-t)<=1;!i()||n&&a>=r||a>=60||(a+=1,requestAnimationFrame(o))};o()}var Pr=Symbol.for(`vinext.layoutSegmentContext`),Fr=Symbol.for(`vinext.serverInsertedHTMLContext`),Ir=Symbol.for(`vinext.bfcacheIdMapContext`),Lr=Symbol.for(`vinext.bfcacheSegmentIdContext`),Rr=Symbol.for(`vinext.navigation.clientHydrationContext`),zr=Symbol.for(`vinext.navigation.fallback`);function Br(e){return typeof o.createContext==`function`?o.createContext(e):null}function Vr(){let e=globalThis;return e[Fr]||(e[Fr]=Br(null)),e[Fr]??null}var Hr=Vr();function Ur(){let e=globalThis;return e[Pr]||(e[Pr]=Br({children:[]})),e[Pr]??null}function Wr(){let e=globalThis;return e[Ir]||(e[Ir]=Br(null)),e[Ir]??null}function Gr(){let e=globalThis;return e[Lr]||(e[Lr]=Br(null)),e[Lr]??null}var Kr=Symbol.for(`vinext.navigation.globalAccessors`);function qr(){let e=globalThis;return e[zr]??={serverContext:null,serverInsertedHTMLCallbacks:[]}}function Jr(){return globalThis[Kr]}function Yr(){let e=globalThis;if(Object.prototype.hasOwnProperty.call(e,Rr))return e[Rr]??null}function Xr(e){globalThis[Rr]=e}function Zr(){Xr(null)}var Qr=()=>{{let e=Yr();return e===void 0?qr().serverContext:e}},$r=e=>{qr().serverContext=e,Xr(e)},ei=()=>Jr()?.getInsertedHTMLCallbacks()??qr().serverInsertedHTMLCallbacks,ti=()=>{let e=Jr();e?e.clearInsertedHTMLCallbacks():qr().serverInsertedHTMLCallbacks=[]};function ni(e){Qr=e.getServerContext,$r=e.setServerContext,ei=e.getInsertedHTMLCallbacks,ti=e.clearInsertedHTMLCallbacks}function A(){return Qr()}function ri(e){$r(e)}function ii(e){ei().push(e)}function ai(e){let t=ei(),n=[];for(let e of t)try{let t=e();t!=null&&n.push(t)}catch{}return e&&(t.length=0),n}function oi(){return ai(!0)}function si(){return ai(!1)}function ci(){ti()}var li=`NEXT_REDIRECT;`;function ui(e){if(!e.startsWith(li))return null;let t=e.indexOf(`;`,14);if(t===-1)return null;let n=e.slice(t+1),r=n.match(/;(303|307|308);?$/),i=n!==``&&e.endsWith(`;`);if(i&&!r)return null;let a=r?n.slice(0,-r[0].length):n,o=a;if(!i)try{o=decodeURIComponent(a)}catch{return null}return{status:r?Number(r[1]):307,type:e.slice(14,t)||null,url:o}}var di=`NEXT_HTTP_ERROR_FALLBACK`;function fi(e){if(!e||typeof e!=`object`||!(`digest`in e))return!1;let t=String(e.digest);return t===`NEXT_NOT_FOUND`||t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`)}function pi(e){if(e&&typeof e==`object`&&`digest`in e){let t=String(e.digest);if(t===`NEXT_NOT_FOUND`)return 404;if(t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`))return Number.parseInt(t.split(`;`)[1],10)}return 404}var mi=function(e){return e.push=`push`,e.replace=`replace`,e}({}),hi=class extends Error{digest;constructor(e,t){super(e),this.digest=t}};function gi(e,t){throw new hi(`NEXT_REDIRECT:${e}`,`NEXT_REDIRECT;${t??``};${encodeURIComponent(e)}`)}function _i(e,t=`replace`){throw new hi(`NEXT_REDIRECT:${e}`,`NEXT_REDIRECT;${t};${encodeURIComponent(e)};308`)}function vi(){throw new hi(`NEXT_NOT_FOUND`,`${di};404`)}function yi(){throw new hi(`NEXT_FORBIDDEN`,`${di};403`)}function bi(){throw new hi(`NEXT_UNAUTHORIZED`,`${di};401`)}function xi(e){return!!e&&typeof e==`object`&&`digest`in e&&typeof e.digest==`string`&&e.digest.startsWith(`NEXT_REDIRECT;`)}function Si(e){let t=ui(e);return t?{url:t.url,type:t.type===`push`?`push`:`replace`}:null}function Ci(e){return xi(e)||fi(e)}
1var wi=`BAILOUT_TO_CLIENT_SIDE_RENDERING`,Ti=class extends Error{digest=wi;reason;constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e}};function Ei(e){return!!e&&typeof e==`object`&&`digest`in e&&e.digest===wi}var Di=`DYNAMIC_SERVER_USAGE`,Oi=class extends Error{digest=Di;description;constructor(e){super(`Dynamic server usage: ${e}`),this.description=e}};function ki(e){return!!e&&typeof e==`object`&&`digest`in e&&e.digest===Di}function Ai(e){if(Ci(e)||Ei(e)||ki(e))throw e;e instanceof Error&&`cause`in e&&Ai(e.cause)}var ji=e({default:()=>Fi}),j={container:{fontFamily:`system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"`,height:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`},card:{marginTop:`-32px`,maxWidth:`325px`,padding:`32px 28px`,textAlign:`left`},icon:{marginBottom:`24px`},title:{fontSize:`24px`,fontWeight:500,letterSpacing:`-0.02em`,lineHeight:`32px`,margin:`0 0 12px 0`,color:`var(--next-error-title)`},message:{fontSize:`14px`,fontWeight:400,lineHeight:`21px`,margin:`0 0 20px 0`,color:`var(--next-error-message)`},form:{margin:0},buttonGroup:{display:`flex`,gap:`8px`,alignItems:`center`},button:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,cursor:`pointer`,color:`var(--next-error-btn-text)`,background:`var(--next-error-btn-bg)`,border:`var(--next-error-btn-border)`},buttonSecondary:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,cursor:`pointer`,color:`var(--next-error-btn-secondary-text)`,background:`var(--next-error-btn-secondary-bg)`,border:`var(--next-error-btn-secondary-border)`},digestFooter:{position:`fixed`,bottom:`32px`,left:`0`,right:`0`,textAlign:`center`,fontFamily:`ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace`,fontSize:`12px`,lineHeight:`18px`,fontWeight:400,margin:`0`,color:`var(--next-error-digest)`}},Mi=` 2:root { 3 --next-error-bg: #fff; 4 --next-error-text: #171717; 5 --next-error-title: #171717; 6 --next-error-message: #171717; 7 --next-error-digest: #666666; 8 --next-error-btn-text: #fff; 9 --next-error-btn-bg: #171717; 10 --next-error-btn-border: none; 11 --next-error-btn-secondary-text: #171717; 12 --next-error-btn-secondary-bg: transparent; 13 --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08); 14} 15@media (prefers-color-scheme: dark) { 16 :root { 17 --next-error-bg: #0a0a0a; 18 --next-error-text: #ededed; 19 --next-error-title: #ededed; 20 --next-error-message: #ededed; 21 --next-error-digest: #a0a0a0; 22 --next-error-btn-text: #0a0a0a; 23 --next-error-btn-bg: #ededed; 24 --next-error-btn-border: none; 25 --next-error-btn-secondary-text: #ededed; 26 --next-error-btn-secondary-bg: transparent; 27 --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14); 28 } 29} 30body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); } 31`.replace(/\n\s*/g,``);function Ni(){return(0,T.jsx)(`svg`,{width:`32`,height:`32`,viewBox:`-0.2 -1.5 32 32`,fill:`none`,style:j.icon,children:(0,T.jsx)(`path`,{d:`M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z`,fill:`var(--next-error-title)`})})}function Pi(){window.history.length>1?window.history.back():window.location.href=`/`}function Fi({error:e}){let t=e?.digest,n=!!t,r=n?`A server error occurred. Reload to try again.`:`Reload to try again, or go back.`;return(0,T.jsxs)(`html`,{id:`__next_error__`,children:[(0,T.jsx)(`head`,{children:(0,T.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Mi}})}),(0,T.jsxs)(`body`,{children:[(0,T.jsx)(`div`,{style:j.container,children:(0,T.jsxs)(`div`,{style:j.card,children:[(0,T.jsx)(Ni,{}),(0,T.jsx)(`h1`,{style:j.title,children:`This page couldnât load`}),(0,T.jsx)(`p`,{style:j.message,children:r}),(0,T.jsxs)(`div`,{style:j.buttonGroup,children:[(0,T.jsx)(`form`,{style:j.form,children:(0,T.jsx)(`button`,{type:`submit`,style:j.button,children:`Reload`})}),!n&&(0,T.jsx)(`button`,{type:`button`,style:j.buttonSecondary,onClick:Pi,children:`Back`})]})]})}),t&&(0,T.jsxs)(`p`,{style:j.digestFooter,children:[`ERROR `,t]})]})]})}function Ii(){return window.next?.__pendingUrl??null}function Li(e){let t=Ii();return t===null?null:t.href===new URL(e,window.location.href).href?t:null}function Ri(e){if(window.next?.__pendingUrl!==void 0){if(e instanceof URL){if(window.next.__pendingUrl!==e)return}else if(e!==void 0&&window.next.__pendingUrl.href!==new URL(e,window.location.href).href)return;delete window.next.__pendingUrl}}function zi(e){return!1}function Bi(){return()=>{}}function Vi(e){return!e||typeof e!=`object`||!(`digest`in e)?null:String(e.digest)}function Hi(e){let t=Vi(e);return t===null?!1:t===`NEXT_NOT_FOUND`||t.startsWith(`NEXT_HTTP_ERROR_FA
31LLBACK;`)||t.startsWith(`NEXT_REDIRECT;`)}var Ui=class{run(e,t,...n){return t(...n)}getStore(){}enterWith(){}exit(e,...t){return e(...t)}disable(){}},Wi=globalThis,Gi=Symbol.for(`vinext.als.registry`),Ki=Wi[Gi]??=new Set,qi=class{getStore(){}run(e,t,...n){return t(...n)}exit(e,...t){return e(...t)}enterWith(e){}disable(){}};function Ji(e){let t=Symbol.for(e),n=Wi[t]??=typeof Ui==`function`?new Ui:new qi;return Ki.add(n),n}Ji(`vinext.pprFallbackShell.als`),Ji(`vinext.pprFallbackShell.cacheTaskStack.als`);var Yi=Symbol.for(`vinext.clientNavigationState`),Xi=Symbol.for(`vinext.clientNavigationRenderContext`),Zi=``;function Qi(){return globalThis[Yi]}function $i(){return Qi()?.cachedPathname??v(window.location.pathname,Zi)}function ea(){return A()?.pathname??`/`}function ta(e){let t=Qi();return t?(t.listeners.add(e),()=>t.listeners.delete(e)):()=>{}}function na(){let e=globalThis;return e[Xi]??=o.createContext(null)}function ra(){let e=o.useContext(na()),t=o.useSyncExternalStore(ta,$i,ea);return e&&(Qi()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function ia(){if(!xr||typeof o.useContext!=`function`)throw Error(`invariant expected app router to be mounted`);let e=o.useContext(xr);if(e===null)throw Error(`invariant expected app router to be mounted`);return e}var aa=`vinext:dev-error-recovery`,oa=e({DevRecoveryBoundary:()=>wa,ErrorBoundary:()=>ga,ErrorBoundaryInner:()=>ha,ForbiddenBoundary:()=>xa,ForbiddenBoundaryInner:()=>ba,GlobalErrorBoundary:()=>_a,NotFoundBoundary:()=>ya,RedirectBoundary:()=>ma,RedirectErrorBoundary:()=>pa,SerializedErrorBoundary:()=>sa,UnauthorizedBoundary:()=>Ca,UnauthorizedBoundaryInner:()=>Sa});function sa({fallback:e,error:t}){let n=Object.assign(Error(t.message),{digest:t.digest,name:t.name??`Error`,stack:t.stack});return(0,T.jsx)(e,{error:n,reset:()=>globalThis.location?.reload()})}function ca(e){return e==null||e===``?null:e}function M(e){return{previousPathname:e.pathname,previousResetKey:ca(e.resetKey)}}function la(e,t){let n=ca(e.previousResetKey),r=ca(t.previousResetKey);return n!==null||r!==null?n!==r:e.previousPathname!==t.previousPathname}function ua(e){window.addEventListener(aa,e)}function da(e){window.removeEventListener(aa,e)}function fa({redirect:e,redirectType:t,reset:n}){let r=ia();return o.useEffect(()=>{o.startTransition(()=>{t===`push`?r.push(e):r.replace(e),n()})},[e,t,n,r]),null}var pa=class extends o.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if(xi(e)){if(`handled`in e&&e.handled)return{redirect:null,redirectType:null};let t=Si(e.digest);if(!t)throw e;return{redirect:t.url,redirectType:t.type}}throw e}render(){let{redirect:e,redirectType:t}=this.state;return e!==null&&t!==null?(0,T.jsx)(fa,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null,redirectType:null})}):this.props.children}};function ma({children:e}){return(0,T.jsx)(pa,{children:e})}var ha=class extends o.Component{constructor(e){super(e),this.state={error:null,...M(e)}}static getDerivedStateFromProps(e,t){let n=M(e);return t.error&&zi(t.error.thrownValue)||t.error&&la(n,t)?{error:null,...n}:{error:t.error,...n}}static getDerivedStateFromError(e){if(Hi(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,...M(this.props)})};componentDidMount(){ua(this.handleDevErrorRecovery)}componentWillUnmount(){da(this.handleDevErrorRecovery)}reset=()=>{this.setState({error:null})};render(){if(this.state.error){let e=this.props.fallback;return(0,T.jsx)(e,{error:this.state.error.thrownValue,reset:this.reset})}return this.props.children}};function ga({fallback:e,children:t,resetKey:n}){let r=ra();return(0,T.jsx)(ha,{pathname:r,resetKey:n,fallback:e,children:t})}function _a({fallback:e,children:t}){let n=ra();return(0,T.jsx)(ha,{pathname:n,fallback:e,isImplicitRootErrorBoundary:e===Fi,children:t})}var va=class extends o.Component{constructor(e){super(e),this.state={notFound:!1,...M(e)}}static getDerivedStateFromProps(e,t){let n=M(e);return t.notFound&&la(n,t)?{notFound:!1,...n}:{notFound:t.notFound,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e){let t=String(e.digest);
31if(t===`NEXT_NOT_FOUND`||t===`NEXT_HTTP_ERROR_FALLBACK;404`)return{notFound:!0}}throw e}render(){return this.state.notFound?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function ya({fallback:e,children:t,resetKey:n}){let r=ra();return(0,T.jsx)(va,{pathname:r,resetKey:n,fallback:e,children:t})}var ba=class extends o.Component{constructor(e){super(e),this.state={forbidden:!1,...M(e)}}static getDerivedStateFromProps(e,t){let n=M(e);return t.forbidden&&la(n,t)?{forbidden:!1,...n}:{forbidden:t.forbidden,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e&&String(e.digest)===`NEXT_HTTP_ERROR_FALLBACK;403`)return{forbidden:!0};throw e}render(){return this.state.forbidden?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function xa({fallback:e,children:t,resetKey:n}){let r=ra();return(0,T.jsx)(ba,{pathname:r,resetKey:n,fallback:e,children:t})}var Sa=class extends o.Component{constructor(e){super(e),this.state={unauthorized:!1,...M(e)}}static getDerivedStateFromProps(e,t){let n=M(e);return t.unauthorized&&la(n,t)?{unauthorized:!1,...n}:{unauthorized:t.unauthorized,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e&&String(e.digest)===`NEXT_HTTP_ERROR_FALLBACK;401`)return{unauthorized:!0};throw e}render(){return this.state.unauthorized?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function Ca({fallback:e,children:t,resetKey:n}){let r=ra();return(0,T.jsx)(Sa,{pathname:r,resetKey:n,fallback:e,children:t})}var wa=class extends o.Component{constructor(e){super(e),this.state={error:null,previousResetKey:e.resetKey}}static getDerivedStateFromProps(e,t){return e.resetKey===t.previousResetKey?null:{error:null,previousResetKey:e.resetKey}}static getDerivedStateFromError(e){if(Hi(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,previousResetKey:this.props.resetKey})};componentDidMount(){ua(this.handleDevErrorRecovery)}componentWillUnmount(){da(this.handleDevErrorRecovery)}componentDidCatch(){this.props.onCatch?.(this.props.resetKey)}render(){return this.state.error?null:this.props.children}},Ta=Symbol.for(`vinext.appRouterScrollIntent`);function N(){let e=globalThis;return e[Ta]??={nextId:0,pending:null},e[Ta]}function Ea(e){let t=N();t.nextId+=1;let n={commitId:null,hash:e,headElements:typeof document>`u`?null:new Set(document.head?.children??[]),id:t.nextId,targetHoistedInHead:!1};return t.pending=n,n}function Da(){let e=N();e.nextId+=1,e.pending=null}function Oa(){return N().pending}function ka(e){return e!=null&&N().nextId===e.id}function Aa(e,t){let n=N(),r=n.pending;e!=null&&r!==null&&r.id===e.id&&(n.pending={...r,commitId:t})}function ja(e,t){let n=N(),r=n.pending;e!=null&&r!==null&&r.id===e.id&&r.commitId===t&&(n.pending={...r,targetHoistedInHead:!0})}function Ma(e,t){if(e==null)return null;let n=N(),r=n.pending;return r===null||r.id!==e.id||t!==void 0&&r.commitId!==t?null:(n.pending=null,r)}var Na=e({AppRouterScrollCommitProvider:()=>qa,AppRouterScrollTarget:()=>Ja,AppRouterScrollTargetInner:()=>Ka}),Pa=t(i(),1),Fa=o.createContext(null),Ia=`__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`,La=[`bottom`,`height`,`left`,`right`,`top`,`width`,`x`,`y`];function Ra(){let e=Reflect.get(Pa,Ia);if(typeof e!=`object`||!e)return null;let t=Reflect.get(e,`findDOMNode`);return typeof t==`function`?t:null}function za(e){let t=Ra();if(!t)return null;let n=t(e);return n instanceof Element||n instanceof Text?n:null}function Ba(e){let t=getComputedStyle(e).position;if(t===`fixed`||t===`sticky`)return!0;let n=e.getBoundingClientRect();return La.every(e=>n[e]===0)}function Va(e,t){let n=e.getClientRects();if(n.length===0)return!1;let r=1/0;for(let e of n)e.top<r&&(r=e.top);return r>=0&&r<=t}function Ha(e){let t=Ar(e.startsWith(`#`)?e.slice(1):e);return t===`top`?document.body:document.getElementById(t)??document.getElementsByName(t)[0]??null}function Ua(e){let t=e.ownerDocument?.head;return t!=null&&t.contains(e)}function Wa(e){if(!(e instanceof Element)||Ua(e))return null;let t=e;for(;!(t instanceof HTMLElement)||Ba(t);){if(t.nextElementSibling===null)return null;t=t.nextElementSibling}return{kind:`element`,element:t}}function Ga(e,t){if(t!==null){e.scrollIntoView({behavior:`auto`});return}let n=document.documentElement,r=n.clientHeight;Va(e,r)||(n.scrollTop=0,Va(e,r)||e.scrollIntoView({behavior:`auto`,block:`start`,inline:`nearest`}))}var Ka=class extends o.Component{scheduledCommitId=null;schedulePotentialScroll=()=>{let e=this.props.commitId;this.scheduledCommitId=e,queueMicrotask(()=>{this.scheduledCommitId===e&&this.handlePotentialScroll()})};handlePotentialScroll=()=>{let e=Oa();if(e===null||this.props.commitId===null||e.commitId!==this.props.commitId)return;let t;if(t=e.hash===null?null:Ha(e.hash),t===null){t=za(this);let n=t instanceof Element?t:t?.parentElement;if(t!==null&&n!=null&&Ua(t)&&!e.headElements?.has(n)){ja(e,this.props.commitId);return}}let n=Wa(t);if(n===null)return;let r=n.element,i=Ma(e,this.props.commitId);i!==null&&(Ga(r,i.hash),r.focus())};componentDidMount(){this.schedulePotentialScroll()}componentDidUpdate(){this.schedulePotentialScroll()}componentWillUnmount(){this.scheduledCommitId=null}render(){return this.props.children}};function qa({children:e,commitId:t}){return(0,T.jsx)(Fa.Provider,{value:t,children:e})}function Ja({children:e}
31){let t=o.useContext(Fa);return(0,T.jsx)(Ka,{commitId:t,children:e})}var Ya=`slot:\0vinext_bfcache_segment_`;function Xa(e){let t=encodeURIComponent(e);return`${Ya}${t.length}_${t}_`}function Za(e,t){return`${Xa(e)}${t}:/`}function Qa(e){return e.startsWith(Ya)}function $a(e,t){return Qa(e)&&e.startsWith(Xa(t))}function eo(e){switch(e.kind){case`page`:case`layout`:case`template`:return JSON.stringify([e.kind,e.graphId,e.rootBoundaryId,e.boundSegmentKey]);case`slot-shell`:return JSON.stringify([`slot-shell`,e.slotGraphId,e.ownerLayoutGraphId,e.boundOwnerSegmentKey]);case`slot`:return JSON.stringify([`slot`,e.slotGraphId,e.ownerLayoutGraphId,e.state,e.activeRouteGraphId,e.interceptionTargetRouteGraphId,e.boundSegmentKey]);case`sibling-interception`:return JSON.stringify([`sibling-interception`,e.sourceRouteGraphId,e.interceptionGraphId,e.rootBoundaryId,e.boundSegmentKey,e.sourceBoundSegmentKey])}}var to=e({BfcacheIdentityMapContext:()=>go,BfcacheSegmentBoundary:()=>Io,Children:()=>Ho,ChildrenContext:()=>ro,ElementsContext:()=>P,ParallelSlot:()=>Uo,ParallelSlotsContext:()=>io,RenderedSearchContext:()=>ao,Slot:()=>Vo,UNMATCHED_SLOT:()=>D,bindAppElementsRenderedSearch:()=>co,getNonCacheComponentsSegmentKey:()=>Lo,mergeElements:()=>Bo,resolveBfcacheSegmentStateKey:()=>Ro,setAppElementsRenderedSearch:()=>so,stageBfcacheSlotEntryForRender:()=>Co,updateBfcacheSlotEntryOrder:()=>bo}),no=Object.freeze({}),P=o.createContext(no),ro=o.createContext(null),io=o.createContext(null),ao=o.createContext(void 0),oo=new WeakMap;function so(e,t){for(let n of Object.values(e))typeof n==`object`&&n&&oo.set(n,t)}function co(e,t){for(let n of Object.values(e))typeof n==`object`&&n&&!oo.has(n)&&oo.set(n,t)}function lo(e){if(typeof e!=`object`||!e)return;let t=oo.get(e);return typeof t==`object`?t.renderedSearch??t.search:t}var uo=Wr(),fo=Gr(),po=Object.freeze({}),mo=3,ho=1,go=o.createContext(po);function _o(){return!1}function vo(){return _o()?mo:ho}function yo(e){return Number.isFinite(e)?Math.max(1,Math.trunc(e)):1}function bo(e,t,n=vo()){let r=yo(n),i=[t];for(let n of e){if(i.length>=r)break;n!==t&&i.push(n)}return i}function xo(e,t){let n=new Set(t);for(let t of e.keys())n.has(t)||e.delete(t)}function So(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Co(e,t,n,r=vo()){let i=new Map(e);i.set(n.stateKey,n);let a=bo(t,n.stateKey,r);return xo(i,a),{entries:a.map(e=>i.get(e)).filter(e=>e!==void 0),order:a,snapshots:i}}function wo(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.values(e);return t.length>0&&t.every(e=>e===`s`||e===`d`)}function To(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`schemaVersion`in e&&`appElementsSchemaVersion`in e&&`rscPayloadSchemaVersion`in e&&`graphVersion`in e&&`deploymentVersion`in e&&`rootBoundaryId`in e&&`renderEpoch`in e}function Eo(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`ownerLayoutId`in e&&`slotId`in e&&`state`in e}function Do(e){return Array.isArray(e)&&e.length>0&&e.every(Eo)}function Oo(e,t){return e===`__skippedLayoutIds`&&Array.isArray(t)&&t.every(e=>typeof e==`string`)}function ko(e,t){return e!==`__bfcacheSegmentIdentities`||typeof t!=`object`||!t||Array.isArray(t)?!1:Object.entries(t).every(([e,t])=>{let n=k.parseElementKey(e);return n!==null&&n.kind!==`route`&&typeof t==`string`})}function Ao(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`sourceMatchedUrl`in e&&typeof e.sourceMatchedUrl==`string`&&`sourceRouteId`in e&&typeof e.sourceRouteId==`string`&&`slotId`in e&&typeof e.slotId==`string`&&`targetMatchedUrl`in e&&typeof e.targetMatchedUrl==`string`&&`targetRouteId`in e&&typeof e.targetRouteId==`string`}function jo(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`kind`in e&&e.kind===`runtime-cache-entry`&&`decision`in e}function Mo(e,t){return wo(t)||ko(e,t)||To(t)||jo(t)||Ao(t)||Oo(e,t)||Do(t)}function No({entry:e,fallbackElements:t,fallbackSegmentId:n,fallbackStateKeyMap:r,SegmentContext:i}){return(0,T.jsx)(go.Provider,{value:e.stateKeyMap??r,children:(0,T.jsx)(P.Provider,{value:e.elements??t,children:(0,T.jsx)(i.Provider,{value:e.segmentId??n,children:e.content})})})}function Po(e){let t=o.useRef(new Map),[n,r]=o.useState(()=>[e.stateKey]),i=t.current,a=Co(i,n,e),s=a.order,c=!So(n,s);return o.useLayoutEffect(()=>{t.current=a.snapshots},[a.snapshots]),c&&r(s),a.entries}function Fo({activeStateKey:e,content:t,elements:n,id:r,SegmentContext:i,stateKeyMap:a}){let s=Po({content:t,elements:n,segmentId:r,stateKey:e,stateKeyMap:a});return(0,T.jsx)(T.Fragment,{children:s.map(t=>(0,T.jsx)(o.Activity,{mode:t.stateKey===e?`visible`:`hidden`,children:(0,T.jsx)(No,{entry:t,fallbackElements:n,fallbackSegmentId:r,fallbackStateKeyMap:a,SegmentContext:i})},t.stateKey))})}function Io({children:e,id:t,stateKey:n}){let r=o.useContext(P),i=o.useContext(go),a=Ro(t,i,o.useContext(uo));return!fo||a===void 0?(0,T.jsx)(o.Fragment,{children:e},n):_o()?(0,T.jsx)(Fo,{activeStateKey:a,content:e,elements:r,id:t,SegmentContext:fo,stateKeyMap:i}):(0,T.jsx)(fo.Provider,{value:t,children:e},a)}function Lo(e,t){let n=k.parseElementKey(e);return n!==null&&n.kind!==`route`?t:void 0}
31function Ro(e,t,n){return t[e]??n?.[e]}function zo({content:e,id:t}){let n=fo,r=o.useContext(P),i=o.useContext(go),a=Ro(t,i,o.useContext(uo));return n?a===void 0?(0,T.jsx)(n.Provider,{value:t,children:e}):_o()?(0,T.jsx)(Fo,{activeStateKey:a,content:e,elements:r,id:t,SegmentContext:n,stateKeyMap:i}):(0,T.jsx)(n.Provider,{value:t,children:e},Lo(t,a)):(0,T.jsx)(T.Fragment,{children:e})}function Bo(e,t,n={}){let r=typeof n==`boolean`?n:n.clearAbsentSlots??!1,i=typeof n==`boolean`?!n:n.preserveAbsentSlots??!0,a=typeof n==`boolean`?[]:n.preserveElementIds??[],o=typeof n==`boolean`?[]:n.preservePreviousSlotIds??[],s={...t},c=new Set;for(let t of a)if(Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(s[t]=n,c.add(t))}let l=new Set([...Object.keys(e),...Object.keys(t)].filter(e=>k.isSlotId(e)&&!Qa(e)));if(r)for(let e of l)Object.hasOwn(t,e)||delete s[e];else if(i){for(let t of l)if(!Object.hasOwn(s,t)&&Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(s[t]=n,c.add(t))}}for(let t of o){if(!k.isSlotId(t)||!Object.hasOwn(e,t))continue;let n=e[t];if(n!==void 0&&n!==D){s[t]=n,c.add(t);for(let n of Object.keys(e)){if(!$a(n,t))continue;let r=e[n];r!==void 0&&(s[n]=r),c.add(n)}}}if(c.size>0){let n=e[E],r=t[E],i=ko(E,n),a=ko(E,r),o=i?{...n}:{},l=a?{...r}:{},u=new Set([...Object.keys(o),...Object.keys(l)]),d=new Set(c);for(let e of d)for(let t of u)$a(t,e)&&c.add(t);for(let e of c){let t=o[e];t===void 0?delete l[e]:l[e]=t}(i||a)&&(s[E]=l)}return s}function Vo({id:e,children:t,parallelSlots:n}){let r=o.useContext(P);if(!Object.hasOwn(r,e))return null;let i=r[e];if(Mo(e,i)||(i===D&&vi(),i===null))return null;let a=(0,T.jsx)(ao.Provider,{value:lo(i),children:(0,T.jsx)(io.Provider,{value:n??null,children:(0,T.jsx)(ro.Provider,{value:t??null,children:i})})});return uo&&fo?(0,T.jsx)(zo,{id:e,content:a}):a}function Ho(){return o.useContext(ro)}function Uo({name:e}){return o.useContext(io)?.[e]??null}var Wo=e({APP_RSC_RENDER_MODE_NAVIGATION:()=>Go,APP_RSC_RENDER_MODE_PREFETCH_DYNAMIC_SHELL:()=>qo,APP_RSC_RENDER_MODE_PREFETCH_EMPTY:()=>Ko,APP_RSC_RENDER_MODE_PREFETCH_LOADING_SHELL:()=>Jo,getRscRenderModeCacheVariant:()=>Yo,parseAppRscRenderMode:()=>Xo}),Go=`navigation`,Ko=`prefetch-empty`,qo=`prefetch-dynamic-shell`,Jo=`prefetch-loading-shell`;function Yo(e){return e===`prefetch-empty`?`prefetch-empty`:e===`prefetch-dynamic-shell`?`prefetch-dynamic-shell`:e===`prefetch-loading-shell`?`prefetch-loading-shell`:null}function Xo(e){switch(e){case Ko:return Ko;case qo:return qo;case Jo:return Jo;default:return Go}}var Zo=`x-deployment-id`;function Qo(){}function $o(e,t=void 0){t&&e.set(Zo,t)}function es(e){return qt(JSON.stringify([e.pathAndSearch,e.routeId]))}var ts=e({VINEXT_RSC_BUILD_ID_HEADER:()=>ns,VINEXT_RSC_CACHE_BUSTING_SEARCH_PARAM:()=>F,VINEXT_RSC_COMPATIBILITY_ID_HEADER:()=>I,VINEXT_RSC_CONTENT_TYPE:()=>rs,VINEXT_RSC_RENDER_MODE_HEADER:()=>S,VINEXT_RSC_VARY_HEADER:()=>He,applyRscCompatibilityIdHeader:()=>us,applyRscDeploymentIdHeader:()=>ds,canonicalizeLoadingShellRscRequestHeaders:()=>js,canonicalizePrewarmableRscRequestHeaders:()=>As,computeRscCacheBustingSearchParam:()=>Ss,createCanonicalLoadingShellRscRequestHeaders:()=>Os,createCanonicalRscRequestHeaders:()=>Ds,createCanonicalRscRequestUrl:()=>Ns,createRscRedirectLocation:()=>Fs,createRscRequestHeaders:()=>ks,createRscRequestUrl:()=>R,createServerActionRequestUrl:()=>Ps,getVinextRscCompatibilityId:()=>cs,hasRscCacheBustingSearchParam:()=>xs,isRscCompatibilityIdCompatible:()=>fs,keepOnlyValidatedRscCacheBustingSearchParam:()=>Ts,resolveHardNavigationTargetFromRscResponse:()=>ps,resolveInvalidRscCacheBustingRequest:()=>Is,resolveRscCompatibilityNavigationDecision:()=>ms,setRscCacheBustingSearchParam:()=>Cs,stripRscCacheBustingSearchParam:()=>ws,stripRscSuffix:()=>Es}),F=`_rsc`,ns=`X-Vinext-RSC-Build-Id`,I=`X-Vinext-RSC-Compatibility-Id`,rs=`text/x-component`,is=12,as=new TextEncoder;function os(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/,``)}function ss(e){return e??`0`}function L(e){return e&&e.length>0?e:null}function cs(){return L(`45c3c39a-50f1-4269-834b-194135ab1674`)}function ls(){return L(`c36e6922d06b310d23881ad296fc6894`)}function us(e,t=cs(),n=ls()){let r=L(t);r?e.set(I,r):e.delete(I);let i=L(n);i?e.set(ns,i):e.delete(ns)}function ds(e){e.delete(Et)}function fs(e,t=cs()){let n=L(e),r=L(t);return r===null||n!==null&&n===r}function ps(e,t,n){if(!e)return t;let r=new URL(e,n);ws(r);let i=new URL(t,n),a=Es(r.pathname);i.pathname.length>1&&i.pathname.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`);let o=a+r.search;return i.hash&&(o+=i.hash),o}function ms(e){return fs(e.responseCompatibilityId,e.clientCompatibilityId)?{kind:`compatible`}:{hardNavigationTarget:ps(e.responseUrl,e.currentHref,e.origin),kind:`hard-navigate`}}function hs(e){let t=Xo(e);return t===`navigation`?null:t}function gs(e,t={}){let n=[e.get(b),e.get(x),e.get(y),e.get(Re),e.get(ze),...t.includeInterceptionIdHeader===!1?[]:[e.get(Be)],e.get(Ve),...t.includeRenderModeHeader===!1?[]:[hs(e.get(S))]],r=e.get(C);return t.includeStateFingerprintHeader!==!1&&r!==null&&n.push(r),n.every(e=>e===null)?null:n.map(ss).join(`,`)}async function _s(e){let t=globalThis.crypto?.subtle;if(!t)return qt(e);let n=await t.digest(`SHA-256`,as.encode(e));return os(new Uint8Array(n).subarray(0,is))}function vs(e){let t=gs(e);return t===null?``:qt(t)}function ys(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).filter(e=>e.length>0&&!bs(e))}function bs(e){let t=e.indexOf(`=`),n=t===-1?e:e.slice(0,t);try{return decodeURIComponent(n.replaceAll(`+`,` `))===F}catch{return n===F}}function xs(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).some(e=>e.length>0&&bs(e))}async function Ss(e){let t=gs(e);return t===null?``:_s(t)}function Cs(e,t){let n=ys(e);n.push(t.length>0?`${F}=${t}`:F),e.search=`?${n.join(`&`)}`}function ws(e){let t=ys(e);e.search=t.length>0?`?${t.join(`&`)}`:``}function Ts(e,t){let n=t?e.searchParams.get(F):null;e.search=``,n!==null&&Cs(e,n)}function Es(e){return e.endsWith(`.rsc`)?e.slice(0,-4):e}function Ds(e=void 0){let t=new Headers({Accept:rs,RSC:`1`});return $o(t,e??void 0),t}function Os(e=void 0){let t=Ds(e);return t.set(b,`1`),t.set(x,`1`),t.set(S,Jo),t}function ks(e={}){let t=Ds(e.deploymentId);e.prefetchRouterState&&(e.includePrefetchHeader!==!1&&t.set(b,`1`),t.set(y,encodeURIComponent(JSON.stringify(e.prefetchRouterState))));let n=e.routerState??e.prefetchRouterState;n&&t.set(C,es(n)),e.nextUrl&&t.set(Re,e.nextUrl),e.interceptionContext!==void 0&&e.interceptionContext!==null&&t.set(ze,e.interceptionContext),e.interceptionId!==void 0&&e.interceptionId!==null&&t.set(Be,e.interceptionId),e.mountedSlotsHeader!==void 0&&e.mountedSlotsHeader!==null&&t.set(Ve,e.mountedSlotsHeader),e.clientReuseManifestHeader!==void 0&&e.clientReuseManifestHeader!==null&&t.set(vt,e.clientReuseManifestHeader);let r=e.renderMode??`navigation`;return r!==`navigation`&&t.set(S,r),t}function As(e){return e.has(`X-Vinext-Rsc-Render-Mode`)||e.has(`X-Vinext-Interception-Context`)||e.has(`X-Vinext-Interception-Id`)||e.has(`X-Vinext-Mounted-Slots`)?!1:(e.delete(b),e.delete(x),e.delete(y),e.delete(Re),e.delete(C),e.delete(vt),!0)}function js(e){return e.get(`X-Vinext-Rsc-Render-Mode`)!==`prefetch-loading-shell`||e.has(`X-Vinext-Interception-Context`)||e.has(`X-Vinext-Interception-Id`)||e.has(`X-Vinext-Mounted-Slots`)?!1:(e.set(b,`1`),e.set(x,`1`),e.delete(y),e.delete(Re),e.delete(C),e.delete(vt),!0)}function Ms(e){let t=e.indexOf(`#`);return t===-1?e:e.slice(0,t)}async function R(e,t){let n=new URL(Ms(e),`http://vinext.local`);return Cs(n,await Ss(t)),`${n.pathname}${n.search}`}function Ns(e){let t=new URL(Ms(e),`http://vinext.local`);return Cs(t,``),`${t.pathname}${t.search}`}function Ps(e){let t=e.indexOf(`#`),n=t===-1?e:e.slice(0,t),r=new URL(n,`http://vinext.local`);return`${r.pathname}${r.search}`}async function Fs(e,t){let n=new URL(t.url),r=new URL(e,n);if(r.origin!==n.origin)return r.toString();let i=await R(`${r.pathname}${r.search}`,t.headers);return`${r.origin}${i}`}async function Is(e){if(!e.isRscRequest||e.request.method!==`GET`&&e.request.method!==`HEAD`)return null;let t=new URL(e.request.url),n=t.searchParams.get(F),r=await Ss(e.request.headers);if(n===null&&r===``&&t.pathname.endsWith(`.rsc`))return null;let i=new Set([r]);if(n!==null&&n!==r){i.add(vs(e.request.headers));let t=[],n=e.request.headers.has(Be),r=e.request.headers.has(C),a=hs(e.request.headers.get(S))===null;n||t.push({includeInterceptionIdHeader:!1}),r&&(t.push({includeStateFingerprintHeader:!1}),n||t.push({includeInterceptionIdHeader:!1,includeStateFingerprintHeader:!1})),a&&(t.push({includeRenderModeHeader:!1}),n||t.push({includeInterceptionIdHeader:!1,includeRenderModeHeader:!1})),r&&a&&(t.push({includeRenderModeHeader:!1,includeStateFingerprintHeader:!1}),n||t.push({includeInterceptionIdHeader:!1,includeRenderModeHeader:!1,includeStateFingerprintHeader:!1}));for(let n of t){let t=gs(e.request.headers,n);t===null?i.add(``):(i.add(await _s(t)),i.add(qt(t)))}}return n!==null&&i.has(n)?null:(Cs(t,r),new Response(null,{status:307,headers:{Location:`${t.pathname}${t.search}`}}))}var Ls=null;function Rs(e){return Object.values(e).some(e=>typeof e==`function`)?e:null}function zs(e){return Ls=e,Ls}function Bs(e,t){Ls?.onRouterTransitionStart?.(e,t)}function Vs(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}var Hs=`__vinext_previousNextUrl`,Us=`__vinext_historyIndex`,Ws=`__vinext_bfcacheIds`,Gs=`__vinext_bfcacheVersion`,Ks=`__vinext_externalHistoryState`,qs=`__vinext_treeSnapshotId`,Js=`__vinext_treeSnapshotClaimed`,Ys=`__vinext_activeRoutePaths`,Xs=class{#e;#t=new Map;constructor(e){this.#e=e.maxEntries}clear(){this.#t.clear()}remember(e){if(e.historyIndex===null||(this.#t.delete(e.historyIndex),this.#t.set(e.historyIndex,{bfcacheVersion:e.bfcacheVersion,state:e.state}),this.#t.size<=this.#e))return;let t=this.#t.keys().next().value;typeof t==`number`&&this.#t.delete(t)}resolveRestore(e){let t=vc(e.historyState);if(t===null)return{kind:`skip`,reason:`missing-history-index`,targetHistoryIndex:t};let n=this.#t.get(t);return n?e.guarded?{kind:`skip`,reason:`guarded`,targetHistoryIndex:t}:n.bfcacheVersion===e.currentBfcacheVersion?{kind:`restore`,state:n.state,targetHistoryIndex:t}:(this.#t.delete(t),{kind:`skip`,reason:`stale-bfcache-version`,targetHistoryIndex:t}
31):{kind:`skip`,reason:`missing-snapshot`,targetHistoryIndex:t}}},Zs=class{#e;#t=0;#n;constructor(e){let t=hc(e.initialHistoryState);this.#e=t===null?0:t+1,this.#n=new Xs({maxEntries:e.maxHistoryStateSnapshots})}get currentBfcacheVersion(){return this.#e}beginCacheInvalidationGuard(){this.#t+=1;let e=!1;return()=>{e||(e=!0,this.#t=Math.max(0,this.#t-1))}}isCacheInvalidationGuarded(){return this.#t>0}isCurrentBfcacheVersion(e){return gc(e,this.#e)}readCurrentBfcacheVersionHistoryIds(e){if(this.isCacheInvalidationGuarded())return null;let t=mc(e);return t===null?null:this.isCurrentBfcacheVersion(e)?t:null}#r(){this.#e+=1}invalidateClientState(){this.#n.clear(),this.#r()}rememberHistoryStateSnapshot(e){this.#n.remember({bfcacheVersion:this.#e,historyIndex:e.historyIndex,state:e.state})}resolveHistoryStateSnapshotRestore(e){return this.#n.resolveRestore({currentBfcacheVersion:this.#e,guarded:this.isCacheInvalidationGuarded(),historyState:e})}};function Qs(e){if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e))t[n]=r;return t}function z(e){return!e||typeof e!=`object`||Array.isArray(e)?null:e}function $s(e,t){let n=Qs(e),r=t.bfcacheIds!==void 0&&(t.bfcacheIds===null||Object.keys(t.bfcacheIds).length===0);return t.activeRoutePaths!==void 0&&(t.activeRoutePaths===null||t.activeRoutePaths.length===0?delete n[Ys]:n[Ys]=[...new Set(t.activeRoutePaths)]),t.previousNextUrl===null?delete n[Hs]:n[Hs]=t.previousNextUrl,t.traversalIndex!==void 0&&(Vs(t.traversalIndex)?n[Us]=t.traversalIndex:delete n[Us]),t.bfcacheIds!==void 0&&(r?(delete n[Ws],delete n[Gs]):n[Ws]={...t.bfcacheIds}),t.bfcacheVersion!==void 0&&(r?delete n[Gs]:Vs(t.bfcacheVersion)?n[Gs]=t.bfcacheVersion:delete n[Gs]),Object.keys(n).length>0?n:null}function ec(e,t){let n=fc(t),r=vc(t),i=mc(t),a=hc(t),o=lc(t);return{...$s(e,{activeRoutePaths:uc(t),bfcacheIds:i,bfcacheVersion:i===null?void 0:a,previousNextUrl:n,traversalIndex:r}),...tc(),...o===null?{}:{[Js]:!0,[qs]:o}}}function tc(){return{[Ks]:!0}}function nc(e){return z(e)?.[Ks]===!0}function rc(e){return!nc(e)&&vc(e)!==null}function ic(e){let t=Qs(e);return delete t[Ks],Object.keys(t).length>0?t:null}function ac(e,t){let n=Qs(e),r=lc(n);return Vs(t)?(n[qs]=t,r!==t&&delete n[Js]):(delete n[qs],delete n[Js]),Object.keys(n).length>0?n:null}function oc(e,t){let n=Qs(e);return t&&lc(n)!==null?n[Js]=!0:delete n[Js],Object.keys(n).length>0?n:null}function sc(e){return z(e)?.[Js]===!0}function cc(e){return ac(e,null)}function lc(e){let t=z(e)?.[qs];return Vs(t)?t:null}function uc(e){let t=z(e)?.[Ys];if(!Array.isArray(t))return null;let n=[];for(let e of t){if(typeof e!=`string`||!e.startsWith(`/`)||e.startsWith(`//`)||e.includes(`?`)||e.includes(`#`)||e.includes(`\\`)||e.includes(`\0`))return null;n.push(e)}return n.length>0?[...new Set(n)]:null}function dc(e){let t=new Set;for(let n of e){if(n.state!==`active`||n.activeRouteId==null)continue;let e=k.parseElementKey(n.activeRouteId);e?.kind===`route`&&e.interceptionContext===null&&t.add(e.path)}return[...t]}function fc(e){let t=z(e)?.[Hs];return typeof t==`string`?t:null}function pc(e){let t=k.parseElementKey(e);return t?.kind===`layout`||t?.kind===`page`||t?.kind===`slot`||t?.kind===`template`}
31function mc(e){let t=z(e)?.[Ws];if(!t||typeof t!=`object`||Array.isArray(t))return null;let n={};for(let[e,r]of Object.entries(t)){if(!pc(e)||typeof r!=`string`)return null;n[e]=r}return n}function hc(e){let t=z(e)?.[Gs];return Vs(t)?t:null}function gc(e,t){let n=hc(e);return n!==null&&n===t}function _c(e){let t=fc(e),n=mc(e),r=hc(e),i=uc(e);return t===null&&n===null&&i===null?null:$s(null,{activeRoutePaths:i,bfcacheIds:n,bfcacheVersion:n===null?void 0:r,previousNextUrl:t})}function vc(e){let t=z(e)?.[Us];return Vs(t)?t:null}function yc(e){let t=vc(e.historyState),n=`unknown`;return e.currentHistoryIndex!==null&&t!==null&&(t<e.currentHistoryIndex?n=`back`:t>e.currentHistoryIndex&&(n=`forward`)),{direction:n,historyState:e.historyState,targetHistoryIndex:t}}var bc=`_b_0_`;function xc(e){if(e.routeManifest===null)return null;let t=v(e.currentPathname,e.basePath),n=v(e.targetPathname,e.basePath),r=_(t),i=_(n);for(let n of e.routeManifest.segmentGraph.interceptions.values())if(Tr(r,n.sourcePatternParts)&&Sr(i,n.targetPatternParts)!==null)return t;return null}function Sc(e){if(e.routeManifest===null)return null;let t=v(e.currentPathname,e.basePath),n=e.currentMatchedPathname?v(e.currentMatchedPathname,e.basePath):null,r=v(e.targetPathname,e.basePath),i=_(t),a=n?_(n):null,o=_(r);for(let r of e.routeManifest.segmentGraph.interceptions.values())if(Er(o,r.targetPatternParts)){if(Tr(i,r.sourcePatternParts))return t;if(n!==null&&a!==null&&Tr(a,r.sourcePatternParts))return n}return null}var Cc=`__next-page-redirect`;function wc(e){if(typeof e!=`object`||!e||!(`getElementById`in e))return!1;let{getElementById:t}=e;return typeof t==`function`&&t.call(e,Cc)!==null}var Tc=class{#e=null;#t=0;reset(){this.#e=null}navigate(e,t,n){let r=this.#e;if(r?.href===t&&r.historyUpdateMode===n)return;let i=this.#t+1;this.#t=i,this.#e={href:t,historyUpdateMode:n,token:i};let a=()=>{let r=this.#e;r?.href===t&&r.historyUpdateMode===n&&r.token===i&&(n===`replace`?e.location.replace(t):e.location.assign(t))};if(typeof e.requestAnimationFrame==`function`){e.requestAnimationFrame(()=>{e.setTimeout(a,0)});return}e.setTimeout(a,0)}};new TextEncoder;var Ec=new TextDecoder,B=255,Dc=0,Oc=2,kc=4,Ac=256;function jc(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function Mc(){throw Error(`Invalid or truncated RSC completion metadata footer`)}function Nc(e){if(e.byteLength>Ac)throw Error(`RSC completion metadata exceeded its framing limit`);if(e.byteLength<6||e[0]!==B||e[1]!==Dc)return Mc();let t=e.byteLength-kc;if(new DataView(e.buffer,e.byteOffset+t,kc).getUint32(0)!==t-Oc)return Mc();try{let n=JSON.parse(Ec.decode(e.subarray(Oc,t)));if(typeof n!=`object`||!n)return Mc();let r=n;if(!jc(r.dynamicStaleTimeSeconds))return Mc();let i=Object.hasOwn(r,`serverStaleTimeSeconds`),a=r.serverStaleTimeSeconds;return i&&a!==null&&!jc(a)?Mc():{dynamicStaleTimeSeconds:r.dynamicStaleTimeSeconds,...i?{serverStaleTimeSeconds:a}:{}}}catch{return Mc()}}function Pc(e){let t=new Uint8Array(e),n=t.indexOf(B);if(n===-1)return{buffer:e};let r=new Uint8Array(t.byteLength);r.set(t.subarray(0,n));let i=n;for(let e=n;e<t.byteLength;e++){let n=t[e];if(n!==B){r[i++]=n;continue}let a=t[++e];if(a===void 0)throw Error(`Truncated RSC completion metadata escape sequence`);if(a===B){r[i++]=B;continue}if(a!==Dc)throw Error(`Invalid RSC completion metadata escape sequence`);return{buffer:r.buffer.slice(0,i),metadata:Nc(t.subarray(e-1))}}return{buffer:r.buffer.slice(0,i)}}function Fc(e){let t=!1,n;return e.pipeThrough(new TransformStream({transform(e,r){let i=[],a=()=>{i.length!==0&&(r.enqueue(Uint8Array.from(i)),i.length=0)},o=0;for(;o<e.byteLength;){if(n){if(n.push(e[o++]),n.length>Ac){r.error(Error(`RSC completion metadata exceeded its framing limit`));return}continue}if(t){let a=e[o++];if(t=!1,a===B){i.push(B);continue}if(a===Dc){n=[B,Dc];continue}r.error(Error(`Invalid RSC completion metadata escape sequence`));return}let s=e.indexOf(B,o);if(s===-1){a(),r.enqueue(e.subarray(o));return}s>o&&(a(),r.enqueue(e.subarray(o,s))),t=!0,o=s+1}a()},flush(e){if(t){e.error(Error(`Truncated RSC completion metadata escape sequence`));return}if(n){let t=Uint8Array.from(n);try{Nc(t)}catch(t){e.error(t)}}}}))}function Ic(e){return e.headers.get(`X-Vinext-Rsc-Completion-Metadata`)!==`1`||!e.body?e:new Response(Fc(e.body),{headers:e.headers,status:e.status,statusText:e.statusText})}
31var Lc=`[\\u0000-\\u001F \\u200B\\uFEFF]*`,Rc=`[\\r\\n\\t]*`;function zc(e){let t=e.split(``).join(Rc);return RegExp(`^${Lc}${t}${Rc}:`,`i`)}var Bc=[zc(`javascript`),zc(`data`),zc(`vbscript`)],Vc=`Next.js has blocked a javascript: URL as a security precaution.`;function Hc(e){let t=``+e;return Bc.some(e=>e.test(t))}function Uc(){console.error(Vc)}function Wc(e,t=Error){if(Hc(e))throw Uc(),new t(Vc)}var Gc=10;function Kc(e,t){return t===null||!Hc(t)?!1:(e.body?.cancel().catch(()=>{}),Uc(),!0)}function qc(e,t){let n=new URL(e,t);return ws(n),`${Es(n.pathname)}${n.search}${n.hash}`}function Jc(e,t){let n=new URL(e,t);return`${n.pathname}${n.search}${n.hash}`}function Yc(e){if(e.targetUrl.origin!==e.origin)return{href:e.targetUrl.href,kind:`terminal-hard-navigation`,reason:`externalRedirect`,redirectDepth:e.redirectDepth};let t=e.redirectedHref;if(t===qc(e.currentHref,e.origin))return{href:t,kind:`no-redirect`};let n=e.maxRedirectDepth??Gc;return e.redirectDepth>=n?{href:t,kind:`terminal-hard-navigation`,reason:`maxRedirectsExceeded`,redirectDepth:e.redirectDepth}:{href:t,historyUpdateMode:e.historyUpdateMode,kind:`follow`,previousNextUrl:e.requestPreviousNextUrl,redirectDepth:e.redirectDepth+1}}function Xc(e){let t=new URL(e.responseUrl,e.origin);return Yc({...e,redirectedHref:ps(t.href,e.currentHref,e.origin),targetUrl:t})}function Zc(e){let t=new URL(e.streamedRedirectTarget,e.origin);return Yc({...e,redirectedHref:Jc(e.streamedRedirectTarget,e.origin),targetUrl:t})}var V={cacheProofRejected:`NC_CACHE_REJECT`,cacheReuseTokenRejected:`NC_CACHE_TOKEN_REJECT`,commitCurrent:`NC_COMMIT`,crossDocumentFlight:`NC_CROSS_DOC_FLIGHT`,fetchFresh:`NC_FETCH_FRESH`,invalidRscPayload:`NC_RSC_INVALID`,interceptedCommitCurrent:`NC_INTERCEPT_COMMIT`,interceptedRejectedIncompatibleRoot:`NC_INTERCEPT_REJECT_ROOT`,interceptedRejectedMissingProof:`NC_INTERCEPT_REJECT_MISSING_PROOF`,interceptedRejectedMissingSlotProof:`NC_INTERCEPT_REJECT_SLOT`,interceptedRejectedTargetMismatch:`NC_INTERCEPT_REJECT_TARGET`,interceptedRejectedUndeclaredTopology:`NC_INTERCEPT_REJECT_GRAPH`,interceptedRejectedUnknownSource:`NC_INTERCEPT_REJECT_SOURCE`,optimisticRouteShell:`NC_OPTIMISTIC_SHELL`,prefetchOnly:`NC_PREFETCH_ONLY`,prefetchResponseReuse:`NC_PREFETCH_REUSE`,proceedToCommit:`NC_RSC_PROCEED`,redirectFollow:`NC_RSC_REDIRECT_FOLLOW`,redirectTerminalDepth:`NC_RSC_REDIRECT_DEPTH`,redirectTerminalExternal:`NC_RSC_REDIRECT_EXTERNAL`,requestWork:`NC_REQUEST`,rootBoundaryChanged:`NC_ROOT`,rootBoundaryUnknown:`NC_ROOT_UNKNOWN`,rscCompatibilityMismatch:`NC_RSC_COMPAT_MISMATCH`,rscNavigationError:`NC_RSC_NAV_ERROR`,sameDocumentScroll:`NC_SAME_DOC_SCROLL`,samePageRefresh:`NC_SAME_PAGE_REFRESH`,samePageSearch:`NC_SAME_PAGE_SEARCH`,serverActionRedirectCompatibilityMismatch:`NC_SA_REDIRECT_COMPAT`,serverActionRscCompatibilityMismatch:`NC_SA_RSC_COMPAT`,staleOperation:`NC_STALE`,streamedRedirectLoop:`NC_RSC_STREAMED_REDIRECT_LOOP`,visitedResponseReuse:`NC_VISITED_REUSE`},Qc={hardNavigate:`NT_HARD_NAVIGATE`,noCommit:`NT_NO_COMMIT`,visibleCommit:`NT_VISIBLE_COMMIT`};function $c(e){return{...e.activeNavigationId===void 0?{}:{activeNavigationId:e.activeNavigationId},currentRootLayoutTreePath:e.currentRootLayoutTreePath,currentVisibleCommitVersion:e.currentVisibleCommitVersion,nextRootLayoutTreePath:e.nextRootLayoutTreePath,...e.startedNavigationId===void 0?{}:{startedNavigationId:e.startedNavigationId},startedVisibleCommitVersion:e.startedVisibleCommitVersion}}function el(e,t={}){return{code:e,fields:{...t}}}function H(e,t={}){return{schemaVersion:0,entries:[el(e,t)]}}function tl(e,t,n={}){return{schemaVersion:e.schemaVersion,entries:[el(t,n),...e.entries]}}var nl=[`navigation`,`visibleCommit`,`graphVersion`,`cacheVariant`];function rl(e,t,n){switch(e){case`navigation`:return t.navigationId===n.activeNavigationId?{kind:`satisfied`}:{kind:`mismatch`,reason:`staleNavigation`};case`visibleCommit`:return t.baseVisibleCommitVersion===n.visibleCommitVersion?{kind:`satisfied`}:{kind:`mismatch`,reason:`staleVisibleCommit`};case`graphVersion`:return t.graphVersion===null||n.graphVersion===null?{kind:`absent`,missingReason:`graphVersionMissing`}:t.graphVersion===n.graphVersion?{kind:`satisfied`}:{kind:`mismatch`,reason:`graphVersionMismatch`};case`cacheVariant`:{let e=t.cacheVariantFingerprint,r=n.installedCacheVariantFingerprint;return e===void 0||r===null?{kind:`absent`,missingReason:`cacheVariantMissing`}:e===r?{kind:`satisfied`}:{kind:`mismatch`,reason:`cacheVariantMismatch`}}default:throw Error(`[vinext] Unknown operation-token dimension: `+String(e))}}function il(e,t,n){let r=new Set(n.require),i=new Set([...n.check,...n.require]);for(let n of nl){if(!i.has(n))continue;let a=rl(n,e,t);if(a.kind===`mismatch`)return{authorized:!1,reason:a.reason};if(a.kind===`absent`&&r.has(n))return{authorized:!1,reason:a.missingReason}}return{authorized:!0,token:e}}function al(e,t){return il(e,{activeNavigationId:t.activeNavigationId,visibleCommitVersion:t.visibleCommitVersion,graphVersion:e.graphVersion,installedCacheVariantFingerprint:e.cacheVariantFingerprint??null},{check:[`navigation`,`visibleCommit`],require:[`navigation`,`visibleCommit`]})}function ol(e,t){return il(e,{activeNavigationId:e.navigationId,visibleCommitVersion:e.baseVisibleCommitVersion,graphVersion:t.graphVersion,installedCacheVariantFingerprint:t.installedCacheVariantFingerprint},{check:[`graphVersion`,`cacheVariant`],require:[]})}function sl(e,t){return e===`push`||t===`push`?`push`:`replace`}var cl=`\0`,ll=`CP_CACHE_ENTRY_PROOF_MISSING`;function ul(e){let t=e.work.kind===`traverseFlight`?{traverseDirection:e.work.direction}:{};return{kind:`requestWork`,token:e.state.nextOperationToken,work:e.work,trace:H(V.requestWork,{eventKind:e.eventKind,targetHref:dl(e.w
31ork),...t})}}function dl(e){switch(e.kind){case`flight`:case`prefetch`:return e.href;case`traverseFlight`:return null;default:throw Error(`[vinext] Unknown requested navigation work: `+String(e))}}function fl(e,t={}){return{fetchResultSource:e.source,...t}}function pl(e){return{discardBody:e.discardBody,kind:`hardNavigate`,...e.hardNavigationMode===void 0?{}:{hardNavigationMode:e.hardNavigationMode},reason:e.reason,trace:H(e.reasonCode,fl(e.facts,{...e.redirectSignal===void 0?{}:{redirectSignal:e.redirectSignal},redirectDepth:e.facts.redirectDepth,targetHref:e.url})),url:e.url}}function ml(e){return{discardBody:e.discardBody,kind:`followRedirect`,redirect:e.redirect,trace:H(V.redirectFollow,fl(e.facts,{redirectDepth:e.redirect.redirectDepth,redirectSignal:e.redirectSignal,targetHref:e.redirect.href}))}}function hl(e){switch(e){case`externalRedirect`:return{hardNavigationReason:`externalRedirectTarget`,traceReasonCode:V.redirectTerminalExternal};case`maxRedirectsExceeded`:return{hardNavigationReason:`redirectDepthExhausted`,traceReasonCode:V.redirectTerminalDepth};default:throw Error(`[vinext] Unknown RSC redirect terminal reason: `+String(e))}}function gl(e){if(!e.responseOk||!e.isRscContentType||!e.hasBody){let t=ps(e.responseUrl,e.currentHref,e.origin);return pl({discardBody:!1,facts:e,reason:`invalidRscPayload`,reasonCode:V.invalidRscPayload,url:t})}let t=ms({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl});if(t.kind===`hard-navigate`)return pl({discardBody:!1,facts:e,reason:`rscCompatibilityMismatch`,reasonCode:V.rscCompatibilityMismatch,url:t.hardNavigationTarget});if(e.responseUrl!==null){let t=Xc({currentHref:e.currentHref,historyUpdateMode:e.effectiveHistoryUpdateMode,origin:e.origin,redirectDepth:e.redirectDepth,requestPreviousNextUrl:e.requestPreviousNextUrl,responseUrl:e.responseUrl});if(t.kind===`terminal-hard-navigation`){let n=hl(t.reason);return pl({discardBody:!1,facts:e,reason:n.hardNavigationReason,reasonCode:n.traceReasonCode,redirectSignal:`response-url`,url:t.href})}if(t.kind===`follow`)return ml({discardBody:!1,facts:e,redirect:{href:t.href,historyUpdateMode:e.effectiveHistoryUpdateMode,previousNextUrl:t.previousNextUrl,redirectDepth:t.redirectDepth},redirectSignal:`response-url`})}if(e.streamedRedirectTarget!==null){let t=sl(e.effectiveHistoryUpdateMode,e.streamedRedirectType),n=Zc({currentHref:e.currentHref,historyUpdateMode:t,origin:e.origin,redirectDepth:e.redirectDepth,requestPreviousNextUrl:e.requestPreviousNextUrl,streamedRedirectTarget:e.streamedRedirectTarget});if(n.kind===`terminal-hard-navigation`){let r=hl(n.reason);return pl({discardBody:!0,facts:e,reason:r.hardNavigationReason,reasonCode:r.traceReasonCode,redirectSignal:`streamed-header`,hardNavigationMode:t===`push`?`assign`:`replace`,url:n.href})}return n.kind===`follow`?ml({discardBody:!0,facts:e,redirect:{href:n.href,historyUpdateMode:t,previousNextUrl:n.previousNextUrl,redirectDepth:n.redirectDepth},redirectSignal:`streamed-header`}):pl({discardBody:!0,facts:e,reason:`streamedRedirectLoop`,reasonCode:V.streamedRedirectLoop,redirectSignal:`streamed-header`,url:n.href})}return{discardBody:!1,kind:`proceedToCommit`,trace:H(V.proceedToCommit,fl(e))}}function _l(e,t){return H(e,{targetHref:t.targetHref})}function vl(e,t,n){return n===`browser`?v(e,t):e}function yl(e){let t,n;try{t=new URL(e.currentHref),n=new URL(e.targetHref,e.currentHref)}catch{return{bypassNavigationCache:!1,kind:`flightNavigation`,trace:_l(V.crossDocumentFlight,e)}}let r=vl(t.pathname,e.basePath,e.currentUrlSpace),i=vl(n.pathname,e.basePath,`browser`),a=t.origin===n.origin&&r===i,o=t.searchParams.toString()===n.searchParams.toString();return a&&t.search===n.search&&t.hash===n.hash?{bypassNavigationCache:!0,kind:`flightNavigation`,trace:_l(V.samePageRefresh,e)}:a&&o&&t.hash!==n.hash?{hash:n.hash,kind:`sameDocumentScroll`,mode:e.mode,scroll:e.scroll,trace:_l(V.sameDocumentScroll,e)}:a&&!o?{bypassNavigationCache:!0,kind:`flightNavigation`,trace:_l(V.samePageSearch,e)}:{bypassNavigationCache:!1,kind:`flightNavigation`,trace:_l(V.crossDocumentFlight,e)}}function bl(e){return e.candidate===`missing`?{kind:`miss`}
31:e.mountedSlotsMatch?e.navigationKind===`refresh`?{kind:`evict`,reason:`refresh`}:e.fresh?{kind:`reuse`}:{kind:`evict`,reason:`stale`}:{kind:`evict`,reason:`mountedSlotsMismatch`}}function xl(e,t,n={}){return H(e,{eventKind:t.navigationKind,targetHref:t.targetHref,...n})}function Sl(e,t){return{kind:`fetchFresh`,reason:t,trace:xl(V.fetchFresh,e,{freshFetchReason:t})}}function Cl(e){return e.navigationKind===`refresh`?Sl(e,`refresh`):!e.bypassNavigationCache&&e.visitedResponse.status===`available`?{kind:`reuseVisitedResponse`,trace:xl(V.visitedResponseReuse,e)}:!e.bypassNavigationCache&&e.prefetch.status===`available`?{kind:`consumePrefetch`,trace:xl(V.prefetchResponseReuse,e)}:e.navigationKind===`navigate`?e.optimisticRouteShell.status===`available`?{kind:`attemptOptimisticRouteShell`,trace:xl(V.optimisticRouteShell,e)}:Sl(e,e.bypassNavigationCache?`cacheBypassed`:e.optimisticRouteShell.reason):e.bypassNavigationCache?Sl(e,`cacheBypassed`):Sl(e,`cacheMiss`)}function wl(e){return e.visitedResponse.status===`available`?{kind:`skip`,reason:`visitedResponseAvailable`}:e.navigationKind===`refresh`?{kind:`skip`,reason:`refresh`}:e.bypassNavigationCache?{kind:`skip`,reason:`cacheBypassed`}:{kind:`probe`}}function Tl(e){return{layoutIds:e.layoutIds,rootBoundaryId:e.rootBoundaryId,rootLayoutTreePath:e.rootBoundaryId,slotBindings:e.slotBindings}}function El(e){let t=e.indexOf(cl);return t===-1?e:e.slice(0,t)}function Dl(e){let t=El(e);return t.startsWith(`route:/`)?t.slice(6):null}function Ol(e){try{return new URL(e,`https://vinext.local`).pathname}catch{let[t=``]=e.split(`#`),[n=``]=t.split(`?`);return n===``?`/`:n}}function kl(e){return _(Ol(e))}function Al(e,t){let n=kl(t);for(let t of e.segmentGraph.routes.values())if(Sr(n,t.patternParts)!==null)return t;return null}function jl(e,t){return Sr(kl(t),e.patternParts)!==null}function Ml(e){let t=El(e.routeId),n=e.routeManifest.segmentGraph.routes.get(t);if(n&&jl(n,e.matchedUrl))return n;let r=n===void 0?Dl(e.routeId):null;if(r!==null){let t=Al(e.routeManifest,r);if(t!==null)return t}return Al(e.routeManifest,e.matchedUrl)}function Nl(e,t){return t.interception===null?Ml({matchedUrl:t.matchedUrl,routeId:t.routeId,routeManifest:e}):Ml({matchedUrl:t.interception.sourceMatchedUrl,routeId:t.interception.sourceRouteId,routeManifest:e})}function Pl(e,t){let n=[];for(let r of t.slotIds){let i=e.segmentGraph.slotBindings.get(`${t.id}::${r}`);i&&n.push({ownerLayoutId:i.ownerLayoutId,slotId:i.slotId,state:i.state})}return n.sort((e,t)=>O(e.slotId,t.slotId))}function Fl(e,t){return t.rootBoundaryId===null?null:e.segmentGraph.rootBoundaries.get(t.rootBoundaryId)?.treePath??null}function Il(e){let t=e.routeManifest===null?null:Nl(e.routeManifest,e.snapshot);if(t===null||e.routeManifest===null)return{kind:`unknown`};let n=e.slotBindingSource===`manifestTarget`&&e.snapshot.interception===null;return{kind:`known`,topology:{layoutIds:t.layoutIds,rootBoundaryId:t.rootBoundaryId,rootLayoutTreePath:Fl(e.routeManifest,t),slotBindings:n?Pl(e.routeManifest,t):e.snapshot.slotBindings}}}function Ll(e,t){let n=kl(t.sourceMatchedUrl),r=kl(t.targetMatchedUrl),i=Ml({matchedUrl:t.targetMatchedUrl,routeId:t.targetRouteId,routeManifest:e}),a=e.segmentGraph.interceptionsBySlotId.get(t.slotId)??[];for(let e of a){if(!Tr(n,e.sourcePatternParts))continue;let t=Sr(r,e.targetPatternParts),a=t===null&&Er(r,e.targetPatternParts);if((t!==null||a)&&(a||e.targetRouteId===null||i?.id===e.targetRouteId))return e}return null}function Rl(e){return e.state.traceFields?{...e.state.traceFields,currentRootLayoutTreePath:e.currentRootLayoutTreePath,nextRootLayoutTreePath:e.nextRootLayoutTreePath}:$c({currentRootLayoutTreePath:e.currentRootLayoutTreePath,currentVisibleCommitVersion:e.state.visibleCommitVersion,nextRootLayoutTreePath:e.nextRootLayoutTreePath,startedVisibleCommitVersion:e.event.token.baseVisibleCommitVersion})}function zl(e,t){return e===null||t===null?`rootBoundaryUnknown`:e===t?`currentRootBoundary`:`rootBoundaryChanged`}function Bl(e,t){return Vl(Tl(e),Tl(t))}function Vl(e,t){if(zl(e.rootBoundaryId,t.rootBoundaryId)!==`currentRootBoundary`)return[];let n=[],r=Math.min(e.layoutIds.length,t.layoutIds.length);for(let i=0;i<r;i++){let r=e.layoutIds[i];if(r!==t.layoutIds[i])break;n.push(r)}return n}function Hl(e,t){return Ul(e,Bl(e,t))}function Ul(e,t){if(t.length===0)return[];let n=new Set(t),r=[],i=new Set;for(let t of e.mountedParallelSlots)t.ownerLayoutId!==null&&n.has(t.ownerLayoutId)&&(i.has(t.slotId)||(r.push(t.slotId),i.add(t.slotId)));return r}function Wl(e,t){let n=Bl(e,t);return[...n,...Ul(e,n)]}function Gl(e){return Vl(e.currentTopology,e.targetTopology)}function Kl(e){if(e.lane===`traverse`)return[];let t=Vl(e.currentTopology,e.targetTopology);if(t.length===0)return[];let n=Jl({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:t,targetSlotBindings:e.targetTopology.slotBindings}),r=ql({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:t,targetSlotBindings:e.targetTopology.slotBindings});return[...new Set([...n,...r])].sort(O)}function ql(e){let t=new Set(e.preservedLayoutIds),n=new Set(e.targetSlotBindings.map(e=>e.slotId));return e.currentSlotBindings.filter(e=>{let r=k.parseElementKey(e.slotId);return e.state===`active`&&e.ownerLayoutId!==null&&t.has(e.ownerLayoutId)&&r?.kind===`slot`&&r.name===`children`&&!n.has(e.slotId)}).map(e=>e.slotId).sort(O)}function Jl(e){let t=new Set(e.preservedLayoutIds),n=new Set;for(let t of e.currentSlotBindings)t.state!==`unmatched`&&n.add(t.slotId);let r=[],i=new Set;for(let a of e.targetSlotBindings)a.ownerLayoutId!==null&&t.has(a.ownerLayoutId)&&a.state!==`active`&&n.has(a.slotId)&&(i.has(a.slotId)||(r.push(a.slotId),i.add(a.slotId)));return r.sort(O)}function Yl(e){let t=new Map(e.currentSlotBindings.map(e=>[e.slotId,e])),n=new Set(e.preservedLayoutIds),r=[];for(let i of e.targetSlotBindings){if(i.slotId===e.targetInterceptionSlotId||i.state!==`active`||i.ownerLayoutId===null||!n.has(i.ownerLayoutId))continue;let a=t.get(i.slotId);a?.state===`active`&&a.ownerLayoutId===i.ownerLayoutId&&(a.activeRouteId&&i.activeRouteId&&a.activeRouteId!==i.activeRouteId||r.push(i.slotId))}return r.sort(O)}function Xl(e){return e.interception?{matchedUrl:e.interception.sourceMatchedUrl,routeId:e.interception.sourceRouteId}:{matchedUrl:Dl(e.routeId)??e.matchedUrl,routeId:e.routeId}}function Zl(e){return{kind:`hardNavigate`,reason:`interceptionProofRejected`,token:e.event.token,trace:H(e.reasonCode,e.traceFields),url:e.event.result.href}}function Ql(e){return e===void 0?{kind:`accepted`,decision:null}:e.decision===null?{kind:`rejected`,decision:null}:e.decision.canReuse?{kind:`accepted`,decision:e.decision}:{kind:`rejected`,decision:e.decision}}function $l(e,t){return t===null?{...e,cacheProofCode:ll}:{...e,cacheProofCode:t.code,cacheProofMode:t.mode,cacheProofScope:t.scope}}function eu(e){return{kind:`hardNavigate`,reason:`cacheProofRejected`,token:e.event.token,trace:H(V.cacheProofRejected,$l(e.traceFields,e.rejection.decision)),url:e.event.result.href}}function tu(e){return{kind:`hardNavigate`,reason:`cacheReuseTokenRejected`,token:e.event.token,trace:H(V.cacheReuseTokenRejected,{...e.traceFields,cacheReuseTokenReason:e.reason}),url:e.event.result.href}}function nu(e,t){return t===null?e:{...e,cacheProofCode:t.code,cacheProofReuseClass:t.reuseClass}}function ru(e){return e===null?{}:{cacheEntryReuseDecision:e}}function iu(e){let t=e.targetSnapshot.interception;if(!t)return{kind:`rejected`,reasonCode:V.interceptedRejectedMissingProof};if(t.targetMatchedUrl!==e.targetSnapshot.matchedUrl)return{kind:`rejected`,reasonCode:V.interceptedRejectedTargetMismatch};let n=Xl(e.currentSnapshot);if(!e.restoredHistorySnapshot&&(t.sourceMatchedUrl!==n.matchedUrl||t.sourceRouteId!==n.routeId))return{kind:`rejected`,reasonCode:V.interceptedRejectedUnknownSource};let r=e.routeManifest===null?null:Ll(e.routeManifest,t);if(e.routeManifest!==null&&r===null)return{kind:`rejected`,reasonCode:V.interceptedRejectedUndeclaredTopology};let i=Vl(e.currentTopology,e.targetTopology);if(i.length===0)return{kind:`rejected`,reasonCode:V.interceptedRejectedIncompatibleRoot};let a=new Set(i),o=e.targetTopology.slotBindings.find(e=>e.slotId===t.slotId);if(!o||o.state!==`active`||o.ownerLayoutId===null||!a.has(o.ownerLayoutId))return{kind:`rejected`,reasonCode:V.interceptedRejectedMissingSlotProof};if(r!==null&&o.ownerLayoutId!==r.ownerLayoutId)return{kind:`rejected`,reasonCode:V.interceptedRejectedUndeclaredTopology};let s=Jl({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:i,targetSlotBindings:e.targetTopology.slotBindings}).filter(e=>e!==t.slotId),c=e.lane===`navigation`?Yl({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:i,targetInterceptionSlotId:t.slotId,targetSlotBindings:e.targetTopology.slotBindings}):[];return{kind:`approved`,preserveElementIds:i,preservePreviousSlotIds:[...new Set([...s,...c])].sort(O)}}function au(e){let t=e.event.result.targetSnapshot,n=Il({routeManifest:e.routeManifest,slotBindingSource:`snapshot`,snapshot:e.state.visibleSnapshot}),r=Il({routeManifest:e.routeManifest,slotBindingSource:`manifestTarget`,snapshot:t}),i=Rl({currentRootLayoutTreePath:n.kind===`known`?n.topology.rootLayoutTreePath:null,event:e.event,nextRootLayoutTreePath:r.kind===`known`?r.topology.rootLayoutTreePath:null,state:e.state});if(e.event.token.lane===`prefetch`)return{kind:`noCommit`,reason:`prefetchOnly`,token:e.event.token,trace:H(V.prefetchOnly,i)};let a=Ql(e.event.result.cacheEntryReuseProof);if(a.kind===`rejected`)return eu({event:e.event,rejection:a,traceFields:i});let o=a.decision;if(o!==null){let t=ol(e.event.token,{graphVersion:e.routeManifest?.graphVersion??null,installedCacheVariantFingerprint:null});if(!t.authorized)return tu({event:e.event,reason:t.reason,traceFields:i})}
31let s=nu(i,o),c=ru(o);if(t.interception!==null){if(n.kind===`unknown`||r.kind===`unknown`)return Zl({event:e.event,reasonCode:V.interceptedRejectedUndeclaredTopology,traceFields:s});let i=iu({currentSnapshot:e.state.visibleSnapshot,currentTopology:n.topology,lane:e.event.token.lane,restoredHistorySnapshot:e.event.result.restoredHistorySnapshot===!0,routeManifest:e.routeManifest,targetSnapshot:t,targetTopology:r.topology});return i.kind===`rejected`?Zl({event:e.event,reasonCode:i.reasonCode,traceFields:s}):{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:i.preserveElementIds,preservePreviousSlotIds:i.preservePreviousSlotIds,reason:`interceptedCurrentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:H(V.interceptedCommitCurrent,s)}}let l=n.kind===`unknown`||r.kind===`unknown`?`rootBoundaryUnknown`:zl(n.topology.rootBoundaryId,r.topology.rootBoundaryId);if(l===`rootBoundaryChanged`)return{kind:`hardNavigate`,reason:`rootBoundaryChanged`,token:e.event.token,trace:H(V.rootBoundaryChanged,s),url:e.event.result.href};if(l===`rootBoundaryUnknown`)return{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:[],preservePreviousSlotIds:[],reason:`unprovenTopologyFallback`,targetSnapshot:t},token:e.event.token,trace:H(V.rootBoundaryUnknown,s)};if(n.kind!==`known`||r.kind!==`known`)throw Error(`[vinext] Current-root navigation planning requires manifest topology`);return{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:Gl({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),preservePreviousSlotIds:Kl({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),reason:`currentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:H(V.commitCurrent,s)}}function ou(e){switch(e.event.kind){case`navigate`:return ul({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`flight`,mode:e.event.mode}});case`refresh`:return ul({eventKind:e.event.kind,state:e.state,work:{href:e.state.visibleSnapshot.displayUrl,kind:`flight`,mode:`refresh`}});case`traverse`:return ul({eventKind:e.event.kind,state:e.state,work:{direction:e.event.direction,historyState:e.event.historyState,kind:`traverseFlight`}});case`prefetch`:return ul({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`prefetch`}});case`flightResponseArrived`:return au({event:e.event,routeManifest:e.routeManifest,state:e.state});default:{let t=e.event;throw Error(`[vinext] Unknown navigation event: `+String(t))}}}function su(e){if(e.clientCompatibilityId===null||!e.isRscContentType||ms({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl}).kind===`compatible`)return{kind:`proceed`,trace:H(V.proceedToCommit,{})};if(e.actionRedirectHref!==null)return{kind:`hardNavigate`,url:e.actionRedirectHref,historyMode:e.actionRedirectType===`push`?`assign`:`replace`,clearClientNavigationCaches:!0,reason:`serverActionRedirectCompatibilityMismatch`,trace:H(V.serverActionRedirectCompatibilityMismatch,{targetHref:e.actionRedirectHref})};let t=e.currentHref;return{kind:`hardNavigate`,url:t,clearClientNavigationCaches:!1,reason:`serverActionRscCompatibilityMismatch`,trace:H(V.serverActionRscCompatibilityMismatch,{targetHref:t})}}function cu(e){return{kind:`hardNavigate`,url:e.currentHref,reason:`rscNavigationError`,trace:H(V.rscNavigationError,{targetHref:e.currentHref})}}var lu={classifyEarlyNavigationIntent:yl,classifyNavigationPrefetchProbe:wl,classifyNavigationReuse:Cl,classifyRscFetchResult:gl,classifyRscNavigationError:cu,classifyRootBoundaryTransition:zl,classifyServerActionResult:su,classifyVisitedResponseCacheCandidate:bl,plan:ou,resolveCurrentRootBoundaryElementPersistence:Wl,resolveMountedParallelSlotPersistence:Hl,resolveSameLayoutAncestorPersistence:Bl},uu=String.raw`(?:^|[^\w-])[\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|meta-externalagent|meta-externalfetcher|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|Skype
31UriPreview|Yeti|googleweblight`,du=/Googlebot(?!-)|Googlebot$/i,fu=new Map;function pu(e){let t=e||uu,n=fu.get(t);if(n)return n;let r=new RegExp(t,`i`);return fu.set(t,r),r}function mu(e,t){return e?du.test(e)?!0:pu(t).test(e):!1}function hu(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`//`)}function gu(){return{staticChildren:new Map,dynamicChild:null,catchAllChild:null,optionalCatchAllChild:null,route:null}}function _u(e){let t=gu();for(let n of e){let e=n.patternParts;if(e.length===0){t.route===null&&(t.route=n);continue}let r=t;for(let t=0;t<e.length;t++){let i=e[t];if(i.endsWith(`+`)&&i.startsWith(`:`)){if(t!==e.length-1)break;let a=i.slice(1,-1);r.catchAllChild===null&&(r.catchAllChild={paramName:a,route:n});break}if(i.endsWith(`*`)&&i.startsWith(`:`)){if(t!==e.length-1)break;let a=i.slice(1,-1);r.optionalCatchAllChild===null&&(r.optionalCatchAllChild={paramName:a,route:n});break}if(i.startsWith(`:`)){let a=i.slice(1);r.dynamicChild===null&&(r.dynamicChild={paramName:a,node:gu()}),r=r.dynamicChild.node,t===e.length-1&&r.route===null&&(r.route=n);continue}let a=r.staticChildren.get(i);a||(a=gu(),r.staticChildren.set(i,a)),r=a,t===e.length-1&&r.route===null&&(r.route=n)}}return t}function vu(e,t){let n=yu(e,t);return n&&Ce(n.params),n}function yu(e,t){return bu(e,t,0,[])}function bu(e,t,n,r){if(n===t.length)return e.route===null?e.optionalCatchAllChild===null?null:{route:e.optionalCatchAllChild.route,params:Se(r)}:{route:e.route,params:Se(r)};let i=t[n],a=e.staticChildren.get(i);if(a){let e=bu(a,t,n+1,r);if(e!==null)return e}if(e.dynamicChild!==null){r.push([e.dynamicChild.paramName,i]);let a=bu(e.dynamicChild.node,t,n+1,r);if(a!==null)return a;r.pop()}if(e.catchAllChild!==null){let i=t.slice(n),a=Se(r);return a[e.catchAllChild.paramName]=i,{route:e.catchAllChild.route,params:a}}if(e.optionalCatchAllChild!==null){let i=Se(r);return i[e.optionalCatchAllChild.paramName]=t.slice(n),{route:e.optionalCatchAllChild.route,params:i}}return null}function xu(){return new WeakMap}function Su(e,t){let n=e.get(t);return n||(n=_u(t),e.set(t,n)),n}function Cu(e,t,n){let r=e.split(`?`)[0],i=r===`/`?`/`:r.replace(/\/$/,``);i=be(i);let a=i.split(`/`).filter(Boolean);return vu(Su(n,t),a)}function wu(e){if(e)return e.split(`,`,1)[0]?.trim().split(`:`,1)[0]?.toLowerCase()||void 0}function Tu(e,t,n){if(!e?.length)return;let r=wu(t),i=n?.toLowerCase();for(let t of e)if(r===wu(t.domain)||i===t.defaultLocale.toLowerCase()||t.locales?.some(e=>e.toLowerCase()===i))return t}function Eu(e,t,n){let r=t.toLowerCase();if(r===n.toLowerCase())return e;let i=e.startsWith(`/`)?e:`/${e}`,a=(i.split(/[?#]/,1)[0]??i).toLowerCase(),o=`/${r}`;return a===o||a.startsWith(`${o}/`)?e.startsWith(`/`)?e:i:`/${t}${i}`}function Du(e,t){if(!t?.length)return;let n=e.startsWith(`/`)?e:`/${e}`,r=(n.split(/[?#]/,1)[0]??n).split(`/`).find(Boolean);if(!r)return;let i=r.toLowerCase();return t.find(e=>e.toLowerCase()===i)}function Ou(e,t=``){return t?t+e:e}function ku(e,t,{basePath:n,currentHostname:r,domainItems:i}){if(!i?.length)return;let a=Tu(i,void 0,t);if(!a)return;let o=Tu(i,r??void 0),s=Eu(e,t,a.defaultLocale);if(!(o&&wu(o.domain)===wu(a.domain)))return`${`http${a.http?``:`s`}://`}${a.domain}${Ou(s,n)}`}var Au=xu(),ju=xu(),Mu=new WeakMap,Nu=new WeakMap;function Pu(e){return`/`+e.join(`/`)}function Fu(e,t){let n;try{n=new URL(e,window.location.href)}catch{return null}if(n.origin!==window.location.origin)return null;let r=v(n.pathname,t),i=Du(r,window.__VINEXT_LOCALES__),a=i?i.length+1:0,o=i?r.length===a?`/`:r.slice(a):r;return{appPathname:r,pagesApiRequest:r===`/api`||r.startsWith(`/api/`),pagesPathname:o}}function Iu(e,t){return Fu(e,t)?.appPathname??null}function Lu(e,t){let n=t?Nu:Mu,r=n.get(e);return r||(r=e.filter(e=>!!e.documentOnly===t),n.set(e,r)),r}function Ru(e,t){let n=Fu(e,t);if(n===null)return{appMatch:null,pagesMatch:null};let r=window.__VINEXT_LINK_PREFETCH_ROUTES__,i=window.__VINEXT_PAGES_LINK_PREFETCH_ROUTES__;return{appMatch:r?Cu(n.appPathname,r,Au)?.route??null:null,pagesMatch:i?Cu(n.pagesPathname,Lu(i,n.pagesApiRequest),ju)?.route??null:null}}function zu({appMatch:e,pagesMatch:t}){if(e===null&&t===null)return null;if(t===null)return e.documentOnly?`document`:`app`;if(e===null)return t.documentOnly?`document`:`pages`;let n=ge(Pu(t.patternParts),t.isDynamic,Pu(e.patternParts),e.isDynamic);return(n===`app`?e:t).documentOnly?`document`:n}var Bu=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;function Vu(e){let t=e.charCodeAt(0);return(t>=65&&t<=90||t>=97&&t<=122)&&Bu.test(e)}function Hu(e){return Vu(e)||e.startsWith(`//`)}function Uu(){let{origin:e,href:t}=window.location;if(e)return e;try{return new URL(t).origin}catch{return null}}function Wu(e){let t=Uu();if(!t)return null;try{let n=e.startsWith(`//`)?new URL(e,t):new URL(e);if(n.origin===t)return n.pathname+n.search+n.hash}catch{}return null}function Gu(e,t){let n=Wu(e);if(n==null||!t)return n;try{let e=new URL(n,`http://vinext.local`);return Ee(e.pathname,t)?v(e.pathname,t)+e.search+e.hash:null}catch{return n}}function Ku(e){let t=e.indexOf(`#`),n=e.indexOf(`?`),r=n>-1&&(t<0||n<t);return r||t>-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):``,hash:t>-1?e.slice(t):``}:{pathname:e,query:``,hash:``}}function qu(e){return e.replace(/\/$/,``)||`/`}function Ju(e,t){if(!e.startsWith(`/`)||e.startsWith(`//`))return e;let{pathname:n,query:r,hash:i}=Ku(e);return t?/\.[^/]+\/?$/.test(n)?`${qu(n)}${r}${i}`:n.endsWith(`/`)?`${n}${r}${i}`:`${n}/${r}${i}`:`${qu(n)}${r}${i}`}function Yu(e,t){return!t||!e.startsWith(`/`)||Hu(e)?e:t+e}function Xu(e,t,n=``){let r=t??window.location.href;if(!r||e.startsWith(`/`)||Hu(e))return e;try{let t=new URL(e,r);return(n&&t.pathname===n?``:n?v(t.pathname,n):t.pathname)+t.search+t.hash}catch{return e}}function Zu(e,t,n=``){let r=Xu(e,t,n);return n?r===``?n:r.startsWith(`?`)||r.startsWith(`#`)?n+r:Yu(r,n):Yu(r,n)}function Qu(e,t,n,r){return Ju(Zu(e,t,n),r)}function $u(e,t,n=``){try{let r=new URL(t),i=new URL(e,t);return v(r.pathname,n)===v(i.pathname,n)&&r.search===i.search&&i.hash!==``}catch{return!1}}
31var ed=class extends Error{constructor(...e){super(...e),this.name=`UnrecognizedActionError`}};function td(e){return!!(e&&typeof e==`object`&&e instanceof ed)}var nd=class extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}},U=class extends URLSearchParams{append(){throw new nd}delete(){throw new nd}set(){throw new nd}sort(){throw new nd}},rd=Symbol.for(`vinext.navigation.pagesNavigationContextAccessor`);function id(){let e=globalThis[rd];if(!e)return null;try{return e()}catch{return null}}var ad=e({cancelAppPrefetchFetch:()=>md,promoteAppPrefetchFetch:()=>hd,releaseAppPrefetchFetchSlot:()=>fd,scheduleAppPrefetchFetch:()=>pd}),od=Symbol.for(`vinext.appPrefetchFetchSlotRelease`),sd=4,W=[],G=new WeakMap,cd=0,ld=!1;function ud(){for(ld=!1;cd<sd;){let e=W.shift();if(!e)return;cd+=1,e()}}function dd(){ld||(ld=!0,queueMicrotask(ud))}function fd(e){let t=e[od];t!==void 0&&(e[od]=void 0,t())}function pd(e,t){let n=new AbortController;if(t===`high`){let t=e(n.signal);return G.set(t,{cancel:()=>n.abort()}),t.then(e=>{e[od]=()=>G.delete(t)},()=>G.delete(t)),t}let r,i,a=!1,o=new Promise((t,s)=>{i=s,r=()=>{a=!0;let r=!1,i=()=>{r||(r=!0,G.delete(o),--cd,ud())};try{e(n.signal).then(e=>{e[od]=i,t(e)},e=>{G.delete(o),i(),s(e)})}catch(e){G.delete(o),i(),s(e)}}});return W.push(r),G.set(o,{runner:r,cancel:()=>{if(a){n.abort();return}let e=W.indexOf(r);e!==-1&&(W.splice(e,1),G.delete(o),n.abort(),i(n.signal.reason))}}),dd(),o}function md(e){e!==void 0&&G.get(e)?.cancel()}function hd(e){if(e===void 0)return;let t=G.get(e)?.runner;if(t===void 0)return;let n=W.indexOf(t);n!==-1&&(W.splice(n,1),cd+=1,t())}var gd=`modulepreload`,_d=function(e){return`/`+e},vd={},yd=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=_d(t,n),t=s(t),t in vd)return;vd[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:gd,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},bd=e({BailoutToCSRError:()=>Ti,DYNAMIC_NAVIGATION_CACHE_TTL:()=>Id,DynamicServerError:()=>Oi,GLOBAL_ACCESSORS_KEY:()=>Kr,HTTP_ERROR_FALLBACK_ERROR_CODE:()=>di,MAX_PREFETCH_CACHE_SIZE:()=>Nd,PREFETCH_CACHE_TTL:()=>K,ReadonlyURLSearchParams:()=>U,RedirectType:()=>mi,ServerInsertedHTMLContext:()=>Hr,UnrecognizedActionError:()=>ed,__basePath:()=>``,_registerStateAccessors:()=>ni,activateNavigationSnapshot:()=>dp,appRouterInstance:()=>Zp,applyAppRouterScrollFallback:()=>Ip,clearPendingPathname:()=>wp,clearServerInsertedHTML:()=>ci,commitClientNavigationState:()=>Q,consumePrefetchResponse:()=>qf,consumePrefetchResponseForNavigation:()=>Yf,createAppPrefetchRequestHeaders:()=>Hd,createCachedRscResponseSnapshot:()=>If,createClientNavigationRenderSnapshot:()=>gp,createSnapshotPathAndSearch:()=>_p,decodeRedirectError:()=>Si,deletePrefetchResponseSnapshot:()=>Pf,disableNavigationResponsePrefetchCacheReuse:()=>Mf,discardLearningOnlyPrefetchCacheEntry:()=>Tf,fetchRouteTreeGatedPrefetch:()=>Uf,flushServerInsertedHTML:()=>oi,forbidden:()=>yi,getAccessFallbackHTTPStatus:()=>pi,getBfcacheIdMapContext:()=>Wr,getBfcacheSegmentIdContext:()=>Gr,getClientNavigationRenderContext:()=>mp,getClientNavigationState:()=>Z,getClientParams:()=>Sp,getCurrentInterceptionContext:()=>zd,getCurrentNextUrl:()=>Vd,getFreshPrefetchCacheEntry:()=>Ud,getLayoutSegmentContext:()=>Ur,getMountedSlotsHeader:()=>$f,getNavigationContext:()=>A,getPrefetchCache:()=>q,getPrefetchInterceptionContext:()=>Bd,getPrefetchedUrls:()=>J,hasFreshLearningOnlyPrefetchCacheEntry:()=>of,hasPrefetchCacheEntryForNavigation:()=>af,hasSearchAgnosticPrefetchShellForRoute:()=>
31sf,invalidatePrefetchCache:()=>jf,isBailoutToCSRError:()=>Ei,isDynamicServerError:()=>ki,isHTTPAccessFallbackError:()=>fi,isNextRouterError:()=>Ci,isRedirectError:()=>xi,navigateClientSide:()=>Up,notFound:()=>vi,parseRenderedPathAndSearchHeader:()=>Rf,peekPrefetchResponseForNavigation:()=>Kf,permanentRedirect:()=>_i,prefetchRscResponse:()=>Wf,preloadHybridClientRouteOwner:()=>Cd,prepareNavigationPrefetchSnapshot:()=>Hf,pushHistoryStateWithoutNotify:()=>Mp,redirect:()=>gi,renderServerInsertedHTML:()=>si,replaceClientParamsWithoutNotify:()=>xp,replaceHistoryStateWithoutNotify:()=>Np,resolveCachedRscResponseExpiresAt:()=>Xd,resolveCachedRscResponseTtlMs:()=>Yd,resolveLoadedHybridClientRewriteHref:()=>wd,resolvePrefetchCacheEntryMountedSlotsHeader:()=>Qd,restoreRscResponse:()=>Vf,saveScrollPosition:()=>Pp,seedPrefetchResponseSnapshot:()=>Nf,setClientParams:()=>bp,setMountedSlotsHeader:()=>Qf,setNavigationContext:()=>ri,setPendingPathname:()=>Cp,snapshotRscResponse:()=>zf,storePrefetchResponse:()=>Ff,unauthorized:()=>bi,unstable_isUnrecognizedActionError:()=>td,unstable_rethrow:()=>Ai,useClientNavigationRenderSnapshot:()=>hp,useParams:()=>Ap,usePathname:()=>Op,useRouter:()=>Qp,useSearchParams:()=>kp,useSelectedLayoutSegment:()=>$p,useSelectedLayoutSegments:()=>em,useServerInsertedHTML:()=>tm}),xd=null,Sd=null;async function Cd(){xd||=(Sd??=yd(()=>import(`./hybrid-client-route-owner-BwlpMRHC.js`),[]),await Sd)}function wd(e,t){return xd?.resolveHybridClientRewriteHref(e,t)??null}function Td(e){return null}function Ed(e=`children`){let t=Ur();if(!t)return[];try{return(o.useContext(t)[e]??[]).filter(e=>!e.startsWith(`__PAGE__`))}catch{return[]}}var Dd=Symbol(`vinext.navigation.readonlySearchParams`),Od=Symbol(`vinext.navigation.readonlySearchParamsSource`),kd=Symbol(`vinext.navigation.readonlySearchParamsSourceKey`),Ad=Symbol.for(`vinext.navigation.pagesNavigationNotify`),jd=``,Md=!1,Nd=52428800,Pd=Nd*.9;function Fd(e,t){if(e===void 0||e===``)return t;let n=Number(e);return!Number.isFinite(n)||n<0?t:n*1e3}var Id=Fd(`0`,3e4),K=Fd(`300`,3e4),Ld=30,Rd=Ld*1e3;function zd(){return v(window.location.pathname,``)}function Bd(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return xc({basePath:``,currentPathname:window.location.pathname,routeManifest:g()?.bootstrap.routeManifest??null,targetPathname:t.pathname})}function Vd(){return window.location.pathname+window.location.search}function Hd(e){let t=g()?.functions.getPrefetchRouterState?.()??null;return ks({...e,nextUrl:Vd(),includePrefetchHeader:e.prefetchKind!==`full`,prefetchRouterState:t})}function q(){return window.__VINEXT_RSC_PREFETCH_CACHE__||(window.__VINEXT_RSC_PREFETCH_CACHE__=new Map),window.__VINEXT_RSC_PREFETCH_CACHE__}function Ud(e){let t=q(),n=t.get(e);if(n===void 0||n.pending||Y(n)>Date.now())return n;X(t,J(),e,n,!0)}function J(){return window.__VINEXT_RSC_PREFETCHED_URLS__||(window.__VINEXT_RSC_PREFETCHED_URLS__=new Set),window.__VINEXT_RSC_PREFETCHED_URLS__}function Wd(e){return typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e)&&e>=0}function Gd(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function Kd(e){if(e===null||e===``)return;let t=Number(e);return Wd(t)?t:void 0}function qd(e){if(e!==void 0)return e.kind===`pending`?Ld:Math.max(e.seconds,Ld)}function Jd(e){let t=e.dynamicStaleTimeSeconds,n=qd(e.serverStaleTime);return Wd(t)?n===void 0?t:Math.min(t,n):n}function Yd(e,t){let n=Jd(e);return n===void 0?t:n*1e3}function Xd(e,t,n){return Gd(t.expiresAt)?t.expiresAt:e+Yd(t,n)}function Zd(e,t,n,r){if(Gd(t.expiresAt))return t.expiresAt;let i=t.serverStaleTime?.kind===`pending`&&r!==`verbatim`?void 0:qd(t.serverStaleTime);if(i!==void 0)return e+i*1e3;if(r===`ignore`)return e+Math.max(n,Rd);let a=Wd(t.dynamicStaleTimeSeconds)?t.dynamicStaleTimeSeconds:void 0;return a===void 0?e+Math.max(n,Rd):r===`verbatim`?e+a*1e3:e+Math.max(a===0?n:a*1e3,Rd)}function Y(e){return e.expiresAt===void 0?e.snapshot?Xd(e.timestamp,e.snapshot,K):e.timestamp+K:e.expiresAt}function Qd(e){return e.mountedSlotsHeader===void 0?e.snapshot?.mountedSlotsHeader??null:e.mountedSlotsHeader}function $d(e){try{let t=new URL(e,`http://vinext.local`);return ws(t),`${t.pathname}${t.search}`}catch{return null}}function ef(e){try{return Es(new URL(e,`http://vinext.local`).pathname)}catch{return null}}function tf(e){let t=e.indexOf(`\0`);return t===-1?{interceptionContext:null,rscUrl:e}:{interceptionContext:e.slice(t+1),rscUrl:e.slice(0,t)}}function nf(e,t){return Qd(e)===t||(e.snapshot?.mountedSlotsHeader??null)===t}function rf(e,t,n,r=[]){let i=q(),a=[e,...r];for(let e of a){let r=k.encodeCacheKey(e,t),a=i.get(r);if(a&&a.cacheForNavigation!==!1&&nf(a,n))return{cacheKey:r,entry:a}}let o=new Set(a.map(e=>$d(e)).filter(e=>e!==null));if(o.size===0)return null;for(let[e,r]of i){if(r.cacheForNavigation===!1)continue;let i=tf(e);if(i.interceptionContext!==t)continue;let a=$d(i.rscUrl);if(a!==null&&o.has(a)&&nf(r,n))return{cacheKey:e,entry:r}}return null}function af(e,t=null,n=null,r={}){let i=rf(e,t,n,r.additionalRscUrls);return i===null?!1:i.entry.pending!==void 0||Y(i.entry)>Date.now()?(pf(q(),i.cacheKey,i.entry),kf(i.cacheKey,i.entry,r.onInvalidate),!0):(X(q(),J(),i.cacheKey,i.entry,r.notifyInvali
31dation??!0),!1)}function of(e,t=null){let n=k.encodeCacheKey(e,t),r=q(),i=r.get(n);return i?.cacheForNavigation===!1?i.pending!==void 0||Y(i)>Date.now()?(pf(r,n,i),!0):(X(r,J(),n,i,!0),!1):!1}function sf(e,t=null,n=null){let r=ef(e);if(r===null)return!1;let i=q();for(let[e,a]of i){if(a.searchAgnosticShell!==!0)continue;let o=tf(e);if(o.interceptionContext===t&&ef(o.rscUrl)===r&&nf(a,n)){if(a.pending!==void 0||Y(a)>Date.now())return!0;X(i,J(),e,a,!0)}}return!1}function cf(e){return e.snapshot?.buffer.byteLength??e.size??0}var lf=null,uf=0;function df(e){if(lf===e)return uf;let t=0,n=new Set;for(let r of e.values())n.has(r)||(n.add(r),t+=cf(r));return lf=e,uf=t,t}function ff(e,t){lf===e&&(uf=Math.max(0,uf+t))}function pf(e,t,n){if(e.get(t)===n){e.delete(t),e.set(t,n);for(let r of n.cacheKeys??[])r!==t&&e.get(r)===n&&(e.delete(r),e.set(r,n))}}function mf(){let e=q(),t=df(e);if(t<=52428800)return;let n=Date.now(),r=J();for(let[t,i]of e)Y(i)<=n&&X(e,r,t,i,!0);if(t=df(e),t<=52428800)return;let i=0;for(;t>Pd&&i<e.size;){let n=e.keys().next().value;if(n!==void 0){let a=e.get(n);if(a){let o=cf(a);if(a.pending!==void 0&&o===0){pf(e,n,a),i+=1;continue}t-=o,X(e,r,n,a,!0),i=0}else e.delete(n),r.delete(n),i+=1}else break}}var hf=new Set;function gf(e){let t={destination:e,cancelled:!1};return hf.add(t),t}function _f(e){for(let t of hf)(e===null||t.destination===e)&&(t.cancelled=!0)}function vf(e){let t=e;if(hu(e)){let n=Gu(e,``);if(n==null)return null;t=n}let n=Qu(t,window.location.href,``,Md);try{let e=new URL(n,window.location.href);return`${e.pathname}${e.search}`}catch{return n.split(`#`,1)[0]}}function yf(e){e.invalidationTimer!==void 0&&(clearTimeout(e.invalidationTimer),e.invalidationTimer=void 0)}function bf(e){try{e()}catch(e){typeof reportError==`function`?reportError(e):console.error(e)}}function xf(e){yf(e);let t=e.onInvalidateCallbacks;if(e.onInvalidateCallbacks=void 0,t!==void 0)for(let e of t)bf(e)}var Sf=new Set;function Cf(e){let t=e.onInvalidateCallbacks;if(t===void 0||t.size===0)return;let n=Math.max(0,Y(e)-Date.now()),r={callbacks:t,timer:setTimeout(()=>wf(r),n)};Sf.add(r)}function wf(e){if(Sf.delete(e)){clearTimeout(e.timer);for(let t of e.callbacks)bf(t)}}function X(e,t,n,r,i){let a=r.cacheKeys??new Set([n]),o=!1;for(let n of a)e.get(n)===r&&(e.delete(n),t.delete(n),o=!0);o&&(ff(e,-cf(r)),r.cacheKeys=void 0,i?xf(r):(yf(r),r.onInvalidateCallbacks=void 0))}function Tf(e,t=null){let n=q(),r=J(),i=$d(e);if(i===null)return!1;let a=[];for(let[e,r]of n){if(r.cacheForNavigation!==!1||r.prefetchKind!==`navigation`)continue;let n=tf(e);n.interceptionContext===t&&$d(n.rscUrl)===i&&a.push([e,r])}for(let[e,t]of a)md(t.fetchPromise),X(n,r,e,t,!0);return a.length>0}function Ef(e){let t=q(),n=t.get(e);n&&X(t,J(),e,n,!0)}function Df(e,t){if(t.onInvalidateCallbacks===void 0||t.onInvalidateCallbacks.size===0)return;yf(t);let n=Math.max(0,Y(t)-Date.now());t.invalidationTimer=setTimeout(()=>{Ef(e)},n)}function Of(e,t){t!==void 0&&(e.onInvalidateCallbacks===void 0&&(e.onInvalidateCallbacks=new Set),e.onInvalidateCallbacks.add(t))}function kf(e,t,n){n!==void 0&&(Of(t,n),t.outcome===`cache-seeded`&&Df(e,t))}function Af(e,t){if(t===void 0)return;let n=q().get(e);n&&kf(e,n,t)}function jf(){_f(null);let e=q(),t=J();for(let[n,r]of e)X(e,t,n,r,!0);t.clear();for(let e of Sf)wf(e);g()?.functions.pingVisibleLinks?.()}function Mf(){let e=!1;for(let t of new Set(q().values()))t.prefetchKind===void 0&&t.reuseAfterHistoryRestore!==!0&&(e||=t.cacheForNavigation!==!1,t.cacheForNavigation=!1);e&&g()?.functions.pingVisibleLinks?.()}function Nf(e,t,n=null,r=null,i=Id,a=!1){let o=k.encodeCacheKey(e,n),s=q(),c=s.get(o);c&&X(s,J(),o,c,!1);let l=Date.now(),u={cacheForNavigation:!0,cacheKeys:new Set([o]),expiresAt:Xd(l,t,i),mountedSlotsHeader:r,outcome:`cache-seeded`,reuseAfterHistoryRestore:a,size:t.buffer.byteLength,snapshot:t,timestamp:l};s.set(o,u),ff(s,t.buffer.byteLength),J().add(o),Df(o,u),mf()}function Pf(e,t,n=null){let r=k.encodeCacheKey(e,n),i=q(),a=i.get(r);a?.snapshot===t&&X(i,J(),r,a,!1)}function Ff(e,t,n=null,r){let i=k.encodeCacheKey(e,n),a=q(),o=J(),s=a.get(i);s&&X(a,o,i,s,!1);
31let c={cacheKeys:new Set([i]),mountedSlotsHeader:null,outcome:`pending`,timestamp:Date.now()};Of(c,r?.onInvalidate),c.pending=zf(t).then(e=>{if(a.get(i)!==c)return;let t=cf(c);c.mountedSlotsHeader=e.mountedSlotsHeader??null,c.snapshot=e,c.size=e.buffer.byteLength,ff(a,c.size-t),c.expiresAt=Xd(c.timestamp,e,K),mf()}).catch(()=>{X(a,o,i,c,!1)}).finally(()=>{a.get(i)===c&&(c.pending=void 0,c.snapshot&&(c.outcome=`cache-seeded`,Df(i,c)))}),a.set(i,c)}function If(e,t,n=null){let r=Kd(e.headers.get(ft)),i=e.headers.get(pt),a=i===`1`?Pc(t):{buffer:t},o=i===`resolved`?r:a.metadata?.dynamicStaleTimeSeconds??r,s=o??r,c=Lf(e.headers),l=a.metadata!==void 0&&Object.hasOwn(a.metadata,`serverStaleTimeSeconds`)?a.metadata?.serverStaleTimeSeconds===null?void 0:{kind:`resolved`,seconds:a.metadata.serverStaleTimeSeconds}:c;return{compatibilityIdHeader:e.headers.get(I),buffer:a.buffer,...o===void 0?{}:{completedDynamicStaleTimeSeconds:o},contentType:e.headers.get(`content-type`)??`text/x-component`,...s===void 0?{}:{dynamicStaleTimeSeconds:s},mountedSlotsHeader:e.headers.get(Ve),paramsHeader:e.headers.get(dt),renderedPathAndSearch:Rf(e.headers.get(mt)),...l===void 0?{}:{serverStaleTime:l},url:n??e.url}}function Lf(e){if(e.get(`X-Vinext-Stale-Time-Pending`)===`1`)return{kind:`pending`};let t=Kd(e.get(wt));return t===void 0?void 0:{kind:`resolved`,seconds:t}}function Rf(e){if(e===null||e===``)return null;try{let t=decodeURIComponent(e);return t.startsWith(`/`)?t:null}catch{return null}}async function zf(e){try{let t=If(e,await e.arrayBuffer()),n=Bf.get(e);return n===void 0?t:{...t,expiresAt:n}}finally{fd(e)}}var Bf=new WeakMap;function Vf(e,t=!0){let n=new Headers({"content-type":e.contentType});e.mountedSlotsHeader!=null&&n.set(Ve,e.mountedSlotsHeader),e.compatibilityIdHeader!=null&&n.set(I,e.compatibilityIdHeader),Wd(e.dynamicStaleTimeSeconds)&&n.set(ft,String(e.dynamicStaleTimeSeconds)),Wd(e.completedDynamicStaleTimeSeconds)&&n.set(pt,`resolved`),e.serverStaleTime?.kind===`pending`?n.set(Tt,`1`):e.serverStaleTime!==void 0&&n.set(wt,String(e.serverStaleTime.seconds)),e.paramsHeader!=null&&n.set(dt,e.paramsHeader),e.renderedPathAndSearch!=null&&n.set(mt,encodeURIComponent(e.renderedPathAndSearch));let r=new Response(t?e.buffer.slice(0):e.buffer,{status:200,headers:n});return Gd(e.expiresAt)&&Bf.set(r,e.expiresAt),r}async function Hf(e){let t=g()?.functions.preparePrefetchResponse;if(!t)throw Error(`App Router prefetch preparation is unavailable`);return await t(Vf(e))}async function Uf(e){let{fetchFullRscPayload:t,fetchRouteTree:n,fullHref:r,headers:i,interceptionContext:a,mountedSlotsHeader:o}=e,s=new Headers(i);s.set(b,`1`),s.set(x,`/_tree`);let c=await R(r,s),l=k.encodeCacheKey(c,a),u=Ud(l);u===void 0&&(J().add(l),Wf(c,n(c,s),a,o,void 0,{cacheForNavigation:!1,optimisticRouteShell:!1,prefetchKind:`route-tree`}),u=Ud(l)),await u?.pending?.catch(()=>{}),u=Ud(l);let d=u?.snapshot?.renderedPathAndSearch;if(d){let e=Kf(await R(d,i),a,o);if(e)return Vf(e)}return t()}function Wf(e,t,n=null,r=null,i,a={}){let o=k.encodeCacheKey(e,n),s=q(),c=J(),l=Date.now(),u=s.get(o),d=a.cacheForNavigation??!0;u&&X(s,c,o,u,!1);let f={cacheForNavigation:d,cacheKeys:new Set([o]),mountedSlotsHeader:r,optimisticRouteShell:a.optimisticRouteShell===!0,outcome:`pending`,prefetchKind:a.prefetchKind??(a.optimisticRouteShell===!0?`loading-shell`:`navigation`),searchAgnosticShell:a.searchAgnosticShell===!0,timestamp:l};Of(f,i?.onInvalidate),f.fetchPromise=t,f.pending=t.then(async e=>{if(e.ok){let t=await zf(e);if(s.get(o)!==f)return;let n=cf(f);if(f.snapshot=t,f.size=t.buffer.byteLength,ff(s,f.size-n),f.expiresAt=Zd(f.timestamp,f.snapshot,a.fallbackTtlMs??K,a.searchAgnosticShell===!0?`ignore`:a.dynamicStaleTime??(a.optimisticRouteShell===!0?`ignore`:`verbatim`)),a.prepareSnapshot)try{let e=await a.prepareSnapshot(t);if(s.get(o)!==f)return;f.preparedElements=e}catch{}Gf(s,c,o,f),mf()}else fd(e),X(s,c,o,f,!1)}).catch(()=>{X(s,c,o,f,!1)}).finally(()=>{s.get(o)===f&&(f.pending=void 0,f.fetchPromise=void 0,f.snapshot&&(f.outcome=`cache-seeded`,Df(o,f)))}),s.set(o,f),mf()}function Gf(e,t,n,r){if(r.cacheForNavigation===!1)return;let i=r.snapshot?.renderedPathAndSearch;if(!i)return;let a=tf(n),o=k.encodeCacheKey(i,a.interceptionContext);if(o===n)return;let s=e.get(o);s&&s!==r&&X(e,t,o,s,!1),r.cacheKeys??=new Set([n]),r.cacheKeys.add(o),e.set(o,r),t.add(o)}function Kf(e,t=null,n=null,r){let i=rf(e,t,n,r?.additionalRscUrls);if(!i)return null;let{cacheKey:a,entry:o}=i;return o.pending||o.outcome!==`cache-seeded`||o.cacheForNavigation===!1||!o.snapshot?null:Y(o)<=Date.now()?(X(q(),J(),a,o,!0),null):o.expiresAt!==void 0||o.snapshot.expiresAt!==void 0?{...o.snapshot,expiresAt:Y(o)}:o.snapshot}function qf(e,t=null,n=null,r){let i=q(),a=k.encodeCacheKey(e,t),o=i.get(a);o&&o.cacheForNavigation!==!1&&!nf(o,n)&&X(i,J(),a,o,!1);let s=rf(e,t,n,r?.additionalRscUrls);if(!s)return null;let{cacheKey:c,entry:l}=s;return Jf(c,l,n)}function Jf(e,t,n,r=!1){let i=q();
31if(t.pending||t.outcome!==`cache-seeded`||t.cacheForNavigation===!1)return null;if(t.snapshot){if(!nf(t,n))return null;if(!r&&Y(t)<=Date.now())return X(i,J(),e,t,!0),null;Cf(t),X(i,J(),e,t,!1);let a=t.snapshot;return t.expiresAt!==void 0||t.snapshot.expiresAt!==void 0?{...a,expiresAt:Y(t),...t.preparedElements?{preparedElements:t.preparedElements}:{}}:t.preparedElements?{...a,preparedElements:t.preparedElements}:a}return null}async function Yf(e,t=null,n=null,r){let i=q(),a=rf(e,t,n,r?.additionalRscUrls);if(!a)return null;let{cacheKey:o,entry:s}=a;if(r?.shouldConsume?.()===!1)return null;let c=s.pending!==void 0;return s.pending!==void 0&&(hd(s.fetchPromise),await s.pending.catch(()=>{}),i.get(o)!==s||r?.shouldConsume?.()===!1)?null:Jf(o,s,n,c)}var Xf=Symbol.for(`vinext.clientNavigationState`),Zf=Symbol.for(`vinext.mountedSlotsHeader`);function Qf(e){let t=window;t[Zf]=e}function $f(){return window[Zf]??null}function Z(){let e=window;return e[Xf]??={listeners:new Set,cachedSearch:window.location.search,cachedReadonlySearchParams:new U(window.location.search),cachedPathname:v(window.location.pathname,``),clientParams:{},clientParamsJson:`{}`,pendingClientParams:null,pendingClientParamsJson:null,pendingPathname:null,pendingPathnameNavId:null,originalPushState:window.history.pushState.bind(window.history),originalReplaceState:window.history.replaceState.bind(window.history),patchInstalled:!1,hasPendingNavigationUpdate:!1,suppressUrlNotifyCount:0,navigationSnapshotActiveCount:0},e[Xf]}function ep(){let e=Z();if(e)for(let t of e.listeners)t()}globalThis[Ad]=ep;var tp=null,np=new WeakMap,rp=null,ip=null;function ap(e){let t=np.get(e);if(t)return t;let n=e.toString();if(rp===n&&ip)return np.set(e,ip),ip;let r=new U(e);return np.set(e,r),rp=n,ip=r,r}function op(){let e=id();return e?e.pathname:Z()?.cachedPathname??`/`}var sp=null;function cp(){if(A())return up();let e=id();return e?ap(e.searchParams):Z()?.cachedReadonlySearchParams||(sp===null&&(sp=new U),sp)}function lp(){let e=Z();if(!e)return!1;let t=!1,n=v(window.location.pathname,``);n!==e.cachedPathname&&(e.cachedPathname=n,t=!0);let r=window.location.search;return r!==e.cachedSearch&&(e.cachedSearch=r,e.cachedReadonlySearchParams=new U(r),t=!0),t}function up(){let e=A();if(!e){let e=id();return e?ap(e.searchParams):(tp===null&&(tp=new U),tp)}let t=e.searchParams,n=e[Dd],r=e[Od];if(n&&r===t)return n;let i=t.toString();if(n&&e[kd]===i)return e[Od]=t,n;let a=new U(t);return e[Dd]=a,e[Od]=t,e[kd]=i,a}function dp(){let e=Z();e&&e.navigationSnapshotActiveCount++}var fp={},pp=Symbol.for(`vinext.clientNavigationRenderContext`);function mp(){if(typeof o.createContext!=`function`)return null;let e=globalThis;return e[pp]||(e[pp]=o.createContext(null)),e[pp]??null}function hp(){let e=mp();if(!e||typeof o.useContext!=`function`)return null;try{return o.useContext(e)}catch{return null}}function gp(e,t,n){let r=window.location.origin,i=new URL(e,r);return{pathname:v(i.pathname,``),search:i.search,searchParams:new U(i.search),params:t,...n==null?{}:{renderedSearch:new URL(n,r).search}}}function _p(e){return e.pathname+e.search}var vp=fp,yp=`{}`;function bp(e){let t=Z();if(!t){let t=JSON.stringify(e);t!==yp&&(vp=e,yp=t);return}let n=JSON.stringify(e);n!==t.clientParamsJson&&(t.clientParams=e,t.clientParamsJson=n,t.pendingClientParams=null,t.pendingClientParamsJson=null,ep())}function xp(e){let t=Z();if(!t)return;let n=JSON.stringify(e);n!==t.clientParamsJson&&n!==t.pendingClientParamsJson&&(t.pendingClientParams=e,t.pendingClientParamsJson=n,t.hasPendingNavigationUpdate=!0)}function Sp(){return Z()?.clientParams??vp}function Cp(e,t){let n=Z();n&&(n.pendingPathname=v(e,``),n.pendingPathnameNavId=t)}function wp(e){let t=Z();t&&(t.pendingPathnameNavId===null||t.pendingPathnameNavId===e)&&(t.pendingPathname=null,t.pendingPathnameNavId=null)}function Tp(){let e=Z(),t=A();if(t)return t.params;let n=id();return n?n.params:e?.clientParams??fp}function Ep(){let e=A();if(e)return e.params;let t=id();return t?t.params:fp}function Dp(e){let t=Z();return t?(t.listeners.add(e),()=>{t.listeners.delete(e)}):()=>{}}function Op(){let e=hp(),t=o.useSyncExternalStore(Dp,op,()=>{let e=A();if(e)return e.pathname;let t=id();return t?t.pathname:`/`});return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function kp(){let e=hp(),t=o.useSyncExternalStore(Dp,cp,up);return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.searchParams:t}function Ap(){let e=hp(),t=o.useSyncExternalStore(Dp,Tp,Ep);return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.params:t}function jp(e){let t=Z();if(!t)return e();t.suppressUrlNotifyCount+=1;try{return e()}finally{--t.suppressUrlNotifyCount}}function Q(e,t){let n=Z();if(!n)return;(t?.releaseSnapshot??e!==void 0)&&n.navigationSnapshotActiveCount>0&&--n.navigationSnapshotActiveCount;let r=lp(),i=!1;
31n.pendingClientParams!==null&&n.pendingClientParamsJson!==null&&(n.clientParams=n.pendingClientParams,n.clientParamsJson=n.pendingClientParamsJson,n.pendingClientParams=null,n.pendingClientParamsJson=null,i=!0),(n.pendingPathnameNavId===null||e!==void 0&&n.pendingPathnameNavId===e)&&(n.pendingPathname=null,n.pendingPathnameNavId=null);let a=r||n.hasPendingNavigationUpdate;n.hasPendingNavigationUpdate=!1,(r||i)&&Zr(),a&&ep()}function Mp(e,t,n){jp(()=>{Z()?.originalPushState.call(window.history,e,t,n)})}function Np(e,t,n){jp(()=>{Z()?.originalReplaceState.call(window.history,e,t,n)})}function Pp(){Np({...window.history.state??{},__vinext_scrollX:window.scrollX,__vinext_scrollY:window.scrollY},``)}function Fp(e,t,n){let r=g()?.functions.commitHashNavigation;if(r){r(e,t,n);return}let i=_c(window.history.state);t===`replace`?Np(i,``,e):Mp(i,``,e)}function Ip(e){if(typeof document<`u`){if(e.hash!==null){Mr(e.hash,()=>ka(e));return}e.targetHoistedInHead||(document.documentElement.scrollTop=0)}}function Lp(e){queueMicrotask(()=>{let t=Oa();if(t===null||t.id!==e.id)return;let n=Ma(e);n&&Ip(n)})}function Rp(e){if(e&&typeof e==`object`&&`__vinext_scrollY`in e){let{__vinext_scrollX:t,__vinext_scrollY:n}=e;Promise.resolve().then(()=>{let e=window.__VINEXT_RSC_PENDING__??null;e?e.then(()=>Nr(t,n)):Nr(t,n)})}}function zp(e,t){t===`replace`?window.location.replace(e):window.location.assign(e)}function Bp(){g()?.functions.notifyLinkNavigationStart?.()}function Vp(e){let t=vf(e);t!==null&&!$u(e,window.location.href,``)&&_f(t),Bp()}function Hp(){let e=vf(window.location.href);e!==null&&_f(e),Bp()}async function Up(e,t,n,r=!1,i=`transition`){Vp(e);let a=e;if(hu(e)){let n=Gu(e,``);if(n==null){Bs(e,t);let n=g()?.functions.navigateExternal;if(n){await n(e,t);return}zp(e,t),await new Promise(()=>{});return}a=n}let o=Td(a);if(o===`pages`||o===`document`){let e=Qu(a,window.location.href,``,Md);Bs(e,t),t===`push`&&Pp(),zp(e,t),await new Promise(()=>{});return}let s=Qu(a,window.location.href,``,Md);Bs(s,t),t===`push`&&Pp();let c=lu.classifyEarlyNavigationIntent({basePath:``,currentUrlSpace:`browser`,currentHref:window.location.href,mode:t,scroll:n,targetHref:s});if(c.kind===`sameDocumentScroll`){Da(),Fp(s,c.mode,c.scroll),Ri(s),Q(),c.scroll&&jr(c.hash);return}if(wc(typeof document>`u`?void 0:document)){let e=g()?.functions.navigateExternal;if(e){await e(s,t);return}zp(s,t),await new Promise(()=>{});return}let l=s.indexOf(`#`),u=l===-1?``:s.slice(l),d=n?Ea(u||null):null;n||Da();let f=g()?.functions.navigate;try{f?await f(s,0,`navigate`,t,void 0,r,void 0,d,i,c.bypassNavigationCache):(t===`replace`?Np(null,``,s):Mp(null,``,s),Q())}catch(e){throw d&&Ma(d),e}d&&Lp(d)}var Wp=0;function Gp(){Wp+=1;let e=!1;return()=>{e||(e=!0,Wp=Math.max(0,Wp-1))}}function Kp(){return Wp>0}function qp(e){queueMicrotask(e)}var Jp={bfcacheId:`0`,push(e,t){Wc(e),Vp(e);let n=Gp();try{o.startTransition(()=>{Up(e,`push`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}qp(n)},replace(e,t){Wc(e),Vp(e);let n=Gp();try{o.startTransition(()=>{Up(e,`replace`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}qp(n)},back(){window.history.back()},forward(){window.history.forward()},refresh(){if(g()?.functions.clearNavigationCaches?.(),Kp())return;let e=g()?.functions.navigate;e&&o.startTransition(()=>{e(window.location.href,0,`refresh`,void 0,void 0,!0)})},prefetch(e,t){if(Wc(e),mu(window.navigator?.userAgent??``))return;try{new URL(Yu(e,``),window.location.href)}catch{throw Error(`Cannot prefetch '${e}' because it cannot be converted to a URL.`)}let n=hu(e)?Gu(e,``):e;if(n==null)return;let r=vf(n);if(r===null)return;let i=Bd(r),a=$f(),o=Hd({fetchPriority:`low`,interceptionContext:i,mountedSlotsHeader:a||null}),s=gf(r);(async()=>{let e=Td(r);if(e===`pages`||e===`document`)return;let n=t?.kind===`full`?`full`:`auto`,[{resolveAutoAppRoutePrefetch:c,resolveFullAppRoutePrefetch:l},{resolveAppPrefetchRscRequest:u}]=await Promise.all([yd(()=>Promise.resolve().then(()=>Dm),void 0),yd(()=>Promise.resolve().then(()=>Tm),void 0)]);if(s.cancelled)return;let d=n===`full`?l():c(r),f=d.shouldPrefetch&&d.cacheForNavigation,p=d.requiresRouteTreePrefetch===!0;f&&n===`full`&&o.delete(b),f&&n===`auto`&&(o.set(b,`1`),o.set(x,p?`/__PAGE__`:`1`));let ee=new URL(r,window.location.href).search!==``;!f&&n===`auto`&&(o.set(b,`1`),o.set(x,`1`),o.set(S,ee?qo:Jo));let{additionalRscUrls:te,rscUrl:m}=await u({fullHref:r,headers:o,rewrittenPrefetchHref:null});if(s.cancelled)return;let ne=k.encodeCacheKey(m,i),re=J();if(f){if(Tf(m,i),af(m,i,a,{additionalRscUrls:te,onInvalidate:t?.onInvalidate}))return}
31else if(of(m,i)){Af(ne,t?.onInvalidate);return}re.add(ne);let ie=()=>pd(e=>fetch(m,{headers:o,credentials:`include`,priority:`low`,signal:e}),`low`);Wf(m,f&&n===`auto`&&p?Uf({fetchFullRscPayload:ie,fetchRouteTree:(e,t)=>pd(n=>fetch(e,{headers:t,credentials:`include`,priority:`low`,signal:n}),`low`),fullHref:r,headers:o,interceptionContext:i,mountedSlotsHeader:a}):ie(),i,a,t,f?{cacheForNavigation:!0,fallbackTtlMs:d.fallbackTtl===`dynamic`?Id:K,dynamicStaleTime:d.dynamicStaleTime,optimisticRouteShell:!1,prefetchKind:`navigation`,prepareSnapshot:Hf}:{cacheForNavigation:!1,fallbackTtlMs:d.fallbackTtl===`dynamic`?Id:K,dynamicStaleTime:d.dynamicStaleTime,optimisticRouteShell:!0,prefetchKind:`navigation`})})().catch(e=>{console.error(`[vinext] RSC prefetch setup error:`,e)}).finally(()=>{hf.delete(s)})}};function Yp(e){return!e||e===`0`?bc:e}function Xp(){let e=Gr(),t=Wr();if(!e||!t||typeof o.useContext!=`function`)return Yp(null);try{let n=o.useContext(e),r=o.useContext(t);return Yp(n===null?null:r?.[n])}catch{return Yp(null)}}var Zp=Jp;function Qp(){if(!xr||typeof o.useContext!=`function`||typeof o.useMemo!=`function`)throw Error(`invariant expected app router to be mounted`);let e=o.useContext(xr);if(e===null)throw Error(`invariant expected app router to be mounted`);let t=Xp();return o.useMemo(()=>({...e,bfcacheId:t}),[e,t])}function $p(e){let t=em(e);return t.length===0?null:e===void 0||e===`children`?t[0]:t[t.length-1]}function em(e){return Ed(e)}function tm(e){typeof document>`u`&&ii(e)}{let e=Z();e&&!e.patchInstalled&&(e.patchInstalled=!0,window.addEventListener(`popstate`,()=>{Hp()}),window.addEventListener(`popstate`,e=>{he()||(Q(),Rp(e.state))}),window.history.pushState=function(t,n,r){if(rc(t)){let i=window.history.state;e.originalPushState.call(window.history,t,n,r),g()?.functions.commitAppOwnedHistoryStateWrite?.(`push`,i);return}let i=window.history.state;e.originalPushState.call(window.history,ec(t,window.history.state),n,r),g()?.functions.claimCurrentHistoryTreeSnapshot?.(`push`,i),e.suppressUrlNotifyCount===0&&(Bp(),Q())},window.history.replaceState=function(t,n,r){if(rc(t)){let i=window.history.state;e.originalReplaceState.call(window.history,t,n,r),g()?.functions.commitAppOwnedHistoryStateWrite?.(`replace`,i);return}let i=window.history.state;e.originalReplaceState.call(window.history,ec(t,window.history.state),n,r),g()?.functions.claimCurrentHistoryTreeSnapshot?.(`replace`,i),e.suppressUrlNotifyCount===0&&(Bp(),Q())})}function nm(e,t){let n=(0,o.useRef)(null),r=(0,o.useRef)(null);return(0,o.useCallback)(i=>{if(i===null){let e=n.current;e&&(n.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(n.current=rm(e,i)),t&&(r.current=rm(t,i))},[e,t])}function rm(e,t){if(typeof e==`function`){let n=e(t);return typeof n==`function`?n:()=>e(null)}return e.current=t,()=>{e.current=null}}var im=t(n(((e,t)=>{(function(e){let n=`(0?\\d+|0x[a-f0-9]+)`,r={fourOctet:RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,`i`),threeOctet:RegExp(`^${n}\\.${n}\\.${n}$`,`i`),twoOctet:RegExp(`^${n}\\.${n}$`,`i`),longValue:RegExp(`^${n}$`,`i`)},i=RegExp(`^0[0-7]+$`,`i`),a=RegExp(`^0x[a-f0-9]+$`,`i`),o=`%[0-9a-z]{1,}`,s=`(?:[0-9a-f]+::?)+`,c={zoneIndex:RegExp(o,`i`),native:RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${o})?$`,`i`),deprecatedTransitional:RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(${o})?)$`,`i`),transitional:RegExp(`^((?:${s})|(?:::)(?:${s})?)${n}\\.${n}\\.${n}\\.${n}(${o})?$`,`i`)};function l(e,t){if(e.indexOf(`::`)!==e.lastIndexOf(`::`))return null;let n=0,r=-1,i=(e.match(c.zoneIndex)||[])[0],a,o;for(i&&(i=i.substring(1),e=e.replace(/%.+$/,``));(r=e.indexOf(`:`,r+1))>=0;)n++;if(e.substr(0,2)===`::`&&n--,e.substr(-2,2)===`::`&&n--,n>=t)return null;for(o=t-n,a=`:`;o--;)a+=`0:`;return e=e.replace(`::`,a),e[0]===`:`&&(e=e.slice(1)),e[e.length-1]===`:`&&(e=e.slice(0,-1)),t=(function(){let t=e.split(`:`),n=[];for(let e=0;e<t.length;e++)n.push(t[e].length>4?NaN:parseInt(t[e],16));return n})(),{parts:t,zoneId:i}}function u(e,t,n,r){if(e.length!==t.length)throw Error(`ipaddr: cannot match CIDR for objects with different lengths`);let i=0,a;for(;r>0;){if(a=n-r,a<0&&(a=0),e[i]>>a!==t[i]>>a)return!1;r-=n,i+=1}return!0}function d(e){if(a.test(e))return parseInt(e,16);if(e[0]===`0`&&!isNaN(parseInt(e[1],10))){if(i.test(e))return parseInt(e,8);throw Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function f(e,t){for(;e.length<t;)e=`0${e}`;return e}let p={};p.IPv4=(function(){function e(e){if(e.length!==4)throw Error(`ipaddr: ipv4 octet count should be 4`);let t,n;for(t=0;t<e.length;t++)if(n=e[t],!(0<=n&&n<=255))throw Error(`ipaddr: ipv4 octet should fit in 8 bits`);this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,18,0,0]),15],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]],as112:[[new e([192,175,48,0]),24],[new e([192,31,196,0]),24]],amt:[[new e([192,52,193,0]),24]]},e.prototype.kind=function(){return`ipv4`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv4`)throw Error(`ipaddr: cannot match ipv4 address with non-ipv4 one`);return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},r,i,a;for(r=3;r>=0;--r)if(i=this.octets[r],i in n){if(a=n[i],t&&a!==0)return null;a!==8&&(t=!0),e+=a}else return null;return 32-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return p.IPv6.parse(`::ffff:${this.toString()}`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(`.`)},e})(),p.IPv4.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<4;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv4 CIDR format`,{cause:e})}},p.IPv4.isIPv4=function(e){return this.parser(e)!==null},p.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch{return!1}},p.IPv4.isValidCIDR=function(e){try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv4.isValidFourPartDecimal=function(e){return!!(p.IPv4.isValid(e)&&e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},p.IPv4.isValidCIDRFourPartDecimal=function(e){let t=e.match(/^(.+)\/(\d+)$/);return!p.IPv4.isValidCIDR(e)||!t?!1:p.IPv4.isValidFourPartDecimal(t[1])},p.IPv4.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv4 CIDR format`,{cause:e})}},p.IPv4.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv4 Address`);return new this(t)},p.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){let e=parseInt(t[2]);if(e>=0&&e<=32){let n=[this.parse(t[1]),e];return Object.defineProperty(n,"toString",{value:function(){return this.join(`/`)}}),n}}throw Error(`ipaddr: string is not formatted like an IPv4 CIDR range`)},p.IPv4.parser=function(e){let t,n,i;if(t=e.match(r.fourOctet))return(function(){let e=t.slice(1,6),r=[];for(let t=0;t<e.length;t++)n=e[t],r.push(d(n));return r})();if(t=e.match(r.longValue)){if(i=d(t[1]),i>4294967295||i<0)throw Error(`ipaddr: address outside defined range`);return(function(){let e=[],t=0;for(;t<=24;t+=8)e.push(i>>t&255);return e})().reverse()}return(t=e.match(r.twoOctet))?(function(){let e=t.slice(1,4),n=[];if(i=d(e[1]),i>16777215||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(i>
31>16&255),n.push(i>>8&255),n.push(i&255),n})():(t=e.match(r.threeOctet))?(function(){let e=t.slice(1,5),n=[];if(i=d(e[2]),i>65535||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(d(e[1])),n.push(i>>8&255),n.push(i&255),n})():null},p.IPv4.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>32)throw Error(`ipaddr: invalid IPv4 prefix length`);let t=[0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<4&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.IPv6=(function(){function e(e,t){let n,r;if(e.length===16)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else if(e.length===8)this.parts=e;else throw Error(`ipaddr: ipv6 part count should be 8 or 16`);for(n=0;n<this.parts.length;n++)if(r=this.parts[n],!(0<=r&&r<=65535))throw Error(`ipaddr: ipv6 part should fit in 16 bits`);t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],deprecatedSiteLocal:[new e([65216,0,0,0,0,0,0,0]),10],discard:[new e([256,0,0,0,0,0,0,0]),64],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[[new e([100,65435,0,0,0,0,0,0]),96],[new e([100,65435,1,0,0,0,0,0]),48]],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],benchmarking:[new e([8193,2,0,0,0,0,0,0]),48],amt:[new e([8193,3,0,0,0,0,0,0]),32],as112v6:[[new e([8193,4,274,0,0,0,0,0]),48],[new e([9760,79,32768,0,0,0,0,0]),48]],deprecatedOrchid:[new e([8193,16,0,0,0,0,0,0]),28],orchid2:[new e([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new e([8193,48,0,0,0,0,0,0]),28],segmentRouting:[new e([24320,0,0,0,0,0,0,0]),16],reserved:[[new e([8193,0,0,0,0,0,0,0]),23],[new e([8193,3512,0,0,0,0,0,0]),32],[new e([16383,0,0,0,0,0,0,0]),20]]},e.prototype.isIPv4MappedAddress=function(){return this.range()===`ipv4Mapped`},e.prototype.kind=function(){return`ipv6`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv6`)throw Error(`ipaddr: cannot match ipv6 address with non-ipv6 one`);return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},r,i;for(let a=7;a>=0;--a)if(r=this.parts[a],r in n){if(i=n[r],t&&i!==0)return null;i!==16&&(t=!0),e+=i}else return null;return 128-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e,t=[],n=this.parts;for(let r=0;r<n.length;r++)e=n[r],t.push(e>>8),t.push(e&255);return t},e.prototype.toFixedLengthString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(f(this.parts[t].toString(16),4));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw Error(`ipaddr: trying to convert a generic ipv6 address to ipv4`);let e=this.parts.slice(-2),t=e[0],n=e[1];return new p.IPv4([t>>8,t&255,n>>8,n&255])},e.prototype.toNormalizedString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toRFC5952String=function(){let e=/((^|:)(0(:|$)){2,})/g,t=``;this.zoneId&&(t=`%${this.zoneId}`);let n=this.toNormalizedString(),r=n.slice(0,n.length-t.length),i=0,a=-1,o=-1,s;for(;s=e.exec(r);){let e=(s[0].match(/0/g)||[]).length;e>o&&(o=e,i=s.index,a=s[0].length)}return a<0?r+t:`${r.substring(0,i)}::${r.substring(i+a)}${t}`},e.prototype.toString=function(){return this.toRFC5952String()},e})(),p.IPv6.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<16;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format`,{cause:e})}},p.IPv6.isIPv6=function(e){return this.parser(e)!==null},p.IPv6.isValid=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{let t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch{return!1}},p.IPv6.isValidCIDR=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv6.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<16;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format`,{cause:e})}},p.IPv6.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv6 Address`);return new this(t.parts,t.zoneId)},p.IPv6.parseCIDR=function(e){let t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return r=[this.parse(n[1]),t],Object.defineProperty(r,"toString",{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv6 CIDR range`)},p.IPv6.parser=function(e){let t,n,r,i,a,o;if(r=e.match(c.deprecatedTransitional))return this.parser(`::ffff:${r[1]}`);if(c.native.test(e))return l(e,8);if((r=e.match(c.transitional))&&(o=r[6]||``,t=r[1],r[1].endsWith(`::`)||(t=t.
31slice(0,-1)),t=l(t+o,6),t&&t.parts)){for(a=[parseInt(r[2]),parseInt(r[3]),parseInt(r[4]),parseInt(r[5])],n=0;n<a.length;n++)if(i=a[n],!(0<=i&&i<=255))return null;return t.parts.push(a[0]<<8|a[1]),t.parts.push(a[2]<<8|a[3]),{parts:t.parts,zoneId:t.zoneId}}return null},p.IPv6.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>128)throw Error(`ipaddr: invalid IPv6 prefix length`);let t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<16&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.fromByteArray=function(e){let t=e.length;if(t===4)return new p.IPv4(e);if(t===16)return new p.IPv6(e);throw Error(`ipaddr: the binary input is neither an IPv6 nor IPv4 address`)},p.isValid=function(e){return p.IPv6.isValid(e)||p.IPv4.isValid(e)},p.isValidCIDR=function(e){return p.IPv6.isValidCIDR(e)||p.IPv4.isValidCIDR(e)},p.parse=function(e){if(p.IPv6.isValid(e))return p.IPv6.parse(e);if(p.IPv4.isValid(e))return p.IPv4.parse(e);throw Error(`ipaddr: the address has neither IPv6 nor IPv4 format`)},p.parseCIDR=function(e){try{return p.IPv6.parseCIDR(e)}catch{try{return p.IPv4.parseCIDR(e)}catch(e){throw Error(`ipaddr: the address has neither IPv6 nor IPv4 CIDR format`,{cause:e})}}},p.process=function(e){let t=this.parse(e);return t.kind()===`ipv6`&&t.isIPv4MappedAddress()?t.toIPv4Address():t},p.subnetMatch=function(e,t,n){let r,i,a,o;for(i in n??=`unicast`,t)if(Object.prototype.hasOwnProperty.call(t,i)){for(a=t[i],a[0]&&!(a[0]instanceof Array)&&(a=[a]),r=0;r<a.length;r++)if(o=a[r],e.kind()===o[0].kind()&&e.match.apply(e,o))return i}return n},t!==void 0&&t.exports?t.exports=p:e.ipaddr=p})(e)}))(),1),am=new Map;function om(e,t){let n=`${t}\0${e}`,r=am.get(n);if(r!==void 0)return r;let i=`^`,a=t===`.`?`.+`:`.*`,o=t===`.`?`[^.]+`:`[^/]+`,s=e.split(`**`);for(let e=0;e<s.length;e++){e>0&&(i+=a);let t=s[e].split(`*`);for(let e=0;e<t.length;e++)e>0&&(i+=o),i+=t[e].replace(/[.+?^${}()|[\]\\]/g,`\\$&`)}i+=`$`;let c=new RegExp(i);return am.set(n,c),c}function sm(e,t){return!(e.protocol!==void 0&&e.protocol.replace(/:$/,``)!==t.protocol.replace(/:$/,``)||e.port!==void 0&&e.port!==t.port||!om(e.hostname,`.`).test(t.hostname)||e.search!==void 0&&e.search!==t.search||!om(e.pathname??`**`,`/`).test(t.pathname))}function cm(e,t,n){return e.some(e=>n.hostname===e)||t.some(e=>sm(e,n))}var lm=/^[0-9a-fA-FxX.]+$/;function um(e){if(e.startsWith(`[`)&&e.endsWith(`]`)&&(e=e.slice(1,-1)),!e.includes(`:`)&&!lm.test(e))return!1;try{let t=im.default.parse(e);return t instanceof im.default.IPv6&&t.isIPv4MappedAddress()?t.toIPv4Address().range()!==`unicast`:t.range()!==`unicast`}catch{return!1}}function dm(e){let t=Object.create(null);return e?.forEach((e,n)=>{let r=t[n];if(Array.isArray(r)){t[n]=[...r,e];return}if(r!==void 0){t[n]=[r,e];return}t[n]=e}),t}function fm(e){return typeof e==`string`?e:typeof e==`number`&&!isNaN(e)||typeof e==`boolean`?String(e):``}function pm(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e)){if(Array.isArray(r)){for(let e of r)t.append(n,fm(e));continue}t.set(n,fm(r))}return t}function mm(e,t){let n=e.indexOf(`?`);if(n===-1)return t;let r=e.slice(n+1).split(`#`)[0];if(!r)return t;let i=t.indexOf(`#`),a=i===-1?t:t.slice(0,i),o=i===-1?``:t.slice(i),s=a.indexOf(`?`),c=s===-1?a:a.slice(0,s),l=s===-1?``:a.slice(s+1),u=new URLSearchParams(r),d=new URLSearchParams(l),f=new Set;for(let e of d.keys())f.add(e);for(let e of f)u.delete(e);for(let[e,t]of d)u.append(e,t);let p=u.toString();return`${c}${p?`?${p}`:``}${o}`}var hm=new Set([`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toString`,`valueOf`,`toLocaleString`,`then`,`catch`,`finally`,`status`,`value`,`error`,`displayName`,`_debugInfo`,`toJSON`,`$$typeof`,`__esModule`,`@@iterator`]);function gm(e){return hm.has(e)}function _m(e){return e===`hasOwnProperty`||e===`propertyIsEnumerable`}var vm=e({ClientPageRoot:()=>wm,createClientPageSearchParams:()=>bm});function ym(){return!1}function bm(e){let t={...dm(e)},n=Promise.resolve(t),r=e=>typeof e==`string`&&!gm(e)&&Object.hasOwn(t,e);return new Proxy(n,{get(e,n,i){if(r(n))return t[n];let a=Reflect.get(e,n);return typeof a==`function`?a.bind(_m(n)?i:e):a},getOwnPropertyDescriptor(e,n){return r(n)?{configurable:!0,enumerable:!0,value:t[n],writable:!0}:Reflect.getOwnPropertyDescriptor(e,n)},has(e,t){return r(t)||Reflect.has(e,t)},ownKeys(){return Object.keys(t).filter(e=>!gm(e))}})}var xm=new WeakMap;function Sm(e,t){let n=xm.get(e);if(n)return n;let r=null;if(!t){let e=mp(),t=e?(0,o.use)(e):null;r=(0,o.use)(ao)??(t?t.renderedSearch??t.search:window.location.search)}let i=bm(r===null?null:new URLSearchParams(r));return xm.set(e,i),i}function Cm(e){let t=kp();return(0,o.useMemo)(()=>bm(e?null:t),[e,t])}function wm({Component:e,pageProps:t,emptySearchParams:n}){let r;return r=ym()?Cm(n===!0):Sm(t,n===!0),(0,o.useMemo)(()=>(0,o.createElement)(e,{...t,searchParams:r}),[e,t,r])}var Tm=e({resolveAppPrefetchRscRequest:()=>Em});async function Em({fullHref:e,headers:t,rewrittenPrefetchHref:n}){let[r,...i]=await Promise.all([R(e,t),...n!==null&&n!==e?[R(n,t)]:[]]);return{additionalRscUrls:i,rscUrl:r}}var Dm=e({canAutoPrefetchFullAppRoute:()=>Mm,resolveAutoAppRoutePrefetch:()=>Nm,resolveFullAppRoutePrefetch:()=>Pm}),Om=``,km=xu();function Am(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return t.origin===window.location.origin?`${v(t.pathname,Om)}${t.search}`:null}var jm={cacheForNavigation:!1,dynamicStaleTime:`verbatim`,fallbackTtl:`static`,prefetchShellFirst:!1,shouldPrefetch:!1};
31function Mm(e){return Nm(e).cacheForNavigation}function Nm(e){let t=window.__VINEXT_LINK_PREFETCH_ROUTES__;if(!t)return jm;let n=Am(e);if(n===null)return jm;let r=Cu(n,t,km);if(!r)return jm;let i=r.route,a=new URL(n,`http://vinext.local`).search!==``;i.patternParts.length===1&&i.patternParts[0]?.startsWith(`:`);let o=i.isDynamic&&!1,s=!a&&!o&&!i.canPrefetchLoadingShell&&i.requiresDynamicNavigationRequest!==!0;return{cacheForNavigation:s,dynamicStaleTime:s?`verbatim`:`ignore`,fallbackTtl:`static`,prefetchShellFirst:a||!i.isDynamic,shouldPrefetch:!0}}function Pm(){return{cacheForNavigation:!0,dynamicStaleTime:`full-prefetch`,fallbackTtl:`static`,prefetchShellFirst:!0,shouldPrefetch:!0}}var Fm=Symbol.for(`vinext.routerContext`),Im=globalThis,Lm=Im[Fm]??(Im[Fm]=(0,o.createContext)(null)),Rm=/https?|ftp|gopher|file/;function zm(e){let{auth:t,hostname:n}=e,r=e.protocol||``,i=e.pathname||``,a=e.hash||``,o=e.query||``,s=!1;t=t?`${encodeURIComponent(t).replace(/%3A/i,`:`)}@`:``,e.host?s=t+e.host:n&&(s=t+(n.includes(`:`)?`[${n}]`:n),e.port&&(s+=`:${e.port}`)),o&&typeof o==`object`&&(o=String(pm(o)));let c=e.search||o&&`?${o}`||``;return r&&!r.endsWith(`:`)&&(r+=`:`),e.slashes||(!r||Rm.test(r))&&s!==!1?(s=`//${s||``}`,i&&!i.startsWith(`/`)&&(i=`/${i}`)):s||=``,a&&!a.startsWith(`#`)&&(a=`#${a}`),c&&!c.startsWith(`?`)&&(c=`?${c}`),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace(`#`,`%23`),`${r}${s}${i}${c}${a}`}function Bm(e){return zm(e)}function Vm(e,t){let n=e.match(/^[a-z][a-z0-9+.-]*:\/\//i)?.[0]??``,r=n?e.slice(n.length):e;if(!/(\/\/|\\)/.test(r.split(`?`,1)[0]??``))return e;console.error(`Invalid href '${e}' passed to next/router in page: '${t}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let[i,...a]=r.split(`?`);return n+i.replace(/\\/g,`/`).replace(/\/\/+/g,`/`)+(a[0]?`?${a.join(`?`)}`:``)}function Hm(e,t,n){let r=Vm(e,t.pathname);if(Vu(r)){let e=Uu();if(!e)return r;try{let t=new URL(r,e);if(t.origin!==e||n!==``&&!Ee(t.pathname,n))return r}catch{return r}}try{let e=new URL(r.startsWith(`#`)||r.startsWith(`?`)?t.asPath:t.pathname,`http://n`),n=new URL(r,e);return n.origin===e.origin?n.href.slice(n.origin.length):n.href}catch{return r}}function Um(){return window.__NEXT_DATA__?.page??window.location?.pathname??`/`}function Wm({basePath:e,domainLocales:t,hostname:n}){return Du(v(window.location.pathname,e),window.__VINEXT_LOCALES__)||(Tu(t,n??void 0)?.defaultLocale??window.__VINEXT_LOCALE__??window.__VINEXT_DEFAULT_LOCALE__)}function Gm(e){return e.nodeEnv===`production`&&e.prefetch!==!1&&!e.isDangerous}function Km(e){return e.nodeEnv!==`production`||e.isDangerous?!1:e.routerMode===`pages`||e.prefetch!==!1}function qm(e){let{href:t,basePath:n,currentOrigin:r}=e;if(!Hu(t))return t;if(r===void 0)return null;try{let e=new URL(r),i=t.startsWith(`//`)?new URL(t,e.origin):new URL(t);return i.origin===e.origin?n?Ee(i.pathname,n)?v(i.pathname,n)+i.search+i.hash:null:i.pathname+i.search+i.hash:null}catch{return null}}var $=null,Jm=!1;function Ym(e){$&&$!==e&&$(!1),$=e,Jm=!0}function Xm(e){$===e&&($=null)}function Zm(){if(Jm){Jm=!1;return}$&&=($(!1),null)}var Qm=e({StreamedIconsInsertion:()=>nh,reconcileStreamedIcons:()=>th}),$m=`data-vinext-streamed-icon`;function eh(e,t){let n=e.getAttribute($m),r=`${t}:`;if(!n?.startsWith(r))return null;let i=Number(n.slice(r.length));return Number.isInteger(i)&&i>=0?i:null}function th(e){document.querySelectorAll(`body link[${$m}]`).forEach(e=>document.head.appendChild(e));let t=[...document.querySelectorAll(`head link[${$m}]`)],n=new Map;for(let r of t){let t=eh(r,e);if(t===null){r.remove();continue}let i=n.get(t);i&&i.remove(),n.set(t,r)}for(let[,e]of[...n].sort(([e],[t])=>e-t))document.head.appendChild(e)}function nh({metadataKey:e}){return(0,o.useLayoutEffect)(()=>th(e),[e]),null}export{Nf as $,cn as $n,zs as $t,Q as A,Ri as An,Ic as At,q as B,A as Bn,ac as Bt,nm as C,Ea as Cn,g as Cr,Qc as Ct,dp as D,ma as Dn,s as Dr,Kc as Dt,jd as E,_a as En,fe as Er,tl as Et,_p as F,Si as Fn,cc as Ft,Kf as G,kr as Gn,mc as Gt,jf as H,Nr as Hn,nc as Ht,Pf as I,Ei as In,ic as It,Np as J,xr as Jn,lc as Jt,Mp as K,wr as Kn,fc as Kt,Mf as L,xi as Ln,ec as Lt,Yf as M,Bi as Mn,xc as Mt,If as N,Fi as Nn,Sc as Nt,Zp as O,oa as On,Hc as Ot,gp as P,ji as Pn,Zs as Pt,Pp as Q,mr as Qn,Bs as Qt,mp as R,Wr as Rn,$s as Rt,um as S,Na as Sn,pe as Sr,V as St,K as T,Ma as Tn,de as Tr,H as Tt,bd as U,Mr as Un,sc as Ut,af as V,ri as Vn,pc as Vt,Rf as W,Or as Wn,uc as Wt,Qd as X,fr as Xn,yc as Xt,Xd as Y,ur as Yn,dc as Yt,Vf as Z,pr as Zn,Rs as Zt,Pm as _,Za as _n,Ce as _r,hu as _t,Km as a,cs as an,qt as ar,ad as at,mm as b,$a as b
31n,be as br,Jl as bt,Wm as c,Qo as cn,dt as cr,Ju as ct,Hm as d,P as dn,bt as dr,Yu as dt,I as en,sn as er,bp as et,zm as f,Vo as fn,Ge as fr,Ru as ft,Nm as g,to as gn,Se as gr,ku as gt,Mm as h,so as hn,v as hr,Eu as ht,Ym as i,R as in,Jt as ir,yd as it,qf as j,Li as jn,Tc as jt,wp as k,Hi as kn,Uc as kt,Um as l,Wo as ln,mt as lr,Qu as lt,Lm as m,Bo as mn,Oe as mr,Iu as mt,Xm as n,ts as nn,k as nr,Cp as nt,Gm as o,ws as on,Ht as or,pd as ot,Bm as p,co as pn,De as pr,zu as pt,xp as q,Sr as qn,vc as qt,Zm as r,ks as rn,Sn as rr,Qp as rt,qm as s,Es as sn,vt as sr,Hu as st,Qm as t,rs as tn,hn as tr,Qf as tt,Vm as u,go as un,yt as ur,Gu as ut,Tm as v,eo as vn,we as vr,mu as vt,Id as w,Aa as wn,he as wr,$c as wt,cm as x,qa as xn,_ as xr,al as xt,vm as y,Qa as yn,Te as yr,lu as yt,$f as z,Ur as zn,oc as zt};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.