PageSourceSearch

https://volumental.com/hubfs/hub_generated/template_assets/1/55924711390/1789472963366/template_app.min.js

js volumental.com collected 2026-10-02 04:25:00 UTC 77,417 bytes, 3 lines download raw bytes

1/*! For license information please see app.js.LICENSE.txt */
2(()=>{var t={778:()=>{function t(){document.querySelectorAll("[data-accordion] > *").forEach(function(t){var e=t.querySelector("[data-accordion-content]");e&&t.style.setProperty("--accordion-height",e.scrollHeight+"px")})}window.addEventListener("load",t),window.addEventListener("resize",t),document.querySelectorAll("[data-accordion]").forEach(function(t){var e=t.querySelectorAll(":scope > *");e.forEach(function(i,n){var s=i.querySelector("[data-accordion-trigger]");s&&s.addEventListener("click",function(n){n.preventDefault(),i.classList.contains("active")?(e.forEach(function(t){return t.classList.remove("active")}),t.removeAttribute("data-accordion-active")):(e.forEach(function(t){return t.classList.remove("active")}),i.classList.add("active"))})})})},153:()=>{function t(){document.querySelectorAll(".dropdown").forEach(function(t){var e=t.querySelector(".sub-menu");e&&t.style.setProperty("--dd-menu-height",e.scrollHeight+"px")})}window.addEventListener("load",t),window.addEventListener("resize",t)},184:()=>{var t=document.querySelectorAll("[data-eyeroll]"),e=window.matchMedia("(hover: hover)").matches,i=function(t){requestAnimationFrame(function(){n(t)})},n=function(e){var i=e.clientX,n=e.clientY;t.forEach(function(t){var e=t.getBoundingClientRect();i>e.left&&i<e.right&&n<e.top?t.dataset.eyeroll="up":i<e.left&&n<e.top?t.dataset.eyeroll="up-left":i<e.left&&n>e.top&&n<e.bottom?t.dataset.eyeroll="left":i<e.left&&n>e.bottom?t.dataset.eyeroll="down-left":i>e.left&&i<e.right&&n>e.bottom?t.dataset.eyeroll="down":i>e.right&&n>e.bottom?t.dataset.eyeroll="down-right":i>e.right&&n>e.top&&n<e.bottom?t.dataset.eyeroll="right":i>e.right&&n<e.top?t.dataset.eyeroll="up-right":t.dataset.eyeroll="front"})};t.length&&(e&&document.addEventListener("mousemove",i),window.matchMedia("(hover: hover)").addEventListener("change",function(t){t.matches?document.addEventListener("mousemove",i):document.removeEventListener("mousemove",i)}))},616:()=>{document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll("video[data-src]"),e=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&0==t.target.src.length&&(t.target.src=t.target.dataset.src,e.unobserve(t.target),t.target.load())})});t.forEach(function(t){e.observe(t)})})},425:()=>{var t=document.getElementById("site-header"),e=t.querySelectorAll("ul.menu > li.dropdown");e.forEach(function(i){var n=i.closest("li");n.querySelector("a").addEventListener("click",function(i){i.preventDefault();var s=n.classList.contains("open");t.classList.remove("dropdown--open"),e.forEach(function(t){return t.classList.remove("open")}),n.classList.toggle("open",!s),t.classList.toggle("dropdown--open",!s)})}),document.addEventListener("click",function(i){t.classList.contains("dropdown--open")&&(Array.from(e).some(function(t){return t.contains(i.target)})||(t.classList.remove("dropdown--open"),e.forEach(function(t){return t.classList.remove("open")})))})},734:()=>{document.querySelectorAll("#text-blocks-sticky").forEach(function(t){var e=t.querySelectorAll('a[href^="#"]'),i=t.querySelector(":scope > div"),n=0;e&&e.forEach(function(t){t.addEventListener("click",function(e){var s=document.querySelector(t.getAttribute("href"));if(s){e.preventDefault(),s.parentElement.style.position="static";var o=s.parentElement.getBoundingClientRect().top;s.parentElement.style.removeProperty("position"),i&&(n=i.getBoundingClientRect().height+i.getBoundingClientRect().top-1),setTimeout(function(){window.scrollTo({top:window.scrollY+o-n,behavior:"smooth"})},10)}})})})},741:(t,e,i)=>{var n,s;!function(){"use strict";void 0===(s="function"==typeof(n=function(){var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}})?n.call(e,i,e,t):n)||(t.exports=s)}(window)},158:function(t,e,i){var n,s;"undefined"!=typeof window&&window,void 0===(s="function"==typeof(n=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?n.call(e,i,e,t):n)||(t.exports=s)},47:(t,e,i)=>{var n,s,o;o=window,n=[i(741)],s=function(t){return function(t,e){"use strict";var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},n=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var s=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){e(t,n)&&s.push(t);for(var i=t.querySelectorAll(n),o=0;o<i.length;o++)s.push(i[o])}else s.push(t)}),s}
2,i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];clearTimeout(t);var e=arguments,o=this;this[s]=setTimeout(function(){n.apply(o,e),delete o[s]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var s=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var o=i.toDashed(n),r="data-"+o,a=document.querySelectorAll("["+r+"]"),l=document.querySelectorAll(".js-"+o),h=i.makeArray(a).concat(i.makeArray(l)),c=r+"-options",d=t.jQuery;h.forEach(function(t){var i,o=t.getAttribute(r)||t.getAttribute(c);try{i=o&&JSON.parse(o)}catch(e){return void(s&&s.error("Error parsing "+r+" on "+t.className+": "+e))}var a=new e(t,i);d&&d.data(t,n,a)})})},i}(o,t)}.apply(e,n),void 0===s||(t.exports=s)},31:function(t,e,i){var n,s,o;s=[i(442),i(47)],n=function(t,e){var i=t.Slide,n=i.prototype.updateTarget;i.prototype.updateTarget=function(){if(n.apply(this,arguments),this.parent.options.fade){var t=this.target-this.x,e=this.cells[0].x;this.cells.forEach(function(i){var n=i.x-e-t;i.renderPosition(n)})}},i.prototype.setOpacity=function(t){this.cells.forEach(function(e){e.element.style.opacity=t})};var s=t.prototype;t.createMethods.push("_createFade"),s._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};var o=s.updateSlides;s.updateSlides=function(){o.apply(this,arguments),this.options.fade&&this.slides.forEach(function(t,e){var i=e==this.selectedIndex?1:0;t.setOpacity(i)},this)},s.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},s.onSettleFade=function(){delete this.didDragEnd,this.options.fade&&(this.selectedSlide.setOpacity(1),this.slides[this.fadeIndex]&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0))},s.onDragEndFade=function(){this.didDragEnd=!0},s.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},s.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach(function(t){t.setOpacity("")}))};var r=s.positionSlider;s.positionSlider=function(){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):r.apply(this,arguments)};var a=s.positionSliderAtSelected;s.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),a.apply(this,arguments)},s.fadeSlides=function(){if(!(this.slides.length<2)){var t=this.getFadeIndexes(),e=this.slides[t.a],i=this.slides[t.b],n=this.wrapDifference(e.target,i.target),s=this.wrapDifference(e.target,-this.x);s/=n,e.setOpacity(1-s),i.setOpacity(s);var o=t.a;this.isDragging&&(o=s>.5?t.a:t.b),null!=this.fadeHideIndex&&this.fadeHideIndex!=o&&this.fadeHideIndex!=t.a&&this.fadeHideIndex!=t.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=o}},s.getFadeIndexes=function(){return this.isDragging||this.didDragEnd?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},s.getFadeDragWrapIndexes=function(){var t=this.slides.map(function(t,e){return this.getSlideDistance(-this.x,e)},this),i=t.map(function(t){return Math.abs(t)}),n=Math.min.apply(Math,i),s=i.indexOf(n),o=t[s],r=this.slides.length,a=o>=0?1:-1;return{a:s,b:e.modulo(s+a,r)}},s.getFadeDragLimitIndexes=function(){for(var t=0,e=0;e<this.slides.length-1;e++){var i=this.slides[e];if(-this.x<i.target)break;t=e}return{a:t,b:t+1}},s.wrapDifference=function(t,e){var i=e-t;if(!this.options.wrapAround)return i;var n=i+this.slideableWidth,s=i-this.slideableWidth;return Math.abs(n)<Math.abs(i)&&(i=n),Math.abs(s)<Math.abs(i)&&(i=s),i};var l=s._getWrapShiftCells;s._getWrapShiftCells=function(){this.options.fade||l.apply(this,arguments)};var h=s.shiftWrapCells;return s.shiftWrapCells=function(){this.options.fade||h.apply(this,arguments)},t},void 0===(o=n.apply(e,s))||(t.exports=o)},597:(t,e,i)=>{var n,s;window,n=[i(217),i(47)],void 0===(s=function(t,e){return function(t,e,
vendor: 31,963 bytes, line 2
2i){"use strict";var s=e.prototype;return s.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var s=this.cells.length;e=void 0===e?s:e;var o=function(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}(i),r=e==s;if(r)this.slider.appendChild(o);else{var a=this.cells[e].element;this.slider.insertBefore(o,a)}if(0===e)this.cells=i.concat(this.cells);else if(r)this.cells=this.cells.concat(i);else{var l=this.cells.splice(e,s-e);this.cells=this.cells.concat(i).concat(l)}this._sizeCells(i),this.cellChange(e,!0)}},s.append=function(t){this.insert(t,this.cells.length)},s.prepend=function(t){this.insert(t,0)},s.remove=function(t){var e=this.getCells(t);if(e&&e.length){var n=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);n=Math.min(e,n),i.removeFrom(this.cells,t)},this),this.cellChange(n,!0)}},s.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},s.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}(0,t,e)}.apply(e,n))||(t.exports=s)},880:(t,e,i)=>{var n,s;window,n=[i(47)],void 0===(s=function(t){return function(t,e){"use strict";var i={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;requestAnimationFrame(function(){e.animate()})}},positionSlider:function(){var t=this.x;this.options.wrapAround&&this.cells.length>1&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"},dispatchScrollEvent:function(){var t=this.slides[0];if(t){var e=-this.x-t.target,i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])}},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){!this.isPointerDown&&Math.round(100*this.x)==Math.round(100*t)&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},_shiftCells:function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n],o=e>0?i:0;s.wrapShift(o),e-=s.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x-this.velocity;this.applyForce(t)}},applySelectedAttraction:function(){if((!this.isDraggable||!this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(t)}}};return i}(0,t)}.apply(e,n))||(t.exports=s)},229:(t,e,i)=>{var n,s;window,n=[i(131)],void 0===(s=function(t){return function(t,e){"use strict";function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0,this.element.style[this.parent.originSide]=0},n.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="",this.element.style.transform="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e="left"===this.parent.originSide?1:-1,i=this.parent.options.percentPosition?t*e*(this.parent.size.innerWidth/this.size.width):t*e;this.element.style.transform="translateX("+this.parent.getPositionValue(i)+")"},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}(0,t)}.apply(e,n))||(t.exports=s)},690:(t,e,i)=>{var n,s,o;o=window,n=[i(217),i(842),i(47)],s=function(t,e,i){return function(t,e,i,n){"use strict";n.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag");var s=e.prototype;n.extend(s,i.prototype),s._touchActionValue="pan-y",s._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable)},s.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},s.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},s.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},s.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},s.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},s._uiChangeDrag=function(){delete this.isFreeScrolling},s.pointerDown=function(e,i){this.isDraggable?this.okayPointerDown(e)&&(this._pointerDownPreventDefault(e),this.pointerDownFocus(e),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=r(),t.addEventListener("scroll",this),this._pointerDownDefault(e,i)):this._pointerDownDefault(e,i)},s._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var o={INPUT:!0,TEXTAREA:!0,SELECT:!0};function r(){return{x:t.pageXOffset,y:t.pageYOffset}}return s.pointerDownFocus=function(t){o[t.target.nodeName]||this.focus()},s._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,n=o[t.target.nodeName];e||i||n||t.preventDefault()},s.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},s.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},s.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},s.dragStart=function(e,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[i]))},s.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},s.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x%=this.slideableWidth);var s=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);s=s>o?.5*(s+o):s;var r=Math.min(-this.getLastSlide().target,this.dragStartPosition);s=s<r?.5*(s+r):s}this.dragX=s,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])}},s.dragEnd=function(t,e){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])}},s.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1);return i.distance<n.distance?i.index:n.index},s._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,s=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,s)&&(n+=i,s=e,null!==(e=this.getSlideDistance(-t,n)));)e=Math.abs(e);return{distance:s,index:n-i}},s.getSlideDistance=function(t,e){var i=this.slides.length,s=this.options.wrapAround&&i>1,o=s?n.modulo(e,i):e,r=this.slides[o];if(!r)return null;var a=s?this.slideableWidth*Math.floor(e/i):0;return t-(r.target+a)},s.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},s.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])},s.onscroll=function(){var t=r(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}(o,t,e,i)}.apply(e,n),void 0===s||(t.exports=s)},217:(t,e,i)=>{var n,s,o;o=window,n=[i(158),i(131),i(47),i(229),i(714),i(880)],s=function(t,e,i,n,s,r){return function(t,e,i,n,s,o,r){"use strict";var a=t.jQuery,l=t.getComputedStyle,h=t.console;function c(t,e){for(t=n.makeArray(t);t.length;)e.appendChild(t.shift())}var d=0,u={};function p(t,e){var i=n.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var s=u[this.element.flickityGUID];return s&&s.option(e),s}a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),this._create()}else h&&h.error("Bad element for Flickity: "+(i||t))}p.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},p.createMethods=[];var f=p.prototype;n.extend(f,e.prototype),f._create=function(){var e=this.guid=++d;for(var i in this.element.flickityGUID=e,u[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this),this.options.on){var n=this.options.on[i];this.on(i,n)}p.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},f.option=function(t){n.extend(this.options,t)},f.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),c(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},f._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},f._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},f.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},f._makeCells=function(t){return this._filterFindCellElements(t).map(function(t){return new s(t,this)},this)},f.getLastCell=function(){return this.cells[this.cells.length-1]},f.getLastSlide=function(){return this.slides[this.slides.length-1]},f.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},f._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,s=t;s<n;s++){var o=this.cells[s];o.setPosition(e),e+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},f._sizeCells=function(t){t.forEach(function(t){t.getSize()})},f.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new o(this);this.slides.push(t);var e="left"==this.originSide?"marginRight":"marginLeft",i=this._getCanCellFit();this.cells.forEach(function(n,s){if(t.cells.length){var r=t.outerWidth-t.firstMargin+(n.size.outerWidth-n.size[e]);i.call(this,s,r)||(t.updateTarget(),t=new o(this),this.slides.push(t)),t.addCell(n)}else t.addCell(n)},this),t.updateTarget(),this.updateSelectedSlide()}},f._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},f._init=f.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},f.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var v={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return f.setCellAlign=function(){var t=v[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},f.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},f._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},f._getGapCells=function(t,e,i){for(var n=[];t>0;){var s=this.cells[e];if(!s)break;n.push(s),e+=i,t-=s.size.outerWidth}return n},f._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],s=n<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[e],r=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){s?t.target=n*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,r))},this)}},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),a&&this.$element){var s=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var o=new a.Event(e);o.type=t,s=o}this.$element.trigger(s,i)}},f.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=n.modulo(t,this.slides.length)),this.slides[t])){var s=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=s&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},f._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&e>1))return t;var i=n.modulo(t,e),s=Math.abs(i-this.selectedIndex),o=Math.abs(i+e-this.selectedIndex),r=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&o<s?t+=e:!this.isDragSelect&&r<s&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},f.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},f.next=function(t,e){this.select(this.selectedIndex+1,t,e)},f.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},f.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},f.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(t&&"string"==typeof t&&this.queryCell(t))return void this.selectCell(t,!1,!0);var e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)}},f.selectCell=function(t,e,i){var n=this.queryCell(t);if(n){var s=this.getCellSlideIndex(n);this.select(s,e,i)}},f.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++)if(-1!=this.slides[e].cells.indexOf(t))return e},f.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},f.getCells=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getCell(t);i&&e.push(i)},this),e},f.getCellElements=function(){return this.cells.map(function(t){return t.element})},f.getParentCell=function(t){return this.getCell(t)||(t=n.getParent(t,".flickity-slider > *"),this.getCell(t))},f.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var s=[],o=e-t;o<=e+t;o++){var r=this.options.wrapAround?n.modulo(o,i):o,a=this.slides[r];a&&(s=s.concat(a.getCellElements()))}return s},f.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#.]?[\d/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},f.uiChange=function(){this.emitEvent("uiChange")},f.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},f.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(p,"onresize",150),f.resize=function(){if(this.isActive&&!this.isAnimating&&!this.isDragging){this.getSize(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},f.watchCSS=function(){this.options.watchCSS&&(-1!=l(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},f.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=p.keyboardHandlers[t.keyCode];i&&i.call(this)}},p.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},f.focus=function(){var e=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e&&t.scrollTo(t.pageXOffset,e)},f.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),c(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},f.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),a&&this.$element&&a.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete u[this.guid]},n.extend(f,r),p.data=function(t){var e=(t=n.getQueryElement(t))&&t.flickityGUID;return e&&u[e]},n.htmlInit(p,"flickity"),a&&a.bridget&&a.bridget("flickity",p),p.setJQuery=function(t){a=t},p.Cell=s,p.Slide=o,p}(o,t,e,i,n,s,r)}.apply(e,n),void 0===s||(t.exports=s)},442:(t,e,i)=>{var n,s,o;window,s=[i(217),i(690),i(410),i(573),i(516),i(597),i(227)],void 0===(o="function"==typeof(n=function(t){return t})?n.apply(e,s):n)||(t.exports=o)},227:(t,e,i)=>{var n,s;window,n=[i(217),i(47)],void 0===(s=function(t,e){return function(t,e,i){"use strict";e.createMethods.push("_createLazyload");var n=e.prototype;function s(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),n=t.getAttribute("data-flickity-lazyload-src"),s=t.getAttribute("data-flickity-lazyload-srcset");if(e||n||s)return[t]}var r=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return i.makeArray(r)}function o(t,e){this.img=t,this.flickity=e,this.load()}return n._createLazyload=function(){this.on("select",this.lazyLoad)},n.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),n=[];i.forEach(function(t){var e=s(t);n=n.concat(e)}),n.forEach(function(t){new o(t,this)},this)}},o.prototype.handleEvent=i.handleEvent,o.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},o.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},o.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},o.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=o,e}(0,t,e)}.apply(e,n))||(t.exports=s)},573:(t,e,i)=>{var n,s;window,n=[i(217),i(704),i(47)],void 0===(s=function(t,e,i){return function(t,e,i,n){"use strict";function s(t){this.parent=t,this._create()}s.prototype=Object.create(i.prototype),s.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},s.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},s.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,s=n+t,o=n;o<s;o++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(o+1)),e.appendChild(r),i.push(r)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},s.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(function(t){this.holder.removeChild(t)},this)},s.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},s.prototype.onTap=s.prototype.onClick=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},s.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=s,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=s,e}(0,t,e,i)}.apply(e,n))||(t.exports=s)},516:(t,e,i)=>{var n,s;window,n=[i(158),i(47),i(217)],void 0===(s=function(t,e,i){return function(t,e,i){"use strict";function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var s=i.prototype;return s._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}(t,e,i)}.apply(e,n))||(t.exports=s)},410:(t,e,i)=>{var n,s;window,n=[i(217),i(704),i(47)],void 0===(s=function(t,e,i){return function(t,e,i,n){"use strict";var s="http://www.w3.org/2000/svg";function o(t,e){this.direction=t,this.parent=e,this._create()}o.prototype=Object.create(i.prototype),o.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var t=document.createElementNS(s,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(s,"path"),i=function(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50  L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},o.prototype.handleEvent=n.handleEvent,o.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e;this[this.parent.selectedIndex==i?"disable":"enable"]()}},o.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var a=e.prototype;return a._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},a.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},a.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=o,e}(0,t,e,i)}.apply(e,n))||(t.exports=s)},714:(t,e,i)=>{var n,s;window,void 0===(s="function"==typeof(n=function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]}
2,e.select=function(){this.cells.forEach(function(t){t.select()})},e.unselect=function(){this.cells.forEach(function(t){t.unselect()})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t})?n.call(e,i,e,t):n)||(t.exports=s)},131:(t,e,i)=>{var n,s;window,void 0===(s="function"==typeof(n=function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var i="undefined"==typeof console?function(){}:function(t){console.error(t)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],s=n.length;function r(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}var a,l=!1;function h(){if(!l){l=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=r(e);a=200==Math.round(t(n.width)),c.isBoxSizeOuter=a,i.removeChild(e)}}function c(e){if(h(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var i=r(e);if("none"==i.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<s;e++)t[n[e]]=0;return t}();var l={};l.width=e.offsetWidth,l.height=e.offsetHeight;for(var c=l.isBorderBox="border-box"==i.boxSizing,d=0;d<s;d++){var u=n[d],p=i[u],f=parseFloat(p);l[u]=isNaN(f)?0:f}var v=l.paddingLeft+l.paddingRight,g=l.paddingTop+l.paddingBottom,m=l.marginLeft+l.marginRight,y=l.marginTop+l.marginBottom,b=l.borderLeftWidth+l.borderRightWidth,w=l.borderTopWidth+l.borderBottomWidth,E=c&&a,S=t(i.width);!1!==S&&(l.width=S+(E?0:v+b));var x=t(i.height);return!1!==x&&(l.height=x+(E?0:g+w)),l.innerWidth=l.width-(v+b),l.innerHe
2ight=l.height-(g+w),l.outerWidth=l.width+m,l.outerHeight=l.height+y,l}}return c})?n.call(e,i,e,t):n)||(t.exports=s)},842:(t,e,i)=>{var n,s,o;o=window,n=[i(704)],s=function(t){return function(t,e){"use strict";function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){for(var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",n=e?this._touchActionValue:"",s=0;s<this.handles.length;s++){var o=this.handles[s];this._bindStartEvent(o,e),o[i]("click",this),t.PointerEvent&&(o.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var s={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t){var e=s[t.target.nodeName],i=o[t.target.type],n=!e||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0,this.isPreventing
2Clicks=!0,this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}(o,t)}.apply(e,n),void 0===s||(t.exports=s)},704:(t,e,i)=>{var n,s,o;o=window,n=[i(158)],s=function(t){return function(t,e){"use strict";function n(){}var s=n.prototype=Object.create(e.prototype);s.bindStartEvent=function(t){this._bindStartEvent(t,!0)},s.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},s._bindStartEvent=function(e,i){var n=(i=void 0===i||i)?"addEventListener":"removeEventListener",s="mousedown";"ontouchstart"in t?s="touchstart":t.PointerEvent&&(s="pointerdown"),e[n](s,this)},s.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},s.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},s.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},s.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},s.onpointerdown=function(t){this._pointerDown(t,t)},s._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},s.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return s._bindPostStartEvents=function(e){if(e){var i=o[e.type];i.forEach(function(e){t.addEventListener(e,this)},this),this._boundPointerEvents=i}},s._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e){t.removeEventListener(e,this)},this),delete this._boundPointerEvents)},s.onmousemove=function(t){this._pointerMove(t,t)},s.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},s.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},s._pointerMove=function(t,e){this.pointerMove(t,e)},s.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},s.onmouseup=function(t){this._pointerUp(t,t)},s.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},s.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},s._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},s.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},s._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},s._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},s.pointerDone=function(){},s.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},s.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},s._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},s.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},n}(o,t)}.apply(e,n),void 0===s||(t.exports=s)}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.wrap=t||document.body}var i,n;return i=e,(n=[{key:"generateOutline",value:function(){var t=this.wrap.querySelector("h1, h2, h3, h4, h5, h6");if(t){var e=t.tagName.toLowerCase(),i=this.wrap.querySelectorAll(e);return this.generate(i)}return null}},{key:"generate",value:function(t,e){var i=this,n=e||0,s="<ol>";return t.forEach(function(t,e){var o=parseInt(t.tagName.substr(1)),r=t.innerText,a=r.replace(/^[^a-z]+|[^\w:.-]+/gi,"").toLowerCase(),l="document-outline-".concat(a,"-").concat(o,"-").concat(e,"-").concat(n);t.id=l,s+='<li><a href="#'.concat(l,'">').concat(r,"</a>");var h=i.nextUntil(t,"h"+o,"h"+(o+1));h.length&&(s+=i.generate(h,e)),s+="</li>"}),s+="</ol>"}}
2,{key:"nextUntil",value:function(t,e,i){var n=[];for(t=t.nextElementSibling;t&&!t.matches(e);)t.matches(i)&&n.push(t),t=t.nextElementSibling;return n}}])&&t(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),e}();function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.config=Object.assign({threshold:0,adjustThreshold:!0,rootMargin:"0% 0% -15%",callback:function(t){t.isIntersecting?t.target.classList.add("in-view","was-in-view"):t.target.classList.remove("in-view")}},i)}var e,i;return e=t,(i=[{key:"mount",value:function(){var t=this;if(Array.from(this.el.children).forEach(function(t,e){return t.style.setProperty("--scrollspy-el-index",e)}),0!==this.config.threshold&&this.config.adjustThreshold){var e=this.el.getBoundingClientRect().height,i=this.config.threshold;e>window.innerHeight*this.config.threshold&&(i=window.innerHeight*this.config.threshold/e*this.config.threshold,this.config.threshold=i)}new IntersectionObserver(function(e){return e.forEach(function(e){return t.config.callback(e)})},this.config).observe(this.el)}}])&&n(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.config=Object.assign({hash:this.el.getAttribute("href"),defaultText:this.el.innerText,toggleText:this.el.innerText},i)}var e,i;return e=t,(i=[{key:"mount",value:function(){var t=this;this.config.hash===window.location.hash&&this.onAdd(),this.el.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),t.toggleHash()})}},{key:"toggleHash",value:function(){if(this.config.hash===window.location.hash){var t=window.pageYOffset;window.location.hash="#",window.scrollTo({top:t}),"replaceState"in window.history&&window.history.replaceState("",document.title,window.location.pathname+window.location.search),this.onRemove()}else{var e=window.pageYOffset;window.location.hash=this.config.hash,window.scrollTo({top:e}),this.onAdd()}}},{key:"onAdd",value:function(){this.config.defaultText!==this.config.toggleText&&(this.el.innerText=this.config.toggleText),document.documentElement.classList.add("hash-active","hash-active-"+this.config.hash.substr(1))}},{key:"onRemove",value:function(){this.config.defaultText!==this.config.toggleText&&(this.el.innerText=this.config.defaultText),document.documentElement.classList.remove("hash-active","hash-active-"+this.config.hash.substr(1))}}])&&o(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e,i){return e&&l(t.prototype,e),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var c=function(){function t(e,i){a(this,t),this.el=e,this.config=Object.assign({target:this.el.getAttribute("href")?document.getElementById(this.el.getAttribute("href").substr(1)):null,templateDialog:null,preventDefault:!0},i),this.openEvent=new CustomEvent("sleek-ui/dialog/trigger-open",{bubbles:!0,detail:{dialog:this.config.target,data:this.el.dataset.dialogData||null}})}return h(t,[{key:"mount",value:function(){var t=this;this.config.target&&this.el.addEventListener("click",function(e){t.config.preventDefault&&e.preventDefault(),t.el.dispatchEvent(t.openEvent),"script"===t.config.target.nodeName.toLowerCase()||"template"===t.config.target.nodeName.toLowerCase()?t.config.templateDialog?(t.config.templateDialog.className="dialog dialog--no-transition "+t.config.target.className,t.config.templateDialog.innerHTML=t.config.target.innerHTML+'<a class="dialog-close-button" role="button">&times;</a>',setTimeout(function(){t.config.templateDialog.classList.remove("dialog--no-transition"),t.config.templateDialog.sleekDialog.open()},50)):console.error("DialogTrigger points to a script or template but no template dialog element is specified"):t.config.target.sleekDialog.open()})}}]),t}(),d=function(){function t(e,i){a(this,t),this.el=e,this.config=Object.assign({},i),this.openEvent=new CustomEvent("sleek-ui/dialog/open",{bubbles:!0,detail:{dialog:this.el}}
2),this.closeEvent=new CustomEvent("sleek-ui/dialog/close",{bubbles:!0,detail:{dialog:this.el}})}return h(t,[{key:"mount",value:function(){var t=this;this.el.sleekDialog={open:function(){document.documentElement.classList.add("dialog-open"),document.documentElement.classList.add("dialog-open--"+t.el.id),t.el.classList.add("open"),t.el.dispatchEvent(t.openEvent)},close:function(){document.documentElement.classList.remove("dialog-open"),document.documentElement.classList.remove("dialog-open--"+t.el.id),t.el.classList.remove("open"),t.el.dispatchEvent(t.closeEvent)},isOpen:function(){return t.el.classList.contains("open")},isClosed:function(){return!t.el.classList.contains("open")},getStatus:function(){return t.el.classList.contains("open")?"open":"close"}};var e=document.createElement("div");e.classList.add("dialog-backdrop"),this.el.parentNode.insertBefore(e,this.el.nextSibling),e.addEventListener("click",function(i){i.target===e&&t.el.sleekDialog.close()});var i=document.createElement("a");i.innerHTML="&times;",i.classList.add("dialog-close-button"),i.setAttribute("role","button"),this.el.appendChild(i),this.el.addEventListener("click",function(e){e.target.classList.contains("dialog-close-button")&&(e.preventDefault(),t.el.sleekDialog.close())}),document.addEventListener("keydown",function(e){27===e.keyCode&&t.el.sleekDialog.close()})}}]),t}(),u=Object.defineProperty,p=Object.defineProperties,f=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,y=(t,e,i)=>e in t?u(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,b=(t,e,i)=>new Promise((n,s)=>{var o=t=>{try{a(i.next(t))}catch(t){s(t)}},r=t=>{try{a(i.throw(t))}catch(t){s(t)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,r);a((i=i.apply(t,e)).next())}),w=class extends Error{constructor(t){t||(t="Whoops! Something went wrong."),super(`${t}`),Object.setPrototypeOf(this,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(this,w)}get name(){return this.constructor.name}},E=class extends w{get name(){return"CanvasScrollClipError"}},S=class extends w{log(t){console.log(`${this.name}: ${t}`)}warn(t){console.warn(`${this.name}: ${t}`)}},x=class extends S{constructor(t){super(t),this.warn(t)}},C=/\d+(?!.*\d+)/,P={viewport:{resize:"viewport.resize",scroll:"viewport.scroll"},images:{progress:"images.progress",loaded:"images.loaded"}},k=Object.values(P).map(t=>Object.values(t)).flat(),D=(t,e=0)=>{let i;return(...n)=>{i&&clearTimeout(i),i=setTimeout(()=>t(...n),e)}};function A(){return window.pageYOffset||document.documentElement.scrollTop}function _(t,e=A()){return(e-t.top)/(t.bottom-t.screen.height-t.top)}var T=class{constructor(){if(!window)throw new E("window is not found.");if(!document)throw new E("document is not found.");this.events=new class{constructor(){this.on=(t,e)=>{k.includes(t)||new x(`Event ['${t}'] is not supported.`);const i=this.observers.get(t);i?i.push(e):this.observers.set(t,[e])},this.remove=(t,e)=>{const i=this.observers.get(t);if(i)for(let t=0;t<i.length;t++)if(i[t]===e)return void i.splice(t,1)},this.emit=(t,...e)=>{const i=this.observers.get(t);if(i)for(let t=0;t<i.length;t++)i[t](...e)},this.observers=new Map}},this.screen=this.getScreenViewport(),this.bind()}bind(){window.addEventListener("resize",D(this.handleResize.bind(this))),window.addEventListener("scroll",D(this.handleScroll.bind(this))),this.events.on(P.viewport.resize,t=>{this.screen=t})}getScreenViewport(){var t,e;return{width:window.innerWidth||(null==(t=document.documentElement)?void 0:t.clientWidth),height:window.innerHeight||(null==(e=
2document.documentElement)?void 0:e.clientHeight)}}handleResize(){this.events.emit(P.viewport.resize,this.getScreenViewport())}handleScroll(){const t=window.pageYOffset||document.documentElement.scrollTop;this.events.emit(P.viewport.scroll,t)}},O=class{constructor({framePath:t,frameCount:e}){if(!(null==t?void 0:t.length))throw new E("Frame path is not defined.");if(!e)throw new E("Frame count is not defined.");this.count=parseInt(e),this.path=function(t){const e=t.split("/");return e.pop(),`${e.join("/")}/`}(t),this.image=function(t,e){const i=t.split("/").pop()||"",n=function(t){const e=t.split(".").pop()||" ";if(!["jpg","jpeg","png","webp"].includes(e))throw new E(`Image with extension ['${e}'] is not supported.`);return`.${e}`}(i),s=function(t){const e=t.match(C),i=e&&null!==e[0]?e[0]:"";if(i.length<2)throw new E('Bad image sequence format. Should start with 0 and be longer than 2 numbers, f.e. "frame_01.jpg"');return i}(i);if(e.toString().length>s.length)throw new E("Leading zeros in first frame path has to be more than the frame count and sequence at the end.");return{start:i.slice(0,i.indexOf(s)),sequence:parseInt(s),padStart:s.length,ending:i.slice(i.indexOf(s)+s.length),extension:n}}(t,this.count)}},M=class extends T{constructor(t){super(),this.scrollArea=0,this.inputs=t,this.identifier=t.identifier||"csc",this.frame=new O(t),t.scrollArea&&(this.scrollArea=parseInt(t.scrollArea,10))}set setScrollableArea(t){this.scrollArea||(this.scrollArea=parseInt(t))}},z=class extends M{constructor(t,e){if(super(e),this.loading=!0,this.images=[],!t)throw new E("HTML element is not defined.");this._container=t,this._container.innerHTML="",this._container.classList.add(`${this.identifier}-container`),this._container.style.setProperty("height",`${this.scrollArea}px`),this._canvas=document.createElement("canvas"),this._canvas.classList.add(`${this.identifier}-canvas`),this._canvas.style.setProperty("display","block"),this._canvas.style.setProperty("max-height","100%"),this._canvas.style.setProperty("max-width","100%"),this._canvas.style.setProperty("object-fit","cover"),this._canvas.style.setProperty("height","100vh"),this._canvas.style.setProperty("width","100%"),this._wrapper=document.createElement("div"),this._wrapper.classList.add(this.identifier),this._wrapper.style.setProperty("position","sticky"),this._wrapper.style.setProperty("top","0"),this._wrapper.appendChild(this._canvas),this._container.appendChild(this._wrapper),this.context=this._canvas.getContext("2d"),this.viewport={width:this.screen.width,height:this.screen.height,top:0,bottom:this.screen.height,screen:this.screen},this.events.on(P.viewport.scroll,t=>{this.loading||this.drawImageByScrollFraction(_(this.viewport,t))}),this.preload()}preload(){return b(this,null,function*(){const t={total:this.frame.count,loaded:0},e=function(t){return new Array(t.count).fill(0).map((e,i)=>function(t){return b(this,null,function*(){return new Promise((e,i)=>{const n=new Image;n.onload=()=>{e(n)},n.src=t,n.onerror=()=>{i(new E(`Image with name '...${t.slice(-20)}' was not found.`))}})})}(function(t,e=1){return[t.path,t.image.start,e.toString().padStart(t.image.padStart,"0"),t.image.ending].join("")}(t,i+1)))}(this.frame).map(e=>e.then(e=>(t.loaded=++t.loaded,this.events.emit(P.images.progress,t),e)));return yield Promise.all(e).then(t=>{var e,i,n,s;this.images=t,this.viewport=(n=((t,e)=>{for(var i in e||(e={}))g.call(e,i)&&y(t,i,e[i]);if(v)for(var i of v(e))m.call(e,i)&&y(t,i,e[i]);return t})({},this.viewport),s={width:null==(e=this.images[0])?void 0:e.width,height:null==(i=this.images[0])?void 0:i.height,top:this._container.getBoundingClientRect().top+A()||0,bottom:this._container.getBoundingClientRect().bottom+A()||this.screen.height},p(n,f(s))),this._canvas.width=this.viewport.width,this._canvas.height=this.viewport.height,this.setScrollableArea=2*this.viewport.height,this._container.style.setProperty("height",`${this.scrollArea}px`),this.drawImageByScrollFraction(_(this.viewport)),this._container.classList.add(`${this.identifier}--loaded`),this.loading=!1,this.events.emit(P.images.loaded)})})}drawImage(t){t&&(this.context.clearRect(0,0,this.viewport.width,this.viewport.height),this.context.drawImage(t,0,0,this.viewport.width,this.viewport.height))}drawImageByFrameNumber(t=0){this.drawImage(this.images[t])}drawImageByScrollFraction(t){let e;e=Math.min(this.frame.count-1,Math.ceil(t*this.frame.count)),e<=0&&(e=0),this.drawImageByFrameNumber(e)}},F=class extends z{constructor(t,e,i){super(t,e),this.callback=i||(()=>{}),this.init()}init(){this.events.on(P.images.loaded,()=>{D(this.callback())})}},j=i(442),W=i.n(j);function H(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var q=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.config=Object.assign({wrapAround:!0,cellAlign:"left"},i)}var e,i;return e=t,(i=[{key:"mount",value:function(){var t=this;this.el.flickity=new(W())(this.el,this.config),this.config.tickerSpeed&&this.tickerInit(),this.el.flickity.on("change",function(){t.el.flickity.cells.forEac
2h(function(e){var i=e.element.querySelector("video");i&&(e.element==t.el.flickity.selectedElement?i.play():i.pause())})})}},{key:"tickerInit",value:function(){var t=this;this.tickerPaused=!1,this.tickerUpdate(),this.config.pauseAutoPlayOnHover&&1==this.config.pauseAutoPlayOnHover&&(this.el.addEventListener("mouseenter",function(){return t.tickerPause()},!1),this.el.addEventListener("focusin",function(){return t.tickerPause()},!1),this.el.addEventListener("mouseleave",function(){return t.tickerPlay()},!1),this.el.addEventListener("focusout",function(){return t.tickerPlay()},!1)),this.el.flickity.on("dragStart",function(){t.tickerPaused=!0}),new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting>0?t.tickerPlay():t.tickerPause()})}).observe(this.el)}},{key:"tickerUpdate",value:function(){var t=this;this.tickerPaused||(this.el.flickity.slides&&(this.el.flickity.x=(this.el.flickity.x-this.config.tickerSpeed/1e3)%this.el.flickity.slideableWidth,this.el.flickity.selectedIndex=this.el.flickity.dragEndRestingSelect(),this.el.flickity.updateSelectedSlide(),this.el.flickity.settle(this.el.flickity.x)),window.requestAnimationFrame(function(){return t.tickerUpdate()}))}},{key:"tickerPause",value:function(){this.tickerPaused=!0}},{key:"tickerPlay",value:function(){var t=this;this.tickerPaused&&(this.tickerPaused=!1,window.requestAnimationFrame(function(){return t.tickerUpdate()}))}}])&&H(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function N(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i(31);var B=function(){function t(e,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.finalValue=i,this.config=Object.assign({duration:2e3},n)}var e,i;return e=t,(i=[{key:"mount",value:function(){var t=this,e=new IntersectionObserver(function(i){i.forEach(function(i){i.isIntersecting&&(e.unobserve(i.target),t.countUp())})});e.observe(this.el)}},{key:"easeOutCubic",value:function(t){var e=t-1;return e*e*e+1}},{key:"countUp",value:function(){var t=this,e=performance.now();this.el.innerHTML=0;var i=setInterval(function(){var n=(performance.now()-e)/t.config.duration,s=Math.floor(t.easeOutCubic(n)*t.finalValue);t.el.innerText=s,n>=1&&clearInterval(i)},50)}}])&&N(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function R(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,s,o=[],r=!0,a=!1;try{for(i=i.call(t);!(r=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);r=!0);}catch(t){a=!0,s=t}finally{try{r||null==i.return||i.return()}finally{if(a)throw s}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return V(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?V(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function U(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var X=function(){function t(e,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.data=i,this.config=Object.assign({api:!0,buildHTML:!0},n),this.ytPlayStates={"??":"unknown","-1":"unstarted",0:"ended",1:"playing",2:"paused",3:"buffering",5:"video-cued"},this.readyEvent=new CustomEvent("sleek-ui/video-embed/ready",{bubbles:!0})}var e,i;return e=t,i=[{key:"mount",value:function(){var t=this;if(this.config.buildHTML?this.buildHTML():this.wrapEl=this.el,this.config.api)if(this.el.dataset.src&&this.el.setAttribute("src",this.el.dataset.src),"YouTube"===this.data.provider_name){var e=this.el.getAttribute("src");if(-1===e.indexOf("enablejsapi=1")&&(-1===e.indexOf("?")?e+="?enablejsapi=1":e+="&enablejsapi=1",this.el.setAttribute("src",e)),"YT"in window)this.initYouTube();else{var i=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){i&&i(),t.initYouTube()},this.addScript("https://www.youtube.com/iframe_api")}}else"Vimeo"===this.data.provider_name&&this.addVimeoScript("https://player.vimeo.com/api/player.js").then(function(){return t.initVimeo()});else this.toggleSrc(),this.el.dispatchEvent(this.readyEvent)}},{key:"buildHTML",value:function(){var t,e,i;
2this.wrapEl=document.createElement("figure"),this.wrapEl.classList.add("video-embed","video-embed--"+this.data.provider_name),(t=document.createElement("div")).classList.add("embed"),this.thumbnailEl=document.createElement("div"),this.thumbnailEl.classList.add("thumbnail"),this.thumbnailEl.appendChild(this.buildThumbnailHTML()),this.data.title&&((i=document.createElement("figcaption")).innerHTML=this.data.title),this.el.parentNode.matches("div.video")?(this.el.parentNode.parentNode.insertBefore(this.wrapEl,this.el.parentNode),t.appendChild(this.el.parentNode)):((e=document.createElement("div")).classList.add("video"),this.el.parentNode.insertBefore(this.wrapEl,this.el),e.appendChild(this.el),t.appendChild(e)),t.appendChild(this.thumbnailEl),this.wrapEl.appendChild(t),this.data.title&&this.wrapEl.appendChild(i)}},{key:"buildThumbnailHTML",value:function(){var t=document.createElement("img");return t.setAttribute("loading","lazy"),t.src=this.data.thumbnail_url||"https://placehold.it/800x600?text=N/A",this.data.thumbnail_url.includes("youtu")&&t.setAttribute("srcset","".concat(this.data.thumbnail_url.replace("hqdefault.jpg","mqdefault.jpg")," 320w,\n\t\t  ").concat(this.data.thumbnail_url.replace("hqdefault.jpg","sddefault.jpg")," 640w,\n\t\t  ").concat(this.data.thumbnail_url.replace("hqdefault.jpg","maxresdefault.jpg")," 1280w")),this.data.thumbnail_url.includes("vimeo")&&t.setAttribute("srcset","".concat(this.data.thumbnail_url.replace("_295x166","_320x180")," 320w,\n\t\t  ").concat(this.data.thumbnail_url.replace("_295x166","_640x360")," 640w,\n\t\t  ").concat(this.data.thumbnail_url.replace("_295x166","_1280x720")," 1280w")),t}},{key:"initYouTube",value:function(){var t=this;this.ytPlayer=new YT.Player(this.el,{events:{onReady:function(e){t.el.dispatchEvent(t.readyEvent),t.wrapEl.classList.add("video-embed--state-"+(t.ytPlayStates[e.data]||"unknown"))},onStateChange:function(e){for(var i=0,n=Object.entries(t.ytPlayStates);i<n.length;i++){var s=R(n[i],2),o=(s[0],s[1]);t.wrapEl.classList.remove("video-embed--state-"+o)}t.wrapEl.classList.add("video-embed--state-"+(t.ytPlayStates[e.data]||"unknown"))}}}),this.thumbnailEl&&this.thumbnailEl.addEventListener("click",function(e){t.play()})}},{key:"initVimeo",value:function(){var t=this;this.vimeoPlayer=new Vimeo.Player(this.el),this.vimeoPlayer.ready().then(function(){return t.el.dispatchEvent(t.readyEvent)}),this.vimeoPlayer.on("play",function(){t.wrapEl.classList.add("video-embed--state-playing")}),this.vimeoPlayer.on("ended",function(){t.wrapEl.classList.remove("video-embed--state-playing")}),this.vimeoPlayer.on("pause",function(){t.wrapEl.classList.remove("video-embed--state-playing")}),this.thumbnailEl&&this.thumbnailEl.addEventListener("click",function(e){t.play()})}},{key:"play",value:function(){this.vimeoPlayer?this.vimeoPlayer.play():this.ytPlayer&&this.ytPlayer.playVideo()}},{key:"pause",value:function(){this.vimeoPlayer?this.vimeoPlayer.pause():this.ytPlayer&&this.ytPlayer.pauseVideo()}},{key:"addScript",value:function(t){return new Promise(function(e,i){var n=document.querySelector('script[src="'+t+'"]');if(n)e(n);else{var s=document.createElement("script");s.src=t,document.body.appendChild(s),s.addEventListener("load",function(){return e(s)})}})}},{key:"addVimeoScript",value:function(t){return new Promise(function(e,i){var n=document.querySelector('script[src="'+t+'"]');if(n)"undefined"==typeof Vimeo?n.addEventListener("load",function(){return e(n)}):e(n);else{var s=document.createElement("script");s.src=t,document.body.appendChild(s),s.addEventListener("load",function(){return e(s)})}})}},{key:"toggleSrc",value:function(){var t=this,e=this.el.dataset.src||this.el.getAttribute("src");this.el.removeAttribute("src"),this.thumbnailEl&&this.thumbnailEl.addEventListener("click",function(i){t.el.setAttribute("src",e+"&autoplay=true"),t.wrapEl.classList.add("video-embed--state-playing")})}}],i&&U(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Y(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i(778),i(153),i(184);var $=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.elements=e,this.callback=i,this.mostVisibleElement=null}var e,i;return e=t,(i=[{key:"update",value:function(){var t=window.pageYOffset||document.documentElement.scrollTop,e=null,i=0,n=null;
2this.elements.forEach(function(s,o){var c,r=s.getBoundingClientRect().top+t,a=s.offsetHeight,l=r>=t,h=r+a<=t+window.innerHeight;(c=l&&h?a:l&&!h?t+window.innerHeight-r:!l&&h?r+a-t:Math.max(0,Math.min(a,t+window.innerHeight-r)))>i&&(e=s,i=c,n=o)}),e&&e!==this.mostVisibleElement&&(this.mostVisibleElement=e,this.callback(e,n))}},{key:"mount",value:function(){var t=this;window.addEventListener("scroll",function(){requestAnimationFrame(function(){t.update()})}),window.addEventListener("resize",function(){requestAnimationFrame(function(){t.update()})}),requestAnimationFrame(function(){t.update()})}}])&&Y(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();document.querySelectorAll("[data-highlight-visible]").forEach(function(t){var e=t.querySelectorAll('a[href^="#"]'),i=document.querySelectorAll(Array.from(e).map(function(t){return t.getAttribute("href")}).join(", "));new $(i,function(t){var n=Array.from(e).filter(function(e){return e.getAttribute("href")==="#"+t.id})[0]||!1;e.forEach(function(t){return t.classList.toggle("active",t==n)}
2),i.forEach(function(e){return e.classList.toggle("active",e==t)})}).mount()}),i(616),i(425),i(734),document.querySelectorAll("[data-document-outline]").forEach(function(t){t.innerHTML=new e(document.querySelector(t.dataset.documentOutline)).generateOutline()}),document.querySelectorAll("[data-scrollspy]").forEach(function(t){new s(t).mount()}),document.querySelectorAll("[data-toggle-hash]").forEach(function(t){new r(t,{toggleText:t.dataset.toggleHash||t.innerText}).mount()});var G=document.createElement("div");G.classList.add("dialog"),document.body.appendChild(G),document.querySelectorAll('a[href^="#dialog-"]').forEach(function(t){new c(t,{target:document.getElementById(t.getAttribute("href").substr(1)),templateDialog:G}).mount()}),document.querySelectorAll("div.dialog").forEach(function(t){new d(t).mount(),t.addEventListener("sleek-ui/dialog/open",function(e){var i=t.querySelector("iframe[data-oembed]");i&&i.sleekVideoEmbed?i.sleekVideoEmbed.play():i.addEventListener("sleek-ui/video-embed/ready",function(){i.sleekVideoEmbed.play()})}),t.addEventListener("sleek-ui/dialog/close",function(e){var i=t.querySelector("iframe[data-oembed]");i&&i.sleekVideoEmbed&&i.sleekVideoEmbed.pause()})}),document.querySelectorAll("[data-canvas-scroll]").forEach(function(t){var e=t.dataset.canvasScroll;if(e)try{e=JSON.parse(e)}catch(t){e={}}else e={};t.canvasScroll=new F(t,e)}),document.querySelectorAll("[data-slideshow]").forEach(function(t){var e=t.dataset.slideshow;if(e)try{e=JSON.parse(e)}catch(t){e={}}else e={};new q(t,e).mount()}),document.querySelectorAll("[data-count]").forEach(function(t){var e=parseInt(t.dataset.count,10);new B(t,e).mount()});var Q=new IntersectionObserver(function(t){t.forEach(function(t){if(t.isIntersecting){Q.unobserve(t.target);var e={};try{e=JSON.parse(t.target.dataset.oembed)}catch(t){e={}}e&&e.provider_name&&("YouTube"===e.provider_name||"Vimeo"===e.provider_name)&&(t.target.sleekVideoEmbed=new X(t.target,e,{api:!0}),t.target.sleekVideoEmbed.mount())}})},{threshold:.25});document.querySelectorAll("[data-oembed]").forEach(function(t){Q.observe(t)})})()})();
3//# sourceURL=https://25640465.fs1.hubspotusercontent-eu1.net/hubfs/25640465/hub_generated/template_assets/1/55924711390/1789472963366/template_app.js

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.