constt=t=>"object"==typeoft&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t),e=(...i)=>{lets=!1;"boolean"==typeofi[0]&&(s=i.shift());leto=i[0];if(!o||"object"!=typeofo)thrownewError("extendee must be an object");constn=i.slice(1),a=n.length;for(leti=0;i<a;i++){consta=n[i];for(letiina)if(a.hasOwnProperty(i)){constn=a[i];if(s&&(Array.isArray(n)||t(n))){constt=Array.isArray(n)?[]:{};o[i]=e(!0,o.hasOwnProperty(i)?o[i]:t,n)}elseo[i]=n}}returno},i=(t,e=1e4)=>(t=parseFloat(t)||0,Math.round((t+Number.EPSILON)*e)/e),s="undefined"!=typeofwindow&&window.ResizeObserver||class{constructor(t){this.observables=[],this.boundCheck=this.check.bind(this),this.boundCheck(),this.callback=t}observe(t){if(this.observables.some((e=>e.el===t)))return;conste={el:t,size:{height:t.clientHeight,width:t.clientWidth}};this.observables.push(e)}unobserve(t){this.observables=this.observables.filter((e=>e.el!==t))}disconnect(){this.observables=[]}check(){constt=this.observables.filter((t=>{conste=t.el.clientHeight,i=t.el.clientWidth;if(t.size.height!==e||t.size.width!==i)returnt.size.height=e,t.size.width=i,!0})).map((t=>t.el));t.length>0&&this.callback(t),window.requestAnimationFrame(this.boundCheck)}};classo{constructor(t){this.id=-1,this.id=t.pointerId||t.identifier||-1,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.nativePointer=t}}functionn(t,e){returne?Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2):0}functiona(t,e){returne?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}classr{constructor(t,{start:e=(()=>!0),move:i=(()=>{}),end:s=(()=>{})}={}){this.element=t,this.startPointers=[],this.currentPointers=[],this.startCallback=e,this.moveCallback=i,this.endCallback=s,this.onStart=t=>{if(t.button&&0!==t.button)return;conste=newo(t);if(!1===this.startCallback(e,t))return!1;t.preventDefault(),(()=>{constt=window.getSelection?window.getSelection():document.selection;t&&t.rangeCount&&t.getRangeAt(0).getClientRects().length&&(t.removeAllRanges?t.removeAllRanges():t.empty&&t.empty())})(),this.currentPointers.push(e),this.startPointers.push(e);(t.target&&"setPointerCapture"int.target?t.target:this.element).setPointerCapture(t.pointerId),this.element.addEventListener("pointermove",this.onMove),this.element.addEventListener("pointerup",this.onEnd),this.element.addEventListener("pointercancel",this.onEnd)},this.onMove=t=>{conste=this.currentPointers.slice(),i=[];for(consteof[newo(t)]){constt=this.currentPointers.findIndex((t=>t.id===e.id));t<0||(i.push(e),this.currentPointers[t]=e)}i.length&&this.moveCallback(e,this.currentPointers,t)},this.onEnd=t=>{conste=newo(t),i=this.currentPointers.findIndex((t=>t.id===e.id));if(-1===i)return!1;this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(e,t),this.currentPointers.length||(this.element.removeEventListener("pointermove",this.onMove),this.element.removeEventListener("pointerup",this.onEnd),this.element.removeEventListener("pointercancel",this.onEnd))},this.element.addEventListener("pointerdown",this.onStart)}stop(){this.element.removeEventListener("pointerdown",this.onStart),this.element.removeEventListener("pointermove",this.onMove),this.element.removeEventListener("pointerup",this.onEnd),this.element.removeEventListener("pointercancel",this.onEnd)}}constl=function(t){return!(!t||t.classList.contains("carousel__track")||t===document.body)&&(function(t){conste=window.getComputedStyle(t)["overflow-y"],i=window.getComputedStyle(t)["overflow-x"],s=("scroll"===e||"auto"===e)&&Math.abs(t.scrollHeight-t.clientHeight)>1,o=("scroll"===i||"auto"===i)&&Math.abs(t.scrollWidth-t.clientWidth)>1;returns||o}(t)?t:l(t.parentNode))};classh{constructor(t={}){this.options=e(!0,{},t),this.plugins=[],this.events={};for(consttof["on","once"])for(consteofObject.entries(this.options[t]||{}))this[t](...e)}option(t,e){t=String(t);leti=(s=t,o=this.options,s.split(".").reduce((function(t,e){returnt&&t[e]}),o));vars,o;return"function"==typeofi&&(i=i.call