1import{z as Ke,ax as Qe,v as it,X as St,x as De,a8 as xt,a9 as wt,ay as It,ab as Et,f as be,ac as Xe,l as Se,y as Lt,o as te,w as Tt,a as Je,c as se,b as Pe,j as ne,F as Ye,r as Ze,U as At,d as We,ad as et,a1 as tt,g as xe,a2 as Ot,az as ae}from"./ZjLcrLUj.js";import{c as Pt}from"./gTYMY1Gz.js";function Dt(e){return Object.prototype.toString.call(e)==="[object Object]"}function nt(e){return Dt(e)||Array.isArray(e)}function kt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Be(e,n){const s=Object.keys(e),t=Object.keys(n);if(s.length!==t.length)return!1;const c=JSON.stringify(Object.keys(e.breakpoints||{})),r=JSON.stringify(Object.keys(n.breakpoints||{}));return c!==r?!1:s.every(o=>{const a=e[o],i=n[o];return typeof a=="function"?`${a}`==`${i}`:!nt(a)||!nt(i)?a===i:Be(a,i)})}function ot(e){return e.concat().sort((n,s)=>n.name>s.name?1:-1).map(n=>n.options)}function Ft(e,n){if(e.length!==n.length)return!1;const s=ot(e),t=ot(n);return s.every((c,r)=>{const o=t[r];return Be(c,o)})}function qe(e){return typeof e=="number"}function ke(e){return typeof e=="string"}function Ie(e){return typeof e=="boolean"}function rt(e){return Object.prototype.toString.call(e)==="[object Object]"}function B(e){return Math.abs(e)}function Ce(e){return Math.sign(e)}function pe(e,n){return B(e-n)}function Bt(e,n){if(e===0||n===0||B(e)<=B(n))return 0;const s=pe(B(e),B(n));return B(s/e)}function qt(e){return Math.round(e*100)/100}function me(e){return ge(e).map(Number)}function Q(e){return e[ye(e)]}function ye(e){return Math.max(0,e.length-1)}function Me(e,n){return n===ye(e)}function st(e,n=0){return Array.from(Array(e),(s,t)=>n+t)}function ge(e){return Object.keys(e)}function ct(e,n){return[e,n].reduce((s,t)=>(ge(t).forEach(c=>{const r=s[c],o=t[c],a=rt(r)&&rt(o);s[c]=a?ct(r,o):o}),s),{})}function Fe(e,n){return typeof n.MouseEvent<"u"&&e instanceof n.MouseEvent}function Ct(e,n){const s={start:t,center:c,end:r};function t(){return 0}function c(i){return r(i)/2}function r(i){return n-i}function o(i,u){return ke(e)?s[e](i):e(n,i,u)}return{measure:o}}function he(){let e=[];function n(c,r,o,a={passive:!0}){let i;if("addEventListener"in c)c.addEventListener(r,o,a),i=()=>c.removeEventListener(r,o,a);else{const u=c;u.addListener(o),i=()=>u.removeListener(o)}return e.push(i),t}function s(){e=e.filter(c=>c())}const t={add:n,clear:s};return t}function Mt(e,n,s,t){const c=he(),r=1e3/60;let o=null,a=0,i=0;function u(){c.add(e,"visibilitychange",()=>{e.hidden&&d()})}function y(){b(),c.clear()}function l(h){if(!i)return;o||(o=h,s(),s());const f=h-o;for(o=h,a+=f;a>=r;)s(),a-=r;const v=a/r;t(v),i&&(i=n.requestAnimationFrame(l))}function m(){i||(i=n.requestAnimationFrame(l))}function b(){n.cancelAnimationFrame(i),o=null,a=0,i=0}function d(){o=null,a=0}return{init:u,destroy:y,start:m,stop:b,update:s,render:t}}function Nt(e,n){const s=n==="rtl",t=e==="y",c=t?"y":"x",r=t?"x":"y",o=!t&&s?-1:1,a=y(),i=l();function u(d){const{height:p,width:h}=d;return t?p:h}function y(){return t?"top":s?"right":"left"}function l(){return t?"bottom":s?"left":"right"}function m(d){return d*o}return{scroll:c,cross:r,startEdge:a,endEdge:i,measureSize:u,direction:m}}function ie(e=0,n=0){const s=B(e-n);function t(u){return u<e}function c(u){return u>n}function r(u){return t(u)||c(u)}function o(u){return r(u)?t(u)?e:n:u}function a(u){return s?u-s*Math.ceil((u-n)/s):u}return{length:s,max:n,min:e,constrain:o,reachedAny:r,reachedMax:c,reachedMin:t,removeOffset:a}}function at(e,n,s){const{constrain:t}=ie(0,e),c=e+1;let r=o(n);function o(m){return s?B((c+m)%c):t(m)}function a(){return r}function i(m){return r=o(m),l}function u(m){return y().set(a()+m)}function y(){return at(e,a(),s)}const l={get:a,set:i,add:u,clone:y};return l}function Vt(e,n,s,t,c,r,o,a,i,u,y,l,m,b,d,p,h,f,v){const{cross:x,direction:T}=e,P=["INPUT","SELECT","TEXTAREA"],L={passive:!1},w=he(),I=he(),A=ie(50,225).constrain(b.measure(20)),k={mouse:300,touch:400},g={mouse:500,touch:600},E=d?43:25;let O=!1,M=0,N=0,X=!1,K=!1,G=!1,H=!1;function W(S){if(!v)return;function D(j){(Ie(v)||v(S,j))&&le(j)}const q=n;w.add(q,"dragstart",j=>j.preventDefault(),L).add(q,"touchmove",()=>{},L).add(q,"touchend",()=>{}).add(q,"touchstart",D).add(q,"mousedown",D).add(q,"touchcancel",V).add(q,"contextmenu",V).add(q,"click",Y,!0)}function C(){w.clear(),I.clear()}function z(){const S=H?s:n;I.add(S,"touchmove",R,L).add(S,"touchend",V).add(S,"mousemove",R,L).add(S,"mouseup",V)}function $(S){const D=S.nodeName||"";return P.includes(D)}function _(){return(d?g:k)[H?"mouse":"touch"]}
vendor: 12,472 bytes, line 1
1function ue(S,D){const q=l.add(Ce(S)*-1),j=y.byDistance(S,!d).distance;return d||B(S)<A?j:h&&D?j*.5:y.byIndex(q.get(),0).distance}function le(S){const D=Fe(S,t);H=D,G=d&&D&&!S.buttons&&O,O=pe(c.get(),o.get())>=2,!(D&&S.button!==0)&&($(S.target)||(X=!0,r.pointerDown(S),u.useFriction(0).useDuration(0),c.set(o),z(),M=r.readPoint(S),N=r.readPoint(S,x),m.emit("pointerDown")))}function R(S){if(!Fe(S,t)&&S.touches.length>=2)return V(S);const q=r.readPoint(S),j=r.readPoint(S,x),J=pe(q,M),Z=pe(j,N);if(!K&&!H&&(!S.cancelable||(K=J>Z,!K)))return V(S);const oe=r.pointerMove(S);J>p&&(G=!0),u.useFriction(.3).useDuration(.75),a.start(),c.add(T(oe)),S.preventDefault()}function V(S){const q=y.byDistance(0,!1).index!==l.get(),j=r.pointerUp(S)*_(),J=ue(T(j),q),Z=Bt(j,J),oe=E-10*Z,ee=f+Z/50;K=!1,X=!1,I.clear(),u.useDuration(oe).useFriction(ee),i.distance(J,!d),H=!1,m.emit("pointerUp")}function Y(S){G&&(S.stopPropagation(),S.preventDefault(),G=!1)}function U(){return X}return{init:W,destroy:C,pointerDown:U}}function jt(e,n){let t,c;function r(l){return l.timeStamp}function o(l,m){const d=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(Fe(l,n)?l:l.touches[0])[d]}function a(l){return t=l,c=l,o(l)}function i(l){const m=o(l)-o(c),b=r(l)-r(t)>170;return c=l,b&&(t=l),m}function u(l){if(!t||!c)return 0;const m=o(c)-o(t),b=r(l)-r(t),d=r(l)-r(c)>170,p=m/b;return b&&!d&&B(p)>.1?p:0}return{pointerDown:a,pointerMove:i,pointerUp:u,readPoint:o}}function zt(){function e(s){const{offsetTop:t,offsetLeft:c,offsetWidth:r,offsetHeight:o}=s;return{top:t,right:c+r,bottom:t+o,left:c,width:r,height:o}}return{measure:e}}function _t(e){function n(t){return e*(t/100)}return{measure:n}}function Rt(e,n,s,t,c,r,o){const a=[e].concat(t);let i,u,y=[],l=!1;function m(h){return c.measureSize(o.measure(h))}function b(h){if(!r)return;u=m(e),y=t.map(m);function f(v){for(const x of v){if(l)return;const T=x.target===e,P=t.indexOf(x.target),L=T?u:y[P],w=m(T?e:t[P]);if(B(w-L)>=.5){h.reInit(),n.emit("resize");break}}}i=new ResizeObserver(v=>{(Ie(r)||r(h,v))&&f(v)}),s.requestAnimationFrame(()=>{a.forEach(v=>i.observe(v))})}function d(){l=!0,i&&i.disconnect()}return{init:b,destroy:d}}function Gt(e,n,s,t,c,r){let o=0,a=0,i=c,u=r,y=e.get(),l=0;function m(){const L=t.get()-e.get(),w=!i;let I=0;return w?(o=0,s.set(t),e.set(t),I=L):(s.set(e),o+=L/i,o*=u,y+=o,e.add(o),I=y-l),a=Ce(I),l=y,P}function b(){const L=t.get()-n.get();return B(L)<.001}function d(){return i}function p(){return a}function h(){return o}function f(){return x(c)}function v(){return T(r)}function x(L){return i=L,P}function T(L){return u=L,P}const P={direction:p,duration:d,velocity:h,seek:m,settled:b,useBaseFriction:v,useBaseDuration:f,useFriction:T,useDuration:x};return P}function Ht(e,n,s,t,c){const r=c.measure(10),o=c.measure(50),a=ie(.1,.99);let i=!1;function u(){return!(i||!e.reachedAny(s.get())||!e.reachedAny(n.get()))}function y(b){if(!u())return;const d=e.reachedMin(n.get())?"min":"max",p=B(e[d]-n.get()),h=s.get()-n.get(),f=a.constrain(p/o);s.subtract(h*f),!b&&B(h)<r&&(s.set(e.constrain(s.get())),t.useDuration(25).useBaseFriction())}function l(b){i=!b}return{shouldConstrain:u,constrain:y,toggleActive:l}}function $t(e,n,s,t,c){const r=ie(-n+e,0),o=l(),a=y(),i=m();function u(d,p){return pe(d,p)<=1}function y(){const d=o[0],p=Q(o),h=o.lastIndexOf(d),f=o.indexOf(p)+1;return ie(h,f)}function l(){return s.map((d,p)=>{const{min:h,max:f}=r,v=r.constrain(d),x=!p,T=Me(s,p);return x?f:T||u(h,v)?h:u(f,v)?f:v}).map(d=>parseFloat(d.toFixed(3)))}function m(){if(n<=e+c)return[r.max];if(t==="keepSnaps")return o;const{min:d,max:p}=a;return o.slice(d,p)}return{snapsContained:i,scrollContainLimit:a}}function Ut(e,n,s){const t=n[0],c=s?t-e:Q(n);return{limit:ie(c,t)}}function Kt(e,n,s,t){const r=n.min+.1,o=n.max+.1,{reachedMin:a,reachedMax:i}=ie(r,o);function u(m){return m===1?i(s.get()):m===-1?a(s.get()):!1}function y(m){if(!u(m))return;const b=e*(m*-1);t.forEach(d=>d.add(b))}return{loop:y}}function Qt(e){const{max:n,length:s}=e;function t(r){const o=r-n;return s?o/-s:0}return{get:t}}function Xt(e,n,s,t,c){const{startEdge:r,endEdge:o}=e,{groupSlides:a}=c,i=l().map(n.measure),u=m(),y=b();function l(){return a(t).map(p=>Q(p)[o]-p[0][r]).map(B)}function m(){return t.map(p=>s[r]-p[r]).map(p=>-B(p))}function b(){return a(u).map(p=>p[0]).map((p,h)=>p+i[h])}return{snaps:u,snapsAligned:y}}function Jt(e,n,s,t,c,r){const{groupSlides:o}=c,{min:a,max:i}=t,u=y();function y(){const m=o(r),b=!e||n==="keepSnaps";return s.length===1?[r]:b?m:m.slice(a,i).map((d,p,h)=>{const f=!p,v=Me(h,p);if(f){const x=Q(h[0])+1;return st(x)}if(v){const x=ye(r)-Q(h)[0]+1;return st(x,Q(h)[0])}return d})}return{slideRegistry:u}}function Yt(e,n,s,t,c){const{reachedAny:r,removeOffset:o,constrain:a}=t;function i(d){return d.concat().sort((p,h)=>B(p)-B(h))[0]}function u(d){const p=e?o(d):a(d),h=n.map((v,x)=>({diff:y(v-p,0),index:x})).sort((v,x)=>B(v.diff)-B(x.diff)),{index:f}=h[0];return{index:f,distance:p}}function y(d,p){const h=[d,d+s,d-s];if(!e)return d;if(!p)return i(h);const f=h.filter(v=>Ce(v)===p);return f.length?i(f):Q(h)-s}function l(d,p){const h=n[d]-c.get(),f=y(h,p);return{index:d,distance:f}}function m(d,p){const h=c.get()+d,{index:f,distance:v}=u(h),x=!e&&r(h);if(!p||x)return{index:f,distance:d};const T=n[f]-v,P=d+y(T,0);return{index:f,distance:P}}return{byDistance:m,byIndex:l,shortcut:y}}function Zt(e,n,s,t,c,r,o){function a(l){const m=l.distance,b=l.index!==n.get();r.add(m),m&&(t.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(s.set(n.get()),n.set(l.index),o.emit("select"))}function i(l,m){const b=c.byDistance(l,m);a(b)}function u(l,m){const b=n.clone().set(l),d=c.byIndex(b.get(),m);a(d)}return{distance:i,index:u}}function Wt(e,n,s,t,c,r,o,a){const i={passive:!0,capture:!0};let u=0;function y(b){if(!a)return;function d(p){if(new Date().getTime()-u>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const v=s.findIndex(x=>x.includes(p));qe(v)&&(c.useDuration(0),t.index(v,0),o.emit("slideFocus"))}r.add(document,"keydown",l,!1),n.forEach((p,h)=>{r.add(p,"focus",f=>{(Ie(a)||a(b,f))&&d(h)},i)})}function l(b){b.code==="Tab"&&(u=new Date().getTime())}return{init:y}}function de(e){let n=e;function s(){return n}function t(i){n=o(i)}function c(i){n+=o(i)}function r(i){n-=o(i)}function o(i){return qe(i)?i:i.get()}return{get:s,set:t,add:c,subtract:r}}function ut(e,n){const s=e.scroll==="x"?o:a,t=n.style;let c=null,r=!1;function o(m){return`translate3d(${m}px,0px,0px)`}function a(m){return`translate3d(0px,${m}px,0px)`}function i(m){if(r)return;const b=qt(e.direction(m));b!==c&&(t.transform=s(b),c=b)}function u(m){r=!m}function y(){r||(t.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:y,to:i,toggleActive:u}}function en(e,n,s,t,c,r,o,a,i){const y=me(c),l=me(c).reverse(),m=f().concat(v());function b(w,I){return w.reduce((A,k)=>A-c[k],I)}function d(w,I){return w.reduce((A,k)=>b(A,I)>0?A.concat([k]):A,[])}function p(w){return r.map((I,A)=>({start:I-t[A]+.5+w,end:I+n-.5+w}))}function h(w,I,A){const k=p(I);return w.map(g=>{const E=A?0:-s,O=A?s:0,M=A?"end":"start",N=k[g][M];return{index:g,loopPoint:N,slideLocation:de(-1),translate:ut(e,i[g]),target:()=>a.get()>N?E:O}})}function f(){const w=o[0],I=d(l,w);return h(I,s,!1)}function v(){const w=n-o[0]-1,I=d(y,w);return h(I,-s,!0)}function x(){return m.every(({index:w})=>{const I=y.filter(A=>A!==w);return b(I,n)<=.1})}function T(){m.forEach(w=>{const{target:I,translate:A,slideLocation:k}=w,g=I();g!==k.get()&&(A.to(g),k.set(g))})}function P(){m.forEach(w=>w.translate.clear())}return{canLoop:x,clear:P,loop:T,loopPoints:m}}function tn(e,n,s){let t,c=!1;function r(i){if(!s)return;function u(y){for(const l of y)if(l.type==="childList"){i.reInit(),n.emit("slidesChanged");break}}t=new MutationObserver(y=>{c||(Ie(s)||s(i,y))&&u(y)}),t.observe(e,{childList:!0})}function o(){t&&t.disconnect(),c=!0}return{init:r,destroy:o}}function nn(e,n,s,t){const c={};let r=null,o=null,a,i=!1;function u(){a=new IntersectionObserver(d=>{i||(d.forEach(p=>{const h=n.indexOf(p.target);c[h]=p}),r=null,o=null,s.emit("slidesInView"))},{root:e.parentElement,threshold:t}),n.forEach(d=>a.observe(d))}function y(){a&&a.disconnect(),i=!0}function l(d){return ge(c).reduce((p,h)=>{const f=parseInt(h),{isIntersecting:v}=c[f];return(d&&v||!d&&!v)&&p.push(f),p},[])}function m(d=!0){if(d&&r)return r;if(!d&&o)return o;const p=l(d);return d&&(r=p),d||(o=p),p}return{init:u,destroy:y,get:m}}function on(e,n,s,t,c,r){const{measureSize:o,startEdge:a,endEdge:i}=e,u=s[0]&&c,y=d(),l=p(),m=s.map(o),b=h();function d(){if(!u)return 0;const v=s[0];return B(n[a]-v[a])}function p(){if(!u)return 0;const v=r.getComputedStyle(Q(t));return parseFloat(v.getPropertyValue(`margin-${i}`))}function h(){return s.map((v,x,T)=>{const P=!x,L=Me(T,x);return P?m[x]+y:L?m[x]+l:T[x+1][a]-v[a]}).map(B)}return{slideSizes:m,slideSizesWithGaps:b,startGap:y,endGap:l}}function rn(e,n,s,t,c,r,o,a,i){const{startEdge:u,endEdge:y,direction:l}=e,m=qe(s);function b(f,v){return me(f).filter(x=>x%v===0).map(x=>f.slice(x,x+v))}function d(f){return f.length?me(f).reduce((v,x,T)=>{const P=Q(v)||0,L=P===0,w=x===ye(f),I=c[u]-r[P][u],A=c[u]-r[x][y],k=!t&&L?l(o):0,g=!t&&w?l(a):0,E=B(A-g-(I+k));return T&&E>n+i&&v.push(x),w&&v.push(f.length),v},[]).map((v,x,T)=>{const P=Math.max(T[x-1]||0);return f.slice(P,v)}):[]}function p(f){return m?b(f,s):d(f)}return{groupSlides:p}}function sn(e,n,s,t,c,r,o){const{align:a,axis:i,direction:u,startIndex:y,loop:l,duration:m,dragFree:b,dragThreshold:d,inViewThreshold:p,slidesToScroll:h,skipSnaps:f,containScroll:v,watchResize:x,watchSlides:T,watchDrag:P,watchFocus:L}=r,w=2,I=zt(),A=I.measure(n),k=s.map(I.measure),g=Nt(i,u),E=g.measureSize(A),O=_t(E),M=Ct(a,E),N=!l&&!!v,X=l||!!v,{slideSizes:K,slideSizesWithGaps:G,startGap:H,endGap:W}=on(g,A,k,s,X,c),C=rn(g,E,h,l,A,k,H,W,w),{snaps:z,snapsAligned:$}=Xt(g,M,A,k,C),_=-Q(z)+Q(G),{snapsContained:ue,scrollContainLimit:le}=$t(E,_,$,v,w),R=N?ue:$,{limit:V}=Ut(_,R,l),Y=at(ye(R),y,l),U=Y.clone(),F=me(s),S=({dragHandler:ce,scrollBody:Ae,scrollBounds:Oe,options:{loop:ve}})=>{ve||Oe.constrain(ce.pointerDown()),Ae.seek()},D=({scrollBody:ce,translate:Ae,location:Oe,offsetLocation:ve,previousLocation:dt,scrollLooper:pt,slideLooper:mt,dragHandler:gt,animation:ht,eventHandler:_e,scrollBounds:yt,options:{loop:Re}},Ge)=>{const He=ce.settled(),vt=!yt.shouldConstrain(),$e=Re?He:He&&vt,Ue=$e&&!gt.pointerDown();Ue&&ht.stop();const bt=Oe.get()*Ge+dt.get()*(1-Ge);ve.set(bt),Re&&(pt.loop(ce.direction()),mt.loop()),Ae.to(ve.get()),Ue&&_e.emit("settle"),$e||_e.emit("scroll")},q=Mt(t,c,()=>S(Te),ce=>D(Te,ce)),j=.68,J=R[Y.get()],Z=de(J),oe=de(J),ee=de(J),re=de(J),fe=Gt(Z,ee,oe,re,m,j),Ee=Yt(l,R,_,V,re),Le=Zt(q,Y,U,fe,Ee,re,o),Ve=Qt(V),je=he(),lt=nn(n,s,o,p),{slideRegistry:ze}=Jt(N,v,R,le,C,F),ft=Wt(e,s,ze,Le,fe,je,o,L),Te={ownerDocument:t,ownerWindow:c,eventHandler:o,containerRect:A,slideRects:k,animation:q,axis:g,dragHandler:Vt(g,e,t,c,re,jt(g,c),Z,q,Le,fe,Ee,Y,o,O,b,d,f,j,P),eventStore:je,percentOfView:O,index:Y,indexPrevious:U,limit:V,location:Z,offsetLocation:ee,previousLocation:oe,options:r,resizeHandler:Rt(n,o,c,s,g,x,I),scrollBody:fe,scrollBounds:Ht(V,ee,re,fe,O),scrollLooper:Kt(_,V,ee,[Z,ee,oe,re]),scrollProgress:Ve,scrollSnapList:R.map(Ve.get),scrollSnaps:R,scrollTarget:Ee,scrollTo:Le,slideLooper:en(g,E,_,K,G,z,R,ee,s),slideFocus:ft,slidesHandler:tn(n,o,T),slidesInView:lt,slideIndexes:F,slideRegistry:ze,slidesToScroll:C,target:re,translate:ut(g,n)};return Te}function cn(){let e={},n;function s(u){n=u}function t(u){return e[u]||[]}function c(u){return t(u).forEach(y=>y(n,u)),i}function r(u,y){return e[u]=t(u).concat([y]),i}function o(u,y){return e[u]=t(u).filter(l=>l!==y),i}function a(){e={}}const i={init:s,emit:c,off:o,on:r,clear:a};return i}const an={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function un(e){function n(r,o){return ct(r,o||{})}function s(r){const o=r.breakpoints||{},a=ge(o).filter(i=>e.matchMedia(i).matches).map(i=>o[i]).reduce((i,u)=>n(i,u),{});return n(r,a)}function t(r){return r.map(o=>ge(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:n,optionsAtMedia:s,optionsMediaQueries:t}}function ln(e){let n=[];function s(r,o){return n=o.filter(({options:a})=>
1e.optionsAtMedia(a).active!==!1),n.forEach(a=>a.init(r,e)),o.reduce((a,i)=>Object.assign(a,{[i.name]:i}),{})}function t(){n=n.filter(r=>r.destroy())}return{init:s,destroy:t}}function we(e,n,s){const t=e.ownerDocument,c=t.defaultView,r=un(c),o=ln(r),a=he(),i=cn(),{mergeOptions:u,optionsAtMedia:y,optionsMediaQueries:l}=r,{on:m,off:b,emit:d}=i,p=g;let h=!1,f,v=u(an,we.globalOptions),x=u(v),T=[],P,L,w;function I(){const{container:F,slides:S}=x;L=(ke(F)?e.querySelector(F):F)||e.children[0];const q=ke(S)?L.querySelectorAll(S):S;w=[].slice.call(q||L.children)}function A(F){const S=sn(e,L,w,t,c,F,i);if(F.loop&&!S.slideLooper.canLoop()){const D=Object.assign({},F,{loop:!1});return A(D)}return S}function k(F,S){h||(v=u(v,F),x=y(v),T=S||T,I(),f=A(x),l([v,...T.map(({options:D})=>D)]).forEach(D=>a.add(D,"change",g)),x.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(U),f.eventHandler.init(U),f.resizeHandler.init(U),f.slidesHandler.init(U),f.options.loop&&f.slideLooper.loop(),L.offsetParent&&w.length&&f.dragHandler.init(U),P=o.init(U,T)))}function g(F,S){const D=C();E(),k(u({startIndex:D},F),S),i.emit("reInit")}function E(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),o.destroy(),a.clear()}function O(){h||(h=!0,a.clear(),E(),i.emit("destroy"),i.clear())}function M(F,S,D){!x.active||h||(f.scrollBody.useBaseFriction().useDuration(S===!0?0:x.duration),f.scrollTo.index(F,D||0))}function N(F){const S=f.index.add(1).get();M(S,F,-1)}function X(F){const S=f.index.add(-1).get();M(S,F,1)}function K(){return f.index.add(1).get()!==C()}function G(){return f.index.add(-1).get()!==C()}function H(){return f.scrollSnapList}function W(){return f.scrollProgress.get(f.offsetLocation.get())}function C(){return f.index.get()}function z(){return f.indexPrevious.get()}function $(){return f.slidesInView.get()}function _(){return f.slidesInView.get(!1)}function ue(){return P}function le(){return f}function R(){return e}function V(){return L}function Y(){return w}const U={canScrollNext:K,canScrollPrev:G,containerNode:V,internalEngine:le,destroy:O,off:b,on:m,emit:d,plugins:ue,previousScrollSnap:z,reInit:p,rootNode:R,scrollNext:N,scrollPrev:X,scrollProgress:W,scrollSnapList:H,scrollTo:M,selectedScrollSnap:C,slideNodes:Y,slidesInView:$,slidesNotInView:_};return k(n,s),setTimeout(()=>i.emit("init"),0),U}we.globalOptions=void 0;function Ne(e={},n=[]){const s=Ke(e),t=Ke(n);let c=s?e.value:e,r=t?n.value:n;const o=Qe(),a=Qe();function i(){a.value&&a.value.reInit(c,r)}return it(()=>{!kt()||!o.value||(we.globalOptions=Ne.globalOptions,a.value=we(o.value,c,r))}),St(()=>{a.value&&a.value.destroy()}),s&&De(e,u=>{Be(c,u)||(c=u,i())}),t&&De(n,u=>{Ft(r,u)||(r=u,i())}),[o,a]}Ne.globalOptions=void 0;const fn={slots:{root:"relative focus:outline-none",viewport:"overflow-hidden",container:"flex items-start",item:"min-w-0 shrink-0 basis-full",controls:"",arrows:"",prev:"absolute rounded-full",next:"absolute rounded-full",dots:"absolute inset-x-0 -bottom-7 flex flex-wrap items-center justify-center gap-3",dot:["cursor-pointer size-3 bg-accented rounded-full","transition"]},variants:{orientation:{vertical:{container:"flex-col -mt-4",item:"pt-4",prev:"top-4 sm:-top-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90",next:"bottom-4 sm:-bottom-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90"},horizontal:{container:"flex-row -ms-4",item:"ps-4",prev:"start-4 sm:-start-12 top-1/2 -translate-y-1/2",next:"end-4 sm:-end-12 top-1/2 -translate-y-1/2"}},active:{true:{dot:"bg-inverted"}}}},dn=["aria-label","onClick"],gn={__name:"Carousel",props:{as:{type:null,required:!1},prev:{type:Object,required:!1},prevIcon:{type:String,required:!1},next:{type:Object,required:!1},nextIcon:{type:String,required:!1},arrows:{type:Boolean,required:!1,default:!1},dots:{type:Boolean,required:!1,default:!1},orientation:{type:null,required:!1,default:"horizontal"},items:{type:Array,required:!1},autoplay:{type:[Boolean,Object],required:!1,default:!1},autoScroll:{type:[Boolean,Object],required:!1,default:!1},autoHeight:{type:[Boolean,Object],required:!1,default:!1},classNames:{type:[Boolean,Object],required:!1,default:!1},fade:{type:[Boolean,Object],required:!1,default:!1},wheelGestures:{type:Boolean,required:!1,skipCheck:!0,default:!1},class:{type:null,required:!1},ui:{type:null,required:!1},align:{type:[String,Function],required:!1,default:"center"},containScroll:{type:[Boolean,String],required:!1,default:"trimSnaps"},slidesToScroll:{type:[String,Number],required:!1,default:1},dragFree:{type:Boolean,required:!1,default:!1},dragThreshold:{type:Number,required:!1,default:10},inViewThreshold:{type:null,required:!1,default:0},loop:{type:Boolean,required:!1,default:!1},skipSnaps:{type:Boolean,required:!1,default:!1},duration:{type:Number,required:!1,default:25},startIndex:{type:Number,required:!1,default:0},watchDrag:{type:[Boolean,Function],required:!1,default:!0},watchResize:{type:[Boolean,Function],required:!1,default:!0},watchSlides:{type:[Boolean,Function],required:!1,default:!0},watchFocus:{type:[Boolean,Function],required:!1,default:!0},active:{type:Boolean,required:!1,default:!0},breakpoints:{type:Object,required:!1,default:()=>({})}},emits:["select"],setup(e,{expose:n,emit:s}){const t=e,c=s,{dir:r,t:o}=xt(),a=wt(),i=It(Et(t,"active","align","breakpoints","containScroll","dragFree","dragThreshold","duration","inViewThreshold","loop","skipSnaps","slidesToScroll","startIndex","watchDrag","watchResize","watchSlides","watchFocus")),u=be(()=>t.prevIcon||(r.value==="rtl"?a.ui.icons.arrowRight:a.ui.icons.arrowLeft)),y=be(()=>t.nextIcon||(r.value==="rtl"?a.ui.icons.arrowLeft:a.ui.icons.arrowRight)),l=be(()=>{var g;return Xe({extend:Xe(fn),...((g=a.ui)==null?void 0:g.carousel)||{}})({orientation:t.orientation})}),m=be(()=>({...t.fade?{align:"center",containScroll:!1}:{},...i.value,axis:t.orientation==="horizontal"?"x":"y",direction:r.value==="rtl"?"rtl":"ltr"})),b=Pt(async()=>{const g=[];
1if(t.autoplay){const E=await ae(()=>import("./Dtrtw0zj.js"),[],import.meta.url).then(O=>O.default);g.push(E(typeof t.autoplay=="boolean"?{}:t.autoplay))}if(t.autoScroll){const E=await ae(()=>import("./LVG_eY9u.js"),[],import.meta.url).then(O=>O.default);g.push(E(typeof t.autoScroll=="boolean"?{}:t.autoScroll))}if(t.autoHeight){const E=await ae(()=>import("./Ddyvc1_j.js"),[],import.meta.url).then(O=>O.default);g.push(E(typeof t.autoHeight=="boolean"?{}:t.autoHeight))}if(t.classNames){const E=await ae(()=>import("./mhJ-osCf.js"),[],import.meta.url).then(O=>O.default);g.push(E(typeof t.classNames=="boolean"?{}:t.classNames))}if(t.fade){const E=await ae(()=>import("./wrqBHFeW.js"),[],import.meta.url).then(O=>O.default);g.push(E(typeof t.fade=="boolean"?{}:t.fade))}if(t.wheelGestures){const{WheelGesturesPlugin:E}=await ae(async()=>{const{WheelGesturesPlugin:O}=await import("./IaU1rxhl.js");return{WheelGesturesPlugin:O}},[],import.meta.url);g.push(E(typeof t.wheelGestures=="boolean"?{}:t.wheelGestures))}return g}),[d,p]=Ne(m.value,b.value);De([m,b],()=>{var g;(g=p.value)==null||g.reInit(m.value,b.value)});function h(){var g;(g=p.value)==null||g.scrollPrev()}function f(){var g;(g=p.value)==null||g.scrollNext()}function v(g){var E;(E=p.value)==null||E.scrollTo(g)}function x(g){const E=t.orientation==="vertical"?"ArrowUp":"ArrowLeft",O=t.orientation==="vertical"?"ArrowDown":"ArrowRight";if(g.key===E){g.preventDefault(),h();return}g.key===O&&(g.preventDefault(),f())}const T=Se(!1),P=Se(!1),L=Se(0),w=Se([]);function I(g){w.value=(g==null?void 0:g.scrollSnapList())||[]}function A(g){T.value=(g==null?void 0:g.canScrollNext())||!1,P.value=(g==null?void 0:g.canScrollPrev())||!1,L.value=(g==null?void 0:g.selectedScrollSnap())||0,c("select",L.value)}function k(g){return typeof g=="object"&&g!==null}return it(()=>{var g,E,O,M,N;p.value&&((g=p.value)==null||g.on("init",I),(E=p.value)==null||E.on("init",A),(O=p.value)==null||O.on("reInit",I),(M=p.value)==null||M.on("reInit",A),(N=p.value)==null||N.on("select",A))}),n({emblaRef:d,emblaApi:p}),(g,E)=>{var O;return te(),Lt(xe(Ot),{as:e.as,role:"region","aria-roledescription":"carousel",tabindex:"0",class:ne(l.value.root({class:[(O=t.ui)==null?void 0:O.root,t.class]})),onKeydown:x},{default:Tt(()=>{var M,N,X,K,G,H,W;return[Je("div",{ref_key:"emblaRef",ref:d,class:ne(l.value.viewport({class:(M=t.ui)==null?void 0:M.viewport}))},[Je("div",{class:ne(l.value.container({class:(N=t.ui)==null?void 0:N.container}))},[(te(!0),se(Ye,null,Ze(e.items,(C,z)=>{var $,_;return te(),se("div",{key:z,role:"group","aria-roledescription":"slide",class:ne(l.value.item({class:[($=t.ui)==null?void 0:$.item,k(C)&&((_=C.ui)==null?void 0:_.item),k(C)&&C.class]}))},[At(g.$slots,"default",{item:C,index:z})],2)}),128))],2)],2),e.arrows||e.dots?(te(),se("div",{key:0,class:ne(l.value.controls({class:(X=t.ui)==null?void 0:X.controls}))},[e.arrows?(te(),se("div",{key:0,class:ne(l.value.arrows({class:(K=t.ui)==null?void 0:K.arrows}))},[We(et,tt({disabled:!P.value,icon:u.value,size:"md",color:"neutral",variant:"outline","aria-label":xe(o)("carousel.prev")},typeof e.prev=="object"?e.prev:void 0,{class:l.value.prev({class:(G=t.ui)==null?void 0:G.prev}),onClick:h}),null,16,["disabled","icon","aria-label","class"]),We(et,tt({disabled:!T.value,icon:y.value,size:"md",color:"neutral",variant:"outline","aria-label":xe(o)("carousel.next")},typeof e.next=="object"?e.next:void 0,{class:l.value.next({class:(H=t.ui)==null?void 0:H.next}),onClick:f}),null,16,["disabled","icon","aria-label","class"])],2)):Pe("",!0),e.dots?(te(),se("div",{key:1,class:ne(l.value.dots({class:(W=t.ui)==null?void 0:W.dots}))},[(te(!0),se(Ye,null,Ze(w.value,(C,z)=>{var $;return te(),se("button",{key:z,"aria-label":xe(o)("carousel.goto",{slide:z+1}),class:ne(l.value.dot({class:($=t.ui)==null?void 0:$.dot,active:L.value===z})),onClick:_=>v(z)},null,10,dn)}),128))],2)):Pe("",!0)],2)):Pe("",!0)]}),_:3},8,["as","class"])}}};export{gn 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.