(window.blocksyJsonP=window.blocksyJsonP||[]).push([[7],{11:function(t,e,n){"use strict";function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n img')).map((function(t){t.setAttribute("src",t.dataset.ctLazy),t.dataset.ctLazySet&&t.setAttribute("srcset",t.dataset.ctLazySet)})),t.classList.remove("ct-lazy"),t.classList.add("ct-lazy-loaded"))}))}},38:function(t,e,n){"use strict";n.r(e),n.d(e,"mount",(function(){return L}));var i=n(1),r=n.n(i);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:"left",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"container",r=t.sliderContainer,o=0;if("left"===n){var s=u(r.children).reduce((function(e,n){var i=p(e,t.options.nullifyTransformEl),r=i.left,o=(i.right,p(n,t.options.nullifyTransformEl)),s=o.left;o.right;return s("container"===i?p(r,t.options.nullifyTransformEl).left:0)&&(o=-1*p(r.firstElementChild,t.options.nullifyTransformEl).width,e=e===r.children.length?1:e+1)}if("right"===n){var a=u(r.children).reduce((function(e,n){var i=p(e,t.options.nullifyTransformEl),r=(i.left,i.right),o=p(n,t.options.nullifyTransformEl);o.left;return r>o.right?e:n}),{getBoundingClientRect:function(){return{left:-1}}});p(a,t.options.nullifyTransformEl).right<("container"===i?p(r,t.options.nullifyTransformEl).right:window.innerWidth)&&(o=p(r.firstElementChild,t.options.nullifyTransformEl).width,e=1===e?r.children.length:e-1)}return{relativeDelta:o,elementsOnTheLeft:e}};function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return null;if(t.getBoundingClientRect&&!t.firstElementChild)return t.getBoundingClientRect();e||(e=t);var n=t.getBoundingClientRect(),i=n.top,r=n.left,o=n.right,s=n.width,a=n.height,l=window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map((function(t){return parseFloat(t)}));if(6!=l.length)return t.getBoundingClientRect();var f=l,u=f[0]*f[3]-f[1]*f[2];return{width:s/f[0],height:a/f[3],left:(r*f[3]-i*f[2]+f[2]*f[5]-f[4]*f[3])/u,right:(o*f[3]-i*f[2]+f[2]*f[5]-f[4]*f[3])/u,top:(-r*f[1]+i*f[0]+f[4]*f[1]-f[0]*f[5])/u}}var m=function(t){if(t.options.scaleRotateEffect){u(t.sliderContainer.children);u(t.sliderContainer.children).map((function(e){var n=p(t.sliderContainer,t.options.nullifyTransformEl).left,i=(p(t.sliderContainer,t.options.nullifyTransformEl).right,p(t.sliderContainer,t.options.nullifyTransformEl).width,p(e,t.options.nullifyTransformEl).width),r=0,o=0,s=1,a=p(e,t.options.nullifyTransformEl),l=a.left,f=a.right,d=1;f=window.innerWidth-f;var c=window.innerWidth>=1e3,h=10;c&&u(t.sliderContainer.children).find((function(e){return p(e.parentElement,t.options.nullifyTransformEl).left-p(e,t.options.nullifyTransformEl).left>0&&p(e.parentElement,t.options.nullifyTransformEl).left-p(e,t.options.nullifyTransformEl).left<=p(e,t.options.nullifyTransformEl).width}))===e&&(s=1+(l-n+70)/550,r=-1*(l-n),o=(l-n)/25*-1,d=1+(l-n)/1500,h=5),c&&u(t.sliderContainer.children).find((function(e){return p(e.parentElement,t.options.nullifyTransformEl).right-p(e,t.options.nullifyTransformEl).right<0&&p(e.parentElement,t.options.nullifyTransformEl).right-p(e,t.options.nullifyTransformEl).right>=-1*p(e,t.options.nullifyTransformEl).width}))===e&&(s=1+(p(e.parentElement,t.options.nullifyTransformEl).right-p(e,t.options.nullifyTransformEl).right+70)/550,r=p(e.parentElement,t.options.nullifyTransformEl).right-p(e,t.options.nullifyTransformEl).right,o=(p(e.parentElement,t.options.nullifyTransformEl).right-p(e,t.options.nullifyTransformEl).right)/25,d=1+(p(e.parentElement,t.options.nullifyTransformEl).right-p(e,t.options.nullifyTransformEl).right)/1500,h=5),c&&(n-l>i||p(t.sliderContainer,t.options.nullifyTransformEl).right-p(e,t.options.nullifyTransformEl).right<-1*i)&&(s=0),e.style.zIndex=h,e.firstElementChild.style.transform="perspective(800px) translateX(".concat(r,"px) rotateY(").concat(o,"deg) translateZ(0)"),e.firstElementChild.style.opacity=s,e.firstElementChild.firstElementChild.style.transform="scale(".concat(d,") translateZ(0)")}))}},y=function(t){t.options.pillsContainerSelector&&(t.options.pillsContainerSelector.querySelector(".active")&&t.options.pillsContainerSelector.querySelector(".active").classList.remove("active"),t.options.pillsContainerSelector.children[t.state.previousCurrentIndex].classList.add("active"))},g=function(t){if(t.options.pillsContainerSelector){var e=u(t.options.pillsContainerSelector.children);e.map((function(n){return n.addEventListener("click",(function(i){i.preventDefault();var r=u(t.sliderContainer.children).indexOf(u(t.sliderContainer.children).reduce((function(e,n){var i=p(e,t.options.nullifyTransformEl),r=i.left,o=(i.right,p(n,t.options.nullifyTransformEl)),s=o.left;o.right;return Math.abs(s-p(t.sliderContainer,t.options.nullifyTransformEl).left)s?r>o?1:-1:r>o?-1:1),d=100*Math.round(100*t.state.positionX/p(t.sliderContainer.firstElementChild,t.options.nullifyTransformEl).width/100)*p(t.sliderContainer.firstElementChild,t.options.nullifyTransformEl).width/100+p(t.sliderContainer.firstElementChild,t.options.nullifyTransformEl).width*f;t.state=l(l({},t.state),{},{positionTarget:d})}))}))}},v=function(t,e){var n=u(t.sliderContainer.children).indexOf(u(t.sliderContainer.children).reduce((function(e,n){var i=p(e,t.options.nullifyTransformEl),r=i.left,o=(i.right,p(n,t.options.nullifyTransformEl)),s=o.left;o.right;return Math.abs(s-p(t.sliderContainer,t.options.nullifyTransformEl).left)t.sliderContainer.children.length-1&&(i=0);var r=Math.abs(i-n),o=Math.min(n,i)+(t.sliderContainer.children.length-Math.max(n,i)),s=Math.min(r,o)*(o>r?n>i?1:-1:n>i?-1:1),a=100*Math.round(100*t.state.positionX/p(t.sliderContainer.firstElementChild,t.options.nullifyTransformEl).width/100)*p(t.sliderContainer.firstElementChild,t.options.nullifyTransformEl).width/100+p(t.sliderContainer.firstElementChild,t.options.nullifyTransformEl).width*s;t.state=l(l({},t.state),{},{positionTarget:a})},E=function(t){t.options.leftArrow&&t.options.leftArrow.addEventListener("click",(function(e){e.preventDefault(),v(t,(function(t){return t-1}))})),t.options.rightArrow&&t.options.rightArrow.addEventListener("click",(function(e){e.preventDefault(),v(t,(function(t){return t+1}))}))},C=function(t){var e=t.sliderContainer;t.options.autoplay&&(e.addEventListener("mouseenter",(function(){return t.options=l(l({},t.options),{},{autoplay:!1,_autoplay:t.options.autoplay})})),e.addEventListener("mouseleave",(function(){t.options=l(l({},t.options),{},{autoplay:t.options._autoplay,_autoplay:!1}),t.state=l(l({},t.state),{},{lastTimeAnimated:(new Date).getTime()})})))},T=function(t){if(t.options.adjustHeight){var e=t.sliderContainer.children[t.state.previousCurrentIndex];t.sliderContainer.style.setProperty("--sliderHeight","".concat((e.firstElementChild||e).getBoundingClientRect().height,"px"))}},w=function(t,e,n){var i=t.sliderContainer,r=function(r){if(e().sliderActivated&&!t.options.elementsThatDoNotStartDrag.reduce((function(t,e){return!!t||(r.target.matches(e)||r.target.closest(e))}),!1)){r.stopPropagation(),"touchstart"!==r.type&&r.preventDefault(),t.options.onDragStart(r),n(l(l({},e()),{},{startX:r.pageX||r.touches[0].pageX,endX:r.pageX||r.touches[0].pageX,mouseDown:!0,downScrollPosition:{x:window.pageXOffset,y:window.pageYOffset},positionSnapshot:e().positionX}));var o=function r(o){if(e().mouseDown){o.stopPropagation(),n(l(l({},e()),{},{mouseDown:!1})),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",s),document.removeEventListener("touchend",r);var a=e(),f=100*a.positionX/p(i.firstElementChild,t.options.nullifyTransformEl).width;n(l(l({},e()),{},{positionTarget:p(i.firstElementChild,t.options.nullifyTransformEl).width*(Math.abs(a.endX-a.startX)>50?a.endX-a.startX<0?100*Math.floor(f/100):100*Math.ceil(f/100):100*Math.round(f/100))/100}))}},s=function(t){var i=t.pageX;if(i||(i=t.touches[0].pageX),e().mouseDown){var r=e();n(l(l({},r),{},{endX:i})),(Math.abs(r.downScrollPosition.x-r.scrollPosition.x)>3||Math.abs(r.downScrollPosition.y-r.scrollPosition.y)>5)&&o(t)}};document.addEventListener("mousemove",s),document.addEventListener("mouseup",o),document.addEventListener("touchmove",s),document.addEventListener("touchend",o)}};i.addEventListener("mousedown",r),i.addEventListener("touchstart",r)},b=function(t,e,n){return Math.min(Math.max(t,e),n)},A="__DESTROYED__",S=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),c(this,"getDefaultState",(function(){return{elementsOnTheLeft:1,positionSnapshot:0,positionX:0,positionTarget:0,velocity:0,containerInnerWidth:n.sliderContainer?p(n.sliderContainer,n.nullifyTransformEl).width:0,slideWidth:n.sliderContainer?p(n.sliderContainer.firstElementChild,n.sliderContainer).width:0,previousCurrentIndex:0,startX:0,endX:0,mouseDown:!1,lastTimeAnimated:1/0}})),c(this,"state",this.getDefaultState()),c(this,"options",{onDragStart:function(){},autoplay:!1,scaleRotateEffect:!1,pillsContainerSelector:null,flexyAttributeEl:null,adjustHeight:!1,wrapAroundMode:"container",nullifyTransformEl:null,elementsThatDoNotStartDrag:[]}),c(this,"sliderContainer",null),c(this,"drawLoop",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=t?1/0:n.state.positionX;if(n.state.sliderActivated!==A){var i,r;if(n.state.containerInnerWidth!==p(n.sliderContainer,n.nullifyTransformEl).width&&n.refreshActivation(),n.state=l(l(l(l({},n.state),n.state.sliderActivated?(i=n.state.velocity+(n.state.mouseDown?n.state.positionSnapshot+(n.state.endX-n.state.startX)-n.state.positionX-n.state.velocity:.02*(n.state.positionTarget-n.state.positionX)),{velocity:.72*(r=i),positionX:n.state.positionX+r}):{}),n.state.sliderActivated&&Math.abs(n.state.containerInnerWidth-p(n.sliderContainer,n.nullifyTransformEl).width)>1?{positionX:Math.round(p(n.sliderContainer.firstElementChild,n.options.nullifyTransformEl).width*(100*Math.round(n.state.positionX/n.state.slideWidth))/100),positionTarget:Math.round(p(n.sliderContainer.firstElementChild,n.options.nullifyTransformEl).width*(100*Math.round(n.state.positionX/n.state.slideWidth))/100)}:{}),{},{scrollPosition:{x:window.pageXOffset,y:window.pageYOffset},containerInnerWidth:p(n.sliderContainer,n.nullifyTransformEl).width,slideWidth:p(n.sliderContainer.firstElementChild,n.options.nullifyTransformEl).width}),(e!==n.state.positionX||Math.abs(n.state.positionX-n.state.positionTarget)>.1)&&!t&&n.state.sliderActivated){var o=h(n,n.state.elementsOnTheLeft,n.state.mouseDown?n.state.endX<=n.state.startX?"right":"left":n.state.positionX>=n.state.positionTarget?"right":"left",n.options.wrapAroundMode),s=o.relativeDelta,a=o.elementsOnTheLeft;n.state=l(l({},n.state),{},{elementsOnTheLeft:a,positionTarget:n.state.positionTarget+s,positionX:n.state.positionX+s,positionSnapshot:n.state.positionSnapshot+s})}if(n.options.autoplay&&n.state.sliderActivated&&Math.abs(n.state.positionX-n.state.positionTarget)<.5&&(new Date).getTime()/1e3-n.state.lastTimeAnimated/1e3>(parseFloat(n.options.autoplay,10)?parseFloat(n.options.autoplay,10):3)&&(n.state=l(l({},n.state),{},{positionTarget:n.state.positionX-p(n.sliderContainer.firstElementChild,n.options.nullifyTransformEl).width})),!n.state.mouseDown&&n.state.sliderActivated){Math.abs(n.state.positionX-n.state.positionTarget)<.2&&(n.state=l(l({},n.state),{},{positionX:n.state.positionTarget,velocity:0}));var f=n.state.previousCurrentIndex;n.state=l(l({},n.state),{},{previousCurrentIndex:b(n.state.elementsOnTheLeft>Math.round(Math.abs(n.state.positionTarget)/p(n.sliderContainer.firstElementChild,n.options.nullifyTransformEl).width)?Math.round(Math.abs(n.state.positionTarget)/p(n.sliderContainer.firstElementChild,n.options.nullifyTransformEl).width)+(n.sliderContainer.children.length-n.state.elementsOnTheLeft):Math.abs(Math.round(Math.abs(n.state.positionTarget)/p(n.sliderContainer.firstElementChild,n.options.nullifyTransformEl).width)-n.state.elementsOnTheLeft),0,n.sliderContainer.children.length-1)}),f!==n.state.previousCurrentIndex&&(y(n),T(n))}n.state.positionX!==e&&n.state.sliderActivated&&(n.render(),m(n),n.state=l(l({},n.state),{},{lastTimeAnimated:(new Date).getTime()})),requestAnimationFrame((function(){return n.drawLoop()}))}})),this.options=l(l({},this.options),{},{flexyAttributeEl:e,nullifyTransformEl:e},i),this.sliderContainer=e,g(this),E(this),C(this),w(this,(function(){return n.state}),(function(t){return n.state=t})),u(this.sliderContainer.children).map((function(t){return t.addEventListener("click",(function(t){return Math.abs(n.state.startX-n.state.endX)>3&&t.preventDefault()}))})),this.state=l(l({},this.state),{},{elementsOnTheLeft:1,positionX:-1*p(this.sliderContainer.firstElementChild,this.options.nullifyTransformEl).width,positionTarget:-1*p(this.sliderContainer.firstElementChild,this.options.nullifyTransformEl).width,containerInnerWidth:p(this.sliderContainer,this.nullifyTransformEl).width,slideWidth:p(this.sliderContainer.firstElementChild,this.options.nullifyTransformEl).width}),this.refreshActivation(),requestAnimationFrame((function(){return n.drawLoop(!0)})),T(this)}var e,n,i;return e=t,(n=[{key:"destroy",value:function(){this.state=l(l({},this.state),{},{sliderActivated:A})}},{key:"refreshActivation",value:function(){var t=(p(this.sliderContainer.children[0],this.options.nullifyTransformEl)||{width:0}).width*this.sliderContainer.children.length;this.state=l(l({},this.state),{},{sliderActivated:!!this.sliderContainer&&-1===getComputedStyle(this.sliderContainer,":after").content.indexOf("no-flexy")&&t>p(this.sliderContainer,this.options.nullifyTransformEl).width+10}),this.state.sliderActivated?this.options.flexyAttributeEl.dataset.flexy="":(this.options.flexyAttributeEl.removeAttribute("data-flexy"),u(this.sliderContainer.children).map((function(t){return t.removeAttribute("style")})))}},{key:"render",value:function(){var t=this;u(this.sliderContainer.children).map((function(e){return e.style.transform="translate3d(".concat(t.state.positionX,"px, 0, 0)")})),this.state.mouseDown?this.options.flexyAttributeEl.dataset.flexyDragging="":this.options.flexyAttributeEl.removeAttribute("data-flexy-dragging"),this.state.elementsOnTheLeft>0?(u(this.sliderContainer.children).slice(0,-1*this.state.elementsOnTheLeft).map((function(t){return t.style.order=2})),u(this.sliderContainer.children).slice(-1*this.state.elementsOnTheLeft).map((function(t){return t.style.order=1}))):u(this.sliderContainer.children).map((function(t){return t.style.order=1}))}}])&&s(e.prototype,n),i&&s(e,i),t}(),O=n(11),X=n(0);function x(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n