diff --git a/dist/js/explorer-1.min.js b/dist/js/explorer-1.min.js index 412cf702..19200373 100644 --- a/dist/js/explorer-1.min.js +++ b/dist/js/explorer-1.min.js @@ -1 +1 @@ -!function(){const e=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e),t=(...i)=>{let s=!1;"boolean"==typeof i[0]&&(s=i.shift());let n=i[0];if(!n||"object"!=typeof n)throw new Error("extendee must be an object");const o=i.slice(1),a=o.length;for(let i=0;i(e=parseFloat(e)||0,Math.round((e+Number.EPSILON)*t)/t),s=function(e){return!!(e&&"object"==typeof e&&e instanceof Element&&e!==document.body)&&!e.__Panzoom&&(function(e){const t=getComputedStyle(e)["overflow-y"],i=getComputedStyle(e)["overflow-x"],s=("scroll"===t||"auto"===t)&&Math.abs(e.scrollHeight-e.clientHeight)>1,n=("scroll"===i||"auto"===i)&&Math.abs(e.scrollWidth-e.clientWidth)>1;return s||n}(e)?e:s(e.parentNode))},n="undefined"!=typeof window&&window.ResizeObserver||class{observe(e){if(this.observables.some((t=>t.el===e)))return;const t={el:e,size:{height:e.clientHeight,width:e.clientWidth}};this.observables.push(t)}unobserve(e){this.observables=this.observables.filter((t=>t.el!==e))}disconnect(){this.observables=[]}check(){const e=this.observables.filter((e=>{const t=e.el.clientHeight,i=e.el.clientWidth;if(e.size.height!==t||e.size.width!==i)return e.size.height=t,e.size.width=i,!0})).map((e=>e.el));e.length>0&&this.callback(e),window.requestAnimationFrame(this.boundCheck)}constructor(e){this.observables=[],this.boundCheck=this.check.bind(this),this.boundCheck(),this.callback=e}};class o{constructor(e){this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY}}const a=(e,t)=>t?Math.sqrt((t.clientX-e.clientX)**2+(t.clientY-e.clientY)**2):0,r=(e,t)=>t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e;class l{stop(){this._element.removeEventListener("mousedown",this._pointerStart,{passive:!1}),this._element.removeEventListener("touchstart",this._touchStart,{passive:!1}),this._element.removeEventListener("touchmove",this._move,{passive:!1}),this._element.removeEventListener("touchend",this._touchEnd),this._element.removeEventListener("touchcancel",this._touchEnd),window.removeEventListener("mousemove",this._move),window.removeEventListener("mouseup",this._pointerEnd)}_triggerPointerStart(e,t){return!!this._startCallback(e,t)&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}constructor(e,{start:t=(()=>!0),move:i=(()=>{}),end:s=(()=>{})}={}){this._element=e,this.startPointers=[],this.currentPointers=[],this._pointerStart=e=>{if(e.buttons>0&&0!==e.button)return;const t=new o(e);this.currentPointers.some((e=>e.id===t.id))||this._triggerPointerStart(t,e)&&(window.addEventListener("mousemove",this._move),window.addEventListener("mouseup",this._pointerEnd))},this._touchStart=e=>{for(const t of Array.from(e.changedTouches||[]))this._triggerPointerStart(new o(t),e)},this._move=e=>{const t=this.currentPointers.slice(),i="changedTouches"in e?Array.from(e.changedTouches).map((e=>new o(e))):[new o(e)];for(const e of i){const t=this.currentPointers.findIndex((t=>t.id===e.id));t<0||(this.currentPointers[t]=e)}this._moveCallback(t,this.currentPointers.slice(),e)},this._triggerPointerEnd=(e,t)=>{const i=this.currentPointers.findIndex((t=>t.id===e.id));return!(i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this._endCallback(e,t),0))},this._pointerEnd=e=>{e.buttons>0&&0!==e.button||this._triggerPointerEnd(new o(e),e)&&(window.removeEventListener("mousemove",this._move,{passive:!1}),window.removeEventListener("mouseup",this._pointerEnd,{passive:!1}))},this._touchEnd=e=>{for(const t of Array.from(e.changedTouches||[]))this._triggerPointerEnd(new o(t),e)},this._startCallback=t,this._moveCallback=i,this._endCallback=s,this._element.addEventListener("mousedown",this._pointerStart,{passive:!1}),this._element.addEventListener("touchstart",this._touchStart,{passive:!1}),this._element.addEventListener("touchmove",this._move,{passive:!1}),this._element.addEventListener("touchend",this._touchEnd),this._element.addEventListener("touchcancel",this._touchEnd)}}class c{option(e,t,...i){let s=(n=e=String(e),o=this.options,n.split(".").reduce((function(e,t){return e&&e[t]}),o));var n,o;return"function"==typeof s&&(s=s.call(this,this,...i)),void 0===s?t:s}localize(e,t=[]){return(e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,((e,i,s)=>{let n="";s?n=this.option(`${i[0]+i.toLowerCase().substring(1)}.l10n.${s}`):i&&(n=this.option(`l10n.${i}`)),n||(n=e);for(let e=0;et))}on(t,i){if(e(t)){for(const e of Object.entries(t))this.on(...e);return this}return String(t).split(" ").forEach((e=>{const t=this.events[e]=this.events[e]||[];-1==t.indexOf(i)&&t.push(i)})),this}once(t,i){if(e(t)){for(const e of Object.entries(t))this.once(...e);return this}return String(t).split(" ").forEach((e=>{const t=(...s)=>{this.off(e,t),i.call(this,this,...s)};t._=i,this.on(e,t)})),this}off(t,i){if(!e(t))return t.split(" ").forEach((e=>{const t=this.events[e];if(!t||!t.length)return this;let s=-1;for(let e=0,n=t.length;e1||Math.abs(t.left-this.dragStart.rect.left)>1))return e.preventDefault(),void e.stopPropagation();!1!==this.trigger("click",e)&&this.option("zoom")&&"toggleZoom"===this.option("click")&&(e.preventDefault(),e.stopPropagation(),this.zoomWithClick(e))}onWheel(e){!1!==this.trigger("wheel",e)&&this.option("zoom")&&this.option("wheel")&&this.zoomWithWheel(e)}zoomWithWheel(e){void 0===this.changedDelta&&(this.changedDelta=0);const t=Math.max(-1,Math.min(1,-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)),i=this.content.scale;let s=i*(100+t*this.option("wheelFactor"))/100;if(t<0&&Math.abs(i-this.option("minScale"))<.01||t>0&&Math.abs(i-this.option("maxScale"))<.01?(this.changedDelta+=Math.abs(t),s=i):(this.changedDelta=0,s=Math.max(Math.min(s,this.option("maxScale")),this.option("minScale"))),this.changedDelta>this.option("wheelLimit"))return;if(e.preventDefault(),s===i)return;const n=this.$content.getBoundingClientRect(),o=e.clientX-n.left,a=e.clientY-n.top;this.zoomTo(s,{x:o,y:a})}zoomWithClick(e){const t=this.$content.getClientRects()[0],i=e.clientX-t.left,s=e.clientY-t.top;this.toggleZoom({x:i,y:s})}attachEvents(){this.$content.addEventListener("load",this.onLoad),this.$container.addEventListener("wheel",this.onWheel,{passive:!1}),this.$container.addEventListener("click",this.onClick,{passive:!1}),this.initObserver();const e=new l(this.$container,{start:(t,i)=>{if(!this.option("touch"))return!1;if(this.velocity.scale<0)return!1;const n=i.composedPath()[0];if(!e.currentPointers.length){if(-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName))return!1;if(this.option("textSelection")&&((e,t,i)=>{const s=e.childNodes,n=document.createRange();for(let e=0;e=a.left&&i>=a.top&&t<=a.right&&i<=a.bottom)return o}return!1})(n,t.clientX,t.clientY))return!1}return!s(n)&&!1!==this.trigger("touchStart",i)&&("mousedown"===i.type&&i.preventDefault(),this.state="pointerdown",this.resetDragPosition(),this.dragPosition.midPoint=null,this.dragPosition.time=Date.now(),!0)},move:(t,i,s)=>{if("pointerdown"!==this.state)return;if(!1===this.trigger("touchMove",s))return void s.preventDefault();if(i.length<2&&!0===this.option("panOnlyZoomed")&&this.content.width<=this.viewport.width&&this.content.height<=this.viewport.height&&this.transform.scale<=this.option("baseScale"))return;if(i.length>1&&(!this.option("zoom")||!1===this.option("pinchToZoom")))return;const n=r(t[0],t[1]),o=r(i[0],i[1]),l=o.clientX-n.clientX,c=o.clientY-n.clientY,d=a(t[0],t[1]),h=a(i[0],i[1]),u=d&&h?h/d:1;this.dragOffset.x+=l,this.dragOffset.y+=c,this.dragOffset.scale*=u,this.dragOffset.time=Date.now()-this.dragPosition.time;const p=1===this.dragStart.scale&&this.option("lockAxis");if(p&&!this.lockAxis){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void s.preventDefault();const e=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockAxis=e>45&&e<135?"y":"x"}if("xy"===p||"y"!==this.lockAxis){if(s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation(),this.lockAxis&&(this.dragOffset["x"===this.lockAxis?"y":"x"]=0),this.$container.classList.add(this.option("draggingClass")),this.transform.scale===this.option("baseScale")&&"y"===this.lockAxis||(this.dragPosition.x=this.dragStart.x+this.dragOffset.x),this.transform.scale===this.option("baseScale")&&"x"===this.lockAxis||(this.dragPosition.y=this.dragStart.y+this.dragOffset.y),this.dragPosition.scale=this.dragStart.scale*this.dragOffset.scale,i.length>1){const t=r(e.startPointers[0],e.startPointers[1]),i=t.clientX-this.dragStart.rect.x,s=t.clientY-this.dragStart.rect.y,{deltaX:n,deltaY:a}=this.getZoomDelta(this.content.scale*this.dragOffset.scale,i,s);this.dragPosition.x-=n,this.dragPosition.y-=a,this.dragPosition.midPoint=o}else this.setDragResistance();this.transform={x:this.dragPosition.x,y:this.dragPosition.y,scale:this.dragPosition.scale},this.startAnimation()}},end:(t,i)=>{if("pointerdown"!==this.state)return;if(this._dragOffset={...this.dragOffset},e.currentPointers.length)return void this.resetDragPosition();if(this.state="decel",this.friction=this.option("decelFriction"),this.recalculateTransform(),this.$container.classList.remove(this.option("draggingClass")),!1===this.trigger("touchEnd",i))return;if("decel"!==this.state)return;const s=this.option("minScale");if(this.transform.scale.01){const e=this.dragPosition.midPoint||t,i=this.$content.getClientRects()[0];this.zoomTo(n,{friction:.64,x:e.clientX-i.left,y:e.clientY-i.top})}}});this.pointerTracker=e}initObserver(){this.resizeObserver||(this.resizeObserver=new n((()=>{this.updateTimer||(this.updateTimer=setTimeout((()=>{const e=this.$container.getBoundingClientRect();e.width&&e.height?((Math.abs(e.width-this.container.width)>1||Math.abs(e.height-this.container.height)>1)&&(this.isAnimating()&&this.endAnimation(!0),this.updateMetrics(),this.panTo({x:this.content.x,y:this.content.y,scale:this.option("baseScale"),friction:0})),this.updateTimer=null):this.updateTimer=null}),this.updateRate))})),this.resizeObserver.observe(this.$container))}resetDragPosition(){this.lockAxis=null,this.friction=this.option("friction"),this.velocity={x:0,y:0,scale:0};const{x:e,y:t,scale:i}=this.content;this.dragStart={rect:this.$content.getBoundingClientRect(),x:e,y:t,scale:i},this.dragPosition={...this.dragPosition,x:e,y:t,scale:i},this.dragOffset={x:0,y:0,scale:1,time:0}}updateMetrics(e){!0!==e&&this.trigger("beforeUpdate");const t=this.$container,s=this.$content,n=this.$viewport,o=s instanceof HTMLImageElement,a=this.option("zoom"),r=this.option("resizeParent",a);let l=this.option("width"),c=this.option("height"),d=l||(h=s,Math.max(parseFloat(h.naturalWidth||0),parseFloat(h.width&&h.width.baseVal&&h.width.baseVal.value||0),parseFloat(h.offsetWidth||0),parseFloat(h.scrollWidth||0)));var h;let u=c||(p=s,Math.max(parseFloat(p.naturalHeight||0),parseFloat(p.height&&p.height.baseVal&&p.height.baseVal.value||0),parseFloat(p.offsetHeight||0),parseFloat(p.scrollHeight||0)));var p;Object.assign(s.style,{width:l?`${l}px`:"",height:c?`${c}px`:"",maxWidth:"",maxHeight:""}),r&&Object.assign(n.style,{width:"",height:""});const f=this.option("ratio");d=i(d*f),u=i(u*f),l=d,c=u;const g=s.getBoundingClientRect(),m=n.getBoundingClientRect(),v=n==t?m:t.getBoundingClientRect();let b=Math.max(n.offsetWidth,i(m.width)),y=Math.max(n.offsetHeight,i(m.height)),x=window.getComputedStyle(n);if(b-=parseFloat(x.paddingLeft)+parseFloat(x.paddingRight),y-=parseFloat(x.paddingTop)+parseFloat(x.paddingBottom),this.viewport.width=b,this.viewport.height=y,a){if(Math.abs(d-g.width)>.1||Math.abs(u-g.height)>.1){const e=((e,t,i,s)=>{const n=Math.min(i/e||0,s/t);return{width:e*n||0,height:t*n||0}})(d,u,Math.min(d,g.width),Math.min(u,g.height));l=i(e.width),c=i(e.height)}Object.assign(s.style,{width:`${l}px`,height:`${c}px`,transform:""})}if(r&&(Object.assign(n.style,{width:`${l}px`,height:`${c}px`}),this.viewport={...this.viewport,width:l,height:c}),o&&a&&"function"!=typeof this.options.maxScale){const e=this.option("maxScale");this.options.maxScale=function(){return this.content.origWidth>0&&this.content.fitWidth>0?this.content.origWidth/this.content.fitWidth:e}}this.content={...this.content,origWidth:d,origHeight:u,fitWidth:l,fitHeight:c,width:l,height:c,scale:1,isZoomable:a},this.container={width:v.width,height:v.height},!0!==e&&this.trigger("afterUpdate")}zoomIn(e){this.zoomTo(this.content.scale+(e||this.option("step")))}zoomOut(e){this.zoomTo(this.content.scale-(e||this.option("step")))}toggleZoom(e={}){const t=this.option("maxScale"),i=this.option("baseScale"),s=this.content.scale>i+.5*(t-i)?i:t;this.zoomTo(s,e)}zoomTo(e=this.option("baseScale"),{x:t=null,y:s=null}={}){e=Math.max(Math.min(e,this.option("maxScale")),this.option("minScale"));const n=i(this.content.scale/(this.content.width/this.content.fitWidth),1e7);null===t&&(t=this.content.width*n*.5),null===s&&(s=this.content.height*n*.5);const{deltaX:o,deltaY:a}=this.getZoomDelta(e,t,s);t=this.content.x-o,s=this.content.y-a,this.panTo({x:t,y:s,scale:e,friction:this.option("zoomFriction")})}getZoomDelta(e,t=0,i=0){const s=this.content.fitWidth*this.content.scale,n=this.content.fitHeight*this.content.scale,o=t>0&&s?t/s:0,a=i>0&&n?i/n:0;return{deltaX:(this.content.fitWidth*e-s)*o,deltaY:(this.content.fitHeight*e-n)*a}}panTo({x:e=this.content.x,y:t=this.content.y,scale:i,friction:s=this.option("friction"),ignoreBounds:n=!1}={}){if(i=i||this.content.scale||1,!n){const{boundX:s,boundY:n}=this.getBounds(i);s&&(e=Math.max(Math.min(e,s.to),s.from)),n&&(t=Math.max(Math.min(t,n.to),n.from))}this.friction=s,this.transform={...this.transform,x:e,y:t,scale:i},s?(this.state="panning",this.velocity={x:(1/this.friction-1)*(e-this.content.x),y:(1/this.friction-1)*(t-this.content.y),scale:(1/this.friction-1)*(i-this.content.scale)},this.startAnimation()):this.endAnimation()}startAnimation(){this.rAF?cancelAnimationFrame(this.rAF):this.trigger("startAnimation"),this.rAF=requestAnimationFrame((()=>this.animate()))}animate(){if(this.setEdgeForce(),this.setDragForce(),this.velocity.x*=this.friction,this.velocity.y*=this.friction,this.velocity.scale*=this.friction,this.content.x+=this.velocity.x,this.content.y+=this.velocity.y,this.content.scale+=this.velocity.scale,this.isAnimating())this.setTransform();else if("pointerdown"!==this.state)return void this.endAnimation();this.rAF=requestAnimationFrame((()=>this.animate()))}getBounds(e){let t=this.boundX,s=this.boundY;if(void 0!==t&&void 0!==s)return{boundX:t,boundY:s};t={from:0,to:0},s={from:0,to:0},e=e||this.transform.scale;const n=this.content.fitWidth*e,o=this.content.fitHeight*e,a=this.viewport.width,r=this.viewport.height;if(nt.to),i&&(o=this.content.yi.to),s||n){let i=((s?t.from:t.to)-this.content.x)*e;const n=this.content.x+(this.velocity.x+i)/this.friction;n>=t.from&&n<=t.to&&(i+=this.velocity.x),this.velocity.x=i,this.recalculateTransform()}if(o||a){let t=((o?i.from:i.to)-this.content.y)*e;const s=this.content.y+(t+this.velocity.y)/this.friction;s>=i.from&&s<=i.to&&(t+=this.velocity.y),this.velocity.y=t,this.recalculateTransform()}}setDragResistance(){if("pointerdown"!==this.state)return;const{boundX:e,boundY:t}=this.getBounds(this.dragPosition.scale);let i,s,n,o;if(e&&(i=this.dragPosition.xe.to),t&&(n=this.dragPosition.yt.to),(i||s)&&(!i||!s)){const t=i?e.from:e.to,s=t-this.dragPosition.x;this.dragPosition.x=t-.3*s}if((n||o)&&(!n||!o)){const e=n?t.from:t.to,i=e-this.dragPosition.y;this.dragPosition.y=e-.3*i}}setDragForce(){"pointerdown"===this.state&&(this.velocity.x=this.dragPosition.x-this.content.x,this.velocity.y=this.dragPosition.y-this.content.y,this.velocity.scale=this.dragPosition.scale-this.content.scale)}recalculateTransform(){this.transform.x=this.content.x+this.velocity.x/(1/this.friction-1),this.transform.y=this.content.y+this.velocity.y/(1/this.friction-1),this.transform.scale=this.content.scale+this.velocity.scale/(1/this.friction-1)}isAnimating(){return!(!this.friction||!(Math.abs(this.velocity.x)>.05||Math.abs(this.velocity.y)>.05||Math.abs(this.velocity.scale)>.05))}setTransform(e){let t,s,n;if(e?(t=i(this.transform.x),s=i(this.transform.y),n=this.transform.scale,this.content={...this.content,x:t,y:s,scale:n}):(t=i(this.content.x),s=i(this.content.y),n=this.content.scale/(this.content.width/this.content.fitWidth),this.content={...this.content,x:t,y:s}),this.trigger("beforeTransform"),t=i(this.content.x),s=i(this.content.y),e&&this.option("zoom")){let e,o;e=i(this.content.fitWidth*n),o=i(this.content.fitHeight*n),this.content.width=e,this.content.height=o,this.transform={...this.transform,width:e,height:o,scale:n},Object.assign(this.$content.style,{width:`${e}px`,height:`${o}px`,maxWidth:"none",maxHeight:"none",transform:`translate3d(${t}px, ${s}px, 0) scale(1)`})}else this.$content.style.transform=`translate3d(${t}px, ${s}px, 0) scale(${n})`;this.trigger("afterTransform")}endAnimation(e){cancelAnimationFrame(this.rAF),this.rAF=null,this.velocity={x:0,y:0,scale:0},this.setTransform(!0),this.state="ready",this.handleCursor(),!0!==e&&this.trigger("endAnimation")}handleCursor(){const e=this.option("draggableClass");e&&this.option("touch")&&(1==this.option("panOnlyZoomed")&&this.content.width<=this.viewport.width&&this.content.height<=this.viewport.height&&this.transform.scale<=this.option("baseScale")?this.$container.classList.remove(e):this.$container.classList.add(e))}detachEvents(){this.$content.removeEventListener("load",this.onLoad),this.$container.removeEventListener("wheel",this.onWheel,{passive:!1}),this.$container.removeEventListener("click",this.onClick,{passive:!1}),this.pointerTracker&&(this.pointerTracker.stop(),this.pointerTracker=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}destroy(){"destroy"!==this.state&&(this.state="destroy",clearTimeout(this.updateTimer),this.updateTimer=null,cancelAnimationFrame(this.rAF),this.rAF=null,this.detachEvents(),this.detachPlugins(),this.resetDragPosition())}constructor(e,i={}){super(t(!0,{},d,i)),this.state="init",this.$container=e;for(const e of["onLoad","onWheel","onClick"])this[e]=this[e].bind(this);this.initLayout(),this.resetValues(),this.attachPlugins(h.Plugins),this.trigger("init"),this.updateMetrics(),this.attachEvents(),this.trigger("ready"),!1===this.option("centerOnStart")?this.state="ready":this.panTo({friction:0}),e.__Panzoom=this}}h.version="4.0.26",h.Plugins={};const u=(e,t)=>{let i=0;return function(...s){const n=(new Date).getTime();if(!(n-i{t.preventDefault(),t.stopPropagation(),this.carousel["slide"+("next"===e?"Next":"Prev")]()})),t}build(){this.$container||(this.$container=document.createElement("div"),this.$container.classList.add(...this.option("classNames.main").split(" ")),this.carousel.$container.appendChild(this.$container)),this.$next||(this.$next=this.createButton("next"),this.$container.appendChild(this.$next)),this.$prev||(this.$prev=this.createButton("prev"),this.$container.appendChild(this.$prev))}onRefresh(){const e=this.carousel.pages.length;e<=1||e>1&&this.carousel.elemDimWidth=e-1&&this.$next.setAttribute("disabled","")))}cleanup(){this.$prev&&this.$prev.remove(),this.$prev=null,this.$next&&this.$next.remove(),this.$next=null,this.$container&&this.$container.remove(),this.$container=null}attach(){this.carousel.on("refresh change",this.onRefresh)}detach(){this.carousel.off("refresh change",this.onRefresh),this.cleanup()}constructor(e){this.$container=null,this.$prev=null,this.$next=null,this.carousel=e,this.onRefresh=this.onRefresh.bind(this)}}p.defaults={prevTpl:'',nextTpl:'',classNames:{main:"carousel__nav",button:"carousel__button",next:"is-next",prev:"is-prev"}};class f{addAsTargetFor(e){this.target=this.carousel,this.nav=e,this.attachEvents()}addAsNavFor(e){this.target=e,this.nav=this.carousel,this.attachEvents()}attachEvents(){this.nav.options.initialSlide=this.target.options.initialPage,this.nav.on("ready",this.onNavReady),this.nav.on("createSlide",this.onNavCreateSlide),this.nav.on("Panzoom.click",this.onNavClick),this.target.on("change",this.onTargetChange),this.target.on("Panzoom.afterUpdate",this.onTargetChange)}onNavReady(){this.onTargetChange(!0)}onNavClick(e,t,i){const s=i.target.closest(".carousel__slide");if(!s)return;i.stopPropagation();const n=parseInt(s.dataset.index,10),o=this.target.findPageForSlide(n);this.target.page!==o&&this.target.slideTo(o,{friction:this.friction}),this.markSelectedSlide(n)}onNavCreateSlide(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}onTargetChange(){const e=this.target.pages[this.target.page].indexes[0],t=this.nav.findPageForSlide(e);this.nav.slideTo(t),this.markSelectedSlide(e)}markSelectedSlide(e){this.selectedIndex=e,[...this.nav.slides].filter((e=>e.$el&&e.$el.classList.remove("is-nav-selected")));const t=this.nav.slides[e];t&&t.$el&&t.$el.classList.add("is-nav-selected")}attach(e){const t=e.options.Sync;(t.target||t.nav)&&(t.target?this.addAsNavFor(t.target):t.nav&&this.addAsTargetFor(t.nav),this.friction=t.friction)}detach(){this.nav&&(this.nav.off("ready",this.onNavReady),this.nav.off("Panzoom.click",this.onNavClick),this.nav.off("createSlide",this.onNavCreateSlide)),this.target&&(this.target.off("Panzoom.afterUpdate",this.onTargetChange),this.target.off("change",this.onTargetChange))}constructor(e){this.carousel=e,this.selectedIndex=null,this.friction=0,this.onNavReady=this.onNavReady.bind(this),this.onNavClick=this.onNavClick.bind(this),this.onNavCreateSlide=this.onNavCreateSlide.bind(this),this.onTargetChange=this.onTargetChange.bind(this)}}f.defaults={friction:.92};const g={Navigation:p,Dots:class{buildList(){if(this.carousel.pages.length{if(!("page"in e.target.dataset))return;e.preventDefault(),e.stopPropagation();const t=parseInt(e.target.dataset.page,10),i=this.carousel;t!==i.page&&(i.pages.length<3&&i.option("infinite")?i[0==t?"slidePrev":"slideNext"]():i.slideTo(t))})),this.$list=e,this.carousel.$container.appendChild(e),this.carousel.$container.classList.add("has-dots"),e}removeList(){this.$list&&(this.$list.parentNode.removeChild(this.$list),this.$list=null),this.carousel.$container.classList.remove("has-dots")}rebuildDots(){let e=this.$list;const t=!!e,i=this.carousel.pages.length;if(i<2)return void(t&&this.removeList());t||(e=this.buildList());const s=this.$list.children.length;if(s>i)for(let e=i;e{const i=e.code;let s;"Enter"===i||"NumpadEnter"===i?s=t:"ArrowRight"===i?s=t.nextSibling:"ArrowLeft"===i&&(s=t.previousSibling),s&&s.click()})),this.$list.appendChild(t)}this.setActiveDot()}}setActiveDot(){if(!this.$list)return;this.$list.childNodes.forEach((e=>{e.classList.remove("is-selected")}));const e=this.$list.childNodes[this.carousel.page];e&&e.classList.add("is-selected")}onChange(){this.setActiveDot()}onRefresh(){this.rebuildDots()}attach(){this.carousel.on(this.events)}detach(){this.removeList(),this.carousel.off(this.events),this.carousel=null}constructor(e){this.carousel=e,this.$list=null,this.events={change:this.onChange.bind(this),refresh:this.onRefresh.bind(this)}}},Sync:f},m={slides:[],preload:0,slidesPerPage:"auto",initialPage:null,initialSlide:null,friction:.92,center:!0,infinite:!0,fill:!0,dragFree:!1,prefix:"",classNames:{viewport:"carousel__viewport",track:"carousel__track",slide:"carousel__slide",slideSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}};class v extends c{init(){this.pages=[],this.page=this.pageIndex=null,this.prevPage=this.prevPageIndex=null,this.attachPlugins(v.Plugins),this.trigger("init"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.$track&&this.pages.length&&(this.$track.style.transform=`translate3d(${-1*this.pages[this.page].left}px, 0px, 0) scale(1)`),this.manageSlideVisiblity(),this.initPanzoom(),this.state="ready",this.trigger("ready")}initLayout(){const e=this.option("prefix"),t=this.option("classNames");this.$viewport=this.option("viewport")||this.$container.querySelector(`.${e}${t.viewport}`),this.$viewport||(this.$viewport=document.createElement("div"),this.$viewport.classList.add(...(e+t.viewport).split(" ")),this.$viewport.append(...this.$container.childNodes),this.$container.appendChild(this.$viewport)),this.$track=this.option("track")||this.$container.querySelector(`.${e}${t.track}`),this.$track||(this.$track=document.createElement("div"),this.$track.classList.add(...(e+t.track).split(" ")),this.$track.append(...this.$viewport.childNodes),this.$viewport.appendChild(this.$track))}initSlides(){this.slides=[],this.$viewport.querySelectorAll(`.${this.option("prefix")}${this.option("classNames.slide")}`).forEach((e=>{const t={$el:e,isDom:!0};this.slides.push(t),this.trigger("createSlide",t,this.slides.length)})),Array.isArray(this.options.slides)&&(this.slides=t(!0,[...this.slides],this.options.slides))}updateMetrics(){let e,t=0,s=[];this.slides.forEach(((i,n)=>{const o=i.$el,a=i.isDom||!e?this.getSlideMetrics(o):e;i.index=n,i.width=a,i.left=t,e=a,t+=a,s.push(n)}));let n=Math.max(this.$track.offsetWidth,i(this.$track.getBoundingClientRect().width)),o=getComputedStyle(this.$track);n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),this.contentWidth=t,this.viewportWidth=n;const a=[],r=this.option("slidesPerPage");if(Number.isInteger(r)&&t>n)for(let e=0;en)&&(a.push({indexes:[],slides:[]}),e=a.length-1,t=0),t+=s.width,a[e].indexes.push(i),a[e].slides.push(s)}}const l=this.option("center"),c=this.option("fill");a.forEach(((e,i)=>{e.index=i,e.width=e.slides.reduce(((e,t)=>e+t.width),0),e.left=e.slides[0].left,l&&(e.left+=.5*(n-e.width)*-1),c&&!this.option("infiniteX",this.option("infinite"))&&t>n&&(e.left=Math.max(e.left,0),e.left=Math.min(e.left,t-n))}));const d=[];let h;a.forEach((e=>{const t={...e};h&&t.left===h.left?(h.width+=t.width,h.slides=[...h.slides,...t.slides],h.indexes=[...h.indexes,...t.indexes]):(t.index=d.length,h=t,d.push(t))})),this.pages=d;let u=this.page;if(null===u){const e=this.option("initialSlide");u=null!==e?this.findPageForSlide(e):parseInt(this.option("initialPage",0),10)||0,d[u]||(u=d.length&&u>d.length?d[d.length-1].index:0),this.page=u,this.pageIndex=u}this.updatePanzoom(),this.trigger("refresh")}getSlideMetrics(e){if(!e){const t=this.slides[0];(e=document.createElement("div")).dataset.isTestEl=1,e.style.visibility="hidden",e.classList.add(...(this.option("prefix")+this.option("classNames.slide")).split(" ")),t.customClass&&e.classList.add(...t.customClass.split(" ")),this.$track.prepend(e)}let t=Math.max(e.offsetWidth,i(e.getBoundingClientRect().width));const s=e.currentStyle||window.getComputedStyle(e);return t=t+(parseFloat(s.marginLeft)||0)+(parseFloat(s.marginRight)||0),e.dataset.isTestEl&&e.remove(),t}findPageForSlide(e){e=parseInt(e,10)||0;const t=this.pages.find((t=>t.indexes.indexOf(e)>-1));return t?t.index:null}slideNext(){this.slideTo(this.pageIndex+1)}slidePrev(){this.slideTo(this.pageIndex-1)}slideTo(e,t={}){const{x:i=-1*this.setPage(e,!0),y:s=0,friction:n=this.option("friction")}=t;this.Panzoom.content.x===i&&!this.Panzoom.velocity.x&&n||(this.Panzoom.panTo({x:i,y:s,friction:n,ignoreBounds:!0}),"ready"===this.state&&"ready"===this.Panzoom.state&&this.trigger("settle"))}initPanzoom(){this.Panzoom&&this.Panzoom.destroy();const e=t(!0,{},{content:this.$track,wrapInner:!1,resizeParent:!1,zoom:!1,click:!1,lockAxis:"x",x:this.pages.length?-1*this.pages[this.page].left:0,centerOnStart:!1,textSelection:()=>this.option("textSelection",!1),panOnlyZoomed:function(){return this.content.width<=this.viewport.width}},this.option("Panzoom"));this.Panzoom=new h(this.$container,e),this.Panzoom.on({"*":(e,...t)=>this.trigger(`Panzoom.${e}`,...t),afterUpdate:()=>{this.updatePage()},beforeTransform:this.onBeforeTransform.bind(this),touchEnd:this.onTouchEnd.bind(this),endAnimation:()=>{this.trigger("settle")}}),this.updateMetrics(),this.manageSlideVisiblity()}updatePanzoom(){this.Panzoom&&(this.Panzoom.content={...this.Panzoom.content,fitWidth:this.contentWidth,origWidth:this.contentWidth,width:this.contentWidth},this.pages.length>1&&this.option("infiniteX",this.option("infinite"))?this.Panzoom.boundX=null:this.pages.length&&(this.Panzoom.boundX={from:-1*this.pages[this.pages.length-1].left,to:-1*this.pages[0].left}),this.option("infiniteY",this.option("infinite"))?this.Panzoom.boundY=null:this.Panzoom.boundY={from:0,to:0},this.Panzoom.handleCursor())}manageSlideVisiblity(){const e=this.contentWidth,t=this.viewportWidth;let i=this.Panzoom?-1*this.Panzoom.content.x:this.pages.length?this.pages[this.page].left:0;const s=this.option("preload"),n=this.option("infiniteX",this.option("infinite")),o=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-left")),a=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-right"));this.slides.forEach((r=>{let l,c,d=0;l=i-o,c=i+t+a,l-=s*(t+o+a),c+=s*(t+o+a);const h=r.left+r.width>l&&r.leftl&&r.leftl&&r.lefti&&r.left<=i+t+a&&(d=0)):this.removeSlideEl(r),r.hasDiff=d}));let r=0,l=0;this.slides.forEach(((t,i)=>{let s=0;t.$el?(i!==r||t.hasDiff?s=l+t.hasDiff*e:l=0,t.$el.style.left=Math.abs(s)>.1?`${l+t.hasDiff*e}px`:"",r++):l+=t.width})),this.markSelectedSlides()}createSlideEl(e){if(!e)return;if(e.$el){let t=e.$el.dataset.index;if(!t||parseInt(t,10)!==e.index){let t;e.$el.dataset.index=e.index,e.$el.querySelectorAll("[data-lazy-srcset]").forEach((e=>{e.srcset=e.dataset.lazySrcset})),e.$el.querySelectorAll("[data-lazy-src]").forEach((e=>{let t=e.dataset.lazySrc;e instanceof HTMLImageElement?e.src=t:e.style.backgroundImage=`url('${t}')`})),(t=e.$el.dataset.lazySrc)&&(e.$el.style.backgroundImage=`url('${t}')`),e.state="ready"}return}const t=document.createElement("div");t.dataset.index=e.index,t.classList.add(...(this.option("prefix")+this.option("classNames.slide")).split(" ")),e.customClass&&t.classList.add(...e.customClass.split(" ")),e.html&&(t.innerHTML=e.html);const i=[];this.slides.forEach(((e,t)=>{e.$el&&i.push(t)}));const s=e.index;let n=null;if(i.length){let e=i.reduce(((e,t)=>Math.abs(t-s){const n=i.$el;if(!n)return;const o=this.pages[this.page];o&&o.indexes&&o.indexes.indexOf(s)>-1?(e&&!n.classList.contains(e)&&(n.classList.add(e),this.trigger("selectSlide",i)),n.removeAttribute(t)):(e&&n.classList.contains(e)&&(n.classList.remove(e),this.trigger("unselectSlide",i)),n.setAttribute(t,!0))}))}updatePage(){this.updateMetrics(),this.slideTo(this.page,{friction:0})}onBeforeTransform(){this.option("infiniteX",this.option("infinite"))&&this.manageInfiniteTrack(),this.manageSlideVisiblity()}manageInfiniteTrack(){const e=this.contentWidth,t=this.viewportWidth;if(!this.option("infiniteX",this.option("infinite"))||this.pages.length<2||et&&(i.content.x-=e,this.pageIndex=this.pageIndex+this.pages.length,s=!0),s&&"pointerdown"===i.state&&i.resetDragPosition(),s}onTouchEnd(e,t){const i=this.option("dragFree");if(!i&&this.pages.length>1&&e.dragOffset.time<350&&Math.abs(e.dragOffset.y)<1&&Math.abs(e.dragOffset.x)>5)this[e.dragOffset.x<0?"slideNext":"slidePrev"]();else if(i){const[,t]=this.getPageFromPosition(-1*e.transform.x);this.setPage(t)}else this.slideToClosest()}slideToClosest(e={}){let[,t]=this.getPageFromPosition(-1*this.Panzoom.content.x);this.slideTo(t,e)}getPageFromPosition(e){const t=this.pages.length;this.option("center")&&(e+=.5*this.viewportWidth);const i=Math.floor(e/this.contentWidth);e-=i*this.contentWidth;let s=this.slides.find((t=>t.left<=e&&t.left+t.width>e));if(s){let e=this.findPageForSlide(s.index);return[e,e+i*t]}return[0,0]}setPage(e,t){let i=0,s=parseInt(e,10)||0;const n=this.page,o=this.pageIndex,a=this.pages.length,r=this.contentWidth,l=this.viewportWidth;if(e=(s%a+a)%a,this.option("infiniteX",this.option("infinite"))&&r>l){const n=Math.floor(s/a)||0,o=r;if(i=this.pages[e].left+n*o,!0===t&&a>2){let e=-1*this.Panzoom.content.x;const t=i-o,n=i+o,r=Math.abs(e-i),l=Math.abs(e-t),c=Math.abs(e-n);c{this.removeSlideEl(e)})),this.slides=[],this.Panzoom.destroy(),this.detachPlugins()}constructor(e,i={}){if(super(i=t(!0,{},m,i)),this.state="init",this.$container=e,!(this.$container instanceof HTMLElement))throw new Error("No root element provided");this.slideNext=u(this.slideNext.bind(this),250),this.slidePrev=u(this.slidePrev.bind(this),250),this.init(),e.__Carousel=this}}v.version="4.0.26",v.Plugins=g;const b=!("undefined"==typeof window||!window.document||!window.document.createElement);let y=null;const x=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'],w=e=>{if(e&&b){null===y&&document.createElement("div").focus({get preventScroll(){return y=!0,!1}});try{if(e.setActive)e.setActive();else if(y)e.focus({preventScroll:!0});else{const t=window.pageXOffset||document.body.scrollTop,i=window.pageYOffset||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:i,behavior:"auto"})}}catch(e){}}};class C{onPrepare(){this.getSlides().length=this.fancybox.option("Thumbs.minScreenHeight")&&this.build()}onClosing(){this.Carousel&&this.Carousel.Panzoom.detachEvents()}onKeydown(e,t){t===e.option("Thumbs.key")&&this.toggle()}build(){if(this.$container)return;const e=document.createElement("div");e.classList.add("fancybox__thumbs"),this.fancybox.$carousel.parentNode.insertBefore(e,this.fancybox.$carousel.nextSibling),this.Carousel=new v(e,t(!0,{Dots:!1,Navigation:!1,Sync:{friction:0},infinite:!1,center:!0,fill:!0,dragFree:!0,slidesPerPage:1,preload:1},this.fancybox.option("Thumbs.Carousel"),{Sync:{target:this.fancybox.Carousel},slides:this.getSlides()})),this.Carousel.Panzoom.on("wheel",((e,t)=>{t.preventDefault(),this.fancybox[t.deltaY<0?"prev":"next"]()})),this.$container=e,this.state="visible"}getSlides(){const e=[];for(const t of this.fancybox.items){const i=t.thumb;i&&e.push({html:`
`,customClass:`has-thumb has-${t.type||"image"}`})}return e}toggle(){"visible"===this.state?this.hide():"hidden"===this.state?this.show():this.build()}show(){"hidden"===this.state&&(this.$container.style.display="",this.Carousel.Panzoom.attachEvents(),this.state="visible")}hide(){"visible"===this.state&&(this.Carousel.Panzoom.detachEvents(),this.$container.style.display="none",this.state="hidden")}cleanup(){this.Carousel&&(this.Carousel.destroy(),this.Carousel=null),this.$container&&(this.$container.remove(),this.$container=null),this.state="init"}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events),this.cleanup()}constructor(e){this.fancybox=e,this.$container=null,this.state="init";for(const e of["onPrepare","onClosing","onKeydown"])this[e]=this[e].bind(this);this.events={prepare:this.onPrepare,closing:this.onClosing,keydown:this.onKeydown}}}C.defaults={minSlideCount:2,minScreenHeight:500,autoStart:!0,key:"t",Carousel:{}};const S=(e,t)=>{const i=new URL(e),s=new URLSearchParams(i.search);let n=new URLSearchParams;for(const[e,i]of[...s,...Object.entries(t)])"t"===e?n.set("start",parseInt(i)):n.set(e,i);n=n.toString();let o=e.match(/#t=((.*)?\d+s)/);return o&&(n+=`#t=${o[1]}`),n},E={video:{autoplay:!0,ratio:16/9},youtube:{autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},vimeo:{hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},html5video:{tpl:'',format:""}};class ${onInit(){for(const e of this.fancybox.items)this.processType(e)}processType(e){if(e.html)return e.src=e.html,e.type="html",void delete e.html;const i=e.src||"";let s=e.type||this.fancybox.options.type,n=null;if(!i||"string"==typeof i){if(n=i.match(/(?:youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const t=S(i,this.fancybox.option("Html.youtube")),o=encodeURIComponent(n[1]);e.videoId=o,e.src=`https://www.youtube-nocookie.com/embed/${o}?${t}`,e.thumb=e.thumb||`https://i.ytimg.com/vi/${o}/mqdefault.jpg`,e.vendor="youtube",s="video"}else if(n=i.match(/^.+vimeo.com\/(?:\/)?([\d]+)(.*)?/)){const t=S(i,this.fancybox.option("Html.vimeo")),o=encodeURIComponent(n[1]);e.videoId=o,e.src=`https://player.vimeo.com/video/${o}?${t}`,e.vendor="vimeo",s="video"}else(n=i.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`//maps.google.${n[1]}/?ll=${(n[2]?n[2]+"&z="+Math.floor(n[3])+(n[4]?n[4].replace(/^\//,"&"):""):n[4]+"").replace(/\?/,"&")}&output=${n[4]&&n[4].indexOf("layer=c")>0?"svembed":"embed"}`,s="map"):(n=i.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`//maps.google.${n[1]}/maps?q=${n[2].replace("query=","q=").replace("api=1","")}&output=embed`,s="map");s||("#"===i.charAt(0)?s="inline":(n=i.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(s="html5video",e.format=e.format||"video/"+("ogv"===n[1]?"ogg":n[1])):i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":i.match(/\.(pdf)((\?|#).*)?$/i)&&(s="pdf")),e.type=s||this.fancybox.option("defaultType","image"),"html5video"!==s&&"video"!==s||(e.video=t({},this.fancybox.option("Html.video"),e.video),e._width&&e._height?e.ratio=parseFloat(e._width)/parseFloat(e._height):e.ratio=e.ratio||e.video.ratio||E.video.ratio)}}onReady(){this.fancybox.Carousel.slides.forEach((e=>{e.$el&&(this.setContent(e),e.index===this.fancybox.getSlide().index&&this.playVideo(e))}))}onCreateSlide(e,t,i){"ready"===this.fancybox.state&&this.setContent(i)}loadInlineContent(e){let t;if(e.src instanceof HTMLElement)t=e.src;else if("string"==typeof e.src){const i=e.src.split("#",2),s=2===i.length&&""===i[0]?i[1]:i[0];t=document.getElementById(s)}if(t){if("clone"===e.type||t.$placeHolder){t=t.cloneNode(!0);let i=t.getAttribute("id");i=i?`${i}--clone`:`clone-${this.fancybox.id}-${e.index}`,t.setAttribute("id",i)}else{const e=document.createElement("div");e.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(e,t),t.$placeHolder=e}this.fancybox.setContent(e,t)}else this.fancybox.setError(e,"{{ELEMENT_NOT_FOUND}}")}loadAjaxContent(e){const t=this.fancybox,i=new XMLHttpRequest;t.showLoading(e),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&"ready"===t.state&&(t.hideLoading(e),200===i.status?t.setContent(e,i.responseText):t.setError(e,404===i.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))},i.open("GET",e.src),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(e.ajax||null),e.xhr=i}loadIframeContent(e){const t=this.fancybox,i=document.createElement("iframe");if(i.className="fancybox__iframe",i.setAttribute("id",`fancybox__iframe_${t.id}_${e.index}`),i.setAttribute("allow","autoplay; fullscreen"),i.setAttribute("scrolling","auto"),e.$iframe=i,"iframe"!==e.type||!1===e.preload)return i.setAttribute("src",e.src),this.fancybox.setContent(e,i),void this.resizeIframe(e);t.showLoading(e);const s=document.createElement("div");s.style.visibility="hidden",this.fancybox.setContent(e,s),s.appendChild(i),i.onerror=()=>{t.setError(e,"{{IFRAME_ERROR}}")},i.onload=()=>{t.hideLoading(e);let s=!1;i.isReady||(i.isReady=!0,s=!0),i.src.length&&(i.parentNode.style.visibility="",this.resizeIframe(e),s&&t.revealContent(e))},i.setAttribute("src",e.src)}setAspectRatio(e){const t=e.$content,i=e.ratio;if(!t)return;let s=e._width,n=e._height;if(i||s&&n){Object.assign(t.style,{width:s&&n?"100%":"",height:s&&n?"100%":"",maxWidth:"",maxHeight:""});let e=t.offsetWidth,o=t.offsetHeight;if(s=s||e,n=n||o,s>e||n>o){let t=Math.min(e/s,o/n);s*=t,n*=t}Math.abs(s/n-i)>.01&&(i{e.$el&&(e.$iframe&&this.resizeIframe(e),e.ratio&&this.setAspectRatio(e))}))}setContent(e){if(e&&!e.isDom){switch(e.type){case"html":this.fancybox.setContent(e,e.src);break;case"html5video":this.fancybox.setContent(e,this.fancybox.option("Html.html5video.tpl").replace(/\{\{src\}\}/gi,e.src).replace("{{format}}",e.format||e.html5video&&e.html5video.format||"").replace("{{poster}}",e.poster||e.thumb||""));break;case"inline":case"clone":this.loadInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case"video":case"map":e.preload=!1;case"iframe":this.loadIframeContent(e)}e.ratio&&this.setAspectRatio(e)}}onSelectSlide(e,t,i){"ready"===e.state&&this.playVideo(i)}playVideo(e){if("html5video"===e.type&&e.video.autoplay)try{const t=e.$el.querySelector("video");if(t){const e=t.play();void 0!==e&&e.then((()=>{})).catch((e=>{t.muted=!0,t.play()}))}}catch(e){}if("video"!==e.type||!e.$iframe||!e.$iframe.contentWindow)return;const t=()=>{if("done"===e.state&&e.$iframe&&e.$iframe.contentWindow){let t;if(e.$iframe.isReady)return e.video&&e.video.autoplay&&(t="youtube"==e.vendor?{event:"command",func:"playVideo"}:{method:"play",value:"true"}),void(t&&e.$iframe.contentWindow.postMessage(JSON.stringify(t),"*"));"youtube"===e.vendor&&(t={event:"listening",id:e.$iframe.getAttribute("id")},e.$iframe.contentWindow.postMessage(JSON.stringify(t),"*"))}e.poller=setTimeout(t,250)};t()}onUnselectSlide(e,t,i){if("html5video"===i.type){try{i.$el.querySelector("video").pause()}catch(e){}return}let s=!1;"vimeo"==i.vendor?s={method:"pause",value:"true"}:"youtube"===i.vendor&&(s={event:"command",func:"pauseVideo"}),s&&i.$iframe&&i.$iframe.contentWindow&&i.$iframe.contentWindow.postMessage(JSON.stringify(s),"*"),clearTimeout(i.poller)}onRemoveSlide(e,t,i){i.xhr&&(i.xhr.abort(),i.xhr=null),i.$iframe&&(i.$iframe.onload=i.$iframe.onerror=null,i.$iframe.src="//about:blank",i.$iframe=null);const s=i.$content;"inline"===i.type&&s&&(s.classList.remove("fancybox__content"),"none"!==s.style.display&&(s.style.display="none")),i.$closeButton&&(i.$closeButton.remove(),i.$closeButton=null);const n=s&&s.$placeHolder;n&&(n.parentNode.insertBefore(s,n),n.remove(),s.$placeHolder=null)}onMessage(e){try{let t=JSON.parse(e.data);if("https://player.vimeo.com"===e.origin){if("ready"===t.event)for(let t of document.getElementsByClassName("fancybox__iframe"))t.contentWindow===e.source&&(t.isReady=1)}else"https://www.youtube-nocookie.com"===e.origin&&"onReady"===t.event&&(document.getElementById(t.id).isReady=1)}catch(e){}}attach(){this.fancybox.on(this.events),window.addEventListener("message",this.onMessage,!1)}detach(){this.fancybox.off(this.events),window.removeEventListener("message",this.onMessage,!1)}constructor(e){this.fancybox=e;for(const e of["onInit","onReady","onCreateSlide","onRemoveSlide","onSelectSlide","onUnselectSlide","onRefresh","onMessage"])this[e]=this[e].bind(this);this.events={init:this.onInit,ready:this.onReady,"Carousel.createSlide":this.onCreateSlide,"Carousel.removeSlide":this.onRemoveSlide,"Carousel.selectSlide":this.onSelectSlide,"Carousel.unselectSlide":this.onUnselectSlide,"Carousel.refresh":this.onRefresh}}}$.defaults=E;class T{onReady(){this.fancybox.Carousel.slides.forEach((e=>{e.$el&&this.setContent(e)}))}onDone(e,t){this.handleCursor(t)}onClosing(e){clearTimeout(this.clickTimer),this.clickTimer=null,e.Carousel.slides.forEach((e=>{e.$image&&(e.state="destroy"),e.Panzoom&&e.Panzoom.detachEvents()})),"closing"===this.fancybox.state&&this.canZoom(e.getSlide())&&this.zoomOut()}onCreateSlide(e,t,i){"ready"===this.fancybox.state&&this.setContent(i)}onRemoveSlide(e,t,i){i.$image&&(i.$el.classList.remove(e.option("Image.canZoomInClass")),i.$image.remove(),i.$image=null),i.Panzoom&&(i.Panzoom.destroy(),i.Panzoom=null),i.$el&&i.$el.dataset&&delete i.$el.dataset.imageFit}setContent(e){if(e.isDom||e.html||e.type&&"image"!==e.type)return;if(e.$image)return;e.type="image",e.state="loading";const t=document.createElement("div");t.style.visibility="hidden";const i=document.createElement("img");i.addEventListener("load",(t=>{t.stopImmediatePropagation(),this.onImageStatusChange(e)})),i.addEventListener("error",(()=>{this.onImageStatusChange(e)})),i.src=e.src,i.alt="",i.draggable=!1,i.classList.add("fancybox__image"),e.srcset&&i.setAttribute("srcset",e.srcset),e.sizes&&i.setAttribute("sizes",e.sizes),e.$image=i;const s=this.fancybox.option("Image.wrap");if(s){const n=document.createElement("div");n.classList.add("string"==typeof s?s:"fancybox__image-wrap"),n.appendChild(i),t.appendChild(n),e.$wrap=n}else t.appendChild(i);e.$el.dataset.imageFit=this.fancybox.option("Image.fit"),this.fancybox.setContent(e,t),i.complete||i.error?this.onImageStatusChange(e):this.fancybox.showLoading(e)}onImageStatusChange(e){const t=e.$image;t&&"loading"===e.state&&(t.complete&&t.naturalWidth&&t.naturalHeight?(this.fancybox.hideLoading(e),"contain"===this.fancybox.option("Image.fit")&&this.initSlidePanzoom(e),e.$el.addEventListener("wheel",(t=>this.onWheel(e,t)),{passive:!1}),e.$content.addEventListener("click",(t=>this.onClick(e,t)),{passive:!1}),this.revealContent(e)):this.fancybox.setError(e,"{{IMAGE_ERROR}}"))}initSlidePanzoom(e){e.Panzoom||(e.Panzoom=new h(e.$el,t(!0,this.fancybox.option("Image.Panzoom",{}),{viewport:e.$wrap,content:e.$image,width:e._width,height:e._height,wrapInner:!1,textSelection:!0,touch:this.fancybox.option("Image.touch"),panOnlyZoomed:!0,click:!1,wheel:!1})),e.Panzoom.on("startAnimation",(()=>{this.fancybox.trigger("Image.startAnimation",e)})),e.Panzoom.on("endAnimation",(()=>{"zoomIn"===e.state&&this.fancybox.done(e),this.handleCursor(e),this.fancybox.trigger("Image.endAnimation",e)})),e.Panzoom.on("afterUpdate",(()=>{this.handleCursor(e),this.fancybox.trigger("Image.afterUpdate",e)})))}revealContent(e){null===this.fancybox.Carousel.prevPage&&e.index===this.fancybox.options.startIndex&&this.canZoom(e)?this.zoomIn():this.fancybox.revealContent(e)}getZoomInfo(e){const t=e.$thumb.getBoundingClientRect(),i=t.width,s=t.height,n=e.$content.getBoundingClientRect(),o=n.width,a=n.height,r=n.top-t.top,l=n.left-t.left;let c=this.fancybox.option("Image.zoomOpacity");return"auto"===c&&(c=Math.abs(i/s-o/a)>.1),{top:r,left:l,scale:o&&i?i/o:1,opacity:c}}canZoom(e){const t=this.fancybox,i=t.$container;if(window.visualViewport&&1!==window.visualViewport.scale)return!1;if(e.Panzoom&&!e.Panzoom.content.width)return!1;if(!t.option("Image.zoom")||"contain"!==t.option("Image.fit"))return!1;const s=e.$thumb;if(!s||"loading"===e.state)return!1;i.classList.add("fancybox__no-click");const n=s.getBoundingClientRect();let o;if(this.fancybox.option("Image.ignoreCoveredThumbnail")){const e=document.elementFromPoint(n.left+1,n.top+1)===s,t=document.elementFromPoint(n.right-1,n.bottom-1)===s;o=e&&t}else o=document.elementFromPoint(n.left+.5*n.width,n.top+.5*n.height)===s;return i.classList.remove("fancybox__no-click"),o}zoomIn(){const e=this.fancybox,t=e.getSlide(),i=t.Panzoom,{top:s,left:n,scale:o,opacity:a}=this.getZoomInfo(t);e.trigger("reveal",t),i.panTo({x:-1*n,y:-1*s,scale:o,friction:0,ignoreBounds:!0}),t.$content.style.visibility="",t.state="zoomIn",!0===a&&i.on("afterTransform",(e=>{"zoomIn"!==t.state&&"zoomOut"!==t.state||(e.$content.style.opacity=Math.min(1,1-(1-e.content.scale)/(1-o)))})),i.panTo({x:0,y:0,scale:1,friction:this.fancybox.option("Image.zoomFriction")})}zoomOut(){const e=this.fancybox,t=e.getSlide(),i=t.Panzoom;if(!i)return;t.state="zoomOut",e.state="customClosing",t.$caption&&(t.$caption.style.visibility="hidden");let s=this.fancybox.option("Image.zoomFriction");const n=e=>{const{top:n,left:o,scale:a,opacity:r}=this.getZoomInfo(t);e||r||(s*=.82),i.panTo({x:-1*o,y:-1*n,scale:a,friction:s,ignoreBounds:!0}),s*=.98};window.addEventListener("scroll",n),i.once("endAnimation",(()=>{window.removeEventListener("scroll",n),e.destroy()})),n()}handleCursor(e){if("image"!==e.type||!e.$el)return;const t=e.Panzoom,i=this.fancybox.option("Image.click",!1,e),s=this.fancybox.option("Image.touch"),n=e.$el.classList,o=this.fancybox.option("Image.canZoomInClass"),a=this.fancybox.option("Image.canZoomOutClass");n.remove(a),n.remove(o),t&&"toggleZoom"===i?t&&1===t.content.scale&&t.option("maxScale")-t.content.scale>.01?n.add(o):t.content.scale>1&&!s&&n.add(a):"close"===i&&n.add(a)}onWheel(e,t){if("ready"===this.fancybox.state&&!1!==this.fancybox.trigger("Image.wheel",t))switch(this.fancybox.option("Image.wheel")){case"zoom":"done"===e.state&&e.Panzoom&&e.Panzoom.zoomWithWheel(t);break;case"close":this.fancybox.close();break;case"slide":this.fancybox[t.deltaY<0?"prev":"next"]()}}onClick(e,t){if("ready"!==this.fancybox.state)return;const i=e.Panzoom;if(i&&(i.dragPosition.midPoint||0!==i.dragOffset.x||0!==i.dragOffset.y||1!==i.dragOffset.scale))return;if(this.fancybox.Carousel.Panzoom.lockAxis)return!1;const s=i=>{switch(i){case"toggleZoom":t.stopPropagation(),e.Panzoom&&e.Panzoom.zoomWithClick(t);break;case"close":this.fancybox.close();break;case"next":t.stopPropagation(),this.fancybox.next()}},n=this.fancybox.option("Image.click"),o=this.fancybox.option("Image.doubleClick");o?this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null,s(o)):this.clickTimer=setTimeout((()=>{this.clickTimer=null,s(n)}),300):s(n)}onPageChange(e,t){const i=e.getSlide();t.slides.forEach((e=>{e.Panzoom&&"done"===e.state&&e.index!==i.index&&e.Panzoom.panTo({x:0,y:0,scale:1,friction:.8})}))}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events)}constructor(e){this.fancybox=e;for(const e of["onReady","onClosing","onDone","onPageChange","onCreateSlide","onRemoveSlide","onImageStatusChange"])this[e]=this[e].bind(this);this.events={ready:this.onReady,closing:this.onClosing,done:this.onDone,"Carousel.change":this.onPageChange,"Carousel.createSlide":this.onCreateSlide,"Carousel.removeSlide":this.onRemoveSlide}}}T.defaults={canZoomInClass:"can-zoom_in",canZoomOutClass:"can-zoom_out",zoom:!0,zoomOpacity:"auto",zoomFriction:.82,ignoreCoveredThumbnail:!1,touch:!0,click:"toggleZoom",doubleClick:null,wheel:"zoom",fit:"contain",wrap:!1,Panzoom:{ratio:1}};class P{onChange(e){const t=e.Carousel;this.timer&&clearTimeout(this.timer);const i=null===t.prevPage,s=e.getSlide(),n=new URL(document.URL).hash;let o=!1;if(s.slug)o="#"+s.slug;else{const i=s.$trigger&&s.$trigger.dataset,n=e.option("slug")||i&&i.fancybox;n&&n.length&&"true"!==n&&(o="#"+n+(t.slides.length>1?"-"+(s.index+1):""))}i&&(this.origHash=n!==o?n:""),o&&n!==o&&(this.timer=setTimeout((()=>{try{window.history[i?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+o),i&&(this.hasCreatedHistory=!0)}catch(e){}}),300))}onClosing(){if(this.timer&&clearTimeout(this.timer),!0!==this.hasSilentClose)try{return void window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash||""))}catch(e){}}attach(e){e.on(this.events)}detach(e){e.off(this.events)}static startFromUrl(){const e=P.Fancybox;if(!e||e.getInstance()||!1===e.defaults.Hash)return;const{hash:t,slug:i,index:s}=P.getParsedURL();if(!i)return;let n=document.querySelector(`[data-slug="${t}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),e.getInstance())return;const o=document.querySelectorAll(`[data-fancybox="${i}"]`);o.length&&(null===s&&1===o.length?n=o[0]:s&&(n=o[s-1]),n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}static onHashChange(){const{slug:e,index:t}=P.getParsedURL(),i=P.Fancybox,s=i&&i.getInstance();if(s&&s.plugins.Hash){if(e){const i=s.Carousel;if(e===s.option("slug"))return i.slideTo(t-1);for(let t of i.slides)if(t.slug&&t.slug===e)return i.slideTo(t.index);const n=s.getSlide(),o=n.$trigger&&n.$trigger.dataset;if(o&&o.fancybox===e)return i.slideTo(t-1)}s.plugins.Hash.hasSilentClose=!0,s.close()}P.startFromUrl()}static create(e){function t(){window.addEventListener("hashchange",P.onHashChange,!1),P.startFromUrl()}P.Fancybox=e,b&&window.requestAnimationFrame((()=>{/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t)}))}static destroy(){window.removeEventListener("hashchange",P.onHashChange,!1)}static getParsedURL(){const e=window.location.hash.substr(1),t=e.split("-"),i=t.length>1&&/^\+?\d+$/.test(t[t.length-1])&&parseInt(t.pop(-1),10)||null;return{hash:e,slug:t.join("-"),index:i}}constructor(e){this.fancybox=e;for(const e of["onChange","onClosing"])this[e]=this[e].bind(this);this.events={initCarousel:this.onChange,"Carousel.change":this.onChange,closing:this.onClosing},this.hasCreatedHistory=!1,this.origHash="",this.timer=null}}const L={pageXOffset:0,pageYOffset:0,element:()=>document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,activate(e){L.pageXOffset=window.pageXOffset,L.pageYOffset=window.pageYOffset,e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},deactivate(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}};class k{isActive(){return this.active}setTimer(){if(!this.active||this.timer)return;const e=this.fancybox.option("slideshow.delay",3e3);this.timer=setTimeout((()=>{this.timer=null,this.fancybox.option("infinite")||this.fancybox.getSlide().index!==this.fancybox.Carousel.slides.length-1?this.fancybox.next():this.fancybox.jumpTo(0,{friction:0})}),e);let t=this.$progress;t||(t=document.createElement("div"),t.classList.add("fancybox__progress"),this.fancybox.$carousel.parentNode.insertBefore(t,this.fancybox.$carousel),this.$progress=t,t.offsetHeight),t.style.transitionDuration=`${e}ms`,t.style.transform="scaleX(1)"}clearTimer(){clearTimeout(this.timer),this.timer=null,this.$progress&&(this.$progress.style.transitionDuration="",this.$progress.style.transform="",this.$progress.offsetHeight)}activate(){this.active||(this.active=!0,this.fancybox.$container.classList.add("has-slideshow"),"done"===this.fancybox.getSlide().state&&this.setTimer(),document.addEventListener("visibilitychange",this.handleVisibilityChange,!1))}handleVisibilityChange(){this.deactivate()}deactivate(){this.active=!1,this.clearTimer(),this.fancybox.$container.classList.remove("has-slideshow"),document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1)}toggle(){this.active?this.deactivate():this.fancybox.Carousel.slides.length>1&&this.activate()}constructor(e){this.fancybox=e,this.active=!1,this.handleVisibilityChange=this.handleVisibilityChange.bind(this)}}const M={display:["counter","zoom","slideshow","fullscreen","thumbs","close"],autoEnable:!0,items:{counter:{position:"left",type:"div",class:"fancybox__counter",html:' / ',attr:{tabindex:-1}},prev:{type:"button",class:"fancybox__button--prev",label:"PREV",html:'',attr:{"data-fancybox-prev":""}},next:{type:"button",class:"fancybox__button--next",label:"NEXT",html:'',attr:{"data-fancybox-next":""}},fullscreen:{type:"button",class:"fancybox__button--fullscreen",label:"TOGGLE_FULLSCREEN",html:'\n \n \n ',click:function(e){e.preventDefault(),L.element()?L.deactivate():L.activate(this.fancybox.$container)}},slideshow:{type:"button",class:"fancybox__button--slideshow",label:"TOGGLE_SLIDESHOW",html:'\n \n \n ',click:function(e){e.preventDefault(),this.Slideshow.toggle()}},zoom:{type:"button",class:"fancybox__button--zoom",label:"TOGGLE_ZOOM",html:'',click:function(e){e.preventDefault();const t=this.fancybox.getSlide().Panzoom;t&&t.toggleZoom()}},download:{type:"link",label:"DOWNLOAD",class:"fancybox__button--download",html:'',click:function(e){e.stopPropagation()}},thumbs:{type:"button",label:"TOGGLE_THUMBS",class:"fancybox__button--thumbs",html:'',click:function(e){e.stopPropagation();const t=this.fancybox.plugins.Thumbs;t&&t.toggle()}},close:{type:"button",label:"CLOSE",class:"fancybox__button--close",html:'',attr:{"data-fancybox-close":"",tabindex:0}}}};class z{onInit(){if(this.fancybox.option("Toolbar.autoEnable")){let e=!1;for(const t of this.fancybox.items)if("image"===t.type){e=!0;break}if(!e)return void(this.state="disabled")}for(const t of this.fancybox.option("Toolbar.display"))if("close"===(e(t)?t.id:t)){this.fancybox.options.closeButton=!1;break}}onPrepare(){const e=this.fancybox;if("init"===this.state&&(this.build(),this.update(),this.Slideshow=new k(e),!e.Carousel.prevPage&&(e.option("slideshow.autoStart")&&this.Slideshow.activate(),e.option("fullscreen.autoStart")&&!L.element())))try{L.activate(e.$container)}catch(e){}}onFsChange(){window.scrollTo(L.pageXOffset,L.pageYOffset)}onSettle(){const e=this.fancybox,t=this.Slideshow;t&&t.isActive()&&(e.getSlide().index!==e.Carousel.slides.length-1||e.option("infinite")?"done"===e.getSlide().state&&t.setTimer():t.deactivate())}onChange(){this.update(),this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer()}onDone(e,t){const i=this.Slideshow;t.index===e.getSlide().index&&(this.update(),i&&i.isActive()&&(e.option("infinite")||t.index!==e.Carousel.slides.length-1?i.setTimer():i.deactivate()))}onRefresh(e){e&&e.index!==this.fancybox.getSlide().index||(this.update(),!this.Slideshow||!this.Slideshow.isActive()||e&&"done"!==e.state||this.Slideshow.deactivate())}onKeydown(e,t,i){" "===t&&this.Slideshow&&(this.Slideshow.toggle(),i.preventDefault())}onClosing(){this.Slideshow&&this.Slideshow.deactivate(),document.removeEventListener("fullscreenchange",this.onFsChange)}createElement(e){let t;"div"===e.type?t=document.createElement("div"):(t=document.createElement("link"===e.type?"a":"button"),t.classList.add("carousel__button")),t.innerHTML=e.html,t.setAttribute("tabindex",e.tabindex||0),e.class&&t.classList.add(...e.class.split(" "));for(const i in e.attr)t.setAttribute(i,e.attr[i]);e.label&&t.setAttribute("title",this.fancybox.localize(`{{${e.label}}}`)),e.click&&t.addEventListener("click",e.click.bind(this)),"prev"===e.id&&t.setAttribute("data-fancybox-prev",""),"next"===e.id&&t.setAttribute("data-fancybox-next","");const i=t.querySelector("svg");return i&&(i.setAttribute("role","img"),i.setAttribute("tabindex","-1"),i.setAttribute("xmlns","http://www.w3.org/2000/svg")),t}build(){this.cleanup();const i=this.fancybox.option("Toolbar.items"),s=[{position:"left",items:[]},{position:"center",items:[]},{position:"right",items:[]}],n=this.fancybox.plugins.Thumbs;for(const o of this.fancybox.option("Toolbar.display")){let a,r;if(e(o)?(a=o.id,r=t({},i[a],o)):(a=o,r=i[a]),["counter","next","prev","slideshow"].includes(a)&&this.fancybox.items.length<2)continue;if("fullscreen"===a){if(!document.fullscreenEnabled||window.fullScreen)continue;document.addEventListener("fullscreenchange",this.onFsChange)}if("thumbs"===a&&(!n||"disabled"===n.state))continue;if(!r)continue;let l=r.position||"right",c=s.find((e=>e.position===l));c&&c.items.push(r)}const o=document.createElement("div");o.classList.add("fancybox__toolbar");for(const e of s)if(e.items.length){const t=document.createElement("div");t.classList.add("fancybox__toolbar__items"),t.classList.add(`fancybox__toolbar__items--${e.position}`);for(const i of e.items)t.appendChild(this.createElement(i));o.appendChild(t)}this.fancybox.$carousel.parentNode.insertBefore(o,this.fancybox.$carousel),this.$container=o}update(){const e=this.fancybox.getSlide(),t=e.index,i=this.fancybox.items.length,s=e.downloadSrc||("image"!==e.type||e.error?null:e.src);for(const e of this.fancybox.$container.querySelectorAll("a.fancybox__button--download"))s?(e.removeAttribute("disabled"),e.removeAttribute("tabindex"),e.setAttribute("href",s),e.setAttribute("download",s),e.setAttribute("target","_blank")):(e.setAttribute("disabled",""),e.setAttribute("tabindex",-1),e.removeAttribute("href"),e.removeAttribute("download"));const n=e.Panzoom,o=n&&n.option("maxScale")>n.option("baseScale");for(const e of this.fancybox.$container.querySelectorAll(".fancybox__button--zoom"))o?e.removeAttribute("disabled"):e.setAttribute("disabled","");for(const t of this.fancybox.$container.querySelectorAll("[data-fancybox-index]"))t.innerHTML=e.index+1;for(const e of this.fancybox.$container.querySelectorAll("[data-fancybox-count]"))e.innerHTML=i;if(!this.fancybox.option("infinite")){for(const e of this.fancybox.$container.querySelectorAll("[data-fancybox-prev]"))0===t?e.setAttribute("disabled",""):e.removeAttribute("disabled");for(const e of this.fancybox.$container.querySelectorAll("[data-fancybox-next]"))t===i-1?e.setAttribute("disabled",""):e.removeAttribute("disabled")}}cleanup(){this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer(),this.$container&&this.$container.remove(),this.$container=null}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events),this.cleanup()}constructor(e){this.fancybox=e,this.$container=null,this.state="init";for(const e of["onInit","onPrepare","onDone","onKeydown","onClosing","onChange","onSettle","onRefresh"])this[e]=this[e].bind(this);this.events={init:this.onInit,prepare:this.onPrepare,done:this.onDone,keydown:this.onKeydown,closing:this.onClosing,"Carousel.change":this.onChange,"Carousel.settle":this.onSettle,"Carousel.Panzoom.touchStart":()=>this.onRefresh(),"Image.startAnimation":(e,t)=>this.onRefresh(t),"Image.afterUpdate":(e,t)=>this.onRefresh(t)}}}z.defaults=M;const A={ScrollLock:class{onReady(){const e=window.visualViewport;e&&(this.viewport=e,this.startY=0,e.addEventListener("resize",this.onResize),this.updateViewport()),window.addEventListener("touchstart",this.onTouchstart,{passive:!1}),window.addEventListener("touchmove",this.onTouchmove,{passive:!1}),window.addEventListener("wheel",this.onWheel,{passive:!1})}onResize(){this.updateViewport()}updateViewport(){const e=this.fancybox,t=this.viewport,i=t.scale||1,s=e.$container;if(!s)return;let n="",o="",a="";i-1>.1&&(n=t.width*i+"px",o=t.height*i+"px",a=`translate3d(${t.offsetLeft}px, ${t.offsetTop}px, 0) scale(${1/i})`),s.style.width=n,s.style.height=o,s.style.transform=a}onTouchstart(e){this.startY=e.touches?e.touches[0].screenY:e.screenY}onTouchmove(e){const t=this.startY,i=window.innerWidth/window.document.documentElement.clientWidth;if(!e.cancelable)return;if(e.touches.length>1||1!==i)return;const n=s(e.composedPath()[0]);if(!n)return void e.preventDefault();const o=window.getComputedStyle(n),a=parseInt(o.getPropertyValue("height"),10),r=e.touches?e.touches[0].screenY:e.screenY,l=t<=r&&0===n.scrollTop,c=t>=r&&n.scrollHeight-n.scrollTop===a;(l||c)&&e.preventDefault()}onWheel(e){s(e.composedPath()[0])||e.preventDefault()}cleanup(){this.pendingUpdate&&(cancelAnimationFrame(this.pendingUpdate),this.pendingUpdate=null);const e=this.viewport;e&&(e.removeEventListener("resize",this.onResize),this.viewport=null),window.removeEventListener("touchstart",this.onTouchstart,!1),window.removeEventListener("touchmove",this.onTouchmove,!1),window.removeEventListener("wheel",this.onWheel,{passive:!1})}attach(){this.fancybox.on("initLayout",this.onReady)}detach(){this.fancybox.off("initLayout",this.onReady),this.cleanup()}constructor(e){this.fancybox=e,this.viewport=null,this.pendingUpdate=null;for(const e of["onReady","onResize","onTouchstart","onTouchmove"])this[e]=this[e].bind(this)}},Thumbs:C,Html:$,Toolbar:z,Image:T,Hash:P},O={startIndex:0,preload:1,infinite:!0,showClass:"fancybox-zoomInUp",hideClass:"fancybox-fadeOut",animated:!0,hideScrollbar:!0,parentEl:null,mainClass:null,autoFocus:!0,trapFocus:!0,placeFocusBack:!0,click:"close",closeButton:"inside",dragToClose:!0,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"next",ArrowDown:"prev",ArrowRight:"next",ArrowLeft:"prev"},template:{closeButton:'',spinner:'',main:null},l10n:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}},_=new Map;let I=0;class N extends c{option(e,...t){const i=this.getSlide();let s=i?i[e]:void 0;return void 0!==s?("function"==typeof s&&(s=s.call(this,this,...t)),s):super.option(e,...t)}bindHandlers(){for(const e of["onMousedown","onKeydown","onClick","onFocus","onCreateSlide","onSettle","onTouchMove","onTouchEnd","onTransform"])this[e]=this[e].bind(this)}attachEvents(){document.addEventListener("mousedown",this.onMousedown),document.addEventListener("keydown",this.onKeydown,!0),this.option("trapFocus")&&document.addEventListener("focus",this.onFocus,!0),this.$container.addEventListener("click",this.onClick)}detachEvents(){document.removeEventListener("mousedown",this.onMousedown),document.removeEventListener("keydown",this.onKeydown,!0),document.removeEventListener("focus",this.onFocus,!0),this.$container.removeEventListener("click",this.onClick)}initLayout(){this.$root=this.option("parentEl")||document.body;let e=this.option("template.main");e&&(this.$root.insertAdjacentHTML("beforeend",this.localize(e)),this.$container=this.$root.querySelector(".fancybox__container")),this.$container||(this.$container=document.createElement("div"),this.$root.appendChild(this.$container)),this.$container.onscroll=()=>(this.$container.scrollLeft=0,!1),Object.entries({class:"fancybox__container",role:"dialog",tabIndex:"-1","aria-modal":"true","aria-hidden":"true","aria-label":this.localize("{{MODAL}}")}).forEach((e=>this.$container.setAttribute(...e))),this.option("animated")&&this.$container.classList.add("is-animated"),this.$backdrop=this.$container.querySelector(".fancybox__backdrop"),this.$backdrop||(this.$backdrop=document.createElement("div"),this.$backdrop.classList.add("fancybox__backdrop"),this.$container.appendChild(this.$backdrop)),this.$carousel=this.$container.querySelector(".fancybox__carousel"),this.$carousel||(this.$carousel=document.createElement("div"),this.$carousel.classList.add("fancybox__carousel"),this.$container.appendChild(this.$carousel)),this.$container.Fancybox=this,this.id=this.$container.getAttribute("id"),this.id||(this.id=this.options.id||++I,this.$container.setAttribute("id","fancybox-"+this.id));const t=this.option("mainClass");return t&&this.$container.classList.add(...t.split(" ")),document.documentElement.classList.add("with-fancybox"),this.trigger("initLayout"),this}setItems(e){const t=[];for(const i of e){const e=i.$trigger;if(e){const t=e.dataset||{};i.src=t.src||e.getAttribute("href")||i.src,i.type=t.type||i.type,!i.src&&e instanceof HTMLImageElement&&(i.src=e.currentSrc||i.$trigger.src)}let s=i.$thumb;if(!s){let e=i.$trigger&&i.$trigger.origTarget;e&&(s=e instanceof HTMLImageElement?e:e.querySelector("img:not([aria-hidden])")),!s&&i.$trigger&&(s=i.$trigger instanceof HTMLImageElement?i.$trigger:i.$trigger.querySelector("img:not([aria-hidden])"))}i.$thumb=s||null;let n=i.thumb;!n&&s&&(n=s.currentSrc||s.src,!n&&s.dataset&&(n=s.dataset.lazySrc||s.dataset.src)),n||"image"!==i.type||(n=i.src),i.thumb=n||null,i.caption=i.caption||"",t.push(i)}this.items=t}initCarousel(){return this.Carousel=new v(this.$carousel,t(!0,{},{prefix:"",classNames:{viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"},textSelection:!0,preload:this.option("preload"),friction:.88,slides:this.items,initialPage:this.options.startIndex,slidesPerPage:1,infiniteX:this.option("infinite"),infiniteY:!0,l10n:this.option("l10n"),Dots:!1,Navigation:{classNames:{main:"fancybox__nav",button:"carousel__button",next:"is-next",prev:"is-prev"}},Panzoom:{textSelection:!0,panOnlyZoomed:()=>this.Carousel&&this.Carousel.pages&&this.Carousel.pages.length<2&&!this.option("dragToClose"),lockAxis:()=>{if(this.Carousel){let e="x";return this.option("dragToClose")&&(e+="y"),e}}},on:{"*":(e,...t)=>this.trigger(`Carousel.${e}`,...t),init:e=>this.Carousel=e,createSlide:this.onCreateSlide,settle:this.onSettle}},this.option("Carousel"))),this.option("dragToClose")&&this.Carousel.Panzoom.on({touchMove:this.onTouchMove,afterTransform:this.onTransform,touchEnd:this.onTouchEnd}),this.trigger("initCarousel"),this}onCreateSlide(e,t){let i=t.caption||"";if("function"==typeof this.options.caption&&(i=this.options.caption.call(this,this,this.Carousel,t)),"string"==typeof i&&i.length){const e=document.createElement("div"),s=`fancybox__caption_${this.id}_${t.index}`;e.className="fancybox__caption",e.innerHTML=i,e.setAttribute("id",s),t.$caption=t.$el.appendChild(e),t.$el.classList.add("has-caption"),t.$el.setAttribute("aria-labelledby",s)}}onSettle(){this.option("autoFocus")&&this.focus()}onFocus(e){this.focus(e)}onClick(e){if(e.defaultPrevented)return;let t=e.composedPath()[0];if(t.matches("[data-fancybox-close]"))return e.preventDefault(),void N.close(!1,e);if(t.matches("[data-fancybox-next]"))return e.preventDefault(),void N.next();if(t.matches("[data-fancybox-prev]"))return e.preventDefault(),void N.prev();if(!(t.matches(x)||document.activeElement.blur(),t.closest(".fancybox__content")||getSelection().toString().length||!1===this.trigger("click",e)))switch(this.option("click")){case"close":this.close();break;case"next":this.next()}}onTouchMove(){const e=this.getSlide().Panzoom;return!e||1===e.content.scale}onTouchEnd(e){const t=e.dragOffset.y;Math.abs(t)>=150||Math.abs(t)>=35&&e.dragOffset.time<350?(this.option("hideClass")&&(this.getSlide().hideClass="fancybox-throwOut"+(e.content.y<0?"Up":"Down")),this.close()):"y"===e.lockAxis&&e.panTo({y:0})}onTransform(e){if(this.$backdrop){const t=Math.abs(e.content.y),i=t<1?"":Math.max(.33,Math.min(1,1-t/e.content.fitHeight*1.5));this.$container.style.setProperty("--fancybox-ts",i?"0s":""),this.$container.style.setProperty("--fancybox-opacity",i)}}onMousedown(){"ready"===this.state&&document.body.classList.add("is-using-mouse")}onKeydown(e){if(N.getInstance().id!==this.id)return;document.body.classList.remove("is-using-mouse");const t=e.key,i=this.option("keyboard");if(!i||e.ctrlKey||e.altKey||e.shiftKey)return;const s=e.composedPath()[0],n=document.activeElement&&document.activeElement.classList,o=n&&n.contains("carousel__button");if("Escape"!==t&&!o&&(e.target.isContentEditable||-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(s.nodeName)))return;if(!1===this.trigger("keydown",t,e))return;const a=i[t];"function"==typeof this[a]&&this[a]()}getSlide(){const e=this.Carousel;if(!e)return null;const t=null===e.page?e.option("initialPage"):e.page,i=e.pages||[];return i.length&&i[t]?i[t].slides[0]:null}focus(e){if(N.ignoreFocusChange)return;if(["init","closing","customClosing","destroy"].indexOf(this.state)>-1)return;const t=this.$container,i=this.getSlide(),s="done"===i.state?i.$el:null;if(s&&s.contains(document.activeElement))return;e&&e.preventDefault(),N.ignoreFocusChange=!0;const n=Array.from(t.querySelectorAll(x));let o,a=[];for(let e of n){const t=e.offsetParent,i=s&&s.contains(e),n=!this.Carousel.$viewport.contains(e);t&&(i||n)?(a.push(e),void 0!==e.dataset.origTabindex&&(e.tabIndex=e.dataset.origTabindex,e.removeAttribute("data-orig-tabindex")),(e.hasAttribute("autoFocus")||!o&&i&&!e.classList.contains("carousel__button"))&&(o=e)):(e.dataset.origTabindex=void 0===e.dataset.origTabindex?e.getAttribute("tabindex"):e.dataset.origTabindex,e.tabIndex=-1)}e?a.indexOf(e.target)>-1?this.lastFocus=e.target:this.lastFocus===t?w(a[a.length-1]):w(t):this.option("autoFocus")&&o?w(o):a.indexOf(document.activeElement)<0&&w(t),this.lastFocus=document.activeElement,N.ignoreFocusChange=!1}hideScrollbar(){if(!b)return;const e=window.innerWidth-document.documentElement.getBoundingClientRect().width,t="fancybox-style-noscroll";let i=document.getElementById(t);i||e>0&&(i=document.createElement("style"),i.id=t,i.type="text/css",i.innerHTML=`.compensate-for-scrollbar {padding-right: ${e}px;}`,document.getElementsByTagName("head")[0].appendChild(i),document.body.classList.add("compensate-for-scrollbar"))}revealScrollbar(){document.body.classList.remove("compensate-for-scrollbar");const e=document.getElementById("fancybox-style-noscroll");e&&e.remove()}clearContent(e){this.Carousel.trigger("removeSlide",e),e.$content&&(e.$content.remove(),e.$content=null),e.$closeButton&&(e.$closeButton.remove(),e.$closeButton=null),e._className&&e.$el.classList.remove(e._className)}setContent(e,t,i={}){let s;const n=e.$el;if(t instanceof HTMLElement)["img","iframe","video","audio"].indexOf(t.nodeName.toLowerCase())>-1?(s=document.createElement("div"),s.appendChild(t)):s=t;else{const e=document.createRange().createContextualFragment(t);s=document.createElement("div"),s.appendChild(e)}if(e.filter&&!e.error&&(s=s.querySelector(e.filter)),s instanceof Element)return e._className=`has-${i.suffix||e.type||"unknown"}`,n.classList.add(e._className),s.classList.add("fancybox__content"),"none"!==s.style.display&&"none"!==getComputedStyle(s).getPropertyValue("display")||(s.style.display=e.display||this.option("defaultDisplay")||"flex"),e.id&&s.setAttribute("id",e.id),e.$content=s,n.prepend(s),this.manageCloseButton(e),"loading"!==e.state&&this.revealContent(e),s;this.setError(e,"{{ELEMENT_NOT_FOUND}}")}manageCloseButton(e){const t=void 0===e.closeButton?this.option("closeButton"):e.closeButton;if(!t||"top"===t&&this.$closeButton)return;const i=document.createElement("button");i.classList.add("carousel__button","is-close"),i.setAttribute("title",this.options.l10n.CLOSE),i.innerHTML=this.option("template.closeButton"),i.addEventListener("click",(e=>this.close(e))),"inside"===t?(e.$closeButton&&e.$closeButton.remove(),e.$closeButton=e.$content.appendChild(i)):this.$closeButton=this.$container.insertBefore(i,this.$container.firstChild)}revealContent(e){this.trigger("reveal",e),e.$content.style.visibility="";let t=!1;e.error||"loading"===e.state||null!==this.Carousel.prevPage||e.index!==this.options.startIndex||(t=void 0===e.showClass?this.option("showClass"):e.showClass),t?(e.state="animating",this.animateCSS(e.$content,t,(()=>{this.done(e)}))):this.done(e)}animateCSS(e,t,i){if(e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!0,cancelable:!0})),!e||!t)return void("function"==typeof i&&i());const s=function(n){n.currentTarget===this&&(e.removeEventListener("animationend",s),i&&i(),e.classList.remove(t))};e.addEventListener("animationend",s),e.classList.add(t)}done(e){e.state="done",this.trigger("done",e);const t=this.getSlide();t&&e.index===t.index&&this.option("autoFocus")&&this.focus()}setError(e,t){e.error=t,this.hideLoading(e),this.clearContent(e);const i=document.createElement("div");i.classList.add("fancybox-error"),i.innerHTML=this.localize(t||"

{{ERROR}}

"),this.setContent(e,i,{suffix:"error"})}showLoading(e){e.state="loading",e.$el.classList.add("is-loading");let t=e.$el.querySelector(".fancybox__spinner");t||(t=document.createElement("div"),t.classList.add("fancybox__spinner"),t.innerHTML=this.option("template.spinner"),t.addEventListener("click",(()=>{this.Carousel.Panzoom.velocity||this.close()})),e.$el.prepend(t))}hideLoading(e){const t=e.$el&&e.$el.querySelector(".fancybox__spinner");t&&(t.remove(),e.$el.classList.remove("is-loading")),"loading"===e.state&&(this.trigger("load",e),e.state="ready")}next(){const e=this.Carousel;e&&e.pages.length>1&&e.slideNext()}prev(){const e=this.Carousel;e&&e.pages.length>1&&e.slidePrev()}jumpTo(...e){this.Carousel&&this.Carousel.slideTo(...e)}close(e){if(e&&e.preventDefault(),["closing","customClosing","destroy"].includes(this.state))return;if(!1===this.trigger("shouldClose",e))return;if(this.state="closing",this.Carousel.Panzoom.destroy(),this.detachEvents(),this.trigger("closing",e),"destroy"===this.state)return;this.$container.setAttribute("aria-hidden","true"),this.$container.classList.add("is-closing");const t=this.getSlide();if(this.Carousel.slides.forEach((e=>{e.$content&&e.index!==t.index&&this.Carousel.trigger("removeSlide",e)})),"closing"===this.state){const e=void 0===t.hideClass?this.option("hideClass"):t.hideClass;this.animateCSS(t.$content,e,(()=>{this.destroy()}),!0)}}destroy(){if("destroy"===this.state)return;this.state="destroy",this.trigger("destroy");const e=this.option("placeFocusBack")?this.getSlide().$trigger:null;this.Carousel.destroy(),this.detachPlugins(),this.Carousel=null,this.options={},this.events={},this.$container.remove(),this.$container=this.$backdrop=this.$carousel=null,e&&w(e),_.delete(this.id);const t=N.getInstance();t?t.focus():(document.documentElement.classList.remove("with-fancybox"),document.body.classList.remove("is-using-mouse"),this.revealScrollbar())}static show(e,t={}){return new N(e,t)}static fromEvent(e,t={}){if(e.defaultPrevented)return;if(e.button&&0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey)return;const i=e.composedPath()[0];let s,n,o,a=i;if((a.matches("[data-fancybox-trigger]")||(a=a.closest("[data-fancybox-trigger]")))&&(s=a&&a.dataset&&a.dataset.fancyboxTrigger),s){const e=document.querySelectorAll(`[data-fancybox="${s}"]`),t=parseInt(a.dataset.fancyboxIndex,10)||0;a=e.length?e[t]:a}a||(a=i),Array.from(N.openers.keys()).reverse().some((t=>{o=a;let i=!1;try{o instanceof Element&&("string"==typeof t||t instanceof String)&&(i=o.matches(t)||(o=o.closest(t)))}catch(e){}return!!i&&(e.preventDefault(),n=t,!0)}));let r=!1;if(n){t.event=e,t.target=o,o.origTarget=i,r=N.fromOpener(n,t);const s=N.getInstance();s&&"ready"===s.state&&e.detail&&document.body.classList.add("is-using-mouse")}return r}static fromOpener(e,i={}){let s=[],n=i.startIndex||0,o=i.target||null;const a=void 0!==(i=t({},i,N.openers.get(e))).groupAll&&i.groupAll,r=void 0===i.groupAttr?"data-fancybox":i.groupAttr,l=r&&o?o.getAttribute(`${r}`):"";if(!o||l||a){const t=i.root||(o?o.getRootNode():document.body);s=[].slice.call(t.querySelectorAll(e))}if(o&&!a&&(s=l?s.filter((e=>e.getAttribute(`${r}`)===l)):[o]),!s.length)return!1;const c=N.getInstance();return!(c&&s.indexOf(c.options.$trigger)>-1)&&(n=o?s.indexOf(o):n,s=s.map((function(e){const t=["false","0","no","null","undefined"],i=["true","1","yes"],s=Object.assign({},e.dataset),n={};for(let[e,o]of Object.entries(s))if("fancybox"!==e)if("width"===e||"height"===e)n[`_${e}`]=o;else if("string"==typeof o||o instanceof String)if(t.indexOf(o)>-1)n[e]=!1;else if(i.indexOf(n[e])>-1)n[e]=!0;else try{n[e]=JSON.parse(o)}catch(t){n[e]=o}else n[e]=o;return e instanceof Element&&(n.$trigger=e),n})),new N(s,t({},i,{startIndex:n,$trigger:o})))}static bind(e,t={}){function i(){document.body.addEventListener("click",N.fromEvent,!1)}b&&(N.openers.size||(/complete|interactive|loaded/.test(document.readyState)?i():document.addEventListener("DOMContentLoaded",i)),N.openers.set(e,t))}static unbind(e){N.openers.delete(e),N.openers.size||N.destroy()}static destroy(){let e;for(;e=N.getInstance();)e.destroy();N.openers=new Map,document.body.removeEventListener("click",N.fromEvent,!1)}static getInstance(e){return e?_.get(e):Array.from(_.values()).reverse().find((e=>!["closing","customClosing","destroy"].includes(e.state)&&e))||null}static close(e=!0,t){if(e)for(const e of _.values())e.close(t);else{const e=N.getInstance();e&&e.close(t)}}static next(){const e=N.getInstance();e&&e.next()}static prev(){const e=N.getInstance();e&&e.prev()}constructor(e,i={}){e=e.map((e=>(e.width&&(e._width=e.width),e.height&&(e._height=e.height),e))),super(t(!0,{},O,i)),this.bindHandlers(),this.state="init",this.setItems(e),this.attachPlugins(N.Plugins),this.trigger("init"),!0===this.option("hideScrollbar")&&this.hideScrollbar(),this.initLayout(),this.initCarousel(),this.attachEvents(),_.set(this.id,this),this.trigger("prepare"),this.state="ready",this.trigger("ready"),this.$container.setAttribute("aria-hidden","false"),this.option("trapFocus")&&this.focus()}}N.version="4.0.26",N.defaults=O,N.openers=new Map,N.Plugins=A,N.bind("[data-fancybox]");for(const[e,t]of Object.entries(N.Plugins||{}))"function"==typeof t.create&&t.create(N);var B={};!function(e,t){var i=function(e,t,i){"use strict";var s,n;if(function(){var t,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in n=e.lazySizesConfig||e.lazysizesConfig||{},i)t in n||(n[t]=i[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:n,noSupport:!0};var o=t.documentElement,a=e.HTMLPictureElement,r="addEventListener",l="getAttribute",c=e[r].bind(e),d=e.setTimeout,h=e.requestAnimationFrame||d,u=e.requestIdleCallback,p=/^picture$/i,f=["load","error","lazyincluded","_lazyloaded"],g={},m=Array.prototype.forEach,v=function(e,t){return g[t]||(g[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),g[t].test(e[l]("class")||"")&&g[t]},b=function(e,t){v(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},y=function(e,t){var i;(i=v(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(i," "))},x=function(e,t,i){var s=i?r:"removeEventListener";i&&x(e,t),f.forEach((function(i){e[s](i,t)}))},w=function(e,i,n,o,a){var r=t.createEvent("Event");return n||(n={}),n.instance=s,r.initEvent(i,!o,!a),r.detail=n,e.dispatchEvent(r),r},C=function(t,i){var s;!a&&(s=e.picturefill||n.pf)?(i&&i.src&&!t[l]("srcset")&&t.setAttribute("srcset",i.src),s({reevaluate:!0,elements:[t]})):i&&i.src&&(t.src=i.src)},S=function(e,t){return(getComputedStyle(e,null)||{})[t]},E=function(e,t,i){for(i=i||e.offsetWidth;i49?function(){u(r,{timeout:a}),a!==n.ricTimeout&&(a=n.ricTimeout)}:T((function(){d(r)}),!0);return function(e){var n;(e=!0===e)&&(a=33),t||(t=!0,(n=o-(i.now()-s))<0&&(n=0),e||n<9?l():d(l,n))}},L=function(e){var t,s,n=99,o=function(){t=null,e()},a=function(){var e=i.now()-s;e0)&&"visible"!=S(n,"overflow")&&(s=n.getBoundingClientRect(),a=V>s.left&&qs.top-1&&G500&&o.clientWidth>500?500:370:n.expand,s._defEx=f,g=f*n.expFactor,m=n.hFac,X=null,J2&&F>2&&!t.hidden?(J=g,ee=0):J=F>1&&ee>1&&Q<6?f:K),p!==d&&(H=innerWidth+d*m,W=innerHeight+d,h=-1*d,p=d),a=v[i].getBoundingClientRect(),(j=a.bottom)>=h&&(G=a.top)<=W&&(V=a.right)>=h*m&&(q=a.left)<=H&&(j||V||q||G)&&(n.loadHidden||ie(v[i]))&&(B&&Q<3&&!u&&(F<3||ee<4)||se(v[i],d))){if(ue(v[i]),c=!0,Q>9)break}else!c&&B&&!r&&Q<4&&ee<4&&F>2&&(N[0]||n.preloadAfterLoad)&&(N[0]||!u&&(j||V||q||G||"auto"!=v[i][l](n.sizesAttr)))&&(r=N[0]||v[i]);r&&!c&&ue(r)}},oe=P(ne),ae=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),b(t,n.loadedClass),y(t,n.loadingClass),x(t,le),w(t,"lazyloaded"))},re=T(ae),le=function(e){re({target:e.target})},ce=function(e,t){var i=e.getAttribute("data-load-mode")||n.iframeLoadMode;0==i?e.contentWindow.location.replace(t):1==i&&(e.src=t)},de=function(e){var t,i=e[l](n.srcsetAttr);(t=n.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),i&&e.setAttribute("srcset",i)},he=T((function(e,t,i,s,o){var a,r,c,h,u,f;(u=w(e,"lazybeforeunveil",t)).defaultPrevented||(s&&(i?b(e,n.autosizesClass):e.setAttribute("sizes",s)),r=e[l](n.srcsetAttr),a=e[l](n.srcAttr),o&&(h=(c=e.parentNode)&&p.test(c.nodeName||"")),f=t.firesLoad||"src"in e&&(r||a||h),u={target:e},b(e,n.loadingClass),f&&(clearTimeout(D),D=d(te,2500),x(e,le,!0)),h&&m.call(c.getElementsByTagName("source"),de),r?e.setAttribute("srcset",r):a&&!h&&(U.test(e.nodeName)?ce(e,a):e.src=a),o&&(r||h)&&C(e,{src:a})),e._lazyRace&&delete e._lazyRace,y(e,n.lazyClass),$((function(){var t=e.complete&&e.naturalWidth>1;f&&!t||(t&&b(e,n.fastLoadedClass),ae(u),e._lazyCache=!0,d((function(){"_lazyCache"in e&&delete e._lazyCache}),9)),"lazy"==e.loading&&Q--}),!0)})),ue=function(e){if(!e._lazyRace){var t,i=Y.test(e.nodeName),s=i&&(e[l](n.sizesAttr)||e[l]("sizes")),o="auto"==s;(!o&&B||!i||!e[l]("src")&&!e.srcset||e.complete||v(e,n.errorClass)||!v(e,n.lazyClass))&&(t=w(e,"lazyunveilread").detail,o&&M.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,Q++,he(e,t,o,s,i))}},pe=L((function(){n.loadMode=3,oe()})),fe=function(){3==n.loadMode&&(n.loadMode=2),pe()},ge=function(){B||(i.now()-R<999?d(ge,999):(B=!0,n.loadMode=3,oe(),c("scroll",fe,!0)))},{_:function(){R=i.now(),s.elements=t.getElementsByClassName(n.lazyClass),N=t.getElementsByClassName(n.lazyClass+" "+n.preloadClass),c("scroll",oe,!0),c("resize",oe,!0),c("pageshow",(function(e){if(e.persisted){var i=t.querySelectorAll("."+n.loadingClass);i.length&&i.forEach&&h((function(){i.forEach((function(e){e.complete&&ue(e)}))}))}})),e.MutationObserver?new MutationObserver(oe).observe(o,{childList:!0,subtree:!0,attributes:!0}):(o[r]("DOMNodeInserted",oe,!0),o[r]("DOMAttrModified",oe,!0),setInterval(oe,999)),c("hashchange",oe,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[r](e,oe,!0)})),/d$|^c/.test(t.readyState)?ge():(c("load",ge),t[r]("DOMContentLoaded",oe),d(ge,2e4)),s.elements.length?(ne(),$._lsFlush()):oe()},checkElems:oe,unveil:ue,_aLSL:fe}),M=(O=T((function(e,t,i,s){var n,o,a;if(e._lazysizesWidth=s,s+="px",e.setAttribute("sizes",s),p.test(t.nodeName||""))for(o=0,a=(n=t.getElementsByTagName("source")).length;o{void 0===e[i]?e[i]=t[i]:D(t[i])&&D(e[i])&&Object.keys(t[i]).length>0&&F(e[i],t[i])}))}const R={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function H(){const e="undefined"!=typeof document?document:{};return F(e,R),e}const W={document:R,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function G(){const e="undefined"!=typeof window?window:{};return F(e,W),e}class q extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function V(e=[]){const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...V(e)):t.push(e)})),t}function j(e,t){return Array.prototype.filter.call(e,t)}function X(e,t){const i=G(),s=H();let n=[];if(!t&&e instanceof q)return e;if(!e)return new q(n);if("string"==typeof e){const i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let e="div";0===i.indexOf("e.split(" "))));return this.forEach((e=>{e.classList.add(...t)})),this},removeClass:function(...e){const t=V(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...t)})),this},hasClass:function(...e){const t=V(e.map((e=>e.split(" "))));return j(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(...e){const t=V(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let i=0;i=0;e-=1){const i=a[e];s&&i.listener===s||s&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===s?(o.removeEventListener(t,i.proxyListener,n),a.splice(e,1)):s||(o.removeEventListener(t,i.proxyListener,n),a.splice(e,1))}}}return this},trigger:function(...e){const t=G(),i=e[0].split(" "),s=e[1];for(let n=0;nt>0)),n.dispatchEvent(i),n.dom7EventData=[],delete n.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function i(s){s.target===this&&(e.call(this,s),t.off("transitionend",i))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=G();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=G(),t=H(),i=this[0],s=i.getBoundingClientRect(),n=t.body,o=i.clientTop||n.clientTop||0,a=i.clientLeft||n.clientLeft||0,r=i===e?e.scrollY:i.scrollTop,l=i===e?e.scrollX:i.scrollLeft;return{top:s.top+r-o,left:s.left+l-a}}return null},css:function(e,t){const i=G();let s;if(1===arguments.length){if("string"!=typeof e){for(s=0;s{e.apply(t,[t,i])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;tt-1)return X([]);if(e<0){const i=t+e;return X(i<0?[]:[this[i]])}return X([this[e]])},append:function(...e){let t;const i=H();for(let s=0;s=0;s-=1)this[i].insertBefore(n.childNodes[s],this[i].childNodes[0])}else if(e instanceof q)for(s=0;s0?e?this[0].nextElementSibling&&X(this[0].nextElementSibling).is(e)?X([this[0].nextElementSibling]):X([]):this[0].nextElementSibling?X([this[0].nextElementSibling]):X([]):X([])},nextAll:function(e){const t=[];let i=this[0];if(!i)return X([]);for(;i.nextElementSibling;){const s=i.nextElementSibling;e?X(s).is(e)&&t.push(s):t.push(s),i=s}return X(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&X(t.previousElementSibling).is(e)?X([t.previousElementSibling]):X([]):t.previousElementSibling?X([t.previousElementSibling]):X([])}return X([])},prevAll:function(e){const t=[];let i=this[0];if(!i)return X([]);for(;i.previousElementSibling;){const s=i.previousElementSibling;e?X(s).is(e)&&t.push(s):t.push(s),i=s}return X(t)},parent:function(e){const t=[];for(let i=0;i{Object.defineProperty(X.fn,e,{value:Z[e],writable:!0})}));var K=X;function J(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function Q(){return Date.now()}function ee(e,t){void 0===t&&(t="x");const i=G();let s,n,o;const a=function(e){const t=G();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new i.WebKitCSSMatrix("none"===n?"":n)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=o.toString().split(",")),"x"===t&&(n=i.WebKitCSSMatrix?o.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(n=i.WebKitCSSMatrix?o.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}function te(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function ie(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function se(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let i=1;it.indexOf(e)<0));for(let t=0,n=i.length;to?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,h=()=>{a=(new Date).getTime(),null===r&&(r=a);const e=Math.max(Math.min((a-r)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let u=o+c*(i-o);if(d(u,i)&&(u=i),t.wrapperEl.scrollTo({[s]:u}),d(u,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[s]:u})})),void n.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=n.requestAnimationFrame(h)};h()}let ae,re,le;function ce(){return ae||(ae=function(){const e=G(),t=H();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const i=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),ae}function de(e){return void 0===e&&(e={}),re||(re=function(e){let{userAgent:t}=void 0===e?{}:e;const i=ce(),s=G(),n=s.navigator.platform,o=t||s.navigator.userAgent,a={ios:!1,android:!1},r=s.screen.width,l=s.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const h=o.match(/(iPod)(.*OS\s([\d_]+))?/),u=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===n;let f="MacIntel"===n;return!d&&f&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${r}x${l}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),f=!1),c&&!p&&(a.os="android",a.android=!0),(d||u||h)&&(a.os="ios",a.ios=!0),a}(e)),re}function he(){return le||(le=function(){const e=G();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),le}var ue={on(e,t,i){const s=this;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach((e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)})),s},once(e,t,i){const s=this;if("function"!=typeof t)return s;function n(){s.off(e,n),n.__emitterProxy&&delete n.__emitterProxy;for(var i=arguments.length,o=new Array(i),a=0;a=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((s,n)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(n,1)}))})),i):i},emit(){const e=this;if(!e.eventsListeners)return e;let t,i,s;for(var n=arguments.length,o=new Array(n),a=0;a{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(s,[t,...i])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(s,i)}))})),e}};function pe(e){let{swiper:t,runCallbacks:i,direction:s,step:n}=e;const{activeIndex:o,previousIndex:a}=t;let r=s;if(r||(r=o>a?"next":o0)return;if(n.isTouched&&n.isMoved)return;!!o.noSwipingClass&&""!==o.noSwipingClass&&l.target&&l.target.shadowRoot&&e.path&&e.path[0]&&(c=K(e.path[0]));const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!(!l.target||!l.target.shadowRoot);if(o.noSwiping&&(h?function(e,t){return void 0===t&&(t=this),function t(i){return i&&i!==H()&&i!==G()?(i.assignedSlot&&(i=i.assignedSlot),i.closest(e)||t(i.getRootNode().host)):null}(t)}(d,l.target):c.closest(d)[0]))return void(t.allowClick=!0);if(o.swipeHandler&&!c.closest(o.swipeHandler)[0])return;a.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,a.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;const u=a.currentX,p=a.currentY,f=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,g=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(f&&(u<=g||u>=s.innerWidth-g)){if("prevent"!==f)return;e.preventDefault()}if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=u,a.startY=p,n.touchStartTime=Q(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==l.type){let e=!0;c.is(n.focusableElements)&&(e=!1,"SELECT"===c[0].nodeName&&(n.isTouched=!1)),i.activeElement&&K(i.activeElement).is(n.focusableElements)&&i.activeElement!==c[0]&&i.activeElement.blur();const s=e&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!s||c[0].isContentEditable||l.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function ge(e){const t=H(),i=this,s=i.touchEventsData,{params:n,touches:o,rtlTranslate:a,enabled:r}=i;if(!r)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!s.isTouched)return void(s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",l));if(s.isTouchEvent&&"touchmove"!==l.type)return;const c="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),d="touchmove"===l.type?c.pageX:l.pageX,h="touchmove"===l.type?c.pageY:l.pageY;if(l.preventedByNestedSwiper)return o.startX=d,void(o.startY=h);if(!i.allowTouchMove)return K(l.target).is(s.focusableElements)||(i.allowClick=!1),void(s.isTouched&&(Object.assign(o,{startX:d,startY:h,currentX:d,currentY:h}),s.touchStartTime=Q()));if(s.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(i.isVertical()){if(ho.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(do.startX&&i.translate>=i.minTranslate())return;if(s.isTouchEvent&&t.activeElement&&l.target===t.activeElement&&K(l.target).is(s.focusableElements))return s.isMoved=!0,void(i.allowClick=!1);if(s.allowTouchCallbacks&&i.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=d,o.currentY=h;const u=o.currentX-o.startX,p=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(u**2+p**2)=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(u))/Math.PI,s.isScrolling=i.isHorizontal()?e>n.touchAngle:90-e>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",l),void 0===s.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(s.startMoving=!0)),s.isScrolling)return void(s.isTouched=!1);if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation(),s.isMoved||(n.loop&&!n.cssMode&&i.loopFix(),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,!n.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",l)),i.emit("sliderMove",l),s.isMoved=!0;let f=i.isHorizontal()?u:p;o.diff=f,f*=n.touchRatio,a&&(f=-f),i.swipeDirection=f>0?"prev":"next",s.currentTranslate=f+s.startTranslate;let g=!0,m=n.resistanceRatio;if(n.touchReleaseOnEdges&&(m=0),f>0&&s.currentTranslate>i.minTranslate()?(g=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+f)**m)):f<0&&s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),n.threshold>0){if(!(Math.abs(f)>n.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,s.currentTranslate=s.startTranslate,void(o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function me(e){const t=this,i=t.touchEventsData,{params:s,touches:n,rtlTranslate:o,slidesGrid:a,enabled:r}=t;if(!r)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=Q(),d=c-i.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),d<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(i.lastClickTime=Q(),J((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===n.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let h;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,h=s.followFinger?o?t.translate:-t.translate:-i.currentTranslate,s.cssMode)return;if(t.params.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});let u=0,p=t.slidesSizesGrid[0];for(let e=0;e=a[e]&&h=a[e]&&(u=e,p=a[a.length-1]-a[a.length-2])}let f=null,g=null;s.rewind&&(t.isBeginning?g=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const m=(h-a[u])/p,v=us.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(m>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?f:u+v):t.slideTo(u)),"prev"===t.swipeDirection&&(m>1-s.longSwipesRatio?t.slideTo(u+v):null!==g&&m<0&&Math.abs(m)>s.longSwipesRatio?t.slideTo(g):t.slideTo(u))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(u+v):t.slideTo(u):("next"===t.swipeDirection&&t.slideTo(null!==f?f:u+v),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:u))}}function ve(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:o}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function be(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function ye(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;let n;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();n=0===o?0:(e.translate-e.minTranslate())/o,n!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let xe=!1;function we(){}const Ce=(e,t)=>{const i=H(),{params:s,touchEvents:n,el:o,wrapperEl:a,device:r,support:l}=e,c=!!s.nested,d="on"===t?"addEventListener":"removeEventListener",h=t;if(l.touch){const t=!("touchstart"!==n.start||!l.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};o[d](n.start,e.onTouchStart,t),o[d](n.move,e.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),o[d](n.end,e.onTouchEnd,t),n.cancel&&o[d](n.cancel,e.onTouchEnd,t)}else o[d](n.start,e.onTouchStart,!1),i[d](n.move,e.onTouchMove,c),i[d](n.end,e.onTouchEnd,!1);(s.preventClicks||s.preventClicksPropagation)&&o[d]("click",e.onClick,!0),s.cssMode&&a[d]("scroll",e.onScroll),s.updateOnWindowResize?e[h](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",ve,!0):e[h]("observerUpdate",ve,!0)};const Se=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Ee={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function $e(e,t){return function(i){void 0===i&&(i={});const s=Object.keys(i)[0],n=i[s];"object"==typeof n&&null!==n?(["navigation","pagination","scrollbar"].indexOf(s)>=0&&!0===e[s]&&(e[s]={auto:!0}),s in e&&"enabled"in n?(!0===e[s]&&(e[s]={enabled:!0}),"object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),se(t,i)):se(t,i)):se(t,i)}}const Te={eventsEmitter:ue,update:{updateSize:function(){const e=this;let t,i;const s=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s[0].clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s[0].clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(s.css("padding-left")||0,10)-parseInt(s.css("padding-right")||0,10),i=i-parseInt(s.css("padding-top")||0,10)-parseInt(s.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}const s=e.params,{$wrapperEl:n,size:o,rtlTranslate:a,wrongRTL:r}=e,l=e.virtual&&s.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=n.children(`.${e.params.slideClass}`),h=l?e.virtual.slides.length:d.length;let u=[];const p=[],f=[];let g=s.slidesOffsetBefore;"function"==typeof g&&(g=s.slidesOffsetBefore.call(e));let m=s.slidesOffsetAfter;"function"==typeof m&&(m=s.slidesOffsetAfter.call(e));const v=e.snapGrid.length,b=e.slidesGrid.length;let y=s.spaceBetween,x=-g,w=0,C=0;if(void 0===o)return;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*o),e.virtualSize=-y,a?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),s.centeredSlides&&s.cssMode&&(ne(e.wrapperEl,"--swiper-centered-offset-before",""),ne(e.wrapperEl,"--swiper-centered-offset-after",""));const S=s.grid&&s.grid.rows>1&&e.grid;let E;S&&e.grid.initSlides(h);const $="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let n=0;n1&&u.push(e.virtualSize-o)}if(0===u.length&&(u=[0]),0!==s.spaceBetween){const i=e.isHorizontal()&&a?"marginLeft":t("marginRight");d.filter(((e,t)=>!s.cssMode||t!==d.length-1)).css({[i]:`${y}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)})),e-=s.spaceBetween;const t=e-o;u=u.map((e=>e<0?-g:e>t?t+m:e))}if(s.centerInsufficientSlides){let e=0;if(f.forEach((t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)})),e-=s.spaceBetween,e{u[i]=e-t})),p.forEach(((e,i)=>{p[i]=e+t}))}}if(Object.assign(e,{slides:d,snapGrid:u,slidesGrid:p,slidesSizesGrid:f}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){ne(e.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),ne(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(h!==c&&e.emit("slidesLengthChange"),u.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==b&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),!(l||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,i=e.$el.hasClass(t);h<=s.maxBackfaceHiddenSlides?i||e.$el.addClass(t):i&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>s?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)t.visibleSlides.each((e=>{i.push(e)}));else for(n=0;nt.slides.length&&!s)break;i.push(a(e))}else i.push(a(t.activeIndex));for(n=0;no?e:o}(o||0===o)&&t.$wrapperEl.css("height",`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let i=0;i=0&&h1&&u<=t.size||h<=0&&u>=t.size)&&(t.visibleSlides.push(r),t.visibleSlidesIndexes.push(e),s.eq(e).addClass(i.slideVisibleClass)),r.progress=n?-c:c,r.originalProgress=n?-d:d}t.visibleSlides=K(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:o,isEnd:a}=t;const r=o,l=a;0===s?(n=0,o=!0,a=!0):(n=(e-t.minTranslate())/s,o=n<=0,a=n>=1),Object.assign(t,{progress:n,isBeginning:o,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),o&&!r&&t.emit("reachBeginning toEdge"),a&&!l&&t.emit("reachEnd toEdge"),(r&&!o||l&&!a)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,$wrapperEl:s,activeIndex:n,realIndex:o}=e,a=e.virtual&&i.virtual.enabled;let r;t.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),r=a?e.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${n}"]`):t.eq(n),r.addClass(i.slideActiveClass),i.loop&&(r.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass));let l=r.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));let c=r.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=t.eq(-1),c.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:s,snapGrid:n,params:o,activeIndex:a,realIndex:r,snapIndex:l}=t;let c,d=e;if(void 0===d){for(let e=0;e=s[e]&&i=s[e]&&i=s[e]&&(d=e);o.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(n.indexOf(i)>=0)c=n.indexOf(i);else{const e=Math.min(o.slidesPerGroupSkip,d);c=e+Math.floor((d-e)/o.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),d===a)return void(c!==l&&(t.snapIndex=c,t.emit("snapIndexChange")));const h=parseInt(t.slides.eq(d).attr("data-swiper-slide-index")||d,10);Object.assign(t,{snapIndex:c,realIndex:h,previousIndex:a,activeIndex:d}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),r!==h&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,i=t.params,s=K(e).closest(`.${i.slideClass}`)[0];let n,o=!1;if(s)for(let e=0;el?l:s&&e=l.length&&(m=l.length-1),(h||r.initialSlide||0)===(d||0)&&i&&o.emit("beforeSlideChangeStart");const v=-l[m];if(o.updateProgress(v),r.normalizeSlideIndex)for(let e=0;e=i&&t=i&&t=i&&(a=e)}if(o.initialized&&a!==h){if(!o.allowSlideNext&&vo.translate&&v>o.maxTranslate()&&(h||0)!==a)return!1}let b;if(b=a>h?"next":a{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1}))}else{if(!o.support.smoothScroll)return oe({swiper:o,targetPosition:i,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(v),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,s),o.transitionStart(i,b),0===t?o.transitionEnd(i,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,b))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);const n=this;let o=e;return n.params.loop&&(o+=n.loopedSlides),n.slideTo(o,t,i,s)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const s=this,{animating:n,enabled:o,params:a}=s;if(!o)return s;let r=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(r=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndexd(e)));let p=a[u.indexOf(h)-1];if(void 0===p&&n.cssMode){let e;a.forEach(((t,i)=>{h>=t&&(e=i)})),void 0!==e&&(p=a[e>0?e-1:e])}let f=0;if(void 0!==p&&(f=r.indexOf(p),f<0&&(f=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(f=f-s.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return s.slideTo(f,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);const n=this;let o=n.activeIndex;const a=Math.min(n.params.slidesPerGroupSkip,o),r=a+Math.floor((o-a)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[r]){const e=n.snapGrid[r];l-e>(n.snapGrid[r+1]-e)*s&&(o+=n.params.slidesPerGroup)}else{const e=n.snapGrid[r-1];l-e<=(n.snapGrid[r]-e)*s&&(o-=n.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,n.slidesGrid.length-1),n.slideTo(o,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let n,o=e.clickedIndex;if(t.loop){if(e.animating)return;n=parseInt(K(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?oe.slides.length-e.loopedSlides+s/2?(e.loopFix(),o=i.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),J((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-s?(e.loopFix(),o=i.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),J((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}},loop:{loopCreate:function(){const e=this,t=H(),{params:i,$wrapperEl:s}=e,n=s.children().length>0?K(s.children()[0].parentNode):s;n.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let o=n.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const e=i.slidesPerGroup-o.length%i.slidesPerGroup;if(e!==i.slidesPerGroup){for(let s=0;so.length&&(e.loopedSlides=o.length);const a=[],r=[];o.each(((t,i)=>{const s=K(t);i=o.length-e.loopedSlides&&a.push(t),s.attr("data-swiper-slide-index",i)}));for(let e=0;e=0;e-=1)n.prepend(K(a[e].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:i,loopedSlides:s,allowSlidePrev:n,allowSlideNext:o,snapGrid:a,rtlTranslate:r}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-a[t]-e.getTranslate();if(t=i.length-s){l=-i.length+t+s,l+=s;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((r?-e.translate:e.translate)-c)}e.allowSlidePrev=n,e.allowSlideNext=o,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:i}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;i.style.cursor="move",i.style.cursor=e?"-webkit-grabbing":"-webkit-grab",i.style.cursor=e?"-moz-grabbin":"-moz-grab",i.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const e=this,t=H(),{params:i,support:s}=e;e.onTouchStart=fe.bind(e),e.onTouchMove=ge.bind(e),e.onTouchEnd=me.bind(e),i.cssMode&&(e.onScroll=ye.bind(e)),e.onClick=be.bind(e),s.touch&&!xe&&(t.addEventListener("touchstart",we),xe=!0),Ce(e,"on")},detachEvents:function(){Ce(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:i,loopedSlides:s=0,params:n,$el:o}=e,a=n.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const r=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!r||e.currentBreakpoint===r)return;const l=(r in a?a[r]:void 0)||e.originalParams,c=Se(e,n),d=Se(e,l),h=n.enabled;c&&!d?(o.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&d&&(o.addClass(`${n.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===n.grid.fill)&&o.addClass(`${n.containerModifierClass}grid-column`),e.emitContainerClasses());const u=l.direction&&l.direction!==n.direction,p=n.loop&&(l.slidesPerView!==n.slidesPerView||u);u&&i&&e.changeDirection(),se(e.params,l);const f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!f?e.disable():!h&&f&&e.enable(),e.currentBreakpoint=r,e.emit("_beforeBreakpoint",l),p&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-s+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let s=!1;const n=G(),o="window"===t?n.innerHeight:i.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;ei}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:i,rtl:s,$el:n,device:o,support:a}=e,r=function(e,t){const i=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((s=>{e[s]&&i.push(t+s)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"pointer-events":!a.touch},{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides}],i.containerModifierClass);t.push(...r),n.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,i,s,n,o){const a=G();let r;function l(){o&&o()}K(e).parent("picture")[0]||e.complete&&n?l():t?(r=new a.Image,r.onload=l,r.onerror=l,s&&(r.sizes=s),i&&(r.srcset=i),t&&(r.src=t)):l()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let i=0;i0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((i=>{const s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:s,slidesGrid:n,slidesSizesGrid:o,size:a,activeIndex:r}=this;let l=1;if(i.centeredSlides){let e,t=s[r].swiperSlideSize;for(let i=r+1;ia&&(e=!0));for(let i=r-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=r+1;e=0;e-=1){n[r]-n[e]1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),n||s()),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(`${i.params.containerModifierClass}${s}`).addClass(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}mount(e){const t=this;if(t.mounted)return!0;const i=K(e||t.params.el);if(!(e=i[0]))return!1;e.swiper=t;const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=K(e.shadowRoot.querySelector(s()));return t.children=e=>i.children(e),t}return i.children(s())})();if(0===n.length&&t.params.createElements){const e=H().createElement("div");n=K(e),e.className=t.params.wrapperClass,i.append(e),i.children(`.${t.params.slideClass}`).each((e=>{n.append(e)}))}return Object.assign(t,{$el:i,el:e,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:s,$el:n,$wrapperEl:o,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){se(Pe,e)}static get extendedDefaults(){return Pe}static get defaults(){return Ee}static installModule(e){Le.prototype.__modules__||(Le.prototype.__modules__=[]);const t=Le.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Le.installModule(e))),Le):(Le.installModule(e),Le)}constructor(){let e,t;for(var i=arguments.length,s=new Array(i),n=0;n1){const e=[];return K(t.el).each((i=>{const s=se({},t,{el:i});e.push(new Le(s))})),e}const o=this;o.__swiper__=!0,o.support=ce(),o.device=de({userAgent:t.userAgent}),o.browser=he(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],t.modules&&Array.isArray(t.modules)&&o.modules.push(...t.modules);const a={};o.modules.forEach((e=>{e({swiper:o,extendParams:$e(t,a),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})}));const r=se({},Ee,a);return o.params=se({},r,Pe,t),o.originalParams=se({},o.params),o.passedParams=se({},t),o.params&&o.params.on&&Object.keys(o.params.on).forEach((e=>{o.on(e,o.params.on[e])})),o.params&&o.params.onAny&&o.onAny(o.params.onAny),o.$=K,Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:K(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return o.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},o.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},o.support.touch||!o.params.simulateTouch?o.touchEventsTouch:o.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:Q(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}}Object.keys(Te).forEach((e=>{Object.keys(Te[e]).forEach((t=>{Le.prototype[t]=Te[e][t]}))})),Le.use([function(e){let{swiper:t,on:i,emit:s}=e;const n=G();let o=null,a=null;const r=()=>{t&&!t.destroyed&&t.initialized&&(s("beforeResize"),s("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&s("orientationchange")};i("init",(()=>{t.params.resizeObserver&&void 0!==n.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((e=>{a=n.requestAnimationFrame((()=>{const{width:i,height:s}=t;let n=i,o=s;e.forEach((e=>{let{contentBoxSize:i,contentRect:s,target:a}=e;a&&a!==t.el||(n=s?s.width:(i[0]||i).inlineSize,o=s?s.height:(i[0]||i).blockSize)})),n===i&&o===s||r()}))})),o.observe(t.el)):(n.addEventListener("resize",r),n.addEventListener("orientationchange",l))})),i("destroy",(()=>{a&&n.cancelAnimationFrame(a),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),n.removeEventListener("resize",r),n.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const o=[],a=G(),r=function(e,t){void 0===t&&(t={});const i=new(a.MutationObserver||a.WebkitMutationObserver)((e=>{if(1===e.length)return void n("observerUpdate",e[0]);const t=function(){n("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(t):a.setTimeout(t,0)}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),o.push(i)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);var ke=Le;function Me(e,t,i,s){const n=H();return e.params.createElements&&Object.keys(s).forEach((o=>{if(!i[o]&&!0===i.auto){let a=e.$el.children(`.${s[o]}`)[0];a||(a=n.createElement("div"),a.className=s[o],e.$el.append(a)),i[o]=a,t[o]=a}})),i}function ze(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;function o(e){let i;return e&&(i=K(e),t.params.uniqueNavElements&&"string"==typeof e&&i.length>1&&1===t.$el.find(e).length&&(i=t.$el.find(e))),i}function a(e,i){const s=t.params.navigation;e&&e.length>0&&(e[i?"addClass":"removeClass"](s.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=i),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](s.lockClass))}function r(){if(t.params.loop)return;const{$nextEl:e,$prevEl:i}=t.navigation;a(i,t.isBeginning&&!t.params.rewind),a(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&t.slidePrev()}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&t.slideNext()}function d(){const e=t.params.navigation;if(t.params.navigation=Me(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const i=o(e.nextEl),s=o(e.prevEl);i&&i.length>0&&i.on("click",c),s&&s.length>0&&s.on("click",l),Object.assign(t.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:s,prevEl:s&&s[0]}),t.enabled||(i&&i.addClass(e.lockClass),s&&s.addClass(e.lockClass))}function h(){const{$nextEl:e,$prevEl:i}=t.navigation;e&&e.length&&(e.off("click",c),e.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("click",l),i.removeClass(t.params.navigation.disabledClass))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},s("init",(()=>{d(),r()})),s("toEdge fromEdge lock unlock",(()=>{r()})),s("destroy",(()=>{h()})),s("enable disable",(()=>{const{$nextEl:e,$prevEl:i}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),i&&i[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),s("click",((e,i)=>{const{$nextEl:s,$prevEl:o}=t.navigation,a=i.target;if(t.params.navigation.hideOnClick&&!K(a).is(o)&&!K(a).is(s)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;s?e=s.hasClass(t.params.navigation.hiddenClass):o&&(e=o.hasClass(t.params.navigation.hiddenClass)),n(!0===e?"navigationShow":"navigationHide"),s&&s.toggleClass(t.params.navigation.hiddenClass),o&&o.toggleClass(t.params.navigation.hiddenClass)}})),Object.assign(t.navigation,{update:r,init:d,destroy:h})}function Ae(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function Oe(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const o="swiper-pagination";let a;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`}}),t.pagination={el:null,$el:null,bullets:[]};let r=0;function l(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function c(e,i){const{bulletActiveClass:s}=t.params.pagination;e[i]().addClass(`${s}-${i}`)[i]().addClass(`${s}-${i}-${i}`)}function d(){const e=t.rtl,i=t.params.pagination;if(l())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,o=t.pagination.$el;let d;const h=t.params.loop?Math.ceil((s-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(d=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),d>s-1-2*t.loopedSlides&&(d-=s-2*t.loopedSlides),d>h-1&&(d-=h),d<0&&"bullets"!==t.params.paginationType&&(d=h+d)):d=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const s=t.pagination.bullets;let n,l,h;if(i.dynamicBullets&&(a=s.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(t.isHorizontal()?"width":"height",a*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==t.previousIndex&&(r+=d-(t.previousIndex-t.loopedSlides||0),r>i.dynamicMainBullets-1?r=i.dynamicMainBullets-1:r<0&&(r=0)),n=Math.max(d-r,0),l=n+(Math.min(s.length,i.dynamicMainBullets)-1),h=(l+n)/2),s.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${i.bulletActiveClass}${e}`)).join(" ")),o.length>1)s.each((e=>{const t=K(e),s=t.index();s===d&&t.addClass(i.bulletActiveClass),i.dynamicBullets&&(s>=n&&s<=l&&t.addClass(`${i.bulletActiveClass}-main`),s===n&&c(t,"prev"),s===l&&c(t,"next"))}));else{const e=s.eq(d),o=e.index();if(e.addClass(i.bulletActiveClass),i.dynamicBullets){const e=s.eq(n),a=s.eq(l);for(let e=n;e<=l;e+=1)s.eq(e).addClass(`${i.bulletActiveClass}-main`);if(t.params.loop)if(o>=s.length){for(let e=i.dynamicMainBullets;e>=0;e-=1)s.eq(s.length-e).addClass(`${i.bulletActiveClass}-main`);s.eq(s.length-i.dynamicMainBullets-1).addClass(`${i.bulletActiveClass}-prev`)}else c(e,"prev"),c(a,"next");else c(e,"prev"),c(a,"next")}}if(i.dynamicBullets){const n=Math.min(s.length,i.dynamicMainBullets+4),o=(a*n-a)/2-h*a,r=e?"right":"left";s.css(t.isHorizontal()?r:"top",`${o}px`)}}if("fraction"===i.type&&(o.find(Ae(i.currentClass)).text(i.formatFractionCurrent(d+1)),o.find(Ae(i.totalClass)).text(i.formatFractionTotal(h))),"progressbar"===i.type){let e;e=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const s=(d+1)/h;let n=1,a=1;"horizontal"===e?n=s:a=s,o.find(Ae(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${n}) scaleY(${a})`).transition(t.params.speed)}"custom"===i.type&&i.renderCustom?(o.html(i.renderCustom(t,d+1,h)),n("paginationRender",o[0])):n("paginationUpdate",o[0]),t.params.watchOverflow&&t.enabled&&o[t.isLocked?"addClass":"removeClass"](i.lockClass)}function h(){const e=t.params.pagination;if(l())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el;let o="";if("bullets"===e.type){let n=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&n>i&&(n=i);for(let i=0;i`;s.html(o),t.pagination.bullets=s.find(Ae(e.bulletClass))}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):` / `,s.html(o)),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):``,s.html(o)),"custom"!==e.type&&n("paginationRender",t.pagination.$el[0])}function u(){t.params.pagination=Me(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i=K(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&(i=t.$el.find(e.el),i.length>1&&(i=i.filter((e=>K(e).parents(".swiper")[0]===t.el)))),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),i.addClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(`${e.modifierClass}${e.type}-dynamic`),r=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click",Ae(e.bulletClass),(function(e){e.preventDefault();let i=K(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)})),Object.assign(t.pagination,{$el:i,el:i[0]}),t.enabled||i.addClass(e.lockClass))}function p(){const e=t.params.pagination;if(l())return;const i=t.pagination.$el;i.removeClass(e.hiddenClass),i.removeClass(e.modifierClass+e.type),i.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&i.off("click",Ae(e.bulletClass))}s("init",(()=>{u(),h(),d()})),s("activeIndexChange",(()=>{(t.params.loop||void 0===t.snapIndex)&&d()})),s("snapIndexChange",(()=>{t.params.loop||d()})),s("slidesLengthChange",(()=>{t.params.loop&&(h(),d())})),s("snapGridLengthChange",(()=>{t.params.loop||(h(),d())})),s("destroy",(()=>{p()})),s("enable disable",(()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)})),s("lock unlock",(()=>{d()})),s("click",((e,i)=>{const s=i.target,{$el:o}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o.length>0&&!K(s).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&s===t.navigation.nextEl||t.navigation.prevEl&&s===t.navigation.prevEl))return;const e=o.hasClass(t.params.pagination.hiddenClass);n(!0===e?"paginationShow":"paginationHide"),o.toggleClass(t.params.pagination.hiddenClass)}})),Object.assign(t.pagination,{render:h,update:d,init:u,destroy:p})}function _e(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;i({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),t.lazy={};let o=!1,a=!1;function r(e,i){void 0===i&&(i=!0);const s=t.params.lazy;if(void 0===e)return;if(0===t.slides.length)return;const o=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`):t.slides.eq(e),a=o.find(`.${s.elementClass}:not(.${s.loadedClass}):not(.${s.loadingClass})`);!o.hasClass(s.elementClass)||o.hasClass(s.loadedClass)||o.hasClass(s.loadingClass)||a.push(o[0]),0!==a.length&&a.each((e=>{const a=K(e);a.addClass(s.loadingClass);const l=a.attr("data-background"),c=a.attr("data-src"),d=a.attr("data-srcset"),h=a.attr("data-sizes"),u=a.parent("picture");t.loadImage(a[0],c||l,d,h,!1,(()=>{if(null!=t&&t&&(!t||t.params)&&!t.destroyed){if(l?(a.css("background-image",`url("${l}")`),a.removeAttr("data-background")):(d&&(a.attr("srcset",d),a.removeAttr("data-srcset")),h&&(a.attr("sizes",h),a.removeAttr("data-sizes")),u.length&&u.children("source").each((e=>{const t=K(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))})),c&&(a.attr("src",c),a.removeAttr("data-src"))),a.addClass(s.loadedClass).removeClass(s.loadingClass),o.find(`.${s.preloaderClass}`).remove(),t.params.loop&&i){const e=o.attr("data-swiper-slide-index");if(o.hasClass(t.params.slideDuplicateClass)){r(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(),!1)}else{r(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)}}n("lazyImageReady",o[0],a[0]),t.params.autoHeight&&t.updateAutoHeight()}})),n("lazyImageLoad",o[0],a[0])}))}function l(){const{$wrapperEl:e,params:i,slides:s,activeIndex:n}=t,o=t.virtual&&i.virtual.enabled,l=i.lazy;let c=i.slidesPerView;function d(t){if(o){if(e.children(`.${i.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(s[t])return!0;return!1}function h(e){return o?K(e).attr("data-swiper-slide-index"):K(e).index()}if("auto"===c&&(c=0),a||(a=!0),t.params.watchSlidesProgress)e.children(`.${i.slideVisibleClass}`).each((e=>{r(o?K(e).attr("data-swiper-slide-index"):K(e).index())}));else if(c>1)for(let e=n;e1||l.loadPrevNextAmount&&l.loadPrevNextAmount>1){const e=l.loadPrevNextAmount,t=c,i=Math.min(n+t+Math.max(e,t),s.length),o=Math.max(n-Math.max(t,e),0);for(let e=n+c;e0&&r(h(t));const s=e.children(`.${i.slidePrevClass}`);s.length>0&&r(h(s))}}function c(){const e=G();if(!t||t.destroyed)return;const i=t.params.lazy.scrollingElement?K(t.params.lazy.scrollingElement):K(e),s=i[0]===e,n=s?e.innerWidth:i[0].offsetWidth,a=s?e.innerHeight:i[0].offsetHeight,r=t.$el.offset(),{rtlTranslate:d}=t;let h=!1;d&&(r.left-=t.$el[0].scrollLeft);const u=[[r.left,r.top],[r.left+t.width,r.top],[r.left,r.top+t.height],[r.left+t.width,r.top+t.height]];for(let e=0;e=0&&t[0]<=n&&t[1]>=0&&t[1]<=a){if(0===t[0]&&0===t[1])continue;h=!0}}const p=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};h?(l(),i.off("scroll",c,p)):o||(o=!0,i.on("scroll",c,p))}s("beforeInit",(()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)})),s("init",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?c():l())})),s("scroll",(()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&l()})),s("scrollbarDragMove resize _freeModeNoMomentumRelease",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?c():l())})),s("transitionStart",(()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!a)&&(t.params.lazy.checkInView?c():l())})),s("transitionEnd",(()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?c():l())})),s("slideChange",(()=>{const{lazy:e,cssMode:i,watchSlidesProgress:s,touchReleaseOnEdges:n,resistanceRatio:o}=t.params;e.enabled&&(i||s&&(n||0===o))&&l()})),Object.assign(t.lazy,{load:l,loadInSlide:r})}function Ie(e){let{swiper:t,extendParams:i,on:s}=e;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group"}});let n=null;function o(e){const t=n;0!==t.length&&(t.html(""),t.html(e))}function a(e){e.attr("tabIndex","0")}function r(e){e.attr("tabIndex","-1")}function l(e,t){e.attr("role",t)}function c(e,t){e.attr("aria-roledescription",t)}function d(e,t){e.attr("aria-label",t)}function h(e){e.attr("aria-disabled",!0)}function u(e){e.attr("aria-disabled",!1)}function p(e){if(13!==e.keyCode&&32!==e.keyCode)return;const i=t.params.a11y,s=K(e.target);t.navigation&&t.navigation.$nextEl&&s.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?o(i.lastSlideMessage):o(i.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&s.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?o(i.firstSlideMessage):o(i.prevSlideMessage)),t.pagination&&s.is(Ae(t.params.pagination.bulletClass))&&s[0].click()}function f(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function g(){return f()&&t.params.pagination.clickable}const m=(e,t,i)=>{a(e),"BUTTON"!==e[0].tagName&&(l(e,"button"),e.on("keydown",p)),d(e,i),function(e,t){e.attr("aria-controls",t)}(e,t)},v=e=>{const i=e.target.closest(`.${t.params.slideClass}`);if(!i||!t.slides.includes(i))return;const s=t.slides.indexOf(i)===t.activeIndex,n=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(i);s||n||t.slideTo(t.slides.indexOf(i),0)};function b(){const e=t.params.a11y;t.$el.append(n);const i=t.$el;e.containerRoleDescriptionMessage&&c(i,e.containerRoleDescriptionMessage),e.containerMessage&&d(i,e.containerMessage);const s=t.$wrapperEl,o=s.attr("id")||`swiper-wrapper-${a=16,void 0===a&&(a=16),"x".repeat(a).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var a;const r=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var h;h=o,s.attr("id",h),function(e,t){e.attr("aria-live",t)}(s,r),e.itemRoleDescriptionMessage&&c(K(t.slides),e.itemRoleDescriptionMessage),l(K(t.slides),e.slideRole);const u=t.params.loop?t.slides.filter((e=>!e.classList.contains(t.params.slideDuplicateClass))).length:t.slides.length;let f,b;t.slides.each(((i,s)=>{const n=K(i),o=t.params.loop?parseInt(n.attr("data-swiper-slide-index"),10):s;d(n,e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,u))})),t.navigation&&t.navigation.$nextEl&&(f=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(b=t.navigation.$prevEl),f&&f.length&&m(f,o,e.nextSlideMessage),b&&b.length&&m(b,o,e.prevSlideMessage),g()&&t.pagination.$el.on("keydown",Ae(t.params.pagination.bulletClass),p),t.$el.on("focus",v,!0)}s("beforeInit",(()=>{n=K(``)})),s("afterInit",(()=>{t.params.a11y.enabled&&b()})),s("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{$nextEl:e,$prevEl:i}=t.navigation;i&&i.length>0&&(t.isBeginning?(h(i),r(i)):(u(i),a(i))),e&&e.length>0&&(t.isEnd?(h(e),r(e)):(u(e),a(e)))}()})),s("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;f()&&t.pagination.bullets.each((i=>{const s=K(i);t.params.pagination.clickable&&(a(s),t.params.pagination.renderBullet||(l(s,"button"),d(s,e.paginationBulletMessage.replace(/\{\{index\}\}/,s.index()+1)))),s.is(`.${t.params.pagination.bulletActiveClass}`)?s.attr("aria-current","true"):s.removeAttr("aria-current")}))}()})),s("destroy",(()=>{t.params.a11y.enabled&&function(){let e,i;n&&n.length>0&&n.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(i=t.navigation.$prevEl),e&&e.off("keydown",p),i&&i.off("keydown",p),g()&&t.pagination.$el.off("keydown",Ae(t.params.pagination.bulletClass),p),t.$el.off("focus",v,!0)}()}))}const Ne={MixinCarousel:{slidesPerView:1.25,speed:500,threshold:20,spaceBetween:28,watchOverflow:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,loop:!1,preloadImages:!1,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0,loadPrevNextAmount:2},navigation:{nextEl:".swiper-next",prevEl:".swiper-prev"},breakpoints:{640:{slidesPerView:1,spaceBetween:28},768:{slidesPerView:2,spaceBetween:28},1280:{slidesPerView:2,spaceBetween:56}},on:{init(e){e.$el.removeClass("opacity-0"),e.$el.addClass("opacity-100")}}},BlockImageCarousel:{slidesPerView:1,speed:500,threshold:20,loop:!1,preloadImages:!1,watchSlidesProgress:!0,watchSlidesVisibility:!0,lazy:!0,navigation:{nextEl:".swiper-next",prevEl:".swiper-prev"},pagination:{el:".swiper-pagination",type:"bullets",clickable:!0,bulletClass:"swiper-dot",bulletActiveClass:"swiper-dot-active",renderBullet:function(e,t){return``}}}};Object.assign(Ne,{BaseCarouselCards:Ne.MixinCarousel});var Be=Ne;new ke(".MixinCarousel .swiper, .BaseCarouselCards .swiper",{modules:[ze,_e,Ie,Oe],...Be.MixinCarousel}),new ke(".BlockImageCarousel .swiper",{modules:[ze,_e,Ie,Oe],...Be.BlockImageCarousel});const De=document.querySelector("#HeroMediaCaptionToggle"),Fe=document.querySelector("#HeroMediaCaption");De&&De.addEventListener("click",(e=>{De.classList.toggle("expanded"),Fe.classList.toggle("hidden")})),Array.prototype.slice.call(document.querySelectorAll(".BlockAccordion")).forEach((function(e){var t=e.hasAttribute("data-allow-multiple"),i=Array.prototype.slice.call(e.querySelectorAll(".BlockAccordion-trigger"));Array.prototype.slice.call(e.querySelectorAll(".BlockAccordion-panel"));e.addEventListener("click",(function(i){var s=i.target;if(s.classList.contains("BlockAccordion-trigger")){var n="true"==s.getAttribute("aria-expanded"),o=e.querySelector('[aria-expanded="true"]');if(!t&&o&&o!==s){o.setAttribute("aria-expanded","false"),o.querySelector(".BlockAccordion-icon").classList.toggle("rotate-45");document.getElementById(o.getAttribute("aria-controls")).setAttribute("hidden","")}if(n){if(n){s.setAttribute("aria-expanded","false"),s.querySelector(".BlockAccordion-icon").classList.toggle("rotate-45");document.getElementById(s.getAttribute("aria-controls")).setAttribute("hidden","")}}else{s.setAttribute("aria-expanded","true"),s.querySelector(".BlockAccordion-icon").classList.toggle("rotate-45");document.getElementById(s.getAttribute("aria-controls")).removeAttribute("hidden")}i.preventDefault()}})),e.addEventListener("keydown",(function(e){var t=e.target,s=e.which.toString(),n=(t.getAttribute("aria-expanded"),e.ctrlKey&&s.match(/33|34/));if(t.classList.contains("BlockAccordion-trigger"))if(s.match(/38|40/)||n){var o=i.indexOf(t),a=s.match(/34|40/)?1:-1,r=i.length;i[(o+r+a)%r].focus(),e.preventDefault()}else if(s.match(/35|36/)){switch(s){case"36":i[0].focus();break;case"35":i[i.length-1].focus()}e.preventDefault()}}))}));let Re=null;const He=document.getElementById("HeaderInternal"),We=document.getElementById("NavBgOverlay"),Ge=document.getElementById("NavInternalContainer"),qe=document.getElementById("NavMobileToggle"),Ve=document.getElementById("NavMobileSearchInput"),je=e=>{const t=e.parentElement;document.body.classList.toggle("lg:overflow-hidden"),We.classList.toggle("invisible-overlay"),t.classList.toggle("expanded"),t.classList.contains("expanded")?e.setAttribute("aria-expanded","true"):e.setAttribute("aria-expanded","false")},Xe=e=>{if(Re){document.getElementById("target_"+Re.id).contains(e.target)||(je(Re),Re=null)}},Ye=e=>{document.body.classList.remove("overflow-hidden","lg:overflow-hidden"),We.classList.add("invisible-overlay"),He.classList.remove("h-screen"),He.classList.remove("overflow-y-scroll"),Ge.classList.add("hidden"),qe.classList.remove("expanded"),qe.setAttribute("aria-label","Open menu"),Re&&(Re.parentElement.classList.remove("expanded"),Re.setAttribute("aria-expanded","false"),Re=null)},Ue=document.getElementById("NavSearchOpen"),Ze=document.getElementById("NavSearchClose"),Ke=document.getElementById("NavSearchContainer"),Je=document.getElementById("NavSearchInput"),Qe=e=>{Ke&&Je&&(Ke.classList.remove("lg:block"),Je.value="")};Ue&&Ue.addEventListener("click",(e=>{Ke&&Je&&(Ke.classList.add("lg:block"),Je.focus())})),Ze&&Ze.addEventListener("click",Qe),document.addEventListener("click",(e=>{qe&&qe.contains(e.target)?(He.classList.toggle("h-screen"),He.classList.toggle("overflow-y-scroll"),Ge.classList.toggle("hidden"),qe.classList.toggle("expanded"),qe.classList.contains("expanded")?qe.setAttribute("aria-label","Close menu"):(Ve.value="",qe.setAttribute("aria-label","Open menu")),document.body.classList.toggle("overflow-hidden"),Xe(e)):e.target.classList&&e.target.classList.contains("toggle-NavInternalPanel")?(e=>{je(e),Re?Re==e?Re=null:(je(Re),Re=e):Re=e})(e.target):Re&&Xe(e)})),window.addEventListener("orientationchange",(function(e){Ye(),Qe()}),!1),document.addEventListener("keydown",(function(e){"Escape"===e.key&&(Ye(),Qe())})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("BackToTop"),t=e.querySelector("button"),i=parseInt(e.dataset.threshold)||300,s=parseInt(e.dataset.scrollto)||0,n=t.classList.contains("always-visible");window.addEventListener("scroll",(()=>{if(!n){let e=window.scrollY>i;t.style.display=e?"block":"none"}})),t.addEventListener("click",(()=>{window.scrollTo({top:s,behavior:"smooth"})}))}))}(); \ No newline at end of file +!function(){const e=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e),t=(...i)=>{let s=!1;"boolean"==typeof i[0]&&(s=i.shift());let n=i[0];if(!n||"object"!=typeof n)throw new Error("extendee must be an object");const o=i.slice(1),a=o.length;for(let i=0;i(e=parseFloat(e)||0,Math.round((e+Number.EPSILON)*t)/t),s=function(e){return!!(e&&"object"==typeof e&&e instanceof Element&&e!==document.body)&&!e.__Panzoom&&(function(e){const t=getComputedStyle(e)["overflow-y"],i=getComputedStyle(e)["overflow-x"],s=("scroll"===t||"auto"===t)&&Math.abs(e.scrollHeight-e.clientHeight)>1,n=("scroll"===i||"auto"===i)&&Math.abs(e.scrollWidth-e.clientWidth)>1;return s||n}(e)?e:s(e.parentNode))},n="undefined"!=typeof window&&window.ResizeObserver||class{observe(e){if(this.observables.some((t=>t.el===e)))return;const t={el:e,size:{height:e.clientHeight,width:e.clientWidth}};this.observables.push(t)}unobserve(e){this.observables=this.observables.filter((t=>t.el!==e))}disconnect(){this.observables=[]}check(){const e=this.observables.filter((e=>{const t=e.el.clientHeight,i=e.el.clientWidth;if(e.size.height!==t||e.size.width!==i)return e.size.height=t,e.size.width=i,!0})).map((e=>e.el));e.length>0&&this.callback(e),window.requestAnimationFrame(this.boundCheck)}constructor(e){this.observables=[],this.boundCheck=this.check.bind(this),this.boundCheck(),this.callback=e}};class o{constructor(e){this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY}}const a=(e,t)=>t?Math.sqrt((t.clientX-e.clientX)**2+(t.clientY-e.clientY)**2):0,r=(e,t)=>t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e;class l{stop(){this._element.removeEventListener("mousedown",this._pointerStart,{passive:!1}),this._element.removeEventListener("touchstart",this._touchStart,{passive:!1}),this._element.removeEventListener("touchmove",this._move,{passive:!1}),this._element.removeEventListener("touchend",this._touchEnd),this._element.removeEventListener("touchcancel",this._touchEnd),window.removeEventListener("mousemove",this._move),window.removeEventListener("mouseup",this._pointerEnd)}_triggerPointerStart(e,t){return!!this._startCallback(e,t)&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}constructor(e,{start:t=(()=>!0),move:i=(()=>{}),end:s=(()=>{})}={}){this._element=e,this.startPointers=[],this.currentPointers=[],this._pointerStart=e=>{if(e.buttons>0&&0!==e.button)return;const t=new o(e);this.currentPointers.some((e=>e.id===t.id))||this._triggerPointerStart(t,e)&&(window.addEventListener("mousemove",this._move),window.addEventListener("mouseup",this._pointerEnd))},this._touchStart=e=>{for(const t of Array.from(e.changedTouches||[]))this._triggerPointerStart(new o(t),e)},this._move=e=>{const t=this.currentPointers.slice(),i="changedTouches"in e?Array.from(e.changedTouches).map((e=>new o(e))):[new o(e)];for(const e of i){const t=this.currentPointers.findIndex((t=>t.id===e.id));t<0||(this.currentPointers[t]=e)}this._moveCallback(t,this.currentPointers.slice(),e)},this._triggerPointerEnd=(e,t)=>{const i=this.currentPointers.findIndex((t=>t.id===e.id));return!(i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this._endCallback(e,t),0))},this._pointerEnd=e=>{e.buttons>0&&0!==e.button||this._triggerPointerEnd(new o(e),e)&&(window.removeEventListener("mousemove",this._move,{passive:!1}),window.removeEventListener("mouseup",this._pointerEnd,{passive:!1}))},this._touchEnd=e=>{for(const t of Array.from(e.changedTouches||[]))this._triggerPointerEnd(new o(t),e)},this._startCallback=t,this._moveCallback=i,this._endCallback=s,this._element.addEventListener("mousedown",this._pointerStart,{passive:!1}),this._element.addEventListener("touchstart",this._touchStart,{passive:!1}),this._element.addEventListener("touchmove",this._move,{passive:!1}),this._element.addEventListener("touchend",this._touchEnd),this._element.addEventListener("touchcancel",this._touchEnd)}}class c{option(e,t,...i){let s=(n=e=String(e),o=this.options,n.split(".").reduce((function(e,t){return e&&e[t]}),o));var n,o;return"function"==typeof s&&(s=s.call(this,this,...i)),void 0===s?t:s}localize(e,t=[]){return(e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,((e,i,s)=>{let n="";s?n=this.option(`${i[0]+i.toLowerCase().substring(1)}.l10n.${s}`):i&&(n=this.option(`l10n.${i}`)),n||(n=e);for(let e=0;et))}on(t,i){if(e(t)){for(const e of Object.entries(t))this.on(...e);return this}return String(t).split(" ").forEach((e=>{const t=this.events[e]=this.events[e]||[];-1==t.indexOf(i)&&t.push(i)})),this}once(t,i){if(e(t)){for(const e of Object.entries(t))this.once(...e);return this}return String(t).split(" ").forEach((e=>{const t=(...s)=>{this.off(e,t),i.call(this,this,...s)};t._=i,this.on(e,t)})),this}off(t,i){if(!e(t))return t.split(" ").forEach((e=>{const t=this.events[e];if(!t||!t.length)return this;let s=-1;for(let e=0,n=t.length;e1||Math.abs(t.left-this.dragStart.rect.left)>1))return e.preventDefault(),void e.stopPropagation();!1!==this.trigger("click",e)&&this.option("zoom")&&"toggleZoom"===this.option("click")&&(e.preventDefault(),e.stopPropagation(),this.zoomWithClick(e))}onWheel(e){!1!==this.trigger("wheel",e)&&this.option("zoom")&&this.option("wheel")&&this.zoomWithWheel(e)}zoomWithWheel(e){void 0===this.changedDelta&&(this.changedDelta=0);const t=Math.max(-1,Math.min(1,-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)),i=this.content.scale;let s=i*(100+t*this.option("wheelFactor"))/100;if(t<0&&Math.abs(i-this.option("minScale"))<.01||t>0&&Math.abs(i-this.option("maxScale"))<.01?(this.changedDelta+=Math.abs(t),s=i):(this.changedDelta=0,s=Math.max(Math.min(s,this.option("maxScale")),this.option("minScale"))),this.changedDelta>this.option("wheelLimit"))return;if(e.preventDefault(),s===i)return;const n=this.$content.getBoundingClientRect(),o=e.clientX-n.left,a=e.clientY-n.top;this.zoomTo(s,{x:o,y:a})}zoomWithClick(e){const t=this.$content.getClientRects()[0],i=e.clientX-t.left,s=e.clientY-t.top;this.toggleZoom({x:i,y:s})}attachEvents(){this.$content.addEventListener("load",this.onLoad),this.$container.addEventListener("wheel",this.onWheel,{passive:!1}),this.$container.addEventListener("click",this.onClick,{passive:!1}),this.initObserver();const e=new l(this.$container,{start:(t,i)=>{if(!this.option("touch"))return!1;if(this.velocity.scale<0)return!1;const n=i.composedPath()[0];if(!e.currentPointers.length){if(-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName))return!1;if(this.option("textSelection")&&((e,t,i)=>{const s=e.childNodes,n=document.createRange();for(let e=0;e=a.left&&i>=a.top&&t<=a.right&&i<=a.bottom)return o}return!1})(n,t.clientX,t.clientY))return!1}return!s(n)&&!1!==this.trigger("touchStart",i)&&("mousedown"===i.type&&i.preventDefault(),this.state="pointerdown",this.resetDragPosition(),this.dragPosition.midPoint=null,this.dragPosition.time=Date.now(),!0)},move:(t,i,s)=>{if("pointerdown"!==this.state)return;if(!1===this.trigger("touchMove",s))return void s.preventDefault();if(i.length<2&&!0===this.option("panOnlyZoomed")&&this.content.width<=this.viewport.width&&this.content.height<=this.viewport.height&&this.transform.scale<=this.option("baseScale"))return;if(i.length>1&&(!this.option("zoom")||!1===this.option("pinchToZoom")))return;const n=r(t[0],t[1]),o=r(i[0],i[1]),l=o.clientX-n.clientX,c=o.clientY-n.clientY,d=a(t[0],t[1]),h=a(i[0],i[1]),u=d&&h?h/d:1;this.dragOffset.x+=l,this.dragOffset.y+=c,this.dragOffset.scale*=u,this.dragOffset.time=Date.now()-this.dragPosition.time;const p=1===this.dragStart.scale&&this.option("lockAxis");if(p&&!this.lockAxis){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void s.preventDefault();const e=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockAxis=e>45&&e<135?"y":"x"}if("xy"===p||"y"!==this.lockAxis){if(s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation(),this.lockAxis&&(this.dragOffset["x"===this.lockAxis?"y":"x"]=0),this.$container.classList.add(this.option("draggingClass")),this.transform.scale===this.option("baseScale")&&"y"===this.lockAxis||(this.dragPosition.x=this.dragStart.x+this.dragOffset.x),this.transform.scale===this.option("baseScale")&&"x"===this.lockAxis||(this.dragPosition.y=this.dragStart.y+this.dragOffset.y),this.dragPosition.scale=this.dragStart.scale*this.dragOffset.scale,i.length>1){const t=r(e.startPointers[0],e.startPointers[1]),i=t.clientX-this.dragStart.rect.x,s=t.clientY-this.dragStart.rect.y,{deltaX:n,deltaY:a}=this.getZoomDelta(this.content.scale*this.dragOffset.scale,i,s);this.dragPosition.x-=n,this.dragPosition.y-=a,this.dragPosition.midPoint=o}else this.setDragResistance();this.transform={x:this.dragPosition.x,y:this.dragPosition.y,scale:this.dragPosition.scale},this.startAnimation()}},end:(t,i)=>{if("pointerdown"!==this.state)return;if(this._dragOffset={...this.dragOffset},e.currentPointers.length)return void this.resetDragPosition();if(this.state="decel",this.friction=this.option("decelFriction"),this.recalculateTransform(),this.$container.classList.remove(this.option("draggingClass")),!1===this.trigger("touchEnd",i))return;if("decel"!==this.state)return;const s=this.option("minScale");if(this.transform.scale.01){const e=this.dragPosition.midPoint||t,i=this.$content.getClientRects()[0];this.zoomTo(n,{friction:.64,x:e.clientX-i.left,y:e.clientY-i.top})}}});this.pointerTracker=e}initObserver(){this.resizeObserver||(this.resizeObserver=new n((()=>{this.updateTimer||(this.updateTimer=setTimeout((()=>{const e=this.$container.getBoundingClientRect();e.width&&e.height?((Math.abs(e.width-this.container.width)>1||Math.abs(e.height-this.container.height)>1)&&(this.isAnimating()&&this.endAnimation(!0),this.updateMetrics(),this.panTo({x:this.content.x,y:this.content.y,scale:this.option("baseScale"),friction:0})),this.updateTimer=null):this.updateTimer=null}),this.updateRate))})),this.resizeObserver.observe(this.$container))}resetDragPosition(){this.lockAxis=null,this.friction=this.option("friction"),this.velocity={x:0,y:0,scale:0};const{x:e,y:t,scale:i}=this.content;this.dragStart={rect:this.$content.getBoundingClientRect(),x:e,y:t,scale:i},this.dragPosition={...this.dragPosition,x:e,y:t,scale:i},this.dragOffset={x:0,y:0,scale:1,time:0}}updateMetrics(e){!0!==e&&this.trigger("beforeUpdate");const t=this.$container,s=this.$content,n=this.$viewport,o=s instanceof HTMLImageElement,a=this.option("zoom"),r=this.option("resizeParent",a);let l=this.option("width"),c=this.option("height"),d=l||(h=s,Math.max(parseFloat(h.naturalWidth||0),parseFloat(h.width&&h.width.baseVal&&h.width.baseVal.value||0),parseFloat(h.offsetWidth||0),parseFloat(h.scrollWidth||0)));var h;let u=c||(p=s,Math.max(parseFloat(p.naturalHeight||0),parseFloat(p.height&&p.height.baseVal&&p.height.baseVal.value||0),parseFloat(p.offsetHeight||0),parseFloat(p.scrollHeight||0)));var p;Object.assign(s.style,{width:l?`${l}px`:"",height:c?`${c}px`:"",maxWidth:"",maxHeight:""}),r&&Object.assign(n.style,{width:"",height:""});const f=this.option("ratio");d=i(d*f),u=i(u*f),l=d,c=u;const g=s.getBoundingClientRect(),m=n.getBoundingClientRect(),v=n==t?m:t.getBoundingClientRect();let b=Math.max(n.offsetWidth,i(m.width)),y=Math.max(n.offsetHeight,i(m.height)),x=window.getComputedStyle(n);if(b-=parseFloat(x.paddingLeft)+parseFloat(x.paddingRight),y-=parseFloat(x.paddingTop)+parseFloat(x.paddingBottom),this.viewport.width=b,this.viewport.height=y,a){if(Math.abs(d-g.width)>.1||Math.abs(u-g.height)>.1){const e=((e,t,i,s)=>{const n=Math.min(i/e||0,s/t);return{width:e*n||0,height:t*n||0}})(d,u,Math.min(d,g.width),Math.min(u,g.height));l=i(e.width),c=i(e.height)}Object.assign(s.style,{width:`${l}px`,height:`${c}px`,transform:""})}if(r&&(Object.assign(n.style,{width:`${l}px`,height:`${c}px`}),this.viewport={...this.viewport,width:l,height:c}),o&&a&&"function"!=typeof this.options.maxScale){const e=this.option("maxScale");this.options.maxScale=function(){return this.content.origWidth>0&&this.content.fitWidth>0?this.content.origWidth/this.content.fitWidth:e}}this.content={...this.content,origWidth:d,origHeight:u,fitWidth:l,fitHeight:c,width:l,height:c,scale:1,isZoomable:a},this.container={width:v.width,height:v.height},!0!==e&&this.trigger("afterUpdate")}zoomIn(e){this.zoomTo(this.content.scale+(e||this.option("step")))}zoomOut(e){this.zoomTo(this.content.scale-(e||this.option("step")))}toggleZoom(e={}){const t=this.option("maxScale"),i=this.option("baseScale"),s=this.content.scale>i+.5*(t-i)?i:t;this.zoomTo(s,e)}zoomTo(e=this.option("baseScale"),{x:t=null,y:s=null}={}){e=Math.max(Math.min(e,this.option("maxScale")),this.option("minScale"));const n=i(this.content.scale/(this.content.width/this.content.fitWidth),1e7);null===t&&(t=this.content.width*n*.5),null===s&&(s=this.content.height*n*.5);const{deltaX:o,deltaY:a}=this.getZoomDelta(e,t,s);t=this.content.x-o,s=this.content.y-a,this.panTo({x:t,y:s,scale:e,friction:this.option("zoomFriction")})}getZoomDelta(e,t=0,i=0){const s=this.content.fitWidth*this.content.scale,n=this.content.fitHeight*this.content.scale,o=t>0&&s?t/s:0,a=i>0&&n?i/n:0;return{deltaX:(this.content.fitWidth*e-s)*o,deltaY:(this.content.fitHeight*e-n)*a}}panTo({x:e=this.content.x,y:t=this.content.y,scale:i,friction:s=this.option("friction"),ignoreBounds:n=!1}={}){if(i=i||this.content.scale||1,!n){const{boundX:s,boundY:n}=this.getBounds(i);s&&(e=Math.max(Math.min(e,s.to),s.from)),n&&(t=Math.max(Math.min(t,n.to),n.from))}this.friction=s,this.transform={...this.transform,x:e,y:t,scale:i},s?(this.state="panning",this.velocity={x:(1/this.friction-1)*(e-this.content.x),y:(1/this.friction-1)*(t-this.content.y),scale:(1/this.friction-1)*(i-this.content.scale)},this.startAnimation()):this.endAnimation()}startAnimation(){this.rAF?cancelAnimationFrame(this.rAF):this.trigger("startAnimation"),this.rAF=requestAnimationFrame((()=>this.animate()))}animate(){if(this.setEdgeForce(),this.setDragForce(),this.velocity.x*=this.friction,this.velocity.y*=this.friction,this.velocity.scale*=this.friction,this.content.x+=this.velocity.x,this.content.y+=this.velocity.y,this.content.scale+=this.velocity.scale,this.isAnimating())this.setTransform();else if("pointerdown"!==this.state)return void this.endAnimation();this.rAF=requestAnimationFrame((()=>this.animate()))}getBounds(e){let t=this.boundX,s=this.boundY;if(void 0!==t&&void 0!==s)return{boundX:t,boundY:s};t={from:0,to:0},s={from:0,to:0},e=e||this.transform.scale;const n=this.content.fitWidth*e,o=this.content.fitHeight*e,a=this.viewport.width,r=this.viewport.height;if(nt.to),i&&(o=this.content.yi.to),s||n){let i=((s?t.from:t.to)-this.content.x)*e;const n=this.content.x+(this.velocity.x+i)/this.friction;n>=t.from&&n<=t.to&&(i+=this.velocity.x),this.velocity.x=i,this.recalculateTransform()}if(o||a){let t=((o?i.from:i.to)-this.content.y)*e;const s=this.content.y+(t+this.velocity.y)/this.friction;s>=i.from&&s<=i.to&&(t+=this.velocity.y),this.velocity.y=t,this.recalculateTransform()}}setDragResistance(){if("pointerdown"!==this.state)return;const{boundX:e,boundY:t}=this.getBounds(this.dragPosition.scale);let i,s,n,o;if(e&&(i=this.dragPosition.xe.to),t&&(n=this.dragPosition.yt.to),(i||s)&&(!i||!s)){const t=i?e.from:e.to,s=t-this.dragPosition.x;this.dragPosition.x=t-.3*s}if((n||o)&&(!n||!o)){const e=n?t.from:t.to,i=e-this.dragPosition.y;this.dragPosition.y=e-.3*i}}setDragForce(){"pointerdown"===this.state&&(this.velocity.x=this.dragPosition.x-this.content.x,this.velocity.y=this.dragPosition.y-this.content.y,this.velocity.scale=this.dragPosition.scale-this.content.scale)}recalculateTransform(){this.transform.x=this.content.x+this.velocity.x/(1/this.friction-1),this.transform.y=this.content.y+this.velocity.y/(1/this.friction-1),this.transform.scale=this.content.scale+this.velocity.scale/(1/this.friction-1)}isAnimating(){return!(!this.friction||!(Math.abs(this.velocity.x)>.05||Math.abs(this.velocity.y)>.05||Math.abs(this.velocity.scale)>.05))}setTransform(e){let t,s,n;if(e?(t=i(this.transform.x),s=i(this.transform.y),n=this.transform.scale,this.content={...this.content,x:t,y:s,scale:n}):(t=i(this.content.x),s=i(this.content.y),n=this.content.scale/(this.content.width/this.content.fitWidth),this.content={...this.content,x:t,y:s}),this.trigger("beforeTransform"),t=i(this.content.x),s=i(this.content.y),e&&this.option("zoom")){let e,o;e=i(this.content.fitWidth*n),o=i(this.content.fitHeight*n),this.content.width=e,this.content.height=o,this.transform={...this.transform,width:e,height:o,scale:n},Object.assign(this.$content.style,{width:`${e}px`,height:`${o}px`,maxWidth:"none",maxHeight:"none",transform:`translate3d(${t}px, ${s}px, 0) scale(1)`})}else this.$content.style.transform=`translate3d(${t}px, ${s}px, 0) scale(${n})`;this.trigger("afterTransform")}endAnimation(e){cancelAnimationFrame(this.rAF),this.rAF=null,this.velocity={x:0,y:0,scale:0},this.setTransform(!0),this.state="ready",this.handleCursor(),!0!==e&&this.trigger("endAnimation")}handleCursor(){const e=this.option("draggableClass");e&&this.option("touch")&&(1==this.option("panOnlyZoomed")&&this.content.width<=this.viewport.width&&this.content.height<=this.viewport.height&&this.transform.scale<=this.option("baseScale")?this.$container.classList.remove(e):this.$container.classList.add(e))}detachEvents(){this.$content.removeEventListener("load",this.onLoad),this.$container.removeEventListener("wheel",this.onWheel,{passive:!1}),this.$container.removeEventListener("click",this.onClick,{passive:!1}),this.pointerTracker&&(this.pointerTracker.stop(),this.pointerTracker=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}destroy(){"destroy"!==this.state&&(this.state="destroy",clearTimeout(this.updateTimer),this.updateTimer=null,cancelAnimationFrame(this.rAF),this.rAF=null,this.detachEvents(),this.detachPlugins(),this.resetDragPosition())}constructor(e,i={}){super(t(!0,{},d,i)),this.state="init",this.$container=e;for(const e of["onLoad","onWheel","onClick"])this[e]=this[e].bind(this);this.initLayout(),this.resetValues(),this.attachPlugins(h.Plugins),this.trigger("init"),this.updateMetrics(),this.attachEvents(),this.trigger("ready"),!1===this.option("centerOnStart")?this.state="ready":this.panTo({friction:0}),e.__Panzoom=this}}h.version="4.0.26",h.Plugins={};const u=(e,t)=>{let i=0;return function(...s){const n=(new Date).getTime();if(!(n-i{t.preventDefault(),t.stopPropagation(),this.carousel["slide"+("next"===e?"Next":"Prev")]()})),t}build(){this.$container||(this.$container=document.createElement("div"),this.$container.classList.add(...this.option("classNames.main").split(" ")),this.carousel.$container.appendChild(this.$container)),this.$next||(this.$next=this.createButton("next"),this.$container.appendChild(this.$next)),this.$prev||(this.$prev=this.createButton("prev"),this.$container.appendChild(this.$prev))}onRefresh(){const e=this.carousel.pages.length;e<=1||e>1&&this.carousel.elemDimWidth=e-1&&this.$next.setAttribute("disabled","")))}cleanup(){this.$prev&&this.$prev.remove(),this.$prev=null,this.$next&&this.$next.remove(),this.$next=null,this.$container&&this.$container.remove(),this.$container=null}attach(){this.carousel.on("refresh change",this.onRefresh)}detach(){this.carousel.off("refresh change",this.onRefresh),this.cleanup()}constructor(e){this.$container=null,this.$prev=null,this.$next=null,this.carousel=e,this.onRefresh=this.onRefresh.bind(this)}}p.defaults={prevTpl:'',nextTpl:'',classNames:{main:"carousel__nav",button:"carousel__button",next:"is-next",prev:"is-prev"}};class f{addAsTargetFor(e){this.target=this.carousel,this.nav=e,this.attachEvents()}addAsNavFor(e){this.target=e,this.nav=this.carousel,this.attachEvents()}attachEvents(){this.nav.options.initialSlide=this.target.options.initialPage,this.nav.on("ready",this.onNavReady),this.nav.on("createSlide",this.onNavCreateSlide),this.nav.on("Panzoom.click",this.onNavClick),this.target.on("change",this.onTargetChange),this.target.on("Panzoom.afterUpdate",this.onTargetChange)}onNavReady(){this.onTargetChange(!0)}onNavClick(e,t,i){const s=i.target.closest(".carousel__slide");if(!s)return;i.stopPropagation();const n=parseInt(s.dataset.index,10),o=this.target.findPageForSlide(n);this.target.page!==o&&this.target.slideTo(o,{friction:this.friction}),this.markSelectedSlide(n)}onNavCreateSlide(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}onTargetChange(){const e=this.target.pages[this.target.page].indexes[0],t=this.nav.findPageForSlide(e);this.nav.slideTo(t),this.markSelectedSlide(e)}markSelectedSlide(e){this.selectedIndex=e,[...this.nav.slides].filter((e=>e.$el&&e.$el.classList.remove("is-nav-selected")));const t=this.nav.slides[e];t&&t.$el&&t.$el.classList.add("is-nav-selected")}attach(e){const t=e.options.Sync;(t.target||t.nav)&&(t.target?this.addAsNavFor(t.target):t.nav&&this.addAsTargetFor(t.nav),this.friction=t.friction)}detach(){this.nav&&(this.nav.off("ready",this.onNavReady),this.nav.off("Panzoom.click",this.onNavClick),this.nav.off("createSlide",this.onNavCreateSlide)),this.target&&(this.target.off("Panzoom.afterUpdate",this.onTargetChange),this.target.off("change",this.onTargetChange))}constructor(e){this.carousel=e,this.selectedIndex=null,this.friction=0,this.onNavReady=this.onNavReady.bind(this),this.onNavClick=this.onNavClick.bind(this),this.onNavCreateSlide=this.onNavCreateSlide.bind(this),this.onTargetChange=this.onTargetChange.bind(this)}}f.defaults={friction:.92};const g={Navigation:p,Dots:class{buildList(){if(this.carousel.pages.length{if(!("page"in e.target.dataset))return;e.preventDefault(),e.stopPropagation();const t=parseInt(e.target.dataset.page,10),i=this.carousel;t!==i.page&&(i.pages.length<3&&i.option("infinite")?i[0==t?"slidePrev":"slideNext"]():i.slideTo(t))})),this.$list=e,this.carousel.$container.appendChild(e),this.carousel.$container.classList.add("has-dots"),e}removeList(){this.$list&&(this.$list.parentNode.removeChild(this.$list),this.$list=null),this.carousel.$container.classList.remove("has-dots")}rebuildDots(){let e=this.$list;const t=!!e,i=this.carousel.pages.length;if(i<2)return void(t&&this.removeList());t||(e=this.buildList());const s=this.$list.children.length;if(s>i)for(let e=i;e{const i=e.code;let s;"Enter"===i||"NumpadEnter"===i?s=t:"ArrowRight"===i?s=t.nextSibling:"ArrowLeft"===i&&(s=t.previousSibling),s&&s.click()})),this.$list.appendChild(t)}this.setActiveDot()}}setActiveDot(){if(!this.$list)return;this.$list.childNodes.forEach((e=>{e.classList.remove("is-selected")}));const e=this.$list.childNodes[this.carousel.page];e&&e.classList.add("is-selected")}onChange(){this.setActiveDot()}onRefresh(){this.rebuildDots()}attach(){this.carousel.on(this.events)}detach(){this.removeList(),this.carousel.off(this.events),this.carousel=null}constructor(e){this.carousel=e,this.$list=null,this.events={change:this.onChange.bind(this),refresh:this.onRefresh.bind(this)}}},Sync:f},m={slides:[],preload:0,slidesPerPage:"auto",initialPage:null,initialSlide:null,friction:.92,center:!0,infinite:!0,fill:!0,dragFree:!1,prefix:"",classNames:{viewport:"carousel__viewport",track:"carousel__track",slide:"carousel__slide",slideSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}};class v extends c{init(){this.pages=[],this.page=this.pageIndex=null,this.prevPage=this.prevPageIndex=null,this.attachPlugins(v.Plugins),this.trigger("init"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.$track&&this.pages.length&&(this.$track.style.transform=`translate3d(${-1*this.pages[this.page].left}px, 0px, 0) scale(1)`),this.manageSlideVisiblity(),this.initPanzoom(),this.state="ready",this.trigger("ready")}initLayout(){const e=this.option("prefix"),t=this.option("classNames");this.$viewport=this.option("viewport")||this.$container.querySelector(`.${e}${t.viewport}`),this.$viewport||(this.$viewport=document.createElement("div"),this.$viewport.classList.add(...(e+t.viewport).split(" ")),this.$viewport.append(...this.$container.childNodes),this.$container.appendChild(this.$viewport)),this.$track=this.option("track")||this.$container.querySelector(`.${e}${t.track}`),this.$track||(this.$track=document.createElement("div"),this.$track.classList.add(...(e+t.track).split(" ")),this.$track.append(...this.$viewport.childNodes),this.$viewport.appendChild(this.$track))}initSlides(){this.slides=[],this.$viewport.querySelectorAll(`.${this.option("prefix")}${this.option("classNames.slide")}`).forEach((e=>{const t={$el:e,isDom:!0};this.slides.push(t),this.trigger("createSlide",t,this.slides.length)})),Array.isArray(this.options.slides)&&(this.slides=t(!0,[...this.slides],this.options.slides))}updateMetrics(){let e,t=0,s=[];this.slides.forEach(((i,n)=>{const o=i.$el,a=i.isDom||!e?this.getSlideMetrics(o):e;i.index=n,i.width=a,i.left=t,e=a,t+=a,s.push(n)}));let n=Math.max(this.$track.offsetWidth,i(this.$track.getBoundingClientRect().width)),o=getComputedStyle(this.$track);n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),this.contentWidth=t,this.viewportWidth=n;const a=[],r=this.option("slidesPerPage");if(Number.isInteger(r)&&t>n)for(let e=0;en)&&(a.push({indexes:[],slides:[]}),e=a.length-1,t=0),t+=s.width,a[e].indexes.push(i),a[e].slides.push(s)}}const l=this.option("center"),c=this.option("fill");a.forEach(((e,i)=>{e.index=i,e.width=e.slides.reduce(((e,t)=>e+t.width),0),e.left=e.slides[0].left,l&&(e.left+=.5*(n-e.width)*-1),c&&!this.option("infiniteX",this.option("infinite"))&&t>n&&(e.left=Math.max(e.left,0),e.left=Math.min(e.left,t-n))}));const d=[];let h;a.forEach((e=>{const t={...e};h&&t.left===h.left?(h.width+=t.width,h.slides=[...h.slides,...t.slides],h.indexes=[...h.indexes,...t.indexes]):(t.index=d.length,h=t,d.push(t))})),this.pages=d;let u=this.page;if(null===u){const e=this.option("initialSlide");u=null!==e?this.findPageForSlide(e):parseInt(this.option("initialPage",0),10)||0,d[u]||(u=d.length&&u>d.length?d[d.length-1].index:0),this.page=u,this.pageIndex=u}this.updatePanzoom(),this.trigger("refresh")}getSlideMetrics(e){if(!e){const t=this.slides[0];(e=document.createElement("div")).dataset.isTestEl=1,e.style.visibility="hidden",e.classList.add(...(this.option("prefix")+this.option("classNames.slide")).split(" ")),t.customClass&&e.classList.add(...t.customClass.split(" ")),this.$track.prepend(e)}let t=Math.max(e.offsetWidth,i(e.getBoundingClientRect().width));const s=e.currentStyle||window.getComputedStyle(e);return t=t+(parseFloat(s.marginLeft)||0)+(parseFloat(s.marginRight)||0),e.dataset.isTestEl&&e.remove(),t}findPageForSlide(e){e=parseInt(e,10)||0;const t=this.pages.find((t=>t.indexes.indexOf(e)>-1));return t?t.index:null}slideNext(){this.slideTo(this.pageIndex+1)}slidePrev(){this.slideTo(this.pageIndex-1)}slideTo(e,t={}){const{x:i=-1*this.setPage(e,!0),y:s=0,friction:n=this.option("friction")}=t;this.Panzoom.content.x===i&&!this.Panzoom.velocity.x&&n||(this.Panzoom.panTo({x:i,y:s,friction:n,ignoreBounds:!0}),"ready"===this.state&&"ready"===this.Panzoom.state&&this.trigger("settle"))}initPanzoom(){this.Panzoom&&this.Panzoom.destroy();const e=t(!0,{},{content:this.$track,wrapInner:!1,resizeParent:!1,zoom:!1,click:!1,lockAxis:"x",x:this.pages.length?-1*this.pages[this.page].left:0,centerOnStart:!1,textSelection:()=>this.option("textSelection",!1),panOnlyZoomed:function(){return this.content.width<=this.viewport.width}},this.option("Panzoom"));this.Panzoom=new h(this.$container,e),this.Panzoom.on({"*":(e,...t)=>this.trigger(`Panzoom.${e}`,...t),afterUpdate:()=>{this.updatePage()},beforeTransform:this.onBeforeTransform.bind(this),touchEnd:this.onTouchEnd.bind(this),endAnimation:()=>{this.trigger("settle")}}),this.updateMetrics(),this.manageSlideVisiblity()}updatePanzoom(){this.Panzoom&&(this.Panzoom.content={...this.Panzoom.content,fitWidth:this.contentWidth,origWidth:this.contentWidth,width:this.contentWidth},this.pages.length>1&&this.option("infiniteX",this.option("infinite"))?this.Panzoom.boundX=null:this.pages.length&&(this.Panzoom.boundX={from:-1*this.pages[this.pages.length-1].left,to:-1*this.pages[0].left}),this.option("infiniteY",this.option("infinite"))?this.Panzoom.boundY=null:this.Panzoom.boundY={from:0,to:0},this.Panzoom.handleCursor())}manageSlideVisiblity(){const e=this.contentWidth,t=this.viewportWidth;let i=this.Panzoom?-1*this.Panzoom.content.x:this.pages.length?this.pages[this.page].left:0;const s=this.option("preload"),n=this.option("infiniteX",this.option("infinite")),o=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-left")),a=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-right"));this.slides.forEach((r=>{let l,c,d=0;l=i-o,c=i+t+a,l-=s*(t+o+a),c+=s*(t+o+a);const h=r.left+r.width>l&&r.leftl&&r.leftl&&r.lefti&&r.left<=i+t+a&&(d=0)):this.removeSlideEl(r),r.hasDiff=d}));let r=0,l=0;this.slides.forEach(((t,i)=>{let s=0;t.$el?(i!==r||t.hasDiff?s=l+t.hasDiff*e:l=0,t.$el.style.left=Math.abs(s)>.1?`${l+t.hasDiff*e}px`:"",r++):l+=t.width})),this.markSelectedSlides()}createSlideEl(e){if(!e)return;if(e.$el){let t=e.$el.dataset.index;if(!t||parseInt(t,10)!==e.index){let t;e.$el.dataset.index=e.index,e.$el.querySelectorAll("[data-lazy-srcset]").forEach((e=>{e.srcset=e.dataset.lazySrcset})),e.$el.querySelectorAll("[data-lazy-src]").forEach((e=>{let t=e.dataset.lazySrc;e instanceof HTMLImageElement?e.src=t:e.style.backgroundImage=`url('${t}')`})),(t=e.$el.dataset.lazySrc)&&(e.$el.style.backgroundImage=`url('${t}')`),e.state="ready"}return}const t=document.createElement("div");t.dataset.index=e.index,t.classList.add(...(this.option("prefix")+this.option("classNames.slide")).split(" ")),e.customClass&&t.classList.add(...e.customClass.split(" ")),e.html&&(t.innerHTML=e.html);const i=[];this.slides.forEach(((e,t)=>{e.$el&&i.push(t)}));const s=e.index;let n=null;if(i.length){let e=i.reduce(((e,t)=>Math.abs(t-s){const n=i.$el;if(!n)return;const o=this.pages[this.page];o&&o.indexes&&o.indexes.indexOf(s)>-1?(e&&!n.classList.contains(e)&&(n.classList.add(e),this.trigger("selectSlide",i)),n.removeAttribute(t)):(e&&n.classList.contains(e)&&(n.classList.remove(e),this.trigger("unselectSlide",i)),n.setAttribute(t,!0))}))}updatePage(){this.updateMetrics(),this.slideTo(this.page,{friction:0})}onBeforeTransform(){this.option("infiniteX",this.option("infinite"))&&this.manageInfiniteTrack(),this.manageSlideVisiblity()}manageInfiniteTrack(){const e=this.contentWidth,t=this.viewportWidth;if(!this.option("infiniteX",this.option("infinite"))||this.pages.length<2||et&&(i.content.x-=e,this.pageIndex=this.pageIndex+this.pages.length,s=!0),s&&"pointerdown"===i.state&&i.resetDragPosition(),s}onTouchEnd(e,t){const i=this.option("dragFree");if(!i&&this.pages.length>1&&e.dragOffset.time<350&&Math.abs(e.dragOffset.y)<1&&Math.abs(e.dragOffset.x)>5)this[e.dragOffset.x<0?"slideNext":"slidePrev"]();else if(i){const[,t]=this.getPageFromPosition(-1*e.transform.x);this.setPage(t)}else this.slideToClosest()}slideToClosest(e={}){let[,t]=this.getPageFromPosition(-1*this.Panzoom.content.x);this.slideTo(t,e)}getPageFromPosition(e){const t=this.pages.length;this.option("center")&&(e+=.5*this.viewportWidth);const i=Math.floor(e/this.contentWidth);e-=i*this.contentWidth;let s=this.slides.find((t=>t.left<=e&&t.left+t.width>e));if(s){let e=this.findPageForSlide(s.index);return[e,e+i*t]}return[0,0]}setPage(e,t){let i=0,s=parseInt(e,10)||0;const n=this.page,o=this.pageIndex,a=this.pages.length,r=this.contentWidth,l=this.viewportWidth;if(e=(s%a+a)%a,this.option("infiniteX",this.option("infinite"))&&r>l){const n=Math.floor(s/a)||0,o=r;if(i=this.pages[e].left+n*o,!0===t&&a>2){let e=-1*this.Panzoom.content.x;const t=i-o,n=i+o,r=Math.abs(e-i),l=Math.abs(e-t),c=Math.abs(e-n);c{this.removeSlideEl(e)})),this.slides=[],this.Panzoom.destroy(),this.detachPlugins()}constructor(e,i={}){if(super(i=t(!0,{},m,i)),this.state="init",this.$container=e,!(this.$container instanceof HTMLElement))throw new Error("No root element provided");this.slideNext=u(this.slideNext.bind(this),250),this.slidePrev=u(this.slidePrev.bind(this),250),this.init(),e.__Carousel=this}}v.version="4.0.26",v.Plugins=g;const b=!("undefined"==typeof window||!window.document||!window.document.createElement);let y=null;const x=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'],w=e=>{if(e&&b){null===y&&document.createElement("div").focus({get preventScroll(){return y=!0,!1}});try{if(e.setActive)e.setActive();else if(y)e.focus({preventScroll:!0});else{const t=window.pageXOffset||document.body.scrollTop,i=window.pageYOffset||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:i,behavior:"auto"})}}catch(e){}}};class C{onPrepare(){this.getSlides().length=this.fancybox.option("Thumbs.minScreenHeight")&&this.build()}onClosing(){this.Carousel&&this.Carousel.Panzoom.detachEvents()}onKeydown(e,t){t===e.option("Thumbs.key")&&this.toggle()}build(){if(this.$container)return;const e=document.createElement("div");e.classList.add("fancybox__thumbs"),this.fancybox.$carousel.parentNode.insertBefore(e,this.fancybox.$carousel.nextSibling),this.Carousel=new v(e,t(!0,{Dots:!1,Navigation:!1,Sync:{friction:0},infinite:!1,center:!0,fill:!0,dragFree:!0,slidesPerPage:1,preload:1},this.fancybox.option("Thumbs.Carousel"),{Sync:{target:this.fancybox.Carousel},slides:this.getSlides()})),this.Carousel.Panzoom.on("wheel",((e,t)=>{t.preventDefault(),this.fancybox[t.deltaY<0?"prev":"next"]()})),this.$container=e,this.state="visible"}getSlides(){const e=[];for(const t of this.fancybox.items){const i=t.thumb;i&&e.push({html:`
`,customClass:`has-thumb has-${t.type||"image"}`})}return e}toggle(){"visible"===this.state?this.hide():"hidden"===this.state?this.show():this.build()}show(){"hidden"===this.state&&(this.$container.style.display="",this.Carousel.Panzoom.attachEvents(),this.state="visible")}hide(){"visible"===this.state&&(this.Carousel.Panzoom.detachEvents(),this.$container.style.display="none",this.state="hidden")}cleanup(){this.Carousel&&(this.Carousel.destroy(),this.Carousel=null),this.$container&&(this.$container.remove(),this.$container=null),this.state="init"}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events),this.cleanup()}constructor(e){this.fancybox=e,this.$container=null,this.state="init";for(const e of["onPrepare","onClosing","onKeydown"])this[e]=this[e].bind(this);this.events={prepare:this.onPrepare,closing:this.onClosing,keydown:this.onKeydown}}}C.defaults={minSlideCount:2,minScreenHeight:500,autoStart:!0,key:"t",Carousel:{}};const S=(e,t)=>{const i=new URL(e),s=new URLSearchParams(i.search);let n=new URLSearchParams;for(const[e,i]of[...s,...Object.entries(t)])"t"===e?n.set("start",parseInt(i)):n.set(e,i);n=n.toString();let o=e.match(/#t=((.*)?\d+s)/);return o&&(n+=`#t=${o[1]}`),n},E={video:{autoplay:!0,ratio:16/9},youtube:{autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},vimeo:{hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},html5video:{tpl:'',format:""}};class ${onInit(){for(const e of this.fancybox.items)this.processType(e)}processType(e){if(e.html)return e.src=e.html,e.type="html",void delete e.html;const i=e.src||"";let s=e.type||this.fancybox.options.type,n=null;if(!i||"string"==typeof i){if(n=i.match(/(?:youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const t=S(i,this.fancybox.option("Html.youtube")),o=encodeURIComponent(n[1]);e.videoId=o,e.src=`https://www.youtube-nocookie.com/embed/${o}?${t}`,e.thumb=e.thumb||`https://i.ytimg.com/vi/${o}/mqdefault.jpg`,e.vendor="youtube",s="video"}else if(n=i.match(/^.+vimeo.com\/(?:\/)?([\d]+)(.*)?/)){const t=S(i,this.fancybox.option("Html.vimeo")),o=encodeURIComponent(n[1]);e.videoId=o,e.src=`https://player.vimeo.com/video/${o}?${t}`,e.vendor="vimeo",s="video"}else(n=i.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`//maps.google.${n[1]}/?ll=${(n[2]?n[2]+"&z="+Math.floor(n[3])+(n[4]?n[4].replace(/^\//,"&"):""):n[4]+"").replace(/\?/,"&")}&output=${n[4]&&n[4].indexOf("layer=c")>0?"svembed":"embed"}`,s="map"):(n=i.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`//maps.google.${n[1]}/maps?q=${n[2].replace("query=","q=").replace("api=1","")}&output=embed`,s="map");s||("#"===i.charAt(0)?s="inline":(n=i.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(s="html5video",e.format=e.format||"video/"+("ogv"===n[1]?"ogg":n[1])):i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":i.match(/\.(pdf)((\?|#).*)?$/i)&&(s="pdf")),e.type=s||this.fancybox.option("defaultType","image"),"html5video"!==s&&"video"!==s||(e.video=t({},this.fancybox.option("Html.video"),e.video),e._width&&e._height?e.ratio=parseFloat(e._width)/parseFloat(e._height):e.ratio=e.ratio||e.video.ratio||E.video.ratio)}}onReady(){this.fancybox.Carousel.slides.forEach((e=>{e.$el&&(this.setContent(e),e.index===this.fancybox.getSlide().index&&this.playVideo(e))}))}onCreateSlide(e,t,i){"ready"===this.fancybox.state&&this.setContent(i)}loadInlineContent(e){let t;if(e.src instanceof HTMLElement)t=e.src;else if("string"==typeof e.src){const i=e.src.split("#",2),s=2===i.length&&""===i[0]?i[1]:i[0];t=document.getElementById(s)}if(t){if("clone"===e.type||t.$placeHolder){t=t.cloneNode(!0);let i=t.getAttribute("id");i=i?`${i}--clone`:`clone-${this.fancybox.id}-${e.index}`,t.setAttribute("id",i)}else{const e=document.createElement("div");e.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(e,t),t.$placeHolder=e}this.fancybox.setContent(e,t)}else this.fancybox.setError(e,"{{ELEMENT_NOT_FOUND}}")}loadAjaxContent(e){const t=this.fancybox,i=new XMLHttpRequest;t.showLoading(e),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&"ready"===t.state&&(t.hideLoading(e),200===i.status?t.setContent(e,i.responseText):t.setError(e,404===i.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))},i.open("GET",e.src),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(e.ajax||null),e.xhr=i}loadIframeContent(e){const t=this.fancybox,i=document.createElement("iframe");if(i.className="fancybox__iframe",i.setAttribute("id",`fancybox__iframe_${t.id}_${e.index}`),i.setAttribute("allow","autoplay; fullscreen"),i.setAttribute("scrolling","auto"),e.$iframe=i,"iframe"!==e.type||!1===e.preload)return i.setAttribute("src",e.src),this.fancybox.setContent(e,i),void this.resizeIframe(e);t.showLoading(e);const s=document.createElement("div");s.style.visibility="hidden",this.fancybox.setContent(e,s),s.appendChild(i),i.onerror=()=>{t.setError(e,"{{IFRAME_ERROR}}")},i.onload=()=>{t.hideLoading(e);let s=!1;i.isReady||(i.isReady=!0,s=!0),i.src.length&&(i.parentNode.style.visibility="",this.resizeIframe(e),s&&t.revealContent(e))},i.setAttribute("src",e.src)}setAspectRatio(e){const t=e.$content,i=e.ratio;if(!t)return;let s=e._width,n=e._height;if(i||s&&n){Object.assign(t.style,{width:s&&n?"100%":"",height:s&&n?"100%":"",maxWidth:"",maxHeight:""});let e=t.offsetWidth,o=t.offsetHeight;if(s=s||e,n=n||o,s>e||n>o){let t=Math.min(e/s,o/n);s*=t,n*=t}Math.abs(s/n-i)>.01&&(i{e.$el&&(e.$iframe&&this.resizeIframe(e),e.ratio&&this.setAspectRatio(e))}))}setContent(e){if(e&&!e.isDom){switch(e.type){case"html":this.fancybox.setContent(e,e.src);break;case"html5video":this.fancybox.setContent(e,this.fancybox.option("Html.html5video.tpl").replace(/\{\{src\}\}/gi,e.src).replace("{{format}}",e.format||e.html5video&&e.html5video.format||"").replace("{{poster}}",e.poster||e.thumb||""));break;case"inline":case"clone":this.loadInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case"video":case"map":e.preload=!1;case"iframe":this.loadIframeContent(e)}e.ratio&&this.setAspectRatio(e)}}onSelectSlide(e,t,i){"ready"===e.state&&this.playVideo(i)}playVideo(e){if("html5video"===e.type&&e.video.autoplay)try{const t=e.$el.querySelector("video");if(t){const e=t.play();void 0!==e&&e.then((()=>{})).catch((e=>{t.muted=!0,t.play()}))}}catch(e){}if("video"!==e.type||!e.$iframe||!e.$iframe.contentWindow)return;const t=()=>{if("done"===e.state&&e.$iframe&&e.$iframe.contentWindow){let t;if(e.$iframe.isReady)return e.video&&e.video.autoplay&&(t="youtube"==e.vendor?{event:"command",func:"playVideo"}:{method:"play",value:"true"}),void(t&&e.$iframe.contentWindow.postMessage(JSON.stringify(t),"*"));"youtube"===e.vendor&&(t={event:"listening",id:e.$iframe.getAttribute("id")},e.$iframe.contentWindow.postMessage(JSON.stringify(t),"*"))}e.poller=setTimeout(t,250)};t()}onUnselectSlide(e,t,i){if("html5video"===i.type){try{i.$el.querySelector("video").pause()}catch(e){}return}let s=!1;"vimeo"==i.vendor?s={method:"pause",value:"true"}:"youtube"===i.vendor&&(s={event:"command",func:"pauseVideo"}),s&&i.$iframe&&i.$iframe.contentWindow&&i.$iframe.contentWindow.postMessage(JSON.stringify(s),"*"),clearTimeout(i.poller)}onRemoveSlide(e,t,i){i.xhr&&(i.xhr.abort(),i.xhr=null),i.$iframe&&(i.$iframe.onload=i.$iframe.onerror=null,i.$iframe.src="//about:blank",i.$iframe=null);const s=i.$content;"inline"===i.type&&s&&(s.classList.remove("fancybox__content"),"none"!==s.style.display&&(s.style.display="none")),i.$closeButton&&(i.$closeButton.remove(),i.$closeButton=null);const n=s&&s.$placeHolder;n&&(n.parentNode.insertBefore(s,n),n.remove(),s.$placeHolder=null)}onMessage(e){try{let t=JSON.parse(e.data);if("https://player.vimeo.com"===e.origin){if("ready"===t.event)for(let t of document.getElementsByClassName("fancybox__iframe"))t.contentWindow===e.source&&(t.isReady=1)}else"https://www.youtube-nocookie.com"===e.origin&&"onReady"===t.event&&(document.getElementById(t.id).isReady=1)}catch(e){}}attach(){this.fancybox.on(this.events),window.addEventListener("message",this.onMessage,!1)}detach(){this.fancybox.off(this.events),window.removeEventListener("message",this.onMessage,!1)}constructor(e){this.fancybox=e;for(const e of["onInit","onReady","onCreateSlide","onRemoveSlide","onSelectSlide","onUnselectSlide","onRefresh","onMessage"])this[e]=this[e].bind(this);this.events={init:this.onInit,ready:this.onReady,"Carousel.createSlide":this.onCreateSlide,"Carousel.removeSlide":this.onRemoveSlide,"Carousel.selectSlide":this.onSelectSlide,"Carousel.unselectSlide":this.onUnselectSlide,"Carousel.refresh":this.onRefresh}}}$.defaults=E;class T{onReady(){this.fancybox.Carousel.slides.forEach((e=>{e.$el&&this.setContent(e)}))}onDone(e,t){this.handleCursor(t)}onClosing(e){clearTimeout(this.clickTimer),this.clickTimer=null,e.Carousel.slides.forEach((e=>{e.$image&&(e.state="destroy"),e.Panzoom&&e.Panzoom.detachEvents()})),"closing"===this.fancybox.state&&this.canZoom(e.getSlide())&&this.zoomOut()}onCreateSlide(e,t,i){"ready"===this.fancybox.state&&this.setContent(i)}onRemoveSlide(e,t,i){i.$image&&(i.$el.classList.remove(e.option("Image.canZoomInClass")),i.$image.remove(),i.$image=null),i.Panzoom&&(i.Panzoom.destroy(),i.Panzoom=null),i.$el&&i.$el.dataset&&delete i.$el.dataset.imageFit}setContent(e){if(e.isDom||e.html||e.type&&"image"!==e.type)return;if(e.$image)return;e.type="image",e.state="loading";const t=document.createElement("div");t.style.visibility="hidden";const i=document.createElement("img");i.addEventListener("load",(t=>{t.stopImmediatePropagation(),this.onImageStatusChange(e)})),i.addEventListener("error",(()=>{this.onImageStatusChange(e)})),i.src=e.src,i.alt="",i.draggable=!1,i.classList.add("fancybox__image"),e.srcset&&i.setAttribute("srcset",e.srcset),e.sizes&&i.setAttribute("sizes",e.sizes),e.$image=i;const s=this.fancybox.option("Image.wrap");if(s){const n=document.createElement("div");n.classList.add("string"==typeof s?s:"fancybox__image-wrap"),n.appendChild(i),t.appendChild(n),e.$wrap=n}else t.appendChild(i);e.$el.dataset.imageFit=this.fancybox.option("Image.fit"),this.fancybox.setContent(e,t),i.complete||i.error?this.onImageStatusChange(e):this.fancybox.showLoading(e)}onImageStatusChange(e){const t=e.$image;t&&"loading"===e.state&&(t.complete&&t.naturalWidth&&t.naturalHeight?(this.fancybox.hideLoading(e),"contain"===this.fancybox.option("Image.fit")&&this.initSlidePanzoom(e),e.$el.addEventListener("wheel",(t=>this.onWheel(e,t)),{passive:!1}),e.$content.addEventListener("click",(t=>this.onClick(e,t)),{passive:!1}),this.revealContent(e)):this.fancybox.setError(e,"{{IMAGE_ERROR}}"))}initSlidePanzoom(e){e.Panzoom||(e.Panzoom=new h(e.$el,t(!0,this.fancybox.option("Image.Panzoom",{}),{viewport:e.$wrap,content:e.$image,width:e._width,height:e._height,wrapInner:!1,textSelection:!0,touch:this.fancybox.option("Image.touch"),panOnlyZoomed:!0,click:!1,wheel:!1})),e.Panzoom.on("startAnimation",(()=>{this.fancybox.trigger("Image.startAnimation",e)})),e.Panzoom.on("endAnimation",(()=>{"zoomIn"===e.state&&this.fancybox.done(e),this.handleCursor(e),this.fancybox.trigger("Image.endAnimation",e)})),e.Panzoom.on("afterUpdate",(()=>{this.handleCursor(e),this.fancybox.trigger("Image.afterUpdate",e)})))}revealContent(e){null===this.fancybox.Carousel.prevPage&&e.index===this.fancybox.options.startIndex&&this.canZoom(e)?this.zoomIn():this.fancybox.revealContent(e)}getZoomInfo(e){const t=e.$thumb.getBoundingClientRect(),i=t.width,s=t.height,n=e.$content.getBoundingClientRect(),o=n.width,a=n.height,r=n.top-t.top,l=n.left-t.left;let c=this.fancybox.option("Image.zoomOpacity");return"auto"===c&&(c=Math.abs(i/s-o/a)>.1),{top:r,left:l,scale:o&&i?i/o:1,opacity:c}}canZoom(e){const t=this.fancybox,i=t.$container;if(window.visualViewport&&1!==window.visualViewport.scale)return!1;if(e.Panzoom&&!e.Panzoom.content.width)return!1;if(!t.option("Image.zoom")||"contain"!==t.option("Image.fit"))return!1;const s=e.$thumb;if(!s||"loading"===e.state)return!1;i.classList.add("fancybox__no-click");const n=s.getBoundingClientRect();let o;if(this.fancybox.option("Image.ignoreCoveredThumbnail")){const e=document.elementFromPoint(n.left+1,n.top+1)===s,t=document.elementFromPoint(n.right-1,n.bottom-1)===s;o=e&&t}else o=document.elementFromPoint(n.left+.5*n.width,n.top+.5*n.height)===s;return i.classList.remove("fancybox__no-click"),o}zoomIn(){const e=this.fancybox,t=e.getSlide(),i=t.Panzoom,{top:s,left:n,scale:o,opacity:a}=this.getZoomInfo(t);e.trigger("reveal",t),i.panTo({x:-1*n,y:-1*s,scale:o,friction:0,ignoreBounds:!0}),t.$content.style.visibility="",t.state="zoomIn",!0===a&&i.on("afterTransform",(e=>{"zoomIn"!==t.state&&"zoomOut"!==t.state||(e.$content.style.opacity=Math.min(1,1-(1-e.content.scale)/(1-o)))})),i.panTo({x:0,y:0,scale:1,friction:this.fancybox.option("Image.zoomFriction")})}zoomOut(){const e=this.fancybox,t=e.getSlide(),i=t.Panzoom;if(!i)return;t.state="zoomOut",e.state="customClosing",t.$caption&&(t.$caption.style.visibility="hidden");let s=this.fancybox.option("Image.zoomFriction");const n=e=>{const{top:n,left:o,scale:a,opacity:r}=this.getZoomInfo(t);e||r||(s*=.82),i.panTo({x:-1*o,y:-1*n,scale:a,friction:s,ignoreBounds:!0}),s*=.98};window.addEventListener("scroll",n),i.once("endAnimation",(()=>{window.removeEventListener("scroll",n),e.destroy()})),n()}handleCursor(e){if("image"!==e.type||!e.$el)return;const t=e.Panzoom,i=this.fancybox.option("Image.click",!1,e),s=this.fancybox.option("Image.touch"),n=e.$el.classList,o=this.fancybox.option("Image.canZoomInClass"),a=this.fancybox.option("Image.canZoomOutClass");n.remove(a),n.remove(o),t&&"toggleZoom"===i?t&&1===t.content.scale&&t.option("maxScale")-t.content.scale>.01?n.add(o):t.content.scale>1&&!s&&n.add(a):"close"===i&&n.add(a)}onWheel(e,t){if("ready"===this.fancybox.state&&!1!==this.fancybox.trigger("Image.wheel",t))switch(this.fancybox.option("Image.wheel")){case"zoom":"done"===e.state&&e.Panzoom&&e.Panzoom.zoomWithWheel(t);break;case"close":this.fancybox.close();break;case"slide":this.fancybox[t.deltaY<0?"prev":"next"]()}}onClick(e,t){if("ready"!==this.fancybox.state)return;const i=e.Panzoom;if(i&&(i.dragPosition.midPoint||0!==i.dragOffset.x||0!==i.dragOffset.y||1!==i.dragOffset.scale))return;if(this.fancybox.Carousel.Panzoom.lockAxis)return!1;const s=i=>{switch(i){case"toggleZoom":t.stopPropagation(),e.Panzoom&&e.Panzoom.zoomWithClick(t);break;case"close":this.fancybox.close();break;case"next":t.stopPropagation(),this.fancybox.next()}},n=this.fancybox.option("Image.click"),o=this.fancybox.option("Image.doubleClick");o?this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null,s(o)):this.clickTimer=setTimeout((()=>{this.clickTimer=null,s(n)}),300):s(n)}onPageChange(e,t){const i=e.getSlide();t.slides.forEach((e=>{e.Panzoom&&"done"===e.state&&e.index!==i.index&&e.Panzoom.panTo({x:0,y:0,scale:1,friction:.8})}))}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events)}constructor(e){this.fancybox=e;for(const e of["onReady","onClosing","onDone","onPageChange","onCreateSlide","onRemoveSlide","onImageStatusChange"])this[e]=this[e].bind(this);this.events={ready:this.onReady,closing:this.onClosing,done:this.onDone,"Carousel.change":this.onPageChange,"Carousel.createSlide":this.onCreateSlide,"Carousel.removeSlide":this.onRemoveSlide}}}T.defaults={canZoomInClass:"can-zoom_in",canZoomOutClass:"can-zoom_out",zoom:!0,zoomOpacity:"auto",zoomFriction:.82,ignoreCoveredThumbnail:!1,touch:!0,click:"toggleZoom",doubleClick:null,wheel:"zoom",fit:"contain",wrap:!1,Panzoom:{ratio:1}};class P{onChange(e){const t=e.Carousel;this.timer&&clearTimeout(this.timer);const i=null===t.prevPage,s=e.getSlide(),n=new URL(document.URL).hash;let o=!1;if(s.slug)o="#"+s.slug;else{const i=s.$trigger&&s.$trigger.dataset,n=e.option("slug")||i&&i.fancybox;n&&n.length&&"true"!==n&&(o="#"+n+(t.slides.length>1?"-"+(s.index+1):""))}i&&(this.origHash=n!==o?n:""),o&&n!==o&&(this.timer=setTimeout((()=>{try{window.history[i?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+o),i&&(this.hasCreatedHistory=!0)}catch(e){}}),300))}onClosing(){if(this.timer&&clearTimeout(this.timer),!0!==this.hasSilentClose)try{return void window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash||""))}catch(e){}}attach(e){e.on(this.events)}detach(e){e.off(this.events)}static startFromUrl(){const e=P.Fancybox;if(!e||e.getInstance()||!1===e.defaults.Hash)return;const{hash:t,slug:i,index:s}=P.getParsedURL();if(!i)return;let n=document.querySelector(`[data-slug="${t}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),e.getInstance())return;const o=document.querySelectorAll(`[data-fancybox="${i}"]`);o.length&&(null===s&&1===o.length?n=o[0]:s&&(n=o[s-1]),n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}static onHashChange(){const{slug:e,index:t}=P.getParsedURL(),i=P.Fancybox,s=i&&i.getInstance();if(s&&s.plugins.Hash){if(e){const i=s.Carousel;if(e===s.option("slug"))return i.slideTo(t-1);for(let t of i.slides)if(t.slug&&t.slug===e)return i.slideTo(t.index);const n=s.getSlide(),o=n.$trigger&&n.$trigger.dataset;if(o&&o.fancybox===e)return i.slideTo(t-1)}s.plugins.Hash.hasSilentClose=!0,s.close()}P.startFromUrl()}static create(e){function t(){window.addEventListener("hashchange",P.onHashChange,!1),P.startFromUrl()}P.Fancybox=e,b&&window.requestAnimationFrame((()=>{/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t)}))}static destroy(){window.removeEventListener("hashchange",P.onHashChange,!1)}static getParsedURL(){const e=window.location.hash.substr(1),t=e.split("-"),i=t.length>1&&/^\+?\d+$/.test(t[t.length-1])&&parseInt(t.pop(-1),10)||null;return{hash:e,slug:t.join("-"),index:i}}constructor(e){this.fancybox=e;for(const e of["onChange","onClosing"])this[e]=this[e].bind(this);this.events={initCarousel:this.onChange,"Carousel.change":this.onChange,closing:this.onClosing},this.hasCreatedHistory=!1,this.origHash="",this.timer=null}}const L={pageXOffset:0,pageYOffset:0,element:()=>document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,activate(e){L.pageXOffset=window.pageXOffset,L.pageYOffset=window.pageYOffset,e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},deactivate(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}};class k{isActive(){return this.active}setTimer(){if(!this.active||this.timer)return;const e=this.fancybox.option("slideshow.delay",3e3);this.timer=setTimeout((()=>{this.timer=null,this.fancybox.option("infinite")||this.fancybox.getSlide().index!==this.fancybox.Carousel.slides.length-1?this.fancybox.next():this.fancybox.jumpTo(0,{friction:0})}),e);let t=this.$progress;t||(t=document.createElement("div"),t.classList.add("fancybox__progress"),this.fancybox.$carousel.parentNode.insertBefore(t,this.fancybox.$carousel),this.$progress=t,t.offsetHeight),t.style.transitionDuration=`${e}ms`,t.style.transform="scaleX(1)"}clearTimer(){clearTimeout(this.timer),this.timer=null,this.$progress&&(this.$progress.style.transitionDuration="",this.$progress.style.transform="",this.$progress.offsetHeight)}activate(){this.active||(this.active=!0,this.fancybox.$container.classList.add("has-slideshow"),"done"===this.fancybox.getSlide().state&&this.setTimer(),document.addEventListener("visibilitychange",this.handleVisibilityChange,!1))}handleVisibilityChange(){this.deactivate()}deactivate(){this.active=!1,this.clearTimer(),this.fancybox.$container.classList.remove("has-slideshow"),document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1)}toggle(){this.active?this.deactivate():this.fancybox.Carousel.slides.length>1&&this.activate()}constructor(e){this.fancybox=e,this.active=!1,this.handleVisibilityChange=this.handleVisibilityChange.bind(this)}}const M={display:["counter","zoom","slideshow","fullscreen","thumbs","close"],autoEnable:!0,items:{counter:{position:"left",type:"div",class:"fancybox__counter",html:' / ',attr:{tabindex:-1}},prev:{type:"button",class:"fancybox__button--prev",label:"PREV",html:'',attr:{"data-fancybox-prev":""}},next:{type:"button",class:"fancybox__button--next",label:"NEXT",html:'',attr:{"data-fancybox-next":""}},fullscreen:{type:"button",class:"fancybox__button--fullscreen",label:"TOGGLE_FULLSCREEN",html:'\n \n \n ',click:function(e){e.preventDefault(),L.element()?L.deactivate():L.activate(this.fancybox.$container)}},slideshow:{type:"button",class:"fancybox__button--slideshow",label:"TOGGLE_SLIDESHOW",html:'\n \n \n ',click:function(e){e.preventDefault(),this.Slideshow.toggle()}},zoom:{type:"button",class:"fancybox__button--zoom",label:"TOGGLE_ZOOM",html:'',click:function(e){e.preventDefault();const t=this.fancybox.getSlide().Panzoom;t&&t.toggleZoom()}},download:{type:"link",label:"DOWNLOAD",class:"fancybox__button--download",html:'',click:function(e){e.stopPropagation()}},thumbs:{type:"button",label:"TOGGLE_THUMBS",class:"fancybox__button--thumbs",html:'',click:function(e){e.stopPropagation();const t=this.fancybox.plugins.Thumbs;t&&t.toggle()}},close:{type:"button",label:"CLOSE",class:"fancybox__button--close",html:'',attr:{"data-fancybox-close":"",tabindex:0}}}};class z{onInit(){if(this.fancybox.option("Toolbar.autoEnable")){let e=!1;for(const t of this.fancybox.items)if("image"===t.type){e=!0;break}if(!e)return void(this.state="disabled")}for(const t of this.fancybox.option("Toolbar.display"))if("close"===(e(t)?t.id:t)){this.fancybox.options.closeButton=!1;break}}onPrepare(){const e=this.fancybox;if("init"===this.state&&(this.build(),this.update(),this.Slideshow=new k(e),!e.Carousel.prevPage&&(e.option("slideshow.autoStart")&&this.Slideshow.activate(),e.option("fullscreen.autoStart")&&!L.element())))try{L.activate(e.$container)}catch(e){}}onFsChange(){window.scrollTo(L.pageXOffset,L.pageYOffset)}onSettle(){const e=this.fancybox,t=this.Slideshow;t&&t.isActive()&&(e.getSlide().index!==e.Carousel.slides.length-1||e.option("infinite")?"done"===e.getSlide().state&&t.setTimer():t.deactivate())}onChange(){this.update(),this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer()}onDone(e,t){const i=this.Slideshow;t.index===e.getSlide().index&&(this.update(),i&&i.isActive()&&(e.option("infinite")||t.index!==e.Carousel.slides.length-1?i.setTimer():i.deactivate()))}onRefresh(e){e&&e.index!==this.fancybox.getSlide().index||(this.update(),!this.Slideshow||!this.Slideshow.isActive()||e&&"done"!==e.state||this.Slideshow.deactivate())}onKeydown(e,t,i){" "===t&&this.Slideshow&&(this.Slideshow.toggle(),i.preventDefault())}onClosing(){this.Slideshow&&this.Slideshow.deactivate(),document.removeEventListener("fullscreenchange",this.onFsChange)}createElement(e){let t;"div"===e.type?t=document.createElement("div"):(t=document.createElement("link"===e.type?"a":"button"),t.classList.add("carousel__button")),t.innerHTML=e.html,t.setAttribute("tabindex",e.tabindex||0),e.class&&t.classList.add(...e.class.split(" "));for(const i in e.attr)t.setAttribute(i,e.attr[i]);e.label&&t.setAttribute("title",this.fancybox.localize(`{{${e.label}}}`)),e.click&&t.addEventListener("click",e.click.bind(this)),"prev"===e.id&&t.setAttribute("data-fancybox-prev",""),"next"===e.id&&t.setAttribute("data-fancybox-next","");const i=t.querySelector("svg");return i&&(i.setAttribute("role","img"),i.setAttribute("tabindex","-1"),i.setAttribute("xmlns","http://www.w3.org/2000/svg")),t}build(){this.cleanup();const i=this.fancybox.option("Toolbar.items"),s=[{position:"left",items:[]},{position:"center",items:[]},{position:"right",items:[]}],n=this.fancybox.plugins.Thumbs;for(const o of this.fancybox.option("Toolbar.display")){let a,r;if(e(o)?(a=o.id,r=t({},i[a],o)):(a=o,r=i[a]),["counter","next","prev","slideshow"].includes(a)&&this.fancybox.items.length<2)continue;if("fullscreen"===a){if(!document.fullscreenEnabled||window.fullScreen)continue;document.addEventListener("fullscreenchange",this.onFsChange)}if("thumbs"===a&&(!n||"disabled"===n.state))continue;if(!r)continue;let l=r.position||"right",c=s.find((e=>e.position===l));c&&c.items.push(r)}const o=document.createElement("div");o.classList.add("fancybox__toolbar");for(const e of s)if(e.items.length){const t=document.createElement("div");t.classList.add("fancybox__toolbar__items"),t.classList.add(`fancybox__toolbar__items--${e.position}`);for(const i of e.items)t.appendChild(this.createElement(i));o.appendChild(t)}this.fancybox.$carousel.parentNode.insertBefore(o,this.fancybox.$carousel),this.$container=o}update(){const e=this.fancybox.getSlide(),t=e.index,i=this.fancybox.items.length,s=e.downloadSrc||("image"!==e.type||e.error?null:e.src);for(const e of this.fancybox.$container.querySelectorAll("a.fancybox__button--download"))s?(e.removeAttribute("disabled"),e.removeAttribute("tabindex"),e.setAttribute("href",s),e.setAttribute("download",s),e.setAttribute("target","_blank")):(e.setAttribute("disabled",""),e.setAttribute("tabindex",-1),e.removeAttribute("href"),e.removeAttribute("download"));const n=e.Panzoom,o=n&&n.option("maxScale")>n.option("baseScale");for(const e of this.fancybox.$container.querySelectorAll(".fancybox__button--zoom"))o?e.removeAttribute("disabled"):e.setAttribute("disabled","");for(const t of this.fancybox.$container.querySelectorAll("[data-fancybox-index]"))t.innerHTML=e.index+1;for(const e of this.fancybox.$container.querySelectorAll("[data-fancybox-count]"))e.innerHTML=i;if(!this.fancybox.option("infinite")){for(const e of this.fancybox.$container.querySelectorAll("[data-fancybox-prev]"))0===t?e.setAttribute("disabled",""):e.removeAttribute("disabled");for(const e of this.fancybox.$container.querySelectorAll("[data-fancybox-next]"))t===i-1?e.setAttribute("disabled",""):e.removeAttribute("disabled")}}cleanup(){this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer(),this.$container&&this.$container.remove(),this.$container=null}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events),this.cleanup()}constructor(e){this.fancybox=e,this.$container=null,this.state="init";for(const e of["onInit","onPrepare","onDone","onKeydown","onClosing","onChange","onSettle","onRefresh"])this[e]=this[e].bind(this);this.events={init:this.onInit,prepare:this.onPrepare,done:this.onDone,keydown:this.onKeydown,closing:this.onClosing,"Carousel.change":this.onChange,"Carousel.settle":this.onSettle,"Carousel.Panzoom.touchStart":()=>this.onRefresh(),"Image.startAnimation":(e,t)=>this.onRefresh(t),"Image.afterUpdate":(e,t)=>this.onRefresh(t)}}}z.defaults=M;const A={ScrollLock:class{onReady(){const e=window.visualViewport;e&&(this.viewport=e,this.startY=0,e.addEventListener("resize",this.onResize),this.updateViewport()),window.addEventListener("touchstart",this.onTouchstart,{passive:!1}),window.addEventListener("touchmove",this.onTouchmove,{passive:!1}),window.addEventListener("wheel",this.onWheel,{passive:!1})}onResize(){this.updateViewport()}updateViewport(){const e=this.fancybox,t=this.viewport,i=t.scale||1,s=e.$container;if(!s)return;let n="",o="",a="";i-1>.1&&(n=t.width*i+"px",o=t.height*i+"px",a=`translate3d(${t.offsetLeft}px, ${t.offsetTop}px, 0) scale(${1/i})`),s.style.width=n,s.style.height=o,s.style.transform=a}onTouchstart(e){this.startY=e.touches?e.touches[0].screenY:e.screenY}onTouchmove(e){const t=this.startY,i=window.innerWidth/window.document.documentElement.clientWidth;if(!e.cancelable)return;if(e.touches.length>1||1!==i)return;const n=s(e.composedPath()[0]);if(!n)return void e.preventDefault();const o=window.getComputedStyle(n),a=parseInt(o.getPropertyValue("height"),10),r=e.touches?e.touches[0].screenY:e.screenY,l=t<=r&&0===n.scrollTop,c=t>=r&&n.scrollHeight-n.scrollTop===a;(l||c)&&e.preventDefault()}onWheel(e){s(e.composedPath()[0])||e.preventDefault()}cleanup(){this.pendingUpdate&&(cancelAnimationFrame(this.pendingUpdate),this.pendingUpdate=null);const e=this.viewport;e&&(e.removeEventListener("resize",this.onResize),this.viewport=null),window.removeEventListener("touchstart",this.onTouchstart,!1),window.removeEventListener("touchmove",this.onTouchmove,!1),window.removeEventListener("wheel",this.onWheel,{passive:!1})}attach(){this.fancybox.on("initLayout",this.onReady)}detach(){this.fancybox.off("initLayout",this.onReady),this.cleanup()}constructor(e){this.fancybox=e,this.viewport=null,this.pendingUpdate=null;for(const e of["onReady","onResize","onTouchstart","onTouchmove"])this[e]=this[e].bind(this)}},Thumbs:C,Html:$,Toolbar:z,Image:T,Hash:P},O={startIndex:0,preload:1,infinite:!0,showClass:"fancybox-zoomInUp",hideClass:"fancybox-fadeOut",animated:!0,hideScrollbar:!0,parentEl:null,mainClass:null,autoFocus:!0,trapFocus:!0,placeFocusBack:!0,click:"close",closeButton:"inside",dragToClose:!0,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"next",ArrowDown:"prev",ArrowRight:"next",ArrowLeft:"prev"},template:{closeButton:'',spinner:'',main:null},l10n:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}},_=new Map;let I=0;class N extends c{option(e,...t){const i=this.getSlide();let s=i?i[e]:void 0;return void 0!==s?("function"==typeof s&&(s=s.call(this,this,...t)),s):super.option(e,...t)}bindHandlers(){for(const e of["onMousedown","onKeydown","onClick","onFocus","onCreateSlide","onSettle","onTouchMove","onTouchEnd","onTransform"])this[e]=this[e].bind(this)}attachEvents(){document.addEventListener("mousedown",this.onMousedown),document.addEventListener("keydown",this.onKeydown,!0),this.option("trapFocus")&&document.addEventListener("focus",this.onFocus,!0),this.$container.addEventListener("click",this.onClick)}detachEvents(){document.removeEventListener("mousedown",this.onMousedown),document.removeEventListener("keydown",this.onKeydown,!0),document.removeEventListener("focus",this.onFocus,!0),this.$container.removeEventListener("click",this.onClick)}initLayout(){this.$root=this.option("parentEl")||document.body;let e=this.option("template.main");e&&(this.$root.insertAdjacentHTML("beforeend",this.localize(e)),this.$container=this.$root.querySelector(".fancybox__container")),this.$container||(this.$container=document.createElement("div"),this.$root.appendChild(this.$container)),this.$container.onscroll=()=>(this.$container.scrollLeft=0,!1),Object.entries({class:"fancybox__container",role:"dialog",tabIndex:"-1","aria-modal":"true","aria-hidden":"true","aria-label":this.localize("{{MODAL}}")}).forEach((e=>this.$container.setAttribute(...e))),this.option("animated")&&this.$container.classList.add("is-animated"),this.$backdrop=this.$container.querySelector(".fancybox__backdrop"),this.$backdrop||(this.$backdrop=document.createElement("div"),this.$backdrop.classList.add("fancybox__backdrop"),this.$container.appendChild(this.$backdrop)),this.$carousel=this.$container.querySelector(".fancybox__carousel"),this.$carousel||(this.$carousel=document.createElement("div"),this.$carousel.classList.add("fancybox__carousel"),this.$container.appendChild(this.$carousel)),this.$container.Fancybox=this,this.id=this.$container.getAttribute("id"),this.id||(this.id=this.options.id||++I,this.$container.setAttribute("id","fancybox-"+this.id));const t=this.option("mainClass");return t&&this.$container.classList.add(...t.split(" ")),document.documentElement.classList.add("with-fancybox"),this.trigger("initLayout"),this}setItems(e){const t=[];for(const i of e){const e=i.$trigger;if(e){const t=e.dataset||{};i.src=t.src||e.getAttribute("href")||i.src,i.type=t.type||i.type,!i.src&&e instanceof HTMLImageElement&&(i.src=e.currentSrc||i.$trigger.src)}let s=i.$thumb;if(!s){let e=i.$trigger&&i.$trigger.origTarget;e&&(s=e instanceof HTMLImageElement?e:e.querySelector("img:not([aria-hidden])")),!s&&i.$trigger&&(s=i.$trigger instanceof HTMLImageElement?i.$trigger:i.$trigger.querySelector("img:not([aria-hidden])"))}i.$thumb=s||null;let n=i.thumb;!n&&s&&(n=s.currentSrc||s.src,!n&&s.dataset&&(n=s.dataset.lazySrc||s.dataset.src)),n||"image"!==i.type||(n=i.src),i.thumb=n||null,i.caption=i.caption||"",t.push(i)}this.items=t}initCarousel(){return this.Carousel=new v(this.$carousel,t(!0,{},{prefix:"",classNames:{viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"},textSelection:!0,preload:this.option("preload"),friction:.88,slides:this.items,initialPage:this.options.startIndex,slidesPerPage:1,infiniteX:this.option("infinite"),infiniteY:!0,l10n:this.option("l10n"),Dots:!1,Navigation:{classNames:{main:"fancybox__nav",button:"carousel__button",next:"is-next",prev:"is-prev"}},Panzoom:{textSelection:!0,panOnlyZoomed:()=>this.Carousel&&this.Carousel.pages&&this.Carousel.pages.length<2&&!this.option("dragToClose"),lockAxis:()=>{if(this.Carousel){let e="x";return this.option("dragToClose")&&(e+="y"),e}}},on:{"*":(e,...t)=>this.trigger(`Carousel.${e}`,...t),init:e=>this.Carousel=e,createSlide:this.onCreateSlide,settle:this.onSettle}},this.option("Carousel"))),this.option("dragToClose")&&this.Carousel.Panzoom.on({touchMove:this.onTouchMove,afterTransform:this.onTransform,touchEnd:this.onTouchEnd}),this.trigger("initCarousel"),this}onCreateSlide(e,t){let i=t.caption||"";if("function"==typeof this.options.caption&&(i=this.options.caption.call(this,this,this.Carousel,t)),"string"==typeof i&&i.length){const e=document.createElement("div"),s=`fancybox__caption_${this.id}_${t.index}`;e.className="fancybox__caption",e.innerHTML=i,e.setAttribute("id",s),t.$caption=t.$el.appendChild(e),t.$el.classList.add("has-caption"),t.$el.setAttribute("aria-labelledby",s)}}onSettle(){this.option("autoFocus")&&this.focus()}onFocus(e){this.focus(e)}onClick(e){if(e.defaultPrevented)return;let t=e.composedPath()[0];if(t.matches("[data-fancybox-close]"))return e.preventDefault(),void N.close(!1,e);if(t.matches("[data-fancybox-next]"))return e.preventDefault(),void N.next();if(t.matches("[data-fancybox-prev]"))return e.preventDefault(),void N.prev();if(!(t.matches(x)||document.activeElement.blur(),t.closest(".fancybox__content")||getSelection().toString().length||!1===this.trigger("click",e)))switch(this.option("click")){case"close":this.close();break;case"next":this.next()}}onTouchMove(){const e=this.getSlide().Panzoom;return!e||1===e.content.scale}onTouchEnd(e){const t=e.dragOffset.y;Math.abs(t)>=150||Math.abs(t)>=35&&e.dragOffset.time<350?(this.option("hideClass")&&(this.getSlide().hideClass="fancybox-throwOut"+(e.content.y<0?"Up":"Down")),this.close()):"y"===e.lockAxis&&e.panTo({y:0})}onTransform(e){if(this.$backdrop){const t=Math.abs(e.content.y),i=t<1?"":Math.max(.33,Math.min(1,1-t/e.content.fitHeight*1.5));this.$container.style.setProperty("--fancybox-ts",i?"0s":""),this.$container.style.setProperty("--fancybox-opacity",i)}}onMousedown(){"ready"===this.state&&document.body.classList.add("is-using-mouse")}onKeydown(e){if(N.getInstance().id!==this.id)return;document.body.classList.remove("is-using-mouse");const t=e.key,i=this.option("keyboard");if(!i||e.ctrlKey||e.altKey||e.shiftKey)return;const s=e.composedPath()[0],n=document.activeElement&&document.activeElement.classList,o=n&&n.contains("carousel__button");if("Escape"!==t&&!o&&(e.target.isContentEditable||-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(s.nodeName)))return;if(!1===this.trigger("keydown",t,e))return;const a=i[t];"function"==typeof this[a]&&this[a]()}getSlide(){const e=this.Carousel;if(!e)return null;const t=null===e.page?e.option("initialPage"):e.page,i=e.pages||[];return i.length&&i[t]?i[t].slides[0]:null}focus(e){if(N.ignoreFocusChange)return;if(["init","closing","customClosing","destroy"].indexOf(this.state)>-1)return;const t=this.$container,i=this.getSlide(),s="done"===i.state?i.$el:null;if(s&&s.contains(document.activeElement))return;e&&e.preventDefault(),N.ignoreFocusChange=!0;const n=Array.from(t.querySelectorAll(x));let o,a=[];for(let e of n){const t=e.offsetParent,i=s&&s.contains(e),n=!this.Carousel.$viewport.contains(e);t&&(i||n)?(a.push(e),void 0!==e.dataset.origTabindex&&(e.tabIndex=e.dataset.origTabindex,e.removeAttribute("data-orig-tabindex")),(e.hasAttribute("autoFocus")||!o&&i&&!e.classList.contains("carousel__button"))&&(o=e)):(e.dataset.origTabindex=void 0===e.dataset.origTabindex?e.getAttribute("tabindex"):e.dataset.origTabindex,e.tabIndex=-1)}e?a.indexOf(e.target)>-1?this.lastFocus=e.target:this.lastFocus===t?w(a[a.length-1]):w(t):this.option("autoFocus")&&o?w(o):a.indexOf(document.activeElement)<0&&w(t),this.lastFocus=document.activeElement,N.ignoreFocusChange=!1}hideScrollbar(){if(!b)return;const e=window.innerWidth-document.documentElement.getBoundingClientRect().width,t="fancybox-style-noscroll";let i=document.getElementById(t);i||e>0&&(i=document.createElement("style"),i.id=t,i.type="text/css",i.innerHTML=`.compensate-for-scrollbar {padding-right: ${e}px;}`,document.getElementsByTagName("head")[0].appendChild(i),document.body.classList.add("compensate-for-scrollbar"))}revealScrollbar(){document.body.classList.remove("compensate-for-scrollbar");const e=document.getElementById("fancybox-style-noscroll");e&&e.remove()}clearContent(e){this.Carousel.trigger("removeSlide",e),e.$content&&(e.$content.remove(),e.$content=null),e.$closeButton&&(e.$closeButton.remove(),e.$closeButton=null),e._className&&e.$el.classList.remove(e._className)}setContent(e,t,i={}){let s;const n=e.$el;if(t instanceof HTMLElement)["img","iframe","video","audio"].indexOf(t.nodeName.toLowerCase())>-1?(s=document.createElement("div"),s.appendChild(t)):s=t;else{const e=document.createRange().createContextualFragment(t);s=document.createElement("div"),s.appendChild(e)}if(e.filter&&!e.error&&(s=s.querySelector(e.filter)),s instanceof Element)return e._className=`has-${i.suffix||e.type||"unknown"}`,n.classList.add(e._className),s.classList.add("fancybox__content"),"none"!==s.style.display&&"none"!==getComputedStyle(s).getPropertyValue("display")||(s.style.display=e.display||this.option("defaultDisplay")||"flex"),e.id&&s.setAttribute("id",e.id),e.$content=s,n.prepend(s),this.manageCloseButton(e),"loading"!==e.state&&this.revealContent(e),s;this.setError(e,"{{ELEMENT_NOT_FOUND}}")}manageCloseButton(e){const t=void 0===e.closeButton?this.option("closeButton"):e.closeButton;if(!t||"top"===t&&this.$closeButton)return;const i=document.createElement("button");i.classList.add("carousel__button","is-close"),i.setAttribute("title",this.options.l10n.CLOSE),i.innerHTML=this.option("template.closeButton"),i.addEventListener("click",(e=>this.close(e))),"inside"===t?(e.$closeButton&&e.$closeButton.remove(),e.$closeButton=e.$content.appendChild(i)):this.$closeButton=this.$container.insertBefore(i,this.$container.firstChild)}revealContent(e){this.trigger("reveal",e),e.$content.style.visibility="";let t=!1;e.error||"loading"===e.state||null!==this.Carousel.prevPage||e.index!==this.options.startIndex||(t=void 0===e.showClass?this.option("showClass"):e.showClass),t?(e.state="animating",this.animateCSS(e.$content,t,(()=>{this.done(e)}))):this.done(e)}animateCSS(e,t,i){if(e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!0,cancelable:!0})),!e||!t)return void("function"==typeof i&&i());const s=function(n){n.currentTarget===this&&(e.removeEventListener("animationend",s),i&&i(),e.classList.remove(t))};e.addEventListener("animationend",s),e.classList.add(t)}done(e){e.state="done",this.trigger("done",e);const t=this.getSlide();t&&e.index===t.index&&this.option("autoFocus")&&this.focus()}setError(e,t){e.error=t,this.hideLoading(e),this.clearContent(e);const i=document.createElement("div");i.classList.add("fancybox-error"),i.innerHTML=this.localize(t||"

{{ERROR}}

"),this.setContent(e,i,{suffix:"error"})}showLoading(e){e.state="loading",e.$el.classList.add("is-loading");let t=e.$el.querySelector(".fancybox__spinner");t||(t=document.createElement("div"),t.classList.add("fancybox__spinner"),t.innerHTML=this.option("template.spinner"),t.addEventListener("click",(()=>{this.Carousel.Panzoom.velocity||this.close()})),e.$el.prepend(t))}hideLoading(e){const t=e.$el&&e.$el.querySelector(".fancybox__spinner");t&&(t.remove(),e.$el.classList.remove("is-loading")),"loading"===e.state&&(this.trigger("load",e),e.state="ready")}next(){const e=this.Carousel;e&&e.pages.length>1&&e.slideNext()}prev(){const e=this.Carousel;e&&e.pages.length>1&&e.slidePrev()}jumpTo(...e){this.Carousel&&this.Carousel.slideTo(...e)}close(e){if(e&&e.preventDefault(),["closing","customClosing","destroy"].includes(this.state))return;if(!1===this.trigger("shouldClose",e))return;if(this.state="closing",this.Carousel.Panzoom.destroy(),this.detachEvents(),this.trigger("closing",e),"destroy"===this.state)return;this.$container.setAttribute("aria-hidden","true"),this.$container.classList.add("is-closing");const t=this.getSlide();if(this.Carousel.slides.forEach((e=>{e.$content&&e.index!==t.index&&this.Carousel.trigger("removeSlide",e)})),"closing"===this.state){const e=void 0===t.hideClass?this.option("hideClass"):t.hideClass;this.animateCSS(t.$content,e,(()=>{this.destroy()}),!0)}}destroy(){if("destroy"===this.state)return;this.state="destroy",this.trigger("destroy");const e=this.option("placeFocusBack")?this.getSlide().$trigger:null;this.Carousel.destroy(),this.detachPlugins(),this.Carousel=null,this.options={},this.events={},this.$container.remove(),this.$container=this.$backdrop=this.$carousel=null,e&&w(e),_.delete(this.id);const t=N.getInstance();t?t.focus():(document.documentElement.classList.remove("with-fancybox"),document.body.classList.remove("is-using-mouse"),this.revealScrollbar())}static show(e,t={}){return new N(e,t)}static fromEvent(e,t={}){if(e.defaultPrevented)return;if(e.button&&0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey)return;const i=e.composedPath()[0];let s,n,o,a=i;if((a.matches("[data-fancybox-trigger]")||(a=a.closest("[data-fancybox-trigger]")))&&(s=a&&a.dataset&&a.dataset.fancyboxTrigger),s){const e=document.querySelectorAll(`[data-fancybox="${s}"]`),t=parseInt(a.dataset.fancyboxIndex,10)||0;a=e.length?e[t]:a}a||(a=i),Array.from(N.openers.keys()).reverse().some((t=>{o=a;let i=!1;try{o instanceof Element&&("string"==typeof t||t instanceof String)&&(i=o.matches(t)||(o=o.closest(t)))}catch(e){}return!!i&&(e.preventDefault(),n=t,!0)}));let r=!1;if(n){t.event=e,t.target=o,o.origTarget=i,r=N.fromOpener(n,t);const s=N.getInstance();s&&"ready"===s.state&&e.detail&&document.body.classList.add("is-using-mouse")}return r}static fromOpener(e,i={}){let s=[],n=i.startIndex||0,o=i.target||null;const a=void 0!==(i=t({},i,N.openers.get(e))).groupAll&&i.groupAll,r=void 0===i.groupAttr?"data-fancybox":i.groupAttr,l=r&&o?o.getAttribute(`${r}`):"";if(!o||l||a){const t=i.root||(o?o.getRootNode():document.body);s=[].slice.call(t.querySelectorAll(e))}if(o&&!a&&(s=l?s.filter((e=>e.getAttribute(`${r}`)===l)):[o]),!s.length)return!1;const c=N.getInstance();return!(c&&s.indexOf(c.options.$trigger)>-1)&&(n=o?s.indexOf(o):n,s=s.map((function(e){const t=["false","0","no","null","undefined"],i=["true","1","yes"],s=Object.assign({},e.dataset),n={};for(let[e,o]of Object.entries(s))if("fancybox"!==e)if("width"===e||"height"===e)n[`_${e}`]=o;else if("string"==typeof o||o instanceof String)if(t.indexOf(o)>-1)n[e]=!1;else if(i.indexOf(n[e])>-1)n[e]=!0;else try{n[e]=JSON.parse(o)}catch(t){n[e]=o}else n[e]=o;return e instanceof Element&&(n.$trigger=e),n})),new N(s,t({},i,{startIndex:n,$trigger:o})))}static bind(e,t={}){function i(){document.body.addEventListener("click",N.fromEvent,!1)}b&&(N.openers.size||(/complete|interactive|loaded/.test(document.readyState)?i():document.addEventListener("DOMContentLoaded",i)),N.openers.set(e,t))}static unbind(e){N.openers.delete(e),N.openers.size||N.destroy()}static destroy(){let e;for(;e=N.getInstance();)e.destroy();N.openers=new Map,document.body.removeEventListener("click",N.fromEvent,!1)}static getInstance(e){return e?_.get(e):Array.from(_.values()).reverse().find((e=>!["closing","customClosing","destroy"].includes(e.state)&&e))||null}static close(e=!0,t){if(e)for(const e of _.values())e.close(t);else{const e=N.getInstance();e&&e.close(t)}}static next(){const e=N.getInstance();e&&e.next()}static prev(){const e=N.getInstance();e&&e.prev()}constructor(e,i={}){e=e.map((e=>(e.width&&(e._width=e.width),e.height&&(e._height=e.height),e))),super(t(!0,{},O,i)),this.bindHandlers(),this.state="init",this.setItems(e),this.attachPlugins(N.Plugins),this.trigger("init"),!0===this.option("hideScrollbar")&&this.hideScrollbar(),this.initLayout(),this.initCarousel(),this.attachEvents(),_.set(this.id,this),this.trigger("prepare"),this.state="ready",this.trigger("ready"),this.$container.setAttribute("aria-hidden","false"),this.option("trapFocus")&&this.focus()}}N.version="4.0.26",N.defaults=O,N.openers=new Map,N.Plugins=A,N.bind("[data-fancybox]");for(const[e,t]of Object.entries(N.Plugins||{}))"function"==typeof t.create&&t.create(N);var B={};!function(e,t){var i=function(e,t,i){"use strict";var s,n;if(function(){var t,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in n=e.lazySizesConfig||e.lazysizesConfig||{},i)t in n||(n[t]=i[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:n,noSupport:!0};var o=t.documentElement,a=e.HTMLPictureElement,r="addEventListener",l="getAttribute",c=e[r].bind(e),d=e.setTimeout,h=e.requestAnimationFrame||d,u=e.requestIdleCallback,p=/^picture$/i,f=["load","error","lazyincluded","_lazyloaded"],g={},m=Array.prototype.forEach,v=function(e,t){return g[t]||(g[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),g[t].test(e[l]("class")||"")&&g[t]},b=function(e,t){v(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},y=function(e,t){var i;(i=v(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(i," "))},x=function(e,t,i){var s=i?r:"removeEventListener";i&&x(e,t),f.forEach((function(i){e[s](i,t)}))},w=function(e,i,n,o,a){var r=t.createEvent("Event");return n||(n={}),n.instance=s,r.initEvent(i,!o,!a),r.detail=n,e.dispatchEvent(r),r},C=function(t,i){var s;!a&&(s=e.picturefill||n.pf)?(i&&i.src&&!t[l]("srcset")&&t.setAttribute("srcset",i.src),s({reevaluate:!0,elements:[t]})):i&&i.src&&(t.src=i.src)},S=function(e,t){return(getComputedStyle(e,null)||{})[t]},E=function(e,t,i){for(i=i||e.offsetWidth;i49?function(){u(r,{timeout:a}),a!==n.ricTimeout&&(a=n.ricTimeout)}:T((function(){d(r)}),!0);return function(e){var n;(e=!0===e)&&(a=33),t||(t=!0,(n=o-(i.now()-s))<0&&(n=0),e||n<9?l():d(l,n))}},L=function(e){var t,s,n=99,o=function(){t=null,e()},a=function(){var e=i.now()-s;e0)&&"visible"!=S(n,"overflow")&&(s=n.getBoundingClientRect(),a=V>s.left&&qs.top-1&&G500&&o.clientWidth>500?500:370:n.expand,s._defEx=f,g=f*n.expFactor,m=n.hFac,X=null,J2&&F>2&&!t.hidden?(J=g,ee=0):J=F>1&&ee>1&&Q<6?f:K),p!==d&&(H=innerWidth+d*m,W=innerHeight+d,h=-1*d,p=d),a=v[i].getBoundingClientRect(),(j=a.bottom)>=h&&(G=a.top)<=W&&(V=a.right)>=h*m&&(q=a.left)<=H&&(j||V||q||G)&&(n.loadHidden||ie(v[i]))&&(B&&Q<3&&!u&&(F<3||ee<4)||se(v[i],d))){if(ue(v[i]),c=!0,Q>9)break}else!c&&B&&!r&&Q<4&&ee<4&&F>2&&(N[0]||n.preloadAfterLoad)&&(N[0]||!u&&(j||V||q||G||"auto"!=v[i][l](n.sizesAttr)))&&(r=N[0]||v[i]);r&&!c&&ue(r)}},oe=P(ne),ae=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),b(t,n.loadedClass),y(t,n.loadingClass),x(t,le),w(t,"lazyloaded"))},re=T(ae),le=function(e){re({target:e.target})},ce=function(e,t){var i=e.getAttribute("data-load-mode")||n.iframeLoadMode;0==i?e.contentWindow.location.replace(t):1==i&&(e.src=t)},de=function(e){var t,i=e[l](n.srcsetAttr);(t=n.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),i&&e.setAttribute("srcset",i)},he=T((function(e,t,i,s,o){var a,r,c,h,u,f;(u=w(e,"lazybeforeunveil",t)).defaultPrevented||(s&&(i?b(e,n.autosizesClass):e.setAttribute("sizes",s)),r=e[l](n.srcsetAttr),a=e[l](n.srcAttr),o&&(h=(c=e.parentNode)&&p.test(c.nodeName||"")),f=t.firesLoad||"src"in e&&(r||a||h),u={target:e},b(e,n.loadingClass),f&&(clearTimeout(D),D=d(te,2500),x(e,le,!0)),h&&m.call(c.getElementsByTagName("source"),de),r?e.setAttribute("srcset",r):a&&!h&&(U.test(e.nodeName)?ce(e,a):e.src=a),o&&(r||h)&&C(e,{src:a})),e._lazyRace&&delete e._lazyRace,y(e,n.lazyClass),$((function(){var t=e.complete&&e.naturalWidth>1;f&&!t||(t&&b(e,n.fastLoadedClass),ae(u),e._lazyCache=!0,d((function(){"_lazyCache"in e&&delete e._lazyCache}),9)),"lazy"==e.loading&&Q--}),!0)})),ue=function(e){if(!e._lazyRace){var t,i=Y.test(e.nodeName),s=i&&(e[l](n.sizesAttr)||e[l]("sizes")),o="auto"==s;(!o&&B||!i||!e[l]("src")&&!e.srcset||e.complete||v(e,n.errorClass)||!v(e,n.lazyClass))&&(t=w(e,"lazyunveilread").detail,o&&M.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,Q++,he(e,t,o,s,i))}},pe=L((function(){n.loadMode=3,oe()})),fe=function(){3==n.loadMode&&(n.loadMode=2),pe()},ge=function(){B||(i.now()-R<999?d(ge,999):(B=!0,n.loadMode=3,oe(),c("scroll",fe,!0)))},{_:function(){R=i.now(),s.elements=t.getElementsByClassName(n.lazyClass),N=t.getElementsByClassName(n.lazyClass+" "+n.preloadClass),c("scroll",oe,!0),c("resize",oe,!0),c("pageshow",(function(e){if(e.persisted){var i=t.querySelectorAll("."+n.loadingClass);i.length&&i.forEach&&h((function(){i.forEach((function(e){e.complete&&ue(e)}))}))}})),e.MutationObserver?new MutationObserver(oe).observe(o,{childList:!0,subtree:!0,attributes:!0}):(o[r]("DOMNodeInserted",oe,!0),o[r]("DOMAttrModified",oe,!0),setInterval(oe,999)),c("hashchange",oe,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[r](e,oe,!0)})),/d$|^c/.test(t.readyState)?ge():(c("load",ge),t[r]("DOMContentLoaded",oe),d(ge,2e4)),s.elements.length?(ne(),$._lsFlush()):oe()},checkElems:oe,unveil:ue,_aLSL:fe}),M=(O=T((function(e,t,i,s){var n,o,a;if(e._lazysizesWidth=s,s+="px",e.setAttribute("sizes",s),p.test(t.nodeName||""))for(o=0,a=(n=t.getElementsByTagName("source")).length;o{void 0===e[i]?e[i]=t[i]:D(t[i])&&D(e[i])&&Object.keys(t[i]).length>0&&F(e[i],t[i])}))}const R={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function H(){const e="undefined"!=typeof document?document:{};return F(e,R),e}const W={document:R,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function G(){const e="undefined"!=typeof window?window:{};return F(e,W),e}class q extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function V(e=[]){const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...V(e)):t.push(e)})),t}function j(e,t){return Array.prototype.filter.call(e,t)}function X(e,t){const i=G(),s=H();let n=[];if(!t&&e instanceof q)return e;if(!e)return new q(n);if("string"==typeof e){const i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let e="div";0===i.indexOf("e.split(" "))));return this.forEach((e=>{e.classList.add(...t)})),this},removeClass:function(...e){const t=V(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...t)})),this},hasClass:function(...e){const t=V(e.map((e=>e.split(" "))));return j(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(...e){const t=V(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let i=0;i=0;e-=1){const i=a[e];s&&i.listener===s||s&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===s?(o.removeEventListener(t,i.proxyListener,n),a.splice(e,1)):s||(o.removeEventListener(t,i.proxyListener,n),a.splice(e,1))}}}return this},trigger:function(...e){const t=G(),i=e[0].split(" "),s=e[1];for(let n=0;nt>0)),n.dispatchEvent(i),n.dom7EventData=[],delete n.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function i(s){s.target===this&&(e.call(this,s),t.off("transitionend",i))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=G();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=G(),t=H(),i=this[0],s=i.getBoundingClientRect(),n=t.body,o=i.clientTop||n.clientTop||0,a=i.clientLeft||n.clientLeft||0,r=i===e?e.scrollY:i.scrollTop,l=i===e?e.scrollX:i.scrollLeft;return{top:s.top+r-o,left:s.left+l-a}}return null},css:function(e,t){const i=G();let s;if(1===arguments.length){if("string"!=typeof e){for(s=0;s{e.apply(t,[t,i])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;tt-1)return X([]);if(e<0){const i=t+e;return X(i<0?[]:[this[i]])}return X([this[e]])},append:function(...e){let t;const i=H();for(let s=0;s=0;s-=1)this[i].insertBefore(n.childNodes[s],this[i].childNodes[0])}else if(e instanceof q)for(s=0;s0?e?this[0].nextElementSibling&&X(this[0].nextElementSibling).is(e)?X([this[0].nextElementSibling]):X([]):this[0].nextElementSibling?X([this[0].nextElementSibling]):X([]):X([])},nextAll:function(e){const t=[];let i=this[0];if(!i)return X([]);for(;i.nextElementSibling;){const s=i.nextElementSibling;e?X(s).is(e)&&t.push(s):t.push(s),i=s}return X(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&X(t.previousElementSibling).is(e)?X([t.previousElementSibling]):X([]):t.previousElementSibling?X([t.previousElementSibling]):X([])}return X([])},prevAll:function(e){const t=[];let i=this[0];if(!i)return X([]);for(;i.previousElementSibling;){const s=i.previousElementSibling;e?X(s).is(e)&&t.push(s):t.push(s),i=s}return X(t)},parent:function(e){const t=[];for(let i=0;i{Object.defineProperty(X.fn,e,{value:Z[e],writable:!0})}));var K=X;function J(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function Q(){return Date.now()}function ee(e,t){void 0===t&&(t="x");const i=G();let s,n,o;const a=function(e){const t=G();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new i.WebKitCSSMatrix("none"===n?"":n)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=o.toString().split(",")),"x"===t&&(n=i.WebKitCSSMatrix?o.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(n=i.WebKitCSSMatrix?o.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}function te(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function ie(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function se(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let i=1;it.indexOf(e)<0));for(let t=0,n=i.length;to?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,h=()=>{a=(new Date).getTime(),null===r&&(r=a);const e=Math.max(Math.min((a-r)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let u=o+c*(i-o);if(d(u,i)&&(u=i),t.wrapperEl.scrollTo({[s]:u}),d(u,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[s]:u})})),void n.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=n.requestAnimationFrame(h)};h()}let ae,re,le;function ce(){return ae||(ae=function(){const e=G(),t=H();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const i=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),ae}function de(e){return void 0===e&&(e={}),re||(re=function(e){let{userAgent:t}=void 0===e?{}:e;const i=ce(),s=G(),n=s.navigator.platform,o=t||s.navigator.userAgent,a={ios:!1,android:!1},r=s.screen.width,l=s.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const h=o.match(/(iPod)(.*OS\s([\d_]+))?/),u=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===n;let f="MacIntel"===n;return!d&&f&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${r}x${l}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),f=!1),c&&!p&&(a.os="android",a.android=!0),(d||u||h)&&(a.os="ios",a.ios=!0),a}(e)),re}function he(){return le||(le=function(){const e=G();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),le}var ue={on(e,t,i){const s=this;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach((e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)})),s},once(e,t,i){const s=this;if("function"!=typeof t)return s;function n(){s.off(e,n),n.__emitterProxy&&delete n.__emitterProxy;for(var i=arguments.length,o=new Array(i),a=0;a=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((s,n)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(n,1)}))})),i):i},emit(){const e=this;if(!e.eventsListeners)return e;let t,i,s;for(var n=arguments.length,o=new Array(n),a=0;a{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(s,[t,...i])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(s,i)}))})),e}};function pe(e){let{swiper:t,runCallbacks:i,direction:s,step:n}=e;const{activeIndex:o,previousIndex:a}=t;let r=s;if(r||(r=o>a?"next":o0)return;if(n.isTouched&&n.isMoved)return;!!o.noSwipingClass&&""!==o.noSwipingClass&&l.target&&l.target.shadowRoot&&e.path&&e.path[0]&&(c=K(e.path[0]));const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!(!l.target||!l.target.shadowRoot);if(o.noSwiping&&(h?function(e,t){return void 0===t&&(t=this),function t(i){return i&&i!==H()&&i!==G()?(i.assignedSlot&&(i=i.assignedSlot),i.closest(e)||t(i.getRootNode().host)):null}(t)}(d,l.target):c.closest(d)[0]))return void(t.allowClick=!0);if(o.swipeHandler&&!c.closest(o.swipeHandler)[0])return;a.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,a.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;const u=a.currentX,p=a.currentY,f=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,g=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(f&&(u<=g||u>=s.innerWidth-g)){if("prevent"!==f)return;e.preventDefault()}if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=u,a.startY=p,n.touchStartTime=Q(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==l.type){let e=!0;c.is(n.focusableElements)&&(e=!1,"SELECT"===c[0].nodeName&&(n.isTouched=!1)),i.activeElement&&K(i.activeElement).is(n.focusableElements)&&i.activeElement!==c[0]&&i.activeElement.blur();const s=e&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!s||c[0].isContentEditable||l.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function ge(e){const t=H(),i=this,s=i.touchEventsData,{params:n,touches:o,rtlTranslate:a,enabled:r}=i;if(!r)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!s.isTouched)return void(s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",l));if(s.isTouchEvent&&"touchmove"!==l.type)return;const c="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),d="touchmove"===l.type?c.pageX:l.pageX,h="touchmove"===l.type?c.pageY:l.pageY;if(l.preventedByNestedSwiper)return o.startX=d,void(o.startY=h);if(!i.allowTouchMove)return K(l.target).is(s.focusableElements)||(i.allowClick=!1),void(s.isTouched&&(Object.assign(o,{startX:d,startY:h,currentX:d,currentY:h}),s.touchStartTime=Q()));if(s.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(i.isVertical()){if(ho.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(do.startX&&i.translate>=i.minTranslate())return;if(s.isTouchEvent&&t.activeElement&&l.target===t.activeElement&&K(l.target).is(s.focusableElements))return s.isMoved=!0,void(i.allowClick=!1);if(s.allowTouchCallbacks&&i.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=d,o.currentY=h;const u=o.currentX-o.startX,p=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(u**2+p**2)=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(u))/Math.PI,s.isScrolling=i.isHorizontal()?e>n.touchAngle:90-e>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",l),void 0===s.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(s.startMoving=!0)),s.isScrolling)return void(s.isTouched=!1);if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation(),s.isMoved||(n.loop&&!n.cssMode&&i.loopFix(),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,!n.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",l)),i.emit("sliderMove",l),s.isMoved=!0;let f=i.isHorizontal()?u:p;o.diff=f,f*=n.touchRatio,a&&(f=-f),i.swipeDirection=f>0?"prev":"next",s.currentTranslate=f+s.startTranslate;let g=!0,m=n.resistanceRatio;if(n.touchReleaseOnEdges&&(m=0),f>0&&s.currentTranslate>i.minTranslate()?(g=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+f)**m)):f<0&&s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),n.threshold>0){if(!(Math.abs(f)>n.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,s.currentTranslate=s.startTranslate,void(o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function me(e){const t=this,i=t.touchEventsData,{params:s,touches:n,rtlTranslate:o,slidesGrid:a,enabled:r}=t;if(!r)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=Q(),d=c-i.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),d<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(i.lastClickTime=Q(),J((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===n.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let h;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,h=s.followFinger?o?t.translate:-t.translate:-i.currentTranslate,s.cssMode)return;if(t.params.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});let u=0,p=t.slidesSizesGrid[0];for(let e=0;e=a[e]&&h=a[e]&&(u=e,p=a[a.length-1]-a[a.length-2])}let f=null,g=null;s.rewind&&(t.isBeginning?g=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const m=(h-a[u])/p,v=us.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(m>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?f:u+v):t.slideTo(u)),"prev"===t.swipeDirection&&(m>1-s.longSwipesRatio?t.slideTo(u+v):null!==g&&m<0&&Math.abs(m)>s.longSwipesRatio?t.slideTo(g):t.slideTo(u))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(u+v):t.slideTo(u):("next"===t.swipeDirection&&t.slideTo(null!==f?f:u+v),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:u))}}function ve(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:o}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function be(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function ye(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;let n;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();n=0===o?0:(e.translate-e.minTranslate())/o,n!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let xe=!1;function we(){}const Ce=(e,t)=>{const i=H(),{params:s,touchEvents:n,el:o,wrapperEl:a,device:r,support:l}=e,c=!!s.nested,d="on"===t?"addEventListener":"removeEventListener",h=t;if(l.touch){const t=!("touchstart"!==n.start||!l.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};o[d](n.start,e.onTouchStart,t),o[d](n.move,e.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),o[d](n.end,e.onTouchEnd,t),n.cancel&&o[d](n.cancel,e.onTouchEnd,t)}else o[d](n.start,e.onTouchStart,!1),i[d](n.move,e.onTouchMove,c),i[d](n.end,e.onTouchEnd,!1);(s.preventClicks||s.preventClicksPropagation)&&o[d]("click",e.onClick,!0),s.cssMode&&a[d]("scroll",e.onScroll),s.updateOnWindowResize?e[h](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",ve,!0):e[h]("observerUpdate",ve,!0)};const Se=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Ee={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function $e(e,t){return function(i){void 0===i&&(i={});const s=Object.keys(i)[0],n=i[s];"object"==typeof n&&null!==n?(["navigation","pagination","scrollbar"].indexOf(s)>=0&&!0===e[s]&&(e[s]={auto:!0}),s in e&&"enabled"in n?(!0===e[s]&&(e[s]={enabled:!0}),"object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),se(t,i)):se(t,i)):se(t,i)}}const Te={eventsEmitter:ue,update:{updateSize:function(){const e=this;let t,i;const s=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s[0].clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s[0].clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(s.css("padding-left")||0,10)-parseInt(s.css("padding-right")||0,10),i=i-parseInt(s.css("padding-top")||0,10)-parseInt(s.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}const s=e.params,{$wrapperEl:n,size:o,rtlTranslate:a,wrongRTL:r}=e,l=e.virtual&&s.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=n.children(`.${e.params.slideClass}`),h=l?e.virtual.slides.length:d.length;let u=[];const p=[],f=[];let g=s.slidesOffsetBefore;"function"==typeof g&&(g=s.slidesOffsetBefore.call(e));let m=s.slidesOffsetAfter;"function"==typeof m&&(m=s.slidesOffsetAfter.call(e));const v=e.snapGrid.length,b=e.slidesGrid.length;let y=s.spaceBetween,x=-g,w=0,C=0;if(void 0===o)return;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*o),e.virtualSize=-y,a?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),s.centeredSlides&&s.cssMode&&(ne(e.wrapperEl,"--swiper-centered-offset-before",""),ne(e.wrapperEl,"--swiper-centered-offset-after",""));const S=s.grid&&s.grid.rows>1&&e.grid;let E;S&&e.grid.initSlides(h);const $="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let n=0;n1&&u.push(e.virtualSize-o)}if(0===u.length&&(u=[0]),0!==s.spaceBetween){const i=e.isHorizontal()&&a?"marginLeft":t("marginRight");d.filter(((e,t)=>!s.cssMode||t!==d.length-1)).css({[i]:`${y}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)})),e-=s.spaceBetween;const t=e-o;u=u.map((e=>e<0?-g:e>t?t+m:e))}if(s.centerInsufficientSlides){let e=0;if(f.forEach((t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)})),e-=s.spaceBetween,e{u[i]=e-t})),p.forEach(((e,i)=>{p[i]=e+t}))}}if(Object.assign(e,{slides:d,snapGrid:u,slidesGrid:p,slidesSizesGrid:f}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){ne(e.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),ne(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(h!==c&&e.emit("slidesLengthChange"),u.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==b&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),!(l||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,i=e.$el.hasClass(t);h<=s.maxBackfaceHiddenSlides?i||e.$el.addClass(t):i&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>s?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)t.visibleSlides.each((e=>{i.push(e)}));else for(n=0;nt.slides.length&&!s)break;i.push(a(e))}else i.push(a(t.activeIndex));for(n=0;no?e:o}(o||0===o)&&t.$wrapperEl.css("height",`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let i=0;i=0&&h1&&u<=t.size||h<=0&&u>=t.size)&&(t.visibleSlides.push(r),t.visibleSlidesIndexes.push(e),s.eq(e).addClass(i.slideVisibleClass)),r.progress=n?-c:c,r.originalProgress=n?-d:d}t.visibleSlides=K(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:o,isEnd:a}=t;const r=o,l=a;0===s?(n=0,o=!0,a=!0):(n=(e-t.minTranslate())/s,o=n<=0,a=n>=1),Object.assign(t,{progress:n,isBeginning:o,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),o&&!r&&t.emit("reachBeginning toEdge"),a&&!l&&t.emit("reachEnd toEdge"),(r&&!o||l&&!a)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,$wrapperEl:s,activeIndex:n,realIndex:o}=e,a=e.virtual&&i.virtual.enabled;let r;t.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),r=a?e.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${n}"]`):t.eq(n),r.addClass(i.slideActiveClass),i.loop&&(r.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass));let l=r.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));let c=r.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=t.eq(-1),c.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:s,snapGrid:n,params:o,activeIndex:a,realIndex:r,snapIndex:l}=t;let c,d=e;if(void 0===d){for(let e=0;e=s[e]&&i=s[e]&&i=s[e]&&(d=e);o.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(n.indexOf(i)>=0)c=n.indexOf(i);else{const e=Math.min(o.slidesPerGroupSkip,d);c=e+Math.floor((d-e)/o.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),d===a)return void(c!==l&&(t.snapIndex=c,t.emit("snapIndexChange")));const h=parseInt(t.slides.eq(d).attr("data-swiper-slide-index")||d,10);Object.assign(t,{snapIndex:c,realIndex:h,previousIndex:a,activeIndex:d}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),r!==h&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,i=t.params,s=K(e).closest(`.${i.slideClass}`)[0];let n,o=!1;if(s)for(let e=0;el?l:s&&e=l.length&&(m=l.length-1),(h||r.initialSlide||0)===(d||0)&&i&&o.emit("beforeSlideChangeStart");const v=-l[m];if(o.updateProgress(v),r.normalizeSlideIndex)for(let e=0;e=i&&t=i&&t=i&&(a=e)}if(o.initialized&&a!==h){if(!o.allowSlideNext&&vo.translate&&v>o.maxTranslate()&&(h||0)!==a)return!1}let b;if(b=a>h?"next":a{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1}))}else{if(!o.support.smoothScroll)return oe({swiper:o,targetPosition:i,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(v),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,s),o.transitionStart(i,b),0===t?o.transitionEnd(i,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,b))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);const n=this;let o=e;return n.params.loop&&(o+=n.loopedSlides),n.slideTo(o,t,i,s)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const s=this,{animating:n,enabled:o,params:a}=s;if(!o)return s;let r=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(r=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndexd(e)));let p=a[u.indexOf(h)-1];if(void 0===p&&n.cssMode){let e;a.forEach(((t,i)=>{h>=t&&(e=i)})),void 0!==e&&(p=a[e>0?e-1:e])}let f=0;if(void 0!==p&&(f=r.indexOf(p),f<0&&(f=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(f=f-s.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return s.slideTo(f,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);const n=this;let o=n.activeIndex;const a=Math.min(n.params.slidesPerGroupSkip,o),r=a+Math.floor((o-a)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[r]){const e=n.snapGrid[r];l-e>(n.snapGrid[r+1]-e)*s&&(o+=n.params.slidesPerGroup)}else{const e=n.snapGrid[r-1];l-e<=(n.snapGrid[r]-e)*s&&(o-=n.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,n.slidesGrid.length-1),n.slideTo(o,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let n,o=e.clickedIndex;if(t.loop){if(e.animating)return;n=parseInt(K(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?oe.slides.length-e.loopedSlides+s/2?(e.loopFix(),o=i.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),J((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-s?(e.loopFix(),o=i.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),J((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}},loop:{loopCreate:function(){const e=this,t=H(),{params:i,$wrapperEl:s}=e,n=s.children().length>0?K(s.children()[0].parentNode):s;n.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let o=n.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const e=i.slidesPerGroup-o.length%i.slidesPerGroup;if(e!==i.slidesPerGroup){for(let s=0;so.length&&(e.loopedSlides=o.length);const a=[],r=[];o.each(((t,i)=>{const s=K(t);i=o.length-e.loopedSlides&&a.push(t),s.attr("data-swiper-slide-index",i)}));for(let e=0;e=0;e-=1)n.prepend(K(a[e].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:i,loopedSlides:s,allowSlidePrev:n,allowSlideNext:o,snapGrid:a,rtlTranslate:r}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-a[t]-e.getTranslate();if(t=i.length-s){l=-i.length+t+s,l+=s;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((r?-e.translate:e.translate)-c)}e.allowSlidePrev=n,e.allowSlideNext=o,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:i}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;i.style.cursor="move",i.style.cursor=e?"-webkit-grabbing":"-webkit-grab",i.style.cursor=e?"-moz-grabbin":"-moz-grab",i.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const e=this,t=H(),{params:i,support:s}=e;e.onTouchStart=fe.bind(e),e.onTouchMove=ge.bind(e),e.onTouchEnd=me.bind(e),i.cssMode&&(e.onScroll=ye.bind(e)),e.onClick=be.bind(e),s.touch&&!xe&&(t.addEventListener("touchstart",we),xe=!0),Ce(e,"on")},detachEvents:function(){Ce(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:i,loopedSlides:s=0,params:n,$el:o}=e,a=n.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const r=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!r||e.currentBreakpoint===r)return;const l=(r in a?a[r]:void 0)||e.originalParams,c=Se(e,n),d=Se(e,l),h=n.enabled;c&&!d?(o.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&d&&(o.addClass(`${n.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===n.grid.fill)&&o.addClass(`${n.containerModifierClass}grid-column`),e.emitContainerClasses());const u=l.direction&&l.direction!==n.direction,p=n.loop&&(l.slidesPerView!==n.slidesPerView||u);u&&i&&e.changeDirection(),se(e.params,l);const f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!f?e.disable():!h&&f&&e.enable(),e.currentBreakpoint=r,e.emit("_beforeBreakpoint",l),p&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-s+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let s=!1;const n=G(),o="window"===t?n.innerHeight:i.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;ei}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:i,rtl:s,$el:n,device:o,support:a}=e,r=function(e,t){const i=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((s=>{e[s]&&i.push(t+s)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"pointer-events":!a.touch},{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides}],i.containerModifierClass);t.push(...r),n.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,i,s,n,o){const a=G();let r;function l(){o&&o()}K(e).parent("picture")[0]||e.complete&&n?l():t?(r=new a.Image,r.onload=l,r.onerror=l,s&&(r.sizes=s),i&&(r.srcset=i),t&&(r.src=t)):l()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let i=0;i0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((i=>{const s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:s,slidesGrid:n,slidesSizesGrid:o,size:a,activeIndex:r}=this;let l=1;if(i.centeredSlides){let e,t=s[r].swiperSlideSize;for(let i=r+1;ia&&(e=!0));for(let i=r-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=r+1;e=0;e-=1){n[r]-n[e]1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),n||s()),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(`${i.params.containerModifierClass}${s}`).addClass(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}mount(e){const t=this;if(t.mounted)return!0;const i=K(e||t.params.el);if(!(e=i[0]))return!1;e.swiper=t;const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=K(e.shadowRoot.querySelector(s()));return t.children=e=>i.children(e),t}return i.children(s())})();if(0===n.length&&t.params.createElements){const e=H().createElement("div");n=K(e),e.className=t.params.wrapperClass,i.append(e),i.children(`.${t.params.slideClass}`).each((e=>{n.append(e)}))}return Object.assign(t,{$el:i,el:e,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:s,$el:n,$wrapperEl:o,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){se(Pe,e)}static get extendedDefaults(){return Pe}static get defaults(){return Ee}static installModule(e){Le.prototype.__modules__||(Le.prototype.__modules__=[]);const t=Le.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Le.installModule(e))),Le):(Le.installModule(e),Le)}constructor(){let e,t;for(var i=arguments.length,s=new Array(i),n=0;n1){const e=[];return K(t.el).each((i=>{const s=se({},t,{el:i});e.push(new Le(s))})),e}const o=this;o.__swiper__=!0,o.support=ce(),o.device=de({userAgent:t.userAgent}),o.browser=he(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],t.modules&&Array.isArray(t.modules)&&o.modules.push(...t.modules);const a={};o.modules.forEach((e=>{e({swiper:o,extendParams:$e(t,a),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})}));const r=se({},Ee,a);return o.params=se({},r,Pe,t),o.originalParams=se({},o.params),o.passedParams=se({},t),o.params&&o.params.on&&Object.keys(o.params.on).forEach((e=>{o.on(e,o.params.on[e])})),o.params&&o.params.onAny&&o.onAny(o.params.onAny),o.$=K,Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:K(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return o.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},o.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},o.support.touch||!o.params.simulateTouch?o.touchEventsTouch:o.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:Q(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}}Object.keys(Te).forEach((e=>{Object.keys(Te[e]).forEach((t=>{Le.prototype[t]=Te[e][t]}))})),Le.use([function(e){let{swiper:t,on:i,emit:s}=e;const n=G();let o=null,a=null;const r=()=>{t&&!t.destroyed&&t.initialized&&(s("beforeResize"),s("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&s("orientationchange")};i("init",(()=>{t.params.resizeObserver&&void 0!==n.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((e=>{a=n.requestAnimationFrame((()=>{const{width:i,height:s}=t;let n=i,o=s;e.forEach((e=>{let{contentBoxSize:i,contentRect:s,target:a}=e;a&&a!==t.el||(n=s?s.width:(i[0]||i).inlineSize,o=s?s.height:(i[0]||i).blockSize)})),n===i&&o===s||r()}))})),o.observe(t.el)):(n.addEventListener("resize",r),n.addEventListener("orientationchange",l))})),i("destroy",(()=>{a&&n.cancelAnimationFrame(a),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),n.removeEventListener("resize",r),n.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const o=[],a=G(),r=function(e,t){void 0===t&&(t={});const i=new(a.MutationObserver||a.WebkitMutationObserver)((e=>{if(1===e.length)return void n("observerUpdate",e[0]);const t=function(){n("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(t):a.setTimeout(t,0)}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),o.push(i)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);var ke=Le;function Me(e,t,i,s){const n=H();return e.params.createElements&&Object.keys(s).forEach((o=>{if(!i[o]&&!0===i.auto){let a=e.$el.children(`.${s[o]}`)[0];a||(a=n.createElement("div"),a.className=s[o],e.$el.append(a)),i[o]=a,t[o]=a}})),i}function ze(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;function o(e){let i;return e&&(i=K(e),t.params.uniqueNavElements&&"string"==typeof e&&i.length>1&&1===t.$el.find(e).length&&(i=t.$el.find(e))),i}function a(e,i){const s=t.params.navigation;e&&e.length>0&&(e[i?"addClass":"removeClass"](s.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=i),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](s.lockClass))}function r(){if(t.params.loop)return;const{$nextEl:e,$prevEl:i}=t.navigation;a(i,t.isBeginning&&!t.params.rewind),a(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&t.slidePrev()}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&t.slideNext()}function d(){const e=t.params.navigation;if(t.params.navigation=Me(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const i=o(e.nextEl),s=o(e.prevEl);i&&i.length>0&&i.on("click",c),s&&s.length>0&&s.on("click",l),Object.assign(t.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:s,prevEl:s&&s[0]}),t.enabled||(i&&i.addClass(e.lockClass),s&&s.addClass(e.lockClass))}function h(){const{$nextEl:e,$prevEl:i}=t.navigation;e&&e.length&&(e.off("click",c),e.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("click",l),i.removeClass(t.params.navigation.disabledClass))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},s("init",(()=>{d(),r()})),s("toEdge fromEdge lock unlock",(()=>{r()})),s("destroy",(()=>{h()})),s("enable disable",(()=>{const{$nextEl:e,$prevEl:i}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),i&&i[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),s("click",((e,i)=>{const{$nextEl:s,$prevEl:o}=t.navigation,a=i.target;if(t.params.navigation.hideOnClick&&!K(a).is(o)&&!K(a).is(s)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;s?e=s.hasClass(t.params.navigation.hiddenClass):o&&(e=o.hasClass(t.params.navigation.hiddenClass)),n(!0===e?"navigationShow":"navigationHide"),s&&s.toggleClass(t.params.navigation.hiddenClass),o&&o.toggleClass(t.params.navigation.hiddenClass)}})),Object.assign(t.navigation,{update:r,init:d,destroy:h})}function Ae(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function Oe(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const o="swiper-pagination";let a;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`}}),t.pagination={el:null,$el:null,bullets:[]};let r=0;function l(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function c(e,i){const{bulletActiveClass:s}=t.params.pagination;e[i]().addClass(`${s}-${i}`)[i]().addClass(`${s}-${i}-${i}`)}function d(){const e=t.rtl,i=t.params.pagination;if(l())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,o=t.pagination.$el;let d;const h=t.params.loop?Math.ceil((s-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(d=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),d>s-1-2*t.loopedSlides&&(d-=s-2*t.loopedSlides),d>h-1&&(d-=h),d<0&&"bullets"!==t.params.paginationType&&(d=h+d)):d=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const s=t.pagination.bullets;let n,l,h;if(i.dynamicBullets&&(a=s.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(t.isHorizontal()?"width":"height",a*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==t.previousIndex&&(r+=d-(t.previousIndex-t.loopedSlides||0),r>i.dynamicMainBullets-1?r=i.dynamicMainBullets-1:r<0&&(r=0)),n=Math.max(d-r,0),l=n+(Math.min(s.length,i.dynamicMainBullets)-1),h=(l+n)/2),s.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${i.bulletActiveClass}${e}`)).join(" ")),o.length>1)s.each((e=>{const t=K(e),s=t.index();s===d&&t.addClass(i.bulletActiveClass),i.dynamicBullets&&(s>=n&&s<=l&&t.addClass(`${i.bulletActiveClass}-main`),s===n&&c(t,"prev"),s===l&&c(t,"next"))}));else{const e=s.eq(d),o=e.index();if(e.addClass(i.bulletActiveClass),i.dynamicBullets){const e=s.eq(n),a=s.eq(l);for(let e=n;e<=l;e+=1)s.eq(e).addClass(`${i.bulletActiveClass}-main`);if(t.params.loop)if(o>=s.length){for(let e=i.dynamicMainBullets;e>=0;e-=1)s.eq(s.length-e).addClass(`${i.bulletActiveClass}-main`);s.eq(s.length-i.dynamicMainBullets-1).addClass(`${i.bulletActiveClass}-prev`)}else c(e,"prev"),c(a,"next");else c(e,"prev"),c(a,"next")}}if(i.dynamicBullets){const n=Math.min(s.length,i.dynamicMainBullets+4),o=(a*n-a)/2-h*a,r=e?"right":"left";s.css(t.isHorizontal()?r:"top",`${o}px`)}}if("fraction"===i.type&&(o.find(Ae(i.currentClass)).text(i.formatFractionCurrent(d+1)),o.find(Ae(i.totalClass)).text(i.formatFractionTotal(h))),"progressbar"===i.type){let e;e=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const s=(d+1)/h;let n=1,a=1;"horizontal"===e?n=s:a=s,o.find(Ae(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${n}) scaleY(${a})`).transition(t.params.speed)}"custom"===i.type&&i.renderCustom?(o.html(i.renderCustom(t,d+1,h)),n("paginationRender",o[0])):n("paginationUpdate",o[0]),t.params.watchOverflow&&t.enabled&&o[t.isLocked?"addClass":"removeClass"](i.lockClass)}function h(){const e=t.params.pagination;if(l())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el;let o="";if("bullets"===e.type){let n=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&n>i&&(n=i);for(let i=0;i`;s.html(o),t.pagination.bullets=s.find(Ae(e.bulletClass))}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):` / `,s.html(o)),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):``,s.html(o)),"custom"!==e.type&&n("paginationRender",t.pagination.$el[0])}function u(){t.params.pagination=Me(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i=K(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&(i=t.$el.find(e.el),i.length>1&&(i=i.filter((e=>K(e).parents(".swiper")[0]===t.el)))),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),i.addClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(`${e.modifierClass}${e.type}-dynamic`),r=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click",Ae(e.bulletClass),(function(e){e.preventDefault();let i=K(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)})),Object.assign(t.pagination,{$el:i,el:i[0]}),t.enabled||i.addClass(e.lockClass))}function p(){const e=t.params.pagination;if(l())return;const i=t.pagination.$el;i.removeClass(e.hiddenClass),i.removeClass(e.modifierClass+e.type),i.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&i.off("click",Ae(e.bulletClass))}s("init",(()=>{u(),h(),d()})),s("activeIndexChange",(()=>{(t.params.loop||void 0===t.snapIndex)&&d()})),s("snapIndexChange",(()=>{t.params.loop||d()})),s("slidesLengthChange",(()=>{t.params.loop&&(h(),d())})),s("snapGridLengthChange",(()=>{t.params.loop||(h(),d())})),s("destroy",(()=>{p()})),s("enable disable",(()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)})),s("lock unlock",(()=>{d()})),s("click",((e,i)=>{const s=i.target,{$el:o}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o.length>0&&!K(s).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&s===t.navigation.nextEl||t.navigation.prevEl&&s===t.navigation.prevEl))return;const e=o.hasClass(t.params.pagination.hiddenClass);n(!0===e?"paginationShow":"paginationHide"),o.toggleClass(t.params.pagination.hiddenClass)}})),Object.assign(t.pagination,{render:h,update:d,init:u,destroy:p})}function _e(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;i({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),t.lazy={};let o=!1,a=!1;function r(e,i){void 0===i&&(i=!0);const s=t.params.lazy;if(void 0===e)return;if(0===t.slides.length)return;const o=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`):t.slides.eq(e),a=o.find(`.${s.elementClass}:not(.${s.loadedClass}):not(.${s.loadingClass})`);!o.hasClass(s.elementClass)||o.hasClass(s.loadedClass)||o.hasClass(s.loadingClass)||a.push(o[0]),0!==a.length&&a.each((e=>{const a=K(e);a.addClass(s.loadingClass);const l=a.attr("data-background"),c=a.attr("data-src"),d=a.attr("data-srcset"),h=a.attr("data-sizes"),u=a.parent("picture");t.loadImage(a[0],c||l,d,h,!1,(()=>{if(null!=t&&t&&(!t||t.params)&&!t.destroyed){if(l?(a.css("background-image",`url("${l}")`),a.removeAttr("data-background")):(d&&(a.attr("srcset",d),a.removeAttr("data-srcset")),h&&(a.attr("sizes",h),a.removeAttr("data-sizes")),u.length&&u.children("source").each((e=>{const t=K(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))})),c&&(a.attr("src",c),a.removeAttr("data-src"))),a.addClass(s.loadedClass).removeClass(s.loadingClass),o.find(`.${s.preloaderClass}`).remove(),t.params.loop&&i){const e=o.attr("data-swiper-slide-index");if(o.hasClass(t.params.slideDuplicateClass)){r(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(),!1)}else{r(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)}}n("lazyImageReady",o[0],a[0]),t.params.autoHeight&&t.updateAutoHeight()}})),n("lazyImageLoad",o[0],a[0])}))}function l(){const{$wrapperEl:e,params:i,slides:s,activeIndex:n}=t,o=t.virtual&&i.virtual.enabled,l=i.lazy;let c=i.slidesPerView;function d(t){if(o){if(e.children(`.${i.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(s[t])return!0;return!1}function h(e){return o?K(e).attr("data-swiper-slide-index"):K(e).index()}if("auto"===c&&(c=0),a||(a=!0),t.params.watchSlidesProgress)e.children(`.${i.slideVisibleClass}`).each((e=>{r(o?K(e).attr("data-swiper-slide-index"):K(e).index())}));else if(c>1)for(let e=n;e1||l.loadPrevNextAmount&&l.loadPrevNextAmount>1){const e=l.loadPrevNextAmount,t=c,i=Math.min(n+t+Math.max(e,t),s.length),o=Math.max(n-Math.max(t,e),0);for(let e=n+c;e0&&r(h(t));const s=e.children(`.${i.slidePrevClass}`);s.length>0&&r(h(s))}}function c(){const e=G();if(!t||t.destroyed)return;const i=t.params.lazy.scrollingElement?K(t.params.lazy.scrollingElement):K(e),s=i[0]===e,n=s?e.innerWidth:i[0].offsetWidth,a=s?e.innerHeight:i[0].offsetHeight,r=t.$el.offset(),{rtlTranslate:d}=t;let h=!1;d&&(r.left-=t.$el[0].scrollLeft);const u=[[r.left,r.top],[r.left+t.width,r.top],[r.left,r.top+t.height],[r.left+t.width,r.top+t.height]];for(let e=0;e=0&&t[0]<=n&&t[1]>=0&&t[1]<=a){if(0===t[0]&&0===t[1])continue;h=!0}}const p=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};h?(l(),i.off("scroll",c,p)):o||(o=!0,i.on("scroll",c,p))}s("beforeInit",(()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)})),s("init",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?c():l())})),s("scroll",(()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&l()})),s("scrollbarDragMove resize _freeModeNoMomentumRelease",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?c():l())})),s("transitionStart",(()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!a)&&(t.params.lazy.checkInView?c():l())})),s("transitionEnd",(()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?c():l())})),s("slideChange",(()=>{const{lazy:e,cssMode:i,watchSlidesProgress:s,touchReleaseOnEdges:n,resistanceRatio:o}=t.params;e.enabled&&(i||s&&(n||0===o))&&l()})),Object.assign(t.lazy,{load:l,loadInSlide:r})}function Ie(e){let{swiper:t,extendParams:i,on:s}=e;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group"}});let n=null;function o(e){const t=n;0!==t.length&&(t.html(""),t.html(e))}function a(e){e.attr("tabIndex","0")}function r(e){e.attr("tabIndex","-1")}function l(e,t){e.attr("role",t)}function c(e,t){e.attr("aria-roledescription",t)}function d(e,t){e.attr("aria-label",t)}function h(e){e.attr("aria-disabled",!0)}function u(e){e.attr("aria-disabled",!1)}function p(e){if(13!==e.keyCode&&32!==e.keyCode)return;const i=t.params.a11y,s=K(e.target);t.navigation&&t.navigation.$nextEl&&s.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?o(i.lastSlideMessage):o(i.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&s.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?o(i.firstSlideMessage):o(i.prevSlideMessage)),t.pagination&&s.is(Ae(t.params.pagination.bulletClass))&&s[0].click()}function f(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function g(){return f()&&t.params.pagination.clickable}const m=(e,t,i)=>{a(e),"BUTTON"!==e[0].tagName&&(l(e,"button"),e.on("keydown",p)),d(e,i),function(e,t){e.attr("aria-controls",t)}(e,t)},v=e=>{const i=e.target.closest(`.${t.params.slideClass}`);if(!i||!t.slides.includes(i))return;const s=t.slides.indexOf(i)===t.activeIndex,n=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(i);s||n||t.slideTo(t.slides.indexOf(i),0)};function b(){const e=t.params.a11y;t.$el.append(n);const i=t.$el;e.containerRoleDescriptionMessage&&c(i,e.containerRoleDescriptionMessage),e.containerMessage&&d(i,e.containerMessage);const s=t.$wrapperEl,o=s.attr("id")||`swiper-wrapper-${a=16,void 0===a&&(a=16),"x".repeat(a).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var a;const r=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var h;h=o,s.attr("id",h),function(e,t){e.attr("aria-live",t)}(s,r),e.itemRoleDescriptionMessage&&c(K(t.slides),e.itemRoleDescriptionMessage),l(K(t.slides),e.slideRole);const u=t.params.loop?t.slides.filter((e=>!e.classList.contains(t.params.slideDuplicateClass))).length:t.slides.length;let f,b;t.slides.each(((i,s)=>{const n=K(i),o=t.params.loop?parseInt(n.attr("data-swiper-slide-index"),10):s;d(n,e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,u))})),t.navigation&&t.navigation.$nextEl&&(f=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(b=t.navigation.$prevEl),f&&f.length&&m(f,o,e.nextSlideMessage),b&&b.length&&m(b,o,e.prevSlideMessage),g()&&t.pagination.$el.on("keydown",Ae(t.params.pagination.bulletClass),p),t.$el.on("focus",v,!0)}s("beforeInit",(()=>{n=K(``)})),s("afterInit",(()=>{t.params.a11y.enabled&&b()})),s("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{$nextEl:e,$prevEl:i}=t.navigation;i&&i.length>0&&(t.isBeginning?(h(i),r(i)):(u(i),a(i))),e&&e.length>0&&(t.isEnd?(h(e),r(e)):(u(e),a(e)))}()})),s("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;f()&&t.pagination.bullets.each((i=>{const s=K(i);t.params.pagination.clickable&&(a(s),t.params.pagination.renderBullet||(l(s,"button"),d(s,e.paginationBulletMessage.replace(/\{\{index\}\}/,s.index()+1)))),s.is(`.${t.params.pagination.bulletActiveClass}`)?s.attr("aria-current","true"):s.removeAttr("aria-current")}))}()})),s("destroy",(()=>{t.params.a11y.enabled&&function(){let e,i;n&&n.length>0&&n.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(i=t.navigation.$prevEl),e&&e.off("keydown",p),i&&i.off("keydown",p),g()&&t.pagination.$el.off("keydown",Ae(t.params.pagination.bulletClass),p),t.$el.off("focus",v,!0)}()}))}const Ne={MixinCarousel:{slidesPerView:1.25,speed:500,threshold:20,spaceBetween:28,watchOverflow:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,loop:!1,preloadImages:!1,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0,loadPrevNextAmount:2},navigation:{nextEl:".swiper-next",prevEl:".swiper-prev"},breakpoints:{640:{slidesPerView:1,spaceBetween:28},768:{slidesPerView:2,spaceBetween:28},1280:{slidesPerView:2,spaceBetween:56}},on:{init(e){e.$el.removeClass("opacity-0"),e.$el.addClass("opacity-100")}}},BlockImageCarousel:{slidesPerView:1,speed:500,threshold:20,loop:!1,preloadImages:!1,watchSlidesProgress:!0,watchSlidesVisibility:!0,lazy:!0,navigation:{nextEl:".swiper-next",prevEl:".swiper-prev"},pagination:{el:".swiper-pagination",type:"bullets",clickable:!0,bulletClass:"swiper-dot",bulletActiveClass:"swiper-dot-active",renderBullet:function(e,t){return``}}}};Object.assign(Ne,{BaseCarouselCards:Ne.MixinCarousel});var Be=Ne;new ke(".MixinCarousel .swiper, .BaseCarouselCards .swiper",{modules:[ze,_e,Ie,Oe],...Be.MixinCarousel}),new ke(".BlockImageCarousel .swiper",{modules:[ze,_e,Ie,Oe],...Be.BlockImageCarousel});const De=document.querySelector("#HeroMediaCaptionToggle"),Fe=document.querySelector("#HeroMediaCaption");De&&De.addEventListener("click",(e=>{De.classList.toggle("expanded"),Fe.classList.toggle("hidden")})),Array.prototype.slice.call(document.querySelectorAll(".BlockAccordion")).forEach((function(e){var t=e.hasAttribute("data-allow-multiple"),i=Array.prototype.slice.call(e.querySelectorAll(".BlockAccordion-trigger"));Array.prototype.slice.call(e.querySelectorAll(".BlockAccordion-panel"));e.addEventListener("click",(function(i){var s=i.target;if(s.classList.contains("BlockAccordion-trigger")){var n="true"==s.getAttribute("aria-expanded"),o=e.querySelector('[aria-expanded="true"]');if(!t&&o&&o!==s){o.setAttribute("aria-expanded","false"),o.querySelector(".BlockAccordion-icon").classList.toggle("rotate-45");document.getElementById(o.getAttribute("aria-controls")).setAttribute("hidden","")}if(n){if(n){s.setAttribute("aria-expanded","false"),s.querySelector(".BlockAccordion-icon").classList.toggle("rotate-45");document.getElementById(s.getAttribute("aria-controls")).setAttribute("hidden","")}}else{s.setAttribute("aria-expanded","true"),s.querySelector(".BlockAccordion-icon").classList.toggle("rotate-45");document.getElementById(s.getAttribute("aria-controls")).removeAttribute("hidden")}i.preventDefault()}})),e.addEventListener("keydown",(function(e){var t=e.target,s=e.which.toString(),n=(t.getAttribute("aria-expanded"),e.ctrlKey&&s.match(/33|34/));if(t.classList.contains("BlockAccordion-trigger"))if(s.match(/38|40/)||n){var o=i.indexOf(t),a=s.match(/34|40/)?1:-1,r=i.length;i[(o+r+a)%r].focus(),e.preventDefault()}else if(s.match(/35|36/)){switch(s){case"36":i[0].focus();break;case"35":i[i.length-1].focus()}e.preventDefault()}}))}));let Re=null;const He=document.getElementById("HeaderInternal"),We=document.getElementById("NavBgOverlay"),Ge=document.getElementById("NavInternalContainer"),qe=document.getElementById("NavMobileToggle"),Ve=document.getElementById("NavMobileSearchInput"),je=e=>{const t=e.parentElement;document.body.classList.toggle("lg:overflow-hidden"),We.classList.toggle("invisible-overlay"),t.classList.toggle("expanded"),t.classList.contains("expanded")?e.setAttribute("aria-expanded","true"):e.setAttribute("aria-expanded","false")},Xe=e=>{if(Re){document.getElementById("target_"+Re.id).contains(e.target)||(je(Re),Re=null)}},Ye=e=>{document.body.classList.remove("overflow-hidden","lg:overflow-hidden"),We.classList.add("invisible-overlay"),He.classList.remove("h-screen"),He.classList.remove("overflow-y-scroll"),Ge.classList.add("hidden"),qe.classList.remove("expanded"),qe.setAttribute("aria-label","Open menu"),Re&&(Re.parentElement.classList.remove("expanded"),Re.setAttribute("aria-expanded","false"),Re=null)},Ue=document.getElementById("NavSearchOpen"),Ze=document.getElementById("NavSearchClose"),Ke=document.getElementById("NavSearchContainer"),Je=document.getElementById("NavSearchInput"),Qe=e=>{Ke&&Je&&(Ke.classList.remove("lg:block"),Je.value="")};Ue&&Ue.addEventListener("click",(e=>{Ke&&Je&&(Ke.classList.add("lg:block"),Je.focus())})),Ze&&Ze.addEventListener("click",Qe),document.addEventListener("click",(e=>{qe&&qe.contains(e.target)?(He.classList.toggle("h-screen"),He.classList.toggle("overflow-y-scroll"),Ge.classList.toggle("hidden"),qe.classList.toggle("expanded"),qe.classList.contains("expanded")?qe.setAttribute("aria-label","Close menu"):(Ve.value="",qe.setAttribute("aria-label","Open menu")),document.body.classList.toggle("overflow-hidden"),Xe(e)):e.target.classList&&e.target.classList.contains("toggle-NavInternalPanel")?(e=>{je(e),Re?Re==e?Re=null:(je(Re),Re=e):Re=e})(e.target):Re&&Xe(e)})),window.addEventListener("orientationchange",(function(e){Ye(),Qe()}),!1),document.addEventListener("keydown",(function(e){"Escape"===e.key&&(Ye(),Qe())}));const et=e=>{const t=e.querySelector("button"),i=parseInt(e.dataset.threshold)||300,s=parseInt(e.dataset.scrollto)||0,n=t.classList.contains("always-visible");window.addEventListener("scroll",(()=>{if(!n){let e=window.scrollY>i;t.style.display=e?"block":"none"}})),t.addEventListener("click",(()=>{window.scrollTo({top:s,behavior:"smooth"})}))};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".BlockBackToTop").forEach(et)}))}(); \ No newline at end of file diff --git a/src/index.html b/src/index.html index f26e52e0..ec650b8e 100644 --- a/src/index.html +++ b/src/index.html @@ -806,7 +806,7 @@

Heading

Maintained by DesignLab

-
+