1import{em as c,eK as E,af as K,a6 as T,r as H,et as k,dz as w,eL as x,Y as O,A as S,eM as b,eN as I,eO as L,dB as N,a4 as C,eP as B,dw as Y,eQ as j,eR as D}from"./B9e58JgG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="9a95f98a-076c-4e97-99fc-f8b57c321332",e._sentryDebugIdIdentifier="sentry-dbid-9a95f98a-076c-4e97-99fc-f8b57c321332")}catch{}})();const F=/(:\w+)\([^)]+\)/g,M=/(:\w+)[?+*]/g,U=/:\w+/g,V=(e,a)=>a.path.replace(F,"$1").replace(M,"$1").replace(U,n=>{var o;return((o=e.params[n.slice(1)])==null?void 0:o.toString())||""}),h=(e,a)=>{const n=e.route.matched.find(i=>{var r;return((r=i.components)==null?void 0:r.default)===e.Component.type}),o=a??(n==null?void 0:n.meta.key)??(n&&V(e.route,n));return typeof o=="function"?o(e.route):o},$=(e,a)=>({default:()=>e?c(E,e===!0?{}:e,a):a});function z(e){return Array.isArray(e)?e:[e]}const W=K({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:a,slots:n,expose:o}){const i=T(),r=H(),d=k(w,null);let f;o({pageRef:r});const s=k(x,null);let l;const g=i.deferHydration();if(i.isHydrating){const t=i.hooks.hookOnce("app:error",g);O().beforeEach(t)}e.pageKey&&S(()=>e.pageKey,(t,m)=>{t!==m&&i.callHook("page:loading:start")});let y=!1;return()=>c(j,{name:e.name,route:e.route,...a},{default:t=>{const m=q(d,t.route,t.Component),v=d&&d.matched.length===t.route.matched.length;if(!t.Component){if(l&&!v)return l;g();return}if(l&&s&&!s.isCurrent(t.route))return l;if(m&&d&&(!s||s!=null&&s.isCurrent(d)))return v?l:null;const u=h(t,e.pageKey);!i.isHydrating&&!G(d,t.route,t.Component)&&f===u&&(i.callHook("page:loading:end"),y=!0),f=u;const p=!!(e.transition??t.route.meta.pageTransition??b),A=p&&Q([e.transition,t.route.meta.pageTransition,b,{onAfterLeave:()=>{i.callHook("page:transition:finish",t.Component)}}].filter(Boolean)),_=e.keepalive??t.route.meta.keepalive??I;return l=L(p&&A,$(_,c(N,{suspensible:!0,onPending:()=>i.callHook("page:start",t.Component),onResolve:()=>{C(()=>i.callHook("page:finish",t.Component).then(()=>{if(!y)return i.callHook("page:loading:end");y=!1}).finally(g))}},{default:()=>{const R=c(B,{key:u||void 0,vnode:n.default?c(Y,void 0,n.default(t)):t.Component,route:t.route,renderKey:u||void 0,trackRootNodes:p,vnodeRef:r});return _&&(R.type.name=t.Component.type.name||t.Component.type.__name||"RouteProvider"),R}}))).default(),l}})}});function Q(e){const a=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?z(n.onAfterLeave):void 0}));return D(...a)}function q(e,a,n){if(!e)return!1;const o=a.matched.findIndex(i=>{var r;return((r=i.components)==null?void 0:r.default)===(n==null?void 0:n.type)});return!o||o===-1?!1:a.matched.slice(0,o).some((i,r)=>{var d,f,s;return((d=i.components)==null?void 0:d.default)!==((s=(f=e.matched[r])==null?void 0:f.components)==null?void 0:s.default)})||n&&h({route:a,Component:n})!==h({route:e,Component:n})}function G(e,a,n){return e?a.matched.findIndex(i=>{var r;return((r=i.components)==null?void 0:r.default)===(n==null?void 0:n.type)})<a.matched.length-1:!1}export{W as _,z as t};
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.