PageSourceSearch

https://www.fc-union-berlin.de/assets/Carousel-C_DiXssB.js

js fc-union-berlin.de collected 2026-10-02 06:43:56 UTC 24,084 bytes, 1 lines download raw bytes

1import{r as E,j as F}from"./url-D6PfGXiy.js";import{a as nt,i as Gt,m as ce}from"./TopTabBar-Bql5_IpW.js";import{m as ue}from"./arrow-left-DODCSzaw.js";function ae(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ft(t){return ae(t)||Array.isArray(t)}function le(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Nt(t,n){const o=Object.keys(t),r=Object.keys(n);if(o.length!==r.length)return!1;const c=JSON.stringify(Object.keys(t.breakpoints||{})),s=JSON.stringify(Object.keys(n.breakpoints||{}));return c!==s?!1:o.every(e=>{const u=t[e],i=n[e];return typeof u=="function"?`${u}`==`${i}`:!Ft(u)||!Ft(i)?u===i:Nt(u,i)})}function zt(t){return t.concat().sort((n,o)=>n.name>o.name?1:-1).map(n=>n.options)}function fe(t,n){if(t.length!==n.length)return!1;const o=zt(t),r=zt(n);return o.every((c,s)=>{const e=r[s];return Nt(c,e)})}function Lt(t){return typeof t=="number"}function Ct(t){return typeof t=="string"}function Pt(t){return typeof t=="boolean"}function Rt(t){return Object.prototype.toString.call(t)==="[object Object]"}function D(t){return Math.abs(t)}function At(t){return Math.sign(t)}function lt(t,n){return D(t-n)}function de(t,n){if(t===0||n===0||D(t)<=D(n))return 0;const o=lt(D(t),D(n));return D(o/t)}function ft(t){return dt(t).map(Number)}function R(t){return t[mt(t)]}function mt(t){return Math.max(0,t.length-1)}function Dt(t,n){return n===mt(t)}function Ht(t,n=0){return Array.from(Array(t),(o,r)=>n+r)}function dt(t){return Object.keys(t)}function $t(t,n){return[t,n].reduce((o,r)=>(dt(r).forEach(c=>{const s=o[c],e=r[c],u=Rt(s)&&Rt(e);o[c]=u?$t(s,e):e}),o),{})}function qt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function pe(t,n){const o={start:r,center:c,end:s};function r(){return 0}function c(i){return s(i)/2}function s(i){return n-i}function e(i,l){return Ct(t)?o[t](i):t(n,i,l)}return{measure:e}}function pt(){let t=[];function n(c,s,e,u={passive:!0}){let i;if("addEventListener"in c)c.addEventListener(s,e,u),i=()=>c.removeEventListener(s,e,u);else{const l=c;l.addListener(e),i=()=>l.removeListener(e)}return t.push(i),r}function o(){t=t.filter(c=>c())}const r={add:n,clear:o};return r}function me(t,n,o,r){const c=pt(),s=1e3/60;let e=null,u=0,i=0;function l(){c.add(t,"visibilitychange",()=>{t.hidden&&m()})}function y(){g(),c.clear()}function a(S){e||(e=S);const f=S-e;for(e=S,u+=f;u>=s;)o(),u-=s;const h=D(u/s);r(h),i&&n.requestAnimationFrame(a)}function d(){i||(i=n.requestAnimationFrame(a))}function g(){n.cancelAnimationFrame(i),e=null,u=0,i=0}function m(){e=null,u=0}return{init:l,destroy:y,start:d,stop:g,update:o,render:r}}function ge(t,n){const o=t==="y"?"y":"x",r=t==="y"?"x":"y",c=u(),s=i();function e(y){const{width:a,height:d}=y;return o==="x"?a:d}function u(){return o==="y"?"top":n==="rtl"?"right":"left"}function i(){return o==="y"?"bottom":n==="rtl"?"left":"right"}return{scroll:o,cross:r,startEdge:c,endEdge:s,measureSize:e}}function ot(t=0,n=0){const o=D(t-n);function r(l){return l<t}function c(l){return l>n}function s(l){return r(l)||c(l)}function e(l){return s(l)?r(l)?t:n:l}function u(l){return o?l-o*Math.ceil((l-n)/o):l}return{length:o,max:n,min:t,constrain:e,reachedAny:s,reachedMax:c,reachedMin:r,removeOffset:u}}function Kt(t,n,o){const{constrain:r}=ot(0,t),c=t+1;let s=e(n);function e(d){return o?D((c+d)%c):r(d)}function u(){return s}function i(d){return s=e(d),a}function l(d){return y().set(u()+d)}function y(){return Kt(t,u(),o)}const a={get:u,set:i,add:l,clone:y};return a}function he(t){const n=t==="rtl"?-1:1;function o(c){return c*n}return{apply:o}}function ye(t,n,o,r,c,s,e,u,i,l,y,a,d,g,m,p,S,f,h,b){const{cross:v}=t,I=["INPUT","SELECT","TEXTAREA"],P={passive:!1},T=pt(),w=pt(),C=ot(50,225).constrain(m.measure(20)),N={mouse:300,touch:400},A={mouse:500,touch:600},k=p?43:25;let H=!1,G=0,U=0,$=!1,_=!1,W=!1,Q=!1;function it(x){if(!b)return;function L(V){(Pt(b)||b(x,V))&&ut(V)}const M=o;T.add(M,"dragstart",V=>V.preventDefault(),P).add(M,"touchmove",()=>{},P).add(M,"touchend",()=>{}).add(M,"touchstart",L).add(M,"mousedown",L).add(M,"touchcancel",B).add(M,"contextmenu",B).add(M,"click",J,!0)}function q(){T.clear(),w.clear()}
vendor: 5,186 bytes, line 1
1function rt(){const x=Q?r:o;w.add(x,"touchmove",j,P).add(x,"touchend",B).add(x,"mousemove",j,P).add(x,"mouseup",B)}function st(x){const L=x.nodeName||"";return I.includes(L)}function X(){return(p?A:N)[Q?"mouse":"touch"]}function ct(x,L){const M=d.add(At(x)*-1),V=a.byDistance(x,!p).distance;return p||D(x)<C?V:f&&L?V*.5:a.byIndex(M.get(),0).distance}function ut(x){const L=qt(x,c);Q=L,!(L&&x.button!==0)&&(st(x.target)||(W=p&&L&&!x.buttons&&H,H=lt(s.get(),u.get())>=2,$=!0,e.pointerDown(x),y.useFriction(0).useDuration(0),s.set(u),rt(),G=e.readPoint(x),U=e.readPoint(x,v),g.emit("pointerDown")))}function j(x){const L=e.readPoint(x),M=e.readPoint(x,v),V=lt(L,G),Z=lt(M,U);if(!_&&!Q&&(!x.cancelable||(_=V>Z,!_)))return B(x);const K=e.pointerMove(x);V>S&&(W=!0),y.useFriction(.3).useDuration(1),i.start(),s.add(n.apply(K)),x.preventDefault()}function B(x){const M=a.byDistance(0,!1).index!==d.get(),V=e.pointerUp(x)*X(),Z=ct(n.apply(V),M),K=de(V,Z),tt=k-10*K,Y=h+K/50;_=!1,$=!1,w.clear(),y.useDuration(tt).useFriction(Y),l.distance(Z,!p),Q=!1,g.emit("pointerUp")}function J(x){W&&(x.stopPropagation(),x.preventDefault())}function z(){return $}return{init:it,pointerDown:z,destroy:q}}function Se(t,n){let r,c;function s(a){return a.timeStamp}function e(a,d){const m=`client${(d||t.scroll)==="x"?"X":"Y"}`;return(qt(a,n)?a:a.touches[0])[m]}function u(a){return r=a,c=a,e(a)}function i(a){const d=e(a)-e(c),g=s(a)-s(r)>170;return c=a,g&&(r=a),d}function l(a){if(!r||!c)return 0;const d=e(c)-e(r),g=s(a)-s(r),m=s(a)-s(c)>170,p=d/g;return g&&!m&&D(p)>.1?p:0}return{pointerDown:u,pointerMove:i,pointerUp:l,readPoint:e}}function xe(){function t(o){const{offsetTop:r,offsetLeft:c,offsetWidth:s,offsetHeight:e}=o;return{top:r,right:c+s,bottom:r+e,left:c,width:s,height:e}}return{measure:t}}function be(t){function n(r){return t*(r/100)}return{measure:n}}function we(t,n,o,r,c,s,e){let u,i,l=[],y=!1;function a(p){return c.measureSize(e.measure(p))}function d(p){if(!s)return;i=a(t),l=r.map(a);function S(h){for(const b of h){const v=b.target===t,I=r.indexOf(b.target),P=v?i:l[I],T=a(v?t:r[I]);if(D(T-P)>=.5){o.requestAnimationFrame(()=>{p.reInit(),n.emit("resize")});break}}}u=new ResizeObserver(h=>{y||(Pt(s)||s(p,h))&&S(h)}),[t].concat(r).forEach(h=>u.observe(h))}function g(){u&&u.disconnect(),y=!0}return{init:d,destroy:g}}function ve(t,n,o,r,c){let s=0,e=0,u=r,i=c,l=t.get(),y=0;function a(){const I=o.get()-t.get(),P=!u;let T=0;return P?(s=0,t.set(o),T=I):(s+=I/u,s*=i,l+=s,t.add(s),T=l-y),e=At(T),y=l,v}function d(){const I=o.get()-n.get();return D(I)<.001}function g(){return u}function m(){return e}function p(){return s}function S(){return h(r)}function f(){return b(c)}function h(I){return u=I,v}function b(I){return i=I,v}const v={direction:m,duration:g,velocity:p,seek:a,settled:d,useBaseFriction:f,useBaseDuration:S,useFriction:b,useDuration:h};return v}function Ee(t,n,o,r,c){const s=c.measure(10),e=c.measure(50),u=ot(.1,.99);let i=!1;function l(){return!(i||!t.reachedAny(o.get())||!t.reachedAny(n.get()))}function y(g){if(!l())return;const m=t.reachedMin(n.get())?"min":"max",p=D(t[m]-n.get()),S=o.get()-n.get(),f=u.constrain(p/e);o.subtract(S*f),!g&&D(S)<s&&(o.set(t.constrain(o.get())),r.useDuration(25).useBaseFriction())}function a(g){i=!g}return{constrain:y,toggleActive:a}}function Ie(t,n,o,r,c){const s=ot(-n+t,0),e=a(),u=y(),i=d();function l(m,p){return lt(m,p)<1}function y(){const m=e[0],p=R(e),S=e.lastIndexOf(m),f=e.indexOf(p)+1;return ot(S,f)}function a(){return o.map((m,p)=>{const{min:S,max:f}=s,h=s.constrain(m),b=!p,v=Dt(o,p);return b?f:v||l(S,h)?S:l(f,h)?f:h}).map(m=>parseFloat(m.toFixed(3)))}function d(){if(n<=t+c)return[s.max];if(r==="keepSnaps")return e;const{min:m,max:p}=u;return e.slice(m,p)}return{snapsContained:i,scrollContainLimit:u}}function Ce(t,n,o){const r=n[0],c=o?r-t:R(n);return{limit:ot(c,r)}}function Ne(t,n,o,r){const s=n.min+.1,e=n.max+.1,{reachedMin:u,reachedMax:i}=ot(s,e);function l(d){return d===1?i(o.get()):d===-1?u(o.get()):!1}function y(d){if(!l(d))return;const g=t*(d*-1);r.forEach(m=>m.add(g))}return{loop:y}}function Le(t){const{max:n,length:o}=t;function r(s){const e=s-n;return o?e/-o:0}return{get:r}}function Pe(t,n,o,r,c){const{startEdge:s,endEdge:e}=t,{groupSlides:u}=c,i=a().map(n.measure),l=d(),y=g();function a(){return u(r).map(p=>R(p)[e]-p[0][s]).map(D)}function d(){return r.map(p=>o[s]-p[s]).map(p=>-D(p))}function g(){return u(l).map(p=>p[0]).map((p,S)=>p+i[S])}return{snaps:l,snapsAligned:y}}function Ae(t,n,o,r,c,s){const{groupSlides:e}=c,{min:u,max:i}=r,l=y();function y(){const d=e(s),g=!t||n==="keepSnaps";return o.length===1?[s]:g?d:d.slice(u,i).map((m,p,S)=>{const f=!p,h=Dt(S,p);if(f){const b=R(S[0])+1;return Ht(b)}if(h){const b=mt(s)-R(S)[0]+1;return Ht(b,R(S)[0])}return m})}return{slideRegistry:l}}function De(t,n,o,r,c){const{reachedAny:s,removeOffset:e,constrain:u}=r;function i(m){return m.concat().sort((p,S)=>D(p)-D(S))[0]}function l(m){const p=t?e(m):u(m),S=n.map(h=>h-p).map(h=>y(h,0)).map((h,b)=>({diff:h,index:b})).sort((h,b)=>D(h.diff)-D(b.diff)),{index:f}=S[0];return{index:f,distance:p}}function y(m,p){const S=[m,m+o,m-o];if(!t)return S[0];if(!p)return i(S);const f=S.filter(h=>At(h)===p);
1return f.length?i(f):R(S)-o}function a(m,p){const S=n[m]-c.get(),f=y(S,p);return{index:m,distance:f}}function d(m,p){const S=c.get()+m,{index:f,distance:h}=l(S),b=!t&&s(S);if(!p||b)return{index:f,distance:m};const v=n[f]-h,I=m+y(v,0);return{index:f,distance:I}}return{byDistance:d,byIndex:a,shortcut:y}}function Oe(t,n,o,r,c,s,e){function u(a){const d=a.distance,g=a.index!==n.get();s.add(d),d&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),g&&(o.set(n.get()),n.set(a.index),e.emit("select"))}function i(a,d){const g=c.byDistance(a,d);u(g)}function l(a,d){const g=n.clone().set(a),m=c.byIndex(g.get(),d);u(m)}return{distance:i,index:l}}function Te(t,n,o,r,c,s){let e=0;function u(){s.add(document,"keydown",i,!1),n.forEach(l)}function i(a){a.code==="Tab"&&(e=new Date().getTime())}function l(a){const d=()=>{if(new Date().getTime()-e>10)return;t.scrollLeft=0;const p=n.indexOf(a),S=o.findIndex(f=>f.includes(p));Lt(S)&&(c.useDuration(0),r.index(S,0))};s.add(a,"focus",d,{passive:!0,capture:!0})}return{init:u}}function St(t){let n=t;function o(){return n}function r(i){n=e(i)}function c(i){n+=e(i)}function s(i){n-=e(i)}function e(i){return Lt(i)?i:i.get()}return{get:o,set:r,add:c,subtract:s}}function Ut(t,n,o){const r=t.scroll==="x"?e:u,c=o.style;let s=!1;function e(d){return`translate3d(${d}px,0px,0px)`}function u(d){return`translate3d(0px,${d}px,0px)`}function i(d){s||(c.transform=r(n.apply(d)))}function l(d){s=!d}function y(){s||(c.transform="",o.getAttribute("style")||o.removeAttribute("style"))}return{clear:y,to:i,toggleActive:l}}function Me(t,n,o,r,c,s,e,u,i,l){const a=ft(s),d=ft(s).reverse(),g=h().concat(b());function m(w,C){return w.reduce((N,A)=>N-s[A],C)}function p(w,C){return w.reduce((N,A)=>m(N,C)>0?N.concat([A]):N,[])}function S(w){return e.map((C,N)=>({start:C-c[N]+.5+w,end:C+o-.5+w}
vendor: 1,132 bytes, line 1
1))}function f(w,C,N){const A=S(C);return w.map(k=>{const H=N?0:-r,G=N?r:0,U=N?"end":"start",$=A[k][U];return{index:k,loopPoint:$,slideLocation:St(-1),translate:Ut(t,n,l[k]),target:()=>i.get()>$?H:G}})}function h(){const w=u[0],C=p(d,w);return f(C,r,!1)}function b(){const w=o-u[0]-1,C=p(a,w);return f(C,-r,!0)}function v(){return g.every(({index:w})=>{const C=a.filter(N=>N!==w);return m(C,o)<=.1})}function I(){g.forEach(w=>{const{target:C,translate:N,slideLocation:A}=w,k=C();k!==A.get()&&(N.to(k),A.set(k))})}function P(){g.forEach(w=>w.translate.clear())}return{canLoop:v,clear:P,loop:I,loopPoints:g}}function ke(t,n,o){let r,c=!1;function s(i){if(!o)return;function l(y){for(const a of y)if(a.type==="childList"){i.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(y=>{c||(Pt(o)||o(i,y))&&l(y)}),r.observe(t,{childList:!0})}function e(){r&&r.disconnect(),c=!0}return{init:s,destroy:e}}function Ve(t,n,o,r){const c={};let s=null,e=null,u,i=!1;function l(){u=new IntersectionObserver(m=>{i||(m.forEach(p=>{const S=n.indexOf(p.target);c[S]=p}),s=null,e=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:r}
1),n.forEach(m=>u.observe(m))}function y(){u&&u.disconnect(),i=!0}function a(m){return dt(c).reduce((p,S)=>{const f=parseInt(S),{isIntersecting:h}=c[f];return(m&&h||!m&&!h)&&p.push(f),p},[])}function d(m=!0){if(m&&s)return s;if(!m&&e)return e;const p=a(m);return m&&(s=p),m||(e=p),p}return{init:l,destroy:y,get:d}}function Be(t,n,o,r,c,s){const{measureSize:e,startEdge:u,endEdge:i}=t,l=o[0]&&c,y=m(),a=p(),d=o.map(e),g=S();function m(){if(!l)return 0;const h=o[0];return D(n[u]-h[u])}function p(){if(!l)return 0;const h=s.getComputedStyle(R(r));return parseFloat(h.getPropertyValue(`margin-${i}`))}function S(){return o.map((h,b,v)=>{const I=!b,P=Dt(v,b);return I?d[b]+y:P?d[b]+a:v[b+1][u]-h[u]}).map(D)}return{slideSizes:d,slideSizesWithGaps:g,startGap:y,endGap:a}}function je(t,n,o,r,c,s,e,u,i,l){const{startEdge:y,endEdge:a}=t,d=Lt(r);function g(f,h){return ft(f).filter(b=>b%h===0).map(b=>f.slice(b,b+h))}function m(f){return f.length?ft(f).reduce((h,b)=>{const v=R(h)||0,I=v===0,P=b===mt(f),T=s[y]-e[v][y],w=s[y]-e[b][a],C=!c&&I?n.apply(u):0,N=!c&&P?n.apply(i):0;return D(w-N-(T+C))>o+l&&h.push(b),P&&h.push(f.length),h},[]).map((h,b,v)=>{const I=Math.max(v[b-1]||0);return f.slice(I,h)}):[]}function p(f){return d?g(f,r):m(f)}return{groupSlides:p}}function Fe(t,n,o,r,c,s,e){const{align:u,axis:i,direction:l,startIndex:y,loop:a,duration:d,dragFree:g,dragThreshold:m,inViewThreshold:p,slidesToScroll:S,skipSnaps:f,containScroll:h,watchResize:b,watchSlides:v,watchDrag:I}=s,P=2,T=xe(),w=T.measure(n),C=o.map(T.measure),N=he(l),A=ge(i,l),k=A.measureSize(w),H=be(k),G=pe(u,k),U=!a&&!!h,$=a||!!h,{slideSizes:_,slideSizesWithGaps:W,startGap:Q,endGap:it}=Be(A,w,C,o,$,c),q=je(A,N,k,S,a,w,C,Q,it,P),{snaps:rt,snapsAligned:st}=Pe(A,G,w,C,q),X=-R(rt)+R(W),{snapsContained:ct,scrollContainLimit:ut}=Ie(k,X,st,h,P),j=U?ct:st,{limit:B}=Ce(X,j,a),J=Kt(mt(j),y,a),z=J.clone(),O=ft(o),x=({dragHandler:et,scrollBody:Et,scrollBounds:It,options:{loop:yt}})=>{yt||It.constrain(et.pointerDown()),Et.seek()},L=({scrollBody:et,translate:Et,location:It,offsetLocation:yt,scrollLooper:ee,slideLooper:ne,dragHandler:oe,animation:re,eventHandler:Vt,options:{loop:se}},ie)=>{const Bt=et.velocity(),jt=et.settled();jt&&!oe.pointerDown()&&(re.stop(),Vt.emit("settle")),jt||Vt.emit("scroll"),yt.set(It.get()-Bt+Bt*ie),se&&(ee.loop(et.direction()),ne.loop()),Et.to(yt.get())},M=me(r,c,()=>x(vt),et=>L(vt,et)),V=.68,Z=j[J.get()],K=St(Z),tt=St(Z),Y=St(Z),at=ve(K,tt,Y,d,V),bt=De(a,j,X,B,Y),wt=Oe(M,J,z,at,bt,Y,e),Tt=Le(B),Mt=pt(),Zt=Ve(n,o,e,p),{slideRegistry:kt}=Ae(U,h,j,ut,q,O),te=Te(t,o,kt,wt,at,Mt),vt={ownerDocument:r,ownerWindow:c,eventHandler:e,containerRect:w,slideRects:C,animation:M,axis:A,direction:N,dragHandler:ye(A,N,t,r,c,Y,Se(A,c),K,M,wt,at,bt,J,e,H,g,m,f,V,I),eventStore:Mt,percentOfView:H,index:J,indexPrevious:z,limit:B,location:K,offsetLocation:tt,options:s,resizeHandler:we(n,e,c,o,A,b,T),scrollBody:at,scrollBounds:Ee(B,K,Y,at,H),scrollLooper:Ne(X,B,tt,[K,tt,Y]),scrollProgress:Tt,scrollSnapList:j.map(Tt.get),scrollSnaps:j,scrollTarget:bt,scrollTo:wt,slideLooper:Me(A,N,k,X,_,W,rt,j,tt,o),slideFocus:te,slidesHandler:ke(n,e,v),slidesInView:Zt,slideIndexes:O,slideRegistry:kt,slidesToScroll:q,target:Y,translate:Ut(A,N,n)};return vt}function ze(){const t={};let n;function o(i){n=i}function r(i){return t[i]||[]}function c(i){return r(i).forEach(l=>l(n,i)),u}function s(i,l){return t[i]=r(i).concat([l]),u}function e(i,l){return t[i]=r(i).filter(y=>y!==l),u}const u={init:o,emit:c,off:e,on:s};return u}const Re={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};function He(t){function n(s,e){return $t(s,e||{})}function o(s){const e=s.breakpoints||{},u=dt(e).filter(i=>t.matchMedia(i).matches).map(i=>e[i]).reduce((i,l)=>n(i,l),{});return n(s,u)}function r(s){return s.map(e=>dt(e.breakpoints||{})).reduce((e,u)=>e.concat(u),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:o,optionsMediaQueries:r}}function Ge(t){let n=[];
vendor: 2,781 bytes, line 1
1function o(s,e){return n=e.filter(({options:u})=>t.optionsAtMedia(u).active!==!1),n.forEach(u=>u.init(s,t)),e.reduce((u,i)=>Object.assign(u,{[i.name]:i}),{})}function r(){n=n.filter(s=>s.destroy())}return{init:o,destroy:r}}function xt(t,n,o){const r=t.ownerDocument,c=r.defaultView,s=He(c),e=Ge(s),u=pt(),i=ze(),{mergeOptions:l,optionsAtMedia:y,optionsMediaQueries:a}=s,{on:d,off:g,emit:m}=i,p=A;let S=!1,f,h=l(Re,xt.globalOptions),b=l(h),v=[],I,P,T;function w(){const{container:O,slides:x}=b;P=(Ct(O)?t.querySelector(O):O)||t.children[0];const M=Ct(x)?P.querySelectorAll(x):x;T=[].slice.call(M||P.children)}function C(O){const x=Fe(t,P,T,r,c,O,i);if(O.loop&&!x.slideLooper.canLoop()){const L=Object.assign({},O,{loop:!1});return C(L)}return x}function N(O,x){S||(h=l(h,O),b=y(h),v=x||v,w(),f=C(b),a([h,...v.map(({options:L})=>L)]).forEach(L=>u.add(L,"change",A)),b.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(),f.eventHandler.init(z),f.resizeHandler.init(z),f.slidesHandler.init(z),f.options.loop&&f.slideLooper.loop(),P.offsetParent&&T.length&&f.dragHandler.init(z),I=e.init(z,v)))}function A(O,x){const L=q();k(),N(l({startIndex:L},O),x),i.emit("reInit")}function k(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),e.destroy(),u.clear()}function H(){S||(S=!0,u.clear(),k(),i.emit("destroy"))}function G(O,x,L){!b.active||S||(f.scrollBody.useBaseFriction().useDuration(x===!0?0:b.duration),f.scrollTo.index(O,L||0))}function U(O){const x=f.index.add(1).get();G(x,O,-1)}function $(O){const x=f.index.add(-1).get();G(x,O,1)}function _(){return f.index.add(1).get()!==q()}function W(){return f.index.add(-1).get()!==q()}function Q(){return f.scrollSnapList}function it(){return f.scrollProgress.get(f.location.get())}function q(){return f.index.get()}function rt(){return f.indexPrevious.get()}function st(){return f.slidesInView.get()}function X(){return f.slidesInView.get(!1)}function ct(){return I}function ut(){return f}function j(){return t}function B(){return P}function J(){return T}const z={canScrollNext:_,canScrollPrev:W,containerNode:B,internalEngine:ut,destroy:H,off:g,on:d,emit:m,plugins:ct,previousScrollSnap:rt,reInit:p,rootNode:j,scrollNext:U,scrollPrev:$,scrollProgress:it,scrollSnapList:Q,scrollTo:G,selectedScrollSnap:q,slideNodes:J,slidesInView:st,slidesNotInView:X};return N(n,o),setTimeout(()=>i.emit("init"),0),z}xt.globalOptions=void 0;function Ot(t={},n=[]){const o=E.useRef(t),r=E.useRef(n),[c,s]=E.useState(),[e,u]=E.useState(),i=E.useCallback(()=>{c&&c.reInit(o.current,r.current)},[c]);return E.useEffect(()=>{if(le()&&e){xt.globalOptions=Ot.globalOptions;
1const l=xt(e,o.current,r.current);return s(l),()=>l.destroy()}else s(void 0)},[e,s]),E.useEffect(()=>{Nt(o.current,t)||(o.current=t,i())},[t,i]),E.useEffect(()=>{fe(r.current,n)||(r.current=n,i())},[n,i]),[u,c]}Ot.globalOptions=void 0;const Qt=E.createContext(null);function gt(){const t=E.useContext(Qt);if(!t)throw new Error("useCarouselContext must be used within a <Carousel />");return t}function ht({orientation:t="horizontal",options:n={},setApi:o,plugins:r,className:c,useBackgroundVariant:s=!1,children:e,...u}){const[i,l]=E.useState(!1),[y,a]=E.useState(!1),[d,g]=Ot({...n,axis:t==="horizontal"?"x":"y"},r),m=E.useCallback(h=>{h&&(l(h.canScrollPrev()),a(h.canScrollNext()))},[]),p=E.useCallback(()=>{g==null||g.scrollPrev()},[g]),S=E.useCallback(()=>{g==null||g.scrollNext()},[g]),f=E.useCallback(h=>{h.key==="ArrowLeft"?(h.preventDefault(),p()):h.key==="ArrowRight"&&(h.preventDefault(),S())},[p,S]);return E.useEffect(()=>{!g||!o||o(g)},[g,o]),E.useEffect(()=>{if(g)return m(g),g.on("reInit",m),g.on("select",m),()=>{g==null||g.off("select",m)}},[g,m]),F.jsx(Qt.Provider,{value:{carouselRef:d,api:g,options:n,orientation:t||((n==null?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:p,scrollNext:S,canScrollPrev:i,canScrollNext:y,useBackgroundVariant:s},children:F.jsx("div",{className:nt("relative",c),role:"region","aria-roledescription":"carousel",onKeyDownCapture:f,...u,children:e})})}const Xt=E.forwardRef(({className:t,...n},o)=>{const{carouselRef:r,orientation:c}=gt();return F.jsx("div",{ref:r,className:"overflow-hidden",children:F.jsx("div",{ref:o,className:nt("flex",c==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...n})})});Xt.displayName="CarouselContent";const Jt=E.forwardRef(({className:t,...n},o)=>{const{orientation:r}=gt();return F.jsx("div",{ref:o,role:"group","aria-roledescription":"slide",className:nt("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",t),...n,children:n.children})});Jt.displayName="CarouselItem";const Yt=E.forwardRef(({className:t,variant:n="secondary",size:o,offsetControls:r,...c},s)=>{const{api:e,scrollPrev:u,canScrollPrev:i}=gt(),[l,y]=E.useState(!1);return E.useEffect(()=>{if(!e)return;const a=()=>{const d=e.slidesInView(),g=e.slidesNotInView();y(d.length>0&&g.length>0&&d[0]>0)};return e.on("slidesInView",a),e.on("slidesChanged",a),a(),()=>{e.off("slidesInView",a),e.off("slidesChanged",a)}},[e]),l?F.jsxs(Gt,{ref:s,variant:n,size:o,className:nt("hidden border-none bg-theme-secondary p-1 transition disabled:opacity-0 lg:absolute lg:inline",r?"left-4 top-1/3 -translate-y-1/2":"left-4 top-1/2 -translate-y-1/2",t),disabled:!i,onClick:u,...c,children:[F.jsx(ue,{className:"m-1 text-2xl"}),F.jsx("span",{className:"sr-only",children:"Previous slide"})]}):null});Yt.displayName="CarouselPrevious";const _t=E.forwardRef(({className:t,variant:n="secondary",size:o,offsetControls:r,...c},s)=>{const{api:e,scrollNext:u,canScrollNext:i}=gt(),[l,y]=E.useState(!1);return E.useEffect(()=>{if(!e)return;const a=()=>{const d=e.slidesInView(),g=e.slidesNotInView();y(g.length>0&&d.length>0&&g.some(m=>m>d[d.length-1]))};return e.on("slidesInView",a),e.on("slidesChanged",a),a(),()=>{e.off("slidesInView",a),e.off("slidesChanged",a)}},[e]),l?F.jsxs(Gt,{ref:s,variant:n,size:o,className:nt("hidden border-none bg-theme-secondary p-1 transition disabled:opacity-0 lg:absolute lg:inline",r?"right-4 top-1/3 -translate-y-1/2":"right-4 top-1/2 -translate-y-1/2",t),disabled:!i,onClick:u,...c,children:[F.jsx(ce,{className:"m-1 text-2xl"}),F.jsx("span",{className:"sr-only",children:"Next slide"})]}):null});_t.displayName="CarouselNext";const Wt=E.forwardRef(({className:t,...n},o)=>{const{api:r,useBackgroundVariant:c}=gt(),s=E.useRef(null),e=E.useRef(null),[u,i]=E.useState(1),[l,y]=E.useState(!1),a={primary:{progressBarBackdrop:"bg-theme-gray",progressBar:"bg-theme-primary"},accent:{progressBarBackdrop:"bg-theme-secondary",progressBar:"bg-theme-accent"}}[c?"accent":"primary"];return E.useEffect(()=>{r&&(r.on("slidesInView",()=>{y(r.slidesNotInView().length>0)}),r.on("slidesChanged",()=>{y(r.slidesNotInView().length>0),i(r.slideNodes.length)}),r.on("scroll",()=>{if(e!=null&&e.current&&(s!=null&&s.current)){const d=s.current.offsetWidth;e.current.style.transform=`translateX(${Math.min(Math.max(d*r.scrollProgress()-e.current.offsetWidth*r.scrollProgress(),0),s.current.offsetWidth-e.current.offsetWidth)}px)`}}),i(r.slideNodes().length),y(r.slidesNotInView().length>0))},[r]),F.jsx("div",{ref:s,className:nt("h-0.5 w-full transition-opacity duration-300",a.progressBarBackdrop,l?"opacity-100":"opacity-0",t),children:F.jsx("div",{ref:e,className:nt("h-1 min-w-32",a.progressBar),style:{width:`${100/u}%`,translate:"0px -1px"}})})});
1Wt.displayName="CarouselProgress";ht.Content=Xt;ht.Item=Jt;ht.Previous=Yt;ht.Next=_t;ht.Progress=Wt;export{ht as C};

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.