PageSourceSearch

https://boutique.angers-sco.fr/cdn/shop/t/11/assets/libs.js?v=154780615568166719861786618842

js angers-sco.fr collected 2026-09-24 21:49:03 UTC 60,641 bytes, 14 lines download raw bytes

vendor: 4,440 bytes, line 1
1function isNumber(t){return"number"==typeof t&&!isNaN(t)}function isString(t){return"string"==typeof t}function isBoolean(t){return"boolean"==typeof t}function isObject(t){return"[object Object]"===Object.prototype.toString.call(t)}function mathAbs(t){return Math.abs(t)}function mathSign(t){return Math.sign(t)}function deltaAbs(t,e){return mathAbs(t-e)}function factorAbs(t,e){if(0===t||0===e)return 0;if(mathAbs(t)<=mathAbs(e))return 0;const n=deltaAbs(mathAbs(t),mathAbs(e));return mathAbs(n/t)}function roundToTwoDecimals(t){return Math.round(100*t)/100}function arrayKeys(t){return objectKeys(t).map(Number)}function arrayLast(t){return t[arrayLastIndex(t)]}function arrayLastIndex(t){return Math.max(0,t.length-1)}function arrayIsLastIndex(t,e){return e===arrayLastIndex(t)}function arrayFromNumber(t,e=0){return Array.from(Array(t),(t,n)=>e+n)}function objectKeys(t){return Object.keys(t)}function objectsMergeDeep(t,e){return[t,e].reduce((t,e)=>(objectKeys(e).forEach(n=>{const i=t[n],s=e[n],r=isObject(i)&&isObject(s);t[n]=r?objectsMergeDeep(i,s):s}),t),{})}function isMouseEvent(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function Alignment(t,e){const n={start:function(){return 0},center:function(t){return i(t)/2},end:i};function i(t){return e-t}return{measure:function(i,s){return isString(t)?n[t](i):t(e,i,s)}}}function EventStore(){let t=[];const e={add:function(n,i,s,r={passive:!0}){let o;if("addEventListener"in n)n.addEventListener(i,s,r),o=()=>n.removeEventListener(i,s,r);else{const t=n;t.addListener(s),o=()=>t.removeListener(s)}return t.push(o),e},clear:function(){t=t.filter(t=>t())}};return e}function Animations(t,e,n,i){const s=EventStore(),r=1e3/60;let o=null,a=0,l=0;function c(t){if(!l)return;o||(o=t);const s=t-o;for(o=t,a+=s;a>=r;)n(),a-=r;i(a/r),l&&(l=e.requestAnimationFrame(c))}function d(){e.cancelAnimationFrame(l),o=null,a=0,l=0}return{init:function(){s.add(t,"visibilitychange",()=>{t.hidden&&(o=null,a=0)})},destroy:function(){d(),s.clear()},start:function(){l||(l=e.requestAnimationFrame(c))},stop:d,update:n,render:i}}function Axis(t,e){const n="rtl"===e,i="y"===t,s=!i&&n?-1:1;return{scroll:i?"y":"x",cross:i?"x":"y",startEdge:i?"top":n?"right":"left",endEdge:i?"bottom":n?"left":"right",measureSize:function(t){const{height:e,width:n}=t;return i?e:n},direction:function(t){return t*s}}}function Limit(t=0,e=0){const n=mathAbs(t-e);function i(e){return e<t}function s(t){return t>e}function r(t){return i(t)||s(t)}return{length:n,max:e,min:t,constrain:function(n){return r(n)?i(n)?t:e:n},reachedAny:r,reachedMax:s,reachedMin:i,removeOffset:function(t){return n?t-n*Math.ceil((t-e)/n):t}}}function Counter(t,e,n){const{constrain:i}=Limit(0,t),s=t+1;let r=o(e);function o(t){return n?mathAbs((s+t)%s):i(t)}function a(){return r}function l(){return Counter(t,a(),n)}const c={get:a,set:function(t){return r=o(t),c},add:function(t){return l().set(a()+t)},clone:l};return c}function DragHandler(t,e,n,i,s,r,o,a,l,c,d,u,h,p,g,f,m,_,b){const{cross:S,direction:y}=t,v=["INPUT","SELECT","TEXTAREA"],A={passive:!1},w=EventStore(),E=EventStore(),x=Limit(50,225).constrain(p.measure(20)),C={mouse:300,touch:400},L={mouse:500,touch:600},I=g?43:25;let k=!1,M=0,O=0,N=!1,$=!1,P=!1,D=!1;function R(t){if(!isMouseEvent(t,i)&&t.touches.length>=2)return T(t);const e=r.readPoint(t),n=r.readPoint(t,S),o=deltaAbs(e,M),l=deltaAbs(n,O);if(!$&&!D){if(!t.cancelable)return T(t);if($=o>l,!$)return T(t)}const d=r.pointerMove(t);o>f&&(P=!0),c.useFriction(.3).useDuration(.75),a.start(),s.add(y(d)),t.cancelable&&t.preventDefault()}function T(t){const e=d.byDistance(0,!1).index!==u.get(),n=r.pointerUp(t)*(g?L:C)[D?"mouse":"touch"],i=function(t,e){const n=u.add(-1*mathSign(t)),i=d.byDistance(t,!g).distance;return g||mathAbs(t)<x?i:m&&e?.5*i:d.byIndex(n.get(),0).distance}(y(n),e),s=factorAbs(n,i),o=I-10*s,a=_+s/50;$=!1,N=!1,E.clear(),c.useDuration(o).useFriction(a),l.distance(i,!g),D=!1,h.emit("pointerUp")}function F(t){P&&(t.stopPropagation(),t.preventDefault(),P=!1)}return{init:function(t){if(!b)return;function a(a){(isBoolean(b)||b(t,a))&&function(t){const a=isMouseEvent(t,i);D=a,P=g&&a&&!t.buttons&&k,k=deltaAbs(s.get(),o.get())>=2,a&&0!==t.button||function(t){const e=t.nodeName||"";return v.includes(e)}(t.target)||(N=!0,r.pointerDown(t),c.useFriction(0).useDuration(0),s.set(o),function(){const t=D?n:e;E.add(t,"touchmove",R,A).add(t,"touchend",T).add(t,"mousemove",R,A).add(t,"mouseup",T)}
1(),M=r.readPoint(t),O=r.readPoint(t,S),h.emit("pointerDown"))}(a)}const l=e;w.add(l,"dragstart",t=>t.preventDefault(),A).add(l,"touchmove",()=>{},A).add(l,"touchend",()=>{}).add(l,"touchstart",a).add(l,"mousedown",a).add(l,"touchcancel",T).add(l,"contextmenu",T).add(l,"click",F,!0)},destroy:function(){w.clear(),E.clear()},pointerDown:function(){return N}}}function DragTracker(t,e){let n,i;function s(t){return t.timeStamp}function r(n,i){const s="client"+("x"===(i||t.scroll)?"X":"Y");return(isMouseEvent(n,e)?n:n.touches[0])[s]}return{pointerDown:function(t){return n=t,i=t,r(t)},pointerMove:function(t){const e=r(t)-r(i),o=s(t)-s(n)>170;return i=t,o&&(n=t),e},pointerUp:function(t){if(!n||!i)return 0;const e=r(i)-r(n),o=s(t)-s(n),a=s(t)-s(i)>170,l=e/o;return o&&!a&&mathAbs(l)>.1?l:0},readPoint:r}}function NodeRects(){return{measure:function(t){return t.getBoundingClientRect()}}}function PercentOfView(t){return{measure:function(e){return t*(e/100)}}}function ResizeHandler(t,e,n,i,s,r,o){const a=[t].concat(i);let l,c,d=[],u=!1;function h(t){return s.measureSize(o.measure(t))}return{init:function(s){r&&(c=h(t),d=i.map(h),l=new ResizeObserver(n=>{(isBoolean(r)||r(s,n))&&function(n){for(const r of n){if(u)return;const n=r.target===t,o=i.indexOf(r.target),a=n?c:d[o];if(mathAbs(h(n?t:i[o])-a)>=.5){s.reInit(),e.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{a.forEach(t=>l.observe(t))}))},destroy:function(){u=!0,l&&l.disconnect()}}}function ScrollBody(t,e,n,i,s,r){let o=0,a=0,l=s,c=r,d=t.get(),u=0;function h(t){return l=t,g}function p(t){return c=t,g}const g={direction:function(){return a},duration:function(){return l},velocity:function(){return o},seek:function(){const e=i.get()-t.get();let s=0;return l?(n.set(t),o+=e/l,o*=c,d+=o,t.add(o),s=d-u):(o=0,n.set(i),t.set(i),s=e),a=mathSign(s),u=d,g},settled:function(){return mathAbs(i.get()-e.get())<.001},useBaseFriction:function(){return p(r)},useBaseDuration:function(){return h(s)},useFriction:p,useDuration:h};return g}function ScrollBounds(t,e,n,i,s){const r=s.measure(10),o=s.measure(50),a=Limit(.1,.99);let l=!1;function c(){return!l&&!!t.reachedAny(n.get())&&!!t.reachedAny(e.get())}return{shouldConstrain:c,constrain:function(s){if(!c())return;const l=t.reachedMin(e.get())?"min":"max",d=mathAbs(t[l]-e.get()),u=n.get()-e.get(),h=a.constrain(d/o);n.subtract(u*h),!s&&mathAbs(u)<r&&(n.set(t.constrain(n.get())),i.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}function ScrollContain(t,e,n,i,s){const r=Limit(-e+t,0),o=n.map((t,e)=>{const{min:i,max:s}=r,o=r.constrain(t),a=!e,c=arrayIsLastIndex(n,e);return a?s:c||l(i,o)?i:l(s,o)?s:o}).map(t=>parseFloat(t.toFixed(3))),a=function(){const t=o[0],e=arrayLast(o);return Limit(o.lastIndexOf(t),o.indexOf(e)+1)}();function l(t,e){return deltaAbs(t,e)<1}return{snapsContained:function(){if(e<=t+s)return[r.max];if("keepSnaps"===i)return o;const{min:n,max:l}=a;return o.slice(n,l)}(),scrollContainLimit:a}}function ScrollLimit(t,e,n){const i=e[0];return{limit:Limit(n?i-t:arrayLast(e),i)}}function ScrollLooper(t,e,n,i){const s=e.min+.1,r=e.max+.1,{reachedMin:o,reachedMax:a}=Limit(s,r);return{loop:function(e){if(!function(t){return 1===t?a(n.get()):-1===t&&o(n.get())}(e))return;const s=t*(-1*e);i.forEach(t=>t.add(s))}}}function ScrollProgress(t){const{max:e,length:n}=t;return{get:function(t){return n?(t-e)/-n:0}}}function ScrollSnaps(t,e,n,i,s){const{startEdge:r,endEdge:o}=t,{groupSlides:a}=s,l=a(i).map(t=>arrayLast(t)[o]-t[0][r]).map(mathAbs).map(e.measure),c=i.map(t=>n[r]-t[r]).map(t=>-mathAbs(t)),d=a(c).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:c,snapsAligned:d}}function SlideRegistry(t,e,n,i,s,r){const{groupSlides:o}=s,{min:a,max:l}=i;return{slideRegistry:function(){const i=o(r),s=!t||"keepSnaps"===e;return 1===n.length?[r]:s?i:i.slice(a,l).map((t,e,n)=>{const i=!e,s=arrayIsLastIndex(n,e);return i?arrayFromNumber(arrayLast(n[0])+1):s?arrayFromNumber(arrayLastIndex(r)-arrayLast(n)[0]+1,arrayLast(n)[0]):t})}()}}function ScrollTarget(t,e,n,i,s){const{reachedAny:r,removeOffset:o,constrain:a}=i;function l(t){return t.concat().sort((t,e)=>mathAbs(t)-mathAbs(e))[0]}function c(e,i){const s=[e,e+n,e-n];if(!t)return e;if(!i)return l(s);const r=s.filter(t=>mathSign(t)===i);return r.length?l(r):arrayLast(s)-n}return{byDistance:function(n,i){const l=s.get()+n,{index:d,distance:u}=function(n){const i=t?o(n):a(n),s=e.map((t,e)=>({diff:c(t-i,0),index:e})).sort((t,e)=>mathAbs(t.diff)-mathAbs(e.diff)),{index:r}=s[0];return{index:r,distance:i}}(l),h=!t&&r(l);return!i||h?{index:d,distance:n}:{index:d,distance:n+c(e[d]-u,0)}},byIndex:function(t,n){return{index:t,distance:c(e[t]-s.get(),n)}},shortcut:c}}function ScrollTo(t,e,n,i,s,r,o){function a(s){const a=s.distance,l=s.index!==e.get();
vendor: 7,594 bytes, line 1
1r.add(a),a&&(i.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(n.set(e.get()),e.set(s.index),o.emit("select"))}return{distance:function(t,e){a(s.byDistance(t,e))},index:function(t,n){const i=e.clone().set(t);a(s.byIndex(i.get(),n))}}}function SlideFocus(t,e,n,i,s,r,o,a){const l={passive:!0,capture:!0};let c=0;function d(t){"Tab"===t.code&&(c=(new Date).getTime())}return{init:function(u){a&&(r.add(document,"keydown",d,!1),e.forEach((e,d)=>{r.add(e,"focus",e=>{(isBoolean(a)||a(u,e))&&function(e){if((new Date).getTime()-c>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;const r=n.findIndex(t=>t.includes(e));isNumber(r)&&(s.useDuration(0),i.index(r,0),o.emit("slideFocus"))}(d)},l)}))}}}function Vector1D(t){let e=t;function n(t){return isNumber(t)?t:t.get()}return{get:function(){return e},set:function(t){e=n(t)},add:function(t){e+=n(t)},subtract:function(t){e-=n(t)}}}function Translate(t,e){const n="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},i=e.style;let s=null,r=!1;return{clear:function(){r||(i.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(r)return;const o=roundToTwoDecimals(t.direction(e));o!==s&&(i.transform=n(o),s=o)},toggleActive:function(t){r=!t}}}function SlideLooper(t,e,n,i,s,r,o,a,l){const c=arrayKeys(s),d=arrayKeys(s).reverse(),u=function(){const t=o[0];return g(p(d,t),n,!1)}().concat(function(){const t=e-o[0]-1;return g(p(c,t),-n,!0)}());function h(t,e){return t.reduce((t,e)=>t-s[e],e)}function p(t,e){return t.reduce((t,n)=>h(t,e)>0?t.concat([n]):t,[])}function g(s,o,c){const d=function(t){return r.map((n,s)=>({start:n-i[s]+.5+t,end:n+e-.5+t}))}(o);return s.map(e=>{const i=c?0:-n,s=c?n:0,r=c?"end":"start",o=d[e][r];return{index:e,loopPoint:o,slideLocation:Vector1D(-1),translate:Translate(t,l[e]),target:()=>a.get()>o?i:s}})}return{canLoop:function(){return u.every(({index:t})=>h(c.filter(e=>e!==t),e)<=.1)},clear:function(){u.forEach(t=>t.translate.clear())},loop:function(){u.forEach(t=>{const{target:e,translate:n,slideLocation:i}=t,s=e();s!==i.get()&&(n.to(s),i.set(s))})},loopPoints:u}}function SlidesHandler(t,e,n){let i,s=!1;return{init:function(r){n&&(i=new MutationObserver(t=>{s||(isBoolean(n)||n(r,t))&&function(t){for(const n of t)if("childList"===n.type){r.reInit(),e.emit("slidesChanged");break}}(t)}),i.observe(t,{childList:!0}))},destroy:function(){i&&i.disconnect(),s=!0}}}function SlidesInView(t,e,n,i){const s={};let r,o=null,a=null,l=!1;return{init:function(){r=new IntersectionObserver(t=>{l||(t.forEach(t=>{const n=e.indexOf(t.target);s[n]=t}),o=null,a=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:i}),e.forEach(t=>r.observe(t))},destroy:function(){r&&r.disconnect(),l=!0},get:function(t=!0){if(t&&o)return o;if(!t&&a)return a;const e=function(t){return objectKeys(s).reduce((e,n)=>{const i=parseInt(n),{isIntersecting:r}=s[i];return(t&&r||!t&&!r)&&e.push(i),e},[])}(t);return t&&(o=e),t||(a=e),e}}}function SlideSizes(t,e,n,i,s,r){const{measureSize:o,startEdge:a,endEdge:l}=t,c=n[0]&&s,d=function(){if(!c)return 0;const t=n[0];return mathAbs(e[a]-t[a])}(),u=function(){if(!c)return 0;const t=r.getComputedStyle(arrayLast(i));return parseFloat(t.getPropertyValue(`margin-${l}`))}(),h=n.map(o),p=n.map((t,e,n)=>{const i=!e,s=arrayIsLastIndex(n,e);return i?h[e]+d:s?h[e]+u:n[e+1][a]-t[a]}).map(mathAbs);return{slideSizes:h,slideSizesWithGaps:p,startGap:d,endGap:u}}function SlidesToScroll(t,e,n,i,s,r,o,a,l){const{startEdge:c,endEdge:d,direction:u}=t,h=isNumber(n);return{groupSlides:function(t){return h?function(t,e){return arrayKeys(t).filter(t=>t%e==0).map(n=>t.slice(n,n+e))}(t,n):function(t){return t.length?arrayKeys(t).reduce((n,h,p)=>{const g=arrayLast(n)||0,f=0===g,m=h===arrayLastIndex(t),_=s[c]-r[g][c],b=s[c]-r[h][d],S=!i&&f?u(o):0,y=mathAbs(b-(!i&&m?u(a):0)-(_+S));return p&&y>e+l&&n.push(h),m&&n.push(t.length),n},[]).map((e,n,i)=>{const s=Math.max(i[n-1]||0);return t.slice(s,e)}):[]}(t)}}}function Engine(t,e,n,i,s,r,o){const{align:a,axis:l,direction:c,startIndex:d,loop:u,duration:h,dragFree:p,dragThreshold:g,inViewThreshold:f,slidesToScroll:m,skipSnaps:_,containScroll:b,watchResize:S,watchSlides:y,watchDrag:v,watchFocus:A}=r,w=NodeRects(),E=w.measure(e),x=n.map(w.measure),C=Axis(l,c),L=C.measureSize(E),I=PercentOfView(L),k=Alignment(a,L),M=!u&&!!b,O=u||!!b,{slideSizes:N,slideSizesWithGaps:$,startGap:P,endGap:D}=SlideSizes(C,E,x,n,O,s),R=SlidesToScroll(C,L,m,u,E,x,P,D,2),{snaps:T,snapsAligned:F}=ScrollSnaps(C,k,E,x,R),H=-arrayLast(T)+arrayLast($),{snapsContained:V,scrollContainLimit:G}=ScrollContain(L,H,F,b,2),z=M?V:F,{limit:B}=ScrollLimit(H,z,u),W=Counter(arrayLastIndex(z),d,u),j=W.clone(),U=arrayKeys(n),Y=Animations(i,s,()=>(({dragHandler:t,scrollBody:e,scrollBounds:n,options:{loop:i}})=>{i||n.constrain(t.pointerDown()),e.seek()})(at),t=>(({scrollBody:t,translate:e,location:n,offsetLocation:i,previousLocation:s,scrollLooper:r,slideLooper:o,dragHandler:a,animation:l,eventHandler:c,scrollBounds:d,options:{loop:u}},h)=>{const p=t.settled(),g=!d.shouldConstrain(),f=u?p:p&&g,m=f&&!a.pointerDown();m&&l.stop();const _=n.get()*h+s.get()*(1-h);i.set(_),u&&(r.loop(t.direction()),o.loop()),e.to(i.get()),m&&c.emit("settle"),f||c.emit("scroll")})(at,t)),q=z[W.get()],K=Vector1D(q),Q=Vector1D(q),J=Vector1D(q),X=Vector1D(q),Z=ScrollBody(K,J,Q,X,h,.68),tt=ScrollTarget(u,z,H,B,X),et=ScrollTo(Y,W,j,Z,tt,X,o),nt=ScrollProgress(B),it=EventStore(),st=SlidesInView(e,n,o,f),{slideRegistry:rt}=SlideRegistry(M,b,z,G,R,U),ot=SlideFocus(t,n,rt,et,Z,it,o,A),at={ownerDocument:i,ownerWindow:s,eventHandler:o,containerRect:E,slideRects:x,animation:Y,axis:C,dragHandler:DragHandler(C,t,i,s,X,DragTracker(C,s),K,Y,et,Z,tt,W,o,I,p,g,_,.68,v),eventStore:it,percentOfView:I,index:W,indexPrevious:j,limit:B,location:K,offsetLocation:J,previousLocation:Q,options:r,resizeHandler:ResizeHandler(e,o,s,n,C,S,w),scrollBody:Z,scrollBounds:ScrollBounds(B,J,X,Z,I),scrollLooper:ScrollLooper(H,B,J,[K,J,Q,X]),scrollProgress:nt,scrollSnapList:z.map(nt.get),scrollSnaps:z,scrollTarget:tt,scrollTo:et,slideLooper:SlideLooper(C,L,H,N,$,T,z,J,n),slideFocus:ot,slidesHandler:SlidesHandler(e,o,y),slidesInView:st,slideIndexes:U,slideRegistry:rt,slidesToScroll:R,target:X,translate:Translate(C,e)};return at}function EventHandler(){let t,e={};function n(t){return e[t]||[]}const i={init:function(e){t=e},emit:function(e){return n(e).forEach(n=>n(t,e)),i},off:function(t,s){return e[t]=n(t).filter(t=>t!==s),i},on:function(t,s){return e[t]=n(t).concat([s]),i},clear:function(){e={}}};return i}const defaultOptions={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,snapped:"is-selected",inView:"",draggable:"is-draggable",dragging:"is-dragging",destroyHeight:"auto",delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function OptionsHandler(t){function e(t,e){return objectsMergeDeep(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(n){const i=n.breakpoints||{},s=objectKeys(i).filter(e=>t.matchMedia(e).matches).map(t=>i[t]).reduce((t,n)=>e(t,n),{});return e(n,s)},optionsMediaQueries:function(e){return e.map(t=>objectKeys(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}function PluginsHandler(t){let e=[];return{init:function(n,i){return e=i.filter(({options:e})=>
1!1!==t.optionsAtMedia(e).active),e.forEach(e=>e.init(n,t)),i.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){e=e.filter(t=>t.destroy())}}}function Carousel(t,e,n){const i=t.ownerDocument,s=i.defaultView,r=OptionsHandler(s),o=PluginsHandler(r),a=EventStore(),l=EventHandler(),{mergeOptions:c,optionsAtMedia:d,optionsMediaQueries:u}=r,{on:h,off:p,emit:g}=l,f=C;let m,_,b,S,y=!1,v=c(defaultOptions,Carousel.globalOptions),A=c(v),w=[];function E(e){const n=Engine(t,b,S,i,s,e,l);return e.loop&&!n.slideLooper.canLoop()?E(Object.assign({},e,{loop:!1})):n}function x(e,n){y||(v=c(v,e),A=d(v),w=n||w,function(){const{container:e,slides:n}=A,i=isString(e)?t.querySelector(e):e;b=i||t.children[0];const s=isString(n)?b.querySelectorAll(n):n;S=[].slice.call(s||b.children)}(),m=E(A),u([v,...w.map(({options:t})=>t)]).forEach(t=>a.add(t,"change",C)),A.active&&(m.translate.to(m.location.get()),m.animation.init(),m.slidesInView.init(),m.slideFocus.init(M),m.eventHandler.init(M),m.resizeHandler.init(M),m.slidesHandler.init(M),m.options.loop&&m.slideLooper.loop(),b.offsetParent&&S.length&&m.dragHandler.init(M),_=o.init(M,w)))}function C(t,e){const n=k();L(),x(c({startIndex:n},t),e),l.emit("reInit")}function L(){m.dragHandler.destroy(),m.eventStore.clear(),m.translate.clear(),m.slideLooper.clear(),m.resizeHandler.destroy(),m.slidesHandler.destroy(),m.slidesInView.destroy(),m.animation.destroy(),o.destroy(),a.clear()}function I(t,e,n){A.active&&!y&&(m.scrollBody.useBaseFriction().useDuration(!0===e?0:A.duration),m.scrollTo.index(t,n||0))}function k(){return m.index.get()}const M={canScrollNext:function(){return m.index.add(1).get()!==k()},canScrollPrev:function(){return m.index.add(-1).get()!==k()},containerNode:function(){return b},internalEngine:function(){return m},destroy:function(){y||(y=!0,a.clear(),L(),l.emit("destroy"),l.clear())},off:p,on:h,emit:g,plugins:function(){return _},previousScrollSnap:function(){return m.indexPrevious.get()},reInit:f,rootNode:function(){return t},scrollNext:function(t){I(m.index.add(1).get(),t,-1)},scrollPrev:function(t){I(m.index.add(-1).get(),t,1)},scrollProgress:function(){return m.scrollProgress.get(m.offsetLocation.get())},scrollSnapList:function(){return m.scrollSnapList},scrollTo:I,scrollToSlide:function(t,e,n){if(!A.active||y)return;const i=m.slideRegistry.findIndex(e=>e.includes(isNumber(t)?t:S.indexOf(t)));isNumber(i)&&I(i,e,n||0)},selectedScrollSnap:k,slideNodes:function(){return S},slidesInView:function(){return m.slidesInView.get()},slidesNotInView:function(){return m.slidesInView.get(!1)}};return x(e,n),setTimeout(()=>l.emit("init"),0),M}function removeClass(t,e){if(!t||!e)return;const{classList:n}=t;n.contains(e)&&n.remove(e)}function addClass(t,e){if(!t||!e)return;const{classList:n}=t;n.contains(e)||n.add(e)}function nodeListToArray(t){return Array.from(t)}function ClassNames(t={}){let e,n,i,s;const r=["select"],o=["pointerDown","pointerUp"],a=["slidesInView"];function l(t,n){"pointerDown"===n?addClass(i,e.dragging):removeClass(i,e.dragging)}function c(t,e){nodeListToArray(n.containerNode().querySelectorAll(`.${e}`)).forEach(t=>removeClass(t,e)),t.forEach(t=>addClass(s[t],e))}function d(){const{slideRegistry:t}=n.internalEngine();c(t[n.selectedScrollSnap()],e.snapped)}function u(){c(n.slidesInView(),e.inView)}return{name:"classNames",options:t,init:function(c,h){n=c;const{mergeOptions:p,optionsAtMedia:g}=h,f=p(defaultOptions,ClassNames.globalOptions),m=p(f,t);e=g(m),i=n.rootNode(),s=n.slideNodes(),!!n.internalEngine().options.watchDrag&&addClass(i,e.draggable),e.dragging&&o.forEach(t=>n.on(t,l)),e.snapped&&(r.forEach(t=>n.on(t,d)),d()),e.inView&&(a.forEach(t=>n.on(t,u)),u())},destroy:function(){removeClass(i,e.draggable),o.forEach(t=>n.off(t,l)),r.forEach(t=>n.off(t,d)),a.forEach(t=>n.off(t,u)),s.forEach(t=>removeClass(t,e.snapped))}}}function AutoHeight(t={}){let e,n,i=[];const s="select",r="slidesInView";let o=0,a=0;function l(){o=n.slidesInView().map(t=>i[t]).reduce((t,e)=>
1Math.max(t,e),0)||0,o>=a&&d(o)}function c(t,e){a=function(){const{slideRegistry:t}=n.internalEngine(),e=t[n.selectedScrollSnap()];return e?e.map(t=>i[t]).reduce((t,e)=>Math.max(t,e),0):null}(),null!==a&&d("destroy"===e?"destroy":Math.max(a,o))}function d(t){n.containerNode().style.height="destroy"===t?e.destroyHeight:`${t}px`}return{name:"autoHeight",options:t,init:function(o,a){n=o;const{mergeOptions:d,optionsAtMedia:u}=a,h=d(defaultOptions,AutoHeight.globalOptions),p=d(h,t);e=u(p);const{options:{axis:g},slideRects:f}=n.internalEngine();"y"!==g&&(i=f.map(t=>t.height),n.on(s,c),n.on(r,l),c())},destroy:function(){n.off(s,c),n.off(r,l),d("destroy")}}}function getAutoplayRootNode(t,e){const n=t.rootNode();return e&&e(n)||n}Carousel.globalOptions=void 0,ClassNames.globalOptions=void 0,AutoHeight.globalOptions=void 0;const defaultOptions2={direction:"forward",speed:2,startDelay:1e3,active:!0,breakpoints:{},playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,rootNode:null};function AutoScroll(t={}){let e,n,i,s,r,o=0,a=!1,l=!1;function c(){if(i)return;if(a)return;n.emit("autoScroll:play");const t=n.internalEngine(),{ownerWindow:r}=t;o=r.setTimeout(()=>{t.scrollBody=function(t){const{location:i,previousLocation:s,offsetLocation:r,target:o,scrollTarget:a,index:l,indexPrevious:c,limit:{reachedMin:u,reachedMax:h,constrain:p},options:{loop:g}}=t,f="forward"===e.direction?-1:1,m=()=>A;let _=0,b=0,S=i.get(),y=0,v=!1;const A={direction:()=>b,duration:()=>-1,velocity:()=>_,settled:()=>v,seek:function(){let t=0;s.set(i),_=f*e.speed,S+=_,i.add(_),o.set(i),t=S-y,b=Math.sign(t),y=S;const m=a.byDistance(0,!1).index;l.get()!==m&&(c.set(l.get()),l.set(m),n.emit("select"));const w="forward"===e.direction?u(r.get()):h(r.get());if(!g&&w){v=!0;const t=p(i.get());i.set(t),o.set(i),d()}return A},useBaseFriction:m,useBaseDuration:m,useFriction:m,useDuration:m};return A}(t),t.animation.start()},s),a=!0}function d(){if(i)return;if(!a)return;n.emit("autoScroll:stop");const t=n.internalEngine(),{ownerWindow:e}=t;t.scrollBody=r,e.clearTimeout(o),o=0,a=!1}function u(){l||d()}function h(){l||m()}function p(){l=!0,d()}function g(){l=!1,c()}function f(){n.off("settle",f),c()}function m(){n.on("settle",f)}return{name:"autoScroll",options:t,init:function(o,a){n=o;const{mergeOptions:l,optionsAtMedia:f}=a,m=l(defaultOptions2,AutoScroll.globalOptions),_=l(m,t);if(e=f(_),n.scrollSnapList().length<=1)return;s=e.startDelay,i=!1,r=n.internalEngine().scrollBody;const{eventStore:b}=n.internalEngine(),S=!!n.internalEngine().options.watchDrag,y=getAutoplayRootNode(n,e.rootNode);S&&n.on("pointerDown",u),S&&!e.stopOnInteraction&&n.on("pointerUp",h),e.stopOnMouseEnter&&b.add(y,"mouseenter",p),e.stopOnMouseEnter&&!e.stopOnInteraction&&b.add(y,"mouseleave",g),e.stopOnFocusIn&&n.on("slideFocusStart",d),e.stopOnFocusIn&&!e.stopOnInteraction&&b.add(n.containerNode(),"focusout",c),e.playOnInit&&c()},destroy:function(){n.off("pointerDown",u).off("pointerUp",h).off("slideFocusStart",d).off("settle",f),d(),i=!0,a=!1},play:function(t){void 0!==t&&(s=t),c()},stop:function(){a&&d()},reset:function(){a&&(d(),m())},isPlaying:function(){return a}}}function clampNumber(t,e,n){return Math.min(Math.max(t,e),n)}function Fade(t={}){const e=1e3/60;let n,i,s,r,o=[],a=0,l=0,c=0,d=!1;function u(){m(n.selectedScrollSnap(),1)}function h(){d=!1}function p(){d=!1,a=0,l=0}function g(){const t=n.internalEngine().scrollBody.duration();l=t?0:1,d=!0,t||u()}function f(t){const{scrollSnaps:e,location:i,target:s}=n.internalEngine();!isNumber(t)||o[t]<.5||(i.set(e[t]),s.set(i))}function m(t,e){n.scrollSnapList().forEach((i,s)=>{const r=Math.abs(e),l=o[s],u=s===t,h=clampNumber(u?l+r:l-r,0,1);o[s]=h;const p=u&&d,g=n.previousScrollSnap();p&&(o[g]=1-h),u&&function(t,e){const{index:i,dragHandler:s,scrollSnaps:r}=n.internalEngine(),o=s.pointerDown(),l=1/(r.length-1);let d=t,u=o?n.selectedScrollSnap():n.previousScrollSnap();if(o&&d===u){const t=-1*Math.sign(a);d=u,u=i.clone().set(u).add(t).get()}c=u*l+(d-u)*l*e}(t,h),function(t){const e=n.internalEngine().slideRegistry[t],{scrollSnaps:i,containerRect:s}=n.internalEngine(),r=o[t];
1e.forEach(e=>{const o=n.slideNodes()[e].style,a=parseFloat(r.toFixed(2)),l=a>0,c=function(t){const{axis:e}=n.internalEngine();return`translate${e.scroll.toUpperCase()}(${e.direction(t)}px)`}(l?i[t]:s.width+2);l&&(o.transform=c),o.opacity=a.toString(),o.pointerEvents=r>.5?"auto":"none",l||(o.transform=c)})}(s)})}function _(){const{dragHandler:t,index:e,scrollBody:i}=n.internalEngine(),s=n.selectedScrollSnap();if(!t.pointerDown())return s;const r=Math.sign(i.velocity()),o=Math.sign(a),l=e.clone().set(s).add(-1*r).get();return r&&o?o===r?l:s:null}function b(){const{target:t,location:s}=n.internalEngine(),r=t.get()-s.get(),c=Math.abs(r)>=1,d=_(),u=!isNumber(d);return function(t){const{dragHandler:n,scrollBody:s}=t.internalEngine(),r=e/1e3,c=n.pointerDown(),d=s.velocity()*r,u=s.duration(),h=_(),p=!isNumber(h);if(c){if(!d)return;a+=d,l=Math.abs(d/i),f(h)}if(!c){if(!u||p)return;l+=(1-o[h])/u,l*=.68}p||m(h,l)}(n),!u&&!c&&o[d]>.999}function S(){return c}return{name:"fade",options:t,init:function(t){n=t;const e=n.selectedScrollSnap(),{scrollBody:a,containerRect:l,axis:c}=n.internalEngine(),f=c.measureSize(l);i=clampNumber(.75*f,200,500),d=!1,o=n.scrollSnapList().map((t,n)=>n===e?1:0),s=a.settled,r=n.scrollProgress,a.settled=b,n.scrollProgress=S,n.on("select",g).on("slideFocus",u).on("pointerDown",p).on("pointerUp",h),function(){const{translate:t,slideLooper:e}=n.internalEngine();t.clear(),t.toggleActive(!1),e.loopPoints.forEach(({translate:t})=>{t.clear(),t.toggleActive(!1)})}(),u()},destroy:function(){const{scrollBody:t}=n.internalEngine();t.settled=s,n.scrollProgress=r,n.off("select",g).off("slideFocus",u).off("pointerDown",p).off("pointerUp",h),n.slideNo
1des().forEach(t=>{const e=t.style;e.opacity="",e.transform="",e.pointerEvents="",t.getAttribute("style")||t.removeAttribute("style")})}}}AutoScroll.globalOptions=void 0,Fade.globalOptions=void 0;export{Carousel,ClassNames,AutoHeight,AutoScroll,Fade};var getterAdd=(t,e,n,i=!1)=>{!i&&t.has(e)||(t instanceof WeakSet?t.add(e):t.set(e,n))},getterGet=(t,e,n)=>{if(!t.has(e)){if(!n)return null;getterAdd(t,e,n,!0)}return t.get(e)},getterRunFn=(t,e,n)=>{if(!t.has(e))throw TypeError(t+"no exist");return n};import{$4,$$4,$id4,matchMediaQuery,getArrVisible,admEvts,AutoplayElement}from"@theme/utilities";import{animate,stagger,inView,resize,frame,hover}from"@theme/m";function getUID(t="hdt"){do{t+=crypto.randomUUID?crypto.randomUUID():~~(1e6*Math.random())}while($id4(t));return t}const html=document.documentElement;Carousel.globalOptions={direction:html.getAttribute("dir")};const slideEvents=["init","reInit","select"];var on_reInit_slider_fn,on_check_center_fn,_slider_defaults={loop:!1,align:"start",containScroll:"trimSnaps",skipSnaps:!0,watchSlides:!1,watchResize:!0,watchDrag:"smart",slidesToScroll:"auto",inViewThreshold:.5,classNames:!0,autoHeight:!1,autoPlay:0,autoScroll:0,pauseOnHover:!1,stopOnInteraction:!1,marquee_mb:0,a11ySlide:!0,a11yKeyBoard:!0,a11yControls:!0,customEffect:!1,inView:"is-in-view",inViewThreshold:.001,duration:25,"(prefers-reduced-motion: reduce)":{duration:0}},_slider_api=new WeakMap,_options_slider=new WeakMap,_on_reInit_slider=new WeakSet,_on_check_center=new WeakSet,str_slide="hdt-slider__slide";class Slider extends AutoplayElement{#t;#e;constructor(){super(),this.id||(this.id=getUID()),getterAdd(_on_reInit_slider,this),getterAdd(_on_check_center,this),getterAdd(_options_slider,this,Object.assign({},_slider_defaults,JSON.parse(this.getAttribute("config")||"{}"))),"smart"==getterGet(_options_slider,this).watchDrag&&(getterGet(_options_slider,this).watchDrag=(t,e)=>!(e&&e.target&&e.target.hasAttribute("unDrag"))&&(t.scrollSnapList().length>1&&!this.effRunning)),"#65"==getterGet(_options_slider,this).watchResize&&(getterGet(_options_slider,this).watchResize=(t,e)=>{for(const n of e){if(t.containerNode()===n.target&&n.contentRect.height!=n.target.prevHeight)return n.target.prevHeight=n.contentRect.height,!0;if(t.containerNode()===n.target)return!1;window.requestAnimationFrame(()=>{t.reInit(),t.emit("resize")});break}return!1})}connectedCallback(){if(this.#t=parseFloat(this.getAttribute("eff2"))||15,super.connectedCallback(),!$$4(".hdt-slider__slide",this).length)return;const t=[],{classNames:e,autoHeight:n,navUI:i,navUICenter:s,marquee:r,marquee_mb:o,fade:a,customEffect:l,dragClass:c}=getterGet(_options_slider,this);if(this.slideCusEff=l,e&&t.push(ClassNames({inView:getterGet(_options_slider,this).inView,dragging:"is-pointer-down"})),n&&t.push(AutoHeight()),i&&s&&t.push(s()),r){const e={speed:o||r,startDelay:0,direction:"forward",stopOnInteraction:getterGet(_options_slider,this).stopOnInteraction,stopOnMouseEnter:getterGet(_options_slider,this).pauseOnHover,active:!!o,breakpoints:{"(min-width: 1025px)":{active:!0,speed:r}}};t.push(AutoScroll(e))}if(a&&t.push(Fade()),getterAdd(_slider_api,this,Carousel($4(".hdt-slider__viewport",this)||this,getterGet(_options_slider,this),t),!0),getterRunFn(_on_check_center,this,on_check_center_fn).call(this,this.apiS),this.apiS.on("reInit",getterRunFn(_on_reInit_slider,this,on_reInit_slider_fn).bind(this)).on("destroy",()=>{["init","reInit","select","slidesInView"].forEach(t=>{this.apiS.off(t)}),this.dispatchEvent(new CustomEvent("destroy"))}),["init","reInit","select","slidesInView"].forEach(t=>{this.apiS.on(t,e=>{this.dispatchEvent(new CustomEvent("init"==t?"reInit":t,{detail:{sliderApi:e}}))})}),this.interval&&(this.apiS.on("pointerDown",this.pause.bind(this)),this.apiS.on("pointerUp",this.resume.bind(this)),this.apiS.on("reInit",this.reset.bind(this)),this.apiS.on("select",this.reset.bind(this))),l&&this.animateCustomFn(),this.hasAttribute("show-cursor-drag")&&$id4("hdt-crs-eff").setupCursorElement(this),c){let t=!1,e=this.apiS.scrollProgress();this.apiS.on("scroll",n=>{if(t=n.internalEngine().dragHandler.pointerDown(),!t)return;this.setAttribute("hdt-dragging","");const i=n.scrollProgress();i>e?this.setAttribute("dir-drag","left"):i<e&&this.setAttribute("dir-drag","right"),e=i}).on("pointerUp",()=>{t&&this.removeAttribute("hdt-dragging"),t=!1})}r&&(this.autoScrollActive=()=>{let t=this.apiS.plugins()?.autoScroll.options,e=t.active;for(const n in t.breakpoints)window.matchMedia(n).matches&&(e=t.breakpoints[n].active);return e}),Shopify.designMode&&this.addEventListener(admEvts.select,t=>{let e=t.target;e.classList.contains(str_slide)||(e=e.closest(`.${str_slide}`)),this.goToTarget(e,t.detail.load)})}disconnectedCallback(){super.disconnectedCallback(),this.apiS?.destroy()}animateCustomFn(){this.apiS.on("pointerDown",()=>this.slideCusEff=!1).on("pointerUp",()=>this.slideCusEff=!0).on("select",()=>{this.slideCusEff&&this.animateEnter().then(()=>{this.effRunning=!1})})}animateLeave(t){this.effRunning=!0;
1const{slideNodes:e,selectedScrollSnap:n}=this.apiS;return t<0&&(t=e().length-1),t>=e().length&&(t=0),animate(e()[n()].firstElementChild,{opacity:[1,0],transform:["translateY(0)",`translateY(${this._translateY(t,n(),"leave")}px)`]},{duration:.25,ease:"ease",opacity:{duration:.15}})}animateEnter(){const{slideNodes:t,previousScrollSnap:e,selectedScrollSnap:n}=this.apiS;return animate(t()[e()].firstElementChild,{opacity:1,transform:"translateY(0)"},{duration:0}),animate(t()[n()].firstElementChild,{opacity:[0,1],transform:[`translateY(${this._translateY(n(),e())}px)`,"translateY(0)"]},{duration:.25,ease:"ease",opacity:{duration:.15}})}_translateY(t,e,n="enter"){let i;if(this.hasAttribute("eff2")){let s="leave"==n?1:-1;t>e&&(s*=-1),i=this.#t*s}return i||"-10"}get isActive(){return this.apiS.internalEngine().options.active}reInit(){this.apiS.reInit()}goToTarget(t,e,n=!1){this.goToIndex(this.apiS.slideNodes().indexOf(t),e||!matchMediaQuery("motion"),n)}goToIndex(t,e,n){if(t=parseInt(t),n){const e=this.apiS.selectedScrollSnap();Math.abs(t-e)>2&&this.apiS.scrollToSlide(t<e?t+2:t-2,!0)}this.apiS.scrollToSlide(t,e)}goToSnap(t,e){this.apiS.scrollTo(parseInt(t),e||!matchMediaQuery("motion"))}get customEffect(){return getterGet(_options_slider,this).customEffect}get apiS(){return getterGet(_slider_api,this)}get customPlayFn(){return()=>{this.apiS.scrollSnapList().length<=1||(this.customEffect?this.animateLeave(this.apiS?.selectedScrollSnap()+1).then(()=>{this.apiS.canScrollNext()?this.apiS.scrollNext(!0):this.apiS.scrollTo(0,!0)}):this.apiS.canScrollNext()?this.apiS.scrollNext(!matchMediaQuery("motion")):this.apiS.scrollTo(0,!matchMediaQuery("motion")))}}}on_reInit_slider_fn=function(t){getterRunFn(_on_check_center,this,on_check_center_fn).call(this,t)},on_check_center_fn=function(t){if(!this.isActive)return;const{options:{axis:e,ntCenter:n,variableWidths:i}}=t.internalEngine();if(t.scrollSnapList().length>1||"y"==e||!n)return;const{containerRect:s,slideRects:r,translate:o}=t.internalEngine(),a=i?r.map(t=>t.width).reduce((t,e)=>t+e):r[0].width*t.slideNodes().length;o.to((s.width-a)/2)};var slider_reveal_fn,_slider_reveal=new WeakSet;class SliderReveal extends Slider{constructor(){super(),getterAdd(_slider_reveal,this),matchMediaQuery("motion")&&this.hasAttribute("reveal-on-scroll")&&inView(this,getterRunFn(_slider_reveal,this,slider_reveal_fn).bind(this),{margin:"-100px 0px"})}reveal(){getterRunFn(_slider_reveal,this,slider_reveal_fn).call(this)}}slider_reveal_fn=function(){const t=$$4("[reveal],[can-reveal]",this);0!=t.length&&animate(t,{opacity:[0,1],transform:["translateY(22px)","translateY(0)"]},{duration:.25,delay:stagger(t.length>10?.05:.15,{ease:[.25,.1,.25,1]}),ease:[.25,.1,.25,1]})};class SliderLazy extends Slider{constructor(){super()}connectedCallback(){}InitLazy(){super.connectedCallback()}}var _progress_slider_controls=new WeakMap;class SliderProgress extends HTMLElement{#n;constructor(){super(),getterAdd(_progress_slider_controls,this,$id4(this.getAttribute("controls")))}connectedCallback(){if(getterAdd(_progress_slider_controls,this,$id4(this.getAttribute("controls")),!0),!getterGet(_progress_slider_controls,this).apiS)return this.setAttribute("hidden","");getterGet(_progress_slider_controls,this).apiS.on("init",this.#i.bind(this)).on("reInit",this.#i.bind(this)).on("select",this.#i.bind(this)).on("destroy",this.#s.bind(this))}get#r(){return this.#n??=this.getAttribute("type")||"snap"}#o(t){const{containerNode:e,internalEngine:n,selectedScrollSnap:i}=t,{slideRegistry:s,slideRects:r}=n(),{scrollWidth:o}=e();let a=0,l=0;for(const t of s){if(t.forEach(t=>{a+=r[t].width}),l==i())break;l++}return Math.min(a/o,1)}#a(t){return(t.selectedScrollSnap()+1)/t.scrollSnapList().length}#i(t,e){if(!t||!getterGet(_progress_slider_controls,this).isActive)return this.setAttribute("hidden","");const n=t.scrollSnapList().length<2;"int"!=e&&"reInit"!=e||this.toggleAttribute("hidden",n),n||this.style.setProperty("--scale-x","snap"==this.#r?this.#a(t):this.#o(t))}#s(){this.style.removeProperty("--scale-x")}}[].toReversed||(Array.prototype.toReversed=function(){for(var t=this.length-1,e=[];t>=0;--t)e.push(this[t]);return e});const easings={cubicInOut:t=>t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1};class ShapeOverlays{#l;#c=4;#d=800;#u=[];#h=180;#p=70;#g=0;#f=!1;#m=!1;constructor(t){this.#l=$$4("path",t)}toggle(t=!1){this.#m=!0;const e=Math.random()*Math.PI*2;for(let t=0;t<this.#c;t++){const n=t/(this.#c-1)*Math.PI*2;this.#u[t]=(Math.sin(n+e)+1)/2*this.#h}this.#f||t?this.#_():this.#b()}#b(){this.#f=!0,this.#g=Date.now(),this.#S()}#_(){this.#f=!1,this.#g=Date.now(),this.#S()}#y(t){const e=[];for(let n=0;n<this.#c;n++)e[n]=100*easings.cubicInOut(Math.min(Math.max(t-this.#u[n],0)
1/this.#d,1));let n="";n+=this.#f?`M 0 0 V ${e[0]} `:`M 0 ${e[0]} `;for(let t=0;t<this.#c-1;t++){const i=(t+1)/(this.#c-1)*100,s=i-1/(this.#c-1)*50;n+=`C ${s} ${e[t]} ${s} ${e[t+1]} ${i} ${e[t+1]} `}return n+=this.#f?"V 0 H 0":"V 100 H 0",n}#v(){if(this.#f)for(let t=0;t<this.#l.length;t++)this.#l[t].setAttribute("d",this.#y(Date.now()-(this.#g+this.#p*t)));else for(let t=0;t<this.#l.length;t++)this.#l[t].setAttribute("d",this.#y(Date.now()-(this.#g+this.#p*(this.#l.length-t-1))))}#S(){this.#v();const t=this.#d+this.#p*(this.#l.length-1)+this.#h;Date.now()-this.#g<t?requestAnimationFrame(()=>this.#S()):this.#m=!1}}const selectorMedia="hdt-video, img, svg";class Slideshow extends Slider{#A;#n;#w;constructor(){super(),"overlay"==this.#r&&(this.#A=new ShapeOverlays($4(".hdt-shape-overlays",this)))}get#r(){return this.#n??=this.getAttribute("type")}connectedCallback(){super.connectedCallback(),this.apiS.on("init",this.#E.bind(this)).on("reInit",this.#E.bind(this)),this.addEventListener("reInit",this.#x.bind(this)),this.addEventListener("select",this.#x.bind(this)),this.hasAttribute("remote")&&this.#C(),"overlay"!=this.#r&&this.apiS.on("select",this.#E.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.#w?.abort()}#x(){const{slideNodes:t,selectedScrollSnap:e}=this.apiS,n=e();t().forEach((t,e)=>{const i=e===n;t.setAttribute("aria-hidden",String(!i)),i?t.removeAttribute("inert"):t.setAttribute("inert","")})}#C(){const t=$id4(this.getAttribute("remote"));t&&(this.#w=new AbortController,t.addEventListener("select",t=>{this.goToSnap(t.detail.sliderApi.selectedScrollSnap())},{signal:this.#w.signal}))}#E(t){const{slideNodes:e,selectedScrollSnap:n,previousScrollSnap:i}=t;let s=e()[n()],r=getArrVisible($$4("[reveal], [can-reveal]",s)),o=getArrVisible($$4("[reveal], [can-reveal]",e()[i()]));if("overlay"==this.#r){this.#A.toggle(!0);const t=[[$4(selectorMedia,$4(".hdt-media-wrapper",s)),{filter:["blur(50px)","blur(0px)"],scale:[1.5,1]},{duration:.8,ease:[0,.87,.58,1],delay:.1}]];o.length>0&&t.push([o,{opacity:0},{duration:0,at:"<"}]),r.length>0&&t.push([r,{y:[150,0],opacity:[0,1]},{duration:1,delay:stagger(.25),at:"+0.5",ease:[0,.87,.58,1],opacity:{duration:.25,ease:"easeOut"}}]),animate(t)}else if(r.length>0){const t=[[r,{y:[150,0],opacity:[0,1]},{duration:1,delay:stagger(.25,{startDelay:.5}),ease:[0,.87,.58,1],opacity:{duration:.25,ease:"easeOut"}}]];o.length>0&&t.push([o,{opacity:0},{duration:0,at:"<"}]),animate(t)}}animateCustomFn(){this.apiS.on("pointerDown",()=>this.slideCusEff=!1).on("pointerUp",()=>this.slideCusEff=!0).on("select",t=>{Shopify.designMode&&(this.slideCusEff=!1),this.slideCusEff?this.animateEnter().then(()=>{this.effRunning=!1}):this.#E(t)})}animateLeave(){return this.effRunning=!0,this.#A.toggle(),animate(0,1,{duration:.6})}animateEnter(){this.#A.toggle();const{slideNodes:t,selectedScrollSnap:e}=this.apiS;let n=t()[e()],i=getArrVisible($$4("[reveal], [can-reveal]",n));const s=[[$4(selectorMedia,$4(".hdt-media-wrapper",n)),{filter:["blur(50px)","blur(0px)"],scale:[1.5,1]},{duration:.8,ease:[0,.87,.58,1]}]];return i.length>0&&s.push([i,{y:[150,0],opacity:[0,1]},{duration:1,delay:stagger(.25),at:"-0.25",ease:[0,.87,.58,1],opacity:{duration:.25,ease:"easeOut"}}]),animate(s)}}class SliderMedia extends Slider{constructor(){super(),"image"==getterGet(_options_slider,this).watchDrag?getterGet(_options_slider,this).watchDrag=(t,e)=>{const n=e.target.closest("[data-media-type]");return n?"image"==n.getAttribute("data-media-type"):t.scrollSnapList().length>1}:"unlessPlaying"==getterGet(_options_slider,this).watchDrag&&(getterGet(_options_slider,this).watchDrag=(t,e)=>{const n=e.target.closest("[data-media-type]"),i="image"==n.getAttribute("data-media-type")||!$4("[playing]",n);return n?i:t.scrollSnapList().length>1}),this.hasAttribute("start-mid")&&(getterGet(_options_slider,this).startIndex=this.getIndexSlide(this.getAttribute("start-mid")))}getIndexSlide(t){const e=$4(`.hdt-slider__slide[data-media-id="${t}"]:not([hidden])`,this);return e?$$4(".hdt-slider__slide:not([hidden])",this).indexOf(e):0}connectedCallback(){if(super.connectedCallback(),this.hasAttribute("modal-reinit")){const t=$id4(`hdt-quick-${this.getAttribute("modal-reinit")||"view"}-modal`);t?.addEventListener(dialogOpening,()=>{this.reInit(getterGet(_options_slider,this))},{once:!0})}const t=$$4('[data-media-type="video"], [data-media-type="external_video"], [data-media-type="model"]',this);if(0==t.length)return;const e="video, iframe, model-viewer",n=".shopify-model-viewer-ui__button";window.requestAnimationFrame(()=>{t.forEach(t=>$4(e,t)?.setAttribute("inert",""))}),this.addEventListener("reInit",t=>
1{const{slideNodes:i,selectedScrollSnap:s}=t.detail.sliderApi,r=i()[s()],o=$4(e,r);o?.removeAttribute("inert"),$4(n,r)?.removeAttribute("inert")}),this.addEventListener("select",t=>{const{slideNodes:i,previousScrollSnap:s,selectedScrollSnap:r}=t.detail.sliderApi,o=i()[r()],a=i()[s()],l=$4(e,a),c=$4(e,o);l?.setAttribute("inert",""),$4(n,a)?.setAttribute("inert",""),c?.removeAttribute("inert"),$4(n,o)?.removeAttribute("inert")})}}var _slider_controls=new WeakMap;class sliderUI extends HTMLElement{abortController;constructor(){super()}get slider(){return getterGet(_slider_controls,this,$id4(this.getAttribute("aria-controls")))}get apiS(){return this.slider?.apiS}connectedCallback(){this.abortController=new AbortController}disconnectedCallback(){this.abortController.abort()}get customEffect(){return getterGet(_options_slider,this.slider).customEffect}}var update_slider_controls_fn,click_slider_controls_fn,_slider_controls_btns=new WeakMap,_update_slider_controls=new WeakSet,_click_slider_controls=new WeakSet;const{goToItem}=themeHDN.strings;class sliderControls extends sliderUI{constructor(){super()}connectedCallback(){if(this.abortController2=new AbortController,super.connectedCallback(),!this.slider)return;getterAdd(_slider_controls_btns,this,$$4("button:not([unless-btn])",this),!0),getterAdd(_update_slider_controls,this,!0),getterAdd(_click_slider_controls,this,!0);const{signal:t}=this.abortController;slideEvents.forEach(e=>{this.slider.addEventListener(e,t=>getterRunFn(_update_slider_controls,this,update_slider_controls_fn).call(this,t.detail.sliderApi,e),{once:"init"==e,signal:t})}),this.btnsHandler()}disconnectedCallback(){super.disconnectedCallback(),this.abortController2.abort()}resetAll(){getterAdd(_slider_controls_btns,this,$$4("button:not([unless-btn])",this),!0),this.abortController2.abort(),this.abortController2=new AbortController}async btnsHandler(){getterGet(_slider_controls_btns,this).forEach((t,e)=>{t.addEventListener("click",getterRunFn(_click_slider_controls,this,click_slider_controls_fn).bind(this,e),{signal:this.abortController2.signal})})}}update_slider_controls_fn=function(t,e){if(!t)return;e.includes("nit")&&this.setAttribute("inited","");const n=t.previousScrollSnap(),i=t.selectedScrollSnap();this.hasAttribute("update-color")&&this.setAttribute("color-scheme",t.slideNodes()[i].getAttribute("color-scheme")),n!==i&&(getterGet(_slider_controls_btns,this)[n]?.setAttribute("aria-current",!1),getterGet(_slider_controls_btns,this)[i]?.setAttribute("aria-current",!0))},click_slider_controls_fn=async function(t){if(t!==this.apiS.selectedScrollSnap()){if(getterGet(_slider_controls_btns,this)[this.apiS.selectedScrollSnap()]?.setAttribute("aria-current",!1),getterGet(_slider_controls_btns,this)[t]?.setAttribute("aria-current",!0),!this.customEffect)return this.slider.goToSnap(t);await this.slider.animateLeave(t),this.slider.goToSnap(t,this.slider.slideCusEff)}};var update_slider_dots_fn,_update_slider_dots=new WeakSet;class sliderDots extends sliderControls{constructor(){super(),getterAdd(_update_slider_dots,this)}connectedCallback(){super.connectedCallback(),this.slider?.addEventListener("reInit",t=>getterRunFn(_update_slider_dots,this,update_slider_dots_fn).call(this,t.detail.sliderApi,"reInit"),{signal:this.abortController.signal})}disconnectedCallback(){super.disconnectedCallback()}}update_slider_dots_fn=function(t,e){if(!t)return;const n=!t.canScrollPrev()&&!t.canScrollNext();this.toggleAttribute("hidden",n),this.slider.classList.toggle("hdt-hidden-slider-dots",n),this.childElementCount===t.scrollSnapList().length||n||(e.includes("nit")&&this.setAttribute("inited",""),this.innerHTML=t.scrollSnapList().map((e,n)=>`<button class="hdt-slider__dot" type="button" value="${n}" aria-current="${(t.selectedScrollSnap()==n).toString()}" aria-label="${goToItem.replace("[index]",n+1)}"></button>`).join(""),this.resetAll(),this.btnsHandler())};var update_slider_nav_fn,click_slider_prev_fn,click_slider_next_fn,center_slider_nav_fn,set_gap_arrow_fn,set_highest_or_lowest_inView_fn,_slider_prev_btn=new WeakMap,_slider_next_btn=new WeakMap,_update_slider_nav=new WeakSet,_click_slider_prev=new WeakSet,_click_slider_next=new WeakSet,_center_slider_nav=new WeakSet,_set_gap_arrow=new WeakSet,_set_highest_or_lowest_inView=new WeakSet;class sliderNav extends sliderUI{constructor(){super(),getterAdd(_update_slider_nav,this),getterAdd(_click_slider_prev,this),getterAdd(_click_slider_next,this),getterAdd(_center_slider_nav,this),getterAdd(_set_gap_arrow,this),getterAdd(_set_highest_or_lowest_inView,this),getterAdd(_slider_prev_btn,this,$4('button[name="previous"]',this)),getterAdd(_slider_next_btn,this,$4('button[name="next"]',this))}static get observedAttributes(){return["aria-controls"]}attributeChangedCallback(t,e,n){if("aria-controls"===t&&e!==n&&null!==e){if(getterAdd(_slider_controls,this,$id4(n),!0),!this.slider)return;this.abortController?.abort(),this.abortController=new AbortController,getterRunFn(_update_slider_nav,this,update_slider_nav_fn).call(this,this.apiS,"reInit"),this.#L()}}connectedCallback(){super.connectedCallback(),this.slider&&(this.#L(),this.closest(".hdt-section")?.addEventListener("hdt:tab-changed",t=>{this.setAttribute("aria-controls",this.getAttribute("aria-controls").slice(0,-1)+t.detail.index)}))}disconnectedCallback(){super.disconnectedCallback()}
1addStyle(t){this.style.setProperty("--gap-arrow",t/2-this.navHeight+"px")}#L(){const{signal:t}=this.abortController;slideEvents.forEach(e=>{this.slider.addEventListener(e,t=>getterRunFn(_update_slider_nav,this,update_slider_nav_fn).call(this,t.detail.sliderApi,e),{once:"init"==e,signal:t})}),this.prev.addEventListener("click",getterRunFn(_click_slider_prev,this,click_slider_prev_fn).bind(this),{signal:t}),this.next.addEventListener("click",getterRunFn(_click_slider_next,this,click_slider_next_fn).bind(this),{signal:t}),this.hasAttribute("center")&&getterRunFn(_center_slider_nav,this,center_slider_nav_fn).call(this,this.apiS)}get prev(){return getterGet(_slider_prev_btn,this)}get next(){return getterGet(_slider_next_btn,this)}}update_slider_nav_fn=function(t,e){if(!t)return;const{canScrollPrev:n,canScrollNext:i}=t,s=!n()&&!i();if(this.toggleAttribute("hidden",s),this.slider.classList.toggle("hdt-hidden-slider-nav",s),!s&&(e.includes("nit")&&this.setAttribute("inited",""),this.prev.toggleAttribute("disabled",!t.canScrollPrev()),this.next.toggleAttribute("disabled",!t.canScrollNext()),this.hasAttribute("update-color"))){const{slideNodes:e,selectedScrollSnap:n}=t;this.parentElement.setAttribute("color-scheme",e()[n()].getAttribute("color-scheme"))}},click_slider_prev_fn=async function(){this.apiS.canScrollPrev&&(this.customEffect?(await this.slider.animateLeave(this.apiS?.selectedScrollSnap()-1),this.apiS?.scrollPrev(this.slider.slideCusEff)):this.apiS?.scrollPrev())},click_slider_next_fn=async function(){this.apiS.canScrollNext&&(this.customEffect?(await this.slider.animateLeave(this.apiS?.selectedScrollSnap()+1),this.apiS?.scrollNext(this.slider.slideCusEff)):this.apiS?.scrollNext())},center_slider_nav_fn=function(t){const{options:{axis:e}}=t.internalEngine();"y"!==e&&(this.height=0,this.heightInview=0,this.minCenter="min"==this.getAttribute("center"),this.initialValue=this.minCenter?9999:0,this.navHeight=this.hasAttribute("nav-height")?this.prev.offsetHeight/2:0,slideEvents.forEach(t=>{this.slider.addEventListener(t,e=>getterRunFn(_set_gap_arrow,this,set_gap_arrow_fn).call(this,e.detail.sliderApi,t),{once:"init"==t,signal:this.abortController.signal})}),this.slider.addEventListener("slidesInView",t=>getterRunFn(_set_highest_or_lowest_inView,this,set_highest_or_lowest_inView_fn).call(this,t.detail.sliderApi,t.type),{signal:this.abortController.signal}))},set_gap_arrow_fn=function(t,e){t&&(e.includes("nit")&&(this.slideHeights=[],t.slideNodes().forEach(t=>{this.slideHeights.push($4("[calc-nav]",t)?.offsetHeight||this.initialValue)})),this.heightInview=getterRunFn(_set_highest_or_lowest_inView,this,set_highest_or_lowest_inView_fn).call(this,t)||0,this.addStyle(Math.max(this.heightInview,this.height)))},set_highest_or_lowest_inView_fn=function(t){const e=this.minCenter?"min":"max";this.height=t.slidesInView().map(t=>this.slideHeights[t]).reduce((t,n)=>Math[e](t,n),this.initialValue)||0,this.height>=this.heightInview&&this.addStyle(this.height)};var _add_thumb_btns_click_handlers,add_thumb_btns_click_handlers_fn,_add_toggle_thumb_btns_active,add_toggle_thumb_btns_active_fn,_slider_thumbs_control=new WeakMap;class SlideThumb extends Slider{constructor(){super(),this.hasAttribute("start-mid")&&(getterGet(_options_slider,this).startIndex=this.getIndexSlide(this.getAttribute("start-mid")))}getIndexSlide(t){const e=$4(`.hdt-slider__slide[data-media-id="${t}"]:not([hidden])`,this);return e?$$4(".hdt-slider__slide:not([hidden])",this).indexOf(e):0}connectedCallback(){if(getterAdd(_slider_thumbs_control,this,$id4(this.getAttribute("aria-controls"))),this.hasAttribute("stagger")&&animate($$4("[reveal]",this),{opacity:[0,1],transform:["translate3d(0, 15px, 0)","translate3d(0, 0, 0)"]},{duration:.2,delay:stagger(.14,{ease:[.2,1,.3,1]})}).then(()=>{this.classList.add("stagger-finished")}),!getterGet(_slider_thumbs_control,this))return;super.connectedCallback();const t=getterGet(_slider_thumbs_control,this).apiS,e=this.apiS;matchMediaQuery("mobile")||"y"!=e.internalEngine().options.axis||e.containerNode().style.setProperty("max-height",`${t.slideNodes()[t.selectedScrollSnap()].clientHeight+10}px`),getterAdd(_add_thumb_btns_click_handlers,this),getterAdd(_add_toggle_thumb_btns_active,this);let n=getterRunFn(_add_thumb_btns_click_handlers,this,add_thumb_btns_click_handlers_fn).call(this,t,e);const i=getterRunFn(_add_toggle_thumb_btns_active,this,add_toggle_thumb_btns_active_fn).call(this,t,e);e.on("reInit",()=>{n(),n=getterRunFn(_add_thumb_btns_click_handlers,this,add_thumb_btns_click_handlers_fn).call(this,t,e)}),t.on("destroy",n).on("destroy",i),e.on("destroy",n).on("destroy",i),this.hasAttribute("stacked")&&!matchMediaQuery("mobile")&&(t.slideNodes().forEac
1h((t,n)=>{new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&($4(".is-thumb-selected",e.containerNode())?.classList.remove("is-thumb-selected"),e.slideNodes()[n]?.classList.add("is-thumb-selected"))})},{root:null,rootMargin:"0px",threshold:.5}).observe(t)}),e.slideNodes().forEach((n,i)=>{n.addEventListener("click",()=>{e.internalEngine().options.active||t.slideNodes()[i]?.scrollIntoView({block:"start",behavior:"smooth"})})}))}}_add_thumb_btns_click_handlers=new WeakSet,add_thumb_btns_click_handlers_fn=function(t,e){const n=e.slideNodes(),i=e=>{const n=t.selectedScrollSnap();Math.abs(e-n)>2&&t.scrollTo(e<n?e+2:e-2,!0),t.scrollTo(e)};return n.forEach((t,e)=>t.addEventListener("click",i.bind(this,e),!1)),()=>{n.forEach((t,e)=>t.removeEventListener("click",i.bind(this,e),!1))}},_add_toggle_thumb_btns_active=new WeakSet,add_toggle_thumb_btns_active_fn=function(t,e){const n=()=>{this.goToIndex(t.selectedScrollSnap()),$4(".is-thumb-selected",this)?.classList.remove("is-thumb-selected"),e.slideNodes()[t.selectedScrollSnap()].classList.add("is-thumb-selected")};return t.on("select",n),e.on("init",n),e.on("reInit",n),()=>{e.slideNodes()[t.selectedScrollSnap()].classList.remove("is-thumb-selected")}};var update_total_counter_fn,update_current_counter_fn,_slider_counter=new WeakMap,_update_total_counter=new WeakSet,_update_current_counter=new WeakSet;class SlideCounter extends HTMLElement{#w;constructor(){super(),getterAdd(_update_total_counter,this),getterAdd(_update_current_counter,this)}connectedCallback(){if(this.#w=new AbortController,getterAdd(_slider_counter,this,$id4(this.getAttribute("slider"))),!getterGet(_slider_counter,this))return;const{signal:t}=this.#w;getterGet(_slider_counter,this).apiS.on("init",getterRunFn(_update_total_counter,this,update_total_counter_fn).bind(this),{signal:t}).on("reInit",getterRunFn(_update_total_counter,this,update_total_counter_fn).bind(this),{signal:t}).on("select",getterRunFn(_update_current_counter,this,update_current_counter_fn).bind(this),{signal:t})}disconnectedCallback(){this.#w.abort()}get total(){return $4("[update-total]",this)}get current(){return this._current=this._current||$4("[update-current]",this)}}update_total_counter_fn=function(t){getterGet(_slider_counter,this).isActive&&(this.total.textContent=t.scrollSnapList().length,getterRunFn(_update_current_counter,this,update_current_counter_fn).call(this,t))},update_current_counter_fn=async function(t){let e=t.selectedScrollSnap()-t.previousScrollSnap();0!=e&&(await animate(this.current,{opacity:[1,0],transform:["translateY(0%)",`translateY(${e>0?"":"-"}100%)`]},{duration:.35,ease:"easeIn"}),this.current.textContent=t.selectedScrollSnap()+1,animate(this.current,{opacity:[0,1],transform:[`translateY(${e>0?"-":""}60%)`,"translateY(0%)"]},{duration:.6,ease:"easeOut"}))};class sliderObserver extends sliderUI{constructor(){super()}connectedCallback(){super.connectedCallback(),this.slider&&(Shopify.designMode&&this.slider.addEventListener("init",this.effect.bind(this),{once:!0}),this.slider.addEventListener("select",this.effect.bind(this),{signal:this.abortController.signal}))}get leaveEl(){return this.childNodes[this.apiS.previousScrollSnap()]}get enterEl(){return this.childNodes[this.apiS.selectedScrollSnap()]}animate(){return animate([[this.leaveEl,{opacity:[1,0],transform:["translateY(0)","translateY(-15px)"]},{duration:.3,ease:"linear"}],[this.enterEl,{opacity:[0,1],transform:["translateY(-15px)","translateY(0)"]},{duration:.3,ease:"linear"}]])}async effect(){await this.animate(),this.childNodes.forEach(t=>t.setAttribute("aria-current",(t==this.enterEl).toString()))}}customElements.define("hdt-slider",Slider),customElements.define("hdt-slider-lazy",SliderLazy),customElements.define("hdt-slider-reveal",SliderReveal),customElements.define("hdt-slideshow",Slideshow),customElements.define("hdt-slider-media",SliderMedia),customElements.define("hdt-slider-controls",sliderControls),customElements.define("hdt-slider-dots",sliderDots),customElements.define("hdt-slider-nav",sliderNav),customElements.define("hdt-slider-thumb",SlideThumb),customElements.define("hdt-slider-counter",SlideCounter),customElements.define("hdt-slider-observer",sliderObserver),customElements.define("hdt-slider-progress",SliderProgress);const CartSync=(()=>{const t="cart-sync";let e=null;return"BroadcastChannel"in window?e=new BroadcastChannel(t):window.addEventListener("storage",e=>{e.key===t&&e.newValue&&dispatchEvent(new CustomEvent("cart:changed",{detail:e.newValue}))}),{notifyChange(n={}){const i={at:Date.now(),...n};e?e.postMessage(i):(localStorage.setItem(t,JSON.stringify(i)),localStorage.removeItem(t))},onChange(t){e?e.onmessage=e=>{t(e.data),dispatchEvent(new CustomEvent("cart:changed",{detail:e.data}))}:addEventListener("cart:changed",e=>t(JSON.parse(e.detail)))}}})(),originalFetch=window.fetch;window.fetch=async function(t,e){const{customt4:n,...i}=e||{},s=await originalFetch(t,i);if(/\/cart\/(add|change|update|clear)\.js/.test(t)){s.clone().json().then(async e=>{let i=e.sections&&e.sections["cart-json"]||e.items?e:await(await fetch(`${Shopify.routes.root}cart.js`)).json();if(i.items||(i=JSON.parse(i.sections["cart-json"].split("[split_94]")[1]||"{}"),i.sections=e.sections),themeHDN.cartItems=i.items,n)try{i=Object.assign({},i,JSON.parse(n))}catch(t){}document.dispatchEvent(new CustomEvent("cart:live",{detail:i}
1)),CartSync.notifyChange({action:t,cart:i})})}return s},CartSync.onChange(t=>{document.dispatchEvent(new CustomEvent("cart:tab",{detail:t.cart})),themeHDN.cartItems=t.cart.items});class MiniMasonry extends HTMLElement{#I="rtl"===html.getAttribute("dir");#k={active:!0,cols:1,gapX:0,gapY:0,minify:!1,checkRow:!1,breakpoints:{}};#M=[];#O=null;constructor(){super()}#N(){const t=Array.from(this.querySelectorAll(":scope > :not([unless-el])"));if(0===t.length)return;this.#$();const{cols:e,gapX:n,gapY:i,minify:s,active:r,checkRow:o,lineHeight:a}=this.#k;if(this.toggleAttribute("active",r),!r)return this.style.removeProperty("height");const l=this.clientWidth,c=(l-n*(e-1))/e;if(this.#M=Array(e).fill(0),o){let r=a;if(!r&&t.length>0){const e=window.getComputedStyle(t[0]);r=parseFloat(e.lineHeight)||1.2*parseFloat(e.fontSize)}const o=r+5;let d=!1;for(let r=0;r<t.length;r+=e){const a=t.slice(r,r+e);if(a.forEach(t=>t.style.setProperty("--mm-w",`${c}px`)),!d){if(a.every(t=>t.getBoundingClientRect().height<=o)){const t=Math.max(...a.map(t=>t.getBoundingClientRect().height)),e=Math.max(...this.#M);a.forEach((t,i)=>{const s=i*(c+n),r=this.#I?l-c-s:s;t.style.setProperty("--mm-x",`${r}px`),t.style.setProperty("--mm-y",`${e}px`)}),this.#M.fill(e+t+i);continue}d=!0}a.forEach((t,o)=>{const a=s?this.#P():(r+o)%e,d=a*(c+n),u=this.#I?l-c-d:d,h=this.#M[a];t.style.setProperty("--mm-x",`${u}px`),t.style.setProperty("--mm-y",`${h}px`),this.#M[a]+=t.getBoundingClientRect().height+i})}}else t.forEach((t,r)=>{const o=s?this.#P():r%e,a=o*(c+n),d=this.#I?l-c-a:a,u=this.#M[o];t.style.setProperty("--mm-w",`${c}px`),t.style.setProperty("--mm-x",`${d}px`),t.style.setProperty("--mm-y",`${u}px`),this.#M[o]+=t.getBoundingClientRect().height+i});this.style.height=Math.max(...this.#M)-(this.#M.length>0?i:0)+"px"}#P(){let t=0;for(let e=1;e<this.#M.length;e++)this.#M[e]<this.#M[t]&&(t=e);return t}#$(){const t=JSON.parse(this.getAttribute("config"));this.#k={...this.#k,...t};const e=this.#k.breakpoints;e&&Object.keys(e).forEach(t=>{window.matchMedia(t).matches&&(this.#k={...this.#k,...e[t]})})}connectedCallback(){this.#N(),this.#O=resize(this,()=>{frame.render(()=>this.#N())})}disconnectedCallback(){this.#O&&this.#O()}}customElements.define("hdt-bento",MiniMasonry);class MiniLazy extends HTMLElement{constructor(){super();const t=new IntersectionObserver(e=>{e.forEach(e=>{(e.intersectionRatio>0||e.isIntersecting)&&(this.#D(e.target),t.unobserve(e.target))})},{rootMargin:"0px",threshold:0});t.observe(this.previousElementSibling)}#D(t){"PICTURE"===t.tagName||("IMG"===t.tagName?(t.hasAttribute("data-src")&&(t.src=element.getAttribute("data-src")),t.hasAttribute("data-srcset")&&t.setAttribute("srcset",element.getAttribute("data-srcset"))):"VIDEO"===t.tagName&&(t.querySelectorAll("source[data-src]").forEach(t=>{t.src=t.dataset.src,t.removeAttribute("data-src")}),t.load(),setTimeout(()=>t.dispatchEvent(new Event("lazy:loaded")),0))),t.setAttribute("is__loaded","")}}customElements.define("hdt-el-lazy",MiniLazy);class Account extends HTMLElement{#R;constructor(){if(super(),this.#R=this.closest("shopify-account"),this.#T)return this.#F();const t=setInterval(()=>{this.#T&&(clearInterval(t),this.#F())},60)}get#T(){return this.#R.shadowRoot}#H(t){return $4(t,this.#T)}#F(){this.#H("button.account-button")?.setAttribute("part","signed-in-avatar"),this.#H(".account-button__avatar")?.setAttribute("part","avatar"),this.#R.setAttribute("is--visible","")}}class AccountWrap extends HTMLElement{constructor(){super(),this.addEventListener("click",()=>$4("shopify-account",this)?.shadowRoot?.querySelector(".account-button")?.click())}}customElements.define("hdt-account",Account),customElements.define("hdt-account-wrap",AccountWrap);
2/*! @license
3Embla Carousel 8.5.1:
4  @license MIT, https://github.com/davidjerleke/embla-carousel/blob/master/LICENSE
5
6Motion 12.23.24:
7  @license MIT, https://github.com/motiondivision/motion/blob/main/LICENSE.md
8
9PhotoSwipe 5.4.4:
10  @license MIT, https://github.com/dimsemenov/PhotoSwipe/blob/master/LICENSE
11
12Floating UI 1.7.0:
13  @license MIT, https://github.com/floating-ui/floating-ui/blob/master/LICENSE
14*/

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.