"use strict";(self.blocksyJsonP=self.blocksyJsonP||[]).push([[721],{721:function(t,e,n){n.r(e),n.d(e,{Flexy:function(){return A},mount:function(){return P}});var i=n(2194),o=n.n(i);const r=["style"];function s(t,e){if(null==t)return{};var n,i,o=function(t,e){if(null==t)return{};var n,i,o={},r=Object.keys(t);for(i=0;i=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return null;if(t.getBoundingClientRect&&!t.firstElementChild)return t.getBoundingClientRect();e||(e=t);let{top:n,left:i,right:o,width:r,height:s}=t.getBoundingClientRect(),a=window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map((function(t){return parseFloat(t)}));if(6!=a.length)return t.getBoundingClientRect();var l=a;let u=l[0]*l[3]-l[1]*l[2];return{width:r/l[0],height:s/l[3],left:(i*l[3]-n*l[2]+l[2]*l[5]-l[4]*l[3])/u,right:(o*l[3]-n*l[2]+l[2]*l[5]-l[4]*l[3])/u,top:(-i*l[1]+n*l[0]+l[4]*l[1]-l[0]*l[5])/u}},h=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},f=function(t){return t?t&&"[object Function]"==={}.toString.call(t)?t():t:null},m=function(t,e){return"vertical"===e.options.orientation?t.top:t.left},g=function(t,e){return"vertical"===e.options.orientation?t.height:t.width},y=function(t,e){let n="pageX";"vertical"===e.options.orientation&&(n="pageY");let i=t[n];return!i&&t.touches&&t.touches[0]&&(i=t.touches[0][n]),i};class v{constructor(t,e){var n=this;c(this,"options",{mountListeners:!0}),c(this,"flexyInstance",null),c(this,"navigate",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right";const e=n.flexyInstance,i="left"===t?1:-1,o=e.state.slideWidth;let r=100*Math.round(100*e.state.positionX/o/100)*o/100+o*i;e.state=l(l({},e.state),{},{positionTarget:r})})),this.flexyInstance=t,this.options=l(l({},this.options),e),this.options.mountListeners&&this.mountArrowsListeners()}mountArrowsListeners(){var t=this;if(!this.options.mountListeners)return;const e=this.flexyInstance.options.leftArrow,n=this.flexyInstance.options.rightArrow;e&&e.addEventListener("click",(function(e){e.preventDefault(),t.navigate("left")})),n&&n.addEventListener("click",(function(e){e.preventDefault(),t.navigate("right")}))}}const b=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=l({rootEl:null},e),e.rootEl&&t.el!==e.rootEl&&t.elComputed.minHeight&&parseFloat(t.elComputed.minHeight)===t.height)return 0;const n=t.childrenHeight.reduce((function(e,n,i){let o=parseFloat(t.childrenComputed[i].marginTop);return"auto"===t.childrenComputed[i].getPropertyValue("--card-element-margin-start")&&(o=0),e+n+o+parseFloat(t.childrenComputed[i].marginBottom)}),0)+parseFloat(t.elComputed.paddingTop)+parseFloat(t.elComputed.paddingBottom);return t.totalChildrenHeight>=t.height?0:t.height-n},x=function(t){t.childrenHeight.every((function(e,n){return e>=t.height}));return 0},C=function(t){const e=f(t.sliderContainer),n=(f(t.options.flexyAttributeEl),Math.round(t.state.containerInnerWidth/t.state.slideWidth));let i=[...e.children],o=i.slice(t.state.previousCurrentIndex,t.state.previousCurrentIndex+n);o.lengthn&&(o=[...o,...i.slice(0,n-o.length)]);const r=o.map((function(t,e){const n=t.getBoundingClientRect().height,i=function(t){const e=t;if(!t)return 0;const n=[t,...t.querySelectorAll("*")].map((function(t){let e=[...t.children].map((function(t){const e=t.getBoundingClientRect();return{el:t,elComputed:window.getComputedStyle(t),rect:e,height:e.height}}));e=e.filter((function(t){return"absolute"!==t.elComputed.position&&0!==t.rect.height}));let n="row";if(e.length>1){const t=e[0];e[1].rect.left>=t.rect.right&&(n="column")}return{el:t,elComputed:window.getComputedStyle(t),height:t.getBoundingClientRect().height,orientation:n,childrenComputed:e.map((function(t){let{elComputed:e}=t;return e})),childrenHeight:e.map((function(t){let{height:e}=t;return e}))}})),i=n.filter((function(t){return 0!==t.childrenComputed.length&&(!n.find((function(e){return"column"===e.orientation&&e.el.contains(t.el)&&e.el!==t.el}))&&("absolute"!==t.elComputed.position&&!t.childrenComputed.some((function(t){return"inline"===t.display&&"absolute"!==t.position}))))})).map((function(t){return l(l({},t),{},{voidSpace:Math.round("row"===t.orientation?b(t,{rootEl:e}):x(t))})})).filter((function(t){return t.voidSpace>0}));return 1===i.length?i.reduce((function(t,e){return t+e.voidSpace}),0):0}(t);return n-i})),s=Math.round(Math.max(...r));s!==Math.round(parseFloat(e.parentNode.style.getPropertyValue("--flexy-view-height")))&&e.parentNode.style.setProperty("--flexy-view-height",s+"px")};function w(t){return null==t||t.matches("html")?null:t.scrollHeight>t.clientHeight?t:w(t.parentNode)}class S{constructor(t){var e=this;c(this,"options",{mountDragAndDropEventListener:!0}),c(this,"flexyInstance",null),c(this,"getState",(function(){})),c(this,"setState",(function(){})),c(this,"handleDown",(function(t){if(!e.getState().sliderActivated)return;const n=f(e.flexyInstance.sliderContainer);if(e.flexyInstance.options.elementsThatDoNotStartDrag.reduce((function(e,n){return!!e||(t.target.matches(n)||t.target.closest(n))}),!1))return;const i=t.type;e.options.mountDragAndDropEventListener&&(t.stopPropagation(),"touchstart"!==t.type&&t.preventDefault());let o=!1;"touchstart"===i?e.setState(l(l({},e.getState()),{},{startX:y(t,e.flexyInstance),endX:y(t,e.flexyInstance)})):e.setState(l(l({},e.getState()),{},{startX:y(t,e.flexyInstance),endX:y(t,e.flexyInstance),mouseDown:!0,positionSnapshot:e.getState().positionX}));const r=function(t){let o=!0;if("touchstart"===i&&(o=!1,e.getState().mouseDown&&(o=!0),!e.getState().mouseDown)){let n=y(t,e.flexyInstance);n||(n=e.getState().startX),Math.abs(n-e.getState().startX)<=3&&(o=!0)}if(!o)return;t.stopPropagation(),e.setState(l(l({},e.getState()),{},{mouseDown:!1})),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",s),document.removeEventListener("touchend",r),document.removeEventListener("scroll",a),w(t.target)&&w(t.target).removeEventListener("scroll",a);let u=e.getState();const c=g(p(n.firstElementChild,f(e.flexyInstance.options.nullifyTransformEl)),e.flexyInstance);let d=100*u.positionX/c;e.setState(l(l({},e.getState()),{},{positionTarget:c*(Math.abs(u.endX-u.startX)>50?u.endX-u.startX<0?100*Math.floor(d/100):100*Math.ceil(d/100):100*Math.round(d/100))/100}))},s=function(t){let n=y(t,e.flexyInstance);if(o)return void r(t);if("touchstart"===i&&!e.getState().mouseDown)return void(Math.abs(n-e.getState().startX)>3&&(e.flexyInstance.options.onDragStart(t),e.setState(l(l({},e.getState()),{},{startX:y(t,e.flexyInstance),endX:y(t,e.flexyInstance),mouseDown:!0,positionSnapshot:e.getState().positionX})),o=!1,document.removeEventListener("scroll",a),w(t.target)&&w(t.target).removeEventListener("scroll",a)));t.preventDefault();let s=e.getState();e.setState(l(l({},s),{},{endX:n}))},a=function(t){o=!0};document.addEventListener(h()?"touchmove":"mousemove",s,{passive:!1}),document.addEventListener(h()?"touchend":"mouseup",r,{passive:!1}),document.addEventListener("scroll",a),w(t.target)&&w(t.target).addEventListener("scroll",a)})),this.options=l(l({},this.options),t)}handleDragFor(t,e,n){var i=this;if(!t.options.hasDragAndDrop)return;this.flexyInstance=t,this.getState=e,this.setState=n;const o=f(t.sliderContainer);this.options.mountDragAndDropEventListener&&o.addEventListener(h()?"touchstart":"mousedown",this.handleDown,{passive:!1}),t.options.initialDragEvent&&requestAnimationFrame((function(){i.handleDown(t.options.initialDragEvent)}))}}const E="__DESTROYED__";class A{constructor(t){var e=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,"getDefaultState",(function(){return{elementsOnBehind:1,positionSnapshot:0,positionX:0,positionTarget:0,velocity:0,containerInnerWidth:e.sliderContainer?g(p(f(e.sliderContainer),f(e.nullifyTransformEl)),e):0,slideWidth:e.sliderContainer?g(p(e.sliderContainer.firstElementChild,e.sliderContainer),e):0,previousCurrentIndex:0,startX:0,endX:0,mouseDown:!1,recalculationScheduled:!1,lastTimeAnimated:1/0}})),c(this,"state",this.getDefaultState()),c(this,"options",{onDragStart:function(){},onSlideChange:function(){},autoplay:!1,scaleRotateEffect:!1,pillsContainerSelector:null,pillsFlexyInstance:null,flexyAttributeEl:null,initialDragEvent:null,wrapAroundMode:"container",orientation:"horizontal",nullifyTransformEl:null,elementsThatDoNotStartDrag:[],hasDragAndDrop:!0,onRender:function(){},dragAndDropOptions:{},arrowsOptions:{}}),c(this,"sliderContainer",null),c(this,"dragAndDrop",null),c(this,"sliderArrows",null),c(this,"drawLoop",(function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e.state.sliderActivated===E)return;if(!f(e.sliderContainer))return void requestAnimationFrame((function(){return e.drawLoop()}));let n=t?1/0:e.state.positionX;(e.state.containerInnerWidth!==p(f(e.sliderContainer),f(e.nullifyTransformEl)).width||e.state.recalculationScheduled)&&e.refreshActivation();let i=e.state,o={};if(e.state.sliderActivated){let t=i.velocity+(e.state.mouseDown?e.state.positionSnapshot+(e.state.endX-e.state.startX)-e.state.positionX-e.state.velocity:.02*(e.state.positionTarget-e.state.positionX));o.velocity=.72*t,o.positionX=e.state.positionX+t}if(e.state.sliderActivated&&(Math.abs(e.state.containerInnerWidth-g(p(f(e.sliderContainer),f(e.nullifyTransformEl)),e))>1||e.state.recalculationScheduled)&&(o.positionX=Math.round(g(p(f(e.sliderContainer).firstElementChild,f(e.options.nullifyTransformEl)),e)*(100*Math.round(e.state.positionX/e.state.slideWidth))/100),o.positionTarget=Math.round(g(p(f(e.sliderContainer).firstElementChild,f(e.options.nullifyTransformEl)),e)*(100*Math.round(e.state.positionX/e.state.slideWidth))/100),o.recalculationScheduled=!1),o.scrollPosition={x:window.pageXOffset,y:window.pageYOffset},o.containerInnerWidth=g(p(f(e.sliderContainer),f(e.nullifyTransformEl)),e),o.slideWidth=g(p(f(e.sliderContainer).firstElementChild,f(e.options.nullifyTransformEl)),e),e.state=l(l({},e.state),o),(n!==e.state.positionX||Math.abs(e.state.positionX-e.state.positionTarget)>.1)&&!t&&e.state.sliderActivated){let{relativeDelta:t,elementsOnBehind:n}=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"container";const o=f(t.sliderContainer),r=f(t.options.nullifyTransformEl);"horizontal"===t.options.orientation&&d()&&(n="left"===n?"right":"left");const s=[...o.children].map((function(t){return p(t,r)}));let a=null,l=null;if("horizontal"===t.options.orientation){const t=Math.min(...s.map((function(t){return t.left}))),e=Math.max(...s.map((function(t){return t.right}))),n=s.find((function(e){let{left:n}=e;return n===t})),i=s.find((function(t){let{right:n}=t;return n===e}));a=d()?i:n,l=d()?n:i}if("vertical"===t.options.orientation){const t=Math.min(...s.map((function(t){return t.top}))),e=Math.max(...s.map((function(t){return t.bottom})));a=s.find((function(e){let{top:n}=e;return n===t})),l=s.find((function(t){let{bottom:n}=t;return n===e}))}const u=p(o,r);let c=0;if("left"===n){let n=!1;"horizontal"===t.options.orientation&&(n=a.left>0,d()&&(n=a.rightu.left,d()&&(n=a.right0,"container"===i&&(n=a.top>u.top)),n&&(c=-1*t.state.slideWidth,"horizontal"===t.options.orientation&&d()&&(c*=-1),e=e===o.children.length?1:e+1)}if("right"===n){let n=!1;"horizontal"===t.options.orientation&&(n=l.right0),"container"===i&&(n=l.rightu.left))),"vertical"===t.options.orientation&&(n=l.bottom=e.state.positionTarget?"right":"left",e.options.wrapAroundMode);e.state=l(l({},e.state),{},{elementsOnBehind:n,positionTarget:e.state.positionTarget+t,positionX:e.state.positionX+t,positionSnapshot:e.state.positionSnapshot+t})}let r=e.state.previousCurrentIndex;var s,a,u;if(!e.state.mouseDown&&e.state.sliderActivated&&(Math.abs(e.state.positionX-e.state.positionTarget)<.2&&(e.state=l(l({},e.state),{},{positionX:e.state.positionTarget,velocity:0})),e.state=l(l({},e.state),{},{previousCurrentIndex:(s=e.state.elementsOnBehind>Math.round(Math.abs(e.state.positionTarget)/g(p(f(e.sliderContainer).firstElementChild,f(e.options.nullifyTransformEl)),e))?Math.round(Math.abs(e.state.positionTarget)/g(p(f(e.sliderContainer).firstElementChild,f(e.options.nullifyTransformEl)),e))+(f(e.sliderContainer).children.length-e.state.elementsOnBehind):Math.abs(Math.round(Math.abs(e.state.positionTarget)/g(p(f(e.sliderContainer).firstElementChild,f(e.options.nullifyTransformEl)),e))-e.state.elementsOnBehind),a=0,u=f(e.sliderContainer).children.length-1,Math.min(Math.max(s,a),u))})),e.state.positionX!==n&&e.state.sliderActivated&&(e.state.positionX===e.state.positionTarget||f(e.options.flexyAttributeEl).hasAttribute("data-flexy-moving")||(!function(t){const e=f(t.sliderContainer),n=e.parentNode.getBoundingClientRect().height;e.parentNode.style.setProperty("--flexy-view-height",n+"px")}(e),f(e.options.flexyAttributeEl).dataset.flexyMoving=""),e.render(),i.positionX!==i.positionTarget&&e.state.positionX===e.state.positionTarget&&(f(e.options.flexyAttributeEl).removeAttribute("data-flexy-moving"),f(e.sliderContainer).parentNode.removeAttribute("style")),e.state=l(l({},e.state),{},{lastTimeAnimated:(new Date).getTime()})),!e.state.mouseDown&&e.state.sliderActivated&&r!==e.state.previousCurrentIndex&&(!function(t){if(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"),t.options.pillsFlexyInstance)){let e=t.options.pillsFlexyInstance.flexy,n=[...t.options.pillsContainerSelector.children];const i=f(e.sliderContainer);let o=[...i.children].indexOf([...i.children].reduce((function(t,n){let o=m(p(t,f(e.options.nullifyTransformEl)),e),r=m(p(n,e.options.nullifyTransformEl),e);return Math.abs(r-m(p(i,f(e.options.nullifyTransformEl)),e))=s?o>r?1:-1:o>r?-1:1),c=100*Math.round(100*e.state.positionX/g(p(i.firstElementChild,f(e.options.nullifyTransformEl)),e)/100)*g(p(i.firstElementChild,f(e.options.nullifyTransformEl)),e)/100+g(p(i.firstElementChild,f(e.options.nullifyTransformEl)),e)*u;e.state=l(l({},e.state),{},{positionTarget:c})}}(e),e.options.onSlideChange(e,{currentIndex:e.state.previousCurrentIndex,previousIndex:r}),C(e)),e.options.autoplay&&e.state.sliderActivated){const t=parseFloat(e.options.autoplay,10)||3;if(Math.abs(e.state.positionX-e.state.positionTarget)<.5){((new Date).getTime()-e.state.lastTimeAnimated)/1e3>t&&(e.state=l(l({},e.state),{},{positionTarget:e.state.positionX-g(p(f(e.sliderContainer).firstElementChild,f(e.options.nullifyTransformEl)),e)}))}}requestAnimationFrame((function(){return e.drawLoop()}))})),this.options=l(l({},this.options),{},{flexyAttributeEl:t,nullifyTransformEl:t},n),this.sliderContainer=t,this.sliderArrows=new v(this,this.options.arrowsOptions),function(t){if(!t.options.pillsContainerSelector)return;let e=[...t.options.pillsContainerSelector.children];const n=f(t.sliderContainer),i=f(t.options.nullifyTransformEl),o=function(o){let r=[...n.children].indexOf([...n.children].reduce((function(e,o){let r=m(p(e,i),t),s=m(p(o,i),t);return Math.abs(s-m(p(n,i),t))s?-1:1;u>=a&&(h=r>s?1:-1),d()&&(h*=-1);let f=100*Math.round(100*t.state.positionX/t.state.slideWidth/100)*t.state.slideWidth/100+t.state.slideWidth*(c*h);t.state=l(l({},t.state),{},{positionTarget:f})};t.options.initialDragEvent&&t.options.initialDragEvent.target.closest(".flexy-pills > * > *")&&setTimeout((function(){o(t.options.initialDragEvent.target.closest(".flexy-pills > * > *"))})),e.map((function(t){return t.addEventListener("click",(function(e){setTimeout((function(){e.defaultPrevented||o(t),e.preventDefault()}))}))}))}(this),function(t){const e=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(n=t)&&"[object Function]"==={}.toString.call(n)?t(e):t;var n}(t.sliderContainer);if(!t.options.autoplay)return;const n=function(){t.state.sliderActivated&&(t.options=l(l({},t.options),{},{autoplay:!1,_autoplay:t.options.autoplay}))},i=function(){t.state.sliderActivated&&(t.options=l(l({},t.options),{},{autoplay:t.options._autoplay,_autoplay:!1}),t.state=l(l({},t.state),{},{lastTimeAnimated:(new Date).getTime()}))};e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",i),new IntersectionObserver((function(e){e.map((function(e){let{target:o,isIntersecting:r,intersectionRatio:s}=e;if(r){if(!Object.keys(t.options).includes("_autoplay"))return;i()}r||n()}))}),{}).observe(e)}(this),this.dragAndDrop=new S(this.options.dragAndDropOptions),this.dragAndDrop.handleDragFor(this,(function(){return e.state}),(function(t){return e.state=t})),[...f(this.sliderContainer).children].map((function(t){return t.addEventListener("click",(function(t){Math.abs(e.state.startX-e.state.endX)>3&&t.preventDefault()}))}));let i=1,o=1,r=getComputedStyle(f(this.options.flexyAttributeEl));r.getPropertyValue("--current-item")&&(o=parseInt(r.getPropertyValue("--current-item")),i=f(this.sliderContainer).children.length);const s=d()?1:-1,a=g(p(f(this.sliderContainer).firstElementChild,f(this.options.nullifyTransformEl)),this);this.state=l(l({},this.state),{},{elementsOnBehind:i,slideWidth:a,positionX:a*o*s,positionTarget:a*o*s,containerInnerWidth:g(p(f(this.sliderContainer),f(this.nullifyTransformEl)),this)}),this.refreshActivation(),requestAnimationFrame((function(){return e.drawLoop(!0)}))}destroy(){this.state=l(l({},this.state),{},{sliderActivated:E})}scheduleSliderRecalculation(){this.state=l(l({},this.state),{},{recalculationScheduled:!0})}refreshActivation(){if(!f(this.sliderContainer))return;const t=this.state.sliderActivated===E;let e=g(p(f(this.sliderContainer).children[0],f(this.options.nullifyTransformEl))||{width:0,height:0},this)*f(this.sliderContainer).children.length,n=!1;f(this.sliderContainer)&&(n=-1===getComputedStyle(f(this.sliderContainer),":after").content.indexOf("no-flexy")&&e>g(p("vertical"===this.options.orientation?f(this.sliderContainer).parentNode:f(this.sliderContainer),f(this.options.nullifyTransformEl)),this)+10),this.state=l(l({},this.state),{},{sliderActivated:n});const i=f(this.options.flexyAttributeEl);i&&(this.state.sliderActivated?i.dataset.flexy="":(i.removeAttribute("data-flexy"),[...f(this.sliderContainer).children].map((function(t){return t.removeAttribute("style")}))));this.retrieveSliderAttributes();t||this.state.sliderActivated||this.render(),t&&this.drawLoop()}retrieveSliderAttributes(){var t=this;const e=[...f(this.sliderContainer).children].map((function(t,e){return{el:t,index:e,attr:{}}}));let n=e;if(this.state.elementsOnBehind>0){const t=e.slice(-1*this.state.elementsOnBehind),i=e.slice(0,-1*this.state.elementsOnBehind);n=[...t.map((function(t){return l(l({},t),{},{attr:{style:{order:1}}})})),...i.map((function(t){return l(l({},t),{},{attr:{style:{order:2}}})}))]}else n=n.map((function(t){return l(l({},t),{},{attr:{style:{order:2}}})}));n=n.map((function(e,n){let i=n*t.state.slideWidth,o=i+t.state.slideWidth,r=!1;const s=Math.abs(t.state.positionX),a=Math.abs(t.state.positionX)+t.state.containerInnerWidth;i-s>3&&a-i>3&&(r=!0),o-s>3&&a-o>3&&(r=!0),Math.abs(i-s)<3&&Math.abs(o-a)<3&&(r=!0);let u=`translate3d(${t.state.positionX}px, 0, 0)`;return"vertical"===t.options.orientation&&(u=`translate3d(0, ${t.state.positionX}px, 0)`),l(l({},e),{},{fits:r,attr:l(l({},e.attr),{},{className:r?"flexy-item-is-visible":"",style:l(l({},e.attr.style),{},{transform:u})})})}));let i={};return this.state.mouseDown&&(i["data-flexy-dragging"]=""),this.state.sliderActivated&&(i["data-flexy"]=""),this.state.sliderActivated||(n=n.map((function(t){const e=t.attr,{style:n}=e,i=s(e,r);return l(l({},t),{},{attr:i})}))),{elementsDescriptor:n.sort((function(t,e){return t.index-e.index})),flexyAttributeElAttr:i}}render(){var t=this;const e=this.retrieveSliderAttributes();this.options.onRender(this,e);const n=f(this.sliderContainer);e.elementsDescriptor.map((function(t){const e=n.children[t.index];e.classList.remove("flexy-item-is-visible"),t.fits&&e.classList.add("flexy-item-is-visible"),t.attr&&t.attr.style&&Object.keys(t.attr.style).map((function(n){e.style[n]=t.attr.style[n]}))})),f(this.options.flexyAttributeEl).removeAttribute("data-flexy-dragging"),Object.keys(e.flexyAttributeElAttr).map((function(n){f(t.options.flexyAttributeEl).setAttribute(n,e.flexyAttributeElAttr[n])}))}}var D=n(1601),O=n.n(D),T=n(6130);const M=function(t){return t&&"[object Function]"==={}.toString.call(t)?t():t};function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function I(t){for(var e=1;e * > *"),u=new A((function(){const t=M(n);return t?t.querySelector(".flexy-items"):null}),I(I(I(I({flexyAttributeEl:n,elementsThatDoNotStartDrag:[".twentytwenty-handle"]},e.event&&!l?{initialDragEvent:e.event}:{}),{},{autoplay:!!(Object.keys(t.dataset).indexOf("autoplay")>-1&&parseInt(t.dataset.autoplay,10))&&t.dataset.autoplay},t.querySelector(".flexy-pills")?{pillsContainerSelector:t.querySelector(".flexy-pills").firstElementChild}:{}),{},{leftArrow:r,rightArrow:s,scaleRotateEffect:!1,onDragStart:function(t){t.target.closest(".flexy-items")&&Array.from(t.target.closest(".flexy-items").querySelectorAll(".zoomImg")).map((function(t){o()(t).stop().fadeTo(120,0)}))},wrapAroundMode:"viewport"===t.dataset.wrap?"viewport":"container"},i?{pillsFlexyInstance:i}:{}),{},{onSlideChange:function(t,e){O().trigger("blocksy:frontend:flexy:slide-change",{instance:t,payload:e})}},e.flexyOptions||{}));if(i){const t=new A(i,I(I({elementsThatDoNotStartDrag:[".twentytwenty-handle"],wrapAroundMode:"viewport"===i.dataset.wrap?"viewport":"container"},e.event&&l?{initialDragEvent:e.event}:{}),{},{leftArrow:i.parentNode.querySelector(".flexy-arrow-prev"),rightArrow:i.parentNode.querySelector(".flexy-arrow-next")},i.closest(".thumbs-left")&&"mobile"!==(0,T.C)({withTablet:!0})?{orientation:"vertical"}:{}));i.flexy=t}return t.flexy=u,u}}}]);