import{a6 as C,ay as T,a5 as q,u as P,at as j,al as B,ca as N,bG as E,cb as U,az as w,z as R,cc as $,cd as z,b as _,ce as I,cf as k,cg as F,ch as V,aA as D,ci as H,cj as G,_ as M,o as Q,f as W}from"./yffbDggw.js";async function O(t,n=C()){const{path:s,matched:g}=n.resolve(t);if(!g.length||(n._routePreloaded||(n._routePreloaded=new Set),n._routePreloaded.has(s)))return;const e=n._preloadPromises=n._preloadPromises||[];if(e.length>4)return Promise.all(e).then(()=>O(t,n));n._routePreloaded.add(s);const a=g.map(i=>{var r;return(r=i.components)==null?void 0:r.default}).filter(i=>typeof i=="function");for(const i of a){const r=Promise.resolve(i()).catch(()=>{}).finally(()=>e.splice(e.indexOf(r)));e.push(r)}await Promise.all(e)}const J=(...t)=>t.find(n=>n!==void 0);function K(t){const n=t.componentName||"NuxtLink";function s(e,a){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return L(e,t.trailingSlash);const i="path"in e&&e.path!==void 0?e.path:a(e).path;return{...e,name:void 0,path:L(i,t.trailingSlash)}}function g(e){const a=C(),i=D(),r=_(()=>!!e.target&&e.target!=="_self"),v=_(()=>{const d=e.to||e.href||"";return typeof d=="string"&&I(d,{acceptRelative:!0})}),b=R("RouterLink"),p=b&&typeof b!="string"?b.useLink:void 0,m=_(()=>{if(e.external)return!0;const d=e.to||e.href||"";return typeof d=="object"?!1:d===""||v.value}),u=_(()=>{const d=e.to||e.href||"";return m.value?d:s(d,a.resolve)}),f=m.value||p==null?void 0:p({...e,to:u}),y=_(()=>{var d;if(!u.value||v.value)return u.value;if(m.value){const S=typeof u.value=="object"&&"path"in u.value?k(u.value):u.value,x=typeof S=="object"?a.resolve(S).href:S;return s(x,a.resolve)}return typeof u.value=="object"?((d=a.resolve(u.value))==null?void 0:d.href)??null:s(F(i.app.baseURL,u.value),a.resolve)});return{to:u,hasTarget:r,isAbsoluteUrl:v,isExternal:m,href:y,isActive:(f==null?void 0:f.isActive)??_(()=>u.value===a.currentRoute.value.path),isExactActive:(f==null?void 0:f.isExactActive)??_(()=>u.value===a.currentRoute.value.path),route:(f==null?void 0:f.route)??_(()=>a.resolve(u.value)),async navigate(){await V(y.value,{replace:e.replace,external:m.value||r.value})}}}return T({name:n,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}},useLink:g,setup(e,{slots:a}){const i=C(),{to:r,href:v,navigate:b,isExternal:p,hasTarget:m,isAbsoluteUrl:u}=g(e),f=q(!1),y=q(null),d=l=>{var c;y.value=e.custom?(c=l==null?void 0:l.$el)==null?void 0:c.nextElementSibling:l==null?void 0:l.$el};function S(l){var c,o;return!f.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===l:((c=e.prefetchOn)==null?void 0:c[l])??((o=t.prefetchOn)==null?void 0:o[l]))&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!Z()}async function x(l=P()){if(f.value)return;f.value=!0;const c=typeof r.value=="string"?r.value:p.value?k(r.value):i.resolve(r.value).fullPath,o=p.value?new URL(c,window.location.href).href:c;await Promise.all([l.hooks.callHook("link:prefetch",o).catch(()=>{}),!p.value&&!m.value&&O(r.value,i).catch(()=>{})])}if(S("visibility")){const l=P();let c,o=null;j(()=>{const h=X();B(()=>{c=N(()=>{var A;(A=y==null?void 0:y.value)!=null&&A.tagName&&(o=h.observe(y.value,async()=>{o==null||o(),o=null,await x(l)}))})})}),E(()=>{c&&U(c),o==null||o(),o=null})}return()=>{var o;if(!p.value&&!m.value){const h={ref:d,to:r.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(S("interaction")&&(h.onPointerenter=x.bind(null,void 0),h.onFocus=x.bind(null,void 0)),f.value&&(h.class=e.prefetchedClass||t.prefetchedClass),h.rel=e.rel||void 0),w(R("RouterLink"),h,a.default)}const l=e.target||null,c=J(e.noRel?"":e.rel,t.externalRelAttribute,u.value||m.value?"noopener noreferrer":"")||null;return e.custom?a.default?a.default({href:v.value,navigate:b,prefetch:x,get route(){if(!v.value)return;const h=new URL(v.value,window.location.href);return{path:h.pathname,fullPath:h.pathname,get query(){return $(h.search)},hash:h.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:v.value}},rel:c,target:l,isExternal:p.value||m.value,isActive:!1,isExactActive:!1}):null:w("a",{ref:y,href:v.value||null,rel:c,target:l},(o=a.default)==null?void 0:o.call(a))}}})}const ne=K(z);function L(t,n){const s=n==="append"?H:G;return I(t)&&!t.startsWith("http")?t:s(t,!0)}function X(){const t=P();if(t._observer)return t._observer;let n=null;const s=new Map,g=(a,i)=>(n||(n=new IntersectionObserver(r=>{for(const v of r){const b=s.get(v.target);(v.isIntersecting||v.intersectionRatio>0)&&b&&b()}})),s.set(a,i),n.observe(a),()=>{s.delete(a),n.unobserve(a),s.size===0&&(n.disconnect(),n=null)});return t._observer={observe:g}}const Y=/2g/;function Z(){const t=navigator.connection;return!!(t&&(t.saveData||Y.test(t.effectiveType)))}const ee={name:"AisCustomPagination",props:{scrollSectionId:{type:String,default:""}},setup(t){const{$scrollToSmoothly:n}=P();return{scrollToSectionId:()=>{t.scrollSectionId&&n(t.scrollSectionId)}}}};function te(t,n,s,g,e,a){const i=R("ais-pagination");return Q(),W(i,{onPageChange:g.scrollToSectionId},null,8,["onPageChange"])}const re=M(ee,[["render",te]]);export{re as A,ne as _};