diff --git a/assets/js/block/video-carousel.js b/assets/js/block/video-carousel.js index f8c661b..7897588 100644 --- a/assets/js/block/video-carousel.js +++ b/assets/js/block/video-carousel.js @@ -77,8 +77,8 @@ if (videoCarouselElement.length) { }, transitionStart: function () { - var videos = document.querySelectorAll('video'); - + var videos = videoCarouselElement[0].querySelectorAll('video'); + Array.prototype.forEach.call(videos, function (video) { video.pause(); }); diff --git a/assets/js/video-carousel-min.js b/assets/js/video-carousel-min.js index d061ebf..1731fcb 100644 --- a/assets/js/video-carousel-min.js +++ b/assets/js/video-carousel-min.js @@ -2,4 +2,4 @@ var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==type const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{s.push(e)}));else for(i=0;it.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;ir?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let a=0;a{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=s.spaceBetween;"string"==typeof l&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e=0&&u<=t.size-t.slidesSizesGrid[e];(u>=0&&u1&&m<=t.size||u<=0&&m>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e),a[e].classList.add(s.slideVisibleClass)),h&&a[e].classList.add(s.slideFullyVisibleClass),o.progress=i?-c:c,o.originalProgress=i?-p:p}},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n,progressLoop:l}=t;const o=r,d=n;if(0===a)i=0,r=!0,n=!0;else{i=(e-t.minTranslate())/a;const s=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;r=s||i<=0,n=l||i>=1,s&&(i=0),l&&(i=1)}if(s.loop){const s=t.getSlideIndexByData(0),a=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[s],r=t.slidesGrid[a],n=t.slidesGrid[t.slidesGrid.length-1],o=Math.abs(e);l=o>=i?(o-i)/n:(o+n-r)/n,l>1&&(l-=1)}Object.assign(t,{progress:i,progressLoop:l,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),n&&!d&&t.emit("reachEnd toEdge"),(o&&!r||d&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,slidesEl:a,activeIndex:i}=e,r=e.virtual&&s.virtual.enabled,n=e.grid&&s.grid&&s.grid.rows>1,l=e=>m(a,`.${s.slideClass}${e}, swiper-slide${e}`)[0];let o,d,c;if(r)if(s.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${t}"]`)}else o=l(`[data-swiper-slide-index="${i}"]`);else n?(o=t.filter((e=>e.column===i))[0],c=t.filter((e=>e.column===i+1))[0],d=t.filter((e=>e.column===i-1))[0]):o=t[i];o&&(n||(c=function(e,t){const s=[];for(;e.nextElementSibling;){const a=e.nextElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!c&&(c=t[0]),d=function(e,t){const s=[];for(;e.previousElementSibling;){const a=e.previousElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&0===!d&&(d=t[t.length-1]))),t.forEach((e=>{$(e,e===o,s.slideActiveClass),$(e,e===c,s.slideNextClass),$(e,e===d,s.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:a,params:i,activeIndex:r,realIndex:n,snapIndex:l}=t;let o,d=e;const c=e=>{let s=e-t.virtual.slidesBefore;return s<0&&(s=t.virtual.slides.length+s),s>=t.virtual.slides.length&&(s-=t.virtual.slides.length),s};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:s}=e,a=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e=t[e]&&a=t[e]&&a=t[e]&&(i=e);return s.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),a.indexOf(s)>=0)o=a.indexOf(s);else{const e=Math.min(i.slidesPerGroupSkip,d);o=e+Math.floor((d-e)/i.slidesPerGroup)}if(o>=a.length&&(o=a.length-1),d===r&&!t.params.loop)return void(o!==l&&(t.snapIndex=o,t.emit("snapIndexChange")));if(d===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const p=t.grid&&i.grid&&i.grid.rows>1;let u;if(t.virtual&&i.virtual.enabled&&i.loop)u=c(d);else if(p){const e=t.slides.filter((e=>e.column===d))[0];let s=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(s)&&(s=Math.max(t.slides.indexOf(e),0)),u=Math.floor(s/i.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");u=e?parseInt(e,10):d}else u=d;Object.assign(t,{previousSnapIndex:l,snapIndex:o,previousRealIndex:n,realIndex:u,previousIndex:r,activeIndex:d}),t.initialized&&ae(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(n!==u&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const s=this,a=s.params;let i=e.closest(`.${a.slideClass}, swiper-slide`);!i&&s.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!i&&e.matches&&e.matches(`.${a.slideClass}, swiper-slide`)&&(i=e)}));let r,n=!1;if(i)for(let e=0;eo?o:a&&e=o.length&&(v=o.length-1);const w=-o[v];if(l.normalizeSlideIndex)for(let e=0;e=s&&t=s&&t=s&&(n=e)}if(r.initialized&&n!==u){if(!r.allowSlideNext&&(m?w>r.translate&&w>r.minTranslate():wr.translate&&w>r.maxTranslate()&&(u||0)!==n)return!1}let b;if(n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(w),b=n>u?"next":n0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=s}))):h[e?"scrollLeft":"scrollTop"]=s,t&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}))}else{if(!r.support.smoothScroll)return p({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(w),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,a){void 0===e&&(e=0),void 0===s&&(s=!0),"string"==typeof e&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const r=i.grid&&i.params.grid&&i.params.grid.rows>1;let n=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)n+=i.virtual.slidesBefore;else{let e;if(r){const t=n*i.params.grid.rows;e=i.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0].column}else e=i.getSlideIndexByData(n);const t=r?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:s}=i.params;let l=i.params.slidesPerView;"auto"===l?l=i.slidesPerViewDynamic():(l=Math.ceil(parseFloat(i.params.slidesPerView,10)),s&&l%2==0&&(l+=1));let o=t-e1*t.getAttribute("data-swiper-slide-index")===e))[0].column}else n=i.getSlideIndexByData(n)}return requestAnimationFrame((()=>{i.slideTo(n,t,s,a)})),i},slideNext:function(e,t,s){void 0===t&&(t=!0);const a=this,{enabled:i,params:r,animating:n}=a;if(!i||a.destroyed)return a;void 0===e&&(e=a.params.speed);let l=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex{a.slideTo(a.activeIndex+o,e,t,s)})),!0}return r.rewind&&a.isEnd?a.slideTo(0,e,t,s):a.slideTo(a.activeIndex+o,e,t,s)},slidePrev:function(e,t,s){function a(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}void 0===t&&(t=!0);const i=this,{params:r,snapGrid:n,slidesGrid:l,rtlTranslate:o,enabled:d,animating:c}=i;if(!d||i.destroyed)return i;void 0===e&&(e=i.params.speed);const p=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!p&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}const u=a(o?i.translate:-i.translate),m=n.map((e=>a(e)));let h=n[m.indexOf(u)-1];if(void 0===h&&r.cssMode){let e;n.forEach(((t,s)=>{u>=t&&(e=s)})),void 0!==e&&(h=n[e>0?e-1:e])}let f=0;if(void 0!==h&&(f=l.indexOf(h),f<0&&(f=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(f=f-i.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),r.rewind&&i.isBeginning){const a=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(a,e,t,s)}return r.loop&&0===i.activeIndex&&r.cssMode?(requestAnimationFrame((()=>{i.slideTo(f,e,t,s)})),!0):i.slideTo(f,e,t,s)},slideReset:function(e,t,s){void 0===t&&(t=!0);const a=this;if(!a.destroyed)return void 0===e&&(e=a.params.speed),a.slideTo(a.activeIndex,e,t,s)},slideToClosest:function(e,t,s,a){void 0===t&&(t=!0),void 0===a&&(a=.5);const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let r=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;if(o>=i.snapGrid[l]){const e=i.snapGrid[l];o-e>(i.snapGrid[l+1]-e)*a&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];o-e<=(i.snapGrid[l]-e)*a&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,n=e.clickedIndex;const l=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ne.slides.length-e.loopedSlides+a/2?(e.loopFix(),n=e.getSlideIndex(m(s,`${l}[data-swiper-slide-index="${i}"]`)[0]),r((()=>{e.slideTo(n)}))):e.slideTo(n):n>e.slides.length-a?(e.loopFix(),n=e.getSlideIndex(m(s,`${l}[data-swiper-slide-index="${i}"]`)[0]),r((()=>{e.slideTo(n)}))):e.slideTo(n)}else e.slideTo(n)}},le={loopCreate:function(e){const t=this,{params:s,slidesEl:a}=t;if(!s.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{m(a,`.${s.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},r=t.grid&&s.grid&&s.grid.rows>1,n=s.slidesPerGroup*(r?s.grid.rows:1),l=t.slides.length%n!=0,o=r&&t.slides.length%s.grid.rows!=0,d=e=>{for(let a=0;a1;d.lengthe.classList.contains(m.slideActiveClass)))[0]):x=r;const S="next"===a||!a,T="prev"===a||!a;let M=0,C=0;const L=b?Math.ceil(d.length/m.grid.rows):d.length,P=(b?d[r].column:r)+(f&&void 0===i?-g/2+.5:0);if(P=0;t-=1)d[t].column===e&&y.push(t)}else y.push(L-t-1)}}else if(P+g>L-w){C=Math.max(P-(L-2*w),v);for(let e=0;e{e.column===t&&E.push(s)})):E.push(t)}}if(o.__preventObserver__=!0,requestAnimationFrame((()=>{o.__preventObserver__=!1})),T&&y.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.prepend(d[e]),d[e].swiperLoopMoveDOM=!1})),S&&E.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.append(d[e]),d[e].swiperLoopMoveDOM=!1})),o.recalcSlides(),"auto"===m.slidesPerView?o.updateSlides():b&&(y.length>0&&T||E.length>0&&S)&&o.slides.forEach(((e,t)=>{o.grid.updateSlide(t,e,o.slides)})),m.watchSlidesProgress&&o.updateSlidesOffset(),s)if(y.length>0&&T){if(void 0===t){const e=o.slidesGrid[x],t=o.slidesGrid[x+M]-e;l?o.setTranslate(o.translate-t):(o.slideTo(x+Math.ceil(M),0,!1,!0),i&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else if(i){const e=b?y.length/m.grid.rows:y.length;o.slideTo(o.activeIndex+e,0,!1,!0),o.touchEventsData.currentTranslate=o.translate}}else if(E.length>0&&S)if(void 0===t){const e=o.slidesGrid[x],t=o.slidesGrid[x-C]-e;l?o.setTranslate(o.translate-t):(o.slideTo(x-C,0,!1,!0),i&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else{const e=b?E.length/m.grid.rows:E.length;o.slideTo(o.activeIndex-e,0,!1,!0)}if(o.allowSlidePrev=c,o.allowSlideNext=p,o.controller&&o.controller.control&&!n){const e={slideRealIndex:t,direction:a,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&s})})):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix({...e,slideTo:o.controller.control.params.slidesPerView===m.slidesPerView&&s})}o.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const a=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;a[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),a.forEach((e=>{s.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};const oe=(e,t)=>{const a=s(),{params:i,el:r,wrapperEl:n,device:l}=e,o=!!i.nested,d="on"===t?"addEventListener":"removeEventListener",c=t;a[d]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[d]("touchstart",e.onTouchStart,{passive:!1}),r[d]("pointerdown",e.onTouchStart,{passive:!1}),a[d]("touchmove",e.onTouchMove,{passive:!1,capture:o}),a[d]("pointermove",e.onTouchMove,{passive:!1,capture:o}),a[d]("touchend",e.onTouchEnd,{passive:!0}),a[d]("pointerup",e.onTouchEnd,{passive:!0}),a[d]("pointercancel",e.onTouchEnd,{passive:!0}),a[d]("touchcancel",e.onTouchEnd,{passive:!0}),a[d]("pointerout",e.onTouchEnd,{passive:!0}),a[d]("pointerleave",e.onTouchEnd,{passive:!0}),a[d]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[d]("click",e.onClick,!0),i.cssMode&&n[d]("scroll",e.onScroll),i.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",k,!0):e[c]("observerUpdate",k,!0),r[d]("load",e.onLoad,{capture:!0})},de=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var ce={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!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-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};const pe={eventsEmitter:ee,update:ie,translate:re,transition:{setTransition:function(e,t){const s=this;s.params.cssMode||(s.wrapperEl.style.transitionDuration=`${e}ms`,s.wrapperEl.style.transitionDelay=0===e?"0ms":""),s.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;a.cssMode||(a.autoHeight&&s.updateAutoHeight(),C({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;s.animating=!1,a.cssMode||(s.setTransition(0),C({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:ne,loop:le,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=P.bind(e),e.onTouchMove=I.bind(e),e.onTouchEnd=A.bind(e),e.onDocumentTouchStart=G.bind(e),t.cssMode&&(e.onScroll=O.bind(e)),e.onClick=z.bind(e),e.onLoad=D.bind(e),oe(e,"on")},detachEvents:function(){oe(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:s,params:a,el:i}=e,r=a.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const n=e.getBreakpoint(r,e.params.breakpointsBase,e.el);if(!n||e.currentBreakpoint===n)return;const l=(n in r?r[n]:void 0)||e.originalParams,o=de(e,a),c=de(e,l),p=e.params.grabCursor,u=l.grabCursor,m=a.enabled;o&&!c?(i.classList.remove(`${a.containerModifierClass}grid`,`${a.containerModifierClass}grid-column`),e.emitContainerClasses()):!o&&c&&(i.classList.add(`${a.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===a.grid.fill)&&i.classList.add(`${a.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!u?e.unsetGrabCursor():!p&&u&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===l[t])return;const s=a[t]&&a[t].enabled,i=l[t]&&l[t].enabled;s&&!i&&e[t].disable(),!s&&i&&e[t].enable()}));const h=l.direction&&l.direction!==a.direction,f=a.loop&&(l.slidesPerView!==a.slidesPerView||h),g=a.loop;h&&s&&e.changeDirection(),d(e.params,l);const v=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!v?e.disable():!m&&v&&e.enable(),e.currentBreakpoint=n,e.emit("_beforeBreakpoint",l),s&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&w?(e.loopCreate(t),e.updateSlides()):g&&!w&&e.loopDestroy()),e.emit("breakpoint",l)},getBreakpoint:function(e,t,s){if(void 0===t&&(t="window"),!e||"container"===t&&!s)return;let i=!1;const r=a(),n="window"===t?r.innerHeight:s.clientHeight,l=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));l.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;es}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:s,rtl:a,el:i,device:r}=e,n=function(e,t){const s=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((a=>{e[a]&&s.push(t+a)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...n),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},ue={};class me{constructor(){let e,t;for(var a=arguments.length,i=new Array(a),r=0;r1){const e=[];return n.querySelectorAll(t.el).forEach((s=>{const a=d({},t,{el:s});e.push(new me(a))})),e}const l=this;l.__swiper__=!0,l.support=S(),l.device=T({userAgent:t.userAgent}),l.browser=M(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules);const o={};l.modules.forEach((e=>{e({params:t,swiper:l,extendParams:N(t,o),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));const c=d({},ce,o);return l.params=d({},c,ue,t),l.originalParams=d({},l.params),l.passedParams=d({},t),l.params&&l.params.on&&Object.keys(l.params.on).forEach((e=>{l.on(e,l.params.on[e])})),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,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:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:{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"}[e]}getSlideIndex(e){const{slidesEl:t,params:s}=this,a=w(m(t,`.${s.slideClass}, swiper-slide`)[0]);return w(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=m(e,`.${t.slideClass}, swiper-slide`)}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 a=s.minTranslate(),i=(s.maxTranslate()-a)*e+a;s.translateTo(i,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((s=>{ const a=e.getSlideClasses(s);t.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:s,slides:a,slidesGrid:i,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if("number"==typeof s.slidesPerView)return s.slidesPerView;if(s.centeredSlides){let e,t=a[l]?Math.ceil(a[l].swiperSlideSize):0;for(let s=l+1;sn&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e=0;e-=1)i[l]-i[e]{e.complete&&te(t,e)})),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),a.freeMode&&a.freeMode.enabled&&!a.cssMode)e(),a.autoHeight&&t.updateAutoHeight();else{if(("auto"===a.slidesPerView||a.slidesPerView>1)&&t.isEnd&&!a.centeredSlides){const e=t.virtual&&a.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(e.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||e()}a.watchOverflow&&s!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.el.classList.remove(`${s.params.containerModifierClass}${a}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if("string"==typeof s&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const a=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(a()):m(s,a())[0];return!i&&t.params.createElements&&(i=f("div",t.params.wrapperClass),s.append(i),m(s,`.${t.params.slideClass}`).forEach((e=>{i.append(e)}))),Object.assign(t,{el:s,wrapperEl:i,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:i,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:"rtl"===s.dir.toLowerCase()||"rtl"===v(s,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===v(s,"direction")),wrongRTL:"-webkit-box"===v(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const s=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&s.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach((e=>{e.complete?te(t,e):e.addEventListener("load",(e=>{te(t,e.target)}))})),ae(t),t.initialized=!0,ae(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const s=this,{params:a,el:i,wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i.removeAttribute("style"),r.removeAttribute("style"),n&&n.length&&n.forEach((e=>{e.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.el.swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){d(ue,e)}static get extendedDefaults(){return ue}static get defaults(){return ce}static installModule(e){me.prototype.__modules__||(me.prototype.__modules__=[]);const t=me.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>me.installModule(e))),me):(me.installModule(e),me)}}Object.keys(pe).forEach((e=>{Object.keys(pe[e]).forEach((t=>{me.prototype[t]=pe[e][t]}))})),me.use([function(e){let{swiper:t,on:s,emit:i}=e;const r=a();let n=null,l=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};s("init",(()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{l=r.requestAnimationFrame((()=>{const{width:s,height:a}=t;let i=s,r=a;e.forEach((e=>{let{contentBoxSize:s,contentRect:a,target:n}=e;n&&n!==t.el||(i=a?a.width:(s[0]||s).inlineSize,r=a?a.height:(s[0]||s).blockSize)})),i===s&&r===a||o()}))})),n.observe(t.el)):(r.addEventListener("resize",o),r.addEventListener("orientationchange",d))})),s("destroy",(()=>{l&&r.cancelAnimationFrame(l),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",d)}))},function(e){let{swiper:t,extendParams:s,on:i,emit:r}=e;const n=[],l=a(),o=function(e,s){void 0===s&&(s={});const a=new(l.MutationObserver||l.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void r("observerUpdate",e[0]);const s=function(){r("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(s):l.setTimeout(s,0)}));a.observe(e,{attributes:void 0===s.attributes||s.attributes,childList:void 0===s.childList||s.childList,characterData:void 0===s.characterData||s.characterData}),n.push(a)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=b(t.hostEl);for(let t=0;t{n.forEach((e=>{e.disconnect()})),n.splice(0,n.length)}))}]);const he=[function(e){function t(e,t){const s=r.params.virtual;if(s.cache&&r.virtual.cache[t])return r.virtual.cache[t];let a;return s.renderSlide?(a=s.renderSlide.call(r,e,t),"string"==typeof a&&(p.innerHTML=a,a=p.children[0])):a=r.isElement?f("swiper-slide"):f("div",r.params.slideClass),a.setAttribute("data-swiper-slide-index",t),s.renderSlide||(a.innerHTML=e),s.cache&&(r.virtual.cache[t]=a),a}function a(e,s){function a(){r.updateSlides(),r.updateProgress(),r.updateSlidesClasses(),o("virtualUpdate")}const{slidesPerView:i,slidesPerGroup:n,centeredSlides:l,loop:d,initialSlide:c}=r.params;if(s&&!d&&c>0)return;const{addSlidesBefore:p,addSlidesAfter:u}=r.params.virtual,{from:h,to:f,slides:g,slidesGrid:v,offset:w}=r.virtual;r.params.cssMode||r.updateActiveIndex();const b=r.activeIndex||0;let y,E,x;y=r.rtlTranslate?"right":r.isHorizontal()?"left":"top",l?(E=Math.floor(i/2)+n+u,x=Math.floor(i/2)+n+p):(E=i+(n-1)+u,x=(d?i:n)+p);let S=b-x,T=b+E;d||(S=Math.max(S,0),T=Math.min(T,g.length-1));let M=(r.slidesGrid[S]||0)-(r.slidesGrid[0]||0);if(d&&b>=x?(S-=x,l||(M+=r.slidesGrid[0])):d&&b{e.style[y]=M-Math.abs(r.cssOverflowAdjustment())+"px"})),r.updateProgress(),void o("virtualUpdate");if(r.params.virtual.renderExternal)return r.params.virtual.renderExternal.call(r,{offset:M,from:S,to:T,slides:function(){const e=[];for(let t=S;t<=T;t+=1)e.push(g[t]);return e}()}),void(r.params.virtual.renderExternalUpdate?a():o("virtualUpdate"));const C=[],L=[],P=e=>{let t=e;return e<0?t=g.length+e:t>=g.length&&(t-=g.length),t};if(e)r.slides.filter((e=>e.matches(`.${r.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=h;e<=f;e+=1)if(eT){const t=P(e);r.slides.filter((e=>e.matches(`.${r.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`))).forEach((e=>{e.remove()}))}const I=d?-g.length:0,A=d?2*g.length:g.length;for(let t=I;t=S&&t<=T){const s=P(t);void 0===f||e?L.push(s):(t>f&&L.push(s),t{r.slidesEl.append(t(g[e],e))})),d)for(let e=C.length-1;e>=0;e-=1){const s=C[e];r.slidesEl.prepend(t(g[s],s))}else C.sort(((e,t)=>t-e)),C.forEach((e=>{r.slidesEl.prepend(t(g[e],e))}));m(r.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[y]=M-Math.abs(r.cssOverflowAdjustment())+"px"})),a()}let i,{swiper:r,extendParams:n,on:l,emit:o}=e;n({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const d=s();r.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const p=d.createElement("div");l("beforeInit",(()=>{if(!r.params.virtual.enabled)return;let e;if(void 0===r.passedParams.virtual.slides){const t=[...r.slidesEl.children].filter((e=>e.matches(`.${r.params.slideClass}, swiper-slide`)));t&&t.length&&(r.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t),r.virtual.cache[t]=e,e.remove()})))}e||(r.virtual.slides=r.params.virtual.slides),r.classNames.push(`${r.params.containerModifierClass}virtual`),r.params.watchSlidesProgress=!0,r.originalParams.watchSlidesProgress=!0,a(!1,!0)})),l("setTranslate",(()=>{r.params.virtual.enabled&&(r.params.cssMode&&!r._immediateVirtual?(clearTimeout(i),i=setTimeout((()=>{a()}),100)):a())})),l("init update resize",(()=>{r.params.virtual.enabled&&r.params.cssMode&&c(r.wrapperEl,"--swiper-virtual-size",`${r.virtualSize}px`)})),Object.assign(r.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t{const a=e[s],r=a.getAttribute("data-swiper-slide-index");r&&a.setAttribute("data-swiper-slide-index",parseInt(r,10)+i),t[parseInt(s,10)+i]=a})),r.virtual.cache=t}a(!0),r.slideTo(s,0)},removeSlide:function(e){if(null==e)return;let t=r.activeIndex;if(Array.isArray(e))for(let s=e.length-1;s>=0;s-=1)r.params.virtual.cache&&(delete r.virtual.cache[e[s]],Object.keys(r.virtual.cache).forEach((t=>{t>e&&(r.virtual.cache[t-1]=r.virtual.cache[t],r.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete r.virtual.cache[t])}))),r.virtual.slides.splice(e[s],1),e[s]{t>e&&(r.virtual.cache[t-1]=r.virtual.cache[t],r.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete r.virtual.cache[t])}))),r.virtual.slides.splice(e,1),e0&&0===b(n.el,`.${n.params.slideActiveClass}`).length)return;const s=n.el,a=s.clientWidth,i=s.clientHeight,r=p.innerWidth,l=p.innerHeight,o=g(s);t&&(o.left-=s.scrollLeft);const d=[[o.left,o.top],[o.left+a,o.top],[o.left,o.top+i],[o.left+a,o.top+i]];for(let t=0;t=0&&s[0]<=r&&s[1]>=0&&s[1]<=l){if(0===s[0]&&0===s[1])continue;e=!0}}if(!e)return}n.isHorizontal()?((r||l||o||u)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),((l||u)&&!t||(r||o)&&t)&&n.slideNext(),((r||o)&&!t||(l||u)&&t)&&n.slidePrev()):((r||l||m||h)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),(l||h)&&n.slideNext(),(r||m)&&n.slidePrev()),d("keyPress",a)}}function i(){n.keyboard.enabled||(c.addEventListener("keydown",t),n.keyboard.enabled=!0)}function r(){n.keyboard.enabled&&(c.removeEventListener("keydown",t),n.keyboard.enabled=!1)}let{swiper:n,extendParams:l,on:o,emit:d}=e;const c=s(),p=a();n.keyboard={enabled:!1},l({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),o("init",(()=>{n.params.keyboard.enabled&&i()})),o("destroy",(()=>{n.keyboard.enabled&&r()})),Object.assign(n.keyboard,{enable:i,disable:r})},function(e){function t(){p.enabled&&(p.mouseEntered=!0)}function s(){p.enabled&&(p.mouseEntered=!1)}function i(e){return!(p.params.mousewheel.thresholdDelta&&e.delta=6&&n()-w<60)&&(e.direction<0?p.isEnd&&!p.params.loop||p.animating||(p.slideNext(),h("scroll",e.raw)):p.isBeginning&&!p.params.loop||p.animating||(p.slidePrev(),h("scroll",e.raw)),w=(new f.Date).getTime(),1))}function l(e){let t=e,s=!0;if(!p.enabled)return;if(e.target.closest(`.${p.params.mousewheel.noMousewheelClass}`))return;const a=p.params.mousewheel;p.params.cssMode&&t.preventDefault();let l=p.el;"container"!==p.params.mousewheel.eventsTarget&&(l=document.querySelector(p.params.mousewheel.eventsTarget));const o=l&&l.contains(t.target);if(!p.mouseEntered&&!o&&!a.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);let d=0;const c=p.rtlTranslate?-1:1,u=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=i,i=0),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}}(t);if(a.forceToAxis)if(p.isHorizontal()){if(!(Math.abs(u.pixelX)>Math.abs(u.pixelY)))return!0;d=-u.pixelX*c}else{if(!(Math.abs(u.pixelY)>Math.abs(u.pixelX)))return!0;d=-u.pixelY}else d=Math.abs(u.pixelX)>Math.abs(u.pixelY)?-u.pixelX*c:-u.pixelY;if(0===d)return!0;a.invert&&(d=-d);let m=p.getTranslate()+d*a.sensitivity;if(m>=p.minTranslate()&&(m=p.minTranslate()),m<=p.maxTranslate()&&(m=p.maxTranslate()),s=!!p.params.loop||!(m===p.minTranslate()||m===p.maxTranslate()),s&&p.params.nested&&t.stopPropagation(),p.params.freeMode&&p.params.freeMode.enabled){const e={time:n(),delta:Math.abs(d),direction:Math.sign(d)},s=v&&e.time=p.minTranslate()&&(i=p.minTranslate()),i<=p.maxTranslate()&&(i=p.maxTranslate()),p.setTransition(0),p.setTranslate(i),p.updateProgress(),p.updateActiveIndex(),p.updateSlidesClasses(),(!n&&p.isBeginning||!l&&p.isEnd)&&p.updateSlidesClasses(),p.params.loop&&p.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),p.params.freeMode.sticky){clearTimeout(g),g=void 0,b.length>=15&&b.shift();const t=b.length?b[b.length-1]:void 0,s=b[0];if(b.push(e),t&&(e.delta>t.delta||e.direction!==t.direction))b.splice(0);else if(b.length>=15&&e.time-s.time<500&&s.delta-e.delta>=1&&e.delta<=6){const t=d>0?.8:.2;v=e,b.splice(0),g=r((()=>{p.slideToClosest(p.params.speed,!0,void 0,t)}),0)}g||(g=r((()=>{v=e,b.splice(0),p.slideToClosest(p.params.speed,!0,void 0,.5)}),500))}if(s||h("scroll",t),p.params.autoplay&&p.params.autoplayDisableOnInteraction&&p.autoplay.stop(),a.releaseOnEdges&&(i===p.minTranslate()||i===p.maxTranslate()))return!0}}else{const t={time:n(),delta:Math.abs(d),direction:Math.sign(d),raw:e};b.length>=2&&b.shift();const s=b.length?b[b.length-1]:void 0;if(b.push(t),s?(t.direction!==s.direction||t.delta>s.delta||t.time>s.time+150)&&i(t):i(t),function(e){const t=p.params.mousewheel;if(e.direction<0){if(p.isEnd&&!p.params.loop&&t.releaseOnEdges)return!0}else if(p.isBeginning&&!p.params.loop&&t.releaseOnEdges)return!0;return!1}(t))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1}function o(e){let a=p.el;"container"!==p.params.mousewheel.eventsTarget&&(a=document.querySelector(p.params.mousewheel.eventsTarget)),a[e]("mouseenter",t),a[e]("mouseleave",s),a[e]("wheel",l)}function d(){return p.params.cssMode?(p.wrapperEl.removeEventListener("wheel",l),!0):!p.mousewheel.enabled&&(o("addEventListener"),p.mousewheel.enabled=!0,!0)}function c(){return p.params.cssMode?(p.wrapperEl.addEventListener(event,l),!0):!!p.mousewheel.enabled&&(o("removeEventListener"),p.mousewheel.enabled=!1,!0)}let{swiper:p,extendParams:u,on:m,emit:h}=e;const f=a();let g;u({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),p.mousewheel={enabled:!1};let v,w=n();const b=[];m("init",(()=>{!p.params.mousewheel.enabled&&p.params.cssMode&&c(),p.params.mousewheel.enabled&&d()})),m("destroy",(()=>{p.params.cssMode&&d(),p.mousewheel.enabled&&c()})),Object.assign(p.mousewheel,{enable:d,disable:c})},function(e){function t(e){let t;return e&&"string"==typeof e&&o.isElement&&(t=o.el.querySelector(e),t)?t:(e&&("string"==typeof e&&(t=[...document.querySelectorAll(e)]),o.params.uniqueNavElements&&"string"==typeof e&&t&&t.length>1&&1===o.el.querySelectorAll(e).length?t=o.el.querySelector(e):t&&1===t.length&&(t=t[0])),e&&!t?e:t)}function s(e,t){const s=o.params.navigation;(e=x(e)).forEach((e=>{e&&(e.classList[t?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=t),o.params.watchOverflow&&o.enabled&&e.classList[o.isLocked?"add":"remove"](s.lockClass))}))}function a(){const{nextEl:e,prevEl:t}=o.navigation;if(o.params.loop)return s(t,!1),void s(e,!1);s(t,o.isBeginning&&!o.params.rewind),s(e,o.isEnd&&!o.params.rewind)}function i(e){e.preventDefault(),(!o.isBeginning||o.params.loop||o.params.rewind)&&(o.slidePrev(),p("navigationPrev"))}function r(e){e.preventDefault(),(!o.isEnd||o.params.loop||o.params.rewind)&&(o.slideNext(),p("navigationNext"))}function n(){const e=o.params.navigation;if(o.params.navigation=H(o,o.originalParams.navigation,o.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let s=t(e.nextEl),a=t(e.prevEl);Object.assign(o.navigation,{nextEl:s,prevEl:a}),s=x(s),a=x(a);const n=(t,s)=>{t&&t.addEventListener("click","next"===s?r:i),!o.enabled&&t&&t.classList.add(...e.lockClass.split(" "))};s.forEach((e=>n(e,"next"))),a.forEach((e=>n(e,"prev")))}function l(){let{nextEl:e,prevEl:t}=o.navigation;e=x(e),t=x(t);const s=(e,t)=>{e.removeEventListener("click","next"===t?r:i),e.classList.remove(...o.params.navigation.disabledClass.split(" "))};e.forEach((e=>s(e,"next"))),t.forEach((e=>s(e,"prev")))}let{swiper:o,extendParams:d,on:c,emit:p}=e;d({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),o.navigation={nextEl:null,prevEl:null},c("init",(()=>{!1===o.params.navigation.enabled?u():(n(),a())})),c("toEdge fromEdge lock unlock",(()=>{a()})),c("destroy",(()=>{l()})),c("enable disable",(()=>{let{nextEl:e,prevEl:t}=o.navigation;e=x(e),t=x(t),o.enabled?a():[...e,...t].filter((e=>!!e)).forEach((e=>e.classList.add(o.params.navigation.lockClass)))})),c("click",((e,t)=>{let{nextEl:s,prevEl:a}=o.navigation;s=x(s),a=x(a);const i=t.target;if(o.params.navigation.hideOnClick&&!a.includes(i)&&!s.includes(i)){if(o.pagination&&o.params.pagination&&o.params.pagination.clickable&&(o.pagination.el===i||o.pagination.el.contains(i)))return;let e;s.length?e=s[0].classList.contains(o.params.navigation.hiddenClass):a.length&&(e=a[0].classList.contains(o.params.navigation.hiddenClass)),p(!0===e?"navigationShow":"navigationHide"),[...s,...a].filter((e=>!!e)).forEach((e=>e.classList.toggle(o.params.navigation.hiddenClass)))}}));const u=()=>{o.el.classList.add(...o.params.navigation.navigationDisabledClass.split(" ")),l()};Object.assign(o.navigation,{enable:()=>{o.el.classList.remove(...o.params.navigation.navigationDisabledClass.split(" ")),n(),a()},disable:u,update:a,init:n,destroy:l})},function(e){function t(){return!o.params.pagination.el||!o.pagination.el||Array.isArray(o.pagination.el)&&0===o.pagination.el.length}function s(e,t){const{bulletActiveClass:s}=o.params.pagination;e&&(e=e[("prev"===t?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${s}-${t}`),(e=e[("prev"===t?"previous":"next")+"ElementSibling"])&&e.classList.add(`${s}-${t}-${t}`))}function a(e){const t=e.target.closest(X(o.params.pagination.bulletClass));if(!t)return;e.preventDefault();const s=w(t)*o.params.slidesPerGroup;if(o.params.loop){if(o.realIndex===s)return;o.slideToLoop(s)}else o.slideTo(s)}function i(){const e=o.rtl,a=o.params.pagination;if(t())return;let i,r,n=o.pagination.el;n=x(n);const l=o.virtual&&o.params.virtual.enabled?o.virtual.slides.length:o.slides.length,d=o.params.loop?Math.ceil(l/o.params.slidesPerGroup):o.snapGrid.length;if(o.params.loop?(r=o.previousRealIndex||0,i=o.params.slidesPerGroup>1?Math.floor(o.realIndex/o.params.slidesPerGroup):o.realIndex):void 0!==o.snapIndex?(i=o.snapIndex,r=o.previousSnapIndex):(r=o.previousIndex||0,i=o.activeIndex||0),"bullets"===a.type&&o.pagination.bullets&&o.pagination.bullets.length>0){const t=o.pagination.bullets;let l,d,c;if(a.dynamicBullets&&(m=E(t[0],o.isHorizontal()?"width":"height",!0),n.forEach((e=>{e.style[o.isHorizontal()?"width":"height"]=m*(a.dynamicMainBullets+4)+"px"})),a.dynamicMainBullets>1&&void 0!==r&&(h+=i-(r||0),h>a.dynamicMainBullets-1?h=a.dynamicMainBullets-1:h<0&&(h=0)),l=Math.max(i-h,0),d=l+(Math.min(t.length,a.dynamicMainBullets)-1),c=(d+l)/2),t.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${a.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),n.length>1)t.forEach((e=>{const t=w(e);t===i?e.classList.add(...a.bulletActiveClass.split(" ")):o.isElement&&e.setAttribute("part","bullet"),a.dynamicBullets&&(t>=l&&t<=d&&e.classList.add(...`${a.bulletActiveClass}-main`.split(" ")),t===l&&s(e,"prev"),t===d&&s(e,"next"))}));else{const e=t[i];if(e&&e.classList.add(...a.bulletActiveClass.split(" ")),o.isElement&&t.forEach(((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")})),a.dynamicBullets){const e=t[l],i=t[d];for(let e=l;e<=d;e+=1)t[e]&&t[e].classList.add(...`${a.bulletActiveClass}-main`.split(" "));s(e,"prev"),s(i,"next")}}if(a.dynamicBullets){const s=Math.min(t.length,a.dynamicMainBullets+4),i=(m*s-m)/2-c*m,r=e?"right":"left";t.forEach((e=>{e.style[o.isHorizontal()?r:"top"]=`${i}px`}))}}n.forEach(((e,t)=>{if("fraction"===a.type&&(e.querySelectorAll(X(a.currentClass)).forEach((e=>{e.textContent=a.formatFractionCurrent(i+1)})),e.querySelectorAll(X(a.totalClass)).forEach((e=>{e.textContent=a.formatFractionTotal(d)}))),"progressbar"===a.type){let t;t=a.progressbarOpposite?o.isHorizontal()?"vertical":"horizontal":o.isHorizontal()?"horizontal":"vertical";const s=(i+1)/d;let r=1,n=1;"horizontal"===t?r=s:n=s,e.querySelectorAll(X(a.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${n})`,e.style.transitionDuration=`${o.params.speed}ms`}))}"custom"===a.type&&a.renderCustom?(e.innerHTML=a.renderCustom(o,i+1,d),0===t&&p("paginationRender",e)):(0===t&&p("paginationRender",e),p("paginationUpdate",e)),o.params.watchOverflow&&o.enabled&&e.classList[o.isLocked?"add":"remove"](a.lockClass)}))}function r(){const e=o.params.pagination;if(t())return;const s=o.virtual&&o.params.virtual.enabled?o.virtual.slides.length:o.grid&&o.params.grid.rows>1?o.slides.length/Math.ceil(o.params.grid.rows):o.slides.length;let a=o.pagination.el;a=x(a);let i="";if("bullets"===e.type){let t=o.params.loop?Math.ceil(s/o.params.slidesPerGroup):o.snapGrid.length;o.params.freeMode&&o.params.freeMode.enabled&&t>s&&(t=s);for(let s=0;s`}"fraction"===e.type&&(i=e.renderFraction?e.renderFraction.call(o,e.currentClass,e.totalClass):` / `),"progressbar"===e.type&&(i=e.renderProgressbar?e.renderProgressbar.call(o,e.progressbarFillClass):``),o.pagination.bullets=[],a.forEach((t=>{"custom"!==e.type&&(t.innerHTML=i||""),"bullets"===e.type&&o.pagination.bullets.push(...t.querySelectorAll(X(e.bulletClass)))})),"custom"!==e.type&&p("paginationRender",a[0])}function n(){o.params.pagination=H(o,o.originalParams.pagination,o.params.pagination,{el:"swiper-pagination"});const e=o.params.pagination;if(!e.el)return;let t;"string"==typeof e.el&&o.isElement&&(t=o.el.querySelector(e.el)),t||"string"!=typeof e.el||(t=[...document.querySelectorAll(e.el)]),t||(t=e.el),t&&0!==t.length&&(o.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(t)&&t.length>1&&(t=[...o.el.querySelectorAll(e.el)],t.length>1&&(t=t.filter((e=>b(e,".swiper")[0]===o.el))[0])),Array.isArray(t)&&1===t.length&&(t=t[0]),Object.assign(o.pagination,{el:t}),t=x(t),t.forEach((t=>{"bullets"===e.type&&e.clickable&&t.classList.add(...(e.clickableClass||"").split(" ")),t.classList.add(e.modifierClass+e.type),t.classList.add(o.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(t.classList.add(`${e.modifierClass}${e.type}-dynamic`),h=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&t.classList.add(e.progressbarOppositeClass),e.clickable&&t.addEventListener("click",a),o.enabled||t.classList.add(e.lockClass)})))}function l(){const e=o.params.pagination;if(t())return;let s=o.pagination.el;s&&(s=x(s),s.forEach((t=>{t.classList.remove(e.hiddenClass),t.classList.remove(e.modifierClass+e.type),t.classList.remove(o.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(t.classList.remove(...(e.clickableClass||"").split(" ")),t.removeEventListener("click",a))}))),o.pagination.bullets&&o.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}let{swiper:o,extendParams:d,on:c,emit:p}=e;const u="swiper-pagination";let m;d({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${u}-bullet`,bulletActiveClass:`${u}-bullet-active`,modifierClass:`${u}-`,currentClass:`${u}-current`,totalClass:`${u}-total`,hiddenClass:`${u}-hidden`,progressbarFillClass:`${u}-progressbar-fill`,progressbarOppositeClass:`${u}-progressbar-opposite`,clickableClass:`${u}-clickable`,lockClass:`${u}-lock`,horizontalClass:`${u}-horizontal`,verticalClass:`${u}-vertical`,paginationDisabledClass:`${u}-disabled`}}),o.pagination={el:null,bullets:[]};let h=0;c("changeDirection",(()=>{if(!o.pagination||!o.pagination.el)return;const e=o.params.pagination;let{el:t}=o.pagination;t=x(t),t.forEach((t=>{t.classList.remove(e.horizontalClass,e.verticalClass),t.classList.add(o.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),c("init",(()=>{!1===o.params.pagination.enabled?f():(n(),r(),i())})),c("activeIndexChange",(()=>{void 0===o.snapIndex&&i()})),c("snapIndexChange",(()=>{i()})),c("snapGridLengthChange",(()=>{r(),i()})),c("destroy",(()=>{l()})),c("enable disable",(()=>{let{el:e}=o.pagination;e&&(e=x(e),e.forEach((e=>e.classList[o.enabled?"remove":"add"](o.params.pagination.lockClass))))})),c("lock unlock",(()=>{i()})),c("click",((e,t)=>{const s=t.target,a=x(o.pagination.el);if(o.params.pagination.el&&o.params.pagination.hideOnClick&&a&&a.length>0&&!s.classList.contains(o.params.pagination.bulletClass)){if(o.navigation&&(o.navigation.nextEl&&s===o.navigation.nextEl||o.navigation.prevEl&&s===o.navigation.prevEl))return;const e=a[0].classList.contains(o.params.pagination.hiddenClass);p(!0===e?"paginationShow":"paginationHide"),a.forEach((e=>e.classList.toggle(o.params.pagination.hiddenClass)))}}));const f=()=>{o.el.classList.add(o.params.pagination.paginationDisabledClass);let{el:e}=o.pagination;e&&(e=x(e),e.forEach((e=>e.classList.add(o.params.pagination.paginationDisabledClass)))),l()};Object.assign(o.pagination,{enable:()=>{o.el.classList.remove(o.params.pagination.paginationDisabledClass);let{el:e}=o.pagination;e&&(e=x(e),e.forEach((e=>e.classList.remove(o.params.pagination.paginationDisabledClass)))),n(),r(),i()},disable:f,render:r,update:i,init:n,destroy:l})},function(e){function t(){if(!h.params.scrollbar.el||!h.scrollbar.el)return;const{scrollbar:e,rtlTranslate:t}=h,{dragEl:s,el:a}=e,i=h.params.scrollbar,r=h.params.loop?h.progressLoop:h.progress;let n=S,l=(T-S)*r;t?(l=-l,l>0?(n=S-l,l=0):-l+S>T&&(n=T+l)):l<0?(n=S+l,l=0):l+S>T&&(n=T-l),h.isHorizontal()?(s.style.transform=`translate3d(${l}px, 0, 0)`,s.style.width=`${n}px`):(s.style.transform=`translate3d(0px, ${l}px, 0)`,s.style.height=`${n}px`),i.hide&&(clearTimeout(L),a.style.opacity=1,L=setTimeout((()=>{a.style.opacity=0,a.style.transitionDuration="400ms"}),1e3))}function a(){if(!h.params.scrollbar.el||!h.scrollbar.el)return;const{scrollbar:e}=h,{dragEl:t,el:s}=e;t.style.width="",t.style.height="",T=h.isHorizontal()?s.offsetWidth:s.offsetHeight,M=h.size/(h.virtualSize+h.params.slidesOffsetBefore-(h.params.centeredSlides?h.snapGrid[0]:0)),S="auto"===h.params.scrollbar.dragSize?T*M:parseInt(h.params.scrollbar.dragSize,10),h.isHorizontal()?t.style.width=`${S}px`:t.style.height=`${S}px`,s.style.display=M>=1?"none":"",h.params.scrollbar.hide&&(s.style.opacity=0),h.params.watchOverflow&&h.enabled&&e.el.classList[h.isLocked?"add":"remove"](h.params.scrollbar.lockClass)}function n(e){return h.isHorizontal()?e.clientX:e.clientY}function l(e){const{scrollbar:t,rtlTranslate:s}=h,{el:a}=t;let i;i=(n(e)-g(a)[h.isHorizontal()?"left":"top"]-(null!==E?E:S/2))/(T-S),i=Math.max(Math.min(i,1),0),s&&(i=1-i);const r=h.minTranslate()+(h.maxTranslate()-h.minTranslate())*i;h.updateProgress(r),h.setTranslate(r),h.updateActiveIndex(), h.updateSlidesClasses()}function o(e){const t=h.params.scrollbar,{scrollbar:s,wrapperEl:a}=h,{el:i,dragEl:r}=s;C=!0,E=e.target===r?n(e)-e.target.getBoundingClientRect()[h.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),a.style.transitionDuration="100ms",r.style.transitionDuration="100ms",l(e),clearTimeout(P),i.style.transitionDuration="0ms",t.hide&&(i.style.opacity=1),h.params.cssMode&&(h.wrapperEl.style["scroll-snap-type"]="none"),b("scrollbarDragStart",e)}function d(e){const{scrollbar:t,wrapperEl:s}=h,{el:a,dragEl:i}=t;C&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,l(e),s.style.transitionDuration="0ms",a.style.transitionDuration="0ms",i.style.transitionDuration="0ms",b("scrollbarDragMove",e))}function c(e){const t=h.params.scrollbar,{scrollbar:s,wrapperEl:a}=h,{el:i}=s;C&&(C=!1,h.params.cssMode&&(h.wrapperEl.style["scroll-snap-type"]="",a.style.transitionDuration=""),t.hide&&(clearTimeout(P),P=r((()=>{i.style.opacity=0,i.style.transitionDuration="400ms"}),1e3)),b("scrollbarDragEnd",e),t.snapOnRelease&&h.slideToClosest())}function p(e){const{scrollbar:t,params:s}=h,a=t.el;if(!a)return;const i=a,r=!!s.passiveListeners&&{passive:!1,capture:!1},n=!!s.passiveListeners&&{passive:!0,capture:!1};if(!i)return;const l="on"===e?"addEventListener":"removeEventListener";i[l]("pointerdown",o,r),y[l]("pointermove",d,r),y[l]("pointerup",c,n)}function u(){const{scrollbar:e,el:t}=h;h.params.scrollbar=H(h,h.originalParams.scrollbar,h.params.scrollbar,{el:"swiper-scrollbar"});const s=h.params.scrollbar;if(!s.el)return;let a,r;if("string"==typeof s.el&&h.isElement&&(a=h.el.querySelector(s.el)),a||"string"!=typeof s.el)a||(a=s.el);else if(a=y.querySelectorAll(s.el),!a.length)return;h.params.uniqueNavElements&&"string"==typeof s.el&&a.length>1&&1===t.querySelectorAll(s.el).length&&(a=t.querySelector(s.el)),a.length>0&&(a=a[0]),a.classList.add(h.isHorizontal()?s.horizontalClass:s.verticalClass),a&&(r=a.querySelector(X(h.params.scrollbar.dragClass)),r||(r=f("div",h.params.scrollbar.dragClass),a.append(r))),Object.assign(e,{el:a,dragEl:r}),s.draggable&&h.params.scrollbar.el&&h.scrollbar.el&&p("on"),a&&a.classList[h.enabled?"remove":"add"](...i(h.params.scrollbar.lockClass))}function m(){const e=h.params.scrollbar,t=h.scrollbar.el;t&&t.classList.remove(...i(h.isHorizontal()?e.horizontalClass:e.verticalClass)),h.params.scrollbar.el&&h.scrollbar.el&&p("off")}let{swiper:h,extendParams:v,on:w,emit:b}=e;const y=s();let E,S,T,M,C=!1,L=null,P=null;v({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),h.scrollbar={el:null,dragEl:null},w("changeDirection",(()=>{if(!h.scrollbar||!h.scrollbar.el)return;const e=h.params.scrollbar;let{el:t}=h.scrollbar;t=x(t),t.forEach((t=>{t.classList.remove(e.horizontalClass,e.verticalClass),t.classList.add(h.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),w("init",(()=>{!1===h.params.scrollbar.enabled?I():(u(),a(),t())})),w("update resize observerUpdate lock unlock changeDirection",(()=>{a()})),w("setTranslate",(()=>{t()})),w("setTransition",((e,t)=>{!function(e){h.params.scrollbar.el&&h.scrollbar.el&&(h.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(t)})),w("enable disable",(()=>{const{el:e}=h.scrollbar;e&&e.classList[h.enabled?"remove":"add"](...i(h.params.scrollbar.lockClass))})),w("destroy",(()=>{m()}));const I=()=>{h.el.classList.add(...i(h.params.scrollbar.scrollbarDisabledClass)),h.scrollbar.el&&h.scrollbar.el.classList.add(...i(h.params.scrollbar.scrollbarDisabledClass)),m()};Object.assign(h.scrollbar,{enable:()=>{h.el.classList.remove(...i(h.params.scrollbar.scrollbarDisabledClass)),h.scrollbar.el&&h.scrollbar.el.classList.remove(...i(h.params.scrollbar.scrollbarDisabledClass)),u(),a(),t()},disable:I,updateSize:a,setTranslate:t,init:u,destroy:m})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(e,s)=>{const{rtl:a}=t,i=a?-1:1,r=e.getAttribute("data-swiper-parallax")||"0";let n=e.getAttribute("data-swiper-parallax-x"),l=e.getAttribute("data-swiper-parallax-y");const o=e.getAttribute("data-swiper-parallax-scale"),d=e.getAttribute("data-swiper-parallax-opacity"),c=e.getAttribute("data-swiper-parallax-rotate");if(n||l?(n=n||"0",l=l||"0"):t.isHorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexOf("%")>=0?parseInt(n,10)*s*i+"%":n*s*i+"px",l=l.indexOf("%")>=0?parseInt(l,10)*s+"%":l*s+"px",null!=d){const t=d-(d-1)*(1-Math.abs(s));e.style.opacity=t}let p=`translate3d(${n}, ${l}, 0px)`;null!=o&&(p+=` scale(${o-(o-1)*(1-Math.abs(s))})`),c&&null!=c&&(p+=` rotate(${c*s*-1}deg)`),e.style.transform=p},n=()=>{const{el:e,slides:s,progress:a,snapGrid:n,isElement:l}=t,o=m(e,i);t.isElement&&o.push(...m(t.hostEl,i)),o.forEach((e=>{r(e,a)})),s.forEach(((e,s)=>{let l=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(l+=Math.ceil(s/2)-a*(n.length-1)),l=Math.min(Math.max(l,-1),1),e.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach((e=>{r(e,l)}))}))};a("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),a("init",(()=>{t.params.parallax.enabled&&n()})),a("setTranslate",(()=>{t.params.parallax.enabled&&n()})),a("setTransition",((e,s)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:s,hostEl:a}=t,r=[...s.querySelectorAll(i)];t.isElement&&r.push(...a.querySelectorAll(i)),r.forEach((t=>{let s=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.style.transitionDuration=`${s}ms`}))}(s)}))},function(e){function t(){if(I.length<2)return 1;const e=I[0].pageX,t=I[0].pageY,s=I[1].pageX,a=I[1].pageY;return Math.sqrt((s-e)**2+(a-t)**2)}function s(){const e=y.params.zoom,t=A.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&A.imageEl&&A.imageEl.naturalWidth){const e=A.imageEl.naturalWidth/A.imageEl.offsetWidth;return Math.min(e,t)}return t}function i(e){const t=y.isElement?"swiper-slide":`.${y.params.slideClass}`;return!!e.target.matches(t)||y.slides.filter((t=>t.contains(e.target))).length>0}function r(e){if("mouse"===e.pointerType&&I.splice(0,I.length),!i(e))return;const a=y.params.zoom;if(M=!1,C=!1,I.push(e),!(I.length<2)){if(M=!0,A.scaleStart=t(),!A.slideEl){A.slideEl=e.target.closest(`.${y.params.slideClass}, swiper-slide`),A.slideEl||(A.slideEl=y.slides[y.activeIndex]);let t=A.slideEl.querySelector(`.${a.containerClass}`);if(t&&(t=t.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),A.imageEl=t,A.imageWrapEl=t?b(A.imageEl,`.${a.containerClass}`)[0]:void 0,!A.imageWrapEl)return void(A.imageEl=void 0);A.maxRatio=s()}if(A.imageEl){const[e,t]=function(){if(I.length<2)return{x:null,y:null};const e=A.imageEl.getBoundingClientRect();return[(I[0].pageX+(I[1].pageX-I[0].pageX)/2-e.x-T.scrollX)/L,(I[0].pageY+(I[1].pageY-I[0].pageY)/2-e.y-T.scrollY)/L]}();A.originX=e,A.originY=t,A.imageEl.style.transitionDuration="0ms"}P=!0}}function n(e){if(!i(e))return;const s=y.params.zoom,a=y.zoom,r=I.findIndex((t=>t.pointerId===e.pointerId));r>=0&&(I[r]=e),I.length<2||(C=!0,A.scaleMove=t(),A.imageEl&&(a.scale=A.scaleMove/A.scaleStart*L,a.scale>A.maxRatio&&(a.scale=A.maxRatio-1+(a.scale-A.maxRatio+1)**.5),a.scalet.pointerId===e.pointerId));a>=0&&I.splice(a,1),M&&C&&(M=!1,C=!1,A.imageEl&&(s.scale=Math.max(Math.min(s.scale,A.maxRatio),t.minRatio),A.imageEl.style.transitionDuration=`${y.params.speed}ms`,A.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`,L=s.scale,P=!1,s.scale>1&&A.slideEl?A.slideEl.classList.add(`${t.zoomedSlideClass}`):s.scale<=1&&A.slideEl&&A.slideEl.classList.remove(`${t.zoomedSlideClass}`),1===s.scale&&(A.originX=0,A.originY=0,A.slideEl=void 0)))}function d(){y.touchEventsData.preventTouchMoveFromPointerMove=!1}function c(e){if(!i(e)||!function(e){const t=`.${y.params.zoom.containerClass}`;return!!e.target.matches(t)||[...y.hostEl.querySelectorAll(t)].filter((t=>t.contains(e.target))).length>0}(e))return;const t=y.zoom;if(!A.imageEl)return;if(!k.isTouched||!A.slideEl)return;k.isMoved||(k.width=A.imageEl.offsetWidth||A.imageEl.clientWidth,k.height=A.imageEl.offsetHeight||A.imageEl.clientHeight,k.startX=l(A.imageWrapEl,"x")||0,k.startY=l(A.imageWrapEl,"y")||0,A.slideWidth=A.slideEl.offsetWidth,A.slideHeight=A.slideEl.offsetHeight,A.imageWrapEl.style.transitionDuration="0ms");const s=k.width*t.scale,a=k.height*t.scale;if(s0?I[0].pageX:e.pageX,k.touchesCurrent.y=I.length>0?I[0].pageY:e.pageY,Math.max(Math.abs(k.touchesCurrent.x-k.touchesStart.x),Math.abs(k.touchesCurrent.y-k.touchesStart.y))>5&&(y.allowClick=!1),!k.isMoved&&!P){if(y.isHorizontal()&&(Math.floor(k.minX)===Math.floor(k.startX)&&k.touchesCurrent.xk.touchesStart.x))return k.isTouched=!1,void d();if(!y.isHorizontal()&&(Math.floor(k.minY)===Math.floor(k.startY)&&k.touchesCurrent.yk.touchesStart.y))return k.isTouched=!1,void d()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(O),y.touchEventsData.preventTouchMoveFromPointerMove=!0,O=setTimeout((()=>{d()})),k.isMoved=!0;const r=(t.scale-L)/(A.maxRatio-y.params.zoom.minRatio),{originX:n,originY:o}=A;k.currentX=k.touchesCurrent.x-k.touchesStart.x+k.startX+r*(k.width-2*n),k.currentY=k.touchesCurrent.y-k.touchesStart.y+k.startY+r*(k.height-2*o),k.currentXk.maxX&&(k.currentX=k.maxX-1+(k.currentX-k.maxX+1)**.8),k.currentYk.maxY&&(k.currentY=k.maxY-1+(k.currentY-k.maxY+1)**.8),z.prevPositionX||(z.prevPositionX=k.touchesCurrent.x),z.prevPositionY||(z.prevPositionY=k.touchesCurrent.y),z.prevTime||(z.prevTime=Date.now()),z.x=(k.touchesCurrent.x-z.prevPositionX)/(Date.now()-z.prevTime)/2,z.y=(k.touchesCurrent.y-z.prevPositionY)/(Date.now()-z.prevTime)/2,Math.abs(k.touchesCurrent.x-z.prevPositionX)<2&&(z.x=0),Math.abs(k.touchesCurrent.y-z.prevPositionY)<2&&(z.y=0),z.prevPositionX=k.touchesCurrent.x,z.prevPositionY=k.touchesCurrent.y,z.prevTime=Date.now(),A.imageWrapEl.style.transform=`translate3d(${k.currentX}px, ${k.currentY}px,0)`}function p(){const e=y.zoom;A.slideEl&&y.activeIndex!==y.slides.indexOf(A.slideEl)&&(A.imageEl&&(A.imageEl.style.transform="translate3d(0,0,0) scale(1)"),A.imageWrapEl&&(A.imageWrapEl.style.transform="translate3d(0,0,0)"),A.slideEl.classList.remove(`${y.params.zoom.zoomedSlideClass}`),e.scale=1,L=1,A.slideEl=void 0,A.imageEl=void 0,A.imageWrapEl=void 0,A.originX=0,A.originY=0)}function u(e){const t=y.zoom,a=y.params.zoom;if(!A.slideEl){e&&e.target&&(A.slideEl=e.target.closest(`.${y.params.slideClass}, swiper-slide`)),A.slideEl||(y.params.virtual&&y.params.virtual.enabled&&y.virtual?A.slideEl=m(y.slidesEl,`.${y.params.slideActiveClass}`)[0]:A.slideEl=y.slides[y.activeIndex]);let t=A.slideEl.querySelector(`.${a.containerClass}`);t&&(t=t.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),A.imageEl=t,A.imageWrapEl=t?b(A.imageEl,`.${a.containerClass}`)[0]:void 0}if(!A.imageEl||!A.imageWrapEl)return;let i,r,n,l,o,d,c,p,u,h,f,v,w,E,x,S,M,C;y.params.cssMode&&(y.wrapperEl.style.overflow="hidden",y.wrapperEl.style.touchAction="none"),A.slideEl.classList.add(`${a.zoomedSlideClass}`),void 0===k.touchesStart.x&&e?(i=e.pageX,r=e.pageY):(i=k.touchesStart.x,r=k.touchesStart.y);const P="number"==typeof e?e:null;1===L&&P&&(i=void 0,r=void 0);const I=s();t.scale=P||I,L=P||I,!e||1===L&&P?(c=0,p=0):(M=A.slideEl.offsetWidth,C=A.slideEl.offsetHeight,n=g(A.slideEl).left+T.scrollX,l=g(A.slideEl).top+T.scrollY,o=n+M/2-i,d=l+C/2-r,u=A.imageEl.offsetWidth||A.imageEl.clientWidth,h=A.imageEl.offsetHeight||A.imageEl.clientHeight,f=u*t.scale,v=h*t.scale,w=Math.min(M/2-f/2,0),E=Math.min(C/2-v/2,0),x=-w,S=-E,c=o*t.scale,p=d*t.scale,cx&&(c=x),pS&&(p=S)),P&&1===t.scale&&(A.originX=0,A.originY=0),A.imageWrapEl.style.transitionDuration="300ms",A.imageWrapEl.style.transform=`translate3d(${c}px, ${p}px,0)`,A.imageEl.style.transitionDuration="300ms",A.imageEl.style.transform=`translate3d(0,0,0) scale(${t.scale})`}function h(){const e=y.zoom,t=y.params.zoom;if(!A.slideEl){y.params.virtual&&y.params.virtual.enabled&&y.virtual?A.slideEl=m(y.slidesEl,`.${y.params.slideActiveClass}`)[0]:A.slideEl=y.slides[y.activeIndex];let e=A.slideEl.querySelector(`.${t.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),A.imageEl=e,A.imageWrapEl=e?b(A.imageEl,`.${t.containerClass}`)[0]:void 0}A.imageEl&&A.imageWrapEl&&(y.params.cssMode&&(y.wrapperEl.style.overflow="",y.wrapperEl.style.touchAction=""),e.scale=1,L=1,A.imageWrapEl.style.transitionDuration="300ms",A.imageWrapEl.style.transform="translate3d(0,0,0)",A.imageEl.style.transitionDuration="300ms",A.imageEl.style.transform="translate3d(0,0,0) scale(1)",A.slideEl.classList.remove(`${t.zoomedSlideClass}`),A.slideEl=void 0,A.originX=0,A.originY=0)}function $(e){const t=y.zoom;t.scale&&1!==t.scale?h():u(e)}function f(){return{passiveListener:!!y.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!y.params.passiveListeners||{passive:!1,capture:!0}}}function v(){const e=y.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:t,activeListenerWithCapture:s}=f();y.wrapperEl.addEventListener("pointerdown",r,t),y.wrapperEl.addEventListener("pointermove",n,s),["pointerup","pointercancel","pointerout"].forEach((e=>{y.wrapperEl.addEventListener(e,o,t)})),y.wrapperEl.addEventListener("pointermove",c,s)}function w(){const e=y.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:t,activeListenerWithCapture:s}=f();y.wrapperEl.removeEventListener("pointerdown",r,t),y.wrapperEl.removeEventListener("pointermove",n,s),["pointerup","pointercancel","pointerout"].forEach((e=>{y.wrapperEl.removeEventListener(e,o,t)})),y.wrapperEl.removeEventListener("pointermove",c,s)}let{swiper:y,extendParams:E,on:x,emit:S}=e;const T=a();E({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),y.zoom={enabled:!1};let M,C,L=1,P=!1;const I=[],A={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},k={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},z={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let O,D=1;Object.defineProperty(y.zoom,"scale",{get:()=>D,set(e){if(D!==e){const t=A.imageEl,s=A.slideEl;S("zoomChange",e,t,s)}D=e}}),x("init",(()=>{y.params.zoom.enabled&&v()})),x("destroy",(()=>{w()})),x("touchStart",((e,t)=>{y.zoom.enabled&&function(e){const t=y.device;if(!A.imageEl)return;if(k.isTouched)return;t.android&&e.cancelable&&e.preventDefault(),k.isTouched=!0;const s=I.length>0?I[0]:e;k.touchesStart.x=s.pageX,k.touchesStart.y=s.pageY}(t)})),x("touchEnd",((e,t)=>{y.zoom.enabled&&function(){const e=y.zoom;if(!A.imageEl)return;if(!k.isTouched||!k.isMoved)return k.isTouched=!1,void(k.isMoved=!1);k.isTouched=!1,k.isMoved=!1;let t=300,s=300;const a=z.x*t,i=k.currentX+a,r=z.y*s,n=k.currentY+r;0!==z.x&&(t=Math.abs((i-k.currentX)/z.x)),0!==z.y&&(s=Math.abs((n-k.currentY)/z.y));const l=Math.max(t,s);k.currentX=i,k.currentY=n;const o=k.width*e.scale,d=k.height*e.scale;k.minX=Math.min(A.slideWidth/2-o/2,0),k.maxX=-k.minX,k.minY=Math.min(A.slideHeight/2-d/2,0),k.maxY=-k.minY,k.currentX=Math.max(Math.min(k.currentX,k.maxX),k.minX),k.currentY=Math.max(Math.min(k.currentY,k.maxY),k.minY),A.imageWrapEl.style.transitionDuration=`${l}ms`,A.imageWrapEl.style.transform=`translate3d(${k.currentX}px, ${k.currentY}px,0)`}()})),x("doubleTap",((e,t)=>{!y.animating&&y.params.zoom.enabled&&y.zoom.enabled&&y.params.zoom.toggle&&$(t)})),x("transitionEnd",(()=>{y.zoom.enabled&&y.params.zoom.enabled&&p()})),x("slideChange",(()=>{y.zoom.enabled&&y.params.zoom.enabled&&y.params.cssMode&&p()})),Object.assign(y.zoom,{enable:v,disable:w,in:u,out:h,toggle:$})},function(e){function t(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function s(){a.controller.control&&a.controller.spline&&(a.controller.spline=void 0,delete a.controller.spline)}let{swiper:a,extendParams:i,on:n}=e;i({controller:{control:void 0,inverse:!1,by:"slide"}}),a.controller={control:void 0},n("beforeInit",(()=>{if("undefined"!=typeof window&&("string"==typeof a.params.controller.control||a.params.controller.control instanceof HTMLElement)){const e=document.querySelector(a.params.controller.control);if(e&&e.swiper)a.controller.control=e.swiper;else if(e){const t=s=>{a.controller.control=s.detail[0],a.update(),e.removeEventListener("init",t)};e.addEventListener("init",t)}}else a.controller.control=a.params.controller.control})),n("update",(()=>{s()})),n("resize",(()=>{s()})),n("observerUpdate",(()=>{s()})),n("setTranslate",((e,t,s)=>{a.controller.control&&!a.controller.control.destroyed&&a.controller.setTranslate(t,s)})),n("setTransition",((e,t,s)=>{a.controller.control&&!a.controller.control.destroyed&&a.controller.setTransition(t,s)})),Object.assign(a.controller,{setTranslate:function(e,s){function i(e){if(e.destroyed)return;const s=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(function(e){a.controller.spline=a.params.loop?new t(a.slidesGrid,e.slidesGrid):new t(a.snapGrid,e.snapGrid)}(e),l=-a.controller.spline.interpolate(-s)),l&&"container"!==a.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),!Number.isNaN(n)&&Number.isFinite(n)||(n=1),l=(s-a.minTranslate())*n+e.minTranslate()),a.params.controller.inverse&&(l=e.maxTranslate()-l),e.updateProgress(l),e.setTranslate(l,a),e.updateActiveIndex(),e.updateSlidesClasses()}const r=a.controller.control;let n,l;const o=a.constructor;if(Array.isArray(r))for(let e=0;e{t.updateAutoHeight()})),y(t.wrapperEl,(()=>{n&&t.transitionEnd()}))))}const i=a.constructor,n=a.controller.control;let l;if(Array.isArray(n))for(l=0;l{e.setAttribute("tabIndex","0")}))}function i(e){(e=x(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function r(e,t){(e=x(e)).forEach((e=>{e.setAttribute("role",t)}))}function n(e,t){(e=x(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function l(e,t){(e=x(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function o(e){(e=x(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function d(e){(e=x(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function c(e){if(13!==e.keyCode&&32!==e.keyCode)return;const s=m.params.a11y,a=e.target;if(!m.pagination||!m.pagination.el||a!==m.pagination.el&&!m.pagination.el.contains(e.target)||e.target.matches(X(m.params.pagination.bulletClass))){if(m.navigation&&m.navigation.prevEl&&m.navigation.nextEl){const e=x(m.navigation.prevEl);x(m.navigation.nextEl).includes(a)&&(m.isEnd&&!m.params.loop||m.slideNext(),m.isEnd?t(s.lastSlideMessage):t(s.nextSlideMessage)),e.includes(a)&&(m.isBeginning&&!m.params.loop||m.slidePrev(),m.isBeginning?t(s.firstSlideMessage):t(s.prevSlideMessage))}m.pagination&&a.matches(X(m.params.pagination.bulletClass))&&a.click()}}function p(){return m.pagination&&m.pagination.bullets&&m.pagination.bullets.length}function u(){return p()&&m.params.pagination.clickable}let{swiper:m,extendParams:h,on:g}=e;h({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}}),m.a11y={clicked:!1};let v,b,y=null,E=(new Date).getTime();const S=(e,t,s)=>{a(e),"BUTTON"!==e.tagName&&(r(e,"button"),e.addEventListener("keydown",c)),l(e,s),function(e,t){(e=x(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},T=e=>{b&&b!==e.target&&!b.contains(e.target)&&(v=!0),m.a11y.clicked=!0},M=()=>{v=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{m.destroyed||(m.a11y.clicked=!1)}))}))},C=e=>{E=(new Date).getTime()},L=e=>{if(m.a11y.clicked)return;if((new Date).getTime()-E<100)return;const t=e.target.closest(`.${m.params.slideClass}, swiper-slide`);if(!t||!m.slides.includes(t))return;b=t;const s=m.slides.indexOf(t)===m.activeIndex,a=m.params.watchSlidesProgress&&m.visibleSlides&&m.visibleSlides.includes(t);s||a||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(m.isHorizontal()?m.el.scrollLeft=0:m.el.scrollTop=0,requestAnimationFrame((()=>{v||(m.slideTo(m.slides.indexOf(t),0),v=!1)})))},P=()=>{const e=m.params.a11y;e.itemRoleDescriptionMessage&&n(m.slides,e.itemRoleDescriptionMessage),e.slideRole&&r(m.slides,e.slideRole);const t=m.slides.length;e.slideLabelMessage&&m.slides.forEach(((s,a)=>{const i=m.params.loop?parseInt(s.getAttribute("data-swiper-slide-index"),10):a;l(s,e.slideLabelMessage.replace(/\{\{index\}\}/,i+1).replace(/\{\{slidesLength\}\}/,t))}))},I=()=>{const e=m.params.a11y;m.el.append(y);const t=m.el;e.containerRoleDescriptionMessage&&n(t,e.containerRoleDescriptionMessage),e.containerMessage&&l(t,e.containerMessage);const a=m.wrapperEl,i=e.id||a.getAttribute("id")||`swiper-wrapper-${r=16,void 0===r&&(r=16),"x".repeat(r).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var r;const o=m.params.autoplay&&m.params.autoplay.enabled?"off":"polite";var d;d=i,x(a).forEach((e=>{e.setAttribute("id",d)})),function(e,t){(e=x(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(a,o),P();let{nextEl:p,prevEl:h}=m.navigation?m.navigation:{};p=x(p),h=x(h),p&&p.forEach((t=>S(t,i,e.nextSlideMessage))),h&&h.forEach((t=>S(t,i,e.prevSlideMessage))),u()&&x(m.pagination.el).forEach((e=>{e.addEventListener("keydown",c)})),s().addEventListener("visibilitychange",C),m.el.addEventListener("focus",L,!0),m.el.addEventListener("focus",L,!0),m.el.addEventListener("pointerdown",T,!0),m.el.addEventListener("pointerup",M,!0)};g("beforeInit",(()=>{y=f("span",m.params.a11y.notificationClass),y.setAttribute("aria-live","assertive"),y.setAttribute("aria-atomic","true")})),g("afterInit",(()=>{m.params.a11y.enabled&&I()})),g("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{m.params.a11y.enabled&&P()})),g("fromEdge toEdge afterInit lock unlock",(()=>{m.params.a11y.enabled&&function(){if(m.params.loop||m.params.rewind||!m.navigation)return;const{nextEl:e,prevEl:t}=m.navigation;t&&(m.isBeginning?(o(t),i(t)):(d(t),a(t))),e&&(m.isEnd?(o(e),i(e)):(d(e),a(e)))}()})),g("paginationUpdate",(()=>{m.params.a11y.enabled&&function(){const e=m.params.a11y;p()&&m.pagination.bullets.forEach((t=>{m.params.pagination.clickable&&(a(t),m.params.pagination.renderBullet||(r(t,"button"),l(t,e.paginationBulletMessage.replace(/\{\{index\}\}/,w(t)+1)))),t.matches(X(m.params.pagination.bulletActiveClass))?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")}))}()})),g("destroy",(()=>{m.params.a11y.enabled&&function(){y&&y.remove();let{nextEl:e,prevEl:t}=m.navigation?m.navigation:{};e=x(e),t=x(t),e&&e.forEach((e=>e.removeEventListener("keydown",c))),t&&t.forEach((e=>e.removeEventListener("keydown",c))),u()&&x(m.pagination.el).forEach((e=>{e.removeEventListener("keydown",c)})),s().removeEventListener("visibilitychange",C),m.el.removeEventListener("focus",L,!0),m.el.removeEventListener("pointerdown",T,!0),m.el.removeEventListener("pointerup",M,!0)}()}))},function(e){let{swiper:t,extendParams:s,on:i}=e;s({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let r=!1,n={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=a();let s;s=e?new URL(e):t.location;const i=s.pathname.slice(1).split("/").filter((e=>""!==e)),r=i.length;return{key:i[r-2],value:i[r-1]}},d=(e,s)=>{const i=a();if(!r||!t.params.history.enabled)return;let n;n=t.params.url?new URL(t.params.url):i.location;const o=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${s}"]`):t.slides[s];let d=l(o.getAttribute("data-history"));if(t.params.history.root.length>0){let s=t.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${e?`${e}/`:""}${d}`}else n.pathname.includes(e)||(d=`${e?`${e}/`:""}${d}`);t.params.history.keepQuery&&(d+=n.search);const c=i.history.state;c&&c.value===d||(t.params.history.replaceState?i.history.replaceState({value:d},null,d):i.history.pushState({value:d},null,d))},c=(e,s,a)=>{if(s)for(let i=0,r=t.slides.length;i{n=o(t.params.url),c(t.params.speed,n.value,!1)};i("init",(()=>{t.params.history.enabled&&(()=>{const e=a();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);r=!0,n=o(t.params.url),n.key||n.value?(c(0,n.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",p)):t.params.history.replaceState||e.addEventListener("popstate",p)}})()})),i("destroy",(()=>{t.params.history.enabled&&(()=>{const e=a();t.params.history.replaceState||e.removeEventListener("popstate",p)})()})),i("transitionEnd _freeModeNoMomentumRelease",(()=>{r&&d(t.params.history.key,t.activeIndex)})),i("slideChange",(()=>{r&&t.params.cssMode&&d(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:i,emit:r,on:n}=e,l=!1;const o=s(),d=a();i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,s){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.filter((e=>e.getAttribute("data-hash")===s))[0];return e?parseInt(e.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(m(t.slidesEl,`.${t.params.slideClass}[data-hash="${s}"], swiper-slide[data-hash="${s}"]`)[0])}}});const c=()=>{r("hashChange");const e=o.location.hash.replace("#",""),s=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(s?s.getAttribute("data-hash"):"")){const s=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===s||Number.isNaN(s))return;t.slideTo(s)}},p=()=>{if(!l||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],s=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&d.history&&d.history.replaceState?(d.history.replaceState(null,null,`#${s}`||""),r("hashSet")):(o.location.hash=s||"",r("hashSet"))};n("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;l=!0;const e=o.location.hash.replace("#","");if(e){const s=0,a=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(a||0,s,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&d.addEventListener("hashchange",c)})()})),n("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&d.removeEventListener("hashchange",c)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{l&&p()})),n("slideChange",(()=>{l&&t.params.cssMode&&p()}))},function(e){function t(e){r&&!r.destroyed&&r.wrapperEl&&e.target===r.wrapperEl&&(r.wrapperEl.removeEventListener("transitionend",t),v||C())}let a,i,{swiper:r,extendParams:n,on:l,emit:o,params:d}=e;r.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let c,p,u,m,h,f,g,v,w=d&&d.autoplay?d.autoplay.delay:3e3,b=d&&d.autoplay?d.autoplay.delay:3e3,y=(new Date).getTime();const E=()=>{if(r.destroyed||!r.autoplay.running)return;r.autoplay.paused?p=!0:p&&(b=c,p=!1);const e=r.autoplay.paused?c:y+b-(new Date).getTime();r.autoplay.timeLeft=e,o("autoplayTimeLeft",e,e/w),i=requestAnimationFrame((()=>{E()}))},x=e=>{if(r.destroyed||!r.autoplay.running)return;cancelAnimationFrame(i),E();let t=void 0===e?r.params.autoplay.delay:e;w=r.params.autoplay.delay,b=r.params.autoplay.delay;const s=(()=>{let e;if(e=r.virtual&&r.params.virtual.enabled?r.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:r.slides[r.activeIndex],e)return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(s)&&s>0&&void 0===e&&(t=s,w=s,b=s),c=t;const n=r.params.speed,l=()=>{r&&!r.destroyed&&(r.params.autoplay.reverseDirection?!r.isBeginning||r.params.loop||r.params.rewind?(r.slidePrev(n,!0,!0),o("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(r.slides.length-1,n,!0,!0),o("autoplay")):!r.isEnd||r.params.loop||r.params.rewind?(r.slideNext(n,!0,!0),o("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(0,n,!0,!0),o("autoplay")),r.params.cssMode&&(y=(new Date).getTime(),requestAnimationFrame((()=>{x()}))))};return t>0?(clearTimeout(a),a=setTimeout((()=>{l()}),t)):requestAnimationFrame((()=>{l()})),t},S=()=>{y=(new Date).getTime(),r.autoplay.running=!0,x(),o("autoplayStart")},T=()=>{r.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(i),o("autoplayStop")},M=(e,s)=>{if(r.destroyed||!r.autoplay.running)return;clearTimeout(a),e||(g=!0);const i=()=>{o("autoplayPause"),r.params.autoplay.waitForTransition?r.wrapperEl.addEventListener("transitionend",t):C()};if(r.autoplay.paused=!0,s)return f&&(c=r.params.autoplay.delay),f=!1,void i();const n=c||r.params.autoplay.delay;c=n-((new Date).getTime()-y),r.isEnd&&c<0&&!r.params.loop||(c<0&&(c=0),i())},C=()=>{r.isEnd&&c<0&&!r.params.loop||r.destroyed||!r.autoplay.running||(y=(new Date).getTime(),g?(g=!1,x(c)):x(),r.autoplay.paused=!1,o("autoplayResume"))},L=()=>{if(r.destroyed||!r.autoplay.running)return;const e=s();"hidden"===e.visibilityState&&(g=!0,M(!0)),"visible"===e.visibilityState&&C()},P=e=>{"mouse"===e.pointerType&&(g=!0,v=!0,r.animating||r.autoplay.paused||M(!0))},I=e=>{"mouse"===e.pointerType&&(v=!1,r.autoplay.paused&&C())};l("init",(()=>{r.params.autoplay.enabled&&(r.params.autoplay.pauseOnMouseEnter&&(r.el.addEventListener("pointerenter",P),r.el.addEventListener("pointerleave",I)),s().addEventListener("visibilitychange",L),S())})), -l("destroy",(()=>{r.el.removeEventListener("pointerenter",P),r.el.removeEventListener("pointerleave",I),s().removeEventListener("visibilitychange",L),r.autoplay.running&&T()})),l("_freeModeStaticRelease",(()=>{(m||g)&&C()})),l("_freeModeNoMomentumRelease",(()=>{r.params.autoplay.disableOnInteraction?T():M(!0,!0)})),l("beforeTransitionStart",((e,t,s)=>{!r.destroyed&&r.autoplay.running&&(s||!r.params.autoplay.disableOnInteraction?M(!0,!0):T())})),l("sliderFirstMove",(()=>{!r.destroyed&&r.autoplay.running&&(r.params.autoplay.disableOnInteraction?T():(u=!0,m=!1,g=!1,h=setTimeout((()=>{g=!0,m=!0,M(!0)}),200)))})),l("touchEnd",(()=>{if(!r.destroyed&&r.autoplay.running&&u){if(clearTimeout(h),clearTimeout(a),r.params.autoplay.disableOnInteraction)return m=!1,void(u=!1);m&&r.params.cssMode&&C(),m=!1,u=!1}})),l("slideChange",(()=>{!r.destroyed&&r.autoplay.running&&(f=!0)})),Object.assign(r.autoplay,{start:S,stop:T,pause:M,resume:C})},function(e){function t(){const e=r.thumbs.swiper;if(!e||e.destroyed)return;const t=e.clickedIndex,s=e.clickedSlide;if(s&&s.classList.contains(r.params.thumbs.slideThumbActiveClass))return;if(null==t)return;let a;a=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):t,r.params.loop?r.slideToLoop(a):r.slideTo(a)}function a(){const{thumbs:e}=r.params;if(d)return!1;d=!0;const s=r.constructor;if(e.swiper instanceof s)r.thumbs.swiper=e.swiper,Object.assign(r.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(r.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),r.thumbs.swiper.update();else if(o(e.swiper)){const t=Object.assign({},e.swiper);Object.assign(t,{watchSlidesProgress:!0,slideToClickedSlide:!1}),r.thumbs.swiper=new s(t),c=!0}return r.thumbs.swiper.el.classList.add(r.params.thumbs.thumbsContainerClass),r.thumbs.swiper.on("tap",t),!0}function i(e){const t=r.thumbs.swiper;if(!t||t.destroyed)return;const s="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView;let a=1;const i=r.params.thumbs.slideThumbActiveClass;if(r.params.slidesPerView>1&&!r.params.centeredSlides&&(a=r.params.slidesPerView),r.params.thumbs.multipleActiveThumbs||(a=1),a=Math.floor(a),t.slides.forEach((e=>e.classList.remove(i))),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(let e=0;e{e.classList.add(i)}));else for(let e=0;ee.getAttribute("data-swiper-slide-index")===`${r.realIndex}`))[0];i=t.slides.indexOf(e),o=r.activeIndex>r.previousIndex?"next":"prev"}else i=r.realIndex,o=i>r.previousIndex?"next":"prev";l&&(i+="next"===o?n:-1*n),t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(i)<0&&(t.params.centeredSlides?i=i>a?i-Math.floor(s/2)+1:i+Math.floor(s/2)-1:i>a&&t.params.slidesPerGroup,t.slideTo(i,e?0:void 0))}}let{swiper:r,extendParams:n,on:l}=e;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let d=!1,c=!1;r.thumbs={swiper:null},l("beforeInit",(()=>{const{thumbs:e}=r.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const t=s(),n=()=>{const s="string"==typeof e.swiper?t.querySelector(e.swiper):e.swiper;if(s&&s.swiper)e.swiper=s.swiper,a(),i(!0);else if(s){const t=n=>{e.swiper=n.detail[0],s.removeEventListener("init",t),a(),i(!0),e.swiper.update(),r.update()};s.addEventListener("init",t)}return s},l=()=>{r.destroyed||n()||requestAnimationFrame(l)};requestAnimationFrame(l)}else a(),i(!0)})),l("slideChange update resize observerUpdate",(()=>{i()})),l("setTransition",((e,t)=>{const s=r.thumbs.swiper;s&&!s.destroyed&&s.setTransition(t)})),l("beforeDestroy",(()=>{const e=r.thumbs.swiper;e&&!e.destroyed&&c&&e.destroy()})),Object.assign(r.thumbs,{init:a,update:i})},function(e){let{swiper:t,extendParams:s,emit:a,once:i}=e;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:s}=t;0===e.velocities.length&&e.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:n()})},onTouchEnd:function(e){let{currentPos:s}=e;if(t.params.cssMode)return;const{params:r,wrapperEl:l,rtlTranslate:o,snapGrid:d,touchEventsData:c}=t,p=n()-c.touchStartTime;if(s<-t.minTranslate())t.slideTo(t.activeIndex);else if(s>-t.maxTranslate())t.slides.length1){const e=c.velocities.pop(),s=c.velocities.pop(),a=e.position-s.position,i=e.time-s.time;t.velocity=a/i,t.velocity/=2,Math.abs(t.velocity)150||n()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const s=t.velocity*e;let p=t.translate+s;o&&(p=-p);let u,m=!1;const h=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let f;if(pt.minTranslate())r.freeMode.momentumBounce?(p-t.minTranslate()>h&&(p=t.minTranslate()+h),u=t.minTranslate(),m=!0,c.allowMomentumBounce=!0):p=t.minTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(r.freeMode.sticky){let e;for(let t=0;t-p){e=t;break}p=Math.abs(d[e]-p){t.loopFix()})),0!==t.velocity){if(e=o?Math.abs((-p-t.translate)/t.velocity):Math.abs((p-t.translate)/t.velocity),r.freeMode.sticky){const s=Math.abs((o?-p:p)-t.translate),a=t.slidesSizesGrid[t.activeIndex];e=s{t&&!t.destroyed&&c.allowMomentumBounce&&(a("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(u),y(l,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(a("_freeModeNoMomentumRelease"),t.updateProgress(p),t.setTransition(e),t.setTranslate(p),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,y(l,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(p),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&a("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||p>=r.longSwipesMs)&&(a("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,s,a,i,{swiper:r,extendParams:n,on:l}=e;n({grid:{rows:1,fill:"column"}});const o=()=>{let e=r.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*r.size:"string"==typeof e&&(e=parseFloat(e)),e};l("init",(()=>{i=r.params.grid&&r.params.grid.rows>1})),l("update",(()=>{const{params:e,el:t}=r,s=e.grid&&e.grid.rows>1;i&&!s?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),a=1,r.emitContainerClasses()):!i&&s&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),r.emitContainerClasses()),i=s})),r.grid={initSlides:e=>{const{slidesPerView:i}=r.params,{rows:n,fill:l}=r.params.grid,o=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:e.length;a=Math.floor(o/n),t=Math.floor(o/n)===o/n?o:Math.ceil(o/n)*n,"auto"!==i&&"row"===l&&(t=Math.max(t,i*n)),s=t/n},unsetSlides:()=>{r.slides&&r.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[r.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,i,n)=>{const{slidesPerGroup:l}=r.params,d=o(),{rows:c,fill:p}=r.params.grid,u=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:n.length;let m,h,f;if("row"===p&&l>1){const s=Math.floor(e/(l*c)),a=e-c*l*s,r=0===s?l:Math.min(Math.ceil((u-s*c*l)/c),l);f=Math.floor(a/r),h=a-f*r+s*l,m=h+f*t/c,i.style.order=m}else"column"===p?(h=Math.floor(e/c),f=e-h*c,(h>a||h===a&&f===c-1)&&(f+=1,f>=c&&(f=0,h+=1))):(f=Math.floor(e/s),h=e-f*s);i.row=f,i.column=h,i.style.height=`calc((100% - ${(c-1)*d}px) / ${c})`,i.style[r.getDirectionLabel("margin-top")]=0!==f?d&&`${d}px`:"",i.swiperSlideGridSet=!0},updateWrapperSize:(e,s)=>{const{centeredSlides:a,roundLengths:i}=r.params,n=o(),{rows:l}=r.params.grid;if(r.virtualSize=(e+n)*t,r.virtualSize=Math.ceil(r.virtualSize/l)-n,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+n}px`),a){const e=[];for(let t=0;t{const{slides:e}=t;t.params.fadeEffect;for(let s=0;s{const s=t.slides.map((e=>u(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`})),W({swiper:t,duration:e,transformElements:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(e,t,s)=>{let a=s?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=s?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=f("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"left":"top")).split(" ")),e.append(a)),i||(i=f("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"right":"bottom")).split(" ")),e.append(i)),a&&(a.style.opacity=Math.max(-t,0)),i&&(i.style.opacity=Math.max(t,0))};q({effect:"cube",swiper:t,on:a,setTranslate:()=>{const{el:e,wrapperEl:s,slides:a,width:r,height:n,rtlTranslate:l,size:o,browser:d}=t,c=t.params.cubeEffect,p=t.isHorizontal(),u=t.virtual&&t.params.virtual.enabled;let m,h=0;c.shadow&&(p?(m=t.wrapperEl.querySelector(".swiper-cube-shadow"),m||(m=f("div","swiper-cube-shadow"),t.wrapperEl.append(m)),m.style.height=`${r}px`):(m=e.querySelector(".swiper-cube-shadow"),m||(m=f("div","swiper-cube-shadow"),e.append(m))));for(let e=0;e-1&&(h=90*r+90*m,l&&(h=90*-r-90*m),t.browser&&t.browser.need3dFix&&Math.abs(h)/90%2==1&&(h+=.001)),s.style.transform=w,c.slideShadows&&i(s,m,p)}if(s.style.transformOrigin=`50% 50% -${o/2}px`,s.style["-webkit-transform-origin"]=`50% 50% -${o/2}px`,c.shadow)if(p)m.style.transform=`translate3d(0px, ${r/2+c.shadowOffset}px, ${-r/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${c.shadowScale})`;else{const e=Math.abs(h)-90*Math.floor(Math.abs(h)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=c.shadowScale,a=c.shadowScale/t,i=c.shadowOffset;m.style.transform=`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-89.99deg)`}const g=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-o/2:0;s.style.transform=`translate3d(0px,0,${g}px) rotateX(${t.isHorizontal()?0:h}deg) rotateY(${t.isHorizontal()?-h:0}deg)`,s.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:s,slides:a}=t;if(a.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=s.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const s=Math.max(Math.min(t.progress,1),-1);i(t,s,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(e,s)=>{let a=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=j("flip",e,t.isHorizontal()?"left":"top")),i||(i=j("flip",e,t.isHorizontal()?"right":"bottom")),a&&(a.style.opacity=Math.max(-s,0)),i&&(i.style.opacity=Math.max(s,0))};q({effect:"flip",swiper:t,on:a,setTranslate:()=>{const{slides:e,rtlTranslate:s}=t,a=t.params.flipEffect;for(let r=0;r{const s=t.slides.map((e=>u(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),W({swiper:t,duration:e,transformElements:s})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let s=e.progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(e.progress,1),-1)),i(e,s)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),q({effect:"coverflow",swiper:t,on:a,setTranslate:()=>{const{width:e,height:s,slides:a,slidesSizesGrid:i}=t,r=t.params.coverflowEffect,n=t.isHorizontal(),l=t.translate,o=n?e/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth;for(let e=0,s=a.length;e0?u:0),t&&(t.style.opacity=-u>0?-u:0)}}},setTransition:e=>{t.slides.map((e=>u(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=e=>"string"==typeof e?e:`${e}px`;q({effect:"creative",swiper:t,on:a,setTranslate:()=>{const{slides:e,wrapperEl:s,slidesSizesGrid:a}=t,r=t.params.creativeEffect,{progressMultiplier:n}=r,l=t.params.centeredSlides;if(l){const e=a[0]/2-t.params.slidesOffsetBefore||0;s.style.transform=`translateX(calc(50% - ${e}px))`}for(let s=0;s0&&(f=r.prev,h=!0),u.forEach(((e,t)=>{u[t]=`calc(${e}px + (${i(f.translate[t])} * ${Math.abs(d*n)}))`})),m.forEach(((e,s)=>{let a=f.rotate[s]*Math.abs(d*n);t.browser&&t.browser.need3dFix&&Math.abs(a)/90%2==1&&(a+=.001),m[s]=a})),a.style.zIndex=-Math.abs(Math.round(o))+e.length;const g=u.join(", "),v=`rotateX(${m[0]}deg) rotateY(${m[1]}deg) rotateZ(${m[2]}deg)`,w=c<0?`scale(${1+(1-f.scale)*c*n})`:`scale(${1-(1-f.scale)*c*n})`,b=c<0?1+(1-f.opacity)*c*n:1-(1-f.opacity)*c*n,y=`translate3d(${g}) ${v} ${w}`;if(h&&f.shadow||!h){let e=a.querySelector(".swiper-slide-shadow");if(!e&&f.shadow&&(e=j("creative",a)),e){const t=r.shadowPerProgress?d*(1/r.limitProgress):d;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const E=_(0,a);E.style.transform=y,E.style.opacity=b,f.origin&&(E.style.transformOrigin=f.origin)}},setTransition:e=>{const s=t.slides.map((e=>u(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),W({swiper:t,duration:e,transformElements:s,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),q({effect:"cards",swiper:t,on:a,setTranslate:()=>{const{slides:e,activeIndex:s,rtlTranslate:a}=t,i=t.params.cardsEffect,{startTranslate:r,isTouched:n}=t.touchEventsData,l=a?-t.translate:t.translate;for(let o=0;o0&&p<1&&(n||t.params.cssMode)&&l-1&&(n||t.params.cssMode)&&l>r;if(y||E){const e=(1-Math.abs((Math.abs(p)-.5)/.5))**.5;v+=-28*p*e,g+=-.5*e,w+=96*e,h=-25*e*Math.abs(p)+"%"}if(m=p<0?`calc(${m}px ${a?"-":"+"} (${w*Math.abs(p)}%))`:p>0?`calc(${m}px ${a?"-":"+"} (-${w*Math.abs(p)}%))`:`${m}px`,!t.isHorizontal()){const e=h;h=m,m=e}const x=p<0?""+(1+(1-g)*p):""+(1-(1-g)*p),S=`\n translate3d(${m}, ${h}, ${f}px)\n rotateZ(${i.rotate?a?-v:v:0}deg)\n scale(${x})\n `;if(i.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=j("cards",d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(p)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(c))+e.length,_(0,d).style.transform=S}},setTransition:e=>{const s=t.slides.map((e=>u(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),W({swiper:t,duration:e,transformElements:s})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return me.use(he),me}();const videoCarouselElement=document.querySelectorAll(".video-carousel-swiper-container");if(videoCarouselElement.length){var videoCarousel=new Swiper(".video-carousel-swiper-container",{loop:!0,spaceBetween:21,loopedSlides:4,slidesPerView:6,slidesPerGroup:3,centeredSlides:!1,initialSlide:3,watchSlidesProgress:!0,loopFillGroupWithBlank:!0,speed:800,a11y:!0,keyboard:{enabled:!0,onlyInViewport:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{1:{slidesPerView:3,slidesPerGroup:1},768:{slidesPerView:4,slidesPerGroup:1},1400:{slidesPerView:6,slidesPerGroup:3}},on:{init:function(){this.slides.forEach((e=>{e.classList.remove("keyboard-focused")}))},slideChange:function(){this.slides.forEach((e=>{e.classList.remove("keyboard-focused")}));const e=this.slides[this.activeIndex];e&&e.classList.add("keyboard-focused")},transitionStart:function(){var e=document.querySelectorAll("video");Array.prototype.forEach.call(e,(function(e){e.pause()}))}}});function updateVisibleSlidesClass(e){if(window.innerWidth>1){e.slides.forEach((e=>{e.classList.remove("first-visible-slide","last-visible-slide")}));const t=Array.from(e.slides).filter((e=>e.classList.contains("swiper-slide-visible")));t.length>0&&(t[0].classList.add("first-visible-slide"),t[t.length-1].classList.add("last-visible-slide"))}else e.slides.forEach((e=>{e.classList.remove("first-visible-slide","last-visible-slide")}))}let e;function onResize(){clearTimeout(e),e=setTimeout((function(){updateVisibleSlidesClass(videoCarousel)}),250)}videoCarousel.on("init slideChange update",(function(){updateVisibleSlidesClass(this)})),window.addEventListener("resize",onResize),updateVisibleSlidesClass(videoCarousel);let t=!1;function handleKeyboardNavigation(e){const s=e.key;let a="Tab"===s,i=e.shiftKey;("ArrowLeft"===s||"ArrowRight"===s||a&&!i||a&&i)&&(t=!0,setTimeout((()=>{t?(videoCarousel.slides.forEach((e=>e.classList.add("keyboard-focused"))),t=!0):videoCarousel.slides.forEach((e=>e.classList.remove("keyboard-focused")))}),50))}function clearKeyboardFocus(){videoCarousel.slides.forEach((e=>{e.classList.remove("keyboard-focused")})),videoCarouselElement[0].classList.remove("keyboard-focused"),t=!1}document.addEventListener("keydown",handleKeyboardNavigation),document.addEventListener("click",(function(e){e.target.classList.contains("swiper-button-next")&&clearKeyboardFocus(),e.target.classList.contains("swiper-button-prev")&&clearKeyboardFocus()})),setTimeout((()=>{clearKeyboardFocus()}),200),window.addEventListener("resize",(function(){setTimeout((()=>{clearKeyboardFocus()}),200)}));const s=document.querySelector(".video-carousel-swiper-container");function isTargetElement(e){return console.log(e.classList.contains("image-placeholder-action")||"VIDEO"===e.tagName||"a"===e.tagName),e.classList.contains("image-placeholder-action")||"VIDEO"===e.tagName||"a"===e.tagName}function handleFocusIn(e){if(a){const t=undefined;isTargetElement(e.target)&&s.classList.add("container-focused-class")}else if(i){const t=undefined;isTargetElement(e.target)&&s.classList.add("container-focused-class")}}function handleFocusOut(e){if(!a){const t=undefined;isTargetElement(e.target)&&s.classList.remove("container-focused-class")}}s||console.warn("Swiper container not found.");let a=!1,i=!1;document.addEventListener("keydown",(function(e){"Tab"===e.key&&(e.shiftKey?(i=!0,a=!1):(a=!0,i=!1))})),s.addEventListener("focusin",(function(e){handleFocusIn(e),a=!0})),s.addEventListener("focusout",(function(e){handleFocusOut(e),a=!1}))} \ No newline at end of file +l("destroy",(()=>{r.el.removeEventListener("pointerenter",P),r.el.removeEventListener("pointerleave",I),s().removeEventListener("visibilitychange",L),r.autoplay.running&&T()})),l("_freeModeStaticRelease",(()=>{(m||g)&&C()})),l("_freeModeNoMomentumRelease",(()=>{r.params.autoplay.disableOnInteraction?T():M(!0,!0)})),l("beforeTransitionStart",((e,t,s)=>{!r.destroyed&&r.autoplay.running&&(s||!r.params.autoplay.disableOnInteraction?M(!0,!0):T())})),l("sliderFirstMove",(()=>{!r.destroyed&&r.autoplay.running&&(r.params.autoplay.disableOnInteraction?T():(u=!0,m=!1,g=!1,h=setTimeout((()=>{g=!0,m=!0,M(!0)}),200)))})),l("touchEnd",(()=>{if(!r.destroyed&&r.autoplay.running&&u){if(clearTimeout(h),clearTimeout(a),r.params.autoplay.disableOnInteraction)return m=!1,void(u=!1);m&&r.params.cssMode&&C(),m=!1,u=!1}})),l("slideChange",(()=>{!r.destroyed&&r.autoplay.running&&(f=!0)})),Object.assign(r.autoplay,{start:S,stop:T,pause:M,resume:C})},function(e){function t(){const e=r.thumbs.swiper;if(!e||e.destroyed)return;const t=e.clickedIndex,s=e.clickedSlide;if(s&&s.classList.contains(r.params.thumbs.slideThumbActiveClass))return;if(null==t)return;let a;a=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):t,r.params.loop?r.slideToLoop(a):r.slideTo(a)}function a(){const{thumbs:e}=r.params;if(d)return!1;d=!0;const s=r.constructor;if(e.swiper instanceof s)r.thumbs.swiper=e.swiper,Object.assign(r.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(r.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),r.thumbs.swiper.update();else if(o(e.swiper)){const t=Object.assign({},e.swiper);Object.assign(t,{watchSlidesProgress:!0,slideToClickedSlide:!1}),r.thumbs.swiper=new s(t),c=!0}return r.thumbs.swiper.el.classList.add(r.params.thumbs.thumbsContainerClass),r.thumbs.swiper.on("tap",t),!0}function i(e){const t=r.thumbs.swiper;if(!t||t.destroyed)return;const s="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView;let a=1;const i=r.params.thumbs.slideThumbActiveClass;if(r.params.slidesPerView>1&&!r.params.centeredSlides&&(a=r.params.slidesPerView),r.params.thumbs.multipleActiveThumbs||(a=1),a=Math.floor(a),t.slides.forEach((e=>e.classList.remove(i))),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(let e=0;e{e.classList.add(i)}));else for(let e=0;ee.getAttribute("data-swiper-slide-index")===`${r.realIndex}`))[0];i=t.slides.indexOf(e),o=r.activeIndex>r.previousIndex?"next":"prev"}else i=r.realIndex,o=i>r.previousIndex?"next":"prev";l&&(i+="next"===o?n:-1*n),t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(i)<0&&(t.params.centeredSlides?i=i>a?i-Math.floor(s/2)+1:i+Math.floor(s/2)-1:i>a&&t.params.slidesPerGroup,t.slideTo(i,e?0:void 0))}}let{swiper:r,extendParams:n,on:l}=e;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let d=!1,c=!1;r.thumbs={swiper:null},l("beforeInit",(()=>{const{thumbs:e}=r.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const t=s(),n=()=>{const s="string"==typeof e.swiper?t.querySelector(e.swiper):e.swiper;if(s&&s.swiper)e.swiper=s.swiper,a(),i(!0);else if(s){const t=n=>{e.swiper=n.detail[0],s.removeEventListener("init",t),a(),i(!0),e.swiper.update(),r.update()};s.addEventListener("init",t)}return s},l=()=>{r.destroyed||n()||requestAnimationFrame(l)};requestAnimationFrame(l)}else a(),i(!0)})),l("slideChange update resize observerUpdate",(()=>{i()})),l("setTransition",((e,t)=>{const s=r.thumbs.swiper;s&&!s.destroyed&&s.setTransition(t)})),l("beforeDestroy",(()=>{const e=r.thumbs.swiper;e&&!e.destroyed&&c&&e.destroy()})),Object.assign(r.thumbs,{init:a,update:i})},function(e){let{swiper:t,extendParams:s,emit:a,once:i}=e;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:s}=t;0===e.velocities.length&&e.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:n()})},onTouchEnd:function(e){let{currentPos:s}=e;if(t.params.cssMode)return;const{params:r,wrapperEl:l,rtlTranslate:o,snapGrid:d,touchEventsData:c}=t,p=n()-c.touchStartTime;if(s<-t.minTranslate())t.slideTo(t.activeIndex);else if(s>-t.maxTranslate())t.slides.length1){const e=c.velocities.pop(),s=c.velocities.pop(),a=e.position-s.position,i=e.time-s.time;t.velocity=a/i,t.velocity/=2,Math.abs(t.velocity)150||n()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const s=t.velocity*e;let p=t.translate+s;o&&(p=-p);let u,m=!1;const h=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let f;if(pt.minTranslate())r.freeMode.momentumBounce?(p-t.minTranslate()>h&&(p=t.minTranslate()+h),u=t.minTranslate(),m=!0,c.allowMomentumBounce=!0):p=t.minTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(r.freeMode.sticky){let e;for(let t=0;t-p){e=t;break}p=Math.abs(d[e]-p){t.loopFix()})),0!==t.velocity){if(e=o?Math.abs((-p-t.translate)/t.velocity):Math.abs((p-t.translate)/t.velocity),r.freeMode.sticky){const s=Math.abs((o?-p:p)-t.translate),a=t.slidesSizesGrid[t.activeIndex];e=s{t&&!t.destroyed&&c.allowMomentumBounce&&(a("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(u),y(l,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(a("_freeModeNoMomentumRelease"),t.updateProgress(p),t.setTransition(e),t.setTranslate(p),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,y(l,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(p),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&a("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||p>=r.longSwipesMs)&&(a("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,s,a,i,{swiper:r,extendParams:n,on:l}=e;n({grid:{rows:1,fill:"column"}});const o=()=>{let e=r.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*r.size:"string"==typeof e&&(e=parseFloat(e)),e};l("init",(()=>{i=r.params.grid&&r.params.grid.rows>1})),l("update",(()=>{const{params:e,el:t}=r,s=e.grid&&e.grid.rows>1;i&&!s?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),a=1,r.emitContainerClasses()):!i&&s&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),r.emitContainerClasses()),i=s})),r.grid={initSlides:e=>{const{slidesPerView:i}=r.params,{rows:n,fill:l}=r.params.grid,o=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:e.length;a=Math.floor(o/n),t=Math.floor(o/n)===o/n?o:Math.ceil(o/n)*n,"auto"!==i&&"row"===l&&(t=Math.max(t,i*n)),s=t/n},unsetSlides:()=>{r.slides&&r.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[r.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,i,n)=>{const{slidesPerGroup:l}=r.params,d=o(),{rows:c,fill:p}=r.params.grid,u=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:n.length;let m,h,f;if("row"===p&&l>1){const s=Math.floor(e/(l*c)),a=e-c*l*s,r=0===s?l:Math.min(Math.ceil((u-s*c*l)/c),l);f=Math.floor(a/r),h=a-f*r+s*l,m=h+f*t/c,i.style.order=m}else"column"===p?(h=Math.floor(e/c),f=e-h*c,(h>a||h===a&&f===c-1)&&(f+=1,f>=c&&(f=0,h+=1))):(f=Math.floor(e/s),h=e-f*s);i.row=f,i.column=h,i.style.height=`calc((100% - ${(c-1)*d}px) / ${c})`,i.style[r.getDirectionLabel("margin-top")]=0!==f?d&&`${d}px`:"",i.swiperSlideGridSet=!0},updateWrapperSize:(e,s)=>{const{centeredSlides:a,roundLengths:i}=r.params,n=o(),{rows:l}=r.params.grid;if(r.virtualSize=(e+n)*t,r.virtualSize=Math.ceil(r.virtualSize/l)-n,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+n}px`),a){const e=[];for(let t=0;t{const{slides:e}=t;t.params.fadeEffect;for(let s=0;s{const s=t.slides.map((e=>u(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`})),W({swiper:t,duration:e,transformElements:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(e,t,s)=>{let a=s?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=s?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=f("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"left":"top")).split(" ")),e.append(a)),i||(i=f("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"right":"bottom")).split(" ")),e.append(i)),a&&(a.style.opacity=Math.max(-t,0)),i&&(i.style.opacity=Math.max(t,0))};q({effect:"cube",swiper:t,on:a,setTranslate:()=>{const{el:e,wrapperEl:s,slides:a,width:r,height:n,rtlTranslate:l,size:o,browser:d}=t,c=t.params.cubeEffect,p=t.isHorizontal(),u=t.virtual&&t.params.virtual.enabled;let m,h=0;c.shadow&&(p?(m=t.wrapperEl.querySelector(".swiper-cube-shadow"),m||(m=f("div","swiper-cube-shadow"),t.wrapperEl.append(m)),m.style.height=`${r}px`):(m=e.querySelector(".swiper-cube-shadow"),m||(m=f("div","swiper-cube-shadow"),e.append(m))));for(let e=0;e-1&&(h=90*r+90*m,l&&(h=90*-r-90*m),t.browser&&t.browser.need3dFix&&Math.abs(h)/90%2==1&&(h+=.001)),s.style.transform=w,c.slideShadows&&i(s,m,p)}if(s.style.transformOrigin=`50% 50% -${o/2}px`,s.style["-webkit-transform-origin"]=`50% 50% -${o/2}px`,c.shadow)if(p)m.style.transform=`translate3d(0px, ${r/2+c.shadowOffset}px, ${-r/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${c.shadowScale})`;else{const e=Math.abs(h)-90*Math.floor(Math.abs(h)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=c.shadowScale,a=c.shadowScale/t,i=c.shadowOffset;m.style.transform=`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-89.99deg)`}const g=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-o/2:0;s.style.transform=`translate3d(0px,0,${g}px) rotateX(${t.isHorizontal()?0:h}deg) rotateY(${t.isHorizontal()?-h:0}deg)`,s.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:s,slides:a}=t;if(a.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=s.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const s=Math.max(Math.min(t.progress,1),-1);i(t,s,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(e,s)=>{let a=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=j("flip",e,t.isHorizontal()?"left":"top")),i||(i=j("flip",e,t.isHorizontal()?"right":"bottom")),a&&(a.style.opacity=Math.max(-s,0)),i&&(i.style.opacity=Math.max(s,0))};q({effect:"flip",swiper:t,on:a,setTranslate:()=>{const{slides:e,rtlTranslate:s}=t,a=t.params.flipEffect;for(let r=0;r{const s=t.slides.map((e=>u(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),W({swiper:t,duration:e,transformElements:s})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let s=e.progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(e.progress,1),-1)),i(e,s)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),q({effect:"coverflow",swiper:t,on:a,setTranslate:()=>{const{width:e,height:s,slides:a,slidesSizesGrid:i}=t,r=t.params.coverflowEffect,n=t.isHorizontal(),l=t.translate,o=n?e/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth;for(let e=0,s=a.length;e0?u:0),t&&(t.style.opacity=-u>0?-u:0)}}},setTransition:e=>{t.slides.map((e=>u(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=e=>"string"==typeof e?e:`${e}px`;q({effect:"creative",swiper:t,on:a,setTranslate:()=>{const{slides:e,wrapperEl:s,slidesSizesGrid:a}=t,r=t.params.creativeEffect,{progressMultiplier:n}=r,l=t.params.centeredSlides;if(l){const e=a[0]/2-t.params.slidesOffsetBefore||0;s.style.transform=`translateX(calc(50% - ${e}px))`}for(let s=0;s0&&(f=r.prev,h=!0),u.forEach(((e,t)=>{u[t]=`calc(${e}px + (${i(f.translate[t])} * ${Math.abs(d*n)}))`})),m.forEach(((e,s)=>{let a=f.rotate[s]*Math.abs(d*n);t.browser&&t.browser.need3dFix&&Math.abs(a)/90%2==1&&(a+=.001),m[s]=a})),a.style.zIndex=-Math.abs(Math.round(o))+e.length;const g=u.join(", "),v=`rotateX(${m[0]}deg) rotateY(${m[1]}deg) rotateZ(${m[2]}deg)`,w=c<0?`scale(${1+(1-f.scale)*c*n})`:`scale(${1-(1-f.scale)*c*n})`,b=c<0?1+(1-f.opacity)*c*n:1-(1-f.opacity)*c*n,y=`translate3d(${g}) ${v} ${w}`;if(h&&f.shadow||!h){let e=a.querySelector(".swiper-slide-shadow");if(!e&&f.shadow&&(e=j("creative",a)),e){const t=r.shadowPerProgress?d*(1/r.limitProgress):d;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const E=_(0,a);E.style.transform=y,E.style.opacity=b,f.origin&&(E.style.transformOrigin=f.origin)}},setTransition:e=>{const s=t.slides.map((e=>u(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),W({swiper:t,duration:e,transformElements:s,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),q({effect:"cards",swiper:t,on:a,setTranslate:()=>{const{slides:e,activeIndex:s,rtlTranslate:a}=t,i=t.params.cardsEffect,{startTranslate:r,isTouched:n}=t.touchEventsData,l=a?-t.translate:t.translate;for(let o=0;o0&&p<1&&(n||t.params.cssMode)&&l-1&&(n||t.params.cssMode)&&l>r;if(y||E){const e=(1-Math.abs((Math.abs(p)-.5)/.5))**.5;v+=-28*p*e,g+=-.5*e,w+=96*e,h=-25*e*Math.abs(p)+"%"}if(m=p<0?`calc(${m}px ${a?"-":"+"} (${w*Math.abs(p)}%))`:p>0?`calc(${m}px ${a?"-":"+"} (-${w*Math.abs(p)}%))`:`${m}px`,!t.isHorizontal()){const e=h;h=m,m=e}const x=p<0?""+(1+(1-g)*p):""+(1-(1-g)*p),S=`\n translate3d(${m}, ${h}, ${f}px)\n rotateZ(${i.rotate?a?-v:v:0}deg)\n scale(${x})\n `;if(i.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=j("cards",d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(p)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(c))+e.length,_(0,d).style.transform=S}},setTransition:e=>{const s=t.slides.map((e=>u(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),W({swiper:t,duration:e,transformElements:s})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return me.use(he),me}();const videoCarouselElement=document.querySelectorAll(".video-carousel-swiper-container");if(videoCarouselElement.length){var videoCarousel=new Swiper(".video-carousel-swiper-container",{loop:!0,spaceBetween:21,loopedSlides:4,slidesPerView:6,slidesPerGroup:3,centeredSlides:!1,initialSlide:3,watchSlidesProgress:!0,loopFillGroupWithBlank:!0,speed:800,a11y:!0,keyboard:{enabled:!0,onlyInViewport:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{1:{slidesPerView:3,slidesPerGroup:1},768:{slidesPerView:4,slidesPerGroup:1},1400:{slidesPerView:6,slidesPerGroup:3}},on:{init:function(){this.slides.forEach((e=>{e.classList.remove("keyboard-focused")}))},slideChange:function(){this.slides.forEach((e=>{e.classList.remove("keyboard-focused")}));const e=this.slides[this.activeIndex];e&&e.classList.add("keyboard-focused")},transitionStart:function(){var e=videoCarouselElement[0].querySelectorAll("video");Array.prototype.forEach.call(e,(function(e){e.pause()}))}}});function updateVisibleSlidesClass(e){if(window.innerWidth>1){e.slides.forEach((e=>{e.classList.remove("first-visible-slide","last-visible-slide")}));const t=Array.from(e.slides).filter((e=>e.classList.contains("swiper-slide-visible")));t.length>0&&(t[0].classList.add("first-visible-slide"),t[t.length-1].classList.add("last-visible-slide"))}else e.slides.forEach((e=>{e.classList.remove("first-visible-slide","last-visible-slide")}))}let e;function onResize(){clearTimeout(e),e=setTimeout((function(){updateVisibleSlidesClass(videoCarousel)}),250)}videoCarousel.on("init slideChange update",(function(){updateVisibleSlidesClass(this)})),window.addEventListener("resize",onResize),updateVisibleSlidesClass(videoCarousel);let t=!1;function handleKeyboardNavigation(e){const s=e.key;let a="Tab"===s,i=e.shiftKey;("ArrowLeft"===s||"ArrowRight"===s||a&&!i||a&&i)&&(t=!0,setTimeout((()=>{t?(videoCarousel.slides.forEach((e=>e.classList.add("keyboard-focused"))),t=!0):videoCarousel.slides.forEach((e=>e.classList.remove("keyboard-focused")))}),50))}function clearKeyboardFocus(){videoCarousel.slides.forEach((e=>{e.classList.remove("keyboard-focused")})),videoCarouselElement[0].classList.remove("keyboard-focused"),t=!1}document.addEventListener("keydown",handleKeyboardNavigation),document.addEventListener("click",(function(e){e.target.classList.contains("swiper-button-next")&&clearKeyboardFocus(),e.target.classList.contains("swiper-button-prev")&&clearKeyboardFocus()})),setTimeout((()=>{clearKeyboardFocus()}),200),window.addEventListener("resize",(function(){setTimeout((()=>{clearKeyboardFocus()}),200)}));const s=document.querySelector(".video-carousel-swiper-container");function isTargetElement(e){return console.log(e.classList.contains("image-placeholder-action")||"VIDEO"===e.tagName||"a"===e.tagName),e.classList.contains("image-placeholder-action")||"VIDEO"===e.tagName||"a"===e.tagName}function handleFocusIn(e){if(a){const t=undefined;isTargetElement(e.target)&&s.classList.add("container-focused-class")}else if(i){const t=undefined;isTargetElement(e.target)&&s.classList.add("container-focused-class")}}function handleFocusOut(e){if(!a){const t=undefined;isTargetElement(e.target)&&s.classList.remove("container-focused-class")}}s||console.warn("Swiper container not found.");let a=!1,i=!1;document.addEventListener("keydown",(function(e){"Tab"===e.key&&(e.shiftKey?(i=!0,a=!1):(a=!0,i=!1))})),s.addEventListener("focusin",(function(e){handleFocusIn(e),a=!0})),s.addEventListener("focusout",(function(e){handleFocusOut(e),a=!1}))} \ No newline at end of file