import{b as Ce,m as nt,c as at,_ as rt,a as lt,u as ot,j as Pe,o as U,g as de,w as I,i as O,J as ue,ax as dt,C as Me,s as _,t as V,G as fe,A as F,f as ee,k as Le,y as te,F as Oe,aB as ut,ao as ft,an as ct,D as pt,h as ce,at as Ie,p as mt,Q as ht,ap as gt,al as vt,N as pe,aH as wt,aX as yt,aY as St,n as ze,q as bt,x as xt,au as Tt,ae as Et,U as Ct,W as Pt,aJ as k,aZ as ke,a_ as $e,aR as Mt,a$ as Ne,aS as Fe,b0 as j,b1 as Lt,b2 as Ot,aD as It}from"./index-BLnapCnf.js";import{R as zt}from"./RemedyBuyingGuideTabs-DcXuI73Q.js";const At={name:"RemedyFinder",props:["form","letter"],components:{RemedyBuyingGuideTabs:zt},data(){return{showMoreAdvice:!1,suggestions:!1,dialog:!1,tab:null,term:"",descriptionLimit:140,entries:[],isLoading:!1,search:null,select:null,loading:!1,alphabet:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],forms:[],taxonomies:[],taxonomyChosen:null}},mounted(){console.log(this.$refs),this.getProductSearch(),Ce.get("https://api.helios.co.uk/api/taxonomies").then(t=>{this.taxonomies=t.data.data}).catch(t=>{console.log(t)})},watch:{form(t){t&&(this.taxonomyChosen=null)},letter(t){t&&(this.taxonomyChosen=null)},search(t){this.searchRemedies,this.term=t.trim(),!(this.entries.length>0)&&(this.isLoading||t&&this.getProductSearch())},taxonomyChosen(t){if(console.log(t),t){let e="/"+this.$i18n.locale+"/"+this.$t("routes.shop")+"/"+this.$t("routes.search")+"/"+this.$t("routes.remedies")+"/"+this.$t("routes.taxonomy")+"/"+t;this.$router.push(e).catch(()=>{})}}},computed:{...nt(lt,["locale"]),imagesHost(){return"https://images.helios.co.uk"},searchRemedies(){if(this.search==="")return[];let t=0;return this.items.filter(e=>{if(e&&this.search&&e.name_combined.toLowerCase().includes(this.search.toLowerCase())&&t<5)return t++,this.suggestions=!0,e})},items(){let t=this.entries.map(e=>{const i=e.name_combined.length>this.descriptionLimit?e.name_combined.slice(0,this.descriptionLimit)+"...":e.name_combined,s=e.slug,a=e.name,n=e.common_name;return Object.assign({},{},{name_combined:i,name:a,common_name:n,slug:s})});return console.log(t),t}},methods:{...at(ot,["setTerm"]),navigateWithLocale(t,e){return"/"+this.$i18n.locale+"/"+this.$t("routes."+t)+"/"+this.$t("routes."+e)},goToProduct(t){this.$router.push({name:"product",params:{slug:t.slug}}).catch(()=>{})},getProductSearch(){this.isLoading=!0,Ce.get("https://api.helios.co.uk/api/products/remedies/all").then(t=>{console.log(t.data.data),this.entries=t.data.data,this.isLoading=!1}).catch(t=>{console.log(t)})},async sendSearch(){if(this.term!==""&&/\S/.test(this.term)){let t=this.term.trim();await this.setTerm(t,"remedies"),this.term="",this.search="";let e=this;setTimeout(function(){e.$refs["remedy-search"].blur()},1e3),this.$route.name!=="remedies"&&this.$router.push({name:"remedies"}).catch(()=>{})}},translatePath(){let t=this.$route.path;return t="/"+this.$t("routes.shop")+"/"+this.$t("routes.search")+"/"+this.$t("routes.remedies")+"/",this.locale!=="en"&&(t="/"+this.locale+t),t}}},Re=t=>(Ct("data-v-d593d27a"),t=t(),Pt(),t),Bt={class:"d-flex flex-wrap justify-sm-space-between mb-6"},_t={class:"d-none d-sm-inline text-body-1"},Dt={key:0},Gt={class:"d-flex justify-start"},Vt={key:0,width:"60px",class:"mr-2"},kt={class:"text-left"},$t={class:"d-sm-flex justify-center mt-0"},Nt=Re(()=>F("p",{class:"text-h6 mb-0"},"Advice by ailment",-1)),Ft={class:"text-body-1 mb-0"},Rt={href:"https://materiamedica.uk.net",target:"_blank"},Ht={class:"text-body-1"},jt=Re(()=>F("p",{class:"text-body-1"},[_("The art of selecting the \"right\" remedy is dependent on many factors and is ideally done in consultation with a homoeopath. Our team of trained homeopaths are able to advise on self limiting 'acute' ailments. It is very rare that we can suggest a remedy for a specific long term or 'chronic' condition and we would advise you to contact a practitioner in your area. In the U.K. it is best to seek a medical doctor who is a homoeopath or a registered homoeopath. The Find a Homeopath website has all the qualified homeopaths in the UK including medical doctors. "),F("a",{href:"https://www.findahomeopath.org",target:"_blank"},"www.findahomeopath.org")],-1));function Wt(t,e,i,s,a,n){const o=Pe("router-link"),l=Pe("RemedyBuyingGuideTabs");return U(),de(ze,{class:"mx-auto pa-4 text-left",outlined:"",tile:""},{default:I(()=>[O(fe,null,{default:I(()=>[O(ue,{class:"text-h5"},{default:I(()=>[O(dt,{color:"#f6a600",class:"mr-4"},{default:I(()=>[O(Me,{size:"25",color:"white"},{default:I(()=>[_("mdi-mortar-pestle")]),_:1})]),_:1}),_(" "+V(t.$t("headings.Remedy finder")),1)]),_:1})]),_:1}),O(pe,null,{default:I(()=>[F("div",Bt,[(U(!0),ee(Oe,null,Le(a.alphabet,r=>(U(),ee("div",{key:r,class:"button ma-3 ma-sm-0"},[O(o,{to:{path:n.translatePath()+r.toLowerCase()}},{default:I(()=>[F("span",_t,V(r),1),O(te,{small:"",class:"d-sm-none text-h6"},{default:I(()=>[_(V(r),1)]),_:2},1024)]),_:2},1032,["to"])]))),128))]),O(ut,{style:{top:"30px"},location:"bottom start",origin:"auto",modelValue:a.suggestions,"onUpdate:modelValue":e[2]||(e[2]=r=>a.suggestions=r),"location-strategy":"connected"},{activator:I(({props:r})=>[O(ft,ct({label:"Find remedies",color:"#34498e",placeholder:"Start typing to search",clearable:""},r,{ref:"remedy-search",modelValue:a.search,"onUpdate:modelValue":e[0]||(e[0]=c=>a.search=c),"append-inner-icon":"mdi-magnify","onClick:appendInner":n.sendSearch,onKeydown:e[1]||(e[1]=c=>c.keyCode===13?n.sendSearch():!1)}),null,16,["modelValue","onClick:appendInner"])]),default:I(()=>[n.searchRemedies.length>0?(U(),de(pt,{key:0,style:{width:"450px"}},{default:I(()=>[O(fe,null,{default:I(()=>[O(ue,{class:"font-weight-bold"},{default:I(()=>[_("Showing "+V(n.searchRemedies.length)+" suggestion",1),n.searchRemedies.length>1?(U(),ee("span",Dt,"s")):ce("",!0),_(" from "+V(this.entries.length)+" remedies",1)]),_:1}),_(" Select below, or "),O(te,{variant:"tonal",color:"primary",onClick:n.sendSearch,"append-icon":"mdi-magnify"},{default:I(()=>[_("search all remedies")]),_:1},8,["onClick"])]),_:1}),O(Ie),(U(!0),ee(Oe,null,Le(n.searchRemedies,r=>(U(),de(fe,{key:r.slug,onClick:c=>n.goToProduct(r)},{default:I(()=>[F("div",Gt,[r.path?(U(),ee("div",Vt,[O(mt,{contain:"",height:"60px",width:"60px",src:n.imagesHost+"/assets/product-basket/"+r.path},null,8,["src"])])):ce("",!0),F("div",kt,[O(ue,null,{default:I(()=>[_(V(r.name),1)]),_:2},1024),O(ht,null,{default:I(()=>[_(V(r.common_name),1)]),_:2},1024)])])]),_:2},1032,["onClick"]))),128))]),_:1})):ce("",!0)]),_:1},8,["modelValue"]),F("div",$t,[O(gt,{ref:"taxonomy-search",modelValue:a.taxonomyChosen,"onUpdate:modelValue":e[3]||(e[3]=r=>a.taxonomyChosen=r),items:a.taxonomies,"item-title":"name","item-value":"slug",filled:"",clearable:"",label:t.$t("fields.Find by kingdom"),class:"mr-6"},null,8,["modelValue","items","label"]),O(te,{elevation:"0",onClick:e[4]||(e[4]=vt(r=>a.dialog=!0,["stop"])),class:"align-self-start","append-icon":"mdi-information",variant:"tonal",color:"primary"},{default:I(()=>[_(V(t.$t("headings.Remedy buying guide")),1)]),_:1})]),O(Ie,{class:"mt-3 mb-3"}),Nt,F("p",Ft,[_("For a list of self-help remedies for minor ailments and first aid situations for all the family, please visit "),F("a",Rt,V(t.$t("headings.Materia Medica")),1),_(" or the Featured section at the top of the page for help with a wide range of specific complaints covering sleep, stress, hay fever, travel, winter ailments and much more.")]),F("p",Ht,[_("You can also "),O(o,{to:n.navigateWithLocale("contact","getting-advice")},{default:I(()=>[_(V(t.$t("links.contact one of our qualified homeopaths")),1)]),_:1},8,["to"]),_(" or "),O(o,{to:{name:"about",params:{slug:"helios-clinic"}}},{default:I(()=>[_(V(t.$t("links.visit our clinic")),1)]),_:1}),_(".")]),O(te,{variant:"tonal",color:"primary",onClick:e[5]||(e[5]=r=>a.showMoreAdvice=!a.showMoreAdvice)},{default:I(()=>[_(V(t.$t("buttons.Learn more"))+" ",1),O(Me,null,{default:I(()=>[_(V(a.showMoreAdvice?"mdi-chevron-up":"mdi-chevron-down"),1)]),_:1})]),_:1})]),_:1}),O(St,null,{default:I(()=>[wt(F("div",null,[O(pe,{class:"black--text"},{default:I(()=>[jt]),_:1})],512),[[yt,a.showMoreAdvice]])]),_:1}),O(Et,{modelValue:a.dialog,"onUpdate:modelValue":e[7]||(e[7]=r=>a.dialog=r),"max-width":"800"},{default:I(()=>[O(ze,null,{default:I(()=>[O(bt,{class:"text-h5"},{default:I(()=>[_(V(t.$t("headings.Remedy buying guide")),1)]),_:1}),O(pe,null,{default:I(()=>[O(l)]),_:1}),O(xt,null,{default:I(()=>[O(Tt),O(te,{color:"green darken-1",variant:"tonal",onClick:e[6]||(e[6]=r=>a.dialog=!1)},{default:I(()=>[_(V(t.$t("buttons.Close")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const ws=rt(At,[["render",Wt],["__scopeId","data-v-d593d27a"]]);function Ae(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Ee(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Ae(e[i])&&Ae(t[i])&&Object.keys(e[i]).length>0&&Ee(t[i],e[i])})}const He={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 q(){const t=typeof document<"u"?document:{};return Ee(t,He),t}const qt={document:He,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(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function N(){const t=typeof window<"u"?window:{};return Ee(t,qt),t}function Yt(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch(s){}try{delete e[i]}catch(s){}})}function be(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function le(){return Date.now()}function Xt(t){const e=N();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Ut(t,e){e===void 0&&(e="x");const i=N();let s,a,n;const o=Xt(t);return i.WebKitCSSMatrix?(a=o.transform||o.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(l=>l.replace(",",".")).join(", ")),n=new i.WebKitCSSMatrix(a==="none"?"":a)):(n=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=n.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=n.m41:s.length===16?a=parseFloat(s[12]):a=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?a=n.m42:s.length===16?a=parseFloat(s[13]):a=parseFloat(s[5])),a||0}function ne(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Kt(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function $(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const s=i<0||arguments.length<=i?void 0:arguments[i];if(s!=null&&!Kt(s)){const a=Object.keys(Object(s)).filter(n=>e.indexOf(n)<0);for(let n=0,o=a.length;n<o;n+=1){const l=a[n],r=Object.getOwnPropertyDescriptor(s,l);r!==void 0&&r.enumerable&&(ne(t[l])&&ne(s[l])?s[l].__swiper__?t[l]=s[l]:$(t[l],s[l]):!ne(t[l])&&ne(s[l])?(t[l]={},s[l].__swiper__?t[l]=s[l]:$(t[l],s[l])):t[l]=s[l])}}}return t}function ae(t,e,i){t.style.setProperty(e,i)}function je(t){let{swiper:e,targetPosition:i,side:s}=t;const a=N(),n=-e.translate;let o=null,l;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const c=i>n?"next":"prev",u=(w,m)=>c==="next"&&w>=m||c==="prev"&&w<=m,p=()=>{l=new Date().getTime(),o===null&&(o=l);const w=Math.max(Math.min((l-o)/r,1),0),m=.5-Math.cos(w*Math.PI)/2;let b=n+m*(i-n);if(u(b,i)&&(b=i),e.wrapperEl.scrollTo({[s]:b}),u(b,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:b})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(p)};p()}function W(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function We(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:[e]),i}function Jt(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function Zt(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function K(t,e){return N().getComputedStyle(t,null).getPropertyValue(e)}function oe(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function qe(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function xe(t,e,i){const s=N();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}let me;function Qt(){const t=N(),e=q();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Ye(){return me||(me=Qt()),me}let he;function ei(t){let{userAgent:e}=t===void 0?{}:t;const i=Ye(),s=N(),a=s.navigator.platform,n=e||s.navigator.userAgent,o={ios:!1,android:!1},l=s.screen.width,r=s.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let u=n.match(/(iPad).*OS\s([\d_]+)/);const p=n.match(/(iPod)(.*OS\s([\d_]+))?/),w=!u&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=a==="Win32";let b=a==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&b&&i.touch&&h.indexOf("".concat(l,"x").concat(r))>=0&&(u=n.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),b=!1),c&&!m&&(o.os="android",o.android=!0),(u||w||p)&&(o.os="ios",o.ios=!0),o}function ti(t){return t===void 0&&(t={}),he||(he=ei(t)),he}let ge;function ii(){const t=N();let e=!1;function i(){const s=t.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(i()){const s=String(t.navigator.userAgent);if(s.includes("Version/")){const[a,n]=s.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));e=a<16||a===16&&n<2}}return{isSafari:e||i(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function si(){return ge||(ge=ii()),ge}function ni(t){let{swiper:e,on:i,emit:s}=t;const a=N();let n=null,o=null;const l=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(p=>{o=a.requestAnimationFrame(()=>{const{width:w,height:m}=e;let b=w,h=m;p.forEach(S=>{let{contentBoxSize:y,contentRect:d,target:f}=S;f&&f!==e.el||(b=d?d.width:(y[0]||y).inlineSize,h=d?d.height:(y[0]||y).blockSize)}),(b!==w||h!==m)&&l()})}),n.observe(e.el))},c=()=>{o&&a.cancelAnimationFrame(o),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},u=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){r();return}a.addEventListener("resize",l),a.addEventListener("orientationchange",u)}),i("destroy",()=>{c(),a.removeEventListener("resize",l),a.removeEventListener("orientationchange",u)})}function ai(t){let{swiper:e,extendParams:i,on:s,emit:a}=t;const n=[],o=N(),l=function(u,p){p===void 0&&(p={});const w=o.MutationObserver||o.WebkitMutationObserver,m=new w(b=>{if(e.__preventObserver__)return;if(b.length===1){a("observerUpdate",b[0]);return}const h=function(){a("observerUpdate",b[0])};o.requestAnimationFrame?o.requestAnimationFrame(h):o.setTimeout(h,0)});m.observe(u,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),n.push(m)},r=()=>{if(e.params.observer){if(e.params.observeParents){const u=qe(e.el);for(let p=0;p<u.length;p+=1)l(u[p])}l(e.el,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},c=()=>{n.forEach(u=>{u.disconnect()}),n.splice(0,n.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",r),s("destroy",c)}var ri={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const a=i?"unshift":"push";return t.split(" ").forEach(n=>{s.eventsListeners[n]||(s.eventsListeners[n]=[]),s.eventsListeners[n][a](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function a(){s.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];e.apply(s,o)}return a.__emitterProxy=e,s.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const s=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[s](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((a,n)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[s].splice(n,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return typeof n[0]=="string"||Array.isArray(n[0])?(e=n[0],i=n.slice(1,n.length),s=t):(e=n[0].events,i=n[0].data,s=n[0].context||t),i.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(s,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(c=>{c.apply(s,i)})}),t}};function li(){const t=this;let e,i;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(K(s,"padding-left")||0,10)-parseInt(K(s,"padding-right")||0,10),i=i-parseInt(K(s,"padding-top")||0,10)-parseInt(K(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function oi(){const t=this;function e(T){return t.isHorizontal()?T:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[T]}function i(T,C){return parseFloat(T.getPropertyValue(e(C))||0)}const s=t.params,{wrapperEl:a,slidesEl:n,size:o,rtlTranslate:l,wrongRTL:r}=t,c=t.virtual&&s.virtual.enabled,u=c?t.virtual.slides.length:t.slides.length,p=W(n,".".concat(t.params.slideClass,", swiper-slide")),w=c?t.virtual.slides.length:p.length;let m=[];const b=[],h=[];let S=s.slidesOffsetBefore;typeof S=="function"&&(S=s.slidesOffsetBefore.call(t));let y=s.slidesOffsetAfter;typeof y=="function"&&(y=s.slidesOffsetAfter.call(t));const d=t.snapGrid.length,f=t.slidesGrid.length;let v=s.spaceBetween,x=-S,M=0,E=0;if(typeof o>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*o:typeof v=="string"&&(v=parseFloat(v)),t.virtualSize=-v,p.forEach(T=>{l?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(ae(a,"--swiper-centered-offset-before",""),ae(a,"--swiper-centered-offset-after",""));const L=s.grid&&s.grid.rows>1&&t.grid;L&&t.grid.initSlides(w);let g;const B=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(T=>typeof s.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<w;T+=1){g=0;let C;if(p[T]&&(C=p[T]),L&&t.grid.updateSlide(T,C,w,e),!(p[T]&&K(C,"display")==="none")){if(s.slidesPerView==="auto"){B&&(p[T].style[e("width")]="");const P=getComputedStyle(C),z=C.style.transform,D=C.style.webkitTransform;if(z&&(C.style.transform="none"),D&&(C.style.webkitTransform="none"),s.roundLengths)g=t.isHorizontal()?xe(C,"width"):xe(C,"height");else{const R=i(P,"width"),A=i(P,"padding-left"),H=i(P,"padding-right"),G=i(P,"margin-left"),X=i(P,"margin-right"),Q=P.getPropertyValue("box-sizing");if(Q&&Q==="border-box")g=R+G+X;else{const{clientWidth:it,offsetWidth:st}=C;g=R+A+H+G+X+(st-it)}}z&&(C.style.transform=z),D&&(C.style.webkitTransform=D),s.roundLengths&&(g=Math.floor(g))}else g=(o-(s.slidesPerView-1)*v)/s.slidesPerView,s.roundLengths&&(g=Math.floor(g)),p[T]&&(p[T].style[e("width")]="".concat(g,"px"));p[T]&&(p[T].swiperSlideSize=g),h.push(g),s.centeredSlides?(x=x+g/2+M/2+v,M===0&&T!==0&&(x=x-o/2-v),T===0&&(x=x-o/2-v),Math.abs(x)<1/1e3&&(x=0),s.roundLengths&&(x=Math.floor(x)),E%s.slidesPerGroup===0&&m.push(x),b.push(x)):(s.roundLengths&&(x=Math.floor(x)),(E-Math.min(t.params.slidesPerGroupSkip,E))%t.params.slidesPerGroup===0&&m.push(x),b.push(x),x=x+g+v),t.virtualSize+=g+v,M=g,E+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+y,l&&r&&(s.effect==="slide"||s.effect==="coverflow")&&(a.style.width="".concat(t.virtualSize+v,"px")),s.setWrapperSize&&(a.style[e("width")]="".concat(t.virtualSize+v,"px")),L&&t.grid.updateWrapperSize(g,m,e),!s.centeredSlides){const T=[];for(let C=0;C<m.length;C+=1){let P=m[C];s.roundLengths&&(P=Math.floor(P)),m[C]<=t.virtualSize-o&&T.push(P)}m=T,Math.floor(t.virtualSize-o)-Math.floor(m[m.length-1])>1&&m.push(t.virtualSize-o)}if(c&&s.loop){const T=h[0]+v;if(s.slidesPerGroup>1){const C=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/s.slidesPerGroup),P=T*s.slidesPerGroup;for(let z=0;z<C;z+=1)m.push(m[m.length-1]+P)}for(let C=0;C<t.virtual.slidesBefore+t.virtual.slidesAfter;C+=1)s.slidesPerGroup===1&&m.push(m[m.length-1]+T),b.push(b[b.length-1]+T),t.virtualSize+=T}if(m.length===0&&(m=[0]),v!==0){const T=t.isHorizontal()&&l?"marginLeft":e("marginRight");p.filter((C,P)=>!s.cssMode||s.loop?!0:P!==p.length-1).forEach(C=>{C.style[T]="".concat(v,"px")})}if(s.centeredSlides&&s.centeredSlidesBounds){let T=0;h.forEach(P=>{T+=P+(v||0)}),T-=v;const C=T-o;m=m.map(P=>P<=0?-S:P>C?C+y:P)}if(s.centerInsufficientSlides){let T=0;if(h.forEach(C=>{T+=C+(v||0)}),T-=v,T<o){const C=(o-T)/2;m.forEach((P,z)=>{m[z]=P-C}),b.forEach((P,z)=>{b[z]=P+C})}}if(Object.assign(t,{slides:p,snapGrid:m,slidesGrid:b,slidesSizesGrid:h}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){ae(a,"--swiper-centered-offset-before","".concat(-m[0],"px")),ae(a,"--swiper-centered-offset-after","".concat(t.size/2-h[h.length-1]/2,"px"));const T=-t.snapGrid[0],C=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(P=>P+T),t.slidesGrid=t.slidesGrid.map(P=>P+C)}if(w!==u&&t.emit("slidesLengthChange"),m.length!==d&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),b.length!==f&&t.emit("slidesGridLengthChange"),s.watchSlidesProgress&&t.updateSlidesOffset(),!c&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const T="".concat(s.containerModifierClass,"backface-hidden"),C=t.el.classList.contains(T);w<=s.maxBackfaceHiddenSlides?C||t.el.classList.add(T):C&&t.el.classList.remove(T)}}function di(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let a=0,n;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=l=>s?e.slides[e.getSlideIndexByData(l)]:e.slides[l];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(l=>{i.push(l)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const l=e.activeIndex+n;if(l>e.slides.length&&!s)break;i.push(o(l))}else i.push(o(e.activeIndex));for(n=0;n<i.length;n+=1)if(typeof i[n]<"u"){const l=i[n].offsetHeight;a=l>a?l:a}(a||a===0)&&(e.wrapperEl.style.height="".concat(a,"px"))}function ui(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s<e.length;s+=1)e[s].swiperSlideOffset=(t.isHorizontal()?e[s].offsetLeft:e[s].offsetTop)-i-t.cssOverflowAdjustment()}function fi(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:s,rtlTranslate:a,snapGrid:n}=e;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-t;a&&(o=t),s.forEach(r=>{r.classList.remove(i.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let l=i.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*e.size:typeof l=="string"&&(l=parseFloat(l));for(let r=0;r<s.length;r+=1){const c=s[r];let u=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(u-=s[0].swiperSlideOffset);const p=(o+(i.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+l),w=(o-n[0]+(i.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+l),m=-(o-u),b=m+e.slidesSizesGrid[r];(m>=0&&m<e.size-1||b>1&&b<=e.size||m<=0&&b>=e.size)&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(r),s[r].classList.add(i.slideVisibleClass)),c.progress=a?-p:p,c.originalProgress=a?-w:w}}function ci(t){const e=this;if(typeof t>"u"){const u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:n,isEnd:o,progressLoop:l}=e;const r=n,c=o;if(s===0)a=0,n=!0,o=!0;else{a=(t-e.minTranslate())/s;const u=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;n=u||a<=0,o=p||a>=1,u&&(a=0),p&&(a=1)}if(i.loop){const u=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),w=e.slidesGrid[u],m=e.slidesGrid[p],b=e.slidesGrid[e.slidesGrid.length-1],h=Math.abs(t);h>=w?l=(h-w)/b:l=(h+b-m)/b,l>1&&(l-=1)}Object.assign(e,{progress:a,progressLoop:l,isBeginning:n,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),n&&!r&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(r&&!n||c&&!o)&&e.emit("fromEdge"),e.emit("progress",a)}function pi(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:a}=t,n=t.virtual&&i.virtual.enabled,o=r=>W(s,".".concat(i.slideClass).concat(r,", swiper-slide").concat(r))[0];e.forEach(r=>{r.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let l;if(n)if(i.loop){let r=a-t.virtual.slidesBefore;r<0&&(r=t.virtual.slides.length+r),r>=t.virtual.slides.length&&(r-=t.virtual.slides.length),l=o('[data-swiper-slide-index="'.concat(r,'"]'))}else l=o('[data-swiper-slide-index="'.concat(a,'"]'));else l=e[a];if(l){l.classList.add(i.slideActiveClass);let r=Zt(l,".".concat(i.slideClass,", swiper-slide"))[0];i.loop&&!r&&(r=e[0]),r&&r.classList.add(i.slideNextClass);let c=Jt(l,".".concat(i.slideClass,", swiper-slide"))[0];i.loop&&!c===0&&(c=e[e.length-1]),c&&c.classList.add(i.slidePrevClass)}t.emitSlidesClasses()}const re=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":".".concat(t.params.slideClass),s=e.closest(i());if(s){const a=s.querySelector(".".concat(t.params.lazyPreloaderClass));a&&a.remove()}},ve=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Te=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=a,l=[o-e];l.push(...Array.from({length:e}).map((r,c)=>o+s+c)),t.slides.forEach((r,c)=>{l.includes(r.column)&&ve(t,c)});return}const n=a+s-1;if(t.params.rewind||t.params.loop)for(let o=a-e;o<=n+e;o+=1){const l=(o%i+i)%i;(l<a||l>n)&&ve(t,l)}else for(let o=Math.max(a-e,0);o<=Math.min(n+e,i-1);o+=1)o!==a&&(o>n||o<a)&&ve(t,o)};function mi(t){const{slidesGrid:e,params:i}=t,s=t.rtlTranslate?t.translate:-t.translate;let a;for(let n=0;n<e.length;n+=1)typeof e[n+1]<"u"?s>=e[n]&&s<e[n+1]-(e[n+1]-e[n])/2?a=n:s>=e[n]&&s<e[n+1]&&(a=n+1):s>=e[n]&&(a=n);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function hi(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:a,activeIndex:n,realIndex:o,snapIndex:l}=e;let r=t,c;const u=w=>{let m=w-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof r>"u"&&(r=mi(e)),s.indexOf(i)>=0)c=s.indexOf(i);else{const w=Math.min(a.slidesPerGroupSkip,r);c=w+Math.floor((r-w)/a.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),r===n){c!==l&&(e.snapIndex=c,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=u(r));return}let p;e.virtual&&a.virtual.enabled&&a.loop?p=u(r):e.slides[r]?p=parseInt(e.slides[r].getAttribute("data-swiper-slide-index")||r,10):p=r,Object.assign(e,{previousSnapIndex:l,snapIndex:c,previousRealIndex:o,realIndex:p,previousIndex:n,activeIndex:r}),e.initialized&&Te(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),o!==p&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function gi(t){const e=this,i=e.params,s=t.closest(".".concat(i.slideClass,", swiper-slide"));let a=!1,n;if(s){for(let o=0;o<e.slides.length;o+=1)if(e.slides[o]===s){a=!0,n=o;break}}if(s&&a)e.clickedSlide=s,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):e.clickedIndex=n;else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}i.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}var vi={updateSize:li,updateSlides:oi,updateAutoHeight:di,updateSlidesOffset:ui,updateSlidesProgress:fi,updateProgress:ci,updateSlidesClasses:pi,updateActiveIndex:hi,updateClickedSlide:gi};function wi(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:s,translate:a,wrapperEl:n}=e;if(i.virtualTranslate)return s?-a:a;if(i.cssMode)return a;let o=Ut(n,t);return o+=e.cssOverflowAdjustment(),s&&(o=-o),o||0}function yi(t,e){const i=this,{rtlTranslate:s,params:a,wrapperEl:n,progress:o}=i;let l=0,r=0;const c=0;i.isHorizontal()?l=s?-t:t:r=t,a.roundLengths&&(l=Math.floor(l),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:r,a.cssMode?n[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-r:a.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),n.style.transform="translate3d(".concat(l,"px, ").concat(r,"px, ").concat(c,"px)"));let u;const p=i.maxTranslate()-i.minTranslate();p===0?u=0:u=(t-i.minTranslate())/p,u!==o&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Si(){return-this.snapGrid[0]}function bi(){return-this.snapGrid[this.snapGrid.length-1]}function xi(t,e,i,s,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),s===void 0&&(s=!0);const n=this,{params:o,wrapperEl:l}=n;if(n.animating&&o.preventInteractionOnTransition)return!1;const r=n.minTranslate(),c=n.maxTranslate();let u;if(s&&t>r?u=r:s&&t<c?u=c:u=t,n.updateProgress(u),o.cssMode){const p=n.isHorizontal();if(e===0)l[p?"scrollLeft":"scrollTop"]=-u;else{if(!n.support.smoothScroll)return je({swiper:n,targetPosition:-u,side:p?"left":"top"}),!0;l.scrollTo({[p?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(n.setTransition(0),n.setTranslate(u),i&&(n.emit("beforeTransitionStart",e,a),n.emit("transitionEnd"))):(n.setTransition(e),n.setTranslate(u),i&&(n.emit("beforeTransitionStart",e,a),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(w){!n||n.destroyed||w.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,i&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}var Ti={getTranslate:wi,setTranslate:yi,minTranslate:Si,maxTranslate:bi,translateTo:xi};function Ei(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration="".concat(t,"ms")),i.emit("setTransition",t,e)}function Xe(t){let{swiper:e,runCallbacks:i,direction:s,step:a}=t;const{activeIndex:n,previousIndex:o}=e;let l=s;if(l||(n>o?l="next":n<o?l="prev":l="reset"),e.emit("transition".concat(a)),i&&n!==o){if(l==="reset"){e.emit("slideResetTransition".concat(a));return}e.emit("slideChangeTransition".concat(a)),l==="next"?e.emit("slideNextTransition".concat(a)):e.emit("slidePrevTransition".concat(a))}}function Ci(t,e){t===void 0&&(t=!0);const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),Xe({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Pi(t,e){t===void 0&&(t=!0);const i=this,{params:s}=i;i.animating=!1,!s.cssMode&&(i.setTransition(0),Xe({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Mi={setTransition:Ei,transitionStart:Ci,transitionEnd:Pi};function Li(t,e,i,s,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;let o=t;o<0&&(o=0);const{params:l,snapGrid:r,slidesGrid:c,previousIndex:u,activeIndex:p,rtlTranslate:w,wrapperEl:m,enabled:b}=n;if(n.animating&&l.preventInteractionOnTransition||!b&&!s&&!a)return!1;const h=Math.min(n.params.slidesPerGroupSkip,o);let S=h+Math.floor((o-h)/n.params.slidesPerGroup);S>=r.length&&(S=r.length-1);const y=-r[S];if(l.normalizeSlideIndex)for(let f=0;f<c.length;f+=1){const v=-Math.floor(y*100),x=Math.floor(c[f]*100),M=Math.floor(c[f+1]*100);typeof c[f+1]<"u"?v>=x&&v<M-(M-x)/2?o=f:v>=x&&v<M&&(o=f+1):v>=x&&(o=f)}if(n.initialized&&o!==p&&(!n.allowSlideNext&&(w?y>n.translate&&y>n.minTranslate():y<n.translate&&y<n.minTranslate())||!n.allowSlidePrev&&y>n.translate&&y>n.maxTranslate()&&(p||0)!==o))return!1;o!==(u||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(y);let d;if(o>p?d="next":o<p?d="prev":d="reset",w&&-y===n.translate||!w&&y===n.translate)return n.updateActiveIndex(o),l.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),l.effect!=="slide"&&n.setTranslate(y),d!=="reset"&&(n.transitionStart(i,d),n.transitionEnd(i,d)),!1;if(l.cssMode){const f=n.isHorizontal(),v=w?y:-y;if(e===0){const x=n.virtual&&n.params.virtual.enabled;x&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),x&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[f?"scrollLeft":"scrollTop"]=v})):m[f?"scrollLeft":"scrollTop"]=v,x&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return je({swiper:n,targetPosition:v,side:f?"left":"top"}),!0;m.scrollTo({[f?"left":"top"]:v,behavior:"smooth"})}return!0}return n.setTransition(e),n.setTranslate(y),n.updateActiveIndex(o),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(i,d),e===0?n.transitionEnd(i,d):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(v){!n||n.destroyed||v.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,d))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function Oi(t,e,i,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;let n=t;return a.params.loop&&(a.virtual&&a.params.virtual.enabled?n=n+a.virtual.slidesBefore:n=a.getSlideIndexByData(n)),a.slideTo(n,e,i,s)}function Ii(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:a,params:n,animating:o}=s;if(!a)return s;let l=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(l=Math.max(s.slidesPerViewDynamic("current",!0),1));const r=s.activeIndex<n.slidesPerGroupSkip?1:l,c=s.virtual&&n.virtual.enabled;if(n.loop){if(o&&!c&&n.loopPreventsSliding)return!1;s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft}return n.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+r,t,e,i)}function zi(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{params:a,snapGrid:n,slidesGrid:o,rtlTranslate:l,enabled:r,animating:c}=s;if(!r)return s;const u=s.virtual&&a.virtual.enabled;if(a.loop){if(c&&!u&&a.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const p=l?s.translate:-s.translate;function w(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const m=w(p),b=n.map(y=>w(y));let h=n[b.indexOf(m)-1];if(typeof h>"u"&&a.cssMode){let y;n.forEach((d,f)=>{m>=d&&(y=f)}),typeof y<"u"&&(h=n[y>0?y-1:y])}let S=0;if(typeof h<"u"&&(S=o.indexOf(h),S<0&&(S=s.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(S=S-s.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),a.rewind&&s.isBeginning){const y=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(y,t,e,i)}return s.slideTo(S,t,e,i)}function Ai(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this;return s.slideTo(s.activeIndex,t,e,i)}function Bi(t,e,i,s){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const a=this;let n=a.activeIndex;const o=Math.min(a.params.slidesPerGroupSkip,n),l=o+Math.floor((n-o)/a.params.slidesPerGroup),r=a.rtlTranslate?a.translate:-a.translate;if(r>=a.snapGrid[l]){const c=a.snapGrid[l],u=a.snapGrid[l+1];r-c>(u-c)*s&&(n+=a.params.slidesPerGroup)}else{const c=a.snapGrid[l-1],u=a.snapGrid[l];r-c<=(u-c)*s&&(n-=a.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,a.slidesGrid.length-1),a.slideTo(n,t,e,i)}function _i(){const t=this,{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,n;const o=t.isElement?"swiper-slide":".".concat(e.slideClass);if(e.loop){if(t.animating)return;n=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?a<t.loopedSlides-s/2||a>t.slides.length-t.loopedSlides+s/2?(t.loopFix(),a=t.getSlideIndex(W(i,"".concat(o,'[data-swiper-slide-index="').concat(n,'"]'))[0]),be(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-s?(t.loopFix(),a=t.getSlideIndex(W(i,"".concat(o,'[data-swiper-slide-index="').concat(n,'"]'))[0]),be(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var Di={slideTo:Li,slideToLoop:Oi,slideNext:Ii,slidePrev:zi,slideReset:Ai,slideToClosest:Bi,slideToClickedSlide:_i};function Gi(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;W(s,".".concat(i.slideClass,", swiper-slide")).forEach((n,o)=>{n.setAttribute("data-swiper-slide-index",o)}),e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function Vi(t){let{slideRealIndex:e,slideTo:i=!0,direction:s,setTranslate:a,activeSlideIndex:n,byController:o,byMousewheel:l}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:p,slidesEl:w,params:m}=r;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&m.virtual.enabled){i&&(!m.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):m.centeredSlides&&r.snapIndex<m.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=u,r.allowSlideNext=p,r.emit("loopFix");return}const b=m.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(m.slidesPerView,10));let h=m.loopedSlides||b;h%m.slidesPerGroup!==0&&(h+=m.slidesPerGroup-h%m.slidesPerGroup),r.loopedSlides=h;const S=[],y=[];let d=r.activeIndex;typeof n>"u"?n=r.getSlideIndex(r.slides.filter(E=>E.classList.contains(m.slideActiveClass))[0]):d=n;const f=s==="next"||!s,v=s==="prev"||!s;let x=0,M=0;if(n<h){x=Math.max(h-n,m.slidesPerGroup);for(let E=0;E<h-n;E+=1){const L=E-Math.floor(E/c.length)*c.length;S.push(c.length-L-1)}}else if(n>r.slides.length-h*2){M=Math.max(n-(r.slides.length-h*2),m.slidesPerGroup);for(let E=0;E<M;E+=1){const L=E-Math.floor(E/c.length)*c.length;y.push(L)}}if(v&&S.forEach(E=>{r.slides[E].swiperLoopMoveDOM=!0,w.prepend(r.slides[E]),r.slides[E].swiperLoopMoveDOM=!1}),f&&y.forEach(E=>{r.slides[E].swiperLoopMoveDOM=!0,w.append(r.slides[E]),r.slides[E].swiperLoopMoveDOM=!1}),r.recalcSlides(),m.slidesPerView==="auto"&&r.updateSlides(),m.watchSlidesProgress&&r.updateSlidesOffset(),i){if(S.length>0&&v)if(typeof e>"u"){const E=r.slidesGrid[d],g=r.slidesGrid[d+x]-E;l?r.setTranslate(r.translate-g):(r.slideTo(d+x,0,!1,!0),a&&(r.touches[r.isHorizontal()?"startX":"startY"]+=g))}else a&&r.slideToLoop(e,0,!1,!0);else if(y.length>0&&f)if(typeof e>"u"){const E=r.slidesGrid[d],g=r.slidesGrid[d-M]-E;l?r.setTranslate(r.translate-g):(r.slideTo(d-M,0,!1,!0),a&&(r.touches[r.isHorizontal()?"startX":"startY"]+=g))}else r.slideToLoop(e,0,!1,!0)}if(r.allowSlidePrev=u,r.allowSlideNext=p,r.controller&&r.controller.control&&!o){const E={slideRealIndex:e,slideTo:!1,direction:s,setTranslate:a,activeSlideIndex:n,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(L=>{!L.destroyed&&L.params.loop&&L.loopFix(E)}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix(E)}r.emit("loopFix")}function ki(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(a=>{const n=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;s[n]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),s.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var $i={loopCreate:Gi,loopFix:Vi,loopDestroy:ki};function Ni(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Fi(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Ri={setGrabCursor:Ni,unsetGrabCursor:Fi};function Hi(t,e){e===void 0&&(e=this);function i(s){if(!s||s===q()||s===N())return null;s.assignedSlot&&(s=s.assignedSlot);const a=s.closest(t);return!a&&!s.getRootNode?null:a||i(s.getRootNode().host)}return i(e)}function ji(t){const e=this,i=q(),s=N(),a=e.touchEventsData;a.evCache.push(t);const{params:n,touches:o,enabled:l}=e;if(!l||!n.simulateTouch&&t.pointerType==="mouse"||e.animating&&n.preventInteractionOnTransition)return;!e.animating&&n.cssMode&&n.loop&&e.loopFix();let r=t;r.originalEvent&&(r=r.originalEvent);let c=r.target;if(n.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(c)||"which"in r&&r.which===3||"button"in r&&r.button>0||a.isTouched&&a.isMoved)return;const u=!!n.noSwipingClass&&n.noSwipingClass!=="",p=t.composedPath?t.composedPath():t.path;u&&r.target&&r.target.shadowRoot&&p&&(c=p[0]);const w=n.noSwipingSelector?n.noSwipingSelector:".".concat(n.noSwipingClass),m=!!(r.target&&r.target.shadowRoot);if(n.noSwiping&&(m?Hi(w,c):c.closest(w))){e.allowClick=!0;return}if(n.swipeHandler&&!c.closest(n.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;const b=o.currentX,h=o.currentY,S=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,y=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(S&&(b<=y||b>=s.innerWidth-y))if(S==="prevent")t.preventDefault();else return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=b,o.startY=h,a.touchStartTime=le(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(a.allowThresholdMove=!1);let d=!0;c.matches(a.focusableElements)&&(d=!1,c.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==c&&i.activeElement.blur();const f=d&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||f)&&!c.isContentEditable&&r.preventDefault(),n.freeMode&&n.freeMode.enabled&&e.freeMode&&e.animating&&!n.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",r)}function Wi(t){const e=q(),i=this,s=i.touchEventsData,{params:a,touches:n,rtlTranslate:o,enabled:l}=i;if(!l||!a.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",r);return}const c=s.evCache.findIndex(M=>M.pointerId===r.pointerId);c>=0&&(s.evCache[c]=r);const u=s.evCache.length>1?s.evCache[0]:r,p=u.pageX,w=u.pageY;if(r.preventedByNestedSwiper){n.startX=p,n.startY=w;return}if(!i.allowTouchMove){r.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(n,{startX:p,startY:w,prevX:i.touches.currentX,prevY:i.touches.currentY,currentX:p,currentY:w}),s.touchStartTime=le());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(w<n.startY&&i.translate<=i.maxTranslate()||w>n.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(p<n.startX&&i.translate<=i.maxTranslate()||p>n.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}if(s.allowTouchCallbacks&&i.emit("touchMove",r),r.targetTouches&&r.targetTouches.length>1)return;n.currentX=p,n.currentY=w;const m=n.currentX-n.startX,b=n.currentY-n.startY;if(i.params.threshold&&Math.sqrt(m**2+b**2)<i.params.threshold)return;if(typeof s.isScrolling>"u"){let M;i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:m*m+b*b>=25&&(M=Math.atan2(Math.abs(b),Math.abs(m))*180/Math.PI,s.isScrolling=i.isHorizontal()?M>a.touchAngle:90-M>a.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",r),typeof s.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(s.startMoving=!0),s.isScrolling||i.zoom&&i.params.zoom&&i.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let h=i.isHorizontal()?m:b,S=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;a.oneWayMovement&&(h=Math.abs(h)*(o?1:-1),S=Math.abs(S)*(o?1:-1)),n.diff=h,h*=a.touchRatio,o&&(h=-h,S=-S);const y=i.touchesDirection;i.swipeDirection=h>0?"prev":"next",i.touchesDirection=S>0?"prev":"next";const d=i.params.loop&&!a.cssMode;if(!s.isMoved){if(d&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(M)}s.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let f;s.isMoved&&y!==i.touchesDirection&&d&&Math.abs(h)>=1&&(i.loopFix({direction:i.swipeDirection,setTranslate:!0}),f=!0),i.emit("sliderMove",r),s.isMoved=!0,s.currentTranslate=h+s.startTranslate;let v=!0,x=a.resistanceRatio;if(a.touchReleaseOnEdges&&(x=0),h>0?(d&&!f&&s.currentTranslate>(a.centeredSlides?i.minTranslate()-i.size/2:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(v=!1,a.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+h)**x))):h<0&&(d&&!f&&s.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.size/2:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),s.currentTranslate<i.maxTranslate()&&(v=!1,a.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-h)**x))),v&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),a.threshold>0)if(Math.abs(h)>a.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{s.currentTranslate=s.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function qi(t){const e=this,i=e.touchEventsData,s=i.evCache.findIndex(f=>f.pointerId===t.pointerId);if(s>=0&&i.evCache.splice(s,1),["pointercancel","pointerout","pointerleave"].includes(t.type)&&!(t.type==="pointercancel"&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:a,touches:n,rtlTranslate:o,slidesGrid:l,enabled:r}=e;if(!r||!a.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const u=le(),p=u-i.touchStartTime;if(e.allowClick){const f=c.path||c.composedPath&&c.composedPath();e.updateClickedSlide(f&&f[0]||c.target),e.emit("tap click",c),p<300&&u-i.lastClickTime<300&&e.emit("doubleTap doubleClick",c)}if(i.lastClickTime=le(),be(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||n.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let w;if(a.followFinger?w=o?e.translate:-e.translate:w=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:w});return}let m=0,b=e.slidesSizesGrid[0];for(let f=0;f<l.length;f+=f<a.slidesPerGroupSkip?1:a.slidesPerGroup){const v=f<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof l[f+v]<"u"?w>=l[f]&&w<l[f+v]&&(m=f,b=l[f+v]-l[f]):w>=l[f]&&(m=f,b=l[l.length-1]-l[l.length-2])}let h=null,S=null;a.rewind&&(e.isBeginning?S=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(h=0));const y=(w-l[m])/b,d=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(p>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(y>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?h:m+d):e.slideTo(m)),e.swipeDirection==="prev"&&(y>1-a.longSwipesRatio?e.slideTo(m+d):S!==null&&y<0&&Math.abs(y)>a.longSwipesRatio?e.slideTo(S):e.slideTo(m))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(c.target===e.navigation.nextEl||c.target===e.navigation.prevEl)?c.target===e.navigation.nextEl?e.slideTo(m+d):e.slideTo(m):(e.swipeDirection==="next"&&e.slideTo(h!==null?h:m+d),e.swipeDirection==="prev"&&e.slideTo(S!==null?S:m))}}function Be(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:a,snapGrid:n}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const l=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!l?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=s,t.params.watchOverflow&&n!==t.snapGrid&&t.checkOverflow()}function Yi(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Xi(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a;const n=t.maxTranslate()-t.minTranslate();n===0?a=0:a=(t.translate-t.minTranslate())/n,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Ui(t){const e=this;re(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let _e=!1;function Ki(){}const Ue=(t,e)=>{const i=q(),{params:s,el:a,wrapperEl:n,device:o}=t,l=!!s.nested,r=e==="on"?"addEventListener":"removeEventListener",c=e;a[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:l}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&a[r]("click",t.onClick,!0),s.cssMode&&n[r]("scroll",t.onScroll),s.updateOnWindowResize?t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Be,!0):t[c]("observerUpdate",Be,!0),a[r]("load",t.onLoad,{capture:!0})};function Ji(){const t=this,e=q(),{params:i}=t;t.onTouchStart=ji.bind(t),t.onTouchMove=Wi.bind(t),t.onTouchEnd=qi.bind(t),i.cssMode&&(t.onScroll=Xi.bind(t)),t.onClick=Yi.bind(t),t.onLoad=Ui.bind(t),_e||(e.addEventListener("touchstart",Ki),_e=!0),Ue(t,"on")}function Zi(){Ue(this,"off")}var Qi={attachEvents:Ji,detachEvents:Zi};const De=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function es(){const t=this,{realIndex:e,initialized:i,params:s,el:a}=t,n=s.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const o=t.getBreakpoint(n,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const r=(o in n?n[o]:void 0)||t.originalParams,c=De(t,s),u=De(t,r),p=s.enabled;c&&!u?(a.classList.remove("".concat(s.containerModifierClass,"grid"),"".concat(s.containerModifierClass,"grid-column")),t.emitContainerClasses()):!c&&u&&(a.classList.add("".concat(s.containerModifierClass,"grid")),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&s.grid.fill==="column")&&a.classList.add("".concat(s.containerModifierClass,"grid-column")),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof r[h]>"u")return;const S=s[h]&&s[h].enabled,y=r[h]&&r[h].enabled;S&&!y&&t[h].disable(),!S&&y&&t[h].enable()});const w=r.direction&&r.direction!==s.direction,m=s.loop&&(r.slidesPerView!==s.slidesPerView||w);w&&i&&t.changeDirection(),$(t.params,r);const b=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!b?t.disable():!p&&b&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",r),m&&i&&(t.loopDestroy(),t.loopCreate(e),t.updateSlides()),t.emit("breakpoint",r)}function ts(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const a=N(),n=e==="window"?a.innerHeight:i.clientHeight,o=Object.keys(t).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const r=parseFloat(l.substr(1));return{value:n*r,point:l}}return{value:l,point:l}});o.sort((l,r)=>parseInt(l.value,10)-parseInt(r.value,10));for(let l=0;l<o.length;l+=1){const{point:r,value:c}=o[l];e==="window"?a.matchMedia("(min-width: ".concat(c,"px)")).matches&&(s=r):c<=i.clientWidth&&(s=r)}return s||"max"}var is={setBreakpoint:es,getBreakpoint:ts};function ss(t,e){const i=[];return t.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(a=>{s[a]&&i.push(e+a)}):typeof s=="string"&&i.push(e+s)}),i}function ns(){const t=this,{classNames:e,params:i,rtl:s,el:a,device:n}=t,o=ss(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...o),a.classList.add(...e),t.emitContainerClasses()}function as(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var rs={addClasses:ns,removeClasses:as};function ls(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const a=t.slides.length-1,n=t.slidesGrid[a]+t.slidesSizesGrid[a]+s*2;t.isLocked=t.size>n}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var os={checkOverflow:ls},Ge={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function ds(t,e){return function(s){s===void 0&&(s={});const a=Object.keys(s)[0],n=s[a];if(typeof n!="object"||n===null){$(e,s);return}if(["navigation","pagination","scrollbar"].indexOf(a)>=0&&t[a]===!0&&(t[a]={auto:!0}),!(a in t&&"enabled"in n)){$(e,s);return}t[a]===!0&&(t[a]={enabled:!0}),typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),$(e,s)}}const we={eventsEmitter:ri,update:vi,translate:Ti,transition:Mi,slide:Di,loop:$i,grabCursor:Ri,events:Qi,breakpoints:is,checkOverflow:os,classes:rs},ye={};let se=class Y{constructor(){let e,i;for(var s=arguments.length,a=new Array(s),n=0;n<s;n++)a[n]=arguments[n];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=$({},i),e&&!i.el&&(i.el=e);const o=q();if(i.el&&typeof i.el=="string"&&o.querySelectorAll(i.el).length>1){const u=[];return o.querySelectorAll(i.el).forEach(p=>{const w=$({},i,{el:p});u.push(new Y(w))}),u}const l=this;l.__swiper__=!0,l.support=Ye(),l.device=ti({userAgent:i.userAgent}),l.browser=si(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],i.modules&&Array.isArray(i.modules)&&l.modules.push(...i.modules);const r={};l.modules.forEach(u=>{u({params:i,swiper:l,extendParams:ds(i,r),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const c=$({},Ge,r);return l.params=$({},c,ye,i),l.originalParams=$({},l.params),l.passedParams=$({},i),l.params&&l.params.on&&Object.keys(l.params.on).forEach(u=>{l.on(u,l.params.on[u])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getSlideIndex(e){const{slidesEl:i,params:s}=this,a=W(i,".".concat(s.slideClass,", swiper-slide")),n=oe(a[0]);return oe(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:s}=e;e.slides=W(i,".".concat(s.slideClass,", swiper-slide"))}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),o=(s.maxTranslate()-a)*e+a;s.translateTo(o,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(s=>{const a=e.getSlideClasses(s);i.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const s=this,{params:a,slides:n,slidesGrid:o,slidesSizesGrid:l,size:r,activeIndex:c}=s;let u=1;if(a.centeredSlides){let p=n[c]?n[c].swiperSlideSize:0,w;for(let m=c+1;m<n.length;m+=1)n[m]&&!w&&(p+=n[m].swiperSlideSize,u+=1,p>r&&(w=!0));for(let m=c-1;m>=0;m-=1)n[m]&&!w&&(p+=n[m].swiperSlideSize,u+=1,p>r&&(w=!0))}else if(e==="current")for(let p=c+1;p<n.length;p+=1)(i?o[p]+l[p]-o[c]<r:o[p]-o[c]<r)&&(u+=1);else for(let p=c-1;p>=0;p-=1)o[c]-o[p]<r&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:s}=e;s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&re(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const o=e.rtlTranslate?e.translate*-1:e.translate,l=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(l),e.updateActiveIndex(),e.updateSlidesClasses()}let n;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)a(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(o.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||a()}s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const s=this,a=s.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove("".concat(s.params.containerModifierClass).concat(a)),s.el.classList.add("".concat(s.params.containerModifierClass).concat(e)),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(n=>{e==="vertical"?n.style.width="":n.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add("".concat(i.params.containerModifierClass,"rtl")),i.el.dir="rtl"):(i.el.classList.remove("".concat(i.params.containerModifierClass,"rtl")),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let s=e||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.parentNode&&s.parentNode.host&&(i.isElement=!0);const a=()=>".".concat((i.params.wrapperClass||"").trim().split(" ").join("."));let o=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(a()):W(s,a())[0];return!o&&i.params.createElements&&(o=We("div",i.params.wrapperClass),s.append(o),W(s,".".concat(i.params.slideClass)).forEach(l=>{o.append(l)})),Object.assign(i,{el:s,wrapperEl:o,slidesEl:i.isElement?s.parentNode.host:o,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||K(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||K(s,"direction")==="rtl"),wrongRTL:K(o,"display")==="-webkit-box"}),!0}init(e){const i=this;return i.initialized||i.mount(e)===!1||(i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents(),[...i.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete?re(i,a):a.addEventListener("load",n=>{re(i,n.target)})}),Te(i),i.initialized=!0,Te(i),i.emit("init"),i.emit("afterInit")),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const s=this,{params:a,el:n,wrapperEl:o,slides:l}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),i&&(s.removeClasses(),n.removeAttribute("style"),o.removeAttribute("style"),l&&l.length&&l.forEach(r=>{r.classList.remove(a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(r=>{s.off(r)}),e!==!1&&(s.el.swiper=null,Yt(s)),s.destroyed=!0),null}static extendDefaults(e){$(ye,e)}static get extendedDefaults(){return ye}static get defaults(){return Ge}static installModule(e){Y.prototype.__modules__||(Y.prototype.__modules__=[]);const i=Y.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Y.installModule(i)),Y):(Y.installModule(e),Y)}};Object.keys(we).forEach(t=>{Object.keys(we[t]).forEach(e=>{se.prototype[e]=we[t][e]})});se.use([ni,ai]);const Ke=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Z(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function J(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>i.indexOf(s)<0).forEach(s=>{typeof t[s]>"u"?t[s]=e[s]:Z(e[s])&&Z(t[s])&&Object.keys(e[s]).length>0?e[s].__swiper__?t[s]=e[s]:J(t[s],e[s]):t[s]=e[s]})}function Je(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Ze(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Qe(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function et(t){t===void 0&&(t="");const e=t.split(" ").map(s=>s.trim()).filter(s=>!!s),i=[];return e.forEach(s=>{i.indexOf(s)<0&&i.push(s)}),i.join(" ")}function us(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:"swiper-wrapper ".concat(t):"swiper-wrapper"}function fs(t){let{swiper:e,slides:i,passedParams:s,changedParams:a,nextEl:n,prevEl:o,scrollbarEl:l,paginationEl:r}=t;const c=a.filter(g=>g!=="children"&&g!=="direction"&&g!=="wrapperClass"),{params:u,pagination:p,navigation:w,scrollbar:m,virtual:b,thumbs:h}=e;let S,y,d,f,v,x,M,E;a.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(S=!0),a.includes("controller")&&s.controller&&s.controller.control&&u.controller&&!u.controller.control&&(y=!0),a.includes("pagination")&&s.pagination&&(s.pagination.el||r)&&(u.pagination||u.pagination===!1)&&p&&!p.el&&(d=!0),a.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||l)&&(u.scrollbar||u.scrollbar===!1)&&m&&!m.el&&(f=!0),a.includes("navigation")&&s.navigation&&(s.navigation.prevEl||o)&&(s.navigation.nextEl||n)&&(u.navigation||u.navigation===!1)&&w&&!w.prevEl&&!w.nextEl&&(v=!0);const L=g=>{e[g]&&(e[g].destroy(),g==="navigation"?(e.isElement&&(e[g].prevEl.remove(),e[g].nextEl.remove()),u[g].prevEl=void 0,u[g].nextEl=void 0,e[g].prevEl=void 0,e[g].nextEl=void 0):(e.isElement&&e[g].el.remove(),u[g].el=void 0,e[g].el=void 0))};a.includes("loop")&&e.isElement&&(u.loop&&!s.loop?x=!0:!u.loop&&s.loop?M=!0:E=!0),c.forEach(g=>{if(Z(u[g])&&Z(s[g]))J(u[g],s[g]),(g==="navigation"||g==="pagination"||g==="scrollbar")&&"enabled"in s[g]&&!s[g].enabled&&L(g);else{const B=s[g];(B===!0||B===!1)&&(g==="navigation"||g==="pagination"||g==="scrollbar")?B===!1&&L(g):u[g]=s[g]}}),c.includes("controller")&&!y&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),a.includes("children")&&i&&b&&u.virtual.enabled&&(b.slides=i,b.update(!0)),a.includes("children")&&i&&u.loop&&(E=!0),S&&h.init()&&h.update(!0),y&&(e.controller.control=u.controller.control),d&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),e.el.appendChild(r)),r&&(u.pagination.el=r),p.init(),p.render(),p.update()),f&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),e.el.appendChild(l)),l&&(u.scrollbar.el=l),m.init(),m.updateSize(),m.setTranslate()),v&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),n.innerHTML=e.hostEl.nextButtonSvg,e.el.appendChild(n)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),n.innerHTML=e.hostEl.prevButtonSvg,e.el.appendChild(o))),n&&(u.navigation.nextEl=n),o&&(u.navigation.prevEl=o),w.init(),w.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),a.includes("direction")&&e.changeDirection(s.direction,!1),(x||E)&&e.loopDestroy(),(M||E)&&e.loopCreate(),e.update()}function Ve(t,e){t===void 0&&(t={});const i={on:{}},s={},a={};J(i,se.defaults),J(i,se.extendedDefaults),i._emitClasses=!0,i.init=!1;const n={},o=Ke.map(r=>r.replace(/_/,"")),l=Object.assign({},t);return Object.keys(l).forEach(r=>{typeof t[r]>"u"||(o.indexOf(r)>=0?Z(t[r])?(i[r]={},a[r]={},J(i[r],t[r]),J(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?i.on["".concat(r[2].toLowerCase()).concat(r.substr(3))]=t[r]:n[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:a,rest:n,events:s}}function cs(t,e){let{el:i,nextEl:s,prevEl:a,paginationEl:n,scrollbarEl:o,swiper:l}=t;Je(e)&&s&&a&&(l.params.navigation.nextEl=s,l.originalParams.navigation.nextEl=s,l.params.navigation.prevEl=a,l.originalParams.navigation.prevEl=a),Ze(e)&&n&&(l.params.pagination.el=n,l.originalParams.pagination.el=n),Qe(e)&&o&&(l.params.scrollbar.el=o,l.originalParams.scrollbar.el=o),l.init(i)}function ps(t,e,i,s,a){const n=[];if(!e)return n;const o=r=>{n.indexOf(r)<0&&n.push(r)};if(i&&s){const r=s.map(a),c=i.map(a);r.join("")!==c.join("")&&o("children"),s.length!==i.length&&o("children")}return Ke.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(Z(t[r])&&Z(e[r])){const c=Object.keys(t[r]),u=Object.keys(e[r]);c.length!==u.length?o(r):(c.forEach(p=>{t[r][p]!==e[r][p]&&o(r)}),u.forEach(p=>{t[r][p]!==e[r][p]&&o(r)}))}else t[r]!==e[r]&&o(r)}),n}const ms=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function Se(t,e,i){t===void 0&&(t={});const s=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},n=(o,l)=>{Array.isArray(o)&&o.forEach(r=>{const c=typeof r.type=="symbol";l==="default"&&(l="container-end"),c&&r.children?n(r.children,l):r.type&&(r.type.name==="SwiperSlide"||r.type.name==="AsyncComponentWrapper")?s.push(r):a[l]&&a[l].push(r)})};return Object.keys(t).forEach(o=>{if(typeof t[o]!="function")return;const l=t[o]();n(l,o)}),i.value=e.value,e.value=s,{slides:s,slots:a}}function hs(t,e,i){if(!i)return null;const s=u=>{let p=u;return u<0?p=e.length+u:p>=e.length&&(p=p-e.length),p},a=t.value.isHorizontal()?{[t.value.rtlTranslate?"right":"left"]:"".concat(i.offset,"px")}:{top:"".concat(i.offset,"px")},{from:n,to:o}=i,l=t.value.params.loop?-e.length:0,r=t.value.params.loop?e.length*2:e.length,c=[];for(let u=l;u<r;u+=1)u>=n&&u<=o&&c.push(e[s(u)]);return c.map(u=>(u.props||(u.props={}),u.props.style||(u.props.style={}),u.props.swiperRef=t,u.props.style=a,j(u.type,{...u.props},u.children)))}const ys={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(t,e){let{slots:i,emit:s}=e;const{tag:a,wrapperTag:n}=t,o=k("swiper"),l=k(null),r=k(!1),c=k(!1),u=k(null),p=k(null),w=k(null),m={value:[]},b={value:[]},h=k(null),S=k(null),y=k(null),d=k(null),{params:f,passedParams:v}=Ve(t);Se(i,m,b),w.value=v,b.value=m.value;const x=()=>{Se(i,m,b),r.value=!0};f.onAny=function(L){for(var g=arguments.length,B=new Array(g>1?g-1:0),T=1;T<g;T++)B[T-1]=arguments[T];s(L,...B)},Object.assign(f.on,{_beforeBreakpoint:x,_containerClasses(L,g){o.value=g}});const M={...f};if(delete M.wrapperClass,p.value=new se(M),p.value.virtual&&p.value.params.virtual.enabled){p.value.virtual.slides=m.value;const L={cache:!1,slides:m.value,renderExternal:g=>{l.value=g},renderExternalUpdate:!1};J(p.value.params.virtual,L),J(p.value.originalParams.virtual,L)}ke(()=>{!c.value&&p.value&&(p.value.emitSlidesClasses(),c.value=!0);const{passedParams:L}=Ve(t),g=ps(L,w.value,m.value,b.value,B=>B.props&&B.props.key);w.value=L,(g.length||r.value)&&p.value&&!p.value.destroyed&&fs({swiper:p.value,slides:m.value,passedParams:L,changedParams:g,nextEl:h.value,prevEl:S.value,scrollbarEl:d.value,paginationEl:y.value}),r.value=!1}),$e("swiper",p),Mt(l,()=>{It(()=>{ms(p.value)})}),Ne(()=>{u.value&&(cs({el:u.value,nextEl:h.value,prevEl:S.value,paginationEl:y.value,scrollbarEl:d.value,swiper:p.value},f),s("swiper",p.value))}),Fe(()=>{p.value&&!p.value.destroyed&&p.value.destroy(!0,!1)});function E(L){return f.virtual?hs(p,L,l.value):(L.forEach((g,B)=>{g.props||(g.props={}),g.props.swiperRef=p,g.props.swiperSlideIndex=B}),L)}return()=>{const{slides:L,slots:g}=Se(i,m,b);return j(a,{ref:u,class:et(o.value)},[g["container-start"],j(n,{class:us(f.wrapperClass)},[g["wrapper-start"],E(L),g["wrapper-end"]]),Je(t)&&[j("div",{ref:S,class:"swiper-button-prev"}),j("div",{ref:h,class:"swiper-button-next"})],Qe(t)&&j("div",{ref:d,class:"swiper-scrollbar"}),Ze(t)&&j("div",{ref:y,class:"swiper-pagination"}),g["container-end"]])}}},Ss={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(t,e){let{slots:i}=e,s=!1;const{swiperRef:a}=t,n=k(null),o=k("swiper-slide"),l=k(!1);function r(p,w,m){w===n.value&&(o.value=m)}Ne(()=>{!a||!a.value||(a.value.on("_slideClass",r),s=!0)}),Lt(()=>{s||!a||!a.value||(a.value.on("_slideClass",r),s=!0)}),ke(()=>{!n.value||!a||!a.value||(typeof t.swiperSlideIndex<"u"&&(n.value.swiperSlideIndex=t.swiperSlideIndex),a.value.destroyed&&o.value!=="swiper-slide"&&(o.value="swiper-slide"))}),Fe(()=>{!a||!a.value||a.value.off("_slideClass",r)});const c=Ot(()=>({isActive:o.value.indexOf("swiper-slide-active")>=0,isVisible:o.value.indexOf("swiper-slide-visible")>=0,isPrev:o.value.indexOf("swiper-slide-prev")>=0,isNext:o.value.indexOf("swiper-slide-next")>=0}));$e("swiperSlide",c);const u=()=>{l.value=!0};return()=>j(t.tag,{class:et("".concat(o.value)),ref:n,"data-swiper-slide-index":typeof t.virtualIndex>"u"&&a&&a.value&&a.value.params.loop?t.swiperSlideIndex:t.virtualIndex,onLoadCapture:u},t.zoom?j("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof t.zoom=="number"?t.zoom:void 0},[i.default&&i.default(c.value),t.lazy&&!l.value&&j("div",{class:"swiper-lazy-preloader"})]):[i.default&&i.default(c.value),t.lazy&&!l.value&&j("div",{class:"swiper-lazy-preloader"})])}};function tt(t,e,i,s){return t.params.createElements&&Object.keys(s).forEach(a=>{if(!i[a]&&i.auto===!0){let n=W(t.el,".".concat(s[a]))[0];n||(n=We("div",s[a]),n.className=s[a],t.el.append(n)),i[a]=n,e[a]=n}}),i}function bs(t){let{swiper:e,extendParams:i,on:s,emit:a}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const n=h=>(Array.isArray(h)||(h=[h].filter(S=>!!S)),h);function o(h){let S;return h&&typeof h=="string"&&e.isElement&&(S=e.el.querySelector(h),S)?S:(h&&(typeof h=="string"&&(S=[...document.querySelectorAll(h)]),e.params.uniqueNavElements&&typeof h=="string"&&S.length>1&&e.el.querySelectorAll(h).length===1&&(S=e.el.querySelector(h))),h&&!S?h:S)}function l(h,S){const y=e.params.navigation;h=n(h),h.forEach(d=>{d&&(d.classList[S?"add":"remove"](...y.disabledClass.split(" ")),d.tagName==="BUTTON"&&(d.disabled=S),e.params.watchOverflow&&e.enabled&&d.classList[e.isLocked?"add":"remove"](y.lockClass))})}function r(){const{nextEl:h,prevEl:S}=e.navigation;if(e.params.loop){l(S,!1),l(h,!1);return}l(S,e.isBeginning&&!e.params.rewind),l(h,e.isEnd&&!e.params.rewind)}function c(h){h.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(h){h.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function p(){const h=e.params.navigation;if(e.params.navigation=tt(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;let S=o(h.nextEl),y=o(h.prevEl);Object.assign(e.navigation,{nextEl:S,prevEl:y}),S=n(S),y=n(y);const d=(f,v)=>{f&&f.addEventListener("click",v==="next"?u:c),!e.enabled&&f&&f.classList.add(...h.lockClass.split(" "))};S.forEach(f=>d(f,"next")),y.forEach(f=>d(f,"prev"))}function w(){let{nextEl:h,prevEl:S}=e.navigation;h=n(h),S=n(S);const y=(d,f)=>{d.removeEventListener("click",f==="next"?u:c),d.classList.remove(...e.params.navigation.disabledClass.split(" "))};h.forEach(d=>y(d,"next")),S.forEach(d=>y(d,"prev"))}s("init",()=>{e.params.navigation.enabled===!1?b():(p(),r())}),s("toEdge fromEdge lock unlock",()=>{r()}),s("destroy",()=>{w()}),s("enable disable",()=>{let{nextEl:h,prevEl:S}=e.navigation;h=n(h),S=n(S),[...h,...S].filter(y=>!!y).forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),s("click",(h,S)=>{let{nextEl:y,prevEl:d}=e.navigation;y=n(y),d=n(d);const f=S.target;if(e.params.navigation.hideOnClick&&!d.includes(f)&&!y.includes(f)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===f||e.pagination.el.contains(f)))return;let v;y.length?v=y[0].classList.contains(e.params.navigation.hiddenClass):d.length&&(v=d[0].classList.contains(e.params.navigation.hiddenClass)),a(v===!0?"navigationShow":"navigationHide"),[...y,...d].filter(x=>!!x).forEach(x=>x.classList.toggle(e.params.navigation.hiddenClass))}});const m=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),p(),r()},b=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),w()};Object.assign(e.navigation,{enable:m,disable:b,update:r,init:p,destroy:w})}function ie(t){return t===void 0&&(t=""),".".concat(t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,"."))}function xs(t){let{swiper:e,extendParams:i,on:s,emit:a}=t;const n="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:d=>d,formatFractionTotal:d=>d,bulletClass:"".concat(n,"-bullet"),bulletActiveClass:"".concat(n,"-bullet-active"),modifierClass:"".concat(n,"-"),currentClass:"".concat(n,"-current"),totalClass:"".concat(n,"-total"),hiddenClass:"".concat(n,"-hidden"),progressbarFillClass:"".concat(n,"-progressbar-fill"),progressbarOppositeClass:"".concat(n,"-progressbar-opposite"),clickableClass:"".concat(n,"-clickable"),lockClass:"".concat(n,"-lock"),horizontalClass:"".concat(n,"-horizontal"),verticalClass:"".concat(n,"-vertical"),paginationDisabledClass:"".concat(n,"-disabled")}}),e.pagination={el:null,bullets:[]};let o,l=0;const r=d=>(Array.isArray(d)||(d=[d].filter(f=>!!f)),d);function c(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(d,f){const{bulletActiveClass:v}=e.params.pagination;d&&(d=d["".concat(f==="prev"?"previous":"next","ElementSibling")],d&&(d.classList.add("".concat(v,"-").concat(f)),d=d["".concat(f==="prev"?"previous":"next","ElementSibling")],d&&d.classList.add("".concat(v,"-").concat(f,"-").concat(f))))}function p(d){const f=d.target.closest(ie(e.params.pagination.bulletClass));if(!f)return;d.preventDefault();const v=oe(f)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===v)return;const x=e.getSlideIndexByData(v),M=e.getSlideIndexByData(e.realIndex);x>e.slides.length-e.loopedSlides&&e.loopFix({direction:x>M?"next":"prev",activeSlideIndex:x,slideTo:!1}),e.slideToLoop(v)}else e.slideTo(v)}function w(){const d=e.rtl,f=e.params.pagination;if(c())return;let v=e.pagination.el;v=r(v);let x,M;const E=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,L=e.params.loop?Math.ceil(E/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(M=e.previousRealIndex||0,x=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(x=e.snapIndex,M=e.previousSnapIndex):(M=e.previousIndex||0,x=e.activeIndex||0),f.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const g=e.pagination.bullets;let B,T,C;if(f.dynamicBullets&&(o=xe(g[0],e.isHorizontal()?"width":"height"),v.forEach(P=>{P.style[e.isHorizontal()?"width":"height"]="".concat(o*(f.dynamicMainBullets+4),"px")}),f.dynamicMainBullets>1&&M!==void 0&&(l+=x-(M||0),l>f.dynamicMainBullets-1?l=f.dynamicMainBullets-1:l<0&&(l=0)),B=Math.max(x-l,0),T=B+(Math.min(g.length,f.dynamicMainBullets)-1),C=(T+B)/2),g.forEach(P=>{const z=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(D=>"".concat(f.bulletActiveClass).concat(D))].map(D=>typeof D=="string"&&D.includes(" ")?D.split(" "):D).flat();P.classList.remove(...z)}),v.length>1)g.forEach(P=>{const z=oe(P);z===x?P.classList.add(...f.bulletActiveClass.split(" ")):e.isElement&&P.setAttribute("part","bullet"),f.dynamicBullets&&(z>=B&&z<=T&&P.classList.add(..."".concat(f.bulletActiveClass,"-main").split(" ")),z===B&&u(P,"prev"),z===T&&u(P,"next"))});else{const P=g[x];if(P&&P.classList.add(...f.bulletActiveClass.split(" ")),e.isElement&&g.forEach((z,D)=>{z.setAttribute("part",D===x?"bullet-active":"bullet")}),f.dynamicBullets){const z=g[B],D=g[T];for(let R=B;R<=T;R+=1)g[R]&&g[R].classList.add(..."".concat(f.bulletActiveClass,"-main").split(" "));u(z,"prev"),u(D,"next")}}if(f.dynamicBullets){const P=Math.min(g.length,f.dynamicMainBullets+4),z=(o*P-o)/2-C*o,D=d?"right":"left";g.forEach(R=>{R.style[e.isHorizontal()?D:"top"]="".concat(z,"px")})}}v.forEach((g,B)=>{if(f.type==="fraction"&&(g.querySelectorAll(ie(f.currentClass)).forEach(T=>{T.textContent=f.formatFractionCurrent(x+1)}),g.querySelectorAll(ie(f.totalClass)).forEach(T=>{T.textContent=f.formatFractionTotal(L)})),f.type==="progressbar"){let T;f.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const C=(x+1)/L;let P=1,z=1;T==="horizontal"?P=C:z=C,g.querySelectorAll(ie(f.progressbarFillClass)).forEach(D=>{D.style.transform="translate3d(0,0,0) scaleX(".concat(P,") scaleY(").concat(z,")"),D.style.transitionDuration="".concat(e.params.speed,"ms")})}f.type==="custom"&&f.renderCustom?(g.innerHTML=f.renderCustom(e,x+1,L),B===0&&a("paginationRender",g)):(B===0&&a("paginationRender",g),a("paginationUpdate",g)),e.params.watchOverflow&&e.enabled&&g.classList[e.isLocked?"add":"remove"](f.lockClass)})}function m(){const d=e.params.pagination;if(c())return;const f=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let v=e.pagination.el;v=r(v);let x="";if(d.type==="bullets"){let M=e.params.loop?Math.ceil(f/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&M>f&&(M=f);for(let E=0;E<M;E+=1)d.renderBullet?x+=d.renderBullet.call(e,E,d.bulletClass):x+="<".concat(d.bulletElement," ").concat(e.isElement?'part="bullet"':"",' class="').concat(d.bulletClass,'"></').concat(d.bulletElement,">")}d.type==="fraction"&&(d.renderFraction?x=d.renderFraction.call(e,d.currentClass,d.totalClass):x='<span class="'.concat(d.currentClass,'"></span>')+" / "+'<span class="'.concat(d.totalClass,'"></span>')),d.type==="progressbar"&&(d.renderProgressbar?x=d.renderProgressbar.call(e,d.progressbarFillClass):x='<span class="'.concat(d.progressbarFillClass,'"></span>')),e.pagination.bullets=[],v.forEach(M=>{d.type!=="custom"&&(M.innerHTML=x||""),d.type==="bullets"&&e.pagination.bullets.push(...M.querySelectorAll(ie(d.bulletClass)))}),d.type!=="custom"&&a("paginationRender",v[0])}function b(){e.params.pagination=tt(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const d=e.params.pagination;if(!d.el)return;let f;typeof d.el=="string"&&e.isElement&&(f=e.el.querySelector(d.el)),!f&&typeof d.el=="string"&&(f=[...document.querySelectorAll(d.el)]),f||(f=d.el),!(!f||f.length===0)&&(e.params.uniqueNavElements&&typeof d.el=="string"&&Array.isArray(f)&&f.length>1&&(f=[...e.el.querySelectorAll(d.el)],f.length>1&&(f=f.filter(v=>qe(v,".swiper")[0]===e.el)[0])),Array.isArray(f)&&f.length===1&&(f=f[0]),Object.assign(e.pagination,{el:f}),f=r(f),f.forEach(v=>{d.type==="bullets"&&d.clickable&&v.classList.add(d.clickableClass),v.classList.add(d.modifierClass+d.type),v.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.type==="bullets"&&d.dynamicBullets&&(v.classList.add("".concat(d.modifierClass).concat(d.type,"-dynamic")),l=0,d.dynamicMainBullets<1&&(d.dynamicMainBullets=1)),d.type==="progressbar"&&d.progressbarOpposite&&v.classList.add(d.progressbarOppositeClass),d.clickable&&v.addEventListener("click",p),e.enabled||v.classList.add(d.lockClass)}))}function h(){const d=e.params.pagination;if(c())return;let f=e.pagination.el;f&&(f=r(f),f.forEach(v=>{v.classList.remove(d.hiddenClass),v.classList.remove(d.modifierClass+d.type),v.classList.remove(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.clickable&&v.removeEventListener("click",p)})),e.pagination.bullets&&e.pagination.bullets.forEach(v=>v.classList.remove(...d.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const d=e.params.pagination;let{el:f}=e.pagination;f=r(f),f.forEach(v=>{v.classList.remove(d.horizontalClass,d.verticalClass),v.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass)})}),s("init",()=>{e.params.pagination.enabled===!1?y():(b(),m(),w())}),s("activeIndexChange",()=>{typeof e.snapIndex>"u"&&w()}),s("snapIndexChange",()=>{w()}),s("snapGridLengthChange",()=>{m(),w()}),s("destroy",()=>{h()}),s("enable disable",()=>{let{el:d}=e.pagination;d&&(d=r(d),d.forEach(f=>f.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{w()}),s("click",(d,f)=>{const v=f.target,x=r(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&x&&x.length>0&&!v.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&v===e.navigation.nextEl||e.navigation.prevEl&&v===e.navigation.prevEl))return;const M=x[0].classList.contains(e.params.pagination.hiddenClass);a(M===!0?"paginationShow":"paginationHide"),x.forEach(E=>E.classList.toggle(e.params.pagination.hiddenClass))}});const S=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=r(d),d.forEach(f=>f.classList.remove(e.params.pagination.paginationDisabledClass))),b(),m(),w()},y=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=r(d),d.forEach(f=>f.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:S,disable:y,render:m,update:w,init:b,destroy:h})}function Ts(t){let{swiper:e,extendParams:i,on:s,emit:a,params:n}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,l,r=n&&n.autoplay?n.autoplay.delay:3e3,c=n&&n.autoplay?n.autoplay.delay:3e3,u,p=new Date().getTime,w,m,b,h,S,y;function d(A){!e||e.destroyed||!e.wrapperEl||A.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",d),g())}const f=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?w=!0:w&&(c=u,w=!1);const A=e.autoplay.paused?u:p+c-new Date().getTime();e.autoplay.timeLeft=A,a("autoplayTimeLeft",A,A/r),l=requestAnimationFrame(()=>{f()})},v=()=>{let A;return e.virtual&&e.params.virtual.enabled?A=e.slides.filter(G=>G.classList.contains("swiper-slide-active"))[0]:A=e.slides[e.activeIndex],A?parseInt(A.getAttribute("data-swiper-autoplay"),10):void 0},x=A=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(l),f();let H=typeof A>"u"?e.params.autoplay.delay:A;r=e.params.autoplay.delay,c=e.params.autoplay.delay;const G=v();!Number.isNaN(G)&&G>0&&typeof A>"u"&&(H=G,r=G,c=G),u=H;const X=e.params.speed,Q=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(X,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,X,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(X,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,X,!0,!0),a("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{x()})))};return H>0?(clearTimeout(o),o=setTimeout(()=>{Q()},H)):requestAnimationFrame(()=>{Q()}),H},M=()=>{e.autoplay.running=!0,x(),a("autoplayStart")},E=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(l),a("autoplayStop")},L=(A,H)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),A||(y=!0);const G=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",d):g()};if(e.autoplay.paused=!0,H){S&&(u=e.params.autoplay.delay),S=!1,G();return}u=(u||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&u<0&&!e.params.loop)&&(u<0&&(u=0),G())},g=()=>{e.isEnd&&u<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),y?(y=!1,x(u)):x(),e.autoplay.paused=!1,a("autoplayResume"))},B=()=>{if(e.destroyed||!e.autoplay.running)return;const A=q();A.visibilityState==="hidden"&&(y=!0,L(!0)),A.visibilityState==="visible"&&g()},T=A=>{A.pointerType==="mouse"&&(y=!0,L(!0))},C=A=>{A.pointerType==="mouse"&&e.autoplay.paused&&g()},P=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",T),e.el.addEventListener("pointerleave",C))},z=()=>{e.el.removeEventListener("pointerenter",T),e.el.removeEventListener("pointerleave",C)},D=()=>{q().addEventListener("visibilitychange",B)},R=()=>{q().removeEventListener("visibilitychange",B)};s("init",()=>{e.params.autoplay.enabled&&(P(),D(),p=new Date().getTime(),M())}),s("destroy",()=>{z(),R(),e.autoplay.running&&E()}),s("beforeTransitionStart",(A,H,G)=>{e.destroyed||!e.autoplay.running||(G||!e.params.autoplay.disableOnInteraction?L(!0,!0):E())}),s("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){E();return}m=!0,b=!1,y=!1,h=setTimeout(()=>{y=!0,b=!0,L(!0)},200)}}),s("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(h),clearTimeout(o),e.params.autoplay.disableOnInteraction){b=!1,m=!1;return}b&&e.params.cssMode&&g(),b=!1,m=!1}}),s("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:M,stop:E,pause:L,resume:g})}export{Ts as A,bs as N,xs as P,ws as R,ys as S,Ss as a};
//# sourceMappingURL=pagination-mTNDeEHx.js.map