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