!function(t,c){"use strict";function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}function _classCallCheck$a(t,c){if(!(t instanceof c))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(t,c){for(var h=0;ht.length)&&(c=t.length);for(var h=0,p=new Array(c);h{setTimeout((()=>{this.progress(t,c,h)}))};this.images.forEach((function(t){t.once("progress",onProgress),t.check()}))},ImagesLoaded.prototype.progress=function(t,c,p){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,c]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&h&&h.log(`progress: ${p}`,t,c)},ImagesLoaded.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},LoadingImage.prototype=Object.create(c.prototype),LoadingImage.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},LoadingImage.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},LoadingImage.prototype.confirm=function(t,c){this.isLoaded=t;let{parentNode:h}=this.img,p="PICTURE"===h.nodeName?h:this.img;this.emitEvent("progress",[this,p,c])},LoadingImage.prototype.handleEvent=function(t){let c="on"+t.type;this[c]&&this[c](t)},LoadingImage.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},LoadingImage.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},LoadingImage.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},Background.prototype=Object.create(LoadingImage.prototype),Background.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},Background.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},Background.prototype.confirm=function(t,c){this.isLoaded=t,this.emitEvent("progress",[this,this.element,c])},ImagesLoaded.makeJQueryPlugin=function(c){(c=c||t.jQuery)&&($=c,$.fn.imagesLoaded=function(t,c){return new ImagesLoaded(this,t,c).jqDeferred.promise($(this))})},ImagesLoaded.makeJQueryPlugin(),ImagesLoaded}));var Y=z;function getHeight(t,c){if("inner"===c)return t.clientHeight;if("outer"===c)return t.offsetHeight;let h=window.getComputedStyle(t,null);return"height"===c?t.clientHeight-parseInt(h.getPropertyValue("padding-top"))-parseInt(h.getPropertyValue("padding-bottom")):"full"===c?t.offsetHeight+parseInt(h.getPropertyValue("margin-top"))+parseInt(h.getPropertyValue("margin-bottom")):null}function _classCallCheck$9(t,c){if(!(t instanceof c))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,c){for(var h=0;ht.length)&&(c=t.length);for(var h=0,p=new Array(c);h0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck$9(this,_default),Object.assign(this,X,t),this.smartphone=X.smartphone,t.smartphone&&Object.assign(this.smartphone,t.smartphone),this.tablet=X.tablet,t.tablet&&Object.assign(this.tablet,t.tablet),this.namespace="locomotive",this.html=document.documentElement,this.windowHeight=window.innerHeight,this.windowWidth=window.innerWidth,this.windowMiddle={x:this.windowWidth/2,y:this.windowHeight/2},this.els={},this.currentElements={},this.listeners={},this.hasScrollTicking=!1,this.hasCallEventSet=!1,this.checkScroll=this.checkScroll.bind(this),this.checkResize=this.checkResize.bind(this),this.checkEvent=this.checkEvent.bind(this),this.instance={scroll:{x:0,y:0},limit:{x:this.html.offsetWidth,y:this.html.offsetHeight},currentElements:this.currentElements},this.isMobile?this.isTablet?this.context="tablet":this.context="smartphone":this.context="desktop",this.isMobile&&(this.direction=this[this.context].direction),"horizontal"===this.direction?this.directionAxis="x":this.directionAxis="y",this.getDirection&&(this.instance.direction=null),this.getDirection&&(this.instance.speed=0),this.html.classList.add(this.initClass),window.addEventListener("resize",this.checkResize,!1)}return _createClass$9(_default,[{key:"init",value:function init(){this.initEvents()}},{key:"checkScroll",value:function checkScroll(){this.dispatchScroll()}},{key:"checkResize",value:function checkResize(){var t=this;this.resizeTick||(this.resizeTick=!0,requestAnimationFrame((function(){t.resize(),t.resizeTick=!1})))}},{key:"resize",value:function resize(){}},{key:"checkContext",value:function checkContext(){if(this.reloadOnContextChange){this.isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||this.windowWidth=this.tablet.breakpoint;var t=this.context;if(this.isMobile?this.isTablet?this.context="tablet":this.context="smartphone":this.context="desktop",t!=this.context)("desktop"==t?this.smooth:this[t].smooth)!=("desktop"==this.context?this.smooth:this[this.context].smooth)&&window.location.reload()}}},{key:"initEvents",value:function initEvents(){var t=this;this.scrollToEls=this.el.querySelectorAll("[data-".concat(this.name,"-to]")),this.setScrollTo=this.setScrollTo.bind(this),this.scrollToEls.forEach((function(c){c.addEventListener("click",t.setScrollTo,!1)}))}},{key:"setScrollTo",value:function setScrollTo(t){t.preventDefault(),this.scrollTo(t.currentTarget.getAttribute("data-".concat(this.name,"-href"))||t.currentTarget.getAttribute("href"),{offset:t.currentTarget.getAttribute("data-".concat(this.name,"-offset"))})}},{key:"addElements",value:function addElements(){}},{key:"detectElements",value:function detectElements(t){var c=this,h=this.instance.scroll.y,p=h+this.windowHeight,f=this.instance.scroll.x,y=f+this.windowWidth;Object.entries(this.els).forEach((function(b){var k=_slicedToArray$1(b,2),z=k[0],G=k[1];if(!G||G.inView&&!t||("horizontal"===c.direction?y>=G.left&&f=G.top&&hG.right)&&c.setOutOfView(G,z)}else{var U=G.bottom-G.top;G.progress=(c.instance.scroll.y-(G.top-c.windowHeight))/(U+c.windowHeight),(pG.bottom)&&c.setOutOfView(G,z)}})),this.hasScrollTicking=!1}},{key:"setInView",value:function setInView(t,c){this.els[c].inView=!0,t.el.classList.add(t.class),this.currentElements[c]=t,t.call&&this.hasCallEventSet&&(this.dispatchCall(t,"enter"),t.repeat||(this.els[c].call=!1))}},{key:"setOutOfView",value:function setOutOfView(t,c){var h=this;this.els[c].inView=!1,Object.keys(this.currentElements).forEach((function(t){t===c&&delete h.currentElements[t]})),t.call&&this.hasCallEventSet&&this.dispatchCall(t,"exit"),t.repeat&&t.el.classList.remove(t.class)}},{key:"dispatchCall",value:function dispatchCall(t,c){this.callWay=c,this.callValue=t.call.split(",").map((function(t){return t.trim()})),this.callObj=t,1==this.callValue.length&&(this.callValue=this.callValue[0]);var h=new Event(this.namespace+"call");this.el.dispatchEvent(h)}},{key:"dispatchScroll",value:function dispatchScroll(){var t=new Event(this.namespace+"scroll");this.el.dispatchEvent(t)}},{key:"setEvents",value:function setEvents(t,c){this.listeners[t]||(this.listeners[t]=[]);var h=this.listeners[t];h.push(c),1===h.length&&this.el.addEventListener(this.namespace+t,this.checkEvent,!1),"call"===t&&(this.hasCallEventSet=!0,this.detectElements(!0))}},{key:"unsetEvents",value:function unsetEvents(t,c){if(this.listeners[t]){var h=this.listeners[t],p=h.indexOf(c);p<0||(h.splice(p,1),0===h.index&&this.el.removeEventListener(this.namespace+t,this.checkEvent,!1))}}},{key:"checkEvent",value:function checkEvent(t){var c=this,h=t.type.replace(this.namespace,""),p=this.listeners[h];p&&0!==p.length&&p.forEach((function(t){switch(h){case"scroll":return t(c.instance);case"call":return t(c.callValue,c.callWay,c.callObj);default:return t()}}))}},{key:"startScroll",value:function startScroll(){}},{key:"stopScroll",value:function stopScroll(){}},{key:"setScroll",value:function setScroll(t,c){this.instance.scroll={x:0,y:0}}},{key:"destroy",value:function destroy(){var t=this;window.removeEventListener("resize",this.checkResize,!1),Object.keys(this.listeners).forEach((function(c){t.el.removeEventListener(t.namespace+c,t.checkEvent,!1)})),this.listeners={},this.scrollToEls.forEach((function(c){c.removeEventListener("click",t.setScrollTo,!1)})),this.html.classList.remove(this.initClass)}}]),_default}(),Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,c){return t(c={exports:{}},c.exports),c.exports}var J=createCommonjsModule((function(t,exports){t.exports={polyfill:function polyfill(){var t=window,c=document;if(!("scrollBehavior"in c.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var h=t.HTMLElement||t.Element,p={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:h.prototype.scroll||scrollElement,scrollIntoView:h.prototype.scrollIntoView},f=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,y=function isMicrosoftBrowser(t){return new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(t)}(t.navigator.userAgent)?1:0;t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==shouldBailOut(arguments[0])?smoothScroll.call(t,c.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):p.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(shouldBailOut(arguments[0])?p.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):smoothScroll.call(t,c.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},h.prototype.scroll=h.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==shouldBailOut(arguments[0])){var t=arguments[0].left,c=arguments[0].top;smoothScroll.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===c?this.scrollTop:~~c)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");p.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},h.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==shouldBailOut(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):p.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},h.prototype.scrollIntoView=function(){if(!0!==shouldBailOut(arguments[0])){var h=findScrollableParent(this),f=h.getBoundingClientRect(),y=this.getBoundingClientRect();h!==c.body?(smoothScroll.call(this,h,h.scrollLeft+y.left-f.left,h.scrollTop+y.top-f.top),"fixed"!==t.getComputedStyle(h).position&&t.scrollBy({left:f.left,top:f.top,behavior:"smooth"})):t.scrollBy({left:y.left,top:y.top,behavior:"smooth"})}else p.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function scrollElement(t,c){this.scrollLeft=t,this.scrollTop=c}function shouldBailOut(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function hasScrollableSpace(t,c){return"Y"===c?t.clientHeight+y1?1:b),p=c.startX+(c.x-c.startX)*h,y=c.startY+(c.y-c.startY)*h,c.method.call(c.scrollable,p,y),p===c.x&&y===c.y||t.requestAnimationFrame(step.bind(t,c))}function smoothScroll(h,y,b){var k,z,G,F,U=f();h===c.body?(k=t,z=t.scrollX||t.pageXOffset,G=t.scrollY||t.pageYOffset,F=p.scroll):(k=h,z=h.scrollLeft,G=h.scrollTop,F=scrollElement),step({scrollable:k,method:F,startTime:U,startX:z,startY:G,x:y,y:b})}}}}));J.polyfill;var Z=function(t){_inherits$4(_default,t);var c=_createSuper(_default);function _default(){var t,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck$9(this,_default),(t=c.call(this,h)).resetNativeScroll&&(history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0)),window.addEventListener("scroll",t.checkScroll,!1),void 0===window.smoothscrollPolyfill&&(window.smoothscrollPolyfill=J,window.smoothscrollPolyfill.polyfill()),t}return _createClass$9(_default,[{key:"init",value:function init(){this.instance.scroll.y=window.pageYOffset,this.addElements(),this.detectElements(),_get(_getPrototypeOf(_default.prototype),"init",this).call(this)}},{key:"checkScroll",value:function checkScroll(){var t=this;_get(_getPrototypeOf(_default.prototype),"checkScroll",this).call(this),this.getDirection&&this.addDirection(),this.getSpeed&&(this.addSpeed(),this.speedTs=Date.now()),this.instance.scroll.y=window.pageYOffset,Object.entries(this.els).length&&(this.hasScrollTicking||(requestAnimationFrame((function(){t.detectElements()})),this.hasScrollTicking=!0))}},{key:"addDirection",value:function addDirection(){window.pageYOffset>this.instance.scroll.y?"down"!==this.instance.direction&&(this.instance.direction="down"):window.pageYOffset1&&void 0!==arguments[1]?arguments[1]:{},h=parseInt(c.offset)||0,p=!!c.callback&&c.callback;if("string"==typeof t){if("top"===t)t=this.html;else if("bottom"===t)t=this.html.offsetHeight-window.innerHeight;else if(!(t=document.querySelector(t)))return}else if("number"==typeof t)t=parseInt(t);else if(!t||!t.tagName)return void console.warn("`target` parameter is not valid");h="number"!=typeof t?t.getBoundingClientRect().top+h+this.instance.scroll.y:t+h;var f=function isTargetReached(){return parseInt(window.pageYOffset)===parseInt(h)};if(p){if(f())return void p();var y=function onScroll(){f()&&(window.removeEventListener("scroll",onScroll),p())};window.addEventListener("scroll",y)}window.scrollTo({top:h,behavior:0===c.duration?"auto":"smooth"})}},{key:"update",value:function update(){this.addElements(),this.detectElements()}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(_default.prototype),"destroy",this).call(this),window.removeEventListener("scroll",this.checkScroll,!1)}}]),_default}(K),ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable; /* object-assign (c) Sindre Sorhus @license MIT */function toObject(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var ne=function shouldUseNative(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var c={},h=0;h<10;h++)c["_"+String.fromCharCode(h)]=h;var p=Object.getOwnPropertyNames(c).map((function(t){return c[t]}));if("0123456789"!==p.join(""))return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach((function(t){f[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},f)).join("")}catch(t){return!1}}()?Object.assign:function(t,c){for(var h,p,f=toObject(t),y=1;y=c;1<=c?t++:t--)h.push(null);return h}.call(this),this.lastDownDeltas=function(){var t,c,h;for(h=[],t=1,c=2*this.stability;1<=c?t<=c:t>=c;1<=c?t++:t--)h.push(null);return h}.call(this),this.deltasTimestamp=function(){var t,c,h;for(h=[],t=1,c=2*this.stability;1<=c?t<=c:t>=c;1<=c?t++:t--)h.push(null);return h}.call(this)}return Lethargy.prototype.check=function(t){var c;return null!=(t=t.originalEvent||t).wheelDelta?c=t.wheelDelta:null!=t.deltaY?c=-40*t.deltaY:null==t.detail&&0!==t.detail||(c=-40*t.detail),this.deltasTimestamp.push(Date.now()),this.deltasTimestamp.shift(),c>0?(this.lastUpDeltas.push(c),this.lastUpDeltas.shift(),this.isInertia(1)):(this.lastDownDeltas.push(c),this.lastDownDeltas.shift(),this.isInertia(-1))},Lethargy.prototype.isInertia=function(t){var c,h,p,f,y,b,k;return null===(c=-1===t?this.lastDownDeltas:this.lastUpDeltas)[0]?t:!(this.deltasTimestamp[2*this.stability-2]+this.delay>Date.now()&&c[0]===c[2*this.stability-1])&&(p=c.slice(0,this.stability),h=c.slice(this.stability,2*this.stability),k=p.reduce((function(t,c){return t+c})),y=h.reduce((function(t,c){return t+c})),b=k/p.length,f=y/h.length,Math.abs(b)1,hasPointer:!!window.navigator.msPointerEnabled,hasKeyDown:"onkeydown"in document,isFirefox:navigator.userAgent.indexOf("Firefox")>-1}}(),ae=Object.prototype.toString,le=Object.prototype.hasOwnProperty;function bind(t,c){return function(){return t.apply(c,arguments)}}var ce=re.Lethargy,de="virtualscroll",ue=VirtualScroll,he=37,pe=38,fe=39,me=40,ge=32;function VirtualScroll(t){!function(t){if(!t)return console.warn("bindAll requires at least one argument.");var c=Array.prototype.slice.call(arguments,1);if(0===c.length)for(var h in t)le.call(t,h)&&"function"==typeof t[h]&&"[object Function]"==ae.call(t[h])&&c.push(h);for(var p=0;p=.001?function newtonRaphsonIterate(t,c,h,p){for(var f=0;f<4;++f){var y=getSlope(c,h,p);if(0===y)return c;c-=(calcBezier(c,h,p)-t)/y}return c}(c,b,t,h):0===k?b:function binarySubdivide(t,c,h,p,f){var y,b,k=0;do{(y=calcBezier(b=c+(h-c)/2,p,f)-t)>0?h=b:c=b}while(Math.abs(y)>1e-7&&++k<10);return b}(c,p,p+ve,t,h)}return function BezierEasing(t){return 0===t?0:1===t?1:calcBezier(getTForX(t),c,p)}},be=38,Se=40,Te=32,Ee=9,xe=33,Pe=34,ke=36,Ce=35,_e=function(t){_inherits$4(_default,t);var c=_createSuper(_default);function _default(){var t,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck$9(this,_default),history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0),(t=c.call(this,h)).inertia&&(t.lerp=.1*t.inertia),t.isScrolling=!1,t.isDraggingScrollbar=!1,t.isTicking=!1,t.hasScrollTicking=!1,t.parallaxElements={},t.stop=!1,t.scrollbarContainer=h.scrollbarContainer,t.checkKey=t.checkKey.bind(_assertThisInitialized(t)),window.addEventListener("keydown",t.checkKey,!1),t}return _createClass$9(_default,[{key:"init",value:function init(){var t=this;this.html.classList.add(this.smoothClass),this.html.setAttribute("data-".concat(this.name,"-direction"),this.direction),this.instance=_objectSpread2({delta:{x:this.initPosition.x,y:this.initPosition.y},scroll:{x:this.initPosition.x,y:this.initPosition.y}},this.instance),this.vs=new ue({el:this.scrollFromAnywhere?document:this.el,mouseMultiplier:navigator.platform.indexOf("Win")>-1?1:.4,firefoxMultiplier:this.firefoxMultiplier,touchMultiplier:this.touchMultiplier,useKeyboard:!1,passive:!0}),this.vs.on((function(c){t.stop||t.isDraggingScrollbar||requestAnimationFrame((function(){t.updateDelta(c),t.isScrolling||t.startScrolling()}))})),this.setScrollLimit(),this.initScrollBar(),this.addSections(),this.addElements(),this.checkScroll(!0),this.transformElements(!0,!0),_get(_getPrototypeOf(_default.prototype),"init",this).call(this)}},{key:"setScrollLimit",value:function setScrollLimit(){if(this.instance.limit.y=this.el.offsetHeight-this.windowHeight,"horizontal"===this.direction){for(var t=0,c=this.el.children,h=0;hthis.instance.limit[this.directionAxis]&&(this.instance.delta[this.directionAxis]=this.instance.limit[this.directionAxis]),this.stopScrolling(),this.isScrolling=!0,this.checkScroll(),this.html.classList.add(this.scrollingClass)}}},{key:"isActiveElementScrollSensitive",value:function isActiveElementScrollSensitive(){return!(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||document.activeElement instanceof HTMLButtonElement||document.activeElement instanceof HTMLSelectElement)}},{key:"checkScroll",value:function checkScroll(){var t=this,c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(c||this.isScrolling||this.isDraggingScrollbar){this.hasScrollTicking||(this.checkScrollRaf=requestAnimationFrame((function(){return t.checkScroll()})),this.hasScrollTicking=!0),this.updateScroll();var h=Math.abs(this.instance.delta[this.directionAxis]-this.instance.scroll[this.directionAxis]),p=Date.now()-this.startScrollTs;if(!this.animatingScroll&&p>100&&(h<.5&&0!=this.instance.delta[this.directionAxis]||h<.5&&0==this.instance.delta[this.directionAxis])&&this.stopScrolling(),Object.entries(this.sections).forEach((function(h){var p=_slicedToArray$1(h,2);p[0];var f=p[1];f.persistent||t.instance.scroll[t.directionAxis]>f.offset[t.directionAxis]&&t.instance.scroll[t.directionAxis]this.instance.limit[this.directionAxis]&&(this.instance.delta[this.directionAxis]=this.instance.limit[this.directionAxis])}},{key:"updateScroll",value:function updateScroll(t){this.isScrolling||this.isDraggingScrollbar?this.instance.scroll[this.directionAxis]=lerp(this.instance.scroll[this.directionAxis],this.instance.delta[this.directionAxis],this.lerp):this.instance.scroll[this.directionAxis]>this.instance.limit[this.directionAxis]?this.setScroll(this.instance.scroll[this.directionAxis],this.instance.limit[this.directionAxis]):this.instance.scroll.y<0?this.setScroll(this.instance.scroll[this.directionAxis],0):this.setScroll(this.instance.scroll[this.directionAxis],this.instance.delta[this.directionAxis])}},{key:"addDirection",value:function addDirection(){this.instance.delta.y>this.instance.scroll.y?"down"!==this.instance.direction&&(this.instance.direction="down"):this.instance.delta.ythis.instance.scroll.x?"right"!==this.instance.direction&&(this.instance.direction="right"):this.instance.delta.x0&&p0&&h1&&void 0!==arguments[1]&&arguments[1],p=this.instance.scroll.x+this.windowWidth,f=this.instance.scroll.y+this.windowHeight,y={x:this.instance.scroll.x+this.windowMiddle.x,y:this.instance.scroll.y+this.windowMiddle.y};Object.entries(this.parallaxElements).forEach((function(b){var k=_slicedToArray$1(b,2);k[0];var z=k[1],G=!1;if(t&&(G=0),z.inView||h)switch(z.position){case"top":case"left":G=c.instance.scroll[c.directionAxis]*-z.speed;break;case"elementTop":G=(f-z.top)*-z.speed;break;case"bottom":G=(c.instance.limit[c.directionAxis]-f+c.windowHeight)*z.speed;break;case"elementLeft":G=(p-z.left)*-z.speed;break;case"right":G=(c.instance.limit[c.directionAxis]-p+c.windowHeight)*z.speed;break;default:G=(y[c.directionAxis]-z.middle[c.directionAxis])*-z.speed}z.sticky&&(G=z.inView?"horizontal"===c.direction?c.instance.scroll.x-z.left+window.innerWidth:c.instance.scroll.y-z.top+window.innerHeight:"horizontal"===c.direction?c.instance.scroll.xz.right&&c.instance.scroll.x>z.right+100&&z.right-z.left+window.innerWidth:c.instance.scroll.yz.bottom&&c.instance.scroll.y>z.bottom+100&&z.bottom-z.top+window.innerHeight),!1!==G&&("horizontal"===z.direction||"horizontal"===c.direction&&"vertical"!==z.direction?c.transform(z.el,G,0,!t&&z.delay):c.transform(z.el,0,G,!t&&z.delay))}))}},{key:"scrollTo",value:function scrollTo(t){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=parseInt(h.offset)||0,f=isNaN(parseInt(h.duration))?1e3:parseInt(h.duration),y=h.easing||[.25,0,.35,1],b=!!h.disableLerp,k=!!h.callback&&h.callback;if(y=we.apply(void 0,_toConsumableArray(y)),"string"==typeof t){if("top"===t)t=0;else if("bottom"===t)t=this.instance.limit.y;else if("left"===t)t=0;else if("right"===t)t=this.instance.limit.x;else if(!(t=document.querySelector(t)))return}else if("number"==typeof t)t=parseInt(t);else if(!t||!t.tagName)return void console.warn("`target` parameter is not valid");if("number"!=typeof t){var z=getParents(t).includes(this.el);if(!z)return;var G=t.getBoundingClientRect(),F=G.top,U=G.left,Y=getParents(t),X=Y.find((function(t){return Object.entries(c.sections).map((function(t){var c=_slicedToArray$1(t,2);return c[0],c[1]})).find((function(c){return c.el==t}))})),K=0;K=X?getTranslate$1(X)[this.directionAxis]:-this.instance.scroll[this.directionAxis],p="horizontal"===this.direction?U+p-K:F+p-K}else p=t+p;var Q=parseFloat(this.instance.delta[this.directionAxis]),J=Math.max(0,Math.min(p,this.instance.limit[this.directionAxis])),Z=J-Q,ee=function render(t){b?"horizontal"===c.direction?c.setScroll(Q+Z*t,c.instance.delta.y):c.setScroll(c.instance.delta.x,Q+Z*t):c.instance.delta[c.directionAxis]=Q+Z*t};this.animatingScroll=!0,this.stopScrolling(),this.startScrolling();var te=Date.now(),ie=function loop(){var t=(Date.now()-te)/f;t>1?(ee(1),c.animatingScroll=!1,0==f&&c.update(),k&&k()):(c.scrollToRaf=requestAnimationFrame(loop),ee(y(t)))};ie()}},{key:"update",value:function update(){this.setScrollLimit(),this.addSections(),this.addElements(),this.detectElements(),this.updateScroll(),this.transformElements(!0),this.reinitScrollBar(),this.checkScroll(!0)}},{key:"startScroll",value:function startScroll(){this.stop=!1}},{key:"stopScroll",value:function stopScroll(){this.stop=!0}},{key:"setScroll",value:function setScroll(t,c){this.instance=_objectSpread2(_objectSpread2({},this.instance),{},{scroll:{x:t,y:c},delta:{x:t,y:c},speed:0})}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(_default.prototype),"destroy",this).call(this),this.stopScrolling(),this.html.classList.remove(this.smoothClass),this.vs.destroy(),this.destroyScrollBar(),window.removeEventListener("keydown",this.checkKey,!1)}}]),_default}(K),Me=function(){function Smooth(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck$9(this,Smooth),this.options=t,Object.assign(this,X,t),this.smartphone=X.smartphone,t.smartphone&&Object.assign(this.smartphone,t.smartphone),this.tablet=X.tablet,t.tablet&&Object.assign(this.tablet,t.tablet),this.smooth||"horizontal"!=this.direction||console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible"),this.tablet.smooth||"horizontal"!=this.tablet.direction||console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible (tablet)"),this.smartphone.smooth||"horizontal"!=this.smartphone.direction||console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible (smartphone)"),this.init()}return _createClass$9(Smooth,[{key:"init",value:function init(){if(this.options.isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||window.innerWidth=this.tablet.breakpoint,this.smooth&&!this.options.isMobile||this.tablet.smooth&&this.options.isTablet||this.smartphone.smooth&&this.options.isMobile&&!this.options.isTablet?this.scroll=new _e(this.options):this.scroll=new Z(this.options),this.scroll.init(),window.location.hash){var t=window.location.hash.slice(1,window.location.hash.length),c=document.getElementById(t);c&&this.scroll.scrollTo(c)}}},{key:"update",value:function update(){this.scroll.update()}},{key:"start",value:function start(){this.scroll.startScroll()}},{key:"stop",value:function stop(){this.scroll.stopScroll()}},{key:"scrollTo",value:function scrollTo(t,c){this.scroll.scrollTo(t,c)}},{key:"setScroll",value:function setScroll(t,c){this.scroll.setScroll(t,c)}},{key:"on",value:function on(t,c){this.scroll.setEvents(t,c)}},{key:"off",value:function off(t,c){this.scroll.unsetEvents(t,c)}},{key:"destroy",value:function destroy(){this.scroll.destroy()}}]),Smooth}();const Le=new WeakMap;function editLedger(t,c,h,p){var f,y;if(!t&&!Le.has(c))return!1;const b=null!==(f=Le.get(c))&&void 0!==f?f:new WeakMap;if(Le.set(c,b),!t&&!Le.has(c))return!1;const k=null!==(y=b.get(h))&&void 0!==y?y:new Set;b.set(h,k);const z=k.has(p);return t?k.add(p):k.delete(p),z&&t}function delegate(t,c,h,p,f){if("string"==typeof t&&(t=document.querySelectorAll(t)),!function isEventTarget(t){return"function"==typeof t.addEventListener}(t)){const y=Array.prototype.map.call(t,(t=>delegate(t,c,h,p,f)));return{destroy(){for(const t of y)t.destroy()}}}const y=t instanceof Document?t.documentElement:t,b=Boolean("object"==typeof f?f.capture:f),listenerFn=t=>{const h=function safeClosest(t,c){let h=t.target;if(h instanceof Text&&(h=h.parentElement),h instanceof Element&&t.currentTarget instanceof Element){const p=h.closest(c);if(p&&t.currentTarget.contains(p))return p}}(t,c);h&&(t.delegateTarget=h,p.call(y,t))};"object"==typeof f&&delete f.once;const k=JSON.stringify({selector:c,type:h,capture:b}),z={destroy(){y.removeEventListener(h,listenerFn,f),editLedger(!1,y,p,k)}};return editLedger(!0,y,p,k)||y.addEventListener(h,listenerFn,f),z}function e(){ return e=Object.assign?Object.assign.bind():function(t){for(var c=1;cString(t).toLowerCase().replace(/[\s/_.]+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+|-+$/g,"")||c||"",i$1=({hash:t}={})=>location.pathname+location.search+(t?location.hash:""),s=(t,c={})=>{const h=e({url:t=t||i$1({hash:!0}),random:Math.random(),source:"swup"},c);history.pushState(h,"",t)},o$1=(t=null,c={})=>{t=t||i$1({hash:!0});const h=e({},history.state,{url:t,random:Math.random(),source:"swup"},c);history.replaceState(h,"",t)},Oe=["base"],a$1=(t,c,h,p={})=>{let{base:f=document}=p,y=function(t,c){if(null==t)return{};var h,p,f={},y=Object.keys(t);for(p=0;p=0||(f[h]=t[h]);return f}(p,Oe);const b=delegate(f,t,c,h,y);return{destroy:()=>b.destroy()}},l=(t,c=document)=>c.querySelector(t),u=(t,c=document)=>Array.from(c.querySelectorAll(t)),d=t=>1e3*Number(t.slice(0,-1).replace(",",".")),g=(t,c)=>{const h={url:window.location.pathname+window.location.search,method:"GET",data:null,headers:{}},{url:p,method:f,headers:y,data:b}=e({},h,t),k=new XMLHttpRequest;return k.onreadystatechange=function(){4===k.readyState&&c(k)},k.open(f,p,!0),Object.entries(y).forEach((([t,c])=>{k.setRequestHeader(t,c)})),k.send(b),k};class m extends URL{constructor(t,c=document.baseURI){super(t.toString(),c)}get url(){return this.pathname+this.search}static fromElement(t){const c=t.getAttribute("href")||t.getAttribute("xlink:href");return new m(c)}static fromUrl(t){return new m(t)}}const v=t=>/^to-/.test(t)||["is-changing","is-rendering","is-popstate"].includes(t),w=()=>{const t=document.documentElement.className.split(" ").filter(v);document.documentElement.classList.remove(...t)};class E{constructor(t){this.pages={},this.last=null,this.swup=void 0,this.swup=t}getCacheUrl(t){return this.swup.resolveUrl(m.fromUrl(t).url)}cacheUrl(t){t.url=this.getCacheUrl(t.url),t.url in this.pages==0&&(this.pages[t.url]=t),t.responseURL=this.getCacheUrl(t.responseURL),this.last=this.pages[t.url],this.swup.log(`Cache (${Object.keys(this.pages).length})`,this.pages)}getPage(t){return t=this.getCacheUrl(t),this.pages[t]}getCurrentPage(){return this.getPage(i$1())}exists(t){return(t=this.getCacheUrl(t))in this.pages}empty(){this.pages={},this.last=null,this.swup.log("Cache cleared")}remove(t){delete this.pages[this.getCacheUrl(t)]}}const P=function({event:t,skipTransition:c}={}){if(c)return this.triggerEvent("transitionEnd",t),this.cleanupAnimationClasses(),[Promise.resolve()];(t=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t()}))}))})((()=>{this.triggerEvent("animationInStart"),document.documentElement.classList.remove("is-animating")}));const h=this.getAnimationPromises("in");return Promise.all(h).then((()=>{this.triggerEvent("animationInDone"),this.triggerEvent("transitionEnd",t),this.cleanupAnimationClasses()})),h},S=t=>t?("#"===t.charAt(0)&&(t=t.substring(1)),t=(t=>window.CSS&&window.CSS.escape?CSS.escape(t):t)(t=decodeURIComponent(t)),l(`#${t}`)||l(`a[name='${t}']`)):null;let Ae="transition",Ie="transitionend",De="animation",Be="animationend";function L(t){const c=this.options.animationSelector;if(!1===c)return[Promise.resolve()];const h=u(c,document.body);return h.length?h.map((t=>function(t,c,h=null){const{type:p,timeout:f,propCount:y}=function(t,c=null){const h=window.getComputedStyle(t),p=`${Ae}Duration`,f=`${De}Delay`,y=`${De}Duration`,b=h[`${Ae}Delay`].split(", "),k=(h[p]||"").split(", "),z=C(b,k),G=(h[f]||"").split(", "),F=(h[y]||"").split(", "),U=C(G,F);let Y="",X=0,K=0;return"transition"===c?z>0&&(Y="transition",X=z,K=k.length):"animation"===c?U>0&&(Y="animation",X=U,K=F.length):(X=Math.max(z,U),Y=X>0?z>U?"transition":"animation":null,K=Y?"transition"===Y?k.length:F.length:0),{type:Y,timeout:X,propCount:K}}(t,h);return p&&f?new Promise((c=>{const h="transition"===p?Ie:Be,b=performance.now();let k=0;const l=()=>{t.removeEventListener(h,u),c()},u=c=>{if(c.target===t){if(!(t=>!!t.elapsedTime)(c))throw new Error("Not a transition or animation event.");(performance.now()-b)/1e3=y&&l()}};setTimeout((()=>{kd(c)+d(t[h]))))}void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ae="WebkitTransition",Ie="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(De="WebkitAnimation",Be="webkitAnimationEnd");const T=function(t){const c=((t,c)=>{var h,p;let f=document.createElement("html");f.innerHTML=t;let y=[];c.forEach((t=>{if(null==l(t,f))return console.warn(`[swup] Container ${t} not found on page.`),null;u(t).length!==u(t,f).length&&console.warn("[swup] Mismatched number of containers found on new page."),u(t).forEach(((c,h)=>{u(t,f)[h].setAttribute("data-swup",String(y.length)),y.push(u(t,f)[h].outerHTML)}))}));const b=(null==(h=l("title",f))?void 0:h.innerText)||"",k=null==(p=l("body",f))?void 0:p.className;return f.innerHTML="",f=null,{title:b,pageClass:k,blocks:y,originalContent:t}})(t.responseText,this.options.containers);return c?e({},c,{responseURL:t.responseURL||window.location.href}):(console.warn("[swup] Received page is invalid."),null)};function H(t){const c=this.options.requestHeaders,{url:h}=t;return this.cache.exists(h)?(this.triggerEvent("pageRetrievedFromCache"),Promise.resolve(this.cache.getPage(h))):new Promise(((p,f)=>{g(e({},t,{headers:c}),(t=>{if(500===t.status)return this.triggerEvent("serverError"),void f(h);const c=this.getPageData(t);if(!c||!c.blocks.length)return void f(h);const y=e({},c,{url:h});this.cache.cacheUrl(y),this.triggerEvent("pageLoaded"),p(y)}))}))}const R=function({event:t,skipTransition:c}={}){const h=t instanceof PopStateEvent;if(c)return this.triggerEvent("animationSkipped"),[Promise.resolve()];this.triggerEvent("animationOutStart"),document.documentElement.classList.add("is-changing","is-leaving","is-animating"),h&&document.documentElement.classList.add("is-popstate");const p=this.getAnimationPromises("out");return Promise.all(p).then((()=>{this.triggerEvent("animationOutDone")})),p};function A(t){const{url:c}=t;this.shouldIgnoreVisit(c)?window.location.href=c:this.performPageLoad(t)}function $(t){const{url:c,event:h,customTransition:p}=null!=t?t:{},f=h instanceof PopStateEvent,y=this.shouldSkipTransition({url:c,event:h});this.triggerEvent("transitionStart",h),this.updateTransition(i$1(),c,p),null!=p&&document.documentElement.classList.add(`to-${n$2(p)}`);const b=this.leavePage({event:h,skipTransition:y}),k=this.fetchPage(t);f||s(c+(this.scrollToElement||"")),this.currentPageUrl=i$1(),Promise.all([k,...b]).then((([t])=>{this.renderPage(t,{event:h,skipTransition:y})})).catch((t=>{void 0!==t&&(this.options.skipPopStateHandling=()=>(window.location=t,!0),history.go(-1))}))}const _=function({blocks:t,title:c}){return t.forEach(((t,c)=>{document.body.querySelector(`[data-swup="${c}"]`).outerHTML=t})),document.title=c,Promise.resolve()};function O(t,c){const h=this._handlers[t];h?h.push(c):console.warn(`Unsupported event ${t}.`)}function x(t,c){if(t&&c){const h=this._handlers[t];h.includes(c)?this._handlers[t]=h.filter((t=>t!==c)):console.warn(`Handler for event '${t}' not found.`)}else t?this._handlers[t]=[]:Object.keys(this._handlers).forEach((t=>{this._handlers[t]=[]}))}function q(t,c){this._handlers[t].forEach((t=>{try{t(c)}catch(t){console.error(t)}}));const h=new CustomEvent(`swup:${t}`,{detail:t});document.dispatchEvent(h)}const D=function(t){var c;if(null==(c=t)?void 0:c.isSwupPlugin){if(t.swup=this,!t._checkRequirements||t._checkRequirements())return t._beforeMount&&t._beforeMount(),t.mount(),this.plugins.push(t),this.plugins}else console.error("Not a swup plugin instance",t)};function I(t){const c=this.findPlugin(t);if(c)return c.unmount(),c._afterUnmount&&c._afterUnmount(),this.plugins=this.plugins.filter((t=>t!==c)),this.plugins;console.error("No such plugin",c)}function M(t){return this.plugins.find((c=>c===t||c.name===t))}const N=function(t,{event:c,skipTransition:h}={}){if(document.documentElement.classList.remove("is-leaving"),!this.isSameResolvedUrl(i$1(),t.url))return;const{url:p}=m.fromUrl(t.responseURL);this.isSameResolvedUrl(i$1(),p)||(this.cache.cacheUrl(e({},t,{url:p})),this.currentPageUrl=i$1(),o$1(p)),h||document.documentElement.classList.add("is-rendering"),this.triggerEvent("willReplaceContent",c),this.replaceContent(t).then((()=>{this.triggerEvent("contentReplaced",c),this.triggerEvent("pageView",c),this.options.cache||this.cache.empty(),this.enterPage({event:c,skipTransition:h}),this.scrollToElement=null}))};function W(t,c,h){this.transition={from:t,to:c,custom:h}}function V({event:t}){return!(!(t instanceof PopStateEvent)||this.options.animateHistoryBrowsing)}class j{constructor(t={}){this.version="3.0.5",this._handlers={animationInDone:[],animationInStart:[],animationOutDone:[],animationOutStart:[],animationSkipped:[],clickLink:[],contentReplaced:[],disabled:[],enabled:[],openPageInNewTab:[],pageLoaded:[],pageRetrievedFromCache:[],pageView:[],popState:[],samePage:[],samePageWithHash:[],serverError:[],transitionStart:[],transitionEnd:[],willReplaceContent:[]},this.scrollToElement=null,this.options=void 0,this.plugins=[],this.transition={},this.cache=void 0,this.currentPageUrl=i$1(),this.delegatedListeners={},this.boundPopStateHandler=void 0,this.loadPage=A,this.performPageLoad=$,this.leavePage=R,this.renderPage=N,this.replaceContent=_,this.enterPage=P,this.triggerEvent=q,this.delegateEvent=a$1,this.on=O,this.off=x,this.updateTransition=W,this.shouldSkipTransition=V,this.getAnimationPromises=L,this.getPageData=T,this.fetchPage=H,this.getAnchorElement=S,this.log=()=>{},this.use=D,this.unuse=I,this.findPlugin=M,this.getCurrentUrl=i$1,this.cleanupAnimationClasses=w,this.defaults={animateHistoryBrowsing:!1,animationSelector:'[class*="transition-"]',cache:!0,containers:["#swup"],ignoreVisit:(t,{el:c}={})=>!(null==c||!c.closest("[data-no-swup]")),linkSelector:"a[href]",plugins:[],resolveUrl:t=>t,requestHeaders:{"X-Requested-With":"swup",Accept:"text/html, application/xhtml+xml"},skipPopStateHandling:t=>{var c;return"swup"!==(null==(c=t.state)?void 0:c.source)}},this.options=e({},this.defaults,t),this.boundPopStateHandler=this.popStateHandler.bind(this),this.cache=new E(this),this.enable()}enable(){"undefined"!=typeof Promise?(this.delegatedListeners.click=a$1(this.options.linkSelector,"click",this.linkClickHandler.bind(this)),window.addEventListener("popstate",this.boundPopStateHandler),((t,c)=>{let h=0;c.forEach((c=>{null==l(c,t)?console.warn(`[swup] Container ${c} not found on page.`):u(c).forEach(((p,f)=>{u(c,t)[f].setAttribute("data-swup",String(h)),h++}))}))})(document.documentElement,this.options.containers),this.options.plugins.forEach((t=>this.use(t))),o$1(),this.triggerEvent("enabled"),document.documentElement.classList.add("swup-enabled"),this.triggerEvent("pageView")):console.warn("Promise is not supported")}destroy(){this.delegatedListeners.click.destroy(),window.removeEventListener("popstate",this.boundPopStateHandler),this.cache.empty(),this.options.plugins.forEach((t=>{this.unuse(t)})),u("[data-swup]").forEach((t=>{t.removeAttribute("data-swup")})),this.off(),this.triggerEvent("disabled"),document.documentElement.classList.remove("swup-enabled")}shouldIgnoreVisit(t,{el:c,event:h}={}){const{origin:p,url:f,hash:y}=m.fromUrl(t);return p!==window.location.origin||!(!c||!this.triggerWillOpenNewWindow(c))||!!this.options.ignoreVisit(f+y,{el:c,event:h})}linkClickHandler(t){const c=t.delegateTarget,{href:h,url:p,hash:f}=m.fromElement(c);if(this.shouldIgnoreVisit(h,{el:c,event:t}))return;if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return void this.triggerEvent("openPageInNewTab",t);if(0!==t.button)return;if(this.triggerEvent("clickLink",t),t.preventDefault(),!p||p===i$1())return void this.handleLinkToSamePage(p,f,t);if(this.isSameResolvedUrl(p,i$1()))return;this.scrollToElement=f||null;const y=c.getAttribute("data-swup-transition")||void 0;this.performPageLoad({url:p,customTransition:y})}handleLinkToSamePage(t,c,h){if(c){if(this.triggerEvent("samePageWithHash",h),!S(c))return console.warn(`Element for offset not found (#${c})`);o$1(t+c)}else this.triggerEvent("samePage",h)}triggerWillOpenNewWindow(t){return!!t.matches('[download], [target="_blank"]')}popStateHandler(t){var c,h;if(this.options.skipPopStateHandling(t))return;if(this.isSameResolvedUrl(i$1(),this.currentPageUrl))return;const p=null!=(c=null==(h=t.state)?void 0:h.url)?c:location.href;if(this.shouldIgnoreVisit(p,{event:t}))return;const{url:f,hash:y}=m.fromUrl(p);y?this.scrollToElement=y:t.preventDefault(),this.triggerEvent("popState",t),this.options.animateHistoryBrowsing||(document.documentElement.classList.remove("is-animating"),w()),this.performPageLoad({url:f,event:t})}resolveUrl(t){if("function"!=typeof this.options.resolveUrl)return console.warn("[swup] options.resolveUrl expects a callback function."),t;const c=this.options.resolveUrl(t);return c&&"string"==typeof c?c.startsWith("//")||c.startsWith("http")?(console.warn("[swup] options.resolveUrl needs to return a relative url"),t):c:(console.warn("[swup] options.resolveUrl needs to return a url"),t)}isSameResolvedUrl(t,c){return this.resolveUrl(t)===this.resolveUrl(c)}}const r=t=>String(t).split(".").concat(["0","0"]).slice(0,3).join(".");let je=class n{constructor(){this.isSwupPlugin=!0,this.requires={},this.swup=void 0,this.version=void 0}mount(){}unmount(){}_beforeMount(){if(!this.name)throw new Error("You must define a name of plugin when creating a class.")}_afterUnmount(){}_checkRequirements(){return"object"!=typeof this.requires||Object.entries(this.requires).forEach((([t,c])=>{if(!function(t,c,h){const p=function(t,c){var h;if("swup"===t)return null!=(h=c.version)?h:"";{var p;const h=c.findPlugin(t);return null!=(p=null==h?void 0:h.version)?p:""}}(t,h);return!!p&&((t,c)=>c.every((c=>{const[,h,p]=c.match(/^([\D]+)?(.*)$/)||[];var f,y;return((t,c)=>{const h={"":t=>0===t,">":t=>t>0,">=":t=>t>=0,"<":t=>t<0,"<=":t=>t<=0};return(h[c]||h[""])(t)})((y=p,f=r(f=t),y=r(y),f.localeCompare(y,void 0,{numeric:!0})),h||">=")})))(p,c)}(t,c=Array.isArray(c)?c:[c],this.swup)){const h=`${t} ${c.join(", ")}`;throw new Error(`Plugin version mismatch: ${this.name} requires ${h}`)}})),!0}};function a(){return a=Object.assign?Object.assign.bind():function(t){for(var c=1;c=3.0.0"},this.preloadPromise=null,this.onContentReplaced=()=>{this.swup.preloadPages()},this.onMouseEnter=t=>{t.target===t.delegateTarget&&this.deviceSupportsHover()&&(this.swup.triggerEvent("hoverLink",t),this.preloadLink(t.delegateTarget))},this.onTouchStart=t=>{this.deviceSupportsHover()||this.preloadLink(t.delegateTarget)},this.preloadPage=t=>{const c=this.swup,{url:h}=m.fromUrl(t);return new Promise(((t,p)=>{c.cache.exists(h)?t(c.cache.getPage(h)):g({url:h,headers:c.options.requestHeaders},(f=>{if(500===f.status)return c.triggerEvent("serverError"),void p(h);const y=c.getPageData(f);if(!y||!y.blocks.length)return void p(h);const b=a({},y,{url:h});c.cache.cacheUrl(b),c.triggerEvent("pagePreloaded"),t(b)}))}))},this.preloadPages=()=>{u("[data-swup-preload]").forEach((t=>{this.shouldIgnoreVisit(t.href,{el:t})||this.swup.preloadPage(t.href)}))}}mount(){const t=this.swup;t.options.cache?(t._handlers.pagePreloaded=[],t._handlers.hoverLink=[],t.preloadPage=this.preloadPage,t.preloadPages=this.preloadPages,this.originalSwupFetchPage=t.fetchPage.bind(t),t.fetchPage=this.fetchPreloadedPage.bind(this),t.delegatedListeners.mouseenter=t.delegateEvent(t.options.linkSelector,"mouseenter",this.onMouseEnter.bind(this),{capture:!0}),t.delegatedListeners.touchstart=t.delegateEvent(t.options.linkSelector,"touchstart",this.onTouchStart.bind(this),{capture:!0}),t.preloadPages(),t.on("contentReplaced",this.onContentReplaced),t.preloadPage(i$1())):console.warn("PreloadPlugin: swup cache needs to be enabled for preloading")}unmount(){const t=this.swup;t.options.cache&&(this.preloadPromise=null,t._handlers.pagePreloaded=null,t._handlers.hoverLink=null,t.preloadPage=null,t.preloadPages=null,this.originalSwupFetchPage&&(t.fetchPage=this.originalSwupFetchPage,this.originalSwupFetchPage=null),t.delegatedListeners.mouseenter.destroy(),t.delegatedListeners.touchstart.destroy(),t.off("contentReplaced",this.onContentReplaced))}shouldIgnoreVisit(t,{el:c}={}){return this.swup.shouldIgnoreVisit(t,{el:c})}deviceSupportsHover(){return window.matchMedia("(hover: hover)").matches}preloadLink(t){const c=this.swup,{url:h}=m.fromElement(t);this.shouldIgnoreVisit(t.href,{el:t})||h!==i$1()&&(c.cache.exists(h)||null==this.preloadPromise&&(this.preloadPromise=this.preloadPage(h),this.preloadPromise.url=h,this.preloadPromise.catch((()=>{})).finally((()=>{this.preloadPromise=null}))))}fetchPreloadedPage(t){const{url:c}=t;return this.preloadPromise&&this.preloadPromise.url===c?this.preloadPromise:this.originalSwupFetchPage(t)}}var $e={},Re={};Object.defineProperty(Re,"__esModule",{value:!0});var ze=function(){function defineProperties(t,c){for(var h=0;h0&&void 0!==arguments[0]?arguments[0]:{},h=c.className,p=void 0===h?"progress-bar":h,f=c.styleAttr,y=void 0===f?"data-progressbar-styles":f,b=c.animationDuration,k=void 0===b?300:b,z=c.minValue,G=void 0===z?.1:z,F=c.initialValue,U=void 0===F?.25:F,Y=c.trickleValue,X=void 0===Y?.03:Y;_classCallCheck$5(this,ProgressBar),this.styleElement=null,this.progressElement=null,this.value=0,this.visible=!1,this.hiding=!1,this.trickleInterval=null,this.trickle=function(){var c=Math.random()*t.trickleValue;t.setValue(t.value+c)},this.className=p,this.styleAttr=y,this.animationDuration=k,this.minValue=G,this.initialValue=U,this.trickleValue=X,this.styleElement=this.createStyleElement(),this.progressElement=this.createProgressElement()}return Ke(ProgressBar,[{key:"show",value:function show(){this.visible||(this.visible=!0,this.installStyleElement(),this.installProgressElement(),this.startTrickling())}},{key:"hide",value:function hide(){var t=this;this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement((function(){t.uninstallProgressElement(),t.stopTrickling(),t.visible=!1,t.hiding=!1})))}},{key:"setValue",value:function setValue(t){this.value=Math.min(1,Math.max(this.minValue,t)),this.refresh()}},{key:"installStyleElement",value:function installStyleElement(){document.head.insertBefore(this.styleElement,document.head.firstChild)}},{key:"installProgressElement",value:function installProgressElement(){this.progressElement.style.width="0%",this.progressElement.style.opacity="1",document.documentElement.insertBefore(this.progressElement,document.body),this.progressElement.scrollTop=0,this.setValue(Math.random()*this.initialValue)}},{key:"fadeProgressElement",value:function fadeProgressElement(t){this.progressElement.style.opacity="0",setTimeout(t,1.5*this.animationDuration)}},{key:"uninstallProgressElement",value:function uninstallProgressElement(){this.progressElement.parentNode&&document.documentElement.removeChild(this.progressElement)}},{key:"startTrickling",value:function startTrickling(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,this.animationDuration))}},{key:"stopTrickling",value:function stopTrickling(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}},{key:"refresh",value:function refresh(){var t=this;requestAnimationFrame((function(){t.progressElement.style.width=100*t.value+"%"}))}},{key:"createStyleElement",value:function createStyleElement(){var t=document.createElement("style");return t.setAttribute(this.styleAttr,""),t.textContent=this.defaultStyles,t}},{key:"createProgressElement",value:function createProgressElement(){var t=document.createElement("div");return t.className=this.className,t}},{key:"defaultStyles",get:function get(){return"\n\t\t."+this.className+" {\n\t\t\t\tposition: fixed;\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\tbackground-color: black;\n\t\t\t\tz-index: 9999;\n\t\t\t\ttransition:\n\t\t\t\t\twidth "+this.animationDuration+"ms ease-out,\n\t\t\t\t\topacity "+this.animationDuration/2+"ms "+this.animationDuration/2+"ms ease-in;\n\t\t\t\ttransform: translate3d(0, 0, 0);\n\t\t\t}\n\t\t"}}]),ProgressBar}();Xe.default=Qe,Object.defineProperty(Fe,"__esModule",{value:!0});var Je=Object.assign||function(t){for(var c=1;c0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck$4(this,SwupProgressPlugin);var c=_possibleConstructorReturn$2(this,(SwupProgressPlugin.__proto__||Object.getPrototypeOf(SwupProgressPlugin)).call(this));c.name="SwupProgressPlugin",c.startShowingProgress=function(){c.progressBar.setValue(0),c.showProgressBarAfterDelay()},c.stopShowingProgress=function(){c.progressBar.setValue(1),c.options.hideImmediately?c.hideProgressBar():c.finishAnimationAndHideProgressBar()},c.showProgressBar=function(){c.cancelHideProgressBarTimeout(),c.progressBar.show()},c.showProgressBarAfterDelay=function(){c.cancelShowProgressBarTimeout(),c.cancelHideProgressBarTimeout(),c.showProgressBarTimeout=window.setTimeout(c.showProgressBar,c.options.delay)},c.hideProgressBar=function(){c.cancelShowProgressBarTimeout(),c.progressBar.hide()},c.finishAnimationAndHideProgressBar=function(){c.cancelShowProgressBarTimeout(),c.hideProgressBarTimeout=window.setTimeout(c.hideProgressBar,c.options.transition)},c.cancelShowProgressBarTimeout=function(){window.clearTimeout(c.showProgressBarTimeout),delete c.showProgressBarTimeout},c.cancelHideProgressBarTimeout=function(){window.clearTimeout(c.hideProgressBarTimeout),delete c.hideProgressBarTimeout};var h={className:"swup-progress-bar",delay:300,transition:void 0,minValue:void 0,initialValue:void 0,hideImmediately:!0};return c.options=Je({},h,t),c.showProgressBarTimeout=null,c.hideProgressBarTimeout=null,c.progressBar=new tt.default({className:c.options.className,animationDuration:c.options.transition,minValue:c.options.minValue,initialValue:c.options.initialValue}),c}return function _inherits$2(t,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);t.prototype=Object.create(c&&c.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(t,c):t.__proto__=c)}(SwupProgressPlugin,t),Ze(SwupProgressPlugin,[{key:"mount",value:function mount(){this.swup.on("transitionStart",this.startShowingProgress),this.swup.on("contentReplaced",this.stopShowingProgress)}},{key:"unmount",value:function unmount(){this.swup.off("transitionStart",this.startShowingProgress),this.swup.off("contentReplaced",this.stopShowingProgress)}}]),SwupProgressPlugin}(et.default),nt=Fe.default=it,st={},rt={};Object.defineProperty(rt,"__esModule",{value:!0});var ot=function(){function defineProperties(t,c){for(var h=0;h0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,SwupA11yPlugin);var c=_possibleConstructorReturn(this,(SwupA11yPlugin.__proto__||Object.getPrototypeOf(SwupA11yPlugin)).call(this));return c.name="SwupA11yPlugin",c.announceVisit=function(){requestAnimationFrame((function(){c.announcePageName(),c.focusPageContent()}))},c.announcePageName=function(){var t=c.options,h=t.contentSelector,p=t.headingSelector,f=t.urlTemplate,y=t.announcementTemplate,b=f.replace("{url}",window.location.pathname);document.title&&(b=document.title);var k=document.querySelector(h);if(k){var z=k.querySelectorAll(p);if(z&&z.length){var G=_slicedToArray(z,1)[0];b=G.getAttribute("aria-label")||G.textContent}}var F=y.replace("{title}",b.trim());c.liveRegion.say(F)},c.focusPageContent=function(){var t=document.querySelector(c.options.contentSelector);t&&(t.setAttribute("tabindex","-1"),t.focus({preventScroll:!0}))},c.onTransitionStart=function(){document.documentElement.setAttribute("aria-busy","true")},c.onTransitionEnd=function(){document.documentElement.removeAttribute("aria-busy")},c.options=yt({contentSelector:"main",headingSelector:"h1, h2, [role=heading]",announcementTemplate:"Navigated to: {title}",urlTemplate:"New page at {url}"},t),c.liveRegion=new St.default,c}return function _inherits(t,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);t.prototype=Object.create(c&&c.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(t,c):t.__proto__=c)}(SwupA11yPlugin,t),wt(SwupA11yPlugin,[{key:"mount",value:function mount(){this.swup.on("contentReplaced",this.announceVisit),this.swup.on("transitionStart",this.onTransitionStart),this.swup.on("transitionEnd",this.onTransitionEnd)}},{key:"unmount",value:function unmount(){this.swup.off("contentReplaced",this.announceVisit),this.swup.off("transitionStart",this.onTransitionStart),this.swup.off("transitionEnd",this.onTransitionEnd)}}]),SwupA11yPlugin}(bt.default),Et=ht.default=Tt;function parse(t,c){void 0===c&&(c={});for(var h=function lexer(t){for(var c=[],h=0;h=48&&z<=57||z>=65&&z<=90||z>=97&&z<=122||95===z))break;b+=t[k++]}if(!b)throw new TypeError("Missing parameter name at ".concat(h));c.push({type:"NAME",index:h,value:b}),h=k}else c.push({type:"CLOSE",index:h,value:t[h++]});else c.push({type:"OPEN",index:h,value:t[h++]});else c.push({type:"ESCAPED_CHAR",index:h++,value:t[h++]});else c.push({type:"MODIFIER",index:h,value:t[h++]})}return c.push({type:"END",index:h,value:""}),c}(t),p=c.prefixes,f=void 0===p?"./":p,y="[^".concat(escapeString(c.delimiter||"/#?"),"]+?"),b=[],k=0,z=0,G="",tryConsume=function(t){if(z-1:void 0===oe;f||(Z+="(?:".concat(J,"(?=").concat(Q,"))?")),ae||(Z+="(?=".concat(J,"|").concat(Q,")"))}return new RegExp(Z,flags(h))}(parse(t,h),c,h)}function pathToRegexp(t,c,h){return t instanceof RegExp?function regexpToRegexp(t,c){if(!c)return t;for(var h=/\((?:\?<(.*?)>)?(?!\?)/g,p=0,f=h.exec(t.source);f;)c.push({name:f[1]||p++,prefix:"",suffix:"",modifier:"",pattern:""}),f=h.exec(t.source);return t}(t,c):Array.isArray(t)?function arrayToRegexp(t,c,h){var p=t.map((function(t){return pathToRegexp(t,c,h).source}));return new RegExp("(?:".concat(p.join("|"),")"),flags(h))}(t,c,h):stringToRegexp(t,c,h)}function o(){return o=Object.assign?Object.assign.bind():function(t){for(var c=1;c{if(!this.options.paths)return;const{from:t,to:c}=this.swup.transition,h=this.getPathName(t),p=this.getPathName(c);document.documentElement.classList.add(`from-${h}`),document.documentElement.classList.add(`to-${p}`)},this.addRouteClasses=()=>{if(!this.options.routes.length)return;const{from:t,to:c}=this.swup.transition,h=this.options.unknownRoute,p=this.getRouteName(t),f=this.getRouteName(c);(p||h)&&document.documentElement.classList.add(`from-route-${p||h}`),(f||h)&&document.documentElement.classList.add(`to-route-${f||h}`),p&&p===f&&document.documentElement.classList.add("to-same-route"),this.swup.log(`Route: '${p||h||"(unknown)"}' to '${f||h||"(unknown)"}'`)},this.removeClasses=()=>{const t=document.documentElement.className.split(" ").filter((t=>t.startsWith("from-")));document.documentElement.classList.remove(...t)},this.options=o({routes:[],unknownRoute:"unknown",matchOptions:{},paths:!1},t),this.compileRoutePatterns()}mount(){this.swup.on("animationOutStart",this.addPathClasses),this.swup.on("animationOutStart",this.addRouteClasses),this.swup.on("animationInDone",this.removeClasses)}unmount(){this.swup.off("animationOutStart",this.addPathClasses),this.swup.off("animationOutStart",this.addRouteClasses),this.swup.off("animationInDone",this.removeClasses)}compileRoutePatterns(){this.routePatterns=this.options.routes.map((t=>{const c=t.name.replace(/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~\s]/g,"");return o({},t,{name:c,matches:match(t.path,this.options.matchOptions)})}))}getRouteName(t){const{name:c}=this.routePatterns.find((c=>c.matches(t)))||{};return c||null}getPathName(t){return(n$2(t)||"homepage").replace(/^-+|-+$/g,"")}}function isObject$1(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function extend$1(t={},c={}){Object.keys(c).forEach((h=>{void 0===t[h]?t[h]=c[h]:isObject$1(c[h])&&isObject$1(t[h])&&Object.keys(c[h]).length>0&&extend$1(t[h],c[h])}))}const xt={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const t="undefined"!=typeof document?document:{};return extend$1(t,xt),t}const Pt={document:xt,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function CustomEvent(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function getWindow(){const t="undefined"!=typeof window?window:{};return extend$1(t,Pt),t}function nextTick(t,c=0){return setTimeout(t,c)}function now(){return Date.now()}function getTranslate(t,c="x"){const h=getWindow();let p,f,y;const b=function getComputedStyle$1(t){const c=getWindow();let h;return c.getComputedStyle&&(h=c.getComputedStyle(t,null)),!h&&t.currentStyle&&(h=t.currentStyle),h||(h=t.style),h}(t);return h.WebKitCSSMatrix?(f=b.transform||b.webkitTransform,f.split(",").length>6&&(f=f.split(", ").map((t=>t.replace(",","."))).join(", ")),y=new h.WebKitCSSMatrix("none"===f?"":f)):(y=b.MozTransform||b.OTransform||b.MsTransform||b.msTransform||b.transform||b.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),p=y.toString().split(",")),"x"===c&&(f=h.WebKitCSSMatrix?y.m41:16===p.length?parseFloat(p[12]):parseFloat(p[4])),"y"===c&&(f=h.WebKitCSSMatrix?y.m42:16===p.length?parseFloat(p[13]):parseFloat(p[5])),f||0}function isObject(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function extend(...t){const c=Object(t[0]),h=["__proto__","constructor","prototype"];for(let f=1;fh.indexOf(t)<0));for(let h=0,p=t.length;hf?"next":"prev",isOutOfBound=(t,c)=>"next"===z&&t>=c||"prev"===z&&t<=c,animate=()=>{y=(new Date).getTime(),null===b&&(b=y);const z=Math.max(Math.min((y-b)/k,1),0),G=.5-Math.cos(z*Math.PI)/2;let F=f+G*(c-f);if(isOutOfBound(F,c)&&(F=c),t.wrapperEl.scrollTo({[h]:F}),isOutOfBound(F,c))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[h]:F})})),void p.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=p.requestAnimationFrame(animate)};animate()}function elementChildren(t,c=""){return[...t.children].filter((t=>t.matches(c)))}function createElement(t,c=[]){const h=document.createElement(t);return h.classList.add(...Array.isArray(c)?c:[c]),h}function elementStyle(t,c){return getWindow().getComputedStyle(t,null).getPropertyValue(c)}function elementIndex(t){let c,h=t;if(h){for(c=0;null!==(h=h.previousSibling);)1===h.nodeType&&(c+=1);return c}}function elementTransitionEnd(t,c){c&&t.addEventListener("transitionend",(function fireCallBack(h){h.target===t&&(c.call(t,h),t.removeEventListener("transitionend",fireCallBack))}))}function elementOuterSize(t,c,h){const p=getWindow();return h?t["width"===c?"offsetWidth":"offsetHeight"]+parseFloat(p.getComputedStyle(t,null).getPropertyValue("width"===c?"margin-right":"margin-top"))+parseFloat(p.getComputedStyle(t,null).getPropertyValue("width"===c?"margin-left":"margin-bottom")):t.offsetWidth}let kt,Ct,_t;function getSupport(){return kt||(kt=function calcSupport(){const t=getWindow(),c=getDocument();return{smoothScroll:c.documentElement&&"scrollBehavior"in c.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&c instanceof t.DocumentTouch)}}()),kt}function getDevice(t={}){return Ct||(Ct=function calcDevice({userAgent:t}={}){const c=getSupport(),h=getWindow(),p=h.navigator.platform,f=t||h.navigator.userAgent,y={ios:!1,android:!1},b=h.screen.width,k=h.screen.height,z=f.match(/(Android);?[\s\/]+([\d.]+)?/);let G=f.match(/(iPad).*OS\s([\d_]+)/);const F=f.match(/(iPod)(.*OS\s([\d_]+))?/),U=!G&&f.match(/(iPhone\sOS|iOS)\s([\d_]+)/),Y="Win32"===p;let X="MacIntel"===p;return!G&&X&&c.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${b}x${k}`)>=0&&(G=f.match(/(Version)\/([\d.]+)/),G||(G=[0,1,"13_0_0"]),X=!1),z&&!Y&&(y.os="android",y.android=!0),(G||U||F)&&(y.os="ios",y.ios=!0),y}(t)),Ct}function getBrowser(){return _t||(_t=function calcBrowser(){const t=getWindow();let c=!1;function isSafari(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(isSafari()){const h=String(t.navigator.userAgent);if(h.includes("Version/")){const[t,p]=h.split("Version/")[1].split(" ")[0].split(".").map((t=>Number(t)));c=t<16||16===t&&p<2}}return{isSafari:c||isSafari(),needPerspectiveFix:c,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),_t}var Mt={on(t,c,h){const p=this;if(!p.eventsListeners||p.destroyed)return p;if("function"!=typeof c)return p;const f=h?"unshift":"push";return t.split(" ").forEach((t=>{p.eventsListeners[t]||(p.eventsListeners[t]=[]),p.eventsListeners[t][f](c)})),p},once(t,c,h){const p=this;if(!p.eventsListeners||p.destroyed)return p;if("function"!=typeof c)return p;function onceHandler(...h){p.off(t,onceHandler),onceHandler.__emitterProxy&&delete onceHandler.__emitterProxy,c.apply(p,h)}return onceHandler.__emitterProxy=c,p.on(t,onceHandler,h)},onAny(t,c){const h=this;if(!h.eventsListeners||h.destroyed)return h;if("function"!=typeof t)return h;const p=c?"unshift":"push";return h.eventsAnyListeners.indexOf(t)<0&&h.eventsAnyListeners[p](t),h},offAny(t){const c=this;if(!c.eventsListeners||c.destroyed)return c;if(!c.eventsAnyListeners)return c;const h=c.eventsAnyListeners.indexOf(t);return h>=0&&c.eventsAnyListeners.splice(h,1),c},off(t,c){const h=this;return!h.eventsListeners||h.destroyed?h:h.eventsListeners?(t.split(" ").forEach((t=>{void 0===c?h.eventsListeners[t]=[]:h.eventsListeners[t]&&h.eventsListeners[t].forEach(((p,f)=>{(p===c||p.__emitterProxy&&p.__emitterProxy===c)&&h.eventsListeners[t].splice(f,1)}))})),h):h},emit(...t){const c=this;if(!c.eventsListeners||c.destroyed)return c;if(!c.eventsListeners)return c;let h,p,f;"string"==typeof t[0]||Array.isArray(t[0])?(h=t[0],p=t.slice(1,t.length),f=c):(h=t[0].events,p=t[0].data,f=t[0].context||c),p.unshift(f);return(Array.isArray(h)?h:h.split(" ")).forEach((t=>{c.eventsAnyListeners&&c.eventsAnyListeners.length&&c.eventsAnyListeners.forEach((c=>{c.apply(f,[t,...p])})),c.eventsListeners&&c.eventsListeners[t]&&c.eventsListeners[t].forEach((t=>{t.apply(f,p)}))})),c}};var Lt={updateSize:function updateSize(){const t=this;let c,h;const p=t.el;c=void 0!==t.params.width&&null!==t.params.width?t.params.width:p.clientWidth,h=void 0!==t.params.height&&null!==t.params.height?t.params.height:p.clientHeight,0===c&&t.isHorizontal()||0===h&&t.isVertical()||(c=c-parseInt(elementStyle(p,"padding-left")||0,10)-parseInt(elementStyle(p,"padding-right")||0,10),h=h-parseInt(elementStyle(p,"padding-top")||0,10)-parseInt(elementStyle(p,"padding-bottom")||0,10),Number.isNaN(c)&&(c=0),Number.isNaN(h)&&(h=0),Object.assign(t,{width:c,height:h,size:t.isHorizontal()?c:h}))},updateSlides:function updateSlides(){const t=this;function getDirectionLabel(c){return t.isHorizontal()?c:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[c]}function getDirectionPropertyValue(t,c){return parseFloat(t.getPropertyValue(getDirectionLabel(c))||0)}const c=t.params,{wrapperEl:h,slidesEl:p,size:f,rtlTranslate:y,wrongRTL:b}=t,k=t.virtual&&c.virtual.enabled,z=k?t.virtual.slides.length:t.slides.length,G=elementChildren(p,`.${t.params.slideClass}, swiper-slide`),F=k?t.virtual.slides.length:G.length;let U=[];const Y=[],X=[];let K=c.slidesOffsetBefore;"function"==typeof K&&(K=c.slidesOffsetBefore.call(t));let Q=c.slidesOffsetAfter;"function"==typeof Q&&(Q=c.slidesOffsetAfter.call(t));const J=t.snapGrid.length,Z=t.slidesGrid.length;let ee=c.spaceBetween,te=-K,ie=0,ne=0;if(void 0===f)return;"string"==typeof ee&&ee.indexOf("%")>=0&&(ee=parseFloat(ee.replace("%",""))/100*f),t.virtualSize=-ee,G.forEach((t=>{y?t.style.marginLeft="":t.style.marginRight="",t.style.marginBottom="",t.style.marginTop=""})),c.centeredSlides&&c.cssMode&&(setCSSProperty(h,"--swiper-centered-offset-before",""),setCSSProperty(h,"--swiper-centered-offset-after",""));const se=c.grid&&c.grid.rows>1&&t.grid;let re;se&&t.grid.initSlides(F);const oe="auto"===c.slidesPerView&&c.breakpoints&&Object.keys(c.breakpoints).filter((t=>void 0!==c.breakpoints[t].slidesPerView)).length>0;for(let h=0;h1&&U.push(t.virtualSize-f)}if(k&&c.loop){const h=X[0]+ee;if(c.slidesPerGroup>1){const p=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/c.slidesPerGroup),f=h*c.slidesPerGroup;for(let t=0;t!(c.cssMode&&!c.loop)||h!==G.length-1)).forEach((t=>{t.style[h]=`${ee}px`}))}if(c.centeredSlides&&c.centeredSlidesBounds){let t=0;X.forEach((h=>{t+=h+(c.spaceBetween?c.spaceBetween:0)})),t-=c.spaceBetween;const h=t-f;U=U.map((t=>t<0?-K:t>h?h+Q:t))}if(c.centerInsufficientSlides){let t=0;if(X.forEach((h=>{t+=h+(c.spaceBetween?c.spaceBetween:0)})),t-=c.spaceBetween,t{U[h]=t-c})),Y.forEach(((t,h)=>{Y[h]=t+c}))}}if(Object.assign(t,{slides:G,snapGrid:U,slidesGrid:Y,slidesSizesGrid:X}),c.centeredSlides&&c.cssMode&&!c.centeredSlidesBounds){setCSSProperty(h,"--swiper-centered-offset-before",-U[0]+"px"),setCSSProperty(h,"--swiper-centered-offset-after",t.size/2-X[X.length-1]/2+"px");const c=-t.snapGrid[0],p=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+c)),t.slidesGrid=t.slidesGrid.map((t=>t+p))}if(F!==z&&t.emit("slidesLengthChange"),U.length!==J&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),Y.length!==Z&&t.emit("slidesGridLengthChange"),c.watchSlidesProgress&&t.updateSlidesOffset(),!(k||c.cssMode||"slide"!==c.effect&&"fade"!==c.effect)){const h=`${c.containerModifierClass}backface-hidden`,p=t.el.classList.contains(h);F<=c.maxBackfaceHiddenSlides?p||t.el.classList.add(h):p&&t.el.classList.remove(h)}},updateAutoHeight:function updateAutoHeight(t){const c=this,h=[],p=c.virtual&&c.params.virtual.enabled;let f,y=0;"number"==typeof t?c.setTransition(t):!0===t&&c.setTransition(c.params.speed);const getSlideByIndex=t=>p?c.slides.filter((c=>parseInt(c.getAttribute("data-swiper-slide-index"),10)===t))[0]:c.slides[t];if("auto"!==c.params.slidesPerView&&c.params.slidesPerView>1)if(c.params.centeredSlides)(c.visibleSlides||[]).forEach((t=>{h.push(t)}));else for(f=0;fc.slides.length&&!p)break;h.push(getSlideByIndex(t))}else h.push(getSlideByIndex(c.activeIndex));for(f=0;fy?t:y}(y||0===y)&&(c.wrapperEl.style.height=`${y}px`)},updateSlidesOffset:function updateSlidesOffset(){const t=this,c=t.slides,h=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let p=0;p{t.classList.remove(h.slideVisibleClass)})),c.visibleSlidesIndexes=[],c.visibleSlides=[];for(let t=0;t=0&&U1&&Y<=c.size||U<=0&&Y>=c.size)&&(c.visibleSlides.push(k),c.visibleSlidesIndexes.push(t),p[t].classList.add(h.slideVisibleClass)),k.progress=f?-G:G,k.originalProgress=f?-F:F}},updateProgress:function updateProgress(t){const c=this;if(void 0===t){const h=c.rtlTranslate?-1:1;t=c&&c.translate&&c.translate*h||0}const h=c.params,p=c.maxTranslate()-c.minTranslate();let{progress:f,isBeginning:y,isEnd:b,progressLoop:k}=c;const z=y,G=b;if(0===p)f=0,y=!0,b=!0;else{f=(t-c.minTranslate())/p;const h=Math.abs(t-c.minTranslate())<1,k=Math.abs(t-c.maxTranslate())<1;y=h||f<=0,b=k||f>=1,h&&(f=0),k&&(f=1)}if(h.loop){const h=c.getSlideIndex(c.slides.filter((t=>"0"===t.getAttribute("data-swiper-slide-index")))[0]),p=c.getSlideIndex(c.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")==c.slides.length-1))[0]),f=c.slidesGrid[h],y=c.slidesGrid[p],b=c.slidesGrid[c.slidesGrid.length-1],z=Math.abs(t);k=z>=f?(z-f)/b:(z+b-y)/b,k>1&&(k-=1)}Object.assign(c,{progress:f,progressLoop:k,isBeginning:y,isEnd:b}),(h.watchSlidesProgress||h.centeredSlides&&h.autoHeight)&&c.updateSlidesProgress(t),y&&!z&&c.emit("reachBeginning toEdge"),b&&!G&&c.emit("reachEnd toEdge"),(z&&!y||G&&!b)&&c.emit("fromEdge"),c.emit("progress",f)},updateSlidesClasses:function updateSlidesClasses(){const t=this,{slides:c,params:h,slidesEl:p,activeIndex:f}=t,y=t.virtual&&h.virtual.enabled,getFilteredSlide=t=>elementChildren(p,`.${h.slideClass}${t}, swiper-slide${t}`)[0];let b;if(c.forEach((t=>{t.classList.remove(h.slideActiveClass,h.slideNextClass,h.slidePrevClass)})),y)if(h.loop){let c=f-t.virtual.slidesBefore;c<0&&(c=t.virtual.slides.length+c),c>=t.virtual.slides.length&&(c-=t.virtual.slides.length),b=getFilteredSlide(`[data-swiper-slide-index="${c}"]`)}else b=getFilteredSlide(`[data-swiper-slide-index="${f}"]`);else b=c[f];if(b){b.classList.add(h.slideActiveClass);let t=function elementNextAll(t,c){const h=[];for(;t.nextElementSibling;){const p=t.nextElementSibling;c?p.matches(c)&&h.push(p):h.push(p),t=p}return h}(b,`.${h.slideClass}, swiper-slide`)[0];h.loop&&!t&&(t=c[0]),t&&t.classList.add(h.slideNextClass);let p=function elementPrevAll(t,c){const h=[];for(;t.previousElementSibling;){const p=t.previousElementSibling;c?p.matches(c)&&h.push(p):h.push(p),t=p}return h}(b,`.${h.slideClass}, swiper-slide`)[0];h.loop&&0===!p&&(p=c[c.length-1]),p&&p.classList.add(h.slidePrevClass)}t.emitSlidesClasses()},updateActiveIndex:function updateActiveIndex(t){const c=this,h=c.rtlTranslate?c.translate:-c.translate,{snapGrid:p,params:f,activeIndex:y,realIndex:b,snapIndex:k}=c;let z,G=t;const getVirtualRealIndex=t=>{let h=t-c.virtual.slidesBefore;return h<0&&(h=c.virtual.slides.length+h),h>=c.virtual.slides.length&&(h-=c.virtual.slides.length),h};if(void 0===G&&(G=function getActiveIndexByTranslate(t){const{slidesGrid:c,params:h}=t,p=t.rtlTranslate?t.translate:-t.translate;let f;for(let t=0;t=c[t]&&p=c[t]&&p=c[t]&&(f=t);return h.normalizeSlideIndex&&(f<0||void 0===f)&&(f=0),f}(c)),p.indexOf(h)>=0)z=p.indexOf(h);else{const t=Math.min(f.slidesPerGroupSkip,G);z=t+Math.floor((G-t)/f.slidesPerGroup)}if(z>=p.length&&(z=p.length-1),G===y)return z!==k&&(c.snapIndex=z,c.emit("snapIndexChange")),void(c.params.loop&&c.virtual&&c.params.virtual.enabled&&(c.realIndex=getVirtualRealIndex(G)));let F;F=c.virtual&&f.virtual.enabled&&f.loop?getVirtualRealIndex(G):c.slides[G]?parseInt(c.slides[G].getAttribute("data-swiper-slide-index")||G,10):G,Object.assign(c,{snapIndex:z,realIndex:F,previousIndex:y,activeIndex:G}),c.emit("activeIndexChange"),c.emit("snapIndexChange"),b!==F&&c.emit("realIndexChange"),(c.initialized||c.params.runCallbacksOnInit)&&c.emit("slideChange")},updateClickedSlide:function updateClickedSlide(t){const c=this,h=c.params,p=t.closest(`.${h.slideClass}, swiper-slide`);let f,y=!1;if(p)for(let t=0;tz?z:p&&ty?"next":f=z.length&&(J=z.length-1);const Z=-z[J];if(k.normalizeSlideIndex)for(let t=0;t=h&&c=h&&c=h&&(b=t)}if(y.initialized&&b!==U){if(!y.allowSlideNext&&Zy.translate&&Z>y.maxTranslate()&&(U||0)!==b)return!1}let ee;if(b!==(F||0)&&h&&y.emit("beforeSlideChangeStart"),y.updateProgress(Z),ee=b>U?"next":b0?(y._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{X[t?"scrollLeft":"scrollTop"]=h}))):X[t?"scrollLeft":"scrollTop"]=h,c&&requestAnimationFrame((()=>{y.wrapperEl.style.scrollSnapType="",y._immediateVirtual=!1}))}else{if(!y.support.smoothScroll)return animateCSSModeScroll({swiper:y,targetPosition:h,side:t?"left":"top"}),!0;X.scrollTo({[t?"left":"top"]:h,behavior:"smooth"})}return!0}return y.setTransition(c),y.setTranslate(Z),y.updateActiveIndex(b),y.updateSlidesClasses(),y.emit("beforeTransitionStart",c,p),y.transitionStart(h,ee),0===c?y.transitionEnd(h,ee):y.animating||(y.animating=!0,y.onSlideToWrapperTransitionEnd||(y.onSlideToWrapperTransitionEnd=function transitionEnd(t){y&&!y.destroyed&&t.target===this&&(y.wrapperEl.removeEventListener("transitionend",y.onSlideToWrapperTransitionEnd),y.onSlideToWrapperTransitionEnd=null,delete y.onSlideToWrapperTransitionEnd,y.transitionEnd(h,ee))}),y.wrapperEl.addEventListener("transitionend",y.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function slideToLoop(t=0,c=this.params.speed,h=!0,p){if("string"==typeof t){t=parseInt(t,10)}const f=this;let y=t;return f.params.loop&&(f.virtual&&f.params.virtual.enabled?y+=f.virtual.slidesBefore:y=f.getSlideIndex(f.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===y))[0])),f.slideTo(y,c,h,p)},slideNext:function slideNext(t=this.params.speed,c=!0,h){const p=this,{enabled:f,params:y,animating:b}=p;if(!f)return p;let k=y.slidesPerGroup;"auto"===y.slidesPerView&&1===y.slidesPerGroup&&y.slidesPerGroupAuto&&(k=Math.max(p.slidesPerViewDynamic("current",!0),1));const z=p.activeIndexnormalize(t)));let X=y[Y.indexOf(U)-1];if(void 0===X&&f.cssMode){let t;y.forEach(((c,h)=>{U>=c&&(t=h)})),void 0!==t&&(X=y[t>0?t-1:t])}let K=0;if(void 0!==X&&(K=b.indexOf(X),K<0&&(K=p.activeIndex-1),"auto"===f.slidesPerView&&1===f.slidesPerGroup&&f.slidesPerGroupAuto&&(K=K-p.slidesPerViewDynamic("previous",!0)+1,K=Math.max(K,0))),f.rewind&&p.isBeginning){const f=p.params.virtual&&p.params.virtual.enabled&&p.virtual?p.virtual.slides.length-1:p.slides.length-1;return p.slideTo(f,t,c,h)}return p.slideTo(K,t,c,h)},slideReset:function slideReset(t=this.params.speed,c=!0,h){return this.slideTo(this.activeIndex,t,c,h)},slideToClosest:function slideToClosest(t=this.params.speed,c=!0,h,p=.5){const f=this;let y=f.activeIndex;const b=Math.min(f.params.slidesPerGroupSkip,y),k=b+Math.floor((y-b)/f.params.slidesPerGroup),z=f.rtlTranslate?f.translate:-f.translate;if(z>=f.snapGrid[k]){const t=f.snapGrid[k];z-t>(f.snapGrid[k+1]-t)*p&&(y+=f.params.slidesPerGroup)}else{const t=f.snapGrid[k-1];z-t<=(f.snapGrid[k]-t)*p&&(y-=f.params.slidesPerGroup)}return y=Math.max(y,0),y=Math.min(y,f.slidesGrid.length-1),f.slideTo(y,t,c,h)},slideToClickedSlide:function slideToClickedSlide(){const t=this,{params:c,slidesEl:h}=t,p="auto"===c.slidesPerView?t.slidesPerViewDynamic():c.slidesPerView;let f,y=t.clickedIndex;const b=t.isElement?"swiper-slide":`.${c.slideClass}`;if(c.loop){if(t.animating)return;f=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),c.centeredSlides?yt.slides.length-t.loopedSlides+p/2?(t.loopFix(),y=t.getSlideIndex(elementChildren(h,`${b}[data-swiper-slide-index="${f}"]`)[0]),nextTick((()=>{t.slideTo(y)}))):t.slideTo(y):y>t.slides.length-p?(t.loopFix(),y=t.getSlideIndex(elementChildren(h,`${b}[data-swiper-slide-index="${f}"]`)[0]),nextTick((()=>{t.slideTo(y)}))):t.slideTo(y)}else t.slideTo(y)}};var It={loopCreate:function loopCreate(t){const c=this,{params:h,slidesEl:p}=c;if(!h.loop||c.virtual&&c.params.virtual.enabled)return;elementChildren(p,`.${h.slideClass}, swiper-slide`).forEach(((t,c)=>{t.setAttribute("data-swiper-slide-index",c)})),c.loopFix({slideRealIndex:t,direction:h.centeredSlides?void 0:"next"})},loopFix:function loopFix({slideRealIndex:t,slideTo:c=!0,direction:h,setTranslate:p,activeSlideIndex:f,byController:y,byMousewheel:b}={}){const k=this;if(!k.params.loop)return;k.emit("beforeLoopFix");const{slides:z,allowSlidePrev:G,allowSlideNext:F,slidesEl:U,params:Y}=k;if(k.allowSlidePrev=!0,k.allowSlideNext=!0,k.virtual&&Y.virtual.enabled)return c&&(Y.centeredSlides||0!==k.snapIndex?Y.centeredSlides&&k.snapIndext.classList.contains("swiper-slide-active")))[0]):Z=f;const ee="next"===h||!h,te="prev"===h||!h;let ie=0,ne=0;if(fk.slides.length-2*K){ne=Math.max(f-(k.slides.length-2*K),Y.slidesPerGroup);for(let t=0;t{U.prepend(k.slides[t])})),ee&&J.forEach((t=>{U.append(k.slides[t])})),k.recalcSlides(),Y.watchSlidesProgress&&k.updateSlidesOffset(),c)if(Q.length>0&&te)if(void 0===t){const t=k.slidesGrid[Z],c=k.slidesGrid[Z+ie]-t;b?k.setTranslate(k.translate-c):(k.slideTo(Z+ie,0,!1,!0),p&&(k.touches[k.isHorizontal()?"startX":"startY"]+=c))}else p&&k.slideToLoop(t,0,!1,!0);else if(J.length>0&&ee)if(void 0===t){const t=k.slidesGrid[Z],c=k.slidesGrid[Z-ne]-t;b?k.setTranslate(k.translate-c):(k.slideTo(Z-ne,0,!1,!0),p&&(k.touches[k.isHorizontal()?"startX":"startY"]+=c))}else k.slideToLoop(t,0,!1,!0);if(k.allowSlidePrev=G,k.allowSlideNext=F,k.controller&&k.controller.control&&!y){const c={slideRealIndex:t,slideTo:!1,direction:h,setTranslate:p,activeSlideIndex:f,byController:!0};Array.isArray(k.controller.control)?k.controller.control.forEach((t=>{t.params.loop&&t.loopFix(c)})):k.controller.control instanceof k.constructor&&k.controller.control.params.loop&&k.controller.control.loopFix(c)}k.emit("loopFix")},loopDestroy:function loopDestroy(){const t=this,{slides:c,params:h,slidesEl:p}=t;if(!h.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const f=[];c.forEach((t=>{const c=void 0===t.swiperSlideIndex?1*t.getAttribute("data-swiper-slide-index"):t.swiperSlideIndex;f[c]=t})),c.forEach((t=>{t.removeAttribute("data-swiper-slide-index")})),f.forEach((t=>{p.append(t)})),t.recalcSlides(),t.slideTo(t.realIndex,0)}};function onTouchStart(t){const c=this,h=getDocument(),p=getWindow(),f=c.touchEventsData;f.evCache.push(t);const{params:y,touches:b,enabled:k}=c;if(!k)return;if(!y.simulateTouch&&"mouse"===t.pointerType)return;if(c.animating&&y.preventInteractionOnTransition)return;!c.animating&&y.cssMode&&y.loop&&c.loopFix();let z=t;z.originalEvent&&(z=z.originalEvent);let G=z.target;if("wrapper"===y.touchEventsTarget&&!c.wrapperEl.contains(G))return;if("which"in z&&3===z.which)return;if("button"in z&&z.button>0)return;if(f.isTouched&&f.isMoved)return;const F=!!y.noSwipingClass&&""!==y.noSwipingClass,U=t.composedPath?t.composedPath():t.path;F&&z.target&&z.target.shadowRoot&&U&&(G=U[0]);const Y=y.noSwipingSelector?y.noSwipingSelector:`.${y.noSwipingClass}`,X=!(!z.target||!z.target.shadowRoot);if(y.noSwiping&&(X?function closestElement(t,c=this){return function __closestFrom(c){if(!c||c===getDocument()||c===getWindow())return null;c.assignedSlot&&(c=c.assignedSlot);const h=c.closest(t);return h||c.getRootNode?h||__closestFrom(c.getRootNode().host):null}(c)}(Y,G):G.closest(Y)))return void(c.allowClick=!0);if(y.swipeHandler&&!G.closest(y.swipeHandler))return;b.currentX=z.pageX,b.currentY=z.pageY;const K=b.currentX,Q=b.currentY,J=y.edgeSwipeDetection||y.iOSEdgeSwipeDetection,Z=y.edgeSwipeThreshold||y.iOSEdgeSwipeThreshold;if(J&&(K<=Z||K>=p.innerWidth-Z)){if("prevent"!==J)return;t.preventDefault()}Object.assign(f,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),b.startX=K,b.startY=Q,f.touchStartTime=now(),c.allowClick=!0,c.updateSize(),c.swipeDirection=void 0,y.threshold>0&&(f.allowThresholdMove=!1);let ee=!0;G.matches(f.focusableElements)&&(ee=!1,"SELECT"===G.nodeName&&(f.isTouched=!1)),h.activeElement&&h.activeElement.matches(f.focusableElements)&&h.activeElement!==G&&h.activeElement.blur();const te=ee&&c.allowTouchMove&&y.touchStartPreventDefault;!y.touchStartForcePreventDefault&&!te||G.isContentEditable||z.preventDefault(),c.params.freeMode&&c.params.freeMode.enabled&&c.freeMode&&c.animating&&!y.cssMode&&c.freeMode.onTouchStart(),c.emit("touchStart",z)}function onTouchMove(t){const c=getDocument(),h=this,p=h.touchEventsData,{params:f,touches:y,rtlTranslate:b,enabled:k}=h;if(!k)return;if(!f.simulateTouch&&"mouse"===t.pointerType)return;let z=t;if(z.originalEvent&&(z=z.originalEvent),!p.isTouched)return void(p.startMoving&&p.isScrolling&&h.emit("touchMoveOpposite",z));const G=p.evCache.findIndex((t=>t.pointerId===z.pointerId));G>=0&&(p.evCache[G]=z);const F=p.evCache.length>1?p.evCache[0]:z,U=F.pageX,Y=F.pageY;if(z.preventedByNestedSwiper)return y.startX=U,void(y.startY=Y);if(!h.allowTouchMove)return z.target.matches(p.focusableElements)||(h.allowClick=!1),void(p.isTouched&&(Object.assign(y,{startX:U,startY:Y,prevX:h.touches.currentX,prevY:h.touches.currentY,currentX:U,currentY:Y}),p.touchStartTime=now()));if(f.touchReleaseOnEdges&&!f.loop)if(h.isVertical()){if(Yy.startY&&h.translate>=h.minTranslate())return p.isTouched=!1,void(p.isMoved=!1)}else if(Uy.startX&&h.translate>=h.minTranslate())return;if(c.activeElement&&z.target===c.activeElement&&z.target.matches(p.focusableElements))return p.isMoved=!0,void(h.allowClick=!1);if(p.allowTouchCallbacks&&h.emit("touchMove",z),z.targetTouches&&z.targetTouches.length>1)return;y.currentX=U,y.currentY=Y;const X=y.currentX-y.startX,K=y.currentY-y.startY;if(h.params.threshold&&Math.sqrt(X**2+K**2)=25&&(t=180*Math.atan2(Math.abs(K),Math.abs(X))/Math.PI,p.isScrolling=h.isHorizontal()?t>f.touchAngle:90-t>f.touchAngle)}if(p.isScrolling&&h.emit("touchMoveOpposite",z),void 0===p.startMoving&&(y.currentX===y.startX&&y.currentY===y.startY||(p.startMoving=!0)),p.isScrolling||h.zoom&&h.params.zoom&&h.params.zoom.enabled&&p.evCache.length>1)return void(p.isTouched=!1);if(!p.startMoving)return;h.allowClick=!1,!f.cssMode&&z.cancelable&&z.preventDefault(),f.touchMoveStopPropagation&&!f.nested&&z.stopPropagation();let Q=h.isHorizontal()?X:K,J=h.isHorizontal()?y.currentX-y.previousX:y.currentY-y.previousY;f.oneWayMovement&&(Q=Math.abs(Q)*(b?1:-1),J=Math.abs(J)*(b?1:-1)),y.diff=Q,Q*=f.touchRatio,b&&(Q=-Q,J=-J);const Z=h.touchesDirection;h.swipeDirection=Q>0?"prev":"next",h.touchesDirection=J>0?"prev":"next";const ee=h.params.loop&&!f.cssMode;if(!p.isMoved){if(ee&&h.loopFix({direction:h.swipeDirection}),p.startTranslate=h.getTranslate(),h.setTransition(0),h.animating){const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});h.wrapperEl.dispatchEvent(t)}p.allowMomentumBounce=!1,!f.grabCursor||!0!==h.allowSlideNext&&!0!==h.allowSlidePrev||h.setGrabCursor(!0),h.emit("sliderFirstMove",z)}let te;p.isMoved&&Z!==h.touchesDirection&&ee&&Math.abs(Q)>=1&&(h.loopFix({direction:h.swipeDirection,setTranslate:!0}),te=!0),h.emit("sliderMove",z),p.isMoved=!0,p.currentTranslate=Q+p.startTranslate;let ie=!0,ne=f.resistanceRatio;if(f.touchReleaseOnEdges&&(ne=0),Q>0?(ee&&!te&&p.currentTranslate>(f.centeredSlides?h.minTranslate()-h.size/2:h.minTranslate())&&h.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),p.currentTranslate>h.minTranslate()&&(ie=!1,f.resistance&&(p.currentTranslate=h.minTranslate()-1+(-h.minTranslate()+p.startTranslate+Q)**ne))):Q<0&&(ee&&!te&&p.currentTranslate<(f.centeredSlides?h.maxTranslate()+h.size/2:h.maxTranslate())&&h.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:h.slides.length-("auto"===f.slidesPerView?h.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10)))}),p.currentTranslatep.startTranslate&&(p.currentTranslate=p.startTranslate),h.allowSlidePrev||h.allowSlideNext||(p.currentTranslate=p.startTranslate),f.threshold>0){if(!(Math.abs(Q)>f.threshold||p.allowThresholdMove))return void(p.currentTranslate=p.startTranslate);if(!p.allowThresholdMove)return p.allowThresholdMove=!0,y.startX=y.currentX,y.startY=y.currentY,p.currentTranslate=p.startTranslate,void(y.diff=h.isHorizontal()?y.currentX-y.startX:y.currentY-y.startY)}f.followFinger&&!f.cssMode&&((f.freeMode&&f.freeMode.enabled&&h.freeMode||f.watchSlidesProgress)&&(h.updateActiveIndex(),h.updateSlidesClasses()),h.params.freeMode&&f.freeMode.enabled&&h.freeMode&&h.freeMode.onTouchMove(),h.updateProgress(p.currentTranslate),h.setTranslate(p.currentTranslate))}function onTouchEnd(t){const c=this,h=c.touchEventsData,p=h.evCache.findIndex((c=>c.pointerId===t.pointerId));if(p>=0&&h.evCache.splice(p,1),["pointercancel","pointerout","pointerleave"].includes(t.type)){if(!("pointercancel"===t.type&&(c.browser.isSafari||c.browser.isWebView)))return}const{params:f,touches:y,rtlTranslate:b,slidesGrid:k,enabled:z}=c;if(!z)return;if(!f.simulateTouch&&"mouse"===t.pointerType)return;let G=t;if(G.originalEvent&&(G=G.originalEvent),h.allowTouchCallbacks&&c.emit("touchEnd",G),h.allowTouchCallbacks=!1,!h.isTouched)return h.isMoved&&f.grabCursor&&c.setGrabCursor(!1),h.isMoved=!1,void(h.startMoving=!1);f.grabCursor&&h.isMoved&&h.isTouched&&(!0===c.allowSlideNext||!0===c.allowSlidePrev)&&c.setGrabCursor(!1);const F=now(),U=F-h.touchStartTime;if(c.allowClick){const t=G.path||G.composedPath&&G.composedPath();c.updateClickedSlide(t&&t[0]||G.target),c.emit("tap click",G),U<300&&F-h.lastClickTime<300&&c.emit("doubleTap doubleClick",G)}if(h.lastClickTime=now(),nextTick((()=>{c.destroyed||(c.allowClick=!0)})),!h.isTouched||!h.isMoved||!c.swipeDirection||0===y.diff||h.currentTranslate===h.startTranslate)return h.isTouched=!1,h.isMoved=!1,void(h.startMoving=!1);let Y;if(h.isTouched=!1,h.isMoved=!1,h.startMoving=!1,Y=f.followFinger?b?c.translate:-c.translate:-h.currentTranslate,f.cssMode)return;if(c.params.freeMode&&f.freeMode.enabled)return void c.freeMode.onTouchEnd({currentPos:Y});let X=0,K=c.slidesSizesGrid[0];for(let t=0;t=k[t]&&Y=k[t]&&(X=t,K=k[k.length-1]-k[k.length-2])}let Q=null,J=null;f.rewind&&(c.isBeginning?J=c.params.virtual&&c.params.virtual.enabled&&c.virtual?c.virtual.slides.length-1:c.slides.length-1:c.isEnd&&(Q=0));const Z=(Y-k[X])/K,ee=Xf.longSwipesMs){if(!f.longSwipes)return void c.slideTo(c.activeIndex);"next"===c.swipeDirection&&(Z>=f.longSwipesRatio?c.slideTo(f.rewind&&c.isEnd?Q:X+ee):c.slideTo(X)),"prev"===c.swipeDirection&&(Z>1-f.longSwipesRatio?c.slideTo(X+ee):null!==J&&Z<0&&Math.abs(Z)>f.longSwipesRatio?c.slideTo(J):c.slideTo(X))}else{if(!f.shortSwipes)return void c.slideTo(c.activeIndex);c.navigation&&(G.target===c.navigation.nextEl||G.target===c.navigation.prevEl)?G.target===c.navigation.nextEl?c.slideTo(X+ee):c.slideTo(X):("next"===c.swipeDirection&&c.slideTo(null!==Q?Q:X+ee),"prev"===c.swipeDirection&&c.slideTo(null!==J?J:X))}}let Dt;function onResize(){const t=this,{params:c,el:h}=t;if(h&&0===h.offsetWidth)return;c.breakpoints&&t.setBreakpoint();const{allowSlideNext:p,allowSlidePrev:f,snapGrid:y}=t,b=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const k=b&&c.loop;!("auto"===c.slidesPerView||c.slidesPerView>1)||!t.isEnd||t.isBeginning||t.params.centeredSlides||k?t.params.loop&&!b?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0):t.slideTo(t.slides.length-1,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(Dt),Dt=setTimeout((()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()}),500)),t.allowSlidePrev=f,t.allowSlideNext=p,t.params.watchOverflow&&y!==t.snapGrid&&t.checkOverflow()}function onClick(t){const c=this;c.enabled&&(c.allowClick||(c.params.preventClicks&&t.preventDefault(),c.params.preventClicksPropagation&&c.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function onScroll(){const t=this,{wrapperEl:c,rtlTranslate:h,enabled:p}=t;if(!p)return;let f;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-c.scrollLeft:t.translate=-c.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const y=t.maxTranslate()-t.minTranslate();f=0===y?0:(t.translate-t.minTranslate())/y,f!==t.progress&&t.updateProgress(h?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}const processLazyPreloader=(t,c)=>{if(!t||t.destroyed||!t.params)return;const h=c.closest(t.isElement?"swiper-slide":`.${t.params.slideClass}`);if(h){const c=h.querySelector(`.${t.params.lazyPreloaderClass}`);c&&c.remove()}};function onLoad(t){processLazyPreloader(this,t.target),this.update()}let Bt=!1;function dummyEventListener(){}const events=(t,c)=>{const h=getDocument(),{params:p,el:f,wrapperEl:y,device:b}=t,k=!!p.nested,z="on"===c?"addEventListener":"removeEventListener",G=c;f[z]("pointerdown",t.onTouchStart,{passive:!1}),h[z]("pointermove",t.onTouchMove,{passive:!1,capture:k}),h[z]("pointerup",t.onTouchEnd,{passive:!0}),h[z]("pointercancel",t.onTouchEnd,{passive:!0}),h[z]("pointerout",t.onTouchEnd,{passive:!0}),h[z]("pointerleave",t.onTouchEnd,{passive:!0}),(p.preventClicks||p.preventClicksPropagation)&&f[z]("click",t.onClick,!0),p.cssMode&&y[z]("scroll",t.onScroll),p.updateOnWindowResize?t[G](b.ios||b.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):t[G]("observerUpdate",onResize,!0),f[z]("load",t.onLoad,{capture:!0})};const isGridEnabled=(t,c)=>t.grid&&c.grid&&c.grid.rows>1;var jt={setBreakpoint:function setBreakpoint(){const t=this,{realIndex:c,initialized:h,params:p,el:f}=t,y=p.breakpoints;if(!y||y&&0===Object.keys(y).length)return;const b=t.getBreakpoint(y,t.params.breakpointsBase,t.el);if(!b||t.currentBreakpoint===b)return;const k=(b in y?y[b]:void 0)||t.originalParams,z=isGridEnabled(t,p),G=isGridEnabled(t,k),F=p.enabled;z&&!G?(f.classList.remove(`${p.containerModifierClass}grid`,`${p.containerModifierClass}grid-column`),t.emitContainerClasses()):!z&&G&&(f.classList.add(`${p.containerModifierClass}grid`),(k.grid.fill&&"column"===k.grid.fill||!k.grid.fill&&"column"===p.grid.fill)&&f.classList.add(`${p.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((c=>{const h=p[c]&&p[c].enabled,f=k[c]&&k[c].enabled;h&&!f&&t[c].disable(),!h&&f&&t[c].enable()}));const U=k.direction&&k.direction!==p.direction,Y=p.loop&&(k.slidesPerView!==p.slidesPerView||U);U&&h&&t.changeDirection(),extend(t.params,k);const X=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),F&&!X?t.disable():!F&&X&&t.enable(),t.currentBreakpoint=b,t.emit("_beforeBreakpoint",k),Y&&h&&(t.loopDestroy(),t.loopCreate(c),t.updateSlides()),t.emit("breakpoint",k)},getBreakpoint:function getBreakpoint(t,c="window",h){if(!t||"container"===c&&!h)return;let p=!1;const f=getWindow(),y="window"===c?f.innerHeight:h.clientHeight,b=Object.keys(t).map((t=>{if("string"==typeof t&&0===t.indexOf("@")){const c=parseFloat(t.substr(1));return{value:y*c,point:t}}return{value:t,point:t}}));b.sort(((t,c)=>parseInt(t.value,10)-parseInt(c.value,10)));for(let t=0;t=0&&!0===t[p]&&(t[p]={auto:!0}),p in t&&"enabled"in f?(!0===t[p]&&(t[p]={enabled:!0}),"object"!=typeof t[p]||"enabled"in t[p]||(t[p].enabled=!0),t[p]||(t[p]={enabled:!1}),extend(c,h)):extend(c,h)):extend(c,h)}}const Rt={eventsEmitter:Mt,update:Lt,translate:Ot,transition:{setTransition:function setTransition(t,c){const h=this;h.params.cssMode||(h.wrapperEl.style.transitionDuration=`${t}ms`),h.emit("setTransition",t,c)},transitionStart:function transitionStart(t=!0,c){const h=this,{params:p}=h;p.cssMode||(p.autoHeight&&h.updateAutoHeight(),transitionEmit({swiper:h,runCallbacks:t,direction:c,step:"Start"}))},transitionEnd:function transitionEnd(t=!0,c){const h=this,{params:p}=h;h.animating=!1,p.cssMode||(h.setTransition(0),transitionEmit({swiper:h,runCallbacks:t,direction:c,step:"End"}))}},slide:At,loop:It,grabCursor:{setGrabCursor:function setGrabCursor(t){const c=this;if(!c.params.simulateTouch||c.params.watchOverflow&&c.isLocked||c.params.cssMode)return;const h="container"===c.params.touchEventsTarget?c.el:c.wrapperEl;c.isElement&&(c.__preventObserver__=!0),h.style.cursor="move",h.style.cursor=t?"grabbing":"grab",c.isElement&&requestAnimationFrame((()=>{c.__preventObserver__=!1}))},unsetGrabCursor:function unsetGrabCursor(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1})))}},events:{attachEvents:function attachEvents(){const t=this,c=getDocument(),{params:h}=t;t.onTouchStart=onTouchStart.bind(t),t.onTouchMove=onTouchMove.bind(t),t.onTouchEnd=onTouchEnd.bind(t),h.cssMode&&(t.onScroll=onScroll.bind(t)),t.onClick=onClick.bind(t),t.onLoad=onLoad.bind(t),Bt||(c.addEventListener("touchstart",dummyEventListener),Bt=!0),events(t,"on")},detachEvents:function detachEvents(){events(this,"off")}},breakpoints:jt,checkOverflow:{checkOverflow:function checkOverflow(){const t=this,{isLocked:c,params:h}=t,{slidesOffsetBefore:p}=h;if(p){const c=t.slides.length-1,h=t.slidesGrid[c]+t.slidesSizesGrid[c]+2*p;t.isLocked=t.size>h}else t.isLocked=1===t.snapGrid.length;!0===h.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===h.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),c&&c!==t.isLocked&&(t.isEnd=!1),c!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:{addClasses:function addClasses(){const t=this,{classNames:c,params:h,rtl:p,el:f,device:y}=t,b=function prepareClasses(t,c){const h=[];return t.forEach((t=>{"object"==typeof t?Object.keys(t).forEach((p=>{t[p]&&h.push(c+p)})):"string"==typeof t&&h.push(c+t)})),h}(["initialized",h.direction,{"free-mode":t.params.freeMode&&h.freeMode.enabled},{autoheight:h.autoHeight},{rtl:p},{grid:h.grid&&h.grid.rows>1},{"grid-column":h.grid&&h.grid.rows>1&&"column"===h.grid.fill},{android:y.android},{ios:y.ios},{"css-mode":h.cssMode},{centered:h.cssMode&&h.centeredSlides},{"watch-progress":h.watchSlidesProgress}],h.containerModifierClass);c.push(...b),f.classList.add(...c),t.emitContainerClasses()},removeClasses:function removeClasses(){const{el:t,classNames:c}=this;t.classList.remove(...c),this.emitContainerClasses()}}},zt={};class Swiper{constructor(...t){let c,h;1===t.length&&t[0].constructor&&"Object"===Object.prototype.toString.call(t[0]).slice(8,-1)?h=t[0]:[c,h]=t,h||(h={}),h=extend({},h),c&&!h.el&&(h.el=c);const p=getDocument();if(h.el&&"string"==typeof h.el&&p.querySelectorAll(h.el).length>1){const t=[];return p.querySelectorAll(h.el).forEach((c=>{const p=extend({},h,{el:c});t.push(new Swiper(p))})),t}const f=this;f.__swiper__=!0,f.support=getSupport(),f.device=getDevice({userAgent:h.userAgent}),f.browser=getBrowser(),f.eventsListeners={},f.eventsAnyListeners=[],f.modules=[...f.__modules__],h.modules&&Array.isArray(h.modules)&&f.modules.push(...h.modules);const y={};f.modules.forEach((t=>{t({params:h,swiper:f,extendParams:moduleExtendParams(h,y),on:f.on.bind(f),once:f.once.bind(f),off:f.off.bind(f),emit:f.emit.bind(f)})}));const b=extend({},$t,y);return f.params=extend({},b,zt,h),f.originalParams=extend({},f.params),f.passedParams=extend({},h),f.params&&f.params.on&&Object.keys(f.params.on).forEach((t=>{f.on(t,f.params.on[t])})),f.params&&f.params.onAny&&f.onAny(f.params.onAny),Object.assign(f,{enabled:f.params.enabled,el:c,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===f.params.direction,isVertical:()=>"vertical"===f.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:f.params.allowSlideNext,allowSlidePrev:f.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0, allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:f.params.focusableElements,lastClickTime:now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:f.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),f.emit("_swiper"),f.params.init&&f.init(),f}getSlideIndex(t){const{slidesEl:c,params:h}=this,p=elementIndex(elementChildren(c,`.${h.slideClass}, swiper-slide`)[0]);return elementIndex(t)-p}recalcSlides(){const{slidesEl:t,params:c}=this;this.slides=elementChildren(t,`.${c.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,c){const h=this;t=Math.min(Math.max(t,0),1);const p=h.minTranslate(),f=(h.maxTranslate()-p)*t+p;h.translateTo(f,void 0===c?0:c),h.updateActiveIndex(),h.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const c=t.el.className.split(" ").filter((c=>0===c.indexOf("swiper")||0===c.indexOf(t.params.containerModifierClass)));t.emit("_containerClasses",c.join(" "))}getSlideClasses(t){const c=this;return c.destroyed?"":t.className.split(" ").filter((t=>0===t.indexOf("swiper-slide")||0===t.indexOf(c.params.slideClass))).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const c=[];t.slides.forEach((h=>{const p=t.getSlideClasses(h);c.push({slideEl:h,classNames:p}),t.emit("_slideClass",h,p)})),t.emit("_slideClasses",c)}slidesPerViewDynamic(t="current",c=!1){const{params:h,slides:p,slidesGrid:f,slidesSizesGrid:y,size:b,activeIndex:k}=this;let z=1;if(h.centeredSlides){let t,c=p[k].swiperSlideSize;for(let h=k+1;hb&&(t=!0));for(let h=k-1;h>=0;h-=1)p[h]&&!t&&(c+=p[h].swiperSlideSize,z+=1,c>b&&(t=!0))}else if("current"===t)for(let t=k+1;t=0;t-=1){f[k]-f[t]{c.complete&&processLazyPreloader(t,c)})),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode&&t.params.freeMode.enabled?(setTranslate(),t.params.autoHeight&&t.updateAutoHeight()):(p=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),p||setTranslate()),h.watchOverflow&&c!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,c=!0){const h=this,p=h.params.direction;return t||(t="horizontal"===p?"vertical":"horizontal"),t===p||"horizontal"!==t&&"vertical"!==t||(h.el.classList.remove(`${h.params.containerModifierClass}${p}`),h.el.classList.add(`${h.params.containerModifierClass}${t}`),h.emitContainerClasses(),h.params.direction=t,h.slides.forEach((c=>{"vertical"===t?c.style.width="":c.style.height=""})),h.emit("changeDirection"),c&&h.update()),h}changeLanguageDirection(t){const c=this;c.rtl&&"rtl"===t||!c.rtl&&"ltr"===t||(c.rtl="rtl"===t,c.rtlTranslate="horizontal"===c.params.direction&&c.rtl,c.rtl?(c.el.classList.add(`${c.params.containerModifierClass}rtl`),c.el.dir="rtl"):(c.el.classList.remove(`${c.params.containerModifierClass}rtl`),c.el.dir="ltr"),c.update())}mount(t){const c=this;if(c.mounted)return!0;let h=t||c.params.el;if("string"==typeof h&&(h=document.querySelector(h)),!h)return!1;h.swiper=c,h.shadowEl&&(c.isElement=!0);const getWrapperSelector=()=>`.${(c.params.wrapperClass||"").trim().split(" ").join(".")}`;let p=(()=>{if(h&&h.shadowRoot&&h.shadowRoot.querySelector){return h.shadowRoot.querySelector(getWrapperSelector())}return elementChildren(h,getWrapperSelector())[0]})();return!p&&c.params.createElements&&(p=createElement("div",c.params.wrapperClass),h.append(p),elementChildren(h,`.${c.params.slideClass}`).forEach((t=>{p.append(t)}))),Object.assign(c,{el:h,wrapperEl:p,slidesEl:c.isElement?h:p,mounted:!0,rtl:"rtl"===h.dir.toLowerCase()||"rtl"===elementStyle(h,"direction"),rtlTranslate:"horizontal"===c.params.direction&&("rtl"===h.dir.toLowerCase()||"rtl"===elementStyle(h,"direction")),wrongRTL:"-webkit-box"===elementStyle(p,"display")}),!0}init(t){const c=this;if(c.initialized)return c;return!1===c.mount(t)||(c.emit("beforeInit"),c.params.breakpoints&&c.setBreakpoint(),c.addClasses(),c.updateSize(),c.updateSlides(),c.params.watchOverflow&&c.checkOverflow(),c.params.grabCursor&&c.enabled&&c.setGrabCursor(),c.params.loop&&c.virtual&&c.params.virtual.enabled?c.slideTo(c.params.initialSlide+c.virtual.slidesBefore,0,c.params.runCallbacksOnInit,!1,!0):c.slideTo(c.params.initialSlide,0,c.params.runCallbacksOnInit,!1,!0),c.params.loop&&c.loopCreate(),c.attachEvents(),[...c.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete?processLazyPreloader(c,t):t.addEventListener("load",(t=>{processLazyPreloader(c,t.target)}))})),c.initialized=!0,c.emit("init"),c.emit("afterInit")),c}destroy(t=!0,c=!0){const h=this,{params:p,el:f,wrapperEl:y,slides:b}=h;return void 0===h.params||h.destroyed||(h.emit("beforeDestroy"),h.initialized=!1,h.detachEvents(),p.loop&&h.loopDestroy(),c&&(h.removeClasses(),f.removeAttribute("style"),y.removeAttribute("style"),b&&b.length&&b.forEach((t=>{t.classList.remove(p.slideVisibleClass,p.slideActiveClass,p.slideNextClass,p.slidePrevClass),t.removeAttribute("style"),t.removeAttribute("data-swiper-slide-index")}))),h.emit("destroy"),Object.keys(h.eventsListeners).forEach((t=>{h.off(t)})),!1!==t&&(h.el.swiper=null,function deleteProps(t){const c=t;Object.keys(c).forEach((t=>{try{c[t]=null}catch(t){}try{delete c[t]}catch(t){}}))}(h)),h.destroyed=!0),null}static extendDefaults(t){extend(zt,t)}static get extendedDefaults(){return zt}static get defaults(){return $t}static installModule(t){Swiper.prototype.__modules__||(Swiper.prototype.__modules__=[]);const c=Swiper.prototype.__modules__;"function"==typeof t&&c.indexOf(t)<0&&c.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>Swiper.installModule(t))),Swiper):(Swiper.installModule(t),Swiper)}}function Scrollbar({swiper:t,extendParams:c,on:h,emit:p}){const f=getDocument();let y,b,k,z,G=!1,F=null,U=null;function setTranslate(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:c,rtlTranslate:h}=t,{dragEl:p,el:f}=c,y=t.params.scrollbar,z=t.params.loop?t.progressLoop:t.progress;let G=b,U=(k-b)*z;h?(U=-U,U>0?(G=b-U,U=0):-U+b>k&&(G=k+U)):U<0?(G=b+U,U=0):U+b>k&&(G=k-U),t.isHorizontal()?(p.style.transform=`translate3d(${U}px, 0, 0)`,p.style.width=`${G}px`):(p.style.transform=`translate3d(0px, ${U}px, 0)`,p.style.height=`${G}px`),y.hide&&(clearTimeout(F),f.style.opacity=1,F=setTimeout((()=>{f.style.opacity=0,f.style.transitionDuration="400ms"}),1e3))}function updateSize(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:c}=t,{dragEl:h,el:p}=c;h.style.width="",h.style.height="",k=t.isHorizontal()?p.offsetWidth:p.offsetHeight,z=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),b="auto"===t.params.scrollbar.dragSize?k*z:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?h.style.width=`${b}px`:h.style.height=`${b}px`,p.style.display=z>=1?"none":"",t.params.scrollbar.hide&&(p.style.opacity=0),t.params.watchOverflow&&t.enabled&&c.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function getPointerPosition(c){return t.isHorizontal()?c.clientX:c.clientY}function setDragPosition(c){const{scrollbar:h,rtlTranslate:p}=t,{el:f}=h;let z;z=(getPointerPosition(c)-function elementOffset(t){const c=getWindow(),h=getDocument(),p=t.getBoundingClientRect(),f=h.body,y=t.clientTop||f.clientTop||0,b=t.clientLeft||f.clientLeft||0,k=t===c?c.scrollY:t.scrollTop,z=t===c?c.scrollX:t.scrollLeft;return{top:p.top+k-y,left:p.left+z-b}}(f)[t.isHorizontal()?"left":"top"]-(null!==y?y:b/2))/(k-b),z=Math.max(Math.min(z,1),0),p&&(z=1-z);const G=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*z;t.updateProgress(G),t.setTranslate(G),t.updateActiveIndex(),t.updateSlidesClasses()}function onDragStart(c){const h=t.params.scrollbar,{scrollbar:f,wrapperEl:b}=t,{el:k,dragEl:z}=f;G=!0,y=c.target===z?getPointerPosition(c)-c.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,c.preventDefault(),c.stopPropagation(),b.style.transitionDuration="100ms",z.style.transitionDuration="100ms",setDragPosition(c),clearTimeout(U),k.style.transitionDuration="0ms",h.hide&&(k.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),p("scrollbarDragStart",c)}function onDragMove(c){const{scrollbar:h,wrapperEl:f}=t,{el:y,dragEl:b}=h;G&&(c.preventDefault?c.preventDefault():c.returnValue=!1,setDragPosition(c),f.style.transitionDuration="0ms",y.style.transitionDuration="0ms",b.style.transitionDuration="0ms",p("scrollbarDragMove",c))}function onDragEnd(c){const h=t.params.scrollbar,{scrollbar:f,wrapperEl:y}=t,{el:b}=f;G&&(G=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",y.style.transitionDuration=""),h.hide&&(clearTimeout(U),U=nextTick((()=>{b.style.opacity=0,b.style.transitionDuration="400ms"}),1e3)),p("scrollbarDragEnd",c),h.snapOnRelease&&t.slideToClosest())}function events(c){const{scrollbar:h,params:p}=t,y=h.el;if(!y)return;const b=y,k=!!p.passiveListeners&&{passive:!1,capture:!1},z=!!p.passiveListeners&&{passive:!0,capture:!1};if(!b)return;const G="on"===c?"addEventListener":"removeEventListener";b[G]("pointerdown",onDragStart,k),f[G]("pointermove",onDragMove,k),f[G]("pointerup",onDragEnd,z)}function init(){const{scrollbar:c,el:h}=t;t.params.scrollbar=function createElementIfNotDefined(t,c,h,p){return t.params.createElements&&Object.keys(p).forEach((f=>{if(!h[f]&&!0===h.auto){let y=elementChildren(t.el,`.${p[f]}`)[0];y||(y=createElement("div",p[f]),y.className=p[f],t.el.append(y)),h[f]=y,c[f]=y}})),h}(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const p=t.params.scrollbar;if(!p.el)return;let y,b;"string"==typeof p.el&&t.isElement&&(y=t.el.shadowRoot.querySelector(p.el)),y||"string"!=typeof p.el?y||(y=p.el):y=f.querySelectorAll(p.el),t.params.uniqueNavElements&&"string"==typeof p.el&&y.length>1&&1===h.querySelectorAll(p.el).length&&(y=h.querySelector(p.el)),y.length>0&&(y=y[0]),y.classList.add(t.isHorizontal()?p.horizontalClass:p.verticalClass),y&&(b=y.querySelector(`.${t.params.scrollbar.dragClass}`),b||(b=createElement("div",t.params.scrollbar.dragClass),y.append(b))),Object.assign(c,{el:y,dragEl:b}),p.draggable&&function enableDraggable(){t.params.scrollbar.el&&t.scrollbar.el&&events("on")}(),y&&y.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}function destroy(){const c=t.params.scrollbar,h=t.scrollbar.el;h&&h.classList.remove(t.isHorizontal()?c.horizontalClass:c.verticalClass),function disableDraggable(){t.params.scrollbar.el&&t.scrollbar.el&&events("off")}()}c({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},h("init",(()=>{!1===t.params.scrollbar.enabled?disable():(init(),updateSize(),setTranslate())})),h("update resize observerUpdate lock unlock",(()=>{updateSize()})),h("setTranslate",(()=>{setTranslate()})),h("setTransition",((c,h)=>{!function setTransition(c){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${c}ms`)}(h)})),h("enable disable",(()=>{const{el:c}=t.scrollbar;c&&c.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)})),h("destroy",(()=>{destroy()}));const disable=()=>{t.el.classList.add(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.el&&t.scrollbar.el.classList.add(t.params.scrollbar.scrollbarDisabledClass),destroy()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.el&&t.scrollbar.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass),init(),updateSize(),setTranslate()},disable:disable,updateSize:updateSize,setTranslate:setTranslate,init:init,destroy:destroy})}function freeMode({swiper:t,extendParams:c,emit:h,once:p}){c({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function onTouchStart(){const c=t.getTranslate();t.setTranslate(c),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function onTouchMove(){const{touchEventsData:c,touches:h}=t;0===c.velocities.length&&c.velocities.push({position:h[t.isHorizontal()?"startX":"startY"],time:c.touchStartTime}),c.velocities.push({position:h[t.isHorizontal()?"currentX":"currentY"],time:now()})},onTouchEnd:function onTouchEnd({currentPos:c}){const{params:f,wrapperEl:y,rtlTranslate:b,snapGrid:k,touchEventsData:z}=t,G=now()-z.touchStartTime;if(c<-t.minTranslate())t.slideTo(t.activeIndex);else if(c>-t.maxTranslate())t.slides.length1){const c=z.velocities.pop(),h=z.velocities.pop(),p=c.position-h.position,y=c.time-h.time;t.velocity=p/y,t.velocity/=2,Math.abs(t.velocity)150||now()-c.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=f.freeMode.momentumVelocityRatio,z.velocities.length=0;let c=1e3*f.freeMode.momentumRatio;const G=t.velocity*c;let F=t.translate+G;b&&(F=-F);let U,Y=!1;const X=20*Math.abs(t.velocity)*f.freeMode.momentumBounceRatio;let K;if(Ft.minTranslate())f.freeMode.momentumBounce?(F-t.minTranslate()>X&&(F=t.minTranslate()+X),U=t.minTranslate(),Y=!0,z.allowMomentumBounce=!0):F=t.minTranslate(),f.loop&&f.centeredSlides&&(K=!0);else if(f.freeMode.sticky){let c;for(let t=0;t-F){c=t;break}F=Math.abs(k[c]-F){t.loopFix()})),0!==t.velocity){if(c=b?Math.abs((-F-t.translate)/t.velocity):Math.abs((F-t.translate)/t.velocity),f.freeMode.sticky){const h=Math.abs((b?-F:F)-t.translate),p=t.slidesSizesGrid[t.activeIndex];c=h{t&&!t.destroyed&&z.allowMomentumBounce&&(h("momentumBounce"),t.setTransition(f.speed),setTimeout((()=>{t.setTranslate(U),elementTransitionEnd(y,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(h("_freeModeNoMomentumRelease"),t.updateProgress(F),t.setTransition(c),t.setTranslate(F),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,elementTransitionEnd(y,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(F),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(f.freeMode.sticky)return void t.slideToClosest();f.freeMode&&h("_freeModeNoMomentumRelease")}(!f.freeMode.momentum||G>=f.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})}Object.keys(Rt).forEach((t=>{Object.keys(Rt[t]).forEach((c=>{Swiper.prototype[c]=Rt[t][c]}))})),Swiper.use([function Resize({swiper:t,on:c,emit:h}){const p=getWindow();let f=null,y=null;const resizeHandler=()=>{t&&!t.destroyed&&t.initialized&&(h("beforeResize"),h("resize"))},orientationChangeHandler=()=>{t&&!t.destroyed&&t.initialized&&h("orientationchange")};c("init",(()=>{t.params.resizeObserver&&void 0!==p.ResizeObserver?t&&!t.destroyed&&t.initialized&&(f=new ResizeObserver((c=>{y=p.requestAnimationFrame((()=>{const{width:h,height:p}=t;let f=h,y=p;c.forEach((({contentBoxSize:c,contentRect:h,target:p})=>{p&&p!==t.el||(f=h?h.width:(c[0]||c).inlineSize,y=h?h.height:(c[0]||c).blockSize)})),f===h&&y===p||resizeHandler()}))})),f.observe(t.el)):(p.addEventListener("resize",resizeHandler),p.addEventListener("orientationchange",orientationChangeHandler))})),c("destroy",(()=>{y&&p.cancelAnimationFrame(y),f&&f.unobserve&&t.el&&(f.unobserve(t.el),f=null),p.removeEventListener("resize",resizeHandler),p.removeEventListener("orientationchange",orientationChangeHandler)}))},function Observer({swiper:t,extendParams:c,on:h,emit:p}){const f=[],y=getWindow(),attach=(c,h={})=>{const b=new(y.MutationObserver||y.WebkitMutationObserver)((c=>{if(t.__preventObserver__)return;if(1===c.length)return void p("observerUpdate",c[0]);const h=function observerUpdate(){p("observerUpdate",c[0])};y.requestAnimationFrame?y.requestAnimationFrame(h):y.setTimeout(h,0)}));b.observe(c,{attributes:void 0===h.attributes||h.attributes,childList:void 0===h.childList||h.childList,characterData:void 0===h.characterData||h.characterData}),f.push(b)};c({observer:!1,observeParents:!1,observeSlideChildren:!1}),h("init",(()=>{if(t.params.observer){if(t.params.observeParents){const c=function elementParents(t,c){const h=[];let p=t.parentElement;for(;p;)c?p.matches(c)&&h.push(p):h.push(p),p=p.parentElement;return h}(t.el);for(let t=0;t{f.forEach((t=>{t.disconnect()})),f.splice(0,f.length)}))}]);var Ht=Object.freeze({__proto__:null,Accordion:class Accordion extends h{constructor(t){super(t),this.$items=this.$("item"),this.$reveals=this.$("reveal"),this.events={click:{toggle:"toggleAccordion"}}}init(){this.update()}update(){this.getData("open")&&this.$("item")[0].classList.add("is-open"),this.setAccordionHeight(this.$reveals),window.addEventListener("resize",this.onResize=()=>this.setAccordionHeight(this.$reveals))}setAccordionHeight(t){for(let h of t){var c=getHeight(h.querySelector('[data-accordion="content"]'),"full");h.style.maxHeight=c+"px"}}closeAccordions(){for(let t of this.$items)t.classList.remove("is-open")}toggleAccordion(t){const c=t.currentTarget,h=this.parent("item",c);h.classList.contains("is-open")?h.classList.remove("is-open"):(this.$("item.is-open").length>0&&this.$("item.is-open")[0].classList.remove("is-open"),h.classList.add("is-open"),this.call("updateScroll",null,"Scroll"))}destroy(){super.destroy(),window.removeEventListener("resize",this.onResize)}},Baseline:class Baseline extends h{constructor(t){super(t)}init(){this.update()}baselineSet(t){t.style.height="auto",t.style.paddingTop=null;var c=function heightRound(t,c){return Math.round(t/c)*c}(getHeight(t,"full"),getStyleProperty("--baseline"));t.style.height=c+"px",t.style.paddingTop="0"}update(){this.baselineSet(this.el),window.addEventListener("resize",this.onResize=()=>this.baselineSet(this.el))}destroy(){super.destroy(),window.removeEventListener("resize",this.onResize)}},Filter:class Filter extends h{constructor(t){super(t),this.$items=this.$("button"),this.$results=this.$("result"),this.events={click:{button:"getCategory"}}}init(){this.updateResultData()}updateResultData(){for(let t of this.$results){const c=this.$("data",t),h=this.getData("data-category",c[0]);this.setData("category",h,t)}}getCategory(t){const c=t.currentTarget,h=this.getData("category",c);for(let t of this.$items)t.classList.contains("is-selected")&&t.classList.remove("is-selected");c.classList.add("is-selected"),this.filterList(h)}filterList(t){for(let c of this.$results){const h=this.getData("category",c);c.classList.add("is-hidden"),("all"==t||h==t)&&c.classList.remove("is-hidden"),this.call("updateScroll",null,"Scroll")}}destroy(){super.destroy()}},Images:class Images extends h{constructor(t){super(t)}init(){Y(this.el,(function(){f.classList.add("has-images-loaded")}))}destroy(){super.destroy()}},Load:class Load extends h{constructor(t){super(t)}init(){this.swup=new j({plugins:[new Et,new n,new i,new Ge,new nt({className:"swup-progress-bar",transition:300,delay:0,initialValue:.2,hideImmediately:!0}),new ut]}),this.swup.on("contentReplaced",(h=>{1==t.webflow&&c.ready(),this.call("update",h,"app")})),this.swup.on("willReplaceContent",(h=>{1==t.webflow&&c.destroy(),f.classList.remove("has-images-loaded","has-nav-open","ui-light","ui-transparent","has-nav-bg"),this.call("destroy",h,"app")})),this.swup.on("animationOutStart",(()=>{})),0==t.swup.progressbar&&f.classList.add("has-no-progress-bar")}},Modal:class Modal extends h{constructor(t){super(t),this.events={click:{open:"openModal",close:"closeModal"}}}init(){}openModal(){f.classList.add("has-modal-open")}closeModal(){f.classList.remove("has-modal-open")}destroy(){super.destroy()}},Nav:class Nav extends h{constructor(t){super(t),this.$header=this.$("header")[0],this.$menuButton=this.$("toggle")[0],this.$menu=this.$("menu")[0],this.events={click:{toggle:"toggleMenu"}}}init(){this.hasMenuOpened()&&this.hideMenu()}hasMenuOpened(){return f.classList.contains("has-nav-open")}showMenu(){f.classList.add("has-nav-open"),this.$menuButton.setAttribute("aria-expanded",!0)}hideMenu(){f.classList.remove("has-nav-open"),this.$menuButton.setAttribute("aria-expanded",!1)}toggleMenu(){this.hasMenuOpened()?this.hideMenu():this.showMenu()}destroy(){super.destroy()}},Scroll:class Scroll extends h{constructor(t){super(t)}init(){this.scroll=new Me({el:this.el,smooth:t.scroll.smooth||!1,getDirection:!0}),this.scroll.on("scroll",(t=>{document.documentElement.setAttribute("data-direction",t.direction)})),this.scroll.on("scroll",(t=>{t{if((t.includes("ui-")||t.includes("has-"))&&("enter"===c?f.classList.add(t):"exit"===c&&f.classList.remove(t)),t.includes("rev-ui-")||t.includes("rev-has-")){var h=t.replace("rev-","");"exit"===c?f.classList.add(h):"enter"===c&&f.classList.remove(h)}})),this.updateScroll(),window.addEventListener("resize",this.onResize=()=>this.updateScroll())}updateScroll(){this.scroll.update()}update(){this.scroll.init()}destroy(){this.scroll.destroy(),super.destroy(),window.removeEventListener("resize",this.onResize)}},Slider:class Slider extends h{constructor(t){super(t)}init(){this.initSlider()}initSlider(){if(this.el.classList.contains("w-dyn-list")){var c=document.createElement("div");c.className="swiper-scrollbar-wrapper",c.setAttribute("data-slider","scrollbar"),this.el.appendChild(c)}0==t.swiper.mobile&&f.classList.contains("is-mobile")||(this.swiper=new Swiper(this.el,{modules:[Scrollbar,freeMode],preloadImages:!1,grabCursor:!0,scrollbar:{el:".swiper-scrollbar-wrapper",draggable:!0},freeMode:{enabled:t.swiper.freemode||!0,sticky:t.swiper.sticky||!0},lazy:{checkInView:!0,loadPrevNext:!0},slidesPerView:"auto",touchStartPreventDefault:"false",watchSlidesProgress:!0,on:{init:function(){},lock:function(){this.el.classList.add("swiper-lock")},touchStart:function(){},touchEnd:function(){}}}),this.call("updateScroll",null,"Scroll"))}inview(t){t.target==this.el&&this.swiper.lazy.load()}destroy(){super.destroy(),null==!this.swiper&&this.swiper.destroy()}}}),Vt={},Wt={get exports(){return Vt},set exports(t){Vt=t}};!function(t){var c,h;c=k,h=function(){ /*! svg4everybody v2.1.9 | github.com/jonathantneal/svg4everybody */ function embed(t,c,h){if(h){var p=document.createDocumentFragment(),f=!c.hasAttribute("viewBox")&&h.getAttribute("viewBox");f&&c.setAttribute("viewBox",f);for(var y=h.cloneNode(!0);y.childNodes.length;)p.appendChild(y.firstChild);t.appendChild(p)}}function loadreadystatechange(t){t.onreadystatechange=function(){if(4===t.readyState){var c=t._cachedDocument;c||((c=t._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=t.responseText,t._cachedTarget={}),t._embeds.splice(0).map((function(h){var p=t._cachedTarget[h.id];p||(p=t._cachedTarget[h.id]=c.getElementById(h.id)),embed(h.parent,h.svg,p)}))}},t.onreadystatechange()}function getSVGAncestor(t){for(var c=t;"svg"!==c.nodeName.toLowerCase()&&(c=c.parentNode););return c}return function svg4everybody(t){var c,h=Object(t),p=window.top!==window.self;c="polyfill"in h?h.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&p;var f={},y=window.requestAnimationFrame||setTimeout,b=document.getElementsByTagName("use"),k=0;c&&function oninterval(){for(var t=0;t0)&&y(oninterval,67)}()}},t.exports?t.exports=h():c.svg4everybody=h()}(Wt);var Nt=Vt;const Gt=new p({modules:Ht});window.onload=()=>{f.classList.add("has-no-js"),null!=c.env("editor")?function webflowEditor(){f.classList.add("is-editor")}():function init(){(function globals(){Nt();const c=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;window.isMobile=c,window.isMobile&&f.classList.add("is-mobile");const setVh=function(){f.style.setProperty("--vh",.01*window.innerHeight+"px")},setVw=function(){f.style.setProperty("--vw",.01*window.innerWidth+"px")},setAppHeight=function(){f.style.setProperty("--app-height",`${window.innerHeight}px`)},setAppWidth=function(){f.style.setProperty("--app-width",`${window.innerWidth}px`)};let h;const setFontSize=function(){h=1*parseFloat(getComputedStyle(f).fontSize),f.style.setProperty("--font-size",h)};let p,y=t.baseline?t.baseline:.5;const setBaseline=function(){p=y*parseFloat(getComputedStyle(f).fontSize),f.style.setProperty("--baseline",p)};let b=document.querySelector(".nav");const setNavHeight=function(){f.style.setProperty("--nav-height",getHeight(b,"full"))};setVw(),setVh(),setAppHeight(),setAppWidth(),setFontSize(),setBaseline(),setNavHeight(),window.addEventListener("resize",(()=>{setVw(),setVh(),setAppHeight(),setAppWidth(),setFontSize(),setBaseline(),setNavHeight()}))})(),Gt.init(Gt),f.classList.remove("has-no-js"),f.classList.remove("is-loading"),f.classList.add("is-loaded"),f.classList.add("is-ready")}()}}(skope,Webflow); //# sourceMappingURL=app.js.map