1import{a as e,d as t,i as n}from"./DtNwKY_Z.js";import{B as r,On as i,St as a,ct as o,g as s,it as c,k as l,vn as u,xn as d}from"./zHuQ_T2Y.js";import{O as f,S as p,_ as m,b as h,d as g,f as _,j as v,m as y,u as b,w as x}from"./KyB959fD.js";import{l as S,n as C,r as w,s as T,t as E}from"./AAHcp9sA.js";var D={scrollBehavior(e,t,r){let i=n(),a=y(),o=a.options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===t.path.replace(/\/$/,``)?t.hash&&!e.hash?r??{left:0,top:0}:e.hash?{el:e.hash,top:O(e.hash),behavior:o}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===S?k(e,t,r,o):new Promise(n=>{let s=()=>{requestAnimationFrame(()=>{if(a.currentRoute.value.fullPath!==e.fullPath){n(!1);return}n(k(e,t,r,o))})};i.hooks.hookOnce(`page:loading:end`,()=>{let e=i[`~transitionPromise`];e?e.then(s):s()})})}};function O(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function k(e,t,n,r){return n||(e.hash?{el:e.hash,top:O(e.hash),behavior:T(e,t)?r:`instant`}:{left:0,top:0})}var A={hashMode:!1,scrollBehaviorType:`auto`,...D};function j(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function M(e,t=y()){let{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;let i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>M(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n),1));i.push(n)}await Promise.all(i)}var N=(...e)=>e.find(e=>e!==void 0);function P(e){let t=e.replace(/[\u0000-\u001F\s]+/g,``);for(;t.toLowerCase().startsWith(`view-source:`);)t=t.slice(12);let n=t.indexOf(`:`);return n>0&&h(t.slice(0,n+1))?null:e}function F(t){let f=t.componentName||`NuxtLink`;function h(e){return typeof e==`string`&&e.startsWith(`#`)}function v(e,n,r){let i=r??t.trailingSlash;if(!e||i!==`append`&&i!==`remove`)return e;if(typeof e==`string`)return L(e,i);let a=`path`in e&&e.path!==void 0?e.path:n(e).path;return{...e,name:void 0,path:L(a,i)}}function S(n){let r=y(),o=e(),c=s(()=>!!i(n.target)&&i(n.target)!==`_self`),l=s(()=>{let e=i(n.to)||i(n.href)||``;return typeof e==`string`&&m(e,{acceptRelative:!0})}),u=a(`RouterLink`),d=u&&typeof u!=`string`?u.useLink:void 0,f=s(()=>{if(i(n.external))return!0;let e=i(n.to)||i(n.href)||``;return typeof e==`object`?!1:e===``||l.value}),b=s(()=>{let e=i(n.to)||i(n.href)||``;return f.value?e:v(e,r.resolve,i(n.trailingSlash))}),x=f.value?void 0:d?.({...n,to:b,viewTransition:i(n.viewTransition)}),S=s(()=>{let e=i(n.trailingSlash)??t.trailingSlash;if(!b.value||l.value||h(b.value)){let e=b.value;return typeof e==`string`?P(e):e}if(f.value){let t=typeof b.value==`object`&&`path`in b.value?_(b.value):b.value,n=typeof t==`object`?r.resolve(t).href:t,i=typeof n==`string`?P(n):n;return i===null?null:L(i,e)}return typeof b.value==`object`?r.resolve(b.value)?.href??null:L(p(o.app.baseURL,b.value),e)});return{to:b,hasTarget:c,isAbsoluteUrl:l,isExternal:f,href:S,isActive:x?.isActive??s(()=>b.value===r.currentRoute.value.path),isExactActive:x?.isExactActive??s(()=>b.value===r.currentRoute.value.path),route:x?.route??s(()=>r.resolve(b.value)),async navigate(e){S.value!==null&&await g(S.value,{replace:i(n.replace),external:f.value||c.value})}}}return l({name:f,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:S,setup(e,{slots:i}){let s=y(),{to:l,href:f,navigate:p,isExternal:m,hasTarget:g,isAbsoluteUrl:v}=S(e),T=d(!1),D=u(null),O=t=>{D.value=e.custom?t?.$el?.nextElementSibling:t?.$el};function k(n){return!!(!T.value&&(typeof e.prefetchOn==`string`?e.prefetchOn===n:e.prefetchOn?.[n]??t.prefetchOn?.[n])&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!==`_blank`&&!B())}
1async function A(e=n()){if(T.value||f.value===null)return;T.value=!0;let t=typeof l.value==`string`?l.value:m.value?_(l.value):s.resolve(l.value).fullPath,r=m.value?new URL(t,window.location.href).href:t;await Promise.all([e.hooks.callHook(`link:prefetch`,r)?.catch(()=>{}),!m.value&&!g.value&&M(l.value,s).catch(()=>{})])}if(!e.custom&&k(`visibility`)){let e=n(),t,r=null;o(()=>{let n=R();E(()=>{t=w(()=>{D?.value?.tagName&&(r=n.observe(D.value,async()=>{r?.(),r=null,await A(e)}))})})}),c(()=>{t&&C(t),r?.(),r=null})}return()=>{let n=e.target||null,o=N(e.noRel?``:e.rel,t.externalRelAttribute,v.value||g.value?`noopener noreferrer`:``)||null,c=e=>({href:f.value,navigate:p,get route(){if(!f.value)return;let e=new URL(f.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return x(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f.value}},rel:o,target:n,isExternal:m.value||g.value,isActive:!1,isExactActive:!1,...e,prefetch:A,prefetched:T.value,shouldPrefetch:k});if(!m.value&&!g.value&&!h(l.value)){let n={ref:O,to:l.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};
1return e.custom||(k(`interaction`)&&(n.onPointerenter=A.bind(null,void 0),n.onFocus=A.bind(null,void 0)),T.value&&(n.class=e.prefetchedClass||t.prefetchedClass),n.rel=e.rel||void 0),r(a(`RouterLink`),n,e.custom&&i.default?{default:e=>i.default(c(e))}:i.default)}return e.custom?i.default?i.default(c()):null:r(`a`,{ref:D,href:f.value||null,rel:o,target:n,onClick:async t=>{if(!(m.value||g.value)){t.preventDefault();try{let t=b(f.value??``);return await(e.replace?s.replace(t):s.push(t))}finally{if(h(l.value)){let e=l.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},i.default?.())}}})}var I=F(t);function L(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?f:v;return m(e)&&!e.startsWith(`http`)?e:n(e,!0)}function R(){let e=n();if(e._observer)return e._observer;let t=null,r=new Map;return e._observer={observe:(e,n)=>(t||=new IntersectionObserver(e=>{for(let t of e){let e=r.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),r.set(e,n),t.observe(e),()=>{r.delete(e),t?.unobserve(e),r.size===0&&(t?.disconnect(),t=null)})}}var z=/2g/;function B(){let e=navigator.connection;return!!(e&&(e.saveData||z.test(e.effectiveType)))}export{M as a,j as i,B as n,A as o,R as r,I 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.