@larva.io/webcomponents
Version:
Fentrica SmartUnits WebComponents package
4 lines • 96.5 kB
JavaScript
/*!
* (C) Fentrica http://fentrica.com - Seee LICENSE.md
*/
import{r as e,c as t,h as i,H as n,g as s}from"./p-C4h1muVj.js";import{h as r}from"./p-UBbI9qgW.js";import{g as o,c as l}from"./p-B02IfvGX.js";import{c as a}from"./p-SrJBB-s_.js";import{a as f}from"./p-ue25B_tw.js";import{C as c,D as u}from"./p-Dc5Vc_1A.js";import"./p-B8THl2h4.js";import"./p-C_HhfJYh.js";import"./p-BCe7Jf0F.js";import"./p-C56buD75.js";import"./p-CT2-YPhM.js";import"./p-t09QJ_DI.js";import"./p-C7eoH3L1.js";import"./p-BhmlBuJX.js";function d(e){return e!==null&&typeof e==="object"&&"constructor"in e&&e.constructor===Object}function p(e={},t={}){const i=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>i.indexOf(e)<0)).forEach((i=>{if(typeof e[i]==="undefined")e[i]=t[i];else if(d(t[i])&&d(e[i])&&Object.keys(t[i]).length>0){p(e[i],t[i])}}))}const h={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 m(){const e=typeof document!=="undefined"?document:{};p(e,h);return e}const v={document:h,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function e(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){if(typeof setTimeout==="undefined"){e();return null}return setTimeout(e,0)},cancelAnimationFrame(e){if(typeof setTimeout==="undefined"){return}clearTimeout(e)}};function g(){const e=typeof window!=="undefined"?window:{};p(e,v);return e}function b(e=""){return e.trim().split(" ").filter((e=>!!e.trim()))}function w(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}function y(e,t=0){return setTimeout(e,t)}function x(){return Date.now()}function M(e){const t=g();let i;if(t.getComputedStyle){i=t.getComputedStyle(e,null)}if(!i&&e.currentStyle){i=e.currentStyle}if(!i){i=e.style}return i}function S(e,t="x"){const i=g();let n;let s;let r;const o=M(e);if(i.WebKitCSSMatrix){s=o.transform||o.webkitTransform;if(s.split(",").length>6){s=s.split(", ").map((e=>e.replace(",","."))).join(", ")}r=new i.WebKitCSSMatrix(s==="none"?"":s)}else{r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");n=r.toString().split(",")}if(t==="x"){if(i.WebKitCSSMatrix)s=r.m41;else if(n.length===16)s=parseFloat(n[12]);else s=parseFloat(n[4])}if(t==="y"){if(i.WebKitCSSMatrix)s=r.m42;else if(n.length===16)s=parseFloat(n[13]);else s=parseFloat(n[5])}return s||0}function k(e){return typeof e==="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function C(e){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return e instanceof HTMLElement}return e&&(e.nodeType===1||e.nodeType===11)}function $(...e){const t=Object(e[0]);const i=["__proto__","constructor","prototype"];for(let n=1;n<e.length;n+=1){const s=e[n];if(s!==undefined&&s!==null&&!C(s)){const e=Object.keys(Object(s)).filter((e=>i.indexOf(e)<0));for(let i=0,n=e.length;i<n;i+=1){const n=e[i];const r=Object.getOwnPropertyDescriptor(s,n);if(r!==undefined&&r.enumerable){if(k(t[n])&&k(s[n])){if(s[n].__swiper__){t[n]=s[n]}else{$(t[n],s[n])}}else if(!k(t[n])&&k(s[n])){t[n]={};if(s[n].__swiper__){t[n]=s[n]}else{$(t[n],s[n])}}else{t[n]=s[n]}}}}}return t}function T(e,t,i){e.style.setProperty(t,i)}function E({swiper:e,targetPosition:t,side:i}){const n=g();const s=-e.translate;let r=null;let o;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none";n.cancelAnimationFrame(e.cssModeFrameID);const a=t>s?"next":"prev";const f=(e,t)=>a==="next"&&e>=t||a==="prev"&&e<=t;const c=()=>{o=(new Date).getTime();if(r===null){r=o}const a=Math.max(Math.min((o-r)/l,1),0);const u=.5-Math.cos(a*Math.PI)/2;let d=s+u*(t-s);if(f(d,t)){d=t}e.wrapperEl.scrollTo({[i]:d});if(f(d,t)){e.wrapperEl.style.overflow="hidden";e.wrapperEl.style.scrollSnapType="";setTimeout((()=>{e.wrapperEl.style.overflow="";e.wrapperEl.scrollTo({[i]:d})}));n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(c)};c()}function I(e,t=""){const i=g();const n=[...e.children];if(i.HTMLSlotElement&&e instanceof HTMLSlotElement){n.push(...e.assignedElements())}if(!t){return n}return n.filter((e=>e.matches(t)))}function O(e,t){const i=[t];while(i.length>0){const t=i.shift();if(e===t){return true}i.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}function j(e,t){const i=g();let n=t.contains(e);if(!n&&i.HTMLSlotElement&&t instanceof HTMLSlotElement){const i=[...t.assignedElements()];n=i.includes(e);if(!n){n=O(e,t)}}return n}function z(e){try{console.warn(e);return}catch(e){}}function A(e,t=[]){const i=document.createElement(e);i.classList.add(...Array.isArray(t)?t:b(t));return i}function P(e,t){const i=[];while(e.previousElementSibling){const n=e.previousElementSibling;if(t){if(n.matches(t))i.push(n)}else i.push(n);e=n}return i}function L(e,t){const i=[];while(e.nextElementSibling){const n=e.nextElementSibling;if(t){if(n.matches(t))i.push(n)}else i.push(n);e=n}return i}function F(e,t){const i=g();return i.getComputedStyle(e,null).getPropertyValue(t)}function B(e){let t=e;let i;if(t){i=0;while((t=t.previousSibling)!==null){if(t.nodeType===1)i+=1}return i}return undefined}function G(e,t){const i=[];let n=e.parentElement;while(n){if(t){if(n.matches(t))i.push(n)}else{i.push(n)}n=n.parentElement}return i}function N(e,t,i){const n=g();{return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}}function _(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}function D(e,t=""){if(typeof trustedTypes!=="undefined"){e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t)}else{e.innerHTML=t}}let R;function W(){const e=g();const t=m();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function q(){if(!R){R=W()}return R}let H;function V({userAgent:e}={}){const t=q();const i=g();const n=i.navigator.platform;const s=e||i.navigator.userAgent;const r={ios:false,android:false};const o=i.screen.width;const l=i.screen.height;const a=s.match(/(Android);?[\s\/]+([\d.]+)?/);let f=s.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const c=s.match(/(iPod)(.*OS\s([\d_]+))?/);const u=!f&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/);const d=n==="Win32";let p=n==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!f&&p&&t.touch&&h.indexOf(`${o}x${l}`)>=0){f=s.match(/(Version)\/([\d.]+)/);if(!f)f=[0,1,"13_0_0"];p=false}if(a&&!d){r.os="android";r.android=true}if(f||u||c){r.os="ios";r.ios=true}return r}function Y(e={}){if(!H){H=V(e)}return H}let X;function U(){const e=g();const t=Y();let i=false;function n(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(n()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,n]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));i=e<16||e===16&&n<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent);const r=n();const o=r||s&&t.ios;return{isSafari:i||r,needPerspectiveFix:i,need3dFix:o,isWebView:s}}function J(){if(!X){X=U()}return X}function K({swiper:e,on:t,emit:i}){const n=g();let s=null;let r=null;const o=()=>{if(!e||e.destroyed||!e.initialized)return;i("beforeResize");i("resize")};const l=()=>{if(!e||e.destroyed||!e.initialized)return;s=new ResizeObserver((t=>{r=n.requestAnimationFrame((()=>{const{width:i,height:n}=e;let s=i;let r=n;t.forEach((({contentBoxSize:t,contentRect:i,target:n})=>{if(n&&n!==e.el)return;s=i?i.width:(t[0]||t).inlineSize;r=i?i.height:(t[0]||t).blockSize}));if(s!==i||r!==n){o()}}))}));s.observe(e.el)};const a=()=>{if(r){n.cancelAnimationFrame(r)}if(s&&s.unobserve&&e.el){s.unobserve(e.el);s=null}};const f=()=>{if(!e||e.destroyed||!e.initialized)return;i("orientationchange")};t("init",(()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver!=="undefined"){l();return}n.addEventListener("resize",o);n.addEventListener("orientationchange",f)}));t("destroy",(()=>{a();n.removeEventListener("resize",o);n.removeEventListener("orientationchange",f)}))}function Q({swiper:e,extendParams:t,on:i,emit:n}){const s=[];const r=g();const o=(t,i={})=>{const o=r.MutationObserver||r.WebkitMutationObserver;const l=new o((t=>{if(e.__preventObserver__)return;if(t.length===1){n("observerUpdate",t[0]);return}const i=function e(){n("observerUpdate",t[0])};if(r.requestAnimationFrame){r.requestAnimationFrame(i)}else{r.setTimeout(i,0)}}));l.observe(t,{attributes:typeof i.attributes==="undefined"?true:i.attributes,childList:e.isElement||(typeof i.childList==="undefined"?true:i).childList,characterData:typeof i.characterData==="undefined"?true:i.characterData});s.push(l)};const l=()=>{if(!e.params.observer)return;if(e.params.observeParents){const t=G(e.hostEl);for(let e=0;e<t.length;e+=1){o(t[e])}}o(e.hostEl,{childList:e.params.observeSlideChildren});o(e.wrapperEl,{attributes:false})};const a=()=>{s.forEach((e=>{e.disconnect()}));s.splice(0,s.length)};t({observer:false,observeParents:false,observeSlideChildren:false});i("init",l);i("destroy",a)}var Z={on(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if(typeof t!=="function")return n;const s=i?"unshift":"push";e.split(" ").forEach((e=>{if(!n.eventsListeners[e])n.eventsListeners[e]=[];n.eventsListeners[e][s](t)}));return n},once(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if(typeof t!=="function")return n;function s(...i){n.off(e,s);if(s.__emitterProxy){delete s.__emitterProxy}t.apply(n,i)}s.__emitterProxy=t;return n.on(e,s,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(typeof e!=="function")return i;const n=t?"unshift":"push";if(i.eventsAnyListeners.indexOf(e)<0){i.eventsAnyListeners[n](e)}return i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);if(i>=0){t.eventsAnyListeners.splice(i,1)}return t},off(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;e.split(" ").forEach((e=>{if(typeof t==="undefined"){i.eventsListeners[e]=[]}else if(i.eventsListeners[e]){i.eventsListeners[e].forEach(((n,s)=>{if(n===t||n.__emitterProxy&&n.__emitterProxy===t){i.eventsListeners[e].splice(s,1)}}))}}));return i},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let i;let n;let s;if(typeof e[0]==="string"||Array.isArray(e[0])){i=e[0];n=e.slice(1,e.length);s=t}else{i=e[0].events;n=e[0].data;s=e[0].context||t}n.unshift(s);const r=Array.isArray(i)?i:i.split(" ");r.forEach((e=>{if(t.eventsAnyListeners&&t.eventsAnyListeners.length){t.eventsAnyListeners.forEach((t=>{t.apply(s,[e,...n])}))}if(t.eventsListeners&&t.eventsListeners[e]){t.eventsListeners[e].forEach((e=>{e.apply(s,n)}))}}));return t}};function ee(){const e=this;let t;let i;const n=e.el;if(typeof e.params.width!=="undefined"&&e.params.width!==null){t=e.params.width}else{t=n.clientWidth}if(typeof e.params.height!=="undefined"&&e.params.height!==null){i=e.params.height}else{i=n.clientHeight}if(t===0&&e.isHorizontal()||i===0&&e.isVertical()){return}t=t-parseInt(F(n,"padding-left")||0,10)-parseInt(F(n,"padding-right")||0,10);i=i-parseInt(F(n,"padding-top")||0,10)-parseInt(F(n,"padding-bottom")||0,10);if(Number.isNaN(t))t=0;if(Number.isNaN(i))i=0;Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i})}function te(){const e=this;function t(t,i){return parseFloat(t.getPropertyValue(e.getDirectionLabel(i))||0)}const i=e.params;const{wrapperEl:n,slidesEl:s,rtlTranslate:r,wrongRTL:o}=e;const l=e.virtual&&i.virtual.enabled;const a=l?e.virtual.slides.length:e.slides.length;const f=I(s,`.${e.params.slideClass}, swiper-slide`);const c=l?e.virtual.slides.length:f.length;let u=[];const d=[];const p=[];let h=i.slidesOffsetBefore;if(typeof h==="function"){h=i.slidesOffsetBefore.call(e)}let m=i.slidesOffsetAfter;if(typeof m==="function"){m=i.slidesOffsetAfter.call(e)}const v=e.snapGrid.length;const g=e.slidesGrid.length;const b=e.size-h-m;let w=i.spaceBetween;let y=-h;let x=0;let M=0;if(typeof b==="undefined"){return}if(typeof w==="string"&&w.indexOf("%")>=0){w=parseFloat(w.replace("%",""))/100*b}else if(typeof w==="string"){w=parseFloat(w)}e.virtualSize=-w-h-m;f.forEach((e=>{if(r){e.style.marginLeft=""}else{e.style.marginRight=""}e.style.marginBottom="";e.style.marginTop=""}));if(i.centeredSlides&&i.cssMode){T(n,"--swiper-centered-offset-before","");T(n,"--swiper-centered-offset-after","")}const S=i.grid&&i.grid.rows>1&&e.grid;if(S){e.grid.initSlides(f)}else if(e.grid){e.grid.unsetSlides()}let k;const C=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter((e=>typeof i.breakpoints[e].slidesPerView!=="undefined")).length>0;for(let n=0;n<c;n+=1){k=0;const s=f[n];if(s){if(S){e.grid.updateSlide(n,s,f)}if(F(s,"display")==="none")continue}if(l&&i.slidesPerView==="auto"){if(i.virtual.slidesPerViewAutoSlideSize){k=i.virtual.slidesPerViewAutoSlideSize}if(k&&s){if(i.roundLengths)k=Math.floor(k);s.style[e.getDirectionLabel("width")]=`${k}px`}}else if(i.slidesPerView==="auto"){if(C){s.style[e.getDirectionLabel("width")]=``}const n=getComputedStyle(s);const r=s.style.transform;const o=s.style.webkitTransform;if(r){s.style.transform="none"}if(o){s.style.webkitTransform="none"}if(i.roundLengths){k=e.isHorizontal()?N(s,"width"):N(s,"height")}else{const e=t(n,"width");const i=t(n,"padding-left");const r=t(n,"padding-right");const o=t(n,"margin-left");const l=t(n,"margin-right");const a=n.getPropertyValue("box-sizing");if(a&&a==="border-box"){k=e+o+l}else{const{clientWidth:t,offsetWidth:n}=s;k=e+i+r+o+l+(n-t)}}if(r){s.style.transform=r}if(o){s.style.webkitTransform=o}if(i.roundLengths)k=Math.floor(k)}else{k=(b-(i.slidesPerView-1)*w)/i.slidesPerView;if(i.roundLengths)k=Math.floor(k);if(s){s.style[e.getDirectionLabel("width")]=`${k}px`}}if(s){s.swiperSlideSize=k}p.push(k);if(i.centeredSlides){y=y+k/2+x/2+w;if(x===0&&n!==0)y=y-b/2-w;if(n===0)y=y-b/2-w;if(Math.abs(y)<1/1e3)y=0;if(i.roundLengths)y=Math.floor(y);if(M%i.slidesPerGroup===0)u.push(y);d.push(y)}else{if(i.roundLengths)y=Math.floor(y);if((M-Math.min(e.params.slidesPerGroupSkip,M))%e.params.slidesPerGroup===0)u.push(y);d.push(y);y=y+k+w}e.virtualSize+=k+w;x=k;M+=1}e.virtualSize=Math.max(e.virtualSize,b)+m;if(r&&o&&(i.effect==="slide"||i.effect==="coverflow")){n.style.width=`${e.virtualSize+w}px`}if(i.setWrapperSize){n.style[e.getDirectionLabel("width")]=`${e.virtualSize+w}px`}if(S){e.grid.updateWrapperSize(k,u)}if(!i.centeredSlides){const t=[];for(let n=0;n<u.length;n+=1){let s=u[n];if(i.roundLengths)s=Math.floor(s);if(u[n]<=e.virtualSize-b){t.push(s)}}u=t;if(Math.floor(e.virtualSize-b)-Math.floor(u[u.length-1])>1){u.push(e.virtualSize-b)}}if(l&&i.loop){const t=p[0]+w;if(i.slidesPerGroup>1){const n=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup);const s=t*i.slidesPerGroup;for(let e=0;e<n;e+=1){u.push(u[u.length-1]+s)}}for(let n=0;n<e.virtual.slidesBefore+e.virtual.slidesAfter;n+=1){if(i.slidesPerGroup===1){u.push(u[u.length-1]+t)}d.push(d[d.length-1]+t);e.virtualSize+=t}}if(u.length===0)u=[0];if(w!==0){const t=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");f.filter(((e,t)=>{if(!i.cssMode||i.loop)return true;if(t===f.length-1){return false}return true})).forEach((e=>{e.style[t]=`${w}px`}))}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;p.forEach((t=>{e+=t+(w||0)}));e-=w;const t=e>b?e-b:0;u=u.map((e=>{if(e<=0)return-h;if(e>t)return t+m;return e}))}if(i.centerInsufficientSlides){let e=0;p.forEach((t=>{e+=t+(w||0)}));e-=w;const t=(h||0)+(m||0);if(e+t<b){const i=(b-e-t)/2;u.forEach(((e,t)=>{u[t]=e-i}));d.forEach(((e,t)=>{d[t]=e+i}))}}Object.assign(e,{slides:f,snapGrid:u,slidesGrid:d,slidesSizesGrid:p});if(i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){T(n,"--swiper-centered-offset-before",`${-u[0]}px`);T(n,"--swiper-centered-offset-after",`${e.size/2-p[p.length-1]/2}px`);const t=-e.snapGrid[0];const i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t));e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(c!==a){e.emit("slidesLengthChange")}if(u.length!==v){if(e.params.watchOverflow)e.checkOverflow();e.emit("snapGridLengthChange")}if(d.length!==g){e.emit("slidesGridLengthChange")}if(i.watchSlidesProgress){e.updateSlidesOffset()}e.emit("slidesUpdated");if(!l&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const t=`${i.containerModifierClass}backface-hidden`;const n=e.el.classList.contains(t);if(c<=i.maxBackfaceHiddenSlides){if(!n)e.el.classList.add(t)}else if(n){e.el.classList.remove(t)}}}function ie(e){const t=this;const i=[];const n=t.virtual&&t.params.virtual.enabled;let s=0;let r;if(typeof e==="number"){t.setTransition(e)}else if(e===true){t.setTransition(t.params.speed)}const o=e=>{if(n){return t.slides[t.getSlideIndexByData(e)]}return t.slides[e]};if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1){if(t.params.centeredSlides){(t.visibleSlides||[]).forEach((e=>{i.push(e)}))}else{for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!n)break;i.push(o(e))}}}else{i.push(o(t.activeIndex))}for(r=0;r<i.length;r+=1){if(typeof i[r]!=="undefined"){const e=i[r].offsetHeight;s=e>s?e:s}}if(s||s===0)t.wrapperEl.style.height=`${s}px`}function ne(){const e=this;const t=e.slides;const i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1){t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-i-e.cssOverflowAdjustment()}}const se=(e,t,i)=>{if(t&&!e.classList.contains(i)){e.classList.add(i)}else if(!t&&e.classList.contains(i)){e.classList.remove(i)}};function re(e=this&&this.translate||0){const t=this;const i=t.params;const{slides:n,rtlTranslate:s,snapGrid:r}=t;if(n.length===0)return;if(typeof n[0].swiperSlideOffset==="undefined")t.updateSlidesOffset();let o=-e;if(s)o=e;t.visibleSlidesIndexes=[];t.visibleSlides=[];let l=i.spaceBetween;if(typeof l==="string"&&l.indexOf("%")>=0){l=parseFloat(l.replace("%",""))/100*t.size}else if(typeof l==="string"){l=parseFloat(l)}for(let e=0;e<n.length;e+=1){const a=n[e];let f=a.swiperSlideOffset;if(i.cssMode&&i.centeredSlides){f-=n[0].swiperSlideOffset}const c=(o+(i.centeredSlides?t.minTranslate():0)-f)/(a.swiperSlideSize+l);const u=(o-r[0]+(i.centeredSlides?t.minTranslate():0)-f)/(a.swiperSlideSize+l);const d=-(o-f);const p=d+t.slidesSizesGrid[e];const h=d>=0&&d<=t.size-t.slidesSizesGrid[e];const m=d>=0&&d<t.size-1||p>1&&p<=t.size||d<=0&&p>=t.size;if(m){t.visibleSlides.push(a);t.visibleSlidesIndexes.push(e)}se(a,m,i.slideVisibleClass);se(a,h,i.slideFullyVisibleClass);a.progress=s?-c:c;a.originalProgress=s?-u:u}}function oe(e){const t=this;if(typeof e==="undefined"){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params;const n=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:r,isEnd:o,progressLoop:l}=t;const a=r;const f=o;if(n===0){s=0;r=true;o=true}else{s=(e-t.minTranslate())/n;const i=Math.abs(e-t.minTranslate())<1;const l=Math.abs(e-t.maxTranslate())<1;r=i||s<=0;o=l||s>=1;if(i)s=0;if(l)s=1}if(i.loop){const i=t.getSlideIndexByData(0);const n=t.getSlideIndexByData(t.slides.length-1);const s=t.slidesGrid[i];const r=t.slidesGrid[n];const o=t.slidesGrid[t.slidesGrid.length-1];const a=Math.abs(e);if(a>=s){l=(a-s)/o}else{l=(a+o-r)/o}if(l>1)l-=1}Object.assign(t,{progress:s,progressLoop:l,isBeginning:r,isEnd:o});if(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)t.updateSlidesProgress(e);if(r&&!a){t.emit("reachBeginning toEdge")}if(o&&!f){t.emit("reachEnd toEdge")}if(a&&!r||f&&!o){t.emit("fromEdge")}t.emit("progress",s)}const le=(e,t,i)=>{if(t&&!e.classList.contains(i)){e.classList.add(i)}else if(!t&&e.classList.contains(i)){e.classList.remove(i)}};function ae(){const e=this;const{slides:t,params:i,slidesEl:n,activeIndex:s}=e;const r=e.virtual&&i.virtual.enabled;const o=e.grid&&i.grid&&i.grid.rows>1;const l=e=>I(n,`.${i.slideClass}${e}, swiper-slide${e}`)[0];let a;let f;let c;if(r){if(i.loop){let t=s-e.virtual.slidesBefore;if(t<0)t=e.virtual.slides.length+t;if(t>=e.virtual.slides.length)t-=e.virtual.slides.length;a=l(`[data-swiper-slide-index="${t}"]`)}else{a=l(`[data-swiper-slide-index="${s}"]`)}}else{if(o){a=t.find((e=>e.column===s));c=t.find((e=>e.column===s+1));f=t.find((e=>e.column===s-1))}else{a=t[s]}}if(a){if(!o){c=L(a,`.${i.slideClass}, swiper-slide`)[0];if(i.loop&&!c){c=t[0]}f=P(a,`.${i.slideClass}, swiper-slide`)[0];if(i.loop&&!f===0){f=t[t.length-1]}}}t.forEach((e=>{le(e,e===a,i.slideActiveClass);le(e,e===c,i.slideNextClass);le(e,e===f,i.slidePrevClass)}));e.emitSlidesClasses()}const fe=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=()=>e.isElement?`swiper-slide`:`.${e.params.slideClass}`;const n=t.closest(i());if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);if(!t&&e.isElement){if(n.shadowRoot){t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`)}else{requestAnimationFrame((()=>{if(n.shadowRoot){t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);if(t)t.remove()}}))}}if(t)t.remove()}};const ce=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');if(i)i.removeAttribute("loading")};const ue=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const n=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView);const s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=s;const r=[i-t];r.push(...Array.from({length:t}).map(((e,t)=>i+n+t)));e.slides.forEach(((t,i)=>{if(r.includes(t.column))ce(e,i)}));return}const r=s+n-1;if(e.params.rewind||e.params.loop){for(let n=s-t;n<=r+t;n+=1){const t=(n%i+i)%i;if(t<s||t>r)ce(e,t)}}else{for(let n=Math.max(s-t,0);n<=Math.min(r+t,i-1);n+=1){if(n!==s&&(n>r||n<s)){ce(e,n)}}}};function de(e){const{slidesGrid:t,params:i}=e;const n=e.rtlTranslate?e.translate:-e.translate;let s;for(let e=0;e<t.length;e+=1){if(typeof t[e+1]!=="undefined"){if(n>=t[e]&&n<t[e+1]-(t[e+1]-t[e])/2){s=e}else if(n>=t[e]&&n<t[e+1]){s=e+1}}else if(n>=t[e]){s=e}}if(i.normalizeSlideIndex){if(s<0||typeof s==="undefined")s=0}return s}function pe(e){const t=this;const i=t.rtlTranslate?t.translate:-t.translate;const{snapGrid:n,params:s,activeIndex:r,realIndex:o,snapIndex:l}=t;let a=e;let f;const c=e=>{let i=e-t.virtual.slidesBefore;if(i<0){i=t.virtual.slides.length+i}if(i>=t.virtual.slides.length){i-=t.virtual.slides.length}return i};if(typeof a==="undefined"){a=de(t)}if(n.indexOf(i)>=0){f=n.indexOf(i)}else{const e=Math.min(s.slidesPerGroupSkip,a);f=e+Math.floor((a-e)/s.slidesPerGroup)}if(f>=n.length)f=n.length-1;if(a===r&&!t.params.loop){if(f!==l){t.snapIndex=f;t.emit("snapIndexChange")}return}if(a===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(a);return}const u=t.grid&&s.grid&&s.grid.rows>1;let d;if(t.virtual&&s.virtual.enabled&&s.loop){d=c(a)}else if(u){const e=t.slides.find((e=>e.column===a));let i=parseInt(e.getAttribute("data-swiper-slide-index"),10);if(Number.isNaN(i)){i=Math.max(t.slides.indexOf(e),0)}d=Math.floor(i/s.grid.rows)}else if(t.slides[a]){const e=t.slides[a].getAttribute("data-swiper-slide-index");if(e){d=parseInt(e,10)}else{d=a}}else{d=a}Object.assign(t,{previousSnapIndex:l,snapIndex:f,previousRealIndex:o,realIndex:d,previousIndex:r,activeIndex:a});if(t.initialized){ue(t)}t.emit("activeIndexChange");t.emit("snapIndexChange");if(t.initialized||t.params.runCallbacksOnInit){if(o!==d){t.emit("realIndexChange")}t.emit("slideChange")}}function he(e,t){const i=this;const n=i.params;let s=e.closest(`.${n.slideClass}, swiper-slide`);if(!s&&i.isElement&&t&&t.length>1&&t.includes(e)){[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{if(!s&&e.matches&&e.matches(`.${n.slideClass}, swiper-slide`)){s=e}}))}let r=false;let o;if(s){for(let e=0;e<i.slides.length;e+=1){if(i.slides[e]===s){r=true;o=e;break}}}if(s&&r){i.clickedSlide=s;if(i.virtual&&i.params.virtual.enabled){i.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10)}else{i.clickedIndex=o}}else{i.clickedSlide=undefined;i.clickedIndex=undefined;return}if(n.slideToClickedSlide&&i.clickedIndex!==undefined&&i.clickedIndex!==i.activeIndex){i.slideToClickedSlide()}}var me={updateSize:ee,updateSlides:te,updateAutoHeight:ie,updateSlidesOffset:ne,updateSlidesProgress:re,updateProgress:oe,updateSlidesClasses:ae,updateActiveIndex:pe,updateClickedSlide:he};function ve(e=(this.isHorizontal()?"x":"y")){const t=this;const{params:i,rtlTranslate:n,translate:s,wrapperEl:r}=t;if(i.virtualTranslate){return n?-s:s}if(i.cssMode){return s}let o=S(r,e);o+=t.cssOverflowAdjustment();if(n)o=-o;return o||0}function ge(e,t){const i=this;const{rtlTranslate:n,params:s,wrapperEl:r,progress:o}=i;let l=0;let a=0;const f=0;if(i.isHorizontal()){l=n?-e:e}else{a=e}if(s.roundLengths){l=Math.floor(l);a=Math.floor(a)}i.previousTranslate=i.translate;i.translate=i.isHorizontal()?l:a;if(s.cssMode){r[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-a}else if(!s.virtualTranslate){if(i.isHorizontal()){l-=i.cssOverflowAdjustment()}else{a-=i.cssOverflowAdjustment()}r.style.transform=`translate3d(${l}px, ${a}px, ${f}px)`}let c;const u=i.maxTranslate()-i.minTranslate();if(u===0){c=0}else{c=(e-i.minTranslate())/u}if(c!==o){i.updateProgress(e)}i.emit("setTranslate",i.translate,t)}function be(){return-this.snapGrid[0]}function we(){return-this.snapGrid[this.snapGrid.length-1]}function ye(e=0,t=this.params.speed,i=true,n=true,s){const r=this;const{params:o,wrapperEl:l}=r;if(r.animating&&o.preventInteractionOnTransition){return false}const a=r.minTranslate();const f=r.maxTranslate();let c;if(n&&e>a)c=a;else if(n&&e<f)c=f;else c=e;r.updateProgress(c);if(o.cssMode){const e=r.isHorizontal();if(t===0){l[e?"scrollLeft":"scrollTop"]=-c}else{if(!r.support.smoothScroll){E({swiper:r,targetPosition:-c,side:e?"left":"top"});return true}l.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return true}if(t===0){r.setTransition(0);r.setTranslate(c);if(i){r.emit("beforeTransitionStart",t,s);r.emit("transitionEnd")}}else{r.setTransition(t);r.setTranslate(c);if(i){r.emit("beforeTransitionStart",t,s);r.emit("transitionStart")}if(!r.animating){r.animating=true;if(!r.onTranslateToWrapperTransitionEnd){r.onTranslateToWrapperTransitionEnd=function e(t){if(!r||r.destroyed)return;if(t.target!==this)return;r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd);r.onTranslateToWrapperTransitionEnd=null;delete r.onTranslateToWrapperTransitionEnd;r.animating=false;if(i){r.emit("transitionEnd")}}}r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd)}}return true}var xe={getTranslate:ve,setTranslate:ge,minTranslate:be,maxTranslate:we,translateTo:ye};function Me(e,t){const i=this;if(!i.params.cssMode){i.wrapperEl.style.transitionDuration=`${e}ms`;i.wrapperEl.style.transitionDelay=e===0?`0ms`:""}i.emit("setTransition",e,t)}function Se({swiper:e,runCallbacks:t,direction:i,step:n}){const{activeIndex:s,previousIndex:r}=e;let o=i;if(!o){if(s>r)o="next";else if(s<r)o="prev";else o="reset"}e.emit(`transition${n}`);if(t&&o==="reset"){e.emit(`slideResetTransition${n}`)}else if(t&&s!==r){e.emit(`slideChangeTransition${n}`);if(o==="next"){e.emit(`slideNextTransition${n}`)}else{e.emit(`slidePrevTransition${n}`)}}}function ke(e=true,t){const i=this;const{params:n}=i;if(n.cssMode)return;if(n.autoHeight){i.updateAutoHeight()}Se({swiper:i,runCallbacks:e,direction:t,step:"Start"})}function Ce(e=true,t){const i=this;const{params:n}=i;i.animating=false;if(n.cssMode)return;i.setTransition(0);Se({swiper:i,runCallbacks:e,direction:t,step:"End"})}var $e={setTransition:Me,transitionStart:ke,transitionEnd:Ce};function Te(e=0,t,i=true,n,s){if(typeof e==="string"){e=parseInt(e,10)}const r=this;let o=e;if(o<0)o=0;const{params:l,snapGrid:a,slidesGrid:f,previousIndex:c,activeIndex:u,rtlTranslate:d,wrapperEl:p,enabled:h}=r;if(!h&&!n&&!s||r.destroyed||r.animating&&l.preventInteractionOnTransition){return false}if(typeof t==="undefined"){t=r.params.speed}const m=Math.min(r.params.slidesPerGroupSkip,o);let v=m+Math.floor((o-m)/r.params.slidesPerGroup);if(v>=a.length)v=a.length-1;const g=-a[v];if(l.normalizeSlideIndex){for(let e=0;e<f.length;e+=1){const t=-Math.floor(g*100);const i=Math.floor(f[e]*100);const n=Math.floor(f[e+1]*100);if(typeof f[e+1]!=="undefined"){if(t>=i&&t<n-(n-i)/2){o=e}else if(t>=i&&t<n){o=e+1}}else if(t>=i){o=e}}}if(r.initialized&&o!==u){if(!r.allowSlideNext&&(d?g>r.translate&&g>r.minTranslate():g<r.translate&&g<r.minTranslate())){return false}if(!r.allowSlidePrev&&g>r.translate&&g>r.maxTranslate()){if((u||0)!==o){return false}}}if(o!==(c||0)&&i){r.emit("beforeSlideChangeStart")}r.updateProgress(g);let b;if(o>u)b="next";else if(o<u)b="prev";else b="reset";const w=r.virtual&&r.params.virtual.enabled;const y=w&&s;if(!y&&(d&&-g===r.translate||!d&&g===r.translate)){r.updateActiveIndex(o);if(l.autoHeight){r.updateAutoHeight()}r.updateSlidesClasses();if(l.effect!=="slide"){r.setTranslate(g)}if(b!=="reset"){r.transitionStart(i,b);r.transitionEnd(i,b)}return false}if(l.cssMode){const e=r.isHorizontal();const i=d?g:-g;if(t===0){if(w){r.wrapperEl.style.scrollSnapType="none";r._immediateVirtual=true}if(w&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0){r._cssModeVirtualInitialSet=true;requestAnimationFrame((()=>{p[e?"scrollLeft":"scrollTop"]=i}))}else{p[e?"scrollLeft":"scrollTop"]=i}if(w){requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="";r._immediateVirtual=false}))}}else{if(!r.support.smoothScroll){E({swiper:r,targetPosition:i,side:e?"left":"top"});return true}p.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return true}const x=J();const M=x.isSafari;if(w&&!s&&M&&r.isElement){r.virtual.update(false,false,o)}r.setTransition(t);r.setTranslate(g);r.updateActiveIndex(o);r.updateSlidesClasses();r.emit("beforeTransitionStart",t,n);r.transitionStart(i,b);if(t===0){r.transitionEnd(i,b)}else if(!r.animating){r.animating=true;if(!r.onSlideToWrapperTransitionEnd){r.onSlideToWrapperTransitionEnd=function e(t){if(!r||r.destroyed)return;if(t.target!==this)return;r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd);r.onSlideToWrapperTransitionEnd=null;delete r.onSlideToWrapperTransitionEnd;r.transitionEnd(i,b)}}r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)}return true}function Ee(e=0,t,i=true,n){if(typeof e==="string"){const t=parseInt(e,10);e=t}const s=this;if(s.destroyed)return;if(typeof t==="undefined"){t=s.params.speed}const r=s.grid&&s.params.grid&&s.params.grid.rows>1;let o=e;if(s.params.loop){if(s.virtual&&s.params.virtual.enabled){o=o+s.virtual.slidesBefore}else{let e;if(r){const t=o*s.params.grid.rows;e=s.slides.find((e=>e.getAttribute("data-swiper-slide-index")*1===t)).column}else{e=s.getSlideIndexByData(o)}const t=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length;const{centeredSlides:i,slidesOffsetBefore:l,slidesOffsetAfter:a}=s.params;const f=i||!!l||!!a;let c=s.params.slidesPerView;if(c==="auto"){c=s.slidesPerViewDynamic()}else{c=Math.ceil(parseFloat(s.params.slidesPerView,10));if(f&&c%2===0){c=c+1}}let u=t-e<c;if(f){u=u||e<Math.ceil(c/2)}if(n&&f&&s.params.slidesPerView!=="auto"&&!r){u=false}if(u){const i=f?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:i,slideTo:true,activeSlideIndex:i==="next"?e+1:e-t+1,slideRealIndex:i==="next"?s.realIndex:undefined})}if(r){const e=o*s.params.grid.rows;o=s.slides.find((t=>t.getAttribute("data-swiper-slide-index")*1===e)).column}else{o=s.getSlideIndexByData(o)}}}requestAnimationFrame((()=>{s.slideTo(o,t,i,n)}));return s}function Ie(e,t=true,i){const n=this;const{enabled:s,params:r,animating:o}=n;if(!s||n.destroyed)return n;if(typeof e==="undefined"){e=n.params.speed}let l=r.slidesPerGroup;if(r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto){l=Math.max(n.slidesPerViewDynamic("current",true),1)}const a=n.activeIndex<r.slidesPerGroupSkip?1:l;const f=n.virtual&&r.virtual.enabled;if(r.loop){if(o&&!f&&r.loopPreventsSliding)return false;n.loopFix({direction:"next"});n._clientLeft=n.wrapperEl.clientLeft;if(n.activeIndex===n.slides.length-1&&r.cssMode){requestAnimationFrame((()=>{n.slideTo(n.activeIndex+a,e,t,i)}));return true}}if(r.rewind&&n.isEnd){return n.slideTo(0,e,t,i)}return n.slideTo(n.activeIndex+a,e,t,i)}function Oe(e,t=true,i){const n=this;const{params:s,snapGrid:r,slidesGrid:o,rtlTranslate:l,enabled:a,animating:f}=n;if(!a||n.destroyed)return n;if(typeof e==="undefined"){e=n.params.speed}const c=n.virtual&&s.virtual.enabled;if(s.loop){if(f&&!c&&s.loopPreventsSliding)return false;n.loopFix({direction:"prev"});n._clientLeft=n.wrapperEl.clientLeft}const u=l?n.translate:-n.translate;function d(e){if(e<0)return-Math.floor(Math.abs(e));return Math.floor(e)}const p=d(u);const h=r.map((e=>d(e)));const m=s.freeMode&&s.freeMode.enabled;let v=r[h.indexOf(p)-1];if(typeof v==="undefined"&&(s.cssMode||m)){let e;r.forEach(((t,i)=>{if(p>=t){e=i}}));if(typeof e!=="undefined"){v=m?r[e]:r[e>0?e-1:e]}}let g=0;if(typeof v!=="undefined"){g=o.indexOf(v);if(g<0)g=n.activeIndex-1;if(s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto){g=g-n.slidesPerViewDynamic("previous",true)+1;g=Math.max(g,0)}}if(s.rewind&&n.isBeginning){const s=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(s,e,t,i)}else if(s.loop&&n.activeIndex===0&&s.cssMode){requestAnimationFrame((()=>{n.slideTo(g,e,t,i)}));return true}return n.slideTo(g,e,t,i)}function je(e,t=true,i){const n=this;if(n.destroyed)return;if(typeof e==="undefined"){e=n.params.speed}return n.slideTo(n.activeIndex,e,t,i)}function ze(e,t=true,i,n=.5){const s=this;if(s.destroyed)return;if(typeof e==="undefined"){e=s.params.speed}let r=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,r);const l=o+Math.floor((r-o)/s.params.slidesPerGroup);const a=s.rtlTranslate?s.translate:-s.translate;if(a>=s.snapGrid[l]){const e=s.snapGrid[l];const t=s.snapGrid[l+1];if(a-e>(t-e)*n){r+=s.params.slidesPerGroup}}else{const e=s.snapGrid[l-1];const t=s.snapGrid[l];if(a-e<=(t-e)*n){r-=s.params.slidesPerGroup}}r=Math.max(r,0);r=Math.min(r,s.slidesGrid.length-1);return s.slideTo(r,e,t,i)}function Ae(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:i}=e;const n=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let s=e.getSlideIndexWhenGrid(e.clickedIndex);let r;const o=e.isElement?`swiper-slide`:`.${t.slideClass}`;const l=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10);if(t.centeredSlides){e.slideToLoop(r)}else if(s>(l?(e.slides.length-n)/2-(e.params.grid.rows-1):e.slides.length-n)){e.loopFix();s=e.getSlideIndex(I(i,`${o}[data-swiper-slide-index="${r}"]`)[0]);y((()=>{e.slideTo(s)}))}else{e.slideTo(s)}}else{e.slideTo(s)}}var Pe={slideTo:Te,slideToLoop:Ee,slideNext:Ie,slidePrev:Oe,slideReset:je,slideToClosest:ze,slideToClickedSlide:Ae};function Le(e,t){const i=this;const{params:n,slidesEl:s}=i;if(!n.loop||i.virtual&&i.params.virtual.enabled)return;const r=()=>{const e=I(s,`.${n.slideClass}, swiper-slide`);e.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))};const o=()=>{const e=I(s,`.${n.slideBlankClass}`);e.forEach((e=>{e.remove()}));if(e.length>0){i.recalcSlides();i.updateSlides()}};const l=i.grid&&n.grid&&n.grid.rows>1;if(n.loopAddBlankSlides&&(n.slidesPerGroup>1||l)){o()}const a=n.slidesPerGroup*(l?n.grid.rows:1);const f=i.slides.length%a!==0;const c=l&&i.slides.length%n.grid.rows!==0;const u=e=>{for(let t=0;t<e;t+=1){const e=i.isElement?A("swiper-slide",[n.slideBlankClass]):A("div",[n.slideClass,n.slideBlankClass]);i.slidesEl.append(e)}};if(f){if(n.loopAddBlankSlides){const e=a-i.slides.length%a;u(e);i.recalcSlides();i.updateSlides()}else{z("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")}r()}else if(c){if(n.loopAddBlankSlides){const e=n.grid.rows-i.slides.length%n.grid.rows;u(e);i.recalcSlides();i.updateSlides()}else{z("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")}r()}else{r()}const d=n.centeredSlides||!!n.slidesOffsetBefore||!!n.slidesOffsetAfter;i.loopFix({slideRealIndex:e,direction:d?undefined:"next",initial:t})}function Fe({slideRealIndex:e,slideTo:t=true,direction:i,setTranslate:n,activeSlideIndex:s,initial:r,byController:o,byMousewheel:l}={}){const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:f,allowSlidePrev:c,allowSlideNext:u,slidesEl:d,params:p}=a;const{centeredSlides:h,slidesOffsetBefore:m,slidesOffsetAfter:v,initialSlide:g}=p;const b=h||!!m||!!v;a.allowSlidePrev=true;a.allowSlideNext=true;if(a.virtual&&p.virtual.enabled){if(t){if(!b&&a.snapIndex===0){a.slideTo(a.virtual.slides.length,0,false,true)}else if(b&&a.snapIndex<p.slidesPerView){a.slideTo(a.virtual.slides.length+a.snapIndex,0,false,true)}else if(a.snapIndex===a.snapGrid.length-1){a.slideTo(a.virtual.slidesBefore,0,false,true)}}a.allowSlidePrev=c;a.allowSlideNext=u;a.emit("loopFix");return}let w=p.slidesPerView;if(w==="auto"){w=a.slidesPerViewDynamic()}else{w=Math.ceil(parseFloat(p.slidesPerView,10));if(b&&w%2===0){w=w+1}}const y=p.slidesPerGroupAuto?w:p.slidesPerGroup;let x=b?Math.max(y,Math.ceil(w/2)):y;if(x%y!==0){x+=y-x%y}x+=p.loopAdditionalSlides;a.loopedSlides=x;const M=a.grid&&p.grid&&p.grid.rows>1;if(f.length<w+x||a.params.effect==="cards"&&f.length<w+x*2){z("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters")}else if(M&&p.grid.fill==="row"){z("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`")}const S=[];const k=[];const C=M?Math.ceil(f.length/p.grid.rows):f.length;const $=r&&C-g<w&&!b;let T=$?g:a.activeIndex;if(typeof s==="undefined"){s=a.getSlideIndex(f.find((e=>e.classList.contains(p.slideActiveClass))))}else{T=s}const E=i==="next"||!i;const I=i==="prev"||!i;let O=0;let j=0;const A=M?f[s].column:s;const P=A+(b&&typeof n==="undefined"?-w/2+.5:0);if(P<x){O=Math.max(x-P,y);for(let e=0;e<x-P;e+=1){const t=e-Math.floor(e/C)*C;if(M){const e=C-t-1;for(let t=f.length-1;t>=0;t-=1){if(f[t].column===e)S.push(t)}}else{S.push(C-t-1)}}}else if(P+w>C-x){j=Math.max(P-(C-x*2),y);if($){j=Math.max(j,w-C+g+1)}for(let e=0;e<j;e+=1){const t=e-Math.floor(e/C)*C;if(M){f.forEach(((e,i)=>{if(e.column===t)k.push(i)}))}else{k.push(t)}}}a.__preventObserver__=true;requestAnimationFrame((()=>{a.__preventObserver__=false}));if(a.params.effect==="cards"&&f.length<w+x*2){if(k.includes(s)){k.splice(k.indexOf(s),1)}if(S.includes(s)){S.splice(S.indexOf(s),1)}}if(I){S.forEach((e=>{f[e].swiperLoopMoveDOM=true;d.prepend(f[e]);f[e].swiperLoopMoveDOM=false}))}if(E){k.forEach((e=>{f[e].swiperLoopMoveDOM=true;d.append(f[e]);f[e].swiperLoopMoveDOM=false}))}a.recalcSlides();if(p.slidesPerView==="auto"){a.updateSlides()}else if(M&&(S.length>0&&I||k.length>0&&E)){a.slides.forEach(((e,t)=>{a.grid.updateSlide(t,e,a.slides)}))}if(p.watchSlidesProgress){a.updateSlidesOffset()}if(t){if(S.length>0&&I){if(typeof e==="undefined"){const e=a.slidesGrid[T];const t=a.slidesGrid[T+O];const i=t-e;if(l){a.setTranslate(a.translate-i)}else{a.slideTo(T+Math.ceil(O),0,false,true);if(n){a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-i;a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-i}}}else{if(n){const e=M?S.length/p.grid.rows:S.length;a.slideTo(a.activeIndex+e,0,false,true);a.touchEventsData.currentTranslate=a.translate}}}else if(k.length>0&&E){if(typeof e==="undefined"){const e=a.slidesGrid[T];const t=a.slidesGrid[T-j];const i=t-e;if(l){a.setTranslate(a.translate-i)}else{a.slideTo(T-j,0,false,true);if(n){a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-i;a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-i}}}else{const e=M?k.length/p.grid.rows:k.length;a.slideTo(a.activeIndex-e,0,false,true)}}}a.allowSlidePrev=c;a.allowSlideNext=u;if(a.controller&&a.controller.control&&!o){const r={slideRealIndex:e,direction:i,setTranslate:n,activeSlideIndex:s,byController:true};if(Array.isArray(a.controller.control)){a.controller.control.forEach((e=>{if(!e.destroyed&&e.params.loop)e.loopFix({...r,slideTo:e.params.slidesPerView===p.slidesPerView?t:false})}))}else if(a.controller.control instanceof a.constructor&&a.controller.control.params.loop){a.controller.control.loopFix({...r,slideTo:a.controller.control.params.slidesPerView===p.slidesPerView?t:false})}}a.emit("loopFix")}function Be(){const e=this;const{params:t,slidesEl:i}=e;if(!t.loop||!i||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const n=[];e.slides.forEach((e=>{const t=typeof e.swiperSlideIndex==="undefined"?e.getAttribute("data-swiper-slide-index")*1:e.swiperSlideIndex;n[t]=e}));e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")}));n.forEach((e=>{i.append(e)}));e.recalcSlides();e.slideTo(e.realIndex,0)}var Ge={loopCreate:Le,loopFix:Fe,loopDestroy:Be};function Ne(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;if(t.isElement){t.__preventObserver__=true}i.style.cursor="move";i.style.cursor=e?"grabbing":"grab";if(t.isElement){requestAnimationFrame((()=>{t.__preventObserver__=false}))}}function _e(){const e=this;if(e.params.watchOverflow&&e.isLocked||e.params.cssMode){return}if(e.isElement){e.__preventObserver__=true}e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="";if(e.isElement){requestAnimationFrame((()=>{e.__preventObserver__=false}))}}var De={setGrabCursor:Ne,unsetGrabCursor:_e};function Re(e,t=this){function i(t){if(!t||t===m()||t===g())return null;if(t.assignedSlot)t=t.assignedSlot;const n=t.closest(e);if(!n&&!t.getRootNode){return null}return n||i(t.getRootNode().host)}return i(t)}function We(e,t,i){const n=g();const{params:s}=e;const r=s.edgeSwipeDetection;const o=s.edgeSwipeThreshold;if(r&&(i<=o||i>=n.innerWidth-o)){if(r==="prevent"){t.preventDefault();return true}return false}return true}function qe(e){const t=this;const i=m();let n=e;if(n.originalEvent)n=n.originalEvent;const s=t.touchEventsData;if(n.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==n.pointerId){return}s.pointerId=n.pointerId}else if(n.type==="touchstart"&&n.targetTouches.length===1){s.touchId=n.targetTouches[0].identifier}if(n.type==="touchstart"){We(t,n,n.targetTouches[0].pageX);return}const{params:r,touches:o,enabled:l}=t;if(!l)return;if(!r.simulateTouch&&n.pointerType==="mouse")return;if(t.animating&&r.preventInteractionOnTransition){return}if(!t.animating&&r.cssMode&&r.loop){t.loopFix()}let a=n.target;if(r.touchEventsTarget==="wrapper"){if(!j(a,t.wrapperEl))return}if("which"in n&&n.which===3)return;if("button"in n&&n.button>0)return;if(s.isTouched&&s.isMoved)return;const f=!!r.noSwipingClass&&r.noSwipingClass!=="";const c=n.composedPath?n.composedPath():n.path;if(f&&n.target&&n.target.shadowRoot&&c){a=c[0]}const u=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`;const d=!!(n.target&&n.target.shadowRoot);if(r.noSwiping&&(d?Re(u,a):a.closest(u))){t.allowClick=true;return}if(r.swipeHandler){if(!a.closest(r.swipeHandler))return}o.currentX=n.pageX;o.currentY=n.pageY;const p=o.currentX;const h=o.currentY;if(!We(t,n,p)){return}Object.assign(s,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});o.startX=p;o.startY=h;s.touchStartTime=x();t.allowClick=true;t.updateSize();t.swipeDirection=undefined;if(r.threshold>0)s.allowThresholdMove=false;let v=true;if(a.matches(s.focusableElements)){v=false;if(a.nodeName==="SELECT"){s.isTouched=false}}if(i.activeElement&&i.activeElement.matches(s.focusableElements)&&i.activeElement!==a&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!a.matches(s.focusableElements))){i.activeElement.blur()}const g=v&&t.allowTouchMove&&r.touchStartPreventDefault;if((r.touchStartForcePreventDefault||g)&&!a.isContentEditable){n.preventDefault()}if(r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode){t.freeMode.onTouchStart()}t.emit("touchStart",n)}function He(e){const t=m();const i=this;const n=i.touchEventsData;const{params:s,touches:r,rtlTranslate:o,enabled:l}=i;if(!l)return;if(!s.simulateTouch&&e.pointerType==="mouse")return;let a=e;if(a.originalEvent)a=a.originalEvent;if(a.type==="pointermove"){if(n.touchId!==null)return;const e=a.pointerId;if(e!==n.pointerId)return}let f;if(a.type==="touchmove"){f=[...a.changedTouches].find((e=>e.identifier===n.touchId));if(!f||f.identifier!==n.touchId)return}else{f=a}if(!n.isTouched){if(n.startMoving&&n.isScrolling){i.emit("touchMoveOpposite",a)}return}const c=f.pageX;const u=f.pageY;if(a.preventedByNestedSwiper){r.startX=c;r.startY=u;return}if(!i.allowTouchMove){if(!a.target.matches(n.focusableElements)){i.allowClick=false}if(n.isTouched){Object.assign(r,{startX:c,startY:u,currentX:c,currentY:u});n.touchStartTime=x()}return}if(s.touchReleaseOnEdges&&!s.loop){if(i.isVertical()){if(u<r.startY&&i.translate<=i.maxTranslate()||u>r.startY&&i.translate>=i.minTranslate()){n.isTouched=false;n.isMoved=false;return}}else if(o&&(c>r.startX&&-i.translate<=i.maxTranslate()||c<r.startX&&-i.translate>=i.minTranslate())){return}else if(!o&&(c<r.startX&&i.translate<=i.maxTranslate()||c>r.startX&&i.translate>=i.minTranslate())){return}}if(t.activeElement&&t.activeElement.matches(n.focusableElements)&&t.activeElement!==a.target&&a.pointerType!=="mouse"){t.activeElement.blur()}if(t.activeElement){if(a.target===t.activeElement&&a.target.matches(n.focusableElements)){n.isMoved=true;i.allowClick=false;return}}if(n.allowTouchCallbacks){i.emit("touchMove",a)}r.previousX=r.currentX;r.previousY=r.currentY;r.currentX=c;r.currentY=u;const d=r.currentX-r.startX;const p=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(d**2+p**2)<i.params.threshold)return;if(typeof n.isScrolling==="undefined"){let e;if(i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX){n.isScrolling=false}else{if(d*d+p*p>=25){e=Math.atan2(Math.abs(p),Math.abs(d))*180/Math.PI;n.isScrolling=i.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle}}}if(n.isScrolling){i.emit("touchMoveOpposite",a)}if(typeof n.startMoving==="undefined"){if(r.currentX!==r.startX||r.currentY!==r.startY){n.startMoving=true}}if(n.isScrolling||a.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=false;return}if(!n.startMoving){return}i.allowClick=false;if(!s.cssMode&&a.cancelable){a.preventDefault()}if(s.touchMoveStopPropagation&&!s.nested){a.stopPropagation()}let h=i.isHorizontal()?d:p;let v=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;if(s.oneWayMovement){h=Math.abs(h)*(o?1:-1);v=Math.abs(v)*(o?1:-1)}r.diff=h;h*=s.touchRatio;if(o){h=-h;v=-v}const g=i.touchesDirection;i.swipeDirection=h>0?"prev":"next";i.touchesDirection=v>0?"prev":"next";const b=i.params.loop&&!s.cssMode;const w=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(b&&w){i.loopFix({direction:i.swipeDirection})}n.startTranslate=i.getTranslate();i.setTransition(0);if(i.animating){const e=new window.CustomEvent("transitionend",{bubbles:true,cancelable:true,detail:{bySwiperTouchMove:true}});i.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=false;if(s.grabCursor&&(i.allowSlideNext===true||i.allowSlidePrev===true)){i.setGrabCursor(true)}i.emit("sliderFirstMove",a)}(new Date).getTime();if(s._loopSwapReset!==false&&n.isMoved&&n.allowThresholdMove&&g!==i.touchesDirection&&b&&w&&Math.abs(h)>=1){Object.assign(r,{startX:c,startY:u,currentX:c,currentY:u,startTranslate:n.currentTranslate});n.loopSwapReset=true;n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",a);n.isMoved=true;n.currentTranslate=h+n.startTranslate;let y=true;let M=s.resistanceRatio;if(s.touchReleaseOnEdges){M=0}if(h>0){if(b&&w&&true&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-(s.slidesPerView!=="auto"&&i.slides.length-s.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())){i.loopFix({direction:"prev",setTranslate:true,activeSlideIndex:0})}if(n.currentTranslate>i.minTranslate()){y=false;if(s.resistance){n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+h)**M}}}else if(h<0){if(b&&w&&true&&n.allowThresholdMove&&n.cu