import{g as _,h as s,o as a,r as l,i as t,j as b,p as w,k as e,n as n,l as j,b as q,m as u,w as i,q as d}from"./entry.l_riwdqo.js";import{j as f,k as b,a as x,q as o,o as v,l as c,aj as h}from"./swiper-vue.efwgzhlv.js";async function r(t,r=_()){const{path:s,matched:e}=r.resolve(t);if(!e.length||(r._routepreloaded||(r._routepreloaded=new set),r._routepreloaded.has(s)))return;const l=r._preloadpromises=r._preloadpromises||[];if(l.length>4)return promise.all(l).then(()=>r(t,r));r._routepreloaded.add(s);const i=e.map(c=>{var a;return(a=c.components)==null?void 0:a.default}).filter(c=>typeof c=="function");for(const c of i){const a=promise.resolve(c()).catch(()=>{}).finally(()=>l.splice(l.indexof(a)));l.push(a)}await promise.all(l)}const z=(...t)=>t.find(r=>r!==void 0),m="noopener noreferrer";function $(t){const r=t.componentname||"nuxtlink",s=(e,l)=>{if(!e||t.trailingslash!=="append"&&t.trailingslash!=="remove")return e;if(typeof e=="string")return p(e,t.trailingslash);const i="path"in e?e.path:l(e).path;return{...e,name:void 0,path:p(i,t.trailingslash)}};return f({name:r,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},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}},setup(e,{slots:l}){const i=_(),c=j(),a=b(()=>{const n=e.to||e.href||"";return s(n,i.resolve)}),d=b(()=>typeof a.value=="string"&&s(a.value,{acceptrelative:!0})),v=b(()=>e.external||e.target&&e.target!=="_self"?!0:typeof a.value=="object"?!1:a.value===""||d.value),y=x(!1),h=x(null),k=n=>{var f;h.value=e.custom?(f=n==null?void 0:n.$el)==null?void 0:f.nextelementsibling:n==null?void 0:n.$el};if(e.prefetch!==!1&&e.noprefetch!==!0&&e.target!=="_blank"&&!w()){const f=q();let m,o=null;o(()=>{const p=q();a(()=>{m=l(()=>{var g;(g=h==null?void 0:h.value)!=null&&g.tagname&&(o=p.observe(h.value,async()=>{o==null||o(),o=null;const u=typeof a.value=="string"?a.value:i.resolve(a.value).fullpath;await promise.all([f.hooks.callhook("link:prefetch",u).catch(()=>{}),!v.value&&r(a.value,i).catch(()=>{})]),y.value=!0}))})})}),v(()=>{m&&t(m),o==null||o(),o=null})}return()=>{var p,g;if(!v.value){const u={ref:k,to:a.value,activeclass:e.activeclass||t.activeclass,exactactiveclass:e.exactactiveclass||t.exactactiveclass,replace:e.replace,ariacurrentvalue:e.ariacurrentvalue,custom:e.custom};return e.custom||(y.value&&(u.class=e.prefetchedclass||t.prefetchedclass),u.rel=e.rel),c(h("routerlink"),u,l.default)}const n=typeof a.value=="object"?((p=i.resolve(a.value))==null?void 0:p.href)??null:a.value&&!e.external&&!d.value?s(b(c.app.baseurl,a.value),i.resolve):a.value||null,f=e.target||null,m=e.norel?null:z(e.rel,t.externalrelattribute,n?m:"")||null,o=()=>u(n,{replace:e.replace});return e.custom?l.default?l.default({href:n,navigate:o,get route(){if(!n)return;const u=w(n);return{path:u.pathname,fullpath:u.pathname,get query(){return e(u.search)},hash:u.hash,params:{},name:void 0,matched:[],redirectedfrom:void 0,meta:{},href:n}},rel:m,target:f,isexternal:v.value,isactive:!1,isexactactive:!1}):null:c("a",{ref:h,href:n,rel:m,target:f},(g=l.default)==null?void 0:g.call(l))}}})}const j=$(n);function p(t,r){const s=r==="append"?i:d;return s(t)&&!t.startswith("http")?t:s(t,!0)}function q(){const t=q();if(t._observer)return t._observer;let r=null;const s=new map,e=(i,c)=>(r||(r=new intersectionobserver(a=>{for(const d of a){const v=s.get(d.target);(d.isintersecting||d.intersectionratio>0)&&v&&v()}})),s.set(i,c),r.observe(i),()=>{s.delete(i),r.unobserve(i),s.size===0&&(r.disconnect(),r=null)});return t._observer={observe:e}}function w(){const t=navigator.connection;return!!(t&&(t.savedata||/2g/.test(t.effectivetype)))}export{j as _};