s)&&(a.push({indexes:[],slides:[]}),f=a.length-1,m=0),m+=x.width,a[f].indexes.push(v),a[f].slides.push(x)}}const l=this.option("center"),d=this.option("fill");a.forEach((f,m)=>{f.index=m,f.width=f.slides.reduce((v,x)=>v+x.width,0),f.left=f.slides[0].left,l&&(f.left+=.5*(s-f.width)*-1),d&&!this.option("infiniteX",this.option("infinite"))&&t>s&&(f.left=Math.max(f.left,0),f.left=Math.min(f.left,t-s))});const c=[];let u;a.forEach(f=>{const m={...f};u&&m.left===u.left?(u.width+=m.width,u.slides=[...u.slides,...m.slides],u.indexes=[...u.indexes,...m.indexes]):(m.index=c.length,u=m,c.push(m))}),this.pages=c;let p=this.page;if(p===null){const f=this.option("initialSlide");p=f!==null?this.findPageForSlide(f):parseInt(this.option("initialPage",0),10)||0,c[p]||(p=c.length&&p>c.length?c[c.length-1].index:0),this.page=p,this.pageIndex=p}this.updatePanzoom(),this.trigger("refresh")}getSlideMetrics(e){if(!e){const s=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(" ")),s.customClass&&e.classList.add(...s.customClass.split(" ")),this.$track.prepend(e)}let t=Math.max(e.offsetWidth,j(e.getBoundingClientRect().width));const i=e.currentStyle||window.getComputedStyle(e);return t=t+(parseFloat(i.marginLeft)||0)+(parseFloat(i.marginRight)||0),e.dataset.isTestEl&&e.remove(),t}findPageForSlide(e){e=parseInt(e,10)||0;const t=this.pages.find(i=>i.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:o=this.option("friction")}=t;this.Panzoom.content.x===i&&!this.Panzoom.velocity.x&&o||(this.Panzoom.panTo({x:i,y:s,friction:o,ignoreBounds:!0}),this.state==="ready"&&this.Panzoom.state==="ready"&&this.trigger("settle"))}initPanzoom(){this.Panzoom&&this.Panzoom.destroy();const e=K(!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 Ee(this.$container,e),this.Panzoom.on({"*":(t,...i)=>this.trigger(`Panzoom.${t}`,...i),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"),o=this.option("infiniteX",this.option("infinite")),a=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-left")),r=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-right"));this.slides.forEach(c=>{let u,p,f=0;u=i-a,p=i+t+r,u-=s*(t+a+r),p+=s*(t+a+r);const m=c.left+c.width>u&&c.leftu&&c.left
u&&c.left
i&&c.left<=i+t+r&&(f=0)):this.removeSlideEl(c),c.hasDiff=f});let l=0,d=0;this.slides.forEach((c,u)=>{let p=0;c.$el?(u!==l||c.hasDiff?p=d+c.hasDiff*e:d=0,c.$el.style.left=Math.abs(p)>.1?`${d+c.hasDiff*e}px`:"",l++):d+=c.width}),this.markSelectedSlides()}createSlideEl(e){if(!e)return;if(e.$el){let a=e.$el.dataset.index;if(!a||parseInt(a,10)!==e.index){let r;e.$el.dataset.index=e.index,e.$el.querySelectorAll("[data-lazy-srcset]").forEach(l=>{l.srcset=l.dataset.lazySrcset}),e.$el.querySelectorAll("[data-lazy-src]").forEach(l=>{let d=l.dataset.lazySrc;l instanceof HTMLImageElement?l.src=d:l.style.backgroundImage=`url('${d}')`}),(r=e.$el.dataset.lazySrc)&&(e.$el.style.backgroundImage=`url('${r}')`),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((a,r)=>{a.$el&&i.push(r)});const s=e.index;let o=null;if(i.length){let a=i.reduce((r,l)=>Math.abs(l-s){const o=i.$el;if(!o)return;const a=this.pages[this.page];a&&a.indexes&&a.indexes.indexOf(s)>-1?(e&&!o.classList.contains(e)&&(o.classList.add(e),this.trigger("selectSlide",i)),o.removeAttribute(t)):(e&&o.classList.contains(e)&&(o.classList.remove(e),this.trigger("unselectSlide",i)),o.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&&i.state==="pointerdown"&&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[,s]=this.getPageFromPosition(-1*e.transform.x);this.setPage(s)}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(o=>o.left<=e&&o.left+o.width>e);if(s){let o=this.findPageForSlide(s.index);return[o,o+i*t]}return[0,0]}setPage(e,t){let i=0,s=parseInt(e,10)||0;const o=this.page,a=this.pageIndex,r=this.pages.length,l=this.contentWidth,d=this.viewportWidth;if(e=(s%r+r)%r,this.option("infiniteX",this.option("infinite"))&&l>d){const c=Math.floor(s/r)||0,u=l;if(i=this.pages[e].left+c*u,t===!0&&r>2){let p=-1*this.Panzoom.content.x;const f=i-u,m=i+u,v=Math.abs(p-i),x=Math.abs(p-f),h=Math.abs(p-m);h{this.removeSlideEl(e)}),this.slides=[],this.Panzoom.destroy(),this.detachPlugins()}}Te.version="4.0.31",Te.Plugins=Yt;const Fe=!(typeof window>"u"||!window.document||!window.document.createElement);let He=null;const lt=["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])'],Pe=n=>{if(n&&Fe){He===null&&document.createElement("div").focus({get preventScroll(){return He=!0,!1}});try{if(n.setActive)n.setActive();else if(He)n.focus({preventScroll:!0});else{const e=window.pageXOffset||document.body.scrollTop,t=window.pageYOffset||document.body.scrollLeft;n.focus(),document.body.scrollTo({top:e,left:t,behavior:"auto"})}}catch{}}},Zt={minSlideCount:2,minScreenHeight:500,autoStart:!0,key:"t",Carousel:{},tpl:``};class yt{constructor(e){this.fancybox=e,this.$container=null,this.state="init";for(const t of["onPrepare","onClosing","onKeydown"])this[t]=this[t].bind(this);this.events={prepare:this.onPrepare,closing:this.onClosing,keydown:this.onKeydown}}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 Te(e,K(!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",(t,i)=>{i.preventDefault(),this.fancybox[i.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:this.fancybox.option("Thumbs.tpl").replace(/\{\{src\}\}/gi,i),customClass:`has-thumb has-${t.type||"image"}`})}return e}toggle(){this.state==="visible"?this.hide():this.state==="hidden"?this.show():this.build()}show(){this.state==="hidden"&&(this.$container.style.display="",this.Carousel.Panzoom.attachEvents(),this.state="visible")}hide(){this.state==="visible"&&(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()}}yt.defaults=Zt;const ct=(n,e)=>{const t=new URL(n),i=new URLSearchParams(t.search);let s=new URLSearchParams;for(const[a,r]of[...i,...Object.entries(e)])a==="t"?s.set("start",parseInt(r)):s.set(a,r);s=s.toString();let o=n.match(/#t=((.*)?\d+s)/);return o&&(s+=`#t=${o[1]}`),s},bt={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 wt{constructor(e){this.fancybox=e;for(const t of["onInit","onReady","onCreateSlide","onRemoveSlide","onSelectSlide","onUnselectSlide","onRefresh","onMessage"])this[t]=this[t].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}}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 t=e.src||"";let i=e.type||this.fancybox.options.type,s=null;if(!t||typeof t=="string"){if(s=t.match(/(?:youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const o=ct(t,this.fancybox.option("Html.youtube")),a=encodeURIComponent(s[1]);e.videoId=a,e.src=`https://www.youtube-nocookie.com/embed/${a}?${o}`,e.thumb=e.thumb||`https://i.ytimg.com/vi/${a}/mqdefault.jpg`,e.vendor="youtube",i="video"}else if(s=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)(.*)?/)){const o=ct(t,this.fancybox.option("Html.vimeo")),a=encodeURIComponent(s[1]);e.videoId=a,e.src=`https://player.vimeo.com/video/${a}?${o}`,e.vendor="vimeo",i="video"}else(s=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`//maps.google.${s[1]}/?ll=${(s[2]?s[2]+"&z="+Math.floor(s[3])+(s[4]?s[4].replace(/^\//,"&"):""):s[4]+"").replace(/\?/,"&")}&output=${s[4]&&s[4].indexOf("layer=c")>0?"svembed":"embed"}`,i="map"):(s=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`//maps.google.${s[1]}/maps?q=${s[2].replace("query=","q=").replace("api=1","")}&output=embed`,i="map");i||(t.charAt(0)==="#"?i="inline":(s=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i="html5video",e.format=e.format||"video/"+(s[1]==="ogv"?"ogg":s[1])):t.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":t.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),e.type=i||this.fancybox.option("defaultType","image"),i!=="html5video"&&i!=="video"||(e.video=K({},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||bt.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){this.fancybox.state==="ready"&&this.setContent(i)}loadInlineContent(e){let t;if(e.src instanceof HTMLElement)t=e.src;else if(typeof e.src=="string"){const i=e.src.split("#",2),s=i.length===2&&i[0]===""?i[1]:i[0];t=document.getElementById(s)}if(t){if(e.type==="clone"||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 i=document.createElement("div");i.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(i,t),t.$placeHolder=i}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&&t.state==="ready"&&(t.hideLoading(e),i.status===200?t.setContent(e,i.responseText):t.setError(e,i.status===404?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const s=e.ajax||null;i.open(s?"POST":"GET",e.src),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(s),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,e.type!=="iframe"||e.preload===!1)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 o=!1;i.isReady||(i.isReady=!0,o=!0),i.src.length&&(i.parentNode.style.visibility="",this.resizeIframe(e),o&&t.revealContent(e))},i.setAttribute("src",e.src)}setAspectRatio(e){const t=e.$content,i=e.ratio;if(!t)return;let s=e._width,o=e._height;if(i||s&&o){Object.assign(t.style,{width:s&&o?"100%":"",height:s&&o?"100%":"",maxWidth:"",maxHeight:""});let a=t.offsetWidth,r=t.offsetHeight;if(s=s||a,o=o||r,s>a||o>r){let l=Math.min(a/s,r/o);s*=l,o*=l}Math.abs(s/o-i)>.01&&(i{i.$el&&(i.$iframe&&this.resizeIframe(i),i.ratio&&this.setAspectRatio(i))})}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){e.state==="ready"&&this.playVideo(i)}playVideo(e){if(e.type==="html5video"&&e.video.autoplay)try{const i=e.$el.querySelector("video");if(i){const s=i.play();s!==void 0&&s.then(()=>{}).catch(o=>{i.muted=!0,i.play()})}}catch{}if(e.type!=="video"||!e.$iframe||!e.$iframe.contentWindow)return;const t=()=>{if(e.state==="done"&&e.$iframe&&e.$iframe.contentWindow){let i;if(e.$iframe.isReady)return e.video&&e.video.autoplay&&(i=e.vendor=="youtube"?{event:"command",func:"playVideo"}:{method:"play",value:"true"}),void(i&&e.$iframe.contentWindow.postMessage(JSON.stringify(i),"*"));e.vendor==="youtube"&&(i={event:"listening",id:e.$iframe.getAttribute("id")},e.$iframe.contentWindow.postMessage(JSON.stringify(i),"*"))}e.poller=setTimeout(t,250)};t()}onUnselectSlide(e,t,i){if(i.type==="html5video"){try{i.$el.querySelector("video").pause()}catch{}return}let s=!1;i.vendor=="vimeo"?s={method:"pause",value:"true"}:i.vendor==="youtube"&&(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;i.type==="inline"&&s&&(s.classList.remove("fancybox__content"),s.style.display!=="none"&&(s.style.display="none")),i.$closeButton&&(i.$closeButton.remove(),i.$closeButton=null);const o=s&&s.$placeHolder;o&&(o.parentNode.insertBefore(s,o),o.remove(),s.$placeHolder=null)}onMessage(e){try{let t=JSON.parse(e.data);if(e.origin==="https://player.vimeo.com"){if(t.event==="ready")for(let i of document.getElementsByClassName("fancybox__iframe"))i.contentWindow===e.source&&(i.isReady=1)}else e.origin==="https://www.youtube-nocookie.com"&&t.event==="onReady"&&(document.getElementById(t.id).isReady=1)}catch{}}attach(){this.fancybox.on(this.events),window.addEventListener("message",this.onMessage,!1)}detach(){this.fancybox.off(this.events),window.removeEventListener("message",this.onMessage,!1)}}wt.defaults=bt;class xt{constructor(e){this.fancybox=e;for(const t of["onReady","onClosing","onDone","onPageChange","onCreateSlide","onRemoveSlide","onImageStatusChange"])this[t]=this[t].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}}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(t=>{t.$image&&(t.state="destroy"),t.Panzoom&&t.Panzoom.detachEvents()}),this.fancybox.state==="closing"&&this.canZoom(e.getSlide())&&this.zoomOut()}onCreateSlide(e,t,i){this.fancybox.state==="ready"&&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&&e.type!=="image"||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",o=>{o.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 o=document.createElement("div");o.classList.add(typeof s=="string"?s:"fancybox__image-wrap"),o.appendChild(i),t.appendChild(o),e.$wrap=o}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&&e.state==="loading"&&(t.complete&&t.naturalWidth&&t.naturalHeight?(this.fancybox.hideLoading(e),this.fancybox.option("Image.fit")==="contain"&&this.initSlidePanzoom(e),e.$el.addEventListener("wheel",i=>this.onWheel(e,i),{passive:!1}),e.$content.addEventListener("click",i=>this.onClick(e,i),{passive:!1}),this.revealContent(e)):this.fancybox.setError(e,"{{IMAGE_ERROR}}"))}initSlidePanzoom(e){e.Panzoom||(e.Panzoom=new Ee(e.$el,K(!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",()=>{e.state==="zoomIn"&&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){this.fancybox.Carousel.prevPage===null&&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,o=e.$content.getBoundingClientRect(),a=o.width,r=o.height,l=o.top-t.top,d=o.left-t.left;let c=this.fancybox.option("Image.zoomOpacity");return c==="auto"&&(c=Math.abs(i/s-a/r)>.1),{top:l,left:d,scale:a&&i?i/a:1,opacity:c}}canZoom(e){const t=this.fancybox,i=t.$container;if(window.visualViewport&&window.visualViewport.scale!==1||e.Panzoom&&!e.Panzoom.content.width||!t.option("Image.zoom")||t.option("Image.fit")!=="contain")return!1;const s=e.$thumb;if(!s||e.state==="loading")return!1;i.classList.add("fancybox__no-click");const o=s.getBoundingClientRect();let a;if(this.fancybox.option("Image.ignoreCoveredThumbnail")){const r=document.elementFromPoint(o.left+1,o.top+1)===s,l=document.elementFromPoint(o.right-1,o.bottom-1)===s;a=r&&l}else a=document.elementFromPoint(o.left+.5*o.width,o.top+.5*o.height)===s;return i.classList.remove("fancybox__no-click"),a}zoomIn(){const e=this.fancybox,t=e.getSlide(),i=t.Panzoom,{top:s,left:o,scale:a,opacity:r}=this.getZoomInfo(t);e.trigger("reveal",t),i.panTo({x:-1*o,y:-1*s,scale:a,friction:0,ignoreBounds:!0}),t.$content.style.visibility="",t.state="zoomIn",r===!0&&i.on("afterTransform",l=>{t.state!=="zoomIn"&&t.state!=="zoomOut"||(l.$content.style.opacity=Math.min(1,1-(1-l.content.scale)/(1-a)))}),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 o=a=>{const{top:r,left:l,scale:d,opacity:c}=this.getZoomInfo(t);a||c||(s*=.82),i.panTo({x:-1*l,y:-1*r,scale:d,friction:s,ignoreBounds:!0}),s*=.98};window.addEventListener("scroll",o),i.once("endAnimation",()=>{window.removeEventListener("scroll",o),e.destroy()}),o()}handleCursor(e){if(e.type!=="image"||!e.$el)return;const t=e.Panzoom,i=this.fancybox.option("Image.click",!1,e),s=this.fancybox.option("Image.touch"),o=e.$el.classList,a=this.fancybox.option("Image.canZoomInClass"),r=this.fancybox.option("Image.canZoomOutClass");o.remove(r),o.remove(a),t&&i==="toggleZoom"?t&&t.content.scale===1&&t.option("maxScale")-t.content.scale>.01?o.add(a):t.content.scale>1&&!s&&o.add(r):i==="close"&&o.add(r)}onWheel(e,t){if(this.fancybox.state==="ready"&&this.fancybox.trigger("Image.wheel",t)!==!1)switch(this.fancybox.option("Image.wheel")){case"zoom":e.state==="done"&&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(this.fancybox.state!=="ready")return;const i=e.Panzoom;if(i&&(i.dragPosition.midPoint||i.dragOffset.x!==0||i.dragOffset.y!==0||i.dragOffset.scale!==1))return;if(this.fancybox.Carousel.Panzoom.lockAxis)return!1;const s=r=>{switch(r){case"toggleZoom":t.stopPropagation(),e.Panzoom&&e.Panzoom.zoomWithClick(t);break;case"close":this.fancybox.close();break;case"next":t.stopPropagation(),this.fancybox.next()}},o=this.fancybox.option("Image.click"),a=this.fancybox.option("Image.doubleClick");a?this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null,s(a)):this.clickTimer=setTimeout(()=>{this.clickTimer=null,s(o)},300):s(o)}onPageChange(e,t){const i=e.getSlide();t.slides.forEach(s=>{s.Panzoom&&s.state==="done"&&s.index!==i.index&&s.Panzoom.panTo({x:0,y:0,scale:1,friction:.8})})}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events)}}xt.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 ae{constructor(e){this.fancybox=e;for(const t of["onChange","onClosing"])this[t]=this[t].bind(this);this.events={initCarousel:this.onChange,"Carousel.change":this.onChange,closing:this.onClosing},this.hasCreatedHistory=!1,this.origHash="",this.timer=null}onChange(e){const t=e.Carousel;this.timer&&clearTimeout(this.timer);const i=t.prevPage===null,s=e.getSlide(),o=new URL(document.URL).hash;let a=!1;if(s.slug)a="#"+s.slug;else{const r=s.$trigger&&s.$trigger.dataset,l=e.option("slug")||r&&r.fancybox;l&&l.length&&l!=="true"&&(a="#"+l+(t.slides.length>1?"-"+(s.index+1):""))}i&&(this.origHash=o!==a?o:""),a&&o!==a&&(this.timer=setTimeout(()=>{try{window.history[i?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+a),i&&(this.hasCreatedHistory=!0)}catch{}},300))}onClosing(){if(this.timer&&clearTimeout(this.timer),this.hasSilentClose!==!0)try{return void window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash||""))}catch{}}attach(e){e.on(this.events)}detach(e){e.off(this.events)}static startFromUrl(){const e=ae.Fancybox;if(!e||e.getInstance()||e.defaults.Hash===!1)return;const{hash:t,slug:i,index:s}=ae.getParsedURL();if(!i)return;let o=document.querySelector(`[data-slug="${t}"]`);if(o&&o.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),e.getInstance())return;const a=document.querySelectorAll(`[data-fancybox="${i}"]`);a.length&&(s===null&&a.length===1?o=a[0]:s&&(o=a[s-1]),o&&o.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}static onHashChange(){const{slug:e,index:t}=ae.getParsedURL(),i=ae.Fancybox,s=i&&i.getInstance();if(s&&s.plugins.Hash){if(e){const o=s.Carousel;if(e===s.option("slug"))return o.slideTo(t-1);for(let l of o.slides)if(l.slug&&l.slug===e)return o.slideTo(l.index);const a=s.getSlide(),r=a.$trigger&&a.$trigger.dataset;if(r&&r.fancybox===e)return o.slideTo(t-1)}s.plugins.Hash.hasSilentClose=!0,s.close()}ae.startFromUrl()}static create(e){function t(){window.addEventListener("hashchange",ae.onHashChange,!1),ae.startFromUrl()}ae.Fancybox=e,Fe&&window.requestAnimationFrame(()=>{/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t)})}static destroy(){window.removeEventListener("hashchange",ae.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}}}const ue={pageXOffset:0,pageYOffset:0,element:()=>document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,activate(n){ue.pageXOffset=window.pageXOffset,ue.pageYOffset=window.pageYOffset,n.requestFullscreen?n.requestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.msRequestFullscreen&&n.msRequestFullscreen()},deactivate(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}};class Kt{constructor(e){this.fancybox=e,this.active=!1,this.handleVisibilityChange=this.handleVisibilityChange.bind(this)}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"),this.fancybox.getSlide().state==="done"&&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()}}const Jt={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:``,click:function(i){i.preventDefault(),fe.element()?fe.deactivate():fe.activate(this.fancybox.$container)}},slideshow:{type:"button",class:"fancybox__button--slideshow",label:"TOGGLE_SLIDESHOW",html:``,click:function(n){n.preventDefault(),ue.element()?ue.deactivate():ue.activate(this.fancybox.$container)}},slideshow:{type:"button",class:"fancybox__button--slideshow",label:"TOGGLE_SLIDESHOW",html:``,click:function(i){i.preventDefault(),this.Slideshow.toggle()}},zoom:{type:"button",class:"fancybox__button--zoom",label:"TOGGLE_ZOOM",html:'',click:function(i){i.preventDefault();const e=this.fancybox.getSlide().Panzoom;e&&e.toggleZoom()}},download:{type:"link",label:"DOWNLOAD",class:"fancybox__button--download",html:'',click:function(i){i.stopPropagation()}},thumbs:{type:"button",label:"TOGGLE_THUMBS",class:"fancybox__button--thumbs",html:'',click:function(i){i.stopPropagation();const e=this.fancybox.plugins.Thumbs;e&&e.toggle()}},close:{type:"button",label:"CLOSE",class:"fancybox__button--close",html:'',attr:{"data-fancybox-close":"",tabindex:0}}}};class pt{constructor(e){this.fancybox=e,this.$container=null,this.state="init";for(const t of["onInit","onPrepare","onDone","onKeydown","onClosing","onChange","onSettle","onRefresh"])this[t]=this[t].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":(t,s)=>this.onRefresh(s),"Image.afterUpdate":(t,s)=>this.onRefresh(s)}}onInit(){if(this.fancybox.option("Toolbar.autoEnable")){let e=!1;for(const t of this.fancybox.items)if(t.type==="image"){e=!0;break}if(!e)return void(this.state="disabled")}for(const e of this.fancybox.option("Toolbar.display"))if((Ce(e)?e.id:e)==="close"){this.fancybox.options.closeButton=!1;break}}onPrepare(){const e=this.fancybox;if(this.state==="init"&&(this.build(),this.update(),this.Slideshow=new Vt(e),!e.Carousel.prevPage&&(e.option("slideshow.autoStart")&&this.Slideshow.activate(),e.option("fullscreen.autoStart")&&!fe.element())))try{fe.activate(e.$container)}catch{}}onFsChange(){window.scrollTo(fe.pageXOffset,fe.pageYOffset)}onSettle(){const e=this.fancybox,t=this.Slideshow;t&&t.isActive()&&(e.getSlide().index!==e.Carousel.slides.length-1||e.option("infinite")?e.getSlide().state==="done"&&t.setTimer():t.deactivate())}onChange(){this.update(),this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer()}onDone(e,t){const s=this.Slideshow;t.index===e.getSlide().index&&(this.update(),s&&s.isActive()&&(e.option("infinite")||t.index!==e.Carousel.slides.length-1?s.setTimer():s.deactivate()))}onRefresh(e){e&&e.index!==this.fancybox.getSlide().index||(this.update(),!this.Slideshow||!this.Slideshow.isActive()||e&&e.state!=="done"||this.Slideshow.deactivate())}onKeydown(e,t,s){t===" "&&this.Slideshow&&(this.Slideshow.toggle(),s.preventDefault())}onClosing(){this.Slideshow&&this.Slideshow.deactivate(),document.removeEventListener("fullscreenchange",this.onFsChange)}createElement(e){let t;e.type==="div"?t=document.createElement("div"):(t=document.createElement(e.type==="link"?"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 n in e.attr)t.setAttribute(n,e.attr[n]);e.label&&t.setAttribute("title",this.fancybox.localize(`{{${e.label}}}`)),e.click&&t.addEventListener("click",e.click.bind(this)),e.id==="prev"&&t.setAttribute("data-fancybox-prev",""),e.id==="next"&&t.setAttribute("data-fancybox-next","");const s=t.querySelector("svg");return s&&(s.setAttribute("role","img"),s.setAttribute("tabindex","-1"),s.setAttribute("xmlns","http://www.w3.org/2000/svg")),t}build(){this.cleanup();const e=this.fancybox.option("Toolbar.items"),t=[{position:"left",items:[]},{position:"center",items:[]},{position:"right",items:[]}],s=this.fancybox.plugins.Thumbs;for(const o of this.fancybox.option("Toolbar.display")){let a,r;if(Ce(o)?(a=o.id,r=Z({},e[a],o)):(a=o,r=e[a]),["counter","next","prev","slideshow"].includes(a)&&this.fancybox.items.length<2)continue;if(a==="fullscreen"){if(!document.fullscreenEnabled||window.fullScreen)continue;document.addEventListener("fullscreenchange",this.onFsChange)}if(a==="thumbs"&&(!s||s.state==="disabled")||!r)continue;let l=r.position||"right",c=t.find(d=>d.position===l);c&&c.items.push(r)}const n=document.createElement("div");n.classList.add("fancybox__toolbar");for(const o of t)if(o.items.length){const a=document.createElement("div");a.classList.add("fancybox__toolbar__items"),a.classList.add(`fancybox__toolbar__items--${o.position}`);for(const r of o.items)a.appendChild(this.createElement(r));n.appendChild(a)}this.fancybox.$carousel.parentNode.insertBefore(n,this.fancybox.$carousel),this.$container=n}update(){const e=this.fancybox.getSlide(),t=e.index,s=this.fancybox.items.length,n=e.downloadSrc||(e.type!=="image"||e.error?null:e.src);for(const r of this.fancybox.$container.querySelectorAll("a.fancybox__button--download"))n?(r.removeAttribute("disabled"),r.removeAttribute("tabindex"),r.setAttribute("href",n),r.setAttribute("download",n),r.setAttribute("target","_blank")):(r.setAttribute("disabled",""),r.setAttribute("tabindex",-1),r.removeAttribute("href"),r.removeAttribute("download"));const o=e.Panzoom,a=o&&o.option("maxScale")>o.option("baseScale");for(const r of this.fancybox.$container.querySelectorAll(".fancybox__button--zoom"))a?r.removeAttribute("disabled"):r.setAttribute("disabled","");for(const r of this.fancybox.$container.querySelectorAll("[data-fancybox-index]"))r.innerHTML=e.index+1;for(const r of this.fancybox.$container.querySelectorAll("[data-fancybox-count]"))r.innerHTML=s;if(!this.fancybox.option("infinite")){for(const r of this.fancybox.$container.querySelectorAll("[data-fancybox-prev]"))t===0?r.setAttribute("disabled",""):r.removeAttribute("disabled");for(const r of this.fancybox.$container.querySelectorAll("[data-fancybox-next]"))t===s-1?r.setAttribute("disabled",""):r.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()}}pt.defaults=Gt;const qt={ScrollLock:class{constructor(i){this.fancybox=i,this.viewport=null,this.pendingUpdate=null;for(const e of["onReady","onResize","onTouchstart","onTouchmove"])this[e]=this[e].bind(this)}onReady(){const i=window.visualViewport;i&&(this.viewport=i,this.startY=0,i.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 i=this.fancybox,e=this.viewport,t=e.scale||1,s=i.$container;if(!s)return;let n="",o="",a="";t-1>.1&&(n=e.width*t+"px",o=e.height*t+"px",a=`translate3d(${e.offsetLeft}px, ${e.offsetTop}px, 0) scale(${1/t})`),s.style.width=n,s.style.height=o,s.style.transform=a}onTouchstart(i){this.startY=i.touches?i.touches[0].screenY:i.screenY}onTouchmove(i){const e=this.startY,t=window.innerWidth/window.document.documentElement.clientWidth;if(!i.cancelable||i.touches.length>1||t!==1)return;const s=Oe(i.composedPath()[0]);if(!s)return void i.preventDefault();const n=window.getComputedStyle(s),o=parseInt(n.getPropertyValue("height"),10),a=i.touches?i.touches[0].screenY:i.screenY,r=e<=a&&s.scrollTop===0,l=e>=a&&s.scrollHeight-s.scrollTop===o;(r||l)&&i.preventDefault()}onWheel(i){Oe(i.composedPath()[0])||i.preventDefault()}cleanup(){this.pendingUpdate&&(cancelAnimationFrame(this.pendingUpdate),this.pendingUpdate=null);const i=this.viewport;i&&(i.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()}},Thumbs:dt,Html:ut,Toolbar:pt,Image:ft,Hash:ae},gt={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"}},Le=new Map;let jt=0;class O extends Ge{constructor(e,t={}){e=e.map(s=>(s.width&&(s._width=s.width),s.height&&(s._height=s.height),s)),super(Z(!0,{},gt,t)),this.bindHandlers(),this.state="init",this.setItems(e),this.attachPlugins(O.Plugins),this.trigger("init"),this.option("hideScrollbar")===!0&&this.hideScrollbar(),this.initLayout(),this.initCarousel(),this.attachEvents(),Le.set(this.id,this),this.trigger("prepare"),this.state="ready",this.trigger("ready"),this.$container.setAttribute("aria-hidden","false"),this.option("trapFocus")&&this.focus()}option(e,...t){const s=this.getSlide();let n=s?s[e]:void 0;return n!==void 0?(typeof n=="function"&&(n=n.call(this,this,...t)),n):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(s=>this.$container.setAttribute(...s)),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||++jt,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 s of e){const n=s.$trigger;if(n){const r=n.dataset||{};s.src=r.src||n.getAttribute("href")||s.src,s.type=r.type||s.type,!s.src&&n instanceof HTMLImageElement&&(s.src=n.currentSrc||s.$trigger.src)}let o=s.$thumb;if(!o){let r=s.$trigger&&s.$trigger.origTarget;r&&(o=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),!o&&s.$trigger&&(o=s.$trigger instanceof HTMLImageElement?s.$trigger:s.$trigger.querySelector("img:not([aria-hidden])"))}s.$thumb=o||null;let a=s.thumb;!a&&o&&(a=o.currentSrc||o.src,!a&&o.dataset&&(a=o.dataset.lazySrc||o.dataset.src)),a||s.type!=="image"||(a=s.src),s.thumb=a||null,s.caption=s.caption||"",t.push(s)}this.items=t}initCarousel(){return this.Carousel=new Ee(this.$carousel,Z(!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 s=t.caption||"";if(typeof this.options.caption=="function"&&(s=this.options.caption.call(this,this,this.Carousel,t)),typeof s=="string"&&s.length){const n=document.createElement("div"),o=`fancybox__caption_${this.id}_${t.index}`;n.className="fancybox__caption",n.innerHTML=s,n.setAttribute("id",o),t.$caption=t.$el.appendChild(n),t.$el.classList.add("has-caption"),t.$el.setAttribute("aria-labelledby",o)}}onSettle(){this.option("autoFocus")&&this.focus()}onFocus(e){this.isTopmost()&&this.focus(e)}onClick(e){if(e.defaultPrevented)return;let t=e.composedPath()[0];if(t.matches("[data-fancybox-close]"))return e.preventDefault(),void O.close(!1,e);if(t.matches("[data-fancybox-next]"))return e.preventDefault(),void O.next();if(t.matches("[data-fancybox-prev]"))return e.preventDefault(),void O.prev();const s=document.activeElement;if(s){if(s.closest("[contenteditable]"))return;t.matches(et)||s.blur()}if(!t.closest(".fancybox__content")&&!getSelection().toString().length&&this.trigger("click",e)!==!1)switch(this.option("click")){case"close":this.close();break;case"next":this.next()}}onTouchMove(){const e=this.getSlide().Panzoom;return!e||e.content.scale===1}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()):e.lockAxis==="y"&&e.panTo({y:0})}onTransform(e){if(this.$backdrop){const t=Math.abs(e.content.y),s=t<1?"":Math.max(.33,Math.min(1,1-t/e.content.fitHeight*1.5));this.$container.style.setProperty("--fancybox-ts",s?"0s":""),this.$container.style.setProperty("--fancybox-opacity",s)}}onMousedown(){this.state==="ready"&&document.body.classList.add("is-using-mouse")}onKeydown(e){if(!this.isTopmost())return;document.body.classList.remove("is-using-mouse");const t=e.key,s=this.option("keyboard");if(!s||e.ctrlKey||e.altKey||e.shiftKey)return;const n=e.composedPath()[0],o=document.activeElement&&document.activeElement.classList,a=o&&o.contains("carousel__button");if(t!=="Escape"&&!a&&(e.target.isContentEditable||["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName)!==-1)||this.trigger("keydown",t,e)===!1)return;const r=s[t];typeof this[r]=="function"&&this[r]()}getSlide(){const e=this.Carousel;if(!e)return null;const t=e.page===null?e.option("initialPage"):e.page,s=e.pages||[];return s.length&&s[t]?s[t].slides[0]:null}focus(e){if(O.ignoreFocusChange||["init","closing","customClosing","destroy"].indexOf(this.state)>-1)return;const t=this.$container,s=this.getSlide(),n=s.state==="done"?s.$el:null;if(n&&n.contains(document.activeElement))return;e&&e.preventDefault(),O.ignoreFocusChange=!0;const o=Array.from(t.querySelectorAll(et));let a,r=[];for(let l of o){const c=l.offsetParent,d=n&&n.contains(l),u=!this.Carousel.$viewport.contains(l);c&&(d||u)?(r.push(l),l.dataset.origTabindex!==void 0&&(l.tabIndex=l.dataset.origTabindex,l.removeAttribute("data-orig-tabindex")),(l.hasAttribute("autoFocus")||!a&&d&&!l.classList.contains("carousel__button"))&&(a=l)):(l.dataset.origTabindex=l.dataset.origTabindex===void 0?l.getAttribute("tabindex"):l.dataset.origTabindex,l.tabIndex=-1)}e?r.indexOf(e.target)>-1?this.lastFocus=e.target:this.lastFocus===t?$e(r[r.length-1]):$e(t):this.option("autoFocus")&&a?$e(a):r.indexOf(document.activeElement)<0&&$e(t),this.lastFocus=document.activeElement,O.ignoreFocusChange=!1}hideScrollbar(){if(!Ie)return;const e=window.innerWidth-document.documentElement.getBoundingClientRect().width,t="fancybox-style-noscroll";let s=document.getElementById(t);s||e>0&&(s=document.createElement("style"),s.id=t,s.type="text/css",s.innerHTML=`.compensate-for-scrollbar {padding-right: ${e}px;}`,document.getElementsByTagName("head")[0].appendChild(s),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,s={}){let n;const o=e.$el;if(t instanceof HTMLElement)["img","iframe","video","audio"].indexOf(t.nodeName.toLowerCase())>-1?(n=document.createElement("div"),n.appendChild(t)):n=t;else{const a=document.createRange().createContextualFragment(t);n=document.createElement("div"),n.appendChild(a)}if(e.filter&&!e.error&&(n=n.querySelector(e.filter)),n instanceof Element)return e._className=`has-${s.suffix||e.type||"unknown"}`,o.classList.add(e._className),n.classList.add("fancybox__content"),n.style.display!=="none"&&getComputedStyle(n).getPropertyValue("display")!=="none"||(n.style.display=e.display||this.option("defaultDisplay")||"flex"),e.id&&n.setAttribute("id",e.id),e.$content=n,o.prepend(n),this.manageCloseButton(e),e.state!=="loading"&&this.revealContent(e),n;this.setError(e,"{{ELEMENT_NOT_FOUND}}")}manageCloseButton(e){const t=e.closeButton===void 0?this.option("closeButton"):e.closeButton;if(!t||t==="top"&&this.$closeButton)return;const s=document.createElement("button");s.classList.add("carousel__button","is-close"),s.setAttribute("title",this.options.l10n.CLOSE),s.innerHTML=this.option("template.closeButton"),s.addEventListener("click",n=>this.close(n)),t==="inside"?(e.$closeButton&&e.$closeButton.remove(),e.$closeButton=e.$content.appendChild(s)):this.$closeButton=this.$container.insertBefore(s,this.$container.firstChild)}revealContent(e){this.trigger("reveal",e),e.$content.style.visibility="";let t=!1;e.error||e.state==="loading"||this.Carousel.prevPage!==null||e.index!==this.options.startIndex||(t=e.showClass===void 0?this.option("showClass"):e.showClass),t?(e.state="animating",this.animateCSS(e.$content,t,()=>{this.done(e)})):this.done(e)}animateCSS(e,t,s){if(e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!0,cancelable:!0})),!e||!t)return void(typeof s=="function"&&s());const n=function(o){o.currentTarget===this&&(e.removeEventListener("animationend",n),s&&s(),e.classList.remove(t))};e.addEventListener("animationend",n),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 s=document.createElement("div");s.classList.add("fancybox-error"),s.innerHTML=this.localize(t||"{{ERROR}}
"),this.setContent(e,s,{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")),e.state==="loading"&&(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)}isClosing(){return["closing","customClosing","destroy"].includes(this.state)}isTopmost(){return O.getInstance().id==this.id}close(e){if(e&&e.preventDefault(),this.isClosing()||this.trigger("shouldClose",e)===!1||(this.state="closing",this.Carousel.Panzoom.destroy(),this.detachEvents(),this.trigger("closing",e),this.state==="destroy"))return;this.$container.setAttribute("aria-hidden","true"),this.$container.classList.add("is-closing");const t=this.getSlide();if(this.Carousel.slides.forEach(s=>{s.$content&&s.index!==t.index&&this.Carousel.trigger("removeSlide",s)}),this.state==="closing"){const s=t.hideClass===void 0?this.option("hideClass"):t.hideClass;this.animateCSS(t.$content,s,()=>{this.destroy()},!0)}}destroy(){if(this.state==="destroy")return;this.state="destroy",this.trigger("destroy");const e=this.option("placeFocusBack")?this.option("triggerTarget",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&&$e(e),Le.delete(this.id);const t=O.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 O(e,t)}static fromEvent(e,t={}){if(e.defaultPrevented||e.button&&e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey)return;const s=e.composedPath()[0];let n,o,a,r=s;if((r.matches("[data-fancybox-trigger]")||(r=r.closest("[data-fancybox-trigger]")))&&(t.triggerTarget=r,n=r&&r.dataset&&r.dataset.fancyboxTrigger),n){const c=document.querySelectorAll(`[data-fancybox="${n}"]`),d=parseInt(r.dataset.fancyboxIndex,10)||0;r=c.length?c[d]:r}Array.from(O.openers.keys()).reverse().some(c=>{a=r||s;let d=!1;try{a instanceof Element&&(typeof c=="string"||c instanceof String)&&(d=a.matches(c)||(a=a.closest(c)))}catch{}return!!d&&(e.preventDefault(),o=c,!0)});let l=!1;if(o){t.event=e,t.target=a,a.origTarget=s,l=O.fromOpener(o,t);const c=O.getInstance();c&&c.state==="ready"&&e.detail&&document.body.classList.add("is-using-mouse")}return l}static fromOpener(e,t={}){let s=[],n=t.startIndex||0,o=t.target||null;const a=(t=Z({},t,O.openers.get(e))).groupAll!==void 0&&t.groupAll,r=t.groupAttr===void 0?"data-fancybox":t.groupAttr,l=r&&o?o.getAttribute(`${r}`):"";if(!o||l||a){const d=t.root||(o?o.getRootNode():document.body);s=[].slice.call(d.querySelectorAll(e))}if(o&&!a&&(s=l?s.filter(d=>d.getAttribute(`${r}`)===l):[o]),!s.length)return!1;const c=O.getInstance();return!(c&&s.indexOf(c.options.$trigger)>-1)&&(n=o?s.indexOf(o):n,s=s.map(function(d){const u=["false","0","no","null","undefined"],h=["true","1","yes"],p=Object.assign({},d.dataset),m={};for(let[g,f]of Object.entries(p))if(g!=="fancybox")if(g==="width"||g==="height")m[`_${g}`]=f;else if(typeof f=="string"||f instanceof String)if(u.indexOf(f)>-1)m[g]=!1;else if(h.indexOf(m[g])>-1)m[g]=!0;else try{m[g]=JSON.parse(f)}catch{m[g]=f}else m[g]=f;return d instanceof Element&&(m.$trigger=d),m}),new O(s,Z({},t,{startIndex:n,$trigger:o})))}static bind(e,t={}){function s(){document.body.addEventListener("click",O.fromEvent,!1)}Ie&&(O.openers.size||(/complete|interactive|loaded/.test(document.readyState)?s():document.addEventListener("DOMContentLoaded",s)),O.openers.set(e,t))}static unbind(e){O.openers.delete(e),O.openers.size||O.destroy()}static destroy(){let e;for(;e=O.getInstance();)e.destroy();O.openers=new Map,document.body.removeEventListener("click",O.fromEvent,!1)}static getInstance(e){return e?Le.get(e):Array.from(Le.values()).reverse().find(t=>!t.isClosing()&&t)||null}static close(e=!0,t){if(e)for(const s of Le.values())s.close(t);else{const s=O.getInstance();s&&s.close(t)}}static next(){const e=O.getInstance();e&&e.next()}static prev(){const e=O.getInstance();e&&e.prev()}}O.version="4.0.31",O.defaults=gt,O.openers=new Map,O.Plugins=qt,O.bind("[data-fancybox]");for(const[i,e]of Object.entries(O.Plugins||{}))typeof e.create=="function"&&e.create(O);var Xt={exports:{}};(function(i){(function(e,t){var s=t(e,e.document,Date);e.lazySizes=s,i.exports&&(i.exports=s)})(typeof window<"u"?window:{},function(t,s,n){var o,a;if(function(){var T,$={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};a=t.lazySizesConfig||t.lazysizesConfig||{};for(T in $)T in a||(a[T]=$[T])}(),!s||!s.getElementsByClassName)return{init:function(){},cfg:a,noSupport:!0};var r=s.documentElement,l=t.HTMLPictureElement,c="addEventListener",d="getAttribute",u=t[c].bind(t),h=t.setTimeout,p=t.requestAnimationFrame||h,m=t.requestIdleCallback,g=/^picture$/i,f=["load","error","lazyincluded","_lazyloaded"],x={},v=Array.prototype.forEach,y=function(T,$){return x[$]||(x[$]=new RegExp("(\\s|^)"+$+"(\\s|$)")),x[$].test(T[d]("class")||"")&&x[$]},S=function(T,$){y(T,$)||T.setAttribute("class",(T[d]("class")||"").trim()+" "+$)},M=function(T,$){var A;(A=y(T,$))&&T.setAttribute("class",(T[d]("class")||"").replace(A," "))},k=function(T,$,A){var H=A?c:"removeEventListener";A&&k(T,$),f.forEach(function(R){T[H](R,$)})},I=function(T,$,A,H,R){var D=s.createEvent("Event");return A||(A={}),A.instance=o,D.initEvent($,!H,!R),D.detail=A,T.dispatchEvent(D),D},_=function(T,$){var A;!l&&(A=t.picturefill||a.pf)?($&&$.src&&!T[d]("srcset")&&T.setAttribute("srcset",$.src),A({reevaluate:!0,elements:[T]})):$&&$.src&&(T.src=$.src)},V=function(T,$){return(getComputedStyle(T,null)||{})[$]},L=function(T,$,A){for(A=A||T.offsetWidth;A49?function(){m(D,{timeout:R}),R!==a.ricTimeout&&(R=a.ricTimeout)}:b(function(){h(D)},!0);return function(B){var W;(B=B===!0)&&(R=33),!$&&($=!0,W=H-(n.now()-A),W<0&&(W=0),B||W<9?q():h(q,W))}},N=function(T){var $,A,H=99,R=function(){$=null,T()},D=function(){var q=n.now()-A;q0,Y&&V(X,"overflow")!="visible"&&(F=X.getBoundingClientRect(),Y=ee>F.left&&WF.top-1&&B500&&r.clientWidth>500?500:370:a.expand,o._defEx=he,ve=he*a.expFactor,ye=a.hFac,me=null,we2&&H>2&&!s.hidden?(we=ve,be=0):H>1&&be>1&&oe<6?we=he:we=kt),pe!==U&&(D=innerWidth+U*ye,q=innerHeight+U,ce=U*-1,pe=U),F=ne[z].getBoundingClientRect(),(le=F.bottom)>=ce&&(B=F.top)<=q&&(ee=F.right)>=ce*ye&&(W=F.left)<=D&&(le||ee||W||B)&&(a.loadHidden||Xe(ne[z]))&&($&&oe<3&&!de&&(H<3||be<4)||zt(ne[z],U))){if(Te(ne[z]),Y=!0,oe>9)break}else!Y&&$&&!X&&oe<4&&be<4&&H>2&&(T[0]||a.preloadAfterLoad)&&(T[0]||!de&&(le||ee||W||B||ne[z][d](a.sizesAttr)!="auto"))&&(X=T[0]||ne[z])}X&&!Y&&Te(X)}},te=w(Ye),Ue=function(E){var z=E.target;if(z._lazyCache){delete z._lazyCache;return}je(E),S(z,a.loadedClass),M(z,a.loadingClass),k(z,Ze),I(z,"lazyloaded")},At=b(Ue),Ze=function(E){At({target:E.target})},Ot=function(E,z){var F=E.getAttribute("data-load-mode")||a.iframeLoadMode;F==0?E.contentWindow.location.replace(z):F==1&&(E.src=z)},It=function(E){var z,F=E[d](a.srcsetAttr);(z=a.customMedia[E[d]("data-media")||E[d]("media")])&&E.setAttribute("media",z),F&&E.setAttribute("srcset",F)},_t=b(function(E,z,F,X,Y){var U,ce,de,pe,he,ve;(he=I(E,"lazybeforeunveil",z)).defaultPrevented||(X&&(F?S(E,a.autosizesClass):E.setAttribute("sizes",X)),ce=E[d](a.srcsetAttr),U=E[d](a.srcAttr),Y&&(de=E.parentNode,pe=de&&g.test(de.nodeName||"")),ve=z.firesLoad||"src"in E&&(ce||U||pe),he={target:E},S(E,a.loadingClass),ve&&(clearTimeout(A),A=h(je,2500),k(E,Ze,!0)),pe&&v.call(de.getElementsByTagName("source"),It),ce?E.setAttribute("srcset",ce):U&&!pe&&(Pt.test(E.nodeName)?Ot(E,U):E.src=U),Y&&(ce||pe)&&_(E,{src:U})),E._lazyRace&&delete E._lazyRace,M(E,a.lazyClass),P(function(){var ye=E.complete&&E.naturalWidth>1;(!ve||ye)&&(ye&&S(E,a.fastLoadedClass),Ue(he),E._lazyCache=!0,h(function(){"_lazyCache"in E&&delete E._lazyCache},9)),E.loading=="lazy"&&oe--},!0)}),Te=function(E){if(!E._lazyRace){var z,F=Lt.test(E.nodeName),X=F&&(E[d](a.sizesAttr)||E[d]("sizes")),Y=X=="auto";(Y||!$)&&F&&(E[d]("src")||E.srcset)&&!E.complete&&!y(E,a.errorClass)&&y(E,a.lazyClass)||(z=I(E,"lazyunveilread").detail,Y&&re.updateElem(E,!0,E.offsetWidth),E._lazyRace=!0,oe++,_t(E,z,Y,X,F))}},Nt=N(function(){a.loadMode=3,te()}),Ke=function(){a.loadMode==3&&(a.loadMode=2),Nt()},ke=function(){if(!$){if(n.now()-R<999){h(ke,999);return}$=!0,a.loadMode=3,te(),u("scroll",Ke,!0)}};return{_:function(){R=n.now(),o.elements=s.getElementsByClassName(a.lazyClass),T=s.getElementsByClassName(a.lazyClass+" "+a.preloadClass),u("scroll",te,!0),u("resize",te,!0),u("pageshow",function(E){if(E.persisted){var z=s.querySelectorAll("."+a.loadingClass);z.length&&z.forEach&&p(function(){z.forEach(function(F){F.complete&&Te(F)})})}}),t.MutationObserver?new MutationObserver(te).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r[c]("DOMNodeInserted",te,!0),r[c]("DOMAttrModified",te,!0),setInterval(te,999)),u("hashchange",te,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(E){s[c](E,te,!0)}),/d$|^c/.test(s.readyState)?ke():(u("load",ke),s[c]("DOMContentLoaded",te),h(ke,2e4)),o.elements.length?(Ye(),P._lsFlush()):te()},checkElems:te,unveil:Te,_aLSL:Ke}}(),re=function(){var T,$=b(function(D,q,B,W){var ee,le,me;if(D._lazysizesWidth=W,W+="px",D.setAttribute("sizes",W),g.test(q.nodeName||""))for(ee=q.getElementsByTagName("source"),le=0,me=ee.length;le{typeof i[t]>"u"?i[t]=e[t]:it(e[t])&&it(i[t])&&Object.keys(e[t]).length>0&&qe(i[t],e[t])})}const mt={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function K(){const i=typeof document<"u"?document:{};return qe(i,mt),i}const Yt={document:mt,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(i){return typeof setTimeout>"u"?(i(),null):setTimeout(i,0)},cancelAnimationFrame(i){typeof setTimeout>"u"||clearTimeout(i)}};function j(){const i=typeof window<"u"?window:{};return qe(i,Yt),i}function Ut(i){const e=i.__proto__;Object.defineProperty(i,"__proto__",{get(){return e},set(t){e.__proto__=t}})}class ge extends Array{constructor(e){typeof e=="number"?super(e):(super(...e||[]),Ut(this))}}function Me(i=[]){const e=[];return i.forEach(t=>{Array.isArray(t)?e.push(...Me(t)):e.push(t)}),e}function vt(i,e){return Array.prototype.filter.call(i,e)}function Zt(i){const e=[];for(let t=0;t=0&&o.indexOf(">")>=0){let a="div";o.indexOf("t.split(" ")));return this.forEach(t=>{t.classList.add(...e)}),this}function Qt(...i){const e=Me(i.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.remove(...e)}),this}function ei(...i){const e=Me(i.map(t=>t.split(" ")));this.forEach(t=>{e.forEach(s=>{t.classList.toggle(s)})})}function ti(...i){const e=Me(i.map(t=>t.split(" ")));return vt(this,t=>e.filter(s=>t.classList.contains(s)).length>0).length>0}function ii(i,e){if(arguments.length===1&&typeof i=="string")return this[0]?this[0].getAttribute(i):void 0;for(let t=0;t=0;u-=1){const h=d[u];s&&h.listener===s||s&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===s?(c.removeEventListener(r,h.proxyListener,n),d.splice(u,1)):s||(c.removeEventListener(r,h.proxyListener,n),d.splice(u,1))}}}return this}function li(...i){const e=j(),t=i[0].split(" "),s=i[1];for(let n=0;nd>0),r.dispatchEvent(l),r.dom7EventData=[],delete r.dom7EventData}}}return this}function ci(i){const e=this;function t(s){s.target===this&&(i.call(this,s),e.off("transitionend",t))}return i&&e.on("transitionend",t),this}function di(i){if(this.length>0){if(i){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function hi(i){if(this.length>0){if(i){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function ui(){if(this.length>0){const i=j(),e=K(),t=this[0],s=t.getBoundingClientRect(),n=e.body,o=t.clientTop||n.clientTop||0,a=t.clientLeft||n.clientLeft||0,r=t===i?i.scrollY:t.scrollTop,l=t===i?i.scrollX:t.scrollLeft;return{top:s.top+r-o,left:s.left+l-a}}return null}function fi(){const i=j();return this[0]?i.getComputedStyle(this[0],null):{}}function pi(i,e){const t=j();let s;if(arguments.length===1)if(typeof i=="string"){if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(i)}else{for(s=0;s{i.apply(e,[e,t])}),this):this}function mi(i){const e=vt(this,i);return C(e)}function vi(i){if(typeof i>"u")return this[0]?this[0].innerHTML:null;for(let e=0;e"u")return this[0]?this[0].textContent.trim():null;for(let e=0;e"u")return!1;if(typeof i=="string"){if(s.matches)return s.matches(i);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(i);if(s.msMatchesSelector)return s.msMatchesSelector(i);for(n=C(i),o=0;o"u")return this;const e=this.length;if(i>e-1)return C([]);if(i<0){const t=e+i;return t<0?C([]):C([this[t]])}return C([this[i]])}function Si(...i){let e;const t=K();for(let s=0;s=0;s-=1)this[t].insertBefore(n.childNodes[s],this[t].childNodes[0])}else if(i instanceof ge)for(s=0;s0?i?this[0].nextElementSibling&&C(this[0].nextElementSibling).is(i)?C([this[0].nextElementSibling]):C([]):this[0].nextElementSibling?C([this[0].nextElementSibling]):C([]):C([])}function Ti(i){const e=[];let t=this[0];if(!t)return C([]);for(;t.nextElementSibling;){const s=t.nextElementSibling;i?C(s).is(i)&&e.push(s):e.push(s),t=s}return C(e)}function $i(i){if(this.length>0){const e=this[0];return i?e.previousElementSibling&&C(e.previousElementSibling).is(i)?C([e.previousElementSibling]):C([]):e.previousElementSibling?C([e.previousElementSibling]):C([])}return C([])}function Li(i){const e=[];let t=this[0];if(!t)return C([]);for(;t.previousElementSibling;){const s=t.previousElementSibling;i?C(s).is(i)&&e.push(s):e.push(s),t=s}return C(e)}function Pi(i){const e=[];for(let t=0;t"u"?C([]):(e.is(i)||(e=e.parents(i).eq(0)),e)}function zi(i){const e=[];for(let t=0;t{Object.defineProperty(C.fn,i,{value:st[i],writable:!0})});function Ii(i){const e=i;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function Ve(i,e=0){return setTimeout(i,e)}function Pe(){return Date.now()}function _i(i){const e=j();let t;return e.getComputedStyle&&(t=e.getComputedStyle(i,null)),!t&&i.currentStyle&&(t=i.currentStyle),t||(t=i.style),t}function Ni(i,e="x"){const t=j();let s,n,o;const a=_i(i);return t.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(r=>r.replace(",",".")).join(", ")),o=new t.WebKitCSSMatrix(n==="none"?"":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(",")),e==="x"&&(t.WebKitCSSMatrix?n=o.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),e==="y"&&(t.WebKitCSSMatrix?n=o.m42:s.length===16?n=parseFloat(s[13]):n=parseFloat(s[5])),n||0}function ze(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function Di(i){return typeof window<"u"&&typeof window.HTMLElement<"u"?i instanceof HTMLElement:i&&(i.nodeType===1||i.nodeType===11)}function se(...i){const e=Object(i[0]),t=["__proto__","constructor","prototype"];for(let s=1;st.indexOf(a)<0);for(let a=0,r=o.length;an?"next":"prev",c=(u,h)=>l==="next"&&u>=h||l==="prev"&&u<=h,d=()=>{a=new Date().getTime(),o===null&&(o=a);const u=Math.max(Math.min((a-o)/r,1),0),h=.5-Math.cos(u*Math.PI)/2;let p=n+h*(e-n);if(c(p,e)&&(p=e),i.wrapperEl.scrollTo({[t]:p}),c(p,e)){i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.scrollSnapType="",setTimeout(()=>{i.wrapperEl.style.overflow="",i.wrapperEl.scrollTo({[t]:p})}),s.cancelAnimationFrame(i.cssModeFrameID);return}i.cssModeFrameID=s.requestAnimationFrame(d)};d()}let Be;function Bi(){const i=j(),e=K();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch),passiveListener:function(){let s=!1;try{const n=Object.defineProperty({},"passive",{get(){s=!0}});i.addEventListener("testPassiveListener",null,n)}catch{}return s}(),gestures:function(){return"ongesturestart"in i}()}}function yt(){return Be||(Be=Bi()),Be}let Fe;function Fi({userAgent:i}={}){const e=yt(),t=j(),s=t.navigator.platform,n=i||t.navigator.userAgent,o={ios:!1,android:!1},a=t.screen.width,r=t.screen.height,l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);const d=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let p=s==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&p&&e.touch&&m.indexOf(`${a}x${r}`)>=0&&(c=n.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!h&&(o.os="android",o.android=!0),(c||u||d)&&(o.os="ios",o.ios=!0),o}function Ri(i={}){return Fe||(Fe=Fi(i)),Fe}let Re;function Hi(){const i=j();function e(){const t=i.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isSafari:e(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)}}function Wi(){return Re||(Re=Hi()),Re}function Vi({swiper:i,on:e,emit:t}){const s=j();let n=null,o=null;const a=()=>{!i||i.destroyed||!i.initialized||(t("beforeResize"),t("resize"))},r=()=>{!i||i.destroyed||!i.initialized||(n=new ResizeObserver(d=>{o=s.requestAnimationFrame(()=>{const{width:u,height:h}=i;let p=u,m=h;d.forEach(({contentBoxSize:g,contentRect:f,target:x})=>{x&&x!==i.el||(p=f?f.width:(g[0]||g).inlineSize,m=f?f.height:(g[0]||g).blockSize)}),(p!==u||m!==h)&&a()})}),n.observe(i.el))},l=()=>{o&&s.cancelAnimationFrame(o),n&&n.unobserve&&i.el&&(n.unobserve(i.el),n=null)},c=()=>{!i||i.destroyed||!i.initialized||t("orientationchange")};e("init",()=>{if(i.params.resizeObserver&&typeof s.ResizeObserver<"u"){r();return}s.addEventListener("resize",a),s.addEventListener("orientationchange",c)}),e("destroy",()=>{l(),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",c)})}function Gi({swiper:i,extendParams:e,on:t,emit:s}){const n=[],o=j(),a=(c,d={})=>{const u=o.MutationObserver||o.WebkitMutationObserver,h=new u(p=>{if(p.length===1){s("observerUpdate",p[0]);return}const m=function(){s("observerUpdate",p[0])};o.requestAnimationFrame?o.requestAnimationFrame(m):o.setTimeout(m,0)});h.observe(c,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:typeof d.childList>"u"?!0:d.childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),n.push(h)},r=()=>{if(i.params.observer){if(i.params.observeParents){const c=i.$el.parents();for(let d=0;d{n.forEach(c=>{c.disconnect()}),n.splice(0,n.length)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),t("init",r),t("destroy",l)}const qi={on(i,e,t){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const n=t?"unshift":"push";return i.split(" ").forEach(o=>{s.eventsListeners[o]||(s.eventsListeners[o]=[]),s.eventsListeners[o][n](e)}),s},once(i,e,t){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function n(...o){s.off(i,n),n.__emitterProxy&&delete n.__emitterProxy,e.apply(s,o)}return n.__emitterProxy=e,s.on(i,n,t)},onAny(i,e){const t=this;if(!t.eventsListeners||t.destroyed||typeof i!="function")return t;const s=e?"unshift":"push";return t.eventsAnyListeners.indexOf(i)<0&&t.eventsAnyListeners[s](i),t},offAny(i){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(i);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(i,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||i.split(" ").forEach(s=>{typeof e>"u"?t.eventsListeners[s]=[]:t.eventsListeners[s]&&t.eventsListeners[s].forEach((n,o)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&t.eventsListeners[s].splice(o,1)})}),t},emit(...i){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,s,n;return typeof i[0]=="string"||Array.isArray(i[0])?(t=i[0],s=i.slice(1,i.length),n=e):(t=i[0].events,s=i[0].data,n=i[0].context||e),s.unshift(n),(Array.isArray(t)?t:t.split(" ")).forEach(a=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(r=>{r.apply(n,[a,...s])}),e.eventsListeners&&e.eventsListeners[a]&&e.eventsListeners[a].forEach(r=>{r.apply(n,s)})}),e}};function ji(){const i=this;let e,t;const s=i.$el;typeof i.params.width<"u"&&i.params.width!==null?e=i.params.width:e=s[0].clientWidth,typeof i.params.height<"u"&&i.params.height!==null?t=i.params.height:t=s[0].clientHeight,!(e===0&&i.isHorizontal()||t===0&&i.isVertical())&&(e=e-parseInt(s.css("padding-left")||0,10)-parseInt(s.css("padding-right")||0,10),t=t-parseInt(s.css("padding-top")||0,10)-parseInt(s.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function Xi(){const i=this;function e(L){return i.isHorizontal()?L:{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"}[L]}function t(L,P){return parseFloat(L.getPropertyValue(e(P))||0)}const s=i.params,{$wrapperEl:n,size:o,rtlTranslate:a,wrongRTL:r}=i,l=i.virtual&&s.virtual.enabled,c=l?i.virtual.slides.length:i.slides.length,d=n.children(`.${i.params.slideClass}`),u=l?i.virtual.slides.length:d.length;let h=[];const p=[],m=[];let g=s.slidesOffsetBefore;typeof g=="function"&&(g=s.slidesOffsetBefore.call(i));let f=s.slidesOffsetAfter;typeof f=="function"&&(f=s.slidesOffsetAfter.call(i));const x=i.snapGrid.length,v=i.slidesGrid.length;let y=s.spaceBetween,S=-g,M=0,k=0;if(typeof o>"u")return;typeof y=="string"&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*o),i.virtualSize=-y,a?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),s.centeredSlides&&s.cssMode&&(Ae(i.wrapperEl,"--swiper-centered-offset-before",""),Ae(i.wrapperEl,"--swiper-centered-offset-after",""));const I=s.grid&&s.grid.rows>1&&i.grid;I&&i.grid.initSlides(u);let _;const V=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(L=>typeof s.breakpoints[L].slidesPerView<"u").length>0;for(let L=0;L1&&h.push(i.virtualSize-o)}if(h.length===0&&(h=[0]),s.spaceBetween!==0){const L=i.isHorizontal()&&a?"marginLeft":e("marginRight");d.filter((P,b)=>s.cssMode?b!==d.length-1:!0).css({[L]:`${y}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let L=0;m.forEach(b=>{L+=b+(s.spaceBetween?s.spaceBetween:0)}),L-=s.spaceBetween;const P=L-o;h=h.map(b=>b<0?-g:b>P?P+f:b)}if(s.centerInsufficientSlides){let L=0;if(m.forEach(P=>{L+=P+(s.spaceBetween?s.spaceBetween:0)}),L-=s.spaceBetween,L{h[w]=b-P}),p.forEach((b,w)=>{p[w]=b+P})}}if(Object.assign(i,{slides:d,snapGrid:h,slidesGrid:p,slidesSizesGrid:m}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){Ae(i.wrapperEl,"--swiper-centered-offset-before",`${-h[0]}px`),Ae(i.wrapperEl,"--swiper-centered-offset-after",`${i.size/2-m[m.length-1]/2}px`);const L=-i.snapGrid[0],P=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(b=>b+L),i.slidesGrid=i.slidesGrid.map(b=>b+P)}if(u!==c&&i.emit("slidesLengthChange"),h.length!==x&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),p.length!==v&&i.emit("slidesGridLengthChange"),s.watchSlidesProgress&&i.updateSlidesOffset(),!l&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const L=`${s.containerModifierClass}backface-hidden`,P=i.$el.hasClass(L);u<=s.maxBackfaceHiddenSlides?P||i.$el.addClass(L):P&&i.$el.removeClass(L)}}function Yi(i){const e=this,t=[],s=e.virtual&&e.params.virtual.enabled;let n=0,o;typeof i=="number"?e.setTransition(i):i===!0&&e.setTransition(e.params.speed);const a=r=>s?e.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===r)[0]:e.slides.eq(r)[0];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||C([])).each(r=>{t.push(r)});else for(o=0;oe.slides.length&&!s)break;t.push(a(r))}else t.push(a(e.activeIndex));for(o=0;on?r:n}(n||n===0)&&e.$wrapperEl.css("height",`${n}px`)}function Ui(){const i=this,e=i.slides;for(let t=0;t"u"&&e.updateSlidesOffset();let a=-i;n&&(a=i),s.removeClass(t.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let r=0;r=0&&h1&&p<=e.size||h<=0&&p>=e.size)&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(r),s.eq(r).addClass(t.slideVisibleClass)),l.progress=n?-d:d,l.originalProgress=n?-u:u}e.visibleSlides=C(e.visibleSlides)}function Ki(i){const e=this;if(typeof i>"u"){const c=e.rtlTranslate?-1:1;i=e&&e.translate&&e.translate*c||0}const t=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:o,isEnd:a}=e;const r=o,l=a;s===0?(n=0,o=!0,a=!0):(n=(i-e.minTranslate())/s,o=n<=0,a=n>=1),Object.assign(e,{progress:n,isBeginning:o,isEnd:a}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(i),o&&!r&&e.emit("reachBeginning toEdge"),a&&!l&&e.emit("reachEnd toEdge"),(r&&!o||l&&!a)&&e.emit("fromEdge"),e.emit("progress",n)}function Ji(){const i=this,{slides:e,params:t,$wrapperEl:s,activeIndex:n,realIndex:o}=i,a=i.virtual&&t.virtual.enabled;e.removeClass(`${t.slideActiveClass} ${t.slideNextClass} ${t.slidePrevClass} ${t.slideDuplicateActiveClass} ${t.slideDuplicateNextClass} ${t.slideDuplicatePrevClass}`);let r;a?r=i.$wrapperEl.find(`.${t.slideClass}[data-swiper-slide-index="${n}"]`):r=e.eq(n),r.addClass(t.slideActiveClass),t.loop&&(r.hasClass(t.slideDuplicateClass)?s.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(t.slideDuplicateActiveClass):s.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(t.slideDuplicateActiveClass));let l=r.nextAll(`.${t.slideClass}`).eq(0).addClass(t.slideNextClass);t.loop&&l.length===0&&(l=e.eq(0),l.addClass(t.slideNextClass));let c=r.prevAll(`.${t.slideClass}`).eq(0).addClass(t.slidePrevClass);t.loop&&c.length===0&&(c=e.eq(-1),c.addClass(t.slidePrevClass)),t.loop&&(l.hasClass(t.slideDuplicateClass)?s.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass):s.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass),c.hasClass(t.slideDuplicateClass)?s.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass):s.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass)),i.emitSlidesClasses()}function Qi(i){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:s,snapGrid:n,params:o,activeIndex:a,realIndex:r,snapIndex:l}=e;let c=i,d;if(typeof c>"u"){for(let h=0;h=s[h]&&t=s[h]&&t=s[h]&&(c=h);o.normalizeSlideIndex&&(c<0||typeof c>"u")&&(c=0)}if(n.indexOf(t)>=0)d=n.indexOf(t);else{const h=Math.min(o.slidesPerGroupSkip,c);d=h+Math.floor((c-h)/o.slidesPerGroup)}if(d>=n.length&&(d=n.length-1),c===a){d!==l&&(e.snapIndex=d,e.emit("snapIndexChange"));return}const u=parseInt(e.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(e,{snapIndex:d,realIndex:u,previousIndex:a,activeIndex:c}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),r!==u&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function es(i){const e=this,t=e.params,s=C(i).closest(`.${t.slideClass}`)[0];let n=!1,o;if(s){for(let a=0;al?d=l:s&&io?a="next":n=l.length&&(f=l.length-1);const x=-l[f];if(r.normalizeSlideIndex)for(let y=0;y=M&&S=M&&S=M&&(a=y)}if(o.initialized&&a!==u&&(!o.allowSlideNext&&xo.translate&&x>o.maxTranslate()&&(u||0)!==a))return!1;a!==(d||0)&&t&&o.emit("beforeSlideChangeStart"),o.updateProgress(x);let v;if(a>u?v="next":a{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1})}else{if(!o.support.smoothScroll)return bt({swiper:o,targetPosition:S,side:y?"left":"top"}),!0;p.scrollTo({[y?"left":"top"]:S,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(x),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,s),o.transitionStart(t,v),e===0?o.transitionEnd(t,v):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(S){!o||o.destroyed||S.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(t,v))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0}function fs(i=0,e=this.params.speed,t=!0,s){if(typeof i=="string"){const a=parseInt(i,10);if(!isFinite(a))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${i}] given.`);i=a}const n=this;let o=i;return n.params.loop&&(o+=n.loopedSlides),n.slideTo(o,e,t,s)}function ps(i=this.params.speed,e=!0,t){const s=this,{animating:n,enabled:o,params:a}=s;if(!o)return s;let r=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(r=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndexu(f));let m=a[p.indexOf(h)-1];if(typeof m>"u"&&n.cssMode){let f;a.forEach((x,v)=>{h>=x&&(f=v)}),typeof f<"u"&&(m=a[f>0?f-1:f])}let g=0;if(typeof m<"u"&&(g=r.indexOf(m),g<0&&(g=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(g=g-s.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),n.rewind&&s.isBeginning){const f=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(f,i,e,t)}return s.slideTo(g,i,e,t)}function ms(i=this.params.speed,e=!0,t){const s=this;return s.slideTo(s.activeIndex,i,e,t)}function vs(i=this.params.speed,e=!0,t,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 c=n.snapGrid[r],d=n.snapGrid[r+1];l-c>(d-c)*s&&(o+=n.params.slidesPerGroup)}else{const c=n.snapGrid[r-1],d=n.snapGrid[r];l-c<=(d-c)*s&&(o-=n.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,n.slidesGrid.length-1),n.slideTo(o,i,e,t)}function bs(){const i=this,{params:e,$wrapperEl:t}=i,s=e.slidesPerView==="auto"?i.slidesPerViewDynamic():e.slidesPerView;let n=i.clickedIndex,o;if(e.loop){if(i.animating)return;o=parseInt(C(i.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?ni.slides.length-i.loopedSlides+s/2?(i.loopFix(),n=t.children(`.${e.slideClass}[data-swiper-slide-index="${o}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Ve(()=>{i.slideTo(n)})):i.slideTo(n):n>i.slides.length-s?(i.loopFix(),n=t.children(`.${e.slideClass}[data-swiper-slide-index="${o}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Ve(()=>{i.slideTo(n)})):i.slideTo(n)}else i.slideTo(n)}const ys={slideTo:us,slideToLoop:fs,slideNext:ps,slidePrev:gs,slideReset:ms,slideToClosest:vs,slideToClickedSlide:bs};function xs(){const i=this,e=K(),{params:t,$wrapperEl:s}=i,n=s.children().length>0?C(s.children()[0].parentNode):s;n.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let o=n.children(`.${t.slideClass}`);if(t.loopFillGroupWithBlank){const l=t.slidesPerGroup-o.length%t.slidesPerGroup;if(l!==t.slidesPerGroup){for(let c=0;co.length&&i.params.loopedSlidesLimit&&(i.loopedSlides=o.length);const a=[],r=[];o.each((l,c)=>{C(l).attr("data-swiper-slide-index",c)});for(let l=0;l=0;l-=1)n.prepend(C(a[l].cloneNode(!0)).addClass(t.slideDuplicateClass))}function Cs(){const i=this;i.emit("beforeLoopFix");const{activeIndex:e,slides:t,loopedSlides:s,allowSlidePrev:n,allowSlideNext:o,snapGrid:a,rtlTranslate:r}=i;let l;i.allowSlidePrev=!0,i.allowSlideNext=!0;const d=-a[e]-i.getTranslate();e=t.length-s&&(l=-t.length+e+s,l+=s,i.slideTo(l,0,!1,!0)&&d!==0&&i.setTranslate((r?-i.translate:i.translate)-d)),i.allowSlidePrev=n,i.allowSlideNext=o,i.emit("loopFix")}function Ss(){const i=this,{$wrapperEl:e,params:t,slides:s}=i;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),s.removeAttr("data-swiper-slide-index")}const Es={loopCreate:xs,loopFix:Cs,loopDestroy:Ss};function ws(i){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const t=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;t.style.cursor="move",t.style.cursor=i?"grabbing":"grab"}function Ts(){const i=this;i.support.touch||i.params.watchOverflow&&i.isLocked||i.params.cssMode||(i[i.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const $s={setGrabCursor:ws,unsetGrabCursor:Ts};function Ls(i,e=this){function t(s){if(!s||s===K()||s===j())return null;s.assignedSlot&&(s=s.assignedSlot);const n=s.closest(i);return!n&&!s.getRootNode?null:n||t(s.getRootNode().host)}return t(e)}function Ps(i){const e=this,t=K(),s=j(),n=e.touchEventsData,{params:o,touches:a,enabled:r}=e;if(!r||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let l=i;l.originalEvent&&(l=l.originalEvent);let c=C(l.target);if(o.touchEventsTarget==="wrapper"&&!c.closest(e.wrapperEl).length||(n.isTouchEvent=l.type==="touchstart",!n.isTouchEvent&&"which"in l&&l.which===3)||!n.isTouchEvent&&"button"in l&&l.button>0||n.isTouched&&n.isMoved)return;const d=!!o.noSwipingClass&&o.noSwipingClass!=="",u=i.composedPath?i.composedPath():i.path;d&&l.target&&l.target.shadowRoot&&u&&(c=C(u[0]));const h=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(p?Ls(h,c[0]):c.closest(h)[0])){e.allowClick=!0;return}if(o.swipeHandler&&!c.closest(o.swipeHandler)[0])return;a.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX,a.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;const m=a.currentX,g=a.currentY,f=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,x=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(f&&(m<=x||m>=s.innerWidth-x))if(f==="prevent")i.preventDefault();else return;if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=g,n.touchStartTime=Pe(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(n.allowThresholdMove=!1),l.type!=="touchstart"){let v=!0;c.is(n.focusableElements)&&(v=!1,c[0].nodeName==="SELECT"&&(n.isTouched=!1)),t.activeElement&&C(t.activeElement).is(n.focusableElements)&&t.activeElement!==c[0]&&t.activeElement.blur();const y=v&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||y)&&!c[0].isContentEditable&&l.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function Ms(i){const e=K(),t=this,s=t.touchEventsData,{params:n,touches:o,rtlTranslate:a,enabled:r}=t;if(!r)return;let l=i;if(l.originalEvent&&(l=l.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&t.emit("touchMoveOpposite",l);return}if(s.isTouchEvent&&l.type!=="touchmove")return;const c=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),d=l.type==="touchmove"?c.pageX:l.pageX,u=l.type==="touchmove"?c.pageY:l.pageY;if(l.preventedByNestedSwiper){o.startX=d,o.startY=u;return}if(!t.allowTouchMove){C(l.target).is(s.focusableElements)||(t.allowClick=!1),s.isTouched&&(Object.assign(o,{startX:d,startY:u,currentX:d,currentY:u}),s.touchStartTime=Pe());return}if(s.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop){if(t.isVertical()){if(uo.startY&&t.translate>=t.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(do.startX&&t.translate>=t.minTranslate())return}if(s.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&C(l.target).is(s.focusableElements)){s.isMoved=!0,t.allowClick=!1;return}if(s.allowTouchCallbacks&&t.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=d,o.currentY=u;const h=o.currentX-o.startX,p=o.currentY-o.startY;if(t.params.threshold&&Math.sqrt(h**2+p**2)"u"){let x;t.isHorizontal()&&o.currentY===o.startY||t.isVertical()&&o.currentX===o.startX?s.isScrolling=!1:h*h+p*p>=25&&(x=Math.atan2(Math.abs(p),Math.abs(h))*180/Math.PI,s.isScrolling=t.isHorizontal()?x>n.touchAngle:90-x>n.touchAngle)}if(s.isScrolling&&t.emit("touchMoveOpposite",l),typeof s.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(s.startMoving=!0),s.isScrolling){s.isTouched=!1;return}if(!s.startMoving)return;t.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation(),s.isMoved||(n.loop&&!n.cssMode&&t.loopFix(),s.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,n.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)),t.emit("sliderMove",l),s.isMoved=!0;let m=t.isHorizontal()?h:p;o.diff=m,m*=n.touchRatio,a&&(m=-m),t.swipeDirection=m>0?"prev":"next",s.currentTranslate=m+s.startTranslate;let g=!0,f=n.resistanceRatio;if(n.touchReleaseOnEdges&&(f=0),m>0&&s.currentTranslate>t.minTranslate()?(g=!1,n.resistance&&(s.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+s.startTranslate+m)**f)):m<0&&s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(m)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,s.currentTranslate=s.startTranslate,o.diff=t.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&t.freeMode||n.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),t.params.freeMode&&n.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(s.currentTranslate),t.setTranslate(s.currentTranslate))}function ks(i){const e=this,t=e.touchEventsData,{params:s,touches:n,rtlTranslate:o,slidesGrid:a,enabled:r}=e;if(!r)return;let l=i;if(l.originalEvent&&(l=l.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",l),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&s.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}s.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const c=Pe(),d=c-t.touchStartTime;if(e.allowClick){const v=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(v&&v[0]||l.target),e.emit("tap click",l),d<300&&c-t.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(t.lastClickTime=Pe(),Ve(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||n.diff===0||t.currentTranslate===t.startTranslate){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let u;if(s.followFinger?u=o?e.translate:-e.translate:u=-t.currentTranslate,s.cssMode)return;if(e.params.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:u});return}let h=0,p=e.slidesSizesGrid[0];for(let v=0;v=a[v]&&u=a[v]&&(h=v,p=a[a.length-1]-a[a.length-2])}let m=null,g=null;s.rewind&&(e.isBeginning?g=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(m=0));const f=(u-a[h])/p,x=hs.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(f>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?m:h+x):e.slideTo(h)),e.swipeDirection==="prev"&&(f>1-s.longSwipesRatio?e.slideTo(h+x):g!==null&&f<0&&Math.abs(f)>s.longSwipesRatio?e.slideTo(g):e.slideTo(h))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(l.target===e.navigation.nextEl||l.target===e.navigation.prevEl)?l.target===e.navigation.nextEl?e.slideTo(h+x):e.slideTo(h):(e.swipeDirection==="next"&&e.slideTo(m!==null?m:h+x),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:h))}}function nt(){const i=this,{params:e,el:t}=i;if(t&&t.offsetWidth===0)return;e.breakpoints&&i.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:o}=i;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses(),(e.slidesPerView==="auto"||e.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides?i.slideTo(i.slides.length-1,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.run(),i.allowSlidePrev=n,i.allowSlideNext=s,i.params.watchOverflow&&o!==i.snapGrid&&i.checkOverflow()}function zs(i){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&i.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(i.stopPropagation(),i.stopImmediatePropagation())))}function As(){const i=this,{wrapperEl:e,rtlTranslate:t,enabled:s}=i;if(!s)return;i.previousTranslate=i.translate,i.isHorizontal()?i.translate=-e.scrollLeft:i.translate=-e.scrollTop,i.translate===0&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();let n;const o=i.maxTranslate()-i.minTranslate();o===0?n=0:n=(i.translate-i.minTranslate())/o,n!==i.progress&&i.updateProgress(t?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}let ot=!1;function Os(){}const Ct=(i,e)=>{const t=K(),{params:s,touchEvents:n,el:o,wrapperEl:a,device:r,support:l}=i,c=!!s.nested,d=e==="on"?"addEventListener":"removeEventListener",u=e;if(!l.touch)o[d](n.start,i.onTouchStart,!1),t[d](n.move,i.onTouchMove,c),t[d](n.end,i.onTouchEnd,!1);else{const h=n.start==="touchstart"&&l.passiveListener&&s.passiveListeners?{passive:!0,capture:!1}:!1;o[d](n.start,i.onTouchStart,h),o[d](n.move,i.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),o[d](n.end,i.onTouchEnd,h),n.cancel&&o[d](n.cancel,i.onTouchEnd,h)}(s.preventClicks||s.preventClicksPropagation)&&o[d]("click",i.onClick,!0),s.cssMode&&a[d]("scroll",i.onScroll),s.updateOnWindowResize?i[u](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",nt,!0):i[u]("observerUpdate",nt,!0)};function Is(){const i=this,e=K(),{params:t,support:s}=i;i.onTouchStart=Ps.bind(i),i.onTouchMove=Ms.bind(i),i.onTouchEnd=ks.bind(i),t.cssMode&&(i.onScroll=As.bind(i)),i.onClick=zs.bind(i),s.touch&&!ot&&(e.addEventListener("touchstart",Os),ot=!0),Ct(i,"on")}function _s(){Ct(this,"off")}const Ns={attachEvents:Is,detachEvents:_s},at=(i,e)=>i.grid&&e.grid&&e.grid.rows>1;function Ds(){const i=this,{activeIndex:e,initialized:t,loopedSlides:s=0,params:n,$el:o}=i,a=n.breakpoints;if(!a||a&&Object.keys(a).length===0)return;const r=i.getBreakpoint(a,i.params.breakpointsBase,i.el);if(!r||i.currentBreakpoint===r)return;const c=(r in a?a[r]:void 0)||i.originalParams,d=at(i,n),u=at(i,c),h=n.enabled;d&&!u?(o.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`),i.emitContainerClasses()):!d&&u&&(o.addClass(`${n.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&n.grid.fill==="column")&&o.addClass(`${n.containerModifierClass}grid-column`),i.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(f=>{const x=n[f]&&n[f].enabled,v=c[f]&&c[f].enabled;x&&!v&&i[f].disable(),!x&&v&&i[f].enable()});const p=c.direction&&c.direction!==n.direction,m=n.loop&&(c.slidesPerView!==n.slidesPerView||p);p&&t&&i.changeDirection(),se(i.params,c);const g=i.params.enabled;Object.assign(i,{allowTouchMove:i.params.allowTouchMove,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev}),h&&!g?i.disable():!h&&g&&i.enable(),i.currentBreakpoint=r,i.emit("_beforeBreakpoint",c),m&&t&&(i.loopDestroy(),i.loopCreate(),i.updateSlides(),i.slideTo(e-s+i.loopedSlides,0,!1)),i.emit("breakpoint",c)}function Bs(i,e="window",t){if(!i||e==="container"&&!t)return;let s=!1;const n=j(),o=e==="window"?n.innerHeight:t.clientHeight,a=Object.keys(i).map(r=>{if(typeof r=="string"&&r.indexOf("@")===0){const l=parseFloat(r.substr(1));return{value:o*l,point:r}}return{value:r,point:r}});a.sort((r,l)=>parseInt(r.value,10)-parseInt(l.value,10));for(let r=0;r{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&t.push(e+n)}):typeof s=="string"&&t.push(e+s)}),t}function Hs(){const i=this,{classNames:e,params:t,rtl:s,$el:n,device:o,support:a}=i,r=Rs(["initialized",t.direction,{"pointer-events":!a.touch},{"free-mode":i.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:s},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...r),n.addClass([...e].join(" ")),i.emitContainerClasses()}function Ws(){const i=this,{$el:e,classNames:t}=i;e.removeClass(t.join(" ")),i.emitContainerClasses()}const Vs={addClasses:Hs,removeClasses:Ws};function Gs(i,e,t,s,n,o){const a=j();let r;function l(){o&&o()}!C(i).parent("picture")[0]&&(!i.complete||!n)&&e?(r=new a.Image,r.onload=l,r.onerror=l,s&&(r.sizes=s),t&&(r.srcset=t),e&&(r.src=e)):l()}function qs(){const i=this;i.imagesToLoad=i.$el.find("img");function e(){typeof i>"u"||i===null||!i||i.destroyed||(i.imagesLoaded!==void 0&&(i.imagesLoaded+=1),i.imagesLoaded===i.imagesToLoad.length&&(i.params.updateOnImagesReady&&i.update(),i.emit("imagesReady")))}for(let t=0;to}else i.isLocked=i.snapGrid.length===1;t.allowSlideNext===!0&&(i.allowSlideNext=!i.isLocked),t.allowSlidePrev===!0&&(i.allowSlidePrev=!i.isLocked),e&&e!==i.isLocked&&(i.isEnd=!1),e!==i.isLocked&&i.emit(i.isLocked?"lock":"unlock")}const Ys={checkOverflow:Xs},rt={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,loopedSlidesLimit:!0,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 Us(i,e){return function(s={}){const n=Object.keys(s)[0],o=s[n];if(typeof o!="object"||o===null){se(e,s);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&i[n]===!0&&(i[n]={auto:!0}),!(n in i&&"enabled"in o)){se(e,s);return}i[n]===!0&&(i[n]={enabled:!0}),typeof i[n]=="object"&&!("enabled"in i[n])&&(i[n].enabled=!0),i[n]||(i[n]={enabled:!1}),se(e,s)}}const He={eventsEmitter:qi,update:ts,translate:rs,transition:hs,slide:ys,loop:Es,grabCursor:$s,events:Ns,breakpoints:Fs,checkOverflow:Ys,classes:Vs,images:js},We={};class ie{constructor(...e){let t,s;if(e.length===1&&e[0].constructor&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"?s=e[0]:[t,s]=e,s||(s={}),s=se({},s),t&&!s.el&&(s.el=t),s.el&&C(s.el).length>1){const r=[];return C(s.el).each(l=>{const c=se({},s,{el:l});r.push(new ie(c))}),r}const n=this;n.__swiper__=!0,n.support=yt(),n.device=Ri({userAgent:s.userAgent}),n.browser=Wi(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],s.modules&&Array.isArray(s.modules)&&n.modules.push(...s.modules);const o={};n.modules.forEach(r=>{r({swiper:n,extendParams:Us(s,o),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});const a=se({},rt,o);return n.params=se({},a,We,s),n.originalParams=se({},n.params),n.passedParams=se({},s),n.params&&n.params.on&&Object.keys(n.params.on).forEach(r=>{n.on(r,n.params.on[r])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),n.$=C,Object.assign(n,{enabled:n.params.enabled,el:t,classNames:[],slides:C(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function(){const l=["touchstart","touchmove","touchend","touchcancel"],c=["pointerdown","pointermove","pointerup"];return n.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},n.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},n.support.touch||!n.params.simulateTouch?n.touchEventsTouch:n.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:n.params.focusableElements,lastClickTime:Pe(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const n=s.minTranslate(),a=(s.maxTranslate()-n)*e+n;s.translateTo(a,typeof t>"u"?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each(s=>{const n=e.getSlideClasses(s);t.push({slideEl:s,classNames:n}),e.emit("_slideClass",s,n)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const s=this,{params:n,slides:o,slidesGrid:a,slidesSizesGrid:r,size:l,activeIndex:c}=s;let d=1;if(n.centeredSlides){let u=o[c].swiperSlideSize,h;for(let p=c+1;pl&&(h=!0));for(let p=c-1;p>=0;p-=1)o[p]&&!h&&(u+=o[p].swiperSlideSize,d+=1,u>l&&(h=!0))}else if(e==="current")for(let u=c+1;u=0;u-=1)a[c]-a[u]1)&&e.isEnd&&!e.params.centeredSlides?o=e.slideTo(e.slides.length-1,0,!1,!0):o=e.slideTo(e.activeIndex,0,!1,!0),o||n()),s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const s=this,n=s.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(s.$el.removeClass(`${s.params.containerModifierClass}${n}`).addClass(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.each(o=>{e==="vertical"?o.style.width="":o.style.height=""}),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&e==="rtl"||!t.rtl&&e==="ltr"||(t.rtl=e==="rtl",t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const s=C(e||t.params.el);if(e=s[0],!e)return!1;e.swiper=t;const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const r=C(e.shadowRoot.querySelector(n()));return r.children=l=>s.children(l),r}return s.children?s.children(n()):C(s).children(n())})();if(a.length===0&&t.params.createElements){const l=K().createElement("div");a=C(l),l.className=t.params.wrapperClass,s.append(l),s.children(`.${t.params.slideClass}`).each(c=>{a.append(c)})}return Object.assign(t,{$el:s,el:e,$wrapperEl:a,wrapperEl:a[0],mounted:!0,rtl:e.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl"),wrongRTL:a.css("display")==="-webkit-box"}),!0}init(e){const t=this;return t.initialized||t.mount(e)===!1||(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=!0,t=!0){const s=this,{params:n,$el:o,$wrapperEl:a,slides:r}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),t&&(s.removeClasses(),o.removeAttr("style"),a.removeAttr("style"),r&&r.length&&r.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),e!==!1&&(s.$el[0].swiper=null,Ii(s)),s.destroyed=!0),null}static extendDefaults(e){se(We,e)}static get extendedDefaults(){return We}static get defaults(){return rt}static installModule(e){ie.prototype.__modules__||(ie.prototype.__modules__=[]);const t=ie.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>ie.installModule(t)),ie):(ie.installModule(e),ie)}}Object.keys(He).forEach(i=>{Object.keys(He[i]).forEach(e=>{ie.prototype[e]=He[i][e]})});ie.use([Vi,Gi]);function St(i,e,t,s){const n=K();return i.params.createElements&&Object.keys(s).forEach(o=>{if(!t[o]&&t.auto===!0){let a=i.$el.children(`.${s[o]}`)[0];a||(a=n.createElement("div"),a.className=s[o],i.$el.append(a)),t[o]=a,e[o]=a}}),t}function Et({swiper:i,extendParams:e,on:t,emit:s}){e({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),i.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null};function n(p){let m;return p&&(m=C(p),i.params.uniqueNavElements&&typeof p=="string"&&m.length>1&&i.$el.find(p).length===1&&(m=i.$el.find(p))),m}function o(p,m){const g=i.params.navigation;p&&p.length>0&&(p[m?"addClass":"removeClass"](g.disabledClass),p[0]&&p[0].tagName==="BUTTON"&&(p[0].disabled=m),i.params.watchOverflow&&i.enabled&&p[i.isLocked?"addClass":"removeClass"](g.lockClass))}function a(){if(i.params.loop)return;const{$nextEl:p,$prevEl:m}=i.navigation;o(m,i.isBeginning&&!i.params.rewind),o(p,i.isEnd&&!i.params.rewind)}function r(p){p.preventDefault(),!(i.isBeginning&&!i.params.loop&&!i.params.rewind)&&(i.slidePrev(),s("navigationPrev"))}function l(p){p.preventDefault(),!(i.isEnd&&!i.params.loop&&!i.params.rewind)&&(i.slideNext(),s("navigationNext"))}function c(){const p=i.params.navigation;if(i.params.navigation=St(i,i.originalParams.navigation,i.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(p.nextEl||p.prevEl))return;const m=n(p.nextEl),g=n(p.prevEl);m&&m.length>0&&m.on("click",l),g&&g.length>0&&g.on("click",r),Object.assign(i.navigation,{$nextEl:m,nextEl:m&&m[0],$prevEl:g,prevEl:g&&g[0]}),i.enabled||(m&&m.addClass(p.lockClass),g&&g.addClass(p.lockClass))}function d(){const{$nextEl:p,$prevEl:m}=i.navigation;p&&p.length&&(p.off("click",l),p.removeClass(i.params.navigation.disabledClass)),m&&m.length&&(m.off("click",r),m.removeClass(i.params.navigation.disabledClass))}t("init",()=>{i.params.navigation.enabled===!1?h():(c(),a())}),t("toEdge fromEdge lock unlock",()=>{a()}),t("destroy",()=>{d()}),t("enable disable",()=>{const{$nextEl:p,$prevEl:m}=i.navigation;p&&p[i.enabled?"removeClass":"addClass"](i.params.navigation.lockClass),m&&m[i.enabled?"removeClass":"addClass"](i.params.navigation.lockClass)}),t("click",(p,m)=>{const{$nextEl:g,$prevEl:f}=i.navigation,x=m.target;if(i.params.navigation.hideOnClick&&!C(x).is(f)&&!C(x).is(g)){if(i.pagination&&i.params.pagination&&i.params.pagination.clickable&&(i.pagination.el===x||i.pagination.el.contains(x)))return;let v;g?v=g.hasClass(i.params.navigation.hiddenClass):f&&(v=f.hasClass(i.params.navigation.hiddenClass)),s(v===!0?"navigationShow":"navigationHide"),g&&g.toggleClass(i.params.navigation.hiddenClass),f&&f.toggleClass(i.params.navigation.hiddenClass)}});const u=()=>{i.$el.removeClass(i.params.navigation.navigationDisabledClass),c(),a()},h=()=>{i.$el.addClass(i.params.navigation.navigationDisabledClass),d()};Object.assign(i.navigation,{enable:u,disable:h,update:a,init:c,destroy:d})}function ue(i=""){return`.${i.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function wt({swiper:i,extendParams:e,on:t,emit:s}){const n="swiper-pagination";e({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:g=>g,formatFractionTotal:g=>g,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),i.pagination={el:null,$el:null,bullets:[]};let o,a=0;function r(){return!i.params.pagination.el||!i.pagination.el||!i.pagination.$el||i.pagination.$el.length===0}function l(g,f){const{bulletActiveClass:x}=i.params.pagination;g[f]().addClass(`${x}-${f}`)[f]().addClass(`${x}-${f}-${f}`)}function c(){const g=i.rtl,f=i.params.pagination;if(r())return;const x=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.slides.length,v=i.pagination.$el;let y;const S=i.params.loop?Math.ceil((x-i.loopedSlides*2)/i.params.slidesPerGroup):i.snapGrid.length;if(i.params.loop?(y=Math.ceil((i.activeIndex-i.loopedSlides)/i.params.slidesPerGroup),y>x-1-i.loopedSlides*2&&(y-=x-i.loopedSlides*2),y>S-1&&(y-=S),y<0&&i.params.paginationType!=="bullets"&&(y=S+y)):typeof i.snapIndex<"u"?y=i.snapIndex:y=i.activeIndex||0,f.type==="bullets"&&i.pagination.bullets&&i.pagination.bullets.length>0){const M=i.pagination.bullets;let k,I,_;if(f.dynamicBullets&&(o=M.eq(0)[i.isHorizontal()?"outerWidth":"outerHeight"](!0),v.css(i.isHorizontal()?"width":"height",`${o*(f.dynamicMainBullets+4)}px`),f.dynamicMainBullets>1&&i.previousIndex!==void 0&&(a+=y-(i.previousIndex-i.loopedSlides||0),a>f.dynamicMainBullets-1?a=f.dynamicMainBullets-1:a<0&&(a=0)),k=Math.max(y-a,0),I=k+(Math.min(M.length,f.dynamicMainBullets)-1),_=(I+k)/2),M.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(V=>`${f.bulletActiveClass}${V}`).join(" ")),v.length>1)M.each(V=>{const L=C(V),P=L.index();P===y&&L.addClass(f.bulletActiveClass),f.dynamicBullets&&(P>=k&&P<=I&&L.addClass(`${f.bulletActiveClass}-main`),P===k&&l(L,"prev"),P===I&&l(L,"next"))});else{const V=M.eq(y),L=V.index();if(V.addClass(f.bulletActiveClass),f.dynamicBullets){const P=M.eq(k),b=M.eq(I);for(let w=k;w<=I;w+=1)M.eq(w).addClass(`${f.bulletActiveClass}-main`);if(i.params.loop)if(L>=M.length){for(let w=f.dynamicMainBullets;w>=0;w-=1)M.eq(M.length-w).addClass(`${f.bulletActiveClass}-main`);M.eq(M.length-f.dynamicMainBullets-1).addClass(`${f.bulletActiveClass}-prev`)}else l(P,"prev"),l(b,"next");else l(P,"prev"),l(b,"next")}}if(f.dynamicBullets){const V=Math.min(M.length,f.dynamicMainBullets+4),L=(o*V-o)/2-_*o,P=g?"right":"left";M.css(i.isHorizontal()?P:"top",`${L}px`)}}if(f.type==="fraction"&&(v.find(ue(f.currentClass)).text(f.formatFractionCurrent(y+1)),v.find(ue(f.totalClass)).text(f.formatFractionTotal(S))),f.type==="progressbar"){let M;f.progressbarOpposite?M=i.isHorizontal()?"vertical":"horizontal":M=i.isHorizontal()?"horizontal":"vertical";const k=(y+1)/S;let I=1,_=1;M==="horizontal"?I=k:_=k,v.find(ue(f.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${I}) scaleY(${_})`).transition(i.params.speed)}f.type==="custom"&&f.renderCustom?(v.html(f.renderCustom(i,y+1,S)),s("paginationRender",v[0])):s("paginationUpdate",v[0]),i.params.watchOverflow&&i.enabled&&v[i.isLocked?"addClass":"removeClass"](f.lockClass)}function d(){const g=i.params.pagination;if(r())return;const f=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.slides.length,x=i.pagination.$el;let v="";if(g.type==="bullets"){let y=i.params.loop?Math.ceil((f-i.loopedSlides*2)/i.params.slidesPerGroup):i.snapGrid.length;i.params.freeMode&&i.params.freeMode.enabled&&!i.params.loop&&y>f&&(y=f);for(let S=0;S${g.bulletElement}>`;x.html(v),i.pagination.bullets=x.find(ue(g.bulletClass))}g.type==="fraction"&&(g.renderFraction?v=g.renderFraction.call(i,g.currentClass,g.totalClass):v=` / `,x.html(v)),g.type==="progressbar"&&(g.renderProgressbar?v=g.renderProgressbar.call(i,g.progressbarFillClass):v=``,x.html(v)),g.type!=="custom"&&s("paginationRender",i.pagination.$el[0])}function u(){i.params.pagination=St(i,i.originalParams.pagination,i.params.pagination,{el:"swiper-pagination"});const g=i.params.pagination;if(!g.el)return;let f=C(g.el);f.length!==0&&(i.params.uniqueNavElements&&typeof g.el=="string"&&f.length>1&&(f=i.$el.find(g.el),f.length>1&&(f=f.filter(x=>C(x).parents(".swiper")[0]===i.el))),g.type==="bullets"&&g.clickable&&f.addClass(g.clickableClass),f.addClass(g.modifierClass+g.type),f.addClass(i.isHorizontal()?g.horizontalClass:g.verticalClass),g.type==="bullets"&&g.dynamicBullets&&(f.addClass(`${g.modifierClass}${g.type}-dynamic`),a=0,g.dynamicMainBullets<1&&(g.dynamicMainBullets=1)),g.type==="progressbar"&&g.progressbarOpposite&&f.addClass(g.progressbarOppositeClass),g.clickable&&f.on("click",ue(g.bulletClass),function(v){v.preventDefault();let y=C(this).index()*i.params.slidesPerGroup;i.params.loop&&(y+=i.loopedSlides),i.slideTo(y)}),Object.assign(i.pagination,{$el:f,el:f[0]}),i.enabled||f.addClass(g.lockClass))}function h(){const g=i.params.pagination;if(r())return;const f=i.pagination.$el;f.removeClass(g.hiddenClass),f.removeClass(g.modifierClass+g.type),f.removeClass(i.isHorizontal()?g.horizontalClass:g.verticalClass),i.pagination.bullets&&i.pagination.bullets.removeClass&&i.pagination.bullets.removeClass(g.bulletActiveClass),g.clickable&&f.off("click",ue(g.bulletClass))}t("init",()=>{i.params.pagination.enabled===!1?m():(u(),d(),c())}),t("activeIndexChange",()=>{(i.params.loop||typeof i.snapIndex>"u")&&c()}),t("snapIndexChange",()=>{i.params.loop||c()}),t("slidesLengthChange",()=>{i.params.loop&&(d(),c())}),t("snapGridLengthChange",()=>{i.params.loop||(d(),c())}),t("destroy",()=>{h()}),t("enable disable",()=>{const{$el:g}=i.pagination;g&&g[i.enabled?"removeClass":"addClass"](i.params.pagination.lockClass)}),t("lock unlock",()=>{c()}),t("click",(g,f)=>{const x=f.target,{$el:v}=i.pagination;if(i.params.pagination.el&&i.params.pagination.hideOnClick&&v&&v.length>0&&!C(x).hasClass(i.params.pagination.bulletClass)){if(i.navigation&&(i.navigation.nextEl&&x===i.navigation.nextEl||i.navigation.prevEl&&x===i.navigation.prevEl))return;const y=v.hasClass(i.params.pagination.hiddenClass);s(y===!0?"paginationShow":"paginationHide"),v.toggleClass(i.params.pagination.hiddenClass)}});const p=()=>{i.$el.removeClass(i.params.pagination.paginationDisabledClass),i.pagination.$el&&i.pagination.$el.removeClass(i.params.pagination.paginationDisabledClass),u(),d(),c()},m=()=>{i.$el.addClass(i.params.pagination.paginationDisabledClass),i.pagination.$el&&i.pagination.$el.addClass(i.params.pagination.paginationDisabledClass),h()};Object.assign(i.pagination,{enable:p,disable:m,render:d,update:c,init:u,destroy:h})}function Tt({swiper:i,extendParams:e,on:t,emit:s}){e({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"}}),i.lazy={};let n=!1,o=!1;function a(c,d=!0){const u=i.params.lazy;if(typeof c>"u"||i.slides.length===0)return;const p=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children(`.${i.params.slideClass}[data-swiper-slide-index="${c}"]`):i.slides.eq(c),m=p.find(`.${u.elementClass}:not(.${u.loadedClass}):not(.${u.loadingClass})`);p.hasClass(u.elementClass)&&!p.hasClass(u.loadedClass)&&!p.hasClass(u.loadingClass)&&m.push(p[0]),m.length!==0&&m.each(g=>{const f=C(g);f.addClass(u.loadingClass);const x=f.attr("data-background"),v=f.attr("data-src"),y=f.attr("data-srcset"),S=f.attr("data-sizes"),M=f.parent("picture");i.loadImage(f[0],v||x,y,S,!1,()=>{if(!(typeof i>"u"||i===null||!i||i&&!i.params||i.destroyed)){if(x?(f.css("background-image",`url("${x}")`),f.removeAttr("data-background")):(y&&(f.attr("srcset",y),f.removeAttr("data-srcset")),S&&(f.attr("sizes",S),f.removeAttr("data-sizes")),M.length&&M.children("source").each(k=>{const I=C(k);I.attr("data-srcset")&&(I.attr("srcset",I.attr("data-srcset")),I.removeAttr("data-srcset"))}),v&&(f.attr("src",v),f.removeAttr("data-src"))),f.addClass(u.loadedClass).removeClass(u.loadingClass),p.find(`.${u.preloaderClass}`).remove(),i.params.loop&&d){const k=p.attr("data-swiper-slide-index");if(p.hasClass(i.params.slideDuplicateClass)){const I=i.$wrapperEl.children(`[data-swiper-slide-index="${k}"]:not(.${i.params.slideDuplicateClass})`);a(I.index(),!1)}else{const I=i.$wrapperEl.children(`.${i.params.slideDuplicateClass}[data-swiper-slide-index="${k}"]`);a(I.index(),!1)}}s("lazyImageReady",p[0],f[0]),i.params.autoHeight&&i.updateAutoHeight()}}),s("lazyImageLoad",p[0],f[0])})}function r(){const{$wrapperEl:c,params:d,slides:u,activeIndex:h}=i,p=i.virtual&&d.virtual.enabled,m=d.lazy;let g=d.slidesPerView;g==="auto"&&(g=0);function f(v){if(p){if(c.children(`.${d.slideClass}[data-swiper-slide-index="${v}"]`).length)return!0}else if(u[v])return!0;return!1}function x(v){return p?C(v).attr("data-swiper-slide-index"):C(v).index()}if(o||(o=!0),i.params.watchSlidesProgress)c.children(`.${d.slideVisibleClass}`).each(v=>{const y=p?C(v).attr("data-swiper-slide-index"):C(v).index();a(y)});else if(g>1)for(let v=h;v1||m.loadPrevNextAmount&&m.loadPrevNextAmount>1){const v=m.loadPrevNextAmount,y=Math.ceil(g),S=Math.min(h+y+Math.max(v,y),u.length),M=Math.max(h-Math.max(y,v),0);for(let k=h+y;k0&&a(x(v));const y=c.children(`.${d.slidePrevClass}`);y.length>0&&a(x(y))}}function l(){const c=j();if(!i||i.destroyed)return;const d=i.params.lazy.scrollingElement?C(i.params.lazy.scrollingElement):C(c),u=d[0]===c,h=u?c.innerWidth:d[0].offsetWidth,p=u?c.innerHeight:d[0].offsetHeight,m=i.$el.offset(),{rtlTranslate:g}=i;let f=!1;g&&(m.left-=i.$el[0].scrollLeft);const x=[[m.left,m.top],[m.left+i.width,m.top],[m.left,m.top+i.height],[m.left+i.width,m.top+i.height]];for(let y=0;y=0&&S[0]<=h&&S[1]>=0&&S[1]<=p){if(S[0]===0&&S[1]===0)continue;f=!0}}const v=i.touchEvents.start==="touchstart"&&i.support.passiveListener&&i.params.passiveListeners?{passive:!0,capture:!1}:!1;f?(r(),d.off("scroll",l,v)):n||(n=!0,d.on("scroll",l,v))}t("beforeInit",()=>{i.params.lazy.enabled&&i.params.preloadImages&&(i.params.preloadImages=!1)}),t("init",()=>{i.params.lazy.enabled&&(i.params.lazy.checkInView?l():r())}),t("scroll",()=>{i.params.freeMode&&i.params.freeMode.enabled&&!i.params.freeMode.sticky&&r()}),t("scrollbarDragMove resize _freeModeNoMomentumRelease",()=>{i.params.lazy.enabled&&(i.params.lazy.checkInView?l():r())}),t("transitionStart",()=>{i.params.lazy.enabled&&(i.params.lazy.loadOnTransitionStart||!i.params.lazy.loadOnTransitionStart&&!o)&&(i.params.lazy.checkInView?l():r())}),t("transitionEnd",()=>{i.params.lazy.enabled&&!i.params.lazy.loadOnTransitionStart&&(i.params.lazy.checkInView?l():r())}),t("slideChange",()=>{const{lazy:c,cssMode:d,watchSlidesProgress:u,touchReleaseOnEdges:h,resistanceRatio:p}=i.params;c.enabled&&(d||u&&(h||p===0))&&r()}),t("destroy",()=>{i.$el&&i.$el.find(`.${i.params.lazy.loadingClass}`).removeClass(i.params.lazy.loadingClass)}),Object.assign(i.lazy,{load:r,loadInSlide:a})}function $t({swiper:i,extendParams:e,on:t}){e({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",id:null}}),i.a11y={clicked:!1};let s=null;function n(b){const w=s;w.length!==0&&(w.html(""),w.html(b))}function o(b=16){const w=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(b).replace(/x/g,w)}function a(b){b.attr("tabIndex","0")}function r(b){b.attr("tabIndex","-1")}function l(b,w){b.attr("role",w)}function c(b,w){b.attr("aria-roledescription",w)}function d(b,w){b.attr("aria-controls",w)}function u(b,w){b.attr("aria-label",w)}function h(b,w){b.attr("id",w)}function p(b,w){b.attr("aria-live",w)}function m(b){b.attr("aria-disabled",!0)}function g(b){b.attr("aria-disabled",!1)}function f(b){if(b.keyCode!==13&&b.keyCode!==32)return;const w=i.params.a11y,N=C(b.target);i.navigation&&i.navigation.$nextEl&&N.is(i.navigation.$nextEl)&&(i.isEnd&&!i.params.loop||i.slideNext(),i.isEnd?n(w.lastSlideMessage):n(w.nextSlideMessage)),i.navigation&&i.navigation.$prevEl&&N.is(i.navigation.$prevEl)&&(i.isBeginning&&!i.params.loop||i.slidePrev(),i.isBeginning?n(w.firstSlideMessage):n(w.prevSlideMessage)),i.pagination&&N.is(ue(i.params.pagination.bulletClass))&&N[0].click()}function x(){if(i.params.loop||i.params.rewind||!i.navigation)return;const{$nextEl:b,$prevEl:w}=i.navigation;w&&w.length>0&&(i.isBeginning?(m(w),r(w)):(g(w),a(w))),b&&b.length>0&&(i.isEnd?(m(b),r(b)):(g(b),a(b)))}function v(){return i.pagination&&i.pagination.bullets&&i.pagination.bullets.length}function y(){return v()&&i.params.pagination.clickable}function S(){const b=i.params.a11y;v()&&i.pagination.bullets.each(w=>{const N=C(w);i.params.pagination.clickable&&(a(N),i.params.pagination.renderBullet||(l(N,"button"),u(N,b.paginationBulletMessage.replace(/\{\{index\}\}/,N.index()+1)))),N.is(`.${i.params.pagination.bulletActiveClass}`)?N.attr("aria-current","true"):N.removeAttr("aria-current")})}const M=(b,w,N)=>{a(b),b[0].tagName!=="BUTTON"&&(l(b,"button"),b.on("keydown",f)),u(b,N),d(b,w)},k=()=>{i.a11y.clicked=!0},I=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.destroyed||(i.a11y.clicked=!1)})})},_=b=>{if(i.a11y.clicked)return;const w=b.target.closest(`.${i.params.slideClass}`);if(!w||!i.slides.includes(w))return;const N=i.slides.indexOf(w)===i.activeIndex,J=i.params.watchSlidesProgress&&i.visibleSlides&&i.visibleSlides.includes(w);N||J||b.sourceCapabilities&&b.sourceCapabilities.firesTouchEvents||(i.isHorizontal()?i.el.scrollLeft=0:i.el.scrollTop=0,i.slideTo(i.slides.indexOf(w),0))},V=()=>{const b=i.params.a11y;b.itemRoleDescriptionMessage&&c(C(i.slides),b.itemRoleDescriptionMessage),b.slideRole&&l(C(i.slides),b.slideRole);const w=i.params.loop?i.slides.filter(N=>!N.classList.contains(i.params.slideDuplicateClass)).length:i.slides.length;b.slideLabelMessage&&i.slides.each((N,J)=>{const re=C(N),Q=i.params.loop?parseInt(re.attr("data-swiper-slide-index"),10):J,T=b.slideLabelMessage.replace(/\{\{index\}\}/,Q+1).replace(/\{\{slidesLength\}\}/,w);u(re,T)})},L=()=>{const b=i.params.a11y;i.$el.append(s);const w=i.$el;b.containerRoleDescriptionMessage&&c(w,b.containerRoleDescriptionMessage),b.containerMessage&&u(w,b.containerMessage);const N=i.$wrapperEl,J=b.id||N.attr("id")||`swiper-wrapper-${o(16)}`,re=i.params.autoplay&&i.params.autoplay.enabled?"off":"polite";h(N,J),p(N,re),V();let Q,T;i.navigation&&i.navigation.$nextEl&&(Q=i.navigation.$nextEl),i.navigation&&i.navigation.$prevEl&&(T=i.navigation.$prevEl),Q&&Q.length&&M(Q,J,b.nextSlideMessage),T&&T.length&&M(T,J,b.prevSlideMessage),y()&&i.pagination.$el.on("keydown",ue(i.params.pagination.bulletClass),f),i.$el.on("focus",_,!0),i.$el.on("pointerdown",k,!0),i.$el.on("pointerup",I,!0)};function P(){s&&s.length>0&&s.remove();let b,w;i.navigation&&i.navigation.$nextEl&&(b=i.navigation.$nextEl),i.navigation&&i.navigation.$prevEl&&(w=i.navigation.$prevEl),b&&b.off("keydown",f),w&&w.off("keydown",f),y()&&i.pagination.$el.off("keydown",ue(i.params.pagination.bulletClass),f),i.$el.off("focus",_,!0),i.$el.off("pointerdown",k,!0),i.$el.off("pointerup",I,!0)}t("beforeInit",()=>{s=C(``)}),t("afterInit",()=>{i.params.a11y.enabled&&L()}),t("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{i.params.a11y.enabled&&V()}),t("fromEdge toEdge afterInit lock unlock",()=>{i.params.a11y.enabled&&x()}),t("paginationUpdate",()=>{i.params.a11y.enabled&&S()}),t("destroy",()=>{i.params.a11y.enabled&&P()})}const _e={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(i){i.$el.removeClass("opacity-0"),i.$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(i,e){return``}}}};Object.assign(_e,{BaseCarouselCards:_e.MixinCarousel});function Zs(){return new ie(".MixinCarousel .swiper",{modules:[Et,Tt,$t,wt],..._e.MixinCarousel})}function Ks(){return new ie(".BlockImageCarousel .swiper",{modules:[Et,Tt,$t,wt],..._e.BlockImageCarousel})}function Js(){Array.prototype.slice.call(document.querySelectorAll(".BlockAccordion")).forEach(function(i){var e=i.hasAttribute("data-allow-multiple"),t=Array.prototype.slice.call(i.querySelectorAll(".BlockAccordion-trigger"));Array.prototype.slice.call(i.querySelectorAll(".BlockAccordion-panel")),i.addEventListener("click",function(s){var n=s.target;if(n.classList.contains("BlockAccordion-trigger")){var o=n.getAttribute("aria-expanded")=="true",a=i.querySelector('[aria-expanded="true"]');!e&&a&&a!==n&&(a.setAttribute("aria-expanded","false"),a.querySelector(".BlockAccordion-icon").classList.toggle("rotate-45"),document.getElementById(a.getAttribute("aria-controls")).setAttribute("hidden","")),o?o&&(n.setAttribute("aria-expanded","false"),n.querySelector(".BlockAccordion-icon").classList.toggle("rotate-45"),document.getElementById(n.getAttribute("aria-controls")).setAttribute("hidden","")):(n.setAttribute("aria-expanded","true"),n.querySelector(".BlockAccordion-icon").classList.toggle("rotate-45"),document.getElementById(n.getAttribute("aria-controls")).removeAttribute("hidden")),s.preventDefault()}}),i.addEventListener("keydown",function(s){var n=s.target,o=s.which.toString();n.getAttribute("aria-expanded")=="true";var a=s.ctrlKey&&o.match(/33|34/);if(n.classList.contains("BlockAccordion-trigger")){if(o.match(/38|40/)||a){var r=t.indexOf(n),l=o.match(/34|40/)?1:-1,c=t.length,d=(r+c+l)%c;t[d].focus(),s.preventDefault()}else if(o.match(/35|36/)){switch(o){case"36":t[0].focus();break;case"35":t[t.length-1].focus();break}s.preventDefault()}}})})}function Qs(){const i=e=>{const t=e.querySelector("button"),s=parseFloat(e.dataset.threshold)||300,n=parseFloat(e.dataset.scrollto)||0,o=e.dataset.alwaysvisible,l=((d,u=0)=>{let h;return(...p)=>{clearTimeout(h),h=setTimeout(()=>{d(...p)},u)}})(()=>{o||(window.scrollY>s?t.style.display="block":t.style.display="none")},500),c=()=>{window.scrollTo({top:n,behavior:"smooth"})};o||(t.style.display="none",window.addEventListener("scroll",l,{passive:!0}),t.addEventListener("click",c))};document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".BackToTop").forEach(i)})}function en(){let i=null;const e=document.getElementById("HeaderInternal"),t=document.getElementById("NavBgOverlay"),s=document.getElementById("NavInternalContainer"),n=document.getElementById("NavMobileToggle"),o=document.getElementById("NavMobileSearchInput"),a=v=>{e.classList.toggle("h-screen"),e.classList.toggle("overflow-y-scroll"),s.classList.toggle("hidden"),n.classList.toggle("expanded"),n.classList.contains("expanded")?n.setAttribute("aria-label","Close menu"):(o.value="",n.setAttribute("aria-label","Open menu")),document.body.classList.toggle("overflow-hidden")},r=v=>{const y=v.parentElement;document.body.classList.toggle("lg:overflow-hidden"),t.classList.toggle("invisible-overlay"),y.classList.toggle("expanded"),y.classList.contains("expanded")?v.setAttribute("aria-expanded","true"):v.setAttribute("aria-expanded","false")},l=v=>{r(v),i?i==v?i=null:(r(i),i=v):i=v},c=v=>{i&&(document.getElementById("target_"+i.id).contains(v.target)||(r(i),i=null))},d=v=>{n&&n.contains(v.target)?(a(),c(v)):v.target.classList&&v.target.classList.contains("toggle-NavInternalPanel")?l(v.target):i&&c(v)},u=v=>{document.body.classList.remove("overflow-hidden","lg:overflow-hidden"),t.classList.add("invisible-overlay"),e.classList.remove("h-screen"),e.classList.remove("overflow-y-scroll"),s.classList.add("hidden"),n.classList.remove("expanded"),n.setAttribute("aria-label","Open menu"),i&&(i.parentElement.classList.remove("expanded"),i.setAttribute("aria-expanded","false"),i=null)},h=document.getElementById("NavSearchOpen"),p=document.getElementById("NavSearchClose"),m=document.getElementById("NavSearchContainer"),g=document.getElementById("NavSearchInput"),f=v=>{m&&g&&(m.classList.add("lg:block"),g.focus())},x=v=>{m&&g&&(m.classList.remove("lg:block"),g.value="")};h&&h.addEventListener("click",f),p&&p.addEventListener("click",x),document.addEventListener("click",d),window.addEventListener("orientationchange",function(v){u(),x()},!1),document.addEventListener("keydown",function(v){v.key==="Escape"&&(u(),x())})}function tn(){const i=document.querySelector("#HeroMediaCaptionToggle"),e=document.querySelector("#HeroMediaCaption"),t=s=>{i.classList.toggle("expanded"),e.classList.toggle("hidden")};i&&i.addEventListener("click",t)}Qs();Js();en();tn();Zs();Ks();
+