big-shot
Version:
A Vue-based image/video slide show widget
1 lines • 515 kB
JavaScript
(function(k,Qe){typeof exports=="object"&&typeof module<"u"?module.exports=Qe(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Qe):(k=typeof globalThis<"u"?globalThis:k||self,k.BigShot=Qe(k.Vue))})(this,function(k){"use strict";function Qe(r){return r!==null&&typeof r=="object"&&"constructor"in r&&r.constructor===Object}function oi(r,e){r===void 0&&(r={}),e===void 0&&(e={}),Object.keys(e).forEach(t=>{typeof r[t]>"u"?r[t]=e[t]:Qe(e[t])&&Qe(r[t])&&Object.keys(e[t]).length>0&&oi(r[t],e[t])})}const Is={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ye(){const r=typeof document<"u"?document:{};return oi(r,Is),r}const da={document:Is,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(r){return typeof setTimeout>"u"?(r(),null):setTimeout(r,0)},cancelAnimationFrame(r){typeof setTimeout>"u"||clearTimeout(r)}};function fe(){const r=typeof window<"u"?window:{};return oi(r,da),r}function ca(r){return r===void 0&&(r=""),r.trim().split(" ").filter(e=>!!e.trim())}function ua(r){const e=r;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function li(r,e){return e===void 0&&(e=0),setTimeout(r,e)}function xt(){return Date.now()}function fa(r){const e=fe();let t;return e.getComputedStyle&&(t=e.getComputedStyle(r,null)),!t&&r.currentStyle&&(t=r.currentStyle),t||(t=r.style),t}function di(r,e){e===void 0&&(e="x");const t=fe();let i,s,n;const a=fa(r);return t.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(o=>o.replace(",",".")).join(", ")),n=new t.WebKitCSSMatrix(s==="none"?"":s)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=n.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?s=n.m41:i.length===16?s=parseFloat(i[12]):s=parseFloat(i[4])),e==="y"&&(t.WebKitCSSMatrix?s=n.m42:i.length===16?s=parseFloat(i[13]):s=parseFloat(i[5])),s||0}function Lt(r){return typeof r=="object"&&r!==null&&r.constructor&&Object.prototype.toString.call(r).slice(8,-1)==="Object"}function ha(r){return typeof window<"u"&&typeof window.HTMLElement<"u"?r instanceof HTMLElement:r&&(r.nodeType===1||r.nodeType===11)}function me(){const r=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let t=1;t<arguments.length;t+=1){const i=t<0||arguments.length<=t?void 0:arguments[t];if(i!=null&&!ha(i)){const s=Object.keys(Object(i)).filter(n=>e.indexOf(n)<0);for(let n=0,a=s.length;n<a;n+=1){const o=s[n],l=Object.getOwnPropertyDescriptor(i,o);l!==void 0&&l.enumerable&&(Lt(r[o])&&Lt(i[o])?i[o].__swiper__?r[o]=i[o]:me(r[o],i[o]):!Lt(r[o])&&Lt(i[o])?(r[o]={},i[o].__swiper__?r[o]=i[o]:me(r[o],i[o])):r[o]=i[o])}}}return r}function ft(r,e,t){r.style.setProperty(e,t)}function Cs(r){let{swiper:e,targetPosition:t,side:i}=r;const s=fe(),n=-e.translate;let a=null,o;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const d=t>n?"next":"prev",c=(f,h)=>d==="next"&&f>=h||d==="prev"&&f<=h,u=()=>{o=new Date().getTime(),a===null&&(a=o);const f=Math.max(Math.min((o-a)/l,1),0),h=.5-Math.cos(f*Math.PI)/2;let p=n+h*(t-n);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[i]:p}),c(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:p})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(u)};u()}function ve(r,e){e===void 0&&(e="");const t=[...r.children];return r instanceof HTMLSlotElement&&t.push(...r.assignedElements()),e?t.filter(i=>i.matches(e)):t}function pa(r,e){const t=e.contains(r);return!t&&e instanceof HTMLSlotElement?[...e.assignedElements()].includes(r):t}function At(r){try{console.warn(r);return}catch{}}function ht(r,e){e===void 0&&(e=[]);const t=document.createElement(r);return t.classList.add(...Array.isArray(e)?e:ca(e)),t}function ci(r){const e=fe(),t=ye(),i=r.getBoundingClientRect(),s=t.body,n=r.clientTop||s.clientTop||0,a=r.clientLeft||s.clientLeft||0,o=r===e?e.scrollY:r.scrollTop,l=r===e?e.scrollX:r.scrollLeft;return{top:i.top+o-n,left:i.left+l-a}}function ga(r,e){const t=[];for(;r.previousElementSibling;){const i=r.previousElementSibling;e?i.matches(e)&&t.push(i):t.push(i),r=i}return t}function ma(r,e){const t=[];for(;r.nextElementSibling;){const i=r.nextElementSibling;e?i.matches(e)&&t.push(i):t.push(i),r=i}return t}function Ue(r,e){return fe().getComputedStyle(r,null).getPropertyValue(e)}function Ds(r){let e=r,t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function Je(r,e){const t=[];let i=r.parentElement;for(;i;)e?i.matches(e)&&t.push(i):t.push(i),i=i.parentElement;return t}function Ps(r,e,t){const i=fe();return t?r[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(r,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(r,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):r.offsetWidth}function ya(r){let{swiper:e,extendParams:t,on:i,emit:s}=r;t({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let n;const a=ye();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=a.createElement("div");function l(p,g){const m=e.params.virtual;if(m.cache&&e.virtual.cache[g])return e.virtual.cache[g];let v;return m.renderSlide?(v=m.renderSlide.call(e,p,g),typeof v=="string"&&(o.innerHTML=v,v=o.children[0])):e.isElement?v=ht("swiper-slide"):v=ht("div",e.params.slideClass),v.setAttribute("data-swiper-slide-index",g),m.renderSlide||(v.innerHTML=p),m.cache&&(e.virtual.cache[g]=v),v}function d(p,g){const{slidesPerView:m,slidesPerGroup:v,centeredSlides:E,loop:T,initialSlide:L}=e.params;if(g&&!T&&L>0)return;const{addSlidesBefore:S,addSlidesAfter:A}=e.params.virtual,{from:w,to:C,slides:R,slidesGrid:x,offset:D}=e.virtual;e.params.cssMode||e.updateActiveIndex();const N=e.activeIndex||0;let _;e.rtlTranslate?_="right":_=e.isHorizontal()?"left":"top";let $,H;E?($=Math.floor(m/2)+v+A,H=Math.floor(m/2)+v+S):($=m+(v-1)+A,H=(T?m:v)+S);let V=N-H,q=N+$;T||(V=Math.max(V,0),q=Math.min(q,R.length-1));let K=(e.slidesGrid[V]||0)-(e.slidesGrid[0]||0);T&&N>=H?(V-=H,E||(K+=e.slidesGrid[0])):T&&N<H&&(V=-H,E&&(K+=e.slidesGrid[0])),Object.assign(e.virtual,{from:V,to:q,offset:K,slidesGrid:e.slidesGrid,slidesBefore:H,slidesAfter:$});function G(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),s("virtualUpdate")}if(w===V&&C===q&&!p){e.slidesGrid!==x&&K!==D&&e.slides.forEach(W=>{W.style[_]=`${K-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),s("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:K,from:V,to:q,slides:function(){const Q=[];for(let ie=V;ie<=q;ie+=1)Q.push(R[ie]);return Q}()}),e.params.virtual.renderExternalUpdate?G():s("virtualUpdate");return}const B=[],O=[],F=W=>{let Q=W;return W<0?Q=R.length+W:Q>=R.length&&(Q=Q-R.length),Q};if(p)e.slides.filter(W=>W.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(W=>{W.remove()});else for(let W=w;W<=C;W+=1)if(W<V||W>q){const Q=F(W);e.slides.filter(ie=>ie.matches(`.${e.params.slideClass}[data-swiper-slide-index="${Q}"], swiper-slide[data-swiper-slide-index="${Q}"]`)).forEach(ie=>{ie.remove()})}const U=T?-R.length:0,J=T?R.length*2:R.length;for(let W=U;W<J;W+=1)if(W>=V&&W<=q){const Q=F(W);typeof C>"u"||p?O.push(Q):(W>C&&O.push(Q),W<w&&B.push(Q))}if(O.forEach(W=>{e.slidesEl.append(l(R[W],W))}),T)for(let W=B.length-1;W>=0;W-=1){const Q=B[W];e.slidesEl.prepend(l(R[Q],Q))}else B.sort((W,Q)=>Q-W),B.forEach(W=>{e.slidesEl.prepend(l(R[W],W))});ve(e.slidesEl,".swiper-slide, swiper-slide").forEach(W=>{W.style[_]=`${K-Math.abs(e.cssOverflowAdjustment())}px`}),G()}function c(p){if(typeof p=="object"&&"length"in p)for(let g=0;g<p.length;g+=1)p[g]&&e.virtual.slides.push(p[g]);else e.virtual.slides.push(p);d(!0)}function u(p){const g=e.activeIndex;let m=g+1,v=1;if(Array.isArray(p)){for(let E=0;E<p.length;E+=1)p[E]&&e.virtual.slides.unshift(p[E]);m=g+p.length,v=p.length}else e.virtual.slides.unshift(p);if(e.params.virtual.cache){const E=e.virtual.cache,T={};Object.keys(E).forEach(L=>{const S=E[L],A=S.getAttribute("data-swiper-slide-index");A&&S.setAttribute("data-swiper-slide-index",parseInt(A,10)+v),T[parseInt(L,10)+v]=S}),e.virtual.cache=T}d(!0),e.slideTo(m,0)}function f(p){if(typeof p>"u"||p===null)return;let g=e.activeIndex;if(Array.isArray(p))for(let m=p.length-1;m>=0;m-=1)e.params.virtual.cache&&(delete e.virtual.cache[p[m]],Object.keys(e.virtual.cache).forEach(v=>{v>p&&(e.virtual.cache[v-1]=e.virtual.cache[v],e.virtual.cache[v-1].setAttribute("data-swiper-slide-index",v-1),delete e.virtual.cache[v])})),e.virtual.slides.splice(p[m],1),p[m]<g&&(g-=1),g=Math.max(g,0);else e.params.virtual.cache&&(delete e.virtual.cache[p],Object.keys(e.virtual.cache).forEach(m=>{m>p&&(e.virtual.cache[m-1]=e.virtual.cache[m],e.virtual.cache[m-1].setAttribute("data-swiper-slide-index",m-1),delete e.virtual.cache[m])})),e.virtual.slides.splice(p,1),p<g&&(g-=1),g=Math.max(g,0);d(!0),e.slideTo(g,0)}function h(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),d(!0),e.slideTo(0,0)}i("beforeInit",()=>{if(!e.params.virtual.enabled)return;let p;if(typeof e.passedParams.virtual.slides>"u"){const g=[...e.slidesEl.children].filter(m=>m.matches(`.${e.params.slideClass}, swiper-slide`));g&&g.length&&(e.virtual.slides=[...g],p=!0,g.forEach((m,v)=>{m.setAttribute("data-swiper-slide-index",v),e.virtual.cache[v]=m,m.remove()}))}p||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,d(!1,!0)}),i("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(n),n=setTimeout(()=>{d()},100)):d())}),i("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&ft(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:c,prependSlide:u,removeSlide:f,removeAllSlides:h,update:d})}function va(r){let{swiper:e,extendParams:t,on:i,emit:s}=r;const n=ye(),a=fe();e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function o(c){if(!e.enabled)return;const{rtlTranslate:u}=e;let f=c;f.originalEvent&&(f=f.originalEvent);const h=f.keyCode||f.charCode,p=e.params.keyboard.pageUpDown,g=p&&h===33,m=p&&h===34,v=h===37,E=h===39,T=h===38,L=h===40;if(!e.allowSlideNext&&(e.isHorizontal()&&E||e.isVertical()&&L||m)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&T||g))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey)&&!(n.activeElement&&n.activeElement.nodeName&&(n.activeElement.nodeName.toLowerCase()==="input"||n.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(g||m||v||E||T||L)){let S=!1;if(Je(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Je(e.el,`.${e.params.slideActiveClass}`).length===0)return;const A=e.el,w=A.clientWidth,C=A.clientHeight,R=a.innerWidth,x=a.innerHeight,D=ci(A);u&&(D.left-=A.scrollLeft);const N=[[D.left,D.top],[D.left+w,D.top],[D.left,D.top+C],[D.left+w,D.top+C]];for(let _=0;_<N.length;_+=1){const $=N[_];if($[0]>=0&&$[0]<=R&&$[1]>=0&&$[1]<=x){if($[0]===0&&$[1]===0)continue;S=!0}}if(!S)return}e.isHorizontal()?((g||m||v||E)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((m||E)&&!u||(g||v)&&u)&&e.slideNext(),((g||v)&&!u||(m||E)&&u)&&e.slidePrev()):((g||m||T||L)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(m||L)&&e.slideNext(),(g||T)&&e.slidePrev()),s("keyPress",h)}}function l(){e.keyboard.enabled||(n.addEventListener("keydown",o),e.keyboard.enabled=!0)}function d(){e.keyboard.enabled&&(n.removeEventListener("keydown",o),e.keyboard.enabled=!1)}i("init",()=>{e.params.keyboard.enabled&&l()}),i("destroy",()=>{e.keyboard.enabled&&d()}),Object.assign(e.keyboard,{enable:l,disable:d})}function Ta(r){let{swiper:e,extendParams:t,on:i,emit:s}=r;const n=fe();t({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let a=1,o=!1,l,d;const c=[],u={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},f={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:{}},h={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let p=1;Object.defineProperty(e.zoom,"scale",{get(){return p},set(O){if(p!==O){const F=u.imageEl,U=u.slideEl;s("zoomChange",O,F,U)}p=O}});function g(){if(c.length<2)return 1;const O=c[0].pageX,F=c[0].pageY,U=c[1].pageX,J=c[1].pageY;return Math.sqrt((U-O)**2+(J-F)**2)}function m(){const O=e.params.zoom,F=u.imageWrapEl.getAttribute("data-swiper-zoom")||O.maxRatio;if(O.limitToOriginalSize&&u.imageEl&&u.imageEl.naturalWidth){const U=u.imageEl.naturalWidth/u.imageEl.offsetWidth;return Math.min(U,F)}return F}function v(){if(c.length<2)return{x:null,y:null};const O=u.imageEl.getBoundingClientRect();return[(c[0].pageX+(c[1].pageX-c[0].pageX)/2-O.x-n.scrollX)/a,(c[0].pageY+(c[1].pageY-c[0].pageY)/2-O.y-n.scrollY)/a]}function E(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function T(O){const F=E();return!!(O.target.matches(F)||e.slides.filter(U=>U.contains(O.target)).length>0)}function L(O){const F=`.${e.params.zoom.containerClass}`;return!!(O.target.matches(F)||[...e.hostEl.querySelectorAll(F)].filter(U=>U.contains(O.target)).length>0)}function S(O){if(O.pointerType==="mouse"&&c.splice(0,c.length),!T(O))return;const F=e.params.zoom;if(l=!1,d=!1,c.push(O),!(c.length<2)){if(l=!0,u.scaleStart=g(),!u.slideEl){u.slideEl=O.target.closest(`.${e.params.slideClass}, swiper-slide`),u.slideEl||(u.slideEl=e.slides[e.activeIndex]);let U=u.slideEl.querySelector(`.${F.containerClass}`);if(U&&(U=U.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=U,U?u.imageWrapEl=Je(u.imageEl,`.${F.containerClass}`)[0]:u.imageWrapEl=void 0,!u.imageWrapEl){u.imageEl=void 0;return}u.maxRatio=m()}if(u.imageEl){const[U,J]=v();u.originX=U,u.originY=J,u.imageEl.style.transitionDuration="0ms"}o=!0}}function A(O){if(!T(O))return;const F=e.params.zoom,U=e.zoom,J=c.findIndex(W=>W.pointerId===O.pointerId);J>=0&&(c[J]=O),!(c.length<2)&&(d=!0,u.scaleMove=g(),u.imageEl&&(U.scale=u.scaleMove/u.scaleStart*a,U.scale>u.maxRatio&&(U.scale=u.maxRatio-1+(U.scale-u.maxRatio+1)**.5),U.scale<F.minRatio&&(U.scale=F.minRatio+1-(F.minRatio-U.scale+1)**.5),u.imageEl.style.transform=`translate3d(0,0,0) scale(${U.scale})`))}function w(O){if(!T(O)||O.pointerType==="mouse"&&O.type==="pointerout")return;const F=e.params.zoom,U=e.zoom,J=c.findIndex(W=>W.pointerId===O.pointerId);J>=0&&c.splice(J,1),!(!l||!d)&&(l=!1,d=!1,u.imageEl&&(U.scale=Math.max(Math.min(U.scale,u.maxRatio),F.minRatio),u.imageEl.style.transitionDuration=`${e.params.speed}ms`,u.imageEl.style.transform=`translate3d(0,0,0) scale(${U.scale})`,a=U.scale,o=!1,U.scale>1&&u.slideEl?u.slideEl.classList.add(`${F.zoomedSlideClass}`):U.scale<=1&&u.slideEl&&u.slideEl.classList.remove(`${F.zoomedSlideClass}`),U.scale===1&&(u.originX=0,u.originY=0,u.slideEl=void 0)))}let C;function R(){e.touchEventsData.preventTouchMoveFromPointerMove=!1}function x(){clearTimeout(C),e.touchEventsData.preventTouchMoveFromPointerMove=!0,C=setTimeout(()=>{e.destroyed||R()})}function D(O){const F=e.device;if(!u.imageEl||f.isTouched)return;F.android&&O.cancelable&&O.preventDefault(),f.isTouched=!0;const U=c.length>0?c[0]:O;f.touchesStart.x=U.pageX,f.touchesStart.y=U.pageY}function N(O){if(!T(O)||!L(O))return;const F=e.zoom;if(!u.imageEl||!f.isTouched||!u.slideEl)return;f.isMoved||(f.width=u.imageEl.offsetWidth||u.imageEl.clientWidth,f.height=u.imageEl.offsetHeight||u.imageEl.clientHeight,f.startX=di(u.imageWrapEl,"x")||0,f.startY=di(u.imageWrapEl,"y")||0,u.slideWidth=u.slideEl.offsetWidth,u.slideHeight=u.slideEl.offsetHeight,u.imageWrapEl.style.transitionDuration="0ms");const U=f.width*F.scale,J=f.height*F.scale;if(f.minX=Math.min(u.slideWidth/2-U/2,0),f.maxX=-f.minX,f.minY=Math.min(u.slideHeight/2-J/2,0),f.maxY=-f.minY,f.touchesCurrent.x=c.length>0?c[0].pageX:O.pageX,f.touchesCurrent.y=c.length>0?c[0].pageY:O.pageY,Math.max(Math.abs(f.touchesCurrent.x-f.touchesStart.x),Math.abs(f.touchesCurrent.y-f.touchesStart.y))>5&&(e.allowClick=!1),!f.isMoved&&!o){if(e.isHorizontal()&&(Math.floor(f.minX)===Math.floor(f.startX)&&f.touchesCurrent.x<f.touchesStart.x||Math.floor(f.maxX)===Math.floor(f.startX)&&f.touchesCurrent.x>f.touchesStart.x)){f.isTouched=!1,R();return}if(!e.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.y<f.touchesStart.y||Math.floor(f.maxY)===Math.floor(f.startY)&&f.touchesCurrent.y>f.touchesStart.y)){f.isTouched=!1,R();return}}O.cancelable&&O.preventDefault(),O.stopPropagation(),x(),f.isMoved=!0;const Q=(F.scale-a)/(u.maxRatio-e.params.zoom.minRatio),{originX:ie,originY:xe}=u;f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX+Q*(f.width-ie*2),f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY+Q*(f.height-xe*2),f.currentX<f.minX&&(f.currentX=f.minX+1-(f.minX-f.currentX+1)**.8),f.currentX>f.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentY<f.minY&&(f.currentY=f.minY+1-(f.minY-f.currentY+1)**.8),f.currentY>f.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),h.prevPositionX||(h.prevPositionX=f.touchesCurrent.x),h.prevPositionY||(h.prevPositionY=f.touchesCurrent.y),h.prevTime||(h.prevTime=Date.now()),h.x=(f.touchesCurrent.x-h.prevPositionX)/(Date.now()-h.prevTime)/2,h.y=(f.touchesCurrent.y-h.prevPositionY)/(Date.now()-h.prevTime)/2,Math.abs(f.touchesCurrent.x-h.prevPositionX)<2&&(h.x=0),Math.abs(f.touchesCurrent.y-h.prevPositionY)<2&&(h.y=0),h.prevPositionX=f.touchesCurrent.x,h.prevPositionY=f.touchesCurrent.y,h.prevTime=Date.now(),u.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}function _(){const O=e.zoom;if(!u.imageEl)return;if(!f.isTouched||!f.isMoved){f.isTouched=!1,f.isMoved=!1;return}f.isTouched=!1,f.isMoved=!1;let F=300,U=300;const J=h.x*F,W=f.currentX+J,Q=h.y*U,ie=f.currentY+Q;h.x!==0&&(F=Math.abs((W-f.currentX)/h.x)),h.y!==0&&(U=Math.abs((ie-f.currentY)/h.y));const xe=Math.max(F,U);f.currentX=W,f.currentY=ie;const He=f.width*O.scale,Ne=f.height*O.scale;f.minX=Math.min(u.slideWidth/2-He/2,0),f.maxX=-f.minX,f.minY=Math.min(u.slideHeight/2-Ne/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),u.imageWrapEl.style.transitionDuration=`${xe}ms`,u.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}function $(){const O=e.zoom;u.slideEl&&e.activeIndex!==e.slides.indexOf(u.slideEl)&&(u.imageEl&&(u.imageEl.style.transform="translate3d(0,0,0) scale(1)"),u.imageWrapEl&&(u.imageWrapEl.style.transform="translate3d(0,0,0)"),u.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),O.scale=1,a=1,u.slideEl=void 0,u.imageEl=void 0,u.imageWrapEl=void 0,u.originX=0,u.originY=0)}function H(O){const F=e.zoom,U=e.params.zoom;if(!u.slideEl){O&&O.target&&(u.slideEl=O.target.closest(`.${e.params.slideClass}, swiper-slide`)),u.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.slideEl=ve(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:u.slideEl=e.slides[e.activeIndex]);let St=u.slideEl.querySelector(`.${U.containerClass}`);St&&(St=St.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=St,St?u.imageWrapEl=Je(u.imageEl,`.${U.containerClass}`)[0]:u.imageWrapEl=void 0}if(!u.imageEl||!u.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),u.slideEl.classList.add(`${U.zoomedSlideClass}`);let J,W,Q,ie,xe,He,Ne,qe,ra,na,aa,oa,ni,ai,As,bs,ws,Rs;typeof f.touchesStart.x>"u"&&O?(J=O.pageX,W=O.pageY):(J=f.touchesStart.x,W=f.touchesStart.y);const Et=typeof O=="number"?O:null;a===1&&Et&&(J=void 0,W=void 0,f.touchesStart.x=void 0,f.touchesStart.y=void 0);const la=m();F.scale=Et||la,a=Et||la,O&&!(a===1&&Et)?(ws=u.slideEl.offsetWidth,Rs=u.slideEl.offsetHeight,Q=ci(u.slideEl).left+n.scrollX,ie=ci(u.slideEl).top+n.scrollY,xe=Q+ws/2-J,He=ie+Rs/2-W,ra=u.imageEl.offsetWidth||u.imageEl.clientWidth,na=u.imageEl.offsetHeight||u.imageEl.clientHeight,aa=ra*F.scale,oa=na*F.scale,ni=Math.min(ws/2-aa/2,0),ai=Math.min(Rs/2-oa/2,0),As=-ni,bs=-ai,Ne=xe*F.scale,qe=He*F.scale,Ne<ni&&(Ne=ni),Ne>As&&(Ne=As),qe<ai&&(qe=ai),qe>bs&&(qe=bs)):(Ne=0,qe=0),Et&&F.scale===1&&(u.originX=0,u.originY=0),u.imageWrapEl.style.transitionDuration="300ms",u.imageWrapEl.style.transform=`translate3d(${Ne}px, ${qe}px,0)`,u.imageEl.style.transitionDuration="300ms",u.imageEl.style.transform=`translate3d(0,0,0) scale(${F.scale})`}function V(){const O=e.zoom,F=e.params.zoom;if(!u.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.slideEl=ve(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:u.slideEl=e.slides[e.activeIndex];let U=u.slideEl.querySelector(`.${F.containerClass}`);U&&(U=U.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=U,U?u.imageWrapEl=Je(u.imageEl,`.${F.containerClass}`)[0]:u.imageWrapEl=void 0}!u.imageEl||!u.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),O.scale=1,a=1,f.touchesStart.x=void 0,f.touchesStart.y=void 0,u.imageWrapEl.style.transitionDuration="300ms",u.imageWrapEl.style.transform="translate3d(0,0,0)",u.imageEl.style.transitionDuration="300ms",u.imageEl.style.transform="translate3d(0,0,0) scale(1)",u.slideEl.classList.remove(`${F.zoomedSlideClass}`),u.slideEl=void 0,u.originX=0,u.originY=0)}function q(O){const F=e.zoom;F.scale&&F.scale!==1?V():H(O)}function K(){const O=e.params.passiveListeners?{passive:!0,capture:!1}:!1,F=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:O,activeListenerWithCapture:F}}function G(){const O=e.zoom;if(O.enabled)return;O.enabled=!0;const{passiveListener:F,activeListenerWithCapture:U}=K();e.wrapperEl.addEventListener("pointerdown",S,F),e.wrapperEl.addEventListener("pointermove",A,U),["pointerup","pointercancel","pointerout"].forEach(J=>{e.wrapperEl.addEventListener(J,w,F)}),e.wrapperEl.addEventListener("pointermove",N,U)}function B(){const O=e.zoom;if(!O.enabled)return;O.enabled=!1;const{passiveListener:F,activeListenerWithCapture:U}=K();e.wrapperEl.removeEventListener("pointerdown",S,F),e.wrapperEl.removeEventListener("pointermove",A,U),["pointerup","pointercancel","pointerout"].forEach(J=>{e.wrapperEl.removeEventListener(J,w,F)}),e.wrapperEl.removeEventListener("pointermove",N,U)}i("init",()=>{e.params.zoom.enabled&&G()}),i("destroy",()=>{B()}),i("touchStart",(O,F)=>{e.zoom.enabled&&D(F)}),i("touchEnd",(O,F)=>{e.zoom.enabled&&_()}),i("doubleTap",(O,F)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&q(F)}),i("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&$()}),i("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&$()}),Object.assign(e.zoom,{enable:G,disable:B,in:H,out:V,toggle:q})}function Ea(r){let{swiper:e,extendParams:t,on:i,emit:s,params:n}=r;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,o,l=n&&n.autoplay?n.autoplay.delay:3e3,d=n&&n.autoplay?n.autoplay.delay:3e3,c,u=new Date().getTime(),f,h,p,g,m,v,E;function T(K){!e||e.destroyed||!e.wrapperEl||K.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",T),!(E||K.detail&&K.detail.bySwiperTouchMove)&&x())}const L=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(d=c,f=!1);const K=e.autoplay.paused?c:u+d-new Date().getTime();e.autoplay.timeLeft=K,s("autoplayTimeLeft",K,K/l),o=requestAnimationFrame(()=>{L()})},S=()=>{let K;return e.virtual&&e.params.virtual.enabled?K=e.slides.filter(B=>B.classList.contains("swiper-slide-active"))[0]:K=e.slides[e.activeIndex],K?parseInt(K.getAttribute("data-swiper-autoplay"),10):void 0},A=K=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),L();let G=typeof K>"u"?e.params.autoplay.delay:K;l=e.params.autoplay.delay,d=e.params.autoplay.delay;const B=S();!Number.isNaN(B)&&B>0&&typeof K>"u"&&(G=B,l=B,d=B),c=G;const O=e.params.speed,F=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(O,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,O,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(O,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,O,!0,!0),s("autoplay")),e.params.cssMode&&(u=new Date().getTime(),requestAnimationFrame(()=>{A()})))};return G>0?(clearTimeout(a),a=setTimeout(()=>{F()},G)):requestAnimationFrame(()=>{F()}),G},w=()=>{u=new Date().getTime(),e.autoplay.running=!0,A(),s("autoplayStart")},C=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),s("autoplayStop")},R=(K,G)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),K||(v=!0);const B=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",T):x()};if(e.autoplay.paused=!0,G){m&&(c=e.params.autoplay.delay),m=!1,B();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-u),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),B())},x=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(u=new Date().getTime(),v?(v=!1,A(c)):A(),e.autoplay.paused=!1,s("autoplayResume"))},D=()=>{if(e.destroyed||!e.autoplay.running)return;const K=ye();K.visibilityState==="hidden"&&(v=!0,R(!0)),K.visibilityState==="visible"&&x()},N=K=>{K.pointerType==="mouse"&&(v=!0,E=!0,!(e.animating||e.autoplay.paused)&&R(!0))},_=K=>{K.pointerType==="mouse"&&(E=!1,e.autoplay.paused&&x())},$=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",N),e.el.addEventListener("pointerleave",_))},H=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",N),e.el.removeEventListener("pointerleave",_))},V=()=>{ye().addEventListener("visibilitychange",D)},q=()=>{ye().removeEventListener("visibilitychange",D)};i("init",()=>{e.params.autoplay.enabled&&($(),V(),w())}),i("destroy",()=>{H(),q(),e.autoplay.running&&C()}),i("_freeModeStaticRelease",()=>{(p||v)&&x()}),i("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?C():R(!0,!0)}),i("beforeTransitionStart",(K,G,B)=>{e.destroyed||!e.autoplay.running||(B||!e.params.autoplay.disableOnInteraction?R(!0,!0):C())}),i("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){C();return}h=!0,p=!1,v=!1,g=setTimeout(()=>{v=!0,p=!0,R(!0)},200)}}),i("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!h)){if(clearTimeout(g),clearTimeout(a),e.params.autoplay.disableOnInteraction){p=!1,h=!1;return}p&&e.params.cssMode&&x(),p=!1,h=!1}}),i("slideChange",()=>{e.destroyed||!e.autoplay.running||(m=!0)}),Object.assign(e.autoplay,{start:w,stop:C,pause:R,resume:x})}let ui;function Sa(){const r=fe(),e=ye();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in r||r.DocumentTouch&&e instanceof r.DocumentTouch)}}function _s(){return ui||(ui=Sa()),ui}let fi;function xa(r){let{userAgent:e}=r===void 0?{}:r;const t=_s(),i=fe(),s=i.navigator.platform,n=e||i.navigator.userAgent,a={ios:!1,android:!1},o=i.screen.width,l=i.screen.height,d=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let p=s==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&p&&t.touch&&g.indexOf(`${o}x${l}`)>=0&&(c=n.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),d&&!h&&(a.os="android",a.android=!0),(c||f||u)&&(a.os="ios",a.ios=!0),a}function ks(r){return r===void 0&&(r={}),fi||(fi=xa(r)),fi}let hi;function La(){const r=fe(),e=ks();let t=!1;function i(){const o=r.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(i()){const o=String(r.navigator.userAgent);if(o.includes("Version/")){const[l,d]=o.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));t=l<16||l===16&&d<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(r.navigator.userAgent),n=i(),a=n||s&&e.ios;return{isSafari:t||n,needPerspectiveFix:t,need3dFix:a,isWebView:s}}function Aa(){return hi||(hi=La()),hi}function ba(r){let{swiper:e,on:t,emit:i}=r;const s=fe();let n=null,a=null;const o=()=>{!e||e.destroyed||!e.initialized||(i("beforeResize"),i("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(u=>{a=s.requestAnimationFrame(()=>{const{width:f,height:h}=e;let p=f,g=h;u.forEach(m=>{let{contentBoxSize:v,contentRect:E,target:T}=m;T&&T!==e.el||(p=E?E.width:(v[0]||v).inlineSize,g=E?E.height:(v[0]||v).blockSize)}),(p!==f||g!==h)&&o()})}),n.observe(e.el))},d=()=>{a&&s.cancelAnimationFrame(a),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},c=()=>{!e||e.destroyed||!e.initialized||i("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){l();return}s.addEventListener("resize",o),s.addEventListener("orientationchange",c)}),t("destroy",()=>{d(),s.removeEventListener("resize",o),s.removeEventListener("orientationchange",c)})}function wa(r){let{swiper:e,extendParams:t,on:i,emit:s}=r;const n=[],a=fe(),o=function(c,u){u===void 0&&(u={});const f=a.MutationObserver||a.WebkitMutationObserver,h=new f(p=>{if(e.__preventObserver__)return;if(p.length===1){s("observerUpdate",p[0]);return}const g=function(){s("observerUpdate",p[0])};a.requestAnimationFrame?a.requestAnimationFrame(g):a.setTimeout(g,0)});h.observe(c,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:e.isElement||(typeof u.childList>"u"?!0:u).childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),n.push(h)},l=()=>{if(e.params.observer){if(e.params.observeParents){const c=Je(e.hostEl);for(let u=0;u<c.length;u+=1)o(c[u])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}},d=()=>{n.forEach(c=>{c.disconnect()}),n.splice(0,n.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",l),i("destroy",d)}var Ra={on(r,e,t){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;const s=t?"unshift":"push";return r.split(" ").forEach(n=>{i.eventsListeners[n]||(i.eventsListeners[n]=[]),i.eventsListeners[n][s](e)}),i},once(r,e,t){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;function s(){i.off(r,s),s.__emitterProxy&&delete s.__emitterProxy;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];e.apply(i,a)}return s.__emitterProxy=e,i.on(r,s,t)},onAny(r,e){const t=this;if(!t.eventsListeners||t.destroyed||typeof r!="function")return t;const i=e?"unshift":"push";return t.eventsAnyListeners.indexOf(r)<0&&t.eventsAnyListeners[i](r),t},offAny(r){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(r);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(r,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||r.split(" ").forEach(i=>{typeof e>"u"?t.eventsListeners[i]=[]:t.eventsListeners[i]&&t.eventsListeners[i].forEach((s,n)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&t.eventsListeners[i].splice(n,1)})}),t},emit(){const r=this;if(!r.eventsListeners||r.destroyed||!r.eventsListeners)return r;let e,t,i;for(var s=arguments.length,n=new Array(s),a=0;a<s;a++)n[a]=arguments[a];return typeof n[0]=="string"||Array.isArray(n[0])?(e=n[0],t=n.slice(1,n.length),i=r):(e=n[0].events,t=n[0].data,i=n[0].context||r),t.unshift(i),(Array.isArray(e)?e:e.split(" ")).forEach(l=>{r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach(d=>{d.apply(i,[l,...t])}),r.eventsListeners&&r.eventsListeners[l]&&r.eventsListeners[l].forEach(d=>{d.apply(i,t)})}),r}};function Ia(){const r=this;let e,t;const i=r.el;typeof r.params.width<"u"&&r.params.width!==null?e=r.params.width:e=i.clientWidth,typeof r.params.height<"u"&&r.params.height!==null?t=r.params.height:t=i.clientHeight,!(e===0&&r.isHorizontal()||t===0&&r.isVertical())&&(e=e-parseInt(Ue(i,"padding-left")||0,10)-parseInt(Ue(i,"padding-right")||0,10),t=t-parseInt(Ue(i,"padding-top")||0,10)-parseInt(Ue(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(r,{width:e,height:t,size:r.isHorizontal()?e:t}))}function Ca(){const r=this;function e(x,D){return parseFloat(x.getPropertyValue(r.getDirectionLabel(D))||0)}const t=r.params,{wrapperEl:i,slidesEl:s,size:n,rtlTranslate:a,wrongRTL:o}=r,l=r.virtual&&t.virtual.enabled,d=l?r.virtual.slides.length:r.slides.length,c=ve(s,`.${r.params.slideClass}, swiper-slide`),u=l?r.virtual.slides.length:c.length;let f=[];const h=[],p=[];let g=t.slidesOffsetBefore;typeof g=="function"&&(g=t.slidesOffsetBefore.call(r));let m=t.slidesOffsetAfter;typeof m=="function"&&(m=t.slidesOffsetAfter.call(r));const v=r.snapGrid.length,E=r.slidesGrid.length;let T=t.spaceBetween,L=-g,S=0,A=0;if(typeof n>"u")return;typeof T=="string"&&T.indexOf("%")>=0?T=parseFloat(T.replace("%",""))/100*n:typeof T=="string"&&(T=parseFloat(T)),r.virtualSize=-T,c.forEach(x=>{a?x.style.marginLeft="":x.style.marginRight="",x.style.marginBottom="",x.style.marginTop=""}),t.centeredSlides&&t.cssMode&&(ft(i,"--swiper-centered-offset-before",""),ft(i,"--swiper-centered-offset-after",""));const w=t.grid&&t.grid.rows>1&&r.grid;w?r.grid.initSlides(c):r.grid&&r.grid.unsetSlides();let C;const R=t.slidesPerView==="auto"&&t.breakpoints&&Object.keys(t.breakpoints).filter(x=>typeof t.breakpoints[x].slidesPerView<"u").length>0;for(let x=0;x<u;x+=1){C=0;let D;if(c[x]&&(D=c[x]),w&&r.grid.updateSlide(x,D,c),!(c[x]&&Ue(D,"display")==="none")){if(t.slidesPerView==="auto"){R&&(c[x].style[r.getDirectionLabel("width")]="");const N=getComputedStyle(D),_=D.style.transform,$=D.style.webkitTransform;if(_&&(D.style.transform="none"),$&&(D.style.webkitTransform="none"),t.roundLengths)C=r.isHorizontal()?Ps(D,"width",!0):Ps(D,"height",!0);else{const H=e(N,"width"),V=e(N,"padding-left"),q=e(N,"padding-right"),K=e(N,"margin-left"),G=e(N,"margin-right"),B=N.getPropertyValue("box-sizing");if(B&&B==="border-box")C=H+K+G;else{const{clientWidth:O,offsetWidth:F}=D;C=H+V+q+K+G+(F-O)}}_&&(D.style.transform=_),$&&(D.style.webkitTransform=$),t.roundLengths&&(C=Math.floor(C))}else C=(n-(t.slidesPerView-1)*T)/t.slidesPerView,t.roundLengths&&(C=Math.floor(C)),c[x]&&(c[x].style[r.getDirectionLabel("width")]=`${C}px`);c[x]&&(c[x].swiperSlideSize=C),p.push(C),t.centeredSlides?(L=L+C/2+S/2+T,S===0&&x!==0&&(L=L-n/2-T),x===0&&(L=L-n/2-T),Math.abs(L)<1/1e3&&(L=0),t.roundLengths&&(L=Math.floor(L)),A%t.slidesPerGroup===0&&f.push(L),h.push(L)):(t.roundLengths&&(L=Math.floor(L)),(A-Math.min(r.params.slidesPerGroupSkip,A))%r.params.slidesPerGroup===0&&f.push(L),h.push(L),L=L+C+T),r.virtualSize+=C+T,S=C,A+=1}}if(r.virtualSize=Math.max(r.virtualSize,n)+m,a&&o&&(t.effect==="slide"||t.effect==="coverflow")&&(i.style.width=`${r.virtualSize+T}px`),t.setWrapperSize&&(i.style[r.getDirectionLabel("width")]=`${r.virtualSize+T}px`),w&&r.grid.updateWrapperSize(C,f),!t.centeredSlides){const x=[];for(let D=0;D<f.length;D+=1){let N=f[D];t.roundLengths&&(N=Math.floor(N)),f[D]<=r.virtualSize-n&&x.push(N)}f=x,Math.floor(r.virtualSize-n)-Math.floor(f[f.length-1])>1&&f.push(r.virtualSize-n)}if(l&&t.loop){const x=p[0]+T;if(t.slidesPerGroup>1){const D=Math.ceil((r.virtual.slidesBefore+r.virtual.slidesAfter)/t.slidesPerGroup),N=x*t.slidesPerGroup;for(let _=0;_<D;_+=1)f.push(f[f.length-1]+N)}for(let D=0;D<r.virtual.slidesBefore+r.virtual.slidesAfter;D+=1)t.slidesPerGroup===1&&f.push(f[f.length-1]+x),h.push(h[h.length-1]+x),r.virtualSize+=x}if(f.length===0&&(f=[0]),T!==0){const x=r.isHorizontal()&&a?"marginLeft":r.getDirectionLabel("marginRight");c.filter((D,N)=>!t.cssMode||t.loop?!0:N!==c.length-1).forEach(D=>{D.style[x]=`${T}px`})}if(t.centeredSlides&&t.centeredSlidesBounds){let x=0;p.forEach(N=>{x+=N+(T||0)}),x-=T;const D=x>n?x-n:0;f=f.map(N=>N<=0?-g:N>D?D+m:N)}if(t.centerInsufficientSlides){let x=0;p.forEach(N=>{x+=N+(T||0)}),x-=T;const D=(t.slidesOffsetBefore||0)+(t.slidesOffsetAfter||0);if(x+D<n){const N=(n-x-D)/2;f.forEach((_,$)=>{f[$]=_-N}),h.forEach((_,$)=>{h[$]=_+N})}}if(Object.assign(r,{slides:c,snapGrid:f,slidesGrid:h,slidesSizesGrid:p}),t.centeredSlides&&t.cssMode&&!t.centeredSlidesBounds){ft(i,"--swiper-centered-offset-before",`${-f[0]}px`),ft(i,"--swiper-centered-offset-after",`${r.size/2-p[p.length-1]/2}px`);const x=-r.snapGrid[0],D=-r.slidesGrid[0];r.snapGrid=r.snapGrid.map(N=>N+x),r.slidesGrid=r.slidesGrid.map(N=>N+D)}if(u!==d&&r.emit("slidesLengthChange"),f.length!==v&&(r.params.watchOverflow&&r.checkOverflow(),r.emit("snapGridLengthChange")),h.length!==E&&r.emit("slidesGridLengthChange"),t.watchSlidesProgress&&r.updateSlidesOffset(),r.emit("slidesUpdated"),!l&&!t.cssMode&&(t.effect==="slide"||t.effect==="fade")){const x=`${t.containerModifierClass}backface-hidden`,D=r.el.classList.contains(x);u<=t.maxBackfaceHiddenSlides?D||r.el.classList.add(x):D&&r.el.classList.remove(x)}}function Da(r){const e=this,t=[],i=e.virtual&&e.params.virtual.enabled;let s=0,n;typeof r=="number"?e.setTransition(r):r===!0&&e.setTransition(e.params.speed);const a=o=>i?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{t.push(o)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const o=e.activeIndex+n;if(o>e.slides.length&&!i)break;t.push(a(o))}else t.push(a(e.activeIndex));for(n=0;n<t.length;n+=1)if(typeof t[n]<"u"){const o=t[n].offsetHeight;s=o>s?o:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function Pa(){const r=this,e=r.slides,t=r.isElement?r.isHorizontal()?r.wrapperEl.offsetLeft:r.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(r.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-t-r.cssOverflowAdjustment()}const Os=(r,e,t)=>{e&&!r.classList.contains(t)?r.classList.add(t):!e&&r.classList.contains(t)&&r.classList.remove(t)};function _a(r){r===void 0&&(r=this&&this.translate||0);const e=this,t=e.params,{slides:i,rtlTranslate:s,snapGrid:n}=e;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-r;s&&(a=r),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=t.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l<i.length;l+=1){const d=i[l];let c=d.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(c-=i[0].swiperSlideOffset);const u=(a+(t.centeredSlides?e.minTranslate():0)-c)/(d.swiperSlideSize+o),f=(a-n[0]+(t.centeredSlides?e.minTranslate():0)-c)/(d.swiperSlideSize+o),h=-(a-c),p=h+e.slidesSizesGrid[l],g=h>=0&&h<=e.size-e.slidesSizesGrid[l],m=h>=0&&h<e.size-1||p>1&&p<=e.size||h<=0&&p>=e.size;m&&(e.visibleSlides.push(d),e.visibleSlidesIndexes.push(l)),Os(d,m,t.slideVisibleClass),Os(d,g,t.slideFullyVisibleClass),d.progress=s?-u:u,d.originalProgress=s?-f:f}}function ka(r){const e=this;if(typeof r>"u"){const c=e.rtlTranslate?-1:1;r=e&&e.translate&&e.translate*c||0}const t=e.params,i=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:n,isEnd:a,progressLoop:o}=e;const l=n,d=a;if(i===0)s=0,n=!0,a=!0;else{s=(r-e.minTranslate())/i;const c=Math.abs(r-e.minTranslate())<1,u=Math.abs(r-e.maxTranslate())<1;n=c||s<=0,a=u||s>=1,c&&(s=0),u&&(s=1)}if(t.loop){const c=e.getSlideIndexByData(0),u=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[c],h=e.slidesGrid[u],p=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(r);g>=f?o=(g-f)/p:o=(g+p-h)/p,o>1&&(o-=1)}Object.assign(e,{progress:s,progressLoop:o,isBeginning:n,isEnd:a}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(r),n&&!l&&e.emit("reachBeginning toEdge"),a&&!d&&e.emit("reachEnd toEdge"),(l&&!n||d&&!a)&&e.emit("fromEdge"),e.emit("progress",s)}const pi=(r,e,t)=>{e&&!r.classList.contains(t)?r.classList.add(t):!e&&r.classList.contains(t)&&r.classList.remove(t)};function Oa(){const r=this,{slides:e,params:t,slidesEl:i,activeIndex:s}=r,n=r.virtual&&t.virtual.enabled,a=r.grid&&t.grid&&t.grid.rows>1,o=u=>ve(i,`.${t.slideClass}${u}, swiper-slide${u}`)[0];let l,d,c;if(n)if(t.loop){let u=s-r.virtual.slidesBefore;u<0&&(u=r.virtual.slides.length+u),u>=r.virtual.slides.length&&(u-=r.virtual.slides.length),l=o(`[data-swiper-slide-index="${u}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else a?(l=e.filter(u=>u.column===s)[0],c=e.filter(u=>u.column===s+1)[0],d=e.filter(u=>u.column===s-1)[0]):l=e[s];l&&(a||(c=ma(l,`.${t.slideClass}, swiper-slide`)[0],t.loop&&!c&&(c=e[0]),d=ga(l,`.${t.slideClass}, swiper-slide`)[0],t.loop&&!d===0&&(d=e[e.length-1]))),e.forEach(u=>{pi(u,u===l,t.slideActiveClass),pi(u,u===c,t.slideNextClass),pi(u,u===d,t.slidePrevClass)}),r.emitSlidesClasses()}const bt=(r,e)=>{if(!r||r.destroyed||!r.params)return;const t=()=>r.isElement?"swiper-slide":`.${r.params.slideClass}`,i=e.closest(t());if(i){let s=i.querySelector(`.${r.params.lazyPreloaderClass}`);!s&&r.isElement&&(i.shadowRoot?s=i.shadowRoot.querySelector(`.${r.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(s=i.shadowRoot.querySelector(`.${r.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},gi=(r,e)=>{if(!r.slides[e])return;const t=r.slides[e].querySelector('[loading="lazy"]');t&&t.removeAttribute("loading")},mi=r=>{if(!r||r.destroyed||!r.params)return;let e=r.params.lazyPreloadPrevNext;const t=r.slides.length;if(!t||!e||e<0)return;e=Math.min(e,t);const i=r.params.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(r.params.slidesPerView),s=r.activeIndex;if(r.params.grid&&r.params.grid.rows>1){const a=s,o=[a-e];o.push(...Array.from({length:e}).map((l,d)=>a+i+d)),r.slides.forEach((l,d)=>{o.includes(l.column)&&gi(r,d)});return}const n=s+i-1;if(r.params.rewind||r.params.loop)for(let a=s-e;a<=n+e;a+=1){const o=(a%t+t)%t;(o<s||o>n)&&gi(r,o)}else for(let a=Math.max(s-e,0);a<=Math.min(n+e,t-1);a+=1)a!==s&&(a>n||a<s)&&gi(r,a)};function Ma(r){const{slidesGrid:e,params:t}=r,i=r.rtlTranslate?r.translate:-r.translate;let s;for(let n=0;n<e.length;n+=1)typeof e[n+1]<"u"?i>=e[n]&&i<e[n+1]-(e[n+1]-e[n])/2?s=n:i>=e[n]&&i<e[n+1]&&(s=n+1):i>=e[n]&&(s=n);return t.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function Fa(r){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{snapGrid:i,params:s,activeIndex:n,realIndex:a,snapIndex:o}=e;let l=r,d;const c=h=>{let p=h-e.virtual.slidesBefore;return p<0&&(p=e.virtual.slides.length+p),p>=e.virtual.slides.length&&(p-=e.virtual.slides.length),p};if(typeof l>"u"&&(l=Ma(e)),i.indexOf(t)>=0)d=i.indexOf(t);else{const h=Math.min(s.slidesPerGroupSkip,l);d=h+Math.floor((l-h)/s.slidesPerGroup)}if(d>=i.length&&(d=i.length-1),l===n&&!e.params.loop){d!==o&&(e.snapIndex=d,e.emit("snapIndexChange"));return}if(l===n&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=c(l);return}const u=e.grid&&s.grid&&s.grid.rows>1;let f;if(e.virtual&&s.virtual.enabled&&s.loop)f=c(l);else if(u){const h=e.slides.filter(g=>g.column===l)[0];let p=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(p)&&(p=Math.max(e.slides.indexOf(h),0)),f=Math.floor(p/s.grid.rows)}else if(e.slides[l]){const h=e.slides[l].getAttribute("data-swiper-slide-index");h?f=parseInt(h,10):f=l}else f=l;Object.assign(e,{previousSnapIndex:o,snapIndex:d,previousRealIndex:a,realIndex:f,previousIndex:n,activeIndex:l}),e.initialized&&mi(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Na(r,e){const t=this,i=t.params;let s=r.closest(`.${i.slideClass}, swiper-slide`);!s&&t.isElement&&e&&e.length>1&&e.includes(r)&&[...e.slice(e.indexOf(r)+1,e.length)].forEach(o=>{!s&&o.matches&&o.matches(`.${i.slideClass}, swiper-slide`)&&(s=o)});let n=!1,a;if(s){for(let o=0;o<t.slides.length;o+=1)if(t.slides[o]===s){n=!0,a=o;break}}if(s&&n)t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=a;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}i.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var Ba={updateSize:Ia,updateSlides:Ca,updateAutoHeight:Da,updateSlidesOffset:Pa,updateSlidesProgress:_a,updateProgress:ka,updateSlidesClasses:Oa,updateActiveIndex:Fa,updateClickedSlide:Na};function Ua(r){r===void 0&&(r=this.isHorizontal()?"x":"y");const e=this,{params:t,rtlTranslate:i,translate:s,wrapperEl:n}=e;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let a=di(n,r);return a+=e.cssOverflowAdjustment(),i&&(a=-a),a||0}function $a(r,e){const t=this,{rtlTranslate:i,params:s,wrapperEl:n,progress:a}=t;let o=0,l=0;const d=0;t.isHorizontal()?o=i?-r:r:l=r,s.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?o:l,s.cssMode?n[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-o:-l:s.virtualTranslate||(t.isHorizontal()?o-=t.cssOverflowAdjustment():l-=t.cssOverflowAdjustment(),n.style.transform=`translate3d(${o}px, ${l}px, ${d}px)`);let c;const u=t.maxTranslate()-t.minTranslate();u===0?c=0:c=(r-t.minTranslate())/u,c!==a&&t.updateProgress(r),t.emit("setTranslate",t.translate,e)}function Ga(){return-this.snapGrid[0]}function Va(){return-this.snapGrid[this.snapGrid.length-1]}function Ha(r,e,t,i,s){r===void 0&&(r=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),i===void 0&&(i=!0);const n=this,{params:a,wrapperEl:o}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const l=n.minTranslate(),d=n.maxTranslate();let c;if(i&&r>l?c=l:i&&r<d?c=d:c=r,n.updateProgress(c),a.cssMode){const u=n.isHorizontal();if(e===0)o[u?"scrollLeft":"scrollTop"]=-c;else{if(!n.support.smoothScroll)return Cs({swiper:n,targetPosition:-c,side:u?"left":"top"}),!0;o.scrollTo({[u?"left":"top"]:-c,behavior:"smooth"})}return!0}return e===0?(n.setTransition(0),n.setTranslate(c),t&&(n.emit("beforeTransitionStart",e,s),n.emit("transitionEnd"))):(n.setTransition(e),n.setTranslate(c),t&&(n.emit("beforeTransitionStart",e,s),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(f){!n||n.destroyed||f.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,n.animating=!1,t&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}var Ka={getTranslate:Ua,setTranslate:$a,minTranslate:Ga,maxTranslate:Va,translateTo:Ha};function Wa(r,e){const t=this;t.params.cssMode||(t.wrapperEl.style.transitionDuration=`${r}ms`,t.wrapperEl.style.transitionDelay=r===0?"0ms":""),t.emit("setTransition",r,e)}function Ms(r){let{swiper:e,runCallbacks:t,direction:i,step:s}=r;const{activeIndex:n,previousIndex:a}=e;let o=i;if(o||(n>a?o="next":n<a?o="prev":o="reset"),e.emit(`transition${s}`),t&&n!==a){if(o==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),o==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function za(r,e){r===void 0&&(r=!0);const t=this,{params:i}=t;i.cssMode||(i.autoHeight&&t.updateAutoHeight(),Ms({swiper:t,runCallbacks:r,direction:e,step:"Start"}))}function Ya(r,e){r===void 0&&(r=!0);const t=this,{params:i}=t;t.animating=!1,!i.cssMode&&(t.setTransition(0),Ms({swiper:t,runCallbacks:r,direction:e,step:"End"}))}var ja={setTransition:Wa,transitionStart:za,transitionEnd:Ya};function Xa(r,e,t,i,s){r===void 0&&(r=0),t===void 0&&(t=!0),typeof r=="string"&&(r=parseInt(r,10));const n=this;let a=r;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:d,previousIndex:c,activeIndex:u,rtlTranslate:f,wrapperEl:h,enabled:p}=n;if(!p&&!i&&!s||n.destroyed||n.animating&&o.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=n.params.speed);const g=Math.min(n.params.slidesPerGroupSkip,a);let m=g+Math.floor((a-g)/n.params.slidesPerGroup);m>=l.length&&(m=l.length-1);const v=-l[m];if(o.normalizeSlideIndex)for(let S=0;S<d.length;S+=1){const A=-Math.floor(v*100),w=Math.floor(d[S]*100),C=Math.floor(d[S+1]*100);typeof d[S+1]<"u"?A>=w&&A<C-(C-w)/2?a=S:A>=w&&A<C&&(a=S+1):A>=w&&(a=S)}if(n.initialized&&a!==u&&(!n.allowSlideNext&&(f?v>n.translate&&v>n.minTranslate():v<n.translate&&v<n.minTranslate())||!n.allowSlidePrev&