1!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";_.mixin({select:(t,e)=>{if(!t)throw new Error("Please, provide a selector");return e?e.querySelector(t):document.querySelector(t)},selectAll:(t,e)=>{if(!t)throw new Error("Please, provide a selector");return e?e.querySelectorAll(t):document.querySelectorAll(t)},getStyle:t=>{if(!t)throw new Error("Please, provide a selector");return getComputedStyle(t)},buildTimeline:(t,e,...i)=>{let s=e(...i);_.forEach(s,(e=>{t.to(e.element,e.animation,e.scene)}))},getSize:t=>{t.clientWidth,t.clientHeight},addClass:(t,e)=>{t.classList.add(e)},removeClass:(t,e)=>{t.classList.remove(e)},containClass:(t,e)=>{if(t.classList.contains(e))return!0},stripHTML:t=>{let e=document.createElement("DIV");return e.innerHTML=t,e.textContent||e.innerText||""},splitty:_.wrap(_.escape,(function(t,e){return'<span class="-phrase"><span>'+t(e)+"</span></span>"}))});var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var i=e((function(e){!function(t,i){e.exports?e.exports=i():t.EvEmitter=i()}("undefined"!=typeof window?window:t,(function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},s=i[t]=i[t]||[];return-1==s.indexOf(e)&&s.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 s=i.indexOf(e);return-1!=s&&i.splice(s,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 s=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var o=i[n];s&&s[o]&&(this.off(t,o),delete s[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}))})),s=e((function(t){!function(e,i){t.exports?t.exports=i():e.getSize=i()}(window,(function(){function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],s=i.length;function n(t){var i=getComputedStyle(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}var o,r=!1;function a(e){if(function(){if(!r){r=!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 s=n(e);o=200==Math.round(t(s.width)),a.isBoxSizeOuter=o,i.removeChild(e)}}(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var l=n(e);if("none"==l.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<s;e++)t[i[e]]=0;return t}();var c={};c.width=e.offsetWidth,c.height=e.offsetHeight;for(var h=c.isBorderBox="border-box"==l.boxSizing,d=0;d<s;d++){var u=i[d],p=l[u],f=parseFloat(p);c[u]=isNaN(f)?0:f}var g=c.paddingLeft+c.paddingRight,v=c.paddingTop+c.paddingBottom,m=c.marginLeft+c.marginRight,y=c.marginTop+c.marginBottom,_=c.borderLeftWidth+c.borderRightWidth,S=c.borderTopWidth+c.borderBottomWidth,w=h&&o,b=t(l.width);!1!==b&&(c.width=b+(w?0:g+_));var E=t(l.height);return!1!==E&&(c.height=E+(w?0:v+S)),c.innerWidth=c.width-(g+_),c.innerHeight=c.height-(v+S),c.outerWidth=c.width+m,c.outerHeight=c.height+y,c}}return a}))})),n=e((function(t){!function(e,i){t.exports?t.exports=i():e.matchesSelector=i()}(window,(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 s=e[i]+"MatchesSelector";if(t[s])return s}}();return function(e,i){return e[t](i)}}))})),o=e((function(t){!function(e,i){t.exports?t.exports=i(e,n):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,(function(t,e){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}},s=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?s.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,s){t=i.makeArray(t);var n=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(s){e(t,s)&&n.push(t);for(var i=t.querySelectorAll(s),o=0;o<i.length;o++)n.push(i[o])}else n.push(t)})),n}
1,i.debounceMethod=function(t,e,i){i=i||100;var s=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];clearTimeout(t);var e=arguments,o=this;this[n]=setTimeout((function(){s.apply(o,e),delete o[n]}),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 n=t.console;return i.htmlInit=function(e,s){i.docReady((function(){var o=i.toDashed(s),r="data-"+o,a=document.querySelectorAll("["+r+"]"),l=document.querySelectorAll(".js-"+o),c=i.makeArray(a).concat(i.makeArray(l)),h=r+"-options",d=t.jQuery;c.forEach((function(t){var i,o=t.getAttribute(r)||t.getAttribute(h);try{i=o&&JSON.parse(o)}catch(e){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+e))}var a=new e(t,i);d&&d.data(t,s,a)}))}))},i}))})),r=e((function(t){!function(e,i){t.exports?t.exports=i(e,s):(e.Flickity=e.Flickity||{},e.Flickity.Cell=i(e,e.getSize))}(window,(function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var s=i.prototype;return s.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},s.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]=""},s.getSize=function(){this.size=e(this.element)},s.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},s.updateTarget=s.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},s.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},s.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},s.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},s.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},s.remove=function(){this.element.parentNode.removeChild(this.element)},i}))})),a=e((function(t){!function(e,i){t.exports?t.exports=i():(e.Flickity=e.Flickity||{},e.Flickity.Slide=i())}(window,(function(){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,s=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+s*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},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}))})),l=e((function(t){!function(e,i){t.exports?t.exports=i(e,o):(e.Flickity=e.Flickity||{},e.Flickity.animatePrototype=i(e,e.fizzyUIUtils))}(window,(function(t,e){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)}
1,_shiftCells:function(t,e,i){for(var s=0;s<t.length;s++){var n=t[s],o=e>0?i:0;n.wrapShift(o),e-=n.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}))})),c=e((function(t){!function(e,n){if(t.exports)t.exports=n(e,i,s,o,r,a,l);else{var c=e.Flickity;e.Flickity=n(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,c.Cell,c.Slide,c.animatePrototype)}}(window,(function(t,e,i,s,n,o,r){var a=t.jQuery,l=t.getComputedStyle,c=t.console;function h(t,e){for(t=s.makeArray(t);t.length;)e.appendChild(t.shift())}var d=0,u={};function p(t,e){var i=s.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var n=u[this.element.flickityGUID];return n.option(e),n}a&&(this.$element=a(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(e),this._create()}else c&&c.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;s.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 s=this.options.on[i];this.on(i,s)}p.createMethods.forEach((function(t){this[t]()}),this),this.options.watchCSS?this.watchCSS():this.activate()},f.option=function(t){s.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(),h(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 s.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 n(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 s=this.cells.length,n=t;n<s;n++){var o=this.cells[n];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=s?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);
vendor: 5,453 bytes, line 1
1var e="left"==this.originSide?"marginRight":"marginLeft",i=this._getCanCellFit();this.cells.forEach((function(s,n){if(t.cells.length){var r=t.outerWidth-t.firstMargin+(s.size.outerWidth-s.size[e]);i.call(this,n,r)||(t.updateTarget(),t=new o(this),this.slides.push(t)),t.addCell(s)}else t.addCell(s)}),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+)%$/),s=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*s}},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 g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return f.setCellAlign=function(){var t=g[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 s=[];t>0;){var n=this.cells[e];if(!n)break;s.push(n),e+=i,t-=n.size.outerWidth}return s},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",s=this.slideableWidth-this.getLastCell().size[i],n=s<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[e],r=s-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach((function(t){n?t.target=s*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,r))}),this)}},f.dispatchEvent=function(t,e,i){var s=e?[e].concat(i):i;if(this.emitEvent(t,s),a&&this.$element){var n=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var o=a.Event(e);o.type=t,n=o}this.$element.trigger(n,i)}},f.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=s.modulo(t,this.slides.length)),this.slides[t])){var n=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=n&&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=s.modulo(t,e),n=Math.abs(i-this.selectedIndex),o=Math.abs(i+e-this.selectedIndex),r=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&o<n?t+=e:!this.isDragSelect&&r<n&&(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)if(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 s=this.queryCell(t);if(s){var n=this.getCellSlideIndex(s);this.select(n,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=s.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){var e=this.getCell(t);return e||(t=s.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 n=[],o=e-t;o<=e+t;o++){var r=this.options.wrapAround?s.modulo(o,i):o,a=this.slides[r];a&&(n=n.concat(a.getCellElements()))}return n},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()},s.debounceMethod(p,"onresize",150),f.resize=function(){if(this.isActive){this.get
1Size(),this.options.wrapAround&&(this.x=s.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),h(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]},s.extend(f,r),p.data=function(t){var e=(t=s.getQueryElement(t))&&t.flickityGUID;return e&&u[e]},s.htmlInit(p,"flickity"),a&&a.bridget&&a.bridget("flickity",p),p.setJQuery=function(t){a=t},p.Cell=n,p.Slide=o,p}))})),h=e((function(t){!function(e,s){t.exports?t.exports=s(e,i):e.Unipointer=s(e,e.EvEmitter)}(window,(function(t,e){function i(){}var s=i.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 s=(i=void 0===i||i)?"addEventListener":"removeEventListener",n="mousedown";t.PointerEvent?n="pointerdown":"ontouchstart"in t&&(n="touchstart"),e[s](n,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 n={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return s._bindPostStartEvents=function(e){if(e){var i=n[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])}
1,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])},i.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},i}))})),d=e((function(t){!function(e,i){t.exports?t.exports=i(e,h):e.Unidragger=i(e,e.Unipointer)}(window,(function(t,e){function i(){}var s=i.prototype=Object.create(e.prototype);s.bindHandles=function(){this._bindHandles(!0)},s.unbindHandles=function(){this._bindHandles(!1)},s._bindHandles=function(e){for(var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",s=e?this._touchActionValue:"",n=0;n<this.handles.length;n++){var o=this.handles[n];this._bindStartEvent(o,e),o[i]("click",this),t.PointerEvent&&(o.style.touchAction=s)}},s._touchActionValue="none",s.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 n={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return s.okayPointerDown=function(t){var e=n[t.target.nodeName],i=o[t.target.type],s=!e||i;return s||this._pointerReset(),s},s.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},s.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},s._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},s.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},s.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},s._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},s._dragStart=function(t,e){this.isDragging=!0,this.isPreventing
1Clicks=!0,this.dragStart(t,e)},s.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},s._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},s.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},s._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},s.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},s.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},s._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)))},s.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}))})),u=(e((function(t){!function(e,i){t.exports?t.exports=i(e,c,d,o):e.Flickity=i(e,e.Flickity,e.Unidragger,e.fizzyUIUtils)}(window,(function(t,e,i,s){s.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag");var n=e.prototype;s.extend(n,i.prototype),n._touchActionValue="pan-y";var o="createTouch"in document,r=!1;n._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),o&&!r&&(t.addEventListener("touchmove",(function(){})),r=!0)},n.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},n.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},n.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")},n.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},n.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},n._uiChangeDrag=function(){delete this.isFreeScrolling},n.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=l(),t.addEventListener("scroll",this),this._pointerDownDefault(e,i)):this._pointerDownDefault(e,i)},n._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var a={INPUT:!0,TEXTAREA:!0,SELECT:!0};function l(){return{x:t.pageXOffset,y:t.pageYOffset}}return n.pointerDownFocus=function(t){a[t.target.nodeName]||this.focus()},n._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,s=a[t.target.nodeName];e||i||s||t.preventDefault()},n.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},n.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},n.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},n.dragStart=function(e,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[i]))},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},n.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var s=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x=i.x%this.slideableWidth);var n=this.dragStartPosition+i.x*s;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);n=n>o?.5*(n+o):n;var r=Math.min(-this.getLastSlide().target,this.dragStartPosition);n=n<r?.5*(n+r):n}this.dragX=n,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])}},n.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 s=this.getRestingPosition();this.isFreeScrolling=-s>this.slides[0].target&&-s<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])}},n.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),s=this._getClosestResting(t,e,-1);return i.distance<s.distance?i.index:s.index}
vendor: 4,213 bytes, lines 1-2
1,n._getClosestResting=function(t,e,i){for(var s=this.selectedIndex,n=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,n)&&(s+=i,n=e,null!==(e=this.getSlideDistance(-t,s)));)e=Math.abs(e);return{distance:n,index:s-i}},n.getSlideDistance=function(t,e){var i=this.slides.length,n=this.options.wrapAround&&i>1,o=n?s.modulo(e,i):e,r=this.slides[o];if(!r)return null;var a=n?this.slideableWidth*Math.floor(e/i):0;return t-(r.target+a)},n.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},n.staticClick=function(t,e){var i=this.getParentCell(t.target),s=i&&i.element,n=i&&this.cells.indexOf(i) 2;this.dispatchEvent("staticClick",t,[e,s,n])},n.onscroll=function(){var t=l(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}))})),e((function(t){!function(e,i){t.exports?t.exports=i(e,c,h,o):i(e,e.Flickity,e.Unipointer,e.fizzyUIUtils)}(window,(function(t,e,i,s){var n="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(n,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(n,"path"),i=function(t){if("string"==typeof t)return t;return"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=s.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()},s.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var r=e.prototype;return r._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},r.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},r.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=o,e}))})),e((function(t){!function(e,i){t.exports?t.exports=i(e,c,h,o):i(e,e.Flickity,e.Unipointer,e.fizzyUIUtils)}
2(window,(function(t,e,i,s){function n(t){this.parent=t,this._create()}n.prototype=Object.create(i.prototype),n.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))},n.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},n.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},n.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},n.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],s=this.dots.length,n=s+t,o=s;o<n;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)},n.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach((function(t){this.holder.removeChild(t)}),this)},n.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"))},n.prototype.onTap=n.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)}},n.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=n,s.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new n(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=n,e}))})),e((function(t){!function(e,s){t.exports?t.exports=s(i,o,c):s(e.EvEmitter,e.fizzyUIUtils,e.Flickity)}(window,(function(t,e,i){function s(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}s.prototype=Object.create(t.prototype),s.prototype.play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},s.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)}},s.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},s.prototype.clear=function(){clearTimeout(this.timeout)},s.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},s.prototype.unpause=function(){"paused"==this.state&&this.play()},s.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},s.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var n=i.prototype;return n._createPlayer=function(){this.player=new s(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},n.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},n.playPlayer=function(){this.player.play()},n.stopPlayer=function(){this.player.stop()},n.pausePlayer=function(){this.player.pause()},n.unpausePlayer=function(){this.player.unpause()},n.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},n.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},n.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=s,i}))})),e((function(t){!function(e,i){t.exports?t.exports=i(e,c,o):i(e,e.Flickity,e.fizzyUIUtils)}
2(window,(function(t,e,i){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 n=function(t){var e=document.createDocumentFragment();return t.forEach((function(t){e.appendChild(t.element)})),e}(i),o=e==s;if(o)this.slider.appendChild(n);else{var r=this.cells[e].element;this.slider.insertBefore(n,r)}if(0===e)this.cells=i.concat(this.cells);else if(o)this.cells=this.cells.concat(i);else{var a=this.cells.splice(e,s-e);this.cells=this.cells.concat(i).concat(a)}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 s=this.cells.length-1;e.forEach((function(t){t.remove();var e=this.cells.indexOf(t);s=Math.min(e,s),i.removeFrom(this.cells,t)}),this),this.cellChange(s,!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 s=this.getCell(i);s&&(this.selectedIndex=this.getCellSlideIndex(s)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}))})),e((function(t){!function(e,i){t.exports?t.exports=i(e,c,o):i(e,e.Flickity,e.fizzyUIUtils)}(window,(function(t,e,i){e.createMethods.push("_createLazyload");var s=e.prototype;function n(t,e){this.img=t,this.flickity=e,this.load()}return s._createLazyload=function(){this.on("select",this.lazyLoad)},s.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,s=this.getAdjacentCellElements(e),o=[];s.forEach((function(t){var e=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),s=t.getAttribute("data-flickity-lazyload-src"),n=t.getAttribute("data-flickity-lazyload-srcset");if(e||s||n)return[t]}var o="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",r=t.querySelectorAll(o);return i.makeArray(r)}(t);o=o.concat(e)})),o.forEach((function(t){new n(t,this)}),this)}},n.prototype.handleEvent=i.handleEvent,n.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")},n.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},n.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},n.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),s=i&&i.element;this.flickity.cellSizeChange(s),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,s)},e.LazyLoader=n,e}))})),e((function(t){window,t.exports&&(t.exports=c)}))); 3/*! 4 * getSize v2.0.3 5 * measure size of elements 6 * MIT license 7 */class p{constructor(t){this.el=t,this.slider=_.select(".-slider__wrap",this.el),this.prev=_.select(".-slide__prev",this.el),this.next=_.select(".-slide__next",this.el),this.length=_.selectAll(".-slide",this.slider).length,this.init()}init(){this._buildFlkty(),this._addControls()}_buildFlkty(){this.flkty=new u(this.slider,{cellAlign:"left",contain:!0,prevNextButtons:!1,wrapAround:!0,pageDots:!1,on:{ready:t=>{this._hideControls(),this._hideOnIndex(t)},change:t=>{this._hideControls(),this._hideOnIndex(t)}}})}_addControls(){this.prev.addEventListener("click",(()=>{this.flkty.previous(!0)})),this.next.addEventListener("click",(()=>{this.flkty.next(!0)}))}_hideControls(){this.length<=1&&(_.addClass(this.prev,"is--hide"),_.addClass(this.next,"is--hide"))}_hideOnIndex(t){console.log(t)}}_.forEach(_.selectAll(".-slider--default"),(t=>{new p(t)}));const f=new class{constructor(t){this.popup={},this.popup.el=t,this.popup.close=_.select(".popup__close",this.popup.el),this.popup.overlay=_.select(".popup__overlay",this.popup.el),this.popup.pic=_.select(".pic",this.popup.el),this.popup.one=_.select(".first__step",this.popup.el),this.popup.two=_.select(".second__step",this.popup.el),this.popup.input=_.select("input[name=code]",this.popup.el),this.popup.predownload=_.select(".predownload",this.popup.el),this.popup.download=_.select(".download--final",this.popup.el),this.state=!1,this.code=this.popup.el.getAttribute("data-code"),this.init()}init(){console.log(this),this._listeners()}_listeners(){this.popup.close.addEventListener("click",this._state.bind(this)),this.popup.overlay.addEventListener("click",this._state.bind(this)),this.popup.predownload.addEventListener("click",this._predownload.bind(this)),this.popup.input.addEventListener("input",this._val
7idate.bind(this)),this.popup.download.addEventListener("click",this._download.bind(this))}_state(){this.state?(_.removeClass(this.popup.el,"is--active"),_.removeClass(this.popup.two,"is--active")):(_.addClass(this.popup.el,"is--active"),_.addClass(this.popup.one,"is--active")),this.state=!this.state}_src(t){this.popup.pic.setAttribute("src",t),this.popup.download.setAttribute("href",t)}_predownload(){_.addClass(this.popup.two,"is--active"),_.removeClass(this.popup.one,"is--active")}_validate(){this.popup.input.value==this.code?_.removeClass(this.popup.download,"is--disabled"):_.addClass(this.popup.download,"is--disabled")}_download(){_.containClass(event.currentTarget,"is--disabled")&&event.preventDefault()}}(_.select(".popup--download"));class g{constructor(t){this.DOM={},this.DOM.el=t,this.DOM.triggers={},this.DOM.triggers.pic=_.select(".img_wrap",this.DOM.el),this.DOM.triggers.txt=_.select(".descarga-corp",this.DOM.el),this.DOM.src=_.select("img",this.DOM.triggers.pic).getAttribute("src"),this.init()}init(){this._listeners()}_listeners(){this.DOM.triggers.pic.addEventListener("click",this._open.bind(this)),this.DOM.triggers.txt.addEventListener("click",this._open.bind(this))}_state(){console.log(this)}_open(){event.preventDefault(),f._src(this.DOM.src),f._state()}}_.forEach(_.selectAll(".-download--popup"),(t=>{new g(t)}));var v=document.createElement("script");console.log("hola adri"),v.src="https://www.youtube.com/iframe_api";var m=document.getElementsByTagName("script")[0];m.parentNode.insertBefore(v,m),document.querySelectorAll(".section__video--yt .player");var y=[];document.querySelectorAll(".section__video--yt").forEach((function(t){var e=t.querySelector(".video__play"),i=e.getAttribute("data-vid");e.onclick=function(){for(var e=0;e<y.length;e++)y[e].stopVideo();document.querySelectorAll(".section__video--yt").forEach((function(t){t.classList.remove("is--playing")})),t.classList.add("is--playing"),y[i].playVideo()}}));const S={item:document.querySelectorAll(".-ui-selector"),_display:function(){S.item.forEach((function(t){var e=t.querySelector("button");t.querySelector("ul"),e.onclick=function(){t.classList.contains("is--active")?t.classList.remove("is--active"):t.classList.add("is--active")}}))},_mouseLeave:function(){S.item.forEach((function(t){t.querySelector("ul").onmouseleave=function(){t.classList.remove("is--active")}}))},_init:function(){S._display(),S._mouseLeave()}},w={full:document.querySelectorAll(".swiper-full"),links:document.querySelectorAll(".section__pages"),gallery:document.querySelectorAll(".swiper-gallery"),index:null,_init:function(){w.full.forEach((function(t){var e=document.querySelector(".section__slider .swiper__next"),i=document.querySelector(".section__slider .swiper__prev");new Swiper(t,{slidesPerView:1,watchOverflow:!0,grabCursor:!0,navigation:{nextEl:e,prevEl:i},speed:1e3,autoplay:{delay:5e3},on:{init:function(){w.index=document.querySelector(".section__slider .swiper-slide-active").getAttribute("data-slide"),document.querySelectorAll(".swiper__text .wrap").forEach((function(t){t.classList.remove("is-active")})),document.querySelectorAll(".swiper__sub").forEach((function(t){t.classList.remove("is-active")})),document.querySelector('.swiper__text .wrap[data-slide="'+w.index+'"]').classList.add("is-active"),document.querySelector('.swiper__sub[data-slide="'+w.index+'"]').classList.add("is-active")},transitionEnd:function(t){w.index=document.querySelector(".section__slider .swiper-slide-active").getAttribute("data-slide"),document.querySelectorAll(".swiper__text .wrap").forEach((function(t){t.classList.remove("is-active")})),document.querySelectorAll(".swiper__sub").forEach((function(t){t.classList.remove("is-active")})),document.querySelector('.swiper__text .wrap[data-slide="'+w.index+'"]').classList.add("is-active"),document.querySelector('.swiper__sub[data-slide="'+w.index+'"]').classList.add("is-active")}}})})),w.links.forEach((function(t){var e=t.querySelector(".swiper-links"),i=t.querySelector(".swiper__next"),s=t.querySelector(".swiper__prev");new Swiper(e,{clickable:!0,watchOverflow:!0,setWrapperSize:!0,slidesPerView:3,slidesPerGroup:3,speed:700,spaceBetween:60,grabCursor:!0,navigation:{nextEl:i,prevEl:s},breakpoints:{1024:{slidesPerView:2,slidesPerGroup:2},768:{slidesPerView:1.1,spaceBetween:20,slidesPerGroup:1}}})}
7)),w.gallery.forEach((function(t){new Swiper(t,{slidesPerView:1,watchOverflow:!0,grabCursor:!0,pagination:{el:".swiper__pagination",type:"bullets",clickable:!0}})}))}},b=function(){document.querySelectorAll(".section__video--file").forEach((function(t){var e=t.querySelector(".video__play");t.querySelector(".video__cover");var i=t.querySelector("video");e.onclick=function(){i.play(),t.classList.add("is--playing")},i.onended=function(){t.classList.remove("is--playing")}}))},E={first:document.querySelector(".section__timeline .gallery:first-of-type"),hito_last:document.querySelector(".hito:last-of-type"),gallery_last:document.querySelector(".gallery:last-of-type"),hito_alt:document.querySelector(".hito__alt"),_init:function(){E.first&&(E.first.classList.add("gallery--active"),E.first.classList.add("gallery--first")),E.hito_last&&E.hito_last.clientHeight<=E.gallery_last.clientHeight&&(E.hito_last.style.paddingBottom=E.gallery_last.clientHeight+"px")},_galleryPos:function(){var t=document.querySelector(".section__timeline");if(t){var e=t.getBoundingClientRect(),i=document.querySelector(".new_header"),s=i.clientHeight,n=document.querySelectorAll(".section__timeline .gallery"),o=document.querySelector(".hito .-ui-col-50").clientWidth;if(E.hito_alt){E.hito_alt.style.width=o+"px",E.hito_alt.style.left=window.innerWidth/2+"px";var r=document.querySelector(".gallery--active").querySelector("img").getAttribute("alt");""!=r?(E.hito_alt.querySelector(".txt").innerHTML=r,E.hito_alt.classList.add("is--active")):E.hito_alt.classList.remove("is--active")}n.forEach((function(t){t.style.width=o+"px",t.style.left=window.innerWidth/2+"px",1==t.querySelectorAll("li").length&&t.classList.add("gallery--one-child"),i.classList.contains("is--sticky")?TweenLite.to(t,.1,{top:s,ease:null}):TweenLite.to(t,.1,{top:e.top,ease:null})}));const l=scrollama();var a=1-s/100;l.setup({step:".hito",offset:a,debug:!1}).onStepEnter((function(t){var e=t.element.getAttribute("data-step");document.querySelector('.gallery[data-step="'+e+'"]').classList.add("gallery--active");var i=document.querySelector(".gallery--active").querySelector("img").getAttribute("alt");""!=i?(E.hito_alt.querySelector(".txt").innerHTML=i,E.hito_alt.classList.add("is--active")):E.hito_alt.classList.remove("is--active")})).onStepExit((function(t){var e=t.element.getAttribute("data-step"),i=document.querySelector('.gallery[data-step="'+e+'"]');document.querySelector('.gallery[data-step="'+e+'"] img'),"up"==t.direction&&i.classList.contains("gallery--first")||i.classList.remove("gallery--active")})),window.addEventListener("resize",l.resize)}},_onScroll:function(){document.querySelectorAll(".section__timeline .gallery").forEach((function(t){var e=document.documentElement;window.pageXOffset||e.scrollLeft,e.clientLeft;var i=(window.pageYOffset||e.scrollTop)-(e.clientTop||0);document.querySelector(".gallery--active"),i>120?TweenLite.to(t,.3,{top:i-120,ease:null}):TweenLite.to(t,.3,{top:i,ease:null})}))}},x={ref_col_right:document.querySelector(".-ui-sizer .-ui-col-66"),grid_left:document.querySelectorAll(".-ui-grid--left"),image_gap:document.querySelectorAll(".-ui-image-gap"),slider_home:document.querySelector(".section__slider"),slide_more:document.querySelector(".section__slider .slide__plus"),_gridLeft:function(){x.grid_left.forEach((function(t){var e=t.querySelector(".col:first-child");t.style.paddingLeft=x.gap_left+"px",e.style.width=x.ref_col.width+"px"}))},_sliderHome:function(){if(x.slider_home){var t=document.querySelector(".header__main").clientHeight;x.slider_home.style.height=window.innerHeight-t+"px"}},_sliderPlus:function(){if(x.slider_home){x.slide_more.style.right=(window.innerWidth-parseInt(x.gap_right.width))/2+parseInt(x.gap_right.paddingRight)+"px";var t=document.querySelector("main section:nth-child(2)");x.slide_more.onclick=function(){TweenMax.to(window,1,{scrollTo:{y:t,offsetY:150}})}}},_init:function(){x._gridLeft(),x._sliderHome(),x._sliderPlus()}},L={loader:document.querySelector(".loader"),_init:function(){setTimeout((function(){AOS.init({disable:"mobile"}),TweenLite.to(L.loader,.5,{opacity:0}
7)}),500)}},C=function(){var t=new Date;t.getDay().toString(),t.getHours().toString()},A=function(){var t={href:"http://website/Policy"};"ES"==document.documentElement.lang&&(t={message:"Bienvenido a Chillida Leku. Esta web usa cookies, puedes leer nuestra polÃtica",dismiss:"OK",link:"aquÃ",href:"https://www.museochillidaleku.com/downloads/legal/chillida-leku-cookies-es.pdf"}),"EU"==document.documentElement.lang&&(t={message:"Bienvenido a Chillida Leku. Esta web usa cookies, puedes leer nuestra polÃtica",dismiss:"OK",link:"aquÃ",href:"https://www.museochillidaleku.com/downloads/legal/chillida-leku-cookies-es.pdf"}),"EN"==document.documentElement.lang&&(t={message:"Welcome to Chillida Leku. This site uses cookies, read our policy",dismiss:"OK",link:"here",href:"https://www.museochillidaleku.com/downloads/legal/chillida-leku-cookies-es.pdf"}),"FR"==document.documentElement.lang&&(t={message:"Welcome to Chillida Leku. This site uses cookies, read our policy",dismiss:"OK",link:"here",href:"https://www.museochillidaleku.com/downloads/legal/chillida-leku-cookies-es.pdf"}),window.addEventListener("load",(function(){window.cookieconsent.initialise({palette:{popup:{background:"#111111",text:"#ffffff"},button:{background:"#9d9d9d",text:"#ffffff"}},content:t})}))},D=function(){Modernizr.objectfit||document.querySelectorAll("img.objectfit").forEach((function(t){t.naturalWidth>=t.naturalHeight?t.classList.add("wider"):t.classList.add("taller")}))},k={popup_modal:document.querySelector(".popup--default"),popup_header:document.querySelector(".popup__header"),_init:function(){k.popup_modal&&(setTimeout((function(){cookies.get("popup")||k.popup_modal.classList.add("is--active"),cookies.set("popup","showed")}),1500),k.popup_modal.querySelector(".popup__close").onclick=function(){k._closeModal()},k.popup_modal.querySelector(".popup__overlay").onclick=function(){k._closeModal()}),k.popup_header&&(setTimeout((function(){cookies.get("popup_header")||k.popup_header.classList.add("is--active"),cookies.set("popup_header","showed")}),1500),k.popup_header.querySelector(".popup__close").onclick=function(){k._closePopupHeader()})},_popupHeight:function(){if(k.popup_header){var t=document.querySelector(".header__main"),e=k.popup_header.clientHeight;t.style.top=e+"px"}},_closeModal:function(){k.popup_modal.classList.remove("is--active")},_closePopupHeader:function(){k.popup_header.classList.remove("is--active")}},P={selector:document.querySelector(".agenda__period"),calendar:document.querySelector(".agenda__calendar"),noresults:document.querySelector(".agenda__noresults"),_init:function(){if(P.selector&&(P.selector.querySelector("h1").onclick=function(){P.selector.classList.contains("is--active")?(P.selector.classList.remove("is--active"),P.calendar.classList.remove("is--active")):(P.selector.classList.add("is--active"),P.calendar.classList.add("is--active"))}),P.calendar){var t=document.querySelector("html").getAttribute("lang"),e=P.calendar,i=new FullCalendar.Calendar(e,{plugins:["dayGrid","moment"],locale:"en",end:null,header:{left:"prev next",right:"title"},showNonCurrentDates:!0,columnHeader:!1,height:350,titleFormat:"{MMMM YYYY {}}",titleRangeSeparator:"",datesRender:function(){document.querySelectorAll(".agenda__calendar .fc-day-top").forEach((function(t){t.onclick=function(){var e=moment(t.getAttribute("data-date"));document.querySelectorAll(".agenda__event").forEach((function(t){var i=moment(t.getAttribute("data-start")),s=moment(t.getAttribute("data-end"));document.querySelector("body").classList.contains("page--eventos-pasados")||(e.isSameOrAfter(i,"day")&&e.isSameOrBefore(s,"day")?t.classList.remove("hide-by-date"):t.classList.add("hide-by-date"))})),document.querySelectorAll(".agenda__period-txt li").forEach((function(t){t.classList.remove("is--active")})),document.querySelectorAll(".agenda__period-select li").forEach((function(t){t.classList.remove("is--active")})),document.querySelector(".agenda__period h1 span").innerHTML=e.format("D/M/Y"),P.selector.classList.remove("is--active"),P.calendar.classList.remove("is--active"),s(),n(),o()}}))}});function s(){document.querySelectorAll(".agenda__row").forEach((function(t){t.querySelectorAll(".agenda__event").length==t.querySelectorAll(".hide-by-date:not(.hide-by-pub)").length+t.querySelectorAll(".hide-by-pub:not(.hide-by-date)").length+t.querySelectorAll(".hide-by-pub.hide-by-date").length?t.classList.add("is--hidebyresults"):t.classList.remove("is--hidebyresults")}))}function n(){var t=[];document.querySelectorAll(".agenda__row").forEach((function(e){var i=[],s=[];e.querySelectorAll(".agenda__event:not(.hide-by-date):not(.hide-by-pub)").forEach((function(t){var e=moment(t.getAttribute("data-end"));i.push(e)})),(s=i.sort(((t,e)=>
7t.valueOf()-e.valueOf()))).forEach((function(t,i){e.querySelector('.agenda__event[data-end="'+t._i+'"]').style.order=i})),0!=s.length&&t.push(s[s.length-1])}))}function o(){let t=document.querySelector(".agenda__noresults"),e=document.querySelectorAll(".agenda__row").length,i=0;document.querySelectorAll(".agenda__row").forEach((function(t){t.classList.length>1&&(i+=1)})),console.log("total rows"+e),console.log("total hided"+i),t.style.display=e==i?"block":"none"}i.render(),"ES"==t&&i.setOption("locale","es"),"EU"==t&&i.setOption("locale","eu"),"FR"==t&&i.setOption("locale","fr"),document.querySelectorAll(".agenda__event").forEach((function(t){var e=moment(t.getAttribute("data-start")),i=moment(t.getAttribute("data-end")),s=moment(document.querySelector(".agenda__period-select .is--active").getAttribute("data-start")),n=moment(document.querySelector(".agenda__period-select .is--active").getAttribute("data-end"));(e.isSameOrBefore(n,"day")&&e.isSameOrAfter(s,"day")||i.isSameOrAfter(s,"day")&&e.isSameOrBefore(n,"day"))&&t.classList.remove("hide-by-date"),document.querySelector("body").classList.contains("page--eventos-pasados")&&t.classList.remove("hide-by-date"),function(t,e,i,s,n){var o=moment();i.isBefore(o,"day")&&t.classList.add("event--past")}(t,0,i)})),n(),s(),o(),document.querySelectorAll(".agenda__period-select li").forEach((function(t){t.onclick=function(){document.querySelectorAll(".agenda__period-select li").forEach((function(t){t.classList.remove("is--active")})),t.classList.add("is--active");var e=moment(t.getAttribute("data-start")),i=moment(t.getAttribute("data-end")),r=t.getAttribute("data-period");document.querySelector(".agenda__period h1 span").innerHTML=t.innerHTML,document.querySelectorAll(".agenda__period-txt li").forEach((function(t){var e=t.getAttribute("data-period");r==e?t.classList.add("is--active"):t.classList.remove("is--active")})),document.querySelectorAll(".agenda__event").forEach((function(t){var s=moment(t.getAttribute("data-start")),n=moment(t.getAttribute("data-end"));"prox"!=r?s.isSameOrBefore(i,"day")&&s.isSameOrAfter(e,"day")||n.isSameOrAfter(e,"day")&&s.isSameOrBefore(i,"day")?t.classList.remove("hide-by-date"):t.classList.add("hide-by-date"):n.isAfter(e)?t.classList.remove("hide-by-date"):t.classList.add("hide-by-date")})),P.selector.classList.remove("is--active"),P.calendar.classList.remove("is--active"),s(),n(),o()}})),document.querySelectorAll(".agenda__categories li").forEach((function(t){t.onclick=function(){document.querySelectorAll(".agenda__categories li").forEach((function(t){t.classList.remove("is--active")})),t.classList.add("is--active");var e=t.getAttribute("data-cat");document.querySelectorAll(".agenda__event").forEach((function(t){"todos"!=e?t.classList.contains(e)?t.classList.remove("hide-by-cat"):t.classList.add("hide-by-cat"):t.classList.remove("hide-by-cat")})),o()}})),document.querySelectorAll(".agenda__filter").forEach((function(t){let e=t.querySelector(".selected"),i=t.querySelector(".selected span"),r=e.getAttribute("data-original"),a=t.querySelector("ul");t.classList.contains("agenda__cats")&&(e.onclick=function(){t.classList.contains("is--filtered")?(document.querySelectorAll(".agenda__row").forEach((function(t){t.classList.remove("is--hidebyfilter")})),t.classList.remove("is--filtered"),i.innerHTML=r):t.classList.contains("is--active")?t.classList.remove("is--active"):t.classList.add("is--active"),o()},a.querySelectorAll("li").forEach((function(e){e.onclick=function(){t.classList.remove("is--active");var s=e.getAttribute("data-cat"),n=e.innerHTML;t.classList.add("is--filtered"),i.innerHTML=n,document.querySelectorAll(".agenda__row").forEach((function(t){t.getAttribute("data-cat")!=s&&t.classList.add("is--hidebyfilter")})),o()}}))),t.classList.contains("agenda__pubs")&&(e.onclick=function(){t.classList.contains("is--filtered")?(document.querySelectorAll(".agenda__event").forEach((function(t){t.classList.remove("hide-by-pub")})),t.classList.remove("is--filtered"),i.innerHTML=r,s(),n(),o()):t.classList.contains("is--active")?t.classList.remove("is--active"):t.classList.add("is--active")},a.querySelectorAll("li").forEach((function(e){e.onclick=function(){t.classList.remove("is--active");var r=e.getAttribute("data-pub"),a=e.innerHTML;t.classList.add("is--filtered"),i.innerHTML=a,document.querySelectorAll(".agenda__event").forEach((function(t){t.classList.contains(r)||t.classList.add("hide-by-pub")})),s(),n(),o()}})))}))}}},q=function(){window.onresize=function(){x._init(),Header._sticky(),Header._mainGap(),Header._navSizes(),w._init(),window.innerWidth>768&&E._galleryPos()}},z=function(){window.onscroll=function(t){window.innerWidth>768&&E._galleryPos()}};(function(){x._init(),S._init(),E._init(),b(),C(),A(),k._init(),P._init(),imagesLoaded(document.querySelector("main"),(function(t){D(),w._init()})),L._init(),window.innerWidth>768&&E._galleryPos()})(),q(),z()})); 8//# sourceMappingURL=app.min.js.map
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.