1import{d as O,B as L,u as w,D as j,bk as E,bl as N,aC as U,bm as I,bn as P,af as _,bo as D,aM as H,p as F,bp as B,bq as M,br as V,c as o,aD as z,q as y,bs as W,bt as $,bu as T,bv as G,bw as Q,bx as J,by as K}from"./Ck0ep-WL.js";const X=(...t)=>t.find(c=>c!==void 0);function Y(t){const c=t.componentName||"NuxtLink";function v(e){return!W&&typeof e=="string"&&e.startsWith("#")}function S(e,l,d){const a=d??t.trailingSlash;if(!e||a!=="append"&&a!=="remove")return e;if(typeof e=="string")return k(e,a);const i="path"in e&&e.path!==void 0?e.path:l(e).path;return{...e,name:void 0,path:k(i,a)}}function q(e){const l=L(),d=G(),a=y(()=>!!o(e.target)&&o(e.target)!=="_self"),i=y(()=>{const u=o(e.to)||o(e.href)||"";return typeof u=="string"&&T(u,{acceptRelative:!0})}),m=_("RouterLink"),b=m&&typeof m!="string"?m.useLink:void 0,f=y(()=>{if(o(e.external))return!0;const u=o(e.to)||o(e.href)||"";return typeof u=="object"?!1:u===""||i.value}),r=y(()=>{const u=o(e.to)||o(e.href)||"";return f.value?u:S(u,l.resolve,o(e.trailingSlash))}),g=f.value?void 0:b?.({...e,to:r,viewTransition:o(e.viewTransition)}),p=y(()=>{const u=o(e.trailingSlash)??t.trailingSlash;if(!r.value||i.value||v(r.value))return r.value;if(f.value){const C=typeof r.value=="object"&&"path"in r.value?B(r.value):r.value,R=typeof C=="object"?l.resolve(C).href:C;return k(R,u)}return typeof r.value=="object"?l.resolve(r.value)?.href??null:k($(d.app.baseURL,r.value),u)});return{to:r,hasTarget:a,isAbsoluteUrl:i,isExternal:f,href:p,isActive:g?.isActive??y(()=>r.value===l.currentRoute.value.path),isExactActive:g?.isExactActive??y(()=>r.value===l.currentRoute.value.path),route:g?.route??y(()=>l.resolve(r.value)),async navigate(u){await z(p.value,{replace:o(e.replace),external:f.value||a.value})}}}return O({name:c,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:q,setup(e,{slots:l}){const d=L(),{to:a,href:i,navigate:m,isExternal:b,hasTarget:f,isAbsoluteUrl:r}=q(e),g=H(!1),p=F(null),u=s=>{p.value=e.custom?s?.$el?.nextElementSibling:s?.$el};function C(s){return!g.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===s:e.prefetchOn?.[s]??t.prefetchOn?.[s])&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!te()}async function R(s=w()){if(g.value)return;g.value=!0;const h=typeof a.value=="string"?a.value:b.value?B(a.value):d.resolve(a.value).fullPath,n=b.value?new URL(h,window.location.href).href:h;await Promise.all([s.hooks.callHook("link:prefetch",n)?.catch(()=>{}),!b.value&&!f.value&&M(a.value,d).catch(()=>{})])}if(C("visibility")){const s=w();let h,n=null;j(()=>{const x=Z();E(()=>{h=N(()=>{p?.value?.tagName&&(n=x.observe(p.value,async()=>{n?.(),n=null,await R(s)}))})})}),U(()=>{h&&I(h),n?.(),n=null})}return()=>{if(!b.value&&!f.value&&!v(a.value)){const n={ref:u,to:a.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};
1return e.custom||(C("interaction")&&(n.onPointerenter=R.bind(null,void 0),n.onFocus=R.bind(null,void 0)),g.value&&(n.class=e.prefetchedClass||t.prefetchedClass),n.rel=e.rel||void 0),P(_("RouterLink"),n,l.default)}const s=e.target||null,h=X(e.noRel?"":e.rel,t.externalRelAttribute,r.value||f.value?"noopener noreferrer":"")||null;return e.custom?l.default?l.default({href:i.value,navigate:m,prefetch:R,get route(){if(!i.value)return;const n=new URL(i.value,window.location.href);return{path:n.pathname,fullPath:n.pathname,get query(){return D(n.search)},hash:n.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:i.value}},rel:h,target:s,isExternal:b.value||f.value,isActive:!1,isExactActive:!1}):null:P("a",{ref:p,href:i.value||null,rel:h,target:s,onClick:async n=>{if(!(b.value||f.value)){n.preventDefault();try{const x=K(i.value);return await(e.replace?d.replace(x):d.push(x))}finally{if(v(a.value)){const x=a.value.slice(1);let A=x;try{A=decodeURIComponent(x)}catch{}document.getElementById(A)?.focus()}}}}},l.default?.())}}})}const re=Y(V);function k(t,c){const v=c==="append"?Q:J;return T(t)&&!t.startsWith("http")?t:v(t,!0)}function Z(){const t=w();if(t._observer)return t._observer;let c=null;const v=new Map,S=(e,l)=>(c||=new IntersectionObserver(d=>{for(const a of d){const i=v.get(a.target);(a.isIntersecting||a.intersectionRatio>0)&&i&&i()}}),v.set(e,l),c.observe(e),()=>{v.delete(e),c?.unobserve(e),v.size===0&&(c?.disconnect(),c=null)});return t._observer={observe:S}}const ee=/2g/;function te(){const t=navigator.connection;return!!(t&&(t.saveData||ee.test(t.effectiveType)))}export{re as _,Y as d};
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.