pb-sxp-ui 1.15.30 → 1.15.31

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var st=require("lodash"),Pl=require("uuid"),Ol=require("pako"),n=require("react"),En=require("qs"),Ml=require("eventemitter3"),Le=require("@emotion/css"),kn=require("react-dom");function Ll(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var l=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var In=Ll(kn);function it(t,e){var i={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(i[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,l=Object.getOwnPropertySymbols(t);a<l.length;a++)e.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(t,l[a])&&(i[l[a]]=t[l[a]]);return i}function rt(t,e,i,l){function a(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function c(d){try{u(l.next(d))}catch(h){s(h)}}function r(d){try{u(l.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(c,r)}u((l=l.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const jl=/:\w+/g;var Cn=(t,e)=>rt(void 0,void 0,void 0,function*(){const i={},l={};for(let a=0;a<e?.length;a++){const{id:o,method:s,url:c,urlParams:r,name:u,queryString:d,headers:h,body:f}=e[a];let m=c;r&&Object.entries(r).forEach(([y,g])=>{m=m.replace(jl,x=>x===y?g:x)}),d&&(m+=d),l[o]=u;try{const y=yield fetch(m,{method:s,headers:Object.assign({"Content-Type":"application/json"},h),body:JSON.stringify(f)}).then(g=>g.json());i[o]=y}catch(y){console.error("DataSource request error: ",y),i[o]={}}}return{$store:i,idMapName:l}});const Pn="SXP_TOKEN_INFO",Rl=(t,e)=>rt(void 0,void 0,void 0,function*(){var i;const l=t.getTenantId(),a=t.getAppId(),o=t.getApiUrl(),s=window.localStorage.getItem(Pn);let c=JSON.parse(s||"{}");if(Date.now()>((i=c?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${o}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":l||"","x-app-id":a||""}}).then(d=>d.json());if(u.success){const d=u.data;c=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(Pn,JSON.stringify(c))}}return c});function Ci(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),l=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)l[a]=i[0|Math.random()*e];else{let o;for(l[8]=l[13]=l[18]=l[23]="-",l[14]="4",a=0;a<36;a++)l[a]||(o=0|Math.random()*16,l[a]=i[a===19?o&3|8:o])}return l.join("")}const Nl=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*l)),a+=1;return e},Dl=()=>{const t=Pl.v4();return t?.replaceAll?t.replaceAll("-",""):Nl(32)},Pe=(t,e)=>{if(!t)return"";let i="";const l=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!l&&!a)return t;let o=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${l??"inherit"}`,u=`font-family:${a??"inherit"}`,d=f=>{const m=f.search(s),y=f.search(c);return m!==-1&&y!==-1&&m<y&&(i+=`<span style="${r}">${f.substring(m,y)}</span>`,o=f.substring(y,f?.length)),m!==-1&&y!==-1&&m>y&&(i+=`<span style="${u}">${f.substring(y,m)}</span>`,o=f.substring(m,f?.length)),m===-1?(i+=`<span style="${u}">${f.substring(y,f?.length)}</span>`,o="",!1):y===-1?(i+=`<span style="${r}">${f.substring(m,f?.length)}</span>`,o="",!1):!0};let h=!0;for(;h;)h=d(o);return i};function On(t){const i=document.cookie.split(";");let l=null;return i.forEach(a=>{const[o,s]=a.trim().split("=");o===t&&(l=s)}),l??""}function Yi(){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 ii(t){if(!t)return;const e=[];for(let a=0;a<t.length;a++){const o=t[a],s=t.substring(a+1,t.length);o==="&"&&s?.indexOf("=")!==-1&&(s?.indexOf("=")<s?.indexOf("&")||s?.indexOf("&")===-1)&&e.push(a)}const i=e.length>0?[]:[t];let l=0;return e?.map(a=>{i?.push(t.substring(l,a)),l=a+1,a===e[e.length-1]&&a<t.length&&i?.push(t.substring(l,t.length))}),i??[]}function Mn(t){const i=atob(t).split("").map(function(o){return o.charCodeAt(0)}),l=new Uint8Array(i),a=Ol.inflate(l,{to:"string"});return JSON.parse(a)}let Gi=null;const Vl={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Bl{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Gi)return Gi;Gi=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Vl[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Et=null;const Fl={init:({appId:t,tenantId:e,env:i="live",apiUrl:l})=>{Et||(Et=new Bl),l&&Et.setApiUrl(l),Et.setAppId(t),Et.setTenantId(e),Et.setEnv(i)},getDetail:t=>{if(!Et)return;const e=Et.getTenantId(),i=Et.getAppId(),l=Et.getApiUrl();return fetch(`${l}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var o,s;const c=yield a.json(),r=Mn((o=c?.data)===null||o===void 0?void 0:o.data);if(r){const{$store:u}=yield Cn(l,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>rt(void 0,void 0,void 0,function*(){if(!Et)return;const e=Et.getTenantId(),i=Et.getAppId(),l=Et.getApiUrl();return fetch(`${l}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var o;const s=yield a.json();return s.success?(o=s?.data)===null||o===void 0?void 0:o.map(r=>Object.assign(Object.assign({},r),{data:Mn(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>rt(void 0,void 0,void 0,function*(){if(!Et)return;const e=yield Rl(Et,t),i=Ci(0,0);let l=window.localStorage.getItem("SXP_FAKE_SESSION_ID");st.isEmpty(l)&&(l=Ci(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",l));const a=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:l,channel:e.channel,maxRecs:10,requestId:i})}).then(o=>o.json());return a?.data||null})};function Zt(){return n.useContext(qn)}function Wl(){return n.useContext(Xn)}const Zi="feRealSessionIdKey",Ln=()=>{const t=Dl();return`${Date.now()}${t}`},zl=()=>{let t=Ul();return t||(t=Ln(),window.localStorage.setItem(Zi,t)),t},Ki=()=>{const t=Ln();window.localStorage.setItem(Zi,t)},Ul=()=>window.localStorage.getItem(Zi),jn="SXP_FAKE_USER_ID",Rn="FAKE_USER_STATE",Nn="AGREE_POLICY",Dn="SLIDE_SKIP_STATE",Vn="CCONTSENT_STATE",Bn="USER_CONSENT_RESULT",Hl=()=>{let t=window.localStorage.getItem(jn);return st.isEmpty(t)&&(t=Ci(36,62),window.localStorage.setItem(jn,t)),t},Xl=()=>{const t=window.localStorage.getItem(Rn);return st.isEmpty(t)&&window.localStorage.setItem(Rn,"true"),st.isEmpty(t)},ql=()=>{const t=window.localStorage.getItem(Dn);return st.isEmpty(t)},Yl=()=>{window.localStorage.setItem(Dn,"true")},Gl=()=>{const t=window.localStorage.getItem(Vn);return st.isEmpty(t)&&window.localStorage.setItem(Vn,"true"),st.isEmpty(t)},Fn=()=>window.localStorage.getItem(Bn)==="true",Wn=()=>{window.localStorage.setItem(Bn,"true")};function St(t,e){const{appDomain:i}=Be();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const bt=new Ml;var pt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(pt||(pt={}));const Zl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:l,privacy_policy_url:a,privacy_policy_title:o})=>{const{setIsAgreePolicy:s,bffEventReport:c}=Be(),r=n.useMemo(()=>{var h;const f=location.search.slice(1),m={};(h=ii(f.replace(/\+/g,"%2B")))===null||h===void 0||h.map(y=>{const g=y.split("=")[0],x=y.split("=")[1];m[g]=x});for(const y in m)m[y]=m[y].replace(/%2B/g,"+");return m},[]),u=h=>{var f;return(f=r[h])!==null&&f!==void 0?f:null};n.useEffect(()=>{c?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:u("utm_source"),utmMedium:u("utm_medium"),utmCampaign:u("utm_campaign"),utmId:u("utm_id"),utmContent:u("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{c?.({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}}),s?.(!0),window.localStorage.setItem(Nn,"yes")};return n.createElement("div",{className:"consent-bg"},n.createElement("div",{className:"consent"},n.createElement("div",{className:"consent-col"},n.createElement("div",{className:"consent-title"},i??"Privacy Policy"),n.createElement("div",{className:"consent-content"},l??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),n.createElement("div",{className:"consent-col"},n.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},o??"More information"))))};var Kl=n.memo(Zl);const zn=n.createContext({rtcList:[],tagList:[]});var _i;(function(t){t[t.BFF=5]="BFF"})(_i||(_i={}));const Pi="FOR U",_l=({render:t,dataSources:e,utmVal:i,enableReportEvent:l=!0,maxSize:a,defaultSize:o,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,loadingImage:d,isOpenHashTag:h=!1,enabledMetaConversionApi:f=!1,consentHeight:m,consentWidth:y,isOpenConsent:g=!1,isEditor:x=!1,utmParameter:p,channelQueryList:b,data:A,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:D})=>{var O,S,T,N,k;const[j,v]=n.useState([]),[B,W]=n.useState([]),[L,V]=n.useState(!0),[I,E]=n.useState({rtc:"",requestId:""}),R=n.useRef(null),F=n.useRef(!1),[U,G]=n.useState(()=>!!window.localStorage.getItem(Nn)),[Q,oe]=n.useState(),[se,J]=n.useState(),[ye,Te]=n.useState(h),[De,de]=n.useState([]),[ue,Xe]=n.useState(0),[Fe,We]=n.useState(!1),[we,Ke]=n.useState(null),Ge=n.useRef(),Ze=n.useRef(),at=n.useRef(),[wt,je]=n.useState(Pi),ce=n.useRef(-1),H=n.useRef(null),[_,pe]=n.useState(!1),[Y,fe]=n.useState((S=(O=A?.data)===null||O===void 0?void 0:O.sxpPageConf)===null||S===void 0?void 0:S.globalConfig),[Ae,ee]=n.useState(),[z,Re]=n.useState(!1),[Je,ut]=n.useState(),[ze,_e]=n.useState(),[Me,Qe]=n.useState([]),[lt,mt]=n.useState(),[Lt,jt]=n.useState(),gt=n.useMemo(()=>Ae??A,[Ae,A]),ht=n.useMemo(()=>{var X,q,ae,Ee;return(((Ee=(ae=(q=(X=Y?.consent)===null||X===void 0?void 0:X[0])===null||q===void 0?void 0:q.item)===null||ae===void 0?void 0:ae.props)===null||Ee===void 0?void 0:Ee.privacy_necessity)&&!U&&!x||g)&&z},[U,Y,g,x,z]),Wt=n.useCallback(X=>{D?.(X),_e(X)},[]),xt=n.useCallback(X=>{var q;const ae=X?.recList;return(q=ae?.map(he=>{var be,Oe,Ne,xe,M,Z;if(!((be=he?.video)===null||be===void 0)&&be.bindProducts&&((Ne=(Oe=he?.video)===null||Oe===void 0?void 0:Oe.bindProducts)===null||Ne===void 0?void 0:Ne.length)>0){const K=(Z=(M=(xe=he?.video)===null||xe===void 0?void 0:xe.bindProducts)===null||M===void 0?void 0:M.filter(ne=>!!ne?.bindCta))!==null&&Z!==void 0?Z:[];return Object.assign(Object.assign({},he),{video:Object.assign(Object.assign({},he?.video),{bindProducts:K})})}return he}))!==null&&q!==void 0?q:[]},[]);n.useEffect(()=>{let X;return Me.length>0&&(X=setInterval(()=>{const ae=new Date,Ee=15*1e3;Qe(he=>he.filter(be=>ae-be.time<=Ee))},1e3)),()=>{clearInterval(X)}},[Me]),n.useEffect(()=>{const X=q=>{Ge.current=q};return bt.on(pt.CHANGE_THEME_TAG,X),()=>{bt.off(pt.CHANGE_THEME_TAG,X)}},[]),n.useEffect(()=>{Te(h)},[h]);const He=n.useMemo(()=>e?.find(X=>X.type===_i.BFF),[e]),Se=n.useMemo(()=>{var X;return((X=He?.headers)===null||X===void 0?void 0:X["x-app-id"])+Hl()},[He]),$=n.useCallback((X,q)=>{var ae,Ee;if(!He)return;const he=He.url;if(q?.query){const M=En.stringify(q.query);X=`${X}?${M}`}let be=!1;const Oe={},Ne=location.search.slice(1);(ae=ii(Ne))===null||ae===void 0||ae.forEach(M=>{const Z=M.split("=")[0],K=M.split("=")[1];Oe[Z]=K});const xe=Oe?.cl_source;return xe&&(!((Ee=["40A-SPRK--DRESS_EYEWEAR-","41A-SPRK--MADRAGUE-","42A-SPRK--MOOD-","43A-SPRK--SUMMER-","44A-SPRK--DRESS_EYEWEAR-","45A-SPRK--MADRAGUE-","46A-SPRK--MOOD-","47A-SPRK--SUMMER-","48A-SPRK--DRESS_EYEWEAR-","49A-SPRK--MADRAGUE-","50A-SPRK--MOOD-","51A-SPRK--SUMMER-"])===null||Ee===void 0)&&Ee.includes(xe))&&(be=!0),q.type==="beacon"&&navigator.sendBeacon&&!be?navigator.sendBeacon(`${he}/api/${X}`,new Blob([JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},q.body),He.headers),{"x-user-id":Se}))))})],{type:"application/json;charset=UTF-8"})):window.fetch(`${he}/api/${X}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Se},He.headers),method:q.method,body:JSON.stringify(be?{body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},q.body),He.headers),{"x-user-id":Se}))))}:q.body)},be&&{keepalive:!0})).then(M=>M.json()).catch(M=>Promise.reject(M))},[He,Se]),qe=n.useCallback((X,q)=>{if(!He)return;const ae=He.url;if(q?.query){const Ee=En.stringify(q.query);X=`${X}?${Ee}`}return window.fetch(`${ae}/admin/${X}`,{headers:Object.assign({"Content-Type":"application/json"},He.headers),method:q.method,body:JSON.stringify(q.body)}).then(Ee=>Ee.json()).catch(Ee=>Promise.reject(Ee))},[He]),vt=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){var q,ae,Ee,he,be,Oe,Ne,xe,M,Z,K,ne,le,ve;if(X=Object.assign(Object.assign({maxSize:(q=X?.maxSize)!==null&&q!==void 0?q:a,defaultSize:(ae=X?.defaultSize)!==null&&ae!==void 0?ae:o,hashTag:X?.hashTag,traceInfo:X?.traceInfo,themeTag:X?.themeTag,pageNum:X?.pageNum,contentFilter:X?.contentFilter,productFilter:X?.productFilter},Lt&&{chatlabsId:Lt}),C&&{type:"story"}),ze)X=Object.assign(Object.assign({},X),{channel:decodeURIComponent(ze)});else if(i){const re=(be=(he=(Ee=ii(i))===null||Ee===void 0?void 0:Ee.filter(me=>{var te,Ve;const ge=me.split("=")[0];return(Ve=(te=p?.channels)!==null&&te!==void 0?te:[])===null||Ve===void 0?void 0:Ve.includes(ge)}))===null||he===void 0?void 0:he.join("&"))!==null&&be!==void 0?be:"";re&&(X=Object.assign(Object.assign({},X),{channel:decodeURIComponent(re)}))}if(x){let re=1;if(X=Object.assign(Object.assign(Object.assign({},X),{directPage:!0,level:1}),!i&&b&&b?.length>0&&{channel:b?.[0]}),!X?.channel||F.current)return;F.current=!0;let me=[],te=null;const Ve=ge=>rt(void 0,void 0,void 0,function*(){var Ie,nt,et,$e,tt,dt;if(ge.pageNum=re,te=yield qe?.("recommend/direct_page",{method:"POST",body:ge}),!te?.success)return;V(!1),me=me.concat(($e=(et=(nt=(Ie=te?.data)===null||Ie===void 0?void 0:Ie.recList)===null||nt===void 0?void 0:nt.filter)===null||et===void 0?void 0:et.call(nt,Ye=>Ye?.product||Ye?.video))!==null&&$e!==void 0?$e:[]),j?.length===0&&(v(xt(Object.assign(Object.assign({},te?.data),{recList:me}))),de(xt(Object.assign(Object.assign({},te?.data),{recList:me})))),((dt=(tt=te?.data)===null||tt===void 0?void 0:tt.recList)===null||dt===void 0?void 0:dt.some(Ye=>Ye?.product||Ye?.video))&&(re=re+1,yield Ve(ge))});return yield Ve(X),!X?.hashTag&&te&&E({rtc:(Oe=te?.data)===null||Oe===void 0?void 0:Oe.rtc,requestId:(Ne=te?.data)===null||Ne===void 0?void 0:Ne.requestId}),Object.assign(Object.assign({},te?.data),{recList:me})}Y?.enablePreview&&(X=Object.assign(Object.assign({},X),{directPage:!0,level:1,pageNum:(xe=X?.pageNum)!==null&&xe!==void 0?xe:1}));const ie=yield $?.("v1/recommend/list",{method:"POST",body:X});if(ie?.success){if(X?.hashTag||E({rtc:ie.data.rtc,requestId:ie.data.requestId}),Y?.enablePreview&&!x){let re=[];return re=re.concat((ne=(K=(Z=(M=ie?.data)===null||M===void 0?void 0:M.recList)===null||Z===void 0?void 0:Z.filter)===null||K===void 0?void 0:K.call(Z,te=>te?.product||te?.video))!==null&&ne!==void 0?ne:[]),((ve=(le=ie?.data)===null||le===void 0?void 0:le.recList)===null||ve===void 0?void 0:ve.some(te=>te?.product||te?.video))||pe(!0),Object.assign(Object.assign({},ie.data),{recList:re})}return ie?.data}}),[$,i,a,o,b,ze,Lt,qe]),Qt=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){var q,ae,Ee,he;if(j.length<=0)return;const be=j?.[j?.length-1],Oe=yield vt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:se?.hashTag},((q=be?.product)===null||q===void 0?void 0:q.itemId)&&{productFilter:[(ae=be?.product)===null||ae===void 0?void 0:ae.itemId]}),((Ee=be?.video)===null||Ee===void 0?void 0:Ee.itemId)&&{contentFilter:[(he=be?.video)===null||he===void 0?void 0:he.itemId]}),{themeTag:Ge.current}),Y?.enablePreview&&!x&&{pageNum:X}));return v(j.concat(xt(Oe))),de(De.concat(xt(Oe))),Oe}),[vt,j,se,De]),$t=n.useCallback((X,q)=>{var ae,Ee,he,be,Oe;let Ne=!1;const xe=(Ee=(ae=A?.data)===null||ae===void 0?void 0:ae.sxpPageConf)===null||Ee===void 0?void 0:Ee.globalConfig;if(!((he=xe?.session)===null||he===void 0)&&he.enable){const M=localStorage.getItem("sessionStartTime"),Z=M?JSON.parse(M):new Date().getTime();Math.floor((new Date().getTime()-Z)/1e3/60)>=((Oe=(be=xe?.session)===null||be===void 0?void 0:be.expires)!==null&&Oe!==void 0?Oe:30)&&(q?.("sessionTimeOut"),Ki(),Ze.current=new Date,Ne=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else X&&Ki();return Ne},[A]),yt=n.useCallback(({userInfo:X,eventInfo:q,reportLayId:ae=!0})=>{var Ee,he;if(!l||Y?.enablePreview)return;X||(X={});const be=zl(),Oe={},Ne=location.search.slice(1);(Ee=ii(Ne))===null||Ee===void 0||Ee.forEach(ne=>{const le=ne.split("=")[0],ve=ne.split("=")[1];Oe[le]=ve});const xe=Oe?.cl_source,M=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:be,rtc:I.rtc,requestId:I.requestId},{playbookType:lt}),Je&&ae&&{layoutVariantId:Je}),q),q?.position&&ze&&{position:Number(q?.position)+1+""}),xe&&{clSource:xe}),Z=Object.entries(X).map(([ne,le])=>({name:ne,value:le})),K=Object.entries(M).map(([ne,le])=>le&&{name:ne,value:le}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",X),console.log("eventInfo:",M),console.log("========= \u7ED3\u675F ========="),$?.(`v2/cld/${(he=He?.headers)===null||he===void 0?void 0:he["x-app-id"]}/${q?.eventSubject}${xe?`/${decodeURIComponent(xe)}`:""}`,{method:"POST",body:{userInfo:Z,eventInfo:K},type:"beacon"})},[$,I,l,Y?.enablePreview,Je,Y,lt,He]),oi=n.useCallback((X,q)=>{var ae,Ee,he;const be=st.cloneDeep(X),Oe=new URLSearchParams(window.location.search),Ne=Oe?.get("fbclid"),xe={event_source_url:(ae=window?.location)===null||ae===void 0?void 0:ae.href,external_id:Se,client_user_agent:(he=(Ee=window?.navigator)===null||Ee===void 0?void 0:Ee.userAgent)!==null&&he!==void 0?he:"",fbc:Ne?`fb.2.${new Date().getTime()}.${Ne}`:"",fbp:On("_fbp")?`${On("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},M=/\{\{(.*?)\}\}/g,Z=K=>{if(K){if(K instanceof Array)K?.map(ne=>Z(ne));else for(const ne in K)if(Object.prototype.hasOwnProperty.call(K,ne)){const le=K?.[ne];if(typeof le=="object")Z(le);else if(typeof le=="string"){const ve=le?.match(M);ve&&ve.forEach(ie=>{var re;const me=ie.substring(2,ie.length-2);try{let te=new Function("fix_par","product",`return ${me}`)(xe,q);te?(me?.indexOf("currency")!==-1&&te?.indexOf("-")!==-1&&typeof te=="string"&&(te=(re=te?.split("-"))===null||re===void 0?void 0:re[0]),K[ne]=te):delete K[ne]}catch(te){delete K[ne],console.error("An error occurred:",te?.message)}})}}}};return Z(be),be},[Se]),ei=n.useCallback(({eventName:X,product:q})=>{var ae,Ee,he,be,Oe,Ne;if(!l||Y?.enablePreview)return;const xe=(ae=Y?.pixel)===null||ae===void 0?void 0:ae[X];if(xe?.event_name&&typeof window?.fbq=="function"){let ne=function(le,ve,ie){const re=new RegExp("([?&])"+ve+"=.*?(&|$)","i"),me=le.indexOf("?")!==-1?"&":"?";return le.match(re)?le.replace(re,"$1"+ve+"="+ie+"$2"):le+me+ve+"="+ie};if(X==="PageView"&&xe?.event_name==="PageView"){const le=window.location.href,ve=ne(le,"timestamp",Date.now());history.pushState({path:ve},"",ve)}else{const le=oi(xe);window?.fbq("track",xe?.event_name,le),X==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view")}}else X==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const M=(Ee=Y?.tiktokPixel)===null||Ee===void 0?void 0:Ee[X];M?.event_name&&typeof window?.ttq=="function"&&window?.ttq.track(M?.event_name,M);const Z=(he=Y?.tiktokPixel)===null||he===void 0?void 0:he[X];Z?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",Z?.event_name,Z);const K=(be=Y?.converApi)===null||be===void 0?void 0:be[X];if(f&&K){const ne=oi(K,q),le={},ve=location.search.slice(1);(Oe=ii(ve))===null||Oe===void 0||Oe.forEach(re=>{const me=re.split("=")[0],te=re.split("=")[1];le[me]=te});const ie=le?.cl_source;$?.(`v2/fb/${(Ne=He?.headers)===null||Ne===void 0?void 0:Ne["x-app-id"]}/${X}${ie?`/${decodeURIComponent(ie)}`:""}`,{method:"POST",body:ne,type:"beacon"})}},[$,l,f,Y,He,oi]),ai=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){const q=yield $?.("v1/recommend/like",{method:"POST",body:X});return q?.success}),[$]),Gt=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){const q=yield $?.("v1/recommend/unlike",{method:"POST",body:X});return q?.success}),[$]),Ft=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){const q=yield $?.("v1/customform",{method:"POST",body:X});return q?.success}),[$]),Dt=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){var q,ae,Ee,he,be,Oe,Ne,xe;const M=!!(!((Ee=(ae=(q=X?.data)===null||q===void 0?void 0:q.sxpPageConf)===null||ae===void 0?void 0:ae.globalConfig)===null||Ee===void 0)&&Ee.isShowTag);if(!(!i||!M))try{const Z=(Oe=(be=(he=ii(i))===null||he===void 0?void 0:he.filter(ne=>{var le,ve;const ie=ne.split("=")[0];return(ve=(le=p?.channels)!==null&&le!==void 0?le:[])===null||ve===void 0?void 0:ve.includes(ie)}))===null||be===void 0?void 0:be.join("&"))!==null&&Oe!==void 0?Oe:"",K=yield $?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Z)}});W((xe=(Ne=K?.data)===null||Ne===void 0?void 0:Ne.tags)!==null&&xe!==void 0?xe:[])}catch(Z){console.log("e",Z)}}),[$,i]),Tt=n.useCallback((X,q,ae,Ee)=>{var he,be,Oe,Ne,xe,M,Z,K,ne,le,ve,ie,re,me,te,Ve,ge,Ie,nt,et,$e,tt,dt,ft,Ye,At,Ce,ke,Ot,Ct,si,ot,ti,Ui,Hi,Xi;const Ht=ae?.bindCta,Cl=((he=q?.video)===null||he===void 0?void 0:he.bindProduct)||((be=q?.video)===null||be===void 0?void 0:be.bindProducts)&&((Ne=(Oe=q?.video)===null||Oe===void 0?void 0:Oe.bindProducts)===null||Ne===void 0?void 0:Ne.length)>0;let Ii="",qi=null;Fe?Ii="hashTagPage":!((xe=q?.video)===null||xe===void 0)&&xe.url?(Ii="videoPage",qi="video"):!((Z=(M=q?.video)===null||M===void 0?void 0:M.imgUrls)===null||Z===void 0)&&Z.length&&(Ii="imagePage",qi="image");const Tn=(me=(ie=(K=ae?.tags)!==null&&K!==void 0?K:(ve=(le=(ne=q?.video)===null||ne===void 0?void 0:ne.bindProducts)===null||le===void 0?void 0:le[0])===null||ve===void 0?void 0:ve.tags)!==null&&ie!==void 0?ie:(re=q?.video)===null||re===void 0?void 0:re.tags)!==null&&me!==void 0?me:(te=q?.product)===null||te===void 0?void 0:te.tags;yt?.({eventInfo:Object.assign(Object.assign({},X),{ctaId:(Ve=Ht?.itemId)!==null&&Ve!==void 0?Ve:"",ctaName:(ge=Ht?.title)!==null&&ge!==void 0?ge:"",contentTags:Tn?JSON.stringify(Tn):"",position:Ee+"",contentId:(nt=(Ie=q?.video)===null||Ie===void 0?void 0:Ie.itemId)!==null&&nt!==void 0?nt:"",productId:Cl?ae?.itemId:"",traceInfo:(Hi=(ot=(Ce=(dt=(et=Ht?.traceInfo)!==null&&et!==void 0?et:(tt=($e=q?.video)===null||$e===void 0?void 0:$e.bindCta)===null||tt===void 0?void 0:tt.traceInfo)!==null&&dt!==void 0?dt:(At=(Ye=(ft=q?.video)===null||ft===void 0?void 0:ft.bindProduct)===null||Ye===void 0?void 0:Ye.bindCta)===null||At===void 0?void 0:At.traceInfo)!==null&&Ce!==void 0?Ce:(si=(Ct=(Ot=(ke=q?.video)===null||ke===void 0?void 0:ke.bindProducts)===null||Ot===void 0?void 0:Ot[0])===null||Ct===void 0?void 0:Ct.bindCta)===null||si===void 0?void 0:si.traceInfo)!==null&&ot!==void 0?ot:(Ui=(ti=q?.product)===null||ti===void 0?void 0:ti.bindCta)===null||Ui===void 0?void 0:Ui.traceInfo)!==null&&Hi!==void 0?Hi:"",fromKName:Ii,fromKPage:(Xi=location?.href)!==null&&Xi!==void 0?Xi:"",contentFormat:qi})})},[yt,Fe]),Ti=n.useCallback(()=>{var X,q,ae;const Ee=location.search.slice(1),he={};(X=ii(Ee.replace(/\+/g,"%2B")))===null||X===void 0||X.map(Ne=>{const xe=Ne.split("=")[0],M=Ne.split("=")[1];he[xe]=M});for(const Ne in he)he[Ne]=he[Ne].replace(/%2B/g,"+");const be=Ne=>{var xe;return(xe=he[Ne])!==null&&xe!==void 0?xe:""},Oe=new Date;Ze.current=Oe,yt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:be("utm_source"),utmMedium:be("utm_medium"),utmCampaign:be("utm_campaign"),utmId:be("utm_id"),utmContent:be("utm_content"),enterTime:Math.floor(Oe/1e3)+"",requestId:null,enterUrl:(ae=(q=window?.location)===null||q===void 0?void 0:q.href)!==null&&ae!==void 0?ae:""},reportLayId:!1})},[yt]),Ei=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){var X,q;const ae=yield $?.("v1/account",{method:"GET"});return jt((X=ae?.data)===null||X===void 0?void 0:X.chatLabsId),((q=ae?.data)===null||q===void 0?void 0:q.consentResult)==="true"}),[$]),ki=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){const q=yield $?.("v1/account/consent",{method:"POST",body:{consentResult:X}});return q?.success}),[$]);n.useEffect(()=>{ht||Ti()},[ht]),n.useEffect(()=>{if(ht||s)return;V(!0);let X,q;vt().then(ae=>{var Ee,he,be,Oe,Ne,xe,M,Z,K,ne,le;if(ae){const ve=xt(ae);let ie,re;if(ae?.layoutVariantId){X=ae?.layoutVariantId,ut(ae?.layoutVariantId);const me=(he=(Ee=ae?.layoutVariantId)===null||Ee===void 0?void 0:Ee.split("-"))===null||he===void 0?void 0:he[1];me&&(ie=w?.find(te=>te?.id===me),ie?(ee(ie),document.title=(be=ie?.name)!==null&&be!==void 0?be:"home",re=(Ne=(Oe=ie?.data)===null||Oe===void 0?void 0:Oe.sxpPageConf)===null||Ne===void 0?void 0:Ne.globalConfig,fe(re),P?.(ie?.data),!((K=(Z=(M=(xe=re?.consent)===null||xe===void 0?void 0:xe[0])===null||M===void 0?void 0:M.item)===null||Z===void 0?void 0:Z.props)===null||K===void 0)&&K.privacy_necessity&&Re(!0)):Re(!0))}else Re(!0);if(ze||(re?.playbook==="organic menu"||!re&&Y?.playbook==="organic menu"?(mt("organicMenu"),ve.unshift("organic menu"),q="organicMenu"):(mt("paidMedia"),q="paidMedia")),v(ve),de(ve),Dt(ie??gt),ze){const me=ve?.[0],te=((ne=me?.video)===null||ne===void 0?void 0:ne.traceInfo)||((le=me?.product)===null||le===void 0?void 0:le.traceInfo)||"";yt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:te,branchfeed:ze},X&&{layoutVariantId:X})}),yt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:te,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-at?.current)/1e3)+""},X&&{layoutVariantId:X})})}}}).finally(()=>{yt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},X&&{layoutVariantId:X}),q&&{playbookType:q})}),V(!1)})},[ht,ze]),n.useEffect(()=>{s&&(V(!0),Dt(A),vt().then(X=>{if(X){const q=xt(X);Y?.playbook==="organic menu"&&!ze&&q.unshift("organic menu"),v(q),de(q)}}).finally(()=>{V(!1)}))},[vt,Dt,ze]);const zi=St("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return n.createElement(zn.Provider,{value:{rtcList:j,setRtcList:v,mutateLike:ai,mutateUnlike:Gt,submitForm:Ft,popupDetailData:Q,loadVideos:Qt,setPopupDetailData:oe,getRecommendVideos:vt,bffEventReport:yt,isPreview:s,loading:L,sxpParameter:c,waterFallData:se,setWaterFallData:J,ctaEvent:Tt,swiperRef:R,openHashtag:ye,setOpenHashtag:Te,cacheRtcList:De,setCacheRtcList:de,cacheActiveIndex:ue,setCacheActiveIndex:Xe,isFromHashtag:Fe,setIsFromHashtag:We,appDomain:r,hashTagSize:u,loadingImage:d??zi,isOpenHashTag:h,tagList:B,setLoading:V,videoRef:we,setVideoRef:Ke,bffFbReport:ei,isAgreePolicy:U,setIsAgreePolicy:G,curTime:Ze,h5EnterLink:Ti,themeTag:Ge,isShowConsent:ht,selectTag:wt,setSelectTag:je,globalConfig:Y,popupCurTimeRef:H,checkCommodityIndexRef:ce,isEditor:x,isNoMoreData:_,updateChannel:Wt,channel:ze,eventTimeList:Me,setEventTimeList:Qe,multiPostTimeRef:at,refreshFeSession:$t,getAccount:Ei,accountSonsent:ki,isDiyH5:C}},ht?n.createElement(Kl,Object.assign({},(k=(N=(T=Y?.consent)===null||T===void 0?void 0:T[0])===null||N===void 0?void 0:N.item)===null||k===void 0?void 0:k.props)):t({rtcList:j,mutateLike:ai,mutateUnlike:Gt,submitForm:Ft,tagList:B,pageData:gt}))};var Un=n.memo(_l);function Be(){return n.useContext(zn)}var Hn;(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"})(Hn||(Hn={}));const Xn=n.createContext({$store:{},options:[],configs:[]}),Jl=({children:t,isSsr:e,enable:i})=>{const[l,a]=n.useState([]),{schema:o}=Zt(),[s,c]=n.useState(o.__STORE__||{}),[r,u]=n.useState([]);n.useEffect(()=>{var f;e||st.isEqual(r,o?.dataSource)||u((f=o?.dataSource)!==null&&f!==void 0?f:[])},[o?.dataSource,e]);const d=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){const{$store:f,idMapName:m}=yield Cn("",r);c(f),h(f,m)}),[r]),h=(f,m)=>{const y=[];Object.entries(f).forEach(([g,x])=>{Object.keys(x).forEach(p=>{const b={label:`${m[g]} - ${p}`,value:`{{ ${g}.${p} }}`};y.push(b)})}),a(y)};return n.useEffect(()=>{e||d()},[d,e,o]),i?n.createElement(Xn.Provider,{value:{$store:o.__STORE__||s,options:l,configs:r}},t):t};var Ql=n.memo(Jl);const Oi={id:Ci(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},Ji={id:"",duration:0,name:"none"},qn=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Oi],redoStack:[],popup:Ji,setPopup:()=>{}}),Yn=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:l,enableDataSource:a=!0,utmVal:o},s)=>{const[c,r]=n.useState(null),[u,d]=n.useState(l||{pointData:[Oi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[h,f]=n.useState([Oi]),[m,y]=n.useState([[Oi]]),[g,x]=n.useState([]),[p,b]=n.useState(Ji);typeof window<"u"&&(window.sxpPopup=(D,O)=>{b(Object.assign(Object.assign(Object.assign({},Ji),{id:D}),O))}),typeof window<"u"&&(window.getJointUtmLink=D=>(Yl(),D?.indexOf("?")!==-1?D+(o?"&"+o:""):D+(o?"?"+o:""))),n.useEffect(()=>{y([u.pointData]),x([])},[u.type]);const A=n.useCallback(D=>{const O=st.cloneDeep(u);O&&(O.dataSource=D,d?.(O))},[u]),[w,C]=n.useState();n.useImperativeHandle(s,()=>({loadSchema(D){D&&(y([D.pointData]),d(D))},exportSchema(){return st.cloneDeep(u)},getPageInfoData(){return w},initPageInfoData(D){D&&C(D)}}));const P=n.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return n.createElement(qn.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:A,prePiontData:h,setPrePiontData:f,pageInfoData:w,setPageInfoData:D=>C(Object.assign(Object.assign({},w),D)),undoStack:m,redoStack:g,setRedoStack:x,setUndoStack:y,getCurPageConf:P,popup:p,setPopup:b}},n.createElement(Ql,{isSsr:i,enable:a},t))});var $l=Object.freeze({__proto__:null,EditorCore:Yn}),eo=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],to=[{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 Pt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:l,setEventTimeList:a}=Be(),o=n.useCallback((r,u,d,h,f,m)=>{var y,g,x,p,b,A,w,C,P,D,O,S,T,N,k,j,v,B,W,L,V,I,E,R,F,U,G,Q,oe,se,J,ye,Te,De,de,ue,Xe,Fe;if(l?.findIndex(Ze=>Ze.target===r?.target)!==-1)return;r&&a?.(Ze=>[...Ze,{target:r?.target,time:new Date}]);let we="";e&&(!((g=(y=u?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0)&&g.length||!((x=u?.video)===null||x===void 0)&&x.bindProduct)?we="pdpPage":i?we="hashTagPage":!((p=u?.video)===null||p===void 0)&&p.url?we="videoPage":!((b=u?.video)===null||b===void 0)&&b.imgUrls&&(!((w=(A=u?.video)===null||A===void 0?void 0:A.imgUrls)===null||w===void 0)&&w.length)?we="imagePage":u?.product&&(we="productPage");const Ke=(N=(S=(C=d?.tags)!==null&&C!==void 0?C:(O=(D=(P=u?.video)===null||P===void 0?void 0:P.bindProducts)===null||D===void 0?void 0:D[0])===null||O===void 0?void 0:O.tags)!==null&&S!==void 0?S:(T=u?.video)===null||T===void 0?void 0:T.tags)!==null&&N!==void 0?N:(k=u?.product)===null||k===void 0?void 0:k.tags;let Ge=null;!((j=u?.video)===null||j===void 0)&&j.url?Ge="video":!((v=u?.video)===null||v===void 0)&&v.imgUrls&&(!((W=(B=u?.video)===null||B===void 0?void 0:B.imgUrls)===null||W===void 0)&&W.length)&&(Ge="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(L=d?.itemId)!==null&&L!==void 0?L:"",productName:(V=d?.title)!==null&&V!==void 0?V:"",price:d?.price?d?.price+"":"0",productCollection:(I=d?.collection)!==null&&I!==void 0?I:"",fromKName:we,fromKPage:location?.href,contentTags:Ke?JSON.stringify(Ke):"",position:f+"",contentId:(R=(E=u?.video)===null||E===void 0?void 0:E.itemId)!==null&&R!==void 0?R:"",ctatId:(F=h?.itemId)!==null&&F!==void 0?F:"",traceInfo:(Fe=(de=(Te=(oe=(U=m??d?.traceInfo)!==null&&U!==void 0?U:(Q=(G=u?.video)===null||G===void 0?void 0:G.bindProduct)===null||Q===void 0?void 0:Q.traceInfo)!==null&&oe!==void 0?oe:(ye=(J=(se=u?.video)===null||se===void 0?void 0:se.bindProducts)===null||J===void 0?void 0:J[0])===null||ye===void 0?void 0:ye.traceInfo)!==null&&Te!==void 0?Te:(De=u?.product)===null||De===void 0?void 0:De.traceInfo)!==null&&de!==void 0?de:(Xe=(ue=u?.video)===null||ue===void 0?void 0:ue.bindCta)===null||Xe===void 0?void 0:Xe.traceInfo)!==null&&Fe!==void 0?Fe:""},Ge&&{contentFormat:Ge})})},[t,e,i,l]),s=n.useCallback((r,u,d,h,f)=>{var m,y,g,x,p,b,A,w,C,P,D,O,S,T;let N="";e&&(!((y=(m=r?.video)===null||m===void 0?void 0:m.bindProducts)===null||y===void 0)&&y.length||!((g=r?.video)===null||g===void 0)&&g.bindProduct)?N="pdpPage":r?.product&&(N="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:N,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:f+"",contentId:(x=r?.video)===null||x===void 0?void 0:x.itemId,ctatId:d?.itemId,traceInfo:(T=(O=(w=(p=u?.traceInfo)!==null&&p!==void 0?p:(A=(b=r?.video)===null||b===void 0?void 0:b.bindProduct)===null||A===void 0?void 0:A.traceInfo)!==null&&w!==void 0?w:(D=(P=(C=r?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||D===void 0?void 0:D.traceInfo)!==null&&O!==void 0?O:(S=r?.product)===null||S===void 0?void 0:S.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-h)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),c=n.useCallback((r,u,d,h)=>{u&&u===Pi&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:h?`['${h}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:o,productView:s,backMainFeed:c}}const io=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((l,a)=>n.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&n.createElement("label",{className:"pb-appoint-form-container-label"},l?.title),l?.valueType==="text"&&n.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?l?.title:"\u8BF7\u8F93\u5165",name:l?.dataIndex},i&&{onChange:i})))));var no=n.memo(io);const lo=t=>{var e,i,{columns:l,style:a,title:o,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:h,isPopup:f,onClick:m,onClose:y,submitButtonStyle:g}=t,x=it(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:p,popupDetailData:b}=Be(),{jumpToWeb:A}=Pt(),[w,C]=n.useState(!1),[P,D]=n.useState({}),[O,S]=n.useState(0),T=n.useMemo(()=>[{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"}],[]),N=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),k=n.useMemo(()=>st.cloneDeep(l)||T,[l,T]),j=n.useCallback(B=>{const{name:W,value:L}=B.target;D(Object.assign(Object.assign({},P),{[W]:L}))},[P]),v=st.debounce(B=>rt(void 0,void 0,void 0,function*(){var W,L,V,I,E;const R=P;if(!R)return;const F=(L=(W=Object.keys(R))===null||W===void 0?void 0:W.map(G=>{var Q;return{name:G,value:(Q=R[G])!==null&&Q!==void 0?Q:""}}))===null||L===void 0?void 0:L.filter(G=>G?.value);if(!F||!F?.length)return;C(!0);const U=yield p?.({attributes:F});if(C(!1),U){if(h){const G=b,Q=(V=G?.video)===null||V===void 0?void 0:V.bindProduct,oe=(E=(I=G?.video)===null||I===void 0?void 0:I.bindProduct)===null||E===void 0?void 0:E.bindCta,se=b?.index;A(B,G,Q,oe,se)}f||y?.(),m?.()}}),1e3);return n.useEffect(()=>{const B=()=>{var W,L;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((L=document?.body)===null||L===void 0?void 0:L.clientHeight))<N?S(50):S(0)};return window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B)}},[]),n.createElement("div",{className:"pb-appoint-form"},n.createElement("div",{className:`pb-appoint-form-title ${Le.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:Pe(o,s)}}),n.createElement("div",Object.assign({className:Le.css(Object.assign(Object.assign({},a),{marginTop:O}))},x),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(no,{columns:k,layout:d,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":u,onClick:v,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},g),dangerouslySetInnerHTML:{__html:Pe(w?"loading...":u,g)}})))};var oo=n.memo(lo);function ct(t,e){return t.extend=e,t}const ao=ct(oo,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:to,bindableProps:[],interactionRender:eo},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 so=[{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 Gn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Qi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Gn(e[i])&&Gn(t[i])&&Object.keys(e[i]).length>0&&Qi(t[i],e[i])})}const Zn={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 Mt(){const t=typeof document<"u"?document:{};return Qi(t,Zn),t}const ro={document:Zn,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 kt(){const t=typeof window<"u"?window:{};return Qi(t,ro),t}function Kt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function co(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ri(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Vt(){return Date.now()}function uo(t){const e=kt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function vo(t,e){e===void 0&&(e="x");const i=kt();let l,a,o;const s=uo(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(c=>c.replace(",",".")).join(", ")),o=new i.WebKitCSSMatrix(a==="none"?"":a)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),l=o.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=o.m41:l.length===16?a=parseFloat(l[12]):a=parseFloat(l[4])),e==="y"&&(i.WebKitCSSMatrix?a=o.m42:l.length===16?a=parseFloat(l[13]):a=parseFloat(l[5])),a||0}function Mi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function po(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Rt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const l=i<0||arguments.length<=i?void 0:arguments[i];if(l!=null&&!po(l)){const a=Object.keys(Object(l)).filter(o=>e.indexOf(o)<0);for(let o=0,s=a.length;o<s;o+=1){const c=a[o],r=Object.getOwnPropertyDescriptor(l,c);r!==void 0&&r.enumerable&&(Mi(t[c])&&Mi(l[c])?l[c].__swiper__?t[c]=l[c]:Rt(t[c],l[c]):!Mi(t[c])&&Mi(l[c])?(t[c]={},l[c].__swiper__?t[c]=l[c]:Rt(t[c],l[c])):t[c]=l[c])}}}return t}function Li(t,e,i){t.style.setProperty(e,i)}function Kn(t){let{swiper:e,targetPosition:i,side:l}=t;const a=kt(),o=-e.translate;let s=null,c;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const u=i>o?"next":"prev",d=(f,m)=>u==="next"&&f>=m||u==="prev"&&f<=m,h=()=>{c=new Date().getTime(),s===null&&(s=c);const f=Math.max(Math.min((c-s)/r,1),0),m=.5-Math.cos(f*Math.PI)/2;let y=o+m*(i-o);if(d(y,i)&&(y=i),e.wrapperEl.scrollTo({[l]:y}),d(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[l]:y})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(h)};h()}function zt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function ji(t){try{console.warn(t);return}catch{}}function di(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Kt(e)),i}function _n(t){const e=kt(),i=Mt(),l=t.getBoundingClientRect(),a=i.body,o=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,c=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:l.top+c-o,left:l.left+r-s}}function mo(t,e){const i=[];for(;t.previousElementSibling;){const l=t.previousElementSibling;e?l.matches(e)&&i.push(l):i.push(l),t=l}return i}function fo(t,e){const i=[];for(;t.nextElementSibling;){const l=t.nextElementSibling;e?l.matches(e)&&i.push(l):i.push(l),t=l}return i}function _t(t,e){return kt().getComputedStyle(t,null).getPropertyValue(e)}function mi(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 l=t.parentElement;for(;l;)e?l.matches(e)&&i.push(l):i.push(l),l=l.parentElement;return i}function $i(t,e){function i(l){l.target===t&&(e.call(t,l),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function en(t,e,i){const l=kt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(l.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(l.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ue(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let tn;function ho(){const t=kt(),e=Mt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Jn(){return tn||(tn=ho()),tn}let nn;function Ao(t){let{userAgent:e}=t===void 0?{}:t;const i=Jn(),l=kt(),a=l.navigator.platform,o=e||l.navigator.userAgent,s={ios:!1,android:!1},c=l.screen.width,r=l.screen.height,u=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const h=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=a==="Win32";let y=a==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&y&&i.touch&&g.indexOf(`${c}x${r}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),y=!1),u&&!m&&(s.os="android",s.android=!0),(d||f||h)&&(s.os="ios",s.ios=!0),s}function Qn(t){return t===void 0&&(t={}),nn||(nn=Ao(t)),nn}let ln;function bo(){const t=kt(),e=Qn();let i=!1;function l(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(l()){const c=String(t.navigator.userAgent);if(c.includes("Version/")){const[r,u]=c.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=l(),s=o||a&&e.ios;return{isSafari:i||o,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function go(){return ln||(ln=bo()),ln}function yo(t){let{swiper:e,on:i,emit:l}=t;const a=kt();let o=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(l("beforeResize"),l("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(h=>{s=a.requestAnimationFrame(()=>{const{width:f,height:m}=e;let y=f,g=m;h.forEach(x=>{let{contentBoxSize:p,contentRect:b,target:A}=x;A&&A!==e.el||(y=b?b.width:(p[0]||p).inlineSize,g=b?b.height:(p[0]||p).blockSize)}),(y!==f||g!==m)&&c()})}),o.observe(e.el))},u=()=>{s&&a.cancelAnimationFrame(s),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},d=()=>{!e||e.destroyed||!e.initialized||l("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){r();return}a.addEventListener("resize",c),a.addEventListener("orientationchange",d)}),i("destroy",()=>{u(),a.removeEventListener("resize",c),a.removeEventListener("orientationchange",d)})}function wo(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;const o=[],s=kt(),c=function(d,h){h===void 0&&(h={});const f=s.MutationObserver||s.WebkitMutationObserver,m=new f(y=>{if(e.__preventObserver__)return;if(y.length===1){a("observerUpdate",y[0]);return}const g=function(){a("observerUpdate",y[0])};s.requestAnimationFrame?s.requestAnimationFrame(g):s.setTimeout(g,0)});m.observe(d,{attributes:typeof h.attributes>"u"?!0:h.attributes,childList:typeof h.childList>"u"?!0:h.childList,characterData:typeof h.characterData>"u"?!0:h.characterData}),o.push(m)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Ri(e.hostEl);for(let h=0;h<d.length;h+=1)c(d[h])}c(e.hostEl,{childList:e.params.observeSlideChildren}),c(e.wrapperEl,{attributes:!1})}},u=()=>{o.forEach(d=>{d.disconnect()}),o.splice(0,o.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),l("init",r),l("destroy",u)}var So={on(t,e,i){const l=this;if(!l.eventsListeners||l.destroyed||typeof e!="function")return l;const a=i?"unshift":"push";return t.split(" ").forEach(o=>{l.eventsListeners[o]||(l.eventsListeners[o]=[]),l.eventsListeners[o][a](e)}),l},once(t,e,i){const l=this;if(!l.eventsListeners||l.destroyed||typeof e!="function")return l;function a(){l.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];e.apply(l,s)}return a.__emitterProxy=e,l.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const l=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[l](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(l=>{typeof e>"u"?i.eventsListeners[l]=[]:i.eventsListeners[l]&&i.eventsListeners[l].forEach((a,o)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[l].splice(o,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,l;for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],i=o.slice(1,o.length),l=t):(e=o[0].events,i=o[0].data,l=o[0].context||t),i.unshift(l),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(l,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.apply(l,i)})}),t}};function xo(){const t=this;let e,i;const l=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=l.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=l.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(_t(l,"padding-left")||0,10)-parseInt(_t(l,"padding-right")||0,10),i=i-parseInt(_t(l,"padding-top")||0,10)-parseInt(_t(l,"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 To(){const t=this;function e(T,N){return parseFloat(T.getPropertyValue(t.getDirectionLabel(N))||0)}const i=t.params,{wrapperEl:l,slidesEl:a,size:o,rtlTranslate:s,wrongRTL:c}=t,r=t.virtual&&i.virtual.enabled,u=r?t.virtual.slides.length:t.slides.length,d=zt(a,`.${t.params.slideClass}, swiper-slide`),h=r?t.virtual.slides.length:d.length;let f=[];const m=[],y=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,b=t.slidesGrid.length;let A=i.spaceBetween,w=-g,C=0,P=0;if(typeof o>"u")return;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*o:typeof A=="string"&&(A=parseFloat(A)),t.virtualSize=-A,d.forEach(T=>{s?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Li(l,"--swiper-centered-offset-before",""),Li(l,"--swiper-centered-offset-after",""));const D=i.grid&&i.grid.rows>1&&t.grid;D?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let O;const S=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<h;T+=1){O=0;let N;if(d[T]&&(N=d[T]),D&&t.grid.updateSlide(T,N,d),!(d[T]&&_t(N,"display")==="none")){if(i.slidesPerView==="auto"){S&&(d[T].style[t.getDirectionLabel("width")]="");const k=getComputedStyle(N),j=N.style.transform,v=N.style.webkitTransform;if(j&&(N.style.transform="none"),v&&(N.style.webkitTransform="none"),i.roundLengths)O=t.isHorizontal()?en(N,"width",!0):en(N,"height",!0);else{const B=e(k,"width"),W=e(k,"padding-left"),L=e(k,"padding-right"),V=e(k,"margin-left"),I=e(k,"margin-right"),E=k.getPropertyValue("box-sizing");if(E&&E==="border-box")O=B+V+I;else{const{clientWidth:R,offsetWidth:F}=N;O=B+W+L+V+I+(F-R)}}j&&(N.style.transform=j),v&&(N.style.webkitTransform=v),i.roundLengths&&(O=Math.floor(O))}else O=(o-(i.slidesPerView-1)*A)/i.slidesPerView,i.roundLengths&&(O=Math.floor(O)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${O}px`);d[T]&&(d[T].swiperSlideSize=O),y.push(O),i.centeredSlides?(w=w+O/2+C/2+A,C===0&&T!==0&&(w=w-o/2-A),T===0&&(w=w-o/2-A),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),P%i.slidesPerGroup===0&&f.push(w),m.push(w)):(i.roundLengths&&(w=Math.floor(w)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&f.push(w),m.push(w),w=w+O+A),t.virtualSize+=O+A,C=O,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+x,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(l.style.width=`${t.virtualSize+A}px`),i.setWrapperSize&&(l.style[t.getDirectionLabel("width")]=`${t.virtualSize+A}px`),D&&t.grid.updateWrapperSize(O,f),!i.centeredSlides){const T=[];for(let N=0;N<f.length;N+=1){let k=f[N];i.roundLengths&&(k=Math.floor(k)),f[N]<=t.virtualSize-o&&T.push(k)}f=T,Math.floor(t.virtualSize-o)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-o)}if(r&&i.loop){const T=y[0]+A;if(i.slidesPerGroup>1){const N=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),k=T*i.slidesPerGroup;for(let j=0;j<N;j+=1)f.push(f[f.length-1]+k)}for(let N=0;N<t.virtual.slidesBefore+t.virtual.slidesAfter;N+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+T),m.push(m[m.length-1]+T),t.virtualSize+=T}if(f.length===0&&(f=[0]),A!==0){const T=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((N,k)=>!i.cssMode||i.loop?!0:k!==d.length-1).forEach(N=>{N.style[T]=`${A}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(k=>{T+=k+(A||0)}),T-=A;const N=T-o;f=f.map(k=>k<=0?-g:k>N?N+x:k)}if(i.centerInsufficientSlides){let T=0;y.forEach(k=>{T+=k+(A||0)}),T-=A;const N=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+N<o){const k=(o-T-N)/2;f.forEach((j,v)=>{f[v]=j-k}),m.forEach((j,v)=>{m[v]=j+k})}}if(Object.assign(t,{slides:d,snapGrid:f,slidesGrid:m,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Li(l,"--swiper-centered-offset-before",`${-f[0]}px`),Li(l,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],N=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(k=>k+T),t.slidesGrid=t.slidesGrid.map(k=>k+N)}if(h!==u&&t.emit("slidesLengthChange"),f.length!==p&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,N=t.el.classList.contains(T);h<=i.maxBackfaceHiddenSlides?N||t.el.classList.add(T):N&&t.el.classList.remove(T)}}function Eo(t){const e=this,i=[],l=e.virtual&&e.params.virtual.enabled;let a=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=c=>l?e.slides[e.getSlideIndexByData(c)]:e.slides[c];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(c=>{i.push(c)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const c=e.activeIndex+o;if(c>e.slides.length&&!l)break;i.push(s(c))}else i.push(s(e.activeIndex));for(o=0;o<i.length;o+=1)if(typeof i[o]<"u"){const c=i[o].offsetHeight;a=c>a?c:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function ko(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let l=0;l<e.length;l+=1)e[l].swiperSlideOffset=(t.isHorizontal()?e[l].offsetLeft:e[l].offsetTop)-i-t.cssOverflowAdjustment()}const $n=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Io(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:l,rtlTranslate:a,snapGrid:o}=e;if(l.length===0)return;typeof l[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let c=i.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*e.size:typeof c=="string"&&(c=parseFloat(c));for(let r=0;r<l.length;r+=1){const u=l[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=l[0].swiperSlideOffset);const h=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),f=(s-o[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),m=-(s-d),y=m+e.slidesSizesGrid[r],g=m>=0&&m<=e.size-e.slidesSizesGrid[r],x=m>=0&&m<e.size-1||y>1&&y<=e.size||m<=0&&y>=e.size;x&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),$n(u,x,i.slideVisibleClass),$n(u,g,i.slideFullyVisibleClass),u.progress=a?-h:h,u.originalProgress=a?-f:f}}function Co(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,l=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:o,isEnd:s,progressLoop:c}=e;const r=o,u=s;if(l===0)a=0,o=!0,s=!0;else{a=(t-e.minTranslate())/l;const d=Math.abs(t-e.minTranslate())<1,h=Math.abs(t-e.maxTranslate())<1;o=d||a<=0,s=h||a>=1,d&&(a=0),h&&(a=1)}if(i.loop){const d=e.getSlideIndexByData(0),h=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[d],m=e.slidesGrid[h],y=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=f?c=(g-f)/y:c=(g+y-m)/y,c>1&&(c-=1)}Object.assign(e,{progress:a,progressLoop:c,isBeginning:o,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!r&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(r&&!o||u&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const on=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Po(){const t=this,{slides:e,params:i,slidesEl:l,activeIndex:a}=t,o=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=h=>zt(l,`.${i.slideClass}${h}, swiper-slide${h}`)[0];let r,u,d;if(o)if(i.loop){let h=a-t.virtual.slidesBefore;h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${h}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(h=>h.column===a)[0],d=e.filter(h=>h.column===a+1)[0],u=e.filter(h=>h.column===a-1)[0]):r=e[a];r&&(s||(d=fo(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=mo(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(h=>{on(h,h===r,i.slideActiveClass),on(h,h===d,i.slideNextClass),on(h,h===u,i.slidePrevClass)}),t.emitSlidesClasses()}const Ni=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,l=e.closest(i());if(l){let a=l.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(l.shadowRoot?a=l.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{l.shadowRoot&&(a=l.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},an=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},sn=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 l=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,c=[s-e];c.push(...Array.from({length:e}).map((r,u)=>s+l+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&an(t,u)});return}const o=a+l-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=o+e;s+=1){const c=(s%i+i)%i;(c<a||c>o)&&an(t,c)}else for(let s=Math.max(a-e,0);s<=Math.min(o+e,i-1);s+=1)s!==a&&(s>o||s<a)&&an(t,s)};function Oo(t){const{slidesGrid:e,params:i}=t,l=t.rtlTranslate?t.translate:-t.translate;let a;for(let o=0;o<e.length;o+=1)typeof e[o+1]<"u"?l>=e[o]&&l<e[o+1]-(e[o+1]-e[o])/2?a=o:l>=e[o]&&l<e[o+1]&&(a=o+1):l>=e[o]&&(a=o);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Mo(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:l,params:a,activeIndex:o,realIndex:s,snapIndex:c}=e;let r=t,u;const d=m=>{let y=m-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 r>"u"&&(r=Oo(e)),l.indexOf(i)>=0)u=l.indexOf(i);else{const m=Math.min(a.slidesPerGroupSkip,r);u=m+Math.floor((r-m)/a.slidesPerGroup)}if(u>=l.length&&(u=l.length-1),r===o&&!e.params.loop){u!==c&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(r===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const h=e.grid&&a.grid&&a.grid.rows>1;let f;if(e.virtual&&a.virtual.enabled&&a.loop)f=d(r);else if(h){const m=e.slides.filter(g=>g.column===r)[0];let y=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(m),0)),f=Math.floor(y/a.grid.rows)}else if(e.slides[r]){const m=e.slides[r].getAttribute("data-swiper-slide-index");m?f=parseInt(m,10):f=r}else f=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:f,previousIndex:o,activeIndex:r}),e.initialized&&sn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Lo(t,e){const i=this,l=i.params;let a=t.closest(`.${l.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(c=>{!a&&c.matches&&c.matches(`.${l.slideClass}, swiper-slide`)&&(a=c)});let o=!1,s;if(a){for(let c=0;c<i.slides.length;c+=1)if(i.slides[c]===a){o=!0,s=c;break}}if(a&&o)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}l.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var jo={updateSize:xo,updateSlides:To,updateAutoHeight:Eo,updateSlidesOffset:ko,updateSlidesProgress:Io,updateProgress:Co,updateSlidesClasses:Po,updateActiveIndex:Mo,updateClickedSlide:Lo};function Ro(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:l,translate:a,wrapperEl:o}=e;if(i.virtualTranslate)return l?-a:a;if(i.cssMode)return a;let s=vo(o,t);return s+=e.cssOverflowAdjustment(),l&&(s=-s),s||0}function No(t,e){const i=this,{rtlTranslate:l,params:a,wrapperEl:o,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=l?-t:t:r=t,a.roundLengths&&(c=Math.floor(c),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:r,a.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-r:a.virtualTranslate||(i.isHorizontal()?c-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${c}px, ${r}px, ${u}px)`);let d;const h=i.maxTranslate()-i.minTranslate();h===0?d=0:d=(t-i.minTranslate())/h,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Do(){return-this.snapGrid[0]}function Vo(){return-this.snapGrid[this.snapGrid.length-1]}function Bo(t,e,i,l,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),l===void 0&&(l=!0);const o=this,{params:s,wrapperEl:c}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const r=o.minTranslate(),u=o.maxTranslate();let d;if(l&&t>r?d=r:l&&t<u?d=u:d=t,o.updateProgress(d),s.cssMode){const h=o.isHorizontal();if(e===0)c[h?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return Kn({swiper:o,targetPosition:-d,side:h?"left":"top"}),!0;c.scrollTo({[h?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,a),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,a),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(f){!o||o.destroyed||f.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,i&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var Fo={getTranslate:Ro,setTranslate:No,minTranslate:Do,maxTranslate:Vo,translateTo:Bo};function Wo(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 el(t){let{swiper:e,runCallbacks:i,direction:l,step:a}=t;const{activeIndex:o,previousIndex:s}=e;let c=l;if(c||(o>s?c="next":o<s?c="prev":c="reset"),e.emit(`transition${a}`),i&&o!==s){if(c==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),c==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function zo(t,e){t===void 0&&(t=!0);const i=this,{params:l}=i;l.cssMode||(l.autoHeight&&i.updateAutoHeight(),el({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Uo(t,e){t===void 0&&(t=!0);const i=this,{params:l}=i;i.animating=!1,!l.cssMode&&(i.setTransition(0),el({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Ho={setTransition:Wo,transitionStart:zo,transitionEnd:Uo};function Xo(t,e,i,l,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let s=t;s<0&&(s=0);const{params:c,snapGrid:r,slidesGrid:u,previousIndex:d,activeIndex:h,rtlTranslate:f,wrapperEl:m,enabled:y}=o;if(!y&&!l&&!a||o.destroyed||o.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const g=Math.min(o.params.slidesPerGroupSkip,s);let x=g+Math.floor((s-g)/o.params.slidesPerGroup);x>=r.length&&(x=r.length-1);const p=-r[x];if(c.normalizeSlideIndex)for(let A=0;A<u.length;A+=1){const w=-Math.floor(p*100),C=Math.floor(u[A]*100),P=Math.floor(u[A+1]*100);typeof u[A+1]<"u"?w>=C&&w<P-(P-C)/2?s=A:w>=C&&w<P&&(s=A+1):w>=C&&(s=A)}if(o.initialized&&s!==h&&(!o.allowSlideNext&&(f?p>o.translate&&p>o.minTranslate():p<o.translate&&p<o.minTranslate())||!o.allowSlidePrev&&p>o.translate&&p>o.maxTranslate()&&(h||0)!==s))return!1;s!==(d||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(p);let b;if(s>h?b="next":s<h?b="prev":b="reset",f&&-p===o.translate||!f&&p===o.translate)return o.updateActiveIndex(s),c.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),c.effect!=="slide"&&o.setTranslate(p),b!=="reset"&&(o.transitionStart(i,b),o.transitionEnd(i,b)),!1;if(c.cssMode){const A=o.isHorizontal(),w=f?p:-p;if(e===0){const C=o.virtual&&o.params.virtual.enabled;C&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),C&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[A?"scrollLeft":"scrollTop"]=w})):m[A?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Kn({swiper:o,targetPosition:w,side:A?"left":"top"}),!0;m.scrollTo({[A?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(p),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,l),o.transitionStart(i,b),e===0?o.transitionEnd(i,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function qo(t,e,i,l){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const o=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let c;if(o){const f=s*a.params.grid.rows;c=a.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else c=a.getSlideIndexByData(s);const r=o?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u}=a.params;let d=a.params.slidesPerView;d==="auto"?d=a.slidesPerViewDynamic():(d=Math.ceil(parseFloat(a.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let h=r-c<d;if(u&&(h=h||c<Math.ceil(d/2)),l&&u&&a.params.slidesPerView!=="auto"&&!o&&(h=!1),h){const f=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?c+1:c-r+1,slideRealIndex:f==="next"?a.realIndex:void 0})}if(o){const f=s*a.params.grid.rows;s=a.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,l)}),a}function Yo(t,e,i){e===void 0&&(e=!0);const l=this,{enabled:a,params:o,animating:s}=l;if(!a||l.destroyed)return l;typeof t>"u"&&(t=l.params.speed);let c=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(c=Math.max(l.slidesPerViewDynamic("current",!0),1));const r=l.activeIndex<o.slidesPerGroupSkip?1:c,u=l.virtual&&o.virtual.enabled;if(o.loop){if(s&&!u&&o.loopPreventsSliding)return!1;if(l.loopFix({direction:"next"}),l._clientLeft=l.wrapperEl.clientLeft,l.activeIndex===l.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{l.slideTo(l.activeIndex+r,t,e,i)}),!0}return o.rewind&&l.isEnd?l.slideTo(0,t,e,i):l.slideTo(l.activeIndex+r,t,e,i)}function Go(t,e,i){e===void 0&&(e=!0);const l=this,{params:a,snapGrid:o,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=l;if(!r||l.destroyed)return l;typeof t>"u"&&(t=l.params.speed);const d=l.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;l.loopFix({direction:"prev"}),l._clientLeft=l.wrapperEl.clientLeft}const h=c?l.translate:-l.translate;function f(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const m=f(h),y=o.map(p=>f(p));let g=o[y.indexOf(m)-1];if(typeof g>"u"&&a.cssMode){let p;o.forEach((b,A)=>{m>=b&&(p=A)}),typeof p<"u"&&(g=o[p>0?p-1:p])}let x=0;if(typeof g<"u"&&(x=s.indexOf(g),x<0&&(x=l.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(x=x-l.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),a.rewind&&l.isBeginning){const p=l.params.virtual&&l.params.virtual.enabled&&l.virtual?l.virtual.slides.length-1:l.slides.length-1;return l.slideTo(p,t,e,i)}else if(a.loop&&l.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{l.slideTo(x,t,e,i)}),!0;return l.slideTo(x,t,e,i)}function Zo(t,e,i){e===void 0&&(e=!0);const l=this;if(!l.destroyed)return typeof t>"u"&&(t=l.params.speed),l.slideTo(l.activeIndex,t,e,i)}function Ko(t,e,i,l){e===void 0&&(e=!0),l===void 0&&(l=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let o=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,o),c=s+Math.floor((o-s)/a.params.slidesPerGroup),r=a.rtlTranslate?a.translate:-a.translate;if(r>=a.snapGrid[c]){const u=a.snapGrid[c],d=a.snapGrid[c+1];r-u>(d-u)*l&&(o+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*l&&(o-=a.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,a.slidesGrid.length-1),a.slideTo(o,t,e,i)}function _o(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,l=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,o;const s=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?a<t.loopedSlides-l/2||a>t.slides.length-t.loopedSlides+l/2?(t.loopFix(),a=t.getSlideIndex(zt(i,`${s}[data-swiper-slide-index="${o}"]`)[0]),ri(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-l?(t.loopFix(),a=t.getSlideIndex(zt(i,`${s}[data-swiper-slide-index="${o}"]`)[0]),ri(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var Jo={slideTo:Xo,slideToLoop:qo,slideNext:Yo,slidePrev:Go,slideReset:Zo,slideToClosest:Ko,slideToClickedSlide:_o};function Qo(t){const e=this,{params:i,slidesEl:l}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{zt(l,`.${i.slideClass}, swiper-slide`).forEach((h,f)=>{h.setAttribute("data-swiper-slide-index",f)})},o=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(o?i.grid.rows:1),c=e.slides.length%s!==0,r=o&&e.slides.length%i.grid.rows!==0,u=d=>{for(let h=0;h<d;h+=1){const f=e.isElement?di("swiper-slide",[i.slideBlankClass]):di("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else ji("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)");a()}else if(r){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;u(d),e.recalcSlides(),e.updateSlides()}else ji("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)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function $o(t){let{slideRealIndex:e,slideTo:i=!0,direction:l,setTranslate:a,activeSlideIndex:o,byController:s,byMousewheel:c}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:h,slidesEl:f,params:m}=r,{centeredSlides:y}=m;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&m.virtual.enabled){i&&(!m.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):m.centeredSlides&&r.snapIndex<m.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=d,r.allowSlideNext=h,r.emit("loopFix");return}let g=m.slidesPerView;g==="auto"?g=r.slidesPerViewDynamic():(g=Math.ceil(parseFloat(m.slidesPerView,10)),y&&g%2===0&&(g=g+1));const x=m.slidesPerGroupAuto?g:m.slidesPerGroup;let p=x;p%x!==0&&(p+=x-p%x),p+=m.loopAdditionalSlides,r.loopedSlides=p;const b=r.grid&&m.grid&&m.grid.rows>1;u.length<g+p?ji("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"):b&&m.grid.fill==="row"&&ji("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const A=[],w=[];let C=r.activeIndex;typeof o>"u"?o=r.getSlideIndex(u.filter(j=>j.classList.contains(m.slideActiveClass))[0]):C=o;const P=l==="next"||!l,D=l==="prev"||!l;let O=0,S=0;const T=b?Math.ceil(u.length/m.grid.rows):u.length,k=(b?u[o].column:o)+(y&&typeof a>"u"?-g/2+.5:0);if(k<p){O=Math.max(p-k,x);for(let j=0;j<p-k;j+=1){const v=j-Math.floor(j/T)*T;if(b){const B=T-v-1;for(let W=u.length-1;W>=0;W-=1)u[W].column===B&&A.push(W)}else A.push(T-v-1)}}else if(k+g>T-p){S=Math.max(k-(T-p*2),x);for(let j=0;j<S;j+=1){const v=j-Math.floor(j/T)*T;b?u.forEach((B,W)=>{B.column===v&&w.push(W)}):w.push(v)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),D&&A.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.prepend(u[j]),u[j].swiperLoopMoveDOM=!1}),P&&w.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.append(u[j]),u[j].swiperLoopMoveDOM=!1}),r.recalcSlides(),m.slidesPerView==="auto"?r.updateSlides():b&&(A.length>0&&D||w.length>0&&P)&&r.slides.forEach((j,v)=>{r.grid.updateSlide(v,j,r.slides)}),m.watchSlidesProgress&&r.updateSlidesOffset(),i){if(A.length>0&&D){if(typeof e>"u"){const j=r.slidesGrid[C],B=r.slidesGrid[C+O]-j;c?r.setTranslate(r.translate-B):(r.slideTo(C+Math.ceil(O),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-B,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-B))}else if(a){const j=b?A.length/m.grid.rows:A.length;r.slideTo(r.activeIndex+j,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(w.length>0&&P)if(typeof e>"u"){const j=r.slidesGrid[C],B=r.slidesGrid[C-S]-j;c?r.setTranslate(r.translate-B):(r.slideTo(C-S,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-B,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-B))}else{const j=b?w.length/m.grid.rows:w.length;r.slideTo(r.activeIndex-j,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=h,r.controller&&r.controller.control&&!s){const j={slideRealIndex:e,direction:l,setTranslate:a,activeSlideIndex:o,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(v=>{!v.destroyed&&v.params.loop&&v.loopFix({...j,slideTo:v.params.slidesPerView===m.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...j,slideTo:r.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}r.emit("loopFix")}function ea(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const l=[];t.slides.forEach(a=>{const o=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;l[o]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),l.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ta={loopCreate:Qo,loopFix:$o,loopDestroy:ea};function ia(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 na(){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 la={setGrabCursor:ia,unsetGrabCursor:na};function oa(t,e){e===void 0&&(e=this);function i(l){if(!l||l===Mt()||l===kt())return null;l.assignedSlot&&(l=l.assignedSlot);const a=l.closest(t);return!a&&!l.getRootNode?null:a||i(l.getRootNode().host)}return i(e)}function tl(t,e,i){const l=kt(),{params:a}=t,o=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return o&&(i<=s||i>=l.innerWidth-s)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function aa(t){const e=this,i=Mt();let l=t;l.originalEvent&&(l=l.originalEvent);const a=e.touchEventsData;if(l.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==l.pointerId)return;a.pointerId=l.pointerId}else l.type==="touchstart"&&l.targetTouches.length===1&&(a.touchId=l.targetTouches[0].identifier);if(l.type==="touchstart"){tl(e,l,l.targetTouches[0].pageX);return}const{params:o,touches:s,enabled:c}=e;if(!c||!o.simulateTouch&&l.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let r=l.target;if(o.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in l&&l.which===3||"button"in l&&l.button>0||a.isTouched&&a.isMoved)return;const u=!!o.noSwipingClass&&o.noSwipingClass!=="",d=l.composedPath?l.composedPath():l.path;u&&l.target&&l.target.shadowRoot&&d&&(r=d[0]);const h=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(f?oa(h,r):r.closest(h))){e.allowClick=!0;return}if(o.swipeHandler&&!r.closest(o.swipeHandler))return;s.currentX=l.pageX,s.currentY=l.pageY;const m=s.currentX,y=s.currentY;if(!tl(e,l,m))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=m,s.startY=y,a.touchStartTime=Vt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(a.allowThresholdMove=!1);let g=!0;r.matches(a.focusableElements)&&(g=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const x=g&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||x)&&!r.isContentEditable&&l.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function sa(t){const e=Mt(),i=this,l=i.touchEventsData,{params:a,touches:o,rtlTranslate:s,enabled:c}=i;if(!c||!a.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(l.touchId!==null||r.pointerId!==l.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(P=>P.identifier===l.touchId)[0],!u||u.identifier!==l.touchId)return}else u=r;if(!l.isTouched){l.startMoving&&l.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,h=u.pageY;if(r.preventedByNestedSwiper){o.startX=d,o.startY=h;return}if(!i.allowTouchMove){r.target.matches(l.focusableElements)||(i.allowClick=!1),l.isTouched&&(Object.assign(o,{startX:d,startY:h,currentX:d,currentY:h}),l.touchStartTime=Vt());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(h<o.startY&&i.translate<=i.maxTranslate()||h>o.startY&&i.translate>=i.minTranslate()){l.isTouched=!1,l.isMoved=!1;return}}else if(d<o.startX&&i.translate<=i.maxTranslate()||d>o.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(l.focusableElements)){l.isMoved=!0,i.allowClick=!1;return}l.allowTouchCallbacks&&i.emit("touchMove",r),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=d,o.currentY=h;const f=o.currentX-o.startX,m=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(typeof l.isScrolling>"u"){let P;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?l.isScrolling=!1:f*f+m*m>=25&&(P=Math.atan2(Math.abs(m),Math.abs(f))*180/Math.PI,l.isScrolling=i.isHorizontal()?P>a.touchAngle:90-P>a.touchAngle)}if(l.isScrolling&&i.emit("touchMoveOpposite",r),typeof l.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(l.startMoving=!0),l.isScrolling||r.type==="touchmove"&&l.preventTouchMoveFromPointerMove){l.isTouched=!1;return}if(!l.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let y=i.isHorizontal()?f:m,g=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;a.oneWayMovement&&(y=Math.abs(y)*(s?1:-1),g=Math.abs(g)*(s?1:-1)),o.diff=y,y*=a.touchRatio,s&&(y=-y,g=-g);const x=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const p=i.params.loop&&!a.cssMode,b=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!l.isMoved){if(p&&b&&i.loopFix({direction:i.swipeDirection}),l.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(P)}l.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let A;if(new Date().getTime(),l.isMoved&&l.allowThresholdMove&&x!==i.touchesDirection&&p&&b&&Math.abs(y)>=1){Object.assign(o,{startX:d,startY:h,currentX:d,currentY:h,startTranslate:l.currentTranslate}),l.loopSwapReset=!0,l.startTranslate=l.currentTranslate;return}i.emit("sliderMove",r),l.isMoved=!0,l.currentTranslate=y+l.startTranslate;let w=!0,C=a.resistanceRatio;if(a.touchReleaseOnEdges&&(C=0),y>0?(p&&b&&!A&&l.allowThresholdMove&&l.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),l.currentTranslate>i.minTranslate()&&(w=!1,a.resistance&&(l.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+l.startTranslate+y)**C))):y<0&&(p&&b&&!A&&l.allowThresholdMove&&l.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),l.currentTranslate<i.maxTranslate()&&(w=!1,a.resistance&&(l.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-l.startTranslate-y)**C))),w&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&l.currentTranslate<l.startTranslate&&(l.currentTranslate=l.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&l.currentTranslate>l.startTranslate&&(l.currentTranslate=l.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(l.currentTranslate=l.startTranslate),a.threshold>0)if(Math.abs(y)>a.threshold||l.allowThresholdMove){if(!l.allowThresholdMove){l.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,l.currentTranslate=l.startTranslate,o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{l.currentTranslate=l.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(l.currentTranslate),i.setTranslate(l.currentTranslate))}function ra(t){const e=this,i=e.touchEventsData;let l=t;l.originalEvent&&(l=l.originalEvent);let a;if(l.type==="touchend"||l.type==="touchcancel"){if(a=[...l.changedTouches].filter(C=>C.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||l.pointerId!==i.pointerId)return;a=l}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(l.type)&&!(["pointercancel","contextmenu"].includes(l.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&l.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const h=Vt(),f=h-i.touchStartTime;if(e.allowClick){const C=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(C&&C[0]||l.target,C),e.emit("tap click",l),f<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(i.lastClickTime=Vt(),ri(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||c.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 m;if(s.followFinger?m=r?e.translate:-e.translate:m=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const y=m>=-e.maxTranslate()&&!e.params.loop;let g=0,x=e.slidesSizesGrid[0];for(let C=0;C<u.length;C+=C<s.slidesPerGroupSkip?1:s.slidesPerGroup){const P=C<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[C+P]<"u"?(y||m>=u[C]&&m<u[C+P])&&(g=C,x=u[C+P]-u[C]):(y||m>=u[C])&&(g=C,x=u[u.length-1]-u[u.length-2])}let p=null,b=null;s.rewind&&(e.isBeginning?b=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const A=(m-u[g])/x,w=g<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(f>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(A>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?p:g+w):e.slideTo(g)),e.swipeDirection==="prev"&&(A>1-s.longSwipesRatio?e.slideTo(g+w):b!==null&&A<0&&Math.abs(A)>s.longSwipesRatio?e.slideTo(b):e.slideTo(g))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(l.target===e.navigation.nextEl||l.target===e.navigation.prevEl)?l.target===e.navigation.nextEl?e.slideTo(g+w):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:g+w),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:g))}}function il(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:l,allowSlidePrev:a,snapGrid:o}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const c=s&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!c?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=l,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function da(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function ca(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:l}=t;if(!l)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a;const o=t.maxTranslate()-t.minTranslate();o===0?a=0:a=(t.translate-t.minTranslate())/o,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ua(t){const e=this;Ni(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function va(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const nl=(t,e)=>{const i=Mt(),{params:l,el:a,wrapperEl:o,device:s}=t,c=!!l.nested,r=e==="on"?"addEventListener":"removeEventListener",u=e;!a||typeof a=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:c}),a[r]("touchstart",t.onTouchStart,{passive:!1}),a[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:c}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:c}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(l.preventClicks||l.preventClicksPropagation)&&a[r]("click",t.onClick,!0),l.cssMode&&o[r]("scroll",t.onScroll),l.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",il,!0):t[u]("observerUpdate",il,!0),a[r]("load",t.onLoad,{capture:!0}))};function pa(){const t=this,{params:e}=t;t.onTouchStart=aa.bind(t),t.onTouchMove=sa.bind(t),t.onTouchEnd=ra.bind(t),t.onDocumentTouchStart=va.bind(t),e.cssMode&&(t.onScroll=ca.bind(t)),t.onClick=da.bind(t),t.onLoad=ua.bind(t),nl(t,"on")}function ma(){nl(this,"off")}var fa={attachEvents:pa,detachEvents:ma};const ll=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function ha(){const t=this,{realIndex:e,initialized:i,params:l,el:a}=t,o=l.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const s=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const r=(s in o?o[s]:void 0)||t.originalParams,u=ll(t,l),d=ll(t,r),h=t.params.grabCursor,f=r.grabCursor,m=l.enabled;u&&!d?(a.classList.remove(`${l.containerModifierClass}grid`,`${l.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${l.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&l.grid.fill==="column")&&a.classList.add(`${l.containerModifierClass}grid-column`),t.emitContainerClasses()),h&&!f?t.unsetGrabCursor():!h&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof r[A]>"u")return;const w=l[A]&&l[A].enabled,C=r[A]&&r[A].enabled;w&&!C&&t[A].disable(),!w&&C&&t[A].enable()});const y=r.direction&&r.direction!==l.direction,g=l.loop&&(r.slidesPerView!==l.slidesPerView||y),x=l.loop;y&&i&&t.changeDirection(),Rt(t.params,r);const p=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!p?t.disable():!m&&p&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",r),i&&(g?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&b?(t.loopCreate(e),t.updateSlides()):x&&!b&&t.loopDestroy()),t.emit("breakpoint",r)}function Aa(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let l=!1;const a=kt(),o=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const r=parseFloat(c.substr(1));return{value:o*r,point:c}}return{value:c,point:c}});s.sort((c,r)=>parseInt(c.value,10)-parseInt(r.value,10));for(let c=0;c<s.length;c+=1){const{point:r,value:u}=s[c];e==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(l=r):u<=i.clientWidth&&(l=r)}return l||"max"}var ba={setBreakpoint:ha,getBreakpoint:Aa};function ga(t,e){const i=[];return t.forEach(l=>{typeof l=="object"?Object.keys(l).forEach(a=>{l[a]&&i.push(e+a)}):typeof l=="string"&&i.push(e+l)}),i}function ya(){const t=this,{classNames:e,params:i,rtl:l,el:a,device:o}=t,s=ga(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:l},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...s),a.classList.add(...e),t.emitContainerClasses()}function wa(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Sa={addClasses:ya,removeClasses:wa};function xa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:l}=i;if(l){const a=t.slides.length-1,o=t.slidesGrid[a]+t.slidesSizesGrid[a]+l*2;t.isLocked=t.size>o}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 Ta={checkOverflow:xa},rn={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 Ea(t,e){return function(l){l===void 0&&(l={});const a=Object.keys(l)[0],o=l[a];if(typeof o!="object"||o===null){Rt(e,l);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in o)){Rt(e,l);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),Rt(e,l)}}const dn={eventsEmitter:So,update:jo,translate:Fo,transition:Ho,slide:Jo,loop:ta,grabCursor:la,events:fa,breakpoints:ba,checkOverflow:Ta,classes:Sa},cn={};let un=class Yt{constructor(){let e,i;for(var l=arguments.length,a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=Rt({},i),e&&!i.el&&(i.el=e);const s=Mt();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(h=>{const f=Rt({},i,{el:h});d.push(new Yt(f))}),d}const c=this;c.__swiper__=!0,c.support=Jn(),c.device=Qn({userAgent:i.userAgent}),c.browser=go(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=[...c.__modules__],i.modules&&Array.isArray(i.modules)&&c.modules.push(...i.modules);const r={};c.modules.forEach(d=>{d({params:i,swiper:c,extendParams:Ea(i,r),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})});const u=Rt({},rn,r);return c.params=Rt({},u,cn,i),c.originalParams=Rt({},c.params),c.passedParams=Rt({},i),c.params&&c.params.on&&Object.keys(c.params.on).forEach(d=>{c.on(d,c.params.on[d])}),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return c.params.direction==="horizontal"},isVertical(){return c.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:c.params.allowSlideNext,allowSlidePrev:c.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:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}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:l}=this,a=zt(i,`.${l.slideClass}, swiper-slide`),o=mi(a[0]);return mi(e)-o}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:l}=e;e.slides=zt(i,`.${l.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 l=this;e=Math.min(Math.max(e,0),1);const a=l.minTranslate(),s=(l.maxTranslate()-a)*e+a;l.translateTo(s,typeof i>"u"?0:i),l.updateActiveIndex(),l.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(l=>l.indexOf("swiper")===0||l.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(l=>l.indexOf("swiper-slide")===0||l.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(l=>{const a=e.getSlideClasses(l);i.push({slideEl:l,classNames:a}),e.emit("_slideClass",l,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const l=this,{params:a,slides:o,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=l;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let h=o[u]?Math.ceil(o[u].swiperSlideSize):0,f;for(let m=u+1;m<o.length;m+=1)o[m]&&!f&&(h+=Math.ceil(o[m].swiperSlideSize),d+=1,h>r&&(f=!0));for(let m=u-1;m>=0;m-=1)o[m]&&!f&&(h+=o[m].swiperSlideSize,d+=1,h>r&&(f=!0))}else if(e==="current")for(let h=u+1;h<o.length;h+=1)(i?s[h]+c[h]-s[u]<r:s[h]-s[u]<r)&&(d+=1);else for(let h=u-1;h>=0;h-=1)s[u]-s[h]<r&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:l}=e;l.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Ni(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,c=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(l.freeMode&&l.freeMode.enabled&&!l.cssMode)a(),l.autoHeight&&e.updateAutoHeight();else{if((l.slidesPerView==="auto"||l.slidesPerView>1)&&e.isEnd&&!l.centeredSlides){const s=e.virtual&&l.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(s.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||a()}l.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const l=this,a=l.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(l.el.classList.remove(`${l.params.containerModifierClass}${a}`),l.el.classList.add(`${l.params.containerModifierClass}${e}`),l.emitContainerClasses(),l.params.direction=e,l.slides.forEach(o=>{e==="vertical"?o.style.width="":o.style.height=""}),l.emit("changeDirection"),i&&l.update()),l}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 l=e||i.params.el;if(typeof l=="string"&&(l=document.querySelector(l)),!l)return!1;l.swiper=i,l.parentNode&&l.parentNode.host&&l.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=l&&l.shadowRoot&&l.shadowRoot.querySelector?l.shadowRoot.querySelector(a()):zt(l,a())[0];return!s&&i.params.createElements&&(s=di("div",i.params.wrapperClass),l.append(s),zt(l,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:l,wrapperEl:s,slidesEl:i.isElement&&!l.parentNode.host.slideSlots?l.parentNode.host:s,hostEl:i.isElement?l.parentNode.host:l,mounted:!0,rtl:l.dir.toLowerCase()==="rtl"||_t(l,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(l.dir.toLowerCase()==="rtl"||_t(l,"direction")==="rtl"),wrongRTL:_t(s,"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 a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(o=>{o.complete?Ni(i,o):o.addEventListener("load",s=>{Ni(i,s.target)})}),sn(i),i.initialized=!0,sn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const l=this,{params:a,el:o,wrapperEl:s,slides:c}=l;return typeof l.params>"u"||l.destroyed||(l.emit("beforeDestroy"),l.initialized=!1,l.detachEvents(),a.loop&&l.loopDestroy(),i&&(l.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),s&&s.removeAttribute("style"),c&&c.length&&c.forEach(r=>{r.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),l.emit("destroy"),Object.keys(l.eventsListeners).forEach(r=>{l.off(r)}),e!==!1&&(l.el&&typeof l.el!="string"&&(l.el.swiper=null),co(l)),l.destroyed=!0),null}static extendDefaults(e){Rt(cn,e)}static get extendedDefaults(){return cn}static get defaults(){return rn}static installModule(e){Yt.prototype.__modules__||(Yt.prototype.__modules__=[]);const i=Yt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Yt.installModule(i)),Yt):(Yt.installModule(e),Yt)}};Object.keys(dn).forEach(t=>{Object.keys(dn[t]).forEach(e=>{un.prototype[e]=dn[t][e]})}),un.use([yo,wo]);const ol=["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 ni(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function ci(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(l=>i.indexOf(l)<0).forEach(l=>{typeof t[l]>"u"?t[l]=e[l]:ni(e[l])&&ni(t[l])&&Object.keys(e[l]).length>0?e[l].__swiper__?t[l]=e[l]:ci(t[l],e[l]):t[l]=e[l]})}function al(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function sl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function rl(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function dl(t){t===void 0&&(t="");const e=t.split(" ").map(l=>l.trim()).filter(l=>!!l),i=[];return e.forEach(l=>{i.indexOf(l)<0&&i.push(l)}),i.join(" ")}function ka(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ia(t){let{swiper:e,slides:i,passedParams:l,changedParams:a,nextEl:o,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:d,pagination:h,navigation:f,scrollbar:m,virtual:y,thumbs:g}=e;let x,p,b,A,w,C,P,D;a.includes("thumbs")&&l.thumbs&&l.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(x=!0),a.includes("controller")&&l.controller&&l.controller.control&&d.controller&&!d.controller.control&&(p=!0),a.includes("pagination")&&l.pagination&&(l.pagination.el||r)&&(d.pagination||d.pagination===!1)&&h&&!h.el&&(b=!0),a.includes("scrollbar")&&l.scrollbar&&(l.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&m&&!m.el&&(A=!0),a.includes("navigation")&&l.navigation&&(l.navigation.prevEl||s)&&(l.navigation.nextEl||o)&&(d.navigation||d.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const O=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),d[S].prevEl=void 0,d[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),d[S].el=void 0,e[S].el=void 0))};a.includes("loop")&&e.isElement&&(d.loop&&!l.loop?C=!0:!d.loop&&l.loop?P=!0:D=!0),u.forEach(S=>{if(ni(d[S])&&ni(l[S]))Object.assign(d[S],l[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in l[S]&&!l[S].enabled&&O(S);else{const T=l[S];(T===!0||T===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?T===!1&&O(S):d[S]=l[S]}}),u.includes("controller")&&!p&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&y&&d.virtual.enabled?(y.slides=i,y.update(!0)):a.includes("virtual")&&y&&d.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),a.includes("children")&&i&&d.loop&&(D=!0),x&&g.init()&&g.update(!0),p&&(e.controller.control=d.controller.control),b&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),h.init(),h.render(),h.update()),A&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-scrollbar"),c.part.add("scrollbar"),e.el.appendChild(c)),c&&(d.scrollbar.el=c),m.init(),m.updateSize(),m.setTranslate()),w&&(e.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=e.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),e.el.appendChild(o)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),o&&(d.navigation.nextEl=o),s&&(d.navigation.prevEl=s),f.init(),f.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=l.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=l.allowSlidePrev),a.includes("direction")&&e.changeDirection(l.direction,!1),(C||D)&&e.loopDestroy(),(P||D)&&e.loopCreate(),e.update()}function Ca(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},l={},a={};ci(i,rn),i._emitClasses=!0,i.init=!1;const o={},s=ol.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?ni(t[r])?(i[r]={},a[r]={},ci(i[r],t[r]),ci(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?l[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:o[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:a,rest:o,events:l}}function Pa(t,e){let{el:i,nextEl:l,prevEl:a,paginationEl:o,scrollbarEl:s,swiper:c}=t;al(e)&&l&&a&&(c.params.navigation.nextEl=l,c.originalParams.navigation.nextEl=l,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),sl(e)&&o&&(c.params.pagination.el=o,c.originalParams.pagination.el=o),rl(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function Oa(t,e,i,l,a){const o=[];if(!e)return o;const s=r=>{o.indexOf(r)<0&&o.push(r)};if(i&&l){const r=l.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),l.length!==i.length&&s("children")}return ol.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(ni(t[r])&&ni(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(h=>{t[r][h]!==e[r][h]&&s(r)}),d.forEach(h=>{t[r][h]!==e[r][h]&&s(r)}))}else t[r]!==e[r]&&s(r)}),o}const Ma=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 Di(){return Di=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},Di.apply(this,arguments)}function cl(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ul(t){const e=[];return n.Children.toArray(t).forEach(i=>{cl(i)?e.push(i):i.props&&i.props.children&&ul(i.props.children).forEach(l=>e.push(l))}),e}function La(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(l=>{if(cl(l))e.push(l);else if(l.props&&l.props.slot&&i[l.props.slot])i[l.props.slot].push(l);else if(l.props&&l.props.children){const a=ul(l.props.children);a.length>0?a.forEach(o=>e.push(o)):i["container-end"].push(l)}else i["container-end"].push(l)}),{slides:e,slots:i}}function ja(t,e,i){if(!i)return null;const l=d=>{let h=d;return d<0?h=e.length+d:h>=e.length&&(h=h-e.length),h},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:o,to:s}=i,c=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,u=[];for(let d=c;d<r;d+=1)d>=o&&d<=s&&u.push(e[l(d)]);return u.map((d,h)=>n.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${h}`}))}function fi(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const vn=n.createContext(null),hi=()=>n.useContext(vn),Ra=n.createContext(null),Xt=n.forwardRef(function(t,e){let{className:i,tag:l="div",wrapperTag:a="div",children:o,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,d]=n.useState("swiper"),[h,f]=n.useState(null),[m,y]=n.useState(!1),g=n.useRef(!1),x=n.useRef(null),p=n.useRef(null),b=n.useRef(null),A=n.useRef(null),w=n.useRef(null),C=n.useRef(null),P=n.useRef(null),D=n.useRef(null),{params:O,passedParams:S,rest:T,events:N}=Ca(c),{slides:k,slots:j}=La(o),v=()=>{y(!m)};Object.assign(O.on,{_containerClasses(I,E){d(E)}});const B=()=>{Object.assign(O.on,N),r=!0;const I={...O};if(delete I.wrapperClass,p.current=new un(I),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=k;const E={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};ci(p.current.params.virtual,E),ci(p.current.originalParams.virtual,E)}};x.current||B(),p.current&&p.current.on("_beforeBreakpoint",v);const W=()=>{r||!N||!p.current||Object.keys(N).forEach(I=>{p.current.on(I,N[I])})},L=()=>{!N||!p.current||Object.keys(N).forEach(I=>{p.current.off(I,N[I])})};n.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",v)}),n.useEffect(()=>{!g.current&&p.current&&(p.current.emitSlidesClasses(),g.current=!0)}),fi(()=>{if(e&&(e.current=x.current),!!x.current)return p.current.destroyed&&B(),Pa({el:x.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:D.current,swiper:p.current},O),s&&!p.current.destroyed&&s(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),fi(()=>{W();const I=Oa(S,b.current,k,A.current,E=>E.key);return b.current=S,A.current=k,I.length&&p.current&&!p.current.destroyed&&Ia({swiper:p.current,slides:k,passedParams:S,changedParams:I,nextEl:w.current,prevEl:C.current,scrollbarEl:D.current,paginationEl:P.current}),()=>{L()}}),fi(()=>{Ma(p.current)},[h]);function V(){return O.virtual?ja(p.current,k,h):k.map((I,E)=>n.cloneElement(I,{swiper:p.current,swiperSlideIndex:E}))}return n.createElement(l,Di({ref:x,className:dl(`${u}${i?` ${i}`:""}`)},T),n.createElement(Ra.Provider,{value:p.current},j["container-start"],n.createElement(a,{className:ka(O.wrapperClass)},j["wrapper-start"],V(),j["wrapper-end"]),al(O)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:C,className:"swiper-button-prev"}),n.createElement("div",{ref:w,className:"swiper-button-next"})),rl(O)&&n.createElement("div",{ref:D,className:"swiper-scrollbar"}),sl(O)&&n.createElement("div",{ref:P,className:"swiper-pagination"}),j["container-end"]))});Xt.displayName="Swiper";const Nt=n.forwardRef(function(t,e){let{tag:i="div",children:l,className:a="",swiper:o,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...d}=t===void 0?{}:t;const h=n.useRef(null),[f,m]=n.useState("swiper-slide"),[y,g]=n.useState(!1);function x(w,C,P){C===h.current&&m(P)}fi(()=>{if(typeof u<"u"&&(h.current.swiperSlideIndex=u),e&&(e.current=h.current),!(!h.current||!o)){if(o.destroyed){f!=="swiper-slide"&&m("swiper-slide");return}return o.on("_slideClass",x),()=>{o&&o.off("_slideClass",x)}}}),fi(()=>{o&&h.current&&!o.destroyed&&m(o.getSlideClasses(h.current))},[o]);const p={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>typeof l=="function"?l(p):l,A=()=>{g(!0)};return n.createElement(i,Di({ref:h,className:dl(`${f}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:A},d),s&&n.createElement(vn.Provider,{value:p},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},b(),c&&!y&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&n.createElement(vn.Provider,{value:p},b(),c&&!y&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Nt.displayName="SwiperSlide";function pn(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;const o=Mt(),s=kt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(d){if(!e.enabled)return;const{rtlTranslate:h}=e;let f=d;f.originalEvent&&(f=f.originalEvent);const m=f.keyCode||f.charCode,y=e.params.keyboard.pageUpDown,g=y&&m===33,x=y&&m===34,p=m===37,b=m===39,A=m===38,w=m===40;if(!e.allowSlideNext&&(e.isHorizontal()&&b||e.isVertical()&&w||x)||!e.allowSlidePrev&&(e.isHorizontal()&&p||e.isVertical()&&A||g))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey)&&!(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(g||x||p||b||A||w)){let C=!1;if(Ri(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ri(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,D=P.clientWidth,O=P.clientHeight,S=s.innerWidth,T=s.innerHeight,N=_n(P);h&&(N.left-=P.scrollLeft);const k=[[N.left,N.top],[N.left+D,N.top],[N.left,N.top+O],[N.left+D,N.top+O]];for(let j=0;j<k.length;j+=1){const v=k[j];if(v[0]>=0&&v[0]<=S&&v[1]>=0&&v[1]<=T){if(v[0]===0&&v[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((g||x||p||b)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((x||b)&&!h||(g||p)&&h)&&e.slideNext(),((g||p)&&!h||(x||b)&&h)&&e.slidePrev()):((g||x||A||w)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(x||w)&&e.slideNext(),(g||A)&&e.slidePrev()),a("keyPress",m)}}function r(){e.keyboard.enabled||(o.addEventListener("keydown",c),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(o.removeEventListener("keydown",c),e.keyboard.enabled=!1)}l("init",()=>{e.params.keyboard.enabled&&r()}),l("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function Vi(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;const o=kt();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 s,c=Vt(),r;const u=[];function d(A){let D=0,O=0,S=0,T=0;return"detail"in A&&(O=A.detail),"wheelDelta"in A&&(O=-A.wheelDelta/120),"wheelDeltaY"in A&&(O=-A.wheelDeltaY/120),"wheelDeltaX"in A&&(D=-A.wheelDeltaX/120),"axis"in A&&A.axis===A.HORIZONTAL_AXIS&&(D=O,O=0),S=D*10,T=O*10,"deltaY"in A&&(T=A.deltaY),"deltaX"in A&&(S=A.deltaX),A.shiftKey&&!S&&(S=T,T=0),(S||T)&&A.deltaMode&&(A.deltaMode===1?(S*=40,T*=40):(S*=800,T*=800)),S&&!D&&(D=S<1?-1:1),T&&!O&&(O=T<1?-1:1),{spinX:D,spinY:O,pixelX:S,pixelY:T}}function h(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function m(A){return e.params.mousewheel.thresholdDelta&&A.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Vt()-c<e.params.mousewheel.thresholdTime?!1:A.delta>=6&&Vt()-c<60?!0:(A.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",A.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",A.raw)),c=new o.Date().getTime(),!1)}function y(A){const w=e.params.mousewheel;if(A.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function g(A){let w=A,C=!0;if(!e.enabled||A.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const P=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let D=e.el;e.params.mousewheel.eventsTarget!=="container"&&(D=document.querySelector(e.params.mousewheel.eventsTarget));const O=D&&D.contains(w.target);if(!e.mouseEntered&&!O&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let S=0;const T=e.rtlTranslate?-1:1,N=d(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(N.pixelX)>Math.abs(N.pixelY))S=-N.pixelX*T;else return!0;else if(Math.abs(N.pixelY)>Math.abs(N.pixelX))S=-N.pixelY;else return!0;else S=Math.abs(N.pixelX)>Math.abs(N.pixelY)?-N.pixelX*T:-N.pixelY;if(S===0)return!0;P.invert&&(S=-S);let k=e.getTranslate()+S*P.sensitivity;if(k>=e.minTranslate()&&(k=e.minTranslate()),k<=e.maxTranslate()&&(k=e.maxTranslate()),C=e.params.loop?!0:!(k===e.minTranslate()||k===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const j={time:Vt(),delta:Math.abs(S),direction:Math.sign(S),raw:A};u.length>=2&&u.shift();const v=u.length?u[u.length-1]:void 0;if(u.push(j),v?(j.direction!==v.direction||j.delta>v.delta||j.time>v.time+150)&&m(j):m(j),y(j))return!0}else{const j={time:Vt(),delta:Math.abs(S),direction:Math.sign(S)},v=r&&j.time<r.time+500&&j.delta<=r.delta&&j.direction===r.direction;if(!v){r=void 0;let B=e.getTranslate()+S*P.sensitivity;const W=e.isBeginning,L=e.isEnd;if(B>=e.minTranslate()&&(B=e.minTranslate()),B<=e.maxTranslate()&&(B=e.maxTranslate()),e.setTransition(0),e.setTranslate(B),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!W&&e.isBeginning||!L&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const V=u.length?u[u.length-1]:void 0,I=u[0];if(u.push(j),V&&(j.delta>V.delta||j.direction!==V.direction))u.splice(0);else if(u.length>=15&&j.time-I.time<500&&I.delta-j.delta>=1&&j.delta<=6){const E=S>0?.8:.2;r=j,u.splice(0),s=ri(()=>{e.slideToClosest(e.params.speed,!0,void 0,E)},0)}s||(s=ri(()=>{r=j,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(v||a("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),P.releaseOnEdges&&(B===e.minTranslate()||B===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function x(A){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[A]("mouseenter",h),w[A]("mouseleave",f),w[A]("wheel",g)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",g),!0):e.mousewheel.enabled?!1:(x("addEventListener"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,g),!0):e.mousewheel.enabled?(x("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}l("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&p()}),l("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&b()}),Object.assign(e.mousewheel,{enable:p,disable:b})}function mn(t,e,i,l){return t.params.createElements&&Object.keys(l).forEach(a=>{if(!i[a]&&i.auto===!0){let o=zt(t.el,`.${l[a]}`)[0];o||(o=di("div",l[a]),o.className=l[a],t.el.append(o)),i[a]=o,e[a]=o}}),i}function fn(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function o(y){let g;return y&&typeof y=="string"&&e.isElement&&(g=e.el.querySelector(y),g)?g:(y&&(typeof y=="string"&&(g=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&g&&g.length>1&&e.el.querySelectorAll(y).length===1?g=e.el.querySelector(y):g&&g.length===1&&(g=g[0])),y&&!g?y:g)}function s(y,g){const x=e.params.navigation;y=Ue(y),y.forEach(p=>{p&&(p.classList[g?"add":"remove"](...x.disabledClass.split(" ")),p.tagName==="BUTTON"&&(p.disabled=g),e.params.watchOverflow&&e.enabled&&p.classList[e.isLocked?"add":"remove"](x.lockClass))})}function c(){const{nextEl:y,prevEl:g}=e.navigation;if(e.params.loop){s(g,!1),s(y,!1);return}s(g,e.isBeginning&&!e.params.rewind),s(y,e.isEnd&&!e.params.rewind)}function r(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const y=e.params.navigation;if(e.params.navigation=mn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let g=o(y.nextEl),x=o(y.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:x}),g=Ue(g),x=Ue(x);const p=(b,A)=>{b&&b.addEventListener("click",A==="next"?u:r),!e.enabled&&b&&b.classList.add(...y.lockClass.split(" "))};g.forEach(b=>p(b,"next")),x.forEach(b=>p(b,"prev"))}function h(){let{nextEl:y,prevEl:g}=e.navigation;y=Ue(y),g=Ue(g);const x=(p,b)=>{p.removeEventListener("click",b==="next"?u:r),p.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(p=>x(p,"next")),g.forEach(p=>x(p,"prev"))}l("init",()=>{e.params.navigation.enabled===!1?m():(d(),c())}),l("toEdge fromEdge lock unlock",()=>{c()}),l("destroy",()=>{h()}),l("enable disable",()=>{let{nextEl:y,prevEl:g}=e.navigation;if(y=Ue(y),g=Ue(g),e.enabled){c();return}[...y,...g].filter(x=>!!x).forEach(x=>x.classList.add(e.params.navigation.lockClass))}),l("click",(y,g)=>{let{nextEl:x,prevEl:p}=e.navigation;x=Ue(x),p=Ue(p);const b=g.target;let A=p.includes(b)||x.includes(b);if(e.isElement&&!A){const w=g.path||g.composedPath&&g.composedPath();w&&(A=w.find(C=>x.includes(C)||p.includes(C)))}if(e.params.navigation.hideOnClick&&!A){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let w;x.length?w=x[0].classList.contains(e.params.navigation.hiddenClass):p.length&&(w=p[0].classList.contains(e.params.navigation.hiddenClass)),a(w===!0?"navigationShow":"navigationHide"),[...x,...p].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),c()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(e.navigation,{enable:f,disable:m,update:c,init:d,destroy:h})}function qt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ai(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;const o="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:p=>p,formatFractionTotal:p=>p,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),e.pagination={el:null,bullets:[]};let s,c=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(p,b){const{bulletActiveClass:A}=e.params.pagination;p&&(p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${A}-${b}`),p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${A}-${b}-${b}`)))}function d(p){const b=p.target.closest(qt(e.params.pagination.bulletClass));if(!b)return;p.preventDefault();const A=mi(b)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===A)return;e.slideToLoop(A)}else e.slideTo(A)}function h(){const p=e.rtl,b=e.params.pagination;if(r())return;let A=e.pagination.el;A=Ue(A);let w,C;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,D=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,w=e.activeIndex||0),b.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const O=e.pagination.bullets;let S,T,N;if(b.dynamicBullets&&(s=en(O[0],e.isHorizontal()?"width":"height",!0),A.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${s*(b.dynamicMainBullets+4)}px`}),b.dynamicMainBullets>1&&C!==void 0&&(c+=w-(C||0),c>b.dynamicMainBullets-1?c=b.dynamicMainBullets-1:c<0&&(c=0)),S=Math.max(w-c,0),T=S+(Math.min(O.length,b.dynamicMainBullets)-1),N=(T+S)/2),O.forEach(k=>{const j=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(v=>`${b.bulletActiveClass}${v}`)].map(v=>typeof v=="string"&&v.includes(" ")?v.split(" "):v).flat();k.classList.remove(...j)}),A.length>1)O.forEach(k=>{const j=mi(k);j===w?k.classList.add(...b.bulletActiveClass.split(" ")):e.isElement&&k.setAttribute("part","bullet"),b.dynamicBullets&&(j>=S&&j<=T&&k.classList.add(...`${b.bulletActiveClass}-main`.split(" ")),j===S&&u(k,"prev"),j===T&&u(k,"next"))});else{const k=O[w];if(k&&k.classList.add(...b.bulletActiveClass.split(" ")),e.isElement&&O.forEach((j,v)=>{j.setAttribute("part",v===w?"bullet-active":"bullet")}),b.dynamicBullets){const j=O[S],v=O[T];for(let B=S;B<=T;B+=1)O[B]&&O[B].classList.add(...`${b.bulletActiveClass}-main`.split(" "));u(j,"prev"),u(v,"next")}}if(b.dynamicBullets){const k=Math.min(O.length,b.dynamicMainBullets+4),j=(s*k-s)/2-N*s,v=p?"right":"left";O.forEach(B=>{B.style[e.isHorizontal()?v:"top"]=`${j}px`})}}A.forEach((O,S)=>{if(b.type==="fraction"&&(O.querySelectorAll(qt(b.currentClass)).forEach(T=>{T.textContent=b.formatFractionCurrent(w+1)}),O.querySelectorAll(qt(b.totalClass)).forEach(T=>{T.textContent=b.formatFractionTotal(D)})),b.type==="progressbar"){let T;b.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const N=(w+1)/D;let k=1,j=1;T==="horizontal"?k=N:j=N,O.querySelectorAll(qt(b.progressbarFillClass)).forEach(v=>{v.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${j})`,v.style.transitionDuration=`${e.params.speed}ms`})}b.type==="custom"&&b.renderCustom?(O.innerHTML=b.renderCustom(e,w+1,D),S===0&&a("paginationRender",O)):(S===0&&a("paginationRender",O),a("paginationUpdate",O)),e.params.watchOverflow&&e.enabled&&O.classList[e.isLocked?"add":"remove"](b.lockClass)})}function f(){const p=e.params.pagination;if(r())return;const b=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 A=e.pagination.el;A=Ue(A);let w="";if(p.type==="bullets"){let C=e.params.loop?Math.ceil(b/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>b&&(C=b);for(let P=0;P<C;P+=1)p.renderBullet?w+=p.renderBullet.call(e,P,p.bulletClass):w+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?w=p.renderFraction.call(e,p.currentClass,p.totalClass):w=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?w=p.renderProgressbar.call(e,p.progressbarFillClass):w=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],A.forEach(C=>{p.type!=="custom"&&(C.innerHTML=w||""),p.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(qt(p.bulletClass)))}),p.type!=="custom"&&a("paginationRender",A[0])}function m(){e.params.pagination=mn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let b;typeof p.el=="string"&&e.isElement&&(b=e.el.querySelector(p.el)),!b&&typeof p.el=="string"&&(b=[...document.querySelectorAll(p.el)]),b||(b=p.el),!(!b||b.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(b)&&b.length>1&&(b=[...e.el.querySelectorAll(p.el)],b.length>1&&(b=b.filter(A=>Ri(A,".swiper")[0]===e.el)[0])),Array.isArray(b)&&b.length===1&&(b=b[0]),Object.assign(e.pagination,{el:b}),b=Ue(b),b.forEach(A=>{p.type==="bullets"&&p.clickable&&A.classList.add(...(p.clickableClass||"").split(" ")),A.classList.add(p.modifierClass+p.type),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(A.classList.add(`${p.modifierClass}${p.type}-dynamic`),c=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&A.classList.add(p.progressbarOppositeClass),p.clickable&&A.addEventListener("click",d),e.enabled||A.classList.add(p.lockClass)}))}function y(){const p=e.params.pagination;if(r())return;let b=e.pagination.el;b&&(b=Ue(b),b.forEach(A=>{A.classList.remove(p.hiddenClass),A.classList.remove(p.modifierClass+p.type),A.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(A.classList.remove(...(p.clickableClass||"").split(" ")),A.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(A=>A.classList.remove(...p.bulletActiveClass.split(" ")))}l("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:b}=e.pagination;b=Ue(b),b.forEach(A=>{A.classList.remove(p.horizontalClass,p.verticalClass),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),l("init",()=>{e.params.pagination.enabled===!1?x():(m(),f(),h())}),l("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),l("snapIndexChange",()=>{h()}),l("snapGridLengthChange",()=>{f(),h()}),l("destroy",()=>{y()}),l("enable disable",()=>{let{el:p}=e.pagination;p&&(p=Ue(p),p.forEach(b=>b.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),l("lock unlock",()=>{h()}),l("click",(p,b)=>{const A=b.target,w=Ue(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!A.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&A===e.navigation.nextEl||e.navigation.prevEl&&A===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);a(C===!0?"paginationShow":"paginationHide"),w.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ue(p),p.forEach(b=>b.classList.remove(e.params.pagination.paginationDisabledClass))),m(),f(),h()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ue(p),p.forEach(b=>b.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:g,disable:x,render:f,update:h,init:m,destroy:y})}function Na(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;const o=Mt();let s=!1,c=null,r=null,u,d,h,f;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 m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k,rtlTranslate:j}=e,{dragEl:v,el:B}=k,W=e.params.scrollbar,L=e.params.loop?e.progressLoop:e.progress;let V=d,I=(h-d)*L;j?(I=-I,I>0?(V=d-I,I=0):-I+d>h&&(V=h+I)):I<0?(V=d+I,I=0):I+d>h&&(V=h-I),e.isHorizontal()?(v.style.transform=`translate3d(${I}px, 0, 0)`,v.style.width=`${V}px`):(v.style.transform=`translate3d(0px, ${I}px, 0)`,v.style.height=`${V}px`),W.hide&&(clearTimeout(c),B.style.opacity=1,c=setTimeout(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3))}function y(k){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${k}ms`)}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k}=e,{dragEl:j,el:v}=k;j.style.width="",j.style.height="",h=e.isHorizontal()?v.offsetWidth:v.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=h*f:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?j.style.width=`${d}px`:j.style.height=`${d}px`,f>=1?v.style.display="none":v.style.display="",e.params.scrollbar.hide&&(v.style.opacity=0),e.params.watchOverflow&&e.enabled&&k.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function x(k){return e.isHorizontal()?k.clientX:k.clientY}function p(k){const{scrollbar:j,rtlTranslate:v}=e,{el:B}=j;let W;W=(x(k)-_n(B)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(h-d),W=Math.max(Math.min(W,1),0),v&&(W=1-W);const L=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(L),e.setTranslate(L),e.updateActiveIndex(),e.updateSlidesClasses()}function b(k){const j=e.params.scrollbar,{scrollbar:v,wrapperEl:B}=e,{el:W,dragEl:L}=v;s=!0,u=k.target===L?x(k)-k.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,k.preventDefault(),k.stopPropagation(),B.style.transitionDuration="100ms",L.style.transitionDuration="100ms",p(k),clearTimeout(r),W.style.transitionDuration="0ms",j.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",k)}function A(k){const{scrollbar:j,wrapperEl:v}=e,{el:B,dragEl:W}=j;s&&(k.preventDefault&&k.cancelable?k.preventDefault():k.returnValue=!1,p(k),v.style.transitionDuration="0ms",B.style.transitionDuration="0ms",W.style.transitionDuration="0ms",a("scrollbarDragMove",k))}function w(k){const j=e.params.scrollbar,{scrollbar:v,wrapperEl:B}=e,{el:W}=v;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",B.style.transitionDuration=""),j.hide&&(clearTimeout(r),r=ri(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",k),j.snapOnRelease&&e.slideToClosest())}function C(k){const{scrollbar:j,params:v}=e,B=j.el;if(!B)return;const W=B,L=v.passiveListeners?{passive:!1,capture:!1}:!1,V=v.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const I=k==="on"?"addEventListener":"removeEventListener";W[I]("pointerdown",b,L),o[I]("pointermove",A,L),o[I]("pointerup",w,V)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function D(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function O(){const{scrollbar:k,el:j}=e;e.params.scrollbar=mn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const v=e.params.scrollbar;if(!v.el)return;let B;if(typeof v.el=="string"&&e.isElement&&(B=e.el.querySelector(v.el)),!B&&typeof v.el=="string"){if(B=o.querySelectorAll(v.el),!B.length)return}else B||(B=v.el);e.params.uniqueNavElements&&typeof v.el=="string"&&B.length>1&&j.querySelectorAll(v.el).length===1&&(B=j.querySelector(v.el)),B.length>0&&(B=B[0]),B.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass);let W;B&&(W=B.querySelector(qt(e.params.scrollbar.dragClass)),W||(W=di("div",e.params.scrollbar.dragClass),B.append(W))),Object.assign(k,{el:B,dragEl:W}),v.draggable&&P(),B&&B.classList[e.enabled?"remove":"add"](...Kt(e.params.scrollbar.lockClass))}function S(){const k=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...Kt(e.isHorizontal()?k.horizontalClass:k.verticalClass)),D()}l("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const k=e.params.scrollbar;let{el:j}=e.scrollbar;j=Ue(j),j.forEach(v=>{v.classList.remove(k.horizontalClass,k.verticalClass),v.classList.add(e.isHorizontal()?k.horizontalClass:k.verticalClass)})}),l("init",()=>{e.params.scrollbar.enabled===!1?N():(O(),g(),m())}),l("update resize observerUpdate lock unlock changeDirection",()=>{g()}),l("setTranslate",()=>{m()}),l("setTransition",(k,j)=>{y(j)}),l("enable disable",()=>{const{el:k}=e.scrollbar;k&&k.classList[e.enabled?"remove":"add"](...Kt(e.params.scrollbar.lockClass))}),l("destroy",()=>{S()});const T=()=>{e.el.classList.remove(...Kt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Kt(e.params.scrollbar.scrollbarDisabledClass)),O(),g(),m()},N=()=>{e.el.classList.add(...Kt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Kt(e.params.scrollbar.scrollbarDisabledClass)),S()};Object.assign(e.scrollbar,{enable:T,disable:N,updateSize:g,setTranslate:m,init:O,destroy:S})}function hn(t){let{swiper:e,extendParams:i,on:l}=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 a=null,o,s,c=new Date().getTime();function r(L){const V=a;V.length!==0&&(V.innerHTML="",V.innerHTML=L)}function u(L){L===void 0&&(L=16);const V=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(L).replace(/x/g,V)}function d(L){L=Ue(L),L.forEach(V=>{V.setAttribute("tabIndex","0")})}function h(L){L=Ue(L),L.forEach(V=>{V.setAttribute("tabIndex","-1")})}function f(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("role",V)})}function m(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("aria-roledescription",V)})}function y(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("aria-controls",V)})}function g(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("aria-label",V)})}function x(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("id",V)})}function p(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("aria-live",V)})}function b(L){L=Ue(L),L.forEach(V=>{V.setAttribute("aria-disabled",!0)})}function A(L){L=Ue(L),L.forEach(V=>{V.setAttribute("aria-disabled",!1)})}function w(L){if(L.keyCode!==13&&L.keyCode!==32)return;const V=e.params.a11y,I=L.target;if(!(e.pagination&&e.pagination.el&&(I===e.pagination.el||e.pagination.el.contains(L.target))&&!L.target.matches(qt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const E=Ue(e.navigation.prevEl);Ue(e.navigation.nextEl).includes(I)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(V.lastSlideMessage):r(V.nextSlideMessage)),E.includes(I)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(V.firstSlideMessage):r(V.prevSlideMessage))}e.pagination&&I.matches(qt(e.params.pagination.bulletClass))&&I.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:L,prevEl:V}=e.navigation;V&&(e.isBeginning?(b(V),h(V)):(A(V),d(V))),L&&(e.isEnd?(b(L),h(L)):(A(L),d(L)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function D(){return P()&&e.params.pagination.clickable}function O(){const L=e.params.a11y;P()&&e.pagination.bullets.forEach(V=>{e.params.pagination.clickable&&(d(V),e.params.pagination.renderBullet||(f(V,"button"),g(V,L.paginationBulletMessage.replace(/\{\{index\}\}/,mi(V)+1)))),V.matches(qt(e.params.pagination.bulletActiveClass))?V.setAttribute("aria-current","true"):V.removeAttribute("aria-current")})}const S=(L,V,I)=>{d(L),L.tagName!=="BUTTON"&&(f(L,"button"),L.addEventListener("keydown",w)),g(L,I),y(L,V)},T=L=>{s&&s!==L.target&&!s.contains(L.target)&&(o=!0),e.a11y.clicked=!0},N=()=>{o=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},k=L=>{c=new Date().getTime()},j=L=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const V=L.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!V||!e.slides.includes(V))return;s=V;const I=e.slides.indexOf(V)===e.activeIndex,E=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(V);I||E||L.sourceCapabilities&&L.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{o||(e.params.loop?e.slideToLoop(parseInt(V.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(V),0),o=!1)}))},v=()=>{const L=e.params.a11y;L.itemRoleDescriptionMessage&&m(e.slides,L.itemRoleDescriptionMessage),L.slideRole&&f(e.slides,L.slideRole);const V=e.slides.length;L.slideLabelMessage&&e.slides.forEach((I,E)=>{const R=e.params.loop?parseInt(I.getAttribute("data-swiper-slide-index"),10):E,F=L.slideLabelMessage.replace(/\{\{index\}\}/,R+1).replace(/\{\{slidesLength\}\}/,V);g(I,F)})},B=()=>{const L=e.params.a11y;e.el.append(a);const V=e.el;L.containerRoleDescriptionMessage&&m(V,L.containerRoleDescriptionMessage),L.containerMessage&&g(V,L.containerMessage);const I=e.wrapperEl,E=L.id||I.getAttribute("id")||`swiper-wrapper-${u(16)}`,R=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";x(I,E),p(I,R),v();let{nextEl:F,prevEl:U}=e.navigation?e.navigation:{};F=Ue(F),U=Ue(U),F&&F.forEach(Q=>S(Q,E,L.nextSlideMessage)),U&&U.forEach(Q=>S(Q,E,L.prevSlideMessage)),D()&&Ue(e.pagination.el).forEach(oe=>{oe.addEventListener("keydown",w)}),Mt().addEventListener("visibilitychange",k),e.el.addEventListener("focus",j,!0),e.el.addEventListener("focus",j,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",N,!0)};function W(){a&&a.remove();let{nextEl:L,prevEl:V}=e.navigation?e.navigation:{};L=Ue(L),V=Ue(V),L&&L.forEach(E=>E.removeEventListener("keydown",w)),V&&V.forEach(E=>E.removeEventListener("keydown",w)),D()&&Ue(e.pagination.el).forEach(R=>{R.removeEventListener("keydown",w)}),Mt().removeEventListener("visibilitychange",k),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",j,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",N,!0))}l("beforeInit",()=>{a=di("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),l("afterInit",()=>{e.params.a11y.enabled&&B()}),l("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&v()}),l("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),l("paginationUpdate",()=>{e.params.a11y.enabled&&O()}),l("destroy",()=>{e.params.a11y.enabled&&W()})}function bi(t){let{swiper:e,extendParams:i,on:l,emit:a,params:o}=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 s,c,r=o&&o.autoplay?o.autoplay.delay:3e3,u=o&&o.autoplay?o.autoplay.delay:3e3,d,h=new Date().getTime(),f,m,y,g,x,p,b;function A(V){!e||e.destroyed||!e.wrapperEl||V.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",A),!(b||V.detail&&V.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(u=d,f=!1);const V=e.autoplay.paused?d:h+u-new Date().getTime();e.autoplay.timeLeft=V,a("autoplayTimeLeft",V,V/r),c=requestAnimationFrame(()=>{w()})},C=()=>{let V;return e.virtual&&e.params.virtual.enabled?V=e.slides.filter(E=>E.classList.contains("swiper-slide-active"))[0]:V=e.slides[e.activeIndex],V?parseInt(V.getAttribute("data-swiper-autoplay"),10):void 0},P=V=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),w();let I=typeof V>"u"?e.params.autoplay.delay:V;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const E=C();!Number.isNaN(E)&&E>0&&typeof V>"u"&&(I=E,r=E,u=E),d=I;const R=e.params.speed,F=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(R,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,R,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(R,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,R,!0,!0),a("autoplay")),e.params.cssMode&&(h=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return I>0?(clearTimeout(s),s=setTimeout(()=>{F()},I)):requestAnimationFrame(()=>{F()}),I},D=()=>{h=new Date().getTime(),e.autoplay.running=!0,P(),a("autoplayStart")},O=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},S=(V,I)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),V||(p=!0);const E=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",A):T()};if(e.autoplay.paused=!0,I){x&&(d=e.params.autoplay.delay),x=!1,E();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-h),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),E())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(h=new Date().getTime(),p?(p=!1,P(d)):P(),e.autoplay.paused=!1,a("autoplayResume"))},N=()=>{if(e.destroyed||!e.autoplay.running)return;const V=Mt();V.visibilityState==="hidden"&&(p=!0,S(!0)),V.visibilityState==="visible"&&T()},k=V=>{V.pointerType==="mouse"&&(p=!0,b=!0,!(e.animating||e.autoplay.paused)&&S(!0))},j=V=>{V.pointerType==="mouse"&&(b=!1,e.autoplay.paused&&T())},v=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",j))},B=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",j))},W=()=>{Mt().addEventListener("visibilitychange",N)},L=()=>{Mt().removeEventListener("visibilitychange",N)};l("init",()=>{e.params.autoplay.enabled&&(v(),W(),D())}),l("destroy",()=>{B(),L(),e.autoplay.running&&O()}),l("_freeModeStaticRelease",()=>{(y||p)&&T()}),l("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?O():S(!0,!0)}),l("beforeTransitionStart",(V,I,E)=>{e.destroyed||!e.autoplay.running||(E||!e.params.autoplay.disableOnInteraction?S(!0,!0):O())}),l("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){O();return}m=!0,y=!1,p=!1,g=setTimeout(()=>{p=!0,y=!0,S(!0)},200)}}),l("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(g),clearTimeout(s),e.params.autoplay.disableOnInteraction){y=!1,m=!1;return}y&&e.params.cssMode&&T(),y=!1,m=!1}}),l("slideChange",()=>{e.destroyed||!e.autoplay.running||(x=!0)}),Object.assign(e.autoplay,{start:D,stop:O,pause:S,resume:T})}function Da(t){let{swiper:e,extendParams:i,emit:l,once:a}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function o(){if(e.params.cssMode)return;const r=e.getTranslate();e.setTranslate(r),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:r,touches:u}=e;r.velocities.length===0&&r.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Vt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:h,rtlTranslate:f,snapGrid:m,touchEventsData:y}=e,x=Vt()-y.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<m.length?e.slideTo(m.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(y.velocities.length>1){const O=y.velocities.pop(),S=y.velocities.pop(),T=O.position-S.position,N=O.time-S.time;e.velocity=T/N,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(N>150||Vt()-O.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,y.velocities.length=0;let p=1e3*d.freeMode.momentumRatio;const b=e.velocity*p;let A=e.translate+b;f&&(A=-A);let w=!1,C;const P=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let D;if(A<e.maxTranslate())d.freeMode.momentumBounce?(A+e.maxTranslate()<-P&&(A=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.maxTranslate(),d.loop&&d.centeredSlides&&(D=!0);else if(A>e.minTranslate())d.freeMode.momentumBounce?(A-e.minTranslate()>P&&(A=e.minTranslate()+P),C=e.minTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.minTranslate(),d.loop&&d.centeredSlides&&(D=!0);else if(d.freeMode.sticky){let O;for(let S=0;S<m.length;S+=1)if(m[S]>-A){O=S;break}Math.abs(m[O]-A)<Math.abs(m[O-1]-A)||e.swipeDirection==="next"?A=m[O]:A=m[O-1],A=-A}if(D&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?p=Math.abs((-A-e.translate)/e.velocity):p=Math.abs((A-e.translate)/e.velocity),d.freeMode.sticky){const O=Math.abs((f?-A:A)-e.translate),S=e.slidesSizesGrid[e.activeIndex];O<S?p=d.speed:O<2*S?p=d.speed*1.5:p=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating=!0,$i(h,()=>{!e||e.destroyed||!y.allowMomentumBounce||(l("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(C),$i(h,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(l("_freeModeNoMomentumRelease"),e.updateProgress(A),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,$i(h,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(A),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&l("_freeModeNoMomentumRelease");(!d.freeMode.momentum||x>=d.longSwipesMs)&&(l("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:s,onTouchEnd:c}})}const Va=({children:t,isPadding:e=!0,style:i,enableSlideActive:l=!1})=>{const a=n.useRef(),{popupDetailData:o}=Be();return n.useEffect(()=>{var s,c;l&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=o?.multiCheckIndex)!==null&&c!==void 0?c:0))},[o,l]),n.createElement(Xt,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Da,Na,Vi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var gi=n.memo(Va);const Ba=n.forwardRef((t,e)=>{const{src:i,onLoad:l,style:a,className:o,loading:s,alt:c="image"}=t,[r,u]=n.useState(i),d=n.useRef(null),[h,f]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:m=>{m&&u(m)}})),n.useEffect(()=>{i&&u(i)},[i]),n.useEffect(()=>{const m=()=>{i&&!h&&d.current&&(d.current.src="",d.current.src=i)};return bt.on(pt.PAGE_DID_SHOW,m),()=>{bt.off(pt.PAGE_DID_SHOW,m)}},[i,h]),n.createElement(n.Fragment,null,!h&&!r&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:r}),n.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),n.createElement("img",{ref:d,className:o,src:r,style:Object.assign({},a),loading:s,onLoad:m=>{f(!0),l?.(m.target)},alt:c})):n.createElement("img",{ref:d,className:o,src:r,style:Object.assign({},a),loading:s,onLoad:m=>{f(!0),l?.(m.target)},alt:c}))});var It=n.memo(Ba);const Fa=({products:t,data:e,defImg:i,style:l,onCLick:a,popupDetailData:o,check:s})=>{var c;const{productView:r}=Pt(),{popupCurTimeRef:u}=Be(),d=(h,f)=>{if(s===f)return;const m=t?.[s];r(o,m,m?.bindCta,u.current,o?.index),a?.(f)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!o)&&n.createElement(gi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},l),e?.style)},(c=o?t:[0,1,2,3])===null||c===void 0?void 0:c.map((h,f)=>{var m,y,g;return n.createElement(n.Fragment,null,h?.bindCta?n.createElement(Nt,{className:Le.css({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{d(h,f)},key:f},n.createElement(It,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(g=(m=h?.cover)!==null&&m!==void 0?m:(y=h?.homePage)===null||y===void 0?void 0:y[0])!==null&&g!==void 0?g:i})):null)})))};var vl=n.memo(Fa);const Wa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",za=({visible:t,onClose:e,children:i,modalStyle:l,padding:a,popup:o,schema:s,fullHeight:c=window.innerHeight,isFullScreen:r=!1,openState:u})=>{var d,h,f,m,y,g,x,p,b,A,w,C,P,D,O,S,T,N,k,j,v,B,W,L;const V=n.useRef(null),I=n.useRef(null),E=n.useRef(null),R=n.useRef(null),F=n.useRef(null),U=c*.2,G=r?c:c*.8,[Q,oe]=n.useState(U),[se,J]=n.useState(!1),ye=n.useRef(null),{globalConfig:Te,popupDetailData:De}=Be(),{schema:de,popup:ue}=Zt(),[Xe,Fe]=n.useState(15);n.useEffect(()=>{const ce=document.getElementById("sxp-render"),H=document.getElementById("pb-modal");H?ye.current=H:(ye.current=document.createElement("div"),ye.current.setAttribute("id","pb-modal"),ce?.appendChild(ye.current))},[]);const We=n.useMemo(()=>o?.id&&o?.id!==""||t,[t,o]),we=n.useMemo(()=>{var ce,H,_;const pe=s??de;return(_=(H=(ce=pe?.sxpPageConf)===null||ce===void 0?void 0:ce.globalConfig)===null||H===void 0?void 0:H.popupList)===null||_===void 0?void 0:_.find(fe=>fe?.id===o?.id)},[o,s,de]),Ke=n.useMemo(()=>{var ce,H;return((H=(ce=we?.item)===null||ce===void 0?void 0:ce.event)===null||H===void 0?void 0:H.isScrollFullScreen)||!1},[we]);n.useEffect(()=>{We?J(!0):setTimeout(()=>{J(!1),oe(U)},o?.duration)},[We,o]);const Ge=n.useCallback(()=>i,[ue,u,Te,s]);if(n.useEffect(()=>{const ce=H=>{var _=H?.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])'),pe=_?.[0],Y=_?.[_?.length-1],fe=9;H.addEventListener("keydown",function(Ae){(Ae.key==="Escape"||Ae.key==="Esc")&&(Ze(),Ae.preventDefault());var ee=Ae.key==="Tab"||Ae.keyCode===fe;ee&&(Ae.shiftKey?document?.activeElement===pe&&(Y?.focus(),Ae.preventDefault()):document?.activeElement===Y&&(pe?.focus(),Ae.preventDefault()))}),pe?.focus()};return F?.current&&ce(F?.current),()=>{var H;(H=F?.current)===null||H===void 0||H.removeEventListener("keydown",ce)}},[F,se,ue]),!ye.current)return null;const Ze=st.debounce(()=>{e?.()},300),at=ce=>{V.current=ce.touches[0],I.current=ce.touches[0],E.current=!0},wt=ce=>{requestAnimationFrame(()=>{var H;if(E.current&&((H=R?.current)===null||H===void 0?void 0:H.scrollTop)===0){const _=ce.touches[0].clientY,pe=ce.touches[0].clientX,Y=V.current.clientY-_;V.current=ce.touches[0];const fe=_-I.current.clientY,Ae=pe-I.current.clientX;if(Math.abs(Ae)>Math.abs(fe))return;const ee=Q-Y;ee>0&&oe(ee)}})},je=ce=>{var H;if(E.current&&((H=R?.current)===null||H===void 0?void 0:H.scrollTop)===0){const _=ce.changedTouches[0].clientY-I.current.clientY,pe=ce.changedTouches[0].clientX-I.current.clientX;if(Math.abs(pe)>Math.abs(_))return;const Y=I.current.clientY-V.current.clientY;Y>0?oe(0):Q<U&&Y<0?oe(U):Q>=U&&Y<0&&e?.()}E.current=!1};return In.createPortal(n.createElement(n.Fragment,null,se&&n.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:We?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},l),onClick:Ze},n.createElement("div",{style:{position:"relative",left:`${(m=(f=(h=(d=we?.item)===null||d===void 0?void 0:d.props)===null||h===void 0?void 0:h.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&m!==void 0?m:0}px`,right:`${(p=(x=(g=(y=we?.item)===null||y===void 0?void 0:y.props)===null||g===void 0?void 0:g.popupBg)===null||x===void 0?void 0:x.horizontalMargin)!==null&&p!==void 0?p:0}px`,bottom:`${(C=(w=(A=(b=we?.item)===null||b===void 0?void 0:b.props)===null||A===void 0?void 0:A.popupBg)===null||w===void 0?void 0:w.bottomMargin)!==null&&C!==void 0?C:0}px`,overflow:"hidden",width:`calc(100% - ${((S=(O=(D=(P=we?.item)===null||P===void 0?void 0:P.props)===null||D===void 0?void 0:D.popupBg)===null||O===void 0?void 0:O.horizontalMargin)!==null&&S!==void 0?S:0)*2}px)`,height:"100%"}},n.createElement("div",Object.assign({ref:F,className:`modal-container ${We?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=we?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:a,animationDuration:((N=o?.duration)!==null&&N!==void 0?N:0)/1e3+"s"},Ke&&{transform:`translateY(${Q}px)`}),{overflow:"hidden",borderRadius:`${(B=(v=(j=(k=we?.item)===null||k===void 0?void 0:k.props)===null||j===void 0?void 0:j.popupBg)===null||v===void 0?void 0:v.borderRadius)!==null&&B!==void 0?B:0}px`,zIndex:9}),onClick:ce=>{ce.stopPropagation(),ce.preventDefault()}},Ke&&{onTouchMove:wt,onTouchStart:at,onTouchEnd:je}),n.createElement("div",Object.assign({id:"modal-content",ref:R,style:{height:Ke?c:G,overflow:Ke&&Q<=0||!Ke?"auto":"hidden",zIndex:1}},((L=(W=we?.item)===null||W===void 0?void 0:W.props)===null||L===void 0?void 0:L.enableFixedCloseButton)&&{onScroll:ce=>{var H;Fe(15-((H=ce?.target)===null||H===void 0?void 0:H.scrollTop))}}),Ge()),n.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Xe}},n.createElement("img",{src:Te?.popupCloseIcon||Wa,alt:"close button",className:"modal-icon"})))))),ye.current)};var ui=n.memo(za);const Ua=({text:t,maxStr:e=108,style:i,className:l,onClick:a,foldText:o,unfoldText:s,isPost:c,onChange:r})=>{const[u,d]=n.useState(!1),[h,f]=n.useState(!1),m=i||{},{lineClamp:y}=m,g=it(m,["lineClamp"]),x=Number(y||2),p=n.useRef(null),b=n.useRef(null),A=n.useRef(),w=()=>{d(!u)},C=n.useCallback(()=>{!p.current||!b.current||!c||!t||u||requestAnimationFrame(()=>{const P=p.current.getBoundingClientRect().height,D=b.current.getBoundingClientRect().height,O=P>D+1;f(O)})},[c,t,u]);return n.useEffect(()=>{if(p.current)return A.current=new ResizeObserver(C),A.current.observe(p.current),C(),()=>{var P;(P=A.current)===null||P===void 0||P.disconnect()}},[C]),n.createElement("div",{className:l,style:Object.assign(Object.assign({},g),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},n.createElement("div",{ref:b,style:Object.assign(Object.assign({},!u&&c&&{WebkitLineClamp:x,lineClamp:x,textOverflow:"ellipsis",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical"}),{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content"}),dangerouslySetInnerHTML:{__html:Pe(t?.replace(/\n/g,"</br>"),g)}}),n.createElement("div",{ref:p,style:{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content",visibility:"hidden",position:"absolute",opacity:0,clipPath:"inset(100%)",transform:"translateX(-9999px)"},dangerouslySetInnerHTML:{__html:Pe(t?.replace(/\n/g,"</br>"),g)}}),t&&c&&h&&n.createElement("button",{"aria-label":u?s||"show less":o||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:a??w,dangerouslySetInnerHTML:{__html:Pe(u?s||"show less":o||"show more",g)}}))};var yi=n.memo(Ua);const Ha=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:l,file:a,src:o}=t;switch(i){case 2:return l||null;case 3:return o||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},Xa=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",wi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:l,style:a})=>{var o,s,c,r,u,d,h,f;let m="";if((!t?.currency||!t?.price)&&l)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return m;let g=i?.priceSymbol,x=t?.currency?(c=(s=(o=t?.currency)===null||o===void 0?void 0:o.split("-")[1])===null||s===void 0?void 0:s.toUpperCase())!==null&&c!==void 0?c:"":"$";const p=e===void 0||e;let b=y?.toString();g?.showTwoDecimalPoint&&(b=y?.toFixed(2));let A=(r=b?.indexOf("."))!==null&&r!==void 0?r:-1;if(p){m=(u=y?.toLocaleString("zh",{minimumFractionDigits:g?.showTwoDecimalPoint?2:0}))!==null&&u!==void 0?u:"";let w=0,C=A??m?.length;g?.millesimalSymbol==="."?m=m?.replace(/\,/g,function(P,D){return D>=w&&D<C?".":P}):g?.millesimalSymbol===" "&&(m=m?.replace(","," "))}else m=`${g?.showTwoDecimalPoint?y?.toFixed(2):y}`;return g?.decimalPoint===","&&A>0&&(m=m=m?.replace(/\./g,function(w,C){return C>=A&&C<m?.length?",":w})),x=`<span style="font-family:${(f=(h=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&h!==void 0?h:a?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${x}</span>`,m=Pe(m,a),g?.currencyPosition&&g?.currencyPosition!=="none"?m=g?.currencyPosition==="left"?x+m:m+x:g?.currencyPosition!=="none"&&(m=x+m),m},qa=t=>{var e,i,l,a,o,s,c,r,u,d,h,f,m,y,g,x,p,b,A,w,C,P,D,O,{content:S,style:T,bgImg:N,onClick:k,schema:j,isDefault:v,bottom_image:B,tipText:W,isPost:L,viewTime:V,rec:I,swiper:E,commodityStyles:R,buttonStyle:F,index:U,commodityGroup:G,popupBg:Q,iframeIcon:oe,commodityImgRatio:se,isTel:J,iframeBgColor:ye,isActive:Te=!0}=t,De=it(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:de,popupDetailData:ue,isPreview:Xe,bffFbReport:Fe,popupCurTimeRef:We,checkCommodityIndexRef:we,globalConfig:Ke}=Be(),{jumpToWeb:Ge,productView:Ze}=Pt(),at=n.useRef(null),[wt,je]=n.useState(!1),[ce,H]=n.useState(!1),[_,pe]=n.useState((e=ue?.multiCheckIndex)!==null&&e!==void 0?e:0),Y=n.useRef(),[fe,Ae]=n.useState(0),ee=L?I:ue;let z=L?ee?.product:(l=(i=ee?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&l!==void 0?l:(o=(a=ee?.video)===null||a===void 0?void 0:a.bindProducts)===null||o===void 0?void 0:o[0],Re=L?(s=ee?.product)===null||s===void 0?void 0:s.bindCta:(u=(r=(c=ee?.video)===null||c===void 0?void 0:c.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&u!==void 0?u:(f=(h=(d=ee?.video)===null||d===void 0?void 0:d.bindProducts)===null||h===void 0?void 0:h[0])===null||f===void 0?void 0:f.bindCta;const Je=L?U:ue?.index;if(!L&&G?.open&&(!((m=ee?.video)===null||m===void 0)&&m.bindProducts)&&((g=(y=ee?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0?void 0:g.length)>0){we.current=_;const $=(x=ee?.video)===null||x===void 0?void 0:x.bindProducts[_];z=$,Re=$?.bindCta}const ut=$=>{z?.link&&(Ge($,ee,z,Re,Je),L||Ze(ee,z,Re,V||at.current,Je),window.location.href=window.getJointUtmLink(z.link))};n.useEffect(()=>{Te&&(Fe?.({eventName:"ProductView",product:z}),Fe?.({eventName:"PageView",product:z}))},[Te,Fe]),n.useEffect(()=>{const $=()=>{at.current=new Date};return $(),window.addEventListener("pageshow",$),()=>{window.removeEventListener("pageshow",$)}},[]);const ze=wi({product:z,enableFormattedPrice:(p=R?.price)===null||p===void 0?void 0:p.enableFormattedPrice,globalConfig:Ke,style:R?.price}),_e=(Xe?375:(b=T?.width)!==null&&b!==void 0?b:window.innerWidth)-((A=Q?.horizontalMargin)!==null&&A!==void 0?A:0)*2,Me=se?_e*(se.h/se.w):_e,Qe=({isPost:$})=>{var qe,vt,Qt,$t;return n.createElement("div",null,n.createElement("div",{className:"pb-commondity-content-collection",style:mt(R?.collection),hidden:!!z&&(!z?.collection||z?.collection===""),dangerouslySetInnerHTML:{__html:Pe((qe=z?.collection)!==null&&qe!==void 0?qe:"Tiffany Lock",R?.collection)}}),n.createElement("div",{className:"pb-commondity-content-title",style:mt(R?.title),hidden:!!z&&!z?.title,dangerouslySetInnerHTML:{__html:Pe((vt=z?.title)!==null&&vt!==void 0?vt:"Pendant in Yellow Gold with Diamonds, Medium",R?.title)}}),n.createElement("div",{className:"pb-commondity-content-price",style:mt(R?.price),hidden:!!z&&!z?.price,dangerouslySetInnerHTML:{__html:ze??""}}),n.createElement("div",{hidden:!!z&&!z?.taxInfo,style:mt(R?.taxInfo),dangerouslySetInnerHTML:{__html:Pe((Qt=z?.taxInfo)!==null&&Qt!==void 0?Qt:"\u7A0E\u8D39",R?.taxInfo)}}),n.createElement("div",{hidden:!!z&&(!z?.info||z?.info==="")},n.createElement(yi,{foldText:W?.foldText,unfoldText:W?.unfoldText,onClick:()=>je(!0),isPost:$,text:($t=z?.info)!==null&&$t!==void 0?$t:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var st=require("lodash"),Pl=require("uuid"),Ol=require("pako"),n=require("react"),En=require("qs"),Ml=require("eventemitter3"),Le=require("@emotion/css"),kn=require("react-dom");function Ll(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var l=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var In=Ll(kn);function it(t,e){var i={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(i[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,l=Object.getOwnPropertySymbols(t);a<l.length;a++)e.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(t,l[a])&&(i[l[a]]=t[l[a]]);return i}function rt(t,e,i,l){function a(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function c(d){try{u(l.next(d))}catch(h){s(h)}}function r(d){try{u(l.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):a(d.value).then(c,r)}u((l=l.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const jl=/:\w+/g;var Cn=(t,e)=>rt(void 0,void 0,void 0,function*(){const i={},l={};for(let a=0;a<e?.length;a++){const{id:o,method:s,url:c,urlParams:r,name:u,queryString:d,headers:h,body:f}=e[a];let m=c;r&&Object.entries(r).forEach(([y,g])=>{m=m.replace(jl,x=>x===y?g:x)}),d&&(m+=d),l[o]=u;try{const y=yield fetch(m,{method:s,headers:Object.assign({"Content-Type":"application/json"},h),body:JSON.stringify(f)}).then(g=>g.json());i[o]=y}catch(y){console.error("DataSource request error: ",y),i[o]={}}}return{$store:i,idMapName:l}});const Pn="SXP_TOKEN_INFO",Rl=(t,e)=>rt(void 0,void 0,void 0,function*(){var i;const l=t.getTenantId(),a=t.getAppId(),o=t.getApiUrl(),s=window.localStorage.getItem(Pn);let c=JSON.parse(s||"{}");if(Date.now()>((i=c?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${o}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":l||"","x-app-id":a||""}}).then(d=>d.json());if(u.success){const d=u.data;c=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(Pn,JSON.stringify(c))}}return c});function Ci(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),l=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)l[a]=i[0|Math.random()*e];else{let o;for(l[8]=l[13]=l[18]=l[23]="-",l[14]="4",a=0;a<36;a++)l[a]||(o=0|Math.random()*16,l[a]=i[a===19?o&3|8:o])}return l.join("")}const Nl=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*l)),a+=1;return e},Dl=()=>{const t=Pl.v4();return t?.replaceAll?t.replaceAll("-",""):Nl(32)},Pe=(t,e)=>{if(!t)return"";let i="";const l=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!l&&!a)return t;let o=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${l??"inherit"}`,u=`font-family:${a??"inherit"}`,d=f=>{const m=f.search(s),y=f.search(c);return m!==-1&&y!==-1&&m<y&&(i+=`<span style="${r}">${f.substring(m,y)}</span>`,o=f.substring(y,f?.length)),m!==-1&&y!==-1&&m>y&&(i+=`<span style="${u}">${f.substring(y,m)}</span>`,o=f.substring(m,f?.length)),m===-1?(i+=`<span style="${u}">${f.substring(y,f?.length)}</span>`,o="",!1):y===-1?(i+=`<span style="${r}">${f.substring(m,f?.length)}</span>`,o="",!1):!0};let h=!0;for(;h;)h=d(o);return i};function On(t){const i=document.cookie.split(";");let l=null;return i.forEach(a=>{const[o,s]=a.trim().split("=");o===t&&(l=s)}),l??""}function Yi(){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 ii(t){if(!t)return;const e=[];for(let a=0;a<t.length;a++){const o=t[a],s=t.substring(a+1,t.length);o==="&"&&s?.indexOf("=")!==-1&&(s?.indexOf("=")<s?.indexOf("&")||s?.indexOf("&")===-1)&&e.push(a)}const i=e.length>0?[]:[t];let l=0;return e?.map(a=>{i?.push(t.substring(l,a)),l=a+1,a===e[e.length-1]&&a<t.length&&i?.push(t.substring(l,t.length))}),i??[]}function Mn(t){const i=atob(t).split("").map(function(o){return o.charCodeAt(0)}),l=new Uint8Array(i),a=Ol.inflate(l,{to:"string"});return JSON.parse(a)}let Gi=null;const Vl={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Bl{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Gi)return Gi;Gi=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Vl[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Et=null;const Fl={init:({appId:t,tenantId:e,env:i="live",apiUrl:l})=>{Et||(Et=new Bl),l&&Et.setApiUrl(l),Et.setAppId(t),Et.setTenantId(e),Et.setEnv(i)},getDetail:t=>{if(!Et)return;const e=Et.getTenantId(),i=Et.getAppId(),l=Et.getApiUrl();return fetch(`${l}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var o,s;const c=yield a.json(),r=Mn((o=c?.data)===null||o===void 0?void 0:o.data);if(r){const{$store:u}=yield Cn(l,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>rt(void 0,void 0,void 0,function*(){if(!Et)return;const e=Et.getTenantId(),i=Et.getAppId(),l=Et.getApiUrl();return fetch(`${l}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var o;const s=yield a.json();return s.success?(o=s?.data)===null||o===void 0?void 0:o.map(r=>Object.assign(Object.assign({},r),{data:Mn(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>rt(void 0,void 0,void 0,function*(){if(!Et)return;const e=yield Rl(Et,t),i=Ci(0,0);let l=window.localStorage.getItem("SXP_FAKE_SESSION_ID");st.isEmpty(l)&&(l=Ci(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",l));const a=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:l,channel:e.channel,maxRecs:10,requestId:i})}).then(o=>o.json());return a?.data||null})};function Zt(){return n.useContext(qn)}function Wl(){return n.useContext(Xn)}const Zi="feRealSessionIdKey",Ln=()=>{const t=Dl();return`${Date.now()}${t}`},zl=()=>{let t=Ul();return t||(t=Ln(),window.localStorage.setItem(Zi,t)),t},Ki=()=>{const t=Ln();window.localStorage.setItem(Zi,t)},Ul=()=>window.localStorage.getItem(Zi),jn="SXP_FAKE_USER_ID",Rn="FAKE_USER_STATE",Nn="AGREE_POLICY",Dn="SLIDE_SKIP_STATE",Vn="CCONTSENT_STATE",Bn="USER_CONSENT_RESULT",Hl=()=>{let t=window.localStorage.getItem(jn);return st.isEmpty(t)&&(t=Ci(36,62),window.localStorage.setItem(jn,t)),t},Xl=()=>{const t=window.localStorage.getItem(Rn);return st.isEmpty(t)&&window.localStorage.setItem(Rn,"true"),st.isEmpty(t)},ql=()=>{const t=window.localStorage.getItem(Dn);return st.isEmpty(t)},Yl=()=>{window.localStorage.setItem(Dn,"true")},Gl=()=>{const t=window.localStorage.getItem(Vn);return st.isEmpty(t)&&window.localStorage.setItem(Vn,"true"),st.isEmpty(t)},Fn=()=>window.localStorage.getItem(Bn)==="true",Wn=()=>{window.localStorage.setItem(Bn,"true")};function St(t,e){const{appDomain:i}=Be();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const bt=new Ml;var pt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(pt||(pt={}));const Zl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:l,privacy_policy_url:a,privacy_policy_title:o})=>{const{setIsAgreePolicy:s,bffEventReport:c}=Be(),r=n.useMemo(()=>{var h;const f=location.search.slice(1),m={};(h=ii(f.replace(/\+/g,"%2B")))===null||h===void 0||h.map(y=>{const g=y.split("=")[0],x=y.split("=")[1];m[g]=x});for(const y in m)m[y]=m[y].replace(/%2B/g,"+");return m},[]),u=h=>{var f;return(f=r[h])!==null&&f!==void 0?f:null};n.useEffect(()=>{c?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:u("utm_source"),utmMedium:u("utm_medium"),utmCampaign:u("utm_campaign"),utmId:u("utm_id"),utmContent:u("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{c?.({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}}),s?.(!0),window.localStorage.setItem(Nn,"yes")};return n.createElement("div",{className:"consent-bg"},n.createElement("div",{className:"consent"},n.createElement("div",{className:"consent-col"},n.createElement("div",{className:"consent-title"},i??"Privacy Policy"),n.createElement("div",{className:"consent-content"},l??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),n.createElement("div",{className:"consent-col"},n.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},o??"More information"))))};var Kl=n.memo(Zl);const zn=n.createContext({rtcList:[],tagList:[]});var _i;(function(t){t[t.BFF=5]="BFF"})(_i||(_i={}));const Pi="FOR U",_l=({render:t,dataSources:e,utmVal:i,enableReportEvent:l=!0,maxSize:a,defaultSize:o,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,loadingImage:d,isOpenHashTag:h=!1,enabledMetaConversionApi:f=!1,consentHeight:m,consentWidth:y,isOpenConsent:g=!1,isEditor:x=!1,utmParameter:p,channelQueryList:b,data:A,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:D})=>{var O,S,T,N,k;const[j,v]=n.useState([]),[B,W]=n.useState([]),[L,V]=n.useState(!0),[I,E]=n.useState({rtc:"",requestId:""}),R=n.useRef(null),F=n.useRef(!1),[U,G]=n.useState(()=>!!window.localStorage.getItem(Nn)),[Q,oe]=n.useState(),[se,J]=n.useState(),[ye,Te]=n.useState(h),[De,de]=n.useState([]),[ue,Xe]=n.useState(0),[Fe,We]=n.useState(!1),[we,Ke]=n.useState(null),Ge=n.useRef(),Ze=n.useRef(),at=n.useRef(),[wt,je]=n.useState(Pi),ce=n.useRef(-1),H=n.useRef(null),[_,pe]=n.useState(!1),[Y,fe]=n.useState((S=(O=A?.data)===null||O===void 0?void 0:O.sxpPageConf)===null||S===void 0?void 0:S.globalConfig),[Ae,ee]=n.useState(),[z,Re]=n.useState(!1),[Je,ut]=n.useState(),[ze,_e]=n.useState(),[Me,Qe]=n.useState([]),[lt,mt]=n.useState(),[Lt,jt]=n.useState(),gt=n.useMemo(()=>Ae??A,[Ae,A]),ht=n.useMemo(()=>{var X,q,ae,Ee;return(((Ee=(ae=(q=(X=Y?.consent)===null||X===void 0?void 0:X[0])===null||q===void 0?void 0:q.item)===null||ae===void 0?void 0:ae.props)===null||Ee===void 0?void 0:Ee.privacy_necessity)&&!U&&!x||g)&&z},[U,Y,g,x,z]),Wt=n.useCallback(X=>{D?.(X),_e(X)},[]),xt=n.useCallback(X=>{var q;const ae=X?.recList;return(q=ae?.map(he=>{var be,Oe,Ne,xe,M,Z;if(!((be=he?.video)===null||be===void 0)&&be.bindProducts&&((Ne=(Oe=he?.video)===null||Oe===void 0?void 0:Oe.bindProducts)===null||Ne===void 0?void 0:Ne.length)>0){const K=(Z=(M=(xe=he?.video)===null||xe===void 0?void 0:xe.bindProducts)===null||M===void 0?void 0:M.filter(ne=>!!ne?.bindCta))!==null&&Z!==void 0?Z:[];return Object.assign(Object.assign({},he),{video:Object.assign(Object.assign({},he?.video),{bindProducts:K})})}return he}))!==null&&q!==void 0?q:[]},[]);n.useEffect(()=>{let X;return Me.length>0&&(X=setInterval(()=>{const ae=new Date,Ee=15*1e3;Qe(he=>he.filter(be=>ae-be.time<=Ee))},1e3)),()=>{clearInterval(X)}},[Me]),n.useEffect(()=>{const X=q=>{Ge.current=q};return bt.on(pt.CHANGE_THEME_TAG,X),()=>{bt.off(pt.CHANGE_THEME_TAG,X)}},[]),n.useEffect(()=>{Te(h)},[h]);const He=n.useMemo(()=>e?.find(X=>X.type===_i.BFF),[e]),Se=n.useMemo(()=>{var X;return((X=He?.headers)===null||X===void 0?void 0:X["x-app-id"])+Hl()},[He]),$=n.useCallback((X,q)=>{var ae,Ee;if(!He)return;const he=He.url;if(q?.query){const M=En.stringify(q.query);X=`${X}?${M}`}let be=!1;const Oe={},Ne=location.search.slice(1);(ae=ii(Ne))===null||ae===void 0||ae.forEach(M=>{const Z=M.split("=")[0],K=M.split("=")[1];Oe[Z]=K});const xe=Oe?.cl_source;return xe&&(!((Ee=["40A-SPRK--DRESS_EYEWEAR-","41A-SPRK--MADRAGUE-","42A-SPRK--MOOD-","43A-SPRK--SUMMER-","44A-SPRK--DRESS_EYEWEAR-","45A-SPRK--MADRAGUE-","46A-SPRK--MOOD-","47A-SPRK--SUMMER-","48A-SPRK--DRESS_EYEWEAR-","49A-SPRK--MADRAGUE-","50A-SPRK--MOOD-","51A-SPRK--SUMMER-"])===null||Ee===void 0)&&Ee.includes(xe))&&(be=!0),q.type==="beacon"&&navigator.sendBeacon&&!be?navigator.sendBeacon(`${he}/api/${X}`,new Blob([JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},q.body),He.headers),{"x-user-id":Se}))))})],{type:"application/json;charset=UTF-8"})):window.fetch(`${he}/api/${X}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Se},He.headers),method:q.method,body:JSON.stringify(be?{body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},q.body),He.headers),{"x-user-id":Se}))))}:q.body)},be&&{keepalive:!0})).then(M=>M.json()).catch(M=>Promise.reject(M))},[He,Se]),qe=n.useCallback((X,q)=>{if(!He)return;const ae=He.url;if(q?.query){const Ee=En.stringify(q.query);X=`${X}?${Ee}`}return window.fetch(`${ae}/admin/${X}`,{headers:Object.assign({"Content-Type":"application/json"},He.headers),method:q.method,body:JSON.stringify(q.body)}).then(Ee=>Ee.json()).catch(Ee=>Promise.reject(Ee))},[He]),vt=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){var q,ae,Ee,he,be,Oe,Ne,xe,M,Z,K,ne,le,ve;if(X=Object.assign(Object.assign({maxSize:(q=X?.maxSize)!==null&&q!==void 0?q:a,defaultSize:(ae=X?.defaultSize)!==null&&ae!==void 0?ae:o,hashTag:X?.hashTag,traceInfo:X?.traceInfo,themeTag:X?.themeTag,pageNum:X?.pageNum,contentFilter:X?.contentFilter,productFilter:X?.productFilter},Lt&&{chatlabsId:Lt}),C&&{type:"story"}),ze)X=Object.assign(Object.assign({},X),{channel:decodeURIComponent(ze)});else if(i){const re=(be=(he=(Ee=ii(i))===null||Ee===void 0?void 0:Ee.filter(me=>{var te,Ve;const ge=me.split("=")[0];return(Ve=(te=p?.channels)!==null&&te!==void 0?te:[])===null||Ve===void 0?void 0:Ve.includes(ge)}))===null||he===void 0?void 0:he.join("&"))!==null&&be!==void 0?be:"";re&&(X=Object.assign(Object.assign({},X),{channel:decodeURIComponent(re)}))}if(x){let re=1;if(X=Object.assign(Object.assign(Object.assign({},X),{directPage:!0,level:1}),!i&&b&&b?.length>0&&{channel:b?.[0]}),!X?.channel||F.current)return;F.current=!0;let me=[],te=null;const Ve=ge=>rt(void 0,void 0,void 0,function*(){var Ie,nt,et,$e,tt,dt;if(ge.pageNum=re,te=yield qe?.("recommend/direct_page",{method:"POST",body:ge}),!te?.success)return;V(!1),me=me.concat(($e=(et=(nt=(Ie=te?.data)===null||Ie===void 0?void 0:Ie.recList)===null||nt===void 0?void 0:nt.filter)===null||et===void 0?void 0:et.call(nt,Ye=>Ye?.product||Ye?.video))!==null&&$e!==void 0?$e:[]),j?.length===0&&(v(xt(Object.assign(Object.assign({},te?.data),{recList:me}))),de(xt(Object.assign(Object.assign({},te?.data),{recList:me})))),((dt=(tt=te?.data)===null||tt===void 0?void 0:tt.recList)===null||dt===void 0?void 0:dt.some(Ye=>Ye?.product||Ye?.video))&&(re=re+1,yield Ve(ge))});return yield Ve(X),!X?.hashTag&&te&&E({rtc:(Oe=te?.data)===null||Oe===void 0?void 0:Oe.rtc,requestId:(Ne=te?.data)===null||Ne===void 0?void 0:Ne.requestId}),Object.assign(Object.assign({},te?.data),{recList:me})}Y?.enablePreview&&(X=Object.assign(Object.assign({},X),{directPage:!0,level:1,pageNum:(xe=X?.pageNum)!==null&&xe!==void 0?xe:1}));const ie=yield $?.("v1/recommend/list",{method:"POST",body:X});if(ie?.success){if(X?.hashTag||E({rtc:ie.data.rtc,requestId:ie.data.requestId}),Y?.enablePreview&&!x){let re=[];return re=re.concat((ne=(K=(Z=(M=ie?.data)===null||M===void 0?void 0:M.recList)===null||Z===void 0?void 0:Z.filter)===null||K===void 0?void 0:K.call(Z,te=>te?.product||te?.video))!==null&&ne!==void 0?ne:[]),((ve=(le=ie?.data)===null||le===void 0?void 0:le.recList)===null||ve===void 0?void 0:ve.some(te=>te?.product||te?.video))||pe(!0),Object.assign(Object.assign({},ie.data),{recList:re})}return ie?.data}}),[$,i,a,o,b,ze,Lt,qe]),Qt=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){var q,ae,Ee,he;if(j.length<=0)return;const be=j?.[j?.length-1],Oe=yield vt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:se?.hashTag},((q=be?.product)===null||q===void 0?void 0:q.itemId)&&{productFilter:[(ae=be?.product)===null||ae===void 0?void 0:ae.itemId]}),((Ee=be?.video)===null||Ee===void 0?void 0:Ee.itemId)&&{contentFilter:[(he=be?.video)===null||he===void 0?void 0:he.itemId]}),{themeTag:Ge.current}),Y?.enablePreview&&!x&&{pageNum:X}));return v(j.concat(xt(Oe))),de(De.concat(xt(Oe))),Oe}),[vt,j,se,De]),$t=n.useCallback((X,q)=>{var ae,Ee,he,be,Oe;let Ne=!1;const xe=(Ee=(ae=A?.data)===null||ae===void 0?void 0:ae.sxpPageConf)===null||Ee===void 0?void 0:Ee.globalConfig;if(!((he=xe?.session)===null||he===void 0)&&he.enable){const M=localStorage.getItem("sessionStartTime"),Z=M?JSON.parse(M):new Date().getTime();Math.floor((new Date().getTime()-Z)/1e3/60)>=((Oe=(be=xe?.session)===null||be===void 0?void 0:be.expires)!==null&&Oe!==void 0?Oe:30)&&(q?.("sessionTimeOut"),Ki(),Ze.current=new Date,Ne=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else X&&Ki();return Ne},[A]),yt=n.useCallback(({userInfo:X,eventInfo:q,reportLayId:ae=!0})=>{var Ee,he;if(!l||Y?.enablePreview)return;X||(X={});const be=zl(),Oe={},Ne=location.search.slice(1);(Ee=ii(Ne))===null||Ee===void 0||Ee.forEach(ne=>{const le=ne.split("=")[0],ve=ne.split("=")[1];Oe[le]=ve});const xe=Oe?.cl_source,M=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:be,rtc:I.rtc,requestId:I.requestId},{playbookType:lt}),Je&&ae&&{layoutVariantId:Je}),q),q?.position&&ze&&{position:Number(q?.position)+1+""}),xe&&{clSource:xe}),Z=Object.entries(X).map(([ne,le])=>({name:ne,value:le})),K=Object.entries(M).map(([ne,le])=>le&&{name:ne,value:le}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",X),console.log("eventInfo:",M),console.log("========= \u7ED3\u675F ========="),$?.(`v2/cld/${(he=He?.headers)===null||he===void 0?void 0:he["x-app-id"]}/${q?.eventSubject}${xe?`/${decodeURIComponent(xe)}`:""}`,{method:"POST",body:{userInfo:Z,eventInfo:K},type:"beacon"})},[$,I,l,Y?.enablePreview,Je,Y,lt,He]),oi=n.useCallback((X,q)=>{var ae,Ee,he;const be=st.cloneDeep(X),Oe=new URLSearchParams(window.location.search),Ne=Oe?.get("fbclid"),xe={event_source_url:(ae=window?.location)===null||ae===void 0?void 0:ae.href,external_id:Se,client_user_agent:(he=(Ee=window?.navigator)===null||Ee===void 0?void 0:Ee.userAgent)!==null&&he!==void 0?he:"",fbc:Ne?`fb.2.${new Date().getTime()}.${Ne}`:"",fbp:On("_fbp")?`${On("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},M=/\{\{(.*?)\}\}/g,Z=K=>{if(K){if(K instanceof Array)K?.map(ne=>Z(ne));else for(const ne in K)if(Object.prototype.hasOwnProperty.call(K,ne)){const le=K?.[ne];if(typeof le=="object")Z(le);else if(typeof le=="string"){const ve=le?.match(M);ve&&ve.forEach(ie=>{var re;const me=ie.substring(2,ie.length-2);try{let te=new Function("fix_par","product",`return ${me}`)(xe,q);te?(me?.indexOf("currency")!==-1&&te?.indexOf("-")!==-1&&typeof te=="string"&&(te=(re=te?.split("-"))===null||re===void 0?void 0:re[0]),K[ne]=te):delete K[ne]}catch(te){delete K[ne],console.error("An error occurred:",te?.message)}})}}}};return Z(be),be},[Se]),ei=n.useCallback(({eventName:X,product:q})=>{var ae,Ee,he,be,Oe,Ne;if(!l||Y?.enablePreview)return;const xe=(ae=Y?.pixel)===null||ae===void 0?void 0:ae[X];if(xe?.event_name&&typeof window?.fbq=="function"){let ne=function(le,ve,ie){const re=new RegExp("([?&])"+ve+"=.*?(&|$)","i"),me=le.indexOf("?")!==-1?"&":"?";return le.match(re)?le.replace(re,"$1"+ve+"="+ie+"$2"):le+me+ve+"="+ie};if(X==="PageView"&&xe?.event_name==="PageView"){const le=window.location.href,ve=ne(le,"timestamp",Date.now());history.pushState({path:ve},"",ve)}else{const le=oi(xe);window?.fbq("track",xe?.event_name,le),X==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view")}}else X==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const M=(Ee=Y?.tiktokPixel)===null||Ee===void 0?void 0:Ee[X];M?.event_name&&typeof window?.ttq=="function"&&window?.ttq.track(M?.event_name,M);const Z=(he=Y?.snapchatPixel)===null||he===void 0?void 0:he[X];Z?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",Z?.event_name,Z);const K=(be=Y?.converApi)===null||be===void 0?void 0:be[X];if(f&&K){const ne=oi(K,q),le={},ve=location.search.slice(1);(Oe=ii(ve))===null||Oe===void 0||Oe.forEach(re=>{const me=re.split("=")[0],te=re.split("=")[1];le[me]=te});const ie=le?.cl_source;$?.(`v2/fb/${(Ne=He?.headers)===null||Ne===void 0?void 0:Ne["x-app-id"]}/${X}${ie?`/${decodeURIComponent(ie)}`:""}`,{method:"POST",body:ne,type:"beacon"})}},[$,l,f,Y,He,oi]),ai=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){const q=yield $?.("v1/recommend/like",{method:"POST",body:X});return q?.success}),[$]),Gt=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){const q=yield $?.("v1/recommend/unlike",{method:"POST",body:X});return q?.success}),[$]),Ft=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){const q=yield $?.("v1/customform",{method:"POST",body:X});return q?.success}),[$]),Dt=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){var q,ae,Ee,he,be,Oe,Ne,xe;const M=!!(!((Ee=(ae=(q=X?.data)===null||q===void 0?void 0:q.sxpPageConf)===null||ae===void 0?void 0:ae.globalConfig)===null||Ee===void 0)&&Ee.isShowTag);if(!(!i||!M))try{const Z=(Oe=(be=(he=ii(i))===null||he===void 0?void 0:he.filter(ne=>{var le,ve;const ie=ne.split("=")[0];return(ve=(le=p?.channels)!==null&&le!==void 0?le:[])===null||ve===void 0?void 0:ve.includes(ie)}))===null||be===void 0?void 0:be.join("&"))!==null&&Oe!==void 0?Oe:"",K=yield $?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Z)}});W((xe=(Ne=K?.data)===null||Ne===void 0?void 0:Ne.tags)!==null&&xe!==void 0?xe:[])}catch(Z){console.log("e",Z)}}),[$,i]),Tt=n.useCallback((X,q,ae,Ee)=>{var he,be,Oe,Ne,xe,M,Z,K,ne,le,ve,ie,re,me,te,Ve,ge,Ie,nt,et,$e,tt,dt,ft,Ye,At,Ce,ke,Ot,Ct,si,ot,ti,Ui,Hi,Xi;const Ht=ae?.bindCta,Cl=((he=q?.video)===null||he===void 0?void 0:he.bindProduct)||((be=q?.video)===null||be===void 0?void 0:be.bindProducts)&&((Ne=(Oe=q?.video)===null||Oe===void 0?void 0:Oe.bindProducts)===null||Ne===void 0?void 0:Ne.length)>0;let Ii="",qi=null;Fe?Ii="hashTagPage":!((xe=q?.video)===null||xe===void 0)&&xe.url?(Ii="videoPage",qi="video"):!((Z=(M=q?.video)===null||M===void 0?void 0:M.imgUrls)===null||Z===void 0)&&Z.length&&(Ii="imagePage",qi="image");const Tn=(me=(ie=(K=ae?.tags)!==null&&K!==void 0?K:(ve=(le=(ne=q?.video)===null||ne===void 0?void 0:ne.bindProducts)===null||le===void 0?void 0:le[0])===null||ve===void 0?void 0:ve.tags)!==null&&ie!==void 0?ie:(re=q?.video)===null||re===void 0?void 0:re.tags)!==null&&me!==void 0?me:(te=q?.product)===null||te===void 0?void 0:te.tags;yt?.({eventInfo:Object.assign(Object.assign({},X),{ctaId:(Ve=Ht?.itemId)!==null&&Ve!==void 0?Ve:"",ctaName:(ge=Ht?.title)!==null&&ge!==void 0?ge:"",contentTags:Tn?JSON.stringify(Tn):"",position:Ee+"",contentId:(nt=(Ie=q?.video)===null||Ie===void 0?void 0:Ie.itemId)!==null&&nt!==void 0?nt:"",productId:Cl?ae?.itemId:"",traceInfo:(Hi=(ot=(Ce=(dt=(et=Ht?.traceInfo)!==null&&et!==void 0?et:(tt=($e=q?.video)===null||$e===void 0?void 0:$e.bindCta)===null||tt===void 0?void 0:tt.traceInfo)!==null&&dt!==void 0?dt:(At=(Ye=(ft=q?.video)===null||ft===void 0?void 0:ft.bindProduct)===null||Ye===void 0?void 0:Ye.bindCta)===null||At===void 0?void 0:At.traceInfo)!==null&&Ce!==void 0?Ce:(si=(Ct=(Ot=(ke=q?.video)===null||ke===void 0?void 0:ke.bindProducts)===null||Ot===void 0?void 0:Ot[0])===null||Ct===void 0?void 0:Ct.bindCta)===null||si===void 0?void 0:si.traceInfo)!==null&&ot!==void 0?ot:(Ui=(ti=q?.product)===null||ti===void 0?void 0:ti.bindCta)===null||Ui===void 0?void 0:Ui.traceInfo)!==null&&Hi!==void 0?Hi:"",fromKName:Ii,fromKPage:(Xi=location?.href)!==null&&Xi!==void 0?Xi:"",contentFormat:qi})})},[yt,Fe]),Ti=n.useCallback(()=>{var X,q,ae;const Ee=location.search.slice(1),he={};(X=ii(Ee.replace(/\+/g,"%2B")))===null||X===void 0||X.map(Ne=>{const xe=Ne.split("=")[0],M=Ne.split("=")[1];he[xe]=M});for(const Ne in he)he[Ne]=he[Ne].replace(/%2B/g,"+");const be=Ne=>{var xe;return(xe=he[Ne])!==null&&xe!==void 0?xe:""},Oe=new Date;Ze.current=Oe,yt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:be("utm_source"),utmMedium:be("utm_medium"),utmCampaign:be("utm_campaign"),utmId:be("utm_id"),utmContent:be("utm_content"),enterTime:Math.floor(Oe/1e3)+"",requestId:null,enterUrl:(ae=(q=window?.location)===null||q===void 0?void 0:q.href)!==null&&ae!==void 0?ae:""},reportLayId:!1})},[yt]),Ei=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){var X,q;const ae=yield $?.("v1/account",{method:"GET"});return jt((X=ae?.data)===null||X===void 0?void 0:X.chatLabsId),((q=ae?.data)===null||q===void 0?void 0:q.consentResult)==="true"}),[$]),ki=n.useCallback(X=>rt(void 0,void 0,void 0,function*(){const q=yield $?.("v1/account/consent",{method:"POST",body:{consentResult:X}});return q?.success}),[$]);n.useEffect(()=>{ht||Ti()},[ht]),n.useEffect(()=>{if(ht||s)return;V(!0);let X,q;vt().then(ae=>{var Ee,he,be,Oe,Ne,xe,M,Z,K,ne,le;if(ae){const ve=xt(ae);let ie,re;if(ae?.layoutVariantId){X=ae?.layoutVariantId,ut(ae?.layoutVariantId);const me=(he=(Ee=ae?.layoutVariantId)===null||Ee===void 0?void 0:Ee.split("-"))===null||he===void 0?void 0:he[1];me&&(ie=w?.find(te=>te?.id===me),ie?(ee(ie),document.title=(be=ie?.name)!==null&&be!==void 0?be:"home",re=(Ne=(Oe=ie?.data)===null||Oe===void 0?void 0:Oe.sxpPageConf)===null||Ne===void 0?void 0:Ne.globalConfig,fe(re),P?.(ie?.data),!((K=(Z=(M=(xe=re?.consent)===null||xe===void 0?void 0:xe[0])===null||M===void 0?void 0:M.item)===null||Z===void 0?void 0:Z.props)===null||K===void 0)&&K.privacy_necessity&&Re(!0)):Re(!0))}else Re(!0);if(ze||(re?.playbook==="organic menu"||!re&&Y?.playbook==="organic menu"?(mt("organicMenu"),ve.unshift("organic menu"),q="organicMenu"):(mt("paidMedia"),q="paidMedia")),v(ve),de(ve),Dt(ie??gt),ze){const me=ve?.[0],te=((ne=me?.video)===null||ne===void 0?void 0:ne.traceInfo)||((le=me?.product)===null||le===void 0?void 0:le.traceInfo)||"";yt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:te,branchfeed:ze},X&&{layoutVariantId:X})}),yt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:te,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-at?.current)/1e3)+""},X&&{layoutVariantId:X})})}}}).finally(()=>{yt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},X&&{layoutVariantId:X}),q&&{playbookType:q})}),V(!1)})},[ht,ze]),n.useEffect(()=>{s&&(V(!0),Dt(A),vt().then(X=>{if(X){const q=xt(X);Y?.playbook==="organic menu"&&!ze&&q.unshift("organic menu"),v(q),de(q)}}).finally(()=>{V(!1)}))},[vt,Dt,ze]);const zi=St("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return n.createElement(zn.Provider,{value:{rtcList:j,setRtcList:v,mutateLike:ai,mutateUnlike:Gt,submitForm:Ft,popupDetailData:Q,loadVideos:Qt,setPopupDetailData:oe,getRecommendVideos:vt,bffEventReport:yt,isPreview:s,loading:L,sxpParameter:c,waterFallData:se,setWaterFallData:J,ctaEvent:Tt,swiperRef:R,openHashtag:ye,setOpenHashtag:Te,cacheRtcList:De,setCacheRtcList:de,cacheActiveIndex:ue,setCacheActiveIndex:Xe,isFromHashtag:Fe,setIsFromHashtag:We,appDomain:r,hashTagSize:u,loadingImage:d??zi,isOpenHashTag:h,tagList:B,setLoading:V,videoRef:we,setVideoRef:Ke,bffFbReport:ei,isAgreePolicy:U,setIsAgreePolicy:G,curTime:Ze,h5EnterLink:Ti,themeTag:Ge,isShowConsent:ht,selectTag:wt,setSelectTag:je,globalConfig:Y,popupCurTimeRef:H,checkCommodityIndexRef:ce,isEditor:x,isNoMoreData:_,updateChannel:Wt,channel:ze,eventTimeList:Me,setEventTimeList:Qe,multiPostTimeRef:at,refreshFeSession:$t,getAccount:Ei,accountSonsent:ki,isDiyH5:C}},ht?n.createElement(Kl,Object.assign({},(k=(N=(T=Y?.consent)===null||T===void 0?void 0:T[0])===null||N===void 0?void 0:N.item)===null||k===void 0?void 0:k.props)):t({rtcList:j,mutateLike:ai,mutateUnlike:Gt,submitForm:Ft,tagList:B,pageData:gt}))};var Un=n.memo(_l);function Be(){return n.useContext(zn)}var Hn;(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"})(Hn||(Hn={}));const Xn=n.createContext({$store:{},options:[],configs:[]}),Jl=({children:t,isSsr:e,enable:i})=>{const[l,a]=n.useState([]),{schema:o}=Zt(),[s,c]=n.useState(o.__STORE__||{}),[r,u]=n.useState([]);n.useEffect(()=>{var f;e||st.isEqual(r,o?.dataSource)||u((f=o?.dataSource)!==null&&f!==void 0?f:[])},[o?.dataSource,e]);const d=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){const{$store:f,idMapName:m}=yield Cn("",r);c(f),h(f,m)}),[r]),h=(f,m)=>{const y=[];Object.entries(f).forEach(([g,x])=>{Object.keys(x).forEach(p=>{const b={label:`${m[g]} - ${p}`,value:`{{ ${g}.${p} }}`};y.push(b)})}),a(y)};return n.useEffect(()=>{e||d()},[d,e,o]),i?n.createElement(Xn.Provider,{value:{$store:o.__STORE__||s,options:l,configs:r}},t):t};var Ql=n.memo(Jl);const Oi={id:Ci(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},Ji={id:"",duration:0,name:"none"},qn=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Oi],redoStack:[],popup:Ji,setPopup:()=>{}}),Yn=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:l,enableDataSource:a=!0,utmVal:o},s)=>{const[c,r]=n.useState(null),[u,d]=n.useState(l||{pointData:[Oi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[h,f]=n.useState([Oi]),[m,y]=n.useState([[Oi]]),[g,x]=n.useState([]),[p,b]=n.useState(Ji);typeof window<"u"&&(window.sxpPopup=(D,O)=>{b(Object.assign(Object.assign(Object.assign({},Ji),{id:D}),O))}),typeof window<"u"&&(window.getJointUtmLink=D=>(Yl(),D?.indexOf("?")!==-1?D+(o?"&"+o:""):D+(o?"?"+o:""))),n.useEffect(()=>{y([u.pointData]),x([])},[u.type]);const A=n.useCallback(D=>{const O=st.cloneDeep(u);O&&(O.dataSource=D,d?.(O))},[u]),[w,C]=n.useState();n.useImperativeHandle(s,()=>({loadSchema(D){D&&(y([D.pointData]),d(D))},exportSchema(){return st.cloneDeep(u)},getPageInfoData(){return w},initPageInfoData(D){D&&C(D)}}));const P=n.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return n.createElement(qn.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:A,prePiontData:h,setPrePiontData:f,pageInfoData:w,setPageInfoData:D=>C(Object.assign(Object.assign({},w),D)),undoStack:m,redoStack:g,setRedoStack:x,setUndoStack:y,getCurPageConf:P,popup:p,setPopup:b}},n.createElement(Ql,{isSsr:i,enable:a},t))});var $l=Object.freeze({__proto__:null,EditorCore:Yn}),eo=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],to=[{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 Pt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:l,setEventTimeList:a}=Be(),o=n.useCallback((r,u,d,h,f,m)=>{var y,g,x,p,b,A,w,C,P,D,O,S,T,N,k,j,v,B,W,L,V,I,E,R,F,U,G,Q,oe,se,J,ye,Te,De,de,ue,Xe,Fe;if(l?.findIndex(Ze=>Ze.target===r?.target)!==-1)return;r&&a?.(Ze=>[...Ze,{target:r?.target,time:new Date}]);let we="";e&&(!((g=(y=u?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0)&&g.length||!((x=u?.video)===null||x===void 0)&&x.bindProduct)?we="pdpPage":i?we="hashTagPage":!((p=u?.video)===null||p===void 0)&&p.url?we="videoPage":!((b=u?.video)===null||b===void 0)&&b.imgUrls&&(!((w=(A=u?.video)===null||A===void 0?void 0:A.imgUrls)===null||w===void 0)&&w.length)?we="imagePage":u?.product&&(we="productPage");const Ke=(N=(S=(C=d?.tags)!==null&&C!==void 0?C:(O=(D=(P=u?.video)===null||P===void 0?void 0:P.bindProducts)===null||D===void 0?void 0:D[0])===null||O===void 0?void 0:O.tags)!==null&&S!==void 0?S:(T=u?.video)===null||T===void 0?void 0:T.tags)!==null&&N!==void 0?N:(k=u?.product)===null||k===void 0?void 0:k.tags;let Ge=null;!((j=u?.video)===null||j===void 0)&&j.url?Ge="video":!((v=u?.video)===null||v===void 0)&&v.imgUrls&&(!((W=(B=u?.video)===null||B===void 0?void 0:B.imgUrls)===null||W===void 0)&&W.length)&&(Ge="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(L=d?.itemId)!==null&&L!==void 0?L:"",productName:(V=d?.title)!==null&&V!==void 0?V:"",price:d?.price?d?.price+"":"0",productCollection:(I=d?.collection)!==null&&I!==void 0?I:"",fromKName:we,fromKPage:location?.href,contentTags:Ke?JSON.stringify(Ke):"",position:f+"",contentId:(R=(E=u?.video)===null||E===void 0?void 0:E.itemId)!==null&&R!==void 0?R:"",ctatId:(F=h?.itemId)!==null&&F!==void 0?F:"",traceInfo:(Fe=(de=(Te=(oe=(U=m??d?.traceInfo)!==null&&U!==void 0?U:(Q=(G=u?.video)===null||G===void 0?void 0:G.bindProduct)===null||Q===void 0?void 0:Q.traceInfo)!==null&&oe!==void 0?oe:(ye=(J=(se=u?.video)===null||se===void 0?void 0:se.bindProducts)===null||J===void 0?void 0:J[0])===null||ye===void 0?void 0:ye.traceInfo)!==null&&Te!==void 0?Te:(De=u?.product)===null||De===void 0?void 0:De.traceInfo)!==null&&de!==void 0?de:(Xe=(ue=u?.video)===null||ue===void 0?void 0:ue.bindCta)===null||Xe===void 0?void 0:Xe.traceInfo)!==null&&Fe!==void 0?Fe:""},Ge&&{contentFormat:Ge})})},[t,e,i,l]),s=n.useCallback((r,u,d,h,f)=>{var m,y,g,x,p,b,A,w,C,P,D,O,S,T;let N="";e&&(!((y=(m=r?.video)===null||m===void 0?void 0:m.bindProducts)===null||y===void 0)&&y.length||!((g=r?.video)===null||g===void 0)&&g.bindProduct)?N="pdpPage":r?.product&&(N="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:N,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:f+"",contentId:(x=r?.video)===null||x===void 0?void 0:x.itemId,ctatId:d?.itemId,traceInfo:(T=(O=(w=(p=u?.traceInfo)!==null&&p!==void 0?p:(A=(b=r?.video)===null||b===void 0?void 0:b.bindProduct)===null||A===void 0?void 0:A.traceInfo)!==null&&w!==void 0?w:(D=(P=(C=r?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||D===void 0?void 0:D.traceInfo)!==null&&O!==void 0?O:(S=r?.product)===null||S===void 0?void 0:S.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-h)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),c=n.useCallback((r,u,d,h)=>{u&&u===Pi&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:h?`['${h}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:o,productView:s,backMainFeed:c}}const io=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((l,a)=>n.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&n.createElement("label",{className:"pb-appoint-form-container-label"},l?.title),l?.valueType==="text"&&n.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?l?.title:"\u8BF7\u8F93\u5165",name:l?.dataIndex},i&&{onChange:i})))));var no=n.memo(io);const lo=t=>{var e,i,{columns:l,style:a,title:o,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:h,isPopup:f,onClick:m,onClose:y,submitButtonStyle:g}=t,x=it(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:p,popupDetailData:b}=Be(),{jumpToWeb:A}=Pt(),[w,C]=n.useState(!1),[P,D]=n.useState({}),[O,S]=n.useState(0),T=n.useMemo(()=>[{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"}],[]),N=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),k=n.useMemo(()=>st.cloneDeep(l)||T,[l,T]),j=n.useCallback(B=>{const{name:W,value:L}=B.target;D(Object.assign(Object.assign({},P),{[W]:L}))},[P]),v=st.debounce(B=>rt(void 0,void 0,void 0,function*(){var W,L,V,I,E;const R=P;if(!R)return;const F=(L=(W=Object.keys(R))===null||W===void 0?void 0:W.map(G=>{var Q;return{name:G,value:(Q=R[G])!==null&&Q!==void 0?Q:""}}))===null||L===void 0?void 0:L.filter(G=>G?.value);if(!F||!F?.length)return;C(!0);const U=yield p?.({attributes:F});if(C(!1),U){if(h){const G=b,Q=(V=G?.video)===null||V===void 0?void 0:V.bindProduct,oe=(E=(I=G?.video)===null||I===void 0?void 0:I.bindProduct)===null||E===void 0?void 0:E.bindCta,se=b?.index;A(B,G,Q,oe,se)}f||y?.(),m?.()}}),1e3);return n.useEffect(()=>{const B=()=>{var W,L;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((L=document?.body)===null||L===void 0?void 0:L.clientHeight))<N?S(50):S(0)};return window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B)}},[]),n.createElement("div",{className:"pb-appoint-form"},n.createElement("div",{className:`pb-appoint-form-title ${Le.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:Pe(o,s)}}),n.createElement("div",Object.assign({className:Le.css(Object.assign(Object.assign({},a),{marginTop:O}))},x),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(no,{columns:k,layout:d,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":u,onClick:v,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},g),dangerouslySetInnerHTML:{__html:Pe(w?"loading...":u,g)}})))};var oo=n.memo(lo);function ct(t,e){return t.extend=e,t}const ao=ct(oo,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:to,bindableProps:[],interactionRender:eo},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 so=[{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 Gn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Qi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Gn(e[i])&&Gn(t[i])&&Object.keys(e[i]).length>0&&Qi(t[i],e[i])})}const Zn={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 Mt(){const t=typeof document<"u"?document:{};return Qi(t,Zn),t}const ro={document:Zn,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 kt(){const t=typeof window<"u"?window:{};return Qi(t,ro),t}function Kt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function co(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ri(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Vt(){return Date.now()}function uo(t){const e=kt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function vo(t,e){e===void 0&&(e="x");const i=kt();let l,a,o;const s=uo(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(c=>c.replace(",",".")).join(", ")),o=new i.WebKitCSSMatrix(a==="none"?"":a)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),l=o.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=o.m41:l.length===16?a=parseFloat(l[12]):a=parseFloat(l[4])),e==="y"&&(i.WebKitCSSMatrix?a=o.m42:l.length===16?a=parseFloat(l[13]):a=parseFloat(l[5])),a||0}function Mi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function po(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Rt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const l=i<0||arguments.length<=i?void 0:arguments[i];if(l!=null&&!po(l)){const a=Object.keys(Object(l)).filter(o=>e.indexOf(o)<0);for(let o=0,s=a.length;o<s;o+=1){const c=a[o],r=Object.getOwnPropertyDescriptor(l,c);r!==void 0&&r.enumerable&&(Mi(t[c])&&Mi(l[c])?l[c].__swiper__?t[c]=l[c]:Rt(t[c],l[c]):!Mi(t[c])&&Mi(l[c])?(t[c]={},l[c].__swiper__?t[c]=l[c]:Rt(t[c],l[c])):t[c]=l[c])}}}return t}function Li(t,e,i){t.style.setProperty(e,i)}function Kn(t){let{swiper:e,targetPosition:i,side:l}=t;const a=kt(),o=-e.translate;let s=null,c;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const u=i>o?"next":"prev",d=(f,m)=>u==="next"&&f>=m||u==="prev"&&f<=m,h=()=>{c=new Date().getTime(),s===null&&(s=c);const f=Math.max(Math.min((c-s)/r,1),0),m=.5-Math.cos(f*Math.PI)/2;let y=o+m*(i-o);if(d(y,i)&&(y=i),e.wrapperEl.scrollTo({[l]:y}),d(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[l]:y})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(h)};h()}function zt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function ji(t){try{console.warn(t);return}catch{}}function di(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Kt(e)),i}function _n(t){const e=kt(),i=Mt(),l=t.getBoundingClientRect(),a=i.body,o=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,c=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:l.top+c-o,left:l.left+r-s}}function mo(t,e){const i=[];for(;t.previousElementSibling;){const l=t.previousElementSibling;e?l.matches(e)&&i.push(l):i.push(l),t=l}return i}function fo(t,e){const i=[];for(;t.nextElementSibling;){const l=t.nextElementSibling;e?l.matches(e)&&i.push(l):i.push(l),t=l}return i}function _t(t,e){return kt().getComputedStyle(t,null).getPropertyValue(e)}function mi(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 l=t.parentElement;for(;l;)e?l.matches(e)&&i.push(l):i.push(l),l=l.parentElement;return i}function $i(t,e){function i(l){l.target===t&&(e.call(t,l),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function en(t,e,i){const l=kt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(l.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(l.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ue(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let tn;function ho(){const t=kt(),e=Mt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Jn(){return tn||(tn=ho()),tn}let nn;function Ao(t){let{userAgent:e}=t===void 0?{}:t;const i=Jn(),l=kt(),a=l.navigator.platform,o=e||l.navigator.userAgent,s={ios:!1,android:!1},c=l.screen.width,r=l.screen.height,u=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const h=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=a==="Win32";let y=a==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&y&&i.touch&&g.indexOf(`${c}x${r}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),y=!1),u&&!m&&(s.os="android",s.android=!0),(d||f||h)&&(s.os="ios",s.ios=!0),s}function Qn(t){return t===void 0&&(t={}),nn||(nn=Ao(t)),nn}let ln;function bo(){const t=kt(),e=Qn();let i=!1;function l(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(l()){const c=String(t.navigator.userAgent);if(c.includes("Version/")){const[r,u]=c.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=l(),s=o||a&&e.ios;return{isSafari:i||o,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function go(){return ln||(ln=bo()),ln}function yo(t){let{swiper:e,on:i,emit:l}=t;const a=kt();let o=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(l("beforeResize"),l("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(h=>{s=a.requestAnimationFrame(()=>{const{width:f,height:m}=e;let y=f,g=m;h.forEach(x=>{let{contentBoxSize:p,contentRect:b,target:A}=x;A&&A!==e.el||(y=b?b.width:(p[0]||p).inlineSize,g=b?b.height:(p[0]||p).blockSize)}),(y!==f||g!==m)&&c()})}),o.observe(e.el))},u=()=>{s&&a.cancelAnimationFrame(s),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},d=()=>{!e||e.destroyed||!e.initialized||l("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){r();return}a.addEventListener("resize",c),a.addEventListener("orientationchange",d)}),i("destroy",()=>{u(),a.removeEventListener("resize",c),a.removeEventListener("orientationchange",d)})}function wo(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;const o=[],s=kt(),c=function(d,h){h===void 0&&(h={});const f=s.MutationObserver||s.WebkitMutationObserver,m=new f(y=>{if(e.__preventObserver__)return;if(y.length===1){a("observerUpdate",y[0]);return}const g=function(){a("observerUpdate",y[0])};s.requestAnimationFrame?s.requestAnimationFrame(g):s.setTimeout(g,0)});m.observe(d,{attributes:typeof h.attributes>"u"?!0:h.attributes,childList:typeof h.childList>"u"?!0:h.childList,characterData:typeof h.characterData>"u"?!0:h.characterData}),o.push(m)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Ri(e.hostEl);for(let h=0;h<d.length;h+=1)c(d[h])}c(e.hostEl,{childList:e.params.observeSlideChildren}),c(e.wrapperEl,{attributes:!1})}},u=()=>{o.forEach(d=>{d.disconnect()}),o.splice(0,o.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),l("init",r),l("destroy",u)}var So={on(t,e,i){const l=this;if(!l.eventsListeners||l.destroyed||typeof e!="function")return l;const a=i?"unshift":"push";return t.split(" ").forEach(o=>{l.eventsListeners[o]||(l.eventsListeners[o]=[]),l.eventsListeners[o][a](e)}),l},once(t,e,i){const l=this;if(!l.eventsListeners||l.destroyed||typeof e!="function")return l;function a(){l.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];e.apply(l,s)}return a.__emitterProxy=e,l.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const l=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[l](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(l=>{typeof e>"u"?i.eventsListeners[l]=[]:i.eventsListeners[l]&&i.eventsListeners[l].forEach((a,o)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[l].splice(o,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,l;for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],i=o.slice(1,o.length),l=t):(e=o[0].events,i=o[0].data,l=o[0].context||t),i.unshift(l),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(l,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.apply(l,i)})}),t}};function xo(){const t=this;let e,i;const l=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=l.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=l.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(_t(l,"padding-left")||0,10)-parseInt(_t(l,"padding-right")||0,10),i=i-parseInt(_t(l,"padding-top")||0,10)-parseInt(_t(l,"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 To(){const t=this;function e(T,N){return parseFloat(T.getPropertyValue(t.getDirectionLabel(N))||0)}const i=t.params,{wrapperEl:l,slidesEl:a,size:o,rtlTranslate:s,wrongRTL:c}=t,r=t.virtual&&i.virtual.enabled,u=r?t.virtual.slides.length:t.slides.length,d=zt(a,`.${t.params.slideClass}, swiper-slide`),h=r?t.virtual.slides.length:d.length;let f=[];const m=[],y=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,b=t.slidesGrid.length;let A=i.spaceBetween,w=-g,C=0,P=0;if(typeof o>"u")return;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*o:typeof A=="string"&&(A=parseFloat(A)),t.virtualSize=-A,d.forEach(T=>{s?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Li(l,"--swiper-centered-offset-before",""),Li(l,"--swiper-centered-offset-after",""));const D=i.grid&&i.grid.rows>1&&t.grid;D?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let O;const S=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<h;T+=1){O=0;let N;if(d[T]&&(N=d[T]),D&&t.grid.updateSlide(T,N,d),!(d[T]&&_t(N,"display")==="none")){if(i.slidesPerView==="auto"){S&&(d[T].style[t.getDirectionLabel("width")]="");const k=getComputedStyle(N),j=N.style.transform,v=N.style.webkitTransform;if(j&&(N.style.transform="none"),v&&(N.style.webkitTransform="none"),i.roundLengths)O=t.isHorizontal()?en(N,"width",!0):en(N,"height",!0);else{const B=e(k,"width"),W=e(k,"padding-left"),L=e(k,"padding-right"),V=e(k,"margin-left"),I=e(k,"margin-right"),E=k.getPropertyValue("box-sizing");if(E&&E==="border-box")O=B+V+I;else{const{clientWidth:R,offsetWidth:F}=N;O=B+W+L+V+I+(F-R)}}j&&(N.style.transform=j),v&&(N.style.webkitTransform=v),i.roundLengths&&(O=Math.floor(O))}else O=(o-(i.slidesPerView-1)*A)/i.slidesPerView,i.roundLengths&&(O=Math.floor(O)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${O}px`);d[T]&&(d[T].swiperSlideSize=O),y.push(O),i.centeredSlides?(w=w+O/2+C/2+A,C===0&&T!==0&&(w=w-o/2-A),T===0&&(w=w-o/2-A),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),P%i.slidesPerGroup===0&&f.push(w),m.push(w)):(i.roundLengths&&(w=Math.floor(w)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&f.push(w),m.push(w),w=w+O+A),t.virtualSize+=O+A,C=O,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+x,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(l.style.width=`${t.virtualSize+A}px`),i.setWrapperSize&&(l.style[t.getDirectionLabel("width")]=`${t.virtualSize+A}px`),D&&t.grid.updateWrapperSize(O,f),!i.centeredSlides){const T=[];for(let N=0;N<f.length;N+=1){let k=f[N];i.roundLengths&&(k=Math.floor(k)),f[N]<=t.virtualSize-o&&T.push(k)}f=T,Math.floor(t.virtualSize-o)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-o)}if(r&&i.loop){const T=y[0]+A;if(i.slidesPerGroup>1){const N=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),k=T*i.slidesPerGroup;for(let j=0;j<N;j+=1)f.push(f[f.length-1]+k)}for(let N=0;N<t.virtual.slidesBefore+t.virtual.slidesAfter;N+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+T),m.push(m[m.length-1]+T),t.virtualSize+=T}if(f.length===0&&(f=[0]),A!==0){const T=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((N,k)=>!i.cssMode||i.loop?!0:k!==d.length-1).forEach(N=>{N.style[T]=`${A}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(k=>{T+=k+(A||0)}),T-=A;const N=T-o;f=f.map(k=>k<=0?-g:k>N?N+x:k)}if(i.centerInsufficientSlides){let T=0;y.forEach(k=>{T+=k+(A||0)}),T-=A;const N=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+N<o){const k=(o-T-N)/2;f.forEach((j,v)=>{f[v]=j-k}),m.forEach((j,v)=>{m[v]=j+k})}}if(Object.assign(t,{slides:d,snapGrid:f,slidesGrid:m,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Li(l,"--swiper-centered-offset-before",`${-f[0]}px`),Li(l,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],N=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(k=>k+T),t.slidesGrid=t.slidesGrid.map(k=>k+N)}if(h!==u&&t.emit("slidesLengthChange"),f.length!==p&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,N=t.el.classList.contains(T);h<=i.maxBackfaceHiddenSlides?N||t.el.classList.add(T):N&&t.el.classList.remove(T)}}function Eo(t){const e=this,i=[],l=e.virtual&&e.params.virtual.enabled;let a=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=c=>l?e.slides[e.getSlideIndexByData(c)]:e.slides[c];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(c=>{i.push(c)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const c=e.activeIndex+o;if(c>e.slides.length&&!l)break;i.push(s(c))}else i.push(s(e.activeIndex));for(o=0;o<i.length;o+=1)if(typeof i[o]<"u"){const c=i[o].offsetHeight;a=c>a?c:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function ko(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let l=0;l<e.length;l+=1)e[l].swiperSlideOffset=(t.isHorizontal()?e[l].offsetLeft:e[l].offsetTop)-i-t.cssOverflowAdjustment()}const $n=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Io(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:l,rtlTranslate:a,snapGrid:o}=e;if(l.length===0)return;typeof l[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let c=i.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*e.size:typeof c=="string"&&(c=parseFloat(c));for(let r=0;r<l.length;r+=1){const u=l[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=l[0].swiperSlideOffset);const h=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),f=(s-o[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),m=-(s-d),y=m+e.slidesSizesGrid[r],g=m>=0&&m<=e.size-e.slidesSizesGrid[r],x=m>=0&&m<e.size-1||y>1&&y<=e.size||m<=0&&y>=e.size;x&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),$n(u,x,i.slideVisibleClass),$n(u,g,i.slideFullyVisibleClass),u.progress=a?-h:h,u.originalProgress=a?-f:f}}function Co(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,l=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:o,isEnd:s,progressLoop:c}=e;const r=o,u=s;if(l===0)a=0,o=!0,s=!0;else{a=(t-e.minTranslate())/l;const d=Math.abs(t-e.minTranslate())<1,h=Math.abs(t-e.maxTranslate())<1;o=d||a<=0,s=h||a>=1,d&&(a=0),h&&(a=1)}if(i.loop){const d=e.getSlideIndexByData(0),h=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[d],m=e.slidesGrid[h],y=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=f?c=(g-f)/y:c=(g+y-m)/y,c>1&&(c-=1)}Object.assign(e,{progress:a,progressLoop:c,isBeginning:o,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!r&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(r&&!o||u&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const on=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Po(){const t=this,{slides:e,params:i,slidesEl:l,activeIndex:a}=t,o=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=h=>zt(l,`.${i.slideClass}${h}, swiper-slide${h}`)[0];let r,u,d;if(o)if(i.loop){let h=a-t.virtual.slidesBefore;h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${h}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(h=>h.column===a)[0],d=e.filter(h=>h.column===a+1)[0],u=e.filter(h=>h.column===a-1)[0]):r=e[a];r&&(s||(d=fo(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=mo(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(h=>{on(h,h===r,i.slideActiveClass),on(h,h===d,i.slideNextClass),on(h,h===u,i.slidePrevClass)}),t.emitSlidesClasses()}const Ni=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,l=e.closest(i());if(l){let a=l.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(l.shadowRoot?a=l.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{l.shadowRoot&&(a=l.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},an=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},sn=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 l=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,c=[s-e];c.push(...Array.from({length:e}).map((r,u)=>s+l+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&an(t,u)});return}const o=a+l-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=o+e;s+=1){const c=(s%i+i)%i;(c<a||c>o)&&an(t,c)}else for(let s=Math.max(a-e,0);s<=Math.min(o+e,i-1);s+=1)s!==a&&(s>o||s<a)&&an(t,s)};function Oo(t){const{slidesGrid:e,params:i}=t,l=t.rtlTranslate?t.translate:-t.translate;let a;for(let o=0;o<e.length;o+=1)typeof e[o+1]<"u"?l>=e[o]&&l<e[o+1]-(e[o+1]-e[o])/2?a=o:l>=e[o]&&l<e[o+1]&&(a=o+1):l>=e[o]&&(a=o);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Mo(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:l,params:a,activeIndex:o,realIndex:s,snapIndex:c}=e;let r=t,u;const d=m=>{let y=m-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 r>"u"&&(r=Oo(e)),l.indexOf(i)>=0)u=l.indexOf(i);else{const m=Math.min(a.slidesPerGroupSkip,r);u=m+Math.floor((r-m)/a.slidesPerGroup)}if(u>=l.length&&(u=l.length-1),r===o&&!e.params.loop){u!==c&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(r===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const h=e.grid&&a.grid&&a.grid.rows>1;let f;if(e.virtual&&a.virtual.enabled&&a.loop)f=d(r);else if(h){const m=e.slides.filter(g=>g.column===r)[0];let y=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(m),0)),f=Math.floor(y/a.grid.rows)}else if(e.slides[r]){const m=e.slides[r].getAttribute("data-swiper-slide-index");m?f=parseInt(m,10):f=r}else f=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:f,previousIndex:o,activeIndex:r}),e.initialized&&sn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Lo(t,e){const i=this,l=i.params;let a=t.closest(`.${l.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(c=>{!a&&c.matches&&c.matches(`.${l.slideClass}, swiper-slide`)&&(a=c)});let o=!1,s;if(a){for(let c=0;c<i.slides.length;c+=1)if(i.slides[c]===a){o=!0,s=c;break}}if(a&&o)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}l.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var jo={updateSize:xo,updateSlides:To,updateAutoHeight:Eo,updateSlidesOffset:ko,updateSlidesProgress:Io,updateProgress:Co,updateSlidesClasses:Po,updateActiveIndex:Mo,updateClickedSlide:Lo};function Ro(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:l,translate:a,wrapperEl:o}=e;if(i.virtualTranslate)return l?-a:a;if(i.cssMode)return a;let s=vo(o,t);return s+=e.cssOverflowAdjustment(),l&&(s=-s),s||0}function No(t,e){const i=this,{rtlTranslate:l,params:a,wrapperEl:o,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=l?-t:t:r=t,a.roundLengths&&(c=Math.floor(c),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:r,a.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-r:a.virtualTranslate||(i.isHorizontal()?c-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${c}px, ${r}px, ${u}px)`);let d;const h=i.maxTranslate()-i.minTranslate();h===0?d=0:d=(t-i.minTranslate())/h,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Do(){return-this.snapGrid[0]}function Vo(){return-this.snapGrid[this.snapGrid.length-1]}function Bo(t,e,i,l,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),l===void 0&&(l=!0);const o=this,{params:s,wrapperEl:c}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const r=o.minTranslate(),u=o.maxTranslate();let d;if(l&&t>r?d=r:l&&t<u?d=u:d=t,o.updateProgress(d),s.cssMode){const h=o.isHorizontal();if(e===0)c[h?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return Kn({swiper:o,targetPosition:-d,side:h?"left":"top"}),!0;c.scrollTo({[h?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,a),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,a),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(f){!o||o.destroyed||f.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,i&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var Fo={getTranslate:Ro,setTranslate:No,minTranslate:Do,maxTranslate:Vo,translateTo:Bo};function Wo(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 el(t){let{swiper:e,runCallbacks:i,direction:l,step:a}=t;const{activeIndex:o,previousIndex:s}=e;let c=l;if(c||(o>s?c="next":o<s?c="prev":c="reset"),e.emit(`transition${a}`),i&&o!==s){if(c==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),c==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function zo(t,e){t===void 0&&(t=!0);const i=this,{params:l}=i;l.cssMode||(l.autoHeight&&i.updateAutoHeight(),el({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Uo(t,e){t===void 0&&(t=!0);const i=this,{params:l}=i;i.animating=!1,!l.cssMode&&(i.setTransition(0),el({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Ho={setTransition:Wo,transitionStart:zo,transitionEnd:Uo};function Xo(t,e,i,l,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let s=t;s<0&&(s=0);const{params:c,snapGrid:r,slidesGrid:u,previousIndex:d,activeIndex:h,rtlTranslate:f,wrapperEl:m,enabled:y}=o;if(!y&&!l&&!a||o.destroyed||o.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const g=Math.min(o.params.slidesPerGroupSkip,s);let x=g+Math.floor((s-g)/o.params.slidesPerGroup);x>=r.length&&(x=r.length-1);const p=-r[x];if(c.normalizeSlideIndex)for(let A=0;A<u.length;A+=1){const w=-Math.floor(p*100),C=Math.floor(u[A]*100),P=Math.floor(u[A+1]*100);typeof u[A+1]<"u"?w>=C&&w<P-(P-C)/2?s=A:w>=C&&w<P&&(s=A+1):w>=C&&(s=A)}if(o.initialized&&s!==h&&(!o.allowSlideNext&&(f?p>o.translate&&p>o.minTranslate():p<o.translate&&p<o.minTranslate())||!o.allowSlidePrev&&p>o.translate&&p>o.maxTranslate()&&(h||0)!==s))return!1;s!==(d||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(p);let b;if(s>h?b="next":s<h?b="prev":b="reset",f&&-p===o.translate||!f&&p===o.translate)return o.updateActiveIndex(s),c.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),c.effect!=="slide"&&o.setTranslate(p),b!=="reset"&&(o.transitionStart(i,b),o.transitionEnd(i,b)),!1;if(c.cssMode){const A=o.isHorizontal(),w=f?p:-p;if(e===0){const C=o.virtual&&o.params.virtual.enabled;C&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),C&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[A?"scrollLeft":"scrollTop"]=w})):m[A?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Kn({swiper:o,targetPosition:w,side:A?"left":"top"}),!0;m.scrollTo({[A?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(p),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,l),o.transitionStart(i,b),e===0?o.transitionEnd(i,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function qo(t,e,i,l){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const o=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let c;if(o){const f=s*a.params.grid.rows;c=a.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else c=a.getSlideIndexByData(s);const r=o?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u}=a.params;let d=a.params.slidesPerView;d==="auto"?d=a.slidesPerViewDynamic():(d=Math.ceil(parseFloat(a.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let h=r-c<d;if(u&&(h=h||c<Math.ceil(d/2)),l&&u&&a.params.slidesPerView!=="auto"&&!o&&(h=!1),h){const f=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?c+1:c-r+1,slideRealIndex:f==="next"?a.realIndex:void 0})}if(o){const f=s*a.params.grid.rows;s=a.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,l)}),a}function Yo(t,e,i){e===void 0&&(e=!0);const l=this,{enabled:a,params:o,animating:s}=l;if(!a||l.destroyed)return l;typeof t>"u"&&(t=l.params.speed);let c=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(c=Math.max(l.slidesPerViewDynamic("current",!0),1));const r=l.activeIndex<o.slidesPerGroupSkip?1:c,u=l.virtual&&o.virtual.enabled;if(o.loop){if(s&&!u&&o.loopPreventsSliding)return!1;if(l.loopFix({direction:"next"}),l._clientLeft=l.wrapperEl.clientLeft,l.activeIndex===l.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{l.slideTo(l.activeIndex+r,t,e,i)}),!0}return o.rewind&&l.isEnd?l.slideTo(0,t,e,i):l.slideTo(l.activeIndex+r,t,e,i)}function Go(t,e,i){e===void 0&&(e=!0);const l=this,{params:a,snapGrid:o,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=l;if(!r||l.destroyed)return l;typeof t>"u"&&(t=l.params.speed);const d=l.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;l.loopFix({direction:"prev"}),l._clientLeft=l.wrapperEl.clientLeft}const h=c?l.translate:-l.translate;function f(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const m=f(h),y=o.map(p=>f(p));let g=o[y.indexOf(m)-1];if(typeof g>"u"&&a.cssMode){let p;o.forEach((b,A)=>{m>=b&&(p=A)}),typeof p<"u"&&(g=o[p>0?p-1:p])}let x=0;if(typeof g<"u"&&(x=s.indexOf(g),x<0&&(x=l.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(x=x-l.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),a.rewind&&l.isBeginning){const p=l.params.virtual&&l.params.virtual.enabled&&l.virtual?l.virtual.slides.length-1:l.slides.length-1;return l.slideTo(p,t,e,i)}else if(a.loop&&l.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{l.slideTo(x,t,e,i)}),!0;return l.slideTo(x,t,e,i)}function Zo(t,e,i){e===void 0&&(e=!0);const l=this;if(!l.destroyed)return typeof t>"u"&&(t=l.params.speed),l.slideTo(l.activeIndex,t,e,i)}function Ko(t,e,i,l){e===void 0&&(e=!0),l===void 0&&(l=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let o=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,o),c=s+Math.floor((o-s)/a.params.slidesPerGroup),r=a.rtlTranslate?a.translate:-a.translate;if(r>=a.snapGrid[c]){const u=a.snapGrid[c],d=a.snapGrid[c+1];r-u>(d-u)*l&&(o+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*l&&(o-=a.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,a.slidesGrid.length-1),a.slideTo(o,t,e,i)}function _o(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,l=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,o;const s=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?a<t.loopedSlides-l/2||a>t.slides.length-t.loopedSlides+l/2?(t.loopFix(),a=t.getSlideIndex(zt(i,`${s}[data-swiper-slide-index="${o}"]`)[0]),ri(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-l?(t.loopFix(),a=t.getSlideIndex(zt(i,`${s}[data-swiper-slide-index="${o}"]`)[0]),ri(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var Jo={slideTo:Xo,slideToLoop:qo,slideNext:Yo,slidePrev:Go,slideReset:Zo,slideToClosest:Ko,slideToClickedSlide:_o};function Qo(t){const e=this,{params:i,slidesEl:l}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{zt(l,`.${i.slideClass}, swiper-slide`).forEach((h,f)=>{h.setAttribute("data-swiper-slide-index",f)})},o=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(o?i.grid.rows:1),c=e.slides.length%s!==0,r=o&&e.slides.length%i.grid.rows!==0,u=d=>{for(let h=0;h<d;h+=1){const f=e.isElement?di("swiper-slide",[i.slideBlankClass]):di("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else ji("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)");a()}else if(r){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;u(d),e.recalcSlides(),e.updateSlides()}else ji("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)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function $o(t){let{slideRealIndex:e,slideTo:i=!0,direction:l,setTranslate:a,activeSlideIndex:o,byController:s,byMousewheel:c}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:h,slidesEl:f,params:m}=r,{centeredSlides:y}=m;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&m.virtual.enabled){i&&(!m.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):m.centeredSlides&&r.snapIndex<m.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=d,r.allowSlideNext=h,r.emit("loopFix");return}let g=m.slidesPerView;g==="auto"?g=r.slidesPerViewDynamic():(g=Math.ceil(parseFloat(m.slidesPerView,10)),y&&g%2===0&&(g=g+1));const x=m.slidesPerGroupAuto?g:m.slidesPerGroup;let p=x;p%x!==0&&(p+=x-p%x),p+=m.loopAdditionalSlides,r.loopedSlides=p;const b=r.grid&&m.grid&&m.grid.rows>1;u.length<g+p?ji("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"):b&&m.grid.fill==="row"&&ji("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const A=[],w=[];let C=r.activeIndex;typeof o>"u"?o=r.getSlideIndex(u.filter(j=>j.classList.contains(m.slideActiveClass))[0]):C=o;const P=l==="next"||!l,D=l==="prev"||!l;let O=0,S=0;const T=b?Math.ceil(u.length/m.grid.rows):u.length,k=(b?u[o].column:o)+(y&&typeof a>"u"?-g/2+.5:0);if(k<p){O=Math.max(p-k,x);for(let j=0;j<p-k;j+=1){const v=j-Math.floor(j/T)*T;if(b){const B=T-v-1;for(let W=u.length-1;W>=0;W-=1)u[W].column===B&&A.push(W)}else A.push(T-v-1)}}else if(k+g>T-p){S=Math.max(k-(T-p*2),x);for(let j=0;j<S;j+=1){const v=j-Math.floor(j/T)*T;b?u.forEach((B,W)=>{B.column===v&&w.push(W)}):w.push(v)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),D&&A.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.prepend(u[j]),u[j].swiperLoopMoveDOM=!1}),P&&w.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.append(u[j]),u[j].swiperLoopMoveDOM=!1}),r.recalcSlides(),m.slidesPerView==="auto"?r.updateSlides():b&&(A.length>0&&D||w.length>0&&P)&&r.slides.forEach((j,v)=>{r.grid.updateSlide(v,j,r.slides)}),m.watchSlidesProgress&&r.updateSlidesOffset(),i){if(A.length>0&&D){if(typeof e>"u"){const j=r.slidesGrid[C],B=r.slidesGrid[C+O]-j;c?r.setTranslate(r.translate-B):(r.slideTo(C+Math.ceil(O),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-B,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-B))}else if(a){const j=b?A.length/m.grid.rows:A.length;r.slideTo(r.activeIndex+j,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(w.length>0&&P)if(typeof e>"u"){const j=r.slidesGrid[C],B=r.slidesGrid[C-S]-j;c?r.setTranslate(r.translate-B):(r.slideTo(C-S,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-B,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-B))}else{const j=b?w.length/m.grid.rows:w.length;r.slideTo(r.activeIndex-j,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=h,r.controller&&r.controller.control&&!s){const j={slideRealIndex:e,direction:l,setTranslate:a,activeSlideIndex:o,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(v=>{!v.destroyed&&v.params.loop&&v.loopFix({...j,slideTo:v.params.slidesPerView===m.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...j,slideTo:r.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}r.emit("loopFix")}function ea(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const l=[];t.slides.forEach(a=>{const o=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;l[o]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),l.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ta={loopCreate:Qo,loopFix:$o,loopDestroy:ea};function ia(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 na(){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 la={setGrabCursor:ia,unsetGrabCursor:na};function oa(t,e){e===void 0&&(e=this);function i(l){if(!l||l===Mt()||l===kt())return null;l.assignedSlot&&(l=l.assignedSlot);const a=l.closest(t);return!a&&!l.getRootNode?null:a||i(l.getRootNode().host)}return i(e)}function tl(t,e,i){const l=kt(),{params:a}=t,o=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return o&&(i<=s||i>=l.innerWidth-s)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function aa(t){const e=this,i=Mt();let l=t;l.originalEvent&&(l=l.originalEvent);const a=e.touchEventsData;if(l.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==l.pointerId)return;a.pointerId=l.pointerId}else l.type==="touchstart"&&l.targetTouches.length===1&&(a.touchId=l.targetTouches[0].identifier);if(l.type==="touchstart"){tl(e,l,l.targetTouches[0].pageX);return}const{params:o,touches:s,enabled:c}=e;if(!c||!o.simulateTouch&&l.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let r=l.target;if(o.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in l&&l.which===3||"button"in l&&l.button>0||a.isTouched&&a.isMoved)return;const u=!!o.noSwipingClass&&o.noSwipingClass!=="",d=l.composedPath?l.composedPath():l.path;u&&l.target&&l.target.shadowRoot&&d&&(r=d[0]);const h=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(f?oa(h,r):r.closest(h))){e.allowClick=!0;return}if(o.swipeHandler&&!r.closest(o.swipeHandler))return;s.currentX=l.pageX,s.currentY=l.pageY;const m=s.currentX,y=s.currentY;if(!tl(e,l,m))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=m,s.startY=y,a.touchStartTime=Vt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(a.allowThresholdMove=!1);let g=!0;r.matches(a.focusableElements)&&(g=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const x=g&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||x)&&!r.isContentEditable&&l.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function sa(t){const e=Mt(),i=this,l=i.touchEventsData,{params:a,touches:o,rtlTranslate:s,enabled:c}=i;if(!c||!a.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(l.touchId!==null||r.pointerId!==l.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(P=>P.identifier===l.touchId)[0],!u||u.identifier!==l.touchId)return}else u=r;if(!l.isTouched){l.startMoving&&l.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,h=u.pageY;if(r.preventedByNestedSwiper){o.startX=d,o.startY=h;return}if(!i.allowTouchMove){r.target.matches(l.focusableElements)||(i.allowClick=!1),l.isTouched&&(Object.assign(o,{startX:d,startY:h,currentX:d,currentY:h}),l.touchStartTime=Vt());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(h<o.startY&&i.translate<=i.maxTranslate()||h>o.startY&&i.translate>=i.minTranslate()){l.isTouched=!1,l.isMoved=!1;return}}else if(d<o.startX&&i.translate<=i.maxTranslate()||d>o.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(l.focusableElements)){l.isMoved=!0,i.allowClick=!1;return}l.allowTouchCallbacks&&i.emit("touchMove",r),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=d,o.currentY=h;const f=o.currentX-o.startX,m=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(typeof l.isScrolling>"u"){let P;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?l.isScrolling=!1:f*f+m*m>=25&&(P=Math.atan2(Math.abs(m),Math.abs(f))*180/Math.PI,l.isScrolling=i.isHorizontal()?P>a.touchAngle:90-P>a.touchAngle)}if(l.isScrolling&&i.emit("touchMoveOpposite",r),typeof l.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(l.startMoving=!0),l.isScrolling||r.type==="touchmove"&&l.preventTouchMoveFromPointerMove){l.isTouched=!1;return}if(!l.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let y=i.isHorizontal()?f:m,g=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;a.oneWayMovement&&(y=Math.abs(y)*(s?1:-1),g=Math.abs(g)*(s?1:-1)),o.diff=y,y*=a.touchRatio,s&&(y=-y,g=-g);const x=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const p=i.params.loop&&!a.cssMode,b=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!l.isMoved){if(p&&b&&i.loopFix({direction:i.swipeDirection}),l.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(P)}l.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let A;if(new Date().getTime(),l.isMoved&&l.allowThresholdMove&&x!==i.touchesDirection&&p&&b&&Math.abs(y)>=1){Object.assign(o,{startX:d,startY:h,currentX:d,currentY:h,startTranslate:l.currentTranslate}),l.loopSwapReset=!0,l.startTranslate=l.currentTranslate;return}i.emit("sliderMove",r),l.isMoved=!0,l.currentTranslate=y+l.startTranslate;let w=!0,C=a.resistanceRatio;if(a.touchReleaseOnEdges&&(C=0),y>0?(p&&b&&!A&&l.allowThresholdMove&&l.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),l.currentTranslate>i.minTranslate()&&(w=!1,a.resistance&&(l.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+l.startTranslate+y)**C))):y<0&&(p&&b&&!A&&l.allowThresholdMove&&l.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),l.currentTranslate<i.maxTranslate()&&(w=!1,a.resistance&&(l.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-l.startTranslate-y)**C))),w&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&l.currentTranslate<l.startTranslate&&(l.currentTranslate=l.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&l.currentTranslate>l.startTranslate&&(l.currentTranslate=l.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(l.currentTranslate=l.startTranslate),a.threshold>0)if(Math.abs(y)>a.threshold||l.allowThresholdMove){if(!l.allowThresholdMove){l.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,l.currentTranslate=l.startTranslate,o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{l.currentTranslate=l.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(l.currentTranslate),i.setTranslate(l.currentTranslate))}function ra(t){const e=this,i=e.touchEventsData;let l=t;l.originalEvent&&(l=l.originalEvent);let a;if(l.type==="touchend"||l.type==="touchcancel"){if(a=[...l.changedTouches].filter(C=>C.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||l.pointerId!==i.pointerId)return;a=l}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(l.type)&&!(["pointercancel","contextmenu"].includes(l.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&l.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const h=Vt(),f=h-i.touchStartTime;if(e.allowClick){const C=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(C&&C[0]||l.target,C),e.emit("tap click",l),f<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(i.lastClickTime=Vt(),ri(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||c.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 m;if(s.followFinger?m=r?e.translate:-e.translate:m=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const y=m>=-e.maxTranslate()&&!e.params.loop;let g=0,x=e.slidesSizesGrid[0];for(let C=0;C<u.length;C+=C<s.slidesPerGroupSkip?1:s.slidesPerGroup){const P=C<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[C+P]<"u"?(y||m>=u[C]&&m<u[C+P])&&(g=C,x=u[C+P]-u[C]):(y||m>=u[C])&&(g=C,x=u[u.length-1]-u[u.length-2])}let p=null,b=null;s.rewind&&(e.isBeginning?b=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const A=(m-u[g])/x,w=g<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(f>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(A>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?p:g+w):e.slideTo(g)),e.swipeDirection==="prev"&&(A>1-s.longSwipesRatio?e.slideTo(g+w):b!==null&&A<0&&Math.abs(A)>s.longSwipesRatio?e.slideTo(b):e.slideTo(g))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(l.target===e.navigation.nextEl||l.target===e.navigation.prevEl)?l.target===e.navigation.nextEl?e.slideTo(g+w):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:g+w),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:g))}}function il(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:l,allowSlidePrev:a,snapGrid:o}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const c=s&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!c?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=l,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function da(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function ca(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:l}=t;if(!l)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a;const o=t.maxTranslate()-t.minTranslate();o===0?a=0:a=(t.translate-t.minTranslate())/o,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ua(t){const e=this;Ni(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function va(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const nl=(t,e)=>{const i=Mt(),{params:l,el:a,wrapperEl:o,device:s}=t,c=!!l.nested,r=e==="on"?"addEventListener":"removeEventListener",u=e;!a||typeof a=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:c}),a[r]("touchstart",t.onTouchStart,{passive:!1}),a[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:c}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:c}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(l.preventClicks||l.preventClicksPropagation)&&a[r]("click",t.onClick,!0),l.cssMode&&o[r]("scroll",t.onScroll),l.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",il,!0):t[u]("observerUpdate",il,!0),a[r]("load",t.onLoad,{capture:!0}))};function pa(){const t=this,{params:e}=t;t.onTouchStart=aa.bind(t),t.onTouchMove=sa.bind(t),t.onTouchEnd=ra.bind(t),t.onDocumentTouchStart=va.bind(t),e.cssMode&&(t.onScroll=ca.bind(t)),t.onClick=da.bind(t),t.onLoad=ua.bind(t),nl(t,"on")}function ma(){nl(this,"off")}var fa={attachEvents:pa,detachEvents:ma};const ll=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function ha(){const t=this,{realIndex:e,initialized:i,params:l,el:a}=t,o=l.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const s=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const r=(s in o?o[s]:void 0)||t.originalParams,u=ll(t,l),d=ll(t,r),h=t.params.grabCursor,f=r.grabCursor,m=l.enabled;u&&!d?(a.classList.remove(`${l.containerModifierClass}grid`,`${l.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${l.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&l.grid.fill==="column")&&a.classList.add(`${l.containerModifierClass}grid-column`),t.emitContainerClasses()),h&&!f?t.unsetGrabCursor():!h&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof r[A]>"u")return;const w=l[A]&&l[A].enabled,C=r[A]&&r[A].enabled;w&&!C&&t[A].disable(),!w&&C&&t[A].enable()});const y=r.direction&&r.direction!==l.direction,g=l.loop&&(r.slidesPerView!==l.slidesPerView||y),x=l.loop;y&&i&&t.changeDirection(),Rt(t.params,r);const p=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!p?t.disable():!m&&p&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",r),i&&(g?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&b?(t.loopCreate(e),t.updateSlides()):x&&!b&&t.loopDestroy()),t.emit("breakpoint",r)}function Aa(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let l=!1;const a=kt(),o=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const r=parseFloat(c.substr(1));return{value:o*r,point:c}}return{value:c,point:c}});s.sort((c,r)=>parseInt(c.value,10)-parseInt(r.value,10));for(let c=0;c<s.length;c+=1){const{point:r,value:u}=s[c];e==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(l=r):u<=i.clientWidth&&(l=r)}return l||"max"}var ba={setBreakpoint:ha,getBreakpoint:Aa};function ga(t,e){const i=[];return t.forEach(l=>{typeof l=="object"?Object.keys(l).forEach(a=>{l[a]&&i.push(e+a)}):typeof l=="string"&&i.push(e+l)}),i}function ya(){const t=this,{classNames:e,params:i,rtl:l,el:a,device:o}=t,s=ga(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:l},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...s),a.classList.add(...e),t.emitContainerClasses()}function wa(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Sa={addClasses:ya,removeClasses:wa};function xa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:l}=i;if(l){const a=t.slides.length-1,o=t.slidesGrid[a]+t.slidesSizesGrid[a]+l*2;t.isLocked=t.size>o}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 Ta={checkOverflow:xa},rn={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 Ea(t,e){return function(l){l===void 0&&(l={});const a=Object.keys(l)[0],o=l[a];if(typeof o!="object"||o===null){Rt(e,l);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in o)){Rt(e,l);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),Rt(e,l)}}const dn={eventsEmitter:So,update:jo,translate:Fo,transition:Ho,slide:Jo,loop:ta,grabCursor:la,events:fa,breakpoints:ba,checkOverflow:Ta,classes:Sa},cn={};let un=class Yt{constructor(){let e,i;for(var l=arguments.length,a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=Rt({},i),e&&!i.el&&(i.el=e);const s=Mt();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(h=>{const f=Rt({},i,{el:h});d.push(new Yt(f))}),d}const c=this;c.__swiper__=!0,c.support=Jn(),c.device=Qn({userAgent:i.userAgent}),c.browser=go(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=[...c.__modules__],i.modules&&Array.isArray(i.modules)&&c.modules.push(...i.modules);const r={};c.modules.forEach(d=>{d({params:i,swiper:c,extendParams:Ea(i,r),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})});const u=Rt({},rn,r);return c.params=Rt({},u,cn,i),c.originalParams=Rt({},c.params),c.passedParams=Rt({},i),c.params&&c.params.on&&Object.keys(c.params.on).forEach(d=>{c.on(d,c.params.on[d])}),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return c.params.direction==="horizontal"},isVertical(){return c.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:c.params.allowSlideNext,allowSlidePrev:c.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:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}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:l}=this,a=zt(i,`.${l.slideClass}, swiper-slide`),o=mi(a[0]);return mi(e)-o}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:l}=e;e.slides=zt(i,`.${l.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 l=this;e=Math.min(Math.max(e,0),1);const a=l.minTranslate(),s=(l.maxTranslate()-a)*e+a;l.translateTo(s,typeof i>"u"?0:i),l.updateActiveIndex(),l.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(l=>l.indexOf("swiper")===0||l.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(l=>l.indexOf("swiper-slide")===0||l.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(l=>{const a=e.getSlideClasses(l);i.push({slideEl:l,classNames:a}),e.emit("_slideClass",l,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const l=this,{params:a,slides:o,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=l;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let h=o[u]?Math.ceil(o[u].swiperSlideSize):0,f;for(let m=u+1;m<o.length;m+=1)o[m]&&!f&&(h+=Math.ceil(o[m].swiperSlideSize),d+=1,h>r&&(f=!0));for(let m=u-1;m>=0;m-=1)o[m]&&!f&&(h+=o[m].swiperSlideSize,d+=1,h>r&&(f=!0))}else if(e==="current")for(let h=u+1;h<o.length;h+=1)(i?s[h]+c[h]-s[u]<r:s[h]-s[u]<r)&&(d+=1);else for(let h=u-1;h>=0;h-=1)s[u]-s[h]<r&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:l}=e;l.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Ni(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,c=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(l.freeMode&&l.freeMode.enabled&&!l.cssMode)a(),l.autoHeight&&e.updateAutoHeight();else{if((l.slidesPerView==="auto"||l.slidesPerView>1)&&e.isEnd&&!l.centeredSlides){const s=e.virtual&&l.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(s.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||a()}l.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const l=this,a=l.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(l.el.classList.remove(`${l.params.containerModifierClass}${a}`),l.el.classList.add(`${l.params.containerModifierClass}${e}`),l.emitContainerClasses(),l.params.direction=e,l.slides.forEach(o=>{e==="vertical"?o.style.width="":o.style.height=""}),l.emit("changeDirection"),i&&l.update()),l}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 l=e||i.params.el;if(typeof l=="string"&&(l=document.querySelector(l)),!l)return!1;l.swiper=i,l.parentNode&&l.parentNode.host&&l.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=l&&l.shadowRoot&&l.shadowRoot.querySelector?l.shadowRoot.querySelector(a()):zt(l,a())[0];return!s&&i.params.createElements&&(s=di("div",i.params.wrapperClass),l.append(s),zt(l,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:l,wrapperEl:s,slidesEl:i.isElement&&!l.parentNode.host.slideSlots?l.parentNode.host:s,hostEl:i.isElement?l.parentNode.host:l,mounted:!0,rtl:l.dir.toLowerCase()==="rtl"||_t(l,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(l.dir.toLowerCase()==="rtl"||_t(l,"direction")==="rtl"),wrongRTL:_t(s,"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 a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(o=>{o.complete?Ni(i,o):o.addEventListener("load",s=>{Ni(i,s.target)})}),sn(i),i.initialized=!0,sn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const l=this,{params:a,el:o,wrapperEl:s,slides:c}=l;return typeof l.params>"u"||l.destroyed||(l.emit("beforeDestroy"),l.initialized=!1,l.detachEvents(),a.loop&&l.loopDestroy(),i&&(l.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),s&&s.removeAttribute("style"),c&&c.length&&c.forEach(r=>{r.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),l.emit("destroy"),Object.keys(l.eventsListeners).forEach(r=>{l.off(r)}),e!==!1&&(l.el&&typeof l.el!="string"&&(l.el.swiper=null),co(l)),l.destroyed=!0),null}static extendDefaults(e){Rt(cn,e)}static get extendedDefaults(){return cn}static get defaults(){return rn}static installModule(e){Yt.prototype.__modules__||(Yt.prototype.__modules__=[]);const i=Yt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Yt.installModule(i)),Yt):(Yt.installModule(e),Yt)}};Object.keys(dn).forEach(t=>{Object.keys(dn[t]).forEach(e=>{un.prototype[e]=dn[t][e]})}),un.use([yo,wo]);const ol=["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 ni(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function ci(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(l=>i.indexOf(l)<0).forEach(l=>{typeof t[l]>"u"?t[l]=e[l]:ni(e[l])&&ni(t[l])&&Object.keys(e[l]).length>0?e[l].__swiper__?t[l]=e[l]:ci(t[l],e[l]):t[l]=e[l]})}function al(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function sl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function rl(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function dl(t){t===void 0&&(t="");const e=t.split(" ").map(l=>l.trim()).filter(l=>!!l),i=[];return e.forEach(l=>{i.indexOf(l)<0&&i.push(l)}),i.join(" ")}function ka(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ia(t){let{swiper:e,slides:i,passedParams:l,changedParams:a,nextEl:o,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:d,pagination:h,navigation:f,scrollbar:m,virtual:y,thumbs:g}=e;let x,p,b,A,w,C,P,D;a.includes("thumbs")&&l.thumbs&&l.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(x=!0),a.includes("controller")&&l.controller&&l.controller.control&&d.controller&&!d.controller.control&&(p=!0),a.includes("pagination")&&l.pagination&&(l.pagination.el||r)&&(d.pagination||d.pagination===!1)&&h&&!h.el&&(b=!0),a.includes("scrollbar")&&l.scrollbar&&(l.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&m&&!m.el&&(A=!0),a.includes("navigation")&&l.navigation&&(l.navigation.prevEl||s)&&(l.navigation.nextEl||o)&&(d.navigation||d.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const O=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),d[S].prevEl=void 0,d[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),d[S].el=void 0,e[S].el=void 0))};a.includes("loop")&&e.isElement&&(d.loop&&!l.loop?C=!0:!d.loop&&l.loop?P=!0:D=!0),u.forEach(S=>{if(ni(d[S])&&ni(l[S]))Object.assign(d[S],l[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in l[S]&&!l[S].enabled&&O(S);else{const T=l[S];(T===!0||T===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?T===!1&&O(S):d[S]=l[S]}}),u.includes("controller")&&!p&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&y&&d.virtual.enabled?(y.slides=i,y.update(!0)):a.includes("virtual")&&y&&d.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),a.includes("children")&&i&&d.loop&&(D=!0),x&&g.init()&&g.update(!0),p&&(e.controller.control=d.controller.control),b&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),h.init(),h.render(),h.update()),A&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-scrollbar"),c.part.add("scrollbar"),e.el.appendChild(c)),c&&(d.scrollbar.el=c),m.init(),m.updateSize(),m.setTranslate()),w&&(e.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=e.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),e.el.appendChild(o)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),o&&(d.navigation.nextEl=o),s&&(d.navigation.prevEl=s),f.init(),f.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=l.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=l.allowSlidePrev),a.includes("direction")&&e.changeDirection(l.direction,!1),(C||D)&&e.loopDestroy(),(P||D)&&e.loopCreate(),e.update()}function Ca(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},l={},a={};ci(i,rn),i._emitClasses=!0,i.init=!1;const o={},s=ol.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?ni(t[r])?(i[r]={},a[r]={},ci(i[r],t[r]),ci(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?l[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:o[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:a,rest:o,events:l}}function Pa(t,e){let{el:i,nextEl:l,prevEl:a,paginationEl:o,scrollbarEl:s,swiper:c}=t;al(e)&&l&&a&&(c.params.navigation.nextEl=l,c.originalParams.navigation.nextEl=l,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),sl(e)&&o&&(c.params.pagination.el=o,c.originalParams.pagination.el=o),rl(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function Oa(t,e,i,l,a){const o=[];if(!e)return o;const s=r=>{o.indexOf(r)<0&&o.push(r)};if(i&&l){const r=l.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),l.length!==i.length&&s("children")}return ol.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(ni(t[r])&&ni(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(h=>{t[r][h]!==e[r][h]&&s(r)}),d.forEach(h=>{t[r][h]!==e[r][h]&&s(r)}))}else t[r]!==e[r]&&s(r)}),o}const Ma=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 Di(){return Di=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},Di.apply(this,arguments)}function cl(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ul(t){const e=[];return n.Children.toArray(t).forEach(i=>{cl(i)?e.push(i):i.props&&i.props.children&&ul(i.props.children).forEach(l=>e.push(l))}),e}function La(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(l=>{if(cl(l))e.push(l);else if(l.props&&l.props.slot&&i[l.props.slot])i[l.props.slot].push(l);else if(l.props&&l.props.children){const a=ul(l.props.children);a.length>0?a.forEach(o=>e.push(o)):i["container-end"].push(l)}else i["container-end"].push(l)}),{slides:e,slots:i}}function ja(t,e,i){if(!i)return null;const l=d=>{let h=d;return d<0?h=e.length+d:h>=e.length&&(h=h-e.length),h},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:o,to:s}=i,c=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,u=[];for(let d=c;d<r;d+=1)d>=o&&d<=s&&u.push(e[l(d)]);return u.map((d,h)=>n.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${h}`}))}function fi(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const vn=n.createContext(null),hi=()=>n.useContext(vn),Ra=n.createContext(null),Xt=n.forwardRef(function(t,e){let{className:i,tag:l="div",wrapperTag:a="div",children:o,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,d]=n.useState("swiper"),[h,f]=n.useState(null),[m,y]=n.useState(!1),g=n.useRef(!1),x=n.useRef(null),p=n.useRef(null),b=n.useRef(null),A=n.useRef(null),w=n.useRef(null),C=n.useRef(null),P=n.useRef(null),D=n.useRef(null),{params:O,passedParams:S,rest:T,events:N}=Ca(c),{slides:k,slots:j}=La(o),v=()=>{y(!m)};Object.assign(O.on,{_containerClasses(I,E){d(E)}});const B=()=>{Object.assign(O.on,N),r=!0;const I={...O};if(delete I.wrapperClass,p.current=new un(I),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=k;const E={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};ci(p.current.params.virtual,E),ci(p.current.originalParams.virtual,E)}};x.current||B(),p.current&&p.current.on("_beforeBreakpoint",v);const W=()=>{r||!N||!p.current||Object.keys(N).forEach(I=>{p.current.on(I,N[I])})},L=()=>{!N||!p.current||Object.keys(N).forEach(I=>{p.current.off(I,N[I])})};n.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",v)}),n.useEffect(()=>{!g.current&&p.current&&(p.current.emitSlidesClasses(),g.current=!0)}),fi(()=>{if(e&&(e.current=x.current),!!x.current)return p.current.destroyed&&B(),Pa({el:x.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:D.current,swiper:p.current},O),s&&!p.current.destroyed&&s(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),fi(()=>{W();const I=Oa(S,b.current,k,A.current,E=>E.key);return b.current=S,A.current=k,I.length&&p.current&&!p.current.destroyed&&Ia({swiper:p.current,slides:k,passedParams:S,changedParams:I,nextEl:w.current,prevEl:C.current,scrollbarEl:D.current,paginationEl:P.current}),()=>{L()}}),fi(()=>{Ma(p.current)},[h]);function V(){return O.virtual?ja(p.current,k,h):k.map((I,E)=>n.cloneElement(I,{swiper:p.current,swiperSlideIndex:E}))}return n.createElement(l,Di({ref:x,className:dl(`${u}${i?` ${i}`:""}`)},T),n.createElement(Ra.Provider,{value:p.current},j["container-start"],n.createElement(a,{className:ka(O.wrapperClass)},j["wrapper-start"],V(),j["wrapper-end"]),al(O)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:C,className:"swiper-button-prev"}),n.createElement("div",{ref:w,className:"swiper-button-next"})),rl(O)&&n.createElement("div",{ref:D,className:"swiper-scrollbar"}),sl(O)&&n.createElement("div",{ref:P,className:"swiper-pagination"}),j["container-end"]))});Xt.displayName="Swiper";const Nt=n.forwardRef(function(t,e){let{tag:i="div",children:l,className:a="",swiper:o,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...d}=t===void 0?{}:t;const h=n.useRef(null),[f,m]=n.useState("swiper-slide"),[y,g]=n.useState(!1);function x(w,C,P){C===h.current&&m(P)}fi(()=>{if(typeof u<"u"&&(h.current.swiperSlideIndex=u),e&&(e.current=h.current),!(!h.current||!o)){if(o.destroyed){f!=="swiper-slide"&&m("swiper-slide");return}return o.on("_slideClass",x),()=>{o&&o.off("_slideClass",x)}}}),fi(()=>{o&&h.current&&!o.destroyed&&m(o.getSlideClasses(h.current))},[o]);const p={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>typeof l=="function"?l(p):l,A=()=>{g(!0)};return n.createElement(i,Di({ref:h,className:dl(`${f}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:A},d),s&&n.createElement(vn.Provider,{value:p},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},b(),c&&!y&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&n.createElement(vn.Provider,{value:p},b(),c&&!y&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Nt.displayName="SwiperSlide";function pn(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;const o=Mt(),s=kt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(d){if(!e.enabled)return;const{rtlTranslate:h}=e;let f=d;f.originalEvent&&(f=f.originalEvent);const m=f.keyCode||f.charCode,y=e.params.keyboard.pageUpDown,g=y&&m===33,x=y&&m===34,p=m===37,b=m===39,A=m===38,w=m===40;if(!e.allowSlideNext&&(e.isHorizontal()&&b||e.isVertical()&&w||x)||!e.allowSlidePrev&&(e.isHorizontal()&&p||e.isVertical()&&A||g))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey)&&!(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(g||x||p||b||A||w)){let C=!1;if(Ri(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ri(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,D=P.clientWidth,O=P.clientHeight,S=s.innerWidth,T=s.innerHeight,N=_n(P);h&&(N.left-=P.scrollLeft);const k=[[N.left,N.top],[N.left+D,N.top],[N.left,N.top+O],[N.left+D,N.top+O]];for(let j=0;j<k.length;j+=1){const v=k[j];if(v[0]>=0&&v[0]<=S&&v[1]>=0&&v[1]<=T){if(v[0]===0&&v[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((g||x||p||b)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((x||b)&&!h||(g||p)&&h)&&e.slideNext(),((g||p)&&!h||(x||b)&&h)&&e.slidePrev()):((g||x||A||w)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(x||w)&&e.slideNext(),(g||A)&&e.slidePrev()),a("keyPress",m)}}function r(){e.keyboard.enabled||(o.addEventListener("keydown",c),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(o.removeEventListener("keydown",c),e.keyboard.enabled=!1)}l("init",()=>{e.params.keyboard.enabled&&r()}),l("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function Vi(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;const o=kt();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 s,c=Vt(),r;const u=[];function d(A){let D=0,O=0,S=0,T=0;return"detail"in A&&(O=A.detail),"wheelDelta"in A&&(O=-A.wheelDelta/120),"wheelDeltaY"in A&&(O=-A.wheelDeltaY/120),"wheelDeltaX"in A&&(D=-A.wheelDeltaX/120),"axis"in A&&A.axis===A.HORIZONTAL_AXIS&&(D=O,O=0),S=D*10,T=O*10,"deltaY"in A&&(T=A.deltaY),"deltaX"in A&&(S=A.deltaX),A.shiftKey&&!S&&(S=T,T=0),(S||T)&&A.deltaMode&&(A.deltaMode===1?(S*=40,T*=40):(S*=800,T*=800)),S&&!D&&(D=S<1?-1:1),T&&!O&&(O=T<1?-1:1),{spinX:D,spinY:O,pixelX:S,pixelY:T}}function h(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function m(A){return e.params.mousewheel.thresholdDelta&&A.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Vt()-c<e.params.mousewheel.thresholdTime?!1:A.delta>=6&&Vt()-c<60?!0:(A.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",A.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",A.raw)),c=new o.Date().getTime(),!1)}function y(A){const w=e.params.mousewheel;if(A.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function g(A){let w=A,C=!0;if(!e.enabled||A.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const P=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let D=e.el;e.params.mousewheel.eventsTarget!=="container"&&(D=document.querySelector(e.params.mousewheel.eventsTarget));const O=D&&D.contains(w.target);if(!e.mouseEntered&&!O&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let S=0;const T=e.rtlTranslate?-1:1,N=d(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(N.pixelX)>Math.abs(N.pixelY))S=-N.pixelX*T;else return!0;else if(Math.abs(N.pixelY)>Math.abs(N.pixelX))S=-N.pixelY;else return!0;else S=Math.abs(N.pixelX)>Math.abs(N.pixelY)?-N.pixelX*T:-N.pixelY;if(S===0)return!0;P.invert&&(S=-S);let k=e.getTranslate()+S*P.sensitivity;if(k>=e.minTranslate()&&(k=e.minTranslate()),k<=e.maxTranslate()&&(k=e.maxTranslate()),C=e.params.loop?!0:!(k===e.minTranslate()||k===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const j={time:Vt(),delta:Math.abs(S),direction:Math.sign(S),raw:A};u.length>=2&&u.shift();const v=u.length?u[u.length-1]:void 0;if(u.push(j),v?(j.direction!==v.direction||j.delta>v.delta||j.time>v.time+150)&&m(j):m(j),y(j))return!0}else{const j={time:Vt(),delta:Math.abs(S),direction:Math.sign(S)},v=r&&j.time<r.time+500&&j.delta<=r.delta&&j.direction===r.direction;if(!v){r=void 0;let B=e.getTranslate()+S*P.sensitivity;const W=e.isBeginning,L=e.isEnd;if(B>=e.minTranslate()&&(B=e.minTranslate()),B<=e.maxTranslate()&&(B=e.maxTranslate()),e.setTransition(0),e.setTranslate(B),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!W&&e.isBeginning||!L&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const V=u.length?u[u.length-1]:void 0,I=u[0];if(u.push(j),V&&(j.delta>V.delta||j.direction!==V.direction))u.splice(0);else if(u.length>=15&&j.time-I.time<500&&I.delta-j.delta>=1&&j.delta<=6){const E=S>0?.8:.2;r=j,u.splice(0),s=ri(()=>{e.slideToClosest(e.params.speed,!0,void 0,E)},0)}s||(s=ri(()=>{r=j,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(v||a("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),P.releaseOnEdges&&(B===e.minTranslate()||B===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function x(A){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[A]("mouseenter",h),w[A]("mouseleave",f),w[A]("wheel",g)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",g),!0):e.mousewheel.enabled?!1:(x("addEventListener"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,g),!0):e.mousewheel.enabled?(x("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}l("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&p()}),l("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&b()}),Object.assign(e.mousewheel,{enable:p,disable:b})}function mn(t,e,i,l){return t.params.createElements&&Object.keys(l).forEach(a=>{if(!i[a]&&i.auto===!0){let o=zt(t.el,`.${l[a]}`)[0];o||(o=di("div",l[a]),o.className=l[a],t.el.append(o)),i[a]=o,e[a]=o}}),i}function fn(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function o(y){let g;return y&&typeof y=="string"&&e.isElement&&(g=e.el.querySelector(y),g)?g:(y&&(typeof y=="string"&&(g=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&g&&g.length>1&&e.el.querySelectorAll(y).length===1?g=e.el.querySelector(y):g&&g.length===1&&(g=g[0])),y&&!g?y:g)}function s(y,g){const x=e.params.navigation;y=Ue(y),y.forEach(p=>{p&&(p.classList[g?"add":"remove"](...x.disabledClass.split(" ")),p.tagName==="BUTTON"&&(p.disabled=g),e.params.watchOverflow&&e.enabled&&p.classList[e.isLocked?"add":"remove"](x.lockClass))})}function c(){const{nextEl:y,prevEl:g}=e.navigation;if(e.params.loop){s(g,!1),s(y,!1);return}s(g,e.isBeginning&&!e.params.rewind),s(y,e.isEnd&&!e.params.rewind)}function r(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const y=e.params.navigation;if(e.params.navigation=mn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let g=o(y.nextEl),x=o(y.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:x}),g=Ue(g),x=Ue(x);const p=(b,A)=>{b&&b.addEventListener("click",A==="next"?u:r),!e.enabled&&b&&b.classList.add(...y.lockClass.split(" "))};g.forEach(b=>p(b,"next")),x.forEach(b=>p(b,"prev"))}function h(){let{nextEl:y,prevEl:g}=e.navigation;y=Ue(y),g=Ue(g);const x=(p,b)=>{p.removeEventListener("click",b==="next"?u:r),p.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(p=>x(p,"next")),g.forEach(p=>x(p,"prev"))}l("init",()=>{e.params.navigation.enabled===!1?m():(d(),c())}),l("toEdge fromEdge lock unlock",()=>{c()}),l("destroy",()=>{h()}),l("enable disable",()=>{let{nextEl:y,prevEl:g}=e.navigation;if(y=Ue(y),g=Ue(g),e.enabled){c();return}[...y,...g].filter(x=>!!x).forEach(x=>x.classList.add(e.params.navigation.lockClass))}),l("click",(y,g)=>{let{nextEl:x,prevEl:p}=e.navigation;x=Ue(x),p=Ue(p);const b=g.target;let A=p.includes(b)||x.includes(b);if(e.isElement&&!A){const w=g.path||g.composedPath&&g.composedPath();w&&(A=w.find(C=>x.includes(C)||p.includes(C)))}if(e.params.navigation.hideOnClick&&!A){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let w;x.length?w=x[0].classList.contains(e.params.navigation.hiddenClass):p.length&&(w=p[0].classList.contains(e.params.navigation.hiddenClass)),a(w===!0?"navigationShow":"navigationHide"),[...x,...p].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),c()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(e.navigation,{enable:f,disable:m,update:c,init:d,destroy:h})}function qt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ai(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;const o="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:p=>p,formatFractionTotal:p=>p,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),e.pagination={el:null,bullets:[]};let s,c=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(p,b){const{bulletActiveClass:A}=e.params.pagination;p&&(p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${A}-${b}`),p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${A}-${b}-${b}`)))}function d(p){const b=p.target.closest(qt(e.params.pagination.bulletClass));if(!b)return;p.preventDefault();const A=mi(b)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===A)return;e.slideToLoop(A)}else e.slideTo(A)}function h(){const p=e.rtl,b=e.params.pagination;if(r())return;let A=e.pagination.el;A=Ue(A);let w,C;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,D=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,w=e.activeIndex||0),b.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const O=e.pagination.bullets;let S,T,N;if(b.dynamicBullets&&(s=en(O[0],e.isHorizontal()?"width":"height",!0),A.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${s*(b.dynamicMainBullets+4)}px`}),b.dynamicMainBullets>1&&C!==void 0&&(c+=w-(C||0),c>b.dynamicMainBullets-1?c=b.dynamicMainBullets-1:c<0&&(c=0)),S=Math.max(w-c,0),T=S+(Math.min(O.length,b.dynamicMainBullets)-1),N=(T+S)/2),O.forEach(k=>{const j=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(v=>`${b.bulletActiveClass}${v}`)].map(v=>typeof v=="string"&&v.includes(" ")?v.split(" "):v).flat();k.classList.remove(...j)}),A.length>1)O.forEach(k=>{const j=mi(k);j===w?k.classList.add(...b.bulletActiveClass.split(" ")):e.isElement&&k.setAttribute("part","bullet"),b.dynamicBullets&&(j>=S&&j<=T&&k.classList.add(...`${b.bulletActiveClass}-main`.split(" ")),j===S&&u(k,"prev"),j===T&&u(k,"next"))});else{const k=O[w];if(k&&k.classList.add(...b.bulletActiveClass.split(" ")),e.isElement&&O.forEach((j,v)=>{j.setAttribute("part",v===w?"bullet-active":"bullet")}),b.dynamicBullets){const j=O[S],v=O[T];for(let B=S;B<=T;B+=1)O[B]&&O[B].classList.add(...`${b.bulletActiveClass}-main`.split(" "));u(j,"prev"),u(v,"next")}}if(b.dynamicBullets){const k=Math.min(O.length,b.dynamicMainBullets+4),j=(s*k-s)/2-N*s,v=p?"right":"left";O.forEach(B=>{B.style[e.isHorizontal()?v:"top"]=`${j}px`})}}A.forEach((O,S)=>{if(b.type==="fraction"&&(O.querySelectorAll(qt(b.currentClass)).forEach(T=>{T.textContent=b.formatFractionCurrent(w+1)}),O.querySelectorAll(qt(b.totalClass)).forEach(T=>{T.textContent=b.formatFractionTotal(D)})),b.type==="progressbar"){let T;b.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const N=(w+1)/D;let k=1,j=1;T==="horizontal"?k=N:j=N,O.querySelectorAll(qt(b.progressbarFillClass)).forEach(v=>{v.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${j})`,v.style.transitionDuration=`${e.params.speed}ms`})}b.type==="custom"&&b.renderCustom?(O.innerHTML=b.renderCustom(e,w+1,D),S===0&&a("paginationRender",O)):(S===0&&a("paginationRender",O),a("paginationUpdate",O)),e.params.watchOverflow&&e.enabled&&O.classList[e.isLocked?"add":"remove"](b.lockClass)})}function f(){const p=e.params.pagination;if(r())return;const b=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 A=e.pagination.el;A=Ue(A);let w="";if(p.type==="bullets"){let C=e.params.loop?Math.ceil(b/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>b&&(C=b);for(let P=0;P<C;P+=1)p.renderBullet?w+=p.renderBullet.call(e,P,p.bulletClass):w+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?w=p.renderFraction.call(e,p.currentClass,p.totalClass):w=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?w=p.renderProgressbar.call(e,p.progressbarFillClass):w=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],A.forEach(C=>{p.type!=="custom"&&(C.innerHTML=w||""),p.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(qt(p.bulletClass)))}),p.type!=="custom"&&a("paginationRender",A[0])}function m(){e.params.pagination=mn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let b;typeof p.el=="string"&&e.isElement&&(b=e.el.querySelector(p.el)),!b&&typeof p.el=="string"&&(b=[...document.querySelectorAll(p.el)]),b||(b=p.el),!(!b||b.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(b)&&b.length>1&&(b=[...e.el.querySelectorAll(p.el)],b.length>1&&(b=b.filter(A=>Ri(A,".swiper")[0]===e.el)[0])),Array.isArray(b)&&b.length===1&&(b=b[0]),Object.assign(e.pagination,{el:b}),b=Ue(b),b.forEach(A=>{p.type==="bullets"&&p.clickable&&A.classList.add(...(p.clickableClass||"").split(" ")),A.classList.add(p.modifierClass+p.type),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(A.classList.add(`${p.modifierClass}${p.type}-dynamic`),c=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&A.classList.add(p.progressbarOppositeClass),p.clickable&&A.addEventListener("click",d),e.enabled||A.classList.add(p.lockClass)}))}function y(){const p=e.params.pagination;if(r())return;let b=e.pagination.el;b&&(b=Ue(b),b.forEach(A=>{A.classList.remove(p.hiddenClass),A.classList.remove(p.modifierClass+p.type),A.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(A.classList.remove(...(p.clickableClass||"").split(" ")),A.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(A=>A.classList.remove(...p.bulletActiveClass.split(" ")))}l("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:b}=e.pagination;b=Ue(b),b.forEach(A=>{A.classList.remove(p.horizontalClass,p.verticalClass),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),l("init",()=>{e.params.pagination.enabled===!1?x():(m(),f(),h())}),l("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),l("snapIndexChange",()=>{h()}),l("snapGridLengthChange",()=>{f(),h()}),l("destroy",()=>{y()}),l("enable disable",()=>{let{el:p}=e.pagination;p&&(p=Ue(p),p.forEach(b=>b.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),l("lock unlock",()=>{h()}),l("click",(p,b)=>{const A=b.target,w=Ue(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!A.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&A===e.navigation.nextEl||e.navigation.prevEl&&A===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);a(C===!0?"paginationShow":"paginationHide"),w.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ue(p),p.forEach(b=>b.classList.remove(e.params.pagination.paginationDisabledClass))),m(),f(),h()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ue(p),p.forEach(b=>b.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:g,disable:x,render:f,update:h,init:m,destroy:y})}function Na(t){let{swiper:e,extendParams:i,on:l,emit:a}=t;const o=Mt();let s=!1,c=null,r=null,u,d,h,f;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 m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k,rtlTranslate:j}=e,{dragEl:v,el:B}=k,W=e.params.scrollbar,L=e.params.loop?e.progressLoop:e.progress;let V=d,I=(h-d)*L;j?(I=-I,I>0?(V=d-I,I=0):-I+d>h&&(V=h+I)):I<0?(V=d+I,I=0):I+d>h&&(V=h-I),e.isHorizontal()?(v.style.transform=`translate3d(${I}px, 0, 0)`,v.style.width=`${V}px`):(v.style.transform=`translate3d(0px, ${I}px, 0)`,v.style.height=`${V}px`),W.hide&&(clearTimeout(c),B.style.opacity=1,c=setTimeout(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3))}function y(k){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${k}ms`)}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k}=e,{dragEl:j,el:v}=k;j.style.width="",j.style.height="",h=e.isHorizontal()?v.offsetWidth:v.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=h*f:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?j.style.width=`${d}px`:j.style.height=`${d}px`,f>=1?v.style.display="none":v.style.display="",e.params.scrollbar.hide&&(v.style.opacity=0),e.params.watchOverflow&&e.enabled&&k.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function x(k){return e.isHorizontal()?k.clientX:k.clientY}function p(k){const{scrollbar:j,rtlTranslate:v}=e,{el:B}=j;let W;W=(x(k)-_n(B)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(h-d),W=Math.max(Math.min(W,1),0),v&&(W=1-W);const L=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(L),e.setTranslate(L),e.updateActiveIndex(),e.updateSlidesClasses()}function b(k){const j=e.params.scrollbar,{scrollbar:v,wrapperEl:B}=e,{el:W,dragEl:L}=v;s=!0,u=k.target===L?x(k)-k.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,k.preventDefault(),k.stopPropagation(),B.style.transitionDuration="100ms",L.style.transitionDuration="100ms",p(k),clearTimeout(r),W.style.transitionDuration="0ms",j.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",k)}function A(k){const{scrollbar:j,wrapperEl:v}=e,{el:B,dragEl:W}=j;s&&(k.preventDefault&&k.cancelable?k.preventDefault():k.returnValue=!1,p(k),v.style.transitionDuration="0ms",B.style.transitionDuration="0ms",W.style.transitionDuration="0ms",a("scrollbarDragMove",k))}function w(k){const j=e.params.scrollbar,{scrollbar:v,wrapperEl:B}=e,{el:W}=v;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",B.style.transitionDuration=""),j.hide&&(clearTimeout(r),r=ri(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",k),j.snapOnRelease&&e.slideToClosest())}function C(k){const{scrollbar:j,params:v}=e,B=j.el;if(!B)return;const W=B,L=v.passiveListeners?{passive:!1,capture:!1}:!1,V=v.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const I=k==="on"?"addEventListener":"removeEventListener";W[I]("pointerdown",b,L),o[I]("pointermove",A,L),o[I]("pointerup",w,V)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function D(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function O(){const{scrollbar:k,el:j}=e;e.params.scrollbar=mn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const v=e.params.scrollbar;if(!v.el)return;let B;if(typeof v.el=="string"&&e.isElement&&(B=e.el.querySelector(v.el)),!B&&typeof v.el=="string"){if(B=o.querySelectorAll(v.el),!B.length)return}else B||(B=v.el);e.params.uniqueNavElements&&typeof v.el=="string"&&B.length>1&&j.querySelectorAll(v.el).length===1&&(B=j.querySelector(v.el)),B.length>0&&(B=B[0]),B.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass);let W;B&&(W=B.querySelector(qt(e.params.scrollbar.dragClass)),W||(W=di("div",e.params.scrollbar.dragClass),B.append(W))),Object.assign(k,{el:B,dragEl:W}),v.draggable&&P(),B&&B.classList[e.enabled?"remove":"add"](...Kt(e.params.scrollbar.lockClass))}function S(){const k=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...Kt(e.isHorizontal()?k.horizontalClass:k.verticalClass)),D()}l("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const k=e.params.scrollbar;let{el:j}=e.scrollbar;j=Ue(j),j.forEach(v=>{v.classList.remove(k.horizontalClass,k.verticalClass),v.classList.add(e.isHorizontal()?k.horizontalClass:k.verticalClass)})}),l("init",()=>{e.params.scrollbar.enabled===!1?N():(O(),g(),m())}),l("update resize observerUpdate lock unlock changeDirection",()=>{g()}),l("setTranslate",()=>{m()}),l("setTransition",(k,j)=>{y(j)}),l("enable disable",()=>{const{el:k}=e.scrollbar;k&&k.classList[e.enabled?"remove":"add"](...Kt(e.params.scrollbar.lockClass))}),l("destroy",()=>{S()});const T=()=>{e.el.classList.remove(...Kt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Kt(e.params.scrollbar.scrollbarDisabledClass)),O(),g(),m()},N=()=>{e.el.classList.add(...Kt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Kt(e.params.scrollbar.scrollbarDisabledClass)),S()};Object.assign(e.scrollbar,{enable:T,disable:N,updateSize:g,setTranslate:m,init:O,destroy:S})}function hn(t){let{swiper:e,extendParams:i,on:l}=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 a=null,o,s,c=new Date().getTime();function r(L){const V=a;V.length!==0&&(V.innerHTML="",V.innerHTML=L)}function u(L){L===void 0&&(L=16);const V=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(L).replace(/x/g,V)}function d(L){L=Ue(L),L.forEach(V=>{V.setAttribute("tabIndex","0")})}function h(L){L=Ue(L),L.forEach(V=>{V.setAttribute("tabIndex","-1")})}function f(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("role",V)})}function m(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("aria-roledescription",V)})}function y(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("aria-controls",V)})}function g(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("aria-label",V)})}function x(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("id",V)})}function p(L,V){L=Ue(L),L.forEach(I=>{I.setAttribute("aria-live",V)})}function b(L){L=Ue(L),L.forEach(V=>{V.setAttribute("aria-disabled",!0)})}function A(L){L=Ue(L),L.forEach(V=>{V.setAttribute("aria-disabled",!1)})}function w(L){if(L.keyCode!==13&&L.keyCode!==32)return;const V=e.params.a11y,I=L.target;if(!(e.pagination&&e.pagination.el&&(I===e.pagination.el||e.pagination.el.contains(L.target))&&!L.target.matches(qt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const E=Ue(e.navigation.prevEl);Ue(e.navigation.nextEl).includes(I)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(V.lastSlideMessage):r(V.nextSlideMessage)),E.includes(I)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(V.firstSlideMessage):r(V.prevSlideMessage))}e.pagination&&I.matches(qt(e.params.pagination.bulletClass))&&I.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:L,prevEl:V}=e.navigation;V&&(e.isBeginning?(b(V),h(V)):(A(V),d(V))),L&&(e.isEnd?(b(L),h(L)):(A(L),d(L)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function D(){return P()&&e.params.pagination.clickable}function O(){const L=e.params.a11y;P()&&e.pagination.bullets.forEach(V=>{e.params.pagination.clickable&&(d(V),e.params.pagination.renderBullet||(f(V,"button"),g(V,L.paginationBulletMessage.replace(/\{\{index\}\}/,mi(V)+1)))),V.matches(qt(e.params.pagination.bulletActiveClass))?V.setAttribute("aria-current","true"):V.removeAttribute("aria-current")})}const S=(L,V,I)=>{d(L),L.tagName!=="BUTTON"&&(f(L,"button"),L.addEventListener("keydown",w)),g(L,I),y(L,V)},T=L=>{s&&s!==L.target&&!s.contains(L.target)&&(o=!0),e.a11y.clicked=!0},N=()=>{o=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},k=L=>{c=new Date().getTime()},j=L=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const V=L.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!V||!e.slides.includes(V))return;s=V;const I=e.slides.indexOf(V)===e.activeIndex,E=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(V);I||E||L.sourceCapabilities&&L.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{o||(e.params.loop?e.slideToLoop(parseInt(V.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(V),0),o=!1)}))},v=()=>{const L=e.params.a11y;L.itemRoleDescriptionMessage&&m(e.slides,L.itemRoleDescriptionMessage),L.slideRole&&f(e.slides,L.slideRole);const V=e.slides.length;L.slideLabelMessage&&e.slides.forEach((I,E)=>{const R=e.params.loop?parseInt(I.getAttribute("data-swiper-slide-index"),10):E,F=L.slideLabelMessage.replace(/\{\{index\}\}/,R+1).replace(/\{\{slidesLength\}\}/,V);g(I,F)})},B=()=>{const L=e.params.a11y;e.el.append(a);const V=e.el;L.containerRoleDescriptionMessage&&m(V,L.containerRoleDescriptionMessage),L.containerMessage&&g(V,L.containerMessage);const I=e.wrapperEl,E=L.id||I.getAttribute("id")||`swiper-wrapper-${u(16)}`,R=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";x(I,E),p(I,R),v();let{nextEl:F,prevEl:U}=e.navigation?e.navigation:{};F=Ue(F),U=Ue(U),F&&F.forEach(Q=>S(Q,E,L.nextSlideMessage)),U&&U.forEach(Q=>S(Q,E,L.prevSlideMessage)),D()&&Ue(e.pagination.el).forEach(oe=>{oe.addEventListener("keydown",w)}),Mt().addEventListener("visibilitychange",k),e.el.addEventListener("focus",j,!0),e.el.addEventListener("focus",j,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",N,!0)};function W(){a&&a.remove();let{nextEl:L,prevEl:V}=e.navigation?e.navigation:{};L=Ue(L),V=Ue(V),L&&L.forEach(E=>E.removeEventListener("keydown",w)),V&&V.forEach(E=>E.removeEventListener("keydown",w)),D()&&Ue(e.pagination.el).forEach(R=>{R.removeEventListener("keydown",w)}),Mt().removeEventListener("visibilitychange",k),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",j,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",N,!0))}l("beforeInit",()=>{a=di("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),l("afterInit",()=>{e.params.a11y.enabled&&B()}),l("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&v()}),l("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),l("paginationUpdate",()=>{e.params.a11y.enabled&&O()}),l("destroy",()=>{e.params.a11y.enabled&&W()})}function bi(t){let{swiper:e,extendParams:i,on:l,emit:a,params:o}=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 s,c,r=o&&o.autoplay?o.autoplay.delay:3e3,u=o&&o.autoplay?o.autoplay.delay:3e3,d,h=new Date().getTime(),f,m,y,g,x,p,b;function A(V){!e||e.destroyed||!e.wrapperEl||V.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",A),!(b||V.detail&&V.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(u=d,f=!1);const V=e.autoplay.paused?d:h+u-new Date().getTime();e.autoplay.timeLeft=V,a("autoplayTimeLeft",V,V/r),c=requestAnimationFrame(()=>{w()})},C=()=>{let V;return e.virtual&&e.params.virtual.enabled?V=e.slides.filter(E=>E.classList.contains("swiper-slide-active"))[0]:V=e.slides[e.activeIndex],V?parseInt(V.getAttribute("data-swiper-autoplay"),10):void 0},P=V=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),w();let I=typeof V>"u"?e.params.autoplay.delay:V;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const E=C();!Number.isNaN(E)&&E>0&&typeof V>"u"&&(I=E,r=E,u=E),d=I;const R=e.params.speed,F=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(R,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,R,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(R,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,R,!0,!0),a("autoplay")),e.params.cssMode&&(h=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return I>0?(clearTimeout(s),s=setTimeout(()=>{F()},I)):requestAnimationFrame(()=>{F()}),I},D=()=>{h=new Date().getTime(),e.autoplay.running=!0,P(),a("autoplayStart")},O=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},S=(V,I)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),V||(p=!0);const E=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",A):T()};if(e.autoplay.paused=!0,I){x&&(d=e.params.autoplay.delay),x=!1,E();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-h),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),E())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(h=new Date().getTime(),p?(p=!1,P(d)):P(),e.autoplay.paused=!1,a("autoplayResume"))},N=()=>{if(e.destroyed||!e.autoplay.running)return;const V=Mt();V.visibilityState==="hidden"&&(p=!0,S(!0)),V.visibilityState==="visible"&&T()},k=V=>{V.pointerType==="mouse"&&(p=!0,b=!0,!(e.animating||e.autoplay.paused)&&S(!0))},j=V=>{V.pointerType==="mouse"&&(b=!1,e.autoplay.paused&&T())},v=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",j))},B=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",j))},W=()=>{Mt().addEventListener("visibilitychange",N)},L=()=>{Mt().removeEventListener("visibilitychange",N)};l("init",()=>{e.params.autoplay.enabled&&(v(),W(),D())}),l("destroy",()=>{B(),L(),e.autoplay.running&&O()}),l("_freeModeStaticRelease",()=>{(y||p)&&T()}),l("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?O():S(!0,!0)}),l("beforeTransitionStart",(V,I,E)=>{e.destroyed||!e.autoplay.running||(E||!e.params.autoplay.disableOnInteraction?S(!0,!0):O())}),l("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){O();return}m=!0,y=!1,p=!1,g=setTimeout(()=>{p=!0,y=!0,S(!0)},200)}}),l("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(g),clearTimeout(s),e.params.autoplay.disableOnInteraction){y=!1,m=!1;return}y&&e.params.cssMode&&T(),y=!1,m=!1}}),l("slideChange",()=>{e.destroyed||!e.autoplay.running||(x=!0)}),Object.assign(e.autoplay,{start:D,stop:O,pause:S,resume:T})}function Da(t){let{swiper:e,extendParams:i,emit:l,once:a}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function o(){if(e.params.cssMode)return;const r=e.getTranslate();e.setTranslate(r),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:r,touches:u}=e;r.velocities.length===0&&r.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Vt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:h,rtlTranslate:f,snapGrid:m,touchEventsData:y}=e,x=Vt()-y.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<m.length?e.slideTo(m.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(y.velocities.length>1){const O=y.velocities.pop(),S=y.velocities.pop(),T=O.position-S.position,N=O.time-S.time;e.velocity=T/N,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(N>150||Vt()-O.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,y.velocities.length=0;let p=1e3*d.freeMode.momentumRatio;const b=e.velocity*p;let A=e.translate+b;f&&(A=-A);let w=!1,C;const P=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let D;if(A<e.maxTranslate())d.freeMode.momentumBounce?(A+e.maxTranslate()<-P&&(A=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.maxTranslate(),d.loop&&d.centeredSlides&&(D=!0);else if(A>e.minTranslate())d.freeMode.momentumBounce?(A-e.minTranslate()>P&&(A=e.minTranslate()+P),C=e.minTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.minTranslate(),d.loop&&d.centeredSlides&&(D=!0);else if(d.freeMode.sticky){let O;for(let S=0;S<m.length;S+=1)if(m[S]>-A){O=S;break}Math.abs(m[O]-A)<Math.abs(m[O-1]-A)||e.swipeDirection==="next"?A=m[O]:A=m[O-1],A=-A}if(D&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?p=Math.abs((-A-e.translate)/e.velocity):p=Math.abs((A-e.translate)/e.velocity),d.freeMode.sticky){const O=Math.abs((f?-A:A)-e.translate),S=e.slidesSizesGrid[e.activeIndex];O<S?p=d.speed:O<2*S?p=d.speed*1.5:p=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating=!0,$i(h,()=>{!e||e.destroyed||!y.allowMomentumBounce||(l("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(C),$i(h,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(l("_freeModeNoMomentumRelease"),e.updateProgress(A),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,$i(h,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(A),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&l("_freeModeNoMomentumRelease");(!d.freeMode.momentum||x>=d.longSwipesMs)&&(l("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:s,onTouchEnd:c}})}const Va=({children:t,isPadding:e=!0,style:i,enableSlideActive:l=!1})=>{const a=n.useRef(),{popupDetailData:o}=Be();return n.useEffect(()=>{var s,c;l&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=o?.multiCheckIndex)!==null&&c!==void 0?c:0))},[o,l]),n.createElement(Xt,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Da,Na,Vi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var gi=n.memo(Va);const Ba=n.forwardRef((t,e)=>{const{src:i,onLoad:l,style:a,className:o,loading:s,alt:c="image"}=t,[r,u]=n.useState(i),d=n.useRef(null),[h,f]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:m=>{m&&u(m)}})),n.useEffect(()=>{i&&u(i)},[i]),n.useEffect(()=>{const m=()=>{i&&!h&&d.current&&(d.current.src="",d.current.src=i)};return bt.on(pt.PAGE_DID_SHOW,m),()=>{bt.off(pt.PAGE_DID_SHOW,m)}},[i,h]),n.createElement(n.Fragment,null,!h&&!r&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:r}),n.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),n.createElement("img",{ref:d,className:o,src:r,style:Object.assign({},a),loading:s,onLoad:m=>{f(!0),l?.(m.target)},alt:c})):n.createElement("img",{ref:d,className:o,src:r,style:Object.assign({},a),loading:s,onLoad:m=>{f(!0),l?.(m.target)},alt:c}))});var It=n.memo(Ba);const Fa=({products:t,data:e,defImg:i,style:l,onCLick:a,popupDetailData:o,check:s})=>{var c;const{productView:r}=Pt(),{popupCurTimeRef:u}=Be(),d=(h,f)=>{if(s===f)return;const m=t?.[s];r(o,m,m?.bindCta,u.current,o?.index),a?.(f)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!o)&&n.createElement(gi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},l),e?.style)},(c=o?t:[0,1,2,3])===null||c===void 0?void 0:c.map((h,f)=>{var m,y,g;return n.createElement(n.Fragment,null,h?.bindCta?n.createElement(Nt,{className:Le.css({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{d(h,f)},key:f},n.createElement(It,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(g=(m=h?.cover)!==null&&m!==void 0?m:(y=h?.homePage)===null||y===void 0?void 0:y[0])!==null&&g!==void 0?g:i})):null)})))};var vl=n.memo(Fa);const Wa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",za=({visible:t,onClose:e,children:i,modalStyle:l,padding:a,popup:o,schema:s,fullHeight:c=window.innerHeight,isFullScreen:r=!1,openState:u})=>{var d,h,f,m,y,g,x,p,b,A,w,C,P,D,O,S,T,N,k,j,v,B,W,L;const V=n.useRef(null),I=n.useRef(null),E=n.useRef(null),R=n.useRef(null),F=n.useRef(null),U=c*.2,G=r?c:c*.8,[Q,oe]=n.useState(U),[se,J]=n.useState(!1),ye=n.useRef(null),{globalConfig:Te,popupDetailData:De}=Be(),{schema:de,popup:ue}=Zt(),[Xe,Fe]=n.useState(15);n.useEffect(()=>{const ce=document.getElementById("sxp-render"),H=document.getElementById("pb-modal");H?ye.current=H:(ye.current=document.createElement("div"),ye.current.setAttribute("id","pb-modal"),ce?.appendChild(ye.current))},[]);const We=n.useMemo(()=>o?.id&&o?.id!==""||t,[t,o]),we=n.useMemo(()=>{var ce,H,_;const pe=s??de;return(_=(H=(ce=pe?.sxpPageConf)===null||ce===void 0?void 0:ce.globalConfig)===null||H===void 0?void 0:H.popupList)===null||_===void 0?void 0:_.find(fe=>fe?.id===o?.id)},[o,s,de]),Ke=n.useMemo(()=>{var ce,H;return((H=(ce=we?.item)===null||ce===void 0?void 0:ce.event)===null||H===void 0?void 0:H.isScrollFullScreen)||!1},[we]);n.useEffect(()=>{We?J(!0):setTimeout(()=>{J(!1),oe(U)},o?.duration)},[We,o]);const Ge=n.useCallback(()=>i,[ue,u,Te,s]);if(n.useEffect(()=>{const ce=H=>{var _=H?.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])'),pe=_?.[0],Y=_?.[_?.length-1],fe=9;H.addEventListener("keydown",function(Ae){(Ae.key==="Escape"||Ae.key==="Esc")&&(Ze(),Ae.preventDefault());var ee=Ae.key==="Tab"||Ae.keyCode===fe;ee&&(Ae.shiftKey?document?.activeElement===pe&&(Y?.focus(),Ae.preventDefault()):document?.activeElement===Y&&(pe?.focus(),Ae.preventDefault()))}),pe?.focus()};return F?.current&&ce(F?.current),()=>{var H;(H=F?.current)===null||H===void 0||H.removeEventListener("keydown",ce)}},[F,se,ue]),!ye.current)return null;const Ze=st.debounce(()=>{e?.()},300),at=ce=>{V.current=ce.touches[0],I.current=ce.touches[0],E.current=!0},wt=ce=>{requestAnimationFrame(()=>{var H;if(E.current&&((H=R?.current)===null||H===void 0?void 0:H.scrollTop)===0){const _=ce.touches[0].clientY,pe=ce.touches[0].clientX,Y=V.current.clientY-_;V.current=ce.touches[0];const fe=_-I.current.clientY,Ae=pe-I.current.clientX;if(Math.abs(Ae)>Math.abs(fe))return;const ee=Q-Y;ee>0&&oe(ee)}})},je=ce=>{var H;if(E.current&&((H=R?.current)===null||H===void 0?void 0:H.scrollTop)===0){const _=ce.changedTouches[0].clientY-I.current.clientY,pe=ce.changedTouches[0].clientX-I.current.clientX;if(Math.abs(pe)>Math.abs(_))return;const Y=I.current.clientY-V.current.clientY;Y>0?oe(0):Q<U&&Y<0?oe(U):Q>=U&&Y<0&&e?.()}E.current=!1};return In.createPortal(n.createElement(n.Fragment,null,se&&n.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:We?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},l),onClick:Ze},n.createElement("div",{style:{position:"relative",left:`${(m=(f=(h=(d=we?.item)===null||d===void 0?void 0:d.props)===null||h===void 0?void 0:h.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&m!==void 0?m:0}px`,right:`${(p=(x=(g=(y=we?.item)===null||y===void 0?void 0:y.props)===null||g===void 0?void 0:g.popupBg)===null||x===void 0?void 0:x.horizontalMargin)!==null&&p!==void 0?p:0}px`,bottom:`${(C=(w=(A=(b=we?.item)===null||b===void 0?void 0:b.props)===null||A===void 0?void 0:A.popupBg)===null||w===void 0?void 0:w.bottomMargin)!==null&&C!==void 0?C:0}px`,overflow:"hidden",width:`calc(100% - ${((S=(O=(D=(P=we?.item)===null||P===void 0?void 0:P.props)===null||D===void 0?void 0:D.popupBg)===null||O===void 0?void 0:O.horizontalMargin)!==null&&S!==void 0?S:0)*2}px)`,height:"100%"}},n.createElement("div",Object.assign({ref:F,className:`modal-container ${We?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=we?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:a,animationDuration:((N=o?.duration)!==null&&N!==void 0?N:0)/1e3+"s"},Ke&&{transform:`translateY(${Q}px)`}),{overflow:"hidden",borderRadius:`${(B=(v=(j=(k=we?.item)===null||k===void 0?void 0:k.props)===null||j===void 0?void 0:j.popupBg)===null||v===void 0?void 0:v.borderRadius)!==null&&B!==void 0?B:0}px`,zIndex:9}),onClick:ce=>{ce.stopPropagation(),ce.preventDefault()}},Ke&&{onTouchMove:wt,onTouchStart:at,onTouchEnd:je}),n.createElement("div",Object.assign({id:"modal-content",ref:R,style:{height:Ke?c:G,overflow:Ke&&Q<=0||!Ke?"auto":"hidden",zIndex:1}},((L=(W=we?.item)===null||W===void 0?void 0:W.props)===null||L===void 0?void 0:L.enableFixedCloseButton)&&{onScroll:ce=>{var H;Fe(15-((H=ce?.target)===null||H===void 0?void 0:H.scrollTop))}}),Ge()),n.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Xe}},n.createElement("img",{src:Te?.popupCloseIcon||Wa,alt:"close button",className:"modal-icon"})))))),ye.current)};var ui=n.memo(za);const Ua=({text:t,maxStr:e=108,style:i,className:l,onClick:a,foldText:o,unfoldText:s,isPost:c,onChange:r})=>{const[u,d]=n.useState(!1),[h,f]=n.useState(!1),m=i||{},{lineClamp:y}=m,g=it(m,["lineClamp"]),x=Number(y||2),p=n.useRef(null),b=n.useRef(null),A=n.useRef(),w=()=>{d(!u)},C=n.useCallback(()=>{!p.current||!b.current||!c||!t||u||requestAnimationFrame(()=>{const P=p.current.getBoundingClientRect().height,D=b.current.getBoundingClientRect().height,O=P>D+1;f(O)})},[c,t,u]);return n.useEffect(()=>{if(p.current)return A.current=new ResizeObserver(C),A.current.observe(p.current),C(),()=>{var P;(P=A.current)===null||P===void 0||P.disconnect()}},[C]),n.createElement("div",{className:l,style:Object.assign(Object.assign({},g),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},n.createElement("div",{ref:b,style:Object.assign(Object.assign({},!u&&c&&{WebkitLineClamp:x,lineClamp:x,textOverflow:"ellipsis",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical"}),{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content"}),dangerouslySetInnerHTML:{__html:Pe(t?.replace(/\n/g,"</br>"),g)}}),n.createElement("div",{ref:p,style:{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content",visibility:"hidden",position:"absolute",opacity:0,clipPath:"inset(100%)",transform:"translateX(-9999px)"},dangerouslySetInnerHTML:{__html:Pe(t?.replace(/\n/g,"</br>"),g)}}),t&&c&&h&&n.createElement("button",{"aria-label":u?s||"show less":o||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:a??w,dangerouslySetInnerHTML:{__html:Pe(u?s||"show less":o||"show more",g)}}))};var yi=n.memo(Ua);const Ha=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:l,file:a,src:o}=t;switch(i){case 2:return l||null;case 3:return o||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},Xa=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",wi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:l,style:a})=>{var o,s,c,r,u,d,h,f;let m="";if((!t?.currency||!t?.price)&&l)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return m;let g=i?.priceSymbol,x=t?.currency?(c=(s=(o=t?.currency)===null||o===void 0?void 0:o.split("-")[1])===null||s===void 0?void 0:s.toUpperCase())!==null&&c!==void 0?c:"":"$";const p=e===void 0||e;let b=y?.toString();g?.showTwoDecimalPoint&&(b=y?.toFixed(2));let A=(r=b?.indexOf("."))!==null&&r!==void 0?r:-1;if(p){m=(u=y?.toLocaleString("zh",{minimumFractionDigits:g?.showTwoDecimalPoint?2:0}))!==null&&u!==void 0?u:"";let w=0,C=A??m?.length;g?.millesimalSymbol==="."?m=m?.replace(/\,/g,function(P,D){return D>=w&&D<C?".":P}):g?.millesimalSymbol===" "&&(m=m?.replace(","," "))}else m=`${g?.showTwoDecimalPoint?y?.toFixed(2):y}`;return g?.decimalPoint===","&&A>0&&(m=m=m?.replace(/\./g,function(w,C){return C>=A&&C<m?.length?",":w})),x=`<span style="font-family:${(f=(h=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&h!==void 0?h:a?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${x}</span>`,m=Pe(m,a),g?.currencyPosition&&g?.currencyPosition!=="none"?m=g?.currencyPosition==="left"?x+m:m+x:g?.currencyPosition!=="none"&&(m=x+m),m},qa=t=>{var e,i,l,a,o,s,c,r,u,d,h,f,m,y,g,x,p,b,A,w,C,P,D,O,{content:S,style:T,bgImg:N,onClick:k,schema:j,isDefault:v,bottom_image:B,tipText:W,isPost:L,viewTime:V,rec:I,swiper:E,commodityStyles:R,buttonStyle:F,index:U,commodityGroup:G,popupBg:Q,iframeIcon:oe,commodityImgRatio:se,isTel:J,iframeBgColor:ye,isActive:Te=!0}=t,De=it(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:de,popupDetailData:ue,isPreview:Xe,bffFbReport:Fe,popupCurTimeRef:We,checkCommodityIndexRef:we,globalConfig:Ke}=Be(),{jumpToWeb:Ge,productView:Ze}=Pt(),at=n.useRef(null),[wt,je]=n.useState(!1),[ce,H]=n.useState(!1),[_,pe]=n.useState((e=ue?.multiCheckIndex)!==null&&e!==void 0?e:0),Y=n.useRef(),[fe,Ae]=n.useState(0),ee=L?I:ue;let z=L?ee?.product:(l=(i=ee?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&l!==void 0?l:(o=(a=ee?.video)===null||a===void 0?void 0:a.bindProducts)===null||o===void 0?void 0:o[0],Re=L?(s=ee?.product)===null||s===void 0?void 0:s.bindCta:(u=(r=(c=ee?.video)===null||c===void 0?void 0:c.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&u!==void 0?u:(f=(h=(d=ee?.video)===null||d===void 0?void 0:d.bindProducts)===null||h===void 0?void 0:h[0])===null||f===void 0?void 0:f.bindCta;const Je=L?U:ue?.index;if(!L&&G?.open&&(!((m=ee?.video)===null||m===void 0)&&m.bindProducts)&&((g=(y=ee?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0?void 0:g.length)>0){we.current=_;const $=(x=ee?.video)===null||x===void 0?void 0:x.bindProducts[_];z=$,Re=$?.bindCta}const ut=$=>{z?.link&&(Ge($,ee,z,Re,Je),L||Ze(ee,z,Re,V||at.current,Je),window.location.href=window.getJointUtmLink(z.link))};n.useEffect(()=>{Te&&(Fe?.({eventName:"ProductView",product:z}),Fe?.({eventName:"PageView",product:z}))},[Te,Fe]),n.useEffect(()=>{const $=()=>{at.current=new Date};return $(),window.addEventListener("pageshow",$),()=>{window.removeEventListener("pageshow",$)}},[]);const ze=wi({product:z,enableFormattedPrice:(p=R?.price)===null||p===void 0?void 0:p.enableFormattedPrice,globalConfig:Ke,style:R?.price}),_e=(Xe?375:(b=T?.width)!==null&&b!==void 0?b:window.innerWidth)-((A=Q?.horizontalMargin)!==null&&A!==void 0?A:0)*2,Me=se?_e*(se.h/se.w):_e,Qe=({isPost:$})=>{var qe,vt,Qt,$t;return n.createElement("div",null,n.createElement("div",{className:"pb-commondity-content-collection",style:mt(R?.collection),hidden:!!z&&(!z?.collection||z?.collection===""),dangerouslySetInnerHTML:{__html:Pe((qe=z?.collection)!==null&&qe!==void 0?qe:"Tiffany Lock",R?.collection)}}),n.createElement("div",{className:"pb-commondity-content-title",style:mt(R?.title),hidden:!!z&&!z?.title,dangerouslySetInnerHTML:{__html:Pe((vt=z?.title)!==null&&vt!==void 0?vt:"Pendant in Yellow Gold with Diamonds, Medium",R?.title)}}),n.createElement("div",{className:"pb-commondity-content-price",style:mt(R?.price),hidden:!!z&&!z?.price,dangerouslySetInnerHTML:{__html:ze??""}}),n.createElement("div",{hidden:!!z&&!z?.taxInfo,style:mt(R?.taxInfo),dangerouslySetInnerHTML:{__html:Pe((Qt=z?.taxInfo)!==null&&Qt!==void 0?Qt:"\u7A0E\u8D39",R?.taxInfo)}}),n.createElement("div",{hidden:!!z&&(!z?.info||z?.info==="")},n.createElement(yi,{foldText:W?.foldText,unfoldText:W?.unfoldText,onClick:()=>je(!0),isPost:$,text:($t=z?.info)!==null&&$t!==void 0?$t:`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