1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,867774,e=>{"use strict";var t=e.i(843476),n=e.i(919737);e.i(411818);var r=e.i(986305),o=e.i(657688);function i({images:e,isOpen:i,setIsOpen:a}){return(0,t.jsx)(r.DialogBase,{isOpen:i,setIsOpen:a,classNameContent:"max-w-[95%] text-center py-16",children:(0,t.jsxs)(n.Carousel,{opts:{loop:!0},className:"max-w-[calc(100vw-20rem)] mx-auto",children:[(0,t.jsx)(n.CarouselContent,{className:"relative",children:e.map((e,r)=>(0,t.jsx)(n.CarouselItem,{children:(0,t.jsx)("div",{className:"relative w-[calc(100vw-19rem)] h-[calc(100vh-15rem)] bg-brand-neutral_3 rounded-2xl overflow-hidden",children:(0,t.jsx)(o.default,{src:e,alt:`review_${r}`,fill:!0,style:{objectFit:"contain"}})})},r))}),(0,t.jsx)(n.CarouselPrevious,{className:"group bg-white border-none"}),(0,t.jsx)(n.CarouselNext,{className:"group bg-white border-none"})]})})}e.s(["default",()=>i])},772773,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(867774);e.i(908753);var o=e.i(484927);function i({images:e}){let[i,a]=(0,n.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{isOpen:i,setIsOpen:a,images:e}),(0,t.jsx)(o.Text12,{className:"text-brand-primary",onClick:()=>a(!0),children:"Ver imágenes"})]})}e.s(["default",()=>i])},411818,986305,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(326999),o=e.i(995926),i=e.i(647163);function a({...e}){return(0,t.jsx)(r.Root,{"data-slot":"dialog",...e})}function s({...e}){return(0,t.jsx)(r.Portal,{"data-slot":"dialog-portal",...e})}function u({className:e,...n}){return(0,t.jsx)(r.Overlay,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50","bg-brand-neutral_3/85",e),...n})}function l({className:e,children:n,showCloseButton:a=!0,...l}){return(0,t.jsxs)(s,{"data-slot":"dialog-portal",children:[(0,t.jsx)(u,{}),(0,t.jsxs)(r.Content,{"data-slot":"dialog-content",className:(0,i.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none","max-w-lg sm:rounded-lg bg-white rounded-xl border-brand-neutral_1",e),...l,children:[n,a&&(0,t.jsxs)(r.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,t.jsx)(o.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function c({className:e,...n}){return(0,t.jsx)(r.Title,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg leading-none font-semibold",e),...n})}var d=e.i(207670);function f({children:e,isOpen:r,setIsOpen:o,classNameContent:s,showCloseButton:u}){let f=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=document.createElement("span");return e.id="custom-portal-container",document.body.appendChild(e),f.current=e,()=>{f.current&&document.body.removeChild(f.current)}},[]),(0,t.jsx)(a,{open:r,onOpenChange:o,children:(0,t.jsxs)(l,{className:(0,d.default)((0,i.cn)("px-5 md:px-10 py-10 max-h-[calc(100vh-1rem)]! overflow-y-auto",s),{"gap-0":!u}),showCloseButton:u,children:[(0,t.jsx)(c,{}),e]})})}e.s(["DialogBase",()=>f],986305),e.s([],411818)},706545,e=>{"use strict";var t=e.i(843476),n=e.i(647163);function r({className:e=""}){return(0,t.jsx)("svg",{className:(0,n.cn)("stroke-[4] stroke-black",e),viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M10.6667 36.8359L28 19.5026L10.6667 2.16927",strokeLinecap:"round",strokeLinejoin:"round"})})}e.s(["default",()=>r])},919737,e=>{"use strict";var t=e.i(843476),n=e.i(271645);function r(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let i=e[n],a=t[n];return"function"==typeof i?`${i}`==`${a}`:r(i)&&r(a)?o(i,a):i===a})}function i(e){return e.concat().sort((e,t)=>
1e.name>t.name?1:-1).map(e=>e.options)}function a(e){return"number"==typeof e}function s(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return Math.abs(e)}function d(e){return Math.sign(e)}function f(e){return h(e).map(Number)}function p(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function g(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function h(e){return Object.keys(e)}function x(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function v(){let e=[],t={add:function(n,r,o,i={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,o,i),a=()=>n.removeEventListener(r,o,i)):(n.addListener(o),a=()=>n.removeListener(o)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function b(e=0,t=0){let n=c(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function y(e){let t=e;function n(e){return a(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function w(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,o=null,i=!1;return{clear:function(){!i&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;let a=Math.round(100*e.direction(t))/100;a!==o&&(r.transform=n(a),o=a)},toggleActive:function(e){i=!e}}}let j={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 k(e,t,n){let r,o,i,N,C,z,S,O,E=e.ownerDocument,D=E.defaultView,I=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(h(n).forEach(r=>{let o=t[r],i=n[r],a=l(o)&&l(i);t[r]=a?e(o,i):i}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},o=h(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,o)},optionsMediaQueries:function(t){return t.map(e=>h(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(D),L=(O=[],{init:function(e,t){return(O=t.filter(({options:e})=>!1!==I.optionsAtMedia(e).active)).forEach(t=>t.init(e,I)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){O=O.filter(e=>e.destroy())}}),P=v(),A=(o={},i={init:function(e){r=e},emit:function(e){return(o[e]||[]).forEach(t=>t(r,e)),i},off:function(e,t){return o[e]=(o[e]||[]).filter(e=>e!==t),i},on:function(e,t){return o[e]=(o[e]||[]).concat([t]),i},clear:function(){o={}}}),{mergeOptions:M,optionsAtMedia:F,optionsMediaQueries:T}=I,{on:B,off:R,emit:V}=A,_=!1,H=M(j,k.globalOptions),$=M(H),U=[];function q(t,n){_||($=F(H=M(H,t)),U=n||U,function(){let{container:t,slides:n}=$;z=(s(t)?e.querySelector(t):t)||e.children[0];let r=s(n)?z.querySelectorAll(n):n;S=[].slice.call(r||z.children)}(),N=function t(n){let r=function(e,t,n,r,o,i,l){var j,k;let N,C,z,S,O,E,D,I,L,P,A,M,F,T,{align:B,axis:R,direction:V,startIndex:_,loop:H,duration:$,dragFree:U,dragThreshold:q,inViewThreshold:K,slidesToScroll:X,skipSnaps:J,containScroll:Q,watchResize:Y,watchSlides:G,watchDrag:W,watchFocus:Z}=i,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}},et=ee.measure(t),en=n.map(ee.measure),er=(C="rtl"===V,S=(z="y"===R)||!C?1:-1,O=z?"top":C?"right":"left",E=z?"bottom":C?"left":"right",{scroll:z?"y":"x",cross:z?"x":"y",startEdge:O,endEdge:E,measureSize:function(e){let{height:t,width:n}=e;return z?t:n},direction:function(e){return e*S}}),eo=er.measureSize(et),ei={measure:function(e){return e/100*eo}},ea=(j=B,k=eo,N={start:function(){return 0},center:function(e){return(k-e)/2},end:function(e){return k-e}},{measure:function(e,t){return s(j)?N[j](e):j(k,e,t)}}),es=!H&&!!Q,{slideSizes:eu,slideSizesWithGaps:el,startGap:ec,endGap:ed}=function(e,t,n,r,o,i){let{measureSize:a,startEdge:s,endEdge:u}=e,l=n[0]&&o,d=function(){if(!l)return 0;let e=n[0];return c(t[s]-e[s])}(),f=l?parseFloat(i.getComputedStyle(p(r)).getPropertyValue(`margin-${u}`)):0,g=n.map(a),h=n.map((e,t,n)=>{let r=t===m(n);return t?r?g[t]+f:n[t+1][s]-e[s]:g[t]+d}).map(c);return{slideSizes:g,slideSizesWithGaps:h,startGap:d,endGap:f}}(er,et,en,n,H||!!Q,o),ef=function(e,t,n,r,o,i,s,u,l){let{startEdge:d,endEdge:g,direction:h}=e,x=a(n);return{groupSlides:function(e){return x?f(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?f(e).reduce((n,a,l)=>{let f=p(n)||0,x=a===m(e),v=o[d]-i[f][d],b=o[d]-i[a][g],y=r||0!==f?0:h(s),w=c(b-(!r&&x?h(u):0)-(v+y));return l&&w>t+2&&n.push(a),x&&n.push(e.length),n},[]).map((t,n,r)=>{let o=Math.max(r[n-1]||0);return e.slice(o,t)}):[]}}}(er,eo,X,H,et,en,ec,ed,0),{snaps:ep,snapsAligned:em}=function(e,t,n,r,o){let{startEdge:i,endEdge:a}=e,{groupSlides:s}=o,u=s(r).map(e=>p(e)[a]-e[0][i]).map(c).map(t.measure),l=r.map(e=>n[i]-e[i]).map(e=>-c(e)),d=s(l).map(e=>e[0]).map((e,t)=>e+u[t]);return{snaps:l,snapsAligned:d}}(er,ea,et,en,ef),eg=-p(ep)+p(el),{snapsContained:eh,scrollContainLimit:ex}=function(e,t,n,r,o){let i,a,s=b(-t+e,0),u=n.map((e,t)=>{let{min:r,max:o}=s,i=s.constrain(e),a=t===m(n);return t?a||function(e,t){return 1>=c(e-t)}(r,i)?r:function(e,t){return 1>=c(e-t)}(o,i)?o:i:o}).map(e=>parseFloat(e.toFixed(3))),l=(i=u[0],a=p(u),b(u.lastIndexOf(i),u.indexOf(a)+1));return{snapsContained:function(){if(t<=e+2)return[s.max];if("keepSnaps"===r)return u;let{min:n,max:o}=l;return u.slice(n,o)}(),scrollContainLimit:l}}(eo,eg,em,Q,0),ev=es?eh:em,{limit:eb}=(D=ev[0],{limit:b(H?D-eg:p(ev),D)}
1),ey=function e(t,n,r){let{constrain:o}=b(0,t),i=t+1,a=s(n);function s(e){return r?c((i+e)%i):o(e)}function u(){return e(t,a,r)}let l={get:function(){return a},set:function(e){return a=s(e),l},add:function(e){return u().set(a+e)},clone:u};return l}(m(ev),_,H),ew=ey.clone(),ej=f(n),ek=function(e,t,n,r){let o=v(),i=1e3/60,a=null,s=0,u=0;function l(e){if(!u)return;a||(a=e,n(),n());let o=e-a;for(a=e,s+=o;s>=i;)n(),s-=i;r(s/i),u&&(u=t.requestAnimationFrame(l))}function c(){t.cancelAnimationFrame(u),a=null,s=0,u=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(a=null,s=0)})},destroy:function(){c(),o.clear()},start:function(){u||(u=t.requestAnimationFrame(l))},stop:c,update:n,render:r}}(r,o,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(eT),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:o,scrollLooper:i,slideLooper:a,dragHandler:s,animation:u,eventHandler:l,scrollBounds:c,options:{loop:d}},f)=>{let p=e.settled(),m=!c.shouldConstrain(),g=d?p:p&&m,h=g&&!s.pointerDown();h&&u.stop();let x=n.get()*f+o.get()*(1-f);r.set(x),d&&(i.loop(e.direction()),a.loop()),t.to(r.get()),h&&l.emit("settle"),g||l.emit("scroll")})(eT,e)),eN=ev[ey.get()],eC=y(eN),ez=y(eN),eS=y(eN),eO=y(eN),eE=function(e,t,n,r,o,i){let a=0,s=0,u=o,l=.68,f=e.get(),p=0;function m(e){return u=e,h}function g(e){return l=e,h}let h={direction:function(){return s},duration:function(){return u},velocity:function(){return a},seek:function(){let t=r.get()-e.get(),o=0;return u?(n.set(e),a+=t/u,a*=l,f+=a,e.add(a),o=f-p):(a=0,n.set(r),e.set(r),o=t),s=d(o),p=f,h},settled:function(){return .001>c(r.get()-t.get())},useBaseFriction:function(){return g(.68)},useBaseDuration:function(){return m(o)},useFriction:g,useDuration:m};return h}(eC,eS,ez,eO,$,0),eD=function(e,t,n,r,o){let{reachedAny:i,removeOffset:a,constrain:s}=r;function u(e){return e.concat().sort((e,t)=>c(e)-c(t))[0]}function l(t,r){let o=[t,t+n,t-n];if(!e)return t;if(!r)return u(o);let i=o.filter(e=>d(e)===r);return i.length?u(i):p(o)-n}return{byDistance:function(n,r){let u=o.get()+n,{index:d,distance:f}=function(n){let r=e?a(n):s(n),{index:o}=t.map((e,t)=>({diff:l(e-r,0),index:t})).sort((e,t)=>c(e.diff)-c(t.diff))[0];return{index:o,distance:r}}(u),p=!e&&i(u);if(!r||p)return{index:d,distance:n};let m=n+l(t[d]-f,0);return{index:d,distance:m}},byIndex:function(e,n){let r=l(t[e]-o.get(),n);return{index:e,distance:r}},shortcut:l}}(H,ev,eg,eb,eO),eI=function(e,t,n,r,o,i,a){function s(o){let s=o.distance,u=o.index!==t.get();
1i.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),u&&(n.set(t.get()),t.set(o.index),a.emit("select"))}return{distance:function(e,t){s(o.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);s(o.byIndex(r.get(),n))}}}(ek,ey,ew,eE,eD,eO,l),eL=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(eb),eP=v(),eA=(L={},P=null,A=null,M=!1,{init:function(){I=new IntersectionObserver(e=>{M||(e.forEach(e=>{L[n.indexOf(e.target)]=e}),P=null,A=null,l.emit("slidesInView"))},{root:t.parentElement,threshold:K}),n.forEach(e=>I.observe(e))},destroy:function(){I&&I.disconnect(),M=!0},get:function(e=!0){if(e&&P)return P;if(!e&&A)return A;let t=h(L).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:o}=L[r];return(e&&o||!e&&!o)&&t.push(r),t},[]);return e&&(P=t),e||(A=t),t}}),{slideRegistry:eM}=function(e,t,n,r,o,i){let a,{groupSlides:s}=o,{min:u,max:l}=r;return{slideRegistry:(a=s(i),1===n.length?[i]:e&&"keepSnaps"!==t?a.slice(u,l).map((e,t,n)=>{let r=t===m(n);return t?r?g(m(i)-p(n)[0]+1,p(n)[0]):e:g(p(n[0])+1)}):a)}}(es,Q,ev,ex,ef,ej),eF=function(e,t,n,r,o,i,s,l){let c={passive:!0,capture:!0},d=0;function f(e){"Tab"===e.code&&(d=new Date().getTime())}return{init:function(p){l&&(i.add(document,"keydown",f,!1),t.forEach((t,f)=>{i.add(t,"focus",t=>{(u(l)||l(p,t))&&function(t){if(new Date().getTime()-d>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let i=n.findIndex(e=>e.includes(t));a(i)&&(o.useDuration(0),r.index(i,0),s.emit("slideFocus"))}(f)},c)}))}}}(e,n,eM,eI,eE,eP,l,Z),eT={ownerDocument:r,ownerWindow:o,eventHandler:l,containerRect:et,slideRects:en,animation:ek,axis:er,dragHandler:function(e,t,n,r,o,i,a,s,l,f,p,m,g,h,y,w,j,k,N){let{cross:C,direction:z}=e,S=["INPUT","SELECT","TEXTAREA"],O={passive:!1},E=v(),D=v(),I=b(50,225).constrain(h.measure(20)),L={mouse:300,touch:400},P={mouse:500,touch:600},A=y?43:25,M=!1,F=0,T=0,B=!1,R=!1,V=!1,_=!1;function H(e){if(!x(e,r)&&e.touches.length>=2)return $(e);let t=i.readPoint(e),n=i.readPoint(e,C),a=c(t-F),u=c(n-T);if(!R&&!_&&(!e.cancelable||!(R=a>u)))return $(e);let l=i.pointerMove(e);a>w&&(V=!0),f.useFriction(.3).useDuration(.75),s.start(),o.add(z(l)),e.preventDefault()}function $(e){var t;let n,r,o=p.byDistance(0,!1).index!==m.get(),a=i.pointerUp(e)*(y?P:L)[_?"mouse":"touch"],s=(t=z(a),n=m.add(-1*d(t)),r=p.byDistance(t,!y).distance,y||c(t)<I?r:j&&o?.5*r:p.byIndex(n.get(),0).distance),u=function(e,t){var n,r;if(0===e||0===t||c(e)<=c(t))return 0;let o=(n=c(e),r=c(t),c(n-r));return c(o/e)}(a,s);R=!1,B=!1,D.clear(),f.useDuration(A-10*u).useFriction(.68+u/50),l.distance(s,!y),_=!1,g.emit("pointerUp")}function U(e){V&&(e.stopPropagation(),e.preventDefault(),V=!1)}return{init:function(e){N&&E.add(t,"dragstart",e=>e.preventDefault(),O).add(t,"touchmove",()=>void 0,O).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",$).add(t,"contextmenu",$).add(t,"click",U,!0);function s(s){(u(N)||N(e,s))&&function(e){let s,u=x(e,r);if((_=u,V=y&&u&&!e.buttons&&M,M=c(o.get()-a.get())>=2,!u||0===e.button)&&(s=e.target.nodeName||"",!S.includes(s))){let r;B=!0,i.pointerDown(e),f.useFriction(0).useDuration(0),o.set(a),r=_?n:t,D.add(r,"touchmove",H,O).add(r,"touchend",$).add(r,"mousemove",H,O).add(r,"mouseup",$),F=i.readPoint(e),T=i.readPoint(e,C),g.emit("pointerDown")}}(s)}},destroy:function(){E.clear(),D.clear()},pointerDown:function(){return B}}}(er,e,r,o,eO,function(e,t){let n,r;function o(e){return e.timeStamp}function i(n,r){let o=r||e.scroll,i=`client${"x"===o?"X":"Y"}`;return(x(n,t)?n:n.touches[0])[i]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){let t=i(e)-i(r),a=o(e)-o(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=i(r)-i(n),a=o(e)-o(n),s=o(e)-o(r)>170,u=t/a;return a&&!s&&c(u)>.1?u:0},readPoint:i}}(er,o),eC,ek,eI,eE,eD,ey,l,ei,U,q,J,0,W),eventStore:eP,percentOfView:ei,index:ey,indexPrevious:ew,limit:eb,location:eC,offsetLocation:eS,previousLocation:ez,options:i,resizeHandler:function(e,t,n,r,o,i,a){let s,l,d=[e].concat(r),f=[],p=!1;function m(e){return o.measureSize(a.measure(e))}
1return{init:function(o){i&&(l=m(e),f=r.map(m),s=new ResizeObserver(n=>{(u(i)||i(o,n))&&function(n){for(let i of n){if(p)return;let n=i.target===e,a=r.indexOf(i.target),s=n?l:f[a];if(c(m(n?e:r[a])-s)>=.5){o.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{d.forEach(e=>s.observe(e))}))},destroy:function(){p=!0,s&&s.disconnect()}}}(t,l,o,n,er,Y,ee),scrollBody:eE,scrollBounds:function(e,t,n,r,o){let i=o.measure(10),a=o.measure(50),s=b(.1,.99),u=!1;function l(){return!u&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:l,constrain:function(o){if(!l())return;let u=e.reachedMin(t.get())?"min":"max",d=c(e[u]-t.get()),f=n.get()-t.get(),p=s.constrain(d/a);n.subtract(f*p),!o&&c(f)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){u=!e}}}(eb,eS,eO,eE,ei),scrollLooper:function(e,t,n,r){let{reachedMin:o,reachedMax:i}=b(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?i(n.get()):-1===t&&o(n.get())))return;let a=-1*t*e;r.forEach(e=>e.add(a))}}}(eg,eb,eS,[eC,eS,ez,eO]),scrollProgress:eL,scrollSnapList:ev.map(eL.get),scrollSnaps:ev,scrollTarget:eD,scrollTo:eI,slideLooper:function(e,t,n,r,o,i,a,s,u){let l=f(o),c=f(o).reverse(),d=g(m(c,a[0]),n,!1).concat(g(m(l,t-a[0]-1),-n,!0));function p(e,t){return e.reduce((e,t)=>e-o[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function g(o,a,l){let c=i.map((e,n)=>({start:e-r[n]+.5+a,end:e+t-.5+a}));return o.map(t=>{let r=l?0:-n,o=l?n:0,i=c[t][l?"end":"start"];return{index:t,loopPoint:i,slideLocation:y(-1),translate:w(e,u[t]),target:()=>s.get()>i?r:o}})}return{canLoop:function(){return d.every(({index:e})=>.1>=p(l.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))})},loopPoints:d}}(er,eo,eg,eu,el,ep,ev,eS,n),slideFocus:eF,slidesHandler:(T=!1,{init:function(e){G&&(F=new MutationObserver(t=>{!T&&(u(G)||G(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),l.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){F&&F.disconnect(),T=!0}}),slidesInView:eA,slideIndexes:ej,slideRegistry:eM,slidesToScroll:ef,target:eO,translate:w(er,t)};return eT}(e,z,S,E,D,n,A);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}($),T([H,...U.map(({options:e})=>e)]).forEach(e=>P.add(e,"change",K)),$.active&&(N.translate.to(N.location.get()),N.animation.init(),N.slidesInView.init(),N.slideFocus.init(Y),N.eventHandler.init(Y),N.resizeHandler.init(Y),N.slidesHandler.init(Y),N.options.loop&&N.slideLooper.loop(),z.offsetParent&&S.length&&N.dragHandler.init(Y),C=L.init(Y,U)))}function K(e,t){let n=Q();X(),q(M({startIndex:n},e),t),A.emit("reInit")}function X(){N.dragHandler.destroy(),N.eventStore.clear(),N.translate.clear(),N.slideLooper.clear(),N.resizeHandler.destroy(),N.slidesHandler.destroy(),N.slidesInView.destroy(),N.animation.destroy(),L.destroy(),P.clear()}function J(e,t,n){$.active&&!_&&(N.scrollBody.useBaseFriction().useDuration(!0===t?0:$.duration),N.scrollTo.index(e,n||0))}function Q(){return N.index.get()}let Y={canScrollNext:function(){return N.index.add(1).get()!==Q()},canScrollPrev:function(){return N.index.add(-1).get()!==Q()},containerNode:function(){return z},internalEngine:function(){return N},destroy:function(){_||(_=!0,P.clear(),X(),A.emit("destroy"),A.clear())},off:R,on:B,emit:V,plugins:function(){return C},previousScrollSnap:function(){return N.indexPrevious.get()},reInit:K,rootNode:function(){return e},scrollNext:function(e){J(N.index.add(1).get(),e,-1)},scrollPrev:function(e){J(N.index.add(-1).get(),e,1)},scrollProgress:function(){return N.scrollProgress.get(N.offsetLocation.get())},scrollSnapList:function(){return N.scrollSnapList}
1,scrollTo:J,selectedScrollSnap:Q,slideNodes:function(){return S},slidesInView:function(){return N.slidesInView.get()},slidesNotInView:function(){return N.slidesInView.get(!1)}};return q(t,n),setTimeout(()=>A.emit("init"),0),Y}function N(e={},t=[]){let r=(0,n.useRef)(e),a=(0,n.useRef)(t),[s,u]=(0,n.useState)(),[l,c]=(0,n.useState)(),d=(0,n.useCallback)(()=>{s&&s.reInit(r.current,a.current)},[s]);return(0,n.useEffect)(()=>{o(r.current,e)||(r.current=e,d())},[e,d]),(0,n.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=i(e),r=i(t);return n.every((e,t)=>o(e,r[t]))}(a.current,t)&&(a.current=t,d())},[t,d]),(0,n.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&l){k.globalOptions=N.globalOptions;let e=k(l,r.current,a.current);return u(e),()=>e.destroy()}u(void 0)},[l,u]),[c,s]}k.globalOptions=void 0,N.globalOptions=void 0;var C=e.i(647163),z=e.i(167881),S=e.i(422691),O=e.i(706545);let E=n.createContext(null);function D(){let e=n.useContext(E);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}function I({orientation:e="horizontal",opts:r,setApi:o,plugins:i,className:a,children:s,...u}){let[l,c]=N({...r,axis:"horizontal"===e?"x":"y"},i),[d,f]=n.useState(!1),[p,m]=n.useState(!1),g=n.useCallback(e=>{e&&(f(e.canScrollPrev()),m(e.canScrollNext()))},[]),h=n.useCallback(()=>{c?.scrollPrev()},[c]),x=n.useCallback(()=>{c?.scrollNext()},[c]),v=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),h()):"ArrowRight"===e.key&&(e.preventDefault(),x())},[h,x]);return n.useEffect(()=>{c&&o&&o(c)},[c,o]),n.useEffect(()=>{if(c)return g(c),c.on("reInit",g),c.on("select",g),()=>{c?.off("select",g)}},[c,g]),(0,t.jsx)(E.Provider,{value:{carouselRef:l,api:c,opts:r,orientation:e||(r?.axis==="y"?"vertical":"horizontal"),scrollPrev:h,scrollNext:x,canScrollPrev:d,canScrollNext:p},children:(0,t.jsx)("div",{onKeyDownCapture:v,className:(0,C.cn)("relative",a),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...u,children:s})})}function L({className:e,...n}){let{carouselRef:r,orientation:o}=D();return(0,t.jsx)("div",{ref:r,className:"overflow-hidden","data-slot":"carousel-content",children:(0,t.jsx)("div",{className:(0,C.cn)("flex","horizontal"===o?"-ml-4":"-mt-4 flex-col",e),...n})})}function P({className:e,...n}){let{orientation:r}=D();return(0,t.jsx)("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:(0,C.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",e),...n})}function A({className:e,variant:n="outline",size:r="icon",...o}){let{orientation:i,scrollPrev:a,canScrollPrev:s}=D();return(0,t.jsxs)(z.Button,{"data-slot":"carousel-previous",variant:n,size:r,className:(0,C.cn)("absolute size-8 rounded-full","horizontal"===i?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:a,...o,children:[(0,t.jsx)(S.default,{className:"size-4 md:size-5 stroke-brand-secondary_dark/60 group-hover:stroke-brand-secondary_dark transition-200"}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}function M({className:e,variant:n="outline",size:r="icon",...o}){let{orientation:i,scrollPrev:a,canScrollPrev:s}=D();return(0,t.jsxs)(z.Button,{"data-slot":"carousel-previous",variant:n,size:r,className:(0,C.cn)("group absolute rounded-full border-0 bg-transparent!","horizontal"===i?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:a,...o,children:[(0,t.jsx)(S.default,{className:(0,C.cn)("size-4 md:size-12 fill-black group-hover:fill-brand-primary stroke-white transition-all duration-200")}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}function F({className:e,variant:n="outline",size:r="icon",...o}){let{orientation:i,scrollNext:a,canScrollNext:s}=D();return(0,t.jsxs)(z.Button,{"data-slot":"carousel-next",variant:n,size:r,className:(0,C.cn)("absolute size-8 rounded-full","horizontal"===i?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:a,...o,children:[(0,t.jsx)(O.default,{className:"size-4 md:size-5 stroke-brand-secondary_dark/60 group-hover:stroke-brand-secondary_dark transition-200"}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})}function T({className:e,variant:n="outline",size:r="icon",...o}){let{orientation:i,scrollNext:a,canScrollNext:s}=D();return(0,t.jsxs)(z.Button,{"data-slot":"carousel-next",variant:n,size:r,className:(0,C.cn)("group absolute rounded-full border-0 bg-transparent!","horizontal"===i?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:a,...o,children:[(0,t.jsx)(O.default,{className:(0,C.cn)("size-4 md:size-12 fill-black group-hover:fill-brand-primary stroke-white transition-all duration-200")}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})}e.s(["Carousel",()=>I,"CarouselContent",()=>L,"CarouselItem",()=>P,"CarouselNext",()=>F,"CarouselNextMinimalism",()=>T,"CarouselPrevious",()=>A,"CarouselPreviousMinimalism",()=>M],919737)}]);
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.