import{r as L,j as S,a as ge,B as _e,o as pt,u as gt,Y as ht}from"./index-4soFh7YW.js";import{A as xt}from"./arrow-left-Yt4w9K-z.js";import{c as yt}from"./can-koseoglu-Cz57oiKr.js";import{m as bt,a as St}from"./ali-ozaltin-C0P_dp-c.js";function vt(e){return Object.prototype.toString.call(e)==="[object Object]"}function $e(e){return vt(e)||Array.isArray(e)}function wt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ke(e,t){const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==s?!1:n.every(r=>{const a=e[r],c=t[r];return typeof a=="function"?`${a}`==`${c}`:!$e(a)||!$e(c)?a===c:ke(a,c)})}function qe(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Nt(e,t){if(e.length!==t.length)return!1;const n=qe(e),o=qe(t);return n.every((i,s)=>{const r=o[s];return ke(i,r)})}function Te(e){return typeof e=="number"}function Ee(e){return typeof e=="string"}function be(e){return typeof e=="boolean"}function Ue(e){return Object.prototype.toString.call(e)==="[object Object]"}function A(e){return Math.abs(e)}function Ie(e){return Math.sign(e)}function fe(e,t){return A(e-t)}function jt(e,t){if(e===0||t===0||A(e)<=A(t))return 0;const n=fe(A(e),A(t));return A(n/e)}function Ct(e){return Math.round(e*100)/100}function de(e){return me(e).map(Number)}function R(e){return e[he(e)]}function he(e){return Math.max(0,e.length-1)}function De(e,t){return t===he(e)}function He(e,t=0){return Array.from(Array(e),(n,o)=>t+o)}function me(e){return Object.keys(e)}function Qe(e,t){return[e,t].reduce((n,o)=>(me(o).forEach(i=>{const s=n[i],r=o[i],a=Ue(s)&&Ue(r);n[i]=a?Qe(s,r):r}),n),{})}function Le(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Et(e,t){const n={start:o,center:i,end:s};function o(){return 0}function i(c){return s(c)/2}function s(c){return t-c}function r(c,l){return Ee(e)?n[e](c):e(t,c,l)}return{measure:r}}function pe(){let e=[];function t(i,s,r,a={passive:!0}){let c;if("addEventListener"in i)i.addEventListener(s,r,a),c=()=>i.removeEventListener(s,r,a);else{const l=i;l.addListener(r),c=()=>l.removeListener(r)}return e.push(c),o}function n(){e=e.filter(i=>i())}const o={add:t,clear:n};return o}function Lt(e,t,n,o){const i=pe(),s=1e3/60;let r=null,a=0,c=0;function l(){i.add(e,"visibilitychange",()=>{e.hidden&&u()})}function x(){b(),i.clear()}function d(h){if(!c)return;r||(r=h,n(),n());const f=h-r;for(r=h,a+=f;a>=s;)n(),a-=s;const g=a/s;o(g),c&&(c=t.requestAnimationFrame(d))}function m(){c||(c=t.requestAnimationFrame(d))}function b(){t.cancelAnimationFrame(c),r=null,a=0,c=0}function u(){r=null,a=0}return{init:l,destroy:x,start:m,stop:b,update:n,render:o}}function kt(e,t){const n=t==="rtl",o=e==="y",i=o?"y":"x",s=o?"x":"y",r=!o&&n?-1:1,a=x(),c=d();function l(u){const{height:p,width:h}=u;return o?p:h}function x(){return o?"top":n?"right":"left"}function d(){return o?"bottom":n?"left":"right"}function m(u){return u*r}return{scroll:i,cross:s,startEdge:a,endEdge:c,measureSize:l,direction:m}}function ne(e=0,t=0){const n=A(e-t);function o(l){return l<e}function i(l){return l>t}function s(l){return o(l)||i(l)}function r(l){return s(l)?o(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:s,reachedMax:i,reachedMin:o,removeOffset:a}}function Je(e,t,n){const{constrain:o}=ne(0,e),i=e+1;let s=r(t);function r(m){return n?A((i+m)%i):o(m)}function a(){return s}function c(m){return s=r(m),d}function l(m){return x().set(a()+m)}function x(){return Je(e,a(),n)}const d={get:a,set:c,add:l,clone:x};return d}function Tt(e,t,n,o,i,s,r,a,c,l,x,d,m,b,u,p,h,f,g){const{cross:v,direction:j}=e,I=["INPUT","SELECT","TEXTAREA"],C={passive:!1},w=pe(),N=pe(),E=ne(50,225).constrain(b.measure(20)),O={mouse:300,touch:400},k={mouse:500,touch:600},z=u?43:25;let V=!1,$=0,q=0,W=!1,Y=!1,G=!1,_=!1;function ie(y){if(!g)return;function T(F){(be(g)||g(y,F))&&ae(F)}const P=t;w.add(P,"dragstart",F=>F.preventDefault(),C).add(P,"touchmove",()=>{},C).add(P,"touchend",()=>{}).add(P,"touchstart",T).add(P,"mousedown",T).add(P,"touchcancel",M).add(P,"contextmenu",M).add(P,"click",J,!0)}function U(){w.clear(),N.clear()}function re(){const y=_?n:t;N.add(y,"touchmove",K,C).add(y,"touchend",M).add(y,"mousemove",K,C).add(y,"mouseup",M)}function oe(y){const T=y.nodeName||"";return I.includes(T)}function Q(){return(u?k:O)[_?"mouse":"touch"]}function ce(y,T){const P=d.add(Ie(y)*-1),F=x.byDistance(y,!u).distance;return u||A(y)<E?F:h&&T?F*.5:x.byIndex(P.get(),0).distance}function ae(y){const T=Le(y,o);_=T,G=u&&T&&!y.buttons&&V,V=fe(i.get(),r.get())>=2,!(T&&y.button!==0)&&(oe(y.target)||(W=!0,s.pointerDown(y),l.useFriction(0).useDuration(0),i.set(r),re(),$=s.readPoint(y),q=s.readPoint(y,v),m.emit("pointerDown")))}function K(y){if(!Le(y,o)&&y.touches.length>=2)return M(y);const P=s.readPoint(y),F=s.readPoint(y,v),H=fe(P,$),X=fe(F,q);if(!Y&&!_&&(!y.cancelable||(Y=H>X,!Y)))return M(y);const ee=s.pointerMove(y);H>p&&(G=!0),l.useFriction(.3).useDuration(.75),a.start(),i.add(j(ee)),y.preventDefault()}function M(y){const P=x.byDistance(0,!1).index!==d.get(),F=s.pointerUp(y)*Q(),H=ce(j(F),P),X=jt(F,H),ee=z-10*X,Z=f+X/50;Y=!1,W=!1,N.clear(),l.useDuration(ee).useFriction(Z),c.distance(H,!u),_=!1,m.emit("pointerUp")}function J(y){G&&(y.stopPropagation(),y.preventDefault(),G=!1)}function B(){return W}return{init:ie,destroy:U,pointerDown:B}}function It(e,t){let o,i;function s(d){return d.timeStamp}function r(d,m){const u=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(Le(d,t)?d:d.touches[0])[u]}function a(d){return o=d,i=d,r(d)}function c(d){const m=r(d)-r(i),b=s(d)-s(o)>170;return i=d,b&&(o=d),m}function l(d){if(!o||!i)return 0;const m=r(i)-r(o),b=s(d)-s(o),u=s(d)-s(i)>170,p=m/b;return b&&!u&&A(p)>.1?p:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:r}}function Dt(){function e(n){const{offsetTop:o,offsetLeft:i,offsetWidth:s,offsetHeight:r}=n;return{top:o,right:i+s,bottom:o+r,left:i,width:s,height:r}}return{measure:e}}function At(e){function t(o){return e*(o/100)}return{measure:t}}function Ot(e,t,n,o,i,s,r){const a=[e].concat(o);let c,l,x=[],d=!1;function m(h){return i.measureSize(r.measure(h))}function b(h){if(!s)return;l=m(e),x=o.map(m);function f(g){for(const v of g){if(d)return;const j=v.target===e,I=o.indexOf(v.target),C=j?l:x[I],w=m(j?e:o[I]);if(A(w-C)>=.5){h.reInit(),t.emit("resize");break}}}c=new ResizeObserver(g=>{(be(s)||s(h,g))&&f(g)}),n.requestAnimationFrame(()=>{a.forEach(g=>c.observe(g))})}function u(){d=!0,c&&c.disconnect()}return{init:b,destroy:u}}function Pt(e,t,n,o,i,s){let r=0,a=0,c=i,l=s,x=e.get(),d=0;function m(){const C=o.get()-e.get(),w=!c;let N=0;return w?(r=0,n.set(o),e.set(o),N=C):(n.set(e),r+=C/c,r*=l,x+=r,e.add(r),N=x-d),a=Ie(N),d=x,I}function b(){const C=o.get()-t.get();return A(C)<.001}function u(){return c}function p(){return a}function h(){return r}function f(){return v(i)}function g(){return j(s)}function v(C){return c=C,I}function j(C){return l=C,I}const I={direction:p,duration:u,velocity:h,seek:m,settled:b,useBaseFriction:g,useBaseDuration:f,useFriction:j,useDuration:v};return I}function Mt(e,t,n,o,i){const s=i.measure(10),r=i.measure(50),a=ne(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function x(b){if(!l())return;const u=e.reachedMin(t.get())?"min":"max",p=A(e[u]-t.get()),h=n.get()-t.get(),f=a.constrain(p/r);n.subtract(h*f),!b&&A(h)<s&&(n.set(e.constrain(n.get())),o.useDuration(25).useBaseFriction())}function d(b){c=!b}return{shouldConstrain:l,constrain:x,toggleActive:d}}function Ft(e,t,n,o,i){const s=ne(-t+e,0),r=d(),a=x(),c=m();function l(u,p){return fe(u,p)<=1}function x(){const u=r[0],p=R(r),h=r.lastIndexOf(u),f=r.indexOf(p)+1;return ne(h,f)}function d(){return n.map((u,p)=>{const{min:h,max:f}=s,g=s.constrain(u),v=!p,j=De(n,p);return v?f:j||l(h,g)?h:l(f,g)?f:g}).map(u=>parseFloat(u.toFixed(3)))}function m(){if(t<=e+i)return[s.max];if(o==="keepSnaps")return r;const{min:u,max:p}=a;return r.slice(u,p)}return{snapsContained:c,scrollContainLimit:a}}function zt(e,t,n){const o=t[0],i=n?o-e:R(t);return{limit:ne(i,o)}}function Kt(e,t,n,o){const s=t.min+.1,r=t.max+.1,{reachedMin:a,reachedMax:c}=ne(s,r);function l(m){return m===1?c(n.get()):m===-1?a(n.get()):!1}function x(m){if(!l(m))return;const b=e*(m*-1);o.forEach(u=>u.add(b))}return{loop:x}}function Bt(e){const{max:t,length:n}=e;function o(s){const r=s-t;return n?r/-n:0}return{get:o}}function Rt(e,t,n,o,i){const{startEdge:s,endEdge:r}=e,{groupSlides:a}=i,c=d().map(t.measure),l=m(),x=b();function d(){return a(o).map(p=>R(p)[r]-p[0][s]).map(A)}function m(){return o.map(p=>n[s]-p[s]).map(p=>-A(p))}function b(){return a(l).map(p=>p[0]).map((p,h)=>p+c[h])}return{snaps:l,snapsAligned:x}}function Vt(e,t,n,o,i,s){const{groupSlides:r}=i,{min:a,max:c}=o,l=x();function x(){const m=r(s),b=!e||t==="keepSnaps";return n.length===1?[s]:b?m:m.slice(a,c).map((u,p,h)=>{const f=!p,g=De(h,p);if(f){const v=R(h[0])+1;return He(v)}if(g){const v=he(s)-R(h)[0]+1;return He(v,R(h)[0])}return u})}return{slideRegistry:l}}function $t(e,t,n,o,i){const{reachedAny:s,removeOffset:r,constrain:a}=o;function c(u){return u.concat().sort((p,h)=>A(p)-A(h))[0]}function l(u){const p=e?r(u):a(u),h=t.map((g,v)=>({diff:x(g-p,0),index:v})).sort((g,v)=>A(g.diff)-A(v.diff)),{index:f}=h[0];return{index:f,distance:p}}function x(u,p){const h=[u,u+n,u-n];if(!e)return u;if(!p)return c(h);const f=h.filter(g=>Ie(g)===p);return f.length?c(f):R(h)-n}function d(u,p){const h=t[u]-i.get(),f=x(h,p);return{index:u,distance:f}}function m(u,p){const h=i.get()+u,{index:f,distance:g}=l(h),v=!e&&s(h);if(!p||v)return{index:f,distance:u};const j=t[f]-g,I=u+x(j,0);return{index:f,distance:I}}return{byDistance:m,byIndex:d,shortcut:x}}function qt(e,t,n,o,i,s,r){function a(d){const m=d.distance,b=d.index!==t.get();s.add(m),m&&(o.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(n.set(t.get()),t.set(d.index),r.emit("select"))}function c(d,m){const b=i.byDistance(d,m);a(b)}function l(d,m){const b=t.clone().set(d),u=i.byIndex(b.get(),m);a(u)}return{distance:c,index:l}}function Ut(e,t,n,o,i,s,r,a){const c={passive:!0,capture:!0};let l=0;function x(b){if(!a)return;function u(p){if(new Date().getTime()-l>10)return;r.emit("slideFocusStart"),e.scrollLeft=0;const g=n.findIndex(v=>v.includes(p));Te(g)&&(i.useDuration(0),o.index(g,0),r.emit("slideFocus"))}s.add(document,"keydown",d,!1),t.forEach((p,h)=>{s.add(p,"focus",f=>{(be(a)||a(b,f))&&u(h)},c)})}function d(b){b.code==="Tab"&&(l=new Date().getTime())}return{init:x}}function ue(e){let t=e;function n(){return t}function o(c){t=r(c)}function i(c){t+=r(c)}function s(c){t-=r(c)}function r(c){return Te(c)?c:c.get()}return{get:n,set:o,add:i,subtract:s}}function Xe(e,t){const n=e.scroll==="x"?r:a,o=t.style;let i=null,s=!1;function r(m){return`translate3d(${m}px,0px,0px)`}function a(m){return`translate3d(0px,${m}px,0px)`}function c(m){if(s)return;const b=Ct(e.direction(m));b!==i&&(o.transform=n(b),i=b)}function l(m){s=!m}function x(){s||(o.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:x,to:c,toggleActive:l}}function Ht(e,t,n,o,i,s,r,a,c){const x=de(i),d=de(i).reverse(),m=f().concat(g());function b(w,N){return w.reduce((E,O)=>E-i[O],N)}function u(w,N){return w.reduce((E,O)=>b(E,N)>0?E.concat([O]):E,[])}function p(w){return s.map((N,E)=>({start:N-o[E]+.5+w,end:N+t-.5+w}))}function h(w,N,E){const O=p(N);return w.map(k=>{const z=E?0:-n,V=E?n:0,$=E?"end":"start",q=O[k][$];return{index:k,loopPoint:q,slideLocation:ue(-1),translate:Xe(e,c[k]),target:()=>a.get()>q?z:V}})}function f(){const w=r[0],N=u(d,w);return h(N,n,!1)}function g(){const w=t-r[0]-1,N=u(x,w);return h(N,-n,!0)}function v(){return m.every(({index:w})=>{const N=x.filter(E=>E!==w);return b(N,t)<=.1})}function j(){m.forEach(w=>{const{target:N,translate:E,slideLocation:O}=w,k=N();k!==O.get()&&(E.to(k),O.set(k))})}function I(){m.forEach(w=>w.translate.clear())}return{canLoop:v,clear:I,loop:j,loopPoints:m}}function Gt(e,t,n){let o,i=!1;function s(c){if(!n)return;function l(x){for(const d of x)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}o=new MutationObserver(x=>{i||(be(n)||n(c,x))&&l(x)}),o.observe(e,{childList:!0})}function r(){o&&o.disconnect(),i=!0}return{init:s,destroy:r}}function _t(e,t,n,o){const i={};let s=null,r=null,a,c=!1;function l(){a=new IntersectionObserver(u=>{c||(u.forEach(p=>{const h=t.indexOf(p.target);i[h]=p}),s=null,r=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:o}),t.forEach(u=>a.observe(u))}function x(){a&&a.disconnect(),c=!0}function d(u){return me(i).reduce((p,h)=>{const f=parseInt(h),{isIntersecting:g}=i[f];return(u&&g||!u&&!g)&&p.push(f),p},[])}function m(u=!0){if(u&&s)return s;if(!u&&r)return r;const p=d(u);return u&&(s=p),u||(r=p),p}return{init:l,destroy:x,get:m}}function Qt(e,t,n,o,i,s){const{measureSize:r,startEdge:a,endEdge:c}=e,l=n[0]&&i,x=u(),d=p(),m=n.map(r),b=h();function u(){if(!l)return 0;const g=n[0];return A(t[a]-g[a])}function p(){if(!l)return 0;const g=s.getComputedStyle(R(o));return parseFloat(g.getPropertyValue(`margin-${c}`))}function h(){return n.map((g,v,j)=>{const I=!v,C=De(j,v);return I?m[v]+x:C?m[v]+d:j[v+1][a]-g[a]}).map(A)}return{slideSizes:m,slideSizesWithGaps:b,startGap:x,endGap:d}}function Jt(e,t,n,o,i,s,r,a,c){const{startEdge:l,endEdge:x,direction:d}=e,m=Te(n);function b(f,g){return de(f).filter(v=>v%g===0).map(v=>f.slice(v,v+g))}function u(f){return f.length?de(f).reduce((g,v,j)=>{const I=R(g)||0,C=I===0,w=v===he(f),N=i[l]-s[I][l],E=i[l]-s[v][x],O=!o&&C?d(r):0,k=!o&&w?d(a):0,z=A(E-k-(N+O));return j&&z>t+c&&g.push(v),w&&g.push(f.length),g},[]).map((g,v,j)=>{const I=Math.max(j[v-1]||0);return f.slice(I,g)}):[]}function p(f){return m?b(f,n):u(f)}return{groupSlides:p}}function Xt(e,t,n,o,i,s,r){const{align:a,axis:c,direction:l,startIndex:x,loop:d,duration:m,dragFree:b,dragThreshold:u,inViewThreshold:p,slidesToScroll:h,skipSnaps:f,containScroll:g,watchResize:v,watchSlides:j,watchDrag:I,watchFocus:C}=s,w=2,N=Dt(),E=N.measure(t),O=n.map(N.measure),k=kt(c,l),z=k.measureSize(E),V=At(z),$=Et(a,z),q=!d&&!!g,W=d||!!g,{slideSizes:Y,slideSizesWithGaps:G,startGap:_,endGap:ie}=Qt(k,E,O,n,W,i),U=Jt(k,z,h,d,E,O,_,ie,w),{snaps:re,snapsAligned:oe}=Rt(k,$,E,O,U),Q=-R(re)+R(G),{snapsContained:ce,scrollContainLimit:ae}=Ft(z,Q,oe,g,w),K=q?ce:oe,{limit:M}=zt(Q,K,d),J=Je(he(K),x,d),B=J.clone(),D=de(n),y=({dragHandler:se,scrollBody:je,scrollBounds:Ce,options:{loop:xe}})=>{xe||Ce.constrain(se.pointerDown()),je.seek()},T=({scrollBody:se,translate:je,location:Ce,offsetLocation:xe,previousLocation:it,scrollLooper:ct,slideLooper:at,dragHandler:lt,animation:ut,eventHandler:Fe,scrollBounds:ft,options:{loop:ze}},Ke)=>{const Be=se.settled(),dt=!ft.shouldConstrain(),Re=ze?Be:Be&&dt,Ve=Re&&!lt.pointerDown();Ve&&ut.stop();const mt=Ce.get()*Ke+it.get()*(1-Ke);xe.set(mt),ze&&(ct.loop(se.direction()),at.loop()),je.to(xe.get()),Ve&&Fe.emit("settle"),Re||Fe.emit("scroll")},P=Lt(o,i,()=>y(Ne),se=>T(Ne,se)),F=.68,H=K[J.get()],X=ue(H),ee=ue(H),Z=ue(H),te=ue(H),le=Pt(X,Z,ee,te,m,F),ve=$t(d,K,Q,M,te),we=qt(P,J,B,le,ve,te,r),Oe=Bt(M),Pe=pe(),ot=_t(t,n,r,p),{slideRegistry:Me}=Vt(q,g,K,ae,U,D),st=Ut(e,n,Me,we,le,Pe,r,C),Ne={ownerDocument:o,ownerWindow:i,eventHandler:r,containerRect:E,slideRects:O,animation:P,axis:k,dragHandler:Tt(k,e,o,i,te,It(k,i),X,P,we,le,ve,J,r,V,b,u,f,F,I),eventStore:Pe,percentOfView:V,index:J,indexPrevious:B,limit:M,location:X,offsetLocation:Z,previousLocation:ee,options:s,resizeHandler:Ot(t,r,i,n,k,v,N),scrollBody:le,scrollBounds:Mt(M,Z,te,le,V),scrollLooper:Kt(Q,M,Z,[X,Z,ee,te]),scrollProgress:Oe,scrollSnapList:K.map(Oe.get),scrollSnaps:K,scrollTarget:ve,scrollTo:we,slideLooper:Ht(k,z,Q,Y,G,re,K,Z,n),slideFocus:st,slidesHandler:Gt(t,r,j),slidesInView:ot,slideIndexes:D,slideRegistry:Me,slidesToScroll:U,target:te,translate:Xe(k,t)};return Ne}function Yt(){let e={},t;function n(l){t=l}function o(l){return e[l]||[]}function i(l){return o(l).forEach(x=>x(t,l)),c}function s(l,x){return e[l]=o(l).concat([x]),c}function r(l,x){return e[l]=o(l).filter(d=>d!==x),c}function a(){e={}}const c={init:n,emit:i,off:r,on:s,clear:a};return c}const Zt={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 Wt(e){function t(s,r){return Qe(s,r||{})}function n(s){const r=s.breakpoints||{},a=me(r).filter(c=>e.matchMedia(c).matches).map(c=>r[c]).reduce((c,l)=>t(c,l),{});return t(s,a)}function o(s){return s.map(r=>me(r.breakpoints||{})).reduce((r,a)=>r.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:o}}function en(e){let t=[];function n(s,r){return t=r.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(s,e)),r.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function o(){t=t.filter(s=>s.destroy())}return{init:n,destroy:o}}function ye(e,t,n){const o=e.ownerDocument,i=o.defaultView,s=Wt(i),r=en(s),a=pe(),c=Yt(),{mergeOptions:l,optionsAtMedia:x,optionsMediaQueries:d}=s,{on:m,off:b,emit:u}=c,p=k;let h=!1,f,g=l(Zt,ye.globalOptions),v=l(g),j=[],I,C,w;function N(){const{container:D,slides:y}=v;C=(Ee(D)?e.querySelector(D):D)||e.children[0];const P=Ee(y)?C.querySelectorAll(y):y;w=[].slice.call(P||C.children)}function E(D){const y=Xt(e,C,w,o,i,D,c);if(D.loop&&!y.slideLooper.canLoop()){const T=Object.assign({},D,{loop:!1});return E(T)}return y}function O(D,y){h||(g=l(g,D),v=x(g),j=y||j,N(),f=E(v),d([g,...j.map(({options:T})=>T)]).forEach(T=>a.add(T,"change",k)),v.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(B),f.eventHandler.init(B),f.resizeHandler.init(B),f.slidesHandler.init(B),f.options.loop&&f.slideLooper.loop(),C.offsetParent&&w.length&&f.dragHandler.init(B),I=r.init(B,j)))}function k(D,y){const T=U();z(),O(l({startIndex:T},D),y),c.emit("reInit")}function z(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),r.destroy(),a.clear()}function V(){h||(h=!0,a.clear(),z(),c.emit("destroy"),c.clear())}function $(D,y,T){!v.active||h||(f.scrollBody.useBaseFriction().useDuration(y===!0?0:v.duration),f.scrollTo.index(D,T||0))}function q(D){const y=f.index.add(1).get();$(y,D,-1)}function W(D){const y=f.index.add(-1).get();$(y,D,1)}function Y(){return f.index.add(1).get()!==U()}function G(){return f.index.add(-1).get()!==U()}function _(){return f.scrollSnapList}function ie(){return f.scrollProgress.get(f.offsetLocation.get())}function U(){return f.index.get()}function re(){return f.indexPrevious.get()}function oe(){return f.slidesInView.get()}function Q(){return f.slidesInView.get(!1)}function ce(){return I}function ae(){return f}function K(){return e}function M(){return C}function J(){return w}const B={canScrollNext:Y,canScrollPrev:G,containerNode:M,internalEngine:ae,destroy:V,off:b,on:m,emit:u,plugins:ce,previousScrollSnap:re,reInit:p,rootNode:K,scrollNext:q,scrollPrev:W,scrollProgress:ie,scrollSnapList:_,scrollTo:$,selectedScrollSnap:U,slideNodes:J,slidesInView:oe,slidesNotInView:Q};return O(t,n),setTimeout(()=>c.emit("init"),0),B}ye.globalOptions=void 0;function Ae(e={},t=[]){const n=L.useRef(e),o=L.useRef(t),[i,s]=L.useState(),[r,a]=L.useState(),c=L.useCallback(()=>{i&&i.reInit(n.current,o.current)},[i]);return L.useEffect(()=>{ke(n.current,e)||(n.current=e,c())},[e,c]),L.useEffect(()=>{Nt(o.current,t)||(o.current=t,c())},[t,c]),L.useEffect(()=>{if(wt()&&r){ye.globalOptions=Ae.globalOptions;const l=ye(r,n.current,o.current);return s(l),()=>l.destroy()}else s(void 0)},[r,s]),[a,i]}Ae.globalOptions=void 0;const Ye=L.createContext(null);function Se(){const e=L.useContext(Ye);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Ze=L.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:o,className:i,children:s,...r},a)=>{const[c,l]=Ae({...t,axis:e==="horizontal"?"x":"y"},o),[x,d]=L.useState(!1),[m,b]=L.useState(!1),u=L.useCallback(g=>{g&&(d(g.canScrollPrev()),b(g.canScrollNext()))},[]),p=L.useCallback(()=>{l?.scrollPrev()},[l]),h=L.useCallback(()=>{l?.scrollNext()},[l]),f=L.useCallback(g=>{g.key==="ArrowLeft"?(g.preventDefault(),p()):g.key==="ArrowRight"&&(g.preventDefault(),h())},[p,h]);return L.useEffect(()=>{!l||!n||n(l)},[l,n]),L.useEffect(()=>{if(l)return u(l),l.on("reInit",u),l.on("select",u),()=>{l?.off("select",u)}},[l,u]),S.jsx(Ye.Provider,{value:{carouselRef:c,api:l,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:p,scrollNext:h,canScrollPrev:x,canScrollNext:m},children:S.jsx("div",{ref:a,onKeyDownCapture:f,className:ge("relative",i),role:"region","aria-roledescription":"carousel",...r,children:s})})});Ze.displayName="Carousel";const We=L.forwardRef(({className:e,...t},n)=>{const{carouselRef:o,orientation:i}=Se();return S.jsx("div",{ref:o,className:"overflow-hidden",children:S.jsx("div",{ref:n,className:ge("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});We.displayName="CarouselContent";const et=L.forwardRef(({className:e,...t},n)=>{const{orientation:o}=Se();return S.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:ge("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",e),...t})});et.displayName="CarouselItem";const tn=L.forwardRef(({className:e,variant:t="outline",size:n="icon",...o},i)=>{const{orientation:s,scrollPrev:r,canScrollPrev:a}=Se();return S.jsxs(_e,{ref:i,variant:t,size:n,className:ge("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:r,...o,children:[S.jsx(xt,{className:"h-4 w-4"}),S.jsx("span",{className:"sr-only",children:"Previous slide"})]})});tn.displayName="CarouselPrevious";const nn=L.forwardRef(({className:e,variant:t="outline",size:n="icon",...o},i)=>{const{orientation:s,scrollNext:r,canScrollNext:a}=Se();return S.jsxs(_e,{ref:i,variant:t,size:n,className:ge("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:r,...o,children:[S.jsx(pt,{className:"h-4 w-4"}),S.jsx("span",{className:"sr-only",children:"Next slide"})]})});nn.displayName="CarouselNext";const tt=[{image:yt,nameKey:"operatorStory.can.name",roleKey:"operatorStory.can.role",quoteKey:"operatorStory.can.quote",credentialKey:"operatorStory.can.credential",credentialDetailKey:"operatorStory.can.credentialDetail",credentialUrl:"https://www.instagram.com/heyoval/",linkedinUrl:"https://www.linkedin.com/in/koseoglu/",altText:"Can Koseoglu, Cendra Co-founder"}],nt=[{image:bt,nameKey:"operatorStory.mumin.name",roleKey:"operatorStory.mumin.role",quoteKey:"operatorStory.mumin.quote",credentialKey:"operatorStory.mumin.credential",credentialDetailKey:"operatorStory.mumin.credentialDetail",credentialUrl:"#",linkedinUrl:"https://www.linkedin.com/in/mumin-sahin/",altText:"Mumin Sahin, Cendra Co-founder & Lead Engineer"},{image:St,nameKey:"operatorStory.ali.name",roleKey:"operatorStory.ali.role",quoteKey:"operatorStory.ali.quote",credentialKey:"operatorStory.ali.credential",credentialDetailKey:"operatorStory.ali.credentialDetail",credentialUrl:"#",linkedinUrl:"https://www.linkedin.com/in/aliozaltin/",altText:"Ali Ozaltin, Cendra Co-founder & CTO"}],Ge=[...tt,...nt];function rt({founder:e,isActive:t,t:n}){return S.jsxs("article",{className:`
relative rounded-3xl p-8 md:p-10
transition-all duration-500 ease-out
h-full flex flex-col
${t!==!1?"bg-background shadow-xl shadow-primary/5 border border-border/50":"bg-muted/30 shadow-lg shadow-primary/3 border border-transparent"}
hover:shadow-2xl hover:shadow-primary/10
hover:-translate-y-1
group
`,"aria-label":`Founder profile: ${n(e.nameKey)}`,children:[S.jsxs("header",{className:"flex items-center gap-5 mb-8",children:[S.jsxs("div",{className:"relative",children:[S.jsx("img",{src:e.image,alt:e.altText,className:`w-20 h-20 md:w-24 md:h-24 rounded-full object-cover
ring-4 ring-background shadow-lg
transition-transform duration-300 group-hover:scale-105`,loading:"lazy"}),S.jsx("div",{className:`absolute inset-0 rounded-full bg-primary/10 opacity-0
group-hover:opacity-100 transition-opacity duration-300 blur-xl -z-10`})]}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("h3",{className:"text-xl md:text-2xl font-semibold text-foreground tracking-tight",children:n(e.nameKey)}),S.jsx("p",{className:"text-sm md:text-base text-muted-foreground mt-1 font-medium",children:n(e.roleKey)})]})]}),S.jsx("blockquote",{className:"flex-1 mb-8",children:S.jsx("p",{className:`text-foreground/90 text-base md:text-lg leading-relaxed md:leading-loose
tracking-wide`,dangerouslySetInnerHTML:{__html:n(e.quoteKey)}})}),S.jsxs("footer",{className:"pt-6 border-t border-border/50 flex items-end justify-between gap-4",children:[S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("a",{href:e.credentialUrl,target:"_blank",rel:"noopener noreferrer",className:`text-sm md:text-base font-semibold text-primary
hover:text-primary/80 transition-colors
inline-flex items-center gap-1 group/link`,children:S.jsxs("span",{className:"relative",children:[n(e.credentialKey),S.jsx("span",{className:`absolute bottom-0 left-0 w-0 h-px bg-primary
group-hover/link:w-full transition-all duration-300`})]})}),S.jsx("p",{className:"text-xs md:text-sm text-muted-foreground mt-1.5 leading-relaxed",children:n(e.credentialDetailKey)})]}),S.jsx("a",{href:e.linkedinUrl,target:"_blank",rel:"noopener noreferrer",className:`flex-shrink-0 w-10 h-10 rounded-full
bg-muted/50 hover:bg-primary/10
flex items-center justify-center
text-muted-foreground hover:text-primary
transition-all duration-300
hover:scale-110`,"aria-label":`Connect with ${n(e.nameKey)} on LinkedIn`,children:S.jsx(ht,{className:"w-5 h-5"})})]})]})}function rn({t:e}){const[t,n]=L.useState(),[o,i]=L.useState(0);L.useEffect(()=>{t&&(i(t.selectedScrollSnap()),t.on("select",()=>{i(t.selectedScrollSnap())}))},[t]);const s=L.useCallback(r=>{t?.scrollTo(r)},[t]);return S.jsxs("div",{className:"md:hidden -mx-4 sm:-mx-6 overflow-visible",children:[S.jsx(Ze,{setApi:n,opts:{align:"start",loop:!0},className:"w-full",children:S.jsx(We,{className:"ml-4",children:Ge.map((r,a)=>S.jsx(et,{className:"basis-[82%] sm:basis-[80%] pr-4",children:S.jsx("div",{className:`transition-all duration-500 ease-out origin-center ${a===o?"scale-100 opacity-100":"scale-[0.96] opacity-60"}`,children:S.jsx(rt,{founder:r,isActive:a===o,t:e})})},a))})}),S.jsx("div",{className:"flex justify-center items-center gap-3 mt-8 px-4",role:"tablist","aria-label":"Founder cards",children:Ge.map((r,a)=>S.jsx("button",{onClick:()=>s(a),role:"tab","aria-selected":a===o,className:`h-2 rounded-full transition-all duration-500 ease-out ${a===o?"bg-primary w-8":"bg-primary/20 w-2 hover:bg-primary/40"}`,"aria-label":`View founder ${a+1}`},a))})]})}function on({activeView:e,setActiveView:t,t:n}){return S.jsxs("div",{className:"hidden md:flex justify-center gap-2 mt-6 mb-12",role:"tablist","aria-label":"Founder category tabs",children:[S.jsx("button",{onClick:()=>t("operators"),role:"tab","aria-selected":e==="operators",className:`px-5 py-2.5 rounded-full text-sm font-medium transition-all duration-300
focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2
${e==="operators"?"bg-primary text-primary-foreground shadow-md":"bg-muted text-muted-foreground hover:bg-muted/80"}`,children:n("operatorStory.tabOperators")}),S.jsx("button",{onClick:()=>t("technical"),role:"tab","aria-selected":e==="technical",className:`px-5 py-2.5 rounded-full text-sm font-medium transition-all duration-300
focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2
${e==="technical"?"bg-primary text-primary-foreground shadow-md":"bg-muted text-muted-foreground hover:bg-muted/80"}`,children:n("operatorStory.tabTechnical")})]})}function un(){const{t:e}=gt("compare"),[t,n]=L.useState("operators");return S.jsx("section",{className:"py-16 md:py-24 px-4 sm:px-6 lg:px-8 bg-muted/30",children:S.jsxs("div",{className:"max-w-6xl mx-auto",children:[S.jsxs("header",{className:"text-center mb-10 md:mb-14",children:[S.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full bg-primary/10 text-primary text-sm font-medium mb-4 tracking-wide",children:e("operatorStory.label")}),S.jsx("h2",{className:"text-2xl md:text-4xl font-bold text-foreground tracking-tight mb-3",children:e("operatorStory.title")}),S.jsx("p",{className:"text-muted-foreground text-base md:text-lg max-w-2xl mx-auto leading-relaxed",children:e("operatorStory.subtitle")})]}),S.jsx(on,{activeView:t,setActiveView:n,t:e}),S.jsx("div",{className:"hidden md:block",children:S.jsx("div",{className:`grid gap-6 ${t==="operators"?"grid-cols-1 max-w-lg mx-auto":"grid-cols-2"}`,children:(t==="operators"?tt:nt).map((o,i)=>S.jsx(rt,{founder:o,t:e},i))})}),S.jsx(rn,{t:e}),S.jsx("p",{className:"text-center text-sm text-muted-foreground mt-10 md:mt-14",children:e("operatorStory.teamLine")})]})})}export{Ze as C,un as O,We as a,et as b};