vendor: 4,884 bytes, line 1
1import{r as O,j as g,u as it,L as ct}from"./index-DmdyVq_W.js";import{S as at,a as lt}from"./site-footer-DkQOMY1Q.js";function ut(e){return Object.prototype.toString.call(e)==="[object Object]"}function $e(e){return ut(e)||Array.isArray(e)}function ft(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ee(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const c=JSON.stringify(Object.keys(e.breakpoints||{})),o=JSON.stringify(Object.keys(t.breakpoints||{}));return c!==o?!1:n.every(r=>{const a=e[r],i=t[r];return typeof a=="function"?`${a}`==`${i}`:!$e(a)||!$e(i)?a===i:Ee(a,i)})}function Re(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function dt(e,t){if(e.length!==t.length)return!1;const n=Re(e),s=Re(t);return n.every((c,o)=>{const r=s[o];return Ee(c,r)})}function Le(e){return typeof e=="number"}function ke(e){return typeof e=="string"}function be(e){return typeof e=="boolean"}function _e(e){return Object.prototype.toString.call(e)==="[object Object]"}function C(e){return Math.abs(e)}function Ie(e){return Math.sign(e)}function fe(e,t){return C(e-t)}function mt(e,t){if(e===0||t===0||C(e)<=C(t))return 0;const n=fe(C(e),C(t));return C(n/e)}function pt(e){return Math.round(e*100)/100}function de(e){return me(e).map(Number)}function $(e){return e[ge(e)]}function ge(e){return Math.max(0,e.length-1)}function Te(e,t){return t===ge(e)}function Ge(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function me(e){return Object.keys(e)}function qe(e,t){return[e,t].reduce((n,s)=>(me(s).forEach(c=>{const o=n[c],r=s[c],a=_e(o)&&_e(r);n[c]=a?qe(o,r):r}),n),{})}function we(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function gt(e,t){const n={start:s,center:c,end:o};function s(){return 0}function c(i){return o(i)/2}function o(i){return t-i}function r(i,l){return ke(e)?n[e](i):e(t,i,l)}return{measure:r}}function pe(){let e=[];function t(c,o,r,a={passive:!0}){let i;if("addEventListener"in c)c.addEventListener(o,r,a),i=()=>c.removeEventListener(o,r,a);else{const l=c;l.addListener(r),i=()=>l.removeListener(r)}return e.push(i),s}function n(){e=e.filter(c=>c())}const s={add:t,clear:n};return s}function xt(e,t,n,s){const c=pe(),o=1e3/60;let r=null,a=0,i=0;function l(){c.add(e,"visibilitychange",()=>{e.hidden&&m()})}function x(){b(),c.clear()}function d(h){if(!i)return;r||(r=h,n(),n());const u=h-r;for(r=h,a+=u;a>=o;)n(),a-=o;const y=a/o;s(y),i&&(i=t.requestAnimationFrame(d))}function f(){i||(i=t.requestAnimationFrame(d))}function b(){t.cancelAnimationFrame(i),r=null,a=0,i=0}function m(){r=null,a=0}return{init:l,destroy:x,start:f,stop:b,update:n,render:s}}function ht(e,t){const n=t==="rtl",s=e==="y",c=s?"y":"x",o=s?"x":"y",r=!s&&n?-1:1,a=x(),i=d();function l(m){const{height:p,width:h}=m;return s?p:h}function x(){return s?"top":n?"right":"left"}function d(){return s?"bottom":n?"left":"right"}function f(m){return m*r}return{scroll:c,cross:o,startEdge:a,endEdge:i,measureSize:l,direction:f}}function ne(e=0,t=0){const n=C(e-t);function s(l){return l<e}function c(l){return l>t}function o(l){return s(l)||c(l)}function r(l){return o(l)?s(l)?e:t:l}function a(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:r,reachedAny:o,reachedMax:c,reachedMin:s,removeOffset:a}}function Ue(e,t,n){const{constrain:s}=ne(0,e),c=e+1;let o=r(t);function r(f){return n?C((c+f)%c):s(f)}function a(){return o}function i(f){return o=r(f),d}function l(f){return x().set(a()+f)}function x(){return Ue(e,a(),n)}const d={get:a,set:i,add:l,clone:x};return d}function bt(e,t,n,s,c,o,r,a,i,l,x,d,f,b,m,p,h,u,y){const{cross:S,direction:k}=e,T=["INPUT","SELECT","TEXTAREA"],w={passive:!1},j=pe(),N=pe(),E=ne(50,225).constrain(b.measure(20)),D={mouse:300,touch:400},L={mouse:500,touch:600},z=m?43:25;let R=!1,_=0,G=0,W=!1,Z=!1,U=!1,K=!1;function ie(v){if(!y)return;function I(F){(be(y)||y(v,F))&&ae(F)}const M=t;j.add(M,"dragstart",F=>F.preventDefault(),w).add(M,"touchmove",()=>{},w).add(M,"touchend",()=>{}).add(M,"touchstart",I).add(M,"mousedown",I).add(M,"touchcancel",P).add(M,"contextmenu",P).add(M,"click",J,!0)}function H(){j.clear(),N.clear()}function se(){const v=K?n:t;N.add(v,"touchmove",V,w).add(v,"touchend",P).add(v,"mousemove",V,w).add(v,"mouseup",P)}function re(v){const I=v.nodeName||"";return T.includes(I)}function Q(){return(m?L:D)[K?"mouse":"touch"]}function ce(v,I){const M=d.add(Ie(v)*-1),F=x.byDistance(v,!m).distance;return m||C(v)<E?F:h&&I?F*.5:x.byIndex(M.get(),0).distance}function ae(v){const I=we(v,s);K=I,U=m&&I&&!v.buttons&&R,R=fe(c.get(),r.get())>=2,!(I&&v.button!==0)&&(re(v.target)||(W=!0,o.pointerDown(v),l.useFriction(0).useDuration(0),c.set(r),se(),_=o.readPoint(v),G=o.readPoint(v,S),f.emit("pointerDown")))}function V(v){if(!we(v,s)&&v.touches.length>=2)return P(v);const M=o.readPoint(v),F=o.readPoint(v,S),q=fe(M,_),X=fe(F,G);
vendor: 14,387 bytes, line 1
1if(!Z&&!K&&(!v.cancelable||(Z=q>X,!Z)))return P(v);const ee=o.pointerMove(v);q>p&&(U=!0),l.useFriction(.3).useDuration(.75),a.start(),c.add(k(ee)),v.preventDefault()}function P(v){const M=x.byDistance(0,!1).index!==d.get(),F=o.pointerUp(v)*Q(),q=ce(k(F),M),X=mt(F,q),ee=z-10*X,Y=u+X/50;Z=!1,W=!1,N.clear(),l.useDuration(ee).useFriction(Y),i.distance(q,!m),K=!1,f.emit("pointerUp")}function J(v){U&&(v.stopPropagation(),v.preventDefault(),U=!1)}function B(){return W}return{init:ie,destroy:H,pointerDown:B}}function yt(e,t){let s,c;function o(d){return d.timeStamp}function r(d,f){const m=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(we(d,t)?d:d.touches[0])[m]}function a(d){return s=d,c=d,r(d)}function i(d){const f=r(d)-r(c),b=o(d)-o(s)>170;return c=d,b&&(s=d),f}function l(d){if(!s||!c)return 0;const f=r(c)-r(s),b=o(d)-o(s),m=o(d)-o(c)>170,p=f/b;return b&&!m&&C(p)>.1?p:0}return{pointerDown:a,pointerMove:i,pointerUp:l,readPoint:r}}function vt(){function e(n){const{offsetTop:s,offsetLeft:c,offsetWidth:o,offsetHeight:r}=n;return{top:s,right:c+o,bottom:s+r,left:c,width:o,height:r}}return{measure:e}}function St(e){function t(s){return e*(s/100)}return{measure:t}}function jt(e,t,n,s,c,o,r){const a=[e].concat(s);let i,l,x=[],d=!1;function f(h){return c.measureSize(r.measure(h))}function b(h){if(!o)return;l=f(e),x=s.map(f);function u(y){for(const S of y){if(d)return;const k=S.target===e,T=s.indexOf(S.target),w=k?l:x[T],j=f(k?e:s[T]);if(C(j-w)>=.5){h.reInit(),t.emit("resize");break}}}i=new ResizeObserver(y=>{(be(o)||o(h,y))&&u(y)}),n.requestAnimationFrame(()=>{a.forEach(y=>i.observe(y))})}function m(){d=!0,i&&i.disconnect()}return{init:b,destroy:m}}function Nt(e,t,n,s,c,o){let r=0,a=0,i=c,l=o,x=e.get(),d=0;function f(){const w=s.get()-e.get(),j=!i;let N=0;return j?(r=0,n.set(s),e.set(s),N=w):(n.set(e),r+=w/i,r*=l,x+=r,e.add(r),N=x-d),a=Ie(N),d=x,T}function b(){const w=s.get()-t.get();return C(w)<.001}function m(){return i}function p(){return a}function h(){return r}function u(){return S(c)}function y(){return k(o)}function S(w){return i=w,T}function k(w){return l=w,T}const T={direction:p,duration:m,velocity:h,seek:f,settled:b,useBaseFriction:y,useBaseDuration:u,useFriction:k,useDuration:S};return T}function kt(e,t,n,s,c){const o=c.measure(10),r=c.measure(50),a=ne(.1,.99);let i=!1;function l(){return!(i||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function x(b){if(!l())return;const m=e.reachedMin(t.get())?"min":"max",p=C(e[m]-t.get()),h=n.get()-t.get(),u=a.constrain(p/r);n.subtract(h*u),!b&&C(h)<o&&(n.set(e.constrain(n.get())),s.useDuration(25).useBaseFriction())}function d(b){i=!b}return{shouldConstrain:l,constrain:x,toggleActive:d}}function wt(e,t,n,s,c){const o=ne(-t+e,0),r=d(),a=x(),i=f();function l(m,p){return fe(m,p)<=1}function x(){const m=r[0],p=$(r),h=r.lastIndexOf(m),u=r.indexOf(p)+1;return ne(h,u)}function d(){return n.map((m,p)=>{const{min:h,max:u}=o,y=o.constrain(m),S=!p,k=Te(n,p);return S?u:k||l(h,y)?h:l(u,y)?u:y}).map(m=>parseFloat(m.toFixed(3)))}function f(){if(t<=e+c)return[o.max];if(s==="keepSnaps")return r;const{min:m,max:p}=a;return r.slice(m,p)}return{snapsContained:i,scrollContainLimit:a}}function Et(e,t,n){const s=t[0],c=n?s-e:$(t);return{limit:ne(c,s)}}function Lt(e,t,n,s){const o=t.min+.1,r=t.max+.1,{reachedMin:a,reachedMax:i}=ne(o,r);function l(f){return f===1?i(n.get()):f===-1?a(n.get()):!1}function x(f){if(!l(f))return;const b=e*(f*-1);s.forEach(m=>m.add(b))}return{loop:x}}function It(e){const{max:t,length:n}=e;function s(o){const r=o-t;return n?r/-n:0}return{get:s}}function Tt(e,t,n,s,c){const{startEdge:o,endEdge:r}=e,{groupSlides:a}=c,i=d().map(t.measure),l=f(),x=b();function d(){return a(s).map(p=>$(p)[r]-p[0][o]).map(C)}function f(){return s.map(p=>n[o]-p[o]).map(p=>-C(p))}function b(){return a(l).map(p=>p[0]).map((p,h)=>p+i[h])}return{snaps:l,snapsAligned:x}}function At(e,t,n,s,c,o){const{groupSlides:r}=c,{min:a,max:i}=s,l=x();function x(){const f=r(o),b=!e||t==="keepSnaps";return n.length===1?[o]:b?f:f.slice(a,i).map((m,p,h)=>{const u=!p,y=Te(h,p);if(u){const S=$(h[0])+1;return Ge(S)}if(y){const S=ge(o)-$(h)[0]+1;return Ge(S,$(h)[0])}return m})}return{slideRegistry:l}}function Ct(e,t,n,s,c){const{reachedAny:o,removeOffset:r,constrain:a}=s;function i(m){return m.concat().sort((p,h)=>C(p)-C(h))[0]}function l(m){const p=e?r(m):a(m),h=t.map((y,S)=>({diff:x(y-p,0),index:S})).sort((y,S)=>C(y.diff)-C(S.diff)),{index:u}=h[0];return{index:u,distance:p}}function x(m,p){const h=[m,m+n,m-n];if(!e)return m;if(!p)return i(h);const u=h.filter(y=>Ie(y)===p);return u.length?i(u):$(h)-n}function d(m,p){const h=t[m]-c.get(),u=x(h,p);return{index:m,distance:u}}function f(m,p){const h=c.get()+m,{index:u,distance:y}=l(h),S=!e&&o(h);if(!p||S)return{index:u,distance:m};const k=t[u]-y,T=m+x(k,0);return{index:u,distance:T}}return{byDistance:f,byIndex:d,shortcut:x}}function Ot(e,t,n,s,c,o,r){function a(d){const f=d.distance,b=d.index!==t.get();o.add(f),f&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(n.set(t.get()),t.set(d.index),r.emit("select"))}function i(d,f){const b=c.byDistance(d,f);a(b)}function l(d,f){const b=t.clone().set(d),m=c.byIndex(b.get(),f);a(m)}return{distance:i,index:l}}function Dt(e,t,n,s,c,o,r,a){const i={passive:!0,capture:!0};let l=0;function x(b){if(!a)return;function m(p){if(new Date().getTime()-l>10)return;r.emit("slideFocusStart"),e.scrollLeft=0;const y=n.findIndex(S=>S.includes(p));Le(y)&&(c.useDuration(0),s.index(y,0),r.emit("slideFocus"))}o.add(document,"keydown",d,!1),t.forEach((p,h)=>{o.add(p,"focus",u=>{(be(a)||a(b,u))&&m(h)},i)})}function d(b){b.code==="Tab"&&(l=new Date().getTime())}return{init:x}}function ue(e){let t=e;function n(){return t}function s(i){t=r(i)}function c(i){t+=r(i)}function o(i){t-=r(i)}function r(i){return Le(i)?i:i.get()}return{get:n,set:s,add:c,subtract:o}}function Ke(e,t){const n=e.scroll==="x"?r:a,s=t.style;let c=null,o=!1;function r(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function i(f){if(o)return;const b=pt(e.direction(f));b!==c&&(s.transform=n(b),c=b)}function l(f){o=!f}function x(){o||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:x,to:i,toggleActive:l}}function Mt(e,t,n,s,c,o,r,a,i){const x=de(c),d=de(c).reverse(),f=u().concat(y());function b(j,N){return j.reduce((E,D)=>E-c[D],N)}function m(j,N){return j.reduce((E,D)=>b(E,N)>0?E.concat([D]):E,[])}function p(j){return o.map((N,E)=>({start:N-s[E]+.5+j,end:N+t-.5+j}))}function h(j,N,E){const D=p(N);return j.map(L=>{const z=E?0:-n,R=E?n:0,_=E?"end":"start",G=D[L][_];return{index:L,loopPoint:G,slideLocation:ue(-1),translate:Ke(e,i[L]),target:()=>a.get()>G?z:R}})}function u(){const j=r[0],N=m(d,j);return h(N,n,!1)}function y(){const j=t-r[0]-1,N=m(x,j);return h(N,-n,!0)}function S(){return f.every(({index:j})=>{const N=x.filter(E=>E!==j);return b(N,t)<=.1})}function k(){f.forEach(j=>{const{target:N,translate:E,slideLocation:D}=j,L=N();L!==D.get()&&(E.to(L),D.set(L))})}function T(){f.forEach(j=>j.translate.clear())}return{canLoop:S,clear:T,loop:k,loopPoints:f}}function Pt(e,t,n){let s,c=!1;function o(i){if(!n)return;function l(x){for(const d of x)if(d.type==="childList"){i.reInit(),t.emit("slidesChanged");break}}s=new MutationObserver(x=>{c||(be(n)||n(i,x))&&l(x)}),s.observe(e,{childList:!0})}function r(){s&&s.disconnect(),c=!0}return{init:o,destroy:r}}function Ft(e,t,n,s){const c={};let o=null,r=null,a,i=!1;function l(){a=new IntersectionObserver(m=>{i||(m.forEach(p=>{const h=t.indexOf(p.target);c[h]=p}),o=null,r=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(m=>a.observe(m))}function x(){a&&a.disconnect(),i=!0}function d(m){return me(c).reduce((p,h)=>{const u=parseInt(h),{isIntersecting:y}=c[u];return(m&&y||!m&&!y)&&p.push(u),p},[])}function f(m=!0){if(m&&o)return o;if(!m&&r)return r;const p=d(m);return m&&(o=p),m||(r=p),p}return{init:l,destroy:x,get:f}}function zt(e,t,n,s,c,o){const{measureSize:r,startEdge:a,endEdge:i}=e,l=n[0]&&c,x=m(),d=p(),f=n.map(r),b=h();function m(){if(!l)return 0;const y=n[0];return C(t[a]-y[a])}function p(){if(!l)return 0;const y=o.getComputedStyle($(s));return parseFloat(y.getPropertyValue(`margin-${i}`))}function h(){return n.map((y,S,k)=>{const T=!S,w=Te(k,S);return T?f[S]+x:w?f[S]+d:k[S+1][a]-y[a]}).map(C)}return{slideSizes:f,slideSizesWithGaps:b,startGap:x,endGap:d}}function Vt(e,t,n,s,c,o,r,a,i){const{startEdge:l,endEdge:x,direction:d}=e,f=Le(n);function b(u,y){return de(u).filter(S=>S%y===0).map(S=>u.slice(S,S+y))}function m(u){return u.length?de(u).reduce((y,S,k)=>{const T=$(y)||0,w=T===0,j=S===ge(u),N=c[l]-o[T][l],E=c[l]-o[S][x],D=!s&&w?d(r):0,L=!s&&j?d(a):0,z=C(E-L-(N+D));return k&&z>t+i&&y.push(S),j&&y.push(u.length),y},[]).map((y,S,k)=>{const T=Math.max(k[S-1]||0);return u.slice(T,y)}):[]}function p(u){return f?b(u,n):m(u)}return{groupSlides:p}}function Bt(e,t,n,s,c,o,r){const{align:a,axis:i,direction:l,startIndex:x,loop:d,duration:f,dragFree:b,dragThreshold:m,inViewThreshold:p,slidesToScroll:h,skipSnaps:u,containScroll:y,watchResize:S,watchSlides:k,watchDrag:T,watchFocus:w}=o,j=2,N=vt(),E=N.measure(t),D=n.map(N.measure),L=ht(i,l),z=L.measureSize(E),R=St(z),_=gt(a,z),G=!d&&!!y,W=d||!!y,{slideSizes:Z,slideSizesWithGaps:U,startGap:K,endGap:ie}=zt(L,E,D,n,W,c),H=Vt(L,z,h,d,E,D,K,ie,j),{snaps:se,snapsAligned:re}=Tt(L,_,E,D,H),Q=-$(se)+$(U),{snapsContained:ce,scrollContainLimit:ae}=wt(z,Q,re,y,j),V=G?ce:re,{limit:P}=Et(Q,V,d),J=Ue(ge(V),x,d),B=J.clone(),A=de(n),v=({dragHandler:oe,scrollBody:je,scrollBounds:Ne,options:{loop:xe}})=>{xe||Ne.constrain(oe.pointerDown()),je.seek()},I=({scrollBody:oe,translate:je,location:Ne,offsetLocation:xe,previousLocation:Ye,scrollLooper:We,slideLooper:et,dragHandler:tt,animation:nt,eventHandler:Me,scrollBounds:st,options:{loop:Pe}},Fe)=>{const ze=oe.settled(),rt=!st.shouldConstrain(),Ve=Pe?ze:ze&&rt,Be=Ve&&!tt.pointerDown();Be&&nt.stop();const ot=Ne.get()*Fe+Ye.get()*(1-Fe);xe.set(ot),Pe&&(We.loop(oe.direction()),et.loop()),je.to(xe.get()),Be&&Me.emit("settle"),Ve||Me.emit("scroll")},M=xt(s,c,()=>v(Se),oe=>I(Se,oe)),F=.68,q=V[J.get()],X=ue(q),ee=ue(q),Y=ue(q),te=ue(q),le=Nt(X,Y,ee,te,f,F),ye=Ct(d,V,Q,P,te),ve=Ot(M,J,B,le,ye,te,r),Ce=It(P),Oe=pe(),Xe=Ft(t,n,r,p),{slideRegistry:De}=At(G,y,V,ae,H,A),Ze=Dt(e,n,De,ve,le,Oe,r,w),Se={ownerDocument:s,ownerWindow:c,eventHandler:r,containerRect:E,slideRects:D,animation:M,axis:L,dragHandler:bt(L,e,s,c,te,yt(L,c),X,M,ve,le,ye,J,r,R,b,m,u,F,T),eventStore:Oe,percentOfView:R,index:J,indexPrevious:B,limit:P,location:X,offsetLocation:Y,previousLocation:ee,options:o,resizeHandler:jt(t,r,c,n,L,S,N),scrollBody:le,scrollBounds:kt(P,Y,te,le,R),scrollLooper:Lt(Q,P,Y,[X,Y,ee,te]),scrollProgress:Ce,scrollSnapList:V.map(Ce.get),scrollSnaps:V,scrollTarget:ye,scrollTo:ve,slideLooper:Mt(L,z,Q,Z,U,se,V,Y,n),slideFocus:Ze,slidesHandler:Pt(t,r,k),slidesInView:Xe,slideIndexes:A,slideRegistry:De,slidesToScroll:H,target:te,translate:Ke(L,t)};return Se}function $t(){let e={},t;function n(l){t=l}function s(l){return e[l]||[]}function c(l){return s(l).forEach(x=>x(t,l)),i}function o(l,x){return e[l]=s(l).concat([x]),i}function r(l,x){return e[l]=s(l).filter(d=>d!==x),i}function a(){e={}}const i={init:n,emit:c,off:r,on:o,clear:a};return i}const Rt={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 _t(e){function t(o,r){return qe(o,r||{})}function n(o){const r=o.breakpoints||{},a=me(r).filter(i=>e.matchMedia(i).matches).map(i=>r[i]).reduce((i,l)=>t(i,l),{});return t(o,a)}function s(o){return o.map(r=>me(r.breakpoints||{})).reduce((r,a)=>r.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function Gt(e){let t=[];function n(o,r){return t=r.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(o,e)),r.reduce((a,i)=>Object.assign(a,{[i.name]:i}),{})}function s(){t=t.filter(o=>o.destroy())}return{init:n,destroy:s}}function he(e,t,n){const s=e.ownerDocument,c=s.defaultView,o=_t(c),r=Gt(o),a=pe(),i=$t(),{mergeOptions:l,optionsAtMedia:x,optionsMediaQueries:d}=o,{on:f,off:b,emit:m}=i,p=L;let h=!1,u,y=l(Rt,he.globalOptions),S=l(y),k=[],T,w,j;function N(){const{container:A,slides:v}=S;w=(ke(A)?e.querySelector(A):A)||e.children[0];const M=ke(v)?w.querySelectorAll(v):v;j=[].slice.call(M||w.children)}function E(A){const v=Bt(e,w,j,s,c,A,i);if(A.loop&&!v.slideLooper.canLoop()){const I=Object.assign({},A,{loop:!1});return E(I)}return v}function D(A,v){h||(y=l(y,A),S=x(y),k=v||k,N(),u=E(S),d([y,...k.map(({options:I})=>I)]).forEach(I=>a.add(I,"change",L)),S.active&&(u.translate.to(u.location.get()),u.animation.init(),u.slidesInView.init(),u.slideFocus.init(B),u.eventHandler.init(B),u.resizeHandler.init(B),u.slidesHandler.init(B),u.options.loop&&u.slideLooper.loop(),w.offsetParent&&j.length&&u.dragHandler.init(B),T=r.init(B,k)))}function L(A,v){const I=H();z(),D(l({startIndex:I},A),v),i.emit("reInit")}function z(){u.dragHandler.destroy(),u.eventStore.clear(),u.translate.clear(),u.slideLooper.clear(),u.resizeHandler.destroy(),u.slidesHandler.destroy(),u.slidesInView.destroy(),u.animation.destroy(),r.destroy(),a.clear()}function R(){h||(h=!0,a.clear(),z(),i.emit("destroy"),i.clear())}function _(A,v,I){!S.active||h||(u.scrollBody.useBaseFriction().useDuration(v===!0?0:S.duration),u.scrollTo.index(A,I||0))}function G(A){const v=u.index.add(1).get();_(v,A,-1)}function W(A){const v=u.index.add(-1).get();_(v,A,1)}function Z(){return u.index.add(1).get()!==H()}function U(){return u.index.add(-1).get()!==H()}function K(){return u.scrollSnapList}function ie(){return u.scrollProgress.get(u.offsetLocation.get())}function H(){return u.index.get()}function se(){return u.indexPrevious.get()}function re(){return u.slidesInView.get()}function Q(){return u.slidesInView.get(!1)}function ce(){return T}function ae(){return u}function V(){return e}function P(){return w}function J(){return j}const B={canScrollNext:Z,canScrollPrev:U,containerNode:P,internalEngine:ae,destroy:R,off:b,on:f,emit:m,plugins:ce,previousScrollSnap:se,reInit:p,rootNode:V,scrollNext:G,scrollPrev:W,scrollProgress:ie,scrollSnapList:K,scrollTo:_,selectedScrollSnap:H,slideNo
1des:J,slidesInView:re,slidesNotInView:Q};return D(t,n),setTimeout(()=>i.emit("init"),0),B}he.globalOptions=void 0;function Ae(e={},t=[]){const n=O.useRef(e),s=O.useRef(t),[c,o]=O.useState(),[r,a]=O.useState(),i=O.useCallback(()=>{c&&c.reInit(n.current,s.current)},[c]);return O.useEffect(()=>{Ee(n.current,e)||(n.current=e,i())},[e,i]),O.useEffect(()=>{dt(s.current,t)||(s.current=t,i())},[t,i]),O.useEffect(()=>{if(ft()&&r){he.globalOptions=Ae.globalOptions;const l=he(r,n.current,s.current);return o(l),()=>l.destroy()}else o(void 0)},[r,o]),[a,c]}Ae.globalOptions=void 0;const Qe=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();const Ht=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const qt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase());const He=e=>{const t=qt(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Ut={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Kt=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const Qt=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:c="",children:o,iconNode:r,...a},i)=>O.createElement("svg",{ref:i,...Ut,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:Qe("lucide",c),...!o&&!Kt(a)&&{"aria-hidden":"true"},...a},[...r.map(([l,x])=>O.createElement(l,x)),...Array.isArray(o)?o:[o]]));const Je=(e,t)=>{const n=O.forwardRef(({className:s,...c},o)=>O.createElement(Qt,{ref:o,iconNode:t,className:Qe(`lucide-${Ht(He(e))}`,`lucide-${e}`,s),...c}));return n.displayName=He(e),n};const Jt=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Xt=Je("chevron-left",Jt);const Zt=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Yt=Je("chevron-right",Zt);function Wt({images:e,roomName:t}){const[n,s]=Ae({loop:!0}),[c,o]=O.useState(0),[r,a]=O.useState(!1),i=O.useCallback(()=>s?.scrollPrev(),[s]),l=O.useCallback(()=>s?.scrollNext(),[s]),x=O.useCallback(f=>s?.scrollTo(f),[s]),d=O.useCallback(()=>{s&&o(s.selectedScrollSnap())},[s]);return O.useEffect(()=>{a(!0)},[]),O.useEffect(()=>{if(!(!s||!r))return s.on("select",d),d(),()=>{s.off("select",d)}},[s,r,d]),r?g.jsxs("div",{className:"space-y-5",children:[g.jsxs("div",{className:"relative overflow-hidden bg-muted",ref:n,children:[g.jsx("div",{className:"flex",children:e.map((f,b)=>g.jsx("div",{className:"relative min-w-0 flex-[0_0_100%] aspect-[16/10]",children:g.jsx("img",{src:f,alt:`${t} ${b+1}`,loading:"lazy",className:"h-full w-full object-cover"})},f))}),g.jsx("button",{onClick:i,className:"absolute left-4 top-1/2 flex h-12 w-12 -translate-y-1/2 items-center justify-center bg-background/85 text-primary backdrop-blur-sm transition hover:bg-background","aria-label":"Previous image",children:g.jsx(Xt,{className:"h-5 w-5"})}),g.jsx("button",{onClick:l,className:"absolute right-4 top-1/2 flex h-12 w-12 -translate-y-1/2 items-center justify-center bg-background/85 text-primary backdrop-blur-sm transition hover:bg-background","aria-label":"Next image",children:g.jsx(Yt,{className:"h-5 w-5"})}),g.jsxs("div",{className:"absolute bottom-4 right-4 bg-background/85 px-4 py-2 text-xs uppercase tracking-[0.2em] text-primary backdrop-blur-sm",children:[c+1," / ",e.length]})]}),g.jsx("div",{className:"grid grid-cols-4 gap-2 sm:grid-cols-6 md:grid-cols-8 md:gap-3",children:e.map((f,b)=>g.jsx("button",{onClick:()=>x(b),className:`relative aspect-square overflow-hidden transition ${b===c?"ring-2 ring-primary ring-offset-2":"opacity-60 hover:opacity-100"}`,"aria-label":`Go to image ${b+1}`,children:g.jsx("img",{src:f,alt:`${t} thumbnail ${b+1}`,loading:"lazy",className:"h-full w-full object-cover"})},`thumb-${f}`))})]}):g.jsx("div",{className:"space-y-5",children:g.jsx("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-3 md:gap-5",children:e.slice(0,6).map((f,b)=>g.jsx("div",{className:b===0?"overflow-hidden col-span-2 row-span-2 aspect-square":"overflow-hidden aspect-square",children:g.jsx("img",{src:f,alt:`${t} ${b+1}`,loading:"lazy",className:"h-full w-full object-cover"})},f))})})}function nn(e){const{t}=it();return g.jsxs("main",{className:"bg-background",children:[g.jsx(at,{tone:"light"}),g.jsxs("section",{className:"relative h-[80vh] min-h-[560px] w-full overflow-hidden bg-primary",children:[g.jsx("div",{className:"absolute inset-0 animate-kenburns",style:{backgroundImage:`url(${e.hero}
1)`,backgroundSize:"cover",backgroundPosition:"center"}}),g.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/40 via-black/30 to-black/70"}),g.jsxs("div",{className:"relative z-10 h-full flex flex-col justify-end px-6 md:px-16 pb-20 text-[oklch(0.97_0.012_85)]",children:[g.jsx("p",{className:"text-xs uppercase tracking-[0.4em] mb-5 opacity-90 animate-fadeup",children:t("rd.kicker")}),g.jsx("h1",{className:"font-serif text-5xl md:text-8xl leading-[0.95] font-light animate-fadeup delay-200",children:e.name}),g.jsx("p",{className:"mt-6 max-w-xl text-lg md:text-xl font-light leading-relaxed opacity-90 animate-fadeup delay-400",children:e.tagline})]})]}),g.jsx("section",{className:"border-b border-border",children:g.jsx("div",{className:"max-w-7xl mx-auto grid grid-cols-3 divide-x divide-border",children:[[t("rd.spec.size"),e.size],[t("rd.spec.cap"),e.capacity],[t("rd.spec.view"),e.view]].map(([n,s])=>g.jsxs("div",{className:"px-6 md:px-12 py-10 text-center",children:[g.jsx("p",{className:"text-[10px] uppercase tracking-[0.3em] text-muted-foreground",children:n}),g.jsx("p",{className:"font-serif text-3xl md:text-4xl text-primary mt-2",children:s})]},n))})}),g.jsx("section",{className:"py-24 md:py-32 px-6 md:px-16 max-w-7xl mx-auto",children:g.jsxs("div",{className:"grid md:grid-cols-12 gap-12 md:gap-20",children:[g.jsxs("div",{className:"md:col-span-7",children:[g.jsx("p",{className:"text-xs uppercase tracking-[0.4em] text-accent mb-6",children:t("rd.about")}),g.jsx("h2",{className:"font-serif text-4xl md:text-5xl leading-[1.1] text-primary mb-8",children:t("rd.aboutTitle")}),g.jsx("p",{className:"text-base md:text-lg leading-relaxed text-muted-foreground",children:e.about}),g.jsx("div",{className:"grid sm:grid-cols-2 gap-8 mt-12",children:[[t("rd.sleeping"),e.sleeping],[t("rd.bathroom"),t("rd.bathroomV")],[t("rd.parking"),t("rd.parkingV")],[t("rd.smoking"),t("rd.smokingV")]].map(([n,s])=>g.jsxs("div",{className:"border-t border-border pt-5",children:[g.jsx("p",{className:"text-[10px] uppercase tracking-[0.3em] text-accent",children:n}),g.jsx("p",{className:"mt-2 text-sm leading-relaxed text-foreground/85",children:s})]},n))})]}),g.jsx("aside",{className:"md:col-span-5",children:g.jsxs("div",{className:"md:sticky md:top-28 border border-border bg-card p-8",children:[g.jsx("p",{className:"text-[10px] uppercase tracking-[0.3em] text-accent",children:t("rd.checkAvail")}),g.jsxs("p",{className:"font-serif text-3xl text-primary mt-3 leading-snug",children:[t("rd.reserve")," ",g.jsx("em",{children:e.name})]}),g.jsx("p",{className:"mt-4 text-sm text-muted-foreground leading-relaxed",children:t("rd.submitDates")}),g.jsx("a",{href:"https://spinalonga.book-onlinenow.net/",target:"_blank",rel:"noopener noreferrer",className:"mt-6 block text-center bg-primary text-primary-foreground px-8 py-4 text-xs uppercase tracking-[0.3em] hover:bg-accent hover:text-accent-foreground transition",children:t("rd.bookThis")}),g.jsx("p",{className:"mt-4 text-[11px] text-muted-foreground text-center",children:"[email protected] · +30 28410 00000"})]})})]})}),g.jsxs("section",{className:"px-6 md:px-16 pb-24 md:pb-32 max-w-7xl mx-auto",children:[g.jsx("p",{className:"text-xs uppercase tracking-[0.4em] text-accent mb-6",children:t("rd.gallery")}),g.jsx(Wt,{images:e.gallery,roomName:e.name})]}),g.jsx("section",{className:"bg-primary text-[oklch(0.97_0.012_85)] py-24 md:py-32 px-6 md:px-16",children:g.jsxs("div",{className:"max-w-7xl mx-auto",children:[g.jsx("p",{className:"text-xs uppercase tracking-[0.4em] text-accent mb-6",children:t("rd.amenitiesTitle")}),g.jsx("h2",{className:"font-serif text-4xl md:text-5xl mb-12",children:t("rd.amenitiesH")}),g.jsx("ul",{className:"grid grid-cols-2 md:grid-cols-4 gap-y-4 gap-x-8 text-sm opacity-90",children:e.amenities.map(n=>g.jsxs("li",{className:"flex items-center gap-3 border-b border-[oklch(0.97_0.012_85/0.12)] pb-3",children:[g.jsx("span",{className:"text-accent",children:"â¦"})," ",n]},n))})]})}),g.jsxs("section",{className:"py-24 md:py-32 px-6 md:px-16 max-w-7xl mx-auto",children:[g.jsxs("div",{className:"flex items-end justify-between mb-12",children:[g.jsx("h2",{className:"font-serif text-4xl md:text-5xl text-primary",children:t("rd.other")}),g.jsx("a",{href:"https://spinalonga.book-onlinenow.net/",target:"_blank",rel:"noopener noreferrer",className:"hidden md:inline text-xs uppercase tracking-[0.3em] text-accent border-b border-accent pb-1",children:t("rd.bookNow")})]}),g.jsx("div",{className:"grid md:grid-cols-3 gap-6 md:gap-10",children:e.related.map(n=>g.jsxs(ct,{to:n.to,className:"group block",children:[g.jsx("div",{className:"relative overflow-hidden aspect-[4/5] mb-5",children:g.jsx("img",{src:n.img,alt:n.name,loading:"lazy",className:"absolute inset-0 w-full h-full object-cover transition-transform duration-[1400ms] group-hover:scale-110"})}),g.jsxs("h3",{className:"font-serif text-2xl md:text-3xl text-primary flex items-baseline justify-between",children:[n.name,g.jsx("span",{className:"text-accent text-base transition-transform group-hover:translate-x-2",children:"â"})]}),g.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:n.meta})]},n.to))})]}),g.jsx(lt,{})]})}
1export{nn as R};
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.