pb-sxp-ui 1.15.12-alpha.1 → 1.15.12-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.min.js CHANGED
@@ -1,4 +1,4 @@
1
- import{isEmpty as oi,cloneDeep as ci,isEqual as On,debounce as Pi,throttle as Ln,get as jn}from"lodash";import{v4 as Wl}from"uuid";import zl from"pako";import u,{useContext as hi,useMemo as me,memo as Ne,useEffect as he,createContext as Ai,useState as X,useRef as Ae,useCallback as re,forwardRef as Oi,useImperativeHandle as Mn,useLayoutEffect as Hl}from"react";import Nn from"qs";import Ul from"eventemitter3";import{css as Ve}from"@emotion/css";import*as Dn from"react-dom";import Xl from"react-dom";function at(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]]);return i}function dt(t,e,i,n){function o(l){return l instanceof i?l:new i(function(a){a(l)})}return new(i||(i=Promise))(function(l,a){function d(r){try{c(n.next(r))}catch(p){a(p)}}function s(r){try{c(n.throw(r))}catch(p){a(p)}}function c(r){r.done?l(r.value):o(r.value).then(d,s)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const ql=/:\w+/g;var Vn=(t,e)=>dt(void 0,void 0,void 0,function*(){const i={},n={};for(let o=0;o<e?.length;o++){const{id:l,method:a,url:d,urlParams:s,name:c,queryString:r,headers:p,body:h}=e[o];let f=d;s&&Object.entries(s).forEach(([y,b])=>{f=f.replace(ql,S=>S===y?b:S)}),r&&(f+=r),n[l]=c;try{const y=yield fetch(f,{method:a,headers:Object.assign({"Content-Type":"application/json"},p),body:JSON.stringify(h)}).then(b=>b.json());i[l]=y}catch(y){console.error("DataSource request error: ",y),i[l]={}}}return{$store:i,idMapName:n}});const Rn="SXP_TOKEN_INFO",Yl=(t,e)=>dt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),o=t.getAppId(),l=t.getApiUrl(),a=window.localStorage.getItem(Rn);let d=JSON.parse(a||"{}");if(Date.now()>((i=d?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":o||""}}).then(r=>r.json());if(c.success){const r=c.data;d=Object.assign(Object.assign({},r),{expireTime:Date.now()+r.expire*1e3}),window.localStorage.setItem(Rn,JSON.stringify(d))}}return d});function Li(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let o;if(e=e||i.length,t)for(o=0;o<t;o++)n[o]=i[0|Math.random()*e];else{let l;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",o=0;o<36;o++)n[o]||(l=0|Math.random()*16,n[o]=i[o===19?l&3|8:l])}return n.join("")}const Gl=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let o=0;for(;o<t;)e+=i.charAt(Math.floor(Math.random()*n)),o+=1;return e},Zl=()=>{const t=Wl();return t?.replaceAll?t.replaceAll("-",""):Gl(32)},Me=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],o=e?.["fontFamily-en"];if(!n&&!o)return t;let l=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,s=`font-family:${n??"inherit"}`,c=`font-family:${o??"inherit"}`,r=h=>{const f=h.search(a),y=h.search(d);return f!==-1&&y!==-1&&f<y&&(i+=`<span style="${s}">${h.substring(f,y)}</span>`,l=h.substring(y,h?.length)),f!==-1&&y!==-1&&f>y&&(i+=`<span style="${c}">${h.substring(y,f)}</span>`,l=h.substring(f,h?.length)),f===-1?(i+=`<span style="${c}">${h.substring(y,h?.length)}</span>`,l="",!1):y===-1?(i+=`<span style="${s}">${h.substring(f,h?.length)}</span>`,l="",!1):!0};let p=!0;for(;p;)p=r(l);return i};function Bn(t){const i=document.cookie.split(";");let n=null;return i.forEach(o=>{const[l,a]=o.trim().split("=");l===t&&(n=a)}),n??""}function Ji(){const t=self.navigator.userAgent;return t?/TalkBack/i.test(t)||/Funtouch/i.test(t)||/VoiceOver/i.test(t)||/NVDA/i.test(t)||/JAWS/i.test(t)||/ChromeVox/i.test(t):!1}function bi(t){if(!t)return;const e=[];for(let o=0;o<t.length;o++){const l=t[o],a=t.substring(o+1,t.length);l==="&"&&a?.indexOf("=")!==-1&&(a?.indexOf("=")<a?.indexOf("&")||a?.indexOf("&")===-1)&&e.push(o)}const i=e.length>0?[]:[t];let n=0;return e?.map(o=>{i?.push(t.substring(n,o)),n=o+1,o===e[e.length-1]&&o<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function Fn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),n=new Uint8Array(i),o=zl.inflate(n,{to:"string"});return JSON.parse(o)}let _i=null;const Kl={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Jl{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,_i)return _i;_i=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Kl[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let wt=null;const _l={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{wt||(wt=new Jl),n&&wt.setApiUrl(n),wt.setAppId(t),wt.setTenantId(e),wt.setEnv(i)},getDetail:t=>{if(!wt)return;const e=wt.getTenantId(),i=wt.getAppId(),n=wt.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>dt(void 0,void 0,void 0,function*(){var l,a;const d=yield o.json(),s=Fn((l=d?.data)===null||l===void 0?void 0:l.data);if(s){const{$store:c}=yield Vn(n,(a=s?.dataSource)!==null&&a!==void 0?a:[]);d.data.data=s,Object.assign(d.data.data,{__STORE__:c})}return d}))},getSxpDetailByPageId:t=>dt(void 0,void 0,void 0,function*(){if(!wt)return;const e=wt.getTenantId(),i=wt.getAppId(),n=wt.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>dt(void 0,void 0,void 0,function*(){var l;const a=yield o.json();return a.success?(l=a?.data)===null||l===void 0?void 0:l.map(s=>Object.assign(Object.assign({},s),{data:Fn(s?.data)})):void 0}))}),getSxpRecommendVideoData:t=>dt(void 0,void 0,void 0,function*(){if(!wt)return;const e=yield Yl(wt,t),i=Li(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");oi(n)&&(n=Li(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const o=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return o?.data||null})};function _t(){return hi($n)}function Ql(){return hi(Qn)}const Qi="feRealSessionIdKey",Wn=()=>{const t=Zl();return`${Date.now()}${t}`},$l=()=>{let t=eo();return t||(t=Wn(),window.localStorage.setItem(Qi,t)),t},$i=()=>{const t=Wn();window.localStorage.setItem(Qi,t)},eo=()=>window.localStorage.getItem(Qi),zn="SXP_FAKE_USER_ID",Hn="FAKE_USER_STATE",Un="AGREE_POLICY",Xn="SLIDE_SKIP_STATE",qn="CCONTSENT_STATE",Yn="USER_CONSENT_RESULT",to=()=>{let t=window.localStorage.getItem(zn);return oi(t)&&(t=Li(36,62),window.localStorage.setItem(zn,t)),t},io=()=>{const t=window.localStorage.getItem(Hn);return oi(t)&&window.localStorage.setItem(Hn,"true"),oi(t)},no=()=>{const t=window.localStorage.getItem(Xn);return oi(t)},lo=()=>{window.localStorage.setItem(Xn,"true")},oo=()=>{const t=window.localStorage.getItem(qn);return oi(t)&&window.localStorage.setItem(qn,"true"),oi(t)},Gn=()=>window.localStorage.getItem(Yn)==="true",Zn=()=>{window.localStorage.setItem(Yn,"true")};function Bt(t,e){const{appDomain:i}=Ue();return me(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const ht=new Ul;var pt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(pt||(pt={}));const ao=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:o,privacy_policy_title:l})=>{const{setIsAgreePolicy:a,bffEventReport:d}=Ue(),s=me(()=>{var p;const h=location.search.slice(1),f={};(p=bi(h.replace(/\+/g,"%2B")))===null||p===void 0||p.map(y=>{const b=y.split("=")[0],S=y.split("=")[1];f[b]=S});for(const y in f)f[y]=f[y].replace(/%2B/g,"+");return f},[]),c=p=>{var h;return(h=s[p])!==null&&h!==void 0?h:null};he(()=>{d?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:c("utm_source"),utmMedium:c("utm_medium"),utmCampaign:c("utm_campaign"),utmId:c("utm_id"),utmContent:c("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const r=()=>{d?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),a?.(!0),window.localStorage.setItem(Un,"yes")};return u.createElement("div",{className:"consent-bg"},u.createElement("div",{className:"consent"},u.createElement("div",{className:"consent-col"},u.createElement("div",{className:"consent-title"},i??"Privacy Policy"),u.createElement("div",{className:"consent-content"},n??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),u.createElement("div",{className:"consent-col"},u.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:r},"Agree"),u.createElement("a",{className:"consent-policy",target:"_blank",href:o?`https://${o}`:void 0},l??"More information"))))};var so=Ne(ao);const Kn=Ai({rtcList:[],tagList:[]});var en;(function(t){t[t.BFF=5]="BFF"})(en||(en={}));const ji="FOR U",ro=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:o,defaultSize:l,isPreview:a=!1,sxpParameter:d,appDomain:s,hashTagSize:c,loadingImage:r,isOpenHashTag:p=!1,enabledMetaConversionApi:h=!1,consentHeight:f,consentWidth:y,isOpenConsent:b=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:m,dataList:x,onUpdateSchema:C,onUpdateChannel:k})=>{var N,A,w,T,M;const[I,L]=X([]),[E,R]=X([]),[F,O]=X(!0),[V,D]=X({rtc:"",requestId:""}),P=Ae(null),B=Ae(!1),[U,K]=X(()=>!!window.localStorage.getItem(Un)),[$,ie]=X(),[fe,we]=X(),[ne,Re]=X(p),[ze,Ye]=X([]),[G,J]=X(0),[Se,Te]=X(!1),[Ee,de]=X(null),Fe=Ae(),Ze=Ae(),qe=Ae(),[Qe,it]=X(ji),ke=Ae(-1),Z=Ae(null),[q,oe]=X(!1),[ae,be]=X((A=(N=m?.data)===null||N===void 0?void 0:N.sxpPageConf)===null||A===void 0?void 0:A.globalConfig),[De,$e]=X(),[le,W]=X(!1),[Je,xt]=X(),[rt,bt]=X(),[At,Tt]=X([]),[zt,jt]=X(),[Dt,Yt]=X(),Mt=me(()=>De??m,[De,m]),Et=me(()=>{var H,z,ce,Le;return(((Le=(ce=(z=(H=ae?.consent)===null||H===void 0?void 0:H[0])===null||z===void 0?void 0:z.item)===null||ce===void 0?void 0:ce.props)===null||Le===void 0?void 0:Le.privacy_necessity)&&!U&&!S||b)&&le},[U,ae,b,S,le]),ti=re(H=>{k?.(H),bt(H)},[]),Vt=re(H=>{var z;const ce=H?.recList;return(z=ce?.map(Ce=>{var Pe,He,Xe,We,j,Y;if(!((Pe=Ce?.video)===null||Pe===void 0)&&Pe.bindProducts&&((Xe=(He=Ce?.video)===null||He===void 0?void 0:He.bindProducts)===null||Xe===void 0?void 0:Xe.length)>0){const _=(Y=(j=(We=Ce?.video)===null||We===void 0?void 0:We.bindProducts)===null||j===void 0?void 0:j.filter(se=>!!se?.bindCta))!==null&&Y!==void 0?Y:[];return Object.assign(Object.assign({},Ce),{video:Object.assign(Object.assign({},Ce?.video),{bindProducts:_})})}return Ce}))!==null&&z!==void 0?z:[]},[]);he(()=>{let H;return At.length>0&&(H=setInterval(()=>{const ce=new Date,Le=15*1e3;Tt(Ce=>Ce.filter(Pe=>ce-Pe.time<=Le))},1e3)),()=>{clearInterval(H)}},[At]),he(()=>{const H=z=>{Fe.current=z};return ht.on(pt.CHANGE_THEME_TAG,H),()=>{ht.off(pt.CHANGE_THEME_TAG,H)}},[]),he(()=>{Re(p)},[p]);const et=me(()=>e?.find(H=>H.type===en.BFF),[e]),gt=me(()=>{var H;return((H=et?.headers)===null||H===void 0?void 0:H["x-app-id"])+to()},[et]),ee=re((H,z)=>{if(!et)return;const ce=et.url;if(z?.query){const Le=Nn.stringify(z.query);H=`${H}?${Le}`}return z.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${ce}/api/${H}`,new Blob([JSON.stringify({body:btoa(JSON.stringify(Object.assign(Object.assign(Object.assign({},z.body),et.headers),{"x-user-id":gt})))})],{type:"application/json;charset=UTF-8"})):window.fetch(`${ce}/api/${H}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":gt},et.headers),method:z.method,body:JSON.stringify(z.body)}).then(Le=>Le.json()).catch(Le=>Promise.reject(Le))},[et,gt]),Ie=re((H,z)=>{if(!et)return;const ce=et.url;if(z?.query){const Le=Nn.stringify(z.query);H=`${H}?${Le}`}return window.fetch(`${ce}/admin/${H}`,{headers:Object.assign({"Content-Type":"application/json"},et.headers),method:z.method,body:JSON.stringify(z.body)}).then(Le=>Le.json()).catch(Le=>Promise.reject(Le))},[et]),_e=re(H=>dt(void 0,void 0,void 0,function*(){var z,ce,Le,Ce,Pe,He,Xe,We,j,Y,_,se,pe,ue;if(H=Object.assign({maxSize:(z=H?.maxSize)!==null&&z!==void 0?z:o,defaultSize:(ce=H?.defaultSize)!==null&&ce!==void 0?ce:l,hashTag:H?.hashTag,traceInfo:H?.traceInfo,themeTag:H?.themeTag,pageNum:H?.pageNum,contentFilter:H?.contentFilter,productFilter:H?.productFilter},Dt&&{chatlabsId:Dt}),rt)H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(rt)});else if(i){const ve=(Pe=(Ce=(Le=bi(i))===null||Le===void 0?void 0:Le.filter(xe=>{var te,Be;const ge=xe.split("=")[0];return(Be=(te=v?.channels)!==null&&te!==void 0?te:[])===null||Be===void 0?void 0:Be.includes(ge)}))===null||Ce===void 0?void 0:Ce.join("&"))!==null&&Pe!==void 0?Pe:"";ve&&(H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(ve)}))}if(S){let ve=1;if(H=Object.assign(Object.assign(Object.assign({},H),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!H?.channel||B.current)return;B.current=!0;let xe=[],te=null;const Be=ge=>dt(void 0,void 0,void 0,function*(){var ye,ot,nt,tt,lt,ut;if(ge.pageNum=ve,te=yield Ie?.("recommend/direct_page",{method:"POST",body:ge}),!te?.success)return;O(!1),xe=xe.concat((tt=(nt=(ot=(ye=te?.data)===null||ye===void 0?void 0:ye.recList)===null||ot===void 0?void 0:ot.filter)===null||nt===void 0?void 0:nt.call(ot,Ke=>Ke?.product||Ke?.video))!==null&&tt!==void 0?tt:[]),I?.length===0&&(L(Vt(Object.assign(Object.assign({},te?.data),{recList:xe}))),Ye(Vt(Object.assign(Object.assign({},te?.data),{recList:xe})))),((ut=(lt=te?.data)===null||lt===void 0?void 0:lt.recList)===null||ut===void 0?void 0:ut.some(Ke=>Ke?.product||Ke?.video))&&(ve=ve+1,yield Be(ge))});return yield Be(H),!H?.hashTag&&te&&D({rtc:(He=te?.data)===null||He===void 0?void 0:He.rtc,requestId:(Xe=te?.data)===null||Xe===void 0?void 0:Xe.requestId}),Object.assign(Object.assign({},te?.data),{recList:xe})}ae?.enablePreview&&(H=Object.assign(Object.assign({},H),{directPage:!0,level:1,pageNum:(We=H?.pageNum)!==null&&We!==void 0?We:1}));const Q=yield ee?.("v1/recommend/list",{method:"POST",body:H});if(Q?.success){if(H?.hashTag||D({rtc:Q.data.rtc,requestId:Q.data.requestId}),ae?.enablePreview&&!S){let ve=[];return ve=ve.concat((se=(_=(Y=(j=Q?.data)===null||j===void 0?void 0:j.recList)===null||Y===void 0?void 0:Y.filter)===null||_===void 0?void 0:_.call(Y,te=>te?.product||te?.video))!==null&&se!==void 0?se:[]),((ue=(pe=Q?.data)===null||pe===void 0?void 0:pe.recList)===null||ue===void 0?void 0:ue.some(te=>te?.product||te?.video))||oe(!0),Object.assign(Object.assign({},Q.data),{recList:ve})}return Q?.data}}),[ee,i,o,l,g,rt,Dt,Ie]),It=re(H=>dt(void 0,void 0,void 0,function*(){var z,ce,Le,Ce;if(I.length<=0)return;const Pe=I?.[I?.length-1],He=yield _e(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:fe?.hashTag},((z=Pe?.product)===null||z===void 0?void 0:z.itemId)&&{productFilter:[(ce=Pe?.product)===null||ce===void 0?void 0:ce.itemId]}),((Le=Pe?.video)===null||Le===void 0?void 0:Le.itemId)&&{contentFilter:[(Ce=Pe?.video)===null||Ce===void 0?void 0:Ce.itemId]}),{themeTag:Fe.current}),ae?.enablePreview&&!S&&{pageNum:H}));return L(I.concat(Vt(He))),Ye(ze.concat(Vt(He))),He}),[_e,I,fe,ze]),ii=re((H,z)=>{var ce,Le,Ce,Pe,He;let Xe=!1;const We=(Le=(ce=m?.data)===null||ce===void 0?void 0:ce.sxpPageConf)===null||Le===void 0?void 0:Le.globalConfig;if(!((Ce=We?.session)===null||Ce===void 0)&&Ce.enable){const j=localStorage.getItem("sessionStartTime"),Y=j?JSON.parse(j):new Date().getTime();Math.floor((new Date().getTime()-Y)/1e3/60)>=((He=(Pe=We?.session)===null||Pe===void 0?void 0:Pe.expires)!==null&&He!==void 0?He:30)&&(z?.("sessionTimeOut"),$i(),Ze.current=new Date,Xe=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else H&&$i();return Xe},[m]),ct=re(({userInfo:H,eventInfo:z,reportLayId:ce=!0})=>{var Le,Ce;if(!n||ae?.enablePreview)return;H||(H={});const Pe=$l(),He={},Xe=location.search.slice(1);(Le=bi(Xe))===null||Le===void 0||Le.map(se=>{const pe=se.split("=")[0],ue=se.split("=")[1];He[pe]=ue});const We=He?.cl_source,j=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Pe,rtc:V.rtc,requestId:V.requestId},{playbookType:zt}),Je&&ce&&{layoutVariantId:Je}),z),z?.position&&rt&&{position:Number(z?.position)+1+""}),We&&{clSource:We}),Y=Object.entries(H).map(([se,pe])=>({name:se,value:pe})),_=Object.entries(j).map(([se,pe])=>pe&&{name:se,value:pe}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",H),console.log("eventInfo:",j),console.log("========= \u7ED3\u675F ========="),ee?.(`v2/cld/${(Ce=et?.headers)===null||Ce===void 0?void 0:Ce["x-app-id"]}/${z?.eventSubject}${We?`/${decodeURIComponent(We)}`:""}`,{method:"POST",body:{userInfo:Y,eventInfo:_},type:"beacon"})},[ee,V,n,ae?.enablePreview,Je,ae,zt,et]),ni=re(({eventName:H,product:z})=>{var ce,Le,Ce,Pe,He,Xe;if(!n||!h||ae?.enablePreview||!(!((ce=ae?.converApi)===null||ce===void 0)&&ce[H]))return;const We=ci((Le=ae?.converApi)===null||Le===void 0?void 0:Le[H]),j=new URLSearchParams(window.location.search),Y=j?.get("fbclid"),_={event_source_url:(Ce=window?.location)===null||Ce===void 0?void 0:Ce.href,external_id:gt,client_user_agent:(He=(Pe=window?.navigator)===null||Pe===void 0?void 0:Pe.userAgent)!==null&&He!==void 0?He:"",fbc:Y?`fb.2.${new Date().getTime()}.${Y}`:"",fbp:Bn("_fbp")?`fb.2.${new Date().getTime()}.${Bn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},se=/\{\{(.*?)\}\}/g,pe=ue=>{if(ue){if(ue instanceof Array)ue?.map(Q=>pe(Q));else for(const Q in ue)if(ue.hasOwnProperty(Q)){const ve=ue?.[Q];if(typeof ve=="object")pe(ve);else if(typeof ve=="string"){const xe=ve?.match(se);xe&&xe.forEach(te=>{var Be;const ge=te.substring(2,te.length-2);try{let ye=new Function("fix_par","product",`return ${ge}`)(_,z);ye?(ge?.indexOf("currency")!==-1&&ye?.indexOf("-")!==-1&&typeof ye=="string"&&(ye=(Be=ye?.split("-"))===null||Be===void 0?void 0:Be[0]),ue[Q]=ye):delete ue[Q]}catch(ye){delete ue[Q],console.error("An error occurred:",ye?.message)}})}}}};return pe(We),ee?.(`v2/event/report/FB/${(Xe=et?.headers)===null||Xe===void 0?void 0:Xe["x-app-id"]}/${H}`,{method:"POST",body:We,type:"beacon"})},[ee,n,h,ae?.enablePreview,ae,gt,et]),ri=re(H=>dt(void 0,void 0,void 0,function*(){const z=yield ee?.("v1/recommend/like",{method:"POST",body:H});return z?.success}),[ee]),Jt=re(H=>dt(void 0,void 0,void 0,function*(){const z=yield ee?.("v1/recommend/unlike",{method:"POST",body:H});return z?.success}),[ee]),Ht=re(H=>dt(void 0,void 0,void 0,function*(){const z=yield ee?.("v1/customform",{method:"POST",body:H});return z?.success}),[ee]),Rt=re(H=>dt(void 0,void 0,void 0,function*(){var z,ce,Le,Ce,Pe,He,Xe,We;const j=!!(!((Le=(ce=(z=H?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||ce===void 0?void 0:ce.globalConfig)===null||Le===void 0)&&Le.isShowTag);if(!(!i||!j))try{const Y=(He=(Pe=(Ce=bi(i))===null||Ce===void 0?void 0:Ce.filter(se=>{var pe,ue;const Q=se.split("=")[0];return(ue=(pe=v?.channels)!==null&&pe!==void 0?pe:[])===null||ue===void 0?void 0:ue.includes(Q)}))===null||Pe===void 0?void 0:Pe.join("&"))!==null&&He!==void 0?He:"",_=yield ee?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Y)}});R((We=(Xe=_?.data)===null||Xe===void 0?void 0:Xe.tags)!==null&&We!==void 0?We:[])}catch(Y){console.log("e",Y)}}),[ee,i]),yt=re((H,z,ce,Le)=>{var Ce,Pe,He,Xe,We,j,Y,_,se,pe,ue,Q,ve,xe,te,Be,ge,ye,ot,nt,tt,lt,ut,mt,Ke,ft,je,Oe,Pt,kt,di,st,li,Yi,Gi,Zi;const Gt=ce?.bindCta,Fl=((Ce=z?.video)===null||Ce===void 0?void 0:Ce.bindProduct)||((Pe=z?.video)===null||Pe===void 0?void 0:Pe.bindProducts)&&((Xe=(He=z?.video)===null||He===void 0?void 0:He.bindProducts)===null||Xe===void 0?void 0:Xe.length)>0;let Ci="",Ki=null;Se?Ci="hashTagPage":!((We=z?.video)===null||We===void 0)&&We.url?(Ci="videoPage",Ki="video"):!((Y=(j=z?.video)===null||j===void 0?void 0:j.imgUrls)===null||Y===void 0)&&Y.length&&(Ci="imagePage",Ki="image");const Pn=(xe=(Q=(_=ce?.tags)!==null&&_!==void 0?_:(ue=(pe=(se=z?.video)===null||se===void 0?void 0:se.bindProducts)===null||pe===void 0?void 0:pe[0])===null||ue===void 0?void 0:ue.tags)!==null&&Q!==void 0?Q:(ve=z?.video)===null||ve===void 0?void 0:ve.tags)!==null&&xe!==void 0?xe:(te=z?.product)===null||te===void 0?void 0:te.tags;ct?.({eventInfo:Object.assign(Object.assign({},H),{ctaId:(Be=Gt?.itemId)!==null&&Be!==void 0?Be:"",ctaName:(ge=Gt?.title)!==null&&ge!==void 0?ge:"",contentTags:Pn?JSON.stringify(Pn):"",position:Le+"",contentId:(ot=(ye=z?.video)===null||ye===void 0?void 0:ye.itemId)!==null&&ot!==void 0?ot:"",productId:Fl?ce?.itemId:"",traceInfo:(Gi=(st=(je=(ut=(nt=Gt?.traceInfo)!==null&&nt!==void 0?nt:(lt=(tt=z?.video)===null||tt===void 0?void 0:tt.bindCta)===null||lt===void 0?void 0:lt.traceInfo)!==null&&ut!==void 0?ut:(ft=(Ke=(mt=z?.video)===null||mt===void 0?void 0:mt.bindProduct)===null||Ke===void 0?void 0:Ke.bindCta)===null||ft===void 0?void 0:ft.traceInfo)!==null&&je!==void 0?je:(di=(kt=(Pt=(Oe=z?.video)===null||Oe===void 0?void 0:Oe.bindProducts)===null||Pt===void 0?void 0:Pt[0])===null||kt===void 0?void 0:kt.bindCta)===null||di===void 0?void 0:di.traceInfo)!==null&&st!==void 0?st:(Yi=(li=z?.product)===null||li===void 0?void 0:li.bindCta)===null||Yi===void 0?void 0:Yi.traceInfo)!==null&&Gi!==void 0?Gi:"",fromKName:Ci,fromKPage:(Zi=location?.href)!==null&&Zi!==void 0?Zi:"",contentFormat:Ki})})},[ct,Se]),Ei=re(()=>{var H,z,ce;const Le=location.search.slice(1),Ce={};(H=bi(Le.replace(/\+/g,"%2B")))===null||H===void 0||H.map(Xe=>{const We=Xe.split("=")[0],j=Xe.split("=")[1];Ce[We]=j});for(const Xe in Ce)Ce[Xe]=Ce[Xe].replace(/%2B/g,"+");const Pe=Xe=>{var We;return(We=Ce[Xe])!==null&&We!==void 0?We:""},He=new Date;Ze.current=He,ct?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Pe("utm_source"),utmMedium:Pe("utm_medium"),utmCampaign:Pe("utm_campaign"),utmId:Pe("utm_id"),utmContent:Pe("utm_content"),enterTime:Math.floor(He/1e3)+"",requestId:null,enterUrl:(ce=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&ce!==void 0?ce:""},reportLayId:!1})},[ct]),Ii=re(()=>dt(void 0,void 0,void 0,function*(){var H,z;const ce=yield ee?.("v1/account",{method:"GET"});return Yt((H=ce?.data)===null||H===void 0?void 0:H.chatLabsId),((z=ce?.data)===null||z===void 0?void 0:z.consentResult)==="true"}),[ee]),ki=re(H=>dt(void 0,void 0,void 0,function*(){const z=yield ee?.("v1/account/consent",{method:"POST",body:{consentResult:H}});return z?.success}),[ee]);he(()=>{Et||Ei()},[Et]),he(()=>{if(Et||a)return;O(!0);let H,z;_e().then(ce=>{var Le,Ce,Pe,He,Xe,We,j,Y,_,se,pe;if(ce){const ue=Vt(ce);let Q,ve;if(ce?.layoutVariantId){H=ce?.layoutVariantId,xt(ce?.layoutVariantId);const xe=(Ce=(Le=ce?.layoutVariantId)===null||Le===void 0?void 0:Le.split("-"))===null||Ce===void 0?void 0:Ce[1];xe&&(Q=x?.find(te=>te?.id===xe),Q?($e(Q),document.title=(Pe=Q?.name)!==null&&Pe!==void 0?Pe:"home",ve=(Xe=(He=Q?.data)===null||He===void 0?void 0:He.sxpPageConf)===null||Xe===void 0?void 0:Xe.globalConfig,be(ve),C?.(Q?.data),!((_=(Y=(j=(We=ve?.consent)===null||We===void 0?void 0:We[0])===null||j===void 0?void 0:j.item)===null||Y===void 0?void 0:Y.props)===null||_===void 0)&&_.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(rt||(ve?.playbook==="organic menu"||!ve&&ae?.playbook==="organic menu"?(jt("organicMenu"),ue.unshift("organic menu"),z="organicMenu"):(jt("paidMedia"),z="paidMedia")),L(ue),Ye(ue),Rt(Q??Mt),rt){const xe=ue?.[0],te=((se=xe?.video)===null||se===void 0?void 0:se.traceInfo)||((pe=xe?.product)===null||pe===void 0?void 0:pe.traceInfo)||"";ct?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:te,branchfeed:rt},H&&{layoutVariantId:H})}),ct?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:te,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-qe?.current)/1e3)+""},H&&{layoutVariantId:H})})}}}).finally(()=>{ct({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},H&&{layoutVariantId:H}),z&&{playbookType:z})}),O(!1)})},[Et,rt]),he(()=>{a&&(O(!0),Rt(m),_e().then(H=>{if(H){const z=Vt(H);ae?.playbook==="organic menu"&&!rt&&z.unshift("organic menu"),L(z),Ye(z)}}).finally(()=>{O(!1)}))},[_e,Rt,rt]);const qi=Bt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return u.createElement(Kn.Provider,{value:{rtcList:I,setRtcList:L,mutateLike:ri,mutateUnlike:Jt,submitForm:Ht,popupDetailData:$,loadVideos:It,setPopupDetailData:ie,getRecommendVideos:_e,bffEventReport:ct,isPreview:a,loading:F,sxpParameter:d,waterFallData:fe,setWaterFallData:we,ctaEvent:yt,swiperRef:P,openHashtag:ne,setOpenHashtag:Re,cacheRtcList:ze,setCacheRtcList:Ye,cacheActiveIndex:G,setCacheActiveIndex:J,isFromHashtag:Se,setIsFromHashtag:Te,appDomain:s,hashTagSize:c,loadingImage:r??qi,isOpenHashTag:p,tagList:E,setLoading:O,videoRef:Ee,setVideoRef:de,bffFbReport:ni,isAgreePolicy:U,setIsAgreePolicy:K,curTime:Ze,h5EnterLink:Ei,themeTag:Fe,isShowConsent:Et,selectTag:Qe,setSelectTag:it,globalConfig:ae,popupCurTimeRef:Z,checkCommodityIndexRef:ke,isEditor:S,isNoMoreData:q,updateChannel:ti,channel:rt,eventTimeList:At,setEventTimeList:Tt,multiPostTimeRef:qe,refreshFeSession:ii,getAccount:Ii,accountSonsent:ki}},Et?u.createElement(so,Object.assign({},(M=(T=(w=ae?.consent)===null||w===void 0?void 0:w[0])===null||T===void 0?void 0:T.item)===null||M===void 0?void 0:M.props)):t({rtcList:I,mutateLike:ri,mutateUnlike:Jt,submitForm:Ht,tagList:E,pageData:Mt}))};var Jn=Ne(ro);function Ue(){return hi(Kn)}var _n;(function(t){t.STRING="string",t.NUMBER="number",t.ARRAY="array",t.OBJECT="object",t.BOOLEAN="boolean",t.ARRAY_OBJECT="array-object",t.ARRAY_STRING="array-string",t.ARRAY_NUMBER="array-number"})(_n||(_n={}));const Qn=Ai({$store:{},options:[],configs:[]}),co=({children:t,isSsr:e,enable:i})=>{const[n,o]=X([]),{schema:l}=_t(),[a,d]=X(l.__STORE__||{}),[s,c]=X([]);he(()=>{var h;e||On(s,l?.dataSource)||c((h=l?.dataSource)!==null&&h!==void 0?h:[])},[l?.dataSource,e]);const r=re(()=>dt(void 0,void 0,void 0,function*(){const{$store:h,idMapName:f}=yield Vn("",s);d(h),p(h,f)}),[s]),p=(h,f)=>{const y=[];Object.entries(h).forEach(([b,S])=>{Object.keys(S).forEach(v=>{const g={label:`${f[b]} - ${v}`,value:`{{ ${b}.${v} }}`};y.push(g)})}),o(y)};return he(()=>{e||r()},[r,e,l]),i?u.createElement(Qn.Provider,{value:{$store:l.__STORE__||a,options:n,configs:s}},t):t};var uo=Ne(co);const Mi={id:Li(6,10),item:{type:"common",h:300,category:"block",displayName:"block",isFirstLayout:!0,w:1e3},point:{i:"x-0",x:-38.34375,y:0,w:1e3,h:300,isBounded:!0,actualX:0,actualY:0},pathArr:[0],positionY:0},tn={id:"",duration:0,name:"none"},$n=u.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Mi],redoStack:[],popup:tn,setPopup:()=>{}}),el=Oi(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:o=!0,utmVal:l},a)=>{const[d,s]=X(null),[c,r]=X(n||{pointData:[Mi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[p,h]=X([Mi]),[f,y]=X([[Mi]]),[b,S]=X([]),[v,g]=X(tn);typeof window<"u"&&(window.sxpPopup=(N,A)=>{g(Object.assign(Object.assign(Object.assign({},tn),{id:N}),A))}),typeof window<"u"&&(window.getJointUtmLink=N=>(lo(),N?.indexOf("?")!==-1?N+(l?"&"+l:""):N+(l?"?"+l:""))),he(()=>{y([c.pointData]),S([])},[c.type]);const m=re(N=>{const A=ci(c);A&&(A.dataSource=N,r?.(A))},[c]),[x,C]=X();Mn(a,()=>({loadSchema(N){N&&(y([N.pointData]),r(N))},exportSchema(){return ci(c)},getPageInfoData(){return x},initPageInfoData(N){N&&C(N)}}));const k=me(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return u.createElement($n.Provider,{value:{resolver:e,currentNode:d,schema:c,setCurrentNode:s,setSchema:r,saveDataSource:m,prePiontData:p,setPrePiontData:h,pageInfoData:x,setPageInfoData:N=>C(Object.assign(Object.assign({},x),N)),undoStack:f,redoStack:b,setRedoStack:S,setUndoStack:y,getCurPageConf:k,popup:v,setPopup:g}},u.createElement(uo,{isSsr:i,enable:o},t))});var vo=Object.freeze({__proto__:null,EditorCore:el}),po=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],mo=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Ct(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:o}=Ue(),l=re((s,c,r,p,h,f)=>{var y,b,S,v,g,m,x,C,k,N,A,w,T,M,I,L,E,R,F,O,V,D,P,B,U,K,$,ie,fe,we,ne,Re,ze,Ye,G,J,Se,Te;if(n?.findIndex(qe=>qe.target===s?.target)!==-1)return;s&&o?.(qe=>[...qe,{target:s?.target,time:new Date}]);let de="";e&&(!((b=(y=c?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0)&&b.length||!((S=c?.video)===null||S===void 0)&&S.bindProduct)?de="pdpPage":i?de="hashTagPage":!((v=c?.video)===null||v===void 0)&&v.url?de="videoPage":!((g=c?.video)===null||g===void 0)&&g.imgUrls&&(!((x=(m=c?.video)===null||m===void 0?void 0:m.imgUrls)===null||x===void 0)&&x.length)?de="imagePage":c?.product&&(de="productPage");const Fe=(M=(w=(C=r?.tags)!==null&&C!==void 0?C:(A=(N=(k=c?.video)===null||k===void 0?void 0:k.bindProducts)===null||N===void 0?void 0:N[0])===null||A===void 0?void 0:A.tags)!==null&&w!==void 0?w:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&M!==void 0?M:(I=c?.product)===null||I===void 0?void 0:I.tags;let Ze=null;!((L=c?.video)===null||L===void 0)&&L.url?Ze="video":!((E=c?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(R=c?.video)===null||R===void 0?void 0:R.imgUrls)===null||F===void 0)&&F.length)&&(Ze="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(O=r?.itemId)!==null&&O!==void 0?O:"",productName:(V=r?.title)!==null&&V!==void 0?V:"",price:r?.price?r?.price+"":"0",productCollection:(D=r?.collection)!==null&&D!==void 0?D:"",fromKName:de,fromKPage:location?.href,contentTags:Fe?JSON.stringify(Fe):"",position:h+"",contentId:(B=(P=c?.video)===null||P===void 0?void 0:P.itemId)!==null&&B!==void 0?B:"",ctatId:(U=p?.itemId)!==null&&U!==void 0?U:"",traceInfo:(Te=(G=(ze=(fe=(K=f??r?.traceInfo)!==null&&K!==void 0?K:(ie=($=c?.video)===null||$===void 0?void 0:$.bindProduct)===null||ie===void 0?void 0:ie.traceInfo)!==null&&fe!==void 0?fe:(Re=(ne=(we=c?.video)===null||we===void 0?void 0:we.bindProducts)===null||ne===void 0?void 0:ne[0])===null||Re===void 0?void 0:Re.traceInfo)!==null&&ze!==void 0?ze:(Ye=c?.product)===null||Ye===void 0?void 0:Ye.traceInfo)!==null&&G!==void 0?G:(Se=(J=c?.video)===null||J===void 0?void 0:J.bindCta)===null||Se===void 0?void 0:Se.traceInfo)!==null&&Te!==void 0?Te:""},Ze&&{contentFormat:Ze})})},[t,e,i,n]),a=re((s,c,r,p,h)=>{var f,y,b,S,v,g,m,x,C,k,N,A,w,T;let M="";e&&(!((y=(f=s?.video)===null||f===void 0?void 0:f.bindProducts)===null||y===void 0)&&y.length||!((b=s?.video)===null||b===void 0)&&b.bindProduct)?M="pdpPage":s?.product&&(M="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:M,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:h+"",contentId:(S=s?.video)===null||S===void 0?void 0:S.itemId,ctatId:r?.itemId,traceInfo:(T=(A=(x=(v=c?.traceInfo)!==null&&v!==void 0?v:(m=(g=s?.video)===null||g===void 0?void 0:g.bindProduct)===null||m===void 0?void 0:m.traceInfo)!==null&&x!==void 0?x:(N=(k=(C=s?.video)===null||C===void 0?void 0:C.bindProducts)===null||k===void 0?void 0:k[0])===null||N===void 0?void 0:N.traceInfo)!==null&&A!==void 0?A:(w=s?.product)===null||w===void 0?void 0:w.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-p)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),d=re((s,c,r,p)=>{c&&c===ji&&t?.({eventInfo:{lastFeed:s,themeTags:r?`['${r}']`:"",hashTags:p?`['${p}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:a,backMainFeed:d}}const fo=({layout:t,columns:e,onChange:i})=>u.createElement(u.Fragment,null,e?.map((n,o)=>u.createElement("div",{key:o,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&u.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&u.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?n?.title:"\u8BF7\u8F93\u5165",name:n?.dataIndex},i&&{onChange:i})))));var ho=Ne(fo);const Ao=t=>{var e,i,{columns:n,style:o,title:l,textStyle:a,submitBgColor:d,submitColor:s,submitText:c,layoutType:r="inline",isExternalLink:p,isPopup:h,onClick:f,onClose:y,submitButtonStyle:b}=t,S=at(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=Ue(),{jumpToWeb:m}=Ct(),[x,C]=X(!1),[k,N]=X({}),[A,w]=X(0),T=me(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),M=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),I=me(()=>ci(n)||T,[n,T]),L=re(R=>{const{name:F,value:O}=R.target;N(Object.assign(Object.assign({},k),{[F]:O}))},[k]),E=Pi(R=>dt(void 0,void 0,void 0,function*(){var F,O,V,D,P;const B=k;if(!B)return;const U=(O=(F=Object.keys(B))===null||F===void 0?void 0:F.map($=>{var ie;return{name:$,value:(ie=B[$])!==null&&ie!==void 0?ie:""}}))===null||O===void 0?void 0:O.filter($=>$?.value);if(!U||!U?.length)return;C(!0);const K=yield v?.({attributes:U});if(C(!1),K){if(p){const $=g,ie=(V=$?.video)===null||V===void 0?void 0:V.bindProduct,fe=(P=(D=$?.video)===null||D===void 0?void 0:D.bindProduct)===null||P===void 0?void 0:P.bindCta,we=g?.index;m(R,$,ie,fe,we)}h||y?.(),f?.()}}),1e3);return he(()=>{const R=()=>{var F,O;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((O=document?.body)===null||O===void 0?void 0:O.clientHeight))<M?w(50):w(0)};return window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}},[]),u.createElement("div",{className:"pb-appoint-form"},u.createElement("div",{className:`pb-appoint-form-title ${Ve(Object.assign({},a))}`,dangerouslySetInnerHTML:{__html:Me(l,a)}}),u.createElement("div",Object.assign({className:Ve(Object.assign(Object.assign({},o),{marginTop:A}))},S),u.createElement("div",{className:"pb-appoint-form-container"},u.createElement(ho,{columns:I,layout:r,onChange:L}))),u.createElement("div",{className:"pb-appoint-form-btn-wrapper"},u.createElement("button",{"aria-label":c,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:s,background:d},b),dangerouslySetInnerHTML:{__html:Me(x?"loading...":c,b)}})))};var bo=Ne(Ao);function vt(t,e){return t.extend=e,t}const go=vt(bo,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:mo,bindableProps:[],interactionRender:po},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var yo=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}];function tl(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function nn(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:tl(e[i])&&tl(t[i])&&Object.keys(e[i]).length>0&&nn(t[i],e[i])})}const il={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 Ot(){const t=typeof document<"u"?document:{};return nn(t,il),t}const wo={document:il,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 St(){const t=typeof window<"u"?window:{};return nn(t,wo),t}function Qt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function So(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ui(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Ft(){return Date.now()}function xo(t){const e=St();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function To(t,e){e===void 0&&(e="x");const i=St();let n,o,l;const a=xo(t);return i.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(d=>d.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(o==="none"?"":o)):(l=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?o=l.m41:n.length===16?o=parseFloat(n[12]):o=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?o=l.m42:n.length===16?o=parseFloat(n[13]):o=parseFloat(n[5])),o||0}function Ni(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Eo(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Nt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!Eo(n)){const o=Object.keys(Object(n)).filter(l=>e.indexOf(l)<0);for(let l=0,a=o.length;l<a;l+=1){const d=o[l],s=Object.getOwnPropertyDescriptor(n,d);s!==void 0&&s.enumerable&&(Ni(t[d])&&Ni(n[d])?n[d].__swiper__?t[d]=n[d]:Nt(t[d],n[d]):!Ni(t[d])&&Ni(n[d])?(t[d]={},n[d].__swiper__?t[d]=n[d]:Nt(t[d],n[d])):t[d]=n[d])}}}return t}function Di(t,e,i){t.style.setProperty(e,i)}function nl(t){let{swiper:e,targetPosition:i,side:n}=t;const o=St(),l=-e.translate;let a=null,d;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const c=i>l?"next":"prev",r=(h,f)=>c==="next"&&h>=f||c==="prev"&&h<=f,p=()=>{d=new Date().getTime(),a===null&&(a=d);const h=Math.max(Math.min((d-a)/s,1),0),f=.5-Math.cos(h*Math.PI)/2;let y=l+f*(i-l);if(r(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),r(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),o.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=o.requestAnimationFrame(p)};p()}function Xt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Vi(t){try{console.warn(t);return}catch{}}function vi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Qt(e)),i}function ll(t){const e=St(),i=Ot(),n=t.getBoundingClientRect(),o=i.body,l=t.clientTop||o.clientTop||0,a=t.clientLeft||o.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+d-l,left:n.left+s-a}}function Io(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function ko(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function $t(t,e){return St().getComputedStyle(t,null).getPropertyValue(e)}function gi(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Ri(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function ln(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function on(t,e,i){const n=St();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ge(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function an(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Ot(),a=St();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function d(r){if(!e.enabled)return;const{rtlTranslate:p}=e;let h=r;h.originalEvent&&(h=h.originalEvent);const f=h.keyCode||h.charCode,y=e.params.keyboard.pageUpDown,b=y&&f===33,S=y&&f===34,v=f===37,g=f===39,m=f===38,x=f===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&x||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&m||b))return!1;if(!(h.shiftKey||h.altKey||h.ctrlKey||h.metaKey)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(b||S||v||g||m||x)){let C=!1;if(Ri(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ri(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,N=k.clientWidth,A=k.clientHeight,w=a.innerWidth,T=a.innerHeight,M=ll(k);p&&(M.left-=k.scrollLeft);const I=[[M.left,M.top],[M.left+N,M.top],[M.left,M.top+A],[M.left+N,M.top+A]];for(let L=0;L<I.length;L+=1){const E=I[L];if(E[0]>=0&&E[0]<=w&&E[1]>=0&&E[1]<=T){if(E[0]===0&&E[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((b||S||v||g)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),((S||g)&&!p||(b||v)&&p)&&e.slideNext(),((b||v)&&!p||(S||g)&&p)&&e.slidePrev()):((b||S||m||x)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),(S||x)&&e.slideNext(),(b||m)&&e.slidePrev()),o("keyPress",f)}}function s(){e.keyboard.enabled||(l.addEventListener("keydown",d),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(l.removeEventListener("keydown",d),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&s()}),n("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:s,disable:c})}function Bi(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=St();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,d=Ft(),s;const c=[];function r(m){let N=0,A=0,w=0,T=0;return"detail"in m&&(A=m.detail),"wheelDelta"in m&&(A=-m.wheelDelta/120),"wheelDeltaY"in m&&(A=-m.wheelDeltaY/120),"wheelDeltaX"in m&&(N=-m.wheelDeltaX/120),"axis"in m&&m.axis===m.HORIZONTAL_AXIS&&(N=A,A=0),w=N*10,T=A*10,"deltaY"in m&&(T=m.deltaY),"deltaX"in m&&(w=m.deltaX),m.shiftKey&&!w&&(w=T,T=0),(w||T)&&m.deltaMode&&(m.deltaMode===1?(w*=40,T*=40):(w*=800,T*=800)),w&&!N&&(N=w<1?-1:1),T&&!A&&(A=T<1?-1:1),{spinX:N,spinY:A,pixelX:w,pixelY:T}}function p(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function f(m){return e.params.mousewheel.thresholdDelta&&m.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Ft()-d<e.params.mousewheel.thresholdTime?!1:m.delta>=6&&Ft()-d<60?!0:(m.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),o("scroll",m.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),o("scroll",m.raw)),d=new l.Date().getTime(),!1)}function y(m){const x=e.params.mousewheel;if(m.direction<0){if(e.isEnd&&!e.params.loop&&x.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&x.releaseOnEdges)return!0;return!1}function b(m){let x=m,C=!0;if(!e.enabled||m.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const k=e.params.mousewheel;e.params.cssMode&&x.preventDefault();let N=e.el;e.params.mousewheel.eventsTarget!=="container"&&(N=document.querySelector(e.params.mousewheel.eventsTarget));const A=N&&N.contains(x.target);if(!e.mouseEntered&&!A&&!k.releaseOnEdges)return!0;x.originalEvent&&(x=x.originalEvent);let w=0;const T=e.rtlTranslate?-1:1,M=r(x);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(M.pixelX)>Math.abs(M.pixelY))w=-M.pixelX*T;else return!0;else if(Math.abs(M.pixelY)>Math.abs(M.pixelX))w=-M.pixelY;else return!0;else w=Math.abs(M.pixelX)>Math.abs(M.pixelY)?-M.pixelX*T:-M.pixelY;if(w===0)return!0;k.invert&&(w=-w);let I=e.getTranslate()+w*k.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),C=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),C&&e.params.nested&&x.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const L={time:Ft(),delta:Math.abs(w),direction:Math.sign(w),raw:m};c.length>=2&&c.shift();const E=c.length?c[c.length-1]:void 0;if(c.push(L),E?(L.direction!==E.direction||L.delta>E.delta||L.time>E.time+150)&&f(L):f(L),y(L))return!0}else{const L={time:Ft(),delta:Math.abs(w),direction:Math.sign(w)},E=s&&L.time<s.time+500&&L.delta<=s.delta&&L.direction===s.direction;if(!E){s=void 0;let R=e.getTranslate()+w*k.sensitivity;const F=e.isBeginning,O=e.isEnd;if(R>=e.minTranslate()&&(R=e.minTranslate()),R<=e.maxTranslate()&&(R=e.maxTranslate()),e.setTransition(0),e.setTranslate(R),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!O&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:L.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,c.length>=15&&c.shift();const V=c.length?c[c.length-1]:void 0,D=c[0];if(c.push(L),V&&(L.delta>V.delta||L.direction!==V.direction))c.splice(0);else if(c.length>=15&&L.time-D.time<500&&D.delta-L.delta>=1&&L.delta<=6){const P=w>0?.8:.2;s=L,c.splice(0),a=ui(()=>{e.slideToClosest(e.params.speed,!0,void 0,P)},0)}a||(a=ui(()=>{s=L,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||o("scroll",x),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k.releaseOnEdges&&(R===e.minTranslate()||R===e.maxTranslate()))return!0}}return x.preventDefault?x.preventDefault():x.returnValue=!1,!1}function S(m){let x=e.el;e.params.mousewheel.eventsTarget!=="container"&&(x=document.querySelector(e.params.mousewheel.eventsTarget)),x[m]("mouseenter",p),x[m]("mouseleave",h),x[m]("wheel",b)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",b),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,b),!0):e.mousewheel.enabled?(S("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function sn(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(o=>{if(!i[o]&&i.auto===!0){let l=Xt(t.el,`.${n[o]}`)[0];l||(l=vi("div",n[o]),l.className=n[o],t.el.append(l)),i[o]=l,e[o]=l}}),i}function rn(t){let{swiper:e,extendParams:i,on:n,emit:o}=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};function l(y){let b;return y&&typeof y=="string"&&e.isElement&&(b=e.el.querySelector(y),b)?b:(y&&(typeof y=="string"&&(b=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&b&&b.length>1&&e.el.querySelectorAll(y).length===1?b=e.el.querySelector(y):b&&b.length===1&&(b=b[0])),y&&!b?y:b)}function a(y,b){const S=e.params.navigation;y=Ge(y),y.forEach(v=>{v&&(v.classList[b?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=b),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function d(){const{nextEl:y,prevEl:b}=e.navigation;if(e.params.loop){a(b,!1),a(y,!1);return}a(b,e.isBeginning&&!e.params.rewind),a(y,e.isEnd&&!e.params.rewind)}function s(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),o("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),o("navigationNext"))}function r(){const y=e.params.navigation;if(e.params.navigation=sn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let b=l(y.nextEl),S=l(y.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:S}),b=Ge(b),S=Ge(S);const v=(g,m)=>{g&&g.addEventListener("click",m==="next"?c:s),!e.enabled&&g&&g.classList.add(...y.lockClass.split(" "))};b.forEach(g=>v(g,"next")),S.forEach(g=>v(g,"prev"))}function p(){let{nextEl:y,prevEl:b}=e.navigation;y=Ge(y),b=Ge(b);const S=(v,g)=>{v.removeEventListener("click",g==="next"?c:s),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(v=>S(v,"next")),b.forEach(v=>S(v,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?f():(r(),d())}),n("toEdge fromEdge lock unlock",()=>{d()}),n("destroy",()=>{p()}),n("enable disable",()=>{let{nextEl:y,prevEl:b}=e.navigation;if(y=Ge(y),b=Ge(b),e.enabled){d();return}[...y,...b].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),n("click",(y,b)=>{let{nextEl:S,prevEl:v}=e.navigation;S=Ge(S),v=Ge(v);const g=b.target;let m=v.includes(g)||S.includes(g);if(e.isElement&&!m){const x=b.path||b.composedPath&&b.composedPath();x&&(m=x.find(C=>S.includes(C)||v.includes(C)))}if(e.params.navigation.hideOnClick&&!m){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let x;S.length?x=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(x=v[0].classList.contains(e.params.navigation.hiddenClass)),o(x===!0?"navigationShow":"navigationHide"),[...S,...v].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),r(),d()},f=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:h,disable:f,update:d,init:r,destroy:p})}function Zt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Fi(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l="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:v=>v,formatFractionTotal:v=>v,bulletClass:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),e.pagination={el:null,bullets:[]};let a,d=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(v,g){const{bulletActiveClass:m}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${m}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${m}-${g}-${g}`)))}function r(v){const g=v.target.closest(Zt(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const m=gi(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===m)return;e.slideToLoop(m)}else e.slideTo(m)}function p(){const v=e.rtl,g=e.params.pagination;if(s())return;let m=e.pagination.el;m=Ge(m);let x,C;const k=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,N=e.params.loop?Math.ceil(k/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,x=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(x=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,x=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const A=e.pagination.bullets;let w,T,M;if(g.dynamicBullets&&(a=on(A[0],e.isHorizontal()?"width":"height",!0),m.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${a*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&C!==void 0&&(d+=x-(C||0),d>g.dynamicMainBullets-1?d=g.dynamicMainBullets-1:d<0&&(d=0)),w=Math.max(x-d,0),T=w+(Math.min(A.length,g.dynamicMainBullets)-1),M=(T+w)/2),A.forEach(I=>{const L=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();I.classList.remove(...L)}),m.length>1)A.forEach(I=>{const L=gi(I);L===x?I.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),g.dynamicBullets&&(L>=w&&L<=T&&I.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),L===w&&c(I,"prev"),L===T&&c(I,"next"))});else{const I=A[x];if(I&&I.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&A.forEach((L,E)=>{L.setAttribute("part",E===x?"bullet-active":"bullet")}),g.dynamicBullets){const L=A[w],E=A[T];for(let R=w;R<=T;R+=1)A[R]&&A[R].classList.add(...`${g.bulletActiveClass}-main`.split(" "));c(L,"prev"),c(E,"next")}}if(g.dynamicBullets){const I=Math.min(A.length,g.dynamicMainBullets+4),L=(a*I-a)/2-M*a,E=v?"right":"left";A.forEach(R=>{R.style[e.isHorizontal()?E:"top"]=`${L}px`})}}m.forEach((A,w)=>{if(g.type==="fraction"&&(A.querySelectorAll(Zt(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(x+1)}),A.querySelectorAll(Zt(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(N)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const M=(x+1)/N;let I=1,L=1;T==="horizontal"?I=M:L=M,A.querySelectorAll(Zt(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${L})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(A.innerHTML=g.renderCustom(e,x+1,N),w===0&&o("paginationRender",A)):(w===0&&o("paginationRender",A),o("paginationUpdate",A)),e.params.watchOverflow&&e.enabled&&A.classList[e.isLocked?"add":"remove"](g.lockClass)})}function h(){const v=e.params.pagination;if(s())return;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let m=e.pagination.el;m=Ge(m);let x="";if(v.type==="bullets"){let C=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>g&&(C=g);for(let k=0;k<C;k+=1)v.renderBullet?x+=v.renderBullet.call(e,k,v.bulletClass):x+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?x=v.renderFraction.call(e,v.currentClass,v.totalClass):x=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?x=v.renderProgressbar.call(e,v.progressbarFillClass):x=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],m.forEach(C=>{v.type!=="custom"&&(C.innerHTML=x||""),v.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(Zt(v.bulletClass)))}),v.type!=="custom"&&o("paginationRender",m[0])}function f(){e.params.pagination=sn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let g;typeof v.el=="string"&&e.isElement&&(g=e.el.querySelector(v.el)),!g&&typeof v.el=="string"&&(g=[...document.querySelectorAll(v.el)]),g||(g=v.el),!(!g||g.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...e.el.querySelectorAll(v.el)],g.length>1&&(g=g.filter(m=>Ri(m,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Ge(g),g.forEach(m=>{v.type==="bullets"&&v.clickable&&m.classList.add(...(v.clickableClass||"").split(" ")),m.classList.add(v.modifierClass+v.type),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(m.classList.add(`${v.modifierClass}${v.type}-dynamic`),d=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&m.classList.add(v.progressbarOppositeClass),v.clickable&&m.addEventListener("click",r),e.enabled||m.classList.add(v.lockClass)}))}function y(){const v=e.params.pagination;if(s())return;let g=e.pagination.el;g&&(g=Ge(g),g.forEach(m=>{m.classList.remove(v.hiddenClass),m.classList.remove(v.modifierClass+v.type),m.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(m.classList.remove(...(v.clickableClass||"").split(" ")),m.removeEventListener("click",r))})),e.pagination.bullets&&e.pagination.bullets.forEach(m=>m.classList.remove(...v.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=Ge(g),g.forEach(m=>{m.classList.remove(v.horizontalClass,v.verticalClass),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?S():(f(),h(),p())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&p()}),n("snapIndexChange",()=>{p()}),n("snapGridLengthChange",()=>{h(),p()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Ge(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{p()}),n("click",(v,g)=>{const m=g.target,x=Ge(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&x&&x.length>0&&!m.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&m===e.navigation.nextEl||e.navigation.prevEl&&m===e.navigation.prevEl))return;const C=x[0].classList.contains(e.params.pagination.hiddenClass);o(C===!0?"paginationShow":"paginationHide"),x.forEach(k=>k.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ge(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),f(),h(),p()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ge(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:b,disable:S,render:h,update:p,init:f,destroy:y})}function Co(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Ot();let a=!1,d=null,s=null,c,r,p,h;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I,rtlTranslate:L}=e,{dragEl:E,el:R}=I,F=e.params.scrollbar,O=e.params.loop?e.progressLoop:e.progress;let V=r,D=(p-r)*O;L?(D=-D,D>0?(V=r-D,D=0):-D+r>p&&(V=p+D)):D<0?(V=r+D,D=0):D+r>p&&(V=p-D),e.isHorizontal()?(E.style.transform=`translate3d(${D}px, 0, 0)`,E.style.width=`${V}px`):(E.style.transform=`translate3d(0px, ${D}px, 0)`,E.style.height=`${V}px`),F.hide&&(clearTimeout(d),R.style.opacity=1,d=setTimeout(()=>{R.style.opacity=0,R.style.transitionDuration="400ms"},1e3))}function y(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:L,el:E}=I;L.style.width="",L.style.height="",p=e.isHorizontal()?E.offsetWidth:E.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?r=p*h:r=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?L.style.width=`${r}px`:L.style.height=`${r}px`,h>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(I){return e.isHorizontal()?I.clientX:I.clientY}function v(I){const{scrollbar:L,rtlTranslate:E}=e,{el:R}=L;let F;F=(S(I)-ll(R)[e.isHorizontal()?"left":"top"]-(c!==null?c:r/2))/(p-r),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const O=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(O),e.setTranslate(O),e.updateActiveIndex(),e.updateSlidesClasses()}function g(I){const L=e.params.scrollbar,{scrollbar:E,wrapperEl:R}=e,{el:F,dragEl:O}=E;a=!0,c=I.target===O?S(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),R.style.transitionDuration="100ms",O.style.transitionDuration="100ms",v(I),clearTimeout(s),F.style.transitionDuration="0ms",L.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",I)}function m(I){const{scrollbar:L,wrapperEl:E}=e,{el:R,dragEl:F}=L;a&&(I.preventDefault&&I.cancelable?I.preventDefault():I.returnValue=!1,v(I),E.style.transitionDuration="0ms",R.style.transitionDuration="0ms",F.style.transitionDuration="0ms",o("scrollbarDragMove",I))}function x(I){const L=e.params.scrollbar,{scrollbar:E,wrapperEl:R}=e,{el:F}=E;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",R.style.transitionDuration=""),L.hide&&(clearTimeout(s),s=ui(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",I),L.snapOnRelease&&e.slideToClosest())}function C(I){const{scrollbar:L,params:E}=e,R=L.el;if(!R)return;const F=R,O=E.passiveListeners?{passive:!1,capture:!1}:!1,V=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const D=I==="on"?"addEventListener":"removeEventListener";F[D]("pointerdown",g,O),l[D]("pointermove",m,O),l[D]("pointerup",x,V)}function k(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function N(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function A(){const{scrollbar:I,el:L}=e;e.params.scrollbar=sn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let R;if(typeof E.el=="string"&&e.isElement&&(R=e.el.querySelector(E.el)),!R&&typeof E.el=="string"){if(R=l.querySelectorAll(E.el),!R.length)return}else R||(R=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&R.length>1&&L.querySelectorAll(E.el).length===1&&(R=L.querySelector(E.el)),R.length>0&&(R=R[0]),R.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let F;R&&(F=R.querySelector(Zt(e.params.scrollbar.dragClass)),F||(F=vi("div",e.params.scrollbar.dragClass),R.append(F))),Object.assign(I,{el:R,dragEl:F}),E.draggable&&k(),R&&R.classList[e.enabled?"remove":"add"](...Qt(e.params.scrollbar.lockClass))}function w(){const I=e.params.scrollbar,L=e.scrollbar.el;L&&L.classList.remove(...Qt(e.isHorizontal()?I.horizontalClass:I.verticalClass)),N()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const I=e.params.scrollbar;let{el:L}=e.scrollbar;L=Ge(L),L.forEach(E=>{E.classList.remove(I.horizontalClass,I.verticalClass),E.classList.add(e.isHorizontal()?I.horizontalClass:I.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?M():(A(),b(),f())}),n("update resize observerUpdate lock unlock changeDirection",()=>{b()}),n("setTranslate",()=>{f()}),n("setTransition",(I,L)=>{y(L)}),n("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](...Qt(e.params.scrollbar.lockClass))}),n("destroy",()=>{w()});const T=()=>{e.el.classList.remove(...Qt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Qt(e.params.scrollbar.scrollbarDisabledClass)),A(),b(),f()},M=()=>{e.el.classList.add(...Qt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Qt(e.params.scrollbar.scrollbarDisabledClass)),w()};Object.assign(e.scrollbar,{enable:T,disable:M,updateSize:b,setTranslate:f,init:A,destroy:w})}function dn(t){let{swiper:e,extendParams:i,on:n}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let o=null,l,a,d=new Date().getTime();function s(O){const V=o;V.length!==0&&(V.innerHTML="",V.innerHTML=O)}function c(O){O===void 0&&(O=16);const V=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(O).replace(/x/g,V)}function r(O){O=Ge(O),O.forEach(V=>{V.setAttribute("tabIndex","0")})}function p(O){O=Ge(O),O.forEach(V=>{V.setAttribute("tabIndex","-1")})}function h(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("role",V)})}function f(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("aria-roledescription",V)})}function y(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("aria-controls",V)})}function b(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("aria-label",V)})}function S(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("id",V)})}function v(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("aria-live",V)})}function g(O){O=Ge(O),O.forEach(V=>{V.setAttribute("aria-disabled",!0)})}function m(O){O=Ge(O),O.forEach(V=>{V.setAttribute("aria-disabled",!1)})}function x(O){if(O.keyCode!==13&&O.keyCode!==32)return;const V=e.params.a11y,D=O.target;if(!(e.pagination&&e.pagination.el&&(D===e.pagination.el||e.pagination.el.contains(O.target))&&!O.target.matches(Zt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const P=Ge(e.navigation.prevEl);Ge(e.navigation.nextEl).includes(D)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(V.lastSlideMessage):s(V.nextSlideMessage)),P.includes(D)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(V.firstSlideMessage):s(V.prevSlideMessage))}e.pagination&&D.matches(Zt(e.params.pagination.bulletClass))&&D.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:O,prevEl:V}=e.navigation;V&&(e.isBeginning?(g(V),p(V)):(m(V),r(V))),O&&(e.isEnd?(g(O),p(O)):(m(O),r(O)))}function k(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function N(){return k()&&e.params.pagination.clickable}function A(){const O=e.params.a11y;k()&&e.pagination.bullets.forEach(V=>{e.params.pagination.clickable&&(r(V),e.params.pagination.renderBullet||(h(V,"button"),b(V,O.paginationBulletMessage.replace(/\{\{index\}\}/,gi(V)+1)))),V.matches(Zt(e.params.pagination.bulletActiveClass))?V.setAttribute("aria-current","true"):V.removeAttribute("aria-current")})}const w=(O,V,D)=>{r(O),O.tagName!=="BUTTON"&&(h(O,"button"),O.addEventListener("keydown",x)),b(O,D),y(O,V)},T=O=>{a&&a!==O.target&&!a.contains(O.target)&&(l=!0),e.a11y.clicked=!0},M=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=O=>{d=new Date().getTime()},L=O=>{if(e.a11y.clicked||new Date().getTime()-d<100)return;const V=O.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!V||!e.slides.includes(V))return;a=V;const D=e.slides.indexOf(V)===e.activeIndex,P=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(V);D||P||O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(V.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(V),0),l=!1)}))},E=()=>{const O=e.params.a11y;O.itemRoleDescriptionMessage&&f(e.slides,O.itemRoleDescriptionMessage),O.slideRole&&h(e.slides,O.slideRole);const V=e.slides.length;O.slideLabelMessage&&e.slides.forEach((D,P)=>{const B=e.params.loop?parseInt(D.getAttribute("data-swiper-slide-index"),10):P,U=O.slideLabelMessage.replace(/\{\{index\}\}/,B+1).replace(/\{\{slidesLength\}\}/,V);b(D,U)})},R=()=>{const O=e.params.a11y;e.el.append(o);const V=e.el;O.containerRoleDescriptionMessage&&f(V,O.containerRoleDescriptionMessage),O.containerMessage&&b(V,O.containerMessage);const D=e.wrapperEl,P=O.id||D.getAttribute("id")||`swiper-wrapper-${c(16)}`,B=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(D,P),v(D,B),E();let{nextEl:U,prevEl:K}=e.navigation?e.navigation:{};U=Ge(U),K=Ge(K),U&&U.forEach(ie=>w(ie,P,O.nextSlideMessage)),K&&K.forEach(ie=>w(ie,P,O.prevSlideMessage)),N()&&Ge(e.pagination.el).forEach(fe=>{fe.addEventListener("keydown",x)}),Ot().addEventListener("visibilitychange",I),e.el.addEventListener("focus",L,!0),e.el.addEventListener("focus",L,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",M,!0)};function F(){o&&o.remove();let{nextEl:O,prevEl:V}=e.navigation?e.navigation:{};O=Ge(O),V=Ge(V),O&&O.forEach(P=>P.removeEventListener("keydown",x)),V&&V.forEach(P=>P.removeEventListener("keydown",x)),N()&&Ge(e.pagination.el).forEach(B=>{B.removeEventListener("keydown",x)}),Ot().removeEventListener("visibilitychange",I),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",L,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",M,!0))}n("beforeInit",()=>{o=vi("span",e.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&R()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&A()}),n("destroy",()=>{e.params.a11y.enabled&&F()})}function Wi(t){let{swiper:e,extendParams:i,on:n,emit:o,params:l}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,d,s=l&&l.autoplay?l.autoplay.delay:3e3,c=l&&l.autoplay?l.autoplay.delay:3e3,r,p=new Date().getTime(),h,f,y,b,S,v,g;function m(V){!e||e.destroyed||!e.wrapperEl||V.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",m),!(g||V.detail&&V.detail.bySwiperTouchMove)&&T())}const x=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(c=r,h=!1);const V=e.autoplay.paused?r:p+c-new Date().getTime();e.autoplay.timeLeft=V,o("autoplayTimeLeft",V,V/s),d=requestAnimationFrame(()=>{x()})},C=()=>{let V;return e.virtual&&e.params.virtual.enabled?V=e.slides.filter(P=>P.classList.contains("swiper-slide-active"))[0]:V=e.slides[e.activeIndex],V?parseInt(V.getAttribute("data-swiper-autoplay"),10):void 0},k=V=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(d),x();let D=typeof V>"u"?e.params.autoplay.delay:V;s=e.params.autoplay.delay,c=e.params.autoplay.delay;const P=C();!Number.isNaN(P)&&P>0&&typeof V>"u"&&(D=P,s=P,c=P),r=D;const B=e.params.speed,U=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(B,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,B,!0,!0),o("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(B,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,B,!0,!0),o("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return D>0?(clearTimeout(a),a=setTimeout(()=>{U()},D)):requestAnimationFrame(()=>{U()}),D},N=()=>{p=new Date().getTime(),e.autoplay.running=!0,k(),o("autoplayStart")},A=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),o("autoplayStop")},w=(V,D)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),V||(v=!0);const P=()=>{o("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",m):T()};if(e.autoplay.paused=!0,D){S&&(r=e.params.autoplay.delay),S=!1,P();return}r=(r||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&r<0&&!e.params.loop)&&(r<0&&(r=0),P())},T=()=>{e.isEnd&&r<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),v?(v=!1,k(r)):k(),e.autoplay.paused=!1,o("autoplayResume"))},M=()=>{if(e.destroyed||!e.autoplay.running)return;const V=Ot();V.visibilityState==="hidden"&&(v=!0,w(!0)),V.visibilityState==="visible"&&T()},I=V=>{V.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&w(!0))},L=V=>{V.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",L))},R=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",L))},F=()=>{Ot().addEventListener("visibilitychange",M)},O=()=>{Ot().removeEventListener("visibilitychange",M)};n("init",()=>{e.params.autoplay.enabled&&(E(),F(),N())}),n("destroy",()=>{R(),O(),e.autoplay.running&&A()}),n("_freeModeStaticRelease",()=>{(y||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?A():w(!0,!0)}),n("beforeTransitionStart",(V,D,P)=>{e.destroyed||!e.autoplay.running||(P||!e.params.autoplay.disableOnInteraction?w(!0,!0):A())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){A();return}f=!0,y=!1,v=!1,b=setTimeout(()=>{v=!0,y=!0,w(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(b),clearTimeout(a),e.params.autoplay.disableOnInteraction){y=!1,f=!1;return}y&&e.params.cssMode&&T(),y=!1,f=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:N,stop:A,pause:w,resume:T})}function Po(t){let{swiper:e,extendParams:i,emit:n,once:o}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function l(){if(e.params.cssMode)return;const s=e.getTranslate();e.setTranslate(s),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:s,touches:c}=e;s.velocities.length===0&&s.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Ft()})}function d(s){let{currentPos:c}=s;if(e.params.cssMode)return;const{params:r,wrapperEl:p,rtlTranslate:h,snapGrid:f,touchEventsData:y}=e,S=Ft()-y.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<f.length?e.slideTo(f.length-1):e.slideTo(e.slides.length-1);return}if(r.freeMode.momentum){if(y.velocities.length>1){const A=y.velocities.pop(),w=y.velocities.pop(),T=A.position-w.position,M=A.time-w.time;e.velocity=T/M,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(M>150||Ft()-A.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeMode.momentumVelocityRatio,y.velocities.length=0;let v=1e3*r.freeMode.momentumRatio;const g=e.velocity*v;let m=e.translate+g;h&&(m=-m);let x=!1,C;const k=Math.abs(e.velocity)*20*r.freeMode.momentumBounceRatio;let N;if(m<e.maxTranslate())r.freeMode.momentumBounce?(m+e.maxTranslate()<-k&&(m=e.maxTranslate()-k),C=e.maxTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.maxTranslate(),r.loop&&r.centeredSlides&&(N=!0);else if(m>e.minTranslate())r.freeMode.momentumBounce?(m-e.minTranslate()>k&&(m=e.minTranslate()+k),C=e.minTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.minTranslate(),r.loop&&r.centeredSlides&&(N=!0);else if(r.freeMode.sticky){let A;for(let w=0;w<f.length;w+=1)if(f[w]>-m){A=w;break}Math.abs(f[A]-m)<Math.abs(f[A-1]-m)||e.swipeDirection==="next"?m=f[A]:m=f[A-1],m=-m}if(N&&o("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?v=Math.abs((-m-e.translate)/e.velocity):v=Math.abs((m-e.translate)/e.velocity),r.freeMode.sticky){const A=Math.abs((h?-m:m)-e.translate),w=e.slidesSizesGrid[e.activeIndex];A<w?v=r.speed:A<2*w?v=r.speed*1.5:v=r.speed*2.5}}else if(r.freeMode.sticky){e.slideToClosest();return}r.freeMode.momentumBounce&&x?(e.updateProgress(C),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating=!0,ln(p,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(r.speed),setTimeout(()=>{e.setTranslate(C),ln(p,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(m),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,ln(p,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(m),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeMode.sticky){e.slideToClosest();return}else r.freeMode&&n("_freeModeNoMomentumRelease");(!r.freeMode.momentum||S>=r.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:a,onTouchEnd:d}})}let cn;function Oo(){const t=St(),e=Ot();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function ol(){return cn||(cn=Oo()),cn}let un;function Lo(t){let{userAgent:e}=t===void 0?{}:t;const i=ol(),n=St(),o=n.navigator.platform,l=e||n.navigator.userAgent,a={ios:!1,android:!1},d=n.screen.width,s=n.screen.height,c=l.match(/(Android);?[\s\/]+([\d.]+)?/);let r=l.match(/(iPad).*OS\s([\d_]+)/);const p=l.match(/(iPod)(.*OS\s([\d_]+))?/),h=!r&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=o==="Win32";let y=o==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!r&&y&&i.touch&&b.indexOf(`${d}x${s}`)>=0&&(r=l.match(/(Version)\/([\d.]+)/),r||(r=[0,1,"13_0_0"]),y=!1),c&&!f&&(a.os="android",a.android=!0),(r||h||p)&&(a.os="ios",a.ios=!0),a}function al(t){return t===void 0&&(t={}),un||(un=Lo(t)),un}let vn;function jo(){const t=St(),e=al();let i=!1;function n(){const d=t.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}if(n()){const d=String(t.navigator.userAgent);if(d.includes("Version/")){const[s,c]=d.split("Version/")[1].split(" ")[0].split(".").map(r=>Number(r));i=s<16||s===16&&c<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=n(),a=l||o&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:a,isWebView:o}}function Mo(){return vn||(vn=jo()),vn}function No(t){let{swiper:e,on:i,emit:n}=t;const o=St();let l=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(p=>{a=o.requestAnimationFrame(()=>{const{width:h,height:f}=e;let y=h,b=f;p.forEach(S=>{let{contentBoxSize:v,contentRect:g,target:m}=S;m&&m!==e.el||(y=g?g.width:(v[0]||v).inlineSize,b=g?g.height:(v[0]||v).blockSize)}),(y!==h||b!==f)&&d()})}),l.observe(e.el))},c=()=>{a&&o.cancelAnimationFrame(a),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},r=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof o.ResizeObserver<"u"){s();return}o.addEventListener("resize",d),o.addEventListener("orientationchange",r)}),i("destroy",()=>{c(),o.removeEventListener("resize",d),o.removeEventListener("orientationchange",r)})}function Do(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=[],a=St(),d=function(r,p){p===void 0&&(p={});const h=a.MutationObserver||a.WebkitMutationObserver,f=new h(y=>{if(e.__preventObserver__)return;if(y.length===1){o("observerUpdate",y[0]);return}const b=function(){o("observerUpdate",y[0])};a.requestAnimationFrame?a.requestAnimationFrame(b):a.setTimeout(b,0)});f.observe(r,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),l.push(f)},s=()=>{if(e.params.observer){if(e.params.observeParents){const r=Ri(e.hostEl);for(let p=0;p<r.length;p+=1)d(r[p])}d(e.hostEl,{childList:e.params.observeSlideChildren}),d(e.wrapperEl,{attributes:!1})}},c=()=>{l.forEach(r=>{r.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",c)}var Vo={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const o=i?"unshift":"push";return t.split(" ").forEach(l=>{n.eventsListeners[l]||(n.eventsListeners[l]=[]),n.eventsListeners[l][o](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function o(){n.off(t,o),o.__emitterProxy&&delete o.__emitterProxy;for(var l=arguments.length,a=new Array(l),d=0;d<l;d++)a[d]=arguments[d];e.apply(n,a)}return o.__emitterProxy=e,n.on(t,o,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](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(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((o,l)=>{(o===e||o.__emitterProxy&&o.__emitterProxy===e)&&i.eventsListeners[n].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),n=t):(e=l[0].events,i=l[0].data,n=l[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(n,[s,...i])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(c=>{c.apply(n,i)})}),t}};function Ro(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt($t(n,"padding-left")||0,10)-parseInt($t(n,"padding-right")||0,10),i=i-parseInt($t(n,"padding-top")||0,10)-parseInt($t(n,"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 Bo(){const t=this;function e(T,M){return parseFloat(T.getPropertyValue(t.getDirectionLabel(M))||0)}const i=t.params,{wrapperEl:n,slidesEl:o,size:l,rtlTranslate:a,wrongRTL:d}=t,s=t.virtual&&i.virtual.enabled,c=s?t.virtual.slides.length:t.slides.length,r=Xt(o,`.${t.params.slideClass}, swiper-slide`),p=s?t.virtual.slides.length:r.length;let h=[];const f=[],y=[];let b=i.slidesOffsetBefore;typeof b=="function"&&(b=i.slidesOffsetBefore.call(t));let S=i.slidesOffsetAfter;typeof S=="function"&&(S=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.slidesGrid.length;let m=i.spaceBetween,x=-b,C=0,k=0;if(typeof l>"u")return;typeof m=="string"&&m.indexOf("%")>=0?m=parseFloat(m.replace("%",""))/100*l:typeof m=="string"&&(m=parseFloat(m)),t.virtualSize=-m,r.forEach(T=>{a?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Di(n,"--swiper-centered-offset-before",""),Di(n,"--swiper-centered-offset-after",""));const N=i.grid&&i.grid.rows>1&&t.grid;N?t.grid.initSlides(r):t.grid&&t.grid.unsetSlides();let A;const w=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<p;T+=1){A=0;let M;if(r[T]&&(M=r[T]),N&&t.grid.updateSlide(T,M,r),!(r[T]&&$t(M,"display")==="none")){if(i.slidesPerView==="auto"){w&&(r[T].style[t.getDirectionLabel("width")]="");const I=getComputedStyle(M),L=M.style.transform,E=M.style.webkitTransform;if(L&&(M.style.transform="none"),E&&(M.style.webkitTransform="none"),i.roundLengths)A=t.isHorizontal()?on(M,"width",!0):on(M,"height",!0);else{const R=e(I,"width"),F=e(I,"padding-left"),O=e(I,"padding-right"),V=e(I,"margin-left"),D=e(I,"margin-right"),P=I.getPropertyValue("box-sizing");if(P&&P==="border-box")A=R+V+D;else{const{clientWidth:B,offsetWidth:U}=M;A=R+F+O+V+D+(U-B)}}L&&(M.style.transform=L),E&&(M.style.webkitTransform=E),i.roundLengths&&(A=Math.floor(A))}else A=(l-(i.slidesPerView-1)*m)/i.slidesPerView,i.roundLengths&&(A=Math.floor(A)),r[T]&&(r[T].style[t.getDirectionLabel("width")]=`${A}px`);r[T]&&(r[T].swiperSlideSize=A),y.push(A),i.centeredSlides?(x=x+A/2+C/2+m,C===0&&T!==0&&(x=x-l/2-m),T===0&&(x=x-l/2-m),Math.abs(x)<1/1e3&&(x=0),i.roundLengths&&(x=Math.floor(x)),k%i.slidesPerGroup===0&&h.push(x),f.push(x)):(i.roundLengths&&(x=Math.floor(x)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup===0&&h.push(x),f.push(x),x=x+A+m),t.virtualSize+=A+m,C=A,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+S,a&&d&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+m}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+m}px`),N&&t.grid.updateWrapperSize(A,h),!i.centeredSlides){const T=[];for(let M=0;M<h.length;M+=1){let I=h[M];i.roundLengths&&(I=Math.floor(I)),h[M]<=t.virtualSize-l&&T.push(I)}h=T,Math.floor(t.virtualSize-l)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-l)}if(s&&i.loop){const T=y[0]+m;if(i.slidesPerGroup>1){const M=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),I=T*i.slidesPerGroup;for(let L=0;L<M;L+=1)h.push(h[h.length-1]+I)}for(let M=0;M<t.virtual.slidesBefore+t.virtual.slidesAfter;M+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+T),f.push(f[f.length-1]+T),t.virtualSize+=T}if(h.length===0&&(h=[0]),m!==0){const T=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");r.filter((M,I)=>!i.cssMode||i.loop?!0:I!==r.length-1).forEach(M=>{M.style[T]=`${m}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(I=>{T+=I+(m||0)}),T-=m;const M=T-l;h=h.map(I=>I<=0?-b:I>M?M+S:I)}if(i.centerInsufficientSlides){let T=0;y.forEach(I=>{T+=I+(m||0)}),T-=m;const M=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+M<l){const I=(l-T-M)/2;h.forEach((L,E)=>{h[E]=L-I}),f.forEach((L,E)=>{f[E]=L+I})}}if(Object.assign(t,{slides:r,snapGrid:h,slidesGrid:f,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Di(n,"--swiper-centered-offset-before",`${-h[0]}px`),Di(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],M=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(I=>I+T),t.slidesGrid=t.slidesGrid.map(I=>I+M)}if(p!==c&&t.emit("slidesLengthChange"),h.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!s&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,M=t.el.classList.contains(T);p<=i.maxBackfaceHiddenSlides?M||t.el.classList.add(T):M&&t.el.classList.remove(T)}}function Fo(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let o=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=d=>n?e.slides[e.getSlideIndexByData(d)]:e.slides[d];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(d=>{i.push(d)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const d=e.activeIndex+l;if(d>e.slides.length&&!n)break;i.push(a(d))}else i.push(a(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const d=i[l].offsetHeight;o=d>o?d:o}(o||o===0)&&(e.wrapperEl.style.height=`${o}px`)}function Wo(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}const sl=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function zo(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:o,snapGrid:l}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;o&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let d=i.spaceBetween;typeof d=="string"&&d.indexOf("%")>=0?d=parseFloat(d.replace("%",""))/100*e.size:typeof d=="string"&&(d=parseFloat(d));for(let s=0;s<n.length;s+=1){const c=n[s];let r=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(r-=n[0].swiperSlideOffset);const p=(a+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),h=(a-l[0]+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),f=-(a-r),y=f+e.slidesSizesGrid[s],b=f>=0&&f<=e.size-e.slidesSizesGrid[s],S=f>=0&&f<e.size-1||y>1&&y<=e.size||f<=0&&y>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(s)),sl(c,S,i.slideVisibleClass),sl(c,b,i.slideFullyVisibleClass),c.progress=o?-p:p,c.originalProgress=o?-h:h}}function Ho(t){const e=this;if(typeof t>"u"){const r=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*r||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:o,isBeginning:l,isEnd:a,progressLoop:d}=e;const s=l,c=a;if(n===0)o=0,l=!0,a=!0;else{o=(t-e.minTranslate())/n;const r=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;l=r||o<=0,a=p||o>=1,r&&(o=0),p&&(o=1)}if(i.loop){const r=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[r],f=e.slidesGrid[p],y=e.slidesGrid[e.slidesGrid.length-1],b=Math.abs(t);b>=h?d=(b-h)/y:d=(b+y-f)/y,d>1&&(d-=1)}Object.assign(e,{progress:o,progressLoop:d,isBeginning:l,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!s&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(s&&!l||c&&!a)&&e.emit("fromEdge"),e.emit("progress",o)}const pn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Uo(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:o}=t,l=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,d=p=>Xt(n,`.${i.slideClass}${p}, swiper-slide${p}`)[0];let s,c,r;if(l)if(i.loop){let p=o-t.virtual.slidesBefore;p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),s=d(`[data-swiper-slide-index="${p}"]`)}else s=d(`[data-swiper-slide-index="${o}"]`);else a?(s=e.filter(p=>p.column===o)[0],r=e.filter(p=>p.column===o+1)[0],c=e.filter(p=>p.column===o-1)[0]):s=e[o];s&&(a||(r=ko(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!r&&(r=e[0]),c=Io(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(p=>{pn(p,p===s,i.slideActiveClass),pn(p,p===r,i.slideNextClass),pn(p,p===c,i.slidePrevClass)}),t.emitSlidesClasses()}const zi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let o=n.querySelector(`.${t.params.lazyPreloaderClass}`);!o&&t.isElement&&(n.shadowRoot?o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},mn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},fn=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 n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),o=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=o,d=[a-e];d.push(...Array.from({length:e}).map((s,c)=>a+n+c)),t.slides.forEach((s,c)=>{d.includes(s.column)&&mn(t,c)});return}const l=o+n-1;if(t.params.rewind||t.params.loop)for(let a=o-e;a<=l+e;a+=1){const d=(a%i+i)%i;(d<o||d>l)&&mn(t,d)}else for(let a=Math.max(o-e,0);a<=Math.min(l+e,i-1);a+=1)a!==o&&(a>l||a<o)&&mn(t,a)};function Xo(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let o;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?n>=e[l]&&n<e[l+1]-(e[l+1]-e[l])/2?o=l:n>=e[l]&&n<e[l+1]&&(o=l+1):n>=e[l]&&(o=l);return i.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function qo(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:o,activeIndex:l,realIndex:a,snapIndex:d}=e;let s=t,c;const r=f=>{let y=f-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof s>"u"&&(s=Xo(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const f=Math.min(o.slidesPerGroupSkip,s);c=f+Math.floor((s-f)/o.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),s===l&&!e.params.loop){c!==d&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(s===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=r(s);return}const p=e.grid&&o.grid&&o.grid.rows>1;let h;if(e.virtual&&o.virtual.enabled&&o.loop)h=r(s);else if(p){const f=e.slides.filter(b=>b.column===s)[0];let y=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(f),0)),h=Math.floor(y/o.grid.rows)}else if(e.slides[s]){const f=e.slides[s].getAttribute("data-swiper-slide-index");f?h=parseInt(f,10):h=s}else h=s;Object.assign(e,{previousSnapIndex:d,snapIndex:c,previousRealIndex:a,realIndex:h,previousIndex:l,activeIndex:s}),e.initialized&&fn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function Yo(t,e){const i=this,n=i.params;let o=t.closest(`.${n.slideClass}, swiper-slide`);!o&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!o&&d.matches&&d.matches(`.${n.slideClass}, swiper-slide`)&&(o=d)});let l=!1,a;if(o){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===o){l=!0,a=d;break}}if(o&&l)i.clickedSlide=o,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Go={updateSize:Ro,updateSlides:Bo,updateAutoHeight:Fo,updateSlidesOffset:Wo,updateSlidesProgress:zo,updateProgress:Ho,updateSlidesClasses:Uo,updateActiveIndex:qo,updateClickedSlide:Yo};function Zo(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:o,wrapperEl:l}=e;if(i.virtualTranslate)return n?-o:o;if(i.cssMode)return o;let a=To(l,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function Ko(t,e){const i=this,{rtlTranslate:n,params:o,wrapperEl:l,progress:a}=i;let d=0,s=0;const c=0;i.isHorizontal()?d=n?-t:t:s=t,o.roundLengths&&(d=Math.floor(d),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:s,o.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-s:o.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${d}px, ${s}px, ${c}px)`);let r;const p=i.maxTranslate()-i.minTranslate();p===0?r=0:r=(t-i.minTranslate())/p,r!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Jo(){return-this.snapGrid[0]}function _o(){return-this.snapGrid[this.snapGrid.length-1]}function Qo(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const l=this,{params:a,wrapperEl:d}=l;if(l.animating&&a.preventInteractionOnTransition)return!1;const s=l.minTranslate(),c=l.maxTranslate();let r;if(n&&t>s?r=s:n&&t<c?r=c:r=t,l.updateProgress(r),a.cssMode){const p=l.isHorizontal();if(e===0)d[p?"scrollLeft":"scrollTop"]=-r;else{if(!l.support.smoothScroll)return nl({swiper:l,targetPosition:-r,side:p?"left":"top"}),!0;d.scrollTo({[p?"left":"top"]:-r,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(h){!l||l.destroyed||h.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var $o={getTranslate:Zo,setTranslate:Ko,minTranslate:Jo,maxTranslate:_o,translateTo:Qo};function ea(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function rl(t){let{swiper:e,runCallbacks:i,direction:n,step:o}=t;const{activeIndex:l,previousIndex:a}=e;let d=n;if(d||(l>a?d="next":l<a?d="prev":d="reset"),e.emit(`transition${o}`),i&&l!==a){if(d==="reset"){e.emit(`slideResetTransition${o}`);return}e.emit(`slideChangeTransition${o}`),d==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`)}}function ta(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),rl({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function ia(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),rl({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var na={setTransition:ea,transitionStart:ta,transitionEnd:ia};function la(t,e,i,n,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let a=t;a<0&&(a=0);const{params:d,snapGrid:s,slidesGrid:c,previousIndex:r,activeIndex:p,rtlTranslate:h,wrapperEl:f,enabled:y}=l;if(!y&&!n&&!o||l.destroyed||l.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const b=Math.min(l.params.slidesPerGroupSkip,a);let S=b+Math.floor((a-b)/l.params.slidesPerGroup);S>=s.length&&(S=s.length-1);const v=-s[S];if(d.normalizeSlideIndex)for(let m=0;m<c.length;m+=1){const x=-Math.floor(v*100),C=Math.floor(c[m]*100),k=Math.floor(c[m+1]*100);typeof c[m+1]<"u"?x>=C&&x<k-(k-C)/2?a=m:x>=C&&x<k&&(a=m+1):x>=C&&(a=m)}if(l.initialized&&a!==p&&(!l.allowSlideNext&&(h?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(p||0)!==a))return!1;a!==(r||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let g;if(a>p?g="next":a<p?g="prev":g="reset",h&&-v===l.translate||!h&&v===l.translate)return l.updateActiveIndex(a),d.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),d.effect!=="slide"&&l.setTranslate(v),g!=="reset"&&(l.transitionStart(i,g),l.transitionEnd(i,g)),!1;if(d.cssMode){const m=l.isHorizontal(),x=h?v:-v;if(e===0){const C=l.virtual&&l.params.virtual.enabled;C&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),C&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[m?"scrollLeft":"scrollTop"]=x})):f[m?"scrollLeft":"scrollTop"]=x,C&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return nl({swiper:l,targetPosition:x,side:m?"left":"top"}),!0;f.scrollTo({[m?"left":"top"]:x,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(v),l.updateActiveIndex(a),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,n),l.transitionStart(i,g),e===0?l.transitionEnd(i,g):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(x){!l||l.destroyed||x.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(i,g))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function oa(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;if(o.destroyed)return;typeof e>"u"&&(e=o.params.speed);const l=o.grid&&o.params.grid&&o.params.grid.rows>1;let a=t;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)a=a+o.virtual.slidesBefore;else{let d;if(l){const h=a*o.params.grid.rows;d=o.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else d=o.getSlideIndexByData(a);const s=l?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:c}=o.params;let r=o.params.slidesPerView;r==="auto"?r=o.slidesPerViewDynamic():(r=Math.ceil(parseFloat(o.params.slidesPerView,10)),c&&r%2===0&&(r=r+1));let p=s-d<r;if(c&&(p=p||d<Math.ceil(r/2)),n&&c&&o.params.slidesPerView!=="auto"&&!l&&(p=!1),p){const h=c?d<o.activeIndex?"prev":"next":d-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?d+1:d-s+1,slideRealIndex:h==="next"?o.realIndex:void 0})}if(l){const h=a*o.params.grid.rows;a=o.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else a=o.getSlideIndexByData(a)}return requestAnimationFrame(()=>{o.slideTo(a,e,i,n)}),o}function aa(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:o,params:l,animating:a}=n;if(!o||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let d=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(d=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<l.slidesPerGroupSkip?1:d,c=n.virtual&&l.virtual.enabled;if(l.loop){if(a&&!c&&l.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return l.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+s,t,e,i)}function sa(t,e,i){e===void 0&&(e=!0);const n=this,{params:o,snapGrid:l,slidesGrid:a,rtlTranslate:d,enabled:s,animating:c}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const r=n.virtual&&o.virtual.enabled;if(o.loop){if(c&&!r&&o.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const p=d?n.translate:-n.translate;function h(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const f=h(p),y=l.map(v=>h(v));let b=l[y.indexOf(f)-1];if(typeof b>"u"&&o.cssMode){let v;l.forEach((g,m)=>{f>=g&&(v=m)}),typeof v<"u"&&(b=l[v>0?v-1:v])}let S=0;if(typeof b<"u"&&(S=a.indexOf(b),S<0&&(S=n.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(S=S-n.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),o.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(o.loop&&n.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(S,t,e,i)}),!0;return n.slideTo(S,t,e,i)}function ra(t,e,i){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)}function da(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const o=this;if(o.destroyed)return;typeof t>"u"&&(t=o.params.speed);let l=o.activeIndex;const a=Math.min(o.params.slidesPerGroupSkip,l),d=a+Math.floor((l-a)/o.params.slidesPerGroup),s=o.rtlTranslate?o.translate:-o.translate;if(s>=o.snapGrid[d]){const c=o.snapGrid[d],r=o.snapGrid[d+1];s-c>(r-c)*n&&(l+=o.params.slidesPerGroup)}else{const c=o.snapGrid[d-1],r=o.snapGrid[d];s-c<=(r-c)*n&&(l-=o.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,o.slidesGrid.length-1),o.slideTo(l,t,e,i)}function ca(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let o=t.clickedIndex,l;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;l=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=t.getSlideIndex(Xt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=t.getSlideIndex(Xt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var ua={slideTo:la,slideToLoop:oa,slideNext:aa,slidePrev:sa,slideReset:ra,slideToClosest:da,slideToClickedSlide:ca};function va(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const o=()=>{Xt(n,`.${i.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},l=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(l?i.grid.rows:1),d=e.slides.length%a!==0,s=l&&e.slides.length%i.grid.rows!==0,c=r=>{for(let p=0;p<r;p+=1){const h=e.isElement?vi("swiper-slide",[i.slideBlankClass]):vi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(d){if(i.loopAddBlankSlides){const r=a-e.slides.length%a;c(r),e.recalcSlides(),e.updateSlides()}else Vi("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(s){if(i.loopAddBlankSlides){const r=i.grid.rows-e.slides.length%i.grid.rows;c(r),e.recalcSlides(),e.updateSlides()}else Vi("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function pa(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:o,activeSlideIndex:l,byController:a,byMousewheel:d}=t===void 0?{}:t;const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:c,allowSlidePrev:r,allowSlideNext:p,slidesEl:h,params:f}=s,{centeredSlides:y}=f;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&f.virtual.enabled){i&&(!f.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):f.centeredSlides&&s.snapIndex<f.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=r,s.allowSlideNext=p,s.emit("loopFix");return}let b=f.slidesPerView;b==="auto"?b=s.slidesPerViewDynamic():(b=Math.ceil(parseFloat(f.slidesPerView,10)),y&&b%2===0&&(b=b+1));const S=f.slidesPerGroupAuto?b:f.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=f.loopAdditionalSlides,s.loopedSlides=v;const g=s.grid&&f.grid&&f.grid.rows>1;c.length<b+v?Vi("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):g&&f.grid.fill==="row"&&Vi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const m=[],x=[];let C=s.activeIndex;typeof l>"u"?l=s.getSlideIndex(c.filter(L=>L.classList.contains(f.slideActiveClass))[0]):C=l;const k=n==="next"||!n,N=n==="prev"||!n;let A=0,w=0;const T=g?Math.ceil(c.length/f.grid.rows):c.length,I=(g?c[l].column:l)+(y&&typeof o>"u"?-b/2+.5:0);if(I<v){A=Math.max(v-I,S);for(let L=0;L<v-I;L+=1){const E=L-Math.floor(L/T)*T;if(g){const R=T-E-1;for(let F=c.length-1;F>=0;F-=1)c[F].column===R&&m.push(F)}else m.push(T-E-1)}}else if(I+b>T-v){w=Math.max(I-(T-v*2),S);for(let L=0;L<w;L+=1){const E=L-Math.floor(L/T)*T;g?c.forEach((R,F)=>{R.column===E&&x.push(F)}):x.push(E)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),N&&m.forEach(L=>{c[L].swiperLoopMoveDOM=!0,h.prepend(c[L]),c[L].swiperLoopMoveDOM=!1}),k&&x.forEach(L=>{c[L].swiperLoopMoveDOM=!0,h.append(c[L]),c[L].swiperLoopMoveDOM=!1}),s.recalcSlides(),f.slidesPerView==="auto"?s.updateSlides():g&&(m.length>0&&N||x.length>0&&k)&&s.slides.forEach((L,E)=>{s.grid.updateSlide(E,L,s.slides)}),f.watchSlidesProgress&&s.updateSlidesOffset(),i){if(m.length>0&&N){if(typeof e>"u"){const L=s.slidesGrid[C],R=s.slidesGrid[C+A]-L;d?s.setTranslate(s.translate-R):(s.slideTo(C+Math.ceil(A),0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-R,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-R))}else if(o){const L=g?m.length/f.grid.rows:m.length;s.slideTo(s.activeIndex+L,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(x.length>0&&k)if(typeof e>"u"){const L=s.slidesGrid[C],R=s.slidesGrid[C-w]-L;d?s.setTranslate(s.translate-R):(s.slideTo(C-w,0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-R,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-R))}else{const L=g?x.length/f.grid.rows:x.length;s.slideTo(s.activeIndex-L,0,!1,!0)}}if(s.allowSlidePrev=r,s.allowSlideNext=p,s.controller&&s.controller.control&&!a){const L={slideRealIndex:e,direction:n,setTranslate:o,activeSlideIndex:l,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...L,slideTo:E.params.slidesPerView===f.slidesPerView?i:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...L,slideTo:s.controller.control.params.slidesPerView===f.slidesPerView?i:!1})}s.emit("loopFix")}function ma(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(o=>{const l=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;n[l]=o}),t.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),n.forEach(o=>{i.append(o)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var fa={loopCreate:va,loopFix:pa,loopDestroy:ma};function ha(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 Aa(){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 ba={setGrabCursor:ha,unsetGrabCursor:Aa};function ga(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Ot()||n===St())return null;n.assignedSlot&&(n=n.assignedSlot);const o=n.closest(t);return!o&&!n.getRootNode?null:o||i(n.getRootNode().host)}return i(e)}function dl(t,e,i){const n=St(),{params:o}=t,l=o.edgeSwipeDetection,a=o.edgeSwipeThreshold;return l&&(i<=a||i>=n.innerWidth-a)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function ya(t){const e=this,i=Ot();let n=t;n.originalEvent&&(n=n.originalEvent);const o=e.touchEventsData;if(n.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==n.pointerId)return;o.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(o.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){dl(e,n,n.targetTouches[0].pageX);return}const{params:l,touches:a,enabled:d}=e;if(!d||!l.simulateTouch&&n.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let s=n.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||o.isTouched&&o.isMoved)return;const c=!!l.noSwipingClass&&l.noSwipingClass!=="",r=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&r&&(s=r[0]);const p=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,h=!!(n.target&&n.target.shadowRoot);if(l.noSwiping&&(h?ga(p,s):s.closest(p))){e.allowClick=!0;return}if(l.swipeHandler&&!s.closest(l.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const f=a.currentX,y=a.currentY;if(!dl(e,n,f))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=f,a.startY=y,o.touchStartTime=Ft(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(o.allowThresholdMove=!1);let b=!0;s.matches(o.focusableElements)&&(b=!1,s.nodeName==="SELECT"&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const S=b&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!s.isContentEditable&&n.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function wa(t){const e=Ot(),i=this,n=i.touchEventsData,{params:o,touches:l,rtlTranslate:a,enabled:d}=i;if(!d||!o.simulateTouch&&t.pointerType==="mouse")return;let s=t;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(n.touchId!==null||s.pointerId!==n.pointerId))return;let c;if(s.type==="touchmove"){if(c=[...s.changedTouches].filter(k=>k.identifier===n.touchId)[0],!c||c.identifier!==n.touchId)return}else c=s;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",s);return}const r=c.pageX,p=c.pageY;if(s.preventedByNestedSwiper){l.startX=r,l.startY=p;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(l,{startX:r,startY:p,currentX:r,currentY:p}),n.touchStartTime=Ft());return}if(o.touchReleaseOnEdges&&!o.loop){if(i.isVertical()){if(p<l.startY&&i.translate<=i.maxTranslate()||p>l.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(r<l.startX&&i.translate<=i.maxTranslate()||r>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&s.target===e.activeElement&&s.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",s),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=r,l.currentY=p;const h=l.currentX-l.startX,f=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(h**2+f**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let k;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?n.isScrolling=!1:h*h+f*f>=25&&(k=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI,n.isScrolling=i.isHorizontal()?k>o.touchAngle:90-k>o.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(n.startMoving=!0),n.isScrolling||s.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!o.cssMode&&s.cancelable&&s.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&s.stopPropagation();let y=i.isHorizontal()?h:f,b=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;o.oneWayMovement&&(y=Math.abs(y)*(a?1:-1),b=Math.abs(b)*(a?1:-1)),l.diff=y,y*=o.touchRatio,a&&(y=-y,b=-b);const S=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=b>0?"prev":"next";const v=i.params.loop&&!o.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(k)}n.allowMomentumBounce=!1,o.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",s)}let m;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(y)>=1){Object.assign(l,{startX:r,startY:p,currentX:r,currentY:p,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",s),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let x=!0,C=o.resistanceRatio;if(o.touchReleaseOnEdges&&(C=0),y>0?(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate>(o.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(x=!1,o.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**C))):y<0&&(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate<(o.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(o.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(x=!1,o.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**C))),x&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),o.threshold>0)if(Math.abs(y)>o.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,n.currentTranslate=n.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{n.currentTranslate=n.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&i.freeMode||o.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Sa(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let o;if(n.type==="touchend"||n.type==="touchcancel"){if(o=[...n.changedTouches].filter(C=>C.identifier===i.touchId)[0],!o||o.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;o=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:d,rtlTranslate:s,slidesGrid:c,enabled:r}=e;if(!r||!a.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),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 p=Ft(),h=p-i.touchStartTime;if(e.allowClick){const C=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(C&&C[0]||n.target,C),e.emit("tap click",n),h<300&&p-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Ft(),ui(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||d.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let f;if(a.followFinger?f=s?e.translate:-e.translate:f=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}const y=f>=-e.maxTranslate()&&!e.params.loop;let b=0,S=e.slidesSizesGrid[0];for(let C=0;C<c.length;C+=C<a.slidesPerGroupSkip?1:a.slidesPerGroup){const k=C<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[C+k]<"u"?(y||f>=c[C]&&f<c[C+k])&&(b=C,S=c[C+k]-c[C]):(y||f>=c[C])&&(b=C,S=c[c.length-1]-c[c.length-2])}let v=null,g=null;a.rewind&&(e.isBeginning?g=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const m=(f-c[b])/S,x=b<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(h>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(m>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?v:b+x):e.slideTo(b)),e.swipeDirection==="prev"&&(m>1-a.longSwipesRatio?e.slideTo(b+x):g!==null&&m<0&&Math.abs(m)>a.longSwipesRatio?e.slideTo(g):e.slideTo(b))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(b+x):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:b+x),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:b))}}function cl(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:o,snapGrid:l}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const d=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!d?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?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=o,t.allowSlideNext=n,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function xa(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ta(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)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 o;const l=t.maxTranslate()-t.minTranslate();l===0?o=0:o=(t.translate-t.minTranslate())/l,o!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Ea(t){const e=this;zi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Ia(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ul=(t,e)=>{const i=Ot(),{params:n,el:o,wrapperEl:l,device:a}=t,d=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",c=e;!o||typeof o=="string"||(i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),o[s]("touchstart",t.onTouchStart,{passive:!1}),o[s]("pointerdown",t.onTouchStart,{passive:!1}),i[s]("touchmove",t.onTouchMove,{passive:!1,capture:d}),i[s]("pointermove",t.onTouchMove,{passive:!1,capture:d}),i[s]("touchend",t.onTouchEnd,{passive:!0}),i[s]("pointerup",t.onTouchEnd,{passive:!0}),i[s]("pointercancel",t.onTouchEnd,{passive:!0}),i[s]("touchcancel",t.onTouchEnd,{passive:!0}),i[s]("pointerout",t.onTouchEnd,{passive:!0}),i[s]("pointerleave",t.onTouchEnd,{passive:!0}),i[s]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&o[s]("click",t.onClick,!0),n.cssMode&&l[s]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",cl,!0):t[c]("observerUpdate",cl,!0),o[s]("load",t.onLoad,{capture:!0}))};function ka(){const t=this,{params:e}=t;t.onTouchStart=ya.bind(t),t.onTouchMove=wa.bind(t),t.onTouchEnd=Sa.bind(t),t.onDocumentTouchStart=Ia.bind(t),e.cssMode&&(t.onScroll=Ta.bind(t)),t.onClick=xa.bind(t),t.onLoad=Ea.bind(t),ul(t,"on")}function Ca(){ul(this,"off")}var Pa={attachEvents:ka,detachEvents:Ca};const vl=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Oa(){const t=this,{realIndex:e,initialized:i,params:n,el:o}=t,l=n.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const a=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const s=(a in l?l[a]:void 0)||t.originalParams,c=vl(t,n),r=vl(t,s),p=t.params.grabCursor,h=s.grabCursor,f=n.enabled;c&&!r?(o.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&r&&(o.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&o.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!h?t.unsetGrabCursor():!p&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof s[m]>"u")return;const x=n[m]&&n[m].enabled,C=s[m]&&s[m].enabled;x&&!C&&t[m].disable(),!x&&C&&t[m].enable()});const y=s.direction&&s.direction!==n.direction,b=n.loop&&(s.slidesPerView!==n.slidesPerView||y),S=n.loop;y&&i&&t.changeDirection(),Nt(t.params,s);const v=t.params.enabled,g=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!v?t.disable():!f&&v&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",s),i&&(b?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",s)}function La(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const o=St(),l=e==="window"?o.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const s=parseFloat(d.substr(1));return{value:l*s,point:d}}return{value:d,point:d}});a.sort((d,s)=>parseInt(d.value,10)-parseInt(s.value,10));for(let d=0;d<a.length;d+=1){const{point:s,value:c}=a[d];e==="window"?o.matchMedia(`(min-width: ${c}px)`).matches&&(n=s):c<=i.clientWidth&&(n=s)}return n||"max"}var ja={setBreakpoint:Oa,getBreakpoint:La};function Ma(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(o=>{n[o]&&i.push(e+o)}):typeof n=="string"&&i.push(e+n)}),i}function Na(){const t=this,{classNames:e,params:i,rtl:n,el:o,device:l}=t,a=Ma(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),o.classList.add(...e),t.emitContainerClasses()}function Da(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Va={addClasses:Na,removeClasses:Da};function Ra(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const o=t.slides.length-1,l=t.slidesGrid[o]+t.slidesSizesGrid[o]+n*2;t.isLocked=t.size>l}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 Ba={checkOverflow:Ra},hn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Fa(t,e){return function(n){n===void 0&&(n={});const o=Object.keys(n)[0],l=n[o];if(typeof l!="object"||l===null){Nt(e,n);return}if(t[o]===!0&&(t[o]={enabled:!0}),o==="navigation"&&t[o]&&t[o].enabled&&!t[o].prevEl&&!t[o].nextEl&&(t[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&t[o]&&t[o].enabled&&!t[o].el&&(t[o].auto=!0),!(o in t&&"enabled"in l)){Nt(e,n);return}typeof t[o]=="object"&&!("enabled"in t[o])&&(t[o].enabled=!0),t[o]||(t[o]={enabled:!1}),Nt(e,n)}}const An={eventsEmitter:Vo,update:Go,translate:$o,transition:na,slide:ua,loop:fa,grabCursor:ba,events:Pa,breakpoints:ja,checkOverflow:Ba,classes:Va},bn={};let gn=class Kt{constructor(){let e,i;for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?i=o[0]:[e,i]=o,i||(i={}),i=Nt({},i),e&&!i.el&&(i.el=e);const a=Ot();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const r=[];return a.querySelectorAll(i.el).forEach(p=>{const h=Nt({},i,{el:p});r.push(new Kt(h))}),r}const d=this;d.__swiper__=!0,d.support=ol(),d.device=al({userAgent:i.userAgent}),d.browser=Mo(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],i.modules&&Array.isArray(i.modules)&&d.modules.push(...i.modules);const s={};d.modules.forEach(r=>{r({params:i,swiper:d,extendParams:Fa(i,s),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const c=Nt({},hn,s);return d.params=Nt({},c,bn,i),d.originalParams=Nt({},d.params),d.passedParams=Nt({},i),d.params&&d.params.on&&Object.keys(d.params.on).forEach(r=>{d.on(r,d.params.on[r])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return d.params.direction==="horizontal"},isVertical(){return d.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:d.params.allowSlideNext,allowSlidePrev:d.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:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,o=Xt(i,`.${n.slideClass}, swiper-slide`),l=gi(o[0]);return gi(e)-l}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:n}=e;e.slides=Xt(i,`.${n.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 n=this;e=Math.min(Math.max(e,0),1);const o=n.minTranslate(),a=(n.maxTranslate()-o)*e+o;n.translateTo(a,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const o=e.getSlideClasses(n);i.push({slideEl:n,classNames:o}),e.emit("_slideClass",n,o)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:o,slides:l,slidesGrid:a,slidesSizesGrid:d,size:s,activeIndex:c}=n;let r=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let p=l[c]?Math.ceil(l[c].swiperSlideSize):0,h;for(let f=c+1;f<l.length;f+=1)l[f]&&!h&&(p+=Math.ceil(l[f].swiperSlideSize),r+=1,p>s&&(h=!0));for(let f=c-1;f>=0;f-=1)l[f]&&!h&&(p+=l[f].swiperSlideSize,r+=1,p>s&&(h=!0))}else if(e==="current")for(let p=c+1;p<l.length;p+=1)(i?a[p]+d[p]-a[c]<s:a[p]-a[c]<s)&&(r+=1);else for(let p=c-1;p>=0;p-=1)a[c]-a[p]<s&&(r+=1);return r}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&zi(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function o(){const a=e.rtlTranslate?e.translate*-1:e.translate,d=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(d),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)o(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(a.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||o()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,o=n.params.direction;return e||(e=o==="horizontal"?"vertical":"horizontal"),e===o||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${o}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}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(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const o=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(o()):Xt(n,o())[0];return!a&&i.params.createElements&&(a=vi("div",i.params.wrapperClass),n.append(a),Xt(n,`.${i.params.slideClass}`).forEach(d=>{a.append(d)})),Object.assign(i,{el:n,wrapperEl:a,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||$t(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||$t(n,"direction")==="rtl"),wrongRTL:$t(a,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;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();const o=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&o.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(l=>{l.complete?zi(i,l):l.addEventListener("load",a=>{zi(i,a.target)})}),fn(i),i.initialized=!0,fn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:o,el:l,wrapperEl:a,slides:d}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),o.loop&&n.loopDestroy(),i&&(n.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(s=>{s.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(s=>{n.off(s)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),So(n)),n.destroyed=!0),null}static extendDefaults(e){Nt(bn,e)}static get extendedDefaults(){return bn}static get defaults(){return hn}static installModule(e){Kt.prototype.__modules__||(Kt.prototype.__modules__=[]);const i=Kt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Kt.installModule(i)),Kt):(Kt.installModule(e),Kt)}};Object.keys(An).forEach(t=>{Object.keys(An[t]).forEach(e=>{gn.prototype[e]=An[t][e]})}),gn.use([No,Do]);const pl=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_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","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","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 ai(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function pi(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:ai(e[n])&&ai(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:pi(t[n],e[n]):t[n]=e[n]})}function ml(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function fl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function hl(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Al(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function Wa(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function za(t){let{swiper:e,slides:i,passedParams:n,changedParams:o,nextEl:l,prevEl:a,scrollbarEl:d,paginationEl:s}=t;const c=o.filter(w=>w!=="children"&&w!=="direction"&&w!=="wrapperClass"),{params:r,pagination:p,navigation:h,scrollbar:f,virtual:y,thumbs:b}=e;let S,v,g,m,x,C,k,N;o.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&r.thumbs&&!r.thumbs.swiper&&(S=!0),o.includes("controller")&&n.controller&&n.controller.control&&r.controller&&!r.controller.control&&(v=!0),o.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(r.pagination||r.pagination===!1)&&p&&!p.el&&(g=!0),o.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||d)&&(r.scrollbar||r.scrollbar===!1)&&f&&!f.el&&(m=!0),o.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||l)&&(r.navigation||r.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(x=!0);const A=w=>{e[w]&&(e[w].destroy(),w==="navigation"?(e.isElement&&(e[w].prevEl.remove(),e[w].nextEl.remove()),r[w].prevEl=void 0,r[w].nextEl=void 0,e[w].prevEl=void 0,e[w].nextEl=void 0):(e.isElement&&e[w].el.remove(),r[w].el=void 0,e[w].el=void 0))};o.includes("loop")&&e.isElement&&(r.loop&&!n.loop?C=!0:!r.loop&&n.loop?k=!0:N=!0),c.forEach(w=>{if(ai(r[w])&&ai(n[w]))Object.assign(r[w],n[w]),(w==="navigation"||w==="pagination"||w==="scrollbar")&&"enabled"in n[w]&&!n[w].enabled&&A(w);else{const T=n[w];(T===!0||T===!1)&&(w==="navigation"||w==="pagination"||w==="scrollbar")?T===!1&&A(w):r[w]=n[w]}}),c.includes("controller")&&!v&&e.controller&&e.controller.control&&r.controller&&r.controller.control&&(e.controller.control=r.controller.control),o.includes("children")&&i&&y&&r.virtual.enabled?(y.slides=i,y.update(!0)):o.includes("virtual")&&y&&r.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),o.includes("children")&&i&&r.loop&&(N=!0),S&&b.init()&&b.update(!0),v&&(e.controller.control=r.controller.control),g&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(r.pagination.el=s),p.init(),p.render(),p.update()),m&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),e.el.appendChild(d)),d&&(r.scrollbar.el=d),f.init(),f.updateSize(),f.setTranslate()),x&&(e.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=e.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),e.el.appendChild(l)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),l&&(r.navigation.nextEl=l),a&&(r.navigation.prevEl=a),h.init(),h.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),o.includes("direction")&&e.changeDirection(n.direction,!1),(C||N)&&e.loopDestroy(),(k||N)&&e.loopCreate(),e.update()}function Ha(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},o={};pi(i,hn),i._emitClasses=!0,i.init=!1;const l={},a=pl.map(s=>s.replace(/_/,"")),d=Object.assign({},t);return Object.keys(d).forEach(s=>{typeof t[s]>"u"||(a.indexOf(s)>=0?ai(t[s])?(i[s]={},o[s]={},pi(i[s],t[s]),pi(o[s],t[s])):(i[s]=t[s],o[s]=t[s]):s.search(/on[A-Z]/)===0&&typeof t[s]=="function"?e?n[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:i.on[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:l[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:o,rest:l,events:n}}function Ua(t,e){let{el:i,nextEl:n,prevEl:o,paginationEl:l,scrollbarEl:a,swiper:d}=t;ml(e)&&n&&o&&(d.params.navigation.nextEl=n,d.originalParams.navigation.nextEl=n,d.params.navigation.prevEl=o,d.originalParams.navigation.prevEl=o),fl(e)&&l&&(d.params.pagination.el=l,d.originalParams.pagination.el=l),hl(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function Xa(t,e,i,n,o){const l=[];if(!e)return l;const a=s=>{l.indexOf(s)<0&&l.push(s)};if(i&&n){const s=n.map(o),c=i.map(o);s.join("")!==c.join("")&&a("children"),n.length!==i.length&&a("children")}return pl.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in t&&s in e)if(ai(t[s])&&ai(e[s])){const c=Object.keys(t[s]),r=Object.keys(e[s]);c.length!==r.length?a(s):(c.forEach(p=>{t[s][p]!==e[s][p]&&a(s)}),r.forEach(p=>{t[s][p]!==e[s][p]&&a(s)}))}else t[s]!==e[s]&&a(s)}),l}const qa=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 Hi(){return Hi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Hi.apply(this,arguments)}function bl(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function gl(t){const e=[];return u.Children.toArray(t).forEach(i=>{bl(i)?e.push(i):i.props&&i.props.children&&gl(i.props.children).forEach(n=>e.push(n))}),e}function Ya(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return u.Children.toArray(t).forEach(n=>{if(bl(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const o=gl(n.props.children);o.length>0?o.forEach(l=>e.push(l)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function Ga(t,e,i){if(!i)return null;const n=r=>{let p=r;return r<0?p=e.length+r:p>=e.length&&(p=p-e.length),p},o=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:a}=i,d=t.params.loop?-e.length:0,s=t.params.loop?e.length*2:e.length,c=[];for(let r=d;r<s;r+=1)r>=l&&r<=a&&c.push(e[n(r)]);return c.map((r,p)=>u.cloneElement(r,{swiper:t,style:o,key:r.props.virtualIndex||r.key||`slide-${p}`}))}function yi(t,e){return typeof window>"u"?he(t,e):Hl(t,e)}const yn=Ai(null),wn=()=>hi(yn),Za=Ai(null),si=Oi(function(t,e){let{className:i,tag:n="div",wrapperTag:o="div",children:l,onSwiper:a,...d}=t===void 0?{}:t,s=!1;const[c,r]=X("swiper"),[p,h]=X(null),[f,y]=X(!1),b=Ae(!1),S=Ae(null),v=Ae(null),g=Ae(null),m=Ae(null),x=Ae(null),C=Ae(null),k=Ae(null),N=Ae(null),{params:A,passedParams:w,rest:T,events:M}=Ha(d),{slides:I,slots:L}=Ya(l),E=()=>{y(!f)};Object.assign(A.on,{_containerClasses(D,P){r(P)}});const R=()=>{Object.assign(A.on,M),s=!0;const D={...A};if(delete D.wrapperClass,v.current=new gn(D),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=I;const P={cache:!1,slides:I,renderExternal:h,renderExternalUpdate:!1};pi(v.current.params.virtual,P),pi(v.current.originalParams.virtual,P)}};S.current||R(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{s||!M||!v.current||Object.keys(M).forEach(D=>{v.current.on(D,M[D])})},O=()=>{!M||!v.current||Object.keys(M).forEach(D=>{v.current.off(D,M[D])})};he(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),he(()=>{!b.current&&v.current&&(v.current.emitSlidesClasses(),b.current=!0)}),yi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&R(),Ua({el:S.current,nextEl:x.current,prevEl:C.current,paginationEl:k.current,scrollbarEl:N.current,swiper:v.current},A),a&&!v.current.destroyed&&a(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),yi(()=>{F();const D=Xa(w,g.current,I,m.current,P=>P.key);return g.current=w,m.current=I,D.length&&v.current&&!v.current.destroyed&&za({swiper:v.current,slides:I,passedParams:w,changedParams:D,nextEl:x.current,prevEl:C.current,scrollbarEl:N.current,paginationEl:k.current}),()=>{O()}}),yi(()=>{qa(v.current)},[p]);function V(){return A.virtual?Ga(v.current,I,p):I.map((D,P)=>u.cloneElement(D,{swiper:v.current,swiperSlideIndex:P}))}return u.createElement(n,Hi({ref:S,className:Al(`${c}${i?` ${i}`:""}`)},T),u.createElement(Za.Provider,{value:v.current},L["container-start"],u.createElement(o,{className:Wa(A.wrapperClass)},L["wrapper-start"],V(),L["wrapper-end"]),ml(A)&&u.createElement(u.Fragment,null,u.createElement("div",{ref:C,className:"swiper-button-prev"}),u.createElement("div",{ref:x,className:"swiper-button-next"})),hl(A)&&u.createElement("div",{ref:N,className:"swiper-scrollbar"}),fl(A)&&u.createElement("div",{ref:k,className:"swiper-pagination"}),L["container-end"]))});si.displayName="Swiper";const Ut=Oi(function(t,e){let{tag:i="div",children:n,className:o="",swiper:l,zoom:a,lazy:d,virtualIndex:s,swiperSlideIndex:c,...r}=t===void 0?{}:t;const p=Ae(null),[h,f]=X("swiper-slide"),[y,b]=X(!1);function S(x,C,k){C===p.current&&f(k)}yi(()=>{if(typeof c<"u"&&(p.current.swiperSlideIndex=c),e&&(e.current=p.current),!(!p.current||!l)){if(l.destroyed){h!=="swiper-slide"&&f("swiper-slide");return}return l.on("_slideClass",S),()=>{l&&l.off("_slideClass",S)}}}),yi(()=>{l&&p.current&&!l.destroyed&&f(l.getSlideClasses(p.current))},[l]);const v={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},g=()=>typeof n=="function"?n(v):n,m=()=>{b(!0)};return u.createElement(i,Hi({ref:p,className:Al(`${h}${o?` ${o}`:""}`),"data-swiper-slide-index":s,onLoad:m},r),a&&u.createElement(yn.Provider,{value:v},u.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},g(),d&&!y&&u.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&u.createElement(yn.Provider,{value:v},g(),d&&!y&&u.createElement("div",{className:"swiper-lazy-preloader"})))});Ut.displayName="SwiperSlide";const Ka="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Ja=({visible:t,onClose:e,children:i,modalStyle:n,padding:o,popup:l,schema:a,fullHeight:d=window.innerHeight,isFullScreen:s=!1,openState:c})=>{var r,p,h,f,y,b,S,v,g,m,x,C,k,N,A,w,T,M,I,L,E,R,F,O;const V=Ae(null),D=Ae(null),P=Ae(null),B=Ae(null),U=Ae(null),K=d*.2,$=s?d:d*.8,[ie,fe]=X(K),[we,ne]=X(!1),Re=Ae(null),{globalConfig:ze,popupDetailData:Ye}=Ue(),{schema:G,popup:J}=_t(),[Se,Te]=X(15);he(()=>{const Z=document.getElementById("sxp-render"),q=document.getElementById("pb-modal");q?Re.current=q:(Re.current=document.createElement("div"),Re.current.setAttribute("id","pb-modal"),Z?.appendChild(Re.current))},[]);const Ee=me(()=>l?.id&&l?.id!==""||t,[t,l]),de=me(()=>{var Z,q,oe;const ae=a??G;return(oe=(q=(Z=ae?.sxpPageConf)===null||Z===void 0?void 0:Z.globalConfig)===null||q===void 0?void 0:q.popupList)===null||oe===void 0?void 0:oe.find(De=>De?.id===l?.id)},[l,a,G]),Fe=me(()=>{var Z,q;return((q=(Z=de?.item)===null||Z===void 0?void 0:Z.event)===null||q===void 0?void 0:q.isScrollFullScreen)||!1},[de]);he(()=>{Ee?ne(!0):setTimeout(()=>{ne(!1),fe(K)},l?.duration)},[Ee,l]);const Ze=re(()=>i,[J,c,ze,a]);if(he(()=>{const Z=q=>{var oe=q?.querySelectorAll('[role="button"],a, a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),ae=oe?.[0],be=oe?.[oe?.length-1],De=9;q.addEventListener("keydown",function($e){($e.key==="Escape"||$e.key==="Esc")&&(qe(),$e.preventDefault());var le=$e.key==="Tab"||$e.keyCode===De;le&&($e.shiftKey?document?.activeElement===ae&&(be?.focus(),$e.preventDefault()):document?.activeElement===be&&(ae?.focus(),$e.preventDefault()))}),ae?.focus()};return U?.current&&Z(U?.current),()=>{var q;(q=U?.current)===null||q===void 0||q.removeEventListener("keydown",Z)}},[U,we,J]),!Re.current)return null;const qe=Pi(()=>{e?.()},300),Qe=Z=>{V.current=Z.touches[0],D.current=Z.touches[0],P.current=!0},it=Z=>{requestAnimationFrame(()=>{var q;if(P.current&&((q=B?.current)===null||q===void 0?void 0:q.scrollTop)===0){const oe=Z.touches[0].clientY,ae=Z.touches[0].clientX,be=V.current.clientY-oe;V.current=Z.touches[0];const De=oe-D.current.clientY,$e=ae-D.current.clientX;if(Math.abs($e)>Math.abs(De))return;const le=ie-be;le>0&&fe(le)}})},ke=Z=>{var q;if(P.current&&((q=B?.current)===null||q===void 0?void 0:q.scrollTop)===0){const oe=Z.changedTouches[0].clientY-D.current.clientY,ae=Z.changedTouches[0].clientX-D.current.clientX;if(Math.abs(ae)>Math.abs(oe))return;const be=D.current.clientY-V.current.clientY;be>0?fe(0):ie<K&&be<0?fe(K):ie>=K&&be<0&&e?.()}P.current=!1};return Dn.createPortal(u.createElement(u.Fragment,null,we&&u.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ee?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:qe},u.createElement("div",{style:{position:"relative",left:`${(f=(h=(p=(r=de?.item)===null||r===void 0?void 0:r.props)===null||p===void 0?void 0:p.popupBg)===null||h===void 0?void 0:h.horizontalMargin)!==null&&f!==void 0?f:0}px`,right:`${(v=(S=(b=(y=de?.item)===null||y===void 0?void 0:y.props)===null||b===void 0?void 0:b.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${(C=(x=(m=(g=de?.item)===null||g===void 0?void 0:g.props)===null||m===void 0?void 0:m.popupBg)===null||x===void 0?void 0:x.bottomMargin)!==null&&C!==void 0?C:0}px`,overflow:"hidden",width:`calc(100% - ${((w=(A=(N=(k=de?.item)===null||k===void 0?void 0:k.props)===null||N===void 0?void 0:N.popupBg)===null||A===void 0?void 0:A.horizontalMargin)!==null&&w!==void 0?w:0)*2}px)`,height:"100%"}},u.createElement("div",Object.assign({ref:U,className:`modal-container ${Ee?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=de?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:o,animationDuration:((M=l?.duration)!==null&&M!==void 0?M:0)/1e3+"s"},Fe&&{transform:`translateY(${ie}px)`}),{overflow:"hidden",borderRadius:`${(R=(E=(L=(I=de?.item)===null||I===void 0?void 0:I.props)===null||L===void 0?void 0:L.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&R!==void 0?R:0}px`,zIndex:9}),onClick:Z=>{Z.stopPropagation(),Z.preventDefault()}},Fe&&{onTouchMove:it,onTouchStart:Qe,onTouchEnd:ke}),u.createElement("div",Object.assign({id:"modal-content",ref:B,style:{height:Fe?d:$,overflow:Fe&&ie<=0||!Fe?"auto":"hidden",zIndex:1}},((O=(F=de?.item)===null||F===void 0?void 0:F.props)===null||O===void 0?void 0:O.enableFixedCloseButton)&&{onScroll:Z=>{var q;Te(15-((q=Z?.target)===null||q===void 0?void 0:q.scrollTop))}}),Ze()),u.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Se}},u.createElement("img",{src:ze?.popupCloseIcon||Ka,alt:"close button",className:"modal-icon"})))))),Re.current)};var mi=Ne(Ja);const _a=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),o=[];for(let a=0;a<n.length&&(o.push(n[a]),!(o.join(" ").length>=e));a++);return(o.length>1&&o.length<n.length?o.slice(0,o.length-1):o).join(" ")+" "},Qa=({text:t,maxStr:e=108,style:i,className:n,onClick:o,foldText:l,unfoldText:a,isPost:d,onChange:s})=>{const[c,r]=X(!1),[p,h]=X(!1),f=Number(i?.lineClamp||2),y=Ae(null),b=Ae(null),S=re(()=>{r(!c)},[c,s]);return me(()=>!c&&t.length>e?_a(t,e)+"...":t,[t,e,c]),he(()=>{var v,g;b?.current&&(b.current.style.display="block"),((v=b?.current)===null||v===void 0?void 0:v.offsetHeight)>((g=y?.current)===null||g===void 0?void 0:g.offsetHeight)&&d?h(!0):h(!1),b.current.style.display="none"},[d,t]),u.createElement("div",{className:n,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},u.createElement("div",{ref:y,style:{overflow:"hidden",WebkitLineClamp:!d||c?"":f,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:Me(t?.replace(/\n/g,"</br>"),i)}}),u.createElement("div",{ref:b,dangerouslySetInnerHTML:{__html:Me(t?.replace(/\n/g,"</br>"),i)}}),t&&d&&p&&u.createElement("button",{"aria-label":c?a||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:o??S,dangerouslySetInnerHTML:{__html:Me(c?a||"show less":l||"show more",i)}}))};var Ui=Ne(Qa);const $a=Oi((t,e)=>{const{src:i,onLoad:n,style:o,className:l,loading:a,alt:d="image"}=t,[s,c]=X(i),r=Ae(null),[p,h]=X(!1);return Mn(e,()=>({setSrc:f=>{f&&c(f)}})),he(()=>{i&&c(i)},[i]),he(()=>{const f=()=>{i&&!p&&r.current&&(r.current.src="",r.current.src=i)};return ht.on(pt.PAGE_DID_SHOW,f),()=>{ht.off(pt.PAGE_DID_SHOW,f)}},[i,p]),u.createElement(u.Fragment,null,!p&&!s&&u.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),s?.includes(".avif")?u.createElement("picture",null,u.createElement("source",{type:"image/avif",srcSet:s}),u.createElement("source",{type:"image/webp",srcSet:`${s}?imageMogr2/format/webp`}),u.createElement("source",{type:"image/jpeg",srcSet:`${s}?imageMogr2/format/jpg`}),u.createElement("img",{ref:r,className:l,src:s,style:Object.assign({},o),loading:a,onLoad:f=>{h(!0),n?.(f.target)},alt:d})):u.createElement("img",{ref:r,className:l,src:s,style:Object.assign({},o),loading:a,onLoad:f=>{h(!0),n?.(f.target)},alt:d}))});var Lt=Ne($a);const es=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const o=Ae(),{popupDetailData:l}=Ue();return he(()=>{var a,d;n&&((a=o?.current)===null||a===void 0||a.swiper.slideTo((d=l?.multiCheckIndex)!==null&&d!==void 0?d:0))},[l,n]),u.createElement(si,{role:"list",tag:"ul",ref:o,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Po,Co,Bi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var wi=Ne(es);const ts=({products:t,data:e,defImg:i,style:n,onCLick:o,popupDetailData:l,check:a})=>{var d;const{productView:s}=Ct(),{popupCurTimeRef:c}=Ue(),r=(p,h)=>{if(a===h)return;const f=t?.[a];s(l,f,f?.bindCta,c.current,l?.index),o?.(h)};return u.createElement(u.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&u.createElement(wi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(d=l?t:[0,1,2,3])===null||d===void 0?void 0:d.map((p,h)=>{var f,y,b;return u.createElement(u.Fragment,null,p?.bindCta?u.createElement(Ut,{className:Ve({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{r(p,h)},key:h},u.createElement(Lt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:a===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(b=(f=p?.cover)!==null&&f!==void 0?f:(y=p?.homePage)===null||y===void 0?void 0:y[0])!==null&&b!==void 0?b:i})):null)})))};var yl=Ne(ts);const is=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:o,src:l}=t;switch(i){case 2:return n||null;case 3:return l||null;default:return o&&o.length>0?(e=o[0])===null||e===void 0?void 0:e.url:null}},ns=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Si=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:o})=>{var l,a,d,s,c,r,p,h;let f="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return f;let b=i?.priceSymbol,S=t?.currency?(d=(a=(l=t?.currency)===null||l===void 0?void 0:l.split("-")[1])===null||a===void 0?void 0:a.toUpperCase())!==null&&d!==void 0?d:"":"$";const v=e===void 0||e;let g=y?.toString();b?.showTwoDecimalPoint&&(g=y?.toFixed(2));let m=(s=g?.indexOf("."))!==null&&s!==void 0?s:-1;if(v){f=(c=y?.toLocaleString("zh",{minimumFractionDigits:b?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let x=0,C=m??f?.length;b?.millesimalSymbol==="."?f=f?.replace(/\,/g,function(k,N){return N>=x&&N<C?".":k}):b?.millesimalSymbol===" "&&(f=f?.replace(","," "))}else f=`${b?.showTwoDecimalPoint?y?.toFixed(2):y}`;return b?.decimalPoint===","&&m>0&&(f=f=f?.replace(/\./g,function(x,C){return C>=m&&C<f?.length?",":x})),S=`<span style="font-family:${(h=(p=(r=i?.priceSymbol)===null||r===void 0?void 0:r.fontFamily)!==null&&p!==void 0?p:o?.["fontFamily-en"])!==null&&h!==void 0?h:"inherit"}">${S}</span>`,f=Me(f,o),b?.currencyPosition&&b?.currencyPosition!=="none"?f=b?.currencyPosition==="left"?S+f:f+S:b?.currencyPosition!=="none"&&(f=S+f),f},ls=t=>{var e,i,n,o,l,a,d,s,c,r,p,h,f,y,b,S,v,g,m,x,C,k,N,A,{content:w,style:T,bgImg:M,onClick:I,schema:L,isDefault:E,bottom_image:R,tipText:F,isPost:O,viewTime:V,rec:D,swiper:P,commodityStyles:B,buttonStyle:U,index:K,commodityGroup:$,popupBg:ie,iframeIcon:fe,commodityImgRatio:we,isTel:ne,iframeBgColor:Re,isActive:ze=!0}=t,Ye=at(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:G,popupDetailData:J,isPreview:Se,bffFbReport:Te,popupCurTimeRef:Ee,checkCommodityIndexRef:de,globalConfig:Fe}=Ue(),{jumpToWeb:Ze,productView:qe}=Ct(),Qe=Ae(null),[it,ke]=X(!1),[Z,q]=X(!1),[oe,ae]=X((e=J?.multiCheckIndex)!==null&&e!==void 0?e:0),be=Ae(),[De,$e]=X(0),le=O?D:J;let W=O?le?.product:(n=(i=le?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(l=(o=le?.video)===null||o===void 0?void 0:o.bindProducts)===null||l===void 0?void 0:l[0],Je=O?(a=le?.product)===null||a===void 0?void 0:a.bindCta:(c=(s=(d=le?.video)===null||d===void 0?void 0:d.bindProduct)===null||s===void 0?void 0:s.bindCta)!==null&&c!==void 0?c:(h=(p=(r=le?.video)===null||r===void 0?void 0:r.bindProducts)===null||p===void 0?void 0:p[0])===null||h===void 0?void 0:h.bindCta;const xt=O?K:J?.index;if(!O&&$?.open&&(!((f=le?.video)===null||f===void 0)&&f.bindProducts)&&((b=(y=le?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0?void 0:b.length)>0){de.current=oe;const Ie=(S=le?.video)===null||S===void 0?void 0:S.bindProducts[oe];W=Ie,Je=Ie?.bindCta}const rt=Ie=>{W?.link&&(Ze(Ie,le,W,Je,xt),O||qe(le,W,Je,V||Qe.current,xt),window.location.href=window.getJointUtmLink(W.link))};he(()=>{ze&&(Te?.({eventName:"ProductView",product:W}),Te?.({eventName:"PageView",product:W}))},[ze,Te]),he(()=>{const Ie=()=>{Qe.current=new Date};return Ie(),window.addEventListener("pageshow",Ie),()=>{window.removeEventListener("pageshow",Ie)}},[]);const bt=Si({product:W,enableFormattedPrice:(v=B?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:Fe,style:B?.price}),At=(Se?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((m=ie?.horizontalMargin)!==null&&m!==void 0?m:0)*2,Tt=we?At*(we.h/we.w):At,zt=({isPost:Ie})=>{var _e,It,ii,ct;return u.createElement("div",null,u.createElement("div",{className:"pb-commondity-content-collection",style:Dt(B?.collection),hidden:!!W&&(!W?.collection||W?.collection===""),dangerouslySetInnerHTML:{__html:Me((_e=W?.collection)!==null&&_e!==void 0?_e:"Tiffany Lock",B?.collection)}}),u.createElement("div",{className:"pb-commondity-content-title",style:Dt(B?.title),hidden:!!W&&!W?.title,dangerouslySetInnerHTML:{__html:Me((It=W?.title)!==null&&It!==void 0?It:"Pendant in Yellow Gold with Diamonds, Medium",B?.title)}}),u.createElement("div",{className:"pb-commondity-content-price",style:Dt(B?.price),hidden:!!W&&!W?.price,dangerouslySetInnerHTML:{__html:bt??""}}),u.createElement("div",{hidden:!!W&&!W?.taxInfo,style:Dt(B?.taxInfo),dangerouslySetInnerHTML:{__html:Me((ii=W?.taxInfo)!==null&&ii!==void 0?ii:"\u7A0E\u8D39",B?.taxInfo)}}),u.createElement("div",{hidden:!!W&&(!W?.info||W?.info==="")},u.createElement(Ui,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>ke(!0),isPost:Ie,text:(ct=W?.info)!==null&&ct!==void 0?ct:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
1
+ import{isEmpty as oi,cloneDeep as ci,isEqual as On,debounce as Pi,throttle as Ln,get as jn}from"lodash";import{v4 as Wl}from"uuid";import zl from"pako";import u,{useContext as hi,useMemo as me,memo as Ne,useEffect as he,createContext as Ai,useState as X,useRef as Ae,useCallback as re,forwardRef as Oi,useImperativeHandle as Mn,useLayoutEffect as Hl}from"react";import Nn from"qs";import Ul from"eventemitter3";import{css as Ve}from"@emotion/css";import*as Dn from"react-dom";import Xl from"react-dom";function at(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]]);return i}function dt(t,e,i,n){function o(l){return l instanceof i?l:new i(function(a){a(l)})}return new(i||(i=Promise))(function(l,a){function d(r){try{c(n.next(r))}catch(p){a(p)}}function s(r){try{c(n.throw(r))}catch(p){a(p)}}function c(r){r.done?l(r.value):o(r.value).then(d,s)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const ql=/:\w+/g;var Vn=(t,e)=>dt(void 0,void 0,void 0,function*(){const i={},n={};for(let o=0;o<e?.length;o++){const{id:l,method:a,url:d,urlParams:s,name:c,queryString:r,headers:p,body:h}=e[o];let f=d;s&&Object.entries(s).forEach(([y,b])=>{f=f.replace(ql,S=>S===y?b:S)}),r&&(f+=r),n[l]=c;try{const y=yield fetch(f,{method:a,headers:Object.assign({"Content-Type":"application/json"},p),body:JSON.stringify(h)}).then(b=>b.json());i[l]=y}catch(y){console.error("DataSource request error: ",y),i[l]={}}}return{$store:i,idMapName:n}});const Rn="SXP_TOKEN_INFO",Yl=(t,e)=>dt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),o=t.getAppId(),l=t.getApiUrl(),a=window.localStorage.getItem(Rn);let d=JSON.parse(a||"{}");if(Date.now()>((i=d?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":o||""}}).then(r=>r.json());if(c.success){const r=c.data;d=Object.assign(Object.assign({},r),{expireTime:Date.now()+r.expire*1e3}),window.localStorage.setItem(Rn,JSON.stringify(d))}}return d});function Li(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let o;if(e=e||i.length,t)for(o=0;o<t;o++)n[o]=i[0|Math.random()*e];else{let l;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",o=0;o<36;o++)n[o]||(l=0|Math.random()*16,n[o]=i[o===19?l&3|8:l])}return n.join("")}const Gl=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let o=0;for(;o<t;)e+=i.charAt(Math.floor(Math.random()*n)),o+=1;return e},Zl=()=>{const t=Wl();return t?.replaceAll?t.replaceAll("-",""):Gl(32)},Me=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],o=e?.["fontFamily-en"];if(!n&&!o)return t;let l=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,s=`font-family:${n??"inherit"}`,c=`font-family:${o??"inherit"}`,r=h=>{const f=h.search(a),y=h.search(d);return f!==-1&&y!==-1&&f<y&&(i+=`<span style="${s}">${h.substring(f,y)}</span>`,l=h.substring(y,h?.length)),f!==-1&&y!==-1&&f>y&&(i+=`<span style="${c}">${h.substring(y,f)}</span>`,l=h.substring(f,h?.length)),f===-1?(i+=`<span style="${c}">${h.substring(y,h?.length)}</span>`,l="",!1):y===-1?(i+=`<span style="${s}">${h.substring(f,h?.length)}</span>`,l="",!1):!0};let p=!0;for(;p;)p=r(l);return i};function Bn(t){const i=document.cookie.split(";");let n=null;return i.forEach(o=>{const[l,a]=o.trim().split("=");l===t&&(n=a)}),n??""}function Ji(){const t=self.navigator.userAgent;return t?/TalkBack/i.test(t)||/Funtouch/i.test(t)||/VoiceOver/i.test(t)||/NVDA/i.test(t)||/JAWS/i.test(t)||/ChromeVox/i.test(t):!1}function bi(t){if(!t)return;const e=[];for(let o=0;o<t.length;o++){const l=t[o],a=t.substring(o+1,t.length);l==="&"&&a?.indexOf("=")!==-1&&(a?.indexOf("=")<a?.indexOf("&")||a?.indexOf("&")===-1)&&e.push(o)}const i=e.length>0?[]:[t];let n=0;return e?.map(o=>{i?.push(t.substring(n,o)),n=o+1,o===e[e.length-1]&&o<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function Fn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),n=new Uint8Array(i),o=zl.inflate(n,{to:"string"});return JSON.parse(o)}let _i=null;const Kl={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Jl{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,_i)return _i;_i=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Kl[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let wt=null;const _l={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{wt||(wt=new Jl),n&&wt.setApiUrl(n),wt.setAppId(t),wt.setTenantId(e),wt.setEnv(i)},getDetail:t=>{if(!wt)return;const e=wt.getTenantId(),i=wt.getAppId(),n=wt.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>dt(void 0,void 0,void 0,function*(){var l,a;const d=yield o.json(),s=Fn((l=d?.data)===null||l===void 0?void 0:l.data);if(s){const{$store:c}=yield Vn(n,(a=s?.dataSource)!==null&&a!==void 0?a:[]);d.data.data=s,Object.assign(d.data.data,{__STORE__:c})}return d}))},getSxpDetailByPageId:t=>dt(void 0,void 0,void 0,function*(){if(!wt)return;const e=wt.getTenantId(),i=wt.getAppId(),n=wt.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>dt(void 0,void 0,void 0,function*(){var l;const a=yield o.json();return a.success?(l=a?.data)===null||l===void 0?void 0:l.map(s=>Object.assign(Object.assign({},s),{data:Fn(s?.data)})):void 0}))}),getSxpRecommendVideoData:t=>dt(void 0,void 0,void 0,function*(){if(!wt)return;const e=yield Yl(wt,t),i=Li(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");oi(n)&&(n=Li(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const o=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return o?.data||null})};function _t(){return hi($n)}function Ql(){return hi(Qn)}const Qi="feRealSessionIdKey",Wn=()=>{const t=Zl();return`${Date.now()}${t}`},$l=()=>{let t=eo();return t||(t=Wn(),window.localStorage.setItem(Qi,t)),t},$i=()=>{const t=Wn();window.localStorage.setItem(Qi,t)},eo=()=>window.localStorage.getItem(Qi),zn="SXP_FAKE_USER_ID",Hn="FAKE_USER_STATE",Un="AGREE_POLICY",Xn="SLIDE_SKIP_STATE",qn="CCONTSENT_STATE",Yn="USER_CONSENT_RESULT",to=()=>{let t=window.localStorage.getItem(zn);return oi(t)&&(t=Li(36,62),window.localStorage.setItem(zn,t)),t},io=()=>{const t=window.localStorage.getItem(Hn);return oi(t)&&window.localStorage.setItem(Hn,"true"),oi(t)},no=()=>{const t=window.localStorage.getItem(Xn);return oi(t)},lo=()=>{window.localStorage.setItem(Xn,"true")},oo=()=>{const t=window.localStorage.getItem(qn);return oi(t)&&window.localStorage.setItem(qn,"true"),oi(t)},Gn=()=>window.localStorage.getItem(Yn)==="true",Zn=()=>{window.localStorage.setItem(Yn,"true")};function Bt(t,e){const{appDomain:i}=Ue();return me(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const ht=new Ul;var pt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(pt||(pt={}));const ao=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:o,privacy_policy_title:l})=>{const{setIsAgreePolicy:a,bffEventReport:d}=Ue(),s=me(()=>{var p;const h=location.search.slice(1),f={};(p=bi(h.replace(/\+/g,"%2B")))===null||p===void 0||p.map(y=>{const b=y.split("=")[0],S=y.split("=")[1];f[b]=S});for(const y in f)f[y]=f[y].replace(/%2B/g,"+");return f},[]),c=p=>{var h;return(h=s[p])!==null&&h!==void 0?h:null};he(()=>{d?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:c("utm_source"),utmMedium:c("utm_medium"),utmCampaign:c("utm_campaign"),utmId:c("utm_id"),utmContent:c("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const r=()=>{d?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),a?.(!0),window.localStorage.setItem(Un,"yes")};return u.createElement("div",{className:"consent-bg"},u.createElement("div",{className:"consent"},u.createElement("div",{className:"consent-col"},u.createElement("div",{className:"consent-title"},i??"Privacy Policy"),u.createElement("div",{className:"consent-content"},n??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),u.createElement("div",{className:"consent-col"},u.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:r},"Agree"),u.createElement("a",{className:"consent-policy",target:"_blank",href:o?`https://${o}`:void 0},l??"More information"))))};var so=Ne(ao);const Kn=Ai({rtcList:[],tagList:[]});var en;(function(t){t[t.BFF=5]="BFF"})(en||(en={}));const ji="FOR U",ro=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:o,defaultSize:l,isPreview:a=!1,sxpParameter:d,appDomain:s,hashTagSize:c,loadingImage:r,isOpenHashTag:p=!1,enabledMetaConversionApi:h=!1,consentHeight:f,consentWidth:y,isOpenConsent:b=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:m,dataList:x,onUpdateSchema:C,onUpdateChannel:k})=>{var N,A,w,T,M;const[I,L]=X([]),[E,R]=X([]),[F,O]=X(!0),[V,D]=X({rtc:"",requestId:""}),P=Ae(null),B=Ae(!1),[U,K]=X(()=>!!window.localStorage.getItem(Un)),[$,ie]=X(),[fe,we]=X(),[ne,Re]=X(p),[ze,Ye]=X([]),[G,J]=X(0),[Se,Te]=X(!1),[Ee,de]=X(null),Fe=Ae(),Ze=Ae(),qe=Ae(),[Qe,it]=X(ji),ke=Ae(-1),Z=Ae(null),[q,oe]=X(!1),[ae,be]=X((A=(N=m?.data)===null||N===void 0?void 0:N.sxpPageConf)===null||A===void 0?void 0:A.globalConfig),[De,$e]=X(),[le,W]=X(!1),[Je,xt]=X(),[rt,bt]=X(),[At,Tt]=X([]),[zt,jt]=X(),[Dt,Yt]=X(),Mt=me(()=>De??m,[De,m]),Et=me(()=>{var H,z,ce,Le;return(((Le=(ce=(z=(H=ae?.consent)===null||H===void 0?void 0:H[0])===null||z===void 0?void 0:z.item)===null||ce===void 0?void 0:ce.props)===null||Le===void 0?void 0:Le.privacy_necessity)&&!U&&!S||b)&&le},[U,ae,b,S,le]),ti=re(H=>{k?.(H),bt(H)},[]),Vt=re(H=>{var z;const ce=H?.recList;return(z=ce?.map(Ce=>{var Pe,He,Xe,We,j,Y;if(!((Pe=Ce?.video)===null||Pe===void 0)&&Pe.bindProducts&&((Xe=(He=Ce?.video)===null||He===void 0?void 0:He.bindProducts)===null||Xe===void 0?void 0:Xe.length)>0){const _=(Y=(j=(We=Ce?.video)===null||We===void 0?void 0:We.bindProducts)===null||j===void 0?void 0:j.filter(se=>!!se?.bindCta))!==null&&Y!==void 0?Y:[];return Object.assign(Object.assign({},Ce),{video:Object.assign(Object.assign({},Ce?.video),{bindProducts:_})})}return Ce}))!==null&&z!==void 0?z:[]},[]);he(()=>{let H;return At.length>0&&(H=setInterval(()=>{const ce=new Date,Le=15*1e3;Tt(Ce=>Ce.filter(Pe=>ce-Pe.time<=Le))},1e3)),()=>{clearInterval(H)}},[At]),he(()=>{const H=z=>{Fe.current=z};return ht.on(pt.CHANGE_THEME_TAG,H),()=>{ht.off(pt.CHANGE_THEME_TAG,H)}},[]),he(()=>{Re(p)},[p]);const et=me(()=>e?.find(H=>H.type===en.BFF),[e]),gt=me(()=>{var H;return((H=et?.headers)===null||H===void 0?void 0:H["x-app-id"])+to()},[et]),ee=re((H,z)=>{if(!et)return;const ce=et.url;if(z?.query){const Le=Nn.stringify(z.query);H=`${H}?${Le}`}return z.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${ce}/api/${H}`,new Blob([JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},z.body),et.headers),{"x-user-id":gt}))))})],{type:"application/json;charset=UTF-8"})):window.fetch(`${ce}/api/${H}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":gt},et.headers),method:z.method,body:JSON.stringify(z.body)}).then(Le=>Le.json()).catch(Le=>Promise.reject(Le))},[et,gt]),Ie=re((H,z)=>{if(!et)return;const ce=et.url;if(z?.query){const Le=Nn.stringify(z.query);H=`${H}?${Le}`}return window.fetch(`${ce}/admin/${H}`,{headers:Object.assign({"Content-Type":"application/json"},et.headers),method:z.method,body:JSON.stringify(z.body)}).then(Le=>Le.json()).catch(Le=>Promise.reject(Le))},[et]),_e=re(H=>dt(void 0,void 0,void 0,function*(){var z,ce,Le,Ce,Pe,He,Xe,We,j,Y,_,se,pe,ue;if(H=Object.assign({maxSize:(z=H?.maxSize)!==null&&z!==void 0?z:o,defaultSize:(ce=H?.defaultSize)!==null&&ce!==void 0?ce:l,hashTag:H?.hashTag,traceInfo:H?.traceInfo,themeTag:H?.themeTag,pageNum:H?.pageNum,contentFilter:H?.contentFilter,productFilter:H?.productFilter},Dt&&{chatlabsId:Dt}),rt)H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(rt)});else if(i){const ve=(Pe=(Ce=(Le=bi(i))===null||Le===void 0?void 0:Le.filter(xe=>{var te,Be;const ge=xe.split("=")[0];return(Be=(te=v?.channels)!==null&&te!==void 0?te:[])===null||Be===void 0?void 0:Be.includes(ge)}))===null||Ce===void 0?void 0:Ce.join("&"))!==null&&Pe!==void 0?Pe:"";ve&&(H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(ve)}))}if(S){let ve=1;if(H=Object.assign(Object.assign(Object.assign({},H),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!H?.channel||B.current)return;B.current=!0;let xe=[],te=null;const Be=ge=>dt(void 0,void 0,void 0,function*(){var ye,ot,nt,tt,lt,ut;if(ge.pageNum=ve,te=yield Ie?.("recommend/direct_page",{method:"POST",body:ge}),!te?.success)return;O(!1),xe=xe.concat((tt=(nt=(ot=(ye=te?.data)===null||ye===void 0?void 0:ye.recList)===null||ot===void 0?void 0:ot.filter)===null||nt===void 0?void 0:nt.call(ot,Ke=>Ke?.product||Ke?.video))!==null&&tt!==void 0?tt:[]),I?.length===0&&(L(Vt(Object.assign(Object.assign({},te?.data),{recList:xe}))),Ye(Vt(Object.assign(Object.assign({},te?.data),{recList:xe})))),((ut=(lt=te?.data)===null||lt===void 0?void 0:lt.recList)===null||ut===void 0?void 0:ut.some(Ke=>Ke?.product||Ke?.video))&&(ve=ve+1,yield Be(ge))});return yield Be(H),!H?.hashTag&&te&&D({rtc:(He=te?.data)===null||He===void 0?void 0:He.rtc,requestId:(Xe=te?.data)===null||Xe===void 0?void 0:Xe.requestId}),Object.assign(Object.assign({},te?.data),{recList:xe})}ae?.enablePreview&&(H=Object.assign(Object.assign({},H),{directPage:!0,level:1,pageNum:(We=H?.pageNum)!==null&&We!==void 0?We:1}));const Q=yield ee?.("v1/recommend/list",{method:"POST",body:H});if(Q?.success){if(H?.hashTag||D({rtc:Q.data.rtc,requestId:Q.data.requestId}),ae?.enablePreview&&!S){let ve=[];return ve=ve.concat((se=(_=(Y=(j=Q?.data)===null||j===void 0?void 0:j.recList)===null||Y===void 0?void 0:Y.filter)===null||_===void 0?void 0:_.call(Y,te=>te?.product||te?.video))!==null&&se!==void 0?se:[]),((ue=(pe=Q?.data)===null||pe===void 0?void 0:pe.recList)===null||ue===void 0?void 0:ue.some(te=>te?.product||te?.video))||oe(!0),Object.assign(Object.assign({},Q.data),{recList:ve})}return Q?.data}}),[ee,i,o,l,g,rt,Dt,Ie]),It=re(H=>dt(void 0,void 0,void 0,function*(){var z,ce,Le,Ce;if(I.length<=0)return;const Pe=I?.[I?.length-1],He=yield _e(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:fe?.hashTag},((z=Pe?.product)===null||z===void 0?void 0:z.itemId)&&{productFilter:[(ce=Pe?.product)===null||ce===void 0?void 0:ce.itemId]}),((Le=Pe?.video)===null||Le===void 0?void 0:Le.itemId)&&{contentFilter:[(Ce=Pe?.video)===null||Ce===void 0?void 0:Ce.itemId]}),{themeTag:Fe.current}),ae?.enablePreview&&!S&&{pageNum:H}));return L(I.concat(Vt(He))),Ye(ze.concat(Vt(He))),He}),[_e,I,fe,ze]),ii=re((H,z)=>{var ce,Le,Ce,Pe,He;let Xe=!1;const We=(Le=(ce=m?.data)===null||ce===void 0?void 0:ce.sxpPageConf)===null||Le===void 0?void 0:Le.globalConfig;if(!((Ce=We?.session)===null||Ce===void 0)&&Ce.enable){const j=localStorage.getItem("sessionStartTime"),Y=j?JSON.parse(j):new Date().getTime();Math.floor((new Date().getTime()-Y)/1e3/60)>=((He=(Pe=We?.session)===null||Pe===void 0?void 0:Pe.expires)!==null&&He!==void 0?He:30)&&(z?.("sessionTimeOut"),$i(),Ze.current=new Date,Xe=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else H&&$i();return Xe},[m]),ct=re(({userInfo:H,eventInfo:z,reportLayId:ce=!0})=>{var Le,Ce;if(!n||ae?.enablePreview)return;H||(H={});const Pe=$l(),He={},Xe=location.search.slice(1);(Le=bi(Xe))===null||Le===void 0||Le.map(se=>{const pe=se.split("=")[0],ue=se.split("=")[1];He[pe]=ue});const We=He?.cl_source,j=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Pe,rtc:V.rtc,requestId:V.requestId},{playbookType:zt}),Je&&ce&&{layoutVariantId:Je}),z),z?.position&&rt&&{position:Number(z?.position)+1+""}),We&&{clSource:We}),Y=Object.entries(H).map(([se,pe])=>({name:se,value:pe})),_=Object.entries(j).map(([se,pe])=>pe&&{name:se,value:pe}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",H),console.log("eventInfo:",j),console.log("========= \u7ED3\u675F ========="),ee?.(`v2/cld/${(Ce=et?.headers)===null||Ce===void 0?void 0:Ce["x-app-id"]}/${z?.eventSubject}${We?`/${decodeURIComponent(We)}`:""}`,{method:"POST",body:{userInfo:Y,eventInfo:_},type:"beacon"})},[ee,V,n,ae?.enablePreview,Je,ae,zt,et]),ni=re(({eventName:H,product:z})=>{var ce,Le,Ce,Pe,He,Xe;if(!n||!h||ae?.enablePreview||!(!((ce=ae?.converApi)===null||ce===void 0)&&ce[H]))return;const We=ci((Le=ae?.converApi)===null||Le===void 0?void 0:Le[H]),j=new URLSearchParams(window.location.search),Y=j?.get("fbclid"),_={event_source_url:(Ce=window?.location)===null||Ce===void 0?void 0:Ce.href,external_id:gt,client_user_agent:(He=(Pe=window?.navigator)===null||Pe===void 0?void 0:Pe.userAgent)!==null&&He!==void 0?He:"",fbc:Y?`fb.2.${new Date().getTime()}.${Y}`:"",fbp:Bn("_fbp")?`fb.2.${new Date().getTime()}.${Bn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},se=/\{\{(.*?)\}\}/g,pe=ue=>{if(ue){if(ue instanceof Array)ue?.map(Q=>pe(Q));else for(const Q in ue)if(ue.hasOwnProperty(Q)){const ve=ue?.[Q];if(typeof ve=="object")pe(ve);else if(typeof ve=="string"){const xe=ve?.match(se);xe&&xe.forEach(te=>{var Be;const ge=te.substring(2,te.length-2);try{let ye=new Function("fix_par","product",`return ${ge}`)(_,z);ye?(ge?.indexOf("currency")!==-1&&ye?.indexOf("-")!==-1&&typeof ye=="string"&&(ye=(Be=ye?.split("-"))===null||Be===void 0?void 0:Be[0]),ue[Q]=ye):delete ue[Q]}catch(ye){delete ue[Q],console.error("An error occurred:",ye?.message)}})}}}};return pe(We),ee?.(`v2/event/report/FB/${(Xe=et?.headers)===null||Xe===void 0?void 0:Xe["x-app-id"]}/${H}`,{method:"POST",body:We,type:"beacon"})},[ee,n,h,ae?.enablePreview,ae,gt,et]),ri=re(H=>dt(void 0,void 0,void 0,function*(){const z=yield ee?.("v1/recommend/like",{method:"POST",body:H});return z?.success}),[ee]),Jt=re(H=>dt(void 0,void 0,void 0,function*(){const z=yield ee?.("v1/recommend/unlike",{method:"POST",body:H});return z?.success}),[ee]),Ht=re(H=>dt(void 0,void 0,void 0,function*(){const z=yield ee?.("v1/customform",{method:"POST",body:H});return z?.success}),[ee]),Rt=re(H=>dt(void 0,void 0,void 0,function*(){var z,ce,Le,Ce,Pe,He,Xe,We;const j=!!(!((Le=(ce=(z=H?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||ce===void 0?void 0:ce.globalConfig)===null||Le===void 0)&&Le.isShowTag);if(!(!i||!j))try{const Y=(He=(Pe=(Ce=bi(i))===null||Ce===void 0?void 0:Ce.filter(se=>{var pe,ue;const Q=se.split("=")[0];return(ue=(pe=v?.channels)!==null&&pe!==void 0?pe:[])===null||ue===void 0?void 0:ue.includes(Q)}))===null||Pe===void 0?void 0:Pe.join("&"))!==null&&He!==void 0?He:"",_=yield ee?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Y)}});R((We=(Xe=_?.data)===null||Xe===void 0?void 0:Xe.tags)!==null&&We!==void 0?We:[])}catch(Y){console.log("e",Y)}}),[ee,i]),yt=re((H,z,ce,Le)=>{var Ce,Pe,He,Xe,We,j,Y,_,se,pe,ue,Q,ve,xe,te,Be,ge,ye,ot,nt,tt,lt,ut,mt,Ke,ft,je,Oe,Pt,kt,di,st,li,Yi,Gi,Zi;const Gt=ce?.bindCta,Fl=((Ce=z?.video)===null||Ce===void 0?void 0:Ce.bindProduct)||((Pe=z?.video)===null||Pe===void 0?void 0:Pe.bindProducts)&&((Xe=(He=z?.video)===null||He===void 0?void 0:He.bindProducts)===null||Xe===void 0?void 0:Xe.length)>0;let Ci="",Ki=null;Se?Ci="hashTagPage":!((We=z?.video)===null||We===void 0)&&We.url?(Ci="videoPage",Ki="video"):!((Y=(j=z?.video)===null||j===void 0?void 0:j.imgUrls)===null||Y===void 0)&&Y.length&&(Ci="imagePage",Ki="image");const Pn=(xe=(Q=(_=ce?.tags)!==null&&_!==void 0?_:(ue=(pe=(se=z?.video)===null||se===void 0?void 0:se.bindProducts)===null||pe===void 0?void 0:pe[0])===null||ue===void 0?void 0:ue.tags)!==null&&Q!==void 0?Q:(ve=z?.video)===null||ve===void 0?void 0:ve.tags)!==null&&xe!==void 0?xe:(te=z?.product)===null||te===void 0?void 0:te.tags;ct?.({eventInfo:Object.assign(Object.assign({},H),{ctaId:(Be=Gt?.itemId)!==null&&Be!==void 0?Be:"",ctaName:(ge=Gt?.title)!==null&&ge!==void 0?ge:"",contentTags:Pn?JSON.stringify(Pn):"",position:Le+"",contentId:(ot=(ye=z?.video)===null||ye===void 0?void 0:ye.itemId)!==null&&ot!==void 0?ot:"",productId:Fl?ce?.itemId:"",traceInfo:(Gi=(st=(je=(ut=(nt=Gt?.traceInfo)!==null&&nt!==void 0?nt:(lt=(tt=z?.video)===null||tt===void 0?void 0:tt.bindCta)===null||lt===void 0?void 0:lt.traceInfo)!==null&&ut!==void 0?ut:(ft=(Ke=(mt=z?.video)===null||mt===void 0?void 0:mt.bindProduct)===null||Ke===void 0?void 0:Ke.bindCta)===null||ft===void 0?void 0:ft.traceInfo)!==null&&je!==void 0?je:(di=(kt=(Pt=(Oe=z?.video)===null||Oe===void 0?void 0:Oe.bindProducts)===null||Pt===void 0?void 0:Pt[0])===null||kt===void 0?void 0:kt.bindCta)===null||di===void 0?void 0:di.traceInfo)!==null&&st!==void 0?st:(Yi=(li=z?.product)===null||li===void 0?void 0:li.bindCta)===null||Yi===void 0?void 0:Yi.traceInfo)!==null&&Gi!==void 0?Gi:"",fromKName:Ci,fromKPage:(Zi=location?.href)!==null&&Zi!==void 0?Zi:"",contentFormat:Ki})})},[ct,Se]),Ei=re(()=>{var H,z,ce;const Le=location.search.slice(1),Ce={};(H=bi(Le.replace(/\+/g,"%2B")))===null||H===void 0||H.map(Xe=>{const We=Xe.split("=")[0],j=Xe.split("=")[1];Ce[We]=j});for(const Xe in Ce)Ce[Xe]=Ce[Xe].replace(/%2B/g,"+");const Pe=Xe=>{var We;return(We=Ce[Xe])!==null&&We!==void 0?We:""},He=new Date;Ze.current=He,ct?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Pe("utm_source"),utmMedium:Pe("utm_medium"),utmCampaign:Pe("utm_campaign"),utmId:Pe("utm_id"),utmContent:Pe("utm_content"),enterTime:Math.floor(He/1e3)+"",requestId:null,enterUrl:(ce=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&ce!==void 0?ce:""},reportLayId:!1})},[ct]),Ii=re(()=>dt(void 0,void 0,void 0,function*(){var H,z;const ce=yield ee?.("v1/account",{method:"GET"});return Yt((H=ce?.data)===null||H===void 0?void 0:H.chatLabsId),((z=ce?.data)===null||z===void 0?void 0:z.consentResult)==="true"}),[ee]),ki=re(H=>dt(void 0,void 0,void 0,function*(){const z=yield ee?.("v1/account/consent",{method:"POST",body:{consentResult:H}});return z?.success}),[ee]);he(()=>{Et||Ei()},[Et]),he(()=>{if(Et||a)return;O(!0);let H,z;_e().then(ce=>{var Le,Ce,Pe,He,Xe,We,j,Y,_,se,pe;if(ce){const ue=Vt(ce);let Q,ve;if(ce?.layoutVariantId){H=ce?.layoutVariantId,xt(ce?.layoutVariantId);const xe=(Ce=(Le=ce?.layoutVariantId)===null||Le===void 0?void 0:Le.split("-"))===null||Ce===void 0?void 0:Ce[1];xe&&(Q=x?.find(te=>te?.id===xe),Q?($e(Q),document.title=(Pe=Q?.name)!==null&&Pe!==void 0?Pe:"home",ve=(Xe=(He=Q?.data)===null||He===void 0?void 0:He.sxpPageConf)===null||Xe===void 0?void 0:Xe.globalConfig,be(ve),C?.(Q?.data),!((_=(Y=(j=(We=ve?.consent)===null||We===void 0?void 0:We[0])===null||j===void 0?void 0:j.item)===null||Y===void 0?void 0:Y.props)===null||_===void 0)&&_.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(rt||(ve?.playbook==="organic menu"||!ve&&ae?.playbook==="organic menu"?(jt("organicMenu"),ue.unshift("organic menu"),z="organicMenu"):(jt("paidMedia"),z="paidMedia")),L(ue),Ye(ue),Rt(Q??Mt),rt){const xe=ue?.[0],te=((se=xe?.video)===null||se===void 0?void 0:se.traceInfo)||((pe=xe?.product)===null||pe===void 0?void 0:pe.traceInfo)||"";ct?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:te,branchfeed:rt},H&&{layoutVariantId:H})}),ct?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:te,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-qe?.current)/1e3)+""},H&&{layoutVariantId:H})})}}}).finally(()=>{ct({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},H&&{layoutVariantId:H}),z&&{playbookType:z})}),O(!1)})},[Et,rt]),he(()=>{a&&(O(!0),Rt(m),_e().then(H=>{if(H){const z=Vt(H);ae?.playbook==="organic menu"&&!rt&&z.unshift("organic menu"),L(z),Ye(z)}}).finally(()=>{O(!1)}))},[_e,Rt,rt]);const qi=Bt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return u.createElement(Kn.Provider,{value:{rtcList:I,setRtcList:L,mutateLike:ri,mutateUnlike:Jt,submitForm:Ht,popupDetailData:$,loadVideos:It,setPopupDetailData:ie,getRecommendVideos:_e,bffEventReport:ct,isPreview:a,loading:F,sxpParameter:d,waterFallData:fe,setWaterFallData:we,ctaEvent:yt,swiperRef:P,openHashtag:ne,setOpenHashtag:Re,cacheRtcList:ze,setCacheRtcList:Ye,cacheActiveIndex:G,setCacheActiveIndex:J,isFromHashtag:Se,setIsFromHashtag:Te,appDomain:s,hashTagSize:c,loadingImage:r??qi,isOpenHashTag:p,tagList:E,setLoading:O,videoRef:Ee,setVideoRef:de,bffFbReport:ni,isAgreePolicy:U,setIsAgreePolicy:K,curTime:Ze,h5EnterLink:Ei,themeTag:Fe,isShowConsent:Et,selectTag:Qe,setSelectTag:it,globalConfig:ae,popupCurTimeRef:Z,checkCommodityIndexRef:ke,isEditor:S,isNoMoreData:q,updateChannel:ti,channel:rt,eventTimeList:At,setEventTimeList:Tt,multiPostTimeRef:qe,refreshFeSession:ii,getAccount:Ii,accountSonsent:ki}},Et?u.createElement(so,Object.assign({},(M=(T=(w=ae?.consent)===null||w===void 0?void 0:w[0])===null||T===void 0?void 0:T.item)===null||M===void 0?void 0:M.props)):t({rtcList:I,mutateLike:ri,mutateUnlike:Jt,submitForm:Ht,tagList:E,pageData:Mt}))};var Jn=Ne(ro);function Ue(){return hi(Kn)}var _n;(function(t){t.STRING="string",t.NUMBER="number",t.ARRAY="array",t.OBJECT="object",t.BOOLEAN="boolean",t.ARRAY_OBJECT="array-object",t.ARRAY_STRING="array-string",t.ARRAY_NUMBER="array-number"})(_n||(_n={}));const Qn=Ai({$store:{},options:[],configs:[]}),co=({children:t,isSsr:e,enable:i})=>{const[n,o]=X([]),{schema:l}=_t(),[a,d]=X(l.__STORE__||{}),[s,c]=X([]);he(()=>{var h;e||On(s,l?.dataSource)||c((h=l?.dataSource)!==null&&h!==void 0?h:[])},[l?.dataSource,e]);const r=re(()=>dt(void 0,void 0,void 0,function*(){const{$store:h,idMapName:f}=yield Vn("",s);d(h),p(h,f)}),[s]),p=(h,f)=>{const y=[];Object.entries(h).forEach(([b,S])=>{Object.keys(S).forEach(v=>{const g={label:`${f[b]} - ${v}`,value:`{{ ${b}.${v} }}`};y.push(g)})}),o(y)};return he(()=>{e||r()},[r,e,l]),i?u.createElement(Qn.Provider,{value:{$store:l.__STORE__||a,options:n,configs:s}},t):t};var uo=Ne(co);const Mi={id:Li(6,10),item:{type:"common",h:300,category:"block",displayName:"block",isFirstLayout:!0,w:1e3},point:{i:"x-0",x:-38.34375,y:0,w:1e3,h:300,isBounded:!0,actualX:0,actualY:0},pathArr:[0],positionY:0},tn={id:"",duration:0,name:"none"},$n=u.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Mi],redoStack:[],popup:tn,setPopup:()=>{}}),el=Oi(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:o=!0,utmVal:l},a)=>{const[d,s]=X(null),[c,r]=X(n||{pointData:[Mi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[p,h]=X([Mi]),[f,y]=X([[Mi]]),[b,S]=X([]),[v,g]=X(tn);typeof window<"u"&&(window.sxpPopup=(N,A)=>{g(Object.assign(Object.assign(Object.assign({},tn),{id:N}),A))}),typeof window<"u"&&(window.getJointUtmLink=N=>(lo(),N?.indexOf("?")!==-1?N+(l?"&"+l:""):N+(l?"?"+l:""))),he(()=>{y([c.pointData]),S([])},[c.type]);const m=re(N=>{const A=ci(c);A&&(A.dataSource=N,r?.(A))},[c]),[x,C]=X();Mn(a,()=>({loadSchema(N){N&&(y([N.pointData]),r(N))},exportSchema(){return ci(c)},getPageInfoData(){return x},initPageInfoData(N){N&&C(N)}}));const k=me(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return u.createElement($n.Provider,{value:{resolver:e,currentNode:d,schema:c,setCurrentNode:s,setSchema:r,saveDataSource:m,prePiontData:p,setPrePiontData:h,pageInfoData:x,setPageInfoData:N=>C(Object.assign(Object.assign({},x),N)),undoStack:f,redoStack:b,setRedoStack:S,setUndoStack:y,getCurPageConf:k,popup:v,setPopup:g}},u.createElement(uo,{isSsr:i,enable:o},t))});var vo=Object.freeze({__proto__:null,EditorCore:el}),po=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],mo=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Ct(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:o}=Ue(),l=re((s,c,r,p,h,f)=>{var y,b,S,v,g,m,x,C,k,N,A,w,T,M,I,L,E,R,F,O,V,D,P,B,U,K,$,ie,fe,we,ne,Re,ze,Ye,G,J,Se,Te;if(n?.findIndex(qe=>qe.target===s?.target)!==-1)return;s&&o?.(qe=>[...qe,{target:s?.target,time:new Date}]);let de="";e&&(!((b=(y=c?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0)&&b.length||!((S=c?.video)===null||S===void 0)&&S.bindProduct)?de="pdpPage":i?de="hashTagPage":!((v=c?.video)===null||v===void 0)&&v.url?de="videoPage":!((g=c?.video)===null||g===void 0)&&g.imgUrls&&(!((x=(m=c?.video)===null||m===void 0?void 0:m.imgUrls)===null||x===void 0)&&x.length)?de="imagePage":c?.product&&(de="productPage");const Fe=(M=(w=(C=r?.tags)!==null&&C!==void 0?C:(A=(N=(k=c?.video)===null||k===void 0?void 0:k.bindProducts)===null||N===void 0?void 0:N[0])===null||A===void 0?void 0:A.tags)!==null&&w!==void 0?w:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&M!==void 0?M:(I=c?.product)===null||I===void 0?void 0:I.tags;let Ze=null;!((L=c?.video)===null||L===void 0)&&L.url?Ze="video":!((E=c?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(R=c?.video)===null||R===void 0?void 0:R.imgUrls)===null||F===void 0)&&F.length)&&(Ze="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(O=r?.itemId)!==null&&O!==void 0?O:"",productName:(V=r?.title)!==null&&V!==void 0?V:"",price:r?.price?r?.price+"":"0",productCollection:(D=r?.collection)!==null&&D!==void 0?D:"",fromKName:de,fromKPage:location?.href,contentTags:Fe?JSON.stringify(Fe):"",position:h+"",contentId:(B=(P=c?.video)===null||P===void 0?void 0:P.itemId)!==null&&B!==void 0?B:"",ctatId:(U=p?.itemId)!==null&&U!==void 0?U:"",traceInfo:(Te=(G=(ze=(fe=(K=f??r?.traceInfo)!==null&&K!==void 0?K:(ie=($=c?.video)===null||$===void 0?void 0:$.bindProduct)===null||ie===void 0?void 0:ie.traceInfo)!==null&&fe!==void 0?fe:(Re=(ne=(we=c?.video)===null||we===void 0?void 0:we.bindProducts)===null||ne===void 0?void 0:ne[0])===null||Re===void 0?void 0:Re.traceInfo)!==null&&ze!==void 0?ze:(Ye=c?.product)===null||Ye===void 0?void 0:Ye.traceInfo)!==null&&G!==void 0?G:(Se=(J=c?.video)===null||J===void 0?void 0:J.bindCta)===null||Se===void 0?void 0:Se.traceInfo)!==null&&Te!==void 0?Te:""},Ze&&{contentFormat:Ze})})},[t,e,i,n]),a=re((s,c,r,p,h)=>{var f,y,b,S,v,g,m,x,C,k,N,A,w,T;let M="";e&&(!((y=(f=s?.video)===null||f===void 0?void 0:f.bindProducts)===null||y===void 0)&&y.length||!((b=s?.video)===null||b===void 0)&&b.bindProduct)?M="pdpPage":s?.product&&(M="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:M,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:h+"",contentId:(S=s?.video)===null||S===void 0?void 0:S.itemId,ctatId:r?.itemId,traceInfo:(T=(A=(x=(v=c?.traceInfo)!==null&&v!==void 0?v:(m=(g=s?.video)===null||g===void 0?void 0:g.bindProduct)===null||m===void 0?void 0:m.traceInfo)!==null&&x!==void 0?x:(N=(k=(C=s?.video)===null||C===void 0?void 0:C.bindProducts)===null||k===void 0?void 0:k[0])===null||N===void 0?void 0:N.traceInfo)!==null&&A!==void 0?A:(w=s?.product)===null||w===void 0?void 0:w.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-p)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),d=re((s,c,r,p)=>{c&&c===ji&&t?.({eventInfo:{lastFeed:s,themeTags:r?`['${r}']`:"",hashTags:p?`['${p}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:a,backMainFeed:d}}const fo=({layout:t,columns:e,onChange:i})=>u.createElement(u.Fragment,null,e?.map((n,o)=>u.createElement("div",{key:o,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&u.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&u.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?n?.title:"\u8BF7\u8F93\u5165",name:n?.dataIndex},i&&{onChange:i})))));var ho=Ne(fo);const Ao=t=>{var e,i,{columns:n,style:o,title:l,textStyle:a,submitBgColor:d,submitColor:s,submitText:c,layoutType:r="inline",isExternalLink:p,isPopup:h,onClick:f,onClose:y,submitButtonStyle:b}=t,S=at(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=Ue(),{jumpToWeb:m}=Ct(),[x,C]=X(!1),[k,N]=X({}),[A,w]=X(0),T=me(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),M=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),I=me(()=>ci(n)||T,[n,T]),L=re(R=>{const{name:F,value:O}=R.target;N(Object.assign(Object.assign({},k),{[F]:O}))},[k]),E=Pi(R=>dt(void 0,void 0,void 0,function*(){var F,O,V,D,P;const B=k;if(!B)return;const U=(O=(F=Object.keys(B))===null||F===void 0?void 0:F.map($=>{var ie;return{name:$,value:(ie=B[$])!==null&&ie!==void 0?ie:""}}))===null||O===void 0?void 0:O.filter($=>$?.value);if(!U||!U?.length)return;C(!0);const K=yield v?.({attributes:U});if(C(!1),K){if(p){const $=g,ie=(V=$?.video)===null||V===void 0?void 0:V.bindProduct,fe=(P=(D=$?.video)===null||D===void 0?void 0:D.bindProduct)===null||P===void 0?void 0:P.bindCta,we=g?.index;m(R,$,ie,fe,we)}h||y?.(),f?.()}}),1e3);return he(()=>{const R=()=>{var F,O;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((O=document?.body)===null||O===void 0?void 0:O.clientHeight))<M?w(50):w(0)};return window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}},[]),u.createElement("div",{className:"pb-appoint-form"},u.createElement("div",{className:`pb-appoint-form-title ${Ve(Object.assign({},a))}`,dangerouslySetInnerHTML:{__html:Me(l,a)}}),u.createElement("div",Object.assign({className:Ve(Object.assign(Object.assign({},o),{marginTop:A}))},S),u.createElement("div",{className:"pb-appoint-form-container"},u.createElement(ho,{columns:I,layout:r,onChange:L}))),u.createElement("div",{className:"pb-appoint-form-btn-wrapper"},u.createElement("button",{"aria-label":c,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:s,background:d},b),dangerouslySetInnerHTML:{__html:Me(x?"loading...":c,b)}})))};var bo=Ne(Ao);function vt(t,e){return t.extend=e,t}const go=vt(bo,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:mo,bindableProps:[],interactionRender:po},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var yo=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}];function tl(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function nn(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:tl(e[i])&&tl(t[i])&&Object.keys(e[i]).length>0&&nn(t[i],e[i])})}const il={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 Ot(){const t=typeof document<"u"?document:{};return nn(t,il),t}const wo={document:il,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 St(){const t=typeof window<"u"?window:{};return nn(t,wo),t}function Qt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function So(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ui(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Ft(){return Date.now()}function xo(t){const e=St();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function To(t,e){e===void 0&&(e="x");const i=St();let n,o,l;const a=xo(t);return i.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(d=>d.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(o==="none"?"":o)):(l=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?o=l.m41:n.length===16?o=parseFloat(n[12]):o=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?o=l.m42:n.length===16?o=parseFloat(n[13]):o=parseFloat(n[5])),o||0}function Ni(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Eo(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Nt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!Eo(n)){const o=Object.keys(Object(n)).filter(l=>e.indexOf(l)<0);for(let l=0,a=o.length;l<a;l+=1){const d=o[l],s=Object.getOwnPropertyDescriptor(n,d);s!==void 0&&s.enumerable&&(Ni(t[d])&&Ni(n[d])?n[d].__swiper__?t[d]=n[d]:Nt(t[d],n[d]):!Ni(t[d])&&Ni(n[d])?(t[d]={},n[d].__swiper__?t[d]=n[d]:Nt(t[d],n[d])):t[d]=n[d])}}}return t}function Di(t,e,i){t.style.setProperty(e,i)}function nl(t){let{swiper:e,targetPosition:i,side:n}=t;const o=St(),l=-e.translate;let a=null,d;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const c=i>l?"next":"prev",r=(h,f)=>c==="next"&&h>=f||c==="prev"&&h<=f,p=()=>{d=new Date().getTime(),a===null&&(a=d);const h=Math.max(Math.min((d-a)/s,1),0),f=.5-Math.cos(h*Math.PI)/2;let y=l+f*(i-l);if(r(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),r(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),o.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=o.requestAnimationFrame(p)};p()}function Xt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Vi(t){try{console.warn(t);return}catch{}}function vi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Qt(e)),i}function ll(t){const e=St(),i=Ot(),n=t.getBoundingClientRect(),o=i.body,l=t.clientTop||o.clientTop||0,a=t.clientLeft||o.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+d-l,left:n.left+s-a}}function Io(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function ko(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function $t(t,e){return St().getComputedStyle(t,null).getPropertyValue(e)}function gi(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Ri(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function ln(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function on(t,e,i){const n=St();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ge(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function an(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Ot(),a=St();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function d(r){if(!e.enabled)return;const{rtlTranslate:p}=e;let h=r;h.originalEvent&&(h=h.originalEvent);const f=h.keyCode||h.charCode,y=e.params.keyboard.pageUpDown,b=y&&f===33,S=y&&f===34,v=f===37,g=f===39,m=f===38,x=f===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&x||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&m||b))return!1;if(!(h.shiftKey||h.altKey||h.ctrlKey||h.metaKey)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(b||S||v||g||m||x)){let C=!1;if(Ri(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ri(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,N=k.clientWidth,A=k.clientHeight,w=a.innerWidth,T=a.innerHeight,M=ll(k);p&&(M.left-=k.scrollLeft);const I=[[M.left,M.top],[M.left+N,M.top],[M.left,M.top+A],[M.left+N,M.top+A]];for(let L=0;L<I.length;L+=1){const E=I[L];if(E[0]>=0&&E[0]<=w&&E[1]>=0&&E[1]<=T){if(E[0]===0&&E[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((b||S||v||g)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),((S||g)&&!p||(b||v)&&p)&&e.slideNext(),((b||v)&&!p||(S||g)&&p)&&e.slidePrev()):((b||S||m||x)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),(S||x)&&e.slideNext(),(b||m)&&e.slidePrev()),o("keyPress",f)}}function s(){e.keyboard.enabled||(l.addEventListener("keydown",d),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(l.removeEventListener("keydown",d),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&s()}),n("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:s,disable:c})}function Bi(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=St();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,d=Ft(),s;const c=[];function r(m){let N=0,A=0,w=0,T=0;return"detail"in m&&(A=m.detail),"wheelDelta"in m&&(A=-m.wheelDelta/120),"wheelDeltaY"in m&&(A=-m.wheelDeltaY/120),"wheelDeltaX"in m&&(N=-m.wheelDeltaX/120),"axis"in m&&m.axis===m.HORIZONTAL_AXIS&&(N=A,A=0),w=N*10,T=A*10,"deltaY"in m&&(T=m.deltaY),"deltaX"in m&&(w=m.deltaX),m.shiftKey&&!w&&(w=T,T=0),(w||T)&&m.deltaMode&&(m.deltaMode===1?(w*=40,T*=40):(w*=800,T*=800)),w&&!N&&(N=w<1?-1:1),T&&!A&&(A=T<1?-1:1),{spinX:N,spinY:A,pixelX:w,pixelY:T}}function p(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function f(m){return e.params.mousewheel.thresholdDelta&&m.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Ft()-d<e.params.mousewheel.thresholdTime?!1:m.delta>=6&&Ft()-d<60?!0:(m.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),o("scroll",m.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),o("scroll",m.raw)),d=new l.Date().getTime(),!1)}function y(m){const x=e.params.mousewheel;if(m.direction<0){if(e.isEnd&&!e.params.loop&&x.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&x.releaseOnEdges)return!0;return!1}function b(m){let x=m,C=!0;if(!e.enabled||m.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const k=e.params.mousewheel;e.params.cssMode&&x.preventDefault();let N=e.el;e.params.mousewheel.eventsTarget!=="container"&&(N=document.querySelector(e.params.mousewheel.eventsTarget));const A=N&&N.contains(x.target);if(!e.mouseEntered&&!A&&!k.releaseOnEdges)return!0;x.originalEvent&&(x=x.originalEvent);let w=0;const T=e.rtlTranslate?-1:1,M=r(x);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(M.pixelX)>Math.abs(M.pixelY))w=-M.pixelX*T;else return!0;else if(Math.abs(M.pixelY)>Math.abs(M.pixelX))w=-M.pixelY;else return!0;else w=Math.abs(M.pixelX)>Math.abs(M.pixelY)?-M.pixelX*T:-M.pixelY;if(w===0)return!0;k.invert&&(w=-w);let I=e.getTranslate()+w*k.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),C=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),C&&e.params.nested&&x.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const L={time:Ft(),delta:Math.abs(w),direction:Math.sign(w),raw:m};c.length>=2&&c.shift();const E=c.length?c[c.length-1]:void 0;if(c.push(L),E?(L.direction!==E.direction||L.delta>E.delta||L.time>E.time+150)&&f(L):f(L),y(L))return!0}else{const L={time:Ft(),delta:Math.abs(w),direction:Math.sign(w)},E=s&&L.time<s.time+500&&L.delta<=s.delta&&L.direction===s.direction;if(!E){s=void 0;let R=e.getTranslate()+w*k.sensitivity;const F=e.isBeginning,O=e.isEnd;if(R>=e.minTranslate()&&(R=e.minTranslate()),R<=e.maxTranslate()&&(R=e.maxTranslate()),e.setTransition(0),e.setTranslate(R),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!O&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:L.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,c.length>=15&&c.shift();const V=c.length?c[c.length-1]:void 0,D=c[0];if(c.push(L),V&&(L.delta>V.delta||L.direction!==V.direction))c.splice(0);else if(c.length>=15&&L.time-D.time<500&&D.delta-L.delta>=1&&L.delta<=6){const P=w>0?.8:.2;s=L,c.splice(0),a=ui(()=>{e.slideToClosest(e.params.speed,!0,void 0,P)},0)}a||(a=ui(()=>{s=L,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||o("scroll",x),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k.releaseOnEdges&&(R===e.minTranslate()||R===e.maxTranslate()))return!0}}return x.preventDefault?x.preventDefault():x.returnValue=!1,!1}function S(m){let x=e.el;e.params.mousewheel.eventsTarget!=="container"&&(x=document.querySelector(e.params.mousewheel.eventsTarget)),x[m]("mouseenter",p),x[m]("mouseleave",h),x[m]("wheel",b)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",b),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,b),!0):e.mousewheel.enabled?(S("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function sn(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(o=>{if(!i[o]&&i.auto===!0){let l=Xt(t.el,`.${n[o]}`)[0];l||(l=vi("div",n[o]),l.className=n[o],t.el.append(l)),i[o]=l,e[o]=l}}),i}function rn(t){let{swiper:e,extendParams:i,on:n,emit:o}=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};function l(y){let b;return y&&typeof y=="string"&&e.isElement&&(b=e.el.querySelector(y),b)?b:(y&&(typeof y=="string"&&(b=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&b&&b.length>1&&e.el.querySelectorAll(y).length===1?b=e.el.querySelector(y):b&&b.length===1&&(b=b[0])),y&&!b?y:b)}function a(y,b){const S=e.params.navigation;y=Ge(y),y.forEach(v=>{v&&(v.classList[b?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=b),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function d(){const{nextEl:y,prevEl:b}=e.navigation;if(e.params.loop){a(b,!1),a(y,!1);return}a(b,e.isBeginning&&!e.params.rewind),a(y,e.isEnd&&!e.params.rewind)}function s(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),o("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),o("navigationNext"))}function r(){const y=e.params.navigation;if(e.params.navigation=sn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let b=l(y.nextEl),S=l(y.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:S}),b=Ge(b),S=Ge(S);const v=(g,m)=>{g&&g.addEventListener("click",m==="next"?c:s),!e.enabled&&g&&g.classList.add(...y.lockClass.split(" "))};b.forEach(g=>v(g,"next")),S.forEach(g=>v(g,"prev"))}function p(){let{nextEl:y,prevEl:b}=e.navigation;y=Ge(y),b=Ge(b);const S=(v,g)=>{v.removeEventListener("click",g==="next"?c:s),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(v=>S(v,"next")),b.forEach(v=>S(v,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?f():(r(),d())}),n("toEdge fromEdge lock unlock",()=>{d()}),n("destroy",()=>{p()}),n("enable disable",()=>{let{nextEl:y,prevEl:b}=e.navigation;if(y=Ge(y),b=Ge(b),e.enabled){d();return}[...y,...b].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),n("click",(y,b)=>{let{nextEl:S,prevEl:v}=e.navigation;S=Ge(S),v=Ge(v);const g=b.target;let m=v.includes(g)||S.includes(g);if(e.isElement&&!m){const x=b.path||b.composedPath&&b.composedPath();x&&(m=x.find(C=>S.includes(C)||v.includes(C)))}if(e.params.navigation.hideOnClick&&!m){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let x;S.length?x=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(x=v[0].classList.contains(e.params.navigation.hiddenClass)),o(x===!0?"navigationShow":"navigationHide"),[...S,...v].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),r(),d()},f=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:h,disable:f,update:d,init:r,destroy:p})}function Zt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Fi(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l="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:v=>v,formatFractionTotal:v=>v,bulletClass:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),e.pagination={el:null,bullets:[]};let a,d=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(v,g){const{bulletActiveClass:m}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${m}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${m}-${g}-${g}`)))}function r(v){const g=v.target.closest(Zt(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const m=gi(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===m)return;e.slideToLoop(m)}else e.slideTo(m)}function p(){const v=e.rtl,g=e.params.pagination;if(s())return;let m=e.pagination.el;m=Ge(m);let x,C;const k=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,N=e.params.loop?Math.ceil(k/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,x=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(x=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,x=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const A=e.pagination.bullets;let w,T,M;if(g.dynamicBullets&&(a=on(A[0],e.isHorizontal()?"width":"height",!0),m.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${a*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&C!==void 0&&(d+=x-(C||0),d>g.dynamicMainBullets-1?d=g.dynamicMainBullets-1:d<0&&(d=0)),w=Math.max(x-d,0),T=w+(Math.min(A.length,g.dynamicMainBullets)-1),M=(T+w)/2),A.forEach(I=>{const L=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();I.classList.remove(...L)}),m.length>1)A.forEach(I=>{const L=gi(I);L===x?I.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),g.dynamicBullets&&(L>=w&&L<=T&&I.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),L===w&&c(I,"prev"),L===T&&c(I,"next"))});else{const I=A[x];if(I&&I.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&A.forEach((L,E)=>{L.setAttribute("part",E===x?"bullet-active":"bullet")}),g.dynamicBullets){const L=A[w],E=A[T];for(let R=w;R<=T;R+=1)A[R]&&A[R].classList.add(...`${g.bulletActiveClass}-main`.split(" "));c(L,"prev"),c(E,"next")}}if(g.dynamicBullets){const I=Math.min(A.length,g.dynamicMainBullets+4),L=(a*I-a)/2-M*a,E=v?"right":"left";A.forEach(R=>{R.style[e.isHorizontal()?E:"top"]=`${L}px`})}}m.forEach((A,w)=>{if(g.type==="fraction"&&(A.querySelectorAll(Zt(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(x+1)}),A.querySelectorAll(Zt(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(N)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const M=(x+1)/N;let I=1,L=1;T==="horizontal"?I=M:L=M,A.querySelectorAll(Zt(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${L})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(A.innerHTML=g.renderCustom(e,x+1,N),w===0&&o("paginationRender",A)):(w===0&&o("paginationRender",A),o("paginationUpdate",A)),e.params.watchOverflow&&e.enabled&&A.classList[e.isLocked?"add":"remove"](g.lockClass)})}function h(){const v=e.params.pagination;if(s())return;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let m=e.pagination.el;m=Ge(m);let x="";if(v.type==="bullets"){let C=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>g&&(C=g);for(let k=0;k<C;k+=1)v.renderBullet?x+=v.renderBullet.call(e,k,v.bulletClass):x+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?x=v.renderFraction.call(e,v.currentClass,v.totalClass):x=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?x=v.renderProgressbar.call(e,v.progressbarFillClass):x=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],m.forEach(C=>{v.type!=="custom"&&(C.innerHTML=x||""),v.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(Zt(v.bulletClass)))}),v.type!=="custom"&&o("paginationRender",m[0])}function f(){e.params.pagination=sn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let g;typeof v.el=="string"&&e.isElement&&(g=e.el.querySelector(v.el)),!g&&typeof v.el=="string"&&(g=[...document.querySelectorAll(v.el)]),g||(g=v.el),!(!g||g.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...e.el.querySelectorAll(v.el)],g.length>1&&(g=g.filter(m=>Ri(m,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Ge(g),g.forEach(m=>{v.type==="bullets"&&v.clickable&&m.classList.add(...(v.clickableClass||"").split(" ")),m.classList.add(v.modifierClass+v.type),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(m.classList.add(`${v.modifierClass}${v.type}-dynamic`),d=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&m.classList.add(v.progressbarOppositeClass),v.clickable&&m.addEventListener("click",r),e.enabled||m.classList.add(v.lockClass)}))}function y(){const v=e.params.pagination;if(s())return;let g=e.pagination.el;g&&(g=Ge(g),g.forEach(m=>{m.classList.remove(v.hiddenClass),m.classList.remove(v.modifierClass+v.type),m.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(m.classList.remove(...(v.clickableClass||"").split(" ")),m.removeEventListener("click",r))})),e.pagination.bullets&&e.pagination.bullets.forEach(m=>m.classList.remove(...v.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=Ge(g),g.forEach(m=>{m.classList.remove(v.horizontalClass,v.verticalClass),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?S():(f(),h(),p())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&p()}),n("snapIndexChange",()=>{p()}),n("snapGridLengthChange",()=>{h(),p()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Ge(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{p()}),n("click",(v,g)=>{const m=g.target,x=Ge(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&x&&x.length>0&&!m.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&m===e.navigation.nextEl||e.navigation.prevEl&&m===e.navigation.prevEl))return;const C=x[0].classList.contains(e.params.pagination.hiddenClass);o(C===!0?"paginationShow":"paginationHide"),x.forEach(k=>k.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ge(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),f(),h(),p()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ge(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:b,disable:S,render:h,update:p,init:f,destroy:y})}function Co(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Ot();let a=!1,d=null,s=null,c,r,p,h;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I,rtlTranslate:L}=e,{dragEl:E,el:R}=I,F=e.params.scrollbar,O=e.params.loop?e.progressLoop:e.progress;let V=r,D=(p-r)*O;L?(D=-D,D>0?(V=r-D,D=0):-D+r>p&&(V=p+D)):D<0?(V=r+D,D=0):D+r>p&&(V=p-D),e.isHorizontal()?(E.style.transform=`translate3d(${D}px, 0, 0)`,E.style.width=`${V}px`):(E.style.transform=`translate3d(0px, ${D}px, 0)`,E.style.height=`${V}px`),F.hide&&(clearTimeout(d),R.style.opacity=1,d=setTimeout(()=>{R.style.opacity=0,R.style.transitionDuration="400ms"},1e3))}function y(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:L,el:E}=I;L.style.width="",L.style.height="",p=e.isHorizontal()?E.offsetWidth:E.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?r=p*h:r=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?L.style.width=`${r}px`:L.style.height=`${r}px`,h>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(I){return e.isHorizontal()?I.clientX:I.clientY}function v(I){const{scrollbar:L,rtlTranslate:E}=e,{el:R}=L;let F;F=(S(I)-ll(R)[e.isHorizontal()?"left":"top"]-(c!==null?c:r/2))/(p-r),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const O=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(O),e.setTranslate(O),e.updateActiveIndex(),e.updateSlidesClasses()}function g(I){const L=e.params.scrollbar,{scrollbar:E,wrapperEl:R}=e,{el:F,dragEl:O}=E;a=!0,c=I.target===O?S(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),R.style.transitionDuration="100ms",O.style.transitionDuration="100ms",v(I),clearTimeout(s),F.style.transitionDuration="0ms",L.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",I)}function m(I){const{scrollbar:L,wrapperEl:E}=e,{el:R,dragEl:F}=L;a&&(I.preventDefault&&I.cancelable?I.preventDefault():I.returnValue=!1,v(I),E.style.transitionDuration="0ms",R.style.transitionDuration="0ms",F.style.transitionDuration="0ms",o("scrollbarDragMove",I))}function x(I){const L=e.params.scrollbar,{scrollbar:E,wrapperEl:R}=e,{el:F}=E;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",R.style.transitionDuration=""),L.hide&&(clearTimeout(s),s=ui(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",I),L.snapOnRelease&&e.slideToClosest())}function C(I){const{scrollbar:L,params:E}=e,R=L.el;if(!R)return;const F=R,O=E.passiveListeners?{passive:!1,capture:!1}:!1,V=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const D=I==="on"?"addEventListener":"removeEventListener";F[D]("pointerdown",g,O),l[D]("pointermove",m,O),l[D]("pointerup",x,V)}function k(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function N(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function A(){const{scrollbar:I,el:L}=e;e.params.scrollbar=sn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let R;if(typeof E.el=="string"&&e.isElement&&(R=e.el.querySelector(E.el)),!R&&typeof E.el=="string"){if(R=l.querySelectorAll(E.el),!R.length)return}else R||(R=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&R.length>1&&L.querySelectorAll(E.el).length===1&&(R=L.querySelector(E.el)),R.length>0&&(R=R[0]),R.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let F;R&&(F=R.querySelector(Zt(e.params.scrollbar.dragClass)),F||(F=vi("div",e.params.scrollbar.dragClass),R.append(F))),Object.assign(I,{el:R,dragEl:F}),E.draggable&&k(),R&&R.classList[e.enabled?"remove":"add"](...Qt(e.params.scrollbar.lockClass))}function w(){const I=e.params.scrollbar,L=e.scrollbar.el;L&&L.classList.remove(...Qt(e.isHorizontal()?I.horizontalClass:I.verticalClass)),N()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const I=e.params.scrollbar;let{el:L}=e.scrollbar;L=Ge(L),L.forEach(E=>{E.classList.remove(I.horizontalClass,I.verticalClass),E.classList.add(e.isHorizontal()?I.horizontalClass:I.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?M():(A(),b(),f())}),n("update resize observerUpdate lock unlock changeDirection",()=>{b()}),n("setTranslate",()=>{f()}),n("setTransition",(I,L)=>{y(L)}),n("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](...Qt(e.params.scrollbar.lockClass))}),n("destroy",()=>{w()});const T=()=>{e.el.classList.remove(...Qt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Qt(e.params.scrollbar.scrollbarDisabledClass)),A(),b(),f()},M=()=>{e.el.classList.add(...Qt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Qt(e.params.scrollbar.scrollbarDisabledClass)),w()};Object.assign(e.scrollbar,{enable:T,disable:M,updateSize:b,setTranslate:f,init:A,destroy:w})}function dn(t){let{swiper:e,extendParams:i,on:n}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let o=null,l,a,d=new Date().getTime();function s(O){const V=o;V.length!==0&&(V.innerHTML="",V.innerHTML=O)}function c(O){O===void 0&&(O=16);const V=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(O).replace(/x/g,V)}function r(O){O=Ge(O),O.forEach(V=>{V.setAttribute("tabIndex","0")})}function p(O){O=Ge(O),O.forEach(V=>{V.setAttribute("tabIndex","-1")})}function h(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("role",V)})}function f(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("aria-roledescription",V)})}function y(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("aria-controls",V)})}function b(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("aria-label",V)})}function S(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("id",V)})}function v(O,V){O=Ge(O),O.forEach(D=>{D.setAttribute("aria-live",V)})}function g(O){O=Ge(O),O.forEach(V=>{V.setAttribute("aria-disabled",!0)})}function m(O){O=Ge(O),O.forEach(V=>{V.setAttribute("aria-disabled",!1)})}function x(O){if(O.keyCode!==13&&O.keyCode!==32)return;const V=e.params.a11y,D=O.target;if(!(e.pagination&&e.pagination.el&&(D===e.pagination.el||e.pagination.el.contains(O.target))&&!O.target.matches(Zt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const P=Ge(e.navigation.prevEl);Ge(e.navigation.nextEl).includes(D)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(V.lastSlideMessage):s(V.nextSlideMessage)),P.includes(D)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(V.firstSlideMessage):s(V.prevSlideMessage))}e.pagination&&D.matches(Zt(e.params.pagination.bulletClass))&&D.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:O,prevEl:V}=e.navigation;V&&(e.isBeginning?(g(V),p(V)):(m(V),r(V))),O&&(e.isEnd?(g(O),p(O)):(m(O),r(O)))}function k(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function N(){return k()&&e.params.pagination.clickable}function A(){const O=e.params.a11y;k()&&e.pagination.bullets.forEach(V=>{e.params.pagination.clickable&&(r(V),e.params.pagination.renderBullet||(h(V,"button"),b(V,O.paginationBulletMessage.replace(/\{\{index\}\}/,gi(V)+1)))),V.matches(Zt(e.params.pagination.bulletActiveClass))?V.setAttribute("aria-current","true"):V.removeAttribute("aria-current")})}const w=(O,V,D)=>{r(O),O.tagName!=="BUTTON"&&(h(O,"button"),O.addEventListener("keydown",x)),b(O,D),y(O,V)},T=O=>{a&&a!==O.target&&!a.contains(O.target)&&(l=!0),e.a11y.clicked=!0},M=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=O=>{d=new Date().getTime()},L=O=>{if(e.a11y.clicked||new Date().getTime()-d<100)return;const V=O.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!V||!e.slides.includes(V))return;a=V;const D=e.slides.indexOf(V)===e.activeIndex,P=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(V);D||P||O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(V.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(V),0),l=!1)}))},E=()=>{const O=e.params.a11y;O.itemRoleDescriptionMessage&&f(e.slides,O.itemRoleDescriptionMessage),O.slideRole&&h(e.slides,O.slideRole);const V=e.slides.length;O.slideLabelMessage&&e.slides.forEach((D,P)=>{const B=e.params.loop?parseInt(D.getAttribute("data-swiper-slide-index"),10):P,U=O.slideLabelMessage.replace(/\{\{index\}\}/,B+1).replace(/\{\{slidesLength\}\}/,V);b(D,U)})},R=()=>{const O=e.params.a11y;e.el.append(o);const V=e.el;O.containerRoleDescriptionMessage&&f(V,O.containerRoleDescriptionMessage),O.containerMessage&&b(V,O.containerMessage);const D=e.wrapperEl,P=O.id||D.getAttribute("id")||`swiper-wrapper-${c(16)}`,B=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(D,P),v(D,B),E();let{nextEl:U,prevEl:K}=e.navigation?e.navigation:{};U=Ge(U),K=Ge(K),U&&U.forEach(ie=>w(ie,P,O.nextSlideMessage)),K&&K.forEach(ie=>w(ie,P,O.prevSlideMessage)),N()&&Ge(e.pagination.el).forEach(fe=>{fe.addEventListener("keydown",x)}),Ot().addEventListener("visibilitychange",I),e.el.addEventListener("focus",L,!0),e.el.addEventListener("focus",L,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",M,!0)};function F(){o&&o.remove();let{nextEl:O,prevEl:V}=e.navigation?e.navigation:{};O=Ge(O),V=Ge(V),O&&O.forEach(P=>P.removeEventListener("keydown",x)),V&&V.forEach(P=>P.removeEventListener("keydown",x)),N()&&Ge(e.pagination.el).forEach(B=>{B.removeEventListener("keydown",x)}),Ot().removeEventListener("visibilitychange",I),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",L,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",M,!0))}n("beforeInit",()=>{o=vi("span",e.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&R()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&A()}),n("destroy",()=>{e.params.a11y.enabled&&F()})}function Wi(t){let{swiper:e,extendParams:i,on:n,emit:o,params:l}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,d,s=l&&l.autoplay?l.autoplay.delay:3e3,c=l&&l.autoplay?l.autoplay.delay:3e3,r,p=new Date().getTime(),h,f,y,b,S,v,g;function m(V){!e||e.destroyed||!e.wrapperEl||V.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",m),!(g||V.detail&&V.detail.bySwiperTouchMove)&&T())}const x=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(c=r,h=!1);const V=e.autoplay.paused?r:p+c-new Date().getTime();e.autoplay.timeLeft=V,o("autoplayTimeLeft",V,V/s),d=requestAnimationFrame(()=>{x()})},C=()=>{let V;return e.virtual&&e.params.virtual.enabled?V=e.slides.filter(P=>P.classList.contains("swiper-slide-active"))[0]:V=e.slides[e.activeIndex],V?parseInt(V.getAttribute("data-swiper-autoplay"),10):void 0},k=V=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(d),x();let D=typeof V>"u"?e.params.autoplay.delay:V;s=e.params.autoplay.delay,c=e.params.autoplay.delay;const P=C();!Number.isNaN(P)&&P>0&&typeof V>"u"&&(D=P,s=P,c=P),r=D;const B=e.params.speed,U=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(B,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,B,!0,!0),o("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(B,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,B,!0,!0),o("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return D>0?(clearTimeout(a),a=setTimeout(()=>{U()},D)):requestAnimationFrame(()=>{U()}),D},N=()=>{p=new Date().getTime(),e.autoplay.running=!0,k(),o("autoplayStart")},A=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),o("autoplayStop")},w=(V,D)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),V||(v=!0);const P=()=>{o("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",m):T()};if(e.autoplay.paused=!0,D){S&&(r=e.params.autoplay.delay),S=!1,P();return}r=(r||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&r<0&&!e.params.loop)&&(r<0&&(r=0),P())},T=()=>{e.isEnd&&r<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),v?(v=!1,k(r)):k(),e.autoplay.paused=!1,o("autoplayResume"))},M=()=>{if(e.destroyed||!e.autoplay.running)return;const V=Ot();V.visibilityState==="hidden"&&(v=!0,w(!0)),V.visibilityState==="visible"&&T()},I=V=>{V.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&w(!0))},L=V=>{V.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",L))},R=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",L))},F=()=>{Ot().addEventListener("visibilitychange",M)},O=()=>{Ot().removeEventListener("visibilitychange",M)};n("init",()=>{e.params.autoplay.enabled&&(E(),F(),N())}),n("destroy",()=>{R(),O(),e.autoplay.running&&A()}),n("_freeModeStaticRelease",()=>{(y||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?A():w(!0,!0)}),n("beforeTransitionStart",(V,D,P)=>{e.destroyed||!e.autoplay.running||(P||!e.params.autoplay.disableOnInteraction?w(!0,!0):A())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){A();return}f=!0,y=!1,v=!1,b=setTimeout(()=>{v=!0,y=!0,w(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(b),clearTimeout(a),e.params.autoplay.disableOnInteraction){y=!1,f=!1;return}y&&e.params.cssMode&&T(),y=!1,f=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:N,stop:A,pause:w,resume:T})}function Po(t){let{swiper:e,extendParams:i,emit:n,once:o}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function l(){if(e.params.cssMode)return;const s=e.getTranslate();e.setTranslate(s),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:s,touches:c}=e;s.velocities.length===0&&s.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Ft()})}function d(s){let{currentPos:c}=s;if(e.params.cssMode)return;const{params:r,wrapperEl:p,rtlTranslate:h,snapGrid:f,touchEventsData:y}=e,S=Ft()-y.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<f.length?e.slideTo(f.length-1):e.slideTo(e.slides.length-1);return}if(r.freeMode.momentum){if(y.velocities.length>1){const A=y.velocities.pop(),w=y.velocities.pop(),T=A.position-w.position,M=A.time-w.time;e.velocity=T/M,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(M>150||Ft()-A.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeMode.momentumVelocityRatio,y.velocities.length=0;let v=1e3*r.freeMode.momentumRatio;const g=e.velocity*v;let m=e.translate+g;h&&(m=-m);let x=!1,C;const k=Math.abs(e.velocity)*20*r.freeMode.momentumBounceRatio;let N;if(m<e.maxTranslate())r.freeMode.momentumBounce?(m+e.maxTranslate()<-k&&(m=e.maxTranslate()-k),C=e.maxTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.maxTranslate(),r.loop&&r.centeredSlides&&(N=!0);else if(m>e.minTranslate())r.freeMode.momentumBounce?(m-e.minTranslate()>k&&(m=e.minTranslate()+k),C=e.minTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.minTranslate(),r.loop&&r.centeredSlides&&(N=!0);else if(r.freeMode.sticky){let A;for(let w=0;w<f.length;w+=1)if(f[w]>-m){A=w;break}Math.abs(f[A]-m)<Math.abs(f[A-1]-m)||e.swipeDirection==="next"?m=f[A]:m=f[A-1],m=-m}if(N&&o("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?v=Math.abs((-m-e.translate)/e.velocity):v=Math.abs((m-e.translate)/e.velocity),r.freeMode.sticky){const A=Math.abs((h?-m:m)-e.translate),w=e.slidesSizesGrid[e.activeIndex];A<w?v=r.speed:A<2*w?v=r.speed*1.5:v=r.speed*2.5}}else if(r.freeMode.sticky){e.slideToClosest();return}r.freeMode.momentumBounce&&x?(e.updateProgress(C),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating=!0,ln(p,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(r.speed),setTimeout(()=>{e.setTranslate(C),ln(p,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(m),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,ln(p,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(m),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeMode.sticky){e.slideToClosest();return}else r.freeMode&&n("_freeModeNoMomentumRelease");(!r.freeMode.momentum||S>=r.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:a,onTouchEnd:d}})}let cn;function Oo(){const t=St(),e=Ot();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function ol(){return cn||(cn=Oo()),cn}let un;function Lo(t){let{userAgent:e}=t===void 0?{}:t;const i=ol(),n=St(),o=n.navigator.platform,l=e||n.navigator.userAgent,a={ios:!1,android:!1},d=n.screen.width,s=n.screen.height,c=l.match(/(Android);?[\s\/]+([\d.]+)?/);let r=l.match(/(iPad).*OS\s([\d_]+)/);const p=l.match(/(iPod)(.*OS\s([\d_]+))?/),h=!r&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=o==="Win32";let y=o==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!r&&y&&i.touch&&b.indexOf(`${d}x${s}`)>=0&&(r=l.match(/(Version)\/([\d.]+)/),r||(r=[0,1,"13_0_0"]),y=!1),c&&!f&&(a.os="android",a.android=!0),(r||h||p)&&(a.os="ios",a.ios=!0),a}function al(t){return t===void 0&&(t={}),un||(un=Lo(t)),un}let vn;function jo(){const t=St(),e=al();let i=!1;function n(){const d=t.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}if(n()){const d=String(t.navigator.userAgent);if(d.includes("Version/")){const[s,c]=d.split("Version/")[1].split(" ")[0].split(".").map(r=>Number(r));i=s<16||s===16&&c<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=n(),a=l||o&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:a,isWebView:o}}function Mo(){return vn||(vn=jo()),vn}function No(t){let{swiper:e,on:i,emit:n}=t;const o=St();let l=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(p=>{a=o.requestAnimationFrame(()=>{const{width:h,height:f}=e;let y=h,b=f;p.forEach(S=>{let{contentBoxSize:v,contentRect:g,target:m}=S;m&&m!==e.el||(y=g?g.width:(v[0]||v).inlineSize,b=g?g.height:(v[0]||v).blockSize)}),(y!==h||b!==f)&&d()})}),l.observe(e.el))},c=()=>{a&&o.cancelAnimationFrame(a),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},r=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof o.ResizeObserver<"u"){s();return}o.addEventListener("resize",d),o.addEventListener("orientationchange",r)}),i("destroy",()=>{c(),o.removeEventListener("resize",d),o.removeEventListener("orientationchange",r)})}function Do(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=[],a=St(),d=function(r,p){p===void 0&&(p={});const h=a.MutationObserver||a.WebkitMutationObserver,f=new h(y=>{if(e.__preventObserver__)return;if(y.length===1){o("observerUpdate",y[0]);return}const b=function(){o("observerUpdate",y[0])};a.requestAnimationFrame?a.requestAnimationFrame(b):a.setTimeout(b,0)});f.observe(r,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),l.push(f)},s=()=>{if(e.params.observer){if(e.params.observeParents){const r=Ri(e.hostEl);for(let p=0;p<r.length;p+=1)d(r[p])}d(e.hostEl,{childList:e.params.observeSlideChildren}),d(e.wrapperEl,{attributes:!1})}},c=()=>{l.forEach(r=>{r.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",c)}var Vo={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const o=i?"unshift":"push";return t.split(" ").forEach(l=>{n.eventsListeners[l]||(n.eventsListeners[l]=[]),n.eventsListeners[l][o](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function o(){n.off(t,o),o.__emitterProxy&&delete o.__emitterProxy;for(var l=arguments.length,a=new Array(l),d=0;d<l;d++)a[d]=arguments[d];e.apply(n,a)}return o.__emitterProxy=e,n.on(t,o,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](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(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((o,l)=>{(o===e||o.__emitterProxy&&o.__emitterProxy===e)&&i.eventsListeners[n].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),n=t):(e=l[0].events,i=l[0].data,n=l[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(n,[s,...i])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(c=>{c.apply(n,i)})}),t}};function Ro(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt($t(n,"padding-left")||0,10)-parseInt($t(n,"padding-right")||0,10),i=i-parseInt($t(n,"padding-top")||0,10)-parseInt($t(n,"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 Bo(){const t=this;function e(T,M){return parseFloat(T.getPropertyValue(t.getDirectionLabel(M))||0)}const i=t.params,{wrapperEl:n,slidesEl:o,size:l,rtlTranslate:a,wrongRTL:d}=t,s=t.virtual&&i.virtual.enabled,c=s?t.virtual.slides.length:t.slides.length,r=Xt(o,`.${t.params.slideClass}, swiper-slide`),p=s?t.virtual.slides.length:r.length;let h=[];const f=[],y=[];let b=i.slidesOffsetBefore;typeof b=="function"&&(b=i.slidesOffsetBefore.call(t));let S=i.slidesOffsetAfter;typeof S=="function"&&(S=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.slidesGrid.length;let m=i.spaceBetween,x=-b,C=0,k=0;if(typeof l>"u")return;typeof m=="string"&&m.indexOf("%")>=0?m=parseFloat(m.replace("%",""))/100*l:typeof m=="string"&&(m=parseFloat(m)),t.virtualSize=-m,r.forEach(T=>{a?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Di(n,"--swiper-centered-offset-before",""),Di(n,"--swiper-centered-offset-after",""));const N=i.grid&&i.grid.rows>1&&t.grid;N?t.grid.initSlides(r):t.grid&&t.grid.unsetSlides();let A;const w=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<p;T+=1){A=0;let M;if(r[T]&&(M=r[T]),N&&t.grid.updateSlide(T,M,r),!(r[T]&&$t(M,"display")==="none")){if(i.slidesPerView==="auto"){w&&(r[T].style[t.getDirectionLabel("width")]="");const I=getComputedStyle(M),L=M.style.transform,E=M.style.webkitTransform;if(L&&(M.style.transform="none"),E&&(M.style.webkitTransform="none"),i.roundLengths)A=t.isHorizontal()?on(M,"width",!0):on(M,"height",!0);else{const R=e(I,"width"),F=e(I,"padding-left"),O=e(I,"padding-right"),V=e(I,"margin-left"),D=e(I,"margin-right"),P=I.getPropertyValue("box-sizing");if(P&&P==="border-box")A=R+V+D;else{const{clientWidth:B,offsetWidth:U}=M;A=R+F+O+V+D+(U-B)}}L&&(M.style.transform=L),E&&(M.style.webkitTransform=E),i.roundLengths&&(A=Math.floor(A))}else A=(l-(i.slidesPerView-1)*m)/i.slidesPerView,i.roundLengths&&(A=Math.floor(A)),r[T]&&(r[T].style[t.getDirectionLabel("width")]=`${A}px`);r[T]&&(r[T].swiperSlideSize=A),y.push(A),i.centeredSlides?(x=x+A/2+C/2+m,C===0&&T!==0&&(x=x-l/2-m),T===0&&(x=x-l/2-m),Math.abs(x)<1/1e3&&(x=0),i.roundLengths&&(x=Math.floor(x)),k%i.slidesPerGroup===0&&h.push(x),f.push(x)):(i.roundLengths&&(x=Math.floor(x)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup===0&&h.push(x),f.push(x),x=x+A+m),t.virtualSize+=A+m,C=A,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+S,a&&d&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+m}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+m}px`),N&&t.grid.updateWrapperSize(A,h),!i.centeredSlides){const T=[];for(let M=0;M<h.length;M+=1){let I=h[M];i.roundLengths&&(I=Math.floor(I)),h[M]<=t.virtualSize-l&&T.push(I)}h=T,Math.floor(t.virtualSize-l)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-l)}if(s&&i.loop){const T=y[0]+m;if(i.slidesPerGroup>1){const M=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),I=T*i.slidesPerGroup;for(let L=0;L<M;L+=1)h.push(h[h.length-1]+I)}for(let M=0;M<t.virtual.slidesBefore+t.virtual.slidesAfter;M+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+T),f.push(f[f.length-1]+T),t.virtualSize+=T}if(h.length===0&&(h=[0]),m!==0){const T=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");r.filter((M,I)=>!i.cssMode||i.loop?!0:I!==r.length-1).forEach(M=>{M.style[T]=`${m}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(I=>{T+=I+(m||0)}),T-=m;const M=T-l;h=h.map(I=>I<=0?-b:I>M?M+S:I)}if(i.centerInsufficientSlides){let T=0;y.forEach(I=>{T+=I+(m||0)}),T-=m;const M=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+M<l){const I=(l-T-M)/2;h.forEach((L,E)=>{h[E]=L-I}),f.forEach((L,E)=>{f[E]=L+I})}}if(Object.assign(t,{slides:r,snapGrid:h,slidesGrid:f,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Di(n,"--swiper-centered-offset-before",`${-h[0]}px`),Di(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],M=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(I=>I+T),t.slidesGrid=t.slidesGrid.map(I=>I+M)}if(p!==c&&t.emit("slidesLengthChange"),h.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!s&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,M=t.el.classList.contains(T);p<=i.maxBackfaceHiddenSlides?M||t.el.classList.add(T):M&&t.el.classList.remove(T)}}function Fo(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let o=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=d=>n?e.slides[e.getSlideIndexByData(d)]:e.slides[d];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(d=>{i.push(d)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const d=e.activeIndex+l;if(d>e.slides.length&&!n)break;i.push(a(d))}else i.push(a(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const d=i[l].offsetHeight;o=d>o?d:o}(o||o===0)&&(e.wrapperEl.style.height=`${o}px`)}function Wo(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}const sl=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function zo(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:o,snapGrid:l}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;o&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let d=i.spaceBetween;typeof d=="string"&&d.indexOf("%")>=0?d=parseFloat(d.replace("%",""))/100*e.size:typeof d=="string"&&(d=parseFloat(d));for(let s=0;s<n.length;s+=1){const c=n[s];let r=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(r-=n[0].swiperSlideOffset);const p=(a+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),h=(a-l[0]+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),f=-(a-r),y=f+e.slidesSizesGrid[s],b=f>=0&&f<=e.size-e.slidesSizesGrid[s],S=f>=0&&f<e.size-1||y>1&&y<=e.size||f<=0&&y>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(s)),sl(c,S,i.slideVisibleClass),sl(c,b,i.slideFullyVisibleClass),c.progress=o?-p:p,c.originalProgress=o?-h:h}}function Ho(t){const e=this;if(typeof t>"u"){const r=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*r||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:o,isBeginning:l,isEnd:a,progressLoop:d}=e;const s=l,c=a;if(n===0)o=0,l=!0,a=!0;else{o=(t-e.minTranslate())/n;const r=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;l=r||o<=0,a=p||o>=1,r&&(o=0),p&&(o=1)}if(i.loop){const r=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[r],f=e.slidesGrid[p],y=e.slidesGrid[e.slidesGrid.length-1],b=Math.abs(t);b>=h?d=(b-h)/y:d=(b+y-f)/y,d>1&&(d-=1)}Object.assign(e,{progress:o,progressLoop:d,isBeginning:l,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!s&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(s&&!l||c&&!a)&&e.emit("fromEdge"),e.emit("progress",o)}const pn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Uo(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:o}=t,l=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,d=p=>Xt(n,`.${i.slideClass}${p}, swiper-slide${p}`)[0];let s,c,r;if(l)if(i.loop){let p=o-t.virtual.slidesBefore;p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),s=d(`[data-swiper-slide-index="${p}"]`)}else s=d(`[data-swiper-slide-index="${o}"]`);else a?(s=e.filter(p=>p.column===o)[0],r=e.filter(p=>p.column===o+1)[0],c=e.filter(p=>p.column===o-1)[0]):s=e[o];s&&(a||(r=ko(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!r&&(r=e[0]),c=Io(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(p=>{pn(p,p===s,i.slideActiveClass),pn(p,p===r,i.slideNextClass),pn(p,p===c,i.slidePrevClass)}),t.emitSlidesClasses()}const zi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let o=n.querySelector(`.${t.params.lazyPreloaderClass}`);!o&&t.isElement&&(n.shadowRoot?o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},mn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},fn=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 n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),o=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=o,d=[a-e];d.push(...Array.from({length:e}).map((s,c)=>a+n+c)),t.slides.forEach((s,c)=>{d.includes(s.column)&&mn(t,c)});return}const l=o+n-1;if(t.params.rewind||t.params.loop)for(let a=o-e;a<=l+e;a+=1){const d=(a%i+i)%i;(d<o||d>l)&&mn(t,d)}else for(let a=Math.max(o-e,0);a<=Math.min(l+e,i-1);a+=1)a!==o&&(a>l||a<o)&&mn(t,a)};function Xo(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let o;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?n>=e[l]&&n<e[l+1]-(e[l+1]-e[l])/2?o=l:n>=e[l]&&n<e[l+1]&&(o=l+1):n>=e[l]&&(o=l);return i.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function qo(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:o,activeIndex:l,realIndex:a,snapIndex:d}=e;let s=t,c;const r=f=>{let y=f-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof s>"u"&&(s=Xo(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const f=Math.min(o.slidesPerGroupSkip,s);c=f+Math.floor((s-f)/o.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),s===l&&!e.params.loop){c!==d&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(s===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=r(s);return}const p=e.grid&&o.grid&&o.grid.rows>1;let h;if(e.virtual&&o.virtual.enabled&&o.loop)h=r(s);else if(p){const f=e.slides.filter(b=>b.column===s)[0];let y=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(f),0)),h=Math.floor(y/o.grid.rows)}else if(e.slides[s]){const f=e.slides[s].getAttribute("data-swiper-slide-index");f?h=parseInt(f,10):h=s}else h=s;Object.assign(e,{previousSnapIndex:d,snapIndex:c,previousRealIndex:a,realIndex:h,previousIndex:l,activeIndex:s}),e.initialized&&fn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function Yo(t,e){const i=this,n=i.params;let o=t.closest(`.${n.slideClass}, swiper-slide`);!o&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!o&&d.matches&&d.matches(`.${n.slideClass}, swiper-slide`)&&(o=d)});let l=!1,a;if(o){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===o){l=!0,a=d;break}}if(o&&l)i.clickedSlide=o,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Go={updateSize:Ro,updateSlides:Bo,updateAutoHeight:Fo,updateSlidesOffset:Wo,updateSlidesProgress:zo,updateProgress:Ho,updateSlidesClasses:Uo,updateActiveIndex:qo,updateClickedSlide:Yo};function Zo(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:o,wrapperEl:l}=e;if(i.virtualTranslate)return n?-o:o;if(i.cssMode)return o;let a=To(l,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function Ko(t,e){const i=this,{rtlTranslate:n,params:o,wrapperEl:l,progress:a}=i;let d=0,s=0;const c=0;i.isHorizontal()?d=n?-t:t:s=t,o.roundLengths&&(d=Math.floor(d),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:s,o.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-s:o.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${d}px, ${s}px, ${c}px)`);let r;const p=i.maxTranslate()-i.minTranslate();p===0?r=0:r=(t-i.minTranslate())/p,r!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Jo(){return-this.snapGrid[0]}function _o(){return-this.snapGrid[this.snapGrid.length-1]}function Qo(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const l=this,{params:a,wrapperEl:d}=l;if(l.animating&&a.preventInteractionOnTransition)return!1;const s=l.minTranslate(),c=l.maxTranslate();let r;if(n&&t>s?r=s:n&&t<c?r=c:r=t,l.updateProgress(r),a.cssMode){const p=l.isHorizontal();if(e===0)d[p?"scrollLeft":"scrollTop"]=-r;else{if(!l.support.smoothScroll)return nl({swiper:l,targetPosition:-r,side:p?"left":"top"}),!0;d.scrollTo({[p?"left":"top"]:-r,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(h){!l||l.destroyed||h.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var $o={getTranslate:Zo,setTranslate:Ko,minTranslate:Jo,maxTranslate:_o,translateTo:Qo};function ea(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function rl(t){let{swiper:e,runCallbacks:i,direction:n,step:o}=t;const{activeIndex:l,previousIndex:a}=e;let d=n;if(d||(l>a?d="next":l<a?d="prev":d="reset"),e.emit(`transition${o}`),i&&l!==a){if(d==="reset"){e.emit(`slideResetTransition${o}`);return}e.emit(`slideChangeTransition${o}`),d==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`)}}function ta(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),rl({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function ia(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),rl({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var na={setTransition:ea,transitionStart:ta,transitionEnd:ia};function la(t,e,i,n,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let a=t;a<0&&(a=0);const{params:d,snapGrid:s,slidesGrid:c,previousIndex:r,activeIndex:p,rtlTranslate:h,wrapperEl:f,enabled:y}=l;if(!y&&!n&&!o||l.destroyed||l.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const b=Math.min(l.params.slidesPerGroupSkip,a);let S=b+Math.floor((a-b)/l.params.slidesPerGroup);S>=s.length&&(S=s.length-1);const v=-s[S];if(d.normalizeSlideIndex)for(let m=0;m<c.length;m+=1){const x=-Math.floor(v*100),C=Math.floor(c[m]*100),k=Math.floor(c[m+1]*100);typeof c[m+1]<"u"?x>=C&&x<k-(k-C)/2?a=m:x>=C&&x<k&&(a=m+1):x>=C&&(a=m)}if(l.initialized&&a!==p&&(!l.allowSlideNext&&(h?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(p||0)!==a))return!1;a!==(r||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let g;if(a>p?g="next":a<p?g="prev":g="reset",h&&-v===l.translate||!h&&v===l.translate)return l.updateActiveIndex(a),d.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),d.effect!=="slide"&&l.setTranslate(v),g!=="reset"&&(l.transitionStart(i,g),l.transitionEnd(i,g)),!1;if(d.cssMode){const m=l.isHorizontal(),x=h?v:-v;if(e===0){const C=l.virtual&&l.params.virtual.enabled;C&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),C&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[m?"scrollLeft":"scrollTop"]=x})):f[m?"scrollLeft":"scrollTop"]=x,C&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return nl({swiper:l,targetPosition:x,side:m?"left":"top"}),!0;f.scrollTo({[m?"left":"top"]:x,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(v),l.updateActiveIndex(a),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,n),l.transitionStart(i,g),e===0?l.transitionEnd(i,g):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(x){!l||l.destroyed||x.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(i,g))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function oa(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;if(o.destroyed)return;typeof e>"u"&&(e=o.params.speed);const l=o.grid&&o.params.grid&&o.params.grid.rows>1;let a=t;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)a=a+o.virtual.slidesBefore;else{let d;if(l){const h=a*o.params.grid.rows;d=o.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else d=o.getSlideIndexByData(a);const s=l?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:c}=o.params;let r=o.params.slidesPerView;r==="auto"?r=o.slidesPerViewDynamic():(r=Math.ceil(parseFloat(o.params.slidesPerView,10)),c&&r%2===0&&(r=r+1));let p=s-d<r;if(c&&(p=p||d<Math.ceil(r/2)),n&&c&&o.params.slidesPerView!=="auto"&&!l&&(p=!1),p){const h=c?d<o.activeIndex?"prev":"next":d-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?d+1:d-s+1,slideRealIndex:h==="next"?o.realIndex:void 0})}if(l){const h=a*o.params.grid.rows;a=o.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else a=o.getSlideIndexByData(a)}return requestAnimationFrame(()=>{o.slideTo(a,e,i,n)}),o}function aa(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:o,params:l,animating:a}=n;if(!o||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let d=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(d=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<l.slidesPerGroupSkip?1:d,c=n.virtual&&l.virtual.enabled;if(l.loop){if(a&&!c&&l.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return l.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+s,t,e,i)}function sa(t,e,i){e===void 0&&(e=!0);const n=this,{params:o,snapGrid:l,slidesGrid:a,rtlTranslate:d,enabled:s,animating:c}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const r=n.virtual&&o.virtual.enabled;if(o.loop){if(c&&!r&&o.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const p=d?n.translate:-n.translate;function h(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const f=h(p),y=l.map(v=>h(v));let b=l[y.indexOf(f)-1];if(typeof b>"u"&&o.cssMode){let v;l.forEach((g,m)=>{f>=g&&(v=m)}),typeof v<"u"&&(b=l[v>0?v-1:v])}let S=0;if(typeof b<"u"&&(S=a.indexOf(b),S<0&&(S=n.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(S=S-n.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),o.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(o.loop&&n.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(S,t,e,i)}),!0;return n.slideTo(S,t,e,i)}function ra(t,e,i){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)}function da(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const o=this;if(o.destroyed)return;typeof t>"u"&&(t=o.params.speed);let l=o.activeIndex;const a=Math.min(o.params.slidesPerGroupSkip,l),d=a+Math.floor((l-a)/o.params.slidesPerGroup),s=o.rtlTranslate?o.translate:-o.translate;if(s>=o.snapGrid[d]){const c=o.snapGrid[d],r=o.snapGrid[d+1];s-c>(r-c)*n&&(l+=o.params.slidesPerGroup)}else{const c=o.snapGrid[d-1],r=o.snapGrid[d];s-c<=(r-c)*n&&(l-=o.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,o.slidesGrid.length-1),o.slideTo(l,t,e,i)}function ca(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let o=t.clickedIndex,l;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;l=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=t.getSlideIndex(Xt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=t.getSlideIndex(Xt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var ua={slideTo:la,slideToLoop:oa,slideNext:aa,slidePrev:sa,slideReset:ra,slideToClosest:da,slideToClickedSlide:ca};function va(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const o=()=>{Xt(n,`.${i.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},l=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(l?i.grid.rows:1),d=e.slides.length%a!==0,s=l&&e.slides.length%i.grid.rows!==0,c=r=>{for(let p=0;p<r;p+=1){const h=e.isElement?vi("swiper-slide",[i.slideBlankClass]):vi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(d){if(i.loopAddBlankSlides){const r=a-e.slides.length%a;c(r),e.recalcSlides(),e.updateSlides()}else Vi("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(s){if(i.loopAddBlankSlides){const r=i.grid.rows-e.slides.length%i.grid.rows;c(r),e.recalcSlides(),e.updateSlides()}else Vi("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function pa(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:o,activeSlideIndex:l,byController:a,byMousewheel:d}=t===void 0?{}:t;const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:c,allowSlidePrev:r,allowSlideNext:p,slidesEl:h,params:f}=s,{centeredSlides:y}=f;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&f.virtual.enabled){i&&(!f.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):f.centeredSlides&&s.snapIndex<f.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=r,s.allowSlideNext=p,s.emit("loopFix");return}let b=f.slidesPerView;b==="auto"?b=s.slidesPerViewDynamic():(b=Math.ceil(parseFloat(f.slidesPerView,10)),y&&b%2===0&&(b=b+1));const S=f.slidesPerGroupAuto?b:f.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=f.loopAdditionalSlides,s.loopedSlides=v;const g=s.grid&&f.grid&&f.grid.rows>1;c.length<b+v?Vi("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):g&&f.grid.fill==="row"&&Vi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const m=[],x=[];let C=s.activeIndex;typeof l>"u"?l=s.getSlideIndex(c.filter(L=>L.classList.contains(f.slideActiveClass))[0]):C=l;const k=n==="next"||!n,N=n==="prev"||!n;let A=0,w=0;const T=g?Math.ceil(c.length/f.grid.rows):c.length,I=(g?c[l].column:l)+(y&&typeof o>"u"?-b/2+.5:0);if(I<v){A=Math.max(v-I,S);for(let L=0;L<v-I;L+=1){const E=L-Math.floor(L/T)*T;if(g){const R=T-E-1;for(let F=c.length-1;F>=0;F-=1)c[F].column===R&&m.push(F)}else m.push(T-E-1)}}else if(I+b>T-v){w=Math.max(I-(T-v*2),S);for(let L=0;L<w;L+=1){const E=L-Math.floor(L/T)*T;g?c.forEach((R,F)=>{R.column===E&&x.push(F)}):x.push(E)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),N&&m.forEach(L=>{c[L].swiperLoopMoveDOM=!0,h.prepend(c[L]),c[L].swiperLoopMoveDOM=!1}),k&&x.forEach(L=>{c[L].swiperLoopMoveDOM=!0,h.append(c[L]),c[L].swiperLoopMoveDOM=!1}),s.recalcSlides(),f.slidesPerView==="auto"?s.updateSlides():g&&(m.length>0&&N||x.length>0&&k)&&s.slides.forEach((L,E)=>{s.grid.updateSlide(E,L,s.slides)}),f.watchSlidesProgress&&s.updateSlidesOffset(),i){if(m.length>0&&N){if(typeof e>"u"){const L=s.slidesGrid[C],R=s.slidesGrid[C+A]-L;d?s.setTranslate(s.translate-R):(s.slideTo(C+Math.ceil(A),0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-R,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-R))}else if(o){const L=g?m.length/f.grid.rows:m.length;s.slideTo(s.activeIndex+L,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(x.length>0&&k)if(typeof e>"u"){const L=s.slidesGrid[C],R=s.slidesGrid[C-w]-L;d?s.setTranslate(s.translate-R):(s.slideTo(C-w,0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-R,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-R))}else{const L=g?x.length/f.grid.rows:x.length;s.slideTo(s.activeIndex-L,0,!1,!0)}}if(s.allowSlidePrev=r,s.allowSlideNext=p,s.controller&&s.controller.control&&!a){const L={slideRealIndex:e,direction:n,setTranslate:o,activeSlideIndex:l,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...L,slideTo:E.params.slidesPerView===f.slidesPerView?i:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...L,slideTo:s.controller.control.params.slidesPerView===f.slidesPerView?i:!1})}s.emit("loopFix")}function ma(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(o=>{const l=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;n[l]=o}),t.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),n.forEach(o=>{i.append(o)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var fa={loopCreate:va,loopFix:pa,loopDestroy:ma};function ha(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 Aa(){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 ba={setGrabCursor:ha,unsetGrabCursor:Aa};function ga(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Ot()||n===St())return null;n.assignedSlot&&(n=n.assignedSlot);const o=n.closest(t);return!o&&!n.getRootNode?null:o||i(n.getRootNode().host)}return i(e)}function dl(t,e,i){const n=St(),{params:o}=t,l=o.edgeSwipeDetection,a=o.edgeSwipeThreshold;return l&&(i<=a||i>=n.innerWidth-a)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function ya(t){const e=this,i=Ot();let n=t;n.originalEvent&&(n=n.originalEvent);const o=e.touchEventsData;if(n.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==n.pointerId)return;o.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(o.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){dl(e,n,n.targetTouches[0].pageX);return}const{params:l,touches:a,enabled:d}=e;if(!d||!l.simulateTouch&&n.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let s=n.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||o.isTouched&&o.isMoved)return;const c=!!l.noSwipingClass&&l.noSwipingClass!=="",r=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&r&&(s=r[0]);const p=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,h=!!(n.target&&n.target.shadowRoot);if(l.noSwiping&&(h?ga(p,s):s.closest(p))){e.allowClick=!0;return}if(l.swipeHandler&&!s.closest(l.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const f=a.currentX,y=a.currentY;if(!dl(e,n,f))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=f,a.startY=y,o.touchStartTime=Ft(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(o.allowThresholdMove=!1);let b=!0;s.matches(o.focusableElements)&&(b=!1,s.nodeName==="SELECT"&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const S=b&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!s.isContentEditable&&n.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function wa(t){const e=Ot(),i=this,n=i.touchEventsData,{params:o,touches:l,rtlTranslate:a,enabled:d}=i;if(!d||!o.simulateTouch&&t.pointerType==="mouse")return;let s=t;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(n.touchId!==null||s.pointerId!==n.pointerId))return;let c;if(s.type==="touchmove"){if(c=[...s.changedTouches].filter(k=>k.identifier===n.touchId)[0],!c||c.identifier!==n.touchId)return}else c=s;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",s);return}const r=c.pageX,p=c.pageY;if(s.preventedByNestedSwiper){l.startX=r,l.startY=p;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(l,{startX:r,startY:p,currentX:r,currentY:p}),n.touchStartTime=Ft());return}if(o.touchReleaseOnEdges&&!o.loop){if(i.isVertical()){if(p<l.startY&&i.translate<=i.maxTranslate()||p>l.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(r<l.startX&&i.translate<=i.maxTranslate()||r>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&s.target===e.activeElement&&s.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",s),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=r,l.currentY=p;const h=l.currentX-l.startX,f=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(h**2+f**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let k;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?n.isScrolling=!1:h*h+f*f>=25&&(k=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI,n.isScrolling=i.isHorizontal()?k>o.touchAngle:90-k>o.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(n.startMoving=!0),n.isScrolling||s.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!o.cssMode&&s.cancelable&&s.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&s.stopPropagation();let y=i.isHorizontal()?h:f,b=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;o.oneWayMovement&&(y=Math.abs(y)*(a?1:-1),b=Math.abs(b)*(a?1:-1)),l.diff=y,y*=o.touchRatio,a&&(y=-y,b=-b);const S=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=b>0?"prev":"next";const v=i.params.loop&&!o.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(k)}n.allowMomentumBounce=!1,o.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",s)}let m;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(y)>=1){Object.assign(l,{startX:r,startY:p,currentX:r,currentY:p,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",s),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let x=!0,C=o.resistanceRatio;if(o.touchReleaseOnEdges&&(C=0),y>0?(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate>(o.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(x=!1,o.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**C))):y<0&&(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate<(o.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(o.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(x=!1,o.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**C))),x&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),o.threshold>0)if(Math.abs(y)>o.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,n.currentTranslate=n.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{n.currentTranslate=n.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&i.freeMode||o.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Sa(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let o;if(n.type==="touchend"||n.type==="touchcancel"){if(o=[...n.changedTouches].filter(C=>C.identifier===i.touchId)[0],!o||o.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;o=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:d,rtlTranslate:s,slidesGrid:c,enabled:r}=e;if(!r||!a.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),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 p=Ft(),h=p-i.touchStartTime;if(e.allowClick){const C=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(C&&C[0]||n.target,C),e.emit("tap click",n),h<300&&p-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Ft(),ui(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||d.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let f;if(a.followFinger?f=s?e.translate:-e.translate:f=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}const y=f>=-e.maxTranslate()&&!e.params.loop;let b=0,S=e.slidesSizesGrid[0];for(let C=0;C<c.length;C+=C<a.slidesPerGroupSkip?1:a.slidesPerGroup){const k=C<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[C+k]<"u"?(y||f>=c[C]&&f<c[C+k])&&(b=C,S=c[C+k]-c[C]):(y||f>=c[C])&&(b=C,S=c[c.length-1]-c[c.length-2])}let v=null,g=null;a.rewind&&(e.isBeginning?g=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const m=(f-c[b])/S,x=b<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(h>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(m>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?v:b+x):e.slideTo(b)),e.swipeDirection==="prev"&&(m>1-a.longSwipesRatio?e.slideTo(b+x):g!==null&&m<0&&Math.abs(m)>a.longSwipesRatio?e.slideTo(g):e.slideTo(b))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(b+x):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:b+x),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:b))}}function cl(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:o,snapGrid:l}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const d=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!d?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?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=o,t.allowSlideNext=n,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function xa(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ta(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)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 o;const l=t.maxTranslate()-t.minTranslate();l===0?o=0:o=(t.translate-t.minTranslate())/l,o!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Ea(t){const e=this;zi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Ia(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ul=(t,e)=>{const i=Ot(),{params:n,el:o,wrapperEl:l,device:a}=t,d=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",c=e;!o||typeof o=="string"||(i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),o[s]("touchstart",t.onTouchStart,{passive:!1}),o[s]("pointerdown",t.onTouchStart,{passive:!1}),i[s]("touchmove",t.onTouchMove,{passive:!1,capture:d}),i[s]("pointermove",t.onTouchMove,{passive:!1,capture:d}),i[s]("touchend",t.onTouchEnd,{passive:!0}),i[s]("pointerup",t.onTouchEnd,{passive:!0}),i[s]("pointercancel",t.onTouchEnd,{passive:!0}),i[s]("touchcancel",t.onTouchEnd,{passive:!0}),i[s]("pointerout",t.onTouchEnd,{passive:!0}),i[s]("pointerleave",t.onTouchEnd,{passive:!0}),i[s]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&o[s]("click",t.onClick,!0),n.cssMode&&l[s]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",cl,!0):t[c]("observerUpdate",cl,!0),o[s]("load",t.onLoad,{capture:!0}))};function ka(){const t=this,{params:e}=t;t.onTouchStart=ya.bind(t),t.onTouchMove=wa.bind(t),t.onTouchEnd=Sa.bind(t),t.onDocumentTouchStart=Ia.bind(t),e.cssMode&&(t.onScroll=Ta.bind(t)),t.onClick=xa.bind(t),t.onLoad=Ea.bind(t),ul(t,"on")}function Ca(){ul(this,"off")}var Pa={attachEvents:ka,detachEvents:Ca};const vl=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Oa(){const t=this,{realIndex:e,initialized:i,params:n,el:o}=t,l=n.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const a=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const s=(a in l?l[a]:void 0)||t.originalParams,c=vl(t,n),r=vl(t,s),p=t.params.grabCursor,h=s.grabCursor,f=n.enabled;c&&!r?(o.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&r&&(o.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&o.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!h?t.unsetGrabCursor():!p&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof s[m]>"u")return;const x=n[m]&&n[m].enabled,C=s[m]&&s[m].enabled;x&&!C&&t[m].disable(),!x&&C&&t[m].enable()});const y=s.direction&&s.direction!==n.direction,b=n.loop&&(s.slidesPerView!==n.slidesPerView||y),S=n.loop;y&&i&&t.changeDirection(),Nt(t.params,s);const v=t.params.enabled,g=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!v?t.disable():!f&&v&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",s),i&&(b?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",s)}function La(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const o=St(),l=e==="window"?o.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const s=parseFloat(d.substr(1));return{value:l*s,point:d}}return{value:d,point:d}});a.sort((d,s)=>parseInt(d.value,10)-parseInt(s.value,10));for(let d=0;d<a.length;d+=1){const{point:s,value:c}=a[d];e==="window"?o.matchMedia(`(min-width: ${c}px)`).matches&&(n=s):c<=i.clientWidth&&(n=s)}return n||"max"}var ja={setBreakpoint:Oa,getBreakpoint:La};function Ma(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(o=>{n[o]&&i.push(e+o)}):typeof n=="string"&&i.push(e+n)}),i}function Na(){const t=this,{classNames:e,params:i,rtl:n,el:o,device:l}=t,a=Ma(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),o.classList.add(...e),t.emitContainerClasses()}function Da(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Va={addClasses:Na,removeClasses:Da};function Ra(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const o=t.slides.length-1,l=t.slidesGrid[o]+t.slidesSizesGrid[o]+n*2;t.isLocked=t.size>l}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 Ba={checkOverflow:Ra},hn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Fa(t,e){return function(n){n===void 0&&(n={});const o=Object.keys(n)[0],l=n[o];if(typeof l!="object"||l===null){Nt(e,n);return}if(t[o]===!0&&(t[o]={enabled:!0}),o==="navigation"&&t[o]&&t[o].enabled&&!t[o].prevEl&&!t[o].nextEl&&(t[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&t[o]&&t[o].enabled&&!t[o].el&&(t[o].auto=!0),!(o in t&&"enabled"in l)){Nt(e,n);return}typeof t[o]=="object"&&!("enabled"in t[o])&&(t[o].enabled=!0),t[o]||(t[o]={enabled:!1}),Nt(e,n)}}const An={eventsEmitter:Vo,update:Go,translate:$o,transition:na,slide:ua,loop:fa,grabCursor:ba,events:Pa,breakpoints:ja,checkOverflow:Ba,classes:Va},bn={};let gn=class Kt{constructor(){let e,i;for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?i=o[0]:[e,i]=o,i||(i={}),i=Nt({},i),e&&!i.el&&(i.el=e);const a=Ot();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const r=[];return a.querySelectorAll(i.el).forEach(p=>{const h=Nt({},i,{el:p});r.push(new Kt(h))}),r}const d=this;d.__swiper__=!0,d.support=ol(),d.device=al({userAgent:i.userAgent}),d.browser=Mo(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],i.modules&&Array.isArray(i.modules)&&d.modules.push(...i.modules);const s={};d.modules.forEach(r=>{r({params:i,swiper:d,extendParams:Fa(i,s),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const c=Nt({},hn,s);return d.params=Nt({},c,bn,i),d.originalParams=Nt({},d.params),d.passedParams=Nt({},i),d.params&&d.params.on&&Object.keys(d.params.on).forEach(r=>{d.on(r,d.params.on[r])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return d.params.direction==="horizontal"},isVertical(){return d.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:d.params.allowSlideNext,allowSlidePrev:d.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:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,o=Xt(i,`.${n.slideClass}, swiper-slide`),l=gi(o[0]);return gi(e)-l}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:n}=e;e.slides=Xt(i,`.${n.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 n=this;e=Math.min(Math.max(e,0),1);const o=n.minTranslate(),a=(n.maxTranslate()-o)*e+o;n.translateTo(a,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const o=e.getSlideClasses(n);i.push({slideEl:n,classNames:o}),e.emit("_slideClass",n,o)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:o,slides:l,slidesGrid:a,slidesSizesGrid:d,size:s,activeIndex:c}=n;let r=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let p=l[c]?Math.ceil(l[c].swiperSlideSize):0,h;for(let f=c+1;f<l.length;f+=1)l[f]&&!h&&(p+=Math.ceil(l[f].swiperSlideSize),r+=1,p>s&&(h=!0));for(let f=c-1;f>=0;f-=1)l[f]&&!h&&(p+=l[f].swiperSlideSize,r+=1,p>s&&(h=!0))}else if(e==="current")for(let p=c+1;p<l.length;p+=1)(i?a[p]+d[p]-a[c]<s:a[p]-a[c]<s)&&(r+=1);else for(let p=c-1;p>=0;p-=1)a[c]-a[p]<s&&(r+=1);return r}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&zi(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function o(){const a=e.rtlTranslate?e.translate*-1:e.translate,d=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(d),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)o(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(a.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||o()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,o=n.params.direction;return e||(e=o==="horizontal"?"vertical":"horizontal"),e===o||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${o}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}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(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const o=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(o()):Xt(n,o())[0];return!a&&i.params.createElements&&(a=vi("div",i.params.wrapperClass),n.append(a),Xt(n,`.${i.params.slideClass}`).forEach(d=>{a.append(d)})),Object.assign(i,{el:n,wrapperEl:a,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||$t(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||$t(n,"direction")==="rtl"),wrongRTL:$t(a,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;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();const o=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&o.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(l=>{l.complete?zi(i,l):l.addEventListener("load",a=>{zi(i,a.target)})}),fn(i),i.initialized=!0,fn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:o,el:l,wrapperEl:a,slides:d}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),o.loop&&n.loopDestroy(),i&&(n.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(s=>{s.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(s=>{n.off(s)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),So(n)),n.destroyed=!0),null}static extendDefaults(e){Nt(bn,e)}static get extendedDefaults(){return bn}static get defaults(){return hn}static installModule(e){Kt.prototype.__modules__||(Kt.prototype.__modules__=[]);const i=Kt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Kt.installModule(i)),Kt):(Kt.installModule(e),Kt)}};Object.keys(An).forEach(t=>{Object.keys(An[t]).forEach(e=>{gn.prototype[e]=An[t][e]})}),gn.use([No,Do]);const pl=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_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","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","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 ai(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function pi(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:ai(e[n])&&ai(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:pi(t[n],e[n]):t[n]=e[n]})}function ml(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function fl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function hl(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Al(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function Wa(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function za(t){let{swiper:e,slides:i,passedParams:n,changedParams:o,nextEl:l,prevEl:a,scrollbarEl:d,paginationEl:s}=t;const c=o.filter(w=>w!=="children"&&w!=="direction"&&w!=="wrapperClass"),{params:r,pagination:p,navigation:h,scrollbar:f,virtual:y,thumbs:b}=e;let S,v,g,m,x,C,k,N;o.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&r.thumbs&&!r.thumbs.swiper&&(S=!0),o.includes("controller")&&n.controller&&n.controller.control&&r.controller&&!r.controller.control&&(v=!0),o.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(r.pagination||r.pagination===!1)&&p&&!p.el&&(g=!0),o.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||d)&&(r.scrollbar||r.scrollbar===!1)&&f&&!f.el&&(m=!0),o.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||l)&&(r.navigation||r.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(x=!0);const A=w=>{e[w]&&(e[w].destroy(),w==="navigation"?(e.isElement&&(e[w].prevEl.remove(),e[w].nextEl.remove()),r[w].prevEl=void 0,r[w].nextEl=void 0,e[w].prevEl=void 0,e[w].nextEl=void 0):(e.isElement&&e[w].el.remove(),r[w].el=void 0,e[w].el=void 0))};o.includes("loop")&&e.isElement&&(r.loop&&!n.loop?C=!0:!r.loop&&n.loop?k=!0:N=!0),c.forEach(w=>{if(ai(r[w])&&ai(n[w]))Object.assign(r[w],n[w]),(w==="navigation"||w==="pagination"||w==="scrollbar")&&"enabled"in n[w]&&!n[w].enabled&&A(w);else{const T=n[w];(T===!0||T===!1)&&(w==="navigation"||w==="pagination"||w==="scrollbar")?T===!1&&A(w):r[w]=n[w]}}),c.includes("controller")&&!v&&e.controller&&e.controller.control&&r.controller&&r.controller.control&&(e.controller.control=r.controller.control),o.includes("children")&&i&&y&&r.virtual.enabled?(y.slides=i,y.update(!0)):o.includes("virtual")&&y&&r.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),o.includes("children")&&i&&r.loop&&(N=!0),S&&b.init()&&b.update(!0),v&&(e.controller.control=r.controller.control),g&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(r.pagination.el=s),p.init(),p.render(),p.update()),m&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),e.el.appendChild(d)),d&&(r.scrollbar.el=d),f.init(),f.updateSize(),f.setTranslate()),x&&(e.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=e.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),e.el.appendChild(l)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),l&&(r.navigation.nextEl=l),a&&(r.navigation.prevEl=a),h.init(),h.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),o.includes("direction")&&e.changeDirection(n.direction,!1),(C||N)&&e.loopDestroy(),(k||N)&&e.loopCreate(),e.update()}function Ha(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},o={};pi(i,hn),i._emitClasses=!0,i.init=!1;const l={},a=pl.map(s=>s.replace(/_/,"")),d=Object.assign({},t);return Object.keys(d).forEach(s=>{typeof t[s]>"u"||(a.indexOf(s)>=0?ai(t[s])?(i[s]={},o[s]={},pi(i[s],t[s]),pi(o[s],t[s])):(i[s]=t[s],o[s]=t[s]):s.search(/on[A-Z]/)===0&&typeof t[s]=="function"?e?n[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:i.on[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:l[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:o,rest:l,events:n}}function Ua(t,e){let{el:i,nextEl:n,prevEl:o,paginationEl:l,scrollbarEl:a,swiper:d}=t;ml(e)&&n&&o&&(d.params.navigation.nextEl=n,d.originalParams.navigation.nextEl=n,d.params.navigation.prevEl=o,d.originalParams.navigation.prevEl=o),fl(e)&&l&&(d.params.pagination.el=l,d.originalParams.pagination.el=l),hl(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function Xa(t,e,i,n,o){const l=[];if(!e)return l;const a=s=>{l.indexOf(s)<0&&l.push(s)};if(i&&n){const s=n.map(o),c=i.map(o);s.join("")!==c.join("")&&a("children"),n.length!==i.length&&a("children")}return pl.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in t&&s in e)if(ai(t[s])&&ai(e[s])){const c=Object.keys(t[s]),r=Object.keys(e[s]);c.length!==r.length?a(s):(c.forEach(p=>{t[s][p]!==e[s][p]&&a(s)}),r.forEach(p=>{t[s][p]!==e[s][p]&&a(s)}))}else t[s]!==e[s]&&a(s)}),l}const qa=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 Hi(){return Hi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Hi.apply(this,arguments)}function bl(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function gl(t){const e=[];return u.Children.toArray(t).forEach(i=>{bl(i)?e.push(i):i.props&&i.props.children&&gl(i.props.children).forEach(n=>e.push(n))}),e}function Ya(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return u.Children.toArray(t).forEach(n=>{if(bl(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const o=gl(n.props.children);o.length>0?o.forEach(l=>e.push(l)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function Ga(t,e,i){if(!i)return null;const n=r=>{let p=r;return r<0?p=e.length+r:p>=e.length&&(p=p-e.length),p},o=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:a}=i,d=t.params.loop?-e.length:0,s=t.params.loop?e.length*2:e.length,c=[];for(let r=d;r<s;r+=1)r>=l&&r<=a&&c.push(e[n(r)]);return c.map((r,p)=>u.cloneElement(r,{swiper:t,style:o,key:r.props.virtualIndex||r.key||`slide-${p}`}))}function yi(t,e){return typeof window>"u"?he(t,e):Hl(t,e)}const yn=Ai(null),wn=()=>hi(yn),Za=Ai(null),si=Oi(function(t,e){let{className:i,tag:n="div",wrapperTag:o="div",children:l,onSwiper:a,...d}=t===void 0?{}:t,s=!1;const[c,r]=X("swiper"),[p,h]=X(null),[f,y]=X(!1),b=Ae(!1),S=Ae(null),v=Ae(null),g=Ae(null),m=Ae(null),x=Ae(null),C=Ae(null),k=Ae(null),N=Ae(null),{params:A,passedParams:w,rest:T,events:M}=Ha(d),{slides:I,slots:L}=Ya(l),E=()=>{y(!f)};Object.assign(A.on,{_containerClasses(D,P){r(P)}});const R=()=>{Object.assign(A.on,M),s=!0;const D={...A};if(delete D.wrapperClass,v.current=new gn(D),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=I;const P={cache:!1,slides:I,renderExternal:h,renderExternalUpdate:!1};pi(v.current.params.virtual,P),pi(v.current.originalParams.virtual,P)}};S.current||R(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{s||!M||!v.current||Object.keys(M).forEach(D=>{v.current.on(D,M[D])})},O=()=>{!M||!v.current||Object.keys(M).forEach(D=>{v.current.off(D,M[D])})};he(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),he(()=>{!b.current&&v.current&&(v.current.emitSlidesClasses(),b.current=!0)}),yi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&R(),Ua({el:S.current,nextEl:x.current,prevEl:C.current,paginationEl:k.current,scrollbarEl:N.current,swiper:v.current},A),a&&!v.current.destroyed&&a(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),yi(()=>{F();const D=Xa(w,g.current,I,m.current,P=>P.key);return g.current=w,m.current=I,D.length&&v.current&&!v.current.destroyed&&za({swiper:v.current,slides:I,passedParams:w,changedParams:D,nextEl:x.current,prevEl:C.current,scrollbarEl:N.current,paginationEl:k.current}),()=>{O()}}),yi(()=>{qa(v.current)},[p]);function V(){return A.virtual?Ga(v.current,I,p):I.map((D,P)=>u.cloneElement(D,{swiper:v.current,swiperSlideIndex:P}))}return u.createElement(n,Hi({ref:S,className:Al(`${c}${i?` ${i}`:""}`)},T),u.createElement(Za.Provider,{value:v.current},L["container-start"],u.createElement(o,{className:Wa(A.wrapperClass)},L["wrapper-start"],V(),L["wrapper-end"]),ml(A)&&u.createElement(u.Fragment,null,u.createElement("div",{ref:C,className:"swiper-button-prev"}),u.createElement("div",{ref:x,className:"swiper-button-next"})),hl(A)&&u.createElement("div",{ref:N,className:"swiper-scrollbar"}),fl(A)&&u.createElement("div",{ref:k,className:"swiper-pagination"}),L["container-end"]))});si.displayName="Swiper";const Ut=Oi(function(t,e){let{tag:i="div",children:n,className:o="",swiper:l,zoom:a,lazy:d,virtualIndex:s,swiperSlideIndex:c,...r}=t===void 0?{}:t;const p=Ae(null),[h,f]=X("swiper-slide"),[y,b]=X(!1);function S(x,C,k){C===p.current&&f(k)}yi(()=>{if(typeof c<"u"&&(p.current.swiperSlideIndex=c),e&&(e.current=p.current),!(!p.current||!l)){if(l.destroyed){h!=="swiper-slide"&&f("swiper-slide");return}return l.on("_slideClass",S),()=>{l&&l.off("_slideClass",S)}}}),yi(()=>{l&&p.current&&!l.destroyed&&f(l.getSlideClasses(p.current))},[l]);const v={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},g=()=>typeof n=="function"?n(v):n,m=()=>{b(!0)};return u.createElement(i,Hi({ref:p,className:Al(`${h}${o?` ${o}`:""}`),"data-swiper-slide-index":s,onLoad:m},r),a&&u.createElement(yn.Provider,{value:v},u.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},g(),d&&!y&&u.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&u.createElement(yn.Provider,{value:v},g(),d&&!y&&u.createElement("div",{className:"swiper-lazy-preloader"})))});Ut.displayName="SwiperSlide";const Ka="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Ja=({visible:t,onClose:e,children:i,modalStyle:n,padding:o,popup:l,schema:a,fullHeight:d=window.innerHeight,isFullScreen:s=!1,openState:c})=>{var r,p,h,f,y,b,S,v,g,m,x,C,k,N,A,w,T,M,I,L,E,R,F,O;const V=Ae(null),D=Ae(null),P=Ae(null),B=Ae(null),U=Ae(null),K=d*.2,$=s?d:d*.8,[ie,fe]=X(K),[we,ne]=X(!1),Re=Ae(null),{globalConfig:ze,popupDetailData:Ye}=Ue(),{schema:G,popup:J}=_t(),[Se,Te]=X(15);he(()=>{const Z=document.getElementById("sxp-render"),q=document.getElementById("pb-modal");q?Re.current=q:(Re.current=document.createElement("div"),Re.current.setAttribute("id","pb-modal"),Z?.appendChild(Re.current))},[]);const Ee=me(()=>l?.id&&l?.id!==""||t,[t,l]),de=me(()=>{var Z,q,oe;const ae=a??G;return(oe=(q=(Z=ae?.sxpPageConf)===null||Z===void 0?void 0:Z.globalConfig)===null||q===void 0?void 0:q.popupList)===null||oe===void 0?void 0:oe.find(De=>De?.id===l?.id)},[l,a,G]),Fe=me(()=>{var Z,q;return((q=(Z=de?.item)===null||Z===void 0?void 0:Z.event)===null||q===void 0?void 0:q.isScrollFullScreen)||!1},[de]);he(()=>{Ee?ne(!0):setTimeout(()=>{ne(!1),fe(K)},l?.duration)},[Ee,l]);const Ze=re(()=>i,[J,c,ze,a]);if(he(()=>{const Z=q=>{var oe=q?.querySelectorAll('[role="button"],a, a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),ae=oe?.[0],be=oe?.[oe?.length-1],De=9;q.addEventListener("keydown",function($e){($e.key==="Escape"||$e.key==="Esc")&&(qe(),$e.preventDefault());var le=$e.key==="Tab"||$e.keyCode===De;le&&($e.shiftKey?document?.activeElement===ae&&(be?.focus(),$e.preventDefault()):document?.activeElement===be&&(ae?.focus(),$e.preventDefault()))}),ae?.focus()};return U?.current&&Z(U?.current),()=>{var q;(q=U?.current)===null||q===void 0||q.removeEventListener("keydown",Z)}},[U,we,J]),!Re.current)return null;const qe=Pi(()=>{e?.()},300),Qe=Z=>{V.current=Z.touches[0],D.current=Z.touches[0],P.current=!0},it=Z=>{requestAnimationFrame(()=>{var q;if(P.current&&((q=B?.current)===null||q===void 0?void 0:q.scrollTop)===0){const oe=Z.touches[0].clientY,ae=Z.touches[0].clientX,be=V.current.clientY-oe;V.current=Z.touches[0];const De=oe-D.current.clientY,$e=ae-D.current.clientX;if(Math.abs($e)>Math.abs(De))return;const le=ie-be;le>0&&fe(le)}})},ke=Z=>{var q;if(P.current&&((q=B?.current)===null||q===void 0?void 0:q.scrollTop)===0){const oe=Z.changedTouches[0].clientY-D.current.clientY,ae=Z.changedTouches[0].clientX-D.current.clientX;if(Math.abs(ae)>Math.abs(oe))return;const be=D.current.clientY-V.current.clientY;be>0?fe(0):ie<K&&be<0?fe(K):ie>=K&&be<0&&e?.()}P.current=!1};return Dn.createPortal(u.createElement(u.Fragment,null,we&&u.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ee?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:qe},u.createElement("div",{style:{position:"relative",left:`${(f=(h=(p=(r=de?.item)===null||r===void 0?void 0:r.props)===null||p===void 0?void 0:p.popupBg)===null||h===void 0?void 0:h.horizontalMargin)!==null&&f!==void 0?f:0}px`,right:`${(v=(S=(b=(y=de?.item)===null||y===void 0?void 0:y.props)===null||b===void 0?void 0:b.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${(C=(x=(m=(g=de?.item)===null||g===void 0?void 0:g.props)===null||m===void 0?void 0:m.popupBg)===null||x===void 0?void 0:x.bottomMargin)!==null&&C!==void 0?C:0}px`,overflow:"hidden",width:`calc(100% - ${((w=(A=(N=(k=de?.item)===null||k===void 0?void 0:k.props)===null||N===void 0?void 0:N.popupBg)===null||A===void 0?void 0:A.horizontalMargin)!==null&&w!==void 0?w:0)*2}px)`,height:"100%"}},u.createElement("div",Object.assign({ref:U,className:`modal-container ${Ee?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=de?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:o,animationDuration:((M=l?.duration)!==null&&M!==void 0?M:0)/1e3+"s"},Fe&&{transform:`translateY(${ie}px)`}),{overflow:"hidden",borderRadius:`${(R=(E=(L=(I=de?.item)===null||I===void 0?void 0:I.props)===null||L===void 0?void 0:L.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&R!==void 0?R:0}px`,zIndex:9}),onClick:Z=>{Z.stopPropagation(),Z.preventDefault()}},Fe&&{onTouchMove:it,onTouchStart:Qe,onTouchEnd:ke}),u.createElement("div",Object.assign({id:"modal-content",ref:B,style:{height:Fe?d:$,overflow:Fe&&ie<=0||!Fe?"auto":"hidden",zIndex:1}},((O=(F=de?.item)===null||F===void 0?void 0:F.props)===null||O===void 0?void 0:O.enableFixedCloseButton)&&{onScroll:Z=>{var q;Te(15-((q=Z?.target)===null||q===void 0?void 0:q.scrollTop))}}),Ze()),u.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Se}},u.createElement("img",{src:ze?.popupCloseIcon||Ka,alt:"close button",className:"modal-icon"})))))),Re.current)};var mi=Ne(Ja);const _a=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),o=[];for(let a=0;a<n.length&&(o.push(n[a]),!(o.join(" ").length>=e));a++);return(o.length>1&&o.length<n.length?o.slice(0,o.length-1):o).join(" ")+" "},Qa=({text:t,maxStr:e=108,style:i,className:n,onClick:o,foldText:l,unfoldText:a,isPost:d,onChange:s})=>{const[c,r]=X(!1),[p,h]=X(!1),f=Number(i?.lineClamp||2),y=Ae(null),b=Ae(null),S=re(()=>{r(!c)},[c,s]);return me(()=>!c&&t.length>e?_a(t,e)+"...":t,[t,e,c]),he(()=>{var v,g;b?.current&&(b.current.style.display="block"),((v=b?.current)===null||v===void 0?void 0:v.offsetHeight)>((g=y?.current)===null||g===void 0?void 0:g.offsetHeight)&&d?h(!0):h(!1),b.current.style.display="none"},[d,t]),u.createElement("div",{className:n,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},u.createElement("div",{ref:y,style:{overflow:"hidden",WebkitLineClamp:!d||c?"":f,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:Me(t?.replace(/\n/g,"</br>"),i)}}),u.createElement("div",{ref:b,dangerouslySetInnerHTML:{__html:Me(t?.replace(/\n/g,"</br>"),i)}}),t&&d&&p&&u.createElement("button",{"aria-label":c?a||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:o??S,dangerouslySetInnerHTML:{__html:Me(c?a||"show less":l||"show more",i)}}))};var Ui=Ne(Qa);const $a=Oi((t,e)=>{const{src:i,onLoad:n,style:o,className:l,loading:a,alt:d="image"}=t,[s,c]=X(i),r=Ae(null),[p,h]=X(!1);return Mn(e,()=>({setSrc:f=>{f&&c(f)}})),he(()=>{i&&c(i)},[i]),he(()=>{const f=()=>{i&&!p&&r.current&&(r.current.src="",r.current.src=i)};return ht.on(pt.PAGE_DID_SHOW,f),()=>{ht.off(pt.PAGE_DID_SHOW,f)}},[i,p]),u.createElement(u.Fragment,null,!p&&!s&&u.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),s?.includes(".avif")?u.createElement("picture",null,u.createElement("source",{type:"image/avif",srcSet:s}),u.createElement("source",{type:"image/webp",srcSet:`${s}?imageMogr2/format/webp`}),u.createElement("source",{type:"image/jpeg",srcSet:`${s}?imageMogr2/format/jpg`}),u.createElement("img",{ref:r,className:l,src:s,style:Object.assign({},o),loading:a,onLoad:f=>{h(!0),n?.(f.target)},alt:d})):u.createElement("img",{ref:r,className:l,src:s,style:Object.assign({},o),loading:a,onLoad:f=>{h(!0),n?.(f.target)},alt:d}))});var Lt=Ne($a);const es=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const o=Ae(),{popupDetailData:l}=Ue();return he(()=>{var a,d;n&&((a=o?.current)===null||a===void 0||a.swiper.slideTo((d=l?.multiCheckIndex)!==null&&d!==void 0?d:0))},[l,n]),u.createElement(si,{role:"list",tag:"ul",ref:o,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Po,Co,Bi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var wi=Ne(es);const ts=({products:t,data:e,defImg:i,style:n,onCLick:o,popupDetailData:l,check:a})=>{var d;const{productView:s}=Ct(),{popupCurTimeRef:c}=Ue(),r=(p,h)=>{if(a===h)return;const f=t?.[a];s(l,f,f?.bindCta,c.current,l?.index),o?.(h)};return u.createElement(u.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&u.createElement(wi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(d=l?t:[0,1,2,3])===null||d===void 0?void 0:d.map((p,h)=>{var f,y,b;return u.createElement(u.Fragment,null,p?.bindCta?u.createElement(Ut,{className:Ve({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{r(p,h)},key:h},u.createElement(Lt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:a===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(b=(f=p?.cover)!==null&&f!==void 0?f:(y=p?.homePage)===null||y===void 0?void 0:y[0])!==null&&b!==void 0?b:i})):null)})))};var yl=Ne(ts);const is=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:o,src:l}=t;switch(i){case 2:return n||null;case 3:return l||null;default:return o&&o.length>0?(e=o[0])===null||e===void 0?void 0:e.url:null}},ns=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Si=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:o})=>{var l,a,d,s,c,r,p,h;let f="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return f;let b=i?.priceSymbol,S=t?.currency?(d=(a=(l=t?.currency)===null||l===void 0?void 0:l.split("-")[1])===null||a===void 0?void 0:a.toUpperCase())!==null&&d!==void 0?d:"":"$";const v=e===void 0||e;let g=y?.toString();b?.showTwoDecimalPoint&&(g=y?.toFixed(2));let m=(s=g?.indexOf("."))!==null&&s!==void 0?s:-1;if(v){f=(c=y?.toLocaleString("zh",{minimumFractionDigits:b?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let x=0,C=m??f?.length;b?.millesimalSymbol==="."?f=f?.replace(/\,/g,function(k,N){return N>=x&&N<C?".":k}):b?.millesimalSymbol===" "&&(f=f?.replace(","," "))}else f=`${b?.showTwoDecimalPoint?y?.toFixed(2):y}`;return b?.decimalPoint===","&&m>0&&(f=f=f?.replace(/\./g,function(x,C){return C>=m&&C<f?.length?",":x})),S=`<span style="font-family:${(h=(p=(r=i?.priceSymbol)===null||r===void 0?void 0:r.fontFamily)!==null&&p!==void 0?p:o?.["fontFamily-en"])!==null&&h!==void 0?h:"inherit"}">${S}</span>`,f=Me(f,o),b?.currencyPosition&&b?.currencyPosition!=="none"?f=b?.currencyPosition==="left"?S+f:f+S:b?.currencyPosition!=="none"&&(f=S+f),f},ls=t=>{var e,i,n,o,l,a,d,s,c,r,p,h,f,y,b,S,v,g,m,x,C,k,N,A,{content:w,style:T,bgImg:M,onClick:I,schema:L,isDefault:E,bottom_image:R,tipText:F,isPost:O,viewTime:V,rec:D,swiper:P,commodityStyles:B,buttonStyle:U,index:K,commodityGroup:$,popupBg:ie,iframeIcon:fe,commodityImgRatio:we,isTel:ne,iframeBgColor:Re,isActive:ze=!0}=t,Ye=at(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:G,popupDetailData:J,isPreview:Se,bffFbReport:Te,popupCurTimeRef:Ee,checkCommodityIndexRef:de,globalConfig:Fe}=Ue(),{jumpToWeb:Ze,productView:qe}=Ct(),Qe=Ae(null),[it,ke]=X(!1),[Z,q]=X(!1),[oe,ae]=X((e=J?.multiCheckIndex)!==null&&e!==void 0?e:0),be=Ae(),[De,$e]=X(0),le=O?D:J;let W=O?le?.product:(n=(i=le?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(l=(o=le?.video)===null||o===void 0?void 0:o.bindProducts)===null||l===void 0?void 0:l[0],Je=O?(a=le?.product)===null||a===void 0?void 0:a.bindCta:(c=(s=(d=le?.video)===null||d===void 0?void 0:d.bindProduct)===null||s===void 0?void 0:s.bindCta)!==null&&c!==void 0?c:(h=(p=(r=le?.video)===null||r===void 0?void 0:r.bindProducts)===null||p===void 0?void 0:p[0])===null||h===void 0?void 0:h.bindCta;const xt=O?K:J?.index;if(!O&&$?.open&&(!((f=le?.video)===null||f===void 0)&&f.bindProducts)&&((b=(y=le?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0?void 0:b.length)>0){de.current=oe;const Ie=(S=le?.video)===null||S===void 0?void 0:S.bindProducts[oe];W=Ie,Je=Ie?.bindCta}const rt=Ie=>{W?.link&&(Ze(Ie,le,W,Je,xt),O||qe(le,W,Je,V||Qe.current,xt),window.location.href=window.getJointUtmLink(W.link))};he(()=>{ze&&(Te?.({eventName:"ProductView",product:W}),Te?.({eventName:"PageView",product:W}))},[ze,Te]),he(()=>{const Ie=()=>{Qe.current=new Date};return Ie(),window.addEventListener("pageshow",Ie),()=>{window.removeEventListener("pageshow",Ie)}},[]);const bt=Si({product:W,enableFormattedPrice:(v=B?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:Fe,style:B?.price}),At=(Se?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((m=ie?.horizontalMargin)!==null&&m!==void 0?m:0)*2,Tt=we?At*(we.h/we.w):At,zt=({isPost:Ie})=>{var _e,It,ii,ct;return u.createElement("div",null,u.createElement("div",{className:"pb-commondity-content-collection",style:Dt(B?.collection),hidden:!!W&&(!W?.collection||W?.collection===""),dangerouslySetInnerHTML:{__html:Me((_e=W?.collection)!==null&&_e!==void 0?_e:"Tiffany Lock",B?.collection)}}),u.createElement("div",{className:"pb-commondity-content-title",style:Dt(B?.title),hidden:!!W&&!W?.title,dangerouslySetInnerHTML:{__html:Me((It=W?.title)!==null&&It!==void 0?It:"Pendant in Yellow Gold with Diamonds, Medium",B?.title)}}),u.createElement("div",{className:"pb-commondity-content-price",style:Dt(B?.price),hidden:!!W&&!W?.price,dangerouslySetInnerHTML:{__html:bt??""}}),u.createElement("div",{hidden:!!W&&!W?.taxInfo,style:Dt(B?.taxInfo),dangerouslySetInnerHTML:{__html:Me((ii=W?.taxInfo)!==null&&ii!==void 0?ii:"\u7A0E\u8D39",B?.taxInfo)}}),u.createElement("div",{hidden:!!W&&(!W?.info||W?.info==="")},u.createElement(Ui,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>ke(!0),isPost:Ie,text:(ct=W?.info)!==null&&ct!==void 0?ct:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
2
2
  bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
3
3
  collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
4
4
  necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from