pb-sxp-ui 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +2 -2
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/FormatImage.js +2 -2
- package/lib/core/components/SxpPageRender/FormatImage.js +2 -2
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import{isEmpty as Ut,isEqual as Hi,cloneDeep as $t,debounce as hi,throttle as Wt,get as Gi}from"lodash";import{v4 as Qo}from"uuid";import $o from"pako";import p,{useContext as Yt,useMemo as ve,memo as _e,useEffect as ge,createContext as Xt,useState as Y,useRef as fe,useCallback as ye,forwardRef as ei,useImperativeHandle as Ui,useLayoutEffect as en}from"react";import gi from"qs";import tn from"eventemitter3";import{css as Ee}from"@emotion/css";import*as Wi from"react-dom";import on from"react-dom";function Ze(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l<o.length;l++)e.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(t,o[l])&&(i[o[l]]=t[o[l]]);return i}function at(t,e,i,o){function l(n){return n instanceof i?n:new i(function(a){a(n)})}return new(i||(i=Promise))(function(n,a){function d(s){try{v(o.next(s))}catch(f){a(f)}}function r(s){try{v(o.throw(s))}catch(f){a(f)}}function v(s){s.done?n(s.value):l(s.value).then(d,r)}v((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const nn=/:\w+/g;var Yi=(t,e)=>at(void 0,void 0,void 0,function*(){const i={},o={};for(let l=0;l<e?.length;l++){const{id:n,method:a,url:d,urlParams:r,name:v,queryString:s,headers:f,body:h}=e[l];let m=d;r&&Object.entries(r).forEach(([S,A])=>{m=m.replace(nn,E=>E===S?A:E)}),s&&(m+=s),o[n]=v;try{const S=yield fetch(m,{method:a,headers:Object.assign({"Content-Type":"application/json"},f),body:JSON.stringify(h)}).then(A=>A.json());i[n]=S}catch(S){console.error("DataSource request error: ",S),i[n]={}}}return{$store:i,idMapName:o}});const Xi="SXP_TOKEN_INFO",ln=(t,e)=>at(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),l=t.getAppId(),n=t.getApiUrl(),a=window.localStorage.getItem(Xi);let d=JSON.parse(a||"{}");if(Date.now()>((i=d?.expireTime)!==null&&i!==void 0?i:0)){const v=yield fetch(`${n}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":l||""}}).then(s=>s.json());if(v.success){const s=v.data;d=Object.assign(Object.assign({},s),{expireTime:Date.now()+s.expire*1e3}),window.localStorage.setItem(Xi,JSON.stringify(d))}}return d});function ti(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let l;if(e=e||i.length,t)for(l=0;l<t;l++)o[l]=i[0|Math.random()*e];else{let n;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",l=0;l<36;l++)o[l]||(n=0|Math.random()*16,o[l]=i[l===19?n&3|8:n])}return o.join("")}const an=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let l=0;for(;l<t;)e+=i.charAt(Math.floor(Math.random()*o)),l+=1;return e},dn=()=>{const t=Qo();return t?.replaceAll?t.replaceAll("-",""):an(32)},xe=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],l=e?.["fontFamily-en"];if(!o&&!l)return t;let n=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,r=`font-family:${o??"inherit"}`,v=`font-family:${l??"inherit"}`,s=h=>{let m=h.search(a),S=h.search(d);return m!==-1&&S!==-1&&m<S&&(i+=`<span style="${r}">${h.substring(m,S)}</span>`,n=h.substring(S,h?.length)),m!==-1&&S!==-1&&m>S&&(i+=`<span style="${v}">${h.substring(S,m)}</span>`,n=h.substring(m,h?.length)),m===-1?(i+=`<span style="${v}">${h.substring(S,h?.length)}</span>`,n="",!1):S===-1?(i+=`<span style="${r}">${h.substring(m,h?.length)}</span>`,n="",!1):!0};let f=!0;for(;f;)f=s(n);return i};function Ji(){var t,e,i,o,l,n,a;let d=self.navigator.userAgent;return d?/edge\/([\d\.]+)/i.exec(d)?`Edge ${(t=/edge\/([\d\.]+)/i.exec(d))===null||t===void 0?void 0:t[1]}`:/edg\/([\d\.]+)/i.exec(d)?`Edge(Chromium) ${(e=/edge\/([\d\.]+)/i.exec(d))===null||e===void 0?void 0:e[1]}`:/msie/i.test(d)?`Internet Explorer ${(i=/msie ([\d\.]+)/i.exec(d))===null||i===void 0?void 0:i[1]}`:/Trident/i.test(d)?`Internet Explorer ${(o=/rv:([\d\.]+)/i.exec(d))===null||o===void 0?void 0:o[1]}`:/chrome/i.test(d)?`Chrome ${(l=/chrome\/([\d\.]+)/i.exec(d))===null||l===void 0?void 0:l[1]}`:/firefox/i.test(d)?`Firefox ${(n=/firefox\/([\d\.]+)/i.exec(d))===null||n===void 0?void 0:n[1]}`:/safari/i.test(d)?`Safari ${(a=/version\/([\d\.]+)/i.exec(d))===null||a===void 0?void 0:a[1]}`:null:null}function qi(){var t,e,i;let o=self.navigator.userAgent;return o?/iphone/i.test(o)?`IOS ${(t=o.match(/OS\s(.*?)\slike/))===null||t===void 0?void 0:t[1]}`:/android/i.test(o)?`Android ${(e=o.match(/Android\s(.*?)\;/))===null||e===void 0?void 0:e[1]}`:/windows/i.test(o)?`Windows ${(i=o.match(/Windows\s(.*?)\;/))===null||i===void 0?void 0:i[1]}`:/mac/i.test(o)?"Mac OS":null:null}function Ki(){let t=self.navigator.userAgent;if(!t)return null;if(/iphone/i.test(t))return"iPhone";if(/android/i.test(t)){var e=t.indexOf("("),i=t.indexOf(")");if(e!==-1&&i!==-1){var o=t.substring(e+1,i);return`${o}`}}return/windows/i.test(t)?"Windows":/mac/i.test(t)?"Mac":null}function Zi(t){const i=document.cookie.split(";");let o=null;return i.forEach(l=>{const[n,a]=l.trim().split("=");n===t&&(o=a)}),o??""}function Qi(t){const i=atob(t).split("").map(function(n){return n.charCodeAt(0)}),o=new Uint8Array(i),l=$o.inflate(o,{to:"string"});return JSON.parse(l)}let bi=null;const rn={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class sn{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,bi)return bi;bi=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?rn[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let dt=null;const cn={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{dt||(dt=new sn),o&&dt.setApiUrl(o),dt.setAppId(t),dt.setTenantId(e),dt.setEnv(i)},getDetail:t=>{if(!dt)return;const e=dt.getTenantId(),i=dt.getAppId(),o=dt.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>at(void 0,void 0,void 0,function*(){var n,a;const d=yield l.json(),r=Qi((n=d?.data)===null||n===void 0?void 0:n.data);if(r){const{$store:v}=yield Yi(o,(a=r?.dataSource)!==null&&a!==void 0?a:[]);d.data.data=r,Object.assign(d.data.data,{__STORE__:v})}return d}))},getSxpDetailByPageId:t=>at(void 0,void 0,void 0,function*(){if(!dt)return;const e=dt.getTenantId(),i=dt.getAppId(),o=dt.getApiUrl();return fetch(`${o}/storefront/v1/page?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>at(void 0,void 0,void 0,function*(){var n;const a=yield l.json();if(!a.success)return;const d=Qi((n=a?.data)===null||n===void 0?void 0:n.data);return a.data.data=d,a.data}))}),getSxpRecommendVideoData:t=>at(void 0,void 0,void 0,function*(){if(!dt)return;const e=yield ln(dt,t),i=ti(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");Ut(o)&&(o=ti(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const l=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:o,channel:e.channel,maxRecs:10,requestId:i})}).then(n=>n.json());return l?.data||null})};function Tt(){return Yt(uo)}function un(){return Yt(co)}const yi="feRealSessionIdKey",$i=()=>{const t=dn();return`${Date.now()}${t}`},vn=()=>{let t=pn();return t||(t=$i(),window.sessionStorage.setItem(yi,t)),t},eo=()=>{const t=$i();window.sessionStorage.setItem(yi,t)},pn=()=>window.sessionStorage.getItem(yi),to="SXP_FAKE_USER_ID",io="FAKE_USER_STATE",oo="AGREE_POLICY",no="SLIDE_SKIP_STATE",lo=()=>{let t=window.localStorage.getItem(to);return Ut(t)&&(t=ti(36,62),window.localStorage.setItem(to,t)),t},mn=()=>{const t=window.localStorage.getItem(io);return Ut(t)&&window.localStorage.setItem(io,"true"),Ut(t)},fn=()=>{const t=window.localStorage.getItem(no);return Ut(t)},hn=()=>{window.localStorage.setItem(no,"true")};function gt(t,e){const{appDomain:i}=Me();return ve(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const At=new tn;var ut;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(ut||(ut={}));const gn=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:l,privacy_policy_title:n})=>{const{setIsAgreePolicy:a,bffEventReport:d}=Me(),r=ve(()=>{const f=location.search.slice(1),h=gi.parse(f.replace(/\+/g,"%2B"));for(const m in h)h[m]=h[m].replace(/%2B/g,"+");return h},[]),v=f=>{var h;return(h=r[f])!==null&&h!==void 0?h:null};ge(()=>{d?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:v("utm_source"),utmMedium:v("utm_medium"),utmCampaign:v("utm_campaign"),utmId:v("utm_id"),utmContent:v("utm_content"),clSource:v("cl_source"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const s=()=>{d?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),a?.(!0),window.localStorage.setItem(oo,"yes")};return p.createElement("div",{className:"consent-bg"},p.createElement("div",{className:"consent"},p.createElement("div",{className:"consent-col"},p.createElement("div",{className:"consent-title"},i??"Privacy Policy"),p.createElement("div",{className:"consent-content"},o??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),p.createElement("div",{className:"consent-col"},p.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:s},"Agree"),p.createElement("a",{className:"consent-policy",target:"_blank",href:l?`https://${l}`:void 0},n??"More information"))))};var bn=_e(gn);const ao=Xt({rtcList:[],tagList:[]});var wi;(function(t){t[t.BFF=5]="BFF"})(wi||(wi={}));const ii="FOR U",yn=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:l,defaultSize:n,isPreview:a=!1,sxpParameter:d,appDomain:r,hashTagSize:v,loadingImage:s,isOpenHashTag:f=!1,enabledMetaConversionApi:h=!1,consentHeight:m,consentWidth:S,isShowTag:A=!0,isOpenConsent:E=!1,globalConfig:u,isEditor:w=!1,utmParameter:b,channelQueryList:T})=>{var D,g,O;const[P,x]=Y([]),[c,M]=Y([]),[y,I]=Y(!1),[C,R]=Y({rtc:"",requestId:""}),F=fe(null),j=fe(!1),[V,B]=Y(()=>!!window.localStorage.getItem(oo)),[k,N]=Y(),[U,G]=Y(),[K,le]=Y(f),[oe,ue]=Y([]),[Le,ce]=Y(0),[W,Z]=Y(!1),[ee,te]=Y(null),we=fe(),Ce=fe(),[ae,be]=Y(ii),Te=fe(-1),Be=fe(null),[Oe,Fe]=Y(!1),He=ve(()=>{var z,H,Ie,Pe;return((Pe=(Ie=(H=(z=u?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||Ie===void 0?void 0:Ie.props)===null||Pe===void 0?void 0:Pe.privacy_necessity)&&!V&&!w||E},[V,u,E,w]),Q=ye(z=>{var H;const Ie=z?.recList;return(H=Ie?.map(X=>{var J,me,ke,je,We,Ye;if(!((J=X?.video)===null||J===void 0)&&J.bindProducts&&((ke=(me=X?.video)===null||me===void 0?void 0:me.bindProducts)===null||ke===void 0?void 0:ke.length)>0){const et=(Ye=(We=(je=X?.video)===null||je===void 0?void 0:je.bindProducts)===null||We===void 0?void 0:We.filter(lt=>!!lt?.bindCta))!==null&&Ye!==void 0?Ye:[];return Object.assign(Object.assign({},X),{video:Object.assign(Object.assign({},X?.video),{bindProducts:et})})}return X}))!==null&&H!==void 0?H:[]},[]);ge(()=>{const z=H=>{we.current=H};return At.on(ut.CHANGE_THEME_TAG,z),()=>{At.off(ut.CHANGE_THEME_TAG,z)}},[]),ge(()=>{le(f)},[f]);const pe=ve(()=>e?.find(z=>z.type===wi.BFF),[e]),ie=ye((z,H)=>{if(!pe)return;const Ie=pe.url,Pe=lo();if(H?.query){const X=gi.stringify(H.query);z=`${z}?${X}`}return H.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${Ie}/api/v1${z}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},pe.headers),{"x-user-id":Pe}),H.body))],{type:"application/json;charset=UTF-8"})):window.fetch(`${Ie}/api/v1${z}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":Pe},pe.headers),method:H.method,body:JSON.stringify(H.body)}).then(X=>X.json()).catch(X=>Promise.reject(X))},[pe]),re=ye(z=>at(void 0,void 0,void 0,function*(){var H,Ie,Pe,X,J,me,ke,je,We,Ye,et,lt,wt,Pt;if(z=Object.assign(Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:l,defaultSize:(Ie=z?.defaultSize)!==null&&Ie!==void 0?Ie:n,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag},z?.contentFilter&&{contentFilter:`[${z?.contentFilter}]`}),z?.productFilter&&{productFilter:`[${z?.productFilter}]`}),{pageNum:z?.pageNum}),i){const se=(J=(X=(Pe=i?.split("&"))===null||Pe===void 0?void 0:Pe.filter(de=>{var q,Se;const Ae=de.split("=")[0];return(Se=(q=b?.channels)!==null&&q!==void 0?q:[])===null||Se===void 0?void 0:Se.includes(Ae)}))===null||X===void 0?void 0:X.join("&"))!==null&&J!==void 0?J:"";z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(se)})}if(w){let se=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&T&&T?.length>0&&{channel:T?.[0]}),!z?.channel||j.current)return;j.current=!0;let de=[],q=null;const Se=Ae=>at(void 0,void 0,void 0,function*(){var ne,he,De,Ne,Ue,Xe;if(Ae.pageNum=se,q=yield ie?.("/recommend/list",{method:"GET",query:Ae}),!q?.success)return;I(!1),de=de.concat((Ne=(De=(he=(ne=q?.data)===null||ne===void 0?void 0:ne.recList)===null||he===void 0?void 0:he.filter)===null||De===void 0?void 0:De.call(he,Ve=>Ve?.product||Ve?.video))!==null&&Ne!==void 0?Ne:[]),((Xe=(Ue=q?.data)===null||Ue===void 0?void 0:Ue.recList)===null||Xe===void 0?void 0:Xe.some(Ve=>Ve?.product||Ve?.video))&&(se=se+1,yield Se(Ae))});return yield Se(z),!z?.hashTag&&q&&R({rtc:(me=q?.data)===null||me===void 0?void 0:me.rtc,requestId:(ke=q?.data)===null||ke===void 0?void 0:ke.requestId}),Object.assign(Object.assign({},q.data),{recList:de})}u?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(je=z?.pageNum)!==null&&je!==void 0?je:1}));const _=yield ie?.("/recommend/list",{method:"GET",query:z});if(_?.success){if(z?.hashTag||R({rtc:_.data.rtc,requestId:_.data.requestId}),u?.enablePreview&&!w){let se=[];return se=se.concat((lt=(et=(Ye=(We=_?.data)===null||We===void 0?void 0:We.recList)===null||Ye===void 0?void 0:Ye.filter)===null||et===void 0?void 0:et.call(Ye,q=>q?.product||q?.video))!==null&<!==void 0?lt:[]),((Pt=(wt=_?.data)===null||wt===void 0?void 0:wt.recList)===null||Pt===void 0?void 0:Pt.some(q=>q?.product||q?.video))||Fe(!0),Object.assign(Object.assign({},_.data),{recList:se})}return _?.data}}),[ie,i,l,n,T]),$=ye(z=>at(void 0,void 0,void 0,function*(){var H,Ie,Pe,X;if(P.length<=0)return;const J=P?.[P?.length-1],me=yield re(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:U?.hashTag},((H=J?.product)===null||H===void 0?void 0:H.itemId)&&{productFilter:(Ie=J?.product)===null||Ie===void 0?void 0:Ie.itemId}),((Pe=J?.video)===null||Pe===void 0?void 0:Pe.itemId)&&{contentFilter:(X=J?.video)===null||X===void 0?void 0:X.itemId}),{themeTag:we.current}),u?.enablePreview&&!w&&{pageNum:z}));return x(P.concat(Q(me))),ue(oe.concat(Q(me))),me}),[re,P,U,oe]),L=ye(({userInfo:z,eventInfo:H})=>{if(!o||u?.enablePreview)return;z||(z={});const Ie=vn(),Pe=Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Ie,rtc:C.rtc,requestId:C.requestId},H),Ki()&&{sxpDevice:Ki()}),qi()&&{sxpSystem:qi()}),Ji()&&{sxpBrowser:Ji()}),X=Object.entries(z).map(([me,ke])=>({name:me,value:ke})),J=Object.entries(Pe).map(([me,ke])=>ke&&{name:me,value:ke}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",Pe),console.log("========= \u7ED3\u675F ========="),ie?.("/event/report",{method:"POST",body:{userInfo:X,eventInfo:J},type:"beacon"})},[ie,C,o,u?.enablePreview]),Ge=ye(z=>{var H,Ie,Pe,{eventName:X,actionSource:J="website",eventSourceUrl:me=(H=window?.location)===null||H===void 0?void 0:H.href,externalId:ke}=z;if(!o||!h||u?.enablePreview)return;const je=lo(),Ye=new URLSearchParams(window.location.search).get("fbclid");return ie?.("/fb/events",{method:"POST",body:{eventName:X,actionSource:J,eventSourceUrl:me,userData:Object.assign(Object.assign(Object.assign({externalId:je},Ye&&{fbc:`fb.2.${new Date().getTime()}.${Ye}`}),Zi("_fbp")&&{fbp:`fb.2.${new Date().getTime()}.${Zi("_fbp")}`}),{clientUserAgent:(Pe=(Ie=window?.navigator)===null||Ie===void 0?void 0:Ie.userAgent)!==null&&Pe!==void 0?Pe:""})},type:"beacon"})},[ie,o,h,u?.enablePreview]),$e=ye(z=>at(void 0,void 0,void 0,function*(){const H=yield ie?.("/recommend/like",{method:"POST",body:z});return H?.success}),[ie]),Qe=ye(z=>at(void 0,void 0,void 0,function*(){const H=yield ie?.("/recommend/unlike",{method:"POST",body:z});return H?.success}),[ie]),pt=ye(z=>at(void 0,void 0,void 0,function*(){const H=yield ie?.("/customform",{method:"POST",body:z});return H?.success}),[ie]),nt=ye(()=>at(void 0,void 0,void 0,function*(){var z,H,Ie,Pe,X;if(!(!i||!A))try{const J=(Ie=(H=(z=i?.split("&"))===null||z===void 0?void 0:z.filter(ke=>{var je,We;const Ye=ke.split("=")[0];return(We=(je=b?.channels)!==null&&je!==void 0?je:[])===null||We===void 0?void 0:We.includes(Ye)}))===null||H===void 0?void 0:H.join("&"))!==null&&Ie!==void 0?Ie:"",me=yield ie?.("/tag/list",{method:"GET",query:{channel:decodeURIComponent(J)}});M((X=(Pe=me?.data)===null||Pe===void 0?void 0:Pe.tags)!==null&&X!==void 0?X:[])}catch(J){console.log("e",J)}}),[ie,i,A]),mt=ye((z,H,Ie,Pe)=>{var X,J,me,ke,je,We,Ye,et,lt,wt,Pt,_,se,de,q,Se,Ae,ne,he,De,Ne,Ue,Xe,qe,Ve,tt,Re,Je,ct,Ke,St,xt,Dt,Ot,ze,fi;const Mt=Ie?.bindCta,Zo=((X=H?.video)===null||X===void 0?void 0:X.bindProduct)||((J=H?.video)===null||J===void 0?void 0:J.bindProducts)&&((ke=(me=H?.video)===null||me===void 0?void 0:me.bindProducts)===null||ke===void 0?void 0:ke.length)>0;let Qt="";W?Qt="hashTagPage":!((je=H?.video)===null||je===void 0)&&je.url?Qt="videoPage":!((Ye=(We=H?.video)===null||We===void 0?void 0:We.imgUrls)===null||Ye===void 0)&&Ye.length&&(Qt="imagePage");const zi=(de=(_=(et=Ie?.tags)!==null&&et!==void 0?et:(Pt=(wt=(lt=H?.video)===null||lt===void 0?void 0:lt.bindProducts)===null||wt===void 0?void 0:wt[0])===null||Pt===void 0?void 0:Pt.tags)!==null&&_!==void 0?_:(se=H?.video)===null||se===void 0?void 0:se.tags)!==null&&de!==void 0?de:(q=H?.product)===null||q===void 0?void 0:q.tags;L?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(Se=Mt?.itemId)!==null&&Se!==void 0?Se:"",ctaName:(Ae=Mt?.title)!==null&&Ae!==void 0?Ae:"",contentTags:zi?JSON.stringify(zi):"",position:Pe+"",contentId:(he=(ne=H?.video)===null||ne===void 0?void 0:ne.itemId)!==null&&he!==void 0?he:"",productId:Zo?Ie?.itemId:"",traceInfo:(ze=(xt=(Re=(Xe=(De=Mt?.traceInfo)!==null&&De!==void 0?De:(Ue=(Ne=H?.video)===null||Ne===void 0?void 0:Ne.bindCta)===null||Ue===void 0?void 0:Ue.traceInfo)!==null&&Xe!==void 0?Xe:(tt=(Ve=(qe=H?.video)===null||qe===void 0?void 0:qe.bindProduct)===null||Ve===void 0?void 0:Ve.bindCta)===null||tt===void 0?void 0:tt.traceInfo)!==null&&Re!==void 0?Re:(St=(Ke=(ct=(Je=H?.video)===null||Je===void 0?void 0:Je.bindProducts)===null||ct===void 0?void 0:ct[0])===null||Ke===void 0?void 0:Ke.bindCta)===null||St===void 0?void 0:St.traceInfo)!==null&&xt!==void 0?xt:(Ot=(Dt=H?.product)===null||Dt===void 0?void 0:Dt.bindCta)===null||Ot===void 0?void 0:Ot.traceInfo)!==null&&ze!==void 0?ze:"",fromKName:Qt,fromKPage:(fi=location?.href)!==null&&fi!==void 0?fi:""})})},[L,W]),ft=ye(()=>{var z,H;const Ie=location.search.slice(1),Pe=gi.parse(Ie.replace(/\+/g,"%2B"));for(const me in Pe)Pe[me]=Pe[me].replace(/%2B/g,"+");const X=me=>{var ke;return(ke=Pe[me])!==null&&ke!==void 0?ke:""},J=new Date;Ce.current=J,L?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:X("utm_source"),utmMedium:X("utm_medium"),utmCampaign:X("utm_campaign"),utmId:X("utm_id"),utmContent:X("utm_content"),enterTime:Math.floor(J/1e3)+"",requestId:null,enterUrl:(H=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&H!==void 0?H:"",clSource:X("cl_source")}})},[L]);ge(()=>{He||ft()},[He]),ge(()=>{He||(I(!0),nt(),re().then(z=>{z&&(x(Q(z)),ue(Q(z)))}).finally(()=>{L({eventInfo:{eventSubject:"apiRequest",eventDescription:"api request succeed"}}),I(!1)}))},[He]),ge(()=>{a&&(I(!0),nt(),re().then(z=>{z&&(x(Q(z)),ue(Q(z)))}).finally(()=>{L({eventInfo:{eventSubject:"apiRequest",eventDescription:"api request succeed"}}),I(!1)}))},[re,nt]);const ht=gt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return p.createElement(ao.Provider,{value:{rtcList:P,setRtcList:x,mutateLike:$e,mutateUnlike:Qe,submitForm:pt,popupDetailData:k,loadVideos:$,setPopupDetailData:N,getRecommendVideos:re,bffEventReport:L,utmVal:i,isPreview:a,loading:y,sxpParameter:d,waterFallData:U,setWaterFallData:G,ctaEvent:mt,swiperRef:F,openHashtag:K,setOpenHashtag:le,cacheRtcList:oe,setCacheRtcList:ue,cacheActiveIndex:Le,setCacheActiveIndex:ce,isFromHashtag:W,setIsFromHashtag:Z,appDomain:r,hashTagSize:v,loadingImage:s??ht,isOpenHashTag:f,tagList:c,setLoading:I,videoRef:ee,setVideoRef:te,bffFbReport:Ge,isAgreePolicy:V,setIsAgreePolicy:B,curTime:Ce,h5EnterLink:ft,themeTag:we,isShowConsent:He,selectTag:ae,setSelectTag:be,globalConfig:u,popupCurTimeRef:Be,checkCommodityIndexRef:Te,isEditor:w,isNoMoreData:Oe}},He?p.createElement(bn,Object.assign({},(O=(g=(D=u?.consent)===null||D===void 0?void 0:D[0])===null||g===void 0?void 0:g.item)===null||O===void 0?void 0:O.props)):t({rtcList:P,mutateLike:$e,mutateUnlike:Qe,submitForm:pt,tagList:c}))};var ro=_e(yn);function Me(){return Yt(ao)}var so;(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"})(so||(so={}));const co=Xt({$store:{},options:[],configs:[]}),wn=({children:t,isSsr:e,enable:i})=>{const[o,l]=Y([]),{schema:n}=Tt(),[a,d]=Y(n.__STORE__||{}),[r,v]=Y([]);ge(()=>{var h;e||Hi(r,n?.dataSource)||v((h=n?.dataSource)!==null&&h!==void 0?h:[])},[n?.dataSource,e]);const s=ye(()=>at(void 0,void 0,void 0,function*(){const{$store:h,idMapName:m}=yield Yi("",r);d(h),f(h,m)}),[r]),f=(h,m)=>{const S=[];Object.entries(h).forEach(([A,E])=>{Object.keys(E).forEach(u=>{const w={label:`${m[A]} - ${u}`,value:`{{ ${A}.${u} }}`};S.push(w)})}),l(S)};return ge(()=>{e||s()},[s,e,n]),i?p.createElement(co.Provider,{value:{$store:n.__STORE__||a,options:o,configs:r}},t):t};var Sn=_e(wn);const oi={id:ti(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},Si={id:"",duration:0,name:"none"},uo=p.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[oi],redoStack:[],popup:Si,setPopup:()=>{}}),vo=ei(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:l=!0,utmVal:n},a)=>{const[d,r]=Y(null),[v,s]=Y(o||{pointData:[oi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[f,h]=Y([oi]),[m,S]=Y([[oi]]),[A,E]=Y([]),[u,w]=Y(Si);typeof window<"u"&&(window.sxpPopup=(O,P)=>{w(Object.assign(Object.assign(Object.assign({},Si),{id:O}),P))}),typeof window<"u"&&(window.getJointUtmLink=O=>(hn(),O?.indexOf("?")!==-1?O+(n?"&"+n:""):O+(n?"?"+n:""))),ge(()=>{S([v.pointData]),E([])},[v.type]);const b=ye(O=>{const P=$t(v);P&&(P.dataSource=O,s?.(P))},[v]),[T,D]=Y();Ui(a,()=>({loadSchema(O){O&&(S([O.pointData]),s(O))},exportSchema(){return $t(v)},getPageInfoData(){return T},initPageInfoData(O){O&&D(O)}}));const g=ve(()=>{if(v)return v.type==="PC"?v.pcPageConf:v.mobilePageConf},[v]);return p.createElement(uo.Provider,{value:{resolver:e,currentNode:d,schema:v,setCurrentNode:r,setSchema:s,saveDataSource:b,prePiontData:f,setPrePiontData:h,pageInfoData:T,setPageInfoData:O=>D(Object.assign(Object.assign({},T),O)),undoStack:m,redoStack:A,setRedoStack:E,setUndoStack:S,getCurPageConf:g,popup:u,setPopup:w}},p.createElement(Sn,{isSsr:i,enable:l},t))});var xn=Object.freeze({__proto__:null,EditorCore:vo}),Tn=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],An=[{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:"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 it(){const{bffEventReport:t,popupDetailData:e,waterFallData:i,isFromHashtag:o}=Me(),l=ye((d,r,v,s,f)=>{var h,m,S,A,E,u,w,b,T,D,g,O,P,x,c,M,y,I,C,R,F,j,V,B,k,N,U,G,K,le,oe,ue,Le,ce,W,Z,ee,te;let we="";e&&(!((m=(h=d?.video)===null||h===void 0?void 0:h.bindProducts)===null||m===void 0)&&m.length||!((S=d?.video)===null||S===void 0)&&S.bindProduct)?we="pdpPage":o?we="hashTagPage":!((A=d?.video)===null||A===void 0)&&A.url?we="videoPage":!((E=d?.video)===null||E===void 0)&&E.imgUrls&&(!((w=(u=d?.video)===null||u===void 0?void 0:u.imgUrls)===null||w===void 0)&&w.length)?we="imagePage":d?.product&&(we="productPage");const Ce=(x=(O=(b=r?.tags)!==null&&b!==void 0?b:(g=(D=(T=d?.video)===null||T===void 0?void 0:T.bindProducts)===null||D===void 0?void 0:D[0])===null||g===void 0?void 0:g.tags)!==null&&O!==void 0?O:(P=d?.video)===null||P===void 0?void 0:P.tags)!==null&&x!==void 0?x:(c=d?.product)===null||c===void 0?void 0:c.tags;let ae=null;!((M=d?.video)===null||M===void 0)&&M.url?ae="video":!((y=d?.video)===null||y===void 0)&&y.imgUrls&&(!((C=(I=d?.video)===null||I===void 0?void 0:I.imgUrls)===null||C===void 0)&&C.length)&&(ae="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(R=r?.itemId)!==null&&R!==void 0?R:"",productName:(F=r?.title)!==null&&F!==void 0?F:"",price:r?.price?r?.price+"":"0",productCollection:(j=r?.collection)!==null&&j!==void 0?j:"",fromKName:we,fromKPage:location?.href,contentTags:Ce?JSON.stringify(Ce):"",position:s+"",contentId:(B=(V=d?.video)===null||V===void 0?void 0:V.itemId)!==null&&B!==void 0?B:"",ctatId:(k=v?.itemId)!==null&&k!==void 0?k:"",traceInfo:(te=(W=(Le=(K=(N=f??r?.traceInfo)!==null&&N!==void 0?N:(G=(U=d?.video)===null||U===void 0?void 0:U.bindProduct)===null||G===void 0?void 0:G.traceInfo)!==null&&K!==void 0?K:(ue=(oe=(le=d?.video)===null||le===void 0?void 0:le.bindProducts)===null||oe===void 0?void 0:oe[0])===null||ue===void 0?void 0:ue.traceInfo)!==null&&Le!==void 0?Le:(ce=d?.product)===null||ce===void 0?void 0:ce.traceInfo)!==null&&W!==void 0?W:(ee=(Z=d?.video)===null||Z===void 0?void 0:Z.bindCta)===null||ee===void 0?void 0:ee.traceInfo)!==null&&te!==void 0?te:""},ae&&{contentFormat:ae})})},[t,e,o]),n=ye((d,r,v,s,f)=>{var h,m,S,A,E,u,w,b,T,D,g,O,P,x;let c="";e&&(!((m=(h=d?.video)===null||h===void 0?void 0:h.bindProducts)===null||m===void 0)&&m.length||!((S=d?.video)===null||S===void 0)&&S.bindProduct)?c="pdpPage":d?.product&&(c="productPage"),t?.({eventInfo:{productId:r?.itemId,productName:r?.title,price:r?.price?r?.price+"":"0",productCollection:r?.collection,fromKName:c,fromKPage:location?.href,contentTags:JSON.stringify(r?.tags),position:f+"",contentId:(A=d?.video)===null||A===void 0?void 0:A.itemId,ctatId:v?.itemId,traceInfo:(x=(O=(b=(E=r?.traceInfo)!==null&&E!==void 0?E:(w=(u=d?.video)===null||u===void 0?void 0:u.bindProduct)===null||w===void 0?void 0:w.traceInfo)!==null&&b!==void 0?b:(g=(D=(T=d?.video)===null||T===void 0?void 0:T.bindProducts)===null||D===void 0?void 0:D[0])===null||g===void 0?void 0:g.traceInfo)!==null&&O!==void 0?O:(P=d?.product)===null||P===void 0?void 0:P.traceInfo)!==null&&x!==void 0?x:"",timeOnSite:Math.floor((new Date-s)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),a=ye((d,r,v,s)=>{r&&r===ii&&t?.({eventInfo:{lastFeed:d,themeTags:v?`['${v}']`:"",hashTags:s?`['${s}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:n,backMainFeed:a}}const En=({layout:t,columns:e,onChange:i})=>p.createElement(p.Fragment,null,e?.map((o,l)=>p.createElement("div",{key:l,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&p.createElement("label",{className:"pb-appoint-form-container-label"},o?.title),o?.valueType==="text"&&p.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?o?.title:"\u8BF7\u8F93\u5165",name:o?.dataIndex},i&&{onChange:i})))));var In=_e(En);const Cn=t=>{var e,i,{columns:o,style:l,title:n,textStyle:a,submitBgColor:d,submitColor:r,submitText:v,layoutType:s="inline",isExternalLink:f,isPopup:h,onClick:m,onClose:S,submitButtonStyle:A}=t,E=Ze(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:u,popupDetailData:w}=Me(),{jumpToWeb:b}=it(),[T,D]=Y(!1),[g,O]=Y({}),[P,x]=Y(0),c=ve(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),M=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),y=ve(()=>$t(o)||c,[o,c]),I=ye(R=>{const{name:F,value:j}=R.target;O(Object.assign(Object.assign({},g),{[F]:j}))},[g]),C=hi(()=>at(void 0,void 0,void 0,function*(){var R,F,j,V,B;const k=g;if(!k)return;const N=(F=(R=Object.keys(k))===null||R===void 0?void 0:R.map(G=>{var K;return{name:G,value:(K=k[G])!==null&&K!==void 0?K:""}}))===null||F===void 0?void 0:F.filter(G=>G?.value);if(!N||!N?.length)return;D(!0);const U=yield u?.({attributes:N});if(D(!1),U){if(f){const G=w,K=(j=G?.video)===null||j===void 0?void 0:j.bindProduct,le=(B=(V=G?.video)===null||V===void 0?void 0:V.bindProduct)===null||B===void 0?void 0:B.bindCta,oe=w?.index;b(G,K,le,oe)}h||S?.(),m?.()}}),1e3);return ge(()=>{const R=()=>{var F,j;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((j=document?.body)===null||j===void 0?void 0:j.clientHeight))<M?x(50):x(0)};return window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}},[]),p.createElement("div",{className:"pb-appoint-form"},p.createElement("div",{className:`pb-appoint-form-title ${Ee(Object.assign({},a))}`,dangerouslySetInnerHTML:{__html:xe(n,a)}}),p.createElement("div",Object.assign({className:Ee(Object.assign(Object.assign({},l),{marginTop:P}))},E),p.createElement("div",{className:"pb-appoint-form-container"},p.createElement(In,{columns:y,layout:s,onChange:I}))),p.createElement("div",{className:"pb-appoint-form-btn-wrapper"},p.createElement("button",{"aria-label":v,onClick:C,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:d},A),dangerouslySetInnerHTML:{__html:xe(T?"loading...":v,A)}})))};var kn=_e(Cn);function ot(t,e){return t.extend=e,t}const _n=ot(kn,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:An,bindableProps:[],interactionRender:Tn},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 Pn=[{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"]}]},{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}]}]},{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"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color"},{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 po(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function xi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:po(e[i])&&po(t[i])&&Object.keys(e[i]).length>0&&xi(t[i],e[i])})}const mo={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 Et(){const t=typeof document<"u"?document:{};return xi(t,mo),t}const Dn={document:mo,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 rt(){const t=typeof window<"u"?window:{};return xi(t,Dn),t}function Rt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function On(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function jt(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function bt(){return Date.now()}function Mn(t){const e=rt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Ln(t,e){e===void 0&&(e="x");const i=rt();let o,l,n;const a=Mn(t);return i.WebKitCSSMatrix?(l=a.transform||a.webkitTransform,l.split(",").length>6&&(l=l.split(", ").map(d=>d.replace(",",".")).join(", ")),n=new i.WebKitCSSMatrix(l==="none"?"":l)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=n.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?l=n.m41:o.length===16?l=parseFloat(o[12]):l=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?l=n.m42:o.length===16?l=parseFloat(o[13]):l=parseFloat(o[5])),l||0}function ni(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Rn(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function vt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const o=i<0||arguments.length<=i?void 0:arguments[i];if(o!=null&&!Rn(o)){const l=Object.keys(Object(o)).filter(n=>e.indexOf(n)<0);for(let n=0,a=l.length;n<a;n+=1){const d=l[n],r=Object.getOwnPropertyDescriptor(o,d);r!==void 0&&r.enumerable&&(ni(t[d])&&ni(o[d])?o[d].__swiper__?t[d]=o[d]:vt(t[d],o[d]):!ni(t[d])&&ni(o[d])?(t[d]={},o[d].__swiper__?t[d]=o[d]:vt(t[d],o[d])):t[d]=o[d])}}}return t}function li(t,e,i){t.style.setProperty(e,i)}function fo(t){let{swiper:e,targetPosition:i,side:o}=t;const l=rt(),n=-e.translate;let a=null,d;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const v=i>n?"next":"prev",s=(h,m)=>v==="next"&&h>=m||v==="prev"&&h<=m,f=()=>{d=new Date().getTime(),a===null&&(a=d);const h=Math.max(Math.min((d-a)/r,1),0),m=.5-Math.cos(h*Math.PI)/2;let S=n+m*(i-n);if(s(S,i)&&(S=i),e.wrapperEl.scrollTo({[o]:S}),s(S,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:S})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(f)};f()}function Ct(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function ai(t){try{console.warn(t);return}catch{}}function Jt(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Rt(e)),i}function Bn(t){const e=rt(),i=Et(),o=t.getBoundingClientRect(),l=i.body,n=t.clientTop||l.clientTop||0,a=t.clientLeft||l.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:o.top+d-n,left:o.left+r-a}}function Nn(t,e){const i=[];for(;t.previousElementSibling;){const o=t.previousElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Fn(t,e){const i=[];for(;t.nextElementSibling;){const o=t.nextElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Bt(t,e){return rt().getComputedStyle(t,null).getPropertyValue(e)}function di(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function ho(t,e){const i=[];let o=t.parentElement;for(;o;)e?o.matches(e)&&i.push(o):i.push(o),o=o.parentElement;return i}function Ti(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function Ai(t,e,i){const o=rt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function kt(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function jn(t){let{swiper:e,extendParams:i,on:o,emit:l}=t;const n=rt();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,d=bt(),r;const v=[];function s(b){let O=0,P=0,x=0,c=0;return"detail"in b&&(P=b.detail),"wheelDelta"in b&&(P=-b.wheelDelta/120),"wheelDeltaY"in b&&(P=-b.wheelDeltaY/120),"wheelDeltaX"in b&&(O=-b.wheelDeltaX/120),"axis"in b&&b.axis===b.HORIZONTAL_AXIS&&(O=P,P=0),x=O*10,c=P*10,"deltaY"in b&&(c=b.deltaY),"deltaX"in b&&(x=b.deltaX),b.shiftKey&&!x&&(x=c,c=0),(x||c)&&b.deltaMode&&(b.deltaMode===1?(x*=40,c*=40):(x*=800,c*=800)),x&&!O&&(O=x<1?-1:1),c&&!P&&(P=c<1?-1:1),{spinX:O,spinY:P,pixelX:x,pixelY:c}}function f(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function m(b){return e.params.mousewheel.thresholdDelta&&b.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&bt()-d<e.params.mousewheel.thresholdTime?!1:b.delta>=6&&bt()-d<60?!0:(b.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),l("scroll",b.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),l("scroll",b.raw)),d=new n.Date().getTime(),!1)}function S(b){const T=e.params.mousewheel;if(b.direction<0){if(e.isEnd&&!e.params.loop&&T.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&T.releaseOnEdges)return!0;return!1}function A(b){let T=b,D=!0;if(!e.enabled||b.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const g=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let O=e.el;e.params.mousewheel.eventsTarget!=="container"&&(O=document.querySelector(e.params.mousewheel.eventsTarget));const P=O&&O.contains(T.target);if(!e.mouseEntered&&!P&&!g.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let x=0;const c=e.rtlTranslate?-1:1,M=s(T);if(g.forceToAxis)if(e.isHorizontal())if(Math.abs(M.pixelX)>Math.abs(M.pixelY))x=-M.pixelX*c;else return!0;else if(Math.abs(M.pixelY)>Math.abs(M.pixelX))x=-M.pixelY;else return!0;else x=Math.abs(M.pixelX)>Math.abs(M.pixelY)?-M.pixelX*c:-M.pixelY;if(x===0)return!0;g.invert&&(x=-x);let y=e.getTranslate()+x*g.sensitivity;if(y>=e.minTranslate()&&(y=e.minTranslate()),y<=e.maxTranslate()&&(y=e.maxTranslate()),D=e.params.loop?!0:!(y===e.minTranslate()||y===e.maxTranslate()),D&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const I={time:bt(),delta:Math.abs(x),direction:Math.sign(x),raw:b};v.length>=2&&v.shift();const C=v.length?v[v.length-1]:void 0;if(v.push(I),C?(I.direction!==C.direction||I.delta>C.delta||I.time>C.time+150)&&m(I):m(I),S(I))return!0}else{const I={time:bt(),delta:Math.abs(x),direction:Math.sign(x)},C=r&&I.time<r.time+500&&I.delta<=r.delta&&I.direction===r.direction;if(!C){r=void 0;let R=e.getTranslate()+x*g.sensitivity;const F=e.isBeginning,j=e.isEnd;if(R>=e.minTranslate()&&(R=e.minTranslate()),R<=e.maxTranslate()&&(R=e.maxTranslate()),e.setTransition(0),e.setTranslate(R),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!j&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:I.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,v.length>=15&&v.shift();const V=v.length?v[v.length-1]:void 0,B=v[0];if(v.push(I),V&&(I.delta>V.delta||I.direction!==V.direction))v.splice(0);else if(v.length>=15&&I.time-B.time<500&&B.delta-I.delta>=1&&I.delta<=6){const k=x>0?.8:.2;r=I,v.splice(0),a=jt(()=>{e.slideToClosest(e.params.speed,!0,void 0,k)},0)}a||(a=jt(()=>{r=I,v.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(C||l("scroll",T),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),g.releaseOnEdges&&(R===e.minTranslate()||R===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function E(b){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[b]("mouseenter",f),T[b]("mouseleave",h),T[b]("wheel",A)}function u(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",A),!0):e.mousewheel.enabled?!1:(E("addEventListener"),e.mousewheel.enabled=!0,!0)}function w(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,A),!0):e.mousewheel.enabled?(E("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&w(),e.params.mousewheel.enabled&&u()}),o("destroy",()=>{e.params.cssMode&&u(),e.mousewheel.enabled&&w()}),Object.assign(e.mousewheel,{enable:u,disable:w})}function go(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(l=>{if(!i[l]&&i.auto===!0){let n=Ct(t.el,`.${o[l]}`)[0];n||(n=Jt("div",o[l]),n.className=o[l],t.el.append(n)),i[l]=n,e[l]=n}}),i}function Vt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function ri(t){let{swiper:e,extendParams:i,on:o,emit:l}=t;const n="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:u=>u,formatFractionTotal:u=>u,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),e.pagination={el:null,bullets:[]};let a,d=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function v(u,w){const{bulletActiveClass:b}=e.params.pagination;u&&(u=u[`${w==="prev"?"previous":"next"}ElementSibling`],u&&(u.classList.add(`${b}-${w}`),u=u[`${w==="prev"?"previous":"next"}ElementSibling`],u&&u.classList.add(`${b}-${w}-${w}`)))}function s(u){const w=u.target.closest(Vt(e.params.pagination.bulletClass));if(!w)return;u.preventDefault();const b=di(w)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===b)return;e.slideToLoop(b)}else e.slideTo(b)}function f(){const u=e.rtl,w=e.params.pagination;if(r())return;let b=e.pagination.el;b=kt(b);let T,D;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,O=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(D=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,D=e.previousSnapIndex):(D=e.previousIndex||0,T=e.activeIndex||0),w.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const P=e.pagination.bullets;let x,c,M;if(w.dynamicBullets&&(a=Ai(P[0],e.isHorizontal()?"width":"height",!0),b.forEach(y=>{y.style[e.isHorizontal()?"width":"height"]=`${a*(w.dynamicMainBullets+4)}px`}),w.dynamicMainBullets>1&&D!==void 0&&(d+=T-(D||0),d>w.dynamicMainBullets-1?d=w.dynamicMainBullets-1:d<0&&(d=0)),x=Math.max(T-d,0),c=x+(Math.min(P.length,w.dynamicMainBullets)-1),M=(c+x)/2),P.forEach(y=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(C=>`${w.bulletActiveClass}${C}`)].map(C=>typeof C=="string"&&C.includes(" ")?C.split(" "):C).flat();y.classList.remove(...I)}),b.length>1)P.forEach(y=>{const I=di(y);I===T?y.classList.add(...w.bulletActiveClass.split(" ")):e.isElement&&y.setAttribute("part","bullet"),w.dynamicBullets&&(I>=x&&I<=c&&y.classList.add(...`${w.bulletActiveClass}-main`.split(" ")),I===x&&v(y,"prev"),I===c&&v(y,"next"))});else{const y=P[T];if(y&&y.classList.add(...w.bulletActiveClass.split(" ")),e.isElement&&P.forEach((I,C)=>{I.setAttribute("part",C===T?"bullet-active":"bullet")}),w.dynamicBullets){const I=P[x],C=P[c];for(let R=x;R<=c;R+=1)P[R]&&P[R].classList.add(...`${w.bulletActiveClass}-main`.split(" "));v(I,"prev"),v(C,"next")}}if(w.dynamicBullets){const y=Math.min(P.length,w.dynamicMainBullets+4),I=(a*y-a)/2-M*a,C=u?"right":"left";P.forEach(R=>{R.style[e.isHorizontal()?C:"top"]=`${I}px`})}}b.forEach((P,x)=>{if(w.type==="fraction"&&(P.querySelectorAll(Vt(w.currentClass)).forEach(c=>{c.textContent=w.formatFractionCurrent(T+1)}),P.querySelectorAll(Vt(w.totalClass)).forEach(c=>{c.textContent=w.formatFractionTotal(O)})),w.type==="progressbar"){let c;w.progressbarOpposite?c=e.isHorizontal()?"vertical":"horizontal":c=e.isHorizontal()?"horizontal":"vertical";const M=(T+1)/O;let y=1,I=1;c==="horizontal"?y=M:I=M,P.querySelectorAll(Vt(w.progressbarFillClass)).forEach(C=>{C.style.transform=`translate3d(0,0,0) scaleX(${y}) scaleY(${I})`,C.style.transitionDuration=`${e.params.speed}ms`})}w.type==="custom"&&w.renderCustom?(P.innerHTML=w.renderCustom(e,T+1,O),x===0&&l("paginationRender",P)):(x===0&&l("paginationRender",P),l("paginationUpdate",P)),e.params.watchOverflow&&e.enabled&&P.classList[e.isLocked?"add":"remove"](w.lockClass)})}function h(){const u=e.params.pagination;if(r())return;const w=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 b=e.pagination.el;b=kt(b);let T="";if(u.type==="bullets"){let D=e.params.loop?Math.ceil(w/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&D>w&&(D=w);for(let g=0;g<D;g+=1)u.renderBullet?T+=u.renderBullet.call(e,g,u.bulletClass):T+=`<${u.bulletElement} ${e.isElement?'part="bullet"':""} class="${u.bulletClass}"></${u.bulletElement}>`}u.type==="fraction"&&(u.renderFraction?T=u.renderFraction.call(e,u.currentClass,u.totalClass):T=`<span class="${u.currentClass}"></span> / <span class="${u.totalClass}"></span>`),u.type==="progressbar"&&(u.renderProgressbar?T=u.renderProgressbar.call(e,u.progressbarFillClass):T=`<span class="${u.progressbarFillClass}"></span>`),e.pagination.bullets=[],b.forEach(D=>{u.type!=="custom"&&(D.innerHTML=T||""),u.type==="bullets"&&e.pagination.bullets.push(...D.querySelectorAll(Vt(u.bulletClass)))}),u.type!=="custom"&&l("paginationRender",b[0])}function m(){e.params.pagination=go(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const u=e.params.pagination;if(!u.el)return;let w;typeof u.el=="string"&&e.isElement&&(w=e.el.querySelector(u.el)),!w&&typeof u.el=="string"&&(w=[...document.querySelectorAll(u.el)]),w||(w=u.el),!(!w||w.length===0)&&(e.params.uniqueNavElements&&typeof u.el=="string"&&Array.isArray(w)&&w.length>1&&(w=[...e.el.querySelectorAll(u.el)],w.length>1&&(w=w.filter(b=>ho(b,".swiper")[0]===e.el)[0])),Array.isArray(w)&&w.length===1&&(w=w[0]),Object.assign(e.pagination,{el:w}),w=kt(w),w.forEach(b=>{u.type==="bullets"&&u.clickable&&b.classList.add(...(u.clickableClass||"").split(" ")),b.classList.add(u.modifierClass+u.type),b.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass),u.type==="bullets"&&u.dynamicBullets&&(b.classList.add(`${u.modifierClass}${u.type}-dynamic`),d=0,u.dynamicMainBullets<1&&(u.dynamicMainBullets=1)),u.type==="progressbar"&&u.progressbarOpposite&&b.classList.add(u.progressbarOppositeClass),u.clickable&&b.addEventListener("click",s),e.enabled||b.classList.add(u.lockClass)}))}function S(){const u=e.params.pagination;if(r())return;let w=e.pagination.el;w&&(w=kt(w),w.forEach(b=>{b.classList.remove(u.hiddenClass),b.classList.remove(u.modifierClass+u.type),b.classList.remove(e.isHorizontal()?u.horizontalClass:u.verticalClass),u.clickable&&(b.classList.remove(...(u.clickableClass||"").split(" ")),b.removeEventListener("click",s))})),e.pagination.bullets&&e.pagination.bullets.forEach(b=>b.classList.remove(...u.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const u=e.params.pagination;let{el:w}=e.pagination;w=kt(w),w.forEach(b=>{b.classList.remove(u.horizontalClass,u.verticalClass),b.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?E():(m(),h(),f())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),o("snapIndexChange",()=>{f()}),o("snapGridLengthChange",()=>{h(),f()}),o("destroy",()=>{S()}),o("enable disable",()=>{let{el:u}=e.pagination;u&&(u=kt(u),u.forEach(w=>w.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{f()}),o("click",(u,w)=>{const b=w.target,T=kt(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&T&&T.length>0&&!b.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&b===e.navigation.nextEl||e.navigation.prevEl&&b===e.navigation.prevEl))return;const D=T[0].classList.contains(e.params.pagination.hiddenClass);l(D===!0?"paginationShow":"paginationHide"),T.forEach(g=>g.classList.toggle(e.params.pagination.hiddenClass))}});const A=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:u}=e.pagination;u&&(u=kt(u),u.forEach(w=>w.classList.remove(e.params.pagination.paginationDisabledClass))),m(),h(),f()},E=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:u}=e.pagination;u&&(u=kt(u),u.forEach(w=>w.classList.add(e.params.pagination.paginationDisabledClass))),S()};Object.assign(e.pagination,{enable:A,disable:E,render:h,update:f,init:m,destroy:S})}function Vn(t){let{swiper:e,extendParams:i,on:o,emit:l}=t;const n=Et();let a=!1,d=null,r=null,v,s,f,h;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:y,rtlTranslate:I}=e,{dragEl:C,el:R}=y,F=e.params.scrollbar,j=e.params.loop?e.progressLoop:e.progress;let V=s,B=(f-s)*j;I?(B=-B,B>0?(V=s-B,B=0):-B+s>f&&(V=f+B)):B<0?(V=s+B,B=0):B+s>f&&(V=f-B),e.isHorizontal()?(C.style.transform=`translate3d(${B}px, 0, 0)`,C.style.width=`${V}px`):(C.style.transform=`translate3d(0px, ${B}px, 0)`,C.style.height=`${V}px`),F.hide&&(clearTimeout(d),R.style.opacity=1,d=setTimeout(()=>{R.style.opacity=0,R.style.transitionDuration="400ms"},1e3))}function S(y){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${y}ms`)}function A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:y}=e,{dragEl:I,el:C}=y;I.style.width="",I.style.height="",f=e.isHorizontal()?C.offsetWidth:C.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?s=f*h:s=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?I.style.width=`${s}px`:I.style.height=`${s}px`,h>=1?C.style.display="none":C.style.display="",e.params.scrollbar.hide&&(C.style.opacity=0),e.params.watchOverflow&&e.enabled&&y.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function E(y){return e.isHorizontal()?y.clientX:y.clientY}function u(y){const{scrollbar:I,rtlTranslate:C}=e,{el:R}=I;let F;F=(E(y)-Bn(R)[e.isHorizontal()?"left":"top"]-(v!==null?v:s/2))/(f-s),F=Math.max(Math.min(F,1),0),C&&(F=1-F);const j=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(j),e.setTranslate(j),e.updateActiveIndex(),e.updateSlidesClasses()}function w(y){const I=e.params.scrollbar,{scrollbar:C,wrapperEl:R}=e,{el:F,dragEl:j}=C;a=!0,v=y.target===j?E(y)-y.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,y.preventDefault(),y.stopPropagation(),R.style.transitionDuration="100ms",j.style.transitionDuration="100ms",u(y),clearTimeout(r),F.style.transitionDuration="0ms",I.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),l("scrollbarDragStart",y)}function b(y){const{scrollbar:I,wrapperEl:C}=e,{el:R,dragEl:F}=I;a&&(y.preventDefault&&y.cancelable?y.preventDefault():y.returnValue=!1,u(y),C.style.transitionDuration="0ms",R.style.transitionDuration="0ms",F.style.transitionDuration="0ms",l("scrollbarDragMove",y))}function T(y){const I=e.params.scrollbar,{scrollbar:C,wrapperEl:R}=e,{el:F}=C;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",R.style.transitionDuration=""),I.hide&&(clearTimeout(r),r=jt(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),l("scrollbarDragEnd",y),I.snapOnRelease&&e.slideToClosest())}function D(y){const{scrollbar:I,params:C}=e,R=I.el;if(!R)return;const F=R,j=C.passiveListeners?{passive:!1,capture:!1}:!1,V=C.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const B=y==="on"?"addEventListener":"removeEventListener";F[B]("pointerdown",w,j),n[B]("pointermove",b,j),n[B]("pointerup",T,V)}function g(){!e.params.scrollbar.el||!e.scrollbar.el||D("on")}function O(){!e.params.scrollbar.el||!e.scrollbar.el||D("off")}function P(){const{scrollbar:y,el:I}=e;e.params.scrollbar=go(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const C=e.params.scrollbar;if(!C.el)return;let R;if(typeof C.el=="string"&&e.isElement&&(R=e.el.querySelector(C.el)),!R&&typeof C.el=="string"){if(R=n.querySelectorAll(C.el),!R.length)return}else R||(R=C.el);e.params.uniqueNavElements&&typeof C.el=="string"&&R.length>1&&I.querySelectorAll(C.el).length===1&&(R=I.querySelector(C.el)),R.length>0&&(R=R[0]),R.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass);let F;R&&(F=R.querySelector(Vt(e.params.scrollbar.dragClass)),F||(F=Jt("div",e.params.scrollbar.dragClass),R.append(F))),Object.assign(y,{el:R,dragEl:F}),C.draggable&&g(),R&&R.classList[e.enabled?"remove":"add"](...Rt(e.params.scrollbar.lockClass))}function x(){const y=e.params.scrollbar,I=e.scrollbar.el;I&&I.classList.remove(...Rt(e.isHorizontal()?y.horizontalClass:y.verticalClass)),O()}o("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const y=e.params.scrollbar;let{el:I}=e.scrollbar;I=kt(I),I.forEach(C=>{C.classList.remove(y.horizontalClass,y.verticalClass),C.classList.add(e.isHorizontal()?y.horizontalClass:y.verticalClass)})}),o("init",()=>{e.params.scrollbar.enabled===!1?M():(P(),A(),m())}),o("update resize observerUpdate lock unlock changeDirection",()=>{A()}),o("setTranslate",()=>{m()}),o("setTransition",(y,I)=>{S(I)}),o("enable disable",()=>{const{el:y}=e.scrollbar;y&&y.classList[e.enabled?"remove":"add"](...Rt(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const c=()=>{e.el.classList.remove(...Rt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Rt(e.params.scrollbar.scrollbarDisabledClass)),P(),A(),m()},M=()=>{e.el.classList.add(...Rt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Rt(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:c,disable:M,updateSize:A,setTranslate:m,init:P,destroy:x})}function si(t){let{swiper:e,extendParams:i,on:o,emit:l,params:n}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,d,r=n&&n.autoplay?n.autoplay.delay:3e3,v=n&&n.autoplay?n.autoplay.delay:3e3,s,f=new Date().getTime(),h,m,S,A,E,u,w;function b(V){!e||e.destroyed||!e.wrapperEl||V.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),!(w||V.detail&&V.detail.bySwiperTouchMove)&&c())}const T=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(v=s,h=!1);const V=e.autoplay.paused?s:f+v-new Date().getTime();e.autoplay.timeLeft=V,l("autoplayTimeLeft",V,V/r),d=requestAnimationFrame(()=>{T()})},D=()=>{let V;return e.virtual&&e.params.virtual.enabled?V=e.slides.filter(k=>k.classList.contains("swiper-slide-active"))[0]:V=e.slides[e.activeIndex],V?parseInt(V.getAttribute("data-swiper-autoplay"),10):void 0},g=V=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(d),T();let B=typeof V>"u"?e.params.autoplay.delay:V;r=e.params.autoplay.delay,v=e.params.autoplay.delay;const k=D();!Number.isNaN(k)&&k>0&&typeof V>"u"&&(B=k,r=k,v=k),s=B;const N=e.params.speed,U=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),l("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),l("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{g()})))};return B>0?(clearTimeout(a),a=setTimeout(()=>{U()},B)):requestAnimationFrame(()=>{U()}),B},O=()=>{f=new Date().getTime(),e.autoplay.running=!0,g(),l("autoplayStart")},P=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),l("autoplayStop")},x=(V,B)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),V||(u=!0);const k=()=>{l("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):c()};if(e.autoplay.paused=!0,B){E&&(s=e.params.autoplay.delay),E=!1,k();return}s=(s||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&s<0&&!e.params.loop)&&(s<0&&(s=0),k())},c=()=>{e.isEnd&&s<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),u?(u=!1,g(s)):g(),e.autoplay.paused=!1,l("autoplayResume"))},M=()=>{if(e.destroyed||!e.autoplay.running)return;const V=Et();V.visibilityState==="hidden"&&(u=!0,x(!0)),V.visibilityState==="visible"&&c()},y=V=>{V.pointerType==="mouse"&&(u=!0,w=!0,!(e.animating||e.autoplay.paused)&&x(!0))},I=V=>{V.pointerType==="mouse"&&(w=!1,e.autoplay.paused&&c())},C=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",y),e.el.addEventListener("pointerleave",I))},R=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",y),e.el.removeEventListener("pointerleave",I))},F=()=>{Et().addEventListener("visibilitychange",M)},j=()=>{Et().removeEventListener("visibilitychange",M)};o("init",()=>{e.params.autoplay.enabled&&(C(),F(),O())}),o("destroy",()=>{R(),j(),e.autoplay.running&&P()}),o("_freeModeStaticRelease",()=>{(S||u)&&c()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?P():x(!0,!0)}),o("beforeTransitionStart",(V,B,k)=>{e.destroyed||!e.autoplay.running||(k||!e.params.autoplay.disableOnInteraction?x(!0,!0):P())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){P();return}m=!0,S=!1,u=!1,A=setTimeout(()=>{u=!0,S=!0,x(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(A),clearTimeout(a),e.params.autoplay.disableOnInteraction){S=!1,m=!1;return}S&&e.params.cssMode&&c(),S=!1,m=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(E=!0)}),Object.assign(e.autoplay,{start:O,stop:P,pause:x,resume:c})}function zn(t){let{swiper:e,extendParams:i,emit:o,once:l}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function n(){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 a(){if(e.params.cssMode)return;const{touchEventsData:r,touches:v}=e;r.velocities.length===0&&r.velocities.push({position:v[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:v[e.isHorizontal()?"currentX":"currentY"],time:bt()})}function d(r){let{currentPos:v}=r;if(e.params.cssMode)return;const{params:s,wrapperEl:f,rtlTranslate:h,snapGrid:m,touchEventsData:S}=e,E=bt()-S.touchStartTime;if(v<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(v>-e.maxTranslate()){e.slides.length<m.length?e.slideTo(m.length-1):e.slideTo(e.slides.length-1);return}if(s.freeMode.momentum){if(S.velocities.length>1){const P=S.velocities.pop(),x=S.velocities.pop(),c=P.position-x.position,M=P.time-x.time;e.velocity=c/M,e.velocity/=2,Math.abs(e.velocity)<s.freeMode.minimumVelocity&&(e.velocity=0),(M>150||bt()-P.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=s.freeMode.momentumVelocityRatio,S.velocities.length=0;let u=1e3*s.freeMode.momentumRatio;const w=e.velocity*u;let b=e.translate+w;h&&(b=-b);let T=!1,D;const g=Math.abs(e.velocity)*20*s.freeMode.momentumBounceRatio;let O;if(b<e.maxTranslate())s.freeMode.momentumBounce?(b+e.maxTranslate()<-g&&(b=e.maxTranslate()-g),D=e.maxTranslate(),T=!0,S.allowMomentumBounce=!0):b=e.maxTranslate(),s.loop&&s.centeredSlides&&(O=!0);else if(b>e.minTranslate())s.freeMode.momentumBounce?(b-e.minTranslate()>g&&(b=e.minTranslate()+g),D=e.minTranslate(),T=!0,S.allowMomentumBounce=!0):b=e.minTranslate(),s.loop&&s.centeredSlides&&(O=!0);else if(s.freeMode.sticky){let P;for(let x=0;x<m.length;x+=1)if(m[x]>-b){P=x;break}Math.abs(m[P]-b)<Math.abs(m[P-1]-b)||e.swipeDirection==="next"?b=m[P]:b=m[P-1],b=-b}if(O&&l("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?u=Math.abs((-b-e.translate)/e.velocity):u=Math.abs((b-e.translate)/e.velocity),s.freeMode.sticky){const P=Math.abs((h?-b:b)-e.translate),x=e.slidesSizesGrid[e.activeIndex];P<x?u=s.speed:P<2*x?u=s.speed*1.5:u=s.speed*2.5}}else if(s.freeMode.sticky){e.slideToClosest();return}s.freeMode.momentumBounce&&T?(e.updateProgress(D),e.setTransition(u),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating=!0,Ti(f,()=>{!e||e.destroyed||!S.allowMomentumBounce||(o("momentumBounce"),e.setTransition(s.speed),setTimeout(()=>{e.setTranslate(D),Ti(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(b),e.setTransition(u),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Ti(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(b),e.updateActiveIndex(),e.updateSlidesClasses()}else if(s.freeMode.sticky){e.slideToClosest();return}else s.freeMode&&o("_freeModeNoMomentumRelease");(!s.freeMode.momentum||E>=s.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:n,onTouchMove:a,onTouchEnd:d}})}let Ei;function Hn(){const t=rt(),e=Et();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function bo(){return Ei||(Ei=Hn()),Ei}let Ii;function Gn(t){let{userAgent:e}=t===void 0?{}:t;const i=bo(),o=rt(),l=o.navigator.platform,n=e||o.navigator.userAgent,a={ios:!1,android:!1},d=o.screen.width,r=o.screen.height,v=n.match(/(Android);?[\s\/]+([\d.]+)?/);let s=n.match(/(iPad).*OS\s([\d_]+)/);const f=n.match(/(iPod)(.*OS\s([\d_]+))?/),h=!s&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=l==="Win32";let S=l==="MacIntel";const A=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!s&&S&&i.touch&&A.indexOf(`${d}x${r}`)>=0&&(s=n.match(/(Version)\/([\d.]+)/),s||(s=[0,1,"13_0_0"]),S=!1),v&&!m&&(a.os="android",a.android=!0),(s||h||f)&&(a.os="ios",a.ios=!0),a}function yo(t){return t===void 0&&(t={}),Ii||(Ii=Gn(t)),Ii}let Ci;function Un(){const t=rt(),e=yo();let i=!1;function o(){const d=t.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}if(o()){const d=String(t.navigator.userAgent);if(d.includes("Version/")){const[r,v]=d.split("Version/")[1].split(" ")[0].split(".").map(s=>Number(s));i=r<16||r===16&&v<2}}const l=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),n=o(),a=n||l&&e.ios;return{isSafari:i||n,needPerspectiveFix:i,need3dFix:a,isWebView:l}}function Wn(){return Ci||(Ci=Un()),Ci}function Yn(t){let{swiper:e,on:i,emit:o}=t;const l=rt();let n=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(f=>{a=l.requestAnimationFrame(()=>{const{width:h,height:m}=e;let S=h,A=m;f.forEach(E=>{let{contentBoxSize:u,contentRect:w,target:b}=E;b&&b!==e.el||(S=w?w.width:(u[0]||u).inlineSize,A=w?w.height:(u[0]||u).blockSize)}),(S!==h||A!==m)&&d()})}),n.observe(e.el))},v=()=>{a&&l.cancelAnimationFrame(a),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},s=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){r();return}l.addEventListener("resize",d),l.addEventListener("orientationchange",s)}),i("destroy",()=>{v(),l.removeEventListener("resize",d),l.removeEventListener("orientationchange",s)})}function Xn(t){let{swiper:e,extendParams:i,on:o,emit:l}=t;const n=[],a=rt(),d=function(s,f){f===void 0&&(f={});const h=a.MutationObserver||a.WebkitMutationObserver,m=new h(S=>{if(e.__preventObserver__)return;if(S.length===1){l("observerUpdate",S[0]);return}const A=function(){l("observerUpdate",S[0])};a.requestAnimationFrame?a.requestAnimationFrame(A):a.setTimeout(A,0)});m.observe(s,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),n.push(m)},r=()=>{if(e.params.observer){if(e.params.observeParents){const s=ho(e.hostEl);for(let f=0;f<s.length;f+=1)d(s[f])}d(e.hostEl,{childList:e.params.observeSlideChildren}),d(e.wrapperEl,{attributes:!1})}},v=()=>{n.forEach(s=>{s.disconnect()}),n.splice(0,n.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",r),o("destroy",v)}var Jn={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const l=i?"unshift":"push";return t.split(" ").forEach(n=>{o.eventsListeners[n]||(o.eventsListeners[n]=[]),o.eventsListeners[n][l](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function l(){o.off(t,l),l.__emitterProxy&&delete l.__emitterProxy;for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];e.apply(o,a)}return l.__emitterProxy=e,o.on(t,l,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const o=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[o](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(o=>{typeof e>"u"?i.eventsListeners[o]=[]:i.eventsListeners[o]&&i.eventsListeners[o].forEach((l,n)=>{(l===e||l.__emitterProxy&&l.__emitterProxy===e)&&i.eventsListeners[o].splice(n,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,o;for(var l=arguments.length,n=new Array(l),a=0;a<l;a++)n[a]=arguments[a];return typeof n[0]=="string"||Array.isArray(n[0])?(e=n[0],i=n.slice(1,n.length),o=t):(e=n[0].events,i=n[0].data,o=n[0].context||t),i.unshift(o),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(v=>{v.apply(o,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(v=>{v.apply(o,i)})}),t}};function qn(){const t=this;let e,i;const o=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=o.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=o.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(Bt(o,"padding-left")||0,10)-parseInt(Bt(o,"padding-right")||0,10),i=i-parseInt(Bt(o,"padding-top")||0,10)-parseInt(Bt(o,"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 Kn(){const t=this;function e(c,M){return parseFloat(c.getPropertyValue(t.getDirectionLabel(M))||0)}const i=t.params,{wrapperEl:o,slidesEl:l,size:n,rtlTranslate:a,wrongRTL:d}=t,r=t.virtual&&i.virtual.enabled,v=r?t.virtual.slides.length:t.slides.length,s=Ct(l,`.${t.params.slideClass}, swiper-slide`),f=r?t.virtual.slides.length:s.length;let h=[];const m=[],S=[];let A=i.slidesOffsetBefore;typeof A=="function"&&(A=i.slidesOffsetBefore.call(t));let E=i.slidesOffsetAfter;typeof E=="function"&&(E=i.slidesOffsetAfter.call(t));const u=t.snapGrid.length,w=t.slidesGrid.length;let b=i.spaceBetween,T=-A,D=0,g=0;if(typeof n>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*n:typeof b=="string"&&(b=parseFloat(b)),t.virtualSize=-b,s.forEach(c=>{a?c.style.marginLeft="":c.style.marginRight="",c.style.marginBottom="",c.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(li(o,"--swiper-centered-offset-before",""),li(o,"--swiper-centered-offset-after",""));const O=i.grid&&i.grid.rows>1&&t.grid;O?t.grid.initSlides(s):t.grid&&t.grid.unsetSlides();let P;const x=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(c=>typeof i.breakpoints[c].slidesPerView<"u").length>0;for(let c=0;c<f;c+=1){P=0;let M;if(s[c]&&(M=s[c]),O&&t.grid.updateSlide(c,M,s),!(s[c]&&Bt(M,"display")==="none")){if(i.slidesPerView==="auto"){x&&(s[c].style[t.getDirectionLabel("width")]="");const y=getComputedStyle(M),I=M.style.transform,C=M.style.webkitTransform;if(I&&(M.style.transform="none"),C&&(M.style.webkitTransform="none"),i.roundLengths)P=t.isHorizontal()?Ai(M,"width",!0):Ai(M,"height",!0);else{const R=e(y,"width"),F=e(y,"padding-left"),j=e(y,"padding-right"),V=e(y,"margin-left"),B=e(y,"margin-right"),k=y.getPropertyValue("box-sizing");if(k&&k==="border-box")P=R+V+B;else{const{clientWidth:N,offsetWidth:U}=M;P=R+F+j+V+B+(U-N)}}I&&(M.style.transform=I),C&&(M.style.webkitTransform=C),i.roundLengths&&(P=Math.floor(P))}else P=(n-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(P=Math.floor(P)),s[c]&&(s[c].style[t.getDirectionLabel("width")]=`${P}px`);s[c]&&(s[c].swiperSlideSize=P),S.push(P),i.centeredSlides?(T=T+P/2+D/2+b,D===0&&c!==0&&(T=T-n/2-b),c===0&&(T=T-n/2-b),Math.abs(T)<1/1e3&&(T=0),i.roundLengths&&(T=Math.floor(T)),g%i.slidesPerGroup===0&&h.push(T),m.push(T)):(i.roundLengths&&(T=Math.floor(T)),(g-Math.min(t.params.slidesPerGroupSkip,g))%t.params.slidesPerGroup===0&&h.push(T),m.push(T),T=T+P+b),t.virtualSize+=P+b,D=P,g+=1}}if(t.virtualSize=Math.max(t.virtualSize,n)+E,a&&d&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+b}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+b}px`),O&&t.grid.updateWrapperSize(P,h),!i.centeredSlides){const c=[];for(let M=0;M<h.length;M+=1){let y=h[M];i.roundLengths&&(y=Math.floor(y)),h[M]<=t.virtualSize-n&&c.push(y)}h=c,Math.floor(t.virtualSize-n)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-n)}if(r&&i.loop){const c=S[0]+b;if(i.slidesPerGroup>1){const M=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),y=c*i.slidesPerGroup;for(let I=0;I<M;I+=1)h.push(h[h.length-1]+y)}for(let M=0;M<t.virtual.slidesBefore+t.virtual.slidesAfter;M+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+c),m.push(m[m.length-1]+c),t.virtualSize+=c}if(h.length===0&&(h=[0]),b!==0){const c=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");s.filter((M,y)=>!i.cssMode||i.loop?!0:y!==s.length-1).forEach(M=>{M.style[c]=`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let c=0;S.forEach(y=>{c+=y+(b||0)}),c-=b;const M=c-n;h=h.map(y=>y<=0?-A:y>M?M+E:y)}if(i.centerInsufficientSlides){let c=0;S.forEach(y=>{c+=y+(b||0)}),c-=b;const M=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(c+M<n){const y=(n-c-M)/2;h.forEach((I,C)=>{h[C]=I-y}),m.forEach((I,C)=>{m[C]=I+y})}}if(Object.assign(t,{slides:s,snapGrid:h,slidesGrid:m,slidesSizesGrid:S}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){li(o,"--swiper-centered-offset-before",`${-h[0]}px`),li(o,"--swiper-centered-offset-after",`${t.size/2-S[S.length-1]/2}px`);const c=-t.snapGrid[0],M=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(y=>y+c),t.slidesGrid=t.slidesGrid.map(y=>y+M)}if(f!==v&&t.emit("slidesLengthChange"),h.length!==u&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==w&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const c=`${i.containerModifierClass}backface-hidden`,M=t.el.classList.contains(c);f<=i.maxBackfaceHiddenSlides?M||t.el.classList.add(c):M&&t.el.classList.remove(c)}}function Zn(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let l=0,n;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=d=>o?e.slides[e.getSlideIndexByData(d)]:e.slides[d];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(d=>{i.push(d)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const d=e.activeIndex+n;if(d>e.slides.length&&!o)break;i.push(a(d))}else i.push(a(e.activeIndex));for(n=0;n<i.length;n+=1)if(typeof i[n]<"u"){const d=i[n].offsetHeight;l=d>l?d:l}(l||l===0)&&(e.wrapperEl.style.height=`${l}px`)}function Qn(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let o=0;o<e.length;o+=1)e[o].swiperSlideOffset=(t.isHorizontal()?e[o].offsetLeft:e[o].offsetTop)-i-t.cssOverflowAdjustment()}const wo=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function $n(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:l,snapGrid:n}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;l&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let d=i.spaceBetween;typeof d=="string"&&d.indexOf("%")>=0?d=parseFloat(d.replace("%",""))/100*e.size:typeof d=="string"&&(d=parseFloat(d));for(let r=0;r<o.length;r+=1){const v=o[r];let s=v.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(s-=o[0].swiperSlideOffset);const f=(a+(i.centeredSlides?e.minTranslate():0)-s)/(v.swiperSlideSize+d),h=(a-n[0]+(i.centeredSlides?e.minTranslate():0)-s)/(v.swiperSlideSize+d),m=-(a-s),S=m+e.slidesSizesGrid[r],A=m>=0&&m<=e.size-e.slidesSizesGrid[r],E=m>=0&&m<e.size-1||S>1&&S<=e.size||m<=0&&S>=e.size;E&&(e.visibleSlides.push(v),e.visibleSlidesIndexes.push(r)),wo(v,E,i.slideVisibleClass),wo(v,A,i.slideFullyVisibleClass),v.progress=l?-f:f,v.originalProgress=l?-h:h}}function el(t){const e=this;if(typeof t>"u"){const s=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*s||0}const i=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:l,isBeginning:n,isEnd:a,progressLoop:d}=e;const r=n,v=a;if(o===0)l=0,n=!0,a=!0;else{l=(t-e.minTranslate())/o;const s=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;n=s||l<=0,a=f||l>=1,s&&(l=0),f&&(l=1)}if(i.loop){const s=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[s],m=e.slidesGrid[f],S=e.slidesGrid[e.slidesGrid.length-1],A=Math.abs(t);A>=h?d=(A-h)/S:d=(A+S-m)/S,d>1&&(d-=1)}Object.assign(e,{progress:l,progressLoop:d,isBeginning:n,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),n&&!r&&e.emit("reachBeginning toEdge"),a&&!v&&e.emit("reachEnd toEdge"),(r&&!n||v&&!a)&&e.emit("fromEdge"),e.emit("progress",l)}const ki=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function tl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:l}=t,n=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,d=f=>Ct(o,`.${i.slideClass}${f}, swiper-slide${f}`)[0];let r,v,s;if(n)if(i.loop){let f=l-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),r=d(`[data-swiper-slide-index="${f}"]`)}else r=d(`[data-swiper-slide-index="${l}"]`);else a?(r=e.filter(f=>f.column===l)[0],s=e.filter(f=>f.column===l+1)[0],v=e.filter(f=>f.column===l-1)[0]):r=e[l];r&&(a||(s=Fn(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!s&&(s=e[0]),v=Nn(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!v===0&&(v=e[e.length-1]))),e.forEach(f=>{ki(f,f===r,i.slideActiveClass),ki(f,f===s,i.slideNextClass),ki(f,f===v,i.slidePrevClass)}),t.emitSlidesClasses()}const ci=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,o=e.closest(i());if(o){let l=o.querySelector(`.${t.params.lazyPreloaderClass}`);!l&&t.isElement&&(o.shadowRoot?l=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(l=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),l&&l.remove())})),l&&l.remove()}},_i=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Pi=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 o=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),l=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=l,d=[a-e];d.push(...Array.from({length:e}).map((r,v)=>a+o+v)),t.slides.forEach((r,v)=>{d.includes(r.column)&&_i(t,v)});return}const n=l+o-1;if(t.params.rewind||t.params.loop)for(let a=l-e;a<=n+e;a+=1){const d=(a%i+i)%i;(d<l||d>n)&&_i(t,d)}else for(let a=Math.max(l-e,0);a<=Math.min(n+e,i-1);a+=1)a!==l&&(a>n||a<l)&&_i(t,a)};function il(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let l;for(let n=0;n<e.length;n+=1)typeof e[n+1]<"u"?o>=e[n]&&o<e[n+1]-(e[n+1]-e[n])/2?l=n:o>=e[n]&&o<e[n+1]&&(l=n+1):o>=e[n]&&(l=n);return i.normalizeSlideIndex&&(l<0||typeof l>"u")&&(l=0),l}function ol(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:l,activeIndex:n,realIndex:a,snapIndex:d}=e;let r=t,v;const s=m=>{let S=m-e.virtual.slidesBefore;return S<0&&(S=e.virtual.slides.length+S),S>=e.virtual.slides.length&&(S-=e.virtual.slides.length),S};if(typeof r>"u"&&(r=il(e)),o.indexOf(i)>=0)v=o.indexOf(i);else{const m=Math.min(l.slidesPerGroupSkip,r);v=m+Math.floor((r-m)/l.slidesPerGroup)}if(v>=o.length&&(v=o.length-1),r===n&&!e.params.loop){v!==d&&(e.snapIndex=v,e.emit("snapIndexChange"));return}if(r===n&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=s(r);return}const f=e.grid&&l.grid&&l.grid.rows>1;let h;if(e.virtual&&l.virtual.enabled&&l.loop)h=s(r);else if(f){const m=e.slides.filter(A=>A.column===r)[0];let S=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(S)&&(S=Math.max(e.slides.indexOf(m),0)),h=Math.floor(S/l.grid.rows)}else if(e.slides[r]){const m=e.slides[r].getAttribute("data-swiper-slide-index");m?h=parseInt(m,10):h=r}else h=r;Object.assign(e,{previousSnapIndex:d,snapIndex:v,previousRealIndex:a,realIndex:h,previousIndex:n,activeIndex:r}),e.initialized&&Pi(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function nl(t,e){const i=this,o=i.params;let l=t.closest(`.${o.slideClass}, swiper-slide`);!l&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!l&&d.matches&&d.matches(`.${o.slideClass}, swiper-slide`)&&(l=d)});let n=!1,a;if(l){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===l){n=!0,a=d;break}}if(l&&n)i.clickedSlide=l,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(l.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var ll={updateSize:qn,updateSlides:Kn,updateAutoHeight:Zn,updateSlidesOffset:Qn,updateSlidesProgress:$n,updateProgress:el,updateSlidesClasses:tl,updateActiveIndex:ol,updateClickedSlide:nl};function al(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:l,wrapperEl:n}=e;if(i.virtualTranslate)return o?-l:l;if(i.cssMode)return l;let a=Ln(n,t);return a+=e.cssOverflowAdjustment(),o&&(a=-a),a||0}function dl(t,e){const i=this,{rtlTranslate:o,params:l,wrapperEl:n,progress:a}=i;let d=0,r=0;const v=0;i.isHorizontal()?d=o?-t:t:r=t,l.roundLengths&&(d=Math.floor(d),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:r,l.cssMode?n[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-r:l.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),n.style.transform=`translate3d(${d}px, ${r}px, ${v}px)`);let s;const f=i.maxTranslate()-i.minTranslate();f===0?s=0:s=(t-i.minTranslate())/f,s!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function rl(){return-this.snapGrid[0]}function sl(){return-this.snapGrid[this.snapGrid.length-1]}function cl(t,e,i,o,l){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),o===void 0&&(o=!0);const n=this,{params:a,wrapperEl:d}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const r=n.minTranslate(),v=n.maxTranslate();let s;if(o&&t>r?s=r:o&&t<v?s=v:s=t,n.updateProgress(s),a.cssMode){const f=n.isHorizontal();if(e===0)d[f?"scrollLeft":"scrollTop"]=-s;else{if(!n.support.smoothScroll)return fo({swiper:n,targetPosition:-s,side:f?"left":"top"}),!0;d.scrollTo({[f?"left":"top"]:-s,behavior:"smooth"})}return!0}return e===0?(n.setTransition(0),n.setTranslate(s),i&&(n.emit("beforeTransitionStart",e,l),n.emit("transitionEnd"))):(n.setTransition(e),n.setTranslate(s),i&&(n.emit("beforeTransitionStart",e,l),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(h){!n||n.destroyed||h.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,n.animating=!1,i&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}var ul={getTranslate:al,setTranslate:dl,minTranslate:rl,maxTranslate:sl,translateTo:cl};function vl(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 So(t){let{swiper:e,runCallbacks:i,direction:o,step:l}=t;const{activeIndex:n,previousIndex:a}=e;let d=o;if(d||(n>a?d="next":n<a?d="prev":d="reset"),e.emit(`transition${l}`),i&&n!==a){if(d==="reset"){e.emit(`slideResetTransition${l}`);return}e.emit(`slideChangeTransition${l}`),d==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`)}}function pl(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),So({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function ml(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),So({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var fl={setTransition:vl,transitionStart:pl,transitionEnd:ml};function hl(t,e,i,o,l){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;let a=t;a<0&&(a=0);const{params:d,snapGrid:r,slidesGrid:v,previousIndex:s,activeIndex:f,rtlTranslate:h,wrapperEl:m,enabled:S}=n;if(!S&&!o&&!l||n.destroyed||n.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=n.params.speed);const A=Math.min(n.params.slidesPerGroupSkip,a);let E=A+Math.floor((a-A)/n.params.slidesPerGroup);E>=r.length&&(E=r.length-1);const u=-r[E];if(d.normalizeSlideIndex)for(let b=0;b<v.length;b+=1){const T=-Math.floor(u*100),D=Math.floor(v[b]*100),g=Math.floor(v[b+1]*100);typeof v[b+1]<"u"?T>=D&&T<g-(g-D)/2?a=b:T>=D&&T<g&&(a=b+1):T>=D&&(a=b)}if(n.initialized&&a!==f&&(!n.allowSlideNext&&(h?u>n.translate&&u>n.minTranslate():u<n.translate&&u<n.minTranslate())||!n.allowSlidePrev&&u>n.translate&&u>n.maxTranslate()&&(f||0)!==a))return!1;a!==(s||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(u);let w;if(a>f?w="next":a<f?w="prev":w="reset",h&&-u===n.translate||!h&&u===n.translate)return n.updateActiveIndex(a),d.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),d.effect!=="slide"&&n.setTranslate(u),w!=="reset"&&(n.transitionStart(i,w),n.transitionEnd(i,w)),!1;if(d.cssMode){const b=n.isHorizontal(),T=h?u:-u;if(e===0){const D=n.virtual&&n.params.virtual.enabled;D&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),D&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[b?"scrollLeft":"scrollTop"]=T})):m[b?"scrollLeft":"scrollTop"]=T,D&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return fo({swiper:n,targetPosition:T,side:b?"left":"top"}),!0;m.scrollTo({[b?"left":"top"]:T,behavior:"smooth"})}return!0}return n.setTransition(e),n.setTranslate(u),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,o),n.transitionStart(i,w),e===0?n.transitionEnd(i,w):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(T){!n||n.destroyed||T.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,w))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function gl(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;if(l.destroyed)return;typeof e>"u"&&(e=l.params.speed);const n=l.grid&&l.params.grid&&l.params.grid.rows>1;let a=t;if(l.params.loop)if(l.virtual&&l.params.virtual.enabled)a=a+l.virtual.slidesBefore;else{let d;if(n){const h=a*l.params.grid.rows;d=l.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===h)[0].column}else d=l.getSlideIndexByData(a);const r=n?Math.ceil(l.slides.length/l.params.grid.rows):l.slides.length,{centeredSlides:v}=l.params;let s=l.params.slidesPerView;s==="auto"?s=l.slidesPerViewDynamic():(s=Math.ceil(parseFloat(l.params.slidesPerView,10)),v&&s%2===0&&(s=s+1));let f=r-d<s;if(v&&(f=f||d<Math.ceil(s/2)),o&&v&&l.params.slidesPerView!=="auto"&&!n&&(f=!1),f){const h=v?d<l.activeIndex?"prev":"next":d-l.activeIndex-1<l.params.slidesPerView?"next":"prev";l.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?d+1:d-r+1,slideRealIndex:h==="next"?l.realIndex:void 0})}if(n){const h=a*l.params.grid.rows;a=l.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===h)[0].column}else a=l.getSlideIndexByData(a)}return requestAnimationFrame(()=>{l.slideTo(a,e,i,o)}),l}function bl(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:l,params:n,animating:a}=o;if(!l||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let d=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(d=Math.max(o.slidesPerViewDynamic("current",!0),1));const r=o.activeIndex<n.slidesPerGroupSkip?1:d,v=o.virtual&&n.virtual.enabled;if(n.loop){if(a&&!v&&n.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&n.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+r,t,e,i)}),!0}return n.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+r,t,e,i)}function yl(t,e,i){e===void 0&&(e=!0);const o=this,{params:l,snapGrid:n,slidesGrid:a,rtlTranslate:d,enabled:r,animating:v}=o;if(!r||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const s=o.virtual&&l.virtual.enabled;if(l.loop){if(v&&!s&&l.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const f=d?o.translate:-o.translate;function h(u){return u<0?-Math.floor(Math.abs(u)):Math.floor(u)}const m=h(f),S=n.map(u=>h(u));let A=n[S.indexOf(m)-1];if(typeof A>"u"&&l.cssMode){let u;n.forEach((w,b)=>{m>=w&&(u=b)}),typeof u<"u"&&(A=n[u>0?u-1:u])}let E=0;if(typeof A<"u"&&(E=a.indexOf(A),E<0&&(E=o.activeIndex-1),l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(E=E-o.slidesPerViewDynamic("previous",!0)+1,E=Math.max(E,0))),l.rewind&&o.isBeginning){const u=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(u,t,e,i)}else if(l.loop&&o.activeIndex===0&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(E,t,e,i)}),!0;return o.slideTo(E,t,e,i)}function wl(t,e,i){e===void 0&&(e=!0);const o=this;if(!o.destroyed)return typeof t>"u"&&(t=o.params.speed),o.slideTo(o.activeIndex,t,e,i)}function Sl(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const l=this;if(l.destroyed)return;typeof t>"u"&&(t=l.params.speed);let n=l.activeIndex;const a=Math.min(l.params.slidesPerGroupSkip,n),d=a+Math.floor((n-a)/l.params.slidesPerGroup),r=l.rtlTranslate?l.translate:-l.translate;if(r>=l.snapGrid[d]){const v=l.snapGrid[d],s=l.snapGrid[d+1];r-v>(s-v)*o&&(n+=l.params.slidesPerGroup)}else{const v=l.snapGrid[d-1],s=l.snapGrid[d];r-v<=(s-v)*o&&(n-=l.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,l.slidesGrid.length-1),l.slideTo(n,t,e,i)}function xl(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let l=t.clickedIndex,n;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;n=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?l<t.loopedSlides-o/2||l>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),l=t.getSlideIndex(Ct(i,`${a}[data-swiper-slide-index="${n}"]`)[0]),jt(()=>{t.slideTo(l)})):t.slideTo(l):l>t.slides.length-o?(t.loopFix(),l=t.getSlideIndex(Ct(i,`${a}[data-swiper-slide-index="${n}"]`)[0]),jt(()=>{t.slideTo(l)})):t.slideTo(l)}else t.slideTo(l)}var Tl={slideTo:hl,slideToLoop:gl,slideNext:bl,slidePrev:yl,slideReset:wl,slideToClosest:Sl,slideToClickedSlide:xl};function Al(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const l=()=>{Ct(o,`.${i.slideClass}, swiper-slide`).forEach((f,h)=>{f.setAttribute("data-swiper-slide-index",h)})},n=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(n?i.grid.rows:1),d=e.slides.length%a!==0,r=n&&e.slides.length%i.grid.rows!==0,v=s=>{for(let f=0;f<s;f+=1){const h=e.isElement?Jt("swiper-slide",[i.slideBlankClass]):Jt("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(d){if(i.loopAddBlankSlides){const s=a-e.slides.length%a;v(s),e.recalcSlides(),e.updateSlides()}else ai("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)");l()}else if(r){if(i.loopAddBlankSlides){const s=i.grid.rows-e.slides.length%i.grid.rows;v(s),e.recalcSlides(),e.updateSlides()}else ai("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)");l()}else l();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function El(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:l,activeSlideIndex:n,byController:a,byMousewheel:d}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:v,allowSlidePrev:s,allowSlideNext:f,slidesEl:h,params:m}=r,{centeredSlides:S}=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=s,r.allowSlideNext=f,r.emit("loopFix");return}let A=m.slidesPerView;A==="auto"?A=r.slidesPerViewDynamic():(A=Math.ceil(parseFloat(m.slidesPerView,10)),S&&A%2===0&&(A=A+1));const E=m.slidesPerGroupAuto?A:m.slidesPerGroup;let u=E;u%E!==0&&(u+=E-u%E),u+=m.loopAdditionalSlides,r.loopedSlides=u;const w=r.grid&&m.grid&&m.grid.rows>1;v.length<A+u?ai("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"):w&&m.grid.fill==="row"&&ai("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],T=[];let D=r.activeIndex;typeof n>"u"?n=r.getSlideIndex(v.filter(I=>I.classList.contains(m.slideActiveClass))[0]):D=n;const g=o==="next"||!o,O=o==="prev"||!o;let P=0,x=0;const c=w?Math.ceil(v.length/m.grid.rows):v.length,y=(w?v[n].column:n)+(S&&typeof l>"u"?-A/2+.5:0);if(y<u){P=Math.max(u-y,E);for(let I=0;I<u-y;I+=1){const C=I-Math.floor(I/c)*c;if(w){const R=c-C-1;for(let F=v.length-1;F>=0;F-=1)v[F].column===R&&b.push(F)}else b.push(c-C-1)}}else if(y+A>c-u){x=Math.max(y-(c-u*2),E);for(let I=0;I<x;I+=1){const C=I-Math.floor(I/c)*c;w?v.forEach((R,F)=>{R.column===C&&T.push(F)}):T.push(C)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),O&&b.forEach(I=>{v[I].swiperLoopMoveDOM=!0,h.prepend(v[I]),v[I].swiperLoopMoveDOM=!1}),g&&T.forEach(I=>{v[I].swiperLoopMoveDOM=!0,h.append(v[I]),v[I].swiperLoopMoveDOM=!1}),r.recalcSlides(),m.slidesPerView==="auto"?r.updateSlides():w&&(b.length>0&&O||T.length>0&&g)&&r.slides.forEach((I,C)=>{r.grid.updateSlide(C,I,r.slides)}),m.watchSlidesProgress&&r.updateSlidesOffset(),i){if(b.length>0&&O){if(typeof e>"u"){const I=r.slidesGrid[D],R=r.slidesGrid[D+P]-I;d?r.setTranslate(r.translate-R):(r.slideTo(D+Math.ceil(P),0,!1,!0),l&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-R,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-R))}else if(l){const I=w?b.length/m.grid.rows:b.length;r.slideTo(r.activeIndex+I,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(T.length>0&&g)if(typeof e>"u"){const I=r.slidesGrid[D],R=r.slidesGrid[D-x]-I;d?r.setTranslate(r.translate-R):(r.slideTo(D-x,0,!1,!0),l&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-R,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-R))}else{const I=w?T.length/m.grid.rows:T.length;r.slideTo(r.activeIndex-I,0,!1,!0)}}if(r.allowSlidePrev=s,r.allowSlideNext=f,r.controller&&r.controller.control&&!a){const I={slideRealIndex:e,direction:o,setTranslate:l,activeSlideIndex:n,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(C=>{!C.destroyed&&C.params.loop&&C.loopFix({...I,slideTo:C.params.slidesPerView===m.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...I,slideTo:r.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}r.emit("loopFix")}function Il(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const o=[];t.slides.forEach(l=>{const n=typeof l.swiperSlideIndex>"u"?l.getAttribute("data-swiper-slide-index")*1:l.swiperSlideIndex;o[n]=l}),t.slides.forEach(l=>{l.removeAttribute("data-swiper-slide-index")}),o.forEach(l=>{i.append(l)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Cl={loopCreate:Al,loopFix:El,loopDestroy:Il};function kl(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 _l(){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 Pl={setGrabCursor:kl,unsetGrabCursor:_l};function Dl(t,e){e===void 0&&(e=this);function i(o){if(!o||o===Et()||o===rt())return null;o.assignedSlot&&(o=o.assignedSlot);const l=o.closest(t);return!l&&!o.getRootNode?null:l||i(o.getRootNode().host)}return i(e)}function xo(t,e,i){const o=rt(),{params:l}=t,n=l.edgeSwipeDetection,a=l.edgeSwipeThreshold;return n&&(i<=a||i>=o.innerWidth-a)?n==="prevent"?(e.preventDefault(),!0):!1:!0}function Ol(t){const e=this,i=Et();let o=t;o.originalEvent&&(o=o.originalEvent);const l=e.touchEventsData;if(o.type==="pointerdown"){if(l.pointerId!==null&&l.pointerId!==o.pointerId)return;l.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(l.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){xo(e,o,o.targetTouches[0].pageX);return}const{params:n,touches:a,enabled:d}=e;if(!d||!n.simulateTouch&&o.pointerType==="mouse"||e.animating&&n.preventInteractionOnTransition)return;!e.animating&&n.cssMode&&n.loop&&e.loopFix();let r=o.target;if(n.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in o&&o.which===3||"button"in o&&o.button>0||l.isTouched&&l.isMoved)return;const v=!!n.noSwipingClass&&n.noSwipingClass!=="",s=o.composedPath?o.composedPath():o.path;v&&o.target&&o.target.shadowRoot&&s&&(r=s[0]);const f=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,h=!!(o.target&&o.target.shadowRoot);if(n.noSwiping&&(h?Dl(f,r):r.closest(f))){e.allowClick=!0;return}if(n.swipeHandler&&!r.closest(n.swipeHandler))return;a.currentX=o.pageX,a.currentY=o.pageY;const m=a.currentX,S=a.currentY;if(!xo(e,o,m))return;Object.assign(l,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=S,l.touchStartTime=bt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(l.allowThresholdMove=!1);let A=!0;r.matches(l.focusableElements)&&(A=!1,r.nodeName==="SELECT"&&(l.isTouched=!1)),i.activeElement&&i.activeElement.matches(l.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const E=A&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||E)&&!r.isContentEditable&&o.preventDefault(),n.freeMode&&n.freeMode.enabled&&e.freeMode&&e.animating&&!n.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function Ml(t){const e=Et(),i=this,o=i.touchEventsData,{params:l,touches:n,rtlTranslate:a,enabled:d}=i;if(!d||!l.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(o.touchId!==null||r.pointerId!==o.pointerId))return;let v;if(r.type==="touchmove"){if(v=[...r.changedTouches].filter(g=>g.identifier===o.touchId)[0],!v||v.identifier!==o.touchId)return}else v=r;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",r);return}const s=v.pageX,f=v.pageY;if(r.preventedByNestedSwiper){n.startX=s,n.startY=f;return}if(!i.allowTouchMove){r.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(n,{startX:s,startY:f,currentX:s,currentY:f}),o.touchStartTime=bt());return}if(l.touchReleaseOnEdges&&!l.loop){if(i.isVertical()){if(f<n.startY&&i.translate<=i.maxTranslate()||f>n.startY&&i.translate>=i.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(s<n.startX&&i.translate<=i.maxTranslate()||s>n.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",r),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=s,n.currentY=f;const h=n.currentX-n.startX,m=n.currentY-n.startY;if(i.params.threshold&&Math.sqrt(h**2+m**2)<i.params.threshold)return;if(typeof o.isScrolling>"u"){let g;i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?o.isScrolling=!1:h*h+m*m>=25&&(g=Math.atan2(Math.abs(m),Math.abs(h))*180/Math.PI,o.isScrolling=i.isHorizontal()?g>l.touchAngle:90-g>l.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",r),typeof o.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(o.startMoving=!0),o.isScrolling||r.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!l.cssMode&&r.cancelable&&r.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&r.stopPropagation();let S=i.isHorizontal()?h:m,A=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;l.oneWayMovement&&(S=Math.abs(S)*(a?1:-1),A=Math.abs(A)*(a?1:-1)),n.diff=S,S*=l.touchRatio,a&&(S=-S,A=-A);const E=i.touchesDirection;i.swipeDirection=S>0?"prev":"next",i.touchesDirection=A>0?"prev":"next";const u=i.params.loop&&!l.cssMode,w=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!o.isMoved){if(u&&w&&i.loopFix({direction:i.swipeDirection}),o.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const g=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(g)}o.allowMomentumBounce=!1,l.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let b;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&E!==i.touchesDirection&&u&&w&&Math.abs(S)>=1){Object.assign(n,{startX:s,startY:f,currentX:s,currentY:f,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",r),o.isMoved=!0,o.currentTranslate=S+o.startTranslate;let T=!0,D=l.resistanceRatio;if(l.touchReleaseOnEdges&&(D=0),S>0?(u&&w&&!b&&o.allowThresholdMove&&o.currentTranslate>(l.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(T=!1,l.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+S)**D))):S<0&&(u&&w&&!b&&o.allowThresholdMove&&o.currentTranslate<(l.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(l.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(T=!1,l.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-S)**D))),T&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(o.currentTranslate=o.startTranslate),l.threshold>0)if(Math.abs(S)>l.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,o.currentTranslate=o.startTranslate,n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{o.currentTranslate=o.startTranslate;return}!l.followFinger||l.cssMode||((l.freeMode&&l.freeMode.enabled&&i.freeMode||l.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function Ll(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let l;if(o.type==="touchend"||o.type==="touchcancel"){if(l=[...o.changedTouches].filter(D=>D.identifier===i.touchId)[0],!l||l.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;l=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:d,rtlTranslate:r,slidesGrid:v,enabled:s}=e;if(!s||!a.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=bt(),h=f-i.touchStartTime;if(e.allowClick){const D=o.path||o.composedPath&&o.composedPath();e.updateClickedSlide(D&&D[0]||o.target,D),e.emit("tap click",o),h<300&&f-i.lastClickTime<300&&e.emit("doubleTap doubleClick",o)}if(i.lastClickTime=bt(),jt(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||d.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let m;if(a.followFinger?m=r?e.translate:-e.translate:m=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const S=m>=-e.maxTranslate()&&!e.params.loop;let A=0,E=e.slidesSizesGrid[0];for(let D=0;D<v.length;D+=D<a.slidesPerGroupSkip?1:a.slidesPerGroup){const g=D<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof v[D+g]<"u"?(S||m>=v[D]&&m<v[D+g])&&(A=D,E=v[D+g]-v[D]):(S||m>=v[D])&&(A=D,E=v[v.length-1]-v[v.length-2])}let u=null,w=null;a.rewind&&(e.isBeginning?w=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(u=0));const b=(m-v[A])/E,T=A<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(h>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?u:A+T):e.slideTo(A)),e.swipeDirection==="prev"&&(b>1-a.longSwipesRatio?e.slideTo(A+T):w!==null&&b<0&&Math.abs(b)>a.longSwipesRatio?e.slideTo(w):e.slideTo(A))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(o.target===e.navigation.nextEl||o.target===e.navigation.prevEl)?o.target===e.navigation.nextEl?e.slideTo(A+T):e.slideTo(A):(e.swipeDirection==="next"&&e.slideTo(u!==null?u:A+T),e.swipeDirection==="prev"&&e.slideTo(w!==null?w:A))}}function To(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:l,snapGrid:n}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const d=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!d?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=l,t.allowSlideNext=o,t.params.watchOverflow&&n!==t.snapGrid&&t.checkOverflow()}function Rl(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Bl(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:o}=t;if(!o)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 l;const n=t.maxTranslate()-t.minTranslate();n===0?l=0:l=(t.translate-t.minTranslate())/n,l!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Nl(t){const e=this;ci(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Fl(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Ao=(t,e)=>{const i=Et(),{params:o,el:l,wrapperEl:n,device:a}=t,d=!!o.nested,r=e==="on"?"addEventListener":"removeEventListener",v=e;!l||typeof l=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),l[r]("touchstart",t.onTouchStart,{passive:!1}),l[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:d}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:d}),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}),(o.preventClicks||o.preventClicksPropagation)&&l[r]("click",t.onClick,!0),o.cssMode&&n[r]("scroll",t.onScroll),o.updateOnWindowResize?t[v](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",To,!0):t[v]("observerUpdate",To,!0),l[r]("load",t.onLoad,{capture:!0}))};function jl(){const t=this,{params:e}=t;t.onTouchStart=Ol.bind(t),t.onTouchMove=Ml.bind(t),t.onTouchEnd=Ll.bind(t),t.onDocumentTouchStart=Fl.bind(t),e.cssMode&&(t.onScroll=Bl.bind(t)),t.onClick=Rl.bind(t),t.onLoad=Nl.bind(t),Ao(t,"on")}function Vl(){Ao(this,"off")}var zl={attachEvents:jl,detachEvents:Vl};const Eo=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Hl(){const t=this,{realIndex:e,initialized:i,params:o,el:l}=t,n=o.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const a=t.getBreakpoint(n,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const r=(a in n?n[a]:void 0)||t.originalParams,v=Eo(t,o),s=Eo(t,r),f=t.params.grabCursor,h=r.grabCursor,m=o.enabled;v&&!s?(l.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!v&&s&&(l.classList.add(`${o.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&o.grid.fill==="column")&&l.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),f&&!h?t.unsetGrabCursor():!f&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(b=>{if(typeof r[b]>"u")return;const T=o[b]&&o[b].enabled,D=r[b]&&r[b].enabled;T&&!D&&t[b].disable(),!T&&D&&t[b].enable()});const S=r.direction&&r.direction!==o.direction,A=o.loop&&(r.slidesPerView!==o.slidesPerView||S),E=o.loop;S&&i&&t.changeDirection(),vt(t.params,r);const u=t.params.enabled,w=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!u?t.disable():!m&&u&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",r),i&&(A?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!E&&w?(t.loopCreate(e),t.updateSlides()):E&&!w&&t.loopDestroy()),t.emit("breakpoint",r)}function Gl(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const l=rt(),n=e==="window"?l.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const r=parseFloat(d.substr(1));return{value:n*r,point:d}}return{value:d,point:d}});a.sort((d,r)=>parseInt(d.value,10)-parseInt(r.value,10));for(let d=0;d<a.length;d+=1){const{point:r,value:v}=a[d];e==="window"?l.matchMedia(`(min-width: ${v}px)`).matches&&(o=r):v<=i.clientWidth&&(o=r)}return o||"max"}var Ul={setBreakpoint:Hl,getBreakpoint:Gl};function Wl(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(l=>{o[l]&&i.push(e+l)}):typeof o=="string"&&i.push(e+o)}),i}function Yl(){const t=this,{classNames:e,params:i,rtl:o,el:l,device:n}=t,a=Wl(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:o},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),l.classList.add(...e),t.emitContainerClasses()}function Xl(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Jl={addClasses:Yl,removeClasses:Xl};function ql(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const l=t.slides.length-1,n=t.slidesGrid[l]+t.slidesSizesGrid[l]+o*2;t.isLocked=t.size>n}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Kl={checkOverflow:ql},Di={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 Zl(t,e){return function(o){o===void 0&&(o={});const l=Object.keys(o)[0],n=o[l];if(typeof n!="object"||n===null){vt(e,o);return}if(t[l]===!0&&(t[l]={enabled:!0}),l==="navigation"&&t[l]&&t[l].enabled&&!t[l].prevEl&&!t[l].nextEl&&(t[l].auto=!0),["pagination","scrollbar"].indexOf(l)>=0&&t[l]&&t[l].enabled&&!t[l].el&&(t[l].auto=!0),!(l in t&&"enabled"in n)){vt(e,o);return}typeof t[l]=="object"&&!("enabled"in t[l])&&(t[l].enabled=!0),t[l]||(t[l]={enabled:!1}),vt(e,o)}}const Oi={eventsEmitter:Jn,update:ll,translate:ul,transition:fl,slide:Tl,loop:Cl,grabCursor:Pl,events:zl,breakpoints:Ul,checkOverflow:Kl,classes:Jl},Mi={};let Li=class Lt{constructor(){let e,i;for(var o=arguments.length,l=new Array(o),n=0;n<o;n++)l[n]=arguments[n];l.length===1&&l[0].constructor&&Object.prototype.toString.call(l[0]).slice(8,-1)==="Object"?i=l[0]:[e,i]=l,i||(i={}),i=vt({},i),e&&!i.el&&(i.el=e);const a=Et();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const s=[];return a.querySelectorAll(i.el).forEach(f=>{const h=vt({},i,{el:f});s.push(new Lt(h))}),s}const d=this;d.__swiper__=!0,d.support=bo(),d.device=yo({userAgent:i.userAgent}),d.browser=Wn(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],i.modules&&Array.isArray(i.modules)&&d.modules.push(...i.modules);const r={};d.modules.forEach(s=>{s({params:i,swiper:d,extendParams:Zl(i,r),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const v=vt({},Di,r);return d.params=vt({},v,Mi,i),d.originalParams=vt({},d.params),d.passedParams=vt({},i),d.params&&d.params.on&&Object.keys(d.params.on).forEach(s=>{d.on(s,d.params.on[s])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return d.params.direction==="horizontal"},isVertical(){return d.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:d.params.allowSlideNext,allowSlidePrev:d.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:o}=this,l=Ct(i,`.${o.slideClass}, swiper-slide`),n=di(l[0]);return di(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:o}=e;e.slides=Ct(i,`.${o.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 o=this;e=Math.min(Math.max(e,0),1);const l=o.minTranslate(),a=(o.maxTranslate()-l)*e+l;o.translateTo(a,typeof i>"u"?0:i),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(o=>{const l=e.getSlideClasses(o);i.push({slideEl:o,classNames:l}),e.emit("_slideClass",o,l)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:l,slides:n,slidesGrid:a,slidesSizesGrid:d,size:r,activeIndex:v}=o;let s=1;if(typeof l.slidesPerView=="number")return l.slidesPerView;if(l.centeredSlides){let f=n[v]?Math.ceil(n[v].swiperSlideSize):0,h;for(let m=v+1;m<n.length;m+=1)n[m]&&!h&&(f+=Math.ceil(n[m].swiperSlideSize),s+=1,f>r&&(h=!0));for(let m=v-1;m>=0;m-=1)n[m]&&!h&&(f+=n[m].swiperSlideSize,s+=1,f>r&&(h=!0))}else if(e==="current")for(let f=v+1;f<n.length;f+=1)(i?a[f]+d[f]-a[v]<r:a[f]-a[v]<r)&&(s+=1);else for(let f=v-1;f>=0;f-=1)a[v]-a[f]<r&&(s+=1);return s}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:o}=e;o.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&ci(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function l(){const a=e.rtlTranslate?e.translate*-1:e.translate,d=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(d),e.updateActiveIndex(),e.updateSlidesClasses()}let n;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)l(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const a=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(a.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||l()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,l=o.params.direction;return e||(e=l==="horizontal"?"vertical":"horizontal"),e===l||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${l}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(n=>{e==="vertical"?n.style.width="":n.style.height=""}),o.emit("changeDirection"),i&&o.update()),o}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 o=e||i.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=i,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const l=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(l()):Ct(o,l())[0];return!a&&i.params.createElements&&(a=Jt("div",i.params.wrapperClass),o.append(a),Ct(o,`.${i.params.slideClass}`).forEach(d=>{a.append(d)})),Object.assign(i,{el:o,wrapperEl:a,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:a,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||Bt(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||Bt(o,"direction")==="rtl"),wrongRTL:Bt(a,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const l=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&l.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),l.forEach(n=>{n.complete?ci(i,n):n.addEventListener("load",a=>{ci(i,a.target)})}),Pi(i),i.initialized=!0,Pi(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const o=this,{params:l,el:n,wrapperEl:a,slides:d}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),l.loop&&o.loopDestroy(),i&&(o.removeClasses(),n&&typeof n!="string"&&n.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(r=>{r.classList.remove(l.slideVisibleClass,l.slideFullyVisibleClass,l.slideActiveClass,l.slideNextClass,l.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(r=>{o.off(r)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),On(o)),o.destroyed=!0),null}static extendDefaults(e){vt(Mi,e)}static get extendedDefaults(){return Mi}static get defaults(){return Di}static installModule(e){Lt.prototype.__modules__||(Lt.prototype.__modules__=[]);const i=Lt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Lt.installModule(i)),Lt):(Lt.installModule(e),Lt)}};Object.keys(Oi).forEach(t=>{Object.keys(Oi[t]).forEach(e=>{Li.prototype[e]=Oi[t][e]})}),Li.use([Yn,Xn]);const Io=["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 Nt(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function zt(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>i.indexOf(o)<0).forEach(o=>{typeof t[o]>"u"?t[o]=e[o]:Nt(e[o])&&Nt(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:zt(t[o],e[o]):t[o]=e[o]})}function Co(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function ko(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function _o(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Po(t){t===void 0&&(t="");const e=t.split(" ").map(o=>o.trim()).filter(o=>!!o),i=[];return e.forEach(o=>{i.indexOf(o)<0&&i.push(o)}),i.join(" ")}function Ql(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function $l(t){let{swiper:e,slides:i,passedParams:o,changedParams:l,nextEl:n,prevEl:a,scrollbarEl:d,paginationEl:r}=t;const v=l.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:s,pagination:f,navigation:h,scrollbar:m,virtual:S,thumbs:A}=e;let E,u,w,b,T,D,g,O;l.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&s.thumbs&&!s.thumbs.swiper&&(E=!0),l.includes("controller")&&o.controller&&o.controller.control&&s.controller&&!s.controller.control&&(u=!0),l.includes("pagination")&&o.pagination&&(o.pagination.el||r)&&(s.pagination||s.pagination===!1)&&f&&!f.el&&(w=!0),l.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||d)&&(s.scrollbar||s.scrollbar===!1)&&m&&!m.el&&(b=!0),l.includes("navigation")&&o.navigation&&(o.navigation.prevEl||a)&&(o.navigation.nextEl||n)&&(s.navigation||s.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(T=!0);const P=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),s[x].prevEl=void 0,s[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),s[x].el=void 0,e[x].el=void 0))};l.includes("loop")&&e.isElement&&(s.loop&&!o.loop?D=!0:!s.loop&&o.loop?g=!0:O=!0),v.forEach(x=>{if(Nt(s[x])&&Nt(o[x]))Object.assign(s[x],o[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in o[x]&&!o[x].enabled&&P(x);else{const c=o[x];(c===!0||c===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?c===!1&&P(x):s[x]=o[x]}}),v.includes("controller")&&!u&&e.controller&&e.controller.control&&s.controller&&s.controller.control&&(e.controller.control=s.controller.control),l.includes("children")&&i&&S&&s.virtual.enabled?(S.slides=i,S.update(!0)):l.includes("virtual")&&S&&s.virtual.enabled&&(i&&(S.slides=i),S.update(!0)),l.includes("children")&&i&&s.loop&&(O=!0),E&&A.init()&&A.update(!0),u&&(e.controller.control=s.controller.control),w&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(s.pagination.el=r),f.init(),f.render(),f.update()),b&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),e.el.appendChild(d)),d&&(s.scrollbar.el=d),m.init(),m.updateSize(),m.setTranslate()),T&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),n.innerHTML=e.hostEl.constructor.nextButtonSvg,n.part.add("button-next"),e.el.appendChild(n)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),n&&(s.navigation.nextEl=n),a&&(s.navigation.prevEl=a),h.init(),h.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),l.includes("direction")&&e.changeDirection(o.direction,!1),(D||O)&&e.loopDestroy(),(g||O)&&e.loopCreate(),e.update()}function ea(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},l={};zt(i,Di),i._emitClasses=!0,i.init=!1;const n={},a=Io.map(r=>r.replace(/_/,"")),d=Object.assign({},t);return Object.keys(d).forEach(r=>{typeof t[r]>"u"||(a.indexOf(r)>=0?Nt(t[r])?(i[r]={},l[r]={},zt(i[r],t[r]),zt(l[r],t[r])):(i[r]=t[r],l[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?o[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:n[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:l,rest:n,events:o}}function ta(t,e){let{el:i,nextEl:o,prevEl:l,paginationEl:n,scrollbarEl:a,swiper:d}=t;Co(e)&&o&&l&&(d.params.navigation.nextEl=o,d.originalParams.navigation.nextEl=o,d.params.navigation.prevEl=l,d.originalParams.navigation.prevEl=l),ko(e)&&n&&(d.params.pagination.el=n,d.originalParams.pagination.el=n),_o(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function ia(t,e,i,o,l){const n=[];if(!e)return n;const a=r=>{n.indexOf(r)<0&&n.push(r)};if(i&&o){const r=o.map(l),v=i.map(l);r.join("")!==v.join("")&&a("children"),o.length!==i.length&&a("children")}return Io.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(Nt(t[r])&&Nt(e[r])){const v=Object.keys(t[r]),s=Object.keys(e[r]);v.length!==s.length?a(r):(v.forEach(f=>{t[r][f]!==e[r][f]&&a(r)}),s.forEach(f=>{t[r][f]!==e[r][f]&&a(r)}))}else t[r]!==e[r]&&a(r)}),n}const oa=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 ui(){return ui=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},ui.apply(this,arguments)}function Do(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Oo(t){const e=[];return p.Children.toArray(t).forEach(i=>{Do(i)?e.push(i):i.props&&i.props.children&&Oo(i.props.children).forEach(o=>e.push(o))}),e}function na(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return p.Children.toArray(t).forEach(o=>{if(Do(o))e.push(o);else if(o.props&&o.props.slot&&i[o.props.slot])i[o.props.slot].push(o);else if(o.props&&o.props.children){const l=Oo(o.props.children);l.length>0?l.forEach(n=>e.push(n)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function la(t,e,i){if(!i)return null;const o=s=>{let f=s;return s<0?f=e.length+s:f>=e.length&&(f=f-e.length),f},l=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:n,to:a}=i,d=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,v=[];for(let s=d;s<r;s+=1)s>=n&&s<=a&&v.push(e[o(s)]);return v.map((s,f)=>p.cloneElement(s,{swiper:t,style:l,key:s.props.virtualIndex||s.key||`slide-${f}`}))}function qt(t,e){return typeof window>"u"?ge(t,e):en(t,e)}const Ri=Xt(null),Mo=()=>Yt(Ri),aa=Xt(null),Ft=ei(function(t,e){let{className:i,tag:o="div",wrapperTag:l="div",children:n,onSwiper:a,...d}=t===void 0?{}:t,r=!1;const[v,s]=Y("swiper"),[f,h]=Y(null),[m,S]=Y(!1),A=fe(!1),E=fe(null),u=fe(null),w=fe(null),b=fe(null),T=fe(null),D=fe(null),g=fe(null),O=fe(null),{params:P,passedParams:x,rest:c,events:M}=ea(d),{slides:y,slots:I}=na(n),C=()=>{S(!m)};Object.assign(P.on,{_containerClasses(B,k){s(k)}});const R=()=>{Object.assign(P.on,M),r=!0;const B={...P};if(delete B.wrapperClass,u.current=new Li(B),u.current.virtual&&u.current.params.virtual.enabled){u.current.virtual.slides=y;const k={cache:!1,slides:y,renderExternal:h,renderExternalUpdate:!1};zt(u.current.params.virtual,k),zt(u.current.originalParams.virtual,k)}};E.current||R(),u.current&&u.current.on("_beforeBreakpoint",C);const F=()=>{r||!M||!u.current||Object.keys(M).forEach(B=>{u.current.on(B,M[B])})},j=()=>{!M||!u.current||Object.keys(M).forEach(B=>{u.current.off(B,M[B])})};ge(()=>()=>{u.current&&u.current.off("_beforeBreakpoint",C)}),ge(()=>{!A.current&&u.current&&(u.current.emitSlidesClasses(),A.current=!0)}),qt(()=>{if(e&&(e.current=E.current),!!E.current)return u.current.destroyed&&R(),ta({el:E.current,nextEl:T.current,prevEl:D.current,paginationEl:g.current,scrollbarEl:O.current,swiper:u.current},P),a&&!u.current.destroyed&&a(u.current),()=>{u.current&&!u.current.destroyed&&u.current.destroy(!0,!1)}},[]),qt(()=>{F();const B=ia(x,w.current,y,b.current,k=>k.key);return w.current=x,b.current=y,B.length&&u.current&&!u.current.destroyed&&$l({swiper:u.current,slides:y,passedParams:x,changedParams:B,nextEl:T.current,prevEl:D.current,scrollbarEl:O.current,paginationEl:g.current}),()=>{j()}}),qt(()=>{oa(u.current)},[f]);function V(){return P.virtual?la(u.current,y,f):y.map((B,k)=>p.cloneElement(B,{swiper:u.current,swiperSlideIndex:k}))}return p.createElement(o,ui({ref:E,className:Po(`${v}${i?` ${i}`:""}`)},c),p.createElement(aa.Provider,{value:u.current},I["container-start"],p.createElement(l,{className:Ql(P.wrapperClass)},I["wrapper-start"],V(),I["wrapper-end"]),Co(P)&&p.createElement(p.Fragment,null,p.createElement("div",{ref:D,className:"swiper-button-prev"}),p.createElement("div",{ref:T,className:"swiper-button-next"})),_o(P)&&p.createElement("div",{ref:O,className:"swiper-scrollbar"}),ko(P)&&p.createElement("div",{ref:g,className:"swiper-pagination"}),I["container-end"]))});Ft.displayName="Swiper";const It=ei(function(t,e){let{tag:i="div",children:o,className:l="",swiper:n,zoom:a,lazy:d,virtualIndex:r,swiperSlideIndex:v,...s}=t===void 0?{}:t;const f=fe(null),[h,m]=Y("swiper-slide"),[S,A]=Y(!1);function E(T,D,g){D===f.current&&m(g)}qt(()=>{if(typeof v<"u"&&(f.current.swiperSlideIndex=v),e&&(e.current=f.current),!(!f.current||!n)){if(n.destroyed){h!=="swiper-slide"&&m("swiper-slide");return}return n.on("_slideClass",E),()=>{n&&n.off("_slideClass",E)}}}),qt(()=>{n&&f.current&&!n.destroyed&&m(n.getSlideClasses(f.current))},[n]);const u={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},w=()=>typeof o=="function"?o(u):o,b=()=>{A(!0)};return p.createElement(i,ui({ref:f,className:Po(`${h}${l?` ${l}`:""}`),"data-swiper-slide-index":r,onLoad:b},s),a&&p.createElement(Ri.Provider,{value:u},p.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},w(),d&&!S&&p.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&p.createElement(Ri.Provider,{value:u},w(),d&&!S&&p.createElement("div",{className:"swiper-lazy-preloader"})))});It.displayName="SwiperSlide";const da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",ra=({visible:t,onClose:e,children:i,modalStyle:o,padding:l,popup:n,schema:a,fullHeight:d=window.innerHeight,isFullScreen:r=!1})=>{var v,s,f,h,m,S,A,E,u,w,b,T,D,g,O,P,x,c,M,y;const I=fe(null),C=fe(null),R=fe(null),F=fe(null),j=d*.2,V=r?d:d*.8,[B,k]=Y(j),[N,U]=Y(!1),G=fe(null),{globalConfig:K,popupDetailData:le}=Me(),{schema:oe}=Tt(),[ue,Le]=Y(15);ge(()=>{const ae=document.getElementById("sxp-render"),be=document.getElementById("pb-modal");be?G.current=be:(G.current=document.createElement("div"),G.current.setAttribute("id","pb-modal"),ae?.appendChild(G.current))},[]);const ce=ve(()=>n?.id&&n?.id!==""||t,[t,n]),W=ve(()=>{var ae,be,Te;const Be=a??oe;return(Te=(be=(ae=Be?.sxpPageConf)===null||ae===void 0?void 0:ae.globalConfig)===null||be===void 0?void 0:be.popupList)===null||Te===void 0?void 0:Te.find(Fe=>Fe?.id===n?.id)},[n,a,oe]),Z=ve(()=>{var ae,be;return((be=(ae=W?.item)===null||ae===void 0?void 0:ae.event)===null||be===void 0?void 0:be.isScrollFullScreen)||!1},[W]);if(ge(()=>{ce?U(!0):setTimeout(()=>{U(!1),k(j)},n?.duration)},[ce,n]),!G.current)return null;const ee=hi(()=>{e?.()},300),te=ae=>{I.current=ae.touches[0],C.current=ae.touches[0],R.current=!0},we=ae=>{requestAnimationFrame(()=>{var be;if(R.current&&((be=F?.current)===null||be===void 0?void 0:be.scrollTop)===0){const Te=ae.touches[0].clientY,Be=ae.touches[0].clientX,Oe=I.current.clientY-Te;I.current=ae.touches[0];const Fe=Te-C.current.clientY,He=Be-C.current.clientX;if(Math.abs(He)>Math.abs(Fe))return;const Q=B-Oe;Q>0&&k(Q)}})},Ce=ae=>{var be;if(R.current&&((be=F?.current)===null||be===void 0?void 0:be.scrollTop)===0){const Te=ae.changedTouches[0].clientY-C.current.clientY,Be=ae.changedTouches[0].clientX-C.current.clientX;if(Math.abs(Be)>Math.abs(Te))return;const Oe=C.current.clientY-I.current.clientY;Oe>0?k(0):B<j&&Oe<0?k(j):B>=j&&Oe<0&&e?.()}R.current=!1};return Wi.createPortal(p.createElement(p.Fragment,null,N&&p.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:ce?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},o),onClick:ee},p.createElement("div",{style:{position:"relative",left:`${(h=(f=(s=(v=W?.item)===null||v===void 0?void 0:v.props)===null||s===void 0?void 0:s.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&h!==void 0?h:0}px`,right:`${(E=(A=(S=(m=W?.item)===null||m===void 0?void 0:m.props)===null||S===void 0?void 0:S.popupBg)===null||A===void 0?void 0:A.horizontalMargin)!==null&&E!==void 0?E:0}px`,bottom:`${(T=(b=(w=(u=W?.item)===null||u===void 0?void 0:u.props)===null||w===void 0?void 0:w.popupBg)===null||b===void 0?void 0:b.bottomMargin)!==null&&T!==void 0?T:0}px`,overflow:"hidden",width:`calc(100% - ${((P=(O=(g=(D=W?.item)===null||D===void 0?void 0:D.props)===null||g===void 0?void 0:g.popupBg)===null||O===void 0?void 0:O.horizontalMargin)!==null&&P!==void 0?P:0)*2}px)`,height:"100%"}},p.createElement("div",Object.assign({className:`modal-container ${ce?"modal-popIn":"modal-popOut"}`,style:Object.assign(Object.assign({padding:l,animationDuration:((x=n?.duration)!==null&&x!==void 0?x:0)/1e3+"s"},Z&&{transform:`translateY(${B}px)`}),{overflow:"hidden"}),onClick:ae=>{ae.stopPropagation(),ae.preventDefault()}},Z&&{onTouchMove:we,onTouchStart:te,onTouchEnd:Ce}),p.createElement("div",{className:"modal-icon-wrapper",onClick:e,style:{top:ue}},p.createElement("img",{src:(c=K?.popupCloseIcon)!==null&&c!==void 0?c:da,alt:"close",className:"modal-icon"})),p.createElement("div",Object.assign({ref:F,style:{height:Z?d:V,overflow:Z&&B<=0||!Z?"auto":"hidden"}},((y=(M=W?.item)===null||M===void 0?void 0:M.props)===null||y===void 0?void 0:y.enableFixedCloseButton)&&{onScroll:ae=>{var be;Le(15-((be=ae?.target)===null||be===void 0?void 0:be.scrollTop))}}),i))))),G.current)};var Ht=_e(ra);const sa=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const o=t.split(" "),l=[];for(let a=0;a<o.length&&(l.push(o[a]),!(l.join(" ").length>=e));a++);return(l.length>1&&l.length<o.length?l.slice(0,l.length-1):l).join(" ")+" "},ca=({text:t,maxStr:e=108,style:i,className:o,onClick:l,foldText:n,unfoldText:a,isPost:d,onChange:r})=>{const[v,s]=Y(!1),[f,h]=Y(!1),m=Number(i?.lineClamp||2),S=fe(null),A=fe(null),E=ye(()=>{s(!v)},[v,r]);return ve(()=>!v&&t.length>e?sa(t,e)+"...":t,[t,e,v]),ge(()=>{var u,w;((u=A?.current)===null||u===void 0?void 0:u.offsetHeight)>((w=S?.current)===null||w===void 0?void 0:w.offsetHeight)&&d?h(!0):h(!1),A.current.style.display="none"},[d]),p.createElement("div",{className:o,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},p.createElement("div",{ref:S,style:{overflow:"hidden",WebkitLineClamp:!d||v?"":m,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:xe(t?.replace(/\n/g,"</br>"),i)}}),p.createElement("div",{ref:A,dangerouslySetInnerHTML:{__html:xe(t?.replace(/\n/g,"</br>"),i)}}),t&&d&&f&&p.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:l??E,dangerouslySetInnerHTML:{__html:xe(v?a||"show less":n||"show more",i)}}))};var vi=_e(ca);const ua=ei((t,e)=>{const{src:i,onLoad:o,style:l,className:n,loading:a,alt:d="image"}=t,[r,v]=Y(),s=fe(null),[f,h]=Y(!1);return Ui(e,()=>({setSrc:m=>{m&&v(m)}})),ge(()=>{i&&v(i)},[i]),ge(()=>{const m=()=>{i&&!f&&s.current&&(s.current.src="",s.current.src=i)};return At.on(ut.PAGE_DID_SHOW,m),()=>{At.off(ut.PAGE_DID_SHOW,m)}},[i,f]),p.createElement(p.Fragment,null,!f&&p.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?p.createElement("picture",null,p.createElement("source",{type:"image/avif",srcSet:r}),p.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),p.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),p.createElement("img",{ref:s,className:n,src:r,style:Object.assign({},l),loading:a,onLoad:m=>{h(!0),o?.(m.target)},alt:d})):p.createElement("img",{ref:s,className:n,src:r,style:Object.assign({},l),loading:a,onLoad:m=>{h(!0),o?.(m.target)},alt:d}))});var st=_e(ua);const va=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const l=fe(),{popupDetailData:n}=Me();return ge(()=>{var a,d;o&&((a=l?.current)===null||a===void 0||a.swiper.slideTo((d=n?.multiCheckIndex)!==null&&d!==void 0?d:0))},[n,o]),p.createElement(Ft,{ref:l,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[zn,Vn,jn],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Kt=_e(va);const pa=({products:t,data:e,defImg:i,style:o,onCLick:l,popupDetailData:n,check:a})=>{var d;const{productView:r}=it(),{popupCurTimeRef:v}=Me(),s=(f,h)=>{if(a===h)return;const m=t?.[a];r(n,m,m?.bindCta,v.current,n?.index),l?.(h)};return p.createElement(p.Fragment,null,e?.open&&(t&&t?.length>1||!n)&&p.createElement(Kt,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(d=n?t:[0,1,2,3])===null||d===void 0?void 0:d.map((f,h)=>{var m,S,A;return p.createElement(p.Fragment,null,f?.bindCta?p.createElement(It,{className:Ee({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{s(f,h)},key:h},p.createElement(st,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:a===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(A=(m=f?.cover)!==null&&m!==void 0?m:(S=f?.homePage)===null||S===void 0?void 0:S[0])!==null&&A!==void 0?A:i})):null)})))};var Lo=_e(pa);const ma=t=>{var e,i,o,l,n,a,d,r,v,s,f,h,m,S,A,E,u,w,b,T,D,g,O,P,{content:x,style:c,bgImg:M,onClick:y,schema:I,isDefault:C,bottom_image:R,tipText:F,isPost:j,viewTime:V,rec:B,swiper:k,commodityStyles:N,buttonStyle:U,index:G,commodityGroup:K,popupBg:le,iframeIcon:oe,commodityImgRatio:ue,isTel:Le,iframeBgColor:ce}=t,W=Ze(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor"]);const{sxpParameter:Z,popupDetailData:ee,isPreview:te,bffFbReport:we,popupCurTimeRef:Ce,checkCommodityIndexRef:ae}=Me(),{jumpToWeb:be,productView:Te}=it(),Be=fe(null),[Oe,Fe]=Y(!1),[He,Q]=Y(!1),[pe,ie]=Y((e=ee?.multiCheckIndex)!==null&&e!==void 0?e:0),re=fe(),$=j?B:ee;let L=j?$?.product:(o=(i=$?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&o!==void 0?o:(n=(l=$?.video)===null||l===void 0?void 0:l.bindProducts)===null||n===void 0?void 0:n[0],Ge=j?(a=$?.product)===null||a===void 0?void 0:a.bindCta:(v=(r=(d=$?.video)===null||d===void 0?void 0:d.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&v!==void 0?v:(h=(f=(s=$?.video)===null||s===void 0?void 0:s.bindProducts)===null||f===void 0?void 0:f[0])===null||h===void 0?void 0:h.bindCta;const $e=j?G:ee?.index;if(!j&&K?.open&&(!((m=$?.video)===null||m===void 0)&&m.bindProducts)&&((A=(S=$?.video)===null||S===void 0?void 0:S.bindProducts)===null||A===void 0?void 0:A.length)>0){ae.current=pe;const J=(E=$?.video)===null||E===void 0?void 0:E.bindProducts[pe];L=J,Ge=J?.bindCta}const Qe=()=>{L?.link&&(be($,L,Ge,$e),j||Te($,L,Ge,V||Be.current,$e),window.location.href=window.getJointUtmLink(L.link))};ge(()=>{j||we?.({eventName:"ProductView"})},[j,we]),ge(()=>{const J=()=>{Be.current=new Date};return J(),window.addEventListener("pageshow",J),()=>{window.removeEventListener("pageshow",J)}},[]);const pt=ve(()=>{var J,me,ke,je,We,Ye,et;const lt=((J=N?.price)===null||J===void 0?void 0:J.enableFormattedPrice)===void 0||((me=N?.price)===null||me===void 0?void 0:me.enableFormattedPrice);return L?.currency&&L?.price?`${(We=(je=(ke=L?.currency)===null||ke===void 0?void 0:ke.split("-")[1])===null||je===void 0?void 0:je.toUpperCase())!==null&&We!==void 0?We:""}${lt?(et=(Ye=L?.price)===null||Ye===void 0?void 0:Ye.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&et!==void 0?et:"":L?.price}`:"$7,000"},[L?.price,L?.currency,(u=N?.price)===null||u===void 0?void 0:u.enableFormattedPrice]),nt=(te?375:(w=c?.width)!==null&&w!==void 0?w:window.innerWidth)-((b=le?.horizontalMargin)!==null&&b!==void 0?b:0)*2,mt=ue?nt*(ue.h/ue.w):nt,ft=({isPost:J})=>{var me,ke,je,We;return p.createElement("div",null,p.createElement("div",{className:"pb-commondity-content-collection",style:z(N?.collection),hidden:!!L&&(!L?.collection||L?.collection===""),dangerouslySetInnerHTML:{__html:xe((me=L?.collection)!==null&&me!==void 0?me:"Tiffany Lock",N?.collection)}}),p.createElement("div",{className:"pb-commondity-content-title",style:z(N?.title),hidden:!!L&&!L?.title,dangerouslySetInnerHTML:{__html:xe((ke=L?.title)!==null&&ke!==void 0?ke:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),p.createElement("div",{className:"pb-commondity-content-price",style:z(N?.price),hidden:!!L&&!L?.price,dangerouslySetInnerHTML:{__html:xe(pt,N?.price)}}),p.createElement("div",{hidden:!!L&&!L?.taxInfo,style:z(N?.taxInfo),dangerouslySetInnerHTML:{__html:xe((je=L?.taxInfo)!==null&&je!==void 0?je:"\u7A0E\u8D39",N?.taxInfo)}}),p.createElement("div",{hidden:!!L&&(!L?.info||L?.info==="")},p.createElement(vi,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>Fe(!0),isPost:J,text:(We=L?.info)!==null&&We!==void 0?We:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
1
|
+
import{isEmpty as Ut,isEqual as Hi,cloneDeep as $t,debounce as hi,throttle as Wt,get as Gi}from"lodash";import{v4 as Qo}from"uuid";import $o from"pako";import p,{useContext as Yt,useMemo as ve,memo as _e,useEffect as ge,createContext as Xt,useState as Y,useRef as fe,useCallback as ye,forwardRef as ei,useImperativeHandle as Ui,useLayoutEffect as en}from"react";import gi from"qs";import tn from"eventemitter3";import{css as Ee}from"@emotion/css";import*as Wi from"react-dom";import on from"react-dom";function Ze(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l<o.length;l++)e.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(t,o[l])&&(i[o[l]]=t[o[l]]);return i}function at(t,e,i,o){function l(n){return n instanceof i?n:new i(function(a){a(n)})}return new(i||(i=Promise))(function(n,a){function d(s){try{v(o.next(s))}catch(f){a(f)}}function r(s){try{v(o.throw(s))}catch(f){a(f)}}function v(s){s.done?n(s.value):l(s.value).then(d,r)}v((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const nn=/:\w+/g;var Yi=(t,e)=>at(void 0,void 0,void 0,function*(){const i={},o={};for(let l=0;l<e?.length;l++){const{id:n,method:a,url:d,urlParams:r,name:v,queryString:s,headers:f,body:h}=e[l];let m=d;r&&Object.entries(r).forEach(([S,A])=>{m=m.replace(nn,E=>E===S?A:E)}),s&&(m+=s),o[n]=v;try{const S=yield fetch(m,{method:a,headers:Object.assign({"Content-Type":"application/json"},f),body:JSON.stringify(h)}).then(A=>A.json());i[n]=S}catch(S){console.error("DataSource request error: ",S),i[n]={}}}return{$store:i,idMapName:o}});const Xi="SXP_TOKEN_INFO",ln=(t,e)=>at(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),l=t.getAppId(),n=t.getApiUrl(),a=window.localStorage.getItem(Xi);let d=JSON.parse(a||"{}");if(Date.now()>((i=d?.expireTime)!==null&&i!==void 0?i:0)){const v=yield fetch(`${n}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":l||""}}).then(s=>s.json());if(v.success){const s=v.data;d=Object.assign(Object.assign({},s),{expireTime:Date.now()+s.expire*1e3}),window.localStorage.setItem(Xi,JSON.stringify(d))}}return d});function ti(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let l;if(e=e||i.length,t)for(l=0;l<t;l++)o[l]=i[0|Math.random()*e];else{let n;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",l=0;l<36;l++)o[l]||(n=0|Math.random()*16,o[l]=i[l===19?n&3|8:n])}return o.join("")}const an=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let l=0;for(;l<t;)e+=i.charAt(Math.floor(Math.random()*o)),l+=1;return e},dn=()=>{const t=Qo();return t?.replaceAll?t.replaceAll("-",""):an(32)},xe=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],l=e?.["fontFamily-en"];if(!o&&!l)return t;let n=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,r=`font-family:${o??"inherit"}`,v=`font-family:${l??"inherit"}`,s=h=>{let m=h.search(a),S=h.search(d);return m!==-1&&S!==-1&&m<S&&(i+=`<span style="${r}">${h.substring(m,S)}</span>`,n=h.substring(S,h?.length)),m!==-1&&S!==-1&&m>S&&(i+=`<span style="${v}">${h.substring(S,m)}</span>`,n=h.substring(m,h?.length)),m===-1?(i+=`<span style="${v}">${h.substring(S,h?.length)}</span>`,n="",!1):S===-1?(i+=`<span style="${r}">${h.substring(m,h?.length)}</span>`,n="",!1):!0};let f=!0;for(;f;)f=s(n);return i};function Ji(){var t,e,i,o,l,n,a;let d=self.navigator.userAgent;return d?/edge\/([\d\.]+)/i.exec(d)?`Edge ${(t=/edge\/([\d\.]+)/i.exec(d))===null||t===void 0?void 0:t[1]}`:/edg\/([\d\.]+)/i.exec(d)?`Edge(Chromium) ${(e=/edge\/([\d\.]+)/i.exec(d))===null||e===void 0?void 0:e[1]}`:/msie/i.test(d)?`Internet Explorer ${(i=/msie ([\d\.]+)/i.exec(d))===null||i===void 0?void 0:i[1]}`:/Trident/i.test(d)?`Internet Explorer ${(o=/rv:([\d\.]+)/i.exec(d))===null||o===void 0?void 0:o[1]}`:/chrome/i.test(d)?`Chrome ${(l=/chrome\/([\d\.]+)/i.exec(d))===null||l===void 0?void 0:l[1]}`:/firefox/i.test(d)?`Firefox ${(n=/firefox\/([\d\.]+)/i.exec(d))===null||n===void 0?void 0:n[1]}`:/safari/i.test(d)?`Safari ${(a=/version\/([\d\.]+)/i.exec(d))===null||a===void 0?void 0:a[1]}`:null:null}function qi(){var t,e,i;let o=self.navigator.userAgent;return o?/iphone/i.test(o)?`IOS ${(t=o.match(/OS\s(.*?)\slike/))===null||t===void 0?void 0:t[1]}`:/android/i.test(o)?`Android ${(e=o.match(/Android\s(.*?)\;/))===null||e===void 0?void 0:e[1]}`:/windows/i.test(o)?`Windows ${(i=o.match(/Windows\s(.*?)\;/))===null||i===void 0?void 0:i[1]}`:/mac/i.test(o)?"Mac OS":null:null}function Ki(){let t=self.navigator.userAgent;if(!t)return null;if(/iphone/i.test(t))return"iPhone";if(/android/i.test(t)){var e=t.indexOf("("),i=t.indexOf(")");if(e!==-1&&i!==-1){var o=t.substring(e+1,i);return`${o}`}}return/windows/i.test(t)?"Windows":/mac/i.test(t)?"Mac":null}function Zi(t){const i=document.cookie.split(";");let o=null;return i.forEach(l=>{const[n,a]=l.trim().split("=");n===t&&(o=a)}),o??""}function Qi(t){const i=atob(t).split("").map(function(n){return n.charCodeAt(0)}),o=new Uint8Array(i),l=$o.inflate(o,{to:"string"});return JSON.parse(l)}let bi=null;const rn={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class sn{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,bi)return bi;bi=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?rn[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let dt=null;const cn={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{dt||(dt=new sn),o&&dt.setApiUrl(o),dt.setAppId(t),dt.setTenantId(e),dt.setEnv(i)},getDetail:t=>{if(!dt)return;const e=dt.getTenantId(),i=dt.getAppId(),o=dt.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>at(void 0,void 0,void 0,function*(){var n,a;const d=yield l.json(),r=Qi((n=d?.data)===null||n===void 0?void 0:n.data);if(r){const{$store:v}=yield Yi(o,(a=r?.dataSource)!==null&&a!==void 0?a:[]);d.data.data=r,Object.assign(d.data.data,{__STORE__:v})}return d}))},getSxpDetailByPageId:t=>at(void 0,void 0,void 0,function*(){if(!dt)return;const e=dt.getTenantId(),i=dt.getAppId(),o=dt.getApiUrl();return fetch(`${o}/storefront/v1/page?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>at(void 0,void 0,void 0,function*(){var n;const a=yield l.json();if(!a.success)return;const d=Qi((n=a?.data)===null||n===void 0?void 0:n.data);return a.data.data=d,a.data}))}),getSxpRecommendVideoData:t=>at(void 0,void 0,void 0,function*(){if(!dt)return;const e=yield ln(dt,t),i=ti(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");Ut(o)&&(o=ti(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const l=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:o,channel:e.channel,maxRecs:10,requestId:i})}).then(n=>n.json());return l?.data||null})};function Tt(){return Yt(uo)}function un(){return Yt(co)}const yi="feRealSessionIdKey",$i=()=>{const t=dn();return`${Date.now()}${t}`},vn=()=>{let t=pn();return t||(t=$i(),window.sessionStorage.setItem(yi,t)),t},eo=()=>{const t=$i();window.sessionStorage.setItem(yi,t)},pn=()=>window.sessionStorage.getItem(yi),to="SXP_FAKE_USER_ID",io="FAKE_USER_STATE",oo="AGREE_POLICY",no="SLIDE_SKIP_STATE",lo=()=>{let t=window.localStorage.getItem(to);return Ut(t)&&(t=ti(36,62),window.localStorage.setItem(to,t)),t},mn=()=>{const t=window.localStorage.getItem(io);return Ut(t)&&window.localStorage.setItem(io,"true"),Ut(t)},fn=()=>{const t=window.localStorage.getItem(no);return Ut(t)},hn=()=>{window.localStorage.setItem(no,"true")};function gt(t,e){const{appDomain:i}=Me();return ve(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const At=new tn;var ut;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(ut||(ut={}));const gn=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:l,privacy_policy_title:n})=>{const{setIsAgreePolicy:a,bffEventReport:d}=Me(),r=ve(()=>{const f=location.search.slice(1),h=gi.parse(f.replace(/\+/g,"%2B"));for(const m in h)h[m]=h[m].replace(/%2B/g,"+");return h},[]),v=f=>{var h;return(h=r[f])!==null&&h!==void 0?h:null};ge(()=>{d?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:v("utm_source"),utmMedium:v("utm_medium"),utmCampaign:v("utm_campaign"),utmId:v("utm_id"),utmContent:v("utm_content"),clSource:v("cl_source"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const s=()=>{d?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),a?.(!0),window.localStorage.setItem(oo,"yes")};return p.createElement("div",{className:"consent-bg"},p.createElement("div",{className:"consent"},p.createElement("div",{className:"consent-col"},p.createElement("div",{className:"consent-title"},i??"Privacy Policy"),p.createElement("div",{className:"consent-content"},o??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),p.createElement("div",{className:"consent-col"},p.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:s},"Agree"),p.createElement("a",{className:"consent-policy",target:"_blank",href:l?`https://${l}`:void 0},n??"More information"))))};var bn=_e(gn);const ao=Xt({rtcList:[],tagList:[]});var wi;(function(t){t[t.BFF=5]="BFF"})(wi||(wi={}));const ii="FOR U",yn=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:l,defaultSize:n,isPreview:a=!1,sxpParameter:d,appDomain:r,hashTagSize:v,loadingImage:s,isOpenHashTag:f=!1,enabledMetaConversionApi:h=!1,consentHeight:m,consentWidth:S,isShowTag:A=!0,isOpenConsent:E=!1,globalConfig:u,isEditor:w=!1,utmParameter:b,channelQueryList:T})=>{var D,g,O;const[P,x]=Y([]),[c,M]=Y([]),[y,I]=Y(!1),[C,R]=Y({rtc:"",requestId:""}),F=fe(null),j=fe(!1),[V,B]=Y(()=>!!window.localStorage.getItem(oo)),[k,N]=Y(),[U,G]=Y(),[K,le]=Y(f),[oe,ue]=Y([]),[Le,ce]=Y(0),[W,Z]=Y(!1),[ee,te]=Y(null),we=fe(),Ce=fe(),[ae,be]=Y(ii),Te=fe(-1),Be=fe(null),[Oe,Fe]=Y(!1),He=ve(()=>{var z,H,Ie,Pe;return((Pe=(Ie=(H=(z=u?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||Ie===void 0?void 0:Ie.props)===null||Pe===void 0?void 0:Pe.privacy_necessity)&&!V&&!w||E},[V,u,E,w]),Q=ye(z=>{var H;const Ie=z?.recList;return(H=Ie?.map(X=>{var J,me,ke,je,We,Ye;if(!((J=X?.video)===null||J===void 0)&&J.bindProducts&&((ke=(me=X?.video)===null||me===void 0?void 0:me.bindProducts)===null||ke===void 0?void 0:ke.length)>0){const et=(Ye=(We=(je=X?.video)===null||je===void 0?void 0:je.bindProducts)===null||We===void 0?void 0:We.filter(lt=>!!lt?.bindCta))!==null&&Ye!==void 0?Ye:[];return Object.assign(Object.assign({},X),{video:Object.assign(Object.assign({},X?.video),{bindProducts:et})})}return X}))!==null&&H!==void 0?H:[]},[]);ge(()=>{const z=H=>{we.current=H};return At.on(ut.CHANGE_THEME_TAG,z),()=>{At.off(ut.CHANGE_THEME_TAG,z)}},[]),ge(()=>{le(f)},[f]);const pe=ve(()=>e?.find(z=>z.type===wi.BFF),[e]),ie=ye((z,H)=>{if(!pe)return;const Ie=pe.url,Pe=lo();if(H?.query){const X=gi.stringify(H.query);z=`${z}?${X}`}return H.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${Ie}/api/v1${z}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},pe.headers),{"x-user-id":Pe}),H.body))],{type:"application/json;charset=UTF-8"})):window.fetch(`${Ie}/api/v1${z}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":Pe},pe.headers),method:H.method,body:JSON.stringify(H.body)}).then(X=>X.json()).catch(X=>Promise.reject(X))},[pe]),re=ye(z=>at(void 0,void 0,void 0,function*(){var H,Ie,Pe,X,J,me,ke,je,We,Ye,et,lt,wt,Pt;if(z=Object.assign(Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:l,defaultSize:(Ie=z?.defaultSize)!==null&&Ie!==void 0?Ie:n,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag},z?.contentFilter&&{contentFilter:`[${z?.contentFilter}]`}),z?.productFilter&&{productFilter:`[${z?.productFilter}]`}),{pageNum:z?.pageNum}),i){const se=(J=(X=(Pe=i?.split("&"))===null||Pe===void 0?void 0:Pe.filter(de=>{var q,Se;const Ae=de.split("=")[0];return(Se=(q=b?.channels)!==null&&q!==void 0?q:[])===null||Se===void 0?void 0:Se.includes(Ae)}))===null||X===void 0?void 0:X.join("&"))!==null&&J!==void 0?J:"";z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(se)})}if(w){let se=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&T&&T?.length>0&&{channel:T?.[0]}),!z?.channel||j.current)return;j.current=!0;let de=[],q=null;const Se=Ae=>at(void 0,void 0,void 0,function*(){var ne,he,De,Ne,Ue,Xe;if(Ae.pageNum=se,q=yield ie?.("/recommend/list",{method:"GET",query:Ae}),!q?.success)return;I(!1),de=de.concat((Ne=(De=(he=(ne=q?.data)===null||ne===void 0?void 0:ne.recList)===null||he===void 0?void 0:he.filter)===null||De===void 0?void 0:De.call(he,Ve=>Ve?.product||Ve?.video))!==null&&Ne!==void 0?Ne:[]),((Xe=(Ue=q?.data)===null||Ue===void 0?void 0:Ue.recList)===null||Xe===void 0?void 0:Xe.some(Ve=>Ve?.product||Ve?.video))&&(se=se+1,yield Se(Ae))});return yield Se(z),!z?.hashTag&&q&&R({rtc:(me=q?.data)===null||me===void 0?void 0:me.rtc,requestId:(ke=q?.data)===null||ke===void 0?void 0:ke.requestId}),Object.assign(Object.assign({},q.data),{recList:de})}u?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(je=z?.pageNum)!==null&&je!==void 0?je:1}));const _=yield ie?.("/recommend/list",{method:"GET",query:z});if(_?.success){if(z?.hashTag||R({rtc:_.data.rtc,requestId:_.data.requestId}),u?.enablePreview&&!w){let se=[];return se=se.concat((lt=(et=(Ye=(We=_?.data)===null||We===void 0?void 0:We.recList)===null||Ye===void 0?void 0:Ye.filter)===null||et===void 0?void 0:et.call(Ye,q=>q?.product||q?.video))!==null&<!==void 0?lt:[]),((Pt=(wt=_?.data)===null||wt===void 0?void 0:wt.recList)===null||Pt===void 0?void 0:Pt.some(q=>q?.product||q?.video))||Fe(!0),Object.assign(Object.assign({},_.data),{recList:se})}return _?.data}}),[ie,i,l,n,T]),$=ye(z=>at(void 0,void 0,void 0,function*(){var H,Ie,Pe,X;if(P.length<=0)return;const J=P?.[P?.length-1],me=yield re(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:U?.hashTag},((H=J?.product)===null||H===void 0?void 0:H.itemId)&&{productFilter:(Ie=J?.product)===null||Ie===void 0?void 0:Ie.itemId}),((Pe=J?.video)===null||Pe===void 0?void 0:Pe.itemId)&&{contentFilter:(X=J?.video)===null||X===void 0?void 0:X.itemId}),{themeTag:we.current}),u?.enablePreview&&!w&&{pageNum:z}));return x(P.concat(Q(me))),ue(oe.concat(Q(me))),me}),[re,P,U,oe]),L=ye(({userInfo:z,eventInfo:H})=>{if(!o||u?.enablePreview)return;z||(z={});const Ie=vn(),Pe=Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Ie,rtc:C.rtc,requestId:C.requestId},H),Ki()&&{sxpDevice:Ki()}),qi()&&{sxpSystem:qi()}),Ji()&&{sxpBrowser:Ji()}),X=Object.entries(z).map(([me,ke])=>({name:me,value:ke})),J=Object.entries(Pe).map(([me,ke])=>ke&&{name:me,value:ke}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",Pe),console.log("========= \u7ED3\u675F ========="),ie?.("/event/report",{method:"POST",body:{userInfo:X,eventInfo:J},type:"beacon"})},[ie,C,o,u?.enablePreview]),Ge=ye(z=>{var H,Ie,Pe,{eventName:X,actionSource:J="website",eventSourceUrl:me=(H=window?.location)===null||H===void 0?void 0:H.href,externalId:ke}=z;if(!o||!h||u?.enablePreview)return;const je=lo(),Ye=new URLSearchParams(window.location.search).get("fbclid");return ie?.("/fb/events",{method:"POST",body:{eventName:X,actionSource:J,eventSourceUrl:me,userData:Object.assign(Object.assign(Object.assign({externalId:je},Ye&&{fbc:`fb.2.${new Date().getTime()}.${Ye}`}),Zi("_fbp")&&{fbp:`fb.2.${new Date().getTime()}.${Zi("_fbp")}`}),{clientUserAgent:(Pe=(Ie=window?.navigator)===null||Ie===void 0?void 0:Ie.userAgent)!==null&&Pe!==void 0?Pe:""})},type:"beacon"})},[ie,o,h,u?.enablePreview]),$e=ye(z=>at(void 0,void 0,void 0,function*(){const H=yield ie?.("/recommend/like",{method:"POST",body:z});return H?.success}),[ie]),Qe=ye(z=>at(void 0,void 0,void 0,function*(){const H=yield ie?.("/recommend/unlike",{method:"POST",body:z});return H?.success}),[ie]),pt=ye(z=>at(void 0,void 0,void 0,function*(){const H=yield ie?.("/customform",{method:"POST",body:z});return H?.success}),[ie]),nt=ye(()=>at(void 0,void 0,void 0,function*(){var z,H,Ie,Pe,X;if(!(!i||!A))try{const J=(Ie=(H=(z=i?.split("&"))===null||z===void 0?void 0:z.filter(ke=>{var je,We;const Ye=ke.split("=")[0];return(We=(je=b?.channels)!==null&&je!==void 0?je:[])===null||We===void 0?void 0:We.includes(Ye)}))===null||H===void 0?void 0:H.join("&"))!==null&&Ie!==void 0?Ie:"",me=yield ie?.("/tag/list",{method:"GET",query:{channel:decodeURIComponent(J)}});M((X=(Pe=me?.data)===null||Pe===void 0?void 0:Pe.tags)!==null&&X!==void 0?X:[])}catch(J){console.log("e",J)}}),[ie,i,A]),mt=ye((z,H,Ie,Pe)=>{var X,J,me,ke,je,We,Ye,et,lt,wt,Pt,_,se,de,q,Se,Ae,ne,he,De,Ne,Ue,Xe,qe,Ve,tt,Re,Je,ct,Ke,St,xt,Dt,Ot,ze,fi;const Mt=Ie?.bindCta,Zo=((X=H?.video)===null||X===void 0?void 0:X.bindProduct)||((J=H?.video)===null||J===void 0?void 0:J.bindProducts)&&((ke=(me=H?.video)===null||me===void 0?void 0:me.bindProducts)===null||ke===void 0?void 0:ke.length)>0;let Qt="";W?Qt="hashTagPage":!((je=H?.video)===null||je===void 0)&&je.url?Qt="videoPage":!((Ye=(We=H?.video)===null||We===void 0?void 0:We.imgUrls)===null||Ye===void 0)&&Ye.length&&(Qt="imagePage");const zi=(de=(_=(et=Ie?.tags)!==null&&et!==void 0?et:(Pt=(wt=(lt=H?.video)===null||lt===void 0?void 0:lt.bindProducts)===null||wt===void 0?void 0:wt[0])===null||Pt===void 0?void 0:Pt.tags)!==null&&_!==void 0?_:(se=H?.video)===null||se===void 0?void 0:se.tags)!==null&&de!==void 0?de:(q=H?.product)===null||q===void 0?void 0:q.tags;L?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(Se=Mt?.itemId)!==null&&Se!==void 0?Se:"",ctaName:(Ae=Mt?.title)!==null&&Ae!==void 0?Ae:"",contentTags:zi?JSON.stringify(zi):"",position:Pe+"",contentId:(he=(ne=H?.video)===null||ne===void 0?void 0:ne.itemId)!==null&&he!==void 0?he:"",productId:Zo?Ie?.itemId:"",traceInfo:(ze=(xt=(Re=(Xe=(De=Mt?.traceInfo)!==null&&De!==void 0?De:(Ue=(Ne=H?.video)===null||Ne===void 0?void 0:Ne.bindCta)===null||Ue===void 0?void 0:Ue.traceInfo)!==null&&Xe!==void 0?Xe:(tt=(Ve=(qe=H?.video)===null||qe===void 0?void 0:qe.bindProduct)===null||Ve===void 0?void 0:Ve.bindCta)===null||tt===void 0?void 0:tt.traceInfo)!==null&&Re!==void 0?Re:(St=(Ke=(ct=(Je=H?.video)===null||Je===void 0?void 0:Je.bindProducts)===null||ct===void 0?void 0:ct[0])===null||Ke===void 0?void 0:Ke.bindCta)===null||St===void 0?void 0:St.traceInfo)!==null&&xt!==void 0?xt:(Ot=(Dt=H?.product)===null||Dt===void 0?void 0:Dt.bindCta)===null||Ot===void 0?void 0:Ot.traceInfo)!==null&&ze!==void 0?ze:"",fromKName:Qt,fromKPage:(fi=location?.href)!==null&&fi!==void 0?fi:""})})},[L,W]),ft=ye(()=>{var z,H;const Ie=location.search.slice(1),Pe=gi.parse(Ie.replace(/\+/g,"%2B"));for(const me in Pe)Pe[me]=Pe[me].replace(/%2B/g,"+");const X=me=>{var ke;return(ke=Pe[me])!==null&&ke!==void 0?ke:""},J=new Date;Ce.current=J,L?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:X("utm_source"),utmMedium:X("utm_medium"),utmCampaign:X("utm_campaign"),utmId:X("utm_id"),utmContent:X("utm_content"),enterTime:Math.floor(J/1e3)+"",requestId:null,enterUrl:(H=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&H!==void 0?H:"",clSource:X("cl_source")}})},[L]);ge(()=>{He||ft()},[He]),ge(()=>{He||(I(!0),nt(),re().then(z=>{z&&(x(Q(z)),ue(Q(z)))}).finally(()=>{L({eventInfo:{eventSubject:"apiRequest",eventDescription:"api request succeed"}}),I(!1)}))},[He]),ge(()=>{a&&(I(!0),nt(),re().then(z=>{z&&(x(Q(z)),ue(Q(z)))}).finally(()=>{L({eventInfo:{eventSubject:"apiRequest",eventDescription:"api request succeed"}}),I(!1)}))},[re,nt]);const ht=gt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return p.createElement(ao.Provider,{value:{rtcList:P,setRtcList:x,mutateLike:$e,mutateUnlike:Qe,submitForm:pt,popupDetailData:k,loadVideos:$,setPopupDetailData:N,getRecommendVideos:re,bffEventReport:L,utmVal:i,isPreview:a,loading:y,sxpParameter:d,waterFallData:U,setWaterFallData:G,ctaEvent:mt,swiperRef:F,openHashtag:K,setOpenHashtag:le,cacheRtcList:oe,setCacheRtcList:ue,cacheActiveIndex:Le,setCacheActiveIndex:ce,isFromHashtag:W,setIsFromHashtag:Z,appDomain:r,hashTagSize:v,loadingImage:s??ht,isOpenHashTag:f,tagList:c,setLoading:I,videoRef:ee,setVideoRef:te,bffFbReport:Ge,isAgreePolicy:V,setIsAgreePolicy:B,curTime:Ce,h5EnterLink:ft,themeTag:we,isShowConsent:He,selectTag:ae,setSelectTag:be,globalConfig:u,popupCurTimeRef:Be,checkCommodityIndexRef:Te,isEditor:w,isNoMoreData:Oe}},He?p.createElement(bn,Object.assign({},(O=(g=(D=u?.consent)===null||D===void 0?void 0:D[0])===null||g===void 0?void 0:g.item)===null||O===void 0?void 0:O.props)):t({rtcList:P,mutateLike:$e,mutateUnlike:Qe,submitForm:pt,tagList:c}))};var ro=_e(yn);function Me(){return Yt(ao)}var so;(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"})(so||(so={}));const co=Xt({$store:{},options:[],configs:[]}),wn=({children:t,isSsr:e,enable:i})=>{const[o,l]=Y([]),{schema:n}=Tt(),[a,d]=Y(n.__STORE__||{}),[r,v]=Y([]);ge(()=>{var h;e||Hi(r,n?.dataSource)||v((h=n?.dataSource)!==null&&h!==void 0?h:[])},[n?.dataSource,e]);const s=ye(()=>at(void 0,void 0,void 0,function*(){const{$store:h,idMapName:m}=yield Yi("",r);d(h),f(h,m)}),[r]),f=(h,m)=>{const S=[];Object.entries(h).forEach(([A,E])=>{Object.keys(E).forEach(u=>{const w={label:`${m[A]} - ${u}`,value:`{{ ${A}.${u} }}`};S.push(w)})}),l(S)};return ge(()=>{e||s()},[s,e,n]),i?p.createElement(co.Provider,{value:{$store:n.__STORE__||a,options:o,configs:r}},t):t};var Sn=_e(wn);const oi={id:ti(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},Si={id:"",duration:0,name:"none"},uo=p.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[oi],redoStack:[],popup:Si,setPopup:()=>{}}),vo=ei(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:l=!0,utmVal:n},a)=>{const[d,r]=Y(null),[v,s]=Y(o||{pointData:[oi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[f,h]=Y([oi]),[m,S]=Y([[oi]]),[A,E]=Y([]),[u,w]=Y(Si);typeof window<"u"&&(window.sxpPopup=(O,P)=>{w(Object.assign(Object.assign(Object.assign({},Si),{id:O}),P))}),typeof window<"u"&&(window.getJointUtmLink=O=>(hn(),O?.indexOf("?")!==-1?O+(n?"&"+n:""):O+(n?"?"+n:""))),ge(()=>{S([v.pointData]),E([])},[v.type]);const b=ye(O=>{const P=$t(v);P&&(P.dataSource=O,s?.(P))},[v]),[T,D]=Y();Ui(a,()=>({loadSchema(O){O&&(S([O.pointData]),s(O))},exportSchema(){return $t(v)},getPageInfoData(){return T},initPageInfoData(O){O&&D(O)}}));const g=ve(()=>{if(v)return v.type==="PC"?v.pcPageConf:v.mobilePageConf},[v]);return p.createElement(uo.Provider,{value:{resolver:e,currentNode:d,schema:v,setCurrentNode:r,setSchema:s,saveDataSource:b,prePiontData:f,setPrePiontData:h,pageInfoData:T,setPageInfoData:O=>D(Object.assign(Object.assign({},T),O)),undoStack:m,redoStack:A,setRedoStack:E,setUndoStack:S,getCurPageConf:g,popup:u,setPopup:w}},p.createElement(Sn,{isSsr:i,enable:l},t))});var xn=Object.freeze({__proto__:null,EditorCore:vo}),Tn=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],An=[{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:"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 it(){const{bffEventReport:t,popupDetailData:e,waterFallData:i,isFromHashtag:o}=Me(),l=ye((d,r,v,s,f)=>{var h,m,S,A,E,u,w,b,T,D,g,O,P,x,c,M,y,I,C,R,F,j,V,B,k,N,U,G,K,le,oe,ue,Le,ce,W,Z,ee,te;let we="";e&&(!((m=(h=d?.video)===null||h===void 0?void 0:h.bindProducts)===null||m===void 0)&&m.length||!((S=d?.video)===null||S===void 0)&&S.bindProduct)?we="pdpPage":o?we="hashTagPage":!((A=d?.video)===null||A===void 0)&&A.url?we="videoPage":!((E=d?.video)===null||E===void 0)&&E.imgUrls&&(!((w=(u=d?.video)===null||u===void 0?void 0:u.imgUrls)===null||w===void 0)&&w.length)?we="imagePage":d?.product&&(we="productPage");const Ce=(x=(O=(b=r?.tags)!==null&&b!==void 0?b:(g=(D=(T=d?.video)===null||T===void 0?void 0:T.bindProducts)===null||D===void 0?void 0:D[0])===null||g===void 0?void 0:g.tags)!==null&&O!==void 0?O:(P=d?.video)===null||P===void 0?void 0:P.tags)!==null&&x!==void 0?x:(c=d?.product)===null||c===void 0?void 0:c.tags;let ae=null;!((M=d?.video)===null||M===void 0)&&M.url?ae="video":!((y=d?.video)===null||y===void 0)&&y.imgUrls&&(!((C=(I=d?.video)===null||I===void 0?void 0:I.imgUrls)===null||C===void 0)&&C.length)&&(ae="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(R=r?.itemId)!==null&&R!==void 0?R:"",productName:(F=r?.title)!==null&&F!==void 0?F:"",price:r?.price?r?.price+"":"0",productCollection:(j=r?.collection)!==null&&j!==void 0?j:"",fromKName:we,fromKPage:location?.href,contentTags:Ce?JSON.stringify(Ce):"",position:s+"",contentId:(B=(V=d?.video)===null||V===void 0?void 0:V.itemId)!==null&&B!==void 0?B:"",ctatId:(k=v?.itemId)!==null&&k!==void 0?k:"",traceInfo:(te=(W=(Le=(K=(N=f??r?.traceInfo)!==null&&N!==void 0?N:(G=(U=d?.video)===null||U===void 0?void 0:U.bindProduct)===null||G===void 0?void 0:G.traceInfo)!==null&&K!==void 0?K:(ue=(oe=(le=d?.video)===null||le===void 0?void 0:le.bindProducts)===null||oe===void 0?void 0:oe[0])===null||ue===void 0?void 0:ue.traceInfo)!==null&&Le!==void 0?Le:(ce=d?.product)===null||ce===void 0?void 0:ce.traceInfo)!==null&&W!==void 0?W:(ee=(Z=d?.video)===null||Z===void 0?void 0:Z.bindCta)===null||ee===void 0?void 0:ee.traceInfo)!==null&&te!==void 0?te:""},ae&&{contentFormat:ae})})},[t,e,o]),n=ye((d,r,v,s,f)=>{var h,m,S,A,E,u,w,b,T,D,g,O,P,x;let c="";e&&(!((m=(h=d?.video)===null||h===void 0?void 0:h.bindProducts)===null||m===void 0)&&m.length||!((S=d?.video)===null||S===void 0)&&S.bindProduct)?c="pdpPage":d?.product&&(c="productPage"),t?.({eventInfo:{productId:r?.itemId,productName:r?.title,price:r?.price?r?.price+"":"0",productCollection:r?.collection,fromKName:c,fromKPage:location?.href,contentTags:JSON.stringify(r?.tags),position:f+"",contentId:(A=d?.video)===null||A===void 0?void 0:A.itemId,ctatId:v?.itemId,traceInfo:(x=(O=(b=(E=r?.traceInfo)!==null&&E!==void 0?E:(w=(u=d?.video)===null||u===void 0?void 0:u.bindProduct)===null||w===void 0?void 0:w.traceInfo)!==null&&b!==void 0?b:(g=(D=(T=d?.video)===null||T===void 0?void 0:T.bindProducts)===null||D===void 0?void 0:D[0])===null||g===void 0?void 0:g.traceInfo)!==null&&O!==void 0?O:(P=d?.product)===null||P===void 0?void 0:P.traceInfo)!==null&&x!==void 0?x:"",timeOnSite:Math.floor((new Date-s)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),a=ye((d,r,v,s)=>{r&&r===ii&&t?.({eventInfo:{lastFeed:d,themeTags:v?`['${v}']`:"",hashTags:s?`['${s}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:n,backMainFeed:a}}const En=({layout:t,columns:e,onChange:i})=>p.createElement(p.Fragment,null,e?.map((o,l)=>p.createElement("div",{key:l,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&p.createElement("label",{className:"pb-appoint-form-container-label"},o?.title),o?.valueType==="text"&&p.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?o?.title:"\u8BF7\u8F93\u5165",name:o?.dataIndex},i&&{onChange:i})))));var In=_e(En);const Cn=t=>{var e,i,{columns:o,style:l,title:n,textStyle:a,submitBgColor:d,submitColor:r,submitText:v,layoutType:s="inline",isExternalLink:f,isPopup:h,onClick:m,onClose:S,submitButtonStyle:A}=t,E=Ze(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:u,popupDetailData:w}=Me(),{jumpToWeb:b}=it(),[T,D]=Y(!1),[g,O]=Y({}),[P,x]=Y(0),c=ve(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),M=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),y=ve(()=>$t(o)||c,[o,c]),I=ye(R=>{const{name:F,value:j}=R.target;O(Object.assign(Object.assign({},g),{[F]:j}))},[g]),C=hi(()=>at(void 0,void 0,void 0,function*(){var R,F,j,V,B;const k=g;if(!k)return;const N=(F=(R=Object.keys(k))===null||R===void 0?void 0:R.map(G=>{var K;return{name:G,value:(K=k[G])!==null&&K!==void 0?K:""}}))===null||F===void 0?void 0:F.filter(G=>G?.value);if(!N||!N?.length)return;D(!0);const U=yield u?.({attributes:N});if(D(!1),U){if(f){const G=w,K=(j=G?.video)===null||j===void 0?void 0:j.bindProduct,le=(B=(V=G?.video)===null||V===void 0?void 0:V.bindProduct)===null||B===void 0?void 0:B.bindCta,oe=w?.index;b(G,K,le,oe)}h||S?.(),m?.()}}),1e3);return ge(()=>{const R=()=>{var F,j;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((j=document?.body)===null||j===void 0?void 0:j.clientHeight))<M?x(50):x(0)};return window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}},[]),p.createElement("div",{className:"pb-appoint-form"},p.createElement("div",{className:`pb-appoint-form-title ${Ee(Object.assign({},a))}`,dangerouslySetInnerHTML:{__html:xe(n,a)}}),p.createElement("div",Object.assign({className:Ee(Object.assign(Object.assign({},l),{marginTop:P}))},E),p.createElement("div",{className:"pb-appoint-form-container"},p.createElement(In,{columns:y,layout:s,onChange:I}))),p.createElement("div",{className:"pb-appoint-form-btn-wrapper"},p.createElement("button",{"aria-label":v,onClick:C,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:d},A),dangerouslySetInnerHTML:{__html:xe(T?"loading...":v,A)}})))};var kn=_e(Cn);function ot(t,e){return t.extend=e,t}const _n=ot(kn,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:An,bindableProps:[],interactionRender:Tn},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 Pn=[{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"]}]},{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}]}]},{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"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color"},{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 po(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function xi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:po(e[i])&&po(t[i])&&Object.keys(e[i]).length>0&&xi(t[i],e[i])})}const mo={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 Et(){const t=typeof document<"u"?document:{};return xi(t,mo),t}const Dn={document:mo,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 rt(){const t=typeof window<"u"?window:{};return xi(t,Dn),t}function Rt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function On(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function jt(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function bt(){return Date.now()}function Mn(t){const e=rt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Ln(t,e){e===void 0&&(e="x");const i=rt();let o,l,n;const a=Mn(t);return i.WebKitCSSMatrix?(l=a.transform||a.webkitTransform,l.split(",").length>6&&(l=l.split(", ").map(d=>d.replace(",",".")).join(", ")),n=new i.WebKitCSSMatrix(l==="none"?"":l)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=n.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?l=n.m41:o.length===16?l=parseFloat(o[12]):l=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?l=n.m42:o.length===16?l=parseFloat(o[13]):l=parseFloat(o[5])),l||0}function ni(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Rn(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function vt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const o=i<0||arguments.length<=i?void 0:arguments[i];if(o!=null&&!Rn(o)){const l=Object.keys(Object(o)).filter(n=>e.indexOf(n)<0);for(let n=0,a=l.length;n<a;n+=1){const d=l[n],r=Object.getOwnPropertyDescriptor(o,d);r!==void 0&&r.enumerable&&(ni(t[d])&&ni(o[d])?o[d].__swiper__?t[d]=o[d]:vt(t[d],o[d]):!ni(t[d])&&ni(o[d])?(t[d]={},o[d].__swiper__?t[d]=o[d]:vt(t[d],o[d])):t[d]=o[d])}}}return t}function li(t,e,i){t.style.setProperty(e,i)}function fo(t){let{swiper:e,targetPosition:i,side:o}=t;const l=rt(),n=-e.translate;let a=null,d;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const v=i>n?"next":"prev",s=(h,m)=>v==="next"&&h>=m||v==="prev"&&h<=m,f=()=>{d=new Date().getTime(),a===null&&(a=d);const h=Math.max(Math.min((d-a)/r,1),0),m=.5-Math.cos(h*Math.PI)/2;let S=n+m*(i-n);if(s(S,i)&&(S=i),e.wrapperEl.scrollTo({[o]:S}),s(S,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:S})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(f)};f()}function Ct(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function ai(t){try{console.warn(t);return}catch{}}function Jt(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Rt(e)),i}function Bn(t){const e=rt(),i=Et(),o=t.getBoundingClientRect(),l=i.body,n=t.clientTop||l.clientTop||0,a=t.clientLeft||l.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:o.top+d-n,left:o.left+r-a}}function Nn(t,e){const i=[];for(;t.previousElementSibling;){const o=t.previousElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Fn(t,e){const i=[];for(;t.nextElementSibling;){const o=t.nextElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Bt(t,e){return rt().getComputedStyle(t,null).getPropertyValue(e)}function di(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function ho(t,e){const i=[];let o=t.parentElement;for(;o;)e?o.matches(e)&&i.push(o):i.push(o),o=o.parentElement;return i}function Ti(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function Ai(t,e,i){const o=rt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function kt(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function jn(t){let{swiper:e,extendParams:i,on:o,emit:l}=t;const n=rt();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,d=bt(),r;const v=[];function s(b){let O=0,P=0,x=0,c=0;return"detail"in b&&(P=b.detail),"wheelDelta"in b&&(P=-b.wheelDelta/120),"wheelDeltaY"in b&&(P=-b.wheelDeltaY/120),"wheelDeltaX"in b&&(O=-b.wheelDeltaX/120),"axis"in b&&b.axis===b.HORIZONTAL_AXIS&&(O=P,P=0),x=O*10,c=P*10,"deltaY"in b&&(c=b.deltaY),"deltaX"in b&&(x=b.deltaX),b.shiftKey&&!x&&(x=c,c=0),(x||c)&&b.deltaMode&&(b.deltaMode===1?(x*=40,c*=40):(x*=800,c*=800)),x&&!O&&(O=x<1?-1:1),c&&!P&&(P=c<1?-1:1),{spinX:O,spinY:P,pixelX:x,pixelY:c}}function f(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function m(b){return e.params.mousewheel.thresholdDelta&&b.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&bt()-d<e.params.mousewheel.thresholdTime?!1:b.delta>=6&&bt()-d<60?!0:(b.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),l("scroll",b.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),l("scroll",b.raw)),d=new n.Date().getTime(),!1)}function S(b){const T=e.params.mousewheel;if(b.direction<0){if(e.isEnd&&!e.params.loop&&T.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&T.releaseOnEdges)return!0;return!1}function A(b){let T=b,D=!0;if(!e.enabled||b.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const g=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let O=e.el;e.params.mousewheel.eventsTarget!=="container"&&(O=document.querySelector(e.params.mousewheel.eventsTarget));const P=O&&O.contains(T.target);if(!e.mouseEntered&&!P&&!g.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let x=0;const c=e.rtlTranslate?-1:1,M=s(T);if(g.forceToAxis)if(e.isHorizontal())if(Math.abs(M.pixelX)>Math.abs(M.pixelY))x=-M.pixelX*c;else return!0;else if(Math.abs(M.pixelY)>Math.abs(M.pixelX))x=-M.pixelY;else return!0;else x=Math.abs(M.pixelX)>Math.abs(M.pixelY)?-M.pixelX*c:-M.pixelY;if(x===0)return!0;g.invert&&(x=-x);let y=e.getTranslate()+x*g.sensitivity;if(y>=e.minTranslate()&&(y=e.minTranslate()),y<=e.maxTranslate()&&(y=e.maxTranslate()),D=e.params.loop?!0:!(y===e.minTranslate()||y===e.maxTranslate()),D&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const I={time:bt(),delta:Math.abs(x),direction:Math.sign(x),raw:b};v.length>=2&&v.shift();const C=v.length?v[v.length-1]:void 0;if(v.push(I),C?(I.direction!==C.direction||I.delta>C.delta||I.time>C.time+150)&&m(I):m(I),S(I))return!0}else{const I={time:bt(),delta:Math.abs(x),direction:Math.sign(x)},C=r&&I.time<r.time+500&&I.delta<=r.delta&&I.direction===r.direction;if(!C){r=void 0;let R=e.getTranslate()+x*g.sensitivity;const F=e.isBeginning,j=e.isEnd;if(R>=e.minTranslate()&&(R=e.minTranslate()),R<=e.maxTranslate()&&(R=e.maxTranslate()),e.setTransition(0),e.setTranslate(R),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!j&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:I.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,v.length>=15&&v.shift();const V=v.length?v[v.length-1]:void 0,B=v[0];if(v.push(I),V&&(I.delta>V.delta||I.direction!==V.direction))v.splice(0);else if(v.length>=15&&I.time-B.time<500&&B.delta-I.delta>=1&&I.delta<=6){const k=x>0?.8:.2;r=I,v.splice(0),a=jt(()=>{e.slideToClosest(e.params.speed,!0,void 0,k)},0)}a||(a=jt(()=>{r=I,v.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(C||l("scroll",T),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),g.releaseOnEdges&&(R===e.minTranslate()||R===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function E(b){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[b]("mouseenter",f),T[b]("mouseleave",h),T[b]("wheel",A)}function u(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",A),!0):e.mousewheel.enabled?!1:(E("addEventListener"),e.mousewheel.enabled=!0,!0)}function w(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,A),!0):e.mousewheel.enabled?(E("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&w(),e.params.mousewheel.enabled&&u()}),o("destroy",()=>{e.params.cssMode&&u(),e.mousewheel.enabled&&w()}),Object.assign(e.mousewheel,{enable:u,disable:w})}function go(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(l=>{if(!i[l]&&i.auto===!0){let n=Ct(t.el,`.${o[l]}`)[0];n||(n=Jt("div",o[l]),n.className=o[l],t.el.append(n)),i[l]=n,e[l]=n}}),i}function Vt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function ri(t){let{swiper:e,extendParams:i,on:o,emit:l}=t;const n="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:u=>u,formatFractionTotal:u=>u,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),e.pagination={el:null,bullets:[]};let a,d=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function v(u,w){const{bulletActiveClass:b}=e.params.pagination;u&&(u=u[`${w==="prev"?"previous":"next"}ElementSibling`],u&&(u.classList.add(`${b}-${w}`),u=u[`${w==="prev"?"previous":"next"}ElementSibling`],u&&u.classList.add(`${b}-${w}-${w}`)))}function s(u){const w=u.target.closest(Vt(e.params.pagination.bulletClass));if(!w)return;u.preventDefault();const b=di(w)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===b)return;e.slideToLoop(b)}else e.slideTo(b)}function f(){const u=e.rtl,w=e.params.pagination;if(r())return;let b=e.pagination.el;b=kt(b);let T,D;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,O=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(D=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,D=e.previousSnapIndex):(D=e.previousIndex||0,T=e.activeIndex||0),w.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const P=e.pagination.bullets;let x,c,M;if(w.dynamicBullets&&(a=Ai(P[0],e.isHorizontal()?"width":"height",!0),b.forEach(y=>{y.style[e.isHorizontal()?"width":"height"]=`${a*(w.dynamicMainBullets+4)}px`}),w.dynamicMainBullets>1&&D!==void 0&&(d+=T-(D||0),d>w.dynamicMainBullets-1?d=w.dynamicMainBullets-1:d<0&&(d=0)),x=Math.max(T-d,0),c=x+(Math.min(P.length,w.dynamicMainBullets)-1),M=(c+x)/2),P.forEach(y=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(C=>`${w.bulletActiveClass}${C}`)].map(C=>typeof C=="string"&&C.includes(" ")?C.split(" "):C).flat();y.classList.remove(...I)}),b.length>1)P.forEach(y=>{const I=di(y);I===T?y.classList.add(...w.bulletActiveClass.split(" ")):e.isElement&&y.setAttribute("part","bullet"),w.dynamicBullets&&(I>=x&&I<=c&&y.classList.add(...`${w.bulletActiveClass}-main`.split(" ")),I===x&&v(y,"prev"),I===c&&v(y,"next"))});else{const y=P[T];if(y&&y.classList.add(...w.bulletActiveClass.split(" ")),e.isElement&&P.forEach((I,C)=>{I.setAttribute("part",C===T?"bullet-active":"bullet")}),w.dynamicBullets){const I=P[x],C=P[c];for(let R=x;R<=c;R+=1)P[R]&&P[R].classList.add(...`${w.bulletActiveClass}-main`.split(" "));v(I,"prev"),v(C,"next")}}if(w.dynamicBullets){const y=Math.min(P.length,w.dynamicMainBullets+4),I=(a*y-a)/2-M*a,C=u?"right":"left";P.forEach(R=>{R.style[e.isHorizontal()?C:"top"]=`${I}px`})}}b.forEach((P,x)=>{if(w.type==="fraction"&&(P.querySelectorAll(Vt(w.currentClass)).forEach(c=>{c.textContent=w.formatFractionCurrent(T+1)}),P.querySelectorAll(Vt(w.totalClass)).forEach(c=>{c.textContent=w.formatFractionTotal(O)})),w.type==="progressbar"){let c;w.progressbarOpposite?c=e.isHorizontal()?"vertical":"horizontal":c=e.isHorizontal()?"horizontal":"vertical";const M=(T+1)/O;let y=1,I=1;c==="horizontal"?y=M:I=M,P.querySelectorAll(Vt(w.progressbarFillClass)).forEach(C=>{C.style.transform=`translate3d(0,0,0) scaleX(${y}) scaleY(${I})`,C.style.transitionDuration=`${e.params.speed}ms`})}w.type==="custom"&&w.renderCustom?(P.innerHTML=w.renderCustom(e,T+1,O),x===0&&l("paginationRender",P)):(x===0&&l("paginationRender",P),l("paginationUpdate",P)),e.params.watchOverflow&&e.enabled&&P.classList[e.isLocked?"add":"remove"](w.lockClass)})}function h(){const u=e.params.pagination;if(r())return;const w=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 b=e.pagination.el;b=kt(b);let T="";if(u.type==="bullets"){let D=e.params.loop?Math.ceil(w/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&D>w&&(D=w);for(let g=0;g<D;g+=1)u.renderBullet?T+=u.renderBullet.call(e,g,u.bulletClass):T+=`<${u.bulletElement} ${e.isElement?'part="bullet"':""} class="${u.bulletClass}"></${u.bulletElement}>`}u.type==="fraction"&&(u.renderFraction?T=u.renderFraction.call(e,u.currentClass,u.totalClass):T=`<span class="${u.currentClass}"></span> / <span class="${u.totalClass}"></span>`),u.type==="progressbar"&&(u.renderProgressbar?T=u.renderProgressbar.call(e,u.progressbarFillClass):T=`<span class="${u.progressbarFillClass}"></span>`),e.pagination.bullets=[],b.forEach(D=>{u.type!=="custom"&&(D.innerHTML=T||""),u.type==="bullets"&&e.pagination.bullets.push(...D.querySelectorAll(Vt(u.bulletClass)))}),u.type!=="custom"&&l("paginationRender",b[0])}function m(){e.params.pagination=go(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const u=e.params.pagination;if(!u.el)return;let w;typeof u.el=="string"&&e.isElement&&(w=e.el.querySelector(u.el)),!w&&typeof u.el=="string"&&(w=[...document.querySelectorAll(u.el)]),w||(w=u.el),!(!w||w.length===0)&&(e.params.uniqueNavElements&&typeof u.el=="string"&&Array.isArray(w)&&w.length>1&&(w=[...e.el.querySelectorAll(u.el)],w.length>1&&(w=w.filter(b=>ho(b,".swiper")[0]===e.el)[0])),Array.isArray(w)&&w.length===1&&(w=w[0]),Object.assign(e.pagination,{el:w}),w=kt(w),w.forEach(b=>{u.type==="bullets"&&u.clickable&&b.classList.add(...(u.clickableClass||"").split(" ")),b.classList.add(u.modifierClass+u.type),b.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass),u.type==="bullets"&&u.dynamicBullets&&(b.classList.add(`${u.modifierClass}${u.type}-dynamic`),d=0,u.dynamicMainBullets<1&&(u.dynamicMainBullets=1)),u.type==="progressbar"&&u.progressbarOpposite&&b.classList.add(u.progressbarOppositeClass),u.clickable&&b.addEventListener("click",s),e.enabled||b.classList.add(u.lockClass)}))}function S(){const u=e.params.pagination;if(r())return;let w=e.pagination.el;w&&(w=kt(w),w.forEach(b=>{b.classList.remove(u.hiddenClass),b.classList.remove(u.modifierClass+u.type),b.classList.remove(e.isHorizontal()?u.horizontalClass:u.verticalClass),u.clickable&&(b.classList.remove(...(u.clickableClass||"").split(" ")),b.removeEventListener("click",s))})),e.pagination.bullets&&e.pagination.bullets.forEach(b=>b.classList.remove(...u.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const u=e.params.pagination;let{el:w}=e.pagination;w=kt(w),w.forEach(b=>{b.classList.remove(u.horizontalClass,u.verticalClass),b.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?E():(m(),h(),f())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),o("snapIndexChange",()=>{f()}),o("snapGridLengthChange",()=>{h(),f()}),o("destroy",()=>{S()}),o("enable disable",()=>{let{el:u}=e.pagination;u&&(u=kt(u),u.forEach(w=>w.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{f()}),o("click",(u,w)=>{const b=w.target,T=kt(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&T&&T.length>0&&!b.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&b===e.navigation.nextEl||e.navigation.prevEl&&b===e.navigation.prevEl))return;const D=T[0].classList.contains(e.params.pagination.hiddenClass);l(D===!0?"paginationShow":"paginationHide"),T.forEach(g=>g.classList.toggle(e.params.pagination.hiddenClass))}});const A=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:u}=e.pagination;u&&(u=kt(u),u.forEach(w=>w.classList.remove(e.params.pagination.paginationDisabledClass))),m(),h(),f()},E=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:u}=e.pagination;u&&(u=kt(u),u.forEach(w=>w.classList.add(e.params.pagination.paginationDisabledClass))),S()};Object.assign(e.pagination,{enable:A,disable:E,render:h,update:f,init:m,destroy:S})}function Vn(t){let{swiper:e,extendParams:i,on:o,emit:l}=t;const n=Et();let a=!1,d=null,r=null,v,s,f,h;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:y,rtlTranslate:I}=e,{dragEl:C,el:R}=y,F=e.params.scrollbar,j=e.params.loop?e.progressLoop:e.progress;let V=s,B=(f-s)*j;I?(B=-B,B>0?(V=s-B,B=0):-B+s>f&&(V=f+B)):B<0?(V=s+B,B=0):B+s>f&&(V=f-B),e.isHorizontal()?(C.style.transform=`translate3d(${B}px, 0, 0)`,C.style.width=`${V}px`):(C.style.transform=`translate3d(0px, ${B}px, 0)`,C.style.height=`${V}px`),F.hide&&(clearTimeout(d),R.style.opacity=1,d=setTimeout(()=>{R.style.opacity=0,R.style.transitionDuration="400ms"},1e3))}function S(y){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${y}ms`)}function A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:y}=e,{dragEl:I,el:C}=y;I.style.width="",I.style.height="",f=e.isHorizontal()?C.offsetWidth:C.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?s=f*h:s=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?I.style.width=`${s}px`:I.style.height=`${s}px`,h>=1?C.style.display="none":C.style.display="",e.params.scrollbar.hide&&(C.style.opacity=0),e.params.watchOverflow&&e.enabled&&y.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function E(y){return e.isHorizontal()?y.clientX:y.clientY}function u(y){const{scrollbar:I,rtlTranslate:C}=e,{el:R}=I;let F;F=(E(y)-Bn(R)[e.isHorizontal()?"left":"top"]-(v!==null?v:s/2))/(f-s),F=Math.max(Math.min(F,1),0),C&&(F=1-F);const j=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(j),e.setTranslate(j),e.updateActiveIndex(),e.updateSlidesClasses()}function w(y){const I=e.params.scrollbar,{scrollbar:C,wrapperEl:R}=e,{el:F,dragEl:j}=C;a=!0,v=y.target===j?E(y)-y.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,y.preventDefault(),y.stopPropagation(),R.style.transitionDuration="100ms",j.style.transitionDuration="100ms",u(y),clearTimeout(r),F.style.transitionDuration="0ms",I.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),l("scrollbarDragStart",y)}function b(y){const{scrollbar:I,wrapperEl:C}=e,{el:R,dragEl:F}=I;a&&(y.preventDefault&&y.cancelable?y.preventDefault():y.returnValue=!1,u(y),C.style.transitionDuration="0ms",R.style.transitionDuration="0ms",F.style.transitionDuration="0ms",l("scrollbarDragMove",y))}function T(y){const I=e.params.scrollbar,{scrollbar:C,wrapperEl:R}=e,{el:F}=C;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",R.style.transitionDuration=""),I.hide&&(clearTimeout(r),r=jt(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),l("scrollbarDragEnd",y),I.snapOnRelease&&e.slideToClosest())}function D(y){const{scrollbar:I,params:C}=e,R=I.el;if(!R)return;const F=R,j=C.passiveListeners?{passive:!1,capture:!1}:!1,V=C.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const B=y==="on"?"addEventListener":"removeEventListener";F[B]("pointerdown",w,j),n[B]("pointermove",b,j),n[B]("pointerup",T,V)}function g(){!e.params.scrollbar.el||!e.scrollbar.el||D("on")}function O(){!e.params.scrollbar.el||!e.scrollbar.el||D("off")}function P(){const{scrollbar:y,el:I}=e;e.params.scrollbar=go(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const C=e.params.scrollbar;if(!C.el)return;let R;if(typeof C.el=="string"&&e.isElement&&(R=e.el.querySelector(C.el)),!R&&typeof C.el=="string"){if(R=n.querySelectorAll(C.el),!R.length)return}else R||(R=C.el);e.params.uniqueNavElements&&typeof C.el=="string"&&R.length>1&&I.querySelectorAll(C.el).length===1&&(R=I.querySelector(C.el)),R.length>0&&(R=R[0]),R.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass);let F;R&&(F=R.querySelector(Vt(e.params.scrollbar.dragClass)),F||(F=Jt("div",e.params.scrollbar.dragClass),R.append(F))),Object.assign(y,{el:R,dragEl:F}),C.draggable&&g(),R&&R.classList[e.enabled?"remove":"add"](...Rt(e.params.scrollbar.lockClass))}function x(){const y=e.params.scrollbar,I=e.scrollbar.el;I&&I.classList.remove(...Rt(e.isHorizontal()?y.horizontalClass:y.verticalClass)),O()}o("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const y=e.params.scrollbar;let{el:I}=e.scrollbar;I=kt(I),I.forEach(C=>{C.classList.remove(y.horizontalClass,y.verticalClass),C.classList.add(e.isHorizontal()?y.horizontalClass:y.verticalClass)})}),o("init",()=>{e.params.scrollbar.enabled===!1?M():(P(),A(),m())}),o("update resize observerUpdate lock unlock changeDirection",()=>{A()}),o("setTranslate",()=>{m()}),o("setTransition",(y,I)=>{S(I)}),o("enable disable",()=>{const{el:y}=e.scrollbar;y&&y.classList[e.enabled?"remove":"add"](...Rt(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const c=()=>{e.el.classList.remove(...Rt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Rt(e.params.scrollbar.scrollbarDisabledClass)),P(),A(),m()},M=()=>{e.el.classList.add(...Rt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Rt(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:c,disable:M,updateSize:A,setTranslate:m,init:P,destroy:x})}function si(t){let{swiper:e,extendParams:i,on:o,emit:l,params:n}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,d,r=n&&n.autoplay?n.autoplay.delay:3e3,v=n&&n.autoplay?n.autoplay.delay:3e3,s,f=new Date().getTime(),h,m,S,A,E,u,w;function b(V){!e||e.destroyed||!e.wrapperEl||V.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),!(w||V.detail&&V.detail.bySwiperTouchMove)&&c())}const T=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(v=s,h=!1);const V=e.autoplay.paused?s:f+v-new Date().getTime();e.autoplay.timeLeft=V,l("autoplayTimeLeft",V,V/r),d=requestAnimationFrame(()=>{T()})},D=()=>{let V;return e.virtual&&e.params.virtual.enabled?V=e.slides.filter(k=>k.classList.contains("swiper-slide-active"))[0]:V=e.slides[e.activeIndex],V?parseInt(V.getAttribute("data-swiper-autoplay"),10):void 0},g=V=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(d),T();let B=typeof V>"u"?e.params.autoplay.delay:V;r=e.params.autoplay.delay,v=e.params.autoplay.delay;const k=D();!Number.isNaN(k)&&k>0&&typeof V>"u"&&(B=k,r=k,v=k),s=B;const N=e.params.speed,U=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),l("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),l("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{g()})))};return B>0?(clearTimeout(a),a=setTimeout(()=>{U()},B)):requestAnimationFrame(()=>{U()}),B},O=()=>{f=new Date().getTime(),e.autoplay.running=!0,g(),l("autoplayStart")},P=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),l("autoplayStop")},x=(V,B)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),V||(u=!0);const k=()=>{l("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):c()};if(e.autoplay.paused=!0,B){E&&(s=e.params.autoplay.delay),E=!1,k();return}s=(s||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&s<0&&!e.params.loop)&&(s<0&&(s=0),k())},c=()=>{e.isEnd&&s<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),u?(u=!1,g(s)):g(),e.autoplay.paused=!1,l("autoplayResume"))},M=()=>{if(e.destroyed||!e.autoplay.running)return;const V=Et();V.visibilityState==="hidden"&&(u=!0,x(!0)),V.visibilityState==="visible"&&c()},y=V=>{V.pointerType==="mouse"&&(u=!0,w=!0,!(e.animating||e.autoplay.paused)&&x(!0))},I=V=>{V.pointerType==="mouse"&&(w=!1,e.autoplay.paused&&c())},C=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",y),e.el.addEventListener("pointerleave",I))},R=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",y),e.el.removeEventListener("pointerleave",I))},F=()=>{Et().addEventListener("visibilitychange",M)},j=()=>{Et().removeEventListener("visibilitychange",M)};o("init",()=>{e.params.autoplay.enabled&&(C(),F(),O())}),o("destroy",()=>{R(),j(),e.autoplay.running&&P()}),o("_freeModeStaticRelease",()=>{(S||u)&&c()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?P():x(!0,!0)}),o("beforeTransitionStart",(V,B,k)=>{e.destroyed||!e.autoplay.running||(k||!e.params.autoplay.disableOnInteraction?x(!0,!0):P())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){P();return}m=!0,S=!1,u=!1,A=setTimeout(()=>{u=!0,S=!0,x(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(A),clearTimeout(a),e.params.autoplay.disableOnInteraction){S=!1,m=!1;return}S&&e.params.cssMode&&c(),S=!1,m=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(E=!0)}),Object.assign(e.autoplay,{start:O,stop:P,pause:x,resume:c})}function zn(t){let{swiper:e,extendParams:i,emit:o,once:l}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function n(){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 a(){if(e.params.cssMode)return;const{touchEventsData:r,touches:v}=e;r.velocities.length===0&&r.velocities.push({position:v[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:v[e.isHorizontal()?"currentX":"currentY"],time:bt()})}function d(r){let{currentPos:v}=r;if(e.params.cssMode)return;const{params:s,wrapperEl:f,rtlTranslate:h,snapGrid:m,touchEventsData:S}=e,E=bt()-S.touchStartTime;if(v<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(v>-e.maxTranslate()){e.slides.length<m.length?e.slideTo(m.length-1):e.slideTo(e.slides.length-1);return}if(s.freeMode.momentum){if(S.velocities.length>1){const P=S.velocities.pop(),x=S.velocities.pop(),c=P.position-x.position,M=P.time-x.time;e.velocity=c/M,e.velocity/=2,Math.abs(e.velocity)<s.freeMode.minimumVelocity&&(e.velocity=0),(M>150||bt()-P.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=s.freeMode.momentumVelocityRatio,S.velocities.length=0;let u=1e3*s.freeMode.momentumRatio;const w=e.velocity*u;let b=e.translate+w;h&&(b=-b);let T=!1,D;const g=Math.abs(e.velocity)*20*s.freeMode.momentumBounceRatio;let O;if(b<e.maxTranslate())s.freeMode.momentumBounce?(b+e.maxTranslate()<-g&&(b=e.maxTranslate()-g),D=e.maxTranslate(),T=!0,S.allowMomentumBounce=!0):b=e.maxTranslate(),s.loop&&s.centeredSlides&&(O=!0);else if(b>e.minTranslate())s.freeMode.momentumBounce?(b-e.minTranslate()>g&&(b=e.minTranslate()+g),D=e.minTranslate(),T=!0,S.allowMomentumBounce=!0):b=e.minTranslate(),s.loop&&s.centeredSlides&&(O=!0);else if(s.freeMode.sticky){let P;for(let x=0;x<m.length;x+=1)if(m[x]>-b){P=x;break}Math.abs(m[P]-b)<Math.abs(m[P-1]-b)||e.swipeDirection==="next"?b=m[P]:b=m[P-1],b=-b}if(O&&l("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?u=Math.abs((-b-e.translate)/e.velocity):u=Math.abs((b-e.translate)/e.velocity),s.freeMode.sticky){const P=Math.abs((h?-b:b)-e.translate),x=e.slidesSizesGrid[e.activeIndex];P<x?u=s.speed:P<2*x?u=s.speed*1.5:u=s.speed*2.5}}else if(s.freeMode.sticky){e.slideToClosest();return}s.freeMode.momentumBounce&&T?(e.updateProgress(D),e.setTransition(u),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating=!0,Ti(f,()=>{!e||e.destroyed||!S.allowMomentumBounce||(o("momentumBounce"),e.setTransition(s.speed),setTimeout(()=>{e.setTranslate(D),Ti(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(b),e.setTransition(u),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Ti(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(b),e.updateActiveIndex(),e.updateSlidesClasses()}else if(s.freeMode.sticky){e.slideToClosest();return}else s.freeMode&&o("_freeModeNoMomentumRelease");(!s.freeMode.momentum||E>=s.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:n,onTouchMove:a,onTouchEnd:d}})}let Ei;function Hn(){const t=rt(),e=Et();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function bo(){return Ei||(Ei=Hn()),Ei}let Ii;function Gn(t){let{userAgent:e}=t===void 0?{}:t;const i=bo(),o=rt(),l=o.navigator.platform,n=e||o.navigator.userAgent,a={ios:!1,android:!1},d=o.screen.width,r=o.screen.height,v=n.match(/(Android);?[\s\/]+([\d.]+)?/);let s=n.match(/(iPad).*OS\s([\d_]+)/);const f=n.match(/(iPod)(.*OS\s([\d_]+))?/),h=!s&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=l==="Win32";let S=l==="MacIntel";const A=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!s&&S&&i.touch&&A.indexOf(`${d}x${r}`)>=0&&(s=n.match(/(Version)\/([\d.]+)/),s||(s=[0,1,"13_0_0"]),S=!1),v&&!m&&(a.os="android",a.android=!0),(s||h||f)&&(a.os="ios",a.ios=!0),a}function yo(t){return t===void 0&&(t={}),Ii||(Ii=Gn(t)),Ii}let Ci;function Un(){const t=rt(),e=yo();let i=!1;function o(){const d=t.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}if(o()){const d=String(t.navigator.userAgent);if(d.includes("Version/")){const[r,v]=d.split("Version/")[1].split(" ")[0].split(".").map(s=>Number(s));i=r<16||r===16&&v<2}}const l=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),n=o(),a=n||l&&e.ios;return{isSafari:i||n,needPerspectiveFix:i,need3dFix:a,isWebView:l}}function Wn(){return Ci||(Ci=Un()),Ci}function Yn(t){let{swiper:e,on:i,emit:o}=t;const l=rt();let n=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(f=>{a=l.requestAnimationFrame(()=>{const{width:h,height:m}=e;let S=h,A=m;f.forEach(E=>{let{contentBoxSize:u,contentRect:w,target:b}=E;b&&b!==e.el||(S=w?w.width:(u[0]||u).inlineSize,A=w?w.height:(u[0]||u).blockSize)}),(S!==h||A!==m)&&d()})}),n.observe(e.el))},v=()=>{a&&l.cancelAnimationFrame(a),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},s=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){r();return}l.addEventListener("resize",d),l.addEventListener("orientationchange",s)}),i("destroy",()=>{v(),l.removeEventListener("resize",d),l.removeEventListener("orientationchange",s)})}function Xn(t){let{swiper:e,extendParams:i,on:o,emit:l}=t;const n=[],a=rt(),d=function(s,f){f===void 0&&(f={});const h=a.MutationObserver||a.WebkitMutationObserver,m=new h(S=>{if(e.__preventObserver__)return;if(S.length===1){l("observerUpdate",S[0]);return}const A=function(){l("observerUpdate",S[0])};a.requestAnimationFrame?a.requestAnimationFrame(A):a.setTimeout(A,0)});m.observe(s,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),n.push(m)},r=()=>{if(e.params.observer){if(e.params.observeParents){const s=ho(e.hostEl);for(let f=0;f<s.length;f+=1)d(s[f])}d(e.hostEl,{childList:e.params.observeSlideChildren}),d(e.wrapperEl,{attributes:!1})}},v=()=>{n.forEach(s=>{s.disconnect()}),n.splice(0,n.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",r),o("destroy",v)}var Jn={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const l=i?"unshift":"push";return t.split(" ").forEach(n=>{o.eventsListeners[n]||(o.eventsListeners[n]=[]),o.eventsListeners[n][l](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function l(){o.off(t,l),l.__emitterProxy&&delete l.__emitterProxy;for(var n=arguments.length,a=new Array(n),d=0;d<n;d++)a[d]=arguments[d];e.apply(o,a)}return l.__emitterProxy=e,o.on(t,l,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const o=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[o](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(o=>{typeof e>"u"?i.eventsListeners[o]=[]:i.eventsListeners[o]&&i.eventsListeners[o].forEach((l,n)=>{(l===e||l.__emitterProxy&&l.__emitterProxy===e)&&i.eventsListeners[o].splice(n,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,o;for(var l=arguments.length,n=new Array(l),a=0;a<l;a++)n[a]=arguments[a];return typeof n[0]=="string"||Array.isArray(n[0])?(e=n[0],i=n.slice(1,n.length),o=t):(e=n[0].events,i=n[0].data,o=n[0].context||t),i.unshift(o),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(v=>{v.apply(o,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(v=>{v.apply(o,i)})}),t}};function qn(){const t=this;let e,i;const o=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=o.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=o.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(Bt(o,"padding-left")||0,10)-parseInt(Bt(o,"padding-right")||0,10),i=i-parseInt(Bt(o,"padding-top")||0,10)-parseInt(Bt(o,"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 Kn(){const t=this;function e(c,M){return parseFloat(c.getPropertyValue(t.getDirectionLabel(M))||0)}const i=t.params,{wrapperEl:o,slidesEl:l,size:n,rtlTranslate:a,wrongRTL:d}=t,r=t.virtual&&i.virtual.enabled,v=r?t.virtual.slides.length:t.slides.length,s=Ct(l,`.${t.params.slideClass}, swiper-slide`),f=r?t.virtual.slides.length:s.length;let h=[];const m=[],S=[];let A=i.slidesOffsetBefore;typeof A=="function"&&(A=i.slidesOffsetBefore.call(t));let E=i.slidesOffsetAfter;typeof E=="function"&&(E=i.slidesOffsetAfter.call(t));const u=t.snapGrid.length,w=t.slidesGrid.length;let b=i.spaceBetween,T=-A,D=0,g=0;if(typeof n>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*n:typeof b=="string"&&(b=parseFloat(b)),t.virtualSize=-b,s.forEach(c=>{a?c.style.marginLeft="":c.style.marginRight="",c.style.marginBottom="",c.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(li(o,"--swiper-centered-offset-before",""),li(o,"--swiper-centered-offset-after",""));const O=i.grid&&i.grid.rows>1&&t.grid;O?t.grid.initSlides(s):t.grid&&t.grid.unsetSlides();let P;const x=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(c=>typeof i.breakpoints[c].slidesPerView<"u").length>0;for(let c=0;c<f;c+=1){P=0;let M;if(s[c]&&(M=s[c]),O&&t.grid.updateSlide(c,M,s),!(s[c]&&Bt(M,"display")==="none")){if(i.slidesPerView==="auto"){x&&(s[c].style[t.getDirectionLabel("width")]="");const y=getComputedStyle(M),I=M.style.transform,C=M.style.webkitTransform;if(I&&(M.style.transform="none"),C&&(M.style.webkitTransform="none"),i.roundLengths)P=t.isHorizontal()?Ai(M,"width",!0):Ai(M,"height",!0);else{const R=e(y,"width"),F=e(y,"padding-left"),j=e(y,"padding-right"),V=e(y,"margin-left"),B=e(y,"margin-right"),k=y.getPropertyValue("box-sizing");if(k&&k==="border-box")P=R+V+B;else{const{clientWidth:N,offsetWidth:U}=M;P=R+F+j+V+B+(U-N)}}I&&(M.style.transform=I),C&&(M.style.webkitTransform=C),i.roundLengths&&(P=Math.floor(P))}else P=(n-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(P=Math.floor(P)),s[c]&&(s[c].style[t.getDirectionLabel("width")]=`${P}px`);s[c]&&(s[c].swiperSlideSize=P),S.push(P),i.centeredSlides?(T=T+P/2+D/2+b,D===0&&c!==0&&(T=T-n/2-b),c===0&&(T=T-n/2-b),Math.abs(T)<1/1e3&&(T=0),i.roundLengths&&(T=Math.floor(T)),g%i.slidesPerGroup===0&&h.push(T),m.push(T)):(i.roundLengths&&(T=Math.floor(T)),(g-Math.min(t.params.slidesPerGroupSkip,g))%t.params.slidesPerGroup===0&&h.push(T),m.push(T),T=T+P+b),t.virtualSize+=P+b,D=P,g+=1}}if(t.virtualSize=Math.max(t.virtualSize,n)+E,a&&d&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+b}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+b}px`),O&&t.grid.updateWrapperSize(P,h),!i.centeredSlides){const c=[];for(let M=0;M<h.length;M+=1){let y=h[M];i.roundLengths&&(y=Math.floor(y)),h[M]<=t.virtualSize-n&&c.push(y)}h=c,Math.floor(t.virtualSize-n)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-n)}if(r&&i.loop){const c=S[0]+b;if(i.slidesPerGroup>1){const M=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),y=c*i.slidesPerGroup;for(let I=0;I<M;I+=1)h.push(h[h.length-1]+y)}for(let M=0;M<t.virtual.slidesBefore+t.virtual.slidesAfter;M+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+c),m.push(m[m.length-1]+c),t.virtualSize+=c}if(h.length===0&&(h=[0]),b!==0){const c=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");s.filter((M,y)=>!i.cssMode||i.loop?!0:y!==s.length-1).forEach(M=>{M.style[c]=`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let c=0;S.forEach(y=>{c+=y+(b||0)}),c-=b;const M=c-n;h=h.map(y=>y<=0?-A:y>M?M+E:y)}if(i.centerInsufficientSlides){let c=0;S.forEach(y=>{c+=y+(b||0)}),c-=b;const M=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(c+M<n){const y=(n-c-M)/2;h.forEach((I,C)=>{h[C]=I-y}),m.forEach((I,C)=>{m[C]=I+y})}}if(Object.assign(t,{slides:s,snapGrid:h,slidesGrid:m,slidesSizesGrid:S}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){li(o,"--swiper-centered-offset-before",`${-h[0]}px`),li(o,"--swiper-centered-offset-after",`${t.size/2-S[S.length-1]/2}px`);const c=-t.snapGrid[0],M=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(y=>y+c),t.slidesGrid=t.slidesGrid.map(y=>y+M)}if(f!==v&&t.emit("slidesLengthChange"),h.length!==u&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==w&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const c=`${i.containerModifierClass}backface-hidden`,M=t.el.classList.contains(c);f<=i.maxBackfaceHiddenSlides?M||t.el.classList.add(c):M&&t.el.classList.remove(c)}}function Zn(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let l=0,n;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=d=>o?e.slides[e.getSlideIndexByData(d)]:e.slides[d];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(d=>{i.push(d)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const d=e.activeIndex+n;if(d>e.slides.length&&!o)break;i.push(a(d))}else i.push(a(e.activeIndex));for(n=0;n<i.length;n+=1)if(typeof i[n]<"u"){const d=i[n].offsetHeight;l=d>l?d:l}(l||l===0)&&(e.wrapperEl.style.height=`${l}px`)}function Qn(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let o=0;o<e.length;o+=1)e[o].swiperSlideOffset=(t.isHorizontal()?e[o].offsetLeft:e[o].offsetTop)-i-t.cssOverflowAdjustment()}const wo=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function $n(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:l,snapGrid:n}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;l&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let d=i.spaceBetween;typeof d=="string"&&d.indexOf("%")>=0?d=parseFloat(d.replace("%",""))/100*e.size:typeof d=="string"&&(d=parseFloat(d));for(let r=0;r<o.length;r+=1){const v=o[r];let s=v.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(s-=o[0].swiperSlideOffset);const f=(a+(i.centeredSlides?e.minTranslate():0)-s)/(v.swiperSlideSize+d),h=(a-n[0]+(i.centeredSlides?e.minTranslate():0)-s)/(v.swiperSlideSize+d),m=-(a-s),S=m+e.slidesSizesGrid[r],A=m>=0&&m<=e.size-e.slidesSizesGrid[r],E=m>=0&&m<e.size-1||S>1&&S<=e.size||m<=0&&S>=e.size;E&&(e.visibleSlides.push(v),e.visibleSlidesIndexes.push(r)),wo(v,E,i.slideVisibleClass),wo(v,A,i.slideFullyVisibleClass),v.progress=l?-f:f,v.originalProgress=l?-h:h}}function el(t){const e=this;if(typeof t>"u"){const s=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*s||0}const i=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:l,isBeginning:n,isEnd:a,progressLoop:d}=e;const r=n,v=a;if(o===0)l=0,n=!0,a=!0;else{l=(t-e.minTranslate())/o;const s=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;n=s||l<=0,a=f||l>=1,s&&(l=0),f&&(l=1)}if(i.loop){const s=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[s],m=e.slidesGrid[f],S=e.slidesGrid[e.slidesGrid.length-1],A=Math.abs(t);A>=h?d=(A-h)/S:d=(A+S-m)/S,d>1&&(d-=1)}Object.assign(e,{progress:l,progressLoop:d,isBeginning:n,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),n&&!r&&e.emit("reachBeginning toEdge"),a&&!v&&e.emit("reachEnd toEdge"),(r&&!n||v&&!a)&&e.emit("fromEdge"),e.emit("progress",l)}const ki=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function tl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:l}=t,n=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,d=f=>Ct(o,`.${i.slideClass}${f}, swiper-slide${f}`)[0];let r,v,s;if(n)if(i.loop){let f=l-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),r=d(`[data-swiper-slide-index="${f}"]`)}else r=d(`[data-swiper-slide-index="${l}"]`);else a?(r=e.filter(f=>f.column===l)[0],s=e.filter(f=>f.column===l+1)[0],v=e.filter(f=>f.column===l-1)[0]):r=e[l];r&&(a||(s=Fn(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!s&&(s=e[0]),v=Nn(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!v===0&&(v=e[e.length-1]))),e.forEach(f=>{ki(f,f===r,i.slideActiveClass),ki(f,f===s,i.slideNextClass),ki(f,f===v,i.slidePrevClass)}),t.emitSlidesClasses()}const ci=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,o=e.closest(i());if(o){let l=o.querySelector(`.${t.params.lazyPreloaderClass}`);!l&&t.isElement&&(o.shadowRoot?l=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(l=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),l&&l.remove())})),l&&l.remove()}},_i=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Pi=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 o=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),l=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=l,d=[a-e];d.push(...Array.from({length:e}).map((r,v)=>a+o+v)),t.slides.forEach((r,v)=>{d.includes(r.column)&&_i(t,v)});return}const n=l+o-1;if(t.params.rewind||t.params.loop)for(let a=l-e;a<=n+e;a+=1){const d=(a%i+i)%i;(d<l||d>n)&&_i(t,d)}else for(let a=Math.max(l-e,0);a<=Math.min(n+e,i-1);a+=1)a!==l&&(a>n||a<l)&&_i(t,a)};function il(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let l;for(let n=0;n<e.length;n+=1)typeof e[n+1]<"u"?o>=e[n]&&o<e[n+1]-(e[n+1]-e[n])/2?l=n:o>=e[n]&&o<e[n+1]&&(l=n+1):o>=e[n]&&(l=n);return i.normalizeSlideIndex&&(l<0||typeof l>"u")&&(l=0),l}function ol(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:l,activeIndex:n,realIndex:a,snapIndex:d}=e;let r=t,v;const s=m=>{let S=m-e.virtual.slidesBefore;return S<0&&(S=e.virtual.slides.length+S),S>=e.virtual.slides.length&&(S-=e.virtual.slides.length),S};if(typeof r>"u"&&(r=il(e)),o.indexOf(i)>=0)v=o.indexOf(i);else{const m=Math.min(l.slidesPerGroupSkip,r);v=m+Math.floor((r-m)/l.slidesPerGroup)}if(v>=o.length&&(v=o.length-1),r===n&&!e.params.loop){v!==d&&(e.snapIndex=v,e.emit("snapIndexChange"));return}if(r===n&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=s(r);return}const f=e.grid&&l.grid&&l.grid.rows>1;let h;if(e.virtual&&l.virtual.enabled&&l.loop)h=s(r);else if(f){const m=e.slides.filter(A=>A.column===r)[0];let S=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(S)&&(S=Math.max(e.slides.indexOf(m),0)),h=Math.floor(S/l.grid.rows)}else if(e.slides[r]){const m=e.slides[r].getAttribute("data-swiper-slide-index");m?h=parseInt(m,10):h=r}else h=r;Object.assign(e,{previousSnapIndex:d,snapIndex:v,previousRealIndex:a,realIndex:h,previousIndex:n,activeIndex:r}),e.initialized&&Pi(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function nl(t,e){const i=this,o=i.params;let l=t.closest(`.${o.slideClass}, swiper-slide`);!l&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!l&&d.matches&&d.matches(`.${o.slideClass}, swiper-slide`)&&(l=d)});let n=!1,a;if(l){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===l){n=!0,a=d;break}}if(l&&n)i.clickedSlide=l,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(l.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var ll={updateSize:qn,updateSlides:Kn,updateAutoHeight:Zn,updateSlidesOffset:Qn,updateSlidesProgress:$n,updateProgress:el,updateSlidesClasses:tl,updateActiveIndex:ol,updateClickedSlide:nl};function al(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:l,wrapperEl:n}=e;if(i.virtualTranslate)return o?-l:l;if(i.cssMode)return l;let a=Ln(n,t);return a+=e.cssOverflowAdjustment(),o&&(a=-a),a||0}function dl(t,e){const i=this,{rtlTranslate:o,params:l,wrapperEl:n,progress:a}=i;let d=0,r=0;const v=0;i.isHorizontal()?d=o?-t:t:r=t,l.roundLengths&&(d=Math.floor(d),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:r,l.cssMode?n[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-r:l.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),n.style.transform=`translate3d(${d}px, ${r}px, ${v}px)`);let s;const f=i.maxTranslate()-i.minTranslate();f===0?s=0:s=(t-i.minTranslate())/f,s!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function rl(){return-this.snapGrid[0]}function sl(){return-this.snapGrid[this.snapGrid.length-1]}function cl(t,e,i,o,l){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),o===void 0&&(o=!0);const n=this,{params:a,wrapperEl:d}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const r=n.minTranslate(),v=n.maxTranslate();let s;if(o&&t>r?s=r:o&&t<v?s=v:s=t,n.updateProgress(s),a.cssMode){const f=n.isHorizontal();if(e===0)d[f?"scrollLeft":"scrollTop"]=-s;else{if(!n.support.smoothScroll)return fo({swiper:n,targetPosition:-s,side:f?"left":"top"}),!0;d.scrollTo({[f?"left":"top"]:-s,behavior:"smooth"})}return!0}return e===0?(n.setTransition(0),n.setTranslate(s),i&&(n.emit("beforeTransitionStart",e,l),n.emit("transitionEnd"))):(n.setTransition(e),n.setTranslate(s),i&&(n.emit("beforeTransitionStart",e,l),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(h){!n||n.destroyed||h.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,n.animating=!1,i&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}var ul={getTranslate:al,setTranslate:dl,minTranslate:rl,maxTranslate:sl,translateTo:cl};function vl(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 So(t){let{swiper:e,runCallbacks:i,direction:o,step:l}=t;const{activeIndex:n,previousIndex:a}=e;let d=o;if(d||(n>a?d="next":n<a?d="prev":d="reset"),e.emit(`transition${l}`),i&&n!==a){if(d==="reset"){e.emit(`slideResetTransition${l}`);return}e.emit(`slideChangeTransition${l}`),d==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`)}}function pl(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),So({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function ml(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),So({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var fl={setTransition:vl,transitionStart:pl,transitionEnd:ml};function hl(t,e,i,o,l){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;let a=t;a<0&&(a=0);const{params:d,snapGrid:r,slidesGrid:v,previousIndex:s,activeIndex:f,rtlTranslate:h,wrapperEl:m,enabled:S}=n;if(!S&&!o&&!l||n.destroyed||n.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=n.params.speed);const A=Math.min(n.params.slidesPerGroupSkip,a);let E=A+Math.floor((a-A)/n.params.slidesPerGroup);E>=r.length&&(E=r.length-1);const u=-r[E];if(d.normalizeSlideIndex)for(let b=0;b<v.length;b+=1){const T=-Math.floor(u*100),D=Math.floor(v[b]*100),g=Math.floor(v[b+1]*100);typeof v[b+1]<"u"?T>=D&&T<g-(g-D)/2?a=b:T>=D&&T<g&&(a=b+1):T>=D&&(a=b)}if(n.initialized&&a!==f&&(!n.allowSlideNext&&(h?u>n.translate&&u>n.minTranslate():u<n.translate&&u<n.minTranslate())||!n.allowSlidePrev&&u>n.translate&&u>n.maxTranslate()&&(f||0)!==a))return!1;a!==(s||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(u);let w;if(a>f?w="next":a<f?w="prev":w="reset",h&&-u===n.translate||!h&&u===n.translate)return n.updateActiveIndex(a),d.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),d.effect!=="slide"&&n.setTranslate(u),w!=="reset"&&(n.transitionStart(i,w),n.transitionEnd(i,w)),!1;if(d.cssMode){const b=n.isHorizontal(),T=h?u:-u;if(e===0){const D=n.virtual&&n.params.virtual.enabled;D&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),D&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[b?"scrollLeft":"scrollTop"]=T})):m[b?"scrollLeft":"scrollTop"]=T,D&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return fo({swiper:n,targetPosition:T,side:b?"left":"top"}),!0;m.scrollTo({[b?"left":"top"]:T,behavior:"smooth"})}return!0}return n.setTransition(e),n.setTranslate(u),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,o),n.transitionStart(i,w),e===0?n.transitionEnd(i,w):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(T){!n||n.destroyed||T.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,w))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function gl(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;if(l.destroyed)return;typeof e>"u"&&(e=l.params.speed);const n=l.grid&&l.params.grid&&l.params.grid.rows>1;let a=t;if(l.params.loop)if(l.virtual&&l.params.virtual.enabled)a=a+l.virtual.slidesBefore;else{let d;if(n){const h=a*l.params.grid.rows;d=l.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===h)[0].column}else d=l.getSlideIndexByData(a);const r=n?Math.ceil(l.slides.length/l.params.grid.rows):l.slides.length,{centeredSlides:v}=l.params;let s=l.params.slidesPerView;s==="auto"?s=l.slidesPerViewDynamic():(s=Math.ceil(parseFloat(l.params.slidesPerView,10)),v&&s%2===0&&(s=s+1));let f=r-d<s;if(v&&(f=f||d<Math.ceil(s/2)),o&&v&&l.params.slidesPerView!=="auto"&&!n&&(f=!1),f){const h=v?d<l.activeIndex?"prev":"next":d-l.activeIndex-1<l.params.slidesPerView?"next":"prev";l.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?d+1:d-r+1,slideRealIndex:h==="next"?l.realIndex:void 0})}if(n){const h=a*l.params.grid.rows;a=l.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===h)[0].column}else a=l.getSlideIndexByData(a)}return requestAnimationFrame(()=>{l.slideTo(a,e,i,o)}),l}function bl(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:l,params:n,animating:a}=o;if(!l||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let d=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(d=Math.max(o.slidesPerViewDynamic("current",!0),1));const r=o.activeIndex<n.slidesPerGroupSkip?1:d,v=o.virtual&&n.virtual.enabled;if(n.loop){if(a&&!v&&n.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&n.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+r,t,e,i)}),!0}return n.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+r,t,e,i)}function yl(t,e,i){e===void 0&&(e=!0);const o=this,{params:l,snapGrid:n,slidesGrid:a,rtlTranslate:d,enabled:r,animating:v}=o;if(!r||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const s=o.virtual&&l.virtual.enabled;if(l.loop){if(v&&!s&&l.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const f=d?o.translate:-o.translate;function h(u){return u<0?-Math.floor(Math.abs(u)):Math.floor(u)}const m=h(f),S=n.map(u=>h(u));let A=n[S.indexOf(m)-1];if(typeof A>"u"&&l.cssMode){let u;n.forEach((w,b)=>{m>=w&&(u=b)}),typeof u<"u"&&(A=n[u>0?u-1:u])}let E=0;if(typeof A<"u"&&(E=a.indexOf(A),E<0&&(E=o.activeIndex-1),l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(E=E-o.slidesPerViewDynamic("previous",!0)+1,E=Math.max(E,0))),l.rewind&&o.isBeginning){const u=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(u,t,e,i)}else if(l.loop&&o.activeIndex===0&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(E,t,e,i)}),!0;return o.slideTo(E,t,e,i)}function wl(t,e,i){e===void 0&&(e=!0);const o=this;if(!o.destroyed)return typeof t>"u"&&(t=o.params.speed),o.slideTo(o.activeIndex,t,e,i)}function Sl(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const l=this;if(l.destroyed)return;typeof t>"u"&&(t=l.params.speed);let n=l.activeIndex;const a=Math.min(l.params.slidesPerGroupSkip,n),d=a+Math.floor((n-a)/l.params.slidesPerGroup),r=l.rtlTranslate?l.translate:-l.translate;if(r>=l.snapGrid[d]){const v=l.snapGrid[d],s=l.snapGrid[d+1];r-v>(s-v)*o&&(n+=l.params.slidesPerGroup)}else{const v=l.snapGrid[d-1],s=l.snapGrid[d];r-v<=(s-v)*o&&(n-=l.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,l.slidesGrid.length-1),l.slideTo(n,t,e,i)}function xl(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let l=t.clickedIndex,n;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;n=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?l<t.loopedSlides-o/2||l>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),l=t.getSlideIndex(Ct(i,`${a}[data-swiper-slide-index="${n}"]`)[0]),jt(()=>{t.slideTo(l)})):t.slideTo(l):l>t.slides.length-o?(t.loopFix(),l=t.getSlideIndex(Ct(i,`${a}[data-swiper-slide-index="${n}"]`)[0]),jt(()=>{t.slideTo(l)})):t.slideTo(l)}else t.slideTo(l)}var Tl={slideTo:hl,slideToLoop:gl,slideNext:bl,slidePrev:yl,slideReset:wl,slideToClosest:Sl,slideToClickedSlide:xl};function Al(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const l=()=>{Ct(o,`.${i.slideClass}, swiper-slide`).forEach((f,h)=>{f.setAttribute("data-swiper-slide-index",h)})},n=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(n?i.grid.rows:1),d=e.slides.length%a!==0,r=n&&e.slides.length%i.grid.rows!==0,v=s=>{for(let f=0;f<s;f+=1){const h=e.isElement?Jt("swiper-slide",[i.slideBlankClass]):Jt("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(d){if(i.loopAddBlankSlides){const s=a-e.slides.length%a;v(s),e.recalcSlides(),e.updateSlides()}else ai("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)");l()}else if(r){if(i.loopAddBlankSlides){const s=i.grid.rows-e.slides.length%i.grid.rows;v(s),e.recalcSlides(),e.updateSlides()}else ai("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)");l()}else l();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function El(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:l,activeSlideIndex:n,byController:a,byMousewheel:d}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:v,allowSlidePrev:s,allowSlideNext:f,slidesEl:h,params:m}=r,{centeredSlides:S}=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=s,r.allowSlideNext=f,r.emit("loopFix");return}let A=m.slidesPerView;A==="auto"?A=r.slidesPerViewDynamic():(A=Math.ceil(parseFloat(m.slidesPerView,10)),S&&A%2===0&&(A=A+1));const E=m.slidesPerGroupAuto?A:m.slidesPerGroup;let u=E;u%E!==0&&(u+=E-u%E),u+=m.loopAdditionalSlides,r.loopedSlides=u;const w=r.grid&&m.grid&&m.grid.rows>1;v.length<A+u?ai("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"):w&&m.grid.fill==="row"&&ai("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],T=[];let D=r.activeIndex;typeof n>"u"?n=r.getSlideIndex(v.filter(I=>I.classList.contains(m.slideActiveClass))[0]):D=n;const g=o==="next"||!o,O=o==="prev"||!o;let P=0,x=0;const c=w?Math.ceil(v.length/m.grid.rows):v.length,y=(w?v[n].column:n)+(S&&typeof l>"u"?-A/2+.5:0);if(y<u){P=Math.max(u-y,E);for(let I=0;I<u-y;I+=1){const C=I-Math.floor(I/c)*c;if(w){const R=c-C-1;for(let F=v.length-1;F>=0;F-=1)v[F].column===R&&b.push(F)}else b.push(c-C-1)}}else if(y+A>c-u){x=Math.max(y-(c-u*2),E);for(let I=0;I<x;I+=1){const C=I-Math.floor(I/c)*c;w?v.forEach((R,F)=>{R.column===C&&T.push(F)}):T.push(C)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),O&&b.forEach(I=>{v[I].swiperLoopMoveDOM=!0,h.prepend(v[I]),v[I].swiperLoopMoveDOM=!1}),g&&T.forEach(I=>{v[I].swiperLoopMoveDOM=!0,h.append(v[I]),v[I].swiperLoopMoveDOM=!1}),r.recalcSlides(),m.slidesPerView==="auto"?r.updateSlides():w&&(b.length>0&&O||T.length>0&&g)&&r.slides.forEach((I,C)=>{r.grid.updateSlide(C,I,r.slides)}),m.watchSlidesProgress&&r.updateSlidesOffset(),i){if(b.length>0&&O){if(typeof e>"u"){const I=r.slidesGrid[D],R=r.slidesGrid[D+P]-I;d?r.setTranslate(r.translate-R):(r.slideTo(D+Math.ceil(P),0,!1,!0),l&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-R,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-R))}else if(l){const I=w?b.length/m.grid.rows:b.length;r.slideTo(r.activeIndex+I,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(T.length>0&&g)if(typeof e>"u"){const I=r.slidesGrid[D],R=r.slidesGrid[D-x]-I;d?r.setTranslate(r.translate-R):(r.slideTo(D-x,0,!1,!0),l&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-R,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-R))}else{const I=w?T.length/m.grid.rows:T.length;r.slideTo(r.activeIndex-I,0,!1,!0)}}if(r.allowSlidePrev=s,r.allowSlideNext=f,r.controller&&r.controller.control&&!a){const I={slideRealIndex:e,direction:o,setTranslate:l,activeSlideIndex:n,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(C=>{!C.destroyed&&C.params.loop&&C.loopFix({...I,slideTo:C.params.slidesPerView===m.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...I,slideTo:r.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}r.emit("loopFix")}function Il(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const o=[];t.slides.forEach(l=>{const n=typeof l.swiperSlideIndex>"u"?l.getAttribute("data-swiper-slide-index")*1:l.swiperSlideIndex;o[n]=l}),t.slides.forEach(l=>{l.removeAttribute("data-swiper-slide-index")}),o.forEach(l=>{i.append(l)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Cl={loopCreate:Al,loopFix:El,loopDestroy:Il};function kl(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 _l(){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 Pl={setGrabCursor:kl,unsetGrabCursor:_l};function Dl(t,e){e===void 0&&(e=this);function i(o){if(!o||o===Et()||o===rt())return null;o.assignedSlot&&(o=o.assignedSlot);const l=o.closest(t);return!l&&!o.getRootNode?null:l||i(o.getRootNode().host)}return i(e)}function xo(t,e,i){const o=rt(),{params:l}=t,n=l.edgeSwipeDetection,a=l.edgeSwipeThreshold;return n&&(i<=a||i>=o.innerWidth-a)?n==="prevent"?(e.preventDefault(),!0):!1:!0}function Ol(t){const e=this,i=Et();let o=t;o.originalEvent&&(o=o.originalEvent);const l=e.touchEventsData;if(o.type==="pointerdown"){if(l.pointerId!==null&&l.pointerId!==o.pointerId)return;l.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(l.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){xo(e,o,o.targetTouches[0].pageX);return}const{params:n,touches:a,enabled:d}=e;if(!d||!n.simulateTouch&&o.pointerType==="mouse"||e.animating&&n.preventInteractionOnTransition)return;!e.animating&&n.cssMode&&n.loop&&e.loopFix();let r=o.target;if(n.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in o&&o.which===3||"button"in o&&o.button>0||l.isTouched&&l.isMoved)return;const v=!!n.noSwipingClass&&n.noSwipingClass!=="",s=o.composedPath?o.composedPath():o.path;v&&o.target&&o.target.shadowRoot&&s&&(r=s[0]);const f=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,h=!!(o.target&&o.target.shadowRoot);if(n.noSwiping&&(h?Dl(f,r):r.closest(f))){e.allowClick=!0;return}if(n.swipeHandler&&!r.closest(n.swipeHandler))return;a.currentX=o.pageX,a.currentY=o.pageY;const m=a.currentX,S=a.currentY;if(!xo(e,o,m))return;Object.assign(l,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=S,l.touchStartTime=bt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(l.allowThresholdMove=!1);let A=!0;r.matches(l.focusableElements)&&(A=!1,r.nodeName==="SELECT"&&(l.isTouched=!1)),i.activeElement&&i.activeElement.matches(l.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const E=A&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||E)&&!r.isContentEditable&&o.preventDefault(),n.freeMode&&n.freeMode.enabled&&e.freeMode&&e.animating&&!n.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function Ml(t){const e=Et(),i=this,o=i.touchEventsData,{params:l,touches:n,rtlTranslate:a,enabled:d}=i;if(!d||!l.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(o.touchId!==null||r.pointerId!==o.pointerId))return;let v;if(r.type==="touchmove"){if(v=[...r.changedTouches].filter(g=>g.identifier===o.touchId)[0],!v||v.identifier!==o.touchId)return}else v=r;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",r);return}const s=v.pageX,f=v.pageY;if(r.preventedByNestedSwiper){n.startX=s,n.startY=f;return}if(!i.allowTouchMove){r.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(n,{startX:s,startY:f,currentX:s,currentY:f}),o.touchStartTime=bt());return}if(l.touchReleaseOnEdges&&!l.loop){if(i.isVertical()){if(f<n.startY&&i.translate<=i.maxTranslate()||f>n.startY&&i.translate>=i.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(s<n.startX&&i.translate<=i.maxTranslate()||s>n.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",r),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=s,n.currentY=f;const h=n.currentX-n.startX,m=n.currentY-n.startY;if(i.params.threshold&&Math.sqrt(h**2+m**2)<i.params.threshold)return;if(typeof o.isScrolling>"u"){let g;i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?o.isScrolling=!1:h*h+m*m>=25&&(g=Math.atan2(Math.abs(m),Math.abs(h))*180/Math.PI,o.isScrolling=i.isHorizontal()?g>l.touchAngle:90-g>l.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",r),typeof o.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(o.startMoving=!0),o.isScrolling||r.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!l.cssMode&&r.cancelable&&r.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&r.stopPropagation();let S=i.isHorizontal()?h:m,A=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;l.oneWayMovement&&(S=Math.abs(S)*(a?1:-1),A=Math.abs(A)*(a?1:-1)),n.diff=S,S*=l.touchRatio,a&&(S=-S,A=-A);const E=i.touchesDirection;i.swipeDirection=S>0?"prev":"next",i.touchesDirection=A>0?"prev":"next";const u=i.params.loop&&!l.cssMode,w=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!o.isMoved){if(u&&w&&i.loopFix({direction:i.swipeDirection}),o.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const g=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(g)}o.allowMomentumBounce=!1,l.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let b;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&E!==i.touchesDirection&&u&&w&&Math.abs(S)>=1){Object.assign(n,{startX:s,startY:f,currentX:s,currentY:f,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",r),o.isMoved=!0,o.currentTranslate=S+o.startTranslate;let T=!0,D=l.resistanceRatio;if(l.touchReleaseOnEdges&&(D=0),S>0?(u&&w&&!b&&o.allowThresholdMove&&o.currentTranslate>(l.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(T=!1,l.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+S)**D))):S<0&&(u&&w&&!b&&o.allowThresholdMove&&o.currentTranslate<(l.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(l.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(T=!1,l.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-S)**D))),T&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(o.currentTranslate=o.startTranslate),l.threshold>0)if(Math.abs(S)>l.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,o.currentTranslate=o.startTranslate,n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{o.currentTranslate=o.startTranslate;return}!l.followFinger||l.cssMode||((l.freeMode&&l.freeMode.enabled&&i.freeMode||l.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function Ll(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let l;if(o.type==="touchend"||o.type==="touchcancel"){if(l=[...o.changedTouches].filter(D=>D.identifier===i.touchId)[0],!l||l.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;l=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:d,rtlTranslate:r,slidesGrid:v,enabled:s}=e;if(!s||!a.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=bt(),h=f-i.touchStartTime;if(e.allowClick){const D=o.path||o.composedPath&&o.composedPath();e.updateClickedSlide(D&&D[0]||o.target,D),e.emit("tap click",o),h<300&&f-i.lastClickTime<300&&e.emit("doubleTap doubleClick",o)}if(i.lastClickTime=bt(),jt(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||d.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let m;if(a.followFinger?m=r?e.translate:-e.translate:m=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const S=m>=-e.maxTranslate()&&!e.params.loop;let A=0,E=e.slidesSizesGrid[0];for(let D=0;D<v.length;D+=D<a.slidesPerGroupSkip?1:a.slidesPerGroup){const g=D<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof v[D+g]<"u"?(S||m>=v[D]&&m<v[D+g])&&(A=D,E=v[D+g]-v[D]):(S||m>=v[D])&&(A=D,E=v[v.length-1]-v[v.length-2])}let u=null,w=null;a.rewind&&(e.isBeginning?w=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(u=0));const b=(m-v[A])/E,T=A<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(h>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?u:A+T):e.slideTo(A)),e.swipeDirection==="prev"&&(b>1-a.longSwipesRatio?e.slideTo(A+T):w!==null&&b<0&&Math.abs(b)>a.longSwipesRatio?e.slideTo(w):e.slideTo(A))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(o.target===e.navigation.nextEl||o.target===e.navigation.prevEl)?o.target===e.navigation.nextEl?e.slideTo(A+T):e.slideTo(A):(e.swipeDirection==="next"&&e.slideTo(u!==null?u:A+T),e.swipeDirection==="prev"&&e.slideTo(w!==null?w:A))}}function To(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:l,snapGrid:n}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const d=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!d?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=l,t.allowSlideNext=o,t.params.watchOverflow&&n!==t.snapGrid&&t.checkOverflow()}function Rl(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Bl(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:o}=t;if(!o)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 l;const n=t.maxTranslate()-t.minTranslate();n===0?l=0:l=(t.translate-t.minTranslate())/n,l!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Nl(t){const e=this;ci(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Fl(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Ao=(t,e)=>{const i=Et(),{params:o,el:l,wrapperEl:n,device:a}=t,d=!!o.nested,r=e==="on"?"addEventListener":"removeEventListener",v=e;!l||typeof l=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),l[r]("touchstart",t.onTouchStart,{passive:!1}),l[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:d}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:d}),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}),(o.preventClicks||o.preventClicksPropagation)&&l[r]("click",t.onClick,!0),o.cssMode&&n[r]("scroll",t.onScroll),o.updateOnWindowResize?t[v](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",To,!0):t[v]("observerUpdate",To,!0),l[r]("load",t.onLoad,{capture:!0}))};function jl(){const t=this,{params:e}=t;t.onTouchStart=Ol.bind(t),t.onTouchMove=Ml.bind(t),t.onTouchEnd=Ll.bind(t),t.onDocumentTouchStart=Fl.bind(t),e.cssMode&&(t.onScroll=Bl.bind(t)),t.onClick=Rl.bind(t),t.onLoad=Nl.bind(t),Ao(t,"on")}function Vl(){Ao(this,"off")}var zl={attachEvents:jl,detachEvents:Vl};const Eo=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Hl(){const t=this,{realIndex:e,initialized:i,params:o,el:l}=t,n=o.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const a=t.getBreakpoint(n,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const r=(a in n?n[a]:void 0)||t.originalParams,v=Eo(t,o),s=Eo(t,r),f=t.params.grabCursor,h=r.grabCursor,m=o.enabled;v&&!s?(l.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!v&&s&&(l.classList.add(`${o.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&o.grid.fill==="column")&&l.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),f&&!h?t.unsetGrabCursor():!f&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(b=>{if(typeof r[b]>"u")return;const T=o[b]&&o[b].enabled,D=r[b]&&r[b].enabled;T&&!D&&t[b].disable(),!T&&D&&t[b].enable()});const S=r.direction&&r.direction!==o.direction,A=o.loop&&(r.slidesPerView!==o.slidesPerView||S),E=o.loop;S&&i&&t.changeDirection(),vt(t.params,r);const u=t.params.enabled,w=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!u?t.disable():!m&&u&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",r),i&&(A?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!E&&w?(t.loopCreate(e),t.updateSlides()):E&&!w&&t.loopDestroy()),t.emit("breakpoint",r)}function Gl(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const l=rt(),n=e==="window"?l.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const r=parseFloat(d.substr(1));return{value:n*r,point:d}}return{value:d,point:d}});a.sort((d,r)=>parseInt(d.value,10)-parseInt(r.value,10));for(let d=0;d<a.length;d+=1){const{point:r,value:v}=a[d];e==="window"?l.matchMedia(`(min-width: ${v}px)`).matches&&(o=r):v<=i.clientWidth&&(o=r)}return o||"max"}var Ul={setBreakpoint:Hl,getBreakpoint:Gl};function Wl(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(l=>{o[l]&&i.push(e+l)}):typeof o=="string"&&i.push(e+o)}),i}function Yl(){const t=this,{classNames:e,params:i,rtl:o,el:l,device:n}=t,a=Wl(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:o},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),l.classList.add(...e),t.emitContainerClasses()}function Xl(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Jl={addClasses:Yl,removeClasses:Xl};function ql(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const l=t.slides.length-1,n=t.slidesGrid[l]+t.slidesSizesGrid[l]+o*2;t.isLocked=t.size>n}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Kl={checkOverflow:ql},Di={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 Zl(t,e){return function(o){o===void 0&&(o={});const l=Object.keys(o)[0],n=o[l];if(typeof n!="object"||n===null){vt(e,o);return}if(t[l]===!0&&(t[l]={enabled:!0}),l==="navigation"&&t[l]&&t[l].enabled&&!t[l].prevEl&&!t[l].nextEl&&(t[l].auto=!0),["pagination","scrollbar"].indexOf(l)>=0&&t[l]&&t[l].enabled&&!t[l].el&&(t[l].auto=!0),!(l in t&&"enabled"in n)){vt(e,o);return}typeof t[l]=="object"&&!("enabled"in t[l])&&(t[l].enabled=!0),t[l]||(t[l]={enabled:!1}),vt(e,o)}}const Oi={eventsEmitter:Jn,update:ll,translate:ul,transition:fl,slide:Tl,loop:Cl,grabCursor:Pl,events:zl,breakpoints:Ul,checkOverflow:Kl,classes:Jl},Mi={};let Li=class Lt{constructor(){let e,i;for(var o=arguments.length,l=new Array(o),n=0;n<o;n++)l[n]=arguments[n];l.length===1&&l[0].constructor&&Object.prototype.toString.call(l[0]).slice(8,-1)==="Object"?i=l[0]:[e,i]=l,i||(i={}),i=vt({},i),e&&!i.el&&(i.el=e);const a=Et();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const s=[];return a.querySelectorAll(i.el).forEach(f=>{const h=vt({},i,{el:f});s.push(new Lt(h))}),s}const d=this;d.__swiper__=!0,d.support=bo(),d.device=yo({userAgent:i.userAgent}),d.browser=Wn(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],i.modules&&Array.isArray(i.modules)&&d.modules.push(...i.modules);const r={};d.modules.forEach(s=>{s({params:i,swiper:d,extendParams:Zl(i,r),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const v=vt({},Di,r);return d.params=vt({},v,Mi,i),d.originalParams=vt({},d.params),d.passedParams=vt({},i),d.params&&d.params.on&&Object.keys(d.params.on).forEach(s=>{d.on(s,d.params.on[s])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return d.params.direction==="horizontal"},isVertical(){return d.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:d.params.allowSlideNext,allowSlidePrev:d.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:o}=this,l=Ct(i,`.${o.slideClass}, swiper-slide`),n=di(l[0]);return di(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:o}=e;e.slides=Ct(i,`.${o.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 o=this;e=Math.min(Math.max(e,0),1);const l=o.minTranslate(),a=(o.maxTranslate()-l)*e+l;o.translateTo(a,typeof i>"u"?0:i),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(o=>{const l=e.getSlideClasses(o);i.push({slideEl:o,classNames:l}),e.emit("_slideClass",o,l)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:l,slides:n,slidesGrid:a,slidesSizesGrid:d,size:r,activeIndex:v}=o;let s=1;if(typeof l.slidesPerView=="number")return l.slidesPerView;if(l.centeredSlides){let f=n[v]?Math.ceil(n[v].swiperSlideSize):0,h;for(let m=v+1;m<n.length;m+=1)n[m]&&!h&&(f+=Math.ceil(n[m].swiperSlideSize),s+=1,f>r&&(h=!0));for(let m=v-1;m>=0;m-=1)n[m]&&!h&&(f+=n[m].swiperSlideSize,s+=1,f>r&&(h=!0))}else if(e==="current")for(let f=v+1;f<n.length;f+=1)(i?a[f]+d[f]-a[v]<r:a[f]-a[v]<r)&&(s+=1);else for(let f=v-1;f>=0;f-=1)a[v]-a[f]<r&&(s+=1);return s}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:o}=e;o.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&ci(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function l(){const a=e.rtlTranslate?e.translate*-1:e.translate,d=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(d),e.updateActiveIndex(),e.updateSlidesClasses()}let n;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)l(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const a=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(a.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||l()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,l=o.params.direction;return e||(e=l==="horizontal"?"vertical":"horizontal"),e===l||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${l}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(n=>{e==="vertical"?n.style.width="":n.style.height=""}),o.emit("changeDirection"),i&&o.update()),o}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 o=e||i.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=i,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const l=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(l()):Ct(o,l())[0];return!a&&i.params.createElements&&(a=Jt("div",i.params.wrapperClass),o.append(a),Ct(o,`.${i.params.slideClass}`).forEach(d=>{a.append(d)})),Object.assign(i,{el:o,wrapperEl:a,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:a,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||Bt(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||Bt(o,"direction")==="rtl"),wrongRTL:Bt(a,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const l=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&l.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),l.forEach(n=>{n.complete?ci(i,n):n.addEventListener("load",a=>{ci(i,a.target)})}),Pi(i),i.initialized=!0,Pi(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const o=this,{params:l,el:n,wrapperEl:a,slides:d}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),l.loop&&o.loopDestroy(),i&&(o.removeClasses(),n&&typeof n!="string"&&n.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(r=>{r.classList.remove(l.slideVisibleClass,l.slideFullyVisibleClass,l.slideActiveClass,l.slideNextClass,l.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(r=>{o.off(r)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),On(o)),o.destroyed=!0),null}static extendDefaults(e){vt(Mi,e)}static get extendedDefaults(){return Mi}static get defaults(){return Di}static installModule(e){Lt.prototype.__modules__||(Lt.prototype.__modules__=[]);const i=Lt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Lt.installModule(i)),Lt):(Lt.installModule(e),Lt)}};Object.keys(Oi).forEach(t=>{Object.keys(Oi[t]).forEach(e=>{Li.prototype[e]=Oi[t][e]})}),Li.use([Yn,Xn]);const Io=["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 Nt(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function zt(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>i.indexOf(o)<0).forEach(o=>{typeof t[o]>"u"?t[o]=e[o]:Nt(e[o])&&Nt(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:zt(t[o],e[o]):t[o]=e[o]})}function Co(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function ko(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function _o(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Po(t){t===void 0&&(t="");const e=t.split(" ").map(o=>o.trim()).filter(o=>!!o),i=[];return e.forEach(o=>{i.indexOf(o)<0&&i.push(o)}),i.join(" ")}function Ql(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function $l(t){let{swiper:e,slides:i,passedParams:o,changedParams:l,nextEl:n,prevEl:a,scrollbarEl:d,paginationEl:r}=t;const v=l.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:s,pagination:f,navigation:h,scrollbar:m,virtual:S,thumbs:A}=e;let E,u,w,b,T,D,g,O;l.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&s.thumbs&&!s.thumbs.swiper&&(E=!0),l.includes("controller")&&o.controller&&o.controller.control&&s.controller&&!s.controller.control&&(u=!0),l.includes("pagination")&&o.pagination&&(o.pagination.el||r)&&(s.pagination||s.pagination===!1)&&f&&!f.el&&(w=!0),l.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||d)&&(s.scrollbar||s.scrollbar===!1)&&m&&!m.el&&(b=!0),l.includes("navigation")&&o.navigation&&(o.navigation.prevEl||a)&&(o.navigation.nextEl||n)&&(s.navigation||s.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(T=!0);const P=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),s[x].prevEl=void 0,s[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),s[x].el=void 0,e[x].el=void 0))};l.includes("loop")&&e.isElement&&(s.loop&&!o.loop?D=!0:!s.loop&&o.loop?g=!0:O=!0),v.forEach(x=>{if(Nt(s[x])&&Nt(o[x]))Object.assign(s[x],o[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in o[x]&&!o[x].enabled&&P(x);else{const c=o[x];(c===!0||c===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?c===!1&&P(x):s[x]=o[x]}}),v.includes("controller")&&!u&&e.controller&&e.controller.control&&s.controller&&s.controller.control&&(e.controller.control=s.controller.control),l.includes("children")&&i&&S&&s.virtual.enabled?(S.slides=i,S.update(!0)):l.includes("virtual")&&S&&s.virtual.enabled&&(i&&(S.slides=i),S.update(!0)),l.includes("children")&&i&&s.loop&&(O=!0),E&&A.init()&&A.update(!0),u&&(e.controller.control=s.controller.control),w&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(s.pagination.el=r),f.init(),f.render(),f.update()),b&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),e.el.appendChild(d)),d&&(s.scrollbar.el=d),m.init(),m.updateSize(),m.setTranslate()),T&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),n.innerHTML=e.hostEl.constructor.nextButtonSvg,n.part.add("button-next"),e.el.appendChild(n)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),n&&(s.navigation.nextEl=n),a&&(s.navigation.prevEl=a),h.init(),h.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),l.includes("direction")&&e.changeDirection(o.direction,!1),(D||O)&&e.loopDestroy(),(g||O)&&e.loopCreate(),e.update()}function ea(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},l={};zt(i,Di),i._emitClasses=!0,i.init=!1;const n={},a=Io.map(r=>r.replace(/_/,"")),d=Object.assign({},t);return Object.keys(d).forEach(r=>{typeof t[r]>"u"||(a.indexOf(r)>=0?Nt(t[r])?(i[r]={},l[r]={},zt(i[r],t[r]),zt(l[r],t[r])):(i[r]=t[r],l[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?o[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:n[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:l,rest:n,events:o}}function ta(t,e){let{el:i,nextEl:o,prevEl:l,paginationEl:n,scrollbarEl:a,swiper:d}=t;Co(e)&&o&&l&&(d.params.navigation.nextEl=o,d.originalParams.navigation.nextEl=o,d.params.navigation.prevEl=l,d.originalParams.navigation.prevEl=l),ko(e)&&n&&(d.params.pagination.el=n,d.originalParams.pagination.el=n),_o(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function ia(t,e,i,o,l){const n=[];if(!e)return n;const a=r=>{n.indexOf(r)<0&&n.push(r)};if(i&&o){const r=o.map(l),v=i.map(l);r.join("")!==v.join("")&&a("children"),o.length!==i.length&&a("children")}return Io.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(Nt(t[r])&&Nt(e[r])){const v=Object.keys(t[r]),s=Object.keys(e[r]);v.length!==s.length?a(r):(v.forEach(f=>{t[r][f]!==e[r][f]&&a(r)}),s.forEach(f=>{t[r][f]!==e[r][f]&&a(r)}))}else t[r]!==e[r]&&a(r)}),n}const oa=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 ui(){return ui=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},ui.apply(this,arguments)}function Do(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Oo(t){const e=[];return p.Children.toArray(t).forEach(i=>{Do(i)?e.push(i):i.props&&i.props.children&&Oo(i.props.children).forEach(o=>e.push(o))}),e}function na(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return p.Children.toArray(t).forEach(o=>{if(Do(o))e.push(o);else if(o.props&&o.props.slot&&i[o.props.slot])i[o.props.slot].push(o);else if(o.props&&o.props.children){const l=Oo(o.props.children);l.length>0?l.forEach(n=>e.push(n)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function la(t,e,i){if(!i)return null;const o=s=>{let f=s;return s<0?f=e.length+s:f>=e.length&&(f=f-e.length),f},l=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:n,to:a}=i,d=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,v=[];for(let s=d;s<r;s+=1)s>=n&&s<=a&&v.push(e[o(s)]);return v.map((s,f)=>p.cloneElement(s,{swiper:t,style:l,key:s.props.virtualIndex||s.key||`slide-${f}`}))}function qt(t,e){return typeof window>"u"?ge(t,e):en(t,e)}const Ri=Xt(null),Mo=()=>Yt(Ri),aa=Xt(null),Ft=ei(function(t,e){let{className:i,tag:o="div",wrapperTag:l="div",children:n,onSwiper:a,...d}=t===void 0?{}:t,r=!1;const[v,s]=Y("swiper"),[f,h]=Y(null),[m,S]=Y(!1),A=fe(!1),E=fe(null),u=fe(null),w=fe(null),b=fe(null),T=fe(null),D=fe(null),g=fe(null),O=fe(null),{params:P,passedParams:x,rest:c,events:M}=ea(d),{slides:y,slots:I}=na(n),C=()=>{S(!m)};Object.assign(P.on,{_containerClasses(B,k){s(k)}});const R=()=>{Object.assign(P.on,M),r=!0;const B={...P};if(delete B.wrapperClass,u.current=new Li(B),u.current.virtual&&u.current.params.virtual.enabled){u.current.virtual.slides=y;const k={cache:!1,slides:y,renderExternal:h,renderExternalUpdate:!1};zt(u.current.params.virtual,k),zt(u.current.originalParams.virtual,k)}};E.current||R(),u.current&&u.current.on("_beforeBreakpoint",C);const F=()=>{r||!M||!u.current||Object.keys(M).forEach(B=>{u.current.on(B,M[B])})},j=()=>{!M||!u.current||Object.keys(M).forEach(B=>{u.current.off(B,M[B])})};ge(()=>()=>{u.current&&u.current.off("_beforeBreakpoint",C)}),ge(()=>{!A.current&&u.current&&(u.current.emitSlidesClasses(),A.current=!0)}),qt(()=>{if(e&&(e.current=E.current),!!E.current)return u.current.destroyed&&R(),ta({el:E.current,nextEl:T.current,prevEl:D.current,paginationEl:g.current,scrollbarEl:O.current,swiper:u.current},P),a&&!u.current.destroyed&&a(u.current),()=>{u.current&&!u.current.destroyed&&u.current.destroy(!0,!1)}},[]),qt(()=>{F();const B=ia(x,w.current,y,b.current,k=>k.key);return w.current=x,b.current=y,B.length&&u.current&&!u.current.destroyed&&$l({swiper:u.current,slides:y,passedParams:x,changedParams:B,nextEl:T.current,prevEl:D.current,scrollbarEl:O.current,paginationEl:g.current}),()=>{j()}}),qt(()=>{oa(u.current)},[f]);function V(){return P.virtual?la(u.current,y,f):y.map((B,k)=>p.cloneElement(B,{swiper:u.current,swiperSlideIndex:k}))}return p.createElement(o,ui({ref:E,className:Po(`${v}${i?` ${i}`:""}`)},c),p.createElement(aa.Provider,{value:u.current},I["container-start"],p.createElement(l,{className:Ql(P.wrapperClass)},I["wrapper-start"],V(),I["wrapper-end"]),Co(P)&&p.createElement(p.Fragment,null,p.createElement("div",{ref:D,className:"swiper-button-prev"}),p.createElement("div",{ref:T,className:"swiper-button-next"})),_o(P)&&p.createElement("div",{ref:O,className:"swiper-scrollbar"}),ko(P)&&p.createElement("div",{ref:g,className:"swiper-pagination"}),I["container-end"]))});Ft.displayName="Swiper";const It=ei(function(t,e){let{tag:i="div",children:o,className:l="",swiper:n,zoom:a,lazy:d,virtualIndex:r,swiperSlideIndex:v,...s}=t===void 0?{}:t;const f=fe(null),[h,m]=Y("swiper-slide"),[S,A]=Y(!1);function E(T,D,g){D===f.current&&m(g)}qt(()=>{if(typeof v<"u"&&(f.current.swiperSlideIndex=v),e&&(e.current=f.current),!(!f.current||!n)){if(n.destroyed){h!=="swiper-slide"&&m("swiper-slide");return}return n.on("_slideClass",E),()=>{n&&n.off("_slideClass",E)}}}),qt(()=>{n&&f.current&&!n.destroyed&&m(n.getSlideClasses(f.current))},[n]);const u={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},w=()=>typeof o=="function"?o(u):o,b=()=>{A(!0)};return p.createElement(i,ui({ref:f,className:Po(`${h}${l?` ${l}`:""}`),"data-swiper-slide-index":r,onLoad:b},s),a&&p.createElement(Ri.Provider,{value:u},p.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},w(),d&&!S&&p.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&p.createElement(Ri.Provider,{value:u},w(),d&&!S&&p.createElement("div",{className:"swiper-lazy-preloader"})))});It.displayName="SwiperSlide";const da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",ra=({visible:t,onClose:e,children:i,modalStyle:o,padding:l,popup:n,schema:a,fullHeight:d=window.innerHeight,isFullScreen:r=!1})=>{var v,s,f,h,m,S,A,E,u,w,b,T,D,g,O,P,x,c,M,y;const I=fe(null),C=fe(null),R=fe(null),F=fe(null),j=d*.2,V=r?d:d*.8,[B,k]=Y(j),[N,U]=Y(!1),G=fe(null),{globalConfig:K,popupDetailData:le}=Me(),{schema:oe}=Tt(),[ue,Le]=Y(15);ge(()=>{const ae=document.getElementById("sxp-render"),be=document.getElementById("pb-modal");be?G.current=be:(G.current=document.createElement("div"),G.current.setAttribute("id","pb-modal"),ae?.appendChild(G.current))},[]);const ce=ve(()=>n?.id&&n?.id!==""||t,[t,n]),W=ve(()=>{var ae,be,Te;const Be=a??oe;return(Te=(be=(ae=Be?.sxpPageConf)===null||ae===void 0?void 0:ae.globalConfig)===null||be===void 0?void 0:be.popupList)===null||Te===void 0?void 0:Te.find(Fe=>Fe?.id===n?.id)},[n,a,oe]),Z=ve(()=>{var ae,be;return((be=(ae=W?.item)===null||ae===void 0?void 0:ae.event)===null||be===void 0?void 0:be.isScrollFullScreen)||!1},[W]);if(ge(()=>{ce?U(!0):setTimeout(()=>{U(!1),k(j)},n?.duration)},[ce,n]),!G.current)return null;const ee=hi(()=>{e?.()},300),te=ae=>{I.current=ae.touches[0],C.current=ae.touches[0],R.current=!0},we=ae=>{requestAnimationFrame(()=>{var be;if(R.current&&((be=F?.current)===null||be===void 0?void 0:be.scrollTop)===0){const Te=ae.touches[0].clientY,Be=ae.touches[0].clientX,Oe=I.current.clientY-Te;I.current=ae.touches[0];const Fe=Te-C.current.clientY,He=Be-C.current.clientX;if(Math.abs(He)>Math.abs(Fe))return;const Q=B-Oe;Q>0&&k(Q)}})},Ce=ae=>{var be;if(R.current&&((be=F?.current)===null||be===void 0?void 0:be.scrollTop)===0){const Te=ae.changedTouches[0].clientY-C.current.clientY,Be=ae.changedTouches[0].clientX-C.current.clientX;if(Math.abs(Be)>Math.abs(Te))return;const Oe=C.current.clientY-I.current.clientY;Oe>0?k(0):B<j&&Oe<0?k(j):B>=j&&Oe<0&&e?.()}R.current=!1};return Wi.createPortal(p.createElement(p.Fragment,null,N&&p.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:ce?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},o),onClick:ee},p.createElement("div",{style:{position:"relative",left:`${(h=(f=(s=(v=W?.item)===null||v===void 0?void 0:v.props)===null||s===void 0?void 0:s.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&h!==void 0?h:0}px`,right:`${(E=(A=(S=(m=W?.item)===null||m===void 0?void 0:m.props)===null||S===void 0?void 0:S.popupBg)===null||A===void 0?void 0:A.horizontalMargin)!==null&&E!==void 0?E:0}px`,bottom:`${(T=(b=(w=(u=W?.item)===null||u===void 0?void 0:u.props)===null||w===void 0?void 0:w.popupBg)===null||b===void 0?void 0:b.bottomMargin)!==null&&T!==void 0?T:0}px`,overflow:"hidden",width:`calc(100% - ${((P=(O=(g=(D=W?.item)===null||D===void 0?void 0:D.props)===null||g===void 0?void 0:g.popupBg)===null||O===void 0?void 0:O.horizontalMargin)!==null&&P!==void 0?P:0)*2}px)`,height:"100%"}},p.createElement("div",Object.assign({className:`modal-container ${ce?"modal-popIn":"modal-popOut"}`,style:Object.assign(Object.assign({padding:l,animationDuration:((x=n?.duration)!==null&&x!==void 0?x:0)/1e3+"s"},Z&&{transform:`translateY(${B}px)`}),{overflow:"hidden"}),onClick:ae=>{ae.stopPropagation(),ae.preventDefault()}},Z&&{onTouchMove:we,onTouchStart:te,onTouchEnd:Ce}),p.createElement("div",{className:"modal-icon-wrapper",onClick:e,style:{top:ue}},p.createElement("img",{src:(c=K?.popupCloseIcon)!==null&&c!==void 0?c:da,alt:"close",className:"modal-icon"})),p.createElement("div",Object.assign({ref:F,style:{height:Z?d:V,overflow:Z&&B<=0||!Z?"auto":"hidden"}},((y=(M=W?.item)===null||M===void 0?void 0:M.props)===null||y===void 0?void 0:y.enableFixedCloseButton)&&{onScroll:ae=>{var be;Le(15-((be=ae?.target)===null||be===void 0?void 0:be.scrollTop))}}),i))))),G.current)};var Ht=_e(ra);const sa=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const o=t.split(" "),l=[];for(let a=0;a<o.length&&(l.push(o[a]),!(l.join(" ").length>=e));a++);return(l.length>1&&l.length<o.length?l.slice(0,l.length-1):l).join(" ")+" "},ca=({text:t,maxStr:e=108,style:i,className:o,onClick:l,foldText:n,unfoldText:a,isPost:d,onChange:r})=>{const[v,s]=Y(!1),[f,h]=Y(!1),m=Number(i?.lineClamp||2),S=fe(null),A=fe(null),E=ye(()=>{s(!v)},[v,r]);return ve(()=>!v&&t.length>e?sa(t,e)+"...":t,[t,e,v]),ge(()=>{var u,w;((u=A?.current)===null||u===void 0?void 0:u.offsetHeight)>((w=S?.current)===null||w===void 0?void 0:w.offsetHeight)&&d?h(!0):h(!1),A.current.style.display="none"},[d]),p.createElement("div",{className:o,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},p.createElement("div",{ref:S,style:{overflow:"hidden",WebkitLineClamp:!d||v?"":m,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:xe(t?.replace(/\n/g,"</br>"),i)}}),p.createElement("div",{ref:A,dangerouslySetInnerHTML:{__html:xe(t?.replace(/\n/g,"</br>"),i)}}),t&&d&&f&&p.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:l??E,dangerouslySetInnerHTML:{__html:xe(v?a||"show less":n||"show more",i)}}))};var vi=_e(ca);const ua=ei((t,e)=>{const{src:i,onLoad:o,style:l,className:n,loading:a,alt:d="image"}=t,[r,v]=Y(i),s=fe(null),[f,h]=Y(!1);return Ui(e,()=>({setSrc:m=>{m&&v(m)}})),ge(()=>{i&&v(i)},[i]),ge(()=>{const m=()=>{i&&!f&&s.current&&(s.current.src="",s.current.src=i)};return At.on(ut.PAGE_DID_SHOW,m),()=>{At.off(ut.PAGE_DID_SHOW,m)}},[i,f]),p.createElement(p.Fragment,null,!f&&!r&&p.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?p.createElement("picture",null,p.createElement("source",{type:"image/avif",srcSet:r}),p.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),p.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),p.createElement("img",{ref:s,className:n,src:r,style:Object.assign({},l),loading:a,onLoad:m=>{h(!0),o?.(m.target)},alt:d})):p.createElement("img",{ref:s,className:n,src:r,style:Object.assign({},l),loading:a,onLoad:m=>{h(!0),o?.(m.target)},alt:d}))});var st=_e(ua);const va=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const l=fe(),{popupDetailData:n}=Me();return ge(()=>{var a,d;o&&((a=l?.current)===null||a===void 0||a.swiper.slideTo((d=n?.multiCheckIndex)!==null&&d!==void 0?d:0))},[n,o]),p.createElement(Ft,{ref:l,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[zn,Vn,jn],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Kt=_e(va);const pa=({products:t,data:e,defImg:i,style:o,onCLick:l,popupDetailData:n,check:a})=>{var d;const{productView:r}=it(),{popupCurTimeRef:v}=Me(),s=(f,h)=>{if(a===h)return;const m=t?.[a];r(n,m,m?.bindCta,v.current,n?.index),l?.(h)};return p.createElement(p.Fragment,null,e?.open&&(t&&t?.length>1||!n)&&p.createElement(Kt,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(d=n?t:[0,1,2,3])===null||d===void 0?void 0:d.map((f,h)=>{var m,S,A;return p.createElement(p.Fragment,null,f?.bindCta?p.createElement(It,{className:Ee({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{s(f,h)},key:h},p.createElement(st,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:a===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(A=(m=f?.cover)!==null&&m!==void 0?m:(S=f?.homePage)===null||S===void 0?void 0:S[0])!==null&&A!==void 0?A:i})):null)})))};var Lo=_e(pa);const ma=t=>{var e,i,o,l,n,a,d,r,v,s,f,h,m,S,A,E,u,w,b,T,D,g,O,P,{content:x,style:c,bgImg:M,onClick:y,schema:I,isDefault:C,bottom_image:R,tipText:F,isPost:j,viewTime:V,rec:B,swiper:k,commodityStyles:N,buttonStyle:U,index:G,commodityGroup:K,popupBg:le,iframeIcon:oe,commodityImgRatio:ue,isTel:Le,iframeBgColor:ce}=t,W=Ze(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor"]);const{sxpParameter:Z,popupDetailData:ee,isPreview:te,bffFbReport:we,popupCurTimeRef:Ce,checkCommodityIndexRef:ae}=Me(),{jumpToWeb:be,productView:Te}=it(),Be=fe(null),[Oe,Fe]=Y(!1),[He,Q]=Y(!1),[pe,ie]=Y((e=ee?.multiCheckIndex)!==null&&e!==void 0?e:0),re=fe(),$=j?B:ee;let L=j?$?.product:(o=(i=$?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&o!==void 0?o:(n=(l=$?.video)===null||l===void 0?void 0:l.bindProducts)===null||n===void 0?void 0:n[0],Ge=j?(a=$?.product)===null||a===void 0?void 0:a.bindCta:(v=(r=(d=$?.video)===null||d===void 0?void 0:d.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&v!==void 0?v:(h=(f=(s=$?.video)===null||s===void 0?void 0:s.bindProducts)===null||f===void 0?void 0:f[0])===null||h===void 0?void 0:h.bindCta;const $e=j?G:ee?.index;if(!j&&K?.open&&(!((m=$?.video)===null||m===void 0)&&m.bindProducts)&&((A=(S=$?.video)===null||S===void 0?void 0:S.bindProducts)===null||A===void 0?void 0:A.length)>0){ae.current=pe;const J=(E=$?.video)===null||E===void 0?void 0:E.bindProducts[pe];L=J,Ge=J?.bindCta}const Qe=()=>{L?.link&&(be($,L,Ge,$e),j||Te($,L,Ge,V||Be.current,$e),window.location.href=window.getJointUtmLink(L.link))};ge(()=>{j||we?.({eventName:"ProductView"})},[j,we]),ge(()=>{const J=()=>{Be.current=new Date};return J(),window.addEventListener("pageshow",J),()=>{window.removeEventListener("pageshow",J)}},[]);const pt=ve(()=>{var J,me,ke,je,We,Ye,et;const lt=((J=N?.price)===null||J===void 0?void 0:J.enableFormattedPrice)===void 0||((me=N?.price)===null||me===void 0?void 0:me.enableFormattedPrice);return L?.currency&&L?.price?`${(We=(je=(ke=L?.currency)===null||ke===void 0?void 0:ke.split("-")[1])===null||je===void 0?void 0:je.toUpperCase())!==null&&We!==void 0?We:""}${lt?(et=(Ye=L?.price)===null||Ye===void 0?void 0:Ye.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&et!==void 0?et:"":L?.price}`:"$7,000"},[L?.price,L?.currency,(u=N?.price)===null||u===void 0?void 0:u.enableFormattedPrice]),nt=(te?375:(w=c?.width)!==null&&w!==void 0?w:window.innerWidth)-((b=le?.horizontalMargin)!==null&&b!==void 0?b:0)*2,mt=ue?nt*(ue.h/ue.w):nt,ft=({isPost:J})=>{var me,ke,je,We;return p.createElement("div",null,p.createElement("div",{className:"pb-commondity-content-collection",style:z(N?.collection),hidden:!!L&&(!L?.collection||L?.collection===""),dangerouslySetInnerHTML:{__html:xe((me=L?.collection)!==null&&me!==void 0?me:"Tiffany Lock",N?.collection)}}),p.createElement("div",{className:"pb-commondity-content-title",style:z(N?.title),hidden:!!L&&!L?.title,dangerouslySetInnerHTML:{__html:xe((ke=L?.title)!==null&&ke!==void 0?ke:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),p.createElement("div",{className:"pb-commondity-content-price",style:z(N?.price),hidden:!!L&&!L?.price,dangerouslySetInnerHTML:{__html:xe(pt,N?.price)}}),p.createElement("div",{hidden:!!L&&!L?.taxInfo,style:z(N?.taxInfo),dangerouslySetInnerHTML:{__html:xe((je=L?.taxInfo)!==null&&je!==void 0?je:"\u7A0E\u8D39",N?.taxInfo)}}),p.createElement("div",{hidden:!!L&&(!L?.info||L?.info==="")},p.createElement(vi,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>Fe(!0),isPost:J,text:(We=L?.info)!==null&&We!==void 0?We:`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
|