pb-sxp-ui 1.0.2 → 1.0.3-alpha.1
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 +1302 -688
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +28 -133
- package/dist/index.js +1302 -688
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -5
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -5
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +1302 -688
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -5
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageCore/index.d.ts +1 -0
- package/es/core/components/SxpPageCore/index.js +2 -2
- package/es/core/components/SxpPageRender/ExpandableText.d.ts +1 -0
- package/es/core/components/SxpPageRender/ExpandableText.js +17 -10
- package/es/core/components/SxpPageRender/Hashtag/index.js +1 -1
- package/es/core/components/SxpPageRender/Modal/index.d.ts +2 -0
- package/es/core/components/SxpPageRender/Modal/index.js +7 -4
- package/es/core/components/SxpPageRender/Nudge/index.d.ts +24 -0
- package/es/core/components/SxpPageRender/Nudge/index.js +13 -0
- package/es/core/components/SxpPageRender/PictureGroup/index.js +11 -7
- package/es/core/components/SxpPageRender/Popup/index.js +3 -3
- package/es/core/components/SxpPageRender/VideoWidget/index.js +30 -21
- package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +4 -3
- package/es/core/components/SxpPageRender/index.d.ts +20 -1
- package/es/core/components/SxpPageRender/index.js +19 -16
- package/es/core/components/SxpPageRender/typing.d.ts +1 -0
- package/es/core/components/SxpPageRender/useIconLink.d.ts +1 -1
- package/es/core/components/SxpPageRender/useIconLink.js +8 -3
- package/es/core/context/EditorContext.d.ts +5 -0
- package/es/core/context/EditorContext.js +21 -3
- package/es/core/context/SxpDataSourceProvider.js +1 -1
- package/es/core/create.d.ts +1 -1
- package/es/materials/sxp/popup/CommodityDetail/index.d.ts +20 -1
- package/es/materials/sxp/popup/CommodityDetail/index.js +44 -21
- package/es/materials/sxp/popup/CommodityDetail/material.js +36 -1
- package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +134 -0
- package/es/materials/sxp/popup/CommodityDetail/settingRender.js +167 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +13 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +20 -17
- package/es/materials/sxp/popup/CommodityDetailDiroNew/material.js +46 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +134 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +171 -0
- package/es/materials/sxp/popup/index.d.ts +0 -1
- package/es/materials/sxp/popup/index.js +0 -1
- package/es/materials/sxp/template/Appoint/index.d.ts +2 -0
- package/es/materials/sxp/template/Appoint/index.js +4 -18
- package/es/materials/sxp/template/Appoint/material.js +22 -6
- package/es/materials/sxp/template/Commodity/index.d.ts +2 -0
- package/es/materials/sxp/template/Commodity/index.js +5 -22
- package/es/materials/sxp/template/Commodity/material.js +31 -6
- package/es/materials/sxp/template/CommodityDiro/index.d.ts +2 -0
- package/es/materials/sxp/template/CommodityDiro/index.js +5 -24
- package/es/materials/sxp/template/CommodityDiro/material.js +30 -5
- package/es/materials/sxp/template/CommodityDiroNew/index.d.ts +2 -0
- package/es/materials/sxp/template/CommodityDiroNew/index.js +5 -24
- package/es/materials/sxp/template/CommodityDiroNew/material.js +32 -6
- package/es/materials/sxp/template/Link/index.d.ts +2 -0
- package/es/materials/sxp/template/Link/index.js +4 -13
- package/es/materials/sxp/template/Link/material.js +22 -5
- package/es/materials/sxp/template/MultiCommodity/index.d.ts +2 -0
- package/es/materials/sxp/template/MultiCommodity/index.js +8 -24
- package/es/materials/sxp/template/MultiCommodity/material.js +30 -5
- package/es/materials/sxp/template/MultiCommodityDiro/index.d.ts +2 -0
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +8 -27
- package/es/materials/sxp/template/MultiCommodityDiro/material.js +31 -6
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.d.ts +2 -0
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +8 -25
- package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +32 -6
- package/es/materials/sxp/template/components/EventProvider.d.ts +2 -1
- package/es/materials/sxp/template/components/EventProvider.js +5 -4
- package/es/materials/sxp/template/components/settingRender.d.ts +108 -0
- package/es/materials/sxp/template/components/settingRender.js +198 -0
- package/es/materials/sxp/template/components/typing.d.ts +6 -0
- package/es/materials/sxp/template/components/typing.js +1 -0
- package/lib/core/components/SxpPageCore/index.d.ts +1 -0
- package/lib/core/components/SxpPageCore/index.js +2 -2
- package/lib/core/components/SxpPageRender/ExpandableText.d.ts +1 -0
- package/lib/core/components/SxpPageRender/ExpandableText.js +17 -10
- package/lib/core/components/SxpPageRender/Hashtag/index.js +1 -1
- package/lib/core/components/SxpPageRender/Modal/index.d.ts +2 -0
- package/lib/core/components/SxpPageRender/Modal/index.js +7 -4
- package/lib/core/components/SxpPageRender/Nudge/index.d.ts +24 -0
- package/lib/core/components/SxpPageRender/Nudge/index.js +16 -0
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +10 -6
- package/lib/core/components/SxpPageRender/Popup/index.js +3 -3
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +30 -21
- package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +3 -2
- package/lib/core/components/SxpPageRender/index.d.ts +20 -1
- package/lib/core/components/SxpPageRender/index.js +19 -16
- package/lib/core/components/SxpPageRender/typing.d.ts +1 -0
- package/lib/core/components/SxpPageRender/useIconLink.d.ts +1 -1
- package/lib/core/components/SxpPageRender/useIconLink.js +8 -3
- package/lib/core/context/EditorContext.d.ts +5 -0
- package/lib/core/context/EditorContext.js +21 -3
- package/lib/core/context/SxpDataSourceProvider.js +1 -1
- package/lib/core/create.d.ts +1 -1
- package/lib/materials/sxp/popup/CommodityDetail/index.d.ts +20 -1
- package/lib/materials/sxp/popup/CommodityDetail/index.js +43 -20
- package/lib/materials/sxp/popup/CommodityDetail/material.js +36 -1
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +134 -0
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +169 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +13 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +20 -17
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/material.js +46 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +134 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +173 -0
- package/lib/materials/sxp/popup/index.d.ts +0 -1
- package/lib/materials/sxp/popup/index.js +0 -1
- package/lib/materials/sxp/template/Appoint/index.d.ts +2 -0
- package/lib/materials/sxp/template/Appoint/index.js +4 -18
- package/lib/materials/sxp/template/Appoint/material.js +22 -6
- package/lib/materials/sxp/template/Commodity/index.d.ts +2 -0
- package/lib/materials/sxp/template/Commodity/index.js +5 -22
- package/lib/materials/sxp/template/Commodity/material.js +31 -6
- package/lib/materials/sxp/template/CommodityDiro/index.d.ts +2 -0
- package/lib/materials/sxp/template/CommodityDiro/index.js +5 -24
- package/lib/materials/sxp/template/CommodityDiro/material.js +30 -5
- package/lib/materials/sxp/template/CommodityDiroNew/index.d.ts +2 -0
- package/lib/materials/sxp/template/CommodityDiroNew/index.js +5 -24
- package/lib/materials/sxp/template/CommodityDiroNew/material.js +32 -6
- package/lib/materials/sxp/template/Link/index.d.ts +2 -0
- package/lib/materials/sxp/template/Link/index.js +4 -13
- package/lib/materials/sxp/template/Link/material.js +22 -5
- package/lib/materials/sxp/template/MultiCommodity/index.d.ts +2 -0
- package/lib/materials/sxp/template/MultiCommodity/index.js +7 -23
- package/lib/materials/sxp/template/MultiCommodity/material.js +30 -5
- package/lib/materials/sxp/template/MultiCommodityDiro/index.d.ts +2 -0
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +7 -26
- package/lib/materials/sxp/template/MultiCommodityDiro/material.js +31 -6
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.d.ts +2 -0
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +7 -24
- package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +32 -6
- package/lib/materials/sxp/template/components/EventProvider.d.ts +2 -1
- package/lib/materials/sxp/template/components/EventProvider.js +4 -3
- package/lib/materials/sxp/template/components/settingRender.d.ts +108 -0
- package/lib/materials/sxp/template/components/settingRender.js +200 -0
- package/lib/materials/sxp/template/components/typing.d.ts +6 -0
- package/lib/materials/sxp/template/components/typing.js +2 -0
- package/package.json +1 -1
package/dist/index.min.cjs
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var de=require("lodash"),mi=require("uuid"),hi=require("pako"),d=require("react"),It=require("qs"),U=require("@emotion/css"),gi=require("@ant-design/pro-components"),bi=require("react-dom"),wi=require("eventemitter3");function yi(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var At=yi(bi);function ve(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]]);return i}function me(t,e,i,n){function o(l){return l instanceof i?l:new i(function(a){a(l)})}return new(i||(i=Promise))(function(l,a){function r(c){try{u(n.next(c))}catch(p){a(p)}}function s(c){try{u(n.throw(c))}catch(p){a(p)}}function u(c){c.done?l(c.value):o(c.value).then(r,s)}u((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Si=/:\w+/g;var Pt=(t,e)=>me(void 0,void 0,void 0,function*(){const i={},n={};for(let o=0;o<e?.length;o++){const{id:l,method:a,url:r,urlParams:s,name:u,queryString:c,headers:p,body:f}=e[o];let m=r;s&&Object.entries(s).forEach(([b,g])=>{m=m.replace(Si,E=>E===b?g:E)}),c&&(m+=c),n[l]=u;try{const b=yield fetch(m,{method:a,headers:Object.assign({"Content-Type":"application/json"},p),body:JSON.stringify(f)}).then(g=>g.json());i[l]=b}catch(b){console.error("DataSource request error: ",b),i[l]={}}}return{$store:i,idMapName:n}});const Dt="SXP_TOKEN_INFO",Ei=(t,e)=>me(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),o=t.getAppId(),l=t.getApiUrl(),a=window.localStorage.getItem(Dt);let r=JSON.parse(a||"{}");if(Date.now()>((i=r?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":o||""}}).then(c=>c.json());if(u.success){const c=u.data;r=Object.assign(Object.assign({},c),{expireTime:Date.now()+c.expire*1e3}),window.localStorage.setItem(Dt,JSON.stringify(r))}}return r});function Xe(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let o;if(e=e||i.length,t)for(o=0;o<t;o++)n[o]=i[0|Math.random()*e];else{let l;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",o=0;o<36;o++)n[o]||(l=0|Math.random()*16,n[o]=i[o===19?l&3|8:l])}return n.join("")}const xi=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let o=0;for(;o<t;)e+=i.charAt(Math.floor(Math.random()*n)),o+=1;return e},Ti=()=>{const t=mi.v4();return t?.replaceAll?t.replaceAll("-",""):xi(32)};function Mt(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),n=new Uint8Array(i),o=hi.inflate(n,{to:"string"});return JSON.parse(o)}let at=null;const Ci={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class _i{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,at)return at;at=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Ci[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let pe=null;const Ii={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{pe||(pe=new _i),n&&pe.setApiUrl(n),pe.setAppId(t),pe.setTenantId(e),pe.setEnv(i)},getDetail:t=>{if(!pe)return;const e=pe.getTenantId(),i=pe.getAppId(),n=pe.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>me(void 0,void 0,void 0,function*(){var l,a;const r=yield o.json(),s=Mt((l=r?.data)===null||l===void 0?void 0:l.data);if(s){const{$store:u}=yield Pt(n,(a=s?.dataSource)!==null&&a!==void 0?a:[]);r.data.data=s,Object.assign(r.data.data,{__STORE__:u})}return r}))},getSxpDetailByPageId:t=>me(void 0,void 0,void 0,function*(){if(!pe)return;const e=pe.getTenantId(),i=pe.getAppId(),n=pe.getApiUrl();return fetch(`${n}/storefront/v1/page?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>me(void 0,void 0,void 0,function*(){var l;const a=yield o.json();if(!a.success)return;const r=Mt((l=a?.data)===null||l===void 0?void 0:l.data);return a.data.data=r,a.data}))}),getSxpRecommendVideoData:t=>me(void 0,void 0,void 0,function*(){if(!pe)return;const e=yield Ei(pe,t),i=Xe(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");de.isEmpty(n)&&(n=Xe(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const o=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return o?.data||null})};function Le(){return d.useContext(zt)}function Ai(){return d.useContext(Ft)}const dt="feRealSessionIdKey",Ot=()=>{const t=Ti();return`${Date.now()}${t}`},Pi=()=>{let t=Mi();return t||(t=Ot(),window.sessionStorage.setItem(dt,t)),t},Di=()=>{const t=Ot();window.sessionStorage.setItem(dt,t)},Mi=()=>window.sessionStorage.getItem(dt),Lt="SXP_FAKE_USER_ID",Oi=()=>{let t=window.localStorage.getItem(Lt);return de.isEmpty(t)&&(t=Xe(36,62),window.localStorage.setItem(Lt,t)),t};function ke(t){const{appDomain:e}=Q();return d.useMemo(()=>e?`https://${e}${t}`:`${window.location.origin}${t}`,[e,t])}const kt=d.createContext({rtcList:[]});var ct;(function(t){t[t.BFF=5]="BFF"})(ct||(ct={}));const Li=["utm_source","utm_medium","utm_campaign","utm_id","utm_content","cl_source"],ki=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:o,defaultSize:l,isPreview:a=!1,sxpParameter:r,appDomain:s,hashTagSize:u,loadingImage:c})=>{const[p,f]=d.useState([]),[m,b]=d.useState(!1),[g,E]=d.useState({rtc:"",requestId:""}),v=d.useRef(null),y=d.useRef(!1),[h,T]=d.useState(),[C,A]=d.useState(),[L,x]=d.useState(!1),[I,S]=d.useState([]),[D,w]=d.useState(0),[P,M]=d.useState(!1),O=d.useMemo(()=>e?.find(j=>j.type===ct.BFF),[e]),_=d.useCallback((j,B)=>{if(!O)return;const q=O.url,le=Oi();if(B?.query){const ne=It.stringify(B.query);j=`${j}?${ne}`}return B.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${q}/api/v1${j}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},O.headers),{"x-user-id":le}),B.body))],{type:"application/json;charset=UTF-8"})):window.fetch(`${q}/api/v1${j}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":le},O.headers),method:B.method,body:JSON.stringify(B.body)}).then(ne=>ne.json()).catch(ne=>Promise.reject(ne))},[O]),z=d.useCallback(j=>me(void 0,void 0,void 0,function*(){var B,q,le,ne;if(j={maxSize:o,defaultSize:(B=j?.defaultSize)!==null&&B!==void 0?B:l,"itemFilter.itemId":j?.["itemFilter.itemId"],"itemFilter.itemType":j?.["itemFilter.itemType"],hashTag:j?.hashTag,traceInfo:j?.traceInfo},i){const X=(ne=(le=(q=i?.split("&"))===null||q===void 0?void 0:q.filter(K=>{const re=K.split("=")[0];return Li.includes(re)}))===null||le===void 0?void 0:le.join("&"))!==null&&ne!==void 0?ne:"";j=Object.assign(Object.assign({},j),{channel:decodeURIComponent(X)})}const se=yield _?.("/recommend/list",{method:"GET",query:j});if(se?.success)return j?.hashTag||E({rtc:se.data.rtc,requestId:se.data.requestId}),se?.data}),[_,i,o,l]),k=d.useCallback(()=>me(void 0,void 0,void 0,function*(){var j,B;if(p.length<=0)return;const q=yield z({hashTag:C?.hashTag,"itemFilter.itemId":C?.itemId,"itemFilter.itemType":C?.itemType});f(p.concat((j=q?.recList)!==null&&j!==void 0?j:[])),S(I.concat((B=q?.recList)!==null&&B!==void 0?B:[]))}),[z,p,C,I]),F=d.useCallback(({userInfo:j,eventInfo:B})=>{if(!n)return;j||(j={});const q=Pi(),le=Object.assign({sessionID:q,rtc:g.rtc,requestId:g.requestId},B),ne=Object.entries(j).map(([X,K])=>({name:X,value:K})),se=Object.entries(le).map(([X,K])=>K&&{name:X,value:K}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",j),console.log("eventInfo:",le),console.log("========= \u7ED3\u675F ========="),_?.("/event/report",{method:"POST",body:{userInfo:ne,eventInfo:se},type:"beacon"})},[_,g,n]),G=d.useCallback(j=>me(void 0,void 0,void 0,function*(){const B=yield _?.("/recommend/like",{method:"POST",body:j});return B?.success}),[_]),H=d.useCallback(j=>me(void 0,void 0,void 0,function*(){const B=yield _?.("/recommend/unlike",{method:"POST",body:j});return B?.success}),[_]),Y=d.useCallback(j=>me(void 0,void 0,void 0,function*(){const B=yield _?.("/customform",{method:"POST",body:j});return B?.success}),[_]),R=d.useCallback((j,B,q)=>{var le,ne,se,X,K,re,ce,ae,Pe,Te,$e,N;const V=q?.bindCta,$=((le=B?.video)===null||le===void 0?void 0:le.bindProduct)||((ne=B?.video)===null||ne===void 0?void 0:ne.bindProducts)&&((X=(se=B?.video)===null||se===void 0?void 0:se.bindProducts)===null||X===void 0?void 0:X.length)>0;let W="";P?W="hashTagPage":!((K=B?.video)===null||K===void 0)&&K.url?W="videoPage":!((ce=(re=B?.video)===null||re===void 0?void 0:re.imgUrls)===null||ce===void 0)&&ce.length&&(W="imagePage"),F?.({eventInfo:Object.assign(Object.assign({},j),{ctaId:(ae=V?.itemId)!==null&&ae!==void 0?ae:"",ctaName:(Pe=V?.title)!==null&&Pe!==void 0?Pe:"",contentTags:JSON.stringify(V?.tags),position:B?.position,relatedContentId:($e=(Te=B?.video)===null||Te===void 0?void 0:Te.itemId)!==null&&$e!==void 0?$e:"",relatedProductId:$?q?.itemId:"",traceInfo:(N=V?.traceInfo)!==null&&N!==void 0?N:"",fromKName:W})})},[F,P]);d.useEffect(()=>{b(!0),z().then(j=>{var B,q;f((B=j?.recList)!==null&&B!==void 0?B:[]),S((q=j?.recList)!==null&&q!==void 0?q:[])}).finally(()=>{b(!1),y.current=!0})},[]),d.useEffect(()=>{y.current&&(b(!0),z().then(j=>{var B,q;f((B=j?.recList)!==null&&B!==void 0?B:[]),S((q=j?.recList)!==null&&q!==void 0?q:[])}).finally(()=>{b(!1)}))},[z]);const ie=ke("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif");return d.createElement(kt.Provider,{value:{rtcList:p,setRtcList:f,mutateLike:G,mutateUnlike:H,submitForm:Y,popupDetailData:h,loadVideos:k,setPopupDetailData:T,getRecommendVideos:z,bffEventReport:F,utmVal:i,isPreview:a,loading:m,sxpParameter:r,waterFallData:C,setWaterFallData:A,ctaEvent:R,swiperRef:v,openHashtag:L,setOpenHashtag:x,cacheRtcList:I,setCacheRtcList:S,cacheActiveIndex:D,setCacheActiveIndex:w,isFromHashtag:P,setIsFromHashtag:M,appDomain:s,hashTagSize:u,loadingImage:c??ie}},t({rtcList:p,mutateLike:G,mutateUnlike:H,submitForm:Y}))};var Nt=d.memo(ki);function Q(){return d.useContext(kt)}var Rt;(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"})(Rt||(Rt={}));const Ft=d.createContext({$store:{},options:[],configs:[]}),Ni=({children:t,isSsr:e,enable:i})=>{const[n,o]=d.useState([]),{schema:l}=Le(),[a,r]=d.useState(l.__STORE__||{}),[s,u]=d.useState([]);d.useEffect(()=>{var f;e||de.isEqual(s,l?.dataSource)||u((f=l?.dataSource)!==null&&f!==void 0?f:[])},[l?.dataSource,e]);const c=d.useCallback(()=>me(void 0,void 0,void 0,function*(){const{$store:f,idMapName:m}=yield Pt("",s);r(f),p(f,m)}),[s]),p=(f,m)=>{const b=[];Object.entries(f).forEach(([g,E])=>{Object.keys(E).forEach(v=>{const y={label:`${m[g]} - ${v}`,value:`{{ ${g}.${v} }}`};b.push(y)})}),o(b)};return d.useEffect(()=>{e||c()},[c,e,l]),i?d.createElement(Ft.Provider,{value:{$store:l.__STORE__||a,options:n,configs:s}},t):t};var Ri=d.memo(Ni);const Ye={id:Xe(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},zt=d.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Ye],redoStack:[],popup:"",setPopup:()=>{}}),Bt=d.forwardRef(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:o=!0,utmVal:l},a)=>{const[r,s]=d.useState(null),[u,c]=d.useState(n||{pointData:[Ye],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[p,f]=d.useState([Ye]),[m,b]=d.useState([[Ye]]),[g,E]=d.useState([]),[v,y]=d.useState("");typeof window<"u"&&(window.sxpPopup=L=>{y(L)}),typeof window<"u"&&(window.getJointUtmLink=L=>L?.indexOf("?")!==-1?L+(l?"&"+l:""):L+(l?"?"+l:"")),d.useEffect(()=>{b([u.pointData]),E([])},[u.type]);const h=d.useCallback(L=>{const x=de.cloneDeep(u);x&&(x.dataSource=L,c?.(x))},[u]),[T,C]=d.useState();d.useImperativeHandle(a,()=>({loadSchema(L){L&&(b([L.pointData]),c(L))},exportSchema(){return de.cloneDeep(u)},getPageInfoData(){return T},initPageInfoData(L){L&&C(L)}}));const A=d.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return d.createElement(zt.Provider,{value:{resolver:e,currentNode:r,schema:u,setCurrentNode:s,setSchema:c,saveDataSource:h,prePiontData:p,setPrePiontData:f,pageInfoData:T,setPageInfoData:L=>C(Object.assign(Object.assign({},T),L)),undoStack:m,redoStack:g,setRedoStack:E,setUndoStack:b,getCurPageConf:A,popup:v,setPopup:y}},d.createElement(Ri,{isSsr:i,enable:o},t))});var Fi=Object.freeze({__proto__:null,EditorCore:Bt}),zi=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Bi=[{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:"Color",name:["textStyle","color"]},{type:"Select",name:["textStyle","fontFamily"],options:[{label:"\u9ED1\u4F53",value:"\u9ED1\u4F53"}]},{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:"\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"]},{label:"\u63D0\u4EA4\u6587\u672C\u989C\u8272",type:"Color",name:["props","submitColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];const ji=t=>{var{columns:e,style:i,title:n,textStyle:o,submitBgColor:l,submitColor:a,submitText:r,layoutType:s,onClick:u}=t,c=ve(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","onClick"]);Le();const{submitForm:p}=Q(),f=d.useRef(),[m,b]=d.useState(!1),g=d.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),E=d.useMemo(()=>{if(s===void 0){const y=de.cloneDeep(e)||g;return y?.map(h=>Object.assign(Object.assign({},h),{title:void 0,fieldProps:{placeholder:h?.title}}))}else return de.cloneDeep(e)||g},[s,e,g]),v=de.debounce(()=>me(void 0,void 0,void 0,function*(){var y,h,T;b(!0);const C=yield(y=f?.current)===null||y===void 0?void 0:y.getFieldsValue(),A=(T=(h=Object.keys(C))===null||h===void 0?void 0:h.map(x=>({name:x,value:C[x]})))===null||T===void 0?void 0:T.filter(x=>x?.value);if(!A||!A?.length)return;const L=yield p?.({attributes:A});b(!1),L&&(window?.sxpPopup(""),L&&u?.())}),1e3);return d.createElement("div",{className:"pb-appoint-form"},d.createElement("div",{className:`pb-appoint-form-title ${U.css(Object.assign({},o))}`},n),d.createElement("div",Object.assign({className:U.css(Object.assign({},i))},c),d.createElement("div",{className:"pb-appoint-form-container"},d.createElement(gi.BetaSchemaForm,{columns:E,submitter:!1,layout:s,autoFocusFirstInput:!1,size:"large",formRef:f,className:"panel-reset"}))),d.createElement("div",{className:"pb-appoint-form-btn-wrapper"},d.createElement("button",{onClick:v,className:"pb-appoint-form-btn",style:{color:a,background:l}},m?d.createElement(d.Fragment,null,"loading..."):r)))};var $i=d.memo(ji);function he(t,e){return t.extend=e,t}const Gi=he($i,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Bi,bindableProps:[],interactionRender:zi},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",fontFamily:"\u9ED1\u4F53",textAlign:"center"}},w:100,h:40,sort:2});function jt(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ut(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:jt(e[i])&&jt(t[i])&&Object.keys(e[i]).length>0&&ut(t[i],e[i])})}const $t={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 we(){const t=typeof document<"u"?document:{};return ut(t,$t),t}const Vi={document:$t,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 fe(){const t=typeof window<"u"?window:{};return ut(t,Vi),t}function Ce(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Hi(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function Fe(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function be(){return Date.now()}function Ui(t){const e=fe();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Wi(t,e){e===void 0&&(e="x");const i=fe();let n,o,l;const a=Ui(t);return i.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(r=>r.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(o==="none"?"":o)):(l=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?o=l.m41:n.length===16?o=parseFloat(n[12]):o=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?o=l.m42:n.length===16?o=parseFloat(n[13]):o=parseFloat(n[5])),o||0}function qe(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Xi(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function ge(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!Xi(n)){const o=Object.keys(Object(n)).filter(l=>e.indexOf(l)<0);for(let l=0,a=o.length;l<a;l+=1){const r=o[l],s=Object.getOwnPropertyDescriptor(n,r);s!==void 0&&s.enumerable&&(qe(t[r])&&qe(n[r])?n[r].__swiper__?t[r]=n[r]:ge(t[r],n[r]):!qe(t[r])&&qe(n[r])?(t[r]={},n[r].__swiper__?t[r]=n[r]:ge(t[r],n[r])):t[r]=n[r])}}}return t}function Qe(t,e,i){t.style.setProperty(e,i)}function Gt(t){let{swiper:e,targetPosition:i,side:n}=t;const o=fe(),l=-e.translate;let a=null,r;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const u=i>l?"next":"prev",c=(f,m)=>u==="next"&&f>=m||u==="prev"&&f<=m,p=()=>{r=new Date().getTime(),a===null&&(a=r);const f=Math.max(Math.min((r-a)/s,1),0),m=.5-Math.cos(f*Math.PI)/2;let b=l+m*(i-l);if(c(b,i)&&(b=i),e.wrapperEl.scrollTo({[n]:b}),c(b,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:b})}),o.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=o.requestAnimationFrame(p)};p()}function Se(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Je(t){try{console.warn(t);return}catch{}}function Ge(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Ce(e)),i}function Yi(t){const e=fe(),i=we(),n=t.getBoundingClientRect(),o=i.body,l=t.clientTop||o.clientTop||0,a=t.clientLeft||o.clientLeft||0,r=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+r-l,left:n.left+s-a}}function qi(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Qi(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function _e(t,e){return fe().getComputedStyle(t,null).getPropertyValue(e)}function Ke(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Vt(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function vt(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function pt(t,e,i){const n=fe();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ee(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Ji(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=fe();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,r=be(),s;const u=[];function c(h){let L=0,x=0,I=0,S=0;return"detail"in h&&(x=h.detail),"wheelDelta"in h&&(x=-h.wheelDelta/120),"wheelDeltaY"in h&&(x=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(L=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(L=x,x=0),I=L*10,S=x*10,"deltaY"in h&&(S=h.deltaY),"deltaX"in h&&(I=h.deltaX),h.shiftKey&&!I&&(I=S,S=0),(I||S)&&h.deltaMode&&(h.deltaMode===1?(I*=40,S*=40):(I*=800,S*=800)),I&&!L&&(L=I<1?-1:1),S&&!x&&(x=S<1?-1:1),{spinX:L,spinY:x,pixelX:I,pixelY:S}}function p(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function m(h){return e.params.mousewheel.thresholdDelta&&h.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&be()-r<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&be()-r<60?!0:(h.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),o("scroll",h.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),o("scroll",h.raw)),r=new l.Date().getTime(),!1)}function b(h){const T=e.params.mousewheel;if(h.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 g(h){let T=h,C=!0;if(!e.enabled||h.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const A=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let L=e.el;e.params.mousewheel.eventsTarget!=="container"&&(L=document.querySelector(e.params.mousewheel.eventsTarget));const x=L&&L.contains(T.target);if(!e.mouseEntered&&!x&&!A.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let I=0;const S=e.rtlTranslate?-1:1,D=c(T);if(A.forceToAxis)if(e.isHorizontal())if(Math.abs(D.pixelX)>Math.abs(D.pixelY))I=-D.pixelX*S;else return!0;else if(Math.abs(D.pixelY)>Math.abs(D.pixelX))I=-D.pixelY;else return!0;else I=Math.abs(D.pixelX)>Math.abs(D.pixelY)?-D.pixelX*S:-D.pixelY;if(I===0)return!0;A.invert&&(I=-I);let w=e.getTranslate()+I*A.sensitivity;if(w>=e.minTranslate()&&(w=e.minTranslate()),w<=e.maxTranslate()&&(w=e.maxTranslate()),C=e.params.loop?!0:!(w===e.minTranslate()||w===e.maxTranslate()),C&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const P={time:be(),delta:Math.abs(I),direction:Math.sign(I),raw:h};u.length>=2&&u.shift();const M=u.length?u[u.length-1]:void 0;if(u.push(P),M?(P.direction!==M.direction||P.delta>M.delta||P.time>M.time+150)&&m(P):m(P),b(P))return!0}else{const P={time:be(),delta:Math.abs(I),direction:Math.sign(I)},M=s&&P.time<s.time+500&&P.delta<=s.delta&&P.direction===s.direction;if(!M){s=void 0;let O=e.getTranslate()+I*A.sensitivity;const _=e.isBeginning,z=e.isEnd;if(O>=e.minTranslate()&&(O=e.minTranslate()),O<=e.maxTranslate()&&(O=e.maxTranslate()),e.setTransition(0),e.setTranslate(O),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!_&&e.isBeginning||!z&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:P.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,u.length>=15&&u.shift();const k=u.length?u[u.length-1]:void 0,F=u[0];if(u.push(P),k&&(P.delta>k.delta||P.direction!==k.direction))u.splice(0);else if(u.length>=15&&P.time-F.time<500&&F.delta-P.delta>=1&&P.delta<=6){const G=I>0?.8:.2;s=P,u.splice(0),a=Fe(()=>{e.slideToClosest(e.params.speed,!0,void 0,G)},0)}a||(a=Fe(()=>{s=P,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(M||o("scroll",T),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),A.releaseOnEdges&&(O===e.minTranslate()||O===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function E(h){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[h]("mouseenter",p),T[h]("mouseleave",f),T[h]("wheel",g)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",g),!0):e.mousewheel.enabled?!1:(E("addEventListener"),e.mousewheel.enabled=!0,!0)}function y(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,g),!0):e.mousewheel.enabled?(E("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&y(),e.params.mousewheel.enabled&&v()}),n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&y()}),Object.assign(e.mousewheel,{enable:v,disable:y})}function Ht(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(o=>{if(!i[o]&&i.auto===!0){let l=Se(t.el,`.${n[o]}`)[0];l||(l=Ge("div",n[o]),l.className=n[o],t.el.append(l)),i[o]=l,e[o]=l}}),i}function ze(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ve(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:v=>v,formatFractionTotal:v=>v,bulletClass:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),e.pagination={el:null,bullets:[]};let a,r=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(v,y){const{bulletActiveClass:h}=e.params.pagination;v&&(v=v[`${y==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${h}-${y}`),v=v[`${y==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${h}-${y}-${y}`)))}function c(v){const y=v.target.closest(ze(e.params.pagination.bulletClass));if(!y)return;v.preventDefault();const h=Ke(y)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===h)return;e.slideToLoop(h)}else e.slideTo(h)}function p(){const v=e.rtl,y=e.params.pagination;if(s())return;let h=e.pagination.el;h=Ee(h);let T,C;const A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,L=e.params.loop?Math.ceil(A/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,T=e.activeIndex||0),y.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const x=e.pagination.bullets;let I,S,D;if(y.dynamicBullets&&(a=pt(x[0],e.isHorizontal()?"width":"height",!0),h.forEach(w=>{w.style[e.isHorizontal()?"width":"height"]=`${a*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&C!==void 0&&(r+=T-(C||0),r>y.dynamicMainBullets-1?r=y.dynamicMainBullets-1:r<0&&(r=0)),I=Math.max(T-r,0),S=I+(Math.min(x.length,y.dynamicMainBullets)-1),D=(S+I)/2),x.forEach(w=>{const P=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(M=>`${y.bulletActiveClass}${M}`)].map(M=>typeof M=="string"&&M.includes(" ")?M.split(" "):M).flat();w.classList.remove(...P)}),h.length>1)x.forEach(w=>{const P=Ke(w);P===T?w.classList.add(...y.bulletActiveClass.split(" ")):e.isElement&&w.setAttribute("part","bullet"),y.dynamicBullets&&(P>=I&&P<=S&&w.classList.add(...`${y.bulletActiveClass}-main`.split(" ")),P===I&&u(w,"prev"),P===S&&u(w,"next"))});else{const w=x[T];if(w&&w.classList.add(...y.bulletActiveClass.split(" ")),e.isElement&&x.forEach((P,M)=>{P.setAttribute("part",M===T?"bullet-active":"bullet")}),y.dynamicBullets){const P=x[I],M=x[S];for(let O=I;O<=S;O+=1)x[O]&&x[O].classList.add(...`${y.bulletActiveClass}-main`.split(" "));u(P,"prev"),u(M,"next")}}if(y.dynamicBullets){const w=Math.min(x.length,y.dynamicMainBullets+4),P=(a*w-a)/2-D*a,M=v?"right":"left";x.forEach(O=>{O.style[e.isHorizontal()?M:"top"]=`${P}px`})}}h.forEach((x,I)=>{if(y.type==="fraction"&&(x.querySelectorAll(ze(y.currentClass)).forEach(S=>{S.textContent=y.formatFractionCurrent(T+1)}),x.querySelectorAll(ze(y.totalClass)).forEach(S=>{S.textContent=y.formatFractionTotal(L)})),y.type==="progressbar"){let S;y.progressbarOpposite?S=e.isHorizontal()?"vertical":"horizontal":S=e.isHorizontal()?"horizontal":"vertical";const D=(T+1)/L;let w=1,P=1;S==="horizontal"?w=D:P=D,x.querySelectorAll(ze(y.progressbarFillClass)).forEach(M=>{M.style.transform=`translate3d(0,0,0) scaleX(${w}) scaleY(${P})`,M.style.transitionDuration=`${e.params.speed}ms`})}y.type==="custom"&&y.renderCustom?(x.innerHTML=y.renderCustom(e,T+1,L),I===0&&o("paginationRender",x)):(I===0&&o("paginationRender",x),o("paginationUpdate",x)),e.params.watchOverflow&&e.enabled&&x.classList[e.isLocked?"add":"remove"](y.lockClass)})}function f(){const v=e.params.pagination;if(s())return;const y=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 h=e.pagination.el;h=Ee(h);let T="";if(v.type==="bullets"){let C=e.params.loop?Math.ceil(y/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>y&&(C=y);for(let A=0;A<C;A+=1)v.renderBullet?T+=v.renderBullet.call(e,A,v.bulletClass):T+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?T=v.renderFraction.call(e,v.currentClass,v.totalClass):T=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?T=v.renderProgressbar.call(e,v.progressbarFillClass):T=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],h.forEach(C=>{v.type!=="custom"&&(C.innerHTML=T||""),v.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(ze(v.bulletClass)))}),v.type!=="custom"&&o("paginationRender",h[0])}function m(){e.params.pagination=Ht(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let y;typeof v.el=="string"&&e.isElement&&(y=e.el.querySelector(v.el)),!y&&typeof v.el=="string"&&(y=[...document.querySelectorAll(v.el)]),y||(y=v.el),!(!y||y.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(y)&&y.length>1&&(y=[...e.el.querySelectorAll(v.el)],y.length>1&&(y=y.filter(h=>Vt(h,".swiper")[0]===e.el)[0])),Array.isArray(y)&&y.length===1&&(y=y[0]),Object.assign(e.pagination,{el:y}),y=Ee(y),y.forEach(h=>{v.type==="bullets"&&v.clickable&&h.classList.add(...(v.clickableClass||"").split(" ")),h.classList.add(v.modifierClass+v.type),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(h.classList.add(`${v.modifierClass}${v.type}-dynamic`),r=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&h.classList.add(v.progressbarOppositeClass),v.clickable&&h.addEventListener("click",c),e.enabled||h.classList.add(v.lockClass)}))}function b(){const v=e.params.pagination;if(s())return;let y=e.pagination.el;y&&(y=Ee(y),y.forEach(h=>{h.classList.remove(v.hiddenClass),h.classList.remove(v.modifierClass+v.type),h.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(h.classList.remove(...(v.clickableClass||"").split(" ")),h.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...v.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:y}=e.pagination;y=Ee(y),y.forEach(h=>{h.classList.remove(v.horizontalClass,v.verticalClass),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?E():(m(),f(),p())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&p()}),n("snapIndexChange",()=>{p()}),n("snapGridLengthChange",()=>{f(),p()}),n("destroy",()=>{b()}),n("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Ee(v),v.forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{p()}),n("click",(v,y)=>{const h=y.target,T=Ee(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&T&&T.length>0&&!h.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&h===e.navigation.nextEl||e.navigation.prevEl&&h===e.navigation.prevEl))return;const C=T[0].classList.contains(e.params.pagination.hiddenClass);o(C===!0?"paginationShow":"paginationHide"),T.forEach(A=>A.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ee(v),v.forEach(y=>y.classList.remove(e.params.pagination.paginationDisabledClass))),m(),f(),p()},E=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ee(v),v.forEach(y=>y.classList.add(e.params.pagination.paginationDisabledClass))),b()};Object.assign(e.pagination,{enable:g,disable:E,render:f,update:p,init:m,destroy:b})}function Ki(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=we();let a=!1,r=null,s=null,u,c,p,f;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:w,rtlTranslate:P}=e,{dragEl:M,el:O}=w,_=e.params.scrollbar,z=e.params.loop?e.progressLoop:e.progress;let k=c,F=(p-c)*z;P?(F=-F,F>0?(k=c-F,F=0):-F+c>p&&(k=p+F)):F<0?(k=c+F,F=0):F+c>p&&(k=p-F),e.isHorizontal()?(M.style.transform=`translate3d(${F}px, 0, 0)`,M.style.width=`${k}px`):(M.style.transform=`translate3d(0px, ${F}px, 0)`,M.style.height=`${k}px`),_.hide&&(clearTimeout(r),O.style.opacity=1,r=setTimeout(()=>{O.style.opacity=0,O.style.transitionDuration="400ms"},1e3))}function b(w){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${w}ms`)}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:w}=e,{dragEl:P,el:M}=w;P.style.width="",P.style.height="",p=e.isHorizontal()?M.offsetWidth:M.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=p*f:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?P.style.width=`${c}px`:P.style.height=`${c}px`,f>=1?M.style.display="none":M.style.display="",e.params.scrollbar.hide&&(M.style.opacity=0),e.params.watchOverflow&&e.enabled&&w.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function E(w){return e.isHorizontal()?w.clientX:w.clientY}function v(w){const{scrollbar:P,rtlTranslate:M}=e,{el:O}=P;let _;_=(E(w)-Yi(O)[e.isHorizontal()?"left":"top"]-(u!==null?u:c/2))/(p-c),_=Math.max(Math.min(_,1),0),M&&(_=1-_);const z=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*_;e.updateProgress(z),e.setTranslate(z),e.updateActiveIndex(),e.updateSlidesClasses()}function y(w){const P=e.params.scrollbar,{scrollbar:M,wrapperEl:O}=e,{el:_,dragEl:z}=M;a=!0,u=w.target===z?E(w)-w.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,w.preventDefault(),w.stopPropagation(),O.style.transitionDuration="100ms",z.style.transitionDuration="100ms",v(w),clearTimeout(s),_.style.transitionDuration="0ms",P.hide&&(_.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",w)}function h(w){const{scrollbar:P,wrapperEl:M}=e,{el:O,dragEl:_}=P;a&&(w.preventDefault?w.preventDefault():w.returnValue=!1,v(w),M.style.transitionDuration="0ms",O.style.transitionDuration="0ms",_.style.transitionDuration="0ms",o("scrollbarDragMove",w))}function T(w){const P=e.params.scrollbar,{scrollbar:M,wrapperEl:O}=e,{el:_}=M;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",O.style.transitionDuration=""),P.hide&&(clearTimeout(s),s=Fe(()=>{_.style.opacity=0,_.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",w),P.snapOnRelease&&e.slideToClosest())}function C(w){const{scrollbar:P,params:M}=e,O=P.el;if(!O)return;const _=O,z=M.passiveListeners?{passive:!1,capture:!1}:!1,k=M.passiveListeners?{passive:!0,capture:!1}:!1;if(!_)return;const F=w==="on"?"addEventListener":"removeEventListener";_[F]("pointerdown",y,z),l[F]("pointermove",h,z),l[F]("pointerup",T,k)}function A(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function L(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function x(){const{scrollbar:w,el:P}=e;e.params.scrollbar=Ht(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const M=e.params.scrollbar;if(!M.el)return;let O;if(typeof M.el=="string"&&e.isElement&&(O=e.el.querySelector(M.el)),!O&&typeof M.el=="string"){if(O=l.querySelectorAll(M.el),!O.length)return}else O||(O=M.el);e.params.uniqueNavElements&&typeof M.el=="string"&&O.length>1&&P.querySelectorAll(M.el).length===1&&(O=P.querySelector(M.el)),O.length>0&&(O=O[0]),O.classList.add(e.isHorizontal()?M.horizontalClass:M.verticalClass);let _;O&&(_=O.querySelector(ze(e.params.scrollbar.dragClass)),_||(_=Ge("div",e.params.scrollbar.dragClass),O.append(_))),Object.assign(w,{el:O,dragEl:_}),M.draggable&&A(),O&&O.classList[e.enabled?"remove":"add"](...Ce(e.params.scrollbar.lockClass))}function I(){const w=e.params.scrollbar,P=e.scrollbar.el;P&&P.classList.remove(...Ce(e.isHorizontal()?w.horizontalClass:w.verticalClass)),L()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const w=e.params.scrollbar;let{el:P}=e.scrollbar;P=Ee(P),P.forEach(M=>{M.classList.remove(w.horizontalClass,w.verticalClass),M.classList.add(e.isHorizontal()?w.horizontalClass:w.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?D():(x(),g(),m())}),n("update resize observerUpdate lock unlock changeDirection",()=>{g()}),n("setTranslate",()=>{m()}),n("setTransition",(w,P)=>{b(P)}),n("enable disable",()=>{const{el:w}=e.scrollbar;w&&w.classList[e.enabled?"remove":"add"](...Ce(e.params.scrollbar.lockClass))}),n("destroy",()=>{I()});const S=()=>{e.el.classList.remove(...Ce(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Ce(e.params.scrollbar.scrollbarDisabledClass)),x(),g(),m()},D=()=>{e.el.classList.add(...Ce(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Ce(e.params.scrollbar.scrollbarDisabledClass)),I()};Object.assign(e.scrollbar,{enable:S,disable:D,updateSize:g,setTranslate:m,init:x,destroy:I})}function He(t){let{swiper:e,extendParams:i,on:n,emit:o,params:l}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,r,s=l&&l.autoplay?l.autoplay.delay:3e3,u=l&&l.autoplay?l.autoplay.delay:3e3,c,p=new Date().getTime(),f,m,b,g,E,v,y;function h(k){!e||e.destroyed||!e.wrapperEl||k.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",h),!y&&S())}const T=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(u=c,f=!1);const k=e.autoplay.paused?c:p+u-new Date().getTime();e.autoplay.timeLeft=k,o("autoplayTimeLeft",k,k/s),r=requestAnimationFrame(()=>{T()})},C=()=>{let k;return e.virtual&&e.params.virtual.enabled?k=e.slides.filter(G=>G.classList.contains("swiper-slide-active"))[0]:k=e.slides[e.activeIndex],k?parseInt(k.getAttribute("data-swiper-autoplay"),10):void 0},A=k=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(r),T();let F=typeof k>"u"?e.params.autoplay.delay:k;s=e.params.autoplay.delay,u=e.params.autoplay.delay;const G=C();!Number.isNaN(G)&&G>0&&typeof k>"u"&&(F=G,s=G,u=G),c=F;const H=e.params.speed,Y=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(H,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,H,!0,!0),o("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(H,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,H,!0,!0),o("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{A()})))};return F>0?(clearTimeout(a),a=setTimeout(()=>{Y()},F)):requestAnimationFrame(()=>{Y()}),F},L=()=>{p=new Date().getTime(),e.autoplay.running=!0,A(),o("autoplayStart")},x=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(r),o("autoplayStop")},I=(k,F)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),k||(v=!0);const G=()=>{o("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",h):S()};if(e.autoplay.paused=!0,F){E&&(c=e.params.autoplay.delay),E=!1,G();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),G())},S=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),v?(v=!1,A(c)):A(),e.autoplay.paused=!1,o("autoplayResume"))},D=()=>{if(e.destroyed||!e.autoplay.running)return;const k=we();k.visibilityState==="hidden"&&(v=!0,I(!0)),k.visibilityState==="visible"&&S()},w=k=>{k.pointerType==="mouse"&&(v=!0,y=!0,!(e.animating||e.autoplay.paused)&&I(!0))},P=k=>{k.pointerType==="mouse"&&(y=!1,e.autoplay.paused&&S())},M=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",w),e.el.addEventListener("pointerleave",P))},O=()=>{e.el.removeEventListener("pointerenter",w),e.el.removeEventListener("pointerleave",P)},_=()=>{we().addEventListener("visibilitychange",D)},z=()=>{we().removeEventListener("visibilitychange",D)};n("init",()=>{e.params.autoplay.enabled&&(M(),_(),L())}),n("destroy",()=>{O(),z(),e.autoplay.running&&x()}),n("_freeModeStaticRelease",()=>{(b||v)&&S()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?x():I(!0,!0)}),n("beforeTransitionStart",(k,F,G)=>{e.destroyed||!e.autoplay.running||(G||!e.params.autoplay.disableOnInteraction?I(!0,!0):x())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){x();return}m=!0,b=!1,v=!1,g=setTimeout(()=>{v=!0,b=!0,I(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(g),clearTimeout(a),e.params.autoplay.disableOnInteraction){b=!1,m=!1;return}b&&e.params.cssMode&&S(),b=!1,m=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(E=!0)}),Object.assign(e.autoplay,{start:L,stop:x,pause:I,resume:S})}function Zi(t){let{swiper:e,extendParams:i,emit:n,once:o}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function l(){if(e.params.cssMode)return;const s=e.getTranslate();e.setTranslate(s),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:s,touches:u}=e;s.velocities.length===0&&s.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:be()})}function r(s){let{currentPos:u}=s;if(e.params.cssMode)return;const{params:c,wrapperEl:p,rtlTranslate:f,snapGrid:m,touchEventsData:b}=e,E=be()-b.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<m.length?e.slideTo(m.length-1):e.slideTo(e.slides.length-1);return}if(c.freeMode.momentum){if(b.velocities.length>1){const x=b.velocities.pop(),I=b.velocities.pop(),S=x.position-I.position,D=x.time-I.time;e.velocity=S/D,e.velocity/=2,Math.abs(e.velocity)<c.freeMode.minimumVelocity&&(e.velocity=0),(D>150||be()-x.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=c.freeMode.momentumVelocityRatio,b.velocities.length=0;let v=1e3*c.freeMode.momentumRatio;const y=e.velocity*v;let h=e.translate+y;f&&(h=-h);let T=!1,C;const A=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let L;if(h<e.maxTranslate())c.freeMode.momentumBounce?(h+e.maxTranslate()<-A&&(h=e.maxTranslate()-A),C=e.maxTranslate(),T=!0,b.allowMomentumBounce=!0):h=e.maxTranslate(),c.loop&&c.centeredSlides&&(L=!0);else if(h>e.minTranslate())c.freeMode.momentumBounce?(h-e.minTranslate()>A&&(h=e.minTranslate()+A),C=e.minTranslate(),T=!0,b.allowMomentumBounce=!0):h=e.minTranslate(),c.loop&&c.centeredSlides&&(L=!0);else if(c.freeMode.sticky){let x;for(let I=0;I<m.length;I+=1)if(m[I]>-h){x=I;break}Math.abs(m[x]-h)<Math.abs(m[x-1]-h)||e.swipeDirection==="next"?h=m[x]:h=m[x-1],h=-h}if(L&&o("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?v=Math.abs((-h-e.translate)/e.velocity):v=Math.abs((h-e.translate)/e.velocity),c.freeMode.sticky){const x=Math.abs((f?-h:h)-e.translate),I=e.slidesSizesGrid[e.activeIndex];x<I?v=c.speed:x<2*I?v=c.speed*1.5:v=c.speed*2.5}}else if(c.freeMode.sticky){e.slideToClosest();return}c.freeMode.momentumBounce&&T?(e.updateProgress(C),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating=!0,vt(p,()=>{!e||e.destroyed||!b.allowMomentumBounce||(n("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(C),vt(p,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(h),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,vt(p,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(h),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&n("_freeModeNoMomentumRelease");(!c.freeMode.momentum||E>=c.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:a,onTouchEnd:r}})}let ft;function en(){const t=fe(),e=we();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Ut(){return ft||(ft=en()),ft}let mt;function tn(t){let{userAgent:e}=t===void 0?{}:t;const i=Ut(),n=fe(),o=n.navigator.platform,l=e||n.navigator.userAgent,a={ios:!1,android:!1},r=n.screen.width,s=n.screen.height,u=l.match(/(Android);?[\s\/]+([\d.]+)?/);let c=l.match(/(iPad).*OS\s([\d_]+)/);const p=l.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=o==="Win32";let b=o==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&b&&i.touch&&g.indexOf(`${r}x${s}`)>=0&&(c=l.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),b=!1),u&&!m&&(a.os="android",a.android=!0),(c||f||p)&&(a.os="ios",a.ios=!0),a}function Wt(t){return t===void 0&&(t={}),mt||(mt=tn(t)),mt}let ht;function nn(){const t=fe(),e=Wt();let i=!1;function n(){const r=t.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(t.navigator.userAgent);if(r.includes("Version/")){const[s,u]=r.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));i=s<16||s===16&&u<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=n(),a=l||o&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:a,isWebView:o}}function on(){return ht||(ht=nn()),ht}function ln(t){let{swiper:e,on:i,emit:n}=t;const o=fe();let l=null,a=null;const r=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(p=>{a=o.requestAnimationFrame(()=>{const{width:f,height:m}=e;let b=f,g=m;p.forEach(E=>{let{contentBoxSize:v,contentRect:y,target:h}=E;h&&h!==e.el||(b=y?y.width:(v[0]||v).inlineSize,g=y?y.height:(v[0]||v).blockSize)}),(b!==f||g!==m)&&r()})}),l.observe(e.el))},u=()=>{a&&o.cancelAnimationFrame(a),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof o.ResizeObserver<"u"){s();return}o.addEventListener("resize",r),o.addEventListener("orientationchange",c)}),i("destroy",()=>{u(),o.removeEventListener("resize",r),o.removeEventListener("orientationchange",c)})}function sn(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=[],a=fe(),r=function(c,p){p===void 0&&(p={});const f=a.MutationObserver||a.WebkitMutationObserver,m=new f(b=>{if(e.__preventObserver__)return;if(b.length===1){o("observerUpdate",b[0]);return}const g=function(){o("observerUpdate",b[0])};a.requestAnimationFrame?a.requestAnimationFrame(g):a.setTimeout(g,0)});m.observe(c,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),l.push(m)},s=()=>{if(e.params.observer){if(e.params.observeParents){const c=Vt(e.hostEl);for(let p=0;p<c.length;p+=1)r(c[p])}r(e.hostEl,{childList:e.params.observeSlideChildren}),r(e.wrapperEl,{attributes:!1})}},u=()=>{l.forEach(c=>{c.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",u)}var rn={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const o=i?"unshift":"push";return t.split(" ").forEach(l=>{n.eventsListeners[l]||(n.eventsListeners[l]=[]),n.eventsListeners[l][o](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function o(){n.off(t,o),o.__emitterProxy&&delete o.__emitterProxy;for(var l=arguments.length,a=new Array(l),r=0;r<l;r++)a[r]=arguments[r];e.apply(n,a)}return o.__emitterProxy=e,n.on(t,o,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((o,l)=>{(o===e||o.__emitterProxy&&o.__emitterProxy===e)&&i.eventsListeners[n].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),n=t):(e=l[0].events,i=l[0].data,n=l[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[s,...i])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(u=>{u.apply(n,i)})}),t}};function an(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(_e(n,"padding-left")||0,10)-parseInt(_e(n,"padding-right")||0,10),i=i-parseInt(_e(n,"padding-top")||0,10)-parseInt(_e(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function dn(){const t=this;function e(S,D){return parseFloat(S.getPropertyValue(t.getDirectionLabel(D))||0)}const i=t.params,{wrapperEl:n,slidesEl:o,size:l,rtlTranslate:a,wrongRTL:r}=t,s=t.virtual&&i.virtual.enabled,u=s?t.virtual.slides.length:t.slides.length,c=Se(o,`.${t.params.slideClass}, swiper-slide`),p=s?t.virtual.slides.length:c.length;let f=[];const m=[],b=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let E=i.slidesOffsetAfter;typeof E=="function"&&(E=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,y=t.slidesGrid.length;let h=i.spaceBetween,T=-g,C=0,A=0;if(typeof l>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*l:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,c.forEach(S=>{a?S.style.marginLeft="":S.style.marginRight="",S.style.marginBottom="",S.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Qe(n,"--swiper-centered-offset-before",""),Qe(n,"--swiper-centered-offset-after",""));const L=i.grid&&i.grid.rows>1&&t.grid;L?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let x;const I=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(S=>typeof i.breakpoints[S].slidesPerView<"u").length>0;for(let S=0;S<p;S+=1){x=0;let D;if(c[S]&&(D=c[S]),L&&t.grid.updateSlide(S,D,c),!(c[S]&&_e(D,"display")==="none")){if(i.slidesPerView==="auto"){I&&(c[S].style[t.getDirectionLabel("width")]="");const w=getComputedStyle(D),P=D.style.transform,M=D.style.webkitTransform;if(P&&(D.style.transform="none"),M&&(D.style.webkitTransform="none"),i.roundLengths)x=t.isHorizontal()?pt(D,"width",!0):pt(D,"height",!0);else{const O=e(w,"width"),_=e(w,"padding-left"),z=e(w,"padding-right"),k=e(w,"margin-left"),F=e(w,"margin-right"),G=w.getPropertyValue("box-sizing");if(G&&G==="border-box")x=O+k+F;else{const{clientWidth:H,offsetWidth:Y}=D;x=O+_+z+k+F+(Y-H)}}P&&(D.style.transform=P),M&&(D.style.webkitTransform=M),i.roundLengths&&(x=Math.floor(x))}else x=(l-(i.slidesPerView-1)*h)/i.slidesPerView,i.roundLengths&&(x=Math.floor(x)),c[S]&&(c[S].style[t.getDirectionLabel("width")]=`${x}px`);c[S]&&(c[S].swiperSlideSize=x),b.push(x),i.centeredSlides?(T=T+x/2+C/2+h,C===0&&S!==0&&(T=T-l/2-h),S===0&&(T=T-l/2-h),Math.abs(T)<1/1e3&&(T=0),i.roundLengths&&(T=Math.floor(T)),A%i.slidesPerGroup===0&&f.push(T),m.push(T)):(i.roundLengths&&(T=Math.floor(T)),(A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0&&f.push(T),m.push(T),T=T+x+h),t.virtualSize+=x+h,C=x,A+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+E,a&&r&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+h}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+h}px`),L&&t.grid.updateWrapperSize(x,f),!i.centeredSlides){const S=[];for(let D=0;D<f.length;D+=1){let w=f[D];i.roundLengths&&(w=Math.floor(w)),f[D]<=t.virtualSize-l&&S.push(w)}f=S,Math.floor(t.virtualSize-l)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-l)}if(s&&i.loop){const S=b[0]+h;if(i.slidesPerGroup>1){const D=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),w=S*i.slidesPerGroup;for(let P=0;P<D;P+=1)f.push(f[f.length-1]+w)}for(let D=0;D<t.virtual.slidesBefore+t.virtual.slidesAfter;D+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+S),m.push(m[m.length-1]+S),t.virtualSize+=S}if(f.length===0&&(f=[0]),h!==0){const S=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");c.filter((D,w)=>!i.cssMode||i.loop?!0:w!==c.length-1).forEach(D=>{D.style[S]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let S=0;b.forEach(w=>{S+=w+(h||0)}),S-=h;const D=S-l;f=f.map(w=>w<=0?-g:w>D?D+E:w)}if(i.centerInsufficientSlides){let S=0;if(b.forEach(D=>{S+=D+(h||0)}),S-=h,S<l){const D=(l-S)/2;f.forEach((w,P)=>{f[P]=w-D}),m.forEach((w,P)=>{m[P]=w+D})}}if(Object.assign(t,{slides:c,snapGrid:f,slidesGrid:m,slidesSizesGrid:b}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Qe(n,"--swiper-centered-offset-before",`${-f[0]}px`),Qe(n,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const S=-t.snapGrid[0],D=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(w=>w+S),t.slidesGrid=t.slidesGrid.map(w=>w+D)}if(p!==u&&t.emit("slidesLengthChange"),f.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==y&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!s&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const S=`${i.containerModifierClass}backface-hidden`,D=t.el.classList.contains(S);p<=i.maxBackfaceHiddenSlides?D||t.el.classList.add(S):D&&t.el.classList.remove(S)}}function cn(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let o=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=r=>n?e.slides[e.getSlideIndexByData(r)]:e.slides[r];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(r=>{i.push(r)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const r=e.activeIndex+l;if(r>e.slides.length&&!n)break;i.push(a(r))}else i.push(a(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const r=i[l].offsetHeight;o=r>o?r:o}(o||o===0)&&(e.wrapperEl.style.height=`${o}px`)}function un(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}function vn(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:o,snapGrid:l}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;o&&(a=t),n.forEach(s=>{s.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let r=i.spaceBetween;typeof r=="string"&&r.indexOf("%")>=0?r=parseFloat(r.replace("%",""))/100*e.size:typeof r=="string"&&(r=parseFloat(r));for(let s=0;s<n.length;s+=1){const u=n[s];let c=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=n[0].swiperSlideOffset);const p=(a+(i.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+r),f=(a-l[0]+(i.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+r),m=-(a-c),b=m+e.slidesSizesGrid[s],g=m>=0&&m<=e.size-e.slidesSizesGrid[s];(m>=0&&m<e.size-1||b>1&&b<=e.size||m<=0&&b>=e.size)&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(s),n[s].classList.add(i.slideVisibleClass)),g&&n[s].classList.add(i.slideFullyVisibleClass),u.progress=o?-p:p,u.originalProgress=o?-f:f}}function pn(t){const e=this;if(typeof t>"u"){const c=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*c||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:o,isBeginning:l,isEnd:a,progressLoop:r}=e;const s=l,u=a;if(n===0)o=0,l=!0,a=!0;else{o=(t-e.minTranslate())/n;const c=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;l=c||o<=0,a=p||o>=1,c&&(o=0),p&&(o=1)}if(i.loop){const c=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[c],m=e.slidesGrid[p],b=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=f?r=(g-f)/b:r=(g+b-m)/b,r>1&&(r-=1)}Object.assign(e,{progress:o,progressLoop:r,isBeginning:l,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!s&&e.emit("reachBeginning toEdge"),a&&!u&&e.emit("reachEnd toEdge"),(s&&!l||u&&!a)&&e.emit("fromEdge"),e.emit("progress",o)}function fn(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:o}=t,l=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,r=p=>Se(n,`.${i.slideClass}${p}, swiper-slide${p}`)[0];e.forEach(p=>{p.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let s,u,c;if(l)if(i.loop){let p=o-t.virtual.slidesBefore;p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),s=r(`[data-swiper-slide-index="${p}"]`)}else s=r(`[data-swiper-slide-index="${o}"]`);else a?(s=e.filter(p=>p.column===o)[0],c=e.filter(p=>p.column===o+1)[0],u=e.filter(p=>p.column===o-1)[0]):s=e[o];s&&(s.classList.add(i.slideActiveClass),a?(c&&c.classList.add(i.slideNextClass),u&&u.classList.add(i.slidePrevClass)):(c=Qi(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c&&(c=e[0]),c&&c.classList.add(i.slideNextClass),u=qi(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]),u&&u.classList.add(i.slidePrevClass))),t.emitSlidesClasses()}const Ze=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let o=n.querySelector(`.${t.params.lazyPreloaderClass}`);!o&&t.isElement&&(n.shadowRoot?o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},gt=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},bt=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),o=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=o,r=[a-e];r.push(...Array.from({length:e}).map((s,u)=>a+n+u)),t.slides.forEach((s,u)=>{r.includes(s.column)&>(t,u)});return}const l=o+n-1;if(t.params.rewind||t.params.loop)for(let a=o-e;a<=l+e;a+=1){const r=(a%i+i)%i;(r<o||r>l)&>(t,r)}else for(let a=Math.max(o-e,0);a<=Math.min(l+e,i-1);a+=1)a!==o&&(a>l||a<o)&>(t,a)};function mn(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let o;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?n>=e[l]&&n<e[l+1]-(e[l+1]-e[l])/2?o=l:n>=e[l]&&n<e[l+1]&&(o=l+1):n>=e[l]&&(o=l);return i.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function hn(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:o,activeIndex:l,realIndex:a,snapIndex:r}=e;let s=t,u;const c=m=>{let b=m-e.virtual.slidesBefore;return b<0&&(b=e.virtual.slides.length+b),b>=e.virtual.slides.length&&(b-=e.virtual.slides.length),b};if(typeof s>"u"&&(s=mn(e)),n.indexOf(i)>=0)u=n.indexOf(i);else{const m=Math.min(o.slidesPerGroupSkip,s);u=m+Math.floor((s-m)/o.slidesPerGroup)}if(u>=n.length&&(u=n.length-1),s===l&&!e.params.loop){u!==r&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(s===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=c(s);return}const p=e.grid&&o.grid&&o.grid.rows>1;let f;if(e.virtual&&o.virtual.enabled&&o.loop)f=c(s);else if(p){const m=e.slides.filter(g=>g.column===s)[0];let b=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(b)&&(b=Math.max(e.slides.indexOf(m),0)),f=Math.floor(b/o.grid.rows)}else if(e.slides[s]){const m=e.slides[s].getAttribute("data-swiper-slide-index");m?f=parseInt(m,10):f=s}else f=s;Object.assign(e,{previousSnapIndex:r,snapIndex:u,previousRealIndex:a,realIndex:f,previousIndex:l,activeIndex:s}),e.initialized&&bt(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function gn(t,e){const i=this,n=i.params;let o=t.closest(`.${n.slideClass}, swiper-slide`);!o&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(r=>{!o&&r.matches&&r.matches(`.${n.slideClass}, swiper-slide`)&&(o=r)});let l=!1,a;if(o){for(let r=0;r<i.slides.length;r+=1)if(i.slides[r]===o){l=!0,a=r;break}}if(o&&l)i.clickedSlide=o,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var bn={updateSize:an,updateSlides:dn,updateAutoHeight:cn,updateSlidesOffset:un,updateSlidesProgress:vn,updateProgress:pn,updateSlidesClasses:fn,updateActiveIndex:hn,updateClickedSlide:gn};function wn(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:o,wrapperEl:l}=e;if(i.virtualTranslate)return n?-o:o;if(i.cssMode)return o;let a=Wi(l,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function yn(t,e){const i=this,{rtlTranslate:n,params:o,wrapperEl:l,progress:a}=i;let r=0,s=0;const u=0;i.isHorizontal()?r=n?-t:t:s=t,o.roundLengths&&(r=Math.floor(r),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?r:s,o.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-r:-s:o.virtualTranslate||(i.isHorizontal()?r-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${r}px, ${s}px, ${u}px)`);let c;const p=i.maxTranslate()-i.minTranslate();p===0?c=0:c=(t-i.minTranslate())/p,c!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Sn(){return-this.snapGrid[0]}function En(){return-this.snapGrid[this.snapGrid.length-1]}function xn(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const l=this,{params:a,wrapperEl:r}=l;if(l.animating&&a.preventInteractionOnTransition)return!1;const s=l.minTranslate(),u=l.maxTranslate();let c;if(n&&t>s?c=s:n&&t<u?c=u:c=t,l.updateProgress(c),a.cssMode){const p=l.isHorizontal();if(e===0)r[p?"scrollLeft":"scrollTop"]=-c;else{if(!l.support.smoothScroll)return Gt({swiper:l,targetPosition:-c,side:p?"left":"top"}),!0;r.scrollTo({[p?"left":"top"]:-c,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(c),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(c),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(f){!l||l.destroyed||f.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var Tn={getTranslate:wn,setTranslate:yn,minTranslate:Sn,maxTranslate:En,translateTo:xn};function Cn(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 Xt(t){let{swiper:e,runCallbacks:i,direction:n,step:o}=t;const{activeIndex:l,previousIndex:a}=e;let r=n;if(r||(l>a?r="next":l<a?r="prev":r="reset"),e.emit(`transition${o}`),i&&l!==a){if(r==="reset"){e.emit(`slideResetTransition${o}`);return}e.emit(`slideChangeTransition${o}`),r==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`)}}function _n(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Xt({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function In(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),Xt({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var An={setTransition:Cn,transitionStart:_n,transitionEnd:In};function Pn(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let a=t;a<0&&(a=0);const{params:r,snapGrid:s,slidesGrid:u,previousIndex:c,activeIndex:p,rtlTranslate:f,wrapperEl:m,enabled:b}=l;if(l.animating&&r.preventInteractionOnTransition||!b&&!n&&!o||l.destroyed)return!1;const g=Math.min(l.params.slidesPerGroupSkip,a);let E=g+Math.floor((a-g)/l.params.slidesPerGroup);E>=s.length&&(E=s.length-1);const v=-s[E];if(r.normalizeSlideIndex)for(let h=0;h<u.length;h+=1){const T=-Math.floor(v*100),C=Math.floor(u[h]*100),A=Math.floor(u[h+1]*100);typeof u[h+1]<"u"?T>=C&&T<A-(A-C)/2?a=h:T>=C&&T<A&&(a=h+1):T>=C&&(a=h)}if(l.initialized&&a!==p&&(!l.allowSlideNext&&(f?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(p||0)!==a))return!1;a!==(c||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let y;if(a>p?y="next":a<p?y="prev":y="reset",f&&-v===l.translate||!f&&v===l.translate)return l.updateActiveIndex(a),r.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),r.effect!=="slide"&&l.setTranslate(v),y!=="reset"&&(l.transitionStart(i,y),l.transitionEnd(i,y)),!1;if(r.cssMode){const h=l.isHorizontal(),T=f?v:-v;if(e===0){const C=l.virtual&&l.params.virtual.enabled;C&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),C&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[h?"scrollLeft":"scrollTop"]=T})):m[h?"scrollLeft":"scrollTop"]=T,C&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return Gt({swiper:l,targetPosition:T,side:h?"left":"top"}),!0;m.scrollTo({[h?"left":"top"]:T,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(v),l.updateActiveIndex(a),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,n),l.transitionStart(i,y),e===0?l.transitionEnd(i,y):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(T){!l||l.destroyed||T.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(i,y))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function Dn(t,e,i,n){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;if(o.destroyed)return;const l=o.grid&&o.params.grid&&o.params.grid.rows>1;let a=t;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)a=a+o.virtual.slidesBefore;else{let r;if(l){const f=a*o.params.grid.rows;r=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else r=o.getSlideIndexByData(a);const s=l?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:u}=o.params;let c=o.params.slidesPerView;c==="auto"?c=o.slidesPerViewDynamic():(c=Math.ceil(parseFloat(o.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let p=s-r<c;if(u&&(p=p||r<Math.ceil(c/2)),p){const f=u?r<o.activeIndex?"prev":"next":r-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?r+1:r-s+1,slideRealIndex:f==="next"?o.realIndex:void 0})}if(l){const f=a*o.params.grid.rows;a=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=o.getSlideIndexByData(a)}return requestAnimationFrame(()=>{o.slideTo(a,e,i,n)}),o}function Mn(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{enabled:o,params:l,animating:a}=n;if(!o||n.destroyed)return n;let r=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(r=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<l.slidesPerGroupSkip?1:r,u=n.virtual&&l.virtual.enabled;if(l.loop){if(a&&!u&&l.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return l.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+s,t,e,i)}function On(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{params:o,snapGrid:l,slidesGrid:a,rtlTranslate:r,enabled:s,animating:u}=n;if(!s||n.destroyed)return n;const c=n.virtual&&o.virtual.enabled;if(o.loop){if(u&&!c&&o.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const p=r?n.translate:-n.translate;function f(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const m=f(p),b=l.map(v=>f(v));let g=l[b.indexOf(m)-1];if(typeof g>"u"&&o.cssMode){let v;l.forEach((y,h)=>{m>=y&&(v=h)}),typeof v<"u"&&(g=l[v>0?v-1:v])}let E=0;if(typeof g<"u"&&(E=a.indexOf(g),E<0&&(E=n.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(E=E-n.slidesPerViewDynamic("previous",!0)+1,E=Math.max(E,0))),o.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(o.loop&&n.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(E,t,e,i)}),!0;return n.slideTo(E,t,e,i)}function Ln(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this;if(!n.destroyed)return n.slideTo(n.activeIndex,t,e,i)}function kn(t,e,i,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),n===void 0&&(n=.5);const o=this;if(o.destroyed)return;let l=o.activeIndex;const a=Math.min(o.params.slidesPerGroupSkip,l),r=a+Math.floor((l-a)/o.params.slidesPerGroup),s=o.rtlTranslate?o.translate:-o.translate;if(s>=o.snapGrid[r]){const u=o.snapGrid[r],c=o.snapGrid[r+1];s-u>(c-u)*n&&(l+=o.params.slidesPerGroup)}else{const u=o.snapGrid[r-1],c=o.snapGrid[r];s-u<=(c-u)*n&&(l-=o.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,o.slidesGrid.length-1),o.slideTo(l,t,e,i)}function Nn(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let o=t.clickedIndex,l;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;l=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=t.getSlideIndex(Se(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),Fe(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=t.getSlideIndex(Se(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),Fe(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var Rn={slideTo:Pn,slideToLoop:Dn,slideNext:Mn,slidePrev:On,slideReset:Ln,slideToClosest:kn,slideToClickedSlide:Nn};function Fn(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const o=()=>{Se(n,`.${i.slideClass}, swiper-slide`).forEach((p,f)=>{p.setAttribute("data-swiper-slide-index",f)})},l=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(l?i.grid.rows:1),r=e.slides.length%a!==0,s=l&&e.slides.length%i.grid.rows!==0,u=c=>{for(let p=0;p<c;p+=1){const f=e.isElement?Ge("swiper-slide",[i.slideBlankClass]):Ge("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(r){if(i.loopAddBlankSlides){const c=a-e.slides.length%a;u(c),e.recalcSlides(),e.updateSlides()}else Je("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(s){if(i.loopAddBlankSlides){const c=i.grid.rows-e.slides.length%i.grid.rows;u(c),e.recalcSlides(),e.updateSlides()}else Je("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function zn(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:o,activeSlideIndex:l,byController:a,byMousewheel:r}=t===void 0?{}:t;const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:p,slidesEl:f,params:m}=s,{centeredSlides:b}=m;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&m.virtual.enabled){i&&(!m.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):m.centeredSlides&&s.snapIndex<m.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=c,s.allowSlideNext=p,s.emit("loopFix");return}let g=m.slidesPerView;g==="auto"?g=s.slidesPerViewDynamic():(g=Math.ceil(parseFloat(m.slidesPerView,10)),b&&g%2===0&&(g=g+1));const E=m.slidesPerGroupAuto?g:m.slidesPerGroup;let v=E;v%E!==0&&(v+=E-v%E),v+=m.loopAdditionalSlides,s.loopedSlides=v;const y=s.grid&&m.grid&&m.grid.rows>1;u.length<g+v?Je("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"):y&&m.grid.fill==="row"&&Je("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const h=[],T=[];let C=s.activeIndex;typeof l>"u"?l=s.getSlideIndex(u.filter(P=>P.classList.contains(m.slideActiveClass))[0]):C=l;const A=n==="next"||!n,L=n==="prev"||!n;let x=0,I=0;const S=y?Math.ceil(u.length/m.grid.rows):u.length,w=(y?u[l].column:l)+(b&&typeof o>"u"?-g/2+.5:0);if(w<v){x=Math.max(v-w,E);for(let P=0;P<v-w;P+=1){const M=P-Math.floor(P/S)*S;if(y){const O=S-M-1;for(let _=u.length-1;_>=0;_-=1)u[_].column===O&&h.push(_)}else h.push(S-M-1)}}else if(w+g>S-v){I=Math.max(w-(S-v*2),E);for(let P=0;P<I;P+=1){const M=P-Math.floor(P/S)*S;y?u.forEach((O,_)=>{O.column===M&&T.push(_)}):T.push(M)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),L&&h.forEach(P=>{u[P].swiperLoopMoveDOM=!0,f.prepend(u[P]),u[P].swiperLoopMoveDOM=!1}),A&&T.forEach(P=>{u[P].swiperLoopMoveDOM=!0,f.append(u[P]),u[P].swiperLoopMoveDOM=!1}),s.recalcSlides(),m.slidesPerView==="auto"?s.updateSlides():y&&(h.length>0&&L||T.length>0&&A)&&s.slides.forEach((P,M)=>{s.grid.updateSlide(M,P,s.slides)}),m.watchSlidesProgress&&s.updateSlidesOffset(),i){if(h.length>0&&L){if(typeof e>"u"){const P=s.slidesGrid[C],O=s.slidesGrid[C+x]-P;r?s.setTranslate(s.translate-O):(s.slideTo(C+Math.ceil(x),0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-O,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-O))}else if(o){const P=y?h.length/m.grid.rows:h.length;s.slideTo(s.activeIndex+P,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(T.length>0&&A)if(typeof e>"u"){const P=s.slidesGrid[C],O=s.slidesGrid[C-I]-P;r?s.setTranslate(s.translate-O):(s.slideTo(C-I,0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-O,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-O))}else{const P=y?T.length/m.grid.rows:T.length;s.slideTo(s.activeIndex-P,0,!1,!0)}}if(s.allowSlidePrev=c,s.allowSlideNext=p,s.controller&&s.controller.control&&!a){const P={slideRealIndex:e,direction:n,setTranslate:o,activeSlideIndex:l,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(M=>{!M.destroyed&&M.params.loop&&M.loopFix({...P,slideTo:M.params.slidesPerView===m.slidesPerView?i:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...P,slideTo:s.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}s.emit("loopFix")}function Bn(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(o=>{const l=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;n[l]=o}),t.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),n.forEach(o=>{i.append(o)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var jn={loopCreate:Fn,loopFix:zn,loopDestroy:Bn};function $n(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 Gn(){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 Vn={setGrabCursor:$n,unsetGrabCursor:Gn};function Hn(t,e){e===void 0&&(e=this);function i(n){if(!n||n===we()||n===fe())return null;n.assignedSlot&&(n=n.assignedSlot);const o=n.closest(t);return!o&&!n.getRootNode?null:o||i(n.getRootNode().host)}return i(e)}function Yt(t,e,i){const n=fe(),{params:o}=t,l=o.edgeSwipeDetection,a=o.edgeSwipeThreshold;return l&&(i<=a||i>=n.innerWidth-a)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function Un(t){const e=this,i=we();let n=t;n.originalEvent&&(n=n.originalEvent);const o=e.touchEventsData;if(n.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==n.pointerId)return;o.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(o.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Yt(e,n,n.targetTouches[0].pageX);return}const{params:l,touches:a,enabled:r}=e;if(!r||!l.simulateTouch&&n.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let s=n.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||o.isTouched&&o.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",c=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&c&&(s=c[0]);const p=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(l.noSwiping&&(f?Hn(p,s):s.closest(p))){e.allowClick=!0;return}if(l.swipeHandler&&!s.closest(l.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const m=a.currentX,b=a.currentY;if(!Yt(e,n,m))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=b,o.touchStartTime=be(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(o.allowThresholdMove=!1);let g=!0;s.matches(o.focusableElements)&&(g=!1,s.nodeName==="SELECT"&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const E=g&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||E)&&!s.isContentEditable&&n.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Wn(t){const e=we(),i=this,n=i.touchEventsData,{params:o,touches:l,rtlTranslate:a,enabled:r}=i;if(!r||!o.simulateTouch&&t.pointerType==="mouse")return;let s=t;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(n.touchId!==null||s.pointerId!==n.pointerId))return;let u;if(s.type==="touchmove"){if(u=[...s.changedTouches].filter(A=>A.identifier===n.touchId)[0],!u||u.identifier!==n.touchId)return}else u=s;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",s);return}const c=u.pageX,p=u.pageY;if(s.preventedByNestedSwiper){l.startX=c,l.startY=p;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(l,{startX:c,startY:p,currentX:c,currentY:p}),n.touchStartTime=be());return}if(o.touchReleaseOnEdges&&!o.loop){if(i.isVertical()){if(p<l.startY&&i.translate<=i.maxTranslate()||p>l.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(c<l.startX&&i.translate<=i.maxTranslate()||c>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&s.target===e.activeElement&&s.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",s),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=c,l.currentY=p;const f=l.currentX-l.startX,m=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let A;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?n.isScrolling=!1:f*f+m*m>=25&&(A=Math.atan2(Math.abs(m),Math.abs(f))*180/Math.PI,n.isScrolling=i.isHorizontal()?A>o.touchAngle:90-A>o.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!o.cssMode&&s.cancelable&&s.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&s.stopPropagation();let b=i.isHorizontal()?f:m,g=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;o.oneWayMovement&&(b=Math.abs(b)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),l.diff=b,b*=o.touchRatio,a&&(b=-b,g=-g);const E=i.touchesDirection;i.swipeDirection=b>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const v=i.params.loop&&!o.cssMode,y=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(v&&y&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const A=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(A)}n.allowMomentumBounce=!1,o.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",s)}let h;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&E!==i.touchesDirection&&v&&y&&Math.abs(b)>=1){Object.assign(l,{startX:c,startY:p,currentX:c,currentY:p,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",s),n.isMoved=!0,n.currentTranslate=b+n.startTranslate;let T=!0,C=o.resistanceRatio;if(o.touchReleaseOnEdges&&(C=0),b>0?(v&&y&&!h&&n.allowThresholdMove&&n.currentTranslate>(o.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(T=!1,o.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+b)**C))):b<0&&(v&&y&&!h&&n.allowThresholdMove&&n.currentTranslate<(o.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(o.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(T=!1,o.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-b)**C))),T&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),o.threshold>0)if(Math.abs(b)>o.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,n.currentTranslate=n.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{n.currentTranslate=n.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&i.freeMode||o.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Xn(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let o;if(n.type==="touchend"||n.type==="touchcancel"){if(o=[...n.changedTouches].filter(C=>C.identifier===i.touchId)[0],!o||o.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;o=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:r,rtlTranslate:s,slidesGrid:u,enabled:c}=e;if(!c||!a.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const p=be(),f=p-i.touchStartTime;if(e.allowClick){const C=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(C&&C[0]||n.target,C),e.emit("tap click",n),f<300&&p-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=be(),Fe(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||r.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=s?e.translate:-e.translate:m=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const b=m>=-e.maxTranslate()&&!e.params.loop;let g=0,E=e.slidesSizesGrid[0];for(let C=0;C<u.length;C+=C<a.slidesPerGroupSkip?1:a.slidesPerGroup){const A=C<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof u[C+A]<"u"?(b||m>=u[C]&&m<u[C+A])&&(g=C,E=u[C+A]-u[C]):(b||m>=u[C])&&(g=C,E=u[u.length-1]-u[u.length-2])}let v=null,y=null;a.rewind&&(e.isBeginning?y=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const h=(m-u[g])/E,T=g<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?v:g+T):e.slideTo(g)),e.swipeDirection==="prev"&&(h>1-a.longSwipesRatio?e.slideTo(g+T):y!==null&&h<0&&Math.abs(h)>a.longSwipesRatio?e.slideTo(y):e.slideTo(g))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(g+T):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:g+T),e.swipeDirection==="prev"&&e.slideTo(y!==null?y:g))}}function qt(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:o,snapGrid:l}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const r=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!r?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=o,t.allowSlideNext=n,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Yn(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function qn(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let o;const l=t.maxTranslate()-t.minTranslate();l===0?o=0:o=(t.translate-t.minTranslate())/l,o!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Qn(t){const e=this;Ze(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Jn(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Qt=(t,e)=>{const i=we(),{params:n,el:o,wrapperEl:l,device:a}=t,r=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",u=e;i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:r}),o[s]("touchstart",t.onTouchStart,{passive:!1}),o[s]("pointerdown",t.onTouchStart,{passive:!1}),i[s]("touchmove",t.onTouchMove,{passive:!1,capture:r}),i[s]("pointermove",t.onTouchMove,{passive:!1,capture:r}),i[s]("touchend",t.onTouchEnd,{passive:!0}),i[s]("pointerup",t.onTouchEnd,{passive:!0}),i[s]("pointercancel",t.onTouchEnd,{passive:!0}),i[s]("touchcancel",t.onTouchEnd,{passive:!0}),i[s]("pointerout",t.onTouchEnd,{passive:!0}),i[s]("pointerleave",t.onTouchEnd,{passive:!0}),i[s]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&o[s]("click",t.onClick,!0),n.cssMode&&l[s]("scroll",t.onScroll),n.updateOnWindowResize?t[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",qt,!0):t[u]("observerUpdate",qt,!0),o[s]("load",t.onLoad,{capture:!0})};function Kn(){const t=this,{params:e}=t;t.onTouchStart=Un.bind(t),t.onTouchMove=Wn.bind(t),t.onTouchEnd=Xn.bind(t),t.onDocumentTouchStart=Jn.bind(t),e.cssMode&&(t.onScroll=qn.bind(t)),t.onClick=Yn.bind(t),t.onLoad=Qn.bind(t),Qt(t,"on")}function Zn(){Qt(this,"off")}var eo={attachEvents:Kn,detachEvents:Zn};const Jt=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function to(){const t=this,{realIndex:e,initialized:i,params:n,el:o}=t,l=n.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const a=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const s=(a in l?l[a]:void 0)||t.originalParams,u=Jt(t,n),c=Jt(t,s),p=n.enabled;u&&!c?(o.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&c&&(o.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&o.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(v=>{if(typeof s[v]>"u")return;const y=n[v]&&n[v].enabled,h=s[v]&&s[v].enabled;y&&!h&&t[v].disable(),!y&&h&&t[v].enable()});const f=s.direction&&s.direction!==n.direction,m=n.loop&&(s.slidesPerView!==n.slidesPerView||f),b=n.loop;f&&i&&t.changeDirection(),ge(t.params,s);const g=t.params.enabled,E=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!g?t.disable():!p&&g&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",s),i&&(m?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!b&&E?(t.loopCreate(e),t.updateSlides()):b&&!E&&t.loopDestroy()),t.emit("breakpoint",s)}function io(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const o=fe(),l=e==="window"?o.innerHeight:i.clientHeight,a=Object.keys(t).map(r=>{if(typeof r=="string"&&r.indexOf("@")===0){const s=parseFloat(r.substr(1));return{value:l*s,point:r}}return{value:r,point:r}});a.sort((r,s)=>parseInt(r.value,10)-parseInt(s.value,10));for(let r=0;r<a.length;r+=1){const{point:s,value:u}=a[r];e==="window"?o.matchMedia(`(min-width: ${u}px)`).matches&&(n=s):u<=i.clientWidth&&(n=s)}return n||"max"}var no={setBreakpoint:to,getBreakpoint:io};function oo(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(o=>{n[o]&&i.push(e+o)}):typeof n=="string"&&i.push(e+n)}),i}function lo(){const t=this,{classNames:e,params:i,rtl:n,el:o,device:l}=t,a=oo(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),o.classList.add(...e),t.emitContainerClasses()}function so(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var ro={addClasses:lo,removeClasses:so};function ao(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const o=t.slides.length-1,l=t.slidesGrid[o]+t.slidesSizesGrid[o]+n*2;t.isLocked=t.size>l}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var co={checkOverflow:ao},wt={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 uo(t,e){return function(n){n===void 0&&(n={});const o=Object.keys(n)[0],l=n[o];if(typeof l!="object"||l===null){ge(e,n);return}if(t[o]===!0&&(t[o]={enabled:!0}),o==="navigation"&&t[o]&&t[o].enabled&&!t[o].prevEl&&!t[o].nextEl&&(t[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&t[o]&&t[o].enabled&&!t[o].el&&(t[o].auto=!0),!(o in t&&"enabled"in l)){ge(e,n);return}typeof t[o]=="object"&&!("enabled"in t[o])&&(t[o].enabled=!0),t[o]||(t[o]={enabled:!1}),ge(e,n)}}const yt={eventsEmitter:rn,update:bn,translate:Tn,transition:An,slide:Rn,loop:jn,grabCursor:Vn,events:eo,breakpoints:no,checkOverflow:co,classes:ro},St={};let Et=class xe{constructor(){let e,i;for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?i=o[0]:[e,i]=o,i||(i={}),i=ge({},i),e&&!i.el&&(i.el=e);const a=we();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const c=[];return a.querySelectorAll(i.el).forEach(p=>{const f=ge({},i,{el:p});c.push(new xe(f))}),c}const r=this;r.__swiper__=!0,r.support=Ut(),r.device=Wt({userAgent:i.userAgent}),r.browser=on(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],i.modules&&Array.isArray(i.modules)&&r.modules.push(...i.modules);const s={};r.modules.forEach(c=>{c({params:i,swiper:r,extendParams:uo(i,s),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const u=ge({},wt,s);return r.params=ge({},u,St,i),r.originalParams=ge({},r.params),r.passedParams=ge({},i),r.params&&r.params.on&&Object.keys(r.params.on).forEach(c=>{r.on(c,r.params.on[c])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return r.params.direction==="horizontal"},isVertical(){return r.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:r.params.allowSlideNext,allowSlidePrev:r.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:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,o=Se(i,`.${n.slideClass}, swiper-slide`),l=Ke(o[0]);return Ke(e)-l}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:n}=e;e.slides=Se(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const o=n.minTranslate(),a=(n.maxTranslate()-o)*e+o;n.translateTo(a,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const o=e.getSlideClasses(n);i.push({slideEl:n,classNames:o}),e.emit("_slideClass",n,o)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:o,slides:l,slidesGrid:a,slidesSizesGrid:r,size:s,activeIndex:u}=n;let c=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let p=l[u]?Math.ceil(l[u].swiperSlideSize):0,f;for(let m=u+1;m<l.length;m+=1)l[m]&&!f&&(p+=Math.ceil(l[m].swiperSlideSize),c+=1,p>s&&(f=!0));for(let m=u-1;m>=0;m-=1)l[m]&&!f&&(p+=l[m].swiperSlideSize,c+=1,p>s&&(f=!0))}else if(e==="current")for(let p=u+1;p<l.length;p+=1)(i?a[p]+r[p]-a[u]<s:a[p]-a[u]<s)&&(c+=1);else for(let p=u-1;p>=0;p-=1)a[u]-a[p]<s&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Ze(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function o(){const a=e.rtlTranslate?e.translate*-1:e.translate,r=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)o(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(a.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||o()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,o=n.params.direction;return e||(e=o==="horizontal"?"vertical":"horizontal"),e===o||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${o}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const o=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(o()):Se(n,o())[0];return!a&&i.params.createElements&&(a=Ge("div",i.params.wrapperClass),n.append(a),Se(n,`.${i.params.slideClass}`).forEach(r=>{a.append(r)})),Object.assign(i,{el:n,wrapperEl:a,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||_e(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||_e(n,"direction")==="rtl"),wrongRTL:_e(a,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const o=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&o.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(l=>{l.complete?Ze(i,l):l.addEventListener("load",a=>{Ze(i,a.target)})}),bt(i),i.initialized=!0,bt(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:o,el:l,wrapperEl:a,slides:r}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),o.loop&&n.loopDestroy(),i&&(n.removeClasses(),l.removeAttribute("style"),a.removeAttribute("style"),r&&r.length&&r.forEach(s=>{s.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(s=>{n.off(s)}),e!==!1&&(n.el.swiper=null,Hi(n)),n.destroyed=!0),null}static extendDefaults(e){ge(St,e)}static get extendedDefaults(){return St}static get defaults(){return wt}static installModule(e){xe.prototype.__modules__||(xe.prototype.__modules__=[]);const i=xe.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>xe.installModule(i)),xe):(xe.installModule(e),xe)}};Object.keys(yt).forEach(t=>{Object.keys(yt[t]).forEach(e=>{Et.prototype[e]=yt[t][e]})}),Et.use([ln,sn]);const Kt=["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 Ne(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Be(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:Ne(e[n])&&Ne(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:Be(t[n],e[n]):t[n]=e[n]})}function Zt(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function ei(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function ti(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function ii(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function vo(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function po(t){let{swiper:e,slides:i,passedParams:n,changedParams:o,nextEl:l,prevEl:a,scrollbarEl:r,paginationEl:s}=t;const u=o.filter(I=>I!=="children"&&I!=="direction"&&I!=="wrapperClass"),{params:c,pagination:p,navigation:f,scrollbar:m,virtual:b,thumbs:g}=e;let E,v,y,h,T,C,A,L;o.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(E=!0),o.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(v=!0),o.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(c.pagination||c.pagination===!1)&&p&&!p.el&&(y=!0),o.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||r)&&(c.scrollbar||c.scrollbar===!1)&&m&&!m.el&&(h=!0),o.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||l)&&(c.navigation||c.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(T=!0);const x=I=>{e[I]&&(e[I].destroy(),I==="navigation"?(e.isElement&&(e[I].prevEl.remove(),e[I].nextEl.remove()),c[I].prevEl=void 0,c[I].nextEl=void 0,e[I].prevEl=void 0,e[I].nextEl=void 0):(e.isElement&&e[I].el.remove(),c[I].el=void 0,e[I].el=void 0))};o.includes("loop")&&e.isElement&&(c.loop&&!n.loop?C=!0:!c.loop&&n.loop?A=!0:L=!0),u.forEach(I=>{if(Ne(c[I])&&Ne(n[I]))Object.assign(c[I],n[I]),(I==="navigation"||I==="pagination"||I==="scrollbar")&&"enabled"in n[I]&&!n[I].enabled&&x(I);else{const S=n[I];(S===!0||S===!1)&&(I==="navigation"||I==="pagination"||I==="scrollbar")?S===!1&&x(I):c[I]=n[I]}}),u.includes("controller")&&!v&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),o.includes("children")&&i&&b&&c.virtual.enabled?(b.slides=i,b.update(!0)):o.includes("virtual")&&b&&c.virtual.enabled&&(i&&(b.slides=i),b.update(!0)),o.includes("children")&&i&&c.loop&&(L=!0),E&&g.init()&&g.update(!0),v&&(e.controller.control=c.controller.control),y&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(c.pagination.el=s),p.init(),p.render(),p.update()),h&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-scrollbar"),r.part.add("scrollbar"),e.el.appendChild(r)),r&&(c.scrollbar.el=r),m.init(),m.updateSize(),m.setTranslate()),T&&(e.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=e.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),e.el.appendChild(l)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),l&&(c.navigation.nextEl=l),a&&(c.navigation.prevEl=a),f.init(),f.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),o.includes("direction")&&e.changeDirection(n.direction,!1),(C||L)&&e.loopDestroy(),(A||L)&&e.loopCreate(),e.update()}function fo(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},o={};Be(i,wt),i._emitClasses=!0,i.init=!1;const l={},a=Kt.map(s=>s.replace(/_/,"")),r=Object.assign({},t);return Object.keys(r).forEach(s=>{typeof t[s]>"u"||(a.indexOf(s)>=0?Ne(t[s])?(i[s]={},o[s]={},Be(i[s],t[s]),Be(o[s],t[s])):(i[s]=t[s],o[s]=t[s]):s.search(/on[A-Z]/)===0&&typeof t[s]=="function"?e?n[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:i.on[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:l[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:o,rest:l,events:n}}function mo(t,e){let{el:i,nextEl:n,prevEl:o,paginationEl:l,scrollbarEl:a,swiper:r}=t;Zt(e)&&n&&o&&(r.params.navigation.nextEl=n,r.originalParams.navigation.nextEl=n,r.params.navigation.prevEl=o,r.originalParams.navigation.prevEl=o),ei(e)&&l&&(r.params.pagination.el=l,r.originalParams.pagination.el=l),ti(e)&&a&&(r.params.scrollbar.el=a,r.originalParams.scrollbar.el=a),r.init(i)}function ho(t,e,i,n,o){const l=[];if(!e)return l;const a=s=>{l.indexOf(s)<0&&l.push(s)};if(i&&n){const s=n.map(o),u=i.map(o);s.join("")!==u.join("")&&a("children"),n.length!==i.length&&a("children")}return Kt.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in t&&s in e)if(Ne(t[s])&&Ne(e[s])){const u=Object.keys(t[s]),c=Object.keys(e[s]);u.length!==c.length?a(s):(u.forEach(p=>{t[s][p]!==e[s][p]&&a(s)}),c.forEach(p=>{t[s][p]!==e[s][p]&&a(s)}))}else t[s]!==e[s]&&a(s)}),l}const go=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 et(){return et=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},et.apply(this,arguments)}function ni(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function oi(t){const e=[];return d.Children.toArray(t).forEach(i=>{ni(i)?e.push(i):i.props&&i.props.children&&oi(i.props.children).forEach(n=>e.push(n))}),e}function bo(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return d.Children.toArray(t).forEach(n=>{if(ni(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const o=oi(n.props.children);o.length>0?o.forEach(l=>e.push(l)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function wo(t,e,i){if(!i)return null;const n=c=>{let p=c;return c<0?p=e.length+c:p>=e.length&&(p=p-e.length),p},o=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:a}=i,r=t.params.loop?-e.length:0,s=t.params.loop?e.length*2:e.length,u=[];for(let c=r;c<s;c+=1)c>=l&&c<=a&&u.push(e[n(c)]);return u.map((c,p)=>d.cloneElement(c,{swiper:t,style:o,key:c.props.virtualIndex||c.key||`slide-${p}`}))}function Ue(t,e){return typeof window>"u"?d.useEffect(t,e):d.useLayoutEffect(t,e)}const xt=d.createContext(null),li=()=>d.useContext(xt),yo=d.createContext(null),Ie=d.forwardRef(function(t,e){let{className:i,tag:n="div",wrapperTag:o="div",children:l,onSwiper:a,...r}=t===void 0?{}:t,s=!1;const[u,c]=d.useState("swiper"),[p,f]=d.useState(null),[m,b]=d.useState(!1),g=d.useRef(!1),E=d.useRef(null),v=d.useRef(null),y=d.useRef(null),h=d.useRef(null),T=d.useRef(null),C=d.useRef(null),A=d.useRef(null),L=d.useRef(null),{params:x,passedParams:I,rest:S,events:D}=fo(r),{slides:w,slots:P}=bo(l),M=()=>{b(!m)};Object.assign(x.on,{_containerClasses(F,G){c(G)}});const O=()=>{Object.assign(x.on,D),s=!0;const F={...x};if(delete F.wrapperClass,v.current=new Et(F),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=w;const G={cache:!1,slides:w,renderExternal:f,renderExternalUpdate:!1};Be(v.current.params.virtual,G),Be(v.current.originalParams.virtual,G)}};E.current||O(),v.current&&v.current.on("_beforeBreakpoint",M);const _=()=>{s||!D||!v.current||Object.keys(D).forEach(F=>{v.current.on(F,D[F])})},z=()=>{!D||!v.current||Object.keys(D).forEach(F=>{v.current.off(F,D[F])})};d.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",M)}),d.useEffect(()=>{!g.current&&v.current&&(v.current.emitSlidesClasses(),g.current=!0)}),Ue(()=>{if(e&&(e.current=E.current),!!E.current)return v.current.destroyed&&O(),mo({el:E.current,nextEl:T.current,prevEl:C.current,paginationEl:A.current,scrollbarEl:L.current,swiper:v.current},x),a&&!v.current.destroyed&&a(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),Ue(()=>{_();const F=ho(I,y.current,w,h.current,G=>G.key);return y.current=I,h.current=w,F.length&&v.current&&!v.current.destroyed&&po({swiper:v.current,slides:w,passedParams:I,changedParams:F,nextEl:T.current,prevEl:C.current,scrollbarEl:L.current,paginationEl:A.current}),()=>{z()}}),Ue(()=>{go(v.current)},[p]);function k(){return x.virtual?wo(v.current,w,p):w.map((F,G)=>d.cloneElement(F,{swiper:v.current,swiperSlideIndex:G}))}return d.createElement(n,et({ref:E,className:ii(`${u}${i?` ${i}`:""}`)},S),d.createElement(yo.Provider,{value:v.current},P["container-start"],d.createElement(o,{className:vo(x.wrapperClass)},P["wrapper-start"],k(),P["wrapper-end"]),Zt(x)&&d.createElement(d.Fragment,null,d.createElement("div",{ref:C,className:"swiper-button-prev"}),d.createElement("div",{ref:T,className:"swiper-button-next"})),ti(x)&&d.createElement("div",{ref:L,className:"swiper-scrollbar"}),ei(x)&&d.createElement("div",{ref:A,className:"swiper-pagination"}),P["container-end"]))});Ie.displayName="Swiper";const ye=d.forwardRef(function(t,e){let{tag:i="div",children:n,className:o="",swiper:l,zoom:a,lazy:r,virtualIndex:s,swiperSlideIndex:u,...c}=t===void 0?{}:t;const p=d.useRef(null),[f,m]=d.useState("swiper-slide"),[b,g]=d.useState(!1);function E(T,C,A){C===p.current&&m(A)}Ue(()=>{if(typeof u<"u"&&(p.current.swiperSlideIndex=u),e&&(e.current=p.current),!(!p.current||!l)){if(l.destroyed){f!=="swiper-slide"&&m("swiper-slide");return}return l.on("_slideClass",E),()=>{l&&l.off("_slideClass",E)}}}),Ue(()=>{l&&p.current&&!l.destroyed&&m(l.getSlideClasses(p.current))},[l]);const v={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},y=()=>typeof n=="function"?n(v):n,h=()=>{g(!0)};return d.createElement(i,et({ref:p,className:ii(`${f}${o?` ${o}`:""}`),"data-swiper-slide-index":s,onLoad:h},c),a&&d.createElement(xt.Provider,{value:v},d.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},y(),r&&!b&&d.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&d.createElement(xt.Provider,{value:v},y(),r&&!b&&d.createElement("div",{className:"swiper-lazy-preloader"})))});ye.displayName="SwiperSlide";function Re(){const{bffEventReport:t,popupDetailData:e,waterFallData:i,isFromHashtag:n}=Q(),o=d.useCallback((a,r,s)=>{var u,c,p,f,m,b,g,E,v,y,h,T,C,A;let L="";e&&(!((c=(u=a?.video)===null||u===void 0?void 0:u.bindProducts)===null||c===void 0)&&c.length||!((p=a?.video)===null||p===void 0)&&p.bindProduct)?L="pdpPage":n?L="hashTagPage":!((f=a?.video)===null||f===void 0)&&f.url?L="videoPage":!((m=a?.video)===null||m===void 0)&&m.imgUrls&&(!((g=(b=a?.video)===null||b===void 0?void 0:b.imgUrls)===null||g===void 0)&&g.length)?L="imagePage":a?.product&&(L="productPage"),t?.({eventInfo:{eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(E=r?.itemId)!==null&&E!==void 0?E:"",productName:(v=r?.title)!==null&&v!==void 0?v:"",price:r?.price?r?.price+"":"0",productCollection:(y=r?.collection)!==null&&y!==void 0?y:"",fromKName:L,fromKPage:location?.href,contentTags:r?.tags?JSON.stringify(r?.tags):"",position:a?.position+"",relatedContentId:(T=(h=a?.video)===null||h===void 0?void 0:h.itemId)!==null&&T!==void 0?T:"",relatedCtatId:(C=s?.itemId)!==null&&C!==void 0?C:"",traceInfo:(A=r?.traceInfo)!==null&&A!==void 0?A:""}})},[t,e,n]),l=d.useCallback((a,r,s,u)=>{var c,p,f,m;let b="";e&&(!((p=(c=a?.video)===null||c===void 0?void 0:c.bindProducts)===null||p===void 0)&&p.length||!((f=a?.video)===null||f===void 0)&&f.bindProduct)?b="pdpPage":a?.product&&(b="productPage"),t?.({eventInfo:{productId:r?.itemId,productName:r?.title,price:r?.price+"",productCollection:r?.collection,fromKName:b,fromKPage:location?.href,contentTags:JSON.stringify(r?.tags),position:a?.position+"",relatedContentId:(m=a?.video)===null||m===void 0?void 0:m.itemId,relatedCtatId:s?.itemId,traceInfo:r?.traceInfo,timeOnSite:Math.floor((new Date-u)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]);return{jumpToWeb:o,productView:l}}const So=t=>{var e,i,n,o,l,a,r,s,u,c,p,{content:f,style:m,bgImg:b,onClick:g,schema:E,isDefault:v,bottom_image:y}=t,h=ve(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image"]);const{sxpParameter:T}=Q(),{popupDetailData:C,bffEventReport:A,isPreview:L,waterFallData:x}=Q(),{jumpToWeb:I,productView:S}=Re(),D=d.useRef(null),w=(e=C?.video)===null||e===void 0?void 0:e.bindProduct,P=(n=(i=C?.video)===null||i===void 0?void 0:i.bindProduct)===null||n===void 0?void 0:n.bindCta,M=()=>{w?.link&&(I(C,w,P),S(C,w,P,D.current),window.location.href=window.getJointUtmLink(w.link))};d.useEffect(()=>{const z=()=>{D.current=new Date};return z(),window.addEventListener("pageshow",z),()=>{window.removeEventListener("pageshow",z)}},[]);const O=d.useMemo(()=>{var z,k,F,G,H;return w?.currency&&w?.price?`${(F=(k=(z=w?.currency)===null||z===void 0?void 0:z.split("-")[1])===null||k===void 0?void 0:k.toUpperCase())!==null&&F!==void 0?F:""}${(H=(G=w?.price)===null||G===void 0?void 0:G.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&H!==void 0?H:""}`:"$7,000"},[w?.price,w?.currency]),_=L?375:window.innerWidth;return d.createElement("div",{className:"pb-commondity"},d.createElement("div",Object.assign({className:U.css(Object.assign({},m))},h),w&&((o=w?.homePage)===null||o===void 0?void 0:o.length)>0&&d.createElement(Ie,{height:_,modules:[Ve,He],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet"},loop:!0,autoplay:{delay:3e3}},(l=w?.homePage)===null||l===void 0?void 0:l.map(z=>d.createElement(ye,{key:z},d.createElement("div",{style:{overflow:"hidden",width:_,height:_}},d.createElement("img",{src:z,style:{height:"100%",width:"100%",objectFit:"cover"}}))))),!(!((a=w?.homePage)===null||a===void 0)&&a.length)&&d.createElement("div",{className:U.css({position:"relative",height:0,width:"100%",paddingBottom:"100%",overflow:"hidden"})},d.createElement("img",{className:U.css({position:"absolute",left:0,top:0,objectFit:"cover",width:"100%"}),src:(r=T?.bottom_image)!==null&&r!==void 0?r:y,alt:""})),d.createElement("div",{className:"pb-commondity-content"},d.createElement("div",{className:"pb-commondity-content-collection"},(s=w?.collection)!==null&&s!==void 0?s:"Tiffany Lock"),d.createElement("div",{className:"pb-commondity-content-title"},(u=w?.title)!==null&&u!==void 0?u:"Pendant in Yellow Gold with Diamonds, Medium"),d.createElement("div",{className:"pb-commondity-content-price"},O),d.createElement("div",{className:"pb-commondity-content-info"},(c=w?.info)!==null&&c!==void 0?c:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var le=require("lodash"),hi=require("uuid"),gi=require("pako"),d=require("react"),Ot=require("qs"),V=require("@emotion/css"),bi=require("@ant-design/pro-components"),yi=require("react-dom"),wi=require("eventemitter3");function Si(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var Mt=Si(yi);function re(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]]);return i}function ue(t,e,i,n){function o(l){return l instanceof i?l:new i(function(r){r(l)})}return new(i||(i=Promise))(function(l,r){function a(c){try{u(n.next(c))}catch(f){r(f)}}function s(c){try{u(n.throw(c))}catch(f){r(f)}}function u(c){c.done?l(c.value):o(c.value).then(a,s)}u((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Ei=/:\w+/g;var Nt=(t,e)=>ue(void 0,void 0,void 0,function*(){const i={},n={};for(let o=0;o<e?.length;o++){const{id:l,method:r,url:a,urlParams:s,name:u,queryString:c,headers:f,body:h}=e[o];let v=a;s&&Object.entries(s).forEach(([y,_])=>{v=v.replace(Ei,b=>b===y?_:b)}),c&&(v+=c),n[l]=u;try{const y=yield fetch(v,{method:r,headers:Object.assign({"Content-Type":"application/json"},f),body:JSON.stringify(h)}).then(_=>_.json());i[l]=y}catch(y){console.error("DataSource request error: ",y),i[l]={}}}return{$store:i,idMapName:n}});const kt="SXP_TOKEN_INFO",Ti=(t,e)=>ue(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),o=t.getAppId(),l=t.getApiUrl(),r=window.localStorage.getItem(kt);let a=JSON.parse(r||"{}");if(Date.now()>((i=a?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":o||""}}).then(c=>c.json());if(u.success){const c=u.data;a=Object.assign(Object.assign({},c),{expireTime:Date.now()+c.expire*1e3}),window.localStorage.setItem(kt,JSON.stringify(a))}}return a});function Ke(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let o;if(e=e||i.length,t)for(o=0;o<t;o++)n[o]=i[0|Math.random()*e];else{let l;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",o=0;o<36;o++)n[o]||(l=0|Math.random()*16,n[o]=i[o===19?l&3|8:l])}return n.join("")}const xi=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let o=0;for(;o<t;)e+=i.charAt(Math.floor(Math.random()*n)),o+=1;return e},Ci=()=>{const t=hi.v4();return t?.replaceAll?t.replaceAll("-",""):xi(32)};function Lt(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),n=new Uint8Array(i),o=gi.inflate(n,{to:"string"});return JSON.parse(o)}let dt=null;const _i={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Ii{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,dt)return dt;dt=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?_i[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let se=null;const Ai={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{se||(se=new Ii),n&&se.setApiUrl(n),se.setAppId(t),se.setTenantId(e),se.setEnv(i)},getDetail:t=>{if(!se)return;const e=se.getTenantId(),i=se.getAppId(),n=se.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>ue(void 0,void 0,void 0,function*(){var l,r;const a=yield o.json(),s=Lt((l=a?.data)===null||l===void 0?void 0:l.data);if(s){const{$store:u}=yield Nt(n,(r=s?.dataSource)!==null&&r!==void 0?r:[]);a.data.data=s,Object.assign(a.data.data,{__STORE__:u})}return a}))},getSxpDetailByPageId:t=>ue(void 0,void 0,void 0,function*(){if(!se)return;const e=se.getTenantId(),i=se.getAppId(),n=se.getApiUrl();return fetch(`${n}/storefront/v1/page?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>ue(void 0,void 0,void 0,function*(){var l;const r=yield o.json();if(!r.success)return;const a=Lt((l=r?.data)===null||l===void 0?void 0:l.data);return r.data.data=a,r.data}))}),getSxpRecommendVideoData:t=>ue(void 0,void 0,void 0,function*(){if(!se)return;const e=yield Ti(se,t),i=Ke(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");le.isEmpty(n)&&(n=Ke(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const o=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return o?.data||null})};function me(){return d.useContext($t)}function Pi(){return d.useContext(Gt)}const ct="feRealSessionIdKey",Rt=()=>{const t=Ci();return`${Date.now()}${t}`},Di=()=>{let t=Mi();return t||(t=Rt(),window.sessionStorage.setItem(ct,t)),t},Oi=()=>{const t=Rt();window.sessionStorage.setItem(ct,t)},Mi=()=>window.sessionStorage.getItem(ct),zt="SXP_FAKE_USER_ID",Ni=()=>{let t=window.localStorage.getItem(zt);return le.isEmpty(t)&&(t=Ke(36,62),window.localStorage.setItem(zt,t)),t};function Le(t,e){const{appDomain:i}=Q();return d.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const Ft=d.createContext({rtcList:[]});var ut;(function(t){t[t.BFF=5]="BFF"})(ut||(ut={}));const ki=["utm_source","utm_medium","utm_campaign","utm_id","utm_content","cl_source"],Li=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:o,defaultSize:l,isPreview:r=!1,sxpParameter:a,appDomain:s,hashTagSize:u,loadingImage:c})=>{const[f,h]=d.useState([]),[v,y]=d.useState(!1),[_,b]=d.useState({rtc:"",requestId:""}),p=d.useRef(null),m=d.useRef(!1),[g,w]=d.useState(),[x,A]=d.useState(),[k,S]=d.useState(!1),[E,T]=d.useState([]),[D,C]=d.useState(0),[I,M]=d.useState(!1),R=d.useMemo(()=>e?.find(j=>j.type===ut.BFF),[e]),z=d.useCallback((j,F)=>{if(!R)return;const H=R.url,Y=Ni();if(F?.query){const K=Ot.stringify(F.query);j=`${j}?${K}`}return F.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${H}/api/v1${j}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},R.headers),{"x-user-id":Y}),F.body))],{type:"application/json;charset=UTF-8"})):window.fetch(`${H}/api/v1${j}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":Y},R.headers),method:F.method,body:JSON.stringify(F.body)}).then(K=>K.json()).catch(K=>Promise.reject(K))},[R]),B=d.useCallback(j=>ue(void 0,void 0,void 0,function*(){var F,H,Y,K;if(j={maxSize:o,defaultSize:(F=j?.defaultSize)!==null&&F!==void 0?F:l,"itemFilter.itemId":j?.["itemFilter.itemId"],"itemFilter.itemType":j?.["itemFilter.itemType"],hashTag:j?.hashTag,traceInfo:j?.traceInfo},i){const pe=(K=(Y=(H=i?.split("&"))===null||H===void 0?void 0:H.filter(fe=>{const Ee=fe.split("=")[0];return ki.includes(Ee)}))===null||Y===void 0?void 0:Y.join("&"))!==null&&K!==void 0?K:"";j=Object.assign(Object.assign({},j),{channel:decodeURIComponent(pe)})}const ee=yield z?.("/recommend/list",{method:"GET",query:j});if(ee?.success)return j?.hashTag||b({rtc:ee.data.rtc,requestId:ee.data.requestId}),ee?.data}),[z,i,o,l]),O=d.useCallback(()=>ue(void 0,void 0,void 0,function*(){var j,F;if(f.length<=0)return;const H=yield B({hashTag:x?.hashTag,"itemFilter.itemId":x?.itemId,"itemFilter.itemType":x?.itemType});h(f.concat((j=H?.recList)!==null&&j!==void 0?j:[])),T(E.concat((F=H?.recList)!==null&&F!==void 0?F:[]))}),[B,f,x,E]),P=d.useCallback(({userInfo:j,eventInfo:F})=>{if(!n)return;j||(j={});const H=Di(),Y=Object.assign({sessionID:H,rtc:_.rtc,requestId:_.requestId},F),K=Object.entries(j).map(([pe,fe])=>({name:pe,value:fe})),ee=Object.entries(Y).map(([pe,fe])=>fe&&{name:pe,value:fe}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",j),console.log("eventInfo:",Y),console.log("========= \u7ED3\u675F ========="),z?.("/event/report",{method:"POST",body:{userInfo:K,eventInfo:ee},type:"beacon"})},[z,_,n]),N=d.useCallback(j=>ue(void 0,void 0,void 0,function*(){const F=yield z?.("/recommend/like",{method:"POST",body:j});return F?.success}),[z]),U=d.useCallback(j=>ue(void 0,void 0,void 0,function*(){const F=yield z?.("/recommend/unlike",{method:"POST",body:j});return F?.success}),[z]),te=d.useCallback(j=>ue(void 0,void 0,void 0,function*(){const F=yield z?.("/customform",{method:"POST",body:j});return F?.success}),[z]),ne=d.useCallback((j,F,H)=>{var Y,K,ee,pe,fe,Ee,Ve,Oe,ze,Ie,He,Ue;const ce=H?.bindCta,L=((Y=F?.video)===null||Y===void 0?void 0:Y.bindProduct)||((K=F?.video)===null||K===void 0?void 0:K.bindProducts)&&((pe=(ee=F?.video)===null||ee===void 0?void 0:ee.bindProducts)===null||pe===void 0?void 0:pe.length)>0;let $="";I?$="hashTagPage":!((fe=F?.video)===null||fe===void 0)&&fe.url?$="videoPage":!((Ve=(Ee=F?.video)===null||Ee===void 0?void 0:Ee.imgUrls)===null||Ve===void 0)&&Ve.length&&($="imagePage"),P?.({eventInfo:Object.assign(Object.assign({},j),{ctaId:(Oe=ce?.itemId)!==null&&Oe!==void 0?Oe:"",ctaName:(ze=ce?.title)!==null&&ze!==void 0?ze:"",contentTags:JSON.stringify(ce?.tags),position:F?.position,relatedContentId:(He=(Ie=F?.video)===null||Ie===void 0?void 0:Ie.itemId)!==null&&He!==void 0?He:"",relatedProductId:L?H?.itemId:"",traceInfo:(Ue=ce?.traceInfo)!==null&&Ue!==void 0?Ue:"",fromKName:$})})},[P,I]);d.useEffect(()=>{y(!0),B().then(j=>{var F,H;h((F=j?.recList)!==null&&F!==void 0?F:[]),T((H=j?.recList)!==null&&H!==void 0?H:[])}).finally(()=>{y(!1),m.current=!0})},[]),d.useEffect(()=>{m.current&&(y(!0),B().then(j=>{var F,H;h((F=j?.recList)!==null&&F!==void 0?F:[]),T((H=j?.recList)!==null&&H!==void 0?H:[])}).finally(()=>{y(!1)}))},[B]);const de=Le("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return d.createElement(Ft.Provider,{value:{rtcList:f,setRtcList:h,mutateLike:N,mutateUnlike:U,submitForm:te,popupDetailData:g,loadVideos:O,setPopupDetailData:w,getRecommendVideos:B,bffEventReport:P,utmVal:i,isPreview:r,loading:v,sxpParameter:a,waterFallData:x,setWaterFallData:A,ctaEvent:ne,swiperRef:p,openHashtag:k,setOpenHashtag:S,cacheRtcList:E,setCacheRtcList:T,cacheActiveIndex:D,setCacheActiveIndex:C,isFromHashtag:I,setIsFromHashtag:M,appDomain:s,hashTagSize:u,loadingImage:c??de}},t({rtcList:f,mutateLike:N,mutateUnlike:U,submitForm:te}))};var jt=d.memo(Li);function Q(){return d.useContext(Ft)}var Bt;(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"})(Bt||(Bt={}));const Gt=d.createContext({$store:{},options:[],configs:[]}),Ri=({children:t,isSsr:e,enable:i})=>{const[n,o]=d.useState([]),{schema:l}=me(),[r,a]=d.useState(l.__STORE__||{}),[s,u]=d.useState([]);d.useEffect(()=>{var h;e||le.isEqual(s,l?.dataSource)||u((h=l?.dataSource)!==null&&h!==void 0?h:[])},[l?.dataSource,e]);const c=d.useCallback(()=>ue(void 0,void 0,void 0,function*(){const{$store:h,idMapName:v}=yield Nt("",s);a(h),f(h,v)}),[s]),f=(h,v)=>{const y=[];Object.entries(h).forEach(([_,b])=>{Object.keys(b).forEach(p=>{const m={label:`${v[_]} - ${p}`,value:`{{ ${_}.${p} }}`};y.push(m)})}),o(y)};return d.useEffect(()=>{e||c()},[c,e,l]),i?d.createElement(Gt.Provider,{value:{$store:l.__STORE__||r,options:n,configs:s}},t):t};var zi=d.memo(Ri);const Qe={id:Ke(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},$t=d.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Qe],redoStack:[],popup:"",setPopup:()=>{},popupAni:{name:"none",duration:0}}),Vt=d.forwardRef(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:o=!0,utmVal:l},r)=>{const[a,s]=d.useState(null),[u,c]=d.useState(n||{pointData:[Qe],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[f,h]=d.useState([Qe]),[v,y]=d.useState([[Qe]]),[_,b]=d.useState([]),[p,m]=d.useState(""),[g,w]=d.useState({name:"none",duration:0});typeof window<"u"&&(window.sxpPopup=(E,T)=>{m(E),T&&T?.name!=="none"?w(Object.assign(Object.assign({},g),T)):w({name:"none",duration:0})}),typeof window<"u"&&(window.getJointUtmLink=E=>E?.indexOf("?")!==-1?E+(l?"&"+l:""):E+(l?"?"+l:"")),d.useEffect(()=>{y([u.pointData]),b([])},[u.type]);const x=d.useCallback(E=>{const T=le.cloneDeep(u);T&&(T.dataSource=E,c?.(T))},[u]),[A,k]=d.useState();d.useImperativeHandle(r,()=>({loadSchema(E){E&&(y([E.pointData]),c(E))},exportSchema(){return le.cloneDeep(u)},getPageInfoData(){return A},initPageInfoData(E){E&&k(E)}}));const S=d.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return d.createElement($t.Provider,{value:{resolver:e,currentNode:a,schema:u,setCurrentNode:s,setSchema:c,saveDataSource:x,prePiontData:f,setPrePiontData:h,pageInfoData:A,setPageInfoData:E=>k(Object.assign(Object.assign({},A),E)),undoStack:v,redoStack:_,setRedoStack:b,setUndoStack:y,getCurPageConf:S,popup:p,setPopup:m,popupAni:g}},d.createElement(zi,{isSsr:i,enable:o},t))});var Fi=Object.freeze({__proto__:null,EditorCore:Vt}),ji=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Bi=[{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:"Color",name:["textStyle","color"]},{type:"Select",name:["textStyle","fontFamily"],options:[{label:"\u9ED1\u4F53",value:"\u9ED1\u4F53"}]},{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:"\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"]},{label:"\u63D0\u4EA4\u6587\u672C\u989C\u8272",type:"Color",name:["props","submitColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];const Gi=t=>{var{columns:e,style:i,title:n,textStyle:o,submitBgColor:l,submitColor:r,submitText:a,layoutType:s,onClick:u}=t,c=re(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","onClick"]);me();const{submitForm:f}=Q(),h=d.useRef(),[v,y]=d.useState(!1),_=d.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),b=d.useMemo(()=>{if(s===void 0){const m=le.cloneDeep(e)||_;return m?.map(g=>Object.assign(Object.assign({},g),{title:void 0,fieldProps:{placeholder:g?.title}}))}else return le.cloneDeep(e)||_},[s,e,_]),p=le.debounce(()=>ue(void 0,void 0,void 0,function*(){var m,g,w;y(!0);const x=yield(m=h?.current)===null||m===void 0?void 0:m.getFieldsValue(),A=(w=(g=Object.keys(x))===null||g===void 0?void 0:g.map(S=>({name:S,value:x[S]})))===null||w===void 0?void 0:w.filter(S=>S?.value);if(!A||!A?.length)return;const k=yield f?.({attributes:A});y(!1),k&&(window?.sxpPopup(""),k&&u?.())}),1e3);return d.createElement("div",{className:"pb-appoint-form"},d.createElement("div",{className:`pb-appoint-form-title ${V.css(Object.assign({},o))}`},n),d.createElement("div",Object.assign({className:V.css(Object.assign({},i))},c),d.createElement("div",{className:"pb-appoint-form-container"},d.createElement(bi.BetaSchemaForm,{columns:b,submitter:!1,layout:s,autoFocusFirstInput:!1,size:"large",formRef:h,className:"panel-reset"}))),d.createElement("div",{className:"pb-appoint-form-btn-wrapper"},d.createElement("button",{onClick:p,className:"pb-appoint-form-btn",style:{color:r,background:l}},v?d.createElement(d.Fragment,null,"loading..."):a)))};var $i=d.memo(Gi);function he(t,e){return t.extend=e,t}const Vi=he($i,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Bi,bindableProps:[],interactionRender:ji},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",fontFamily:"\u9ED1\u4F53",textAlign:"center"}},w:100,h:40,sort:2});var Hi=[{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"}]},{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"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Color",name:["color"]},{type:"Select",options:[{label:"\u9ED1\u4F53",value:"\u9ED1\u4F53"}],name:["fontFamily"]},{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"]}]}]},{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:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","buttonStyle","fontFamily"],options:[{label:"\u9ED1\u4F53",value:"\u9ED1\u4F53"}]},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]}]}];function Ht(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function vt(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Ht(e[i])&&Ht(t[i])&&Object.keys(e[i]).length>0&&vt(t[i],e[i])})}const Ut={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 Se(){const t=typeof document<"u"?document:{};return vt(t,Ut),t}const Ui={document:Ut,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 ae(){const t=typeof window<"u"?window:{};return vt(t,Ui),t}function Ae(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Wi(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function Fe(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function ge(){return Date.now()}function Xi(t){const e=ae();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Yi(t,e){e===void 0&&(e="x");const i=ae();let n,o,l;const r=Xi(t);return i.WebKitCSSMatrix?(o=r.transform||r.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(a=>a.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(o==="none"?"":o)):(l=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?o=l.m41:n.length===16?o=parseFloat(n[12]):o=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?o=l.m42:n.length===16?o=parseFloat(n[13]):o=parseFloat(n[5])),o||0}function Ze(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function qi(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function ve(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!qi(n)){const o=Object.keys(Object(n)).filter(l=>e.indexOf(l)<0);for(let l=0,r=o.length;l<r;l+=1){const a=o[l],s=Object.getOwnPropertyDescriptor(n,a);s!==void 0&&s.enumerable&&(Ze(t[a])&&Ze(n[a])?n[a].__swiper__?t[a]=n[a]:ve(t[a],n[a]):!Ze(t[a])&&Ze(n[a])?(t[a]={},n[a].__swiper__?t[a]=n[a]:ve(t[a],n[a])):t[a]=n[a])}}}return t}function et(t,e,i){t.style.setProperty(e,i)}function Wt(t){let{swiper:e,targetPosition:i,side:n}=t;const o=ae(),l=-e.translate;let r=null,a;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const u=i>l?"next":"prev",c=(h,v)=>u==="next"&&h>=v||u==="prev"&&h<=v,f=()=>{a=new Date().getTime(),r===null&&(r=a);const h=Math.max(Math.min((a-r)/s,1),0),v=.5-Math.cos(h*Math.PI)/2;let y=l+v*(i-l);if(c(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),c(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),o.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=o.requestAnimationFrame(f)};f()}function Te(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function tt(t){try{console.warn(t);return}catch{}}function Xe(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Ae(e)),i}function Ji(t){const e=ae(),i=Se(),n=t.getBoundingClientRect(),o=i.body,l=t.clientTop||o.clientTop||0,r=t.clientLeft||o.clientLeft||0,a=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+a-l,left:n.left+s-r}}function Ki(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Qi(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Pe(t,e){return ae().getComputedStyle(t,null).getPropertyValue(e)}function it(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Xt(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function pt(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function ft(t,e,i){const n=ae();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function xe(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Zi(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=ae();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 r,a=ge(),s;const u=[];function c(g){let k=0,S=0,E=0,T=0;return"detail"in g&&(S=g.detail),"wheelDelta"in g&&(S=-g.wheelDelta/120),"wheelDeltaY"in g&&(S=-g.wheelDeltaY/120),"wheelDeltaX"in g&&(k=-g.wheelDeltaX/120),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(k=S,S=0),E=k*10,T=S*10,"deltaY"in g&&(T=g.deltaY),"deltaX"in g&&(E=g.deltaX),g.shiftKey&&!E&&(E=T,T=0),(E||T)&&g.deltaMode&&(g.deltaMode===1?(E*=40,T*=40):(E*=800,T*=800)),E&&!k&&(k=E<1?-1:1),T&&!S&&(S=T<1?-1:1),{spinX:k,spinY:S,pixelX:E,pixelY:T}}function f(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function v(g){return e.params.mousewheel.thresholdDelta&&g.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&ge()-a<e.params.mousewheel.thresholdTime?!1:g.delta>=6&&ge()-a<60?!0:(g.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),o("scroll",g.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),o("scroll",g.raw)),a=new l.Date().getTime(),!1)}function y(g){const w=e.params.mousewheel;if(g.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function _(g){let w=g,x=!0;if(!e.enabled||g.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const A=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let k=e.el;e.params.mousewheel.eventsTarget!=="container"&&(k=document.querySelector(e.params.mousewheel.eventsTarget));const S=k&&k.contains(w.target);if(!e.mouseEntered&&!S&&!A.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let E=0;const T=e.rtlTranslate?-1:1,D=c(w);if(A.forceToAxis)if(e.isHorizontal())if(Math.abs(D.pixelX)>Math.abs(D.pixelY))E=-D.pixelX*T;else return!0;else if(Math.abs(D.pixelY)>Math.abs(D.pixelX))E=-D.pixelY;else return!0;else E=Math.abs(D.pixelX)>Math.abs(D.pixelY)?-D.pixelX*T:-D.pixelY;if(E===0)return!0;A.invert&&(E=-E);let C=e.getTranslate()+E*A.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),x=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),x&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const I={time:ge(),delta:Math.abs(E),direction:Math.sign(E),raw:g};u.length>=2&&u.shift();const M=u.length?u[u.length-1]:void 0;if(u.push(I),M?(I.direction!==M.direction||I.delta>M.delta||I.time>M.time+150)&&v(I):v(I),y(I))return!0}else{const I={time:ge(),delta:Math.abs(E),direction:Math.sign(E)},M=s&&I.time<s.time+500&&I.delta<=s.delta&&I.direction===s.direction;if(!M){s=void 0;let R=e.getTranslate()+E*A.sensitivity;const z=e.isBeginning,B=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(),(!z&&e.isBeginning||!B&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:I.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(r),r=void 0,u.length>=15&&u.shift();const O=u.length?u[u.length-1]:void 0,P=u[0];if(u.push(I),O&&(I.delta>O.delta||I.direction!==O.direction))u.splice(0);else if(u.length>=15&&I.time-P.time<500&&P.delta-I.delta>=1&&I.delta<=6){const N=E>0?.8:.2;s=I,u.splice(0),r=Fe(()=>{e.slideToClosest(e.params.speed,!0,void 0,N)},0)}r||(r=Fe(()=>{s=I,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(M||o("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),A.releaseOnEdges&&(R===e.minTranslate()||R===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function b(g){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[g]("mouseenter",f),w[g]("mouseleave",h),w[g]("wheel",_)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",_),!0):e.mousewheel.enabled?!1:(b("addEventListener"),e.mousewheel.enabled=!0,!0)}function m(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,_),!0):e.mousewheel.enabled?(b("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&m(),e.params.mousewheel.enabled&&p()}),n("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&m()}),Object.assign(e.mousewheel,{enable:p,disable:m})}function Yt(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(o=>{if(!i[o]&&i.auto===!0){let l=Te(t.el,`.${n[o]}`)[0];l||(l=Xe("div",n[o]),l.className=n[o],t.el.append(l)),i[o]=l,e[o]=l}}),i}function je(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function mt(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:p=>p,formatFractionTotal:p=>p,bulletClass:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),e.pagination={el:null,bullets:[]};let r,a=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(p,m){const{bulletActiveClass:g}=e.params.pagination;p&&(p=p[`${m==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${g}-${m}`),p=p[`${m==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${g}-${m}-${m}`)))}function c(p){const m=p.target.closest(je(e.params.pagination.bulletClass));if(!m)return;p.preventDefault();const g=it(m)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===g)return;e.slideToLoop(g)}else e.slideTo(g)}function f(){const p=e.rtl,m=e.params.pagination;if(s())return;let g=e.pagination.el;g=xe(g);let w,x;const A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,k=e.params.loop?Math.ceil(A/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(x=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,x=e.previousSnapIndex):(x=e.previousIndex||0,w=e.activeIndex||0),m.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const S=e.pagination.bullets;let E,T,D;if(m.dynamicBullets&&(r=ft(S[0],e.isHorizontal()?"width":"height",!0),g.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${r*(m.dynamicMainBullets+4)}px`}),m.dynamicMainBullets>1&&x!==void 0&&(a+=w-(x||0),a>m.dynamicMainBullets-1?a=m.dynamicMainBullets-1:a<0&&(a=0)),E=Math.max(w-a,0),T=E+(Math.min(S.length,m.dynamicMainBullets)-1),D=(T+E)/2),S.forEach(C=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(M=>`${m.bulletActiveClass}${M}`)].map(M=>typeof M=="string"&&M.includes(" ")?M.split(" "):M).flat();C.classList.remove(...I)}),g.length>1)S.forEach(C=>{const I=it(C);I===w?C.classList.add(...m.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),m.dynamicBullets&&(I>=E&&I<=T&&C.classList.add(...`${m.bulletActiveClass}-main`.split(" ")),I===E&&u(C,"prev"),I===T&&u(C,"next"))});else{const C=S[w];if(C&&C.classList.add(...m.bulletActiveClass.split(" ")),e.isElement&&S.forEach((I,M)=>{I.setAttribute("part",M===w?"bullet-active":"bullet")}),m.dynamicBullets){const I=S[E],M=S[T];for(let R=E;R<=T;R+=1)S[R]&&S[R].classList.add(...`${m.bulletActiveClass}-main`.split(" "));u(I,"prev"),u(M,"next")}}if(m.dynamicBullets){const C=Math.min(S.length,m.dynamicMainBullets+4),I=(r*C-r)/2-D*r,M=p?"right":"left";S.forEach(R=>{R.style[e.isHorizontal()?M:"top"]=`${I}px`})}}g.forEach((S,E)=>{if(m.type==="fraction"&&(S.querySelectorAll(je(m.currentClass)).forEach(T=>{T.textContent=m.formatFractionCurrent(w+1)}),S.querySelectorAll(je(m.totalClass)).forEach(T=>{T.textContent=m.formatFractionTotal(k)})),m.type==="progressbar"){let T;m.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const D=(w+1)/k;let C=1,I=1;T==="horizontal"?C=D:I=D,S.querySelectorAll(je(m.progressbarFillClass)).forEach(M=>{M.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${I})`,M.style.transitionDuration=`${e.params.speed}ms`})}m.type==="custom"&&m.renderCustom?(S.innerHTML=m.renderCustom(e,w+1,k),E===0&&o("paginationRender",S)):(E===0&&o("paginationRender",S),o("paginationUpdate",S)),e.params.watchOverflow&&e.enabled&&S.classList[e.isLocked?"add":"remove"](m.lockClass)})}function h(){const p=e.params.pagination;if(s())return;const m=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 g=e.pagination.el;g=xe(g);let w="";if(p.type==="bullets"){let x=e.params.loop?Math.ceil(m/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&x>m&&(x=m);for(let A=0;A<x;A+=1)p.renderBullet?w+=p.renderBullet.call(e,A,p.bulletClass):w+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?w=p.renderFraction.call(e,p.currentClass,p.totalClass):w=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?w=p.renderProgressbar.call(e,p.progressbarFillClass):w=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],g.forEach(x=>{p.type!=="custom"&&(x.innerHTML=w||""),p.type==="bullets"&&e.pagination.bullets.push(...x.querySelectorAll(je(p.bulletClass)))}),p.type!=="custom"&&o("paginationRender",g[0])}function v(){e.params.pagination=Yt(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let m;typeof p.el=="string"&&e.isElement&&(m=e.el.querySelector(p.el)),!m&&typeof p.el=="string"&&(m=[...document.querySelectorAll(p.el)]),m||(m=p.el),!(!m||m.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(m)&&m.length>1&&(m=[...e.el.querySelectorAll(p.el)],m.length>1&&(m=m.filter(g=>Xt(g,".swiper")[0]===e.el)[0])),Array.isArray(m)&&m.length===1&&(m=m[0]),Object.assign(e.pagination,{el:m}),m=xe(m),m.forEach(g=>{p.type==="bullets"&&p.clickable&&g.classList.add(...(p.clickableClass||"").split(" ")),g.classList.add(p.modifierClass+p.type),g.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(g.classList.add(`${p.modifierClass}${p.type}-dynamic`),a=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&g.classList.add(p.progressbarOppositeClass),p.clickable&&g.addEventListener("click",c),e.enabled||g.classList.add(p.lockClass)}))}function y(){const p=e.params.pagination;if(s())return;let m=e.pagination.el;m&&(m=xe(m),m.forEach(g=>{g.classList.remove(p.hiddenClass),g.classList.remove(p.modifierClass+p.type),g.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(g.classList.remove(...(p.clickableClass||"").split(" ")),g.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(g=>g.classList.remove(...p.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:m}=e.pagination;m=xe(m),m.forEach(g=>{g.classList.remove(p.horizontalClass,p.verticalClass),g.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?b():(v(),h(),f())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{h(),f()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=xe(p),p.forEach(m=>m.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{f()}),n("click",(p,m)=>{const g=m.target,w=xe(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!g.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&g===e.navigation.nextEl||e.navigation.prevEl&&g===e.navigation.prevEl))return;const x=w[0].classList.contains(e.params.pagination.hiddenClass);o(x===!0?"paginationShow":"paginationHide"),w.forEach(A=>A.classList.toggle(e.params.pagination.hiddenClass))}});const _=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=xe(p),p.forEach(m=>m.classList.remove(e.params.pagination.paginationDisabledClass))),v(),h(),f()},b=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=xe(p),p.forEach(m=>m.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:_,disable:b,render:h,update:f,init:v,destroy:y})}function en(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Se();let r=!1,a=null,s=null,u,c,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 v(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:I}=e,{dragEl:M,el:R}=C,z=e.params.scrollbar,B=e.params.loop?e.progressLoop:e.progress;let O=c,P=(f-c)*B;I?(P=-P,P>0?(O=c-P,P=0):-P+c>f&&(O=f+P)):P<0?(O=c+P,P=0):P+c>f&&(O=f-P),e.isHorizontal()?(M.style.transform=`translate3d(${P}px, 0, 0)`,M.style.width=`${O}px`):(M.style.transform=`translate3d(0px, ${P}px, 0)`,M.style.height=`${O}px`),z.hide&&(clearTimeout(a),R.style.opacity=1,a=setTimeout(()=>{R.style.opacity=0,R.style.transitionDuration="400ms"},1e3))}function y(C){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${C}ms`)}function _(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:I,el:M}=C;I.style.width="",I.style.height="",f=e.isHorizontal()?M.offsetWidth:M.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=f*h:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?I.style.width=`${c}px`:I.style.height=`${c}px`,h>=1?M.style.display="none":M.style.display="",e.params.scrollbar.hide&&(M.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function b(C){return e.isHorizontal()?C.clientX:C.clientY}function p(C){const{scrollbar:I,rtlTranslate:M}=e,{el:R}=I;let z;z=(b(C)-Ji(R)[e.isHorizontal()?"left":"top"]-(u!==null?u:c/2))/(f-c),z=Math.max(Math.min(z,1),0),M&&(z=1-z);const B=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*z;e.updateProgress(B),e.setTranslate(B),e.updateActiveIndex(),e.updateSlidesClasses()}function m(C){const I=e.params.scrollbar,{scrollbar:M,wrapperEl:R}=e,{el:z,dragEl:B}=M;r=!0,u=C.target===B?b(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),R.style.transitionDuration="100ms",B.style.transitionDuration="100ms",p(C),clearTimeout(s),z.style.transitionDuration="0ms",I.hide&&(z.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",C)}function g(C){const{scrollbar:I,wrapperEl:M}=e,{el:R,dragEl:z}=I;r&&(C.preventDefault?C.preventDefault():C.returnValue=!1,p(C),M.style.transitionDuration="0ms",R.style.transitionDuration="0ms",z.style.transitionDuration="0ms",o("scrollbarDragMove",C))}function w(C){const I=e.params.scrollbar,{scrollbar:M,wrapperEl:R}=e,{el:z}=M;r&&(r=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",R.style.transitionDuration=""),I.hide&&(clearTimeout(s),s=Fe(()=>{z.style.opacity=0,z.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",C),I.snapOnRelease&&e.slideToClosest())}function x(C){const{scrollbar:I,params:M}=e,R=I.el;if(!R)return;const z=R,B=M.passiveListeners?{passive:!1,capture:!1}:!1,O=M.passiveListeners?{passive:!0,capture:!1}:!1;if(!z)return;const P=C==="on"?"addEventListener":"removeEventListener";z[P]("pointerdown",m,B),l[P]("pointermove",g,B),l[P]("pointerup",w,O)}function A(){!e.params.scrollbar.el||!e.scrollbar.el||x("on")}function k(){!e.params.scrollbar.el||!e.scrollbar.el||x("off")}function S(){const{scrollbar:C,el:I}=e;e.params.scrollbar=Yt(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const M=e.params.scrollbar;if(!M.el)return;let R;if(typeof M.el=="string"&&e.isElement&&(R=e.el.querySelector(M.el)),!R&&typeof M.el=="string"){if(R=l.querySelectorAll(M.el),!R.length)return}else R||(R=M.el);e.params.uniqueNavElements&&typeof M.el=="string"&&R.length>1&&I.querySelectorAll(M.el).length===1&&(R=I.querySelector(M.el)),R.length>0&&(R=R[0]),R.classList.add(e.isHorizontal()?M.horizontalClass:M.verticalClass);let z;R&&(z=R.querySelector(je(e.params.scrollbar.dragClass)),z||(z=Xe("div",e.params.scrollbar.dragClass),R.append(z))),Object.assign(C,{el:R,dragEl:z}),M.draggable&&A(),R&&R.classList[e.enabled?"remove":"add"](...Ae(e.params.scrollbar.lockClass))}function E(){const C=e.params.scrollbar,I=e.scrollbar.el;I&&I.classList.remove(...Ae(e.isHorizontal()?C.horizontalClass:C.verticalClass)),k()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:I}=e.scrollbar;I=xe(I),I.forEach(M=>{M.classList.remove(C.horizontalClass,C.verticalClass),M.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?D():(S(),_(),v())}),n("update resize observerUpdate lock unlock changeDirection",()=>{_()}),n("setTranslate",()=>{v()}),n("setTransition",(C,I)=>{y(I)}),n("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...Ae(e.params.scrollbar.lockClass))}),n("destroy",()=>{E()});const T=()=>{e.el.classList.remove(...Ae(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Ae(e.params.scrollbar.scrollbarDisabledClass)),S(),_(),v()},D=()=>{e.el.classList.add(...Ae(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Ae(e.params.scrollbar.scrollbarDisabledClass)),E()};Object.assign(e.scrollbar,{enable:T,disable:D,updateSize:_,setTranslate:v,init:S,destroy:E})}function ht(t){let{swiper:e,extendParams:i,on:n,emit:o,params:l}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let r,a,s=l&&l.autoplay?l.autoplay.delay:3e3,u=l&&l.autoplay?l.autoplay.delay:3e3,c,f=new Date().getTime(),h,v,y,_,b,p,m;function g(O){!e||e.destroyed||!e.wrapperEl||O.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",g),!m&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(u=c,h=!1);const O=e.autoplay.paused?c:f+u-new Date().getTime();e.autoplay.timeLeft=O,o("autoplayTimeLeft",O,O/s),a=requestAnimationFrame(()=>{w()})},x=()=>{let O;return e.virtual&&e.params.virtual.enabled?O=e.slides.filter(N=>N.classList.contains("swiper-slide-active"))[0]:O=e.slides[e.activeIndex],O?parseInt(O.getAttribute("data-swiper-autoplay"),10):void 0},A=O=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),w();let P=typeof O>"u"?e.params.autoplay.delay:O;s=e.params.autoplay.delay,u=e.params.autoplay.delay;const N=x();!Number.isNaN(N)&&N>0&&typeof O>"u"&&(P=N,s=N,u=N),c=P;const U=e.params.speed,te=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(U,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,U,!0,!0),o("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(U,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,U,!0,!0),o("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{A()})))};return P>0?(clearTimeout(r),r=setTimeout(()=>{te()},P)):requestAnimationFrame(()=>{te()}),P},k=()=>{f=new Date().getTime(),e.autoplay.running=!0,A(),o("autoplayStart")},S=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(a),o("autoplayStop")},E=(O,P)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),O||(p=!0);const N=()=>{o("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",g):T()};if(e.autoplay.paused=!0,P){b&&(c=e.params.autoplay.delay),b=!1,N();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),N())},T=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),p?(p=!1,A(c)):A(),e.autoplay.paused=!1,o("autoplayResume"))},D=()=>{if(e.destroyed||!e.autoplay.running)return;const O=Se();O.visibilityState==="hidden"&&(p=!0,E(!0)),O.visibilityState==="visible"&&T()},C=O=>{O.pointerType==="mouse"&&(p=!0,m=!0,!(e.animating||e.autoplay.paused)&&E(!0))},I=O=>{O.pointerType==="mouse"&&(m=!1,e.autoplay.paused&&T())},M=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",I))},R=()=>{e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",I)},z=()=>{Se().addEventListener("visibilitychange",D)},B=()=>{Se().removeEventListener("visibilitychange",D)};n("init",()=>{e.params.autoplay.enabled&&(M(),z(),k())}),n("destroy",()=>{R(),B(),e.autoplay.running&&S()}),n("_freeModeStaticRelease",()=>{(y||p)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?S():E(!0,!0)}),n("beforeTransitionStart",(O,P,N)=>{e.destroyed||!e.autoplay.running||(N||!e.params.autoplay.disableOnInteraction?E(!0,!0):S())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){S();return}v=!0,y=!1,p=!1,_=setTimeout(()=>{p=!0,y=!0,E(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!v)){if(clearTimeout(_),clearTimeout(r),e.params.autoplay.disableOnInteraction){y=!1,v=!1;return}y&&e.params.cssMode&&T(),y=!1,v=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(b=!0)}),Object.assign(e.autoplay,{start:k,stop:S,pause:E,resume:T})}function tn(t){let{swiper:e,extendParams:i,emit:n,once:o}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function l(){if(e.params.cssMode)return;const s=e.getTranslate();e.setTranslate(s),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function r(){if(e.params.cssMode)return;const{touchEventsData:s,touches:u}=e;s.velocities.length===0&&s.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:ge()})}function a(s){let{currentPos:u}=s;if(e.params.cssMode)return;const{params:c,wrapperEl:f,rtlTranslate:h,snapGrid:v,touchEventsData:y}=e,b=ge()-y.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<v.length?e.slideTo(v.length-1):e.slideTo(e.slides.length-1);return}if(c.freeMode.momentum){if(y.velocities.length>1){const S=y.velocities.pop(),E=y.velocities.pop(),T=S.position-E.position,D=S.time-E.time;e.velocity=T/D,e.velocity/=2,Math.abs(e.velocity)<c.freeMode.minimumVelocity&&(e.velocity=0),(D>150||ge()-S.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=c.freeMode.momentumVelocityRatio,y.velocities.length=0;let p=1e3*c.freeMode.momentumRatio;const m=e.velocity*p;let g=e.translate+m;h&&(g=-g);let w=!1,x;const A=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let k;if(g<e.maxTranslate())c.freeMode.momentumBounce?(g+e.maxTranslate()<-A&&(g=e.maxTranslate()-A),x=e.maxTranslate(),w=!0,y.allowMomentumBounce=!0):g=e.maxTranslate(),c.loop&&c.centeredSlides&&(k=!0);else if(g>e.minTranslate())c.freeMode.momentumBounce?(g-e.minTranslate()>A&&(g=e.minTranslate()+A),x=e.minTranslate(),w=!0,y.allowMomentumBounce=!0):g=e.minTranslate(),c.loop&&c.centeredSlides&&(k=!0);else if(c.freeMode.sticky){let S;for(let E=0;E<v.length;E+=1)if(v[E]>-g){S=E;break}Math.abs(v[S]-g)<Math.abs(v[S-1]-g)||e.swipeDirection==="next"?g=v[S]:g=v[S-1],g=-g}if(k&&o("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?p=Math.abs((-g-e.translate)/e.velocity):p=Math.abs((g-e.translate)/e.velocity),c.freeMode.sticky){const S=Math.abs((h?-g:g)-e.translate),E=e.slidesSizesGrid[e.activeIndex];S<E?p=c.speed:S<2*E?p=c.speed*1.5:p=c.speed*2.5}}else if(c.freeMode.sticky){e.slideToClosest();return}c.freeMode.momentumBounce&&w?(e.updateProgress(x),e.setTransition(p),e.setTranslate(g),e.transitionStart(!0,e.swipeDirection),e.animating=!0,pt(f,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(x),pt(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(g),e.setTransition(p),e.setTranslate(g),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,pt(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(g),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&n("_freeModeNoMomentumRelease");(!c.freeMode.momentum||b>=c.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:r,onTouchEnd:a}})}let gt;function nn(){const t=ae(),e=Se();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function qt(){return gt||(gt=nn()),gt}let bt;function on(t){let{userAgent:e}=t===void 0?{}:t;const i=qt(),n=ae(),o=n.navigator.platform,l=e||n.navigator.userAgent,r={ios:!1,android:!1},a=n.screen.width,s=n.screen.height,u=l.match(/(Android);?[\s\/]+([\d.]+)?/);let c=l.match(/(iPad).*OS\s([\d_]+)/);const f=l.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=o==="Win32";let y=o==="MacIntel";const _=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&y&&i.touch&&_.indexOf(`${a}x${s}`)>=0&&(c=l.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),y=!1),u&&!v&&(r.os="android",r.android=!0),(c||h||f)&&(r.os="ios",r.ios=!0),r}function Jt(t){return t===void 0&&(t={}),bt||(bt=on(t)),bt}let yt;function ln(){const t=ae(),e=Jt();let i=!1;function n(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(n()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[s,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));i=s<16||s===16&&u<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=n(),r=l||o&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:r,isWebView:o}}function sn(){return yt||(yt=ln()),yt}function rn(t){let{swiper:e,on:i,emit:n}=t;const o=ae();let l=null,r=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(f=>{r=o.requestAnimationFrame(()=>{const{width:h,height:v}=e;let y=h,_=v;f.forEach(b=>{let{contentBoxSize:p,contentRect:m,target:g}=b;g&&g!==e.el||(y=m?m.width:(p[0]||p).inlineSize,_=m?m.height:(p[0]||p).blockSize)}),(y!==h||_!==v)&&a()})}),l.observe(e.el))},u=()=>{r&&o.cancelAnimationFrame(r),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof o.ResizeObserver<"u"){s();return}o.addEventListener("resize",a),o.addEventListener("orientationchange",c)}),i("destroy",()=>{u(),o.removeEventListener("resize",a),o.removeEventListener("orientationchange",c)})}function an(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=[],r=ae(),a=function(c,f){f===void 0&&(f={});const h=r.MutationObserver||r.WebkitMutationObserver,v=new h(y=>{if(e.__preventObserver__)return;if(y.length===1){o("observerUpdate",y[0]);return}const _=function(){o("observerUpdate",y[0])};r.requestAnimationFrame?r.requestAnimationFrame(_):r.setTimeout(_,0)});v.observe(c,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),l.push(v)},s=()=>{if(e.params.observer){if(e.params.observeParents){const c=Xt(e.hostEl);for(let f=0;f<c.length;f+=1)a(c[f])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},u=()=>{l.forEach(c=>{c.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",u)}var dn={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const o=i?"unshift":"push";return t.split(" ").forEach(l=>{n.eventsListeners[l]||(n.eventsListeners[l]=[]),n.eventsListeners[l][o](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function o(){n.off(t,o),o.__emitterProxy&&delete o.__emitterProxy;for(var l=arguments.length,r=new Array(l),a=0;a<l;a++)r[a]=arguments[a];e.apply(n,r)}return o.__emitterProxy=e,n.on(t,o,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((o,l)=>{(o===e||o.__emitterProxy&&o.__emitterProxy===e)&&i.eventsListeners[n].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var o=arguments.length,l=new Array(o),r=0;r<o;r++)l[r]=arguments[r];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),n=t):(e=l[0].events,i=l[0].data,n=l[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[s,...i])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(u=>{u.apply(n,i)})}),t}};function cn(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(Pe(n,"padding-left")||0,10)-parseInt(Pe(n,"padding-right")||0,10),i=i-parseInt(Pe(n,"padding-top")||0,10)-parseInt(Pe(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function un(){const t=this;function e(T,D){return parseFloat(T.getPropertyValue(t.getDirectionLabel(D))||0)}const i=t.params,{wrapperEl:n,slidesEl:o,size:l,rtlTranslate:r,wrongRTL:a}=t,s=t.virtual&&i.virtual.enabled,u=s?t.virtual.slides.length:t.slides.length,c=Te(o,`.${t.params.slideClass}, swiper-slide`),f=s?t.virtual.slides.length:c.length;let h=[];const v=[],y=[];let _=i.slidesOffsetBefore;typeof _=="function"&&(_=i.slidesOffsetBefore.call(t));let b=i.slidesOffsetAfter;typeof b=="function"&&(b=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,m=t.slidesGrid.length;let g=i.spaceBetween,w=-_,x=0,A=0;if(typeof l>"u")return;typeof g=="string"&&g.indexOf("%")>=0?g=parseFloat(g.replace("%",""))/100*l:typeof g=="string"&&(g=parseFloat(g)),t.virtualSize=-g,c.forEach(T=>{r?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(et(n,"--swiper-centered-offset-before",""),et(n,"--swiper-centered-offset-after",""));const k=i.grid&&i.grid.rows>1&&t.grid;k?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let S;const E=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<f;T+=1){S=0;let D;if(c[T]&&(D=c[T]),k&&t.grid.updateSlide(T,D,c),!(c[T]&&Pe(D,"display")==="none")){if(i.slidesPerView==="auto"){E&&(c[T].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(D),I=D.style.transform,M=D.style.webkitTransform;if(I&&(D.style.transform="none"),M&&(D.style.webkitTransform="none"),i.roundLengths)S=t.isHorizontal()?ft(D,"width",!0):ft(D,"height",!0);else{const R=e(C,"width"),z=e(C,"padding-left"),B=e(C,"padding-right"),O=e(C,"margin-left"),P=e(C,"margin-right"),N=C.getPropertyValue("box-sizing");if(N&&N==="border-box")S=R+O+P;else{const{clientWidth:U,offsetWidth:te}=D;S=R+z+B+O+P+(te-U)}}I&&(D.style.transform=I),M&&(D.style.webkitTransform=M),i.roundLengths&&(S=Math.floor(S))}else S=(l-(i.slidesPerView-1)*g)/i.slidesPerView,i.roundLengths&&(S=Math.floor(S)),c[T]&&(c[T].style[t.getDirectionLabel("width")]=`${S}px`);c[T]&&(c[T].swiperSlideSize=S),y.push(S),i.centeredSlides?(w=w+S/2+x/2+g,x===0&&T!==0&&(w=w-l/2-g),T===0&&(w=w-l/2-g),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),A%i.slidesPerGroup===0&&h.push(w),v.push(w)):(i.roundLengths&&(w=Math.floor(w)),(A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0&&h.push(w),v.push(w),w=w+S+g),t.virtualSize+=S+g,x=S,A+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+b,r&&a&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+g}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+g}px`),k&&t.grid.updateWrapperSize(S,h),!i.centeredSlides){const T=[];for(let D=0;D<h.length;D+=1){let C=h[D];i.roundLengths&&(C=Math.floor(C)),h[D]<=t.virtualSize-l&&T.push(C)}h=T,Math.floor(t.virtualSize-l)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-l)}if(s&&i.loop){const T=y[0]+g;if(i.slidesPerGroup>1){const D=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=T*i.slidesPerGroup;for(let I=0;I<D;I+=1)h.push(h[h.length-1]+C)}for(let D=0;D<t.virtual.slidesBefore+t.virtual.slidesAfter;D+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+T),v.push(v[v.length-1]+T),t.virtualSize+=T}if(h.length===0&&(h=[0]),g!==0){const T=t.isHorizontal()&&r?"marginLeft":t.getDirectionLabel("marginRight");c.filter((D,C)=>!i.cssMode||i.loop?!0:C!==c.length-1).forEach(D=>{D.style[T]=`${g}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(C=>{T+=C+(g||0)}),T-=g;const D=T-l;h=h.map(C=>C<=0?-_:C>D?D+b:C)}if(i.centerInsufficientSlides){let T=0;if(y.forEach(D=>{T+=D+(g||0)}),T-=g,T<l){const D=(l-T)/2;h.forEach((C,I)=>{h[I]=C-D}),v.forEach((C,I)=>{v[I]=C+D})}}if(Object.assign(t,{slides:c,snapGrid:h,slidesGrid:v,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){et(n,"--swiper-centered-offset-before",`${-h[0]}px`),et(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],D=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+T),t.slidesGrid=t.slidesGrid.map(C=>C+D)}if(f!==u&&t.emit("slidesLengthChange"),h.length!==p&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),v.length!==m&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!s&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,D=t.el.classList.contains(T);f<=i.maxBackfaceHiddenSlides?D||t.el.classList.add(T):D&&t.el.classList.remove(T)}}function vn(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let o=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const r=a=>n?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{i.push(a)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const a=e.activeIndex+l;if(a>e.slides.length&&!n)break;i.push(r(a))}else i.push(r(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const a=i[l].offsetHeight;o=a>o?a:o}(o||o===0)&&(e.wrapperEl.style.height=`${o}px`)}function pn(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}function fn(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:o,snapGrid:l}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let r=-t;o&&(r=t),n.forEach(s=>{s.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=i.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let s=0;s<n.length;s+=1){const u=n[s];let c=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=n[0].swiperSlideOffset);const f=(r+(i.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+a),h=(r-l[0]+(i.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+a),v=-(r-c),y=v+e.slidesSizesGrid[s],_=v>=0&&v<=e.size-e.slidesSizesGrid[s];(v>=0&&v<e.size-1||y>1&&y<=e.size||v<=0&&y>=e.size)&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(s),n[s].classList.add(i.slideVisibleClass)),_&&n[s].classList.add(i.slideFullyVisibleClass),u.progress=o?-f:f,u.originalProgress=o?-h:h}}function mn(t){const e=this;if(typeof t>"u"){const c=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*c||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:o,isBeginning:l,isEnd:r,progressLoop:a}=e;const s=l,u=r;if(n===0)o=0,l=!0,r=!0;else{o=(t-e.minTranslate())/n;const c=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;l=c||o<=0,r=f||o>=1,c&&(o=0),f&&(o=1)}if(i.loop){const c=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[c],v=e.slidesGrid[f],y=e.slidesGrid[e.slidesGrid.length-1],_=Math.abs(t);_>=h?a=(_-h)/y:a=(_+y-v)/y,a>1&&(a-=1)}Object.assign(e,{progress:o,progressLoop:a,isBeginning:l,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!s&&e.emit("reachBeginning toEdge"),r&&!u&&e.emit("reachEnd toEdge"),(s&&!l||u&&!r)&&e.emit("fromEdge"),e.emit("progress",o)}function hn(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:o}=t,l=t.virtual&&i.virtual.enabled,r=t.grid&&i.grid&&i.grid.rows>1,a=f=>Te(n,`.${i.slideClass}${f}, swiper-slide${f}`)[0];e.forEach(f=>{f.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let s,u,c;if(l)if(i.loop){let f=o-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),s=a(`[data-swiper-slide-index="${f}"]`)}else s=a(`[data-swiper-slide-index="${o}"]`);else r?(s=e.filter(f=>f.column===o)[0],c=e.filter(f=>f.column===o+1)[0],u=e.filter(f=>f.column===o-1)[0]):s=e[o];s&&(s.classList.add(i.slideActiveClass),r?(c&&c.classList.add(i.slideNextClass),u&&u.classList.add(i.slidePrevClass)):(c=Qi(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c&&(c=e[0]),c&&c.classList.add(i.slideNextClass),u=Ki(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]),u&&u.classList.add(i.slidePrevClass))),t.emitSlidesClasses()}const nt=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let o=n.querySelector(`.${t.params.lazyPreloaderClass}`);!o&&t.isElement&&(n.shadowRoot?o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},wt=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},St=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),o=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const r=o,a=[r-e];a.push(...Array.from({length:e}).map((s,u)=>r+n+u)),t.slides.forEach((s,u)=>{a.includes(s.column)&&wt(t,u)});return}const l=o+n-1;if(t.params.rewind||t.params.loop)for(let r=o-e;r<=l+e;r+=1){const a=(r%i+i)%i;(a<o||a>l)&&wt(t,a)}else for(let r=Math.max(o-e,0);r<=Math.min(l+e,i-1);r+=1)r!==o&&(r>l||r<o)&&wt(t,r)};function gn(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let o;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?n>=e[l]&&n<e[l+1]-(e[l+1]-e[l])/2?o=l:n>=e[l]&&n<e[l+1]&&(o=l+1):n>=e[l]&&(o=l);return i.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function bn(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:o,activeIndex:l,realIndex:r,snapIndex:a}=e;let s=t,u;const c=v=>{let y=v-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof s>"u"&&(s=gn(e)),n.indexOf(i)>=0)u=n.indexOf(i);else{const v=Math.min(o.slidesPerGroupSkip,s);u=v+Math.floor((s-v)/o.slidesPerGroup)}if(u>=n.length&&(u=n.length-1),s===l&&!e.params.loop){u!==a&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(s===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=c(s);return}const f=e.grid&&o.grid&&o.grid.rows>1;let h;if(e.virtual&&o.virtual.enabled&&o.loop)h=c(s);else if(f){const v=e.slides.filter(_=>_.column===s)[0];let y=parseInt(v.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(v),0)),h=Math.floor(y/o.grid.rows)}else if(e.slides[s]){const v=e.slides[s].getAttribute("data-swiper-slide-index");v?h=parseInt(v,10):h=s}else h=s;Object.assign(e,{previousSnapIndex:a,snapIndex:u,previousRealIndex:r,realIndex:h,previousIndex:l,activeIndex:s}),e.initialized&&St(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(r!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function yn(t,e){const i=this,n=i.params;let o=t.closest(`.${n.slideClass}, swiper-slide`);!o&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!o&&a.matches&&a.matches(`.${n.slideClass}, swiper-slide`)&&(o=a)});let l=!1,r;if(o){for(let a=0;a<i.slides.length;a+=1)if(i.slides[a]===o){l=!0,r=a;break}}if(o&&l)i.clickedSlide=o,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=r;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var wn={updateSize:cn,updateSlides:un,updateAutoHeight:vn,updateSlidesOffset:pn,updateSlidesProgress:fn,updateProgress:mn,updateSlidesClasses:hn,updateActiveIndex:bn,updateClickedSlide:yn};function Sn(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:o,wrapperEl:l}=e;if(i.virtualTranslate)return n?-o:o;if(i.cssMode)return o;let r=Yi(l,t);return r+=e.cssOverflowAdjustment(),n&&(r=-r),r||0}function En(t,e){const i=this,{rtlTranslate:n,params:o,wrapperEl:l,progress:r}=i;let a=0,s=0;const u=0;i.isHorizontal()?a=n?-t:t:s=t,o.roundLengths&&(a=Math.floor(a),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?a:s,o.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-a:-s:o.virtualTranslate||(i.isHorizontal()?a-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${a}px, ${s}px, ${u}px)`);let c;const f=i.maxTranslate()-i.minTranslate();f===0?c=0:c=(t-i.minTranslate())/f,c!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Tn(){return-this.snapGrid[0]}function xn(){return-this.snapGrid[this.snapGrid.length-1]}function Cn(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const l=this,{params:r,wrapperEl:a}=l;if(l.animating&&r.preventInteractionOnTransition)return!1;const s=l.minTranslate(),u=l.maxTranslate();let c;if(n&&t>s?c=s:n&&t<u?c=u:c=t,l.updateProgress(c),r.cssMode){const f=l.isHorizontal();if(e===0)a[f?"scrollLeft":"scrollTop"]=-c;else{if(!l.support.smoothScroll)return Wt({swiper:l,targetPosition:-c,side:f?"left":"top"}),!0;a.scrollTo({[f?"left":"top"]:-c,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(c),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(c),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(h){!l||l.destroyed||h.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var _n={getTranslate:Sn,setTranslate:En,minTranslate:Tn,maxTranslate:xn,translateTo:Cn};function In(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 Kt(t){let{swiper:e,runCallbacks:i,direction:n,step:o}=t;const{activeIndex:l,previousIndex:r}=e;let a=n;if(a||(l>r?a="next":l<r?a="prev":a="reset"),e.emit(`transition${o}`),i&&l!==r){if(a==="reset"){e.emit(`slideResetTransition${o}`);return}e.emit(`slideChangeTransition${o}`),a==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`)}}function An(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Kt({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Pn(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),Kt({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Dn={setTransition:In,transitionStart:An,transitionEnd:Pn};function On(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let r=t;r<0&&(r=0);const{params:a,snapGrid:s,slidesGrid:u,previousIndex:c,activeIndex:f,rtlTranslate:h,wrapperEl:v,enabled:y}=l;if(l.animating&&a.preventInteractionOnTransition||!y&&!n&&!o||l.destroyed)return!1;const _=Math.min(l.params.slidesPerGroupSkip,r);let b=_+Math.floor((r-_)/l.params.slidesPerGroup);b>=s.length&&(b=s.length-1);const p=-s[b];if(a.normalizeSlideIndex)for(let g=0;g<u.length;g+=1){const w=-Math.floor(p*100),x=Math.floor(u[g]*100),A=Math.floor(u[g+1]*100);typeof u[g+1]<"u"?w>=x&&w<A-(A-x)/2?r=g:w>=x&&w<A&&(r=g+1):w>=x&&(r=g)}if(l.initialized&&r!==f&&(!l.allowSlideNext&&(h?p>l.translate&&p>l.minTranslate():p<l.translate&&p<l.minTranslate())||!l.allowSlidePrev&&p>l.translate&&p>l.maxTranslate()&&(f||0)!==r))return!1;r!==(c||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(p);let m;if(r>f?m="next":r<f?m="prev":m="reset",h&&-p===l.translate||!h&&p===l.translate)return l.updateActiveIndex(r),a.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),a.effect!=="slide"&&l.setTranslate(p),m!=="reset"&&(l.transitionStart(i,m),l.transitionEnd(i,m)),!1;if(a.cssMode){const g=l.isHorizontal(),w=h?p:-p;if(e===0){const x=l.virtual&&l.params.virtual.enabled;x&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),x&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{v[g?"scrollLeft":"scrollTop"]=w})):v[g?"scrollLeft":"scrollTop"]=w,x&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return Wt({swiper:l,targetPosition:w,side:g?"left":"top"}),!0;v.scrollTo({[g?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(p),l.updateActiveIndex(r),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,n),l.transitionStart(i,m),e===0?l.transitionEnd(i,m):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(w){!l||l.destroyed||w.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(i,m))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function Mn(t,e,i,n){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;if(o.destroyed)return;const l=o.grid&&o.params.grid&&o.params.grid.rows>1;let r=t;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)r=r+o.virtual.slidesBefore;else{let a;if(l){const h=r*o.params.grid.rows;a=o.slides.filter(v=>v.getAttribute("data-swiper-slide-index")*1===h)[0].column}else a=o.getSlideIndexByData(r);const s=l?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:u}=o.params;let c=o.params.slidesPerView;c==="auto"?c=o.slidesPerViewDynamic():(c=Math.ceil(parseFloat(o.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let f=s-a<c;if(u&&(f=f||a<Math.ceil(c/2)),f){const h=u?a<o.activeIndex?"prev":"next":a-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?a+1:a-s+1,slideRealIndex:h==="next"?o.realIndex:void 0})}if(l){const h=r*o.params.grid.rows;r=o.slides.filter(v=>v.getAttribute("data-swiper-slide-index")*1===h)[0].column}else r=o.getSlideIndexByData(r)}return requestAnimationFrame(()=>{o.slideTo(r,e,i,n)}),o}function Nn(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{enabled:o,params:l,animating:r}=n;if(!o||n.destroyed)return n;let a=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<l.slidesPerGroupSkip?1:a,u=n.virtual&&l.virtual.enabled;if(l.loop){if(r&&!u&&l.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return l.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+s,t,e,i)}function kn(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{params:o,snapGrid:l,slidesGrid:r,rtlTranslate:a,enabled:s,animating:u}=n;if(!s||n.destroyed)return n;const c=n.virtual&&o.virtual.enabled;if(o.loop){if(u&&!c&&o.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const f=a?n.translate:-n.translate;function h(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const v=h(f),y=l.map(p=>h(p));let _=l[y.indexOf(v)-1];if(typeof _>"u"&&o.cssMode){let p;l.forEach((m,g)=>{v>=m&&(p=g)}),typeof p<"u"&&(_=l[p>0?p-1:p])}let b=0;if(typeof _<"u"&&(b=r.indexOf(_),b<0&&(b=n.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(b=b-n.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),o.rewind&&n.isBeginning){const p=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(p,t,e,i)}else if(o.loop&&n.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(b,t,e,i)}),!0;return n.slideTo(b,t,e,i)}function Ln(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this;if(!n.destroyed)return n.slideTo(n.activeIndex,t,e,i)}function Rn(t,e,i,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),n===void 0&&(n=.5);const o=this;if(o.destroyed)return;let l=o.activeIndex;const r=Math.min(o.params.slidesPerGroupSkip,l),a=r+Math.floor((l-r)/o.params.slidesPerGroup),s=o.rtlTranslate?o.translate:-o.translate;if(s>=o.snapGrid[a]){const u=o.snapGrid[a],c=o.snapGrid[a+1];s-u>(c-u)*n&&(l+=o.params.slidesPerGroup)}else{const u=o.snapGrid[a-1],c=o.snapGrid[a];s-u<=(c-u)*n&&(l-=o.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,o.slidesGrid.length-1),o.slideTo(l,t,e,i)}function zn(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let o=t.clickedIndex,l;const r=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;l=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=t.getSlideIndex(Te(i,`${r}[data-swiper-slide-index="${l}"]`)[0]),Fe(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=t.getSlideIndex(Te(i,`${r}[data-swiper-slide-index="${l}"]`)[0]),Fe(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var Fn={slideTo:On,slideToLoop:Mn,slideNext:Nn,slidePrev:kn,slideReset:Ln,slideToClosest:Rn,slideToClickedSlide:zn};function jn(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const o=()=>{Te(n,`.${i.slideClass}, swiper-slide`).forEach((f,h)=>{f.setAttribute("data-swiper-slide-index",h)})},l=e.grid&&i.grid&&i.grid.rows>1,r=i.slidesPerGroup*(l?i.grid.rows:1),a=e.slides.length%r!==0,s=l&&e.slides.length%i.grid.rows!==0,u=c=>{for(let f=0;f<c;f+=1){const h=e.isElement?Xe("swiper-slide",[i.slideBlankClass]):Xe("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(a){if(i.loopAddBlankSlides){const c=r-e.slides.length%r;u(c),e.recalcSlides(),e.updateSlides()}else tt("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(s){if(i.loopAddBlankSlides){const c=i.grid.rows-e.slides.length%i.grid.rows;u(c),e.recalcSlides(),e.updateSlides()}else tt("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function Bn(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:o,activeSlideIndex:l,byController:r,byMousewheel:a}=t===void 0?{}:t;const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:f,slidesEl:h,params:v}=s,{centeredSlides:y}=v;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&v.virtual.enabled){i&&(!v.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):v.centeredSlides&&s.snapIndex<v.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=c,s.allowSlideNext=f,s.emit("loopFix");return}let _=v.slidesPerView;_==="auto"?_=s.slidesPerViewDynamic():(_=Math.ceil(parseFloat(v.slidesPerView,10)),y&&_%2===0&&(_=_+1));const b=v.slidesPerGroupAuto?_:v.slidesPerGroup;let p=b;p%b!==0&&(p+=b-p%b),p+=v.loopAdditionalSlides,s.loopedSlides=p;const m=s.grid&&v.grid&&v.grid.rows>1;u.length<_+p?tt("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"):m&&v.grid.fill==="row"&&tt("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const g=[],w=[];let x=s.activeIndex;typeof l>"u"?l=s.getSlideIndex(u.filter(I=>I.classList.contains(v.slideActiveClass))[0]):x=l;const A=n==="next"||!n,k=n==="prev"||!n;let S=0,E=0;const T=m?Math.ceil(u.length/v.grid.rows):u.length,C=(m?u[l].column:l)+(y&&typeof o>"u"?-_/2+.5:0);if(C<p){S=Math.max(p-C,b);for(let I=0;I<p-C;I+=1){const M=I-Math.floor(I/T)*T;if(m){const R=T-M-1;for(let z=u.length-1;z>=0;z-=1)u[z].column===R&&g.push(z)}else g.push(T-M-1)}}else if(C+_>T-p){E=Math.max(C-(T-p*2),b);for(let I=0;I<E;I+=1){const M=I-Math.floor(I/T)*T;m?u.forEach((R,z)=>{R.column===M&&w.push(z)}):w.push(M)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),k&&g.forEach(I=>{u[I].swiperLoopMoveDOM=!0,h.prepend(u[I]),u[I].swiperLoopMoveDOM=!1}),A&&w.forEach(I=>{u[I].swiperLoopMoveDOM=!0,h.append(u[I]),u[I].swiperLoopMoveDOM=!1}),s.recalcSlides(),v.slidesPerView==="auto"?s.updateSlides():m&&(g.length>0&&k||w.length>0&&A)&&s.slides.forEach((I,M)=>{s.grid.updateSlide(M,I,s.slides)}),v.watchSlidesProgress&&s.updateSlidesOffset(),i){if(g.length>0&&k){if(typeof e>"u"){const I=s.slidesGrid[x],R=s.slidesGrid[x+S]-I;a?s.setTranslate(s.translate-R):(s.slideTo(x+Math.ceil(S),0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-R,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-R))}else if(o){const I=m?g.length/v.grid.rows:g.length;s.slideTo(s.activeIndex+I,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(w.length>0&&A)if(typeof e>"u"){const I=s.slidesGrid[x],R=s.slidesGrid[x-E]-I;a?s.setTranslate(s.translate-R):(s.slideTo(x-E,0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-R,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-R))}else{const I=m?w.length/v.grid.rows:w.length;s.slideTo(s.activeIndex-I,0,!1,!0)}}if(s.allowSlidePrev=c,s.allowSlideNext=f,s.controller&&s.controller.control&&!r){const I={slideRealIndex:e,direction:n,setTranslate:o,activeSlideIndex:l,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(M=>{!M.destroyed&&M.params.loop&&M.loopFix({...I,slideTo:M.params.slidesPerView===v.slidesPerView?i:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...I,slideTo:s.controller.control.params.slidesPerView===v.slidesPerView?i:!1})}s.emit("loopFix")}function Gn(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(o=>{const l=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;n[l]=o}),t.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),n.forEach(o=>{i.append(o)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var $n={loopCreate:jn,loopFix:Bn,loopDestroy:Gn};function Vn(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 Hn(){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 Un={setGrabCursor:Vn,unsetGrabCursor:Hn};function Wn(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Se()||n===ae())return null;n.assignedSlot&&(n=n.assignedSlot);const o=n.closest(t);return!o&&!n.getRootNode?null:o||i(n.getRootNode().host)}return i(e)}function Qt(t,e,i){const n=ae(),{params:o}=t,l=o.edgeSwipeDetection,r=o.edgeSwipeThreshold;return l&&(i<=r||i>=n.innerWidth-r)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function Xn(t){const e=this,i=Se();let n=t;n.originalEvent&&(n=n.originalEvent);const o=e.touchEventsData;if(n.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==n.pointerId)return;o.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(o.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Qt(e,n,n.targetTouches[0].pageX);return}const{params:l,touches:r,enabled:a}=e;if(!a||!l.simulateTouch&&n.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let s=n.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||o.isTouched&&o.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",c=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&c&&(s=c[0]);const f=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,h=!!(n.target&&n.target.shadowRoot);if(l.noSwiping&&(h?Wn(f,s):s.closest(f))){e.allowClick=!0;return}if(l.swipeHandler&&!s.closest(l.swipeHandler))return;r.currentX=n.pageX,r.currentY=n.pageY;const v=r.currentX,y=r.currentY;if(!Qt(e,n,v))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=v,r.startY=y,o.touchStartTime=ge(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(o.allowThresholdMove=!1);let _=!0;s.matches(o.focusableElements)&&(_=!1,s.nodeName==="SELECT"&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const b=_&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||b)&&!s.isContentEditable&&n.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Yn(t){const e=Se(),i=this,n=i.touchEventsData,{params:o,touches:l,rtlTranslate:r,enabled:a}=i;if(!a||!o.simulateTouch&&t.pointerType==="mouse")return;let s=t;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(n.touchId!==null||s.pointerId!==n.pointerId))return;let u;if(s.type==="touchmove"){if(u=[...s.changedTouches].filter(A=>A.identifier===n.touchId)[0],!u||u.identifier!==n.touchId)return}else u=s;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",s);return}const c=u.pageX,f=u.pageY;if(s.preventedByNestedSwiper){l.startX=c,l.startY=f;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(l,{startX:c,startY:f,currentX:c,currentY:f}),n.touchStartTime=ge());return}if(o.touchReleaseOnEdges&&!o.loop){if(i.isVertical()){if(f<l.startY&&i.translate<=i.maxTranslate()||f>l.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(c<l.startX&&i.translate<=i.maxTranslate()||c>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&s.target===e.activeElement&&s.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",s),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=c,l.currentY=f;const h=l.currentX-l.startX,v=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(h**2+v**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let A;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?n.isScrolling=!1:h*h+v*v>=25&&(A=Math.atan2(Math.abs(v),Math.abs(h))*180/Math.PI,n.isScrolling=i.isHorizontal()?A>o.touchAngle:90-A>o.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!o.cssMode&&s.cancelable&&s.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&s.stopPropagation();let y=i.isHorizontal()?h:v,_=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;o.oneWayMovement&&(y=Math.abs(y)*(r?1:-1),_=Math.abs(_)*(r?1:-1)),l.diff=y,y*=o.touchRatio,r&&(y=-y,_=-_);const b=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=_>0?"prev":"next";const p=i.params.loop&&!o.cssMode,m=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(p&&m&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const A=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(A)}n.allowMomentumBounce=!1,o.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",s)}let g;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&b!==i.touchesDirection&&p&&m&&Math.abs(y)>=1){Object.assign(l,{startX:c,startY:f,currentX:c,currentY:f,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",s),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let w=!0,x=o.resistanceRatio;if(o.touchReleaseOnEdges&&(x=0),y>0?(p&&m&&!g&&n.allowThresholdMove&&n.currentTranslate>(o.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(w=!1,o.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**x))):y<0&&(p&&m&&!g&&n.allowThresholdMove&&n.currentTranslate<(o.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(o.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(w=!1,o.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**x))),w&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),o.threshold>0)if(Math.abs(y)>o.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,n.currentTranslate=n.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{n.currentTranslate=n.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&i.freeMode||o.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function qn(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let o;if(n.type==="touchend"||n.type==="touchcancel"){if(o=[...n.changedTouches].filter(x=>x.identifier===i.touchId)[0],!o||o.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;o=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:r,touches:a,rtlTranslate:s,slidesGrid:u,enabled:c}=e;if(!c||!r.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=ge(),h=f-i.touchStartTime;if(e.allowClick){const x=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(x&&x[0]||n.target,x),e.emit("tap click",n),h<300&&f-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=ge(),Fe(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||a.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 v;if(r.followFinger?v=s?e.translate:-e.translate:v=-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:v});return}const y=v>=-e.maxTranslate()&&!e.params.loop;let _=0,b=e.slidesSizesGrid[0];for(let x=0;x<u.length;x+=x<r.slidesPerGroupSkip?1:r.slidesPerGroup){const A=x<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof u[x+A]<"u"?(y||v>=u[x]&&v<u[x+A])&&(_=x,b=u[x+A]-u[x]):(y||v>=u[x])&&(_=x,b=u[u.length-1]-u[u.length-2])}let p=null,m=null;r.rewind&&(e.isBeginning?m=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const g=(v-u[_])/b,w=_<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(h>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(g>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?p:_+w):e.slideTo(_)),e.swipeDirection==="prev"&&(g>1-r.longSwipesRatio?e.slideTo(_+w):m!==null&&g<0&&Math.abs(g)>r.longSwipesRatio?e.slideTo(m):e.slideTo(_))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(_+w):e.slideTo(_):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:_+w),e.swipeDirection==="prev"&&e.slideTo(m!==null?m:_))}}function Zt(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:o,snapGrid:l}=t,r=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=r&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!r?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=o,t.allowSlideNext=n,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Jn(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Kn(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let o;const l=t.maxTranslate()-t.minTranslate();l===0?o=0:o=(t.translate-t.minTranslate())/l,o!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Qn(t){const e=this;nt(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Zn(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ei=(t,e)=>{const i=Se(),{params:n,el:o,wrapperEl:l,device:r}=t,a=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",u=e;i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),o[s]("touchstart",t.onTouchStart,{passive:!1}),o[s]("pointerdown",t.onTouchStart,{passive:!1}),i[s]("touchmove",t.onTouchMove,{passive:!1,capture:a}),i[s]("pointermove",t.onTouchMove,{passive:!1,capture:a}),i[s]("touchend",t.onTouchEnd,{passive:!0}),i[s]("pointerup",t.onTouchEnd,{passive:!0}),i[s]("pointercancel",t.onTouchEnd,{passive:!0}),i[s]("touchcancel",t.onTouchEnd,{passive:!0}),i[s]("pointerout",t.onTouchEnd,{passive:!0}),i[s]("pointerleave",t.onTouchEnd,{passive:!0}),i[s]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&o[s]("click",t.onClick,!0),n.cssMode&&l[s]("scroll",t.onScroll),n.updateOnWindowResize?t[u](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",Zt,!0):t[u]("observerUpdate",Zt,!0),o[s]("load",t.onLoad,{capture:!0})};function eo(){const t=this,{params:e}=t;t.onTouchStart=Xn.bind(t),t.onTouchMove=Yn.bind(t),t.onTouchEnd=qn.bind(t),t.onDocumentTouchStart=Zn.bind(t),e.cssMode&&(t.onScroll=Kn.bind(t)),t.onClick=Jn.bind(t),t.onLoad=Qn.bind(t),ei(t,"on")}function to(){ei(this,"off")}var io={attachEvents:eo,detachEvents:to};const ti=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function no(){const t=this,{realIndex:e,initialized:i,params:n,el:o}=t,l=n.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const r=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!r||t.currentBreakpoint===r)return;const s=(r in l?l[r]:void 0)||t.originalParams,u=ti(t,n),c=ti(t,s),f=n.enabled;u&&!c?(o.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&c&&(o.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&o.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(p=>{if(typeof s[p]>"u")return;const m=n[p]&&n[p].enabled,g=s[p]&&s[p].enabled;m&&!g&&t[p].disable(),!m&&g&&t[p].enable()});const h=s.direction&&s.direction!==n.direction,v=n.loop&&(s.slidesPerView!==n.slidesPerView||h),y=n.loop;h&&i&&t.changeDirection(),ve(t.params,s);const _=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!_?t.disable():!f&&_&&t.enable(),t.currentBreakpoint=r,t.emit("_beforeBreakpoint",s),i&&(v?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!y&&b?(t.loopCreate(e),t.updateSlides()):y&&!b&&t.loopDestroy()),t.emit("breakpoint",s)}function oo(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const o=ae(),l=e==="window"?o.innerHeight:i.clientHeight,r=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const s=parseFloat(a.substr(1));return{value:l*s,point:a}}return{value:a,point:a}});r.sort((a,s)=>parseInt(a.value,10)-parseInt(s.value,10));for(let a=0;a<r.length;a+=1){const{point:s,value:u}=r[a];e==="window"?o.matchMedia(`(min-width: ${u}px)`).matches&&(n=s):u<=i.clientWidth&&(n=s)}return n||"max"}var lo={setBreakpoint:no,getBreakpoint:oo};function so(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(o=>{n[o]&&i.push(e+o)}):typeof n=="string"&&i.push(e+n)}),i}function ro(){const t=this,{classNames:e,params:i,rtl:n,el:o,device:l}=t,r=so(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...r),o.classList.add(...e),t.emitContainerClasses()}function ao(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var co={addClasses:ro,removeClasses:ao};function uo(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const o=t.slides.length-1,l=t.slidesGrid[o]+t.slidesSizesGrid[o]+n*2;t.isLocked=t.size>l}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var vo={checkOverflow:uo},Et={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 po(t,e){return function(n){n===void 0&&(n={});const o=Object.keys(n)[0],l=n[o];if(typeof l!="object"||l===null){ve(e,n);return}if(t[o]===!0&&(t[o]={enabled:!0}),o==="navigation"&&t[o]&&t[o].enabled&&!t[o].prevEl&&!t[o].nextEl&&(t[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&t[o]&&t[o].enabled&&!t[o].el&&(t[o].auto=!0),!(o in t&&"enabled"in l)){ve(e,n);return}typeof t[o]=="object"&&!("enabled"in t[o])&&(t[o].enabled=!0),t[o]||(t[o]={enabled:!1}),ve(e,n)}}const Tt={eventsEmitter:dn,update:wn,translate:_n,transition:Dn,slide:Fn,loop:$n,grabCursor:Un,events:io,breakpoints:lo,checkOverflow:vo,classes:co},xt={};let Ct=class _e{constructor(){let e,i;for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?i=o[0]:[e,i]=o,i||(i={}),i=ve({},i),e&&!i.el&&(i.el=e);const r=Se();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){const c=[];return r.querySelectorAll(i.el).forEach(f=>{const h=ve({},i,{el:f});c.push(new _e(h))}),c}const a=this;a.__swiper__=!0,a.support=qt(),a.device=Jt({userAgent:i.userAgent}),a.browser=sn(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],i.modules&&Array.isArray(i.modules)&&a.modules.push(...i.modules);const s={};a.modules.forEach(c=>{c({params:i,swiper:a,extendParams:po(i,s),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=ve({},Et,s);return a.params=ve({},u,xt,i),a.originalParams=ve({},a.params),a.passedParams=ve({},i),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.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:a.params.allowSlideNext,allowSlidePrev:a.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:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,o=Te(i,`.${n.slideClass}, swiper-slide`),l=it(o[0]);return it(e)-l}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:n}=e;e.slides=Te(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const o=n.minTranslate(),r=(n.maxTranslate()-o)*e+o;n.translateTo(r,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const o=e.getSlideClasses(n);i.push({slideEl:n,classNames:o}),e.emit("_slideClass",n,o)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:o,slides:l,slidesGrid:r,slidesSizesGrid:a,size:s,activeIndex:u}=n;let c=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let f=l[u]?Math.ceil(l[u].swiperSlideSize):0,h;for(let v=u+1;v<l.length;v+=1)l[v]&&!h&&(f+=Math.ceil(l[v].swiperSlideSize),c+=1,f>s&&(h=!0));for(let v=u-1;v>=0;v-=1)l[v]&&!h&&(f+=l[v].swiperSlideSize,c+=1,f>s&&(h=!0))}else if(e==="current")for(let f=u+1;f<l.length;f+=1)(i?r[f]+a[f]-r[u]<s:r[f]-r[u]<s)&&(c+=1);else for(let f=u-1;f>=0;f-=1)r[u]-r[f]<s&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(r=>{r.complete&&nt(e,r)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function o(){const r=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(r,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)o(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const r=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(r.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||o()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,o=n.params.direction;return e||(e=o==="horizontal"?"vertical":"horizontal"),e===o||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${o}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const o=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(o()):Te(n,o())[0];return!r&&i.params.createElements&&(r=Xe("div",i.params.wrapperClass),n.append(r),Te(n,`.${i.params.slideClass}`).forEach(a=>{r.append(a)})),Object.assign(i,{el:n,wrapperEl:r,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||Pe(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||Pe(n,"direction")==="rtl"),wrongRTL:Pe(r,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const o=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&o.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(l=>{l.complete?nt(i,l):l.addEventListener("load",r=>{nt(i,r.target)})}),St(i),i.initialized=!0,St(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:o,el:l,wrapperEl:r,slides:a}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),o.loop&&n.loopDestroy(),i&&(n.removeClasses(),l.removeAttribute("style"),r.removeAttribute("style"),a&&a.length&&a.forEach(s=>{s.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(s=>{n.off(s)}),e!==!1&&(n.el.swiper=null,Wi(n)),n.destroyed=!0),null}static extendDefaults(e){ve(xt,e)}static get extendedDefaults(){return xt}static get defaults(){return Et}static installModule(e){_e.prototype.__modules__||(_e.prototype.__modules__=[]);const i=_e.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>_e.installModule(i)),_e):(_e.installModule(e),_e)}};Object.keys(Tt).forEach(t=>{Object.keys(Tt[t]).forEach(e=>{Ct.prototype[e]=Tt[t][e]})}),Ct.use([rn,an]);const ii=["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 Re(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Be(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:Re(e[n])&&Re(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:Be(t[n],e[n]):t[n]=e[n]})}function ni(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function oi(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function li(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function si(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function fo(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function mo(t){let{swiper:e,slides:i,passedParams:n,changedParams:o,nextEl:l,prevEl:r,scrollbarEl:a,paginationEl:s}=t;const u=o.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:c,pagination:f,navigation:h,scrollbar:v,virtual:y,thumbs:_}=e;let b,p,m,g,w,x,A,k;o.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(b=!0),o.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(p=!0),o.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(c.pagination||c.pagination===!1)&&f&&!f.el&&(m=!0),o.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&v&&!v.el&&(g=!0),o.includes("navigation")&&n.navigation&&(n.navigation.prevEl||r)&&(n.navigation.nextEl||l)&&(c.navigation||c.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(w=!0);const S=E=>{e[E]&&(e[E].destroy(),E==="navigation"?(e.isElement&&(e[E].prevEl.remove(),e[E].nextEl.remove()),c[E].prevEl=void 0,c[E].nextEl=void 0,e[E].prevEl=void 0,e[E].nextEl=void 0):(e.isElement&&e[E].el.remove(),c[E].el=void 0,e[E].el=void 0))};o.includes("loop")&&e.isElement&&(c.loop&&!n.loop?x=!0:!c.loop&&n.loop?A=!0:k=!0),u.forEach(E=>{if(Re(c[E])&&Re(n[E]))Object.assign(c[E],n[E]),(E==="navigation"||E==="pagination"||E==="scrollbar")&&"enabled"in n[E]&&!n[E].enabled&&S(E);else{const T=n[E];(T===!0||T===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?T===!1&&S(E):c[E]=n[E]}}),u.includes("controller")&&!p&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),o.includes("children")&&i&&y&&c.virtual.enabled?(y.slides=i,y.update(!0)):o.includes("virtual")&&y&&c.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),o.includes("children")&&i&&c.loop&&(k=!0),b&&_.init()&&_.update(!0),p&&(e.controller.control=c.controller.control),m&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(c.pagination.el=s),f.init(),f.render(),f.update()),g&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(c.scrollbar.el=a),v.init(),v.updateSize(),v.setTranslate()),w&&(e.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=e.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),e.el.appendChild(l)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),r.innerHTML=e.hostEl.constructor.prevButtonSvg,r.part.add("button-prev"),e.el.appendChild(r))),l&&(c.navigation.nextEl=l),r&&(c.navigation.prevEl=r),h.init(),h.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),o.includes("direction")&&e.changeDirection(n.direction,!1),(x||k)&&e.loopDestroy(),(A||k)&&e.loopCreate(),e.update()}function ho(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},o={};Be(i,Et),i._emitClasses=!0,i.init=!1;const l={},r=ii.map(s=>s.replace(/_/,"")),a=Object.assign({},t);return Object.keys(a).forEach(s=>{typeof t[s]>"u"||(r.indexOf(s)>=0?Re(t[s])?(i[s]={},o[s]={},Be(i[s],t[s]),Be(o[s],t[s])):(i[s]=t[s],o[s]=t[s]):s.search(/on[A-Z]/)===0&&typeof t[s]=="function"?e?n[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:i.on[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:l[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:o,rest:l,events:n}}function go(t,e){let{el:i,nextEl:n,prevEl:o,paginationEl:l,scrollbarEl:r,swiper:a}=t;ni(e)&&n&&o&&(a.params.navigation.nextEl=n,a.originalParams.navigation.nextEl=n,a.params.navigation.prevEl=o,a.originalParams.navigation.prevEl=o),oi(e)&&l&&(a.params.pagination.el=l,a.originalParams.pagination.el=l),li(e)&&r&&(a.params.scrollbar.el=r,a.originalParams.scrollbar.el=r),a.init(i)}function bo(t,e,i,n,o){const l=[];if(!e)return l;const r=s=>{l.indexOf(s)<0&&l.push(s)};if(i&&n){const s=n.map(o),u=i.map(o);s.join("")!==u.join("")&&r("children"),n.length!==i.length&&r("children")}return ii.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in t&&s in e)if(Re(t[s])&&Re(e[s])){const u=Object.keys(t[s]),c=Object.keys(e[s]);u.length!==c.length?r(s):(u.forEach(f=>{t[s][f]!==e[s][f]&&r(s)}),c.forEach(f=>{t[s][f]!==e[s][f]&&r(s)}))}else t[s]!==e[s]&&r(s)}),l}const yo=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 ot(){return ot=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},ot.apply(this,arguments)}function ri(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ai(t){const e=[];return d.Children.toArray(t).forEach(i=>{ri(i)?e.push(i):i.props&&i.props.children&&ai(i.props.children).forEach(n=>e.push(n))}),e}function wo(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return d.Children.toArray(t).forEach(n=>{if(ri(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const o=ai(n.props.children);o.length>0?o.forEach(l=>e.push(l)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function So(t,e,i){if(!i)return null;const n=c=>{let f=c;return c<0?f=e.length+c:f>=e.length&&(f=f-e.length),f},o=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:r}=i,a=t.params.loop?-e.length:0,s=t.params.loop?e.length*2:e.length,u=[];for(let c=a;c<s;c+=1)c>=l&&c<=r&&u.push(e[n(c)]);return u.map((c,f)=>d.cloneElement(c,{swiper:t,style:o,key:c.props.virtualIndex||c.key||`slide-${f}`}))}function Ye(t,e){return typeof window>"u"?d.useEffect(t,e):d.useLayoutEffect(t,e)}const _t=d.createContext(null),di=()=>d.useContext(_t),Eo=d.createContext(null),Ge=d.forwardRef(function(t,e){let{className:i,tag:n="div",wrapperTag:o="div",children:l,onSwiper:r,...a}=t===void 0?{}:t,s=!1;const[u,c]=d.useState("swiper"),[f,h]=d.useState(null),[v,y]=d.useState(!1),_=d.useRef(!1),b=d.useRef(null),p=d.useRef(null),m=d.useRef(null),g=d.useRef(null),w=d.useRef(null),x=d.useRef(null),A=d.useRef(null),k=d.useRef(null),{params:S,passedParams:E,rest:T,events:D}=ho(a),{slides:C,slots:I}=wo(l),M=()=>{y(!v)};Object.assign(S.on,{_containerClasses(P,N){c(N)}});const R=()=>{Object.assign(S.on,D),s=!0;const P={...S};if(delete P.wrapperClass,p.current=new Ct(P),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=C;const N={cache:!1,slides:C,renderExternal:h,renderExternalUpdate:!1};Be(p.current.params.virtual,N),Be(p.current.originalParams.virtual,N)}};b.current||R(),p.current&&p.current.on("_beforeBreakpoint",M);const z=()=>{s||!D||!p.current||Object.keys(D).forEach(P=>{p.current.on(P,D[P])})},B=()=>{!D||!p.current||Object.keys(D).forEach(P=>{p.current.off(P,D[P])})};d.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",M)}),d.useEffect(()=>{!_.current&&p.current&&(p.current.emitSlidesClasses(),_.current=!0)}),Ye(()=>{if(e&&(e.current=b.current),!!b.current)return p.current.destroyed&&R(),go({el:b.current,nextEl:w.current,prevEl:x.current,paginationEl:A.current,scrollbarEl:k.current,swiper:p.current},S),r&&!p.current.destroyed&&r(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),Ye(()=>{z();const P=bo(E,m.current,C,g.current,N=>N.key);return m.current=E,g.current=C,P.length&&p.current&&!p.current.destroyed&&mo({swiper:p.current,slides:C,passedParams:E,changedParams:P,nextEl:w.current,prevEl:x.current,scrollbarEl:k.current,paginationEl:A.current}),()=>{B()}}),Ye(()=>{yo(p.current)},[f]);function O(){return S.virtual?So(p.current,C,f):C.map((P,N)=>d.cloneElement(P,{swiper:p.current,swiperSlideIndex:N}))}return d.createElement(n,ot({ref:b,className:si(`${u}${i?` ${i}`:""}`)},T),d.createElement(Eo.Provider,{value:p.current},I["container-start"],d.createElement(o,{className:fo(S.wrapperClass)},I["wrapper-start"],O(),I["wrapper-end"]),ni(S)&&d.createElement(d.Fragment,null,d.createElement("div",{ref:x,className:"swiper-button-prev"}),d.createElement("div",{ref:w,className:"swiper-button-next"})),li(S)&&d.createElement("div",{ref:k,className:"swiper-scrollbar"}),oi(S)&&d.createElement("div",{ref:A,className:"swiper-pagination"}),I["container-end"]))});Ge.displayName="Swiper";const Ce=d.forwardRef(function(t,e){let{tag:i="div",children:n,className:o="",swiper:l,zoom:r,lazy:a,virtualIndex:s,swiperSlideIndex:u,...c}=t===void 0?{}:t;const f=d.useRef(null),[h,v]=d.useState("swiper-slide"),[y,_]=d.useState(!1);function b(w,x,A){x===f.current&&v(A)}Ye(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),e&&(e.current=f.current),!(!f.current||!l)){if(l.destroyed){h!=="swiper-slide"&&v("swiper-slide");return}return l.on("_slideClass",b),()=>{l&&l.off("_slideClass",b)}}}),Ye(()=>{l&&f.current&&!l.destroyed&&v(l.getSlideClasses(f.current))},[l]);const p={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},m=()=>typeof n=="function"?n(p):n,g=()=>{_(!0)};return d.createElement(i,ot({ref:f,className:si(`${h}${o?` ${o}`:""}`),"data-swiper-slide-index":s,onLoad:g},c),r&&d.createElement(_t.Provider,{value:p},d.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof r=="number"?r:void 0},m(),a&&!y&&d.createElement("div",{className:"swiper-lazy-preloader"}))),!r&&d.createElement(_t.Provider,{value:p},m(),a&&!y&&d.createElement("div",{className:"swiper-lazy-preloader"})))});Ce.displayName="SwiperSlide";function qe(){const{bffEventReport:t,popupDetailData:e,waterFallData:i,isFromHashtag:n}=Q(),o=d.useCallback((r,a,s)=>{var u,c,f,h,v,y,_,b,p,m,g,w,x,A;let k="";e&&(!((c=(u=r?.video)===null||u===void 0?void 0:u.bindProducts)===null||c===void 0)&&c.length||!((f=r?.video)===null||f===void 0)&&f.bindProduct)?k="pdpPage":n?k="hashTagPage":!((h=r?.video)===null||h===void 0)&&h.url?k="videoPage":!((v=r?.video)===null||v===void 0)&&v.imgUrls&&(!((_=(y=r?.video)===null||y===void 0?void 0:y.imgUrls)===null||_===void 0)&&_.length)?k="imagePage":r?.product&&(k="productPage"),t?.({eventInfo:{eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(b=a?.itemId)!==null&&b!==void 0?b:"",productName:(p=a?.title)!==null&&p!==void 0?p:"",price:a?.price?a?.price+"":"0",productCollection:(m=a?.collection)!==null&&m!==void 0?m:"",fromKName:k,fromKPage:location?.href,contentTags:a?.tags?JSON.stringify(a?.tags):"",position:r?.position+"",relatedContentId:(w=(g=r?.video)===null||g===void 0?void 0:g.itemId)!==null&&w!==void 0?w:"",relatedCtatId:(x=s?.itemId)!==null&&x!==void 0?x:"",traceInfo:(A=a?.traceInfo)!==null&&A!==void 0?A:""}})},[t,e,n]),l=d.useCallback((r,a,s,u)=>{var c,f,h,v;let y="";e&&(!((f=(c=r?.video)===null||c===void 0?void 0:c.bindProducts)===null||f===void 0)&&f.length||!((h=r?.video)===null||h===void 0)&&h.bindProduct)?y="pdpPage":r?.product&&(y="productPage"),t?.({eventInfo:{productId:a?.itemId,productName:a?.title,price:a?.price+"",productCollection:a?.collection,fromKName:y,fromKPage:location?.href,contentTags:JSON.stringify(a?.tags),position:r?.position+"",relatedContentId:(v=r?.video)===null||v===void 0?void 0:v.itemId,relatedCtatId:s?.itemId,traceInfo:a?.traceInfo,timeOnSite:Math.floor((new Date-u)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]);return{jumpToWeb:o,productView:l}}const To="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",xo=({visible:t,onClose:e,children:i,modalStyle:n,padding:o,popupAniData:l})=>{const{popupAni:r}=me(),a=l??r,[s,u]=d.useState(!1),c=d.useRef(null);if(d.useEffect(()=>{const h=document.getElementById("sxp-render"),v=document.getElementById("pb-modal");v?c.current=v:(c.current=document.createElement("div"),c.current.setAttribute("id","pb-modal"),h?.appendChild(c.current))},[]),d.useEffect(()=>{t?u(!0):setTimeout(()=>{u(!1)},a?.duration)},[t,a]),!c.current)return null;const f=le.debounce(()=>{e?.()},300);return Mt.createPortal(d.createElement("div",{className:"modal-bg",style:Object.assign({display:s?"flex":"none",backgroundColor:t?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:f},d.createElement("div",{className:`modal-container ${t?"modal-popIn":"modal-popOut"}`,style:{padding:o,animationDuration:a?.duration/1e3+"s"},onClick:h=>{h.stopPropagation(),h.preventDefault()}},d.createElement("div",{onClick:e,className:"modal-icon-wrapper"},d.createElement("img",{src:To,alt:"close",className:"modal-icon"})),i)),c.current)};var lt=d.memo(xo);const Co=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),o=[];for(let r=0;r<n.length&&(o.push(n[r]),!(o.join(" ").length>=e));r++);return(o.length>1&&o.length<n.length?o.slice(0,o.length-1):o).join(" ")+" "},_o=({text:t,maxStr:e=108,style:i,className:n,onClick:o,foldText:l,unfoldText:r,isPost:a})=>{const[s,u]=d.useState(!0),[c,f]=d.useState(!1),h=Number(i?.lineClamp||2),v=d.useRef(null),y=d.useCallback(()=>{u(!s)},[s]);return d.useMemo(()=>!s&&t.length>e?Co(t,e)+"...":t,[t,e,s]),d.useEffect(()=>{v.current&&a&&(u(!0),setTimeout(()=>{var _;f(!1);try{const b=(_=window?.getComputedStyle)===null||_===void 0?void 0:_.call(window,v.current),p=parseFloat(b?.height),m=parseFloat(b?.lineHeight),g=parseFloat(b?.fontSize)+4,w=isNaN(m)?g:m;t&&p>w*h&&(u(!1),f(!0))}catch{}},100))},[v,t,h,i,a]),d.createElement("div",{className:n,style:Object.assign({},i),hidden:!t||t===""},d.createElement("div",{ref:v,style:{overflow:"hidden",WebkitLineClamp:s?"":h,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:t?.replace(/\n/g,"</br>")}}),c&&t&&d.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:o??y},s?r||"show less":l||"show more"))};var It=d.memo(_o);const Io=t=>{var e,i,n,o,l,r,a,s,{content:u,style:c,bgImg:f,onClick:h,schema:v,isDefault:y,bottom_image:_,tipText:b,isPost:p,viewTime:m,rec:g,swiper:w,commodityStyles:x,buttonStyle:A}=t,k=re(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle"]);const{sxpParameter:S}=Q(),{popupDetailData:E,bffEventReport:T,isPreview:D,waterFallData:C}=Q(),{jumpToWeb:I,productView:M}=qe(),R=d.useRef(null),[z,B]=d.useState(!1),O=p?g:E,P=p?O?.product:(e=O?.video)===null||e===void 0?void 0:e.bindProduct,N=p?(i=O?.product)===null||i===void 0?void 0:i.bindCta:(o=(n=O?.video)===null||n===void 0?void 0:n.bindProduct)===null||o===void 0?void 0:o.bindCta,U=()=>{P?.link&&(I(E,P,N),p||M(O,P,N,m||R.current),window.location.href=window.getJointUtmLink(P.link))};d.useEffect(()=>{const F=()=>{R.current=new Date};return F(),window.addEventListener("pageshow",F),()=>{window.removeEventListener("pageshow",F)}},[]);const te=d.useMemo(()=>{var F,H,Y,K,ee;return P?.currency&&P?.price?`${(Y=(H=(F=P?.currency)===null||F===void 0?void 0:F.split("-")[1])===null||H===void 0?void 0:H.toUpperCase())!==null&&Y!==void 0?Y:""}${(ee=(K=P?.price)===null||K===void 0?void 0:K.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&ee!==void 0?ee:""}`:"$7,000"},[P?.price,P?.currency]),ne=D?375:window.innerWidth,de=({isPost:F})=>{var H,Y,K;return d.createElement("div",{className:"pb-commondity-content"},d.createElement("div",{className:"pb-commondity-content-collection",style:x?.collection},(H=P?.collection)!==null&&H!==void 0?H:"Tiffany Lock"),d.createElement("div",{className:"pb-commondity-content-title",style:x?.title},(Y=P?.title)!==null&&Y!==void 0?Y:"Pendant in Yellow Gold with Diamonds, Medium"),d.createElement("div",{className:"pb-commondity-content-price",style:x?.price},te),d.createElement(It,{foldText:b?.foldText,unfoldText:b?.unfoldText,onClick:()=>B(!0),isPost:F,text:(K=P?.info)!==null&&K!==void 0?K:`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
|
5
|
-
18-karat gold, this necklace is embellished with hand-set diamonds.`))),(v||w?.link)&&d.createElement("button",{onClick:M,className:"pb-commondity-btn"},(p=P?.enTitle)!==null&&p!==void 0?p:"Purchase on Website"))};var Eo=d.memo(So);const xo=he(Eo,{displayName:"\u5546\u54C1\u8BE6\u60C5",icon:"",category:"popup",type:"CommodityDetail",defaulSetting:{props:{},style:{}},w:100,h:40,sort:1});var To=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Co=[{type:"Media",label:"\u56FE\u6807",name:["props","icon"],mediaType:"Image"},{type:"TextArea",label:"\u5185\u5BB9",name:["props","content"]},{type:"Text",label:"\u6309\u94AE\u6587\u6848",name:["props","btnText"]}],si="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABHBJREFUeF7lmzuoFkcYhp/TihdIl0JBESubSCCCih4NXgJeUphCjyKmEEVtLRSjooWtShILRRJtgpCoeLzgLUZBQbTwAoooqLWoCWIXeZdd3bP++8/st7OX33+ac2Dn8r3Pvzv7zcy7A9RT5gDjgQnx3/T/iuA58Cz+m/7/StXhDVQ0gATOBhYCi4GxxnHeAKeAs8DfMSBjV52bhQTwBbApFj4YNMqPnV0GrgL7gJchxggFQMI3A5NDBOXRx+MYwn6Pul2rlAWwMv7VvykbiLH9TUAQjhnbYwUwA9gKLLIOHLjdGWAPcL1ovxYAG4G9wKiig1Vc/y2wBThQZJyiAA4Ba4sM0EDdw8CPvuMWAXAb+Mq344br3QGm+cTgC+B/n85aWMepz1kBOBknMy3U5wxJSdSSbrVcAPR+V9LRy0X5SW6+0A3AMuDPXlaeiv174K9OWvIAfA1cAMZ9JgBeA98Ct7J68gAMtyjJCfUbKFn6zgeA0tujoUZtWT9D2bS50x1wA2gqt6+al9YO09ODZAF8DrO+C+KIt0IagNbzIlTXktYVaKfr9+PNkSklchMtpXWHR/sJaQA7gJ8sUdXURuJ/AB7E4/0BLDeOvROQ3hEA/gFmGjusullWfDKeFcI1YFYawETgSdUqjP3niS8LYRLwNHkE1gM/GwOssplLfBkIG4BfEgBKE5dWqcTQt694da1td22YFikngGUJgH+B0UVaV1y3iHiFYpnA/wPGCICFXpX66xCfxD8oAKuA3wIpegToHW0tdYpXjKsFQLu7u60Rx+3exSCPG29HdVO3eI25TQB+BdaVAKCMSneRVpBJKfpMNiFesR4UgNOdlomeQF4AWj3quCpbfCE0JV7xDgvAXWCqp+B0tYfACkC7xXnFBaFJ8Yr5ngC8Mu78KHnS4+MqeRCaFq+4X5cB8MnmQoE7oQ3iPwCwPgJWEdZ2rjvNcj16BMpMghYxWsElS1pX0K45xNXedT2aBMu+BotCcAVlfZX69puuF70GQyRCoSFU/csnEKJEKFQqHApCXeIFIUqFQy6GykKoU7wARIuh6HVQwsmVffasEOoWLwfauASADkKU0oYqRSHULV465SsaSgAoqfk9lPq4H18ITYhXiJr7jiYAZGyUUzN0cUFoSrx0yrX6PH0ucEmTQmgCXdb5TYrX/uFcaa3rYCR7JzQpXro1vg5HRgCo+mhMEOT3/RKQYaGpkns0poD6+nA0+UX6+nhcEPreICEIfW2REQCZoc+30A9snTjlI57fyUzdzSYnU3RpP7414sDtNLl3NFG7jJK9YI52sepqnnYBUOe9ZJLOwnCapn0AqNO+NksnVHvJNO00SSeifO+ApH4vZIpdzdHZZ6QoALWXifqI8TTJNWGVua5drTV5pui8ji0A1JfM1Lta5CeWD3h7JzO0i6gVQNJv3342lwXbtx9OpkFoP0ET0LwKDZcyOF5s46ez2TtCxkt9OL0gBmJ1oMnJJcHnYo/wU9czXfR62TnAd7zWfj7/HrAAAKDnDZ8VAAAAAElFTkSuQmCC";const _o=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:o,src:l}=t;switch(i){case 2:return n||null;case 3:return l||null;default:return o&&o.length>0?(e=o[0])===null||e===void 0?void 0:e.url:null}},Io=t=>{var{content:e,btnText:i,style:n,icon:o,onClick:l}=t,a=ve(t,["content","btnText","style","icon","onClick"]);Le();const r=typeof o=="string"?o:_o(o),s=()=>{window?.sxpPopup(""),l?.()};return d.createElement("div",Object.assign({className:`pb-prompt ${U.css(Object.assign({},n))}`},a),d.createElement("div",{className:"pb-prompt-icon"},d.createElement("img",{width:"100%",src:r??si})),d.createElement("div",{className:"pb-prompt-content"},e),d.createElement("button",{className:"pb-prompt-btn",onClick:s},i))};var Ao=d.memo(Io);const Po=he(Ao,{displayName:"\u63D0\u4EA4\u6210\u529F",icon:"",category:"popup",type:"Prompt",related:{settingRender:Co,bindableProps:[],interactionRender:To},defaulSetting:{props:{icon:si,content:"You have successfully completed the appointment!",btnText:"OK"},style:{}},w:100,h:40,sort:3});var Do="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAmhJREFUeF7t2dFKFFEcx/HvPkE3XvcA9hpedS2JhlioISKSEqESWkhUSISIiIomWiFCl973EvYM3XTnA7QHdmEb5sz8d+b8z+xh/guCwjj7/33md2bWY4eWvzotz48BWANaLmBLoOUFsJugLQFbAi0XsCXQ8gLYU8CWgC2BfIEHwBowCdwD34GDxLCeAzPAQ+AIuAL+ZjP4lsBj4DZz8A0wlQjCW2AnM6sDuZACfAWe5YS9BqZHHCEvvBv5Z6/R/43va8AicOIJ+gN4OqIIvvBu3E3go7QBY8Av4JEn6DdgdsQQisLfARPAHymAO268++XWvQ/hEpgbEYSy8E+A33mzln0OKENwNxV3c2nyVTm8G7oMQNKEc2C+IYFa4aUAEoQzYCEyQu3wwwBIEE6BF5EQgoQfFkCCcNy90y4pIwQLXwVAguA+di4rIQQNXxVAgnAIrARGCB6+DoAEwf3xtBoIQSV8XQAJwj7wsiaCWvgQABKEL8B6RQTV8KEAJAifu/sKr4ZEUA8fEkCCsAe8FiJECR8aQILwCdgoQYgWXgNAgvAB2PIgRA2vBSBBeA+8ySBED68JIEHYBbZ7CI2E1waQILzrAWQ3MPvlcDs53s0M4Q218DDJfkDd9ynbVPGdXz18jAb0ww2LECV8TADJcohW+8HKxVgCg+9X1oRoV74/VGyAoiZEDx97CRQ1oZHwTQIMNsF9r/qoK3qMNbEEsk1wP+f+06Lu81fy+00DSGZUPcYAVHkTOLk1IIGLpDqiNUCVN4GTWwMSuEiqI1oDVHkTOLk1IIGLpDqiNUCVN4GTWwMSuEiqI/4DSCuFQaIHE+8AAAAASUVORK5CYII=";const Mo=t=>{var e,i,n,o,l,a,r,s,u,c,{style:p,isDefault:f,rec:m,viewTime:b,isPost:g,bottom_image:E}=t,v=ve(t,["style","isDefault","rec","viewTime","isPost","bottom_image"]);const[y,h]=d.useState(!0),{sxpParameter:T}=Q(),{popupDetailData:C,bffEventReport:A,isPreview:L,swiperRef:x,waterFallData:I}=Q(),{jumpToWeb:S,productView:D}=Re(),w=d.useRef(null),P=d.useRef(null),M=d.useRef(null),[O,_]=d.useState(!1),[z,k]=d.useState(!1),[F,G]=d.useState(!0),H=d.useRef(null),Y=g?m:C,R=g?Y?.product:(e=Y?.video)===null||e===void 0?void 0:e.bindProduct,ie=g?(i=Y?.product)===null||i===void 0?void 0:i.bindCta:(o=(n=Y?.video)===null||n===void 0?void 0:n.bindProduct)===null||o===void 0?void 0:o.bindCta,j=()=>{R?.link&&(S(Y,R,ie),g||D(Y,R,ie,b||H.current),window.location.href=window.getJointUtmLink(R.link))};d.useEffect(()=>{const X=()=>{H.current=new Date};return X(),window.addEventListener("pageshow",X),()=>{window.removeEventListener("pageshow",X)}},[]);const B=d.useMemo(()=>{var X,K,re,ce,ae;return R?.currency&&R?.price?`${(re=(K=(X=R?.currency)===null||X===void 0?void 0:X.split("-")[1])===null||K===void 0?void 0:K.toUpperCase())!==null&&re!==void 0?re:""}${(ae=(ce=R?.price)===null||ce===void 0?void 0:ce.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&ae!==void 0?ae:""}`:"$7,000"},[R?.price,R?.currency]),q=L?375:window.innerWidth,le=()=>{h(!y)};d.useEffect(()=>{var X,K;console.log((X=w?.current)===null||X===void 0?void 0:X.scrollHeight,window.innerHeight),w?.current&&((K=w?.current)===null||K===void 0?void 0:K.scrollHeight)>window.innerHeight&&_(!0)},[w]),d.useEffect(()=>{const X=()=>{if(w?.current){const{scrollTop:K,scrollHeight:re,clientHeight:ce}=w.current,ae=K+ce===re;k(!!ae),G(K===0)}};return w.current&&w.current.addEventListener("scroll",X),()=>{w.current&&w.current.removeEventListener("scroll",X)}},[w]);const ne=X=>{X.stopPropagation(),P.current=X.touches[0].clientY,M.current=!0},se=X=>{var K,re,ce,ae;if(M.current){M.current=!1;const Pe=X.touches[0].clientY,Te=P.current-Pe;Te>0&&(z||!O)?(re=(K=x?.current)===null||K===void 0?void 0:K.swiper)===null||re===void 0||re.slideNext():Te<0&&(F||!O)&&((ae=(ce=x?.current)===null||ce===void 0?void 0:ce.swiper)===null||ae===void 0||ae.slidePrev())}};return d.createElement("div",{className:"pb-commondityDiro"},d.createElement("div",Object.assign({ref:w,className:U.css(Object.assign({},p))},v,{onTouchStart:ne,onTouchMove:X=>{X.stopPropagation(),se(X)}}),R&&((l=R?.homePage)===null||l===void 0?void 0:l.length)>0&&d.createElement(Ie,{height:q,modules:[Ve,He],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet"},loop:!0,autoplay:{delay:3e3}},(a=R?.homePage)===null||a===void 0?void 0:a.map(X=>d.createElement(ye,{key:X},d.createElement("div",{style:{overflow:"hidden",width:q,height:q}},d.createElement("img",{src:X,style:{height:"100%",width:"100%",objectFit:"cover"}}))))),!(!((r=R?.homePage)===null||r===void 0)&&r.length)&&d.createElement("div",{className:U.css({position:"relative",height:0,width:"100%",paddingBottom:"100%",overflow:"hidden"})},d.createElement("img",{className:U.css({position:"absolute",left:0,top:0,objectFit:"cover",width:"100%"}),src:(s=T?.bottom_image)!==null&&s!==void 0?s:E,alt:""})),d.createElement("div",{className:"pb-commondityDiro-content"},d.createElement("div",{className:"pb-commondityDiro-content-title"},(u=R?.title)!==null&&u!==void 0?u:"MEDIUM LADY D-LITE BAG"),d.createElement("div",{className:"pb-commondityDiro-content-collection",hidden:!!R&&(!R?.collection||R?.collection==="")},R?.collection||"Gold-Tone and White Butterfly Zodiac Embroidery"),d.createElement("div",{className:"pb-commondityDiro-content-scrollRef",hidden:!!R&&!R?.itemId},R?.itemId?`Reference: ${R?.itemId}`:"Reference: M0565OESU_M01E"),d.createElement("div",{className:"pb-commondityDiro-content-line"}),d.createElement("div",{className:"pb-commondityDiro-content-price"},B)),d.createElement("div",{className:"pb-commondityDiro-desc",hidden:!!R&&(!R?.info||R?.info==="")},d.createElement("div",{className:"pb-commondityDiro-desc-collapse",onClick:le},d.createElement("div",{className:"pb-commondityDiro-desc-collapse-title"},"DESCRIPTION"),d.createElement("img",{className:`pb-commondityDiro-desc-collapse-icon ${y?"pb-commondityDiro-desc-collapse-iconActive":""}`,src:Do,alt:""})),d.createElement("div",{className:"pb-commondityDiro-desc-info",hidden:!y},R?.info||"The Lady D-Lite bag combines classic elegance with House modernity. The style is fully embroidered with a gold-tone and white Butterfly Zodiac motif by Pietro Ruffo, showcasing a constellation enhanced by astrological signs and adorned with butterflies. A Christian Dior Paris signature adorns the front, while D.I.O.R. charms in pale gold-finish metal further enhance and highlight the silhouette. Featuring a wide, removable embroidered shoulder strap, the medium Lady D-Lite bag can be carried by hand or worn crossbody.")),(!R||R?.link)&&d.createElement(d.Fragment,null,d.createElement("div",{className:"pb-commondityDiro-h90"}),d.createElement("div",{className:"pb-commondityDiro-bottom"},d.createElement("button",{onClick:j,className:"pb-commondityDiro-bottom-btn"},(c=ie?.enTitle)!==null&&c!==void 0?c:"SHOP NOW")))))};var Oo=d.memo(Mo);const Lo=he(Oo,{displayName:"\u5546\u54C1\u8BE6\u60C5",icon:"",category:"popup",type:"CommodityDetailDiro",defaulSetting:{props:{},style:{}},w:100,h:40,sort:1}),ko="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",No=({visible:t,onClose:e,children:i,modalStyle:n,padding:o})=>{const[l,a]=d.useState(!1),r=d.useRef(null);if(d.useEffect(()=>{const u=document.getElementById("sxp-render"),c=document.getElementById("pb-modal");c?r.current=c:(r.current=document.createElement("div"),r.current.setAttribute("id","pb-modal"),u?.appendChild(r.current))},[]),d.useEffect(()=>{t?a(!0):setTimeout(()=>{a(!1)},1200)},[t]),!r.current)return null;const s=de.debounce(()=>{e?.()},300);return At.createPortal(d.createElement("div",{className:"modal-bg",style:Object.assign({display:l?"flex":"none",backgroundColor:t?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:s},d.createElement("div",{className:`modal-container ${t?"modal-popIn":"modal-popOut"}`,style:{padding:o},onClick:u=>{u.stopPropagation(),u.preventDefault()}},d.createElement("div",{onClick:e,className:"modal-icon-wrapper"},d.createElement("img",{src:ko,alt:"close",className:"modal-icon"})),i)),r.current)};var tt=d.memo(No);const Ro=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),o=[];for(let a=0;a<n.length&&(o.push(n[a]),!(o.join(" ").length>=e));a++);return(o.length>1&&o.length<n.length?o.slice(0,o.length-1):o).join(" ")+" "},Fo=({text:t,maxStr:e=108,style:i,className:n,onClick:o,foldText:l,unfoldText:a})=>{const[r,s]=d.useState(!0),[u,c]=d.useState(!1),p=Number(i?.lineClamp||2),f=d.useRef(null),m=d.useCallback(()=>{s(!r)},[r]);return d.useMemo(()=>!r&&t.length>e?Ro(t,e)+"...":t,[t,e,r]),d.useEffect(()=>{f.current&&(s(!0),setTimeout(()=>{c(!1);const b=parseInt(getComputedStyle(f.current).height),g=parseInt(getComputedStyle(f?.current).lineHeight);t&&b>g*p&&(s(!1),c(!0))},100))},[f,t,p,i]),d.createElement("div",{className:n,style:Object.assign({},i)},d.createElement("div",{ref:f,style:{overflow:"hidden",WebkitLineClamp:r?"":p,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"}},t),u&&t&&d.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:o??m},r?a||"show less":l||"show more"))};var Tt=d.memo(Fo);const zo=t=>{var e,i,n,o,l,a,r,s,u,c,{style:p,isDefault:f,rec:m,viewTime:b,isPost:g,bottom_image:E,tipText:v}=t,y=ve(t,["style","isDefault","rec","viewTime","isPost","bottom_image","tipText"]);d.useState(!0);const{sxpParameter:h}=Q(),{popupDetailData:T,bffEventReport:C,isPreview:A,swiperRef:L,waterFallData:x}=Q(),{jumpToWeb:I,productView:S}=Re(),D=d.useRef(null);d.useRef(null),d.useRef(null),d.useState(!1),d.useState(!1),d.useState(!0);const[w,P]=d.useState(!1),M=d.useRef(null),O=g?m:T,_=g?O?.product:(e=O?.video)===null||e===void 0?void 0:e.bindProduct,z=g?(i=O?.product)===null||i===void 0?void 0:i.bindCta:(o=(n=O?.video)===null||n===void 0?void 0:n.bindProduct)===null||o===void 0?void 0:o.bindCta,k=()=>{_?.link&&(I(O,_,z),g||S(O,_,z,b||M.current),window.location.href=window.getJointUtmLink(_.link))};d.useEffect(()=>{const H=()=>{M.current=new Date};return H(),window.addEventListener("pageshow",H),()=>{window.removeEventListener("pageshow",H)}},[]);const F=d.useMemo(()=>{var H,Y,R,ie,j;return _?.currency&&_?.price?`${(R=(Y=(H=_?.currency)===null||H===void 0?void 0:H.split("-")[1])===null||Y===void 0?void 0:Y.toUpperCase())!==null&&R!==void 0?R:""}${(j=(ie=_?.price)===null||ie===void 0?void 0:ie.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&j!==void 0?j:""}`:"\xA3102,300.00"},[_?.price,_?.currency]),G=A?375:window.innerWidth;return d.createElement("div",{className:"pb-commondityDiroNew"},d.createElement("div",Object.assign({ref:D,className:U.css(Object.assign({},p))},y),_&&((l=_?.homePage)===null||l===void 0?void 0:l.length)>0&&d.createElement(Ie,{height:G,modules:[Ve,He],pagination:{clickable:!0,bulletActiveClass:"commondityDiroNew-swipe-item-active-bullet",clickableClass:"commondityDiroNew-swiper-clickable"},loop:!0,autoplay:{delay:3e3}},(a=_?.homePage)===null||a===void 0?void 0:a.map(H=>d.createElement(ye,{key:H},d.createElement("div",{style:{overflow:"hidden",width:G,height:G}},d.createElement("img",{src:H,style:{height:"100%",width:"100%",objectFit:"cover"}}))))),!(!((r=_?.homePage)===null||r===void 0)&&r.length)&&d.createElement("div",{className:U.css({position:"relative",height:0,width:"100%",paddingBottom:"100%",overflow:"hidden"})},d.createElement("img",{className:U.css({position:"absolute",left:0,top:0,objectFit:"cover",width:"100%"}),src:(s=h?.bottom_image)!==null&&s!==void 0?s:E,alt:""})),d.createElement("div",{className:"pb-commondityDiroNew-content"},d.createElement("div",{className:"pb-commondityDiroNew-content-top"},d.createElement("div",{className:"pb-commondityDiroNew-content-top-title"},(u=_?.title)!==null&&u!==void 0?u:"Large Dior Toujours Bag"),d.createElement("div",{className:"pb-commondityDiroNew-content-top-price",hidden:!!_&&!_?.price},F)),d.createElement("div",{className:"pb-commondityDiroNew-content-collection",hidden:!!_&&(!_?.collection||_?.collection==="")},_?.collection||"Black Macrocannage Calfskin"),(!_||_?.link)&&d.createElement("button",{onClick:k,className:"pb-commondityDiroNew-btn"},(c=z?.enTitle)!==null&&c!==void 0?c:"Shop now"),d.createElement("div",{hidden:!!_&&(!_?.info||_?.info==="")},g?d.createElement(Tt,{onClick:()=>P(!0),className:"pb-commondityDiroNew-info",foldText:v?.foldText,unfoldText:v?.unfoldText,text:_?.info||`Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
|
6
|
-
Made in Italy`}):d.createElement("div",{className:"pb-commondityDiroNew-info"},_?.info||`Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
|
7
|
-
Made in Italy`)))),d.createElement(tt,{visible:w,onClose:()=>P(!1)},d.createElement("div",{className:"pb-commondityDiroNew-info",hidden:!!_&&(!_?.info||_?.info==="")},_?.info||`Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
|
8
|
-
Made in Italy`)))};var ri=d.memo(zo);const Bo=he(ri,{displayName:"\u5546\u54C1\u8BE6\u60C5",icon:"",category:"popup",type:"CommodityDetailDiroNew",defaulSetting:{props:{},style:{}},w:100,h:40,sort:1});var jo=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];function ai(t){const e=d.useRef(null),[i,n]=d.useState(!1);return d.useEffect(()=>{e.current=new IntersectionObserver(([o])=>{n(o.isIntersecting)})},[]),d.useEffect(()=>{var o;return t?.current&&((o=e?.current)===null||o===void 0||o.observe(t?.current)),()=>{var l;(l=e?.current)===null||l===void 0||l.disconnect()}},[t]),i}const $o=t=>{var{rec:e,children:i,className:n,onClick:o}=t;ve(t,["rec","children","className","onClick"]);const l=d.useRef(null),a=ai(l),{setPopupDetailData:r,ctaEvent:s}=Q();d.useEffect(()=>{var c,p;if(a&&l?.current){const f=(p=(c=e?.video)===null||c===void 0?void 0:c.bindProduct)!==null&&p!==void 0?p:e?.video;s?.({eventSubject:"ctaExposure",eventDescription:"The cta was shown to the user"},e,f)}},[a,l,e,s]);const u=de.throttle(()=>{var c,p;const f=(p=(c=e?.video)===null||c===void 0?void 0:c.bindProduct)!==null&&p!==void 0?p:e?.video;s?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},e,f),r?.(e),o?.()},1200);return d.createElement("div",{ref:l,className:n,onClick:u},i)};var We=d.memo($o),Go={"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};const Vo=t=>{var e,i,n,o,l,a,r,{content:s,style:u,bgImg:c,recData:p,bottom_image:f}=t,m=ve(t,["content","style","bgImg","recData","bottom_image"]);const{sxpParameter:b}=Q(),g=(e=p?.video)===null||e===void 0?void 0:e.bindProduct,E=(o=(n=(i=g?.homePage)===null||i===void 0?void 0:i[0])!==null&&n!==void 0?n:b?.bottom_image)!==null&&o!==void 0?o:f;return d.createElement(We,Object.assign({rec:p,className:U.css(Object.assign(Object.assign({},u),{maxWidth:"236px",width:"100%"}))},m),d.createElement("div",{className:U.css({width:"60px",height:"60px",marginRight:"8px",borderRadius:"3px",overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"})},d.createElement("img",{className:U.css({width:"100%",objectFit:"cover",height:"100%"}),src:E,hidden:!E,alt:""})),d.createElement("div",{className:U.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:Go["tow-line-ellipsis"]},(l=g?.title)!==null&&l!==void 0?l:"Product Name"),d.createElement("div",{className:U.css({background:"rgba(0,0,0,.5)",fontSize:"10px",padding:"2px 7px",width:"auto",textAlign:"center",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})},(r=(a=g?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&r!==void 0?r:"Shop Now")))};var Ho=d.memo(Vo);const Uo=he(Ho,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u900F\u660E\u5E95",icon:"",category:"template",type:"Commodity",related:{interactionRender:jo,bindableProps:[]},defaulSetting:{props:{},style:{padding:"7px",display:"flex",background:"rgba(0,0,0,.3)",borderRadius:"3px"}},w:100,h:40,sort:1});var Wo=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const Xo=t=>{var e,i,n,o,{content:l,style:a,bgImg:r,recData:s,bottom_image:u}=t,c=ve(t,["content","style","bgImg","recData","bottom_image"]);const{sxpParameter:p}=Q(),f=(e=s?.video)===null||e===void 0?void 0:e.bindCta;return d.createElement(We,Object.assign({rec:s,className:U.css(Object.assign(Object.assign({},a),{maxWidth:"236px",width:"100%"}))},c),d.createElement("div",{className:U.css({width:"30px",height:"30px",marginRight:"8px",borderRadius:"3px",overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"})},d.createElement("img",{className:U.css({width:"100%",objectFit:"cover",height:"100%"}),src:(n=(i=f?.icon)!==null&&i!==void 0?i:p?.bottom_image)!==null&&n!==void 0?n:u,alt:""})),d.createElement("div",{className:U.css({color:"#fff",width:"100%",overflow:"hidden",fontSize:"12px",textOverflow:"ellipsis"})},(o=f?.enTitle)!==null&&o!==void 0?o:"Product Name"))};var Yo=d.memo(Xo);const qo=he(Yo,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"template",type:"Appoint",related:{interactionRender:Wo,bindableProps:[]},defaulSetting:{props:{content:"\u6309\u94AE"},style:{padding:"7px",display:"flex",alignItems:"center",background:"rgba(0,0,0,.3)",borderRadius:"3px"}},w:100,h:40,sort:6});var Qo={"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU"};const Jo=t=>{var e,i,n,o,l,{content:a,style:r,bgImg:s,recData:u,bottom_image:c}=t,p=ve(t,["content","style","bgImg","recData","bottom_image"]);const{sxpParameter:f,bffEventReport:m}=Q(),{jumpToWeb:b}=Re(),g=(e=u?.video)===null||e===void 0?void 0:e.bindCta,E=(i=u?.video)===null||i===void 0?void 0:i.bindProduct,v=()=>{g?.link&&(b(u,E,g),window.location.href=window.getJointUtmLink(g.link))};return d.createElement(We,Object.assign({rec:u,className:U.css(Object.assign(Object.assign({},r),{maxWidth:"236px",width:"100%"}))},p,{onClick:v}),d.createElement("div",{className:U.css({width:"60px",height:"60px",marginRight:"8px",borderRadius:"3px",backgroundColor:"#f2f2f2",overflow:"hidden",flexShrink:0})},d.createElement("img",{className:U.css({width:"100%",objectFit:"cover",height:"100%"}),src:(o=(n=g?.icon)!==null&&n!==void 0?n:f?.bottom_image)!==null&&o!==void 0?o:c,alt:""})),d.createElement("div",{className:U.css({color:"#fff",display:"flex",alignItems:"center",width:"100%",overflow:"hidden"})},d.createElement("div",{className:Qo["tow-line-ellipsis"]},(l=g?.enTitle)!==null&&l!==void 0?l:"Product Name")))};var Ko=d.memo(Jo);const Zo=he(Ko,{displayName:"\u8DF3\u8F6C\u6307\u5F15",icon:"",category:"template",type:"Link",related:{bindableProps:[]},defaulSetting:{props:{content:"\u6309\u94AE"},style:{padding:"7px",display:"flex",background:"rgba(0,0,0,.3)",borderRadius:"3px"}},w:100,h:40,sort:5});var el=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],tl={"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};const il=t=>{var e,i,n,o,l,a,r,{content:s,style:u,bgImg:c,recData:p,bottom_image:f}=t,m=ve(t,["content","style","bgImg","recData","bottom_image"]);const{sxpParameter:b}=Q(),g=(e=p?.video)===null||e===void 0?void 0:e.bindProduct,E=(o=(n=(i=g?.homePage)===null||i===void 0?void 0:i[0])!==null&&n!==void 0?n:b?.bottom_image)!==null&&o!==void 0?o:f;return d.createElement(We,Object.assign({rec:p,className:U.css(Object.assign(Object.assign({},u),{maxWidth:"236px",width:"100%"}))},m),d.createElement("div",{className:U.css({width:"60px",height:"60px",marginRight:"8px",borderRadius:"3px",overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"})},d.createElement("img",{className:U.css({width:"100%",objectFit:"cover",height:"100%"}),src:E,hidden:!E,alt:""})),d.createElement("div",{className:U.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:tl["tow-line-ellipsis"]},(l=g?.title)!==null&&l!==void 0?l:"Product Name"),d.createElement("div",{className:U.css({background:"rgba(0,0,0,1)",fontSize:"10px",padding:"2px 7px",textAlign:"center",textOverflow:"ellipsis",overflow:"hidden",borderRadius:"25px",width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap"})},(r=(a=g?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&r!==void 0?r:"Shop Now")))};var nl=d.memo(il);const ol=he(nl,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u767D\u5E95\u5706\u89D2\u6309\u94AE",icon:"",category:"template",type:"CommodityDiro",related:{interactionRender:el,bindableProps:[]},defaulSetting:{props:{},style:{padding:"7px",display:"flex",borderRadius:"3px",background:"#fff"}},w:100,h:40,sort:2});var ll=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],sl={"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};const rl=t=>{var e,i,n,o,l,a,r,{content:s,style:u,bgImg:c,recData:p,bottom_image:f}=t,m=ve(t,["content","style","bgImg","recData","bottom_image"]);const{sxpParameter:b}=Q(),g=(e=p?.video)===null||e===void 0?void 0:e.bindProduct,E=(o=(n=(i=g?.homePage)===null||i===void 0?void 0:i[0])!==null&&n!==void 0?n:b?.bottom_image)!==null&&o!==void 0?o:f;return d.createElement(We,Object.assign({rec:p,className:U.css(Object.assign(Object.assign({},u),{maxWidth:"260px",width:"100%",padding:"4px",background:"rgba(255,255,255,0.75)"}))},m),d.createElement("div",{className:U.css({width:"78px",height:"78px",marginRight:"16px",borderRadius:"8px",overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"})},d.createElement("img",{className:U.css({width:"100%",objectFit:"cover",height:"100%"}),src:E,hidden:!E,alt:""})),d.createElement("div",{className:U.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",overflow:"hidden"})},d.createElement("div",{className:sl["tow-line-ellipsis"]},(l=g?.title)!==null&&l!==void 0?l:"Product Name"),d.createElement("div",{className:U.css({fontSize:"13px",fontWeight:"bold",textOverflow:"ellipsis",overflow:"hidden",width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",textDecoration:"underline",color:"#000",lineHeight:"20px"})},(r=(a=g?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&r!==void 0?r:"Shop now")))};var al=d.memo(rl);const dl=he(al,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u767D\u5E95\u4E0B\u5212\u7EBF\u6309\u94AE",icon:"",category:"template",type:"CommodityDiroNew",related:{interactionRender:ll,bindableProps:[]},defaulSetting:{props:{},style:{padding:"7px",display:"flex",borderRadius:"3px",background:"#fff"}},w:100,h:40,sort:2});var cl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const ul=({children:t})=>d.createElement(Ie,{direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Zi,Ki,Ji],style:{paddingRight:"20px"}},t);var it=d.memo(ul);const vl=({src:t,rec:e,item:i})=>{const n=d.useRef(null),o=ai(n),{ctaEvent:l}=Q();return d.useEffect(()=>{o&&t&&n?.current&&l?.({eventSubject:"ctaExposure",eventDescription:"The cta was shown to the user"},e,i)},[o,t,n,e,l,i]),d.createElement("img",{ref:n,hidden:!t,className:U.css({width:"100%",objectFit:"cover",height:"100%"}),src:t,alt:""})};var Ct=d.memo(vl),pl={"two-line-ellipsis":"index-module_two-line-ellipsis__SFQwJ"};const fl=t=>{var e,i,{content:n,style:o,bgImg:l,recData:a,onClick:r,bottom_image:s}=t,u=ve(t,["content","style","bgImg","recData","onClick","bottom_image"]);const{ctaEvent:c,setPopupDetailData:p,sxpParameter:f}=Q(),[m,b]=d.useState((i=(e=a?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),g=de.throttle(E=>{c?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},a,E),p?.(Object.assign(Object.assign({},a),{video:Object.assign(Object.assign({},a?.video),{bindProduct:E})})),r?.()},1200);return d.createElement(it,null,m?.map(E=>{var v,y,h,T,C,A;return d.createElement(ye,Object.assign({hidden:a&&!E?.bindCta,key:E?.itemId,className:U.css(Object.assign(Object.assign({},o),{maxWidth:"236px",width:"100%",flexShrink:0}))},u,{onClick:()=>g(E)}),d.createElement("div",{className:U.css({width:"60px",height:"60px",marginRight:"8px",borderRadius:"3px",overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"})},d.createElement(Ct,{src:(h=(y=(v=E?.homePage)===null||v===void 0?void 0:v[0])!==null&&y!==void 0?y:f?.bottom_image)!==null&&h!==void 0?h:s,rec:a,item:E})),d.createElement("div",{className:U.css({color:"#000",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:pl["two-line-ellipsis"]},(T=E?.title)!==null&&T!==void 0?T:"Product Name"),d.createElement("div",{className:U.css({background:"rgba(0,0,0,1)",fontSize:"10px",padding:"2px 7px",textAlign:"center",textOverflow:"ellipsis",overflow:"hidden",borderRadius:"25px",width:"fit-content",maxWidth:"100%",color:"#fff",whiteSpace:"nowrap"})},(A=(C=E?.bindCta)===null||C===void 0?void 0:C.enTitle)!==null&&A!==void 0?A:"Shop Now")))}))};var ml=d.memo(fl);const hl=he(ml,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u767D\u5E95\u5706\u89D2\u6309\u94AE",icon:"",category:"template",type:"MultiCommodityDiro",related:{interactionRender:cl,bindableProps:[]},defaulSetting:{props:{},style:{padding:"7px",display:"flex",background:"#fff",borderRadius:"3px"}},w:100,h:40,sort:4});var gl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],bl={"two-line-ellipsis":"index-module_two-line-ellipsis__mdzn0"};const wl=t=>{var e,i,{content:n,style:o,bgImg:l,recData:a,onClick:r,bottom_image:s}=t,u=ve(t,["content","style","bgImg","recData","onClick","bottom_image"]);const{sxpParameter:c}=Q(),{ctaEvent:p,setPopupDetailData:f}=Q(),[m,b]=d.useState((i=(e=a?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),g=de.throttle(E=>{p?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},a,E),f?.(Object.assign(Object.assign({},a),{video:Object.assign(Object.assign({},a?.video),{bindProduct:E})})),r?.()},1200);return d.createElement(it,null,m?.map(E=>{var v,y,h,T,C,A;return d.createElement(ye,Object.assign({hidden:a&&!E?.bindCta,key:E.itemId,className:U.css(Object.assign(Object.assign({},o),{maxWidth:"236px",width:"100%",flexShrink:0}))},u,{onClick:()=>g(E)}),d.createElement("div",{className:U.css({width:"60px",height:"60px",marginRight:"8px",borderRadius:"3px",overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"})},d.createElement(Ct,{src:(h=(y=(v=E?.homePage)===null||v===void 0?void 0:v[0])!==null&&y!==void 0?y:c?.bottom_image)!==null&&h!==void 0?h:s,rec:a,item:E})),d.createElement("div",{className:U.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:bl["two-line-ellipsis"]},(T=E?.title)!==null&&T!==void 0?T:"Product Name"),d.createElement("div",{className:U.css({background:"rgba(0,0,0,.5)",fontSize:"10px",padding:"2px 7px",width:"auto",textAlign:"center",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})},(A=(C=E?.bindCta)===null||C===void 0?void 0:C.enTitle)!==null&&A!==void 0?A:"Shop Now")))}))};var yl=d.memo(wl);const Sl=he(yl,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u900F\u660E\u5E95",icon:"",category:"template",type:"MultiCommodity",related:{interactionRender:gl,bindableProps:[]},defaulSetting:{props:{},style:{padding:"7px",display:"flex",background:"rgba(0,0,0,.3)",borderRadius:"3px"}},w:100,h:40,sort:3});var El=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],xl={"tow-line-ellipsis":"index-module_tow-line-ellipsis__fselR"};const Tl=t=>{var e,i,{content:n,style:o,bgImg:l,recData:a,onClick:r,bottom_image:s}=t,u=ve(t,["content","style","bgImg","recData","onClick","bottom_image"]);const{ctaEvent:c,setPopupDetailData:p,sxpParameter:f}=Q(),[m,b]=d.useState((i=(e=a?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),g=de.throttle(E=>{c?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},a,E),p?.(Object.assign(Object.assign({},a),{video:Object.assign(Object.assign({},a?.video),{bindProduct:E})})),r?.()},1200);return d.createElement(it,null,m?.map(E=>{var v,y,h,T,C,A;return d.createElement(ye,Object.assign({hidden:a&&!E?.bindCta,key:E?.itemId,className:U.css(Object.assign(Object.assign({},o),{maxWidth:"260px",width:"100%",flexShrink:0,padding:"4px",background:"rgba(255,255,255,0.75)"}))},u,{onClick:()=>g(E)}),d.createElement("div",{className:U.css({width:"78px",height:"78px",marginRight:"16px",borderRadius:"8px",overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"})},d.createElement(Ct,{src:(h=(y=(v=E?.homePage)===null||v===void 0?void 0:v[0])!==null&&y!==void 0?y:f?.bottom_image)!==null&&h!==void 0?h:s,rec:a,item:E})),d.createElement("div",{className:U.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",overflow:"hidden",lineHeight:"20px"})},d.createElement("div",{className:xl["tow-line-ellipsis"]},(T=E?.title)!==null&&T!==void 0?T:"Product Name"),d.createElement("div",{className:U.css({fontSize:"13px",fontWeight:"bold",textOverflow:"ellipsis",overflow:"hidden",width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",textDecoration:"underline",color:"#000"})},(A=(C=E?.bindCta)===null||C===void 0?void 0:C.enTitle)!==null&&A!==void 0?A:"Shop now")))}))};var Cl=d.memo(Tl);const _l=he(Cl,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u767D\u5E95\u4E0B\u5212\u7EBF\u6309\u94AE",icon:"",category:"template",type:"MultiCommodityDiroNew",related:{interactionRender:El,bindableProps:[]},defaulSetting:{props:{},style:{padding:"7px",display:"flex",background:"#fff",borderRadius:"3px"}},w:100,h:40,sort:4});var di=Object.freeze({__proto__:null,Appoint:qo,AppointForm:Gi,Commodity:Uo,CommodityDetail:xo,CommodityDetailDiro:Lo,CommodityDetailDiroNew:Bo,CommodityDiro:ol,CommodityDiroNew:dl,Link:Zo,MultiCommodity:Sl,MultiCommodityDiro:hl,MultiCommodityDiroNew:_l,Prompt:Po});const Il="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",Al="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Pl=t=>{var{active:e,activeIcon:i,unActicveIcon:n,recData:o}=t,l=ve(t,["active","activeIcon","unActicveIcon","recData"]);const{mutateLike:a,mutateUnlike:r,bffEventReport:s}=Q(),[u,c]=d.useState(e),p=ke(Al),f=ke(Il),m=de.debounce(()=>me(void 0,void 0,void 0,function*(){var b,g,E,v,y,h,T,C,A,L,x,I,S,D,w,P,M,O,_,z;if(u){c(!1);const k=(E=yield r?.({videoItemId:(g=(b=o.video)===null||b===void 0?void 0:b.itemId)!==null&&g!==void 0?g:""}))!==null&&E!==void 0?E:!1;s?.({eventInfo:{eventSubject:"favoriteContentCanceled",eventDescription:"This content was unfavorite by the user",contentId:(y=(v=o.video)===null||v===void 0?void 0:v.itemId)!==null&&y!==void 0?y:"",contentName:(T=(h=o.video)===null||h===void 0?void 0:h.title)!==null&&T!==void 0?T:"",contentTags:JSON.stringify((A=(C=o.video)===null||C===void 0?void 0:C.tags)!==null&&A!==void 0?A:[]),position:o.position,contentFormat:!((L=o.video)===null||L===void 0)&&L.url?"video":"image",traceInfo:(x=o.video)===null||x===void 0?void 0:x.traceInfo}}),k||c(!0)}else{c(!0);const k=(I=yield a?.({content:JSON.stringify(o)}))!==null&&I!==void 0?I:!1;s?.({eventInfo:{eventSubject:"favoriteContent",eventDescription:"This content was favorite by the user",contentId:(D=(S=o.video)===null||S===void 0?void 0:S.itemId)!==null&&D!==void 0?D:"",contentName:(P=(w=o.video)===null||w===void 0?void 0:w.title)!==null&&P!==void 0?P:"",contentTags:JSON.stringify((O=(M=o.video)===null||M===void 0?void 0:M.tags)!==null&&O!==void 0?O:[]),position:o.position,contentFormat:!((_=o.video)===null||_===void 0)&&_.url?"video":"image",traceInfo:(z=o.video)===null||z===void 0?void 0:z.traceInfo}}),k||c(!1)}}),200);return d.createElement("button",Object.assign({},l,{onClick:m}),d.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:u?i||p:n||f,alt:"icon"}))};var Dl=d.memo(Pl);const je=new wi;var Ae;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide"})(Ae||(Ae={}));const Ml=({rec:t,index:e,height:i,data:n,muted:o,activeIndex:l})=>{const[a,r]=d.useState(!1),s=d.useRef(null),{bffEventReport:u,sxpParameter:c,waterFallData:p,openHashtag:f}=Q(),m=d.useRef(0),[b,g]=d.useState(!1),{isActive:E}=li();d.useEffect(()=>{s.current&&(s.current.muted=o)},[o]);const v=d.useCallback(()=>{var x;(x=s.current)===null||x===void 0||x.play()},[]),y=ke("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),h=d.useCallback(()=>{var x,I,S,D,w,P,M,O,_,z,k,F,G;r(!1);const H=n[e];if(H&&b&&(!((x=s?.current)===null||x===void 0)&&x.duration)){m.current=((I=s?.current)===null||I===void 0?void 0:I.currentTime)||0;const Y=((D=(S=s.current)===null||S===void 0?void 0:S.duration)!==null&&D!==void 0?D:0).toFixed(2),R=((P=(w=s.current)===null||w===void 0?void 0:w.currentTime)!==null&&P!==void 0?P:0).toFixed(2);u?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(O=(M=H.video)===null||M===void 0?void 0:M.itemId)!==null&&O!==void 0?O:"",contentName:(z=(_=H.video)===null||_===void 0?void 0:_.title)!==null&&z!==void 0?z:"",playType:"1",startTime:R,videoDuration:Y,contentTags:JSON.stringify((F=(k=H.video)===null||k===void 0?void 0:k.tags)!==null&&F!==void 0?F:[]),position:H.position,contentFormat:"video",traceInfo:(G=H.video)===null||G===void 0?void 0:G.traceInfo}})}b||g(!0)},[u,n,e,b]),T=d.useCallback(()=>{var x,I,S,D,w,P,M,O,_,z,k,F,G;const H=n[e];if(H&&!b&&(!((x=s?.current)===null||x===void 0)&&x.duration)){m.current=((I=s?.current)===null||I===void 0?void 0:I.currentTime)||0;const Y=((D=(S=s.current)===null||S===void 0?void 0:S.duration)!==null&&D!==void 0?D:0).toFixed(2),R=((P=(w=s.current)===null||w===void 0?void 0:w.currentTime)!==null&&P!==void 0?P:0).toFixed(2);u?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(O=(M=H.video)===null||M===void 0?void 0:M.itemId)!==null&&O!==void 0?O:"",contentName:(z=(_=H.video)===null||_===void 0?void 0:_.title)!==null&&z!==void 0?z:"",playType:"0",startTime:R,videoDuration:Y,contentTags:JSON.stringify((F=(k=H.video)===null||k===void 0?void 0:k.tags)!==null&&F!==void 0?F:[]),position:H.position,contentFormat:"video",traceInfo:(G=H.video)===null||G===void 0?void 0:G.traceInfo}})}setTimeout(()=>{var Y;(Y=s.current)===null||Y===void 0||Y.play()},0)},[e,u,n,b]),C=d.useCallback(x=>()=>{var I,S,D,w,P,M,O,_,z;if(!b)return;n[e],((S=(I=s.current)===null||I===void 0?void 0:I.duration)!==null&&S!==void 0?S:0).toFixed(2),((w=(D=s.current)===null||D===void 0?void 0:D.currentTime)!==null&&w!==void 0?w:0).toFixed(2);const k=(P=s.current)===null||P===void 0?void 0:P.paused;switch(x){case"start":if(!k)return;(M=s.current)===null||M===void 0||M.play(),r(!1);break;case"pause":if(k)return;(O=s.current)===null||O===void 0||O.pause(),r(!0);break;default:k?(_=s.current)===null||_===void 0||_.play():(z=s.current)===null||z===void 0||z.pause(),r(!k);break}},[n,e,b]),A=d.useCallback(()=>{var x,I,S,D,w,P,M,O,_,z,k,F,G;const H=n[e],Y=((I=(x=s.current)===null||x===void 0?void 0:x.duration)!==null&&I!==void 0?I:0).toFixed(2),R=((D=(S=s.current)===null||S===void 0?void 0:S.currentTime)!==null&&D!==void 0?D:0).toFixed(2);if(!((w=s?.current)===null||w===void 0)&&w.duration){const ie=(((P=s?.current)===null||P===void 0?void 0:P.currentTime)-m.current).toFixed(2);u?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(O=(M=H.video)===null||M===void 0?void 0:M.itemId)!==null&&O!==void 0?O:"",contentName:(z=(_=H.video)===null||_===void 0?void 0:_.title)!==null&&z!==void 0?z:"",endTime:R,videoDuration:Y,playDuration:ie,contentTags:JSON.stringify((F=(k=H.video)===null||k===void 0?void 0:k.tags)!==null&&F!==void 0?F:[]),position:H.position,contentFormat:"video",traceInfo:(G=H.video)===null||G===void 0?void 0:G.traceInfo}})}},[n,e,u]);d.useEffect(()=>{var x,I,S;if(!(n.length<=0)&&s.current){if(r(!1),!E){(x=s.current)===null||x===void 0||x.pause();return}if(s.current.src)s.current.play();else{const D=t.video.url;s.current.src=D,s.current.setAttribute("x5-playsinline","true"),s.current.setAttribute("webkit-playsinline","true")}return(I=s.current)===null||I===void 0||I.addEventListener("canplay",T),(S=s.current)===null||S===void 0||S.addEventListener("playing",h),()=>{var D,w;(D=s.current)===null||D===void 0||D.removeEventListener("canplay",T),(w=s.current)===null||w===void 0||w.removeEventListener("playing",h)}}},[n,T,h,E,b,t.video]),d.useEffect(()=>{var x,I,S;const D=(x=s.current)===null||x===void 0?void 0:x.paused;E&&(!D&&f?(I=s.current)===null||I===void 0||I.pause():f||(S=s.current)===null||S===void 0||S.play())},[f,E]),d.useEffect(()=>{if(!E)return;const x=C("start"),I=C("pause");return je.on(Ae.PAGE_DID_SHOW,x),je.on(Ae.PAGE_DID_HIDE,I),()=>{je.off(Ae.PAGE_DID_SHOW,x),je.off(Ae.PAGE_DID_HIDE,I)}},[C,E]);const L=d.useMemo(()=>c?.placeholder_image?d.createElement("img",{hidden:b,style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:c?.placeholder_image}):null,[b,c?.placeholder_image]);return d.useEffect(()=>{const x=()=>{var I,S;l===e&&(!((I=t?.video)===null||I===void 0)&&I.url)&&(!((S=s?.current)===null||S===void 0)&&S.src)&&!a&&C("pause")()};return window.addEventListener("beforeunload",x),()=>{window.removeEventListener("beforeunload",x)}},[l,e,t,s,C,a]),t.video?d.createElement("div",{className:"video-container",key:t.video.itemId,onClick:C(),style:{position:"relative",width:"100%",height:i}},d.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",ref:s,poster:c?.placeholder_image,muted:!0,controls:!1,playsInline:!0,preload:"auto",onPause:A,onEnded:v}),L,d.createElement("img",{hidden:!a,className:"clc-pb-video-pause",src:y})):null};var Ol=d.memo(Ml);const Ll=({defaultValue:t,activeIcon:e,unactiveIcon:i,onChange:n,style:o})=>{const[l,a]=d.useState(t),r=s=>{s.stopPropagation();const u=!l;a(u),n?.(u)};return d.createElement("button",{style:o,className:"pb-toggle-button",onClick:r},d.createElement("img",{className:"pb-toggle-button-icon",src:l?e:i}))};var kl=d.memo(Ll);const Nl=({imageUrl:t})=>{const[e,i]=d.useState(!0);Le(),d.useEffect(()=>{setTimeout(()=>{i(!1)},2e3)},[]);const n=ke("/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png"),o=d.useMemo(()=>e?"pb-fadeIn":"pb-fadeOut",[e]);return d.createElement("div",{hidden:!e,className:`pb-finger-wrap ${o}`},d.createElement("img",{src:t||n}))},Rl=t=>{const{src:e,height:i,width:n}=t,o=d.useRef(null),{sxpParameter:l}=Q();return d.createElement("div",{style:{overflow:"hidden",height:i,width:"100%",position:"relative"}},d.createElement("img",{ref:o,loading:"lazy",src:e??l?.placeholder_image,style:{height:"100%",width:"100%",objectFit:"cover"}}))},Fl=({imgUrls:t,width:e,height:i,rec:n,index:o,onReportViewImageEnd:l,onViewImageStartEvent:a})=>{const{isActive:r}=li(),{sxpParameter:s,openHashtag:u}=Q();return d.useEffect(()=>{r&&(u?l(n):a(o))},[n,r,l,u,o,a]),r?d.createElement(Ie,{defaultValue:0,direction:"horizontal",modules:[Ve,He],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet"},height:i,loop:!0,autoplay:{delay:3e3}},t?.map(c=>d.createElement(ye,{key:c},d.createElement(Rl,{src:c,width:e,height:i})))):d.createElement("img",{src:s?.placeholder_image,style:{width:e,height:i,objectFit:"cover"}})};var zl=d.memo(Fl);const Bl=({data:t,height:e,width:i,viewTime:n,tipText:o})=>{var l,a;const r=t?.product,s=(l=t?.product)===null||l===void 0?void 0:l.bindCta,[u,c]=d.useState(!1),{jumpToWeb:p}=Re(),f=d.useMemo(()=>{var b,g,E,v,y;return r?.currency&&r?.price?`${(E=(g=(b=r?.currency)===null||b===void 0?void 0:b.split("-")[1])===null||g===void 0?void 0:g.toUpperCase())!==null&&E!==void 0?E:""}${(y=(v=r?.price)===null||v===void 0?void 0:v.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&y!==void 0?y:""}`:"$7,000"},[r?.price,r?.currency]),m=b=>{b&&(p(t,r,s),window.location.href=window.getJointUtmLink(b))};return d.createElement("div",{style:{height:e,width:"100%"}},d.createElement(Ie,{height:e*.5,modules:[Ve,He],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet"},loop:!0,autoplay:{delay:3e3}},(a=r?.homePage)===null||a===void 0?void 0:a.map(b=>d.createElement(ye,{key:b},d.createElement("div",{style:{overflow:"hidden",width:i,height:e*.5}},d.createElement("img",{src:b,style:{height:"100%",width:"100%",objectFit:"cover"}}))))),d.createElement("div",{className:"product-info"},d.createElement("div",{className:"collection"},r?.collection),d.createElement("div",{className:"title"},r?.title),d.createElement("div",{className:"price"},f),d.createElement(Tt,{foldText:o?.foldText,unfoldText:o?.unfoldText,onClick:()=>c(!0),className:"info",text:r?.info||"",maxStr:79}),d.createElement("a",{target:"_blank",className:"pb-modal-btn",onClick:()=>m(r?.link)},s?.enTitle)),d.createElement(tt,{visible:u,onClose:()=>c(!1)},d.createElement("div",{className:"modal-collection"},r?.collection),d.createElement("div",{className:"modal-title"},r?.title),d.createElement("div",{className:"modal-price"},f),d.createElement("div",{className:"modal-info"},r?.info),r?.link&&d.createElement("a",{target:"_blank",className:"pb-modal-btn",onClick:()=>m(r?.link)},s?.enTitle)))};var ci=d.memo(Bl);const jl=({tags:t,itemId:e,itemType:i,index:n,rec:o})=>{const[l,a]=d.useState(!1),{setWaterFallData:r,setOpenHashtag:s,setCacheRtcList:u,setCacheActiveIndex:c,waterFallData:p,setIsFromHashtag:f}=Q(),m=b=>{p?f?.(!0):c?.(n),r?.(i?{hashTag:b,itemId:e,itemType:i,rec:o}:{hashTag:b,rec:o}),s?.(!0)};return d.useMemo(()=>t.length<=6?null:d.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>a(!l)},l?"show less":"show more"),[l,t]),d.createElement("div",{className:"clc-sxp-bottom-hashtag"},d.createElement(it,null,t?.map((b,g)=>d.createElement(ye,{key:g,hidden:l?!1:g>=6,className:"clc-sxp-bottom-hashtag-item",onClick:()=>m(b)},`#${b}`))))};var $l=d.memo(jl);const Gl=({icon:t,styles:e,onClose:i})=>{const{waterFallData:n,setOpenHashtag:o}=Q();return d.createElement("div",{className:"clc-sxp-nav",style:e},d.createElement("img",{className:"clc-sxp-nav-left",src:t,alt:"",onClick:i}),d.createElement("div",{className:"clc-sxp-nav-title"},`#${n?.hashTag}`))};var ui=d.memo(Gl),Vl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAbtJREFUeF7t2DFKxFAQxvHv6xTxCoKNiAuCna2X2NY7eAE9hYdwj2BjZ2ulYLW9pQcYDWyxBIK7ZN7MNyapk/D+v8zC20dM/OLE+zEDzBMwcYH5J1BpAMzsAMAJyU+vdZeZADN7AHAH4BjAC8kbD4QSAJv4+17wFcm3sQjyAGbWhXdff/takzwdG989Lw0wEN+te0ly9a8BIuJlJyAqXhIgMl4OIDpeCiAjXgYgK14CIDM+HSA7PhVgYHvrusnZZaOUshNUiU+ZAKX4cAC1+FAAxfgwANX4EADl+OYA6vFNASrENwOoEt8EoFK8O0C1eFcAMzsE8AXgqLcHdzvA3GVvv+89bv8FzOwcwEdvASuSy30XFXm/G0C3aDN7BXBdCcEb4ALAE4BFFQRXgM0UlEJwB6iG0ASgEkIzgCoITQEqIDQHUEcIAVBGCANQRQgFUEQIB1BDSAFQQkgDUEFIBVBASAfIRpAAyESQAchCkALIQJADiEaQBIhEkAWIQpAG+ANh8Xvk/j72CF0eYABhDeCS5PckALYQbgGcAXgm+Tg2vnu+xAR4hA69YwZoqVvh3fMEVPhKLdc4+Qn4AXwYBFBN2dYpAAAAAElFTkSuQmCC";function vi(t){return d.memo(function(e){const{$store:i}=Ai(),n=l=>{let a=l;const r=l.match(/{{.*?}}/g);return r?.length&&r.forEach(s=>{s.replace(/{{\s*([\w.]+)\s*}}/g,(u,c)=>{if(c){const p=de.get(i,c);return a=a.replace(s,p),p}})}),a},o=d.useMemo(()=>{var l,a,r;const{bindDatas:s}=e,u=ve(e,["bindDatas"]);if((l=s?.forEach)===null||l===void 0||l.call(s,c=>{if(c?.propKey&&c?.dataPath){const{propKey:p,dataPath:f}=c;f.replace(/{{\s*([\w.]+)\s*}}/g,(m,b)=>{var g,E;if(b){const v=(E=(g=de.get(i,b))!==null&&g!==void 0?g:e[p])!==null&&E!==void 0?E:"";return u[p]=v,v}})}}),u){u.eventMap={};const c=de.cloneDeep(u.event)||{};for(const p in c)if(Object.prototype.hasOwnProperty.call(c,p))try{c[p].value=n(c[p].value),u.eventMap[p]=new Function(c[p].value)}catch{}}return!((r=(a=u?.event)===null||a===void 0?void 0:a.onClick)===null||r===void 0)&&r.linkType&&(u.style.cursor="pointer"),u},[i,e]);return d.createElement(t,Object.assign({},o,o.eventMap))})}const Hl=({rec:t,index:e,tempMap:i,resolver:n})=>{const{schema:o}=Le(),l=d.useMemo(()=>{var a,r,s,u,c,p,f,m,b,g,E,v,y,h,T,C,A,L,x,I,S,D,w,P,M,O,_;if(!t?.video)return null;let z=null;!((r=(a=t?.video)===null||a===void 0?void 0:a.bindProducts)===null||r===void 0)&&r.length?z="\u591A\u5546\u54C1CTA":!((s=t?.video)===null||s===void 0)&&s.bindProduct?z="\u5546\u54C1CTA":z=(c=(u=t?.video)===null||u===void 0?void 0:u.bindCta)===null||c===void 0?void 0:c.itemId;const k=i?.[z];if(((p=k?.item)===null||p===void 0?void 0:p.type)==="CommodityDiro"&&!(!((f=t?.video)===null||f===void 0)&&f.bindProduct)||((m=k?.item)===null||m===void 0?void 0:m.type)==="Commodity"&&!(!((b=t?.video)===null||b===void 0)&&b.bindProduct)||((g=k?.item)===null||g===void 0?void 0:g.type)==="CommodityDiroNew"&&!(!((E=t?.video)===null||E===void 0)&&E.bindProduct)||((v=k?.item)===null||v===void 0?void 0:v.type)==="MultiCommodity"&&!(!((h=(y=t?.video)===null||y===void 0?void 0:y.bindProducts)===null||h===void 0)&&h.length)||((T=k?.item)===null||T===void 0?void 0:T.type)==="MultiCommodityDiro"&&!(!((A=(C=t?.video)===null||C===void 0?void 0:C.bindProducts)===null||A===void 0)&&A.length)||((L=k?.item)===null||L===void 0?void 0:L.type)==="MultiCommodityDiroNew"&&!(!((I=(x=t?.video)===null||x===void 0?void 0:x.bindProducts)===null||I===void 0)&&I.length))return null;if(k&&n){const F=vi(n[(S=k?.item)===null||S===void 0?void 0:S.type]);return d.createElement(F,Object.assign({style:Object.assign(Object.assign({},(D=k?.item)===null||D===void 0?void 0:D.style),{zIndex:50,marginLeft:"20px"}),textStyle:(w=k?.item)===null||w===void 0?void 0:w.textStyle,bindDatas:(M=(P=k?.item)===null||P===void 0?void 0:P.bindDatas)!==null&&M!==void 0?M:[]},(O=k?.item)===null||O===void 0?void 0:O.props,{event:((_=k?.item)===null||_===void 0?void 0:_.event)||{},schema:o,id:k?.id,key:k?.id,recData:t}))}else return null},[t,n,i,o]);return d.createElement(d.Fragment,null,l)};var Ul=d.memo(Hl);const Wl=t=>{const{rec:e,index:i,list:n,reportTagsView:o}=t,{swiperRef:l,setRtcList:a,setOpenHashtag:r,bffEventReport:s,sxpParameter:u}=Q(),[c,p]=d.useState(!1),f=d.useRef(null),m=d.useRef(null),b=d.useRef(null),[g,E]=d.useState(""),v=d.useMemo(()=>{var A,L,x,I,S,D,w,P,M,O,_,z;return!((A=e?.video)===null||A===void 0)&&A.cover?(L=e?.video)===null||L===void 0?void 0:L.cover:!((x=e?.video)===null||x===void 0)&&x.url?(p(!0),(I=e?.video)===null||I===void 0?void 0:I.url):!((D=(S=e?.video)===null||S===void 0?void 0:S.imgUrls)===null||D===void 0)&&D.length?(P=(w=e?.video)===null||w===void 0?void 0:w.imgUrls)===null||P===void 0?void 0:P[0]:!((O=(M=e?.product)===null||M===void 0?void 0:M.homePage)===null||O===void 0)&&O.length?(z=(_=e?.product)===null||_===void 0?void 0:_.homePage)===null||z===void 0?void 0:z[0]:u?.bottom_image||""},[e,u?.bottom_image]),y=d.useMemo(()=>{var A,L;return((A=e?.product)===null||A===void 0?void 0:A.title)||((L=e?.video)===null||L===void 0?void 0:L.title)||null},[e]),h=d.useMemo(()=>{var A,L,x,I,S,D,w,P,M;return!((A=e?.product)===null||A===void 0)&&A.currency&&(!((L=e?.product)===null||L===void 0)&&L.price)?`${(D=(S=(I=(x=e?.product)===null||x===void 0?void 0:x.currency)===null||I===void 0?void 0:I.split("-")[1])===null||S===void 0?void 0:S.toUpperCase())!==null&&D!==void 0?D:""}${(M=(P=(w=e?.product)===null||w===void 0?void 0:w.price)===null||P===void 0?void 0:P.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&M!==void 0?M:""}`:null},[e]);d.useEffect(()=>{const A=new IntersectionObserver(L=>{L.forEach(x=>{if(x.isIntersecting){if(f.current===null||v==="")return;c&&g?f.current.src=g:f.current.src=v,A.unobserve(f.current)}})});return A.observe(f.current),()=>{A.disconnect()}},[v,c,g]);const T=(A,L,x)=>{const I=A/L;return x/I};d.useEffect(()=>{const A=m?.current;A===null||v===""||!c||(A.src=v,A.currentTime=1,A.crossOrigin="anonymous",A.onloadeddata=()=>{const L=b?.current;if(!L)return;const x=L.getContext("2d"),I=window?.innerWidth/2,S=T(A.videoWidth,A.videoHeight,I);L.height=S,L.width=I,x?.drawImage(A,0,0,L.width,L.height),E(L.toDataURL()),A.remove(),L.remove()})},[v,c]);const C=()=>{o(),a?.(n),setTimeout(()=>{var A;(A=l?.current)===null||A===void 0||A.swiper.slideTo(i,0,!1),r?.(!1)},0)};return d.createElement("div",{className:"list-content-listItem",key:i,onClick:C},d.createElement("div",{className:"list-content-listItem-picture"},c&&d.createElement("div",{style:{display:"none"}},d.createElement("video",{ref:m,crossOrigin:"anonymous",className:"list-content-listItem-picture-img"}),d.createElement("canvas",{ref:b})),d.createElement("img",{className:"list-content-listItem-picture-img",loading:"lazy",ref:f})),d.createElement("div",{className:"list-content-listItem-info"},d.createElement("div",{className:`list-content-listItem-info-title ${h?"list-content-listItem-info-nowrap":""}`},y&&y),d.createElement("div",{className:"list-content-listItem-info-price",hidden:!h},h)))};function Xl({reportTagsView:t}){var e,i,n,o,l,a;const{waterFallData:r,getRecommendVideos:s,hashTagSize:u,loadingImage:c}=Q(),[p,f]=d.useState(),[m,b]=d.useState(),[g,E]=d.useState(!1),v=d.useRef(null),[y,h]=d.useState(!1);d.useCallback(()=>{y||(h(!0),r&&s?.({hashTag:r?.hashTag,"itemFilter.itemId":r?.itemId,"itemFilter.itemType":r?.itemType}).then(C=>{var A;f(p?.concat((A=C?.recList)!==null&&A!==void 0?A:[])),h(!1)}))},[r,s,p,y]),d.useEffect(()=>{E(!0),r&&s?.({hashTag:r?.hashTag,"itemFilter.itemId":r?.itemId,"itemFilter.itemType":r?.itemType,defaultSize:u}).then(C=>{var A,L;b(C),f((L=(A=C?.recList)===null||A===void 0?void 0:A.filter(x=>x?.video!==null||x?.product!==null))!==null&&L!==void 0?L:[]),E(!1)})},[r,s,u]);const T=()=>{var C,A;!((C=m?.tag)===null||C===void 0)&&C.link&&(t(),window.location.href=(A=m?.tag)===null||A===void 0?void 0:A.link)};return d.createElement(d.Fragment,null,g?d.createElement("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},d.createElement("img",{width:64,height:64,src:c,alt:"loading...",style:{objectFit:"contain"}})):d.createElement("div",{className:"list"},d.createElement("div",{className:"list-scroll",ref:v,style:{bottom:!((e=m?.tag)===null||e===void 0)&&e.link?"100px":0}},d.createElement("div",{className:"list-info"},(i=m?.tag)===null||i===void 0?void 0:i.info),d.createElement("div",{hidden:!(!((n=m?.tag)===null||n===void 0)&&n.link),className:"list-collection",onClick:T},((o=m?.tag)===null||o===void 0?void 0:o.linkTitle)||"Shop the collection"),d.createElement("div",{className:"list-content"},p?.map((C,A)=>d.createElement(Wl,{key:A,index:A,rec:C,list:p,reportTagsView:t}))),d.createElement("div",{hidden:!y,style:{textAlign:"center"}},"loading...")),d.createElement("div",{className:"list-bottom",hidden:!(!((l=m?.tag)===null||l===void 0)&&l.link)},d.createElement("button",{className:"list-bottom-btn",onClick:T},((a=m?.tag)===null||a===void 0?void 0:a.linkTitle)||"Shop the collection"))))}var Yl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAaZJREFUeF7t2jFKBEEQRuG3mSJeQTARURDMTL2EqXfwAnoKD6FHMDEzNVIw2tzQC2gFggyDrExX1V92T7wz9PumFnqbXdH5teq8nwEwJqBzgfEVKDYAW8Ae8NZq3ZUm4Aa4AnaBR+C8BUIVAIu/ngSfAs9LESoAWLgB/LzWwP7SeLtfHWAu3tZ9Adz/dwD3eOUJCIlXBQiLVwQIjVcDCI9XAkiJVwFIi1cASI3PBpjb3jbd5GyyUcraCUrEZ02ATHwGgFR8NIBcfCSAZHwUgGx8BIB0vDeAfLwnQIl4L4Ay8R4ApeJbA2wD78DOZA/e7ABzk739Xz/T8rfAIfA6WYCd3BqA7NUSwCKfgLNKCK0BjoC7rzP74yoIrQGsuxSCB0ApBC+AMgieACUQvAHkESIApBGiAGQRIgEkEaIB5BAyAKQQsgBkEDIBJBCyAdIRFABSEVQA0hCUAFIQ1ADCERQBQhFUAcIQlAFCENQBfkOwg9eXpeftFQDmEOzv8ifARy8A3wiXwAHwANwujbf7q0xAi9bZZwwAN9oiDx4TUORFuS2z+wn4BAiAaEHnKChjAAAAAElFTkSuQmCC";const ql=()=>{const{waterFallData:t,setOpenHashtag:e,openHashtag:i,swiperRef:n,setWaterFallData:o,cacheRtcList:l,setRtcList:a,cacheActiveIndex:r,rtcList:s,setCacheRtcList:u,setIsFromHashtag:c,isFromHashtag:p,bffEventReport:f}=Q();d.useRef(null);const m=d.useRef(null),[b,g]=d.useState();d.useEffect(()=>{const T=document.getElementById("sxp-render"),C=document.getElementById("water-fall");C?m.current=C:(m.current=document.createElement("div"),m.current.setAttribute("id","water-fall"),T?.appendChild(m.current))},[]);const E=()=>{const T=de.isEqual(s,l);!T&&l&&l?.length&&a?.(l),h(),o?.(void 0),c?.(!1),setTimeout(()=>{var C,A;T||(A=(C=n?.current)===null||C===void 0?void 0:C.swiper)===null||A===void 0||A.slideTo(r,0,!1),e?.(!1)},0)},[v,y]=d.useState();d.useEffect(()=>{t&&y(t)},[t]);const h=d.useCallback(()=>{var T,C,A,L,x,I;const S=v?.rec;if(!S)return;let D="";p?D="hashTagPage":!((T=S?.video)===null||T===void 0)&&T.url?D="videoPage":!((A=(C=S?.video)===null||C===void 0?void 0:C.imgUrls)===null||A===void 0)&&A.length&&(D="imagePage"),f?.({eventInfo:{relatedContentId:(L=S?.video)===null||L===void 0?void 0:L.itemId,position:S?.position,contentTags:JSON.stringify((x=S?.video)===null||x===void 0?void 0:x.tags),traceInfo:JSON.stringify((I=S?.video)===null||I===void 0?void 0:I.traceInfo),hashTags:JSON.stringify([v?.hashTag]),fromKName:D,fromKPage:location?.href,timeOnSite:Math.floor((new Date-b)/1e3)+"",eventSubject:"clickTagsViewContents",eventDescription:"User click tags view contents"}})},[v,f,b,p]);return d.useEffect(()=>{i&&g(new Date)},[i]),d.useEffect(()=>{const T=()=>{g(new Date)};return window.addEventListener("pageshow",T),()=>{window.removeEventListener("pageshow",T)}},[]),m.current?At.createPortal(d.createElement("div",{className:"waterfall",style:{display:i?"block":"none"}},d.createElement(ui,{icon:Yl,styles:{top:"32px"},onClose:E}),d.createElement(Xl,{reportTagsView:h})),m.current):null};var Ql=d.memo(ql);const pi=({globalConfig:t,descStyle:e,containerHeight:i=window.innerHeight,containerWidth:n=window.innerWidth,tempMap:o,resolver:l,data:a=[],ctaType:r,tipText:s,_schema:u})=>{var c,p,f,m;Le();const[b,g]=d.useState(0),E=d.useRef(0),[v,y]=d.useState(!1),[h,T]=d.useState(!0),C=d.useRef(),A=d.useRef(),[L,x]=d.useState(!1),{loadVideos:I,bffEventReport:S,loading:D,setPopupDetailData:w,ctaEvent:P,swiperRef:M,waterFallData:O,setOpenHashtag:_,appDomain:z,openHashtag:k,loadingImage:F,isFromHashtag:G,popupDetailData:H}=Q(),{productView:Y}=Re(),R=d.useMemo(()=>a.length>0&&!D,[a,D]),ie=d.useCallback(()=>{if(a.length<=0)return;j();const N=location.search.slice(1),V=It.parse(N.replace(/\+/g,"%2B"));for(const W in V)V[W]=V[W].replace(/%2B/g,"+");const $=W=>{var Z;return(Z=V[W])!==null&&Z!==void 0?Z:""};S?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:$("utm_source"),utmMedium:$("utm_medium"),utmCampaign:$("utm_campaign"),utmId:$("utm_id"),utmContent:$("utm_content"),enterTime:`${Date.now()}`,requestId:null}}),y(!0)},[S,a.length]),j=()=>{C.current=new Date,A.current=new Date,Di()};d.useEffect(()=>{v||ie()},[ie,v]),d.useEffect(()=>{var N;const V=a?.findIndex($=>{var W,Z,ee,te,J,oe,ue,De,Me;return r==="\u591A\u5546\u54C1CTA"?((W=$?.video)===null||W===void 0?void 0:W.bindProducts)&&((ee=(Z=$?.video)===null||Z===void 0?void 0:Z.bindProducts)===null||ee===void 0?void 0:ee.length)>0:r==="\u5546\u54C1CTA"?(te=$?.video)===null||te===void 0?void 0:te.bindProduct:((oe=(J=$?.video)===null||J===void 0?void 0:J.bindCta)===null||oe===void 0?void 0:oe.itemId)===r&&(((ue=$?.video)===null||ue===void 0?void 0:ue.url)||((Me=(De=$?.video)===null||De===void 0?void 0:De.imgUrls)===null||Me===void 0?void 0:Me.length))})||0;(N=M?.current)===null||N===void 0||N.swiper.slideTo(V)},[r,M]),d.useEffect(()=>{const N=a?.[b],V=()=>{var $,W,Z,ee,te,J,oe,ue,De,Me,nt,ot,lt,st,rt;if(document.visibilityState==="hidden"){je.emit(Ae.PAGE_DID_HIDE,N),X(N),re(N);let Oe="";H&&(!((W=($=N?.video)===null||$===void 0?void 0:$.bindProducts)===null||W===void 0)&&W.length||!((Z=N?.video)===null||Z===void 0)&&Z.bindProduct)?Oe="pdpPage":H&&o?.[(J=(te=(ee=N.video)===null||ee===void 0?void 0:ee.bindCta)===null||te===void 0?void 0:te.itemId)!==null&&J!==void 0?J:""].item.type==="Appoint"?Oe="formPage":G?Oe="hashTagPage":!((oe=N?.video)===null||oe===void 0)&&oe.url?Oe="videoPage":!((ue=N?.video)===null||ue===void 0)&&ue.imgUrls&&(!((Me=(De=N?.video)===null||De===void 0?void 0:De.imgUrls)===null||Me===void 0)&&Me.length)?Oe="imagePage":N?.product&&(Oe="productPage"),S?.({eventInfo:{sessionDuration:Math.floor((new Date-C.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",relatedContentId:(nt=N?.video)===null||nt===void 0?void 0:nt.itemId,relatedProductId:(ot=N?.product)===null||ot===void 0?void 0:ot.itemId,position:N?.position,fromKName:Oe,fromKPage:location?.href,relatedCtatId:(rt=(st=(lt=N.video)===null||lt===void 0?void 0:lt.bindCta)===null||st===void 0?void 0:st.itemId)!==null&&rt!==void 0?rt:""}})}else document.visibilityState==="visible"&&(ie(),ce(b),je.emit(Ae.PAGE_DID_SHOW,N))};return document.addEventListener("visibilitychange",V),()=>{document.removeEventListener("visibilitychange",V)}},[b,S,C,a,ie,H,G,o]);const B=d.useMemo(()=>t?.logoUrl&&t?.isShowLogo?i-45:i,[t,i]),q=d.useMemo(()=>t?.logoUrl&&t?.isShowLogo?d.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:t?.color}},d.createElement("img",{src:t?.logoUrl,alt:"logo"})):null,[t]),le=d.useCallback((N,V)=>{var $,W;if(!(($=N.video)===null||$===void 0)&&$.url)return d.createElement(Ol,{rec:N,index:V,muted:h,data:a,height:B,activeIndex:b});if(!((W=N.video)===null||W===void 0)&&W.imgUrls)return d.createElement(zl,{key:N.video.itemId,imgUrls:N.video.imgUrls,width:n,height:B,rec:N,index:V,onReportViewImageEnd:X,onViewImageStartEvent:ce});if(N.product)switch(t?.productPost){case"CommodityDetailDiroNew":return d.createElement(ri,{key:N.product.itemId,viewTime:A.current,rec:N,isPost:!0,tipText:s,style:{height:"100%",overflow:"auto"}});case"CommodityDetail":return d.createElement(ci,{key:N.product.itemId,viewTime:A.current,data:N,height:B,tipText:s,width:n});default:return d.createElement(ci,{key:N.product.itemId,viewTime:A.current,data:N,height:B,tipText:s,width:n})}return null},[n,a,B,h,b,t?.productPost,A,s]),ne=d.useCallback((N,V)=>{var $,W,Z,ee,te,J,oe;return N.video?d.createElement(d.Fragment,null,(($=N.video)===null||$===void 0?void 0:$.title)&&d.createElement("div",{className:"clc-sxp-bottom-shadow"}),d.createElement("div",{className:"clc-sxp-bottom"},d.createElement("div",{className:"clc-sxp-bottom-card"},d.createElement(Ul,{rec:N,index:V,tempMap:o,resolver:l})),d.createElement("div",{className:"clc-sxp-bottom-text"},d.createElement(Tt,{foldText:s?.foldText,unfoldText:s?.unfoldText,text:(Z=(W=N.video)===null||W===void 0?void 0:W.title)!==null&&Z!==void 0?Z:"",style:e})),d.createElement($l,{index:b,tags:(te=(ee=N?.video)===null||ee===void 0?void 0:ee.hashTags)!==null&&te!==void 0?te:[],itemId:(J=N?.video)===null||J===void 0?void 0:J.itemId,itemType:!((oe=N.video)===null||oe===void 0)&&oe.url?"VIDEO":null,rec:N}))):null},[e,b,o,l,s]),se=d.useCallback(N=>{var V,$;if(!t?.isShowLike)return;let W=(V=t?.likeIconY)!==null&&V!==void 0?V:400;return O&&W<40&&(W+=40),N.video?d.createElement(Dl,{key:N.position,activeIcon:t?.likeIcon,unActicveIcon:t?.unlikeIcon,active:N.isCollected,recData:N,className:"clc-sxp-like-button",style:{top:W,right:($=t?.likeIconX)!==null&&$!==void 0?$:0}}):null},[t,O]),X=N=>{var V,$,W,Z,ee,te;if(!(!((V=N.video)===null||V===void 0)&&V.url)&&(!(($=N.video)===null||$===void 0)&&$.imgUrls)){const J=Date.now(),oe=(J-E.current)/1e3;S?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(Z=(W=N.video)===null||W===void 0?void 0:W.itemId)!==null&&Z!==void 0?Z:"",contentName:(ee=N.video.title)!==null&&ee!==void 0?ee:"",imageEndTime:`${J}`,playDuration:`${oe}`,contentTags:JSON.stringify((te=N.video.tags)!==null&&te!==void 0?te:[]),position:N.position,contentFormat:"image",traceInfo:N.video.traceInfo}})}},K=N=>{var V,$,W,Z,ee,te,J,oe;A.current=new Date;const ue=a[N.previousIndex];ue&&(N.previousIndex-N.activeIndex<0?(S?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",relatedContentId:($=(V=ue.video)===null||V===void 0?void 0:V.itemId)!==null&&$!==void 0?$:"",relatedProductId:(Z=(W=ue.product)===null||W===void 0?void 0:W.itemId)!==null&&Z!==void 0?Z:"",requestId:null}}),X(ue)):(S?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",relatedContentId:(te=(ee=ue.video)===null||ee===void 0?void 0:ee.itemId)!==null&&te!==void 0?te:"",relatedProductId:(oe=(J=ue.product)===null||J===void 0?void 0:J.itemId)!==null&&oe!==void 0?oe:"",requestId:null}}),X(ue)),re(ue))},re=N=>{var V,$,W;!(!((V=N?.video)===null||V===void 0)&&V.url)&&!(!(($=N?.video)===null||$===void 0)&&$.imgUrls)&&N?.product&&Y(N,N.product,(W=N?.product)===null||W===void 0?void 0:W.bindCta,A.current)},ce=N=>{var V,$,W,Z,ee,te;const J=a[N];if(!(!((V=J?.video)===null||V===void 0)&&V.url)&&(!(($=J?.video)===null||$===void 0)&&$.imgUrls)){const oe=Date.now();E.current=oe,S?.({eventInfo:{eventSubject:"viewImageCarouselStart",eventDescription:"User start view the image carousel",contentId:(Z=(W=J.video)===null||W===void 0?void 0:W.itemId)!==null&&Z!==void 0?Z:"",contentName:(ee=J.video.title)!==null&&ee!==void 0?ee:"",imageStartTime:`${oe}`,contentTags:JSON.stringify((te=J.video.tags)!==null&&te!==void 0?te:[]),position:J.position,contentFormat:"image",traceInfo:J.video.traceInfo}})}},ae=d.useMemo(()=>{const N=a?.map((V,$)=>b===$||$-1===b||$+1===b?V:null);return O?N:N.concat([{loading:!0}])},[a,b,O]),Pe=d.useMemo(()=>D?d.createElement("div",{style:{height:B,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},d.createElement("img",{width:64,height:64,src:F,alt:"loading...",style:{objectFit:"contain"}})):ae?.map((N,V)=>d.createElement(ye,{key:V,virtualIndex:V},N&&d.createElement(d.Fragment,null,N?.loading?d.createElement("div",{style:{height:B,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},d.createElement("img",{width:64,height:64,src:F,alt:"loading...",style:{objectFit:"contain"}})):d.createElement(d.Fragment,null,le(N,V),ne(N,V),se(N))))),[n,a,B,D,ne,le,ae,F]),Te=ke("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),$e=ke("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png");return d.createElement("div",{id:"sxp-render",className:"clc-sxp-container"},O&&d.createElement(ui,{icon:Vl,styles:{background:"rgba(0,0,0,.3)",color:"#fff"},onClose:()=>{_?.(!0)}}),q,R?d.createElement(Nl,{imageUrl:t?.swipeTipIcon}):null,d.createElement(Ie,{ref:M,onActiveIndexChange:N=>{g(N.activeIndex),!k&&(K(N),!O&&N?.activeIndex+2>=a?.length&&(L||(x(!0),I?.(Math.ceil(b/10)+1).then(()=>{x(!1)}))))},direction:"vertical",height:B},d.createElement(kl,{style:{position:"fixed",right:(c=t?.muteIconX)!==null&&c!==void 0?c:0,visibility:!((f=(p=a?.[b])===null||p===void 0?void 0:p.video)===null||f===void 0)&&f.url?"visible":"hidden",bottom:(m=t?.muteIconY)!==null&&m!==void 0?m:23,zIndex:999},defaultValue:h,activeIcon:t?.unMuteIcon?t?.unMuteIcon:Te,unactiveIcon:t?.muteIcon?t?.muteIcon:$e,onChange:T}),Pe),d.createElement(Ql,null))},Jl=()=>{const{schema:t,resolver:e,popup:i}=Le(),{setPopupDetailData:n,popupDetailData:o,bffEventReport:l}=Q(),{productView:a}=Re(),[r,s]=d.useState(!1),u=d.useRef(null);d.useEffect(()=>{const f=()=>{u.current=new Date};return f(),window.addEventListener("pageshow",f),()=>{window.removeEventListener("pageshow",f)}},[]),d.useEffect(()=>{i&&i!==""&&(u.current=new Date,s(!0))},[i]);const c=()=>{var f,m,b;if(!i||i===""||!r||new Date-u.current<1200)return;s(!1);const g=o,E=(f=g?.video)===null||f===void 0?void 0:f.bindProduct,v=(b=(m=g?.video)===null||m===void 0?void 0:m.bindProduct)===null||b===void 0?void 0:b.bindCta;E&&v&&a(g,E,v,u.current),setTimeout(()=>{window?.sxpPopup(""),n?.(null)},1200)},p=d.useMemo(()=>{var f,m,b;return(b=(m=(f=t?.sxpPageConf)===null||f===void 0?void 0:f.globalConfig)===null||m===void 0?void 0:m.popupList)===null||b===void 0?void 0:b.map((g,E)=>{var v,y,h,T,C,A,L;if(g?.id===i){const x=vi(e[(v=g?.item)===null||v===void 0?void 0:v.type]);return d.createElement(x,Object.assign({key:E,style:Object.assign(Object.assign({},(y=g?.item)===null||y===void 0?void 0:y.style),{width:"100%",height:"80vh",overflow:"auto"}),textStyle:(h=g?.item)===null||h===void 0?void 0:h.textStyle,bindDatas:(C=(T=g?.item)===null||T===void 0?void 0:T.bindDatas)!==null&&C!==void 0?C:[]},(A=g?.item)===null||A===void 0?void 0:A.props,{event:((L=g?.item)===null||L===void 0?void 0:L.event)||{},schema:t,id:g?.id}))}else return d.createElement(d.Fragment,null)})},[t,i,e]);return d.createElement(tt,{visible:!!r,onClose:c,padding:0,modalStyle:{position:"fixed"}},p)},_t={};Object.values(di).forEach(t=>{_t[t.extend.type]=t});const Kl=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:n=20,loadingImage:o})=>{var l,a,r,s,u,c;const p=d.useMemo(()=>{var f;return location?.search?(f=location?.search)===null||f===void 0?void 0:f.replace("?",""):""},[]);return d.createElement(Bt,{resolver:_t,enableDataSource:!1,schema:t?.data,utmVal:p},d.createElement(Nt,{utmVal:p,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(a=(l=t?.sxp_parameter)===null||l===void 0?void 0:l.personalized_recommend)!==null&&a!==void 0?a:e,defaultSize:(s=(r=t?.sxp_parameter)===null||r===void 0?void 0:r.default_recommend)!==null&&s!==void 0?s:i,hashTagSize:(c=(u=t?.sxp_parameter)===null||u===void 0?void 0:u.hash_tag_size)!==null&&c!==void 0?c:n,loadingImage:o,render:({rtcList:f})=>{var m;return d.createElement(d.Fragment,null,d.createElement(pi,Object.assign({},(m=t?.data)===null||m===void 0?void 0:m.sxpPageConf,{data:f,resolver:_t})),d.createElement(Jl,null))}}))};var Zl=d.memo(Kl);const fi=d.createContext({}),es=({children:t,data:e})=>{var i,n,o,l,a,r;return d.createElement(fi.Provider,{value:{sxpPrameter:{bottomImage:(i=e?.sxp_parameter)===null||i===void 0?void 0:i.bottom_image,defaultRecommend:(n=e?.sxp_parameter)===null||n===void 0?void 0:n.default_recommend,personalizedRecommend:(o=e?.sxp_parameter)===null||o===void 0?void 0:o.personalized_recommend,placeholderImage:(l=e?.sxp_parameter)===null||l===void 0?void 0:l.placeholder_image,hashTagSize:(a=e?.sxp_parameter)===null||a===void 0?void 0:a.hash_tag_size,loadingImage:(r=e?.sxp_parameter)===null||r===void 0?void 0:r.loading_image},appDomain:e?.appDomain}},t)};function ts(){return d.useContext(fi)}exports.EditorDataProvider=es,exports.Modal=tt,exports.SxpDataSourceProvider=Nt,exports.SxpPageCore=Zl,exports.SxpPageRender=pi,exports.core=Fi,exports.default=Ii,exports.materials=di,exports.useEditorDataProvider=ts;
|
5
|
+
18-karat gold, this necklace is embellished with hand-set diamonds.`,maxStr:79,className:"pb-commondity-content-info",style:x?.info}))},j=()=>{var F;return d.createElement(d.Fragment,null,(y||P?.link)&&d.createElement("button",{onClick:U,className:"pb-commondity-btn",style:A},(F=N?.enTitle)!==null&&F!==void 0?F:"Purchase on Website"))};return d.createElement("div",{className:"pb-commondity"},d.createElement("div",Object.assign({className:V.css(Object.assign({},c))},k),P&&((l=P?.homePage)===null||l===void 0?void 0:l.length)>0&&d.createElement(Ge,{height:ne,modules:[mt,ht],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",clickableClass:w?.dotsAlign==="left"?"commondityDetail-swiper-clickable-left":"commondityDetail-swiper-clickable-center"},loop:!0,autoplay:{delay:w?.delay*1e3}},(r=P?.homePage)===null||r===void 0?void 0:r.map(F=>d.createElement(Ce,{key:F},d.createElement("div",{style:{overflow:"hidden",width:ne,height:ne}},d.createElement("img",{src:F,style:{height:"100%",width:"100%",objectFit:"cover"}}))))),!(!((a=P?.homePage)===null||a===void 0)&&a.length)&&d.createElement("div",{className:V.css({position:"relative",height:0,width:"100%",paddingBottom:"100%",overflow:"hidden"})},d.createElement("img",{className:V.css({position:"absolute",left:0,top:0,objectFit:"cover",width:"100%"}),src:(s=S?.bottom_image)!==null&&s!==void 0?s:_,alt:""})),de({isPost:p})),j(),d.createElement(lt,{visible:z,onClose:()=>B(!1)},de({isPost:!1}),j()))};var Ao=d.memo(Io);const Po=he(Ao,{displayName:"\u5546\u54C1\u8BE6\u60C5",icon:"",category:"popup",type:"CommodityDetail",related:{settingRender:Hi},defaulSetting:{props:{swiper:{dotsAlign:"center",delay:3},commodityStyles:{price:{color:"#000",fontSize:18},title:{color:"#000",fontSize:23},collection:{fontSize:12,color:"#000"},info:{color:"gray",fontSize:12}},buttonStyle:{backgroundColor:"#000",fontSize:12,height:45,fontWeight:"bold",textAlign:"center",color:"rgba(255, 255, 255, 0.9)"}},style:{}},w:100,h:40,sort:1});var Do=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Oo=[{type:"Media",label:"\u56FE\u6807",name:["props","icon"],mediaType:"Image"},{type:"TextArea",label:"\u5185\u5BB9",name:["props","content"]},{type:"Text",label:"\u6309\u94AE\u6587\u6848",name:["props","btnText"]}],ci="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABHBJREFUeF7lmzuoFkcYhp/TihdIl0JBESubSCCCih4NXgJeUphCjyKmEEVtLRSjooWtShILRRJtgpCoeLzgLUZBQbTwAoooqLWoCWIXeZdd3bP++8/st7OX33+ac2Dn8r3Pvzv7zcy7A9RT5gDjgQnx3/T/iuA58Cz+m/7/StXhDVQ0gATOBhYCi4GxxnHeAKeAs8DfMSBjV52bhQTwBbApFj4YNMqPnV0GrgL7gJchxggFQMI3A5NDBOXRx+MYwn6Pul2rlAWwMv7VvykbiLH9TUAQjhnbYwUwA9gKLLIOHLjdGWAPcL1ovxYAG4G9wKiig1Vc/y2wBThQZJyiAA4Ba4sM0EDdw8CPvuMWAXAb+Mq344br3QGm+cTgC+B/n85aWMepz1kBOBknMy3U5wxJSdSSbrVcAPR+V9LRy0X5SW6+0A3AMuDPXlaeiv174K9OWvIAfA1cAMZ9JgBeA98Ct7J68gAMtyjJCfUbKFn6zgeA0tujoUZtWT9D2bS50x1wA2gqt6+al9YO09ODZAF8DrO+C+KIt0IagNbzIlTXktYVaKfr9+PNkSklchMtpXWHR/sJaQA7gJ8sUdXURuJ/AB7E4/0BLDeOvROQ3hEA/gFmGjusullWfDKeFcI1YFYawETgSdUqjP3niS8LYRLwNHkE1gM/GwOssplLfBkIG4BfEgBKE5dWqcTQt694da1td22YFikngGUJgH+B0UVaV1y3iHiFYpnA/wPGCICFXpX66xCfxD8oAKuA3wIpegToHW0tdYpXjKsFQLu7u60Rx+3exSCPG29HdVO3eI25TQB+BdaVAKCMSneRVpBJKfpMNiFesR4UgNOdlomeQF4AWj3quCpbfCE0JV7xDgvAXWCqp+B0tYfACkC7xXnFBaFJ8Yr5ngC8Mu78KHnS4+MqeRCaFq+4X5cB8MnmQoE7oQ3iPwCwPgJWEdZ2rjvNcj16BMpMghYxWsElS1pX0K45xNXedT2aBMu+BotCcAVlfZX69puuF70GQyRCoSFU/csnEKJEKFQqHApCXeIFIUqFQy6GykKoU7wARIuh6HVQwsmVffasEOoWLwfauASADkKU0oYqRSHULV465SsaSgAoqfk9lPq4H18ITYhXiJr7jiYAZGyUUzN0cUFoSrx0yrX6PH0ucEmTQmgCXdb5TYrX/uFcaa3rYCR7JzQpXro1vg5HRgCo+mhMEOT3/RKQYaGpkns0poD6+nA0+UX6+nhcEPreICEIfW2REQCZoc+30A9snTjlI57fyUzdzSYnU3RpP7414sDtNLl3NFG7jJK9YI52sepqnnYBUOe9ZJLOwnCapn0AqNO+NksnVHvJNO00SSeifO+ApH4vZIpdzdHZZ6QoALWXifqI8TTJNWGVua5drTV5pui8ji0A1JfM1Lta5CeWD3h7JzO0i6gVQNJv3342lwXbtx9OpkFoP0ET0LwKDZcyOF5s46ez2TtCxkt9OL0gBmJ1oMnJJcHnYo/wU9czXfR62TnAd7zWfj7/HrAAAKDnDZ8VAAAAAElFTkSuQmCC";const Mo=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:o,src:l}=t;switch(i){case 2:return n||null;case 3:return l||null;default:return o&&o.length>0?(e=o[0])===null||e===void 0?void 0:e.url:null}},No=t=>{var{content:e,btnText:i,style:n,icon:o,onClick:l}=t,r=re(t,["content","btnText","style","icon","onClick"]);me();const a=typeof o=="string"?o:Mo(o),s=()=>{window?.sxpPopup(""),l?.()};return d.createElement("div",Object.assign({className:`pb-prompt ${V.css(Object.assign({},n))}`},r),d.createElement("div",{className:"pb-prompt-icon"},d.createElement("img",{width:"100%",src:a??ci})),d.createElement("div",{className:"pb-prompt-content"},e),d.createElement("button",{className:"pb-prompt-btn",onClick:s},i))};var ko=d.memo(No);const Lo=he(ko,{displayName:"\u63D0\u4EA4\u6210\u529F",icon:"",category:"popup",type:"Prompt",related:{settingRender:Oo,bindableProps:[],interactionRender:Do},defaulSetting:{props:{icon:ci,content:"You have successfully completed the appointment!",btnText:"OK"},style:{}},w:100,h:40,sort:3});var Ro=[{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"}]},{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:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Color",name:["color"]},{type:"Select",options:[{label:"\u9ED1\u4F53",value:"\u9ED1\u4F53"}],name:["fontFamily"]},{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"]}]}]},{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:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","buttonStyle","fontFamily"],options:[{label:"\u9ED1\u4F53",value:"\u9ED1\u4F53"}]},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]}]}];const zo=t=>{var e,i,n,o,l,r,a,s,u,c,f,{style:h,isDefault:v,rec:y,viewTime:_,isPost:b,bottom_image:p,tipText:m,swiper:g,commodityStyles:w,buttonStyle:x}=t,A=re(t,["style","isDefault","rec","viewTime","isPost","bottom_image","tipText","swiper","commodityStyles","buttonStyle"]);d.useState(!0);const{sxpParameter:k}=Q(),{popupDetailData:S,bffEventReport:E,isPreview:T,swiperRef:D,waterFallData:C}=Q(),{jumpToWeb:I,productView:M}=qe(),R=d.useRef(null);d.useRef(null),d.useRef(null),d.useState(!1),d.useState(!1),d.useState(!0);const[z,B]=d.useState(!1),O=d.useRef(null),P=b?y:S,N=b?P?.product:(e=P?.video)===null||e===void 0?void 0:e.bindProduct,U=b?(i=P?.product)===null||i===void 0?void 0:i.bindCta:(o=(n=P?.video)===null||n===void 0?void 0:n.bindProduct)===null||o===void 0?void 0:o.bindCta,te=()=>{N?.link&&(I(P,N,U),b||M(P,N,U,_||O.current),window.location.href=window.getJointUtmLink(N.link))};d.useEffect(()=>{const F=()=>{O.current=new Date};return F(),window.addEventListener("pageshow",F),()=>{window.removeEventListener("pageshow",F)}},[]);const ne=d.useMemo(()=>{var F,H,Y,K,ee;return N?.currency&&N?.price?`${(Y=(H=(F=N?.currency)===null||F===void 0?void 0:F.split("-")[1])===null||H===void 0?void 0:H.toUpperCase())!==null&&Y!==void 0?Y:""}${(ee=(K=N?.price)===null||K===void 0?void 0:K.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&ee!==void 0?ee:""}`:"\xA3102,300.00"},[N?.price,N?.currency]),de=T?375:window.innerWidth,j=({isPost:F})=>d.createElement("div",{hidden:!!N&&(!N?.info||N?.info==="")},d.createElement(It,{isPost:F,onClick:()=>B(!0),className:"pb-commondityDiroNew-info",style:w?.info,foldText:m?.foldText,unfoldText:m?.unfoldText,text:N?.info||`Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
|
6
|
+
Made in Italy`}));return d.createElement("div",{className:"pb-commondityDiroNew"},d.createElement("div",Object.assign({ref:R,className:V.css(Object.assign({},h))},A),N&&((l=N?.homePage)===null||l===void 0?void 0:l.length)>0&&d.createElement(Ge,{height:de,modules:[mt,ht],pagination:{clickable:!0,bulletActiveClass:"commondityDiroNew-swipe-item-active-bullet",clickableClass:g?.dotsAlign==="left"?"commondityDiroNew-swiper-clickable-left":"commondityDiroNew-swiper-clickable-center"},loop:!0,autoplay:{delay:g?.delay*1e3}},(r=N?.homePage)===null||r===void 0?void 0:r.map(F=>d.createElement(Ce,{key:F},d.createElement("div",{style:{overflow:"hidden",width:de,height:de}},d.createElement("img",{src:F,style:{height:"100%",width:"100%",objectFit:"cover"}}))))),!(!((a=N?.homePage)===null||a===void 0)&&a.length)&&d.createElement("div",{className:V.css({position:"relative",height:0,width:"100%",paddingBottom:"100%",overflow:"hidden"})},d.createElement("img",{className:V.css({position:"absolute",left:0,top:0,objectFit:"cover",width:"100%"}),src:(s=k?.bottom_image)!==null&&s!==void 0?s:p,alt:""})),d.createElement("div",{className:"pb-commondityDiroNew-content"},d.createElement("div",{className:"pb-commondityDiroNew-content-top"},d.createElement("div",{className:"pb-commondityDiroNew-content-top-title",style:w?.title},(u=N?.title)!==null&&u!==void 0?u:"Large Dior Toujours Bag"),d.createElement("div",{className:""},d.createElement("div",{className:"pb-commondityDiroNew-content-top-price",hidden:!!N&&!N?.price,style:w?.price},ne),d.createElement("div",{className:"pb-commondityDiroNew-content-top-price",hidden:!!N&&!N?.taxInfo,style:w?.taxInfo},(c=N?.taxInfo)!==null&&c!==void 0?c:"\u7A0E\u8D39"))),d.createElement("div",{className:"pb-commondityDiroNew-content-collection",hidden:!!N&&(!N?.collection||N?.collection===""),style:w?.collection},N?.collection||"Black Macrocannage Calfskin"),(!N||N?.link)&&d.createElement("button",{onClick:te,className:"pb-commondityDiroNew-btn",style:x},(f=U?.enTitle)!==null&&f!==void 0?f:"Shop now"),j({isPost:b}))),d.createElement(lt,{visible:z,onClose:()=>B(!1)},j({isPost:!1})))};var Fo=d.memo(zo);const jo=he(Fo,{displayName:"\u5546\u54C1\u8BE6\u60C5",icon:"",category:"popup",type:"CommodityDetailDiroNew",related:{settingRender:Ro},defaulSetting:{props:{swiper:{dotsAlign:"left",delay:3},commodityStyles:{price:{color:"#000",fontWeight:"bold",fontSize:18},title:{color:"#000",fontSize:13},collection:{color:"#757575",fontSize:13},info:{color:"#757575",fontSize:13},taxInfo:{color:"#000",fontWeight:"bold",fontSize:13,textAlign:"right"}},buttonStyle:{backgroundColor:"#000",fontSize:12,height:52,fontWeight:"bold",textAlign:"center",color:"#fff",borderRadius:25,marginTop:16,marginBottom:16}},style:{}},w:100,h:40,sort:1});var be=[{title:"\u4E3B\u9898\u6837\u5F0F",child:[{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["style","width"],addonAfter:"W"},{type:"Number",name:["style","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["style","borderRadius"],max:100},{type:"Number",name:["style","borderRadius"],addonAfter:"px",max:100}]},{type:"Color",label:"\u80CC\u666F\u8272",name:["style","backgroundColor"]},{label:"\u5185\u8FB9\u8DDD",type:"Number",name:["style","padding"],addonAfter:"px"},{label:"\u4E0EPost\u63CF\u8FF0\u8FB9\u8DDD",type:"Number",name:["style","marginBottom"],addonAfter:"px"}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","ctaTempStyles","img","width"],addonAfter:"W"},{type:"Number",name:["props","ctaTempStyles","img","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","ctaTempStyles","img","borderRadius"],max:100},{type:"Number",name:["props","ctaTempStyles","img","borderRadius"],addonAfter:"px",max:100}]},{type:"Number",label:"\u4E0E\u53F3\u4FA7\u8FB9\u8DDD",addonAfter:"px",name:["props","ctaTempStyles","img","marginRight"]}]},{title:"\u5546\u54C1\u6807\u9898\u6587\u672C",type:"commodityTitle",child:[{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","ctaTempStyles","title","color"]},{type:"Select",options:[{label:"\u9ED1\u4F53",value:"\u9ED1\u4F53"}],name:["props","ctaTempStyles","title","fontFamily"]},{type:"Number",addonAfter:"px",name:["props","ctaTempStyles","title","fontSize"]}]},{label:"\u6837\u5F0F",type:"TextStyle",name:["props","ctaTempStyles","title"]},{label:"\u5BF9\u9F50",type:"TextAlign",name:["props","ctaTempStyles","title"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","ctaTempStyles","title"]}]},{title:"CTA\u6807\u9898",child:[{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","ctaTempStyles","ctaTitle","width"],addonAfter:"W"},{type:"Number",name:["props","ctaTempStyles","ctaTitle","height"],addonAfter:"H"}]},{type:"Color",label:"\u80CC\u666F\u8272",name:["props","ctaTempStyles","ctaTitle","backgroundColor"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","ctaTempStyles","ctaTitle","color"]},{type:"Select",options:[{label:"\u9ED1\u4F53",value:"\u9ED1\u4F53"}],name:["props","ctaTempStyles","ctaTitle","fontFamily"]},{type:"Number",addonAfter:"px",name:["props","ctaTempStyles","ctaTitle","fontSize"]}]},{label:"\u6837\u5F0F",type:"TextStyle",name:["props","ctaTempStyles","ctaTitle"]},{label:"\u5BF9\u9F50",type:"TextAlign",name:["props","ctaTempStyles","ctaTitle"]}]}],Bo=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];function ui(t){const e=d.useRef(null),[i,n]=d.useState(!1);return d.useEffect(()=>{e.current=new IntersectionObserver(([o])=>{n(o.isIntersecting)})},[]),d.useEffect(()=>{var o;return t?.current&&((o=e?.current)===null||o===void 0||o.observe(t?.current)),()=>{var l;(l=e?.current)===null||l===void 0||l.disconnect()}},[t]),i}const Go=t=>{var{rec:e,children:i,className:n,onClick:o,style:l}=t;re(t,["rec","children","className","onClick","style"]);const r=d.useRef(null),a=ui(r),{popupAni:s}=me(),{setPopupDetailData:u,ctaEvent:c}=Q();d.useEffect(()=>{var h,v;if(a&&r?.current){const y=(v=(h=e?.video)===null||h===void 0?void 0:h.bindProduct)!==null&&v!==void 0?v:e?.video;c?.({eventSubject:"ctaExposure",eventDescription:"The cta was shown to the user"},e,y)}},[a,r,e,c]);const f=le.throttle(()=>{var h,v;const y=(v=(h=e?.video)===null||h===void 0?void 0:h.bindProduct)!==null&&v!==void 0?v:e?.video;c?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},e,y),u?.(e),o?.()},s?.duration);return d.createElement("div",{ref:r,className:n,style:l,onClick:f},i)};var Je=d.memo(Go),$o={"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};const Vo=t=>{var e,i,n,o,l,r,a,{content:s,style:u,bgImg:c,recData:f,bottom_image:h,ctaTempStyles:v}=t,y=re(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles"]);const{sxpParameter:_}=Q(),b=(e=f?.video)===null||e===void 0?void 0:e.bindProduct,p=(o=(n=(i=b?.homePage)===null||i===void 0?void 0:i[0])!==null&&n!==void 0?n:_?.bottom_image)!==null&&o!==void 0?o:h;return d.createElement(Je,Object.assign({rec:f,className:V.css(Object.assign({},u)),style:{display:"flex"}},y),d.createElement("div",{className:V.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},v?.img))},d.createElement("img",{className:V.css({width:"100%",objectFit:"cover",height:"100%"}),src:p,hidden:!p,alt:""})),d.createElement("div",{className:V.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:$o["tow-line-ellipsis"],style:v?.title},(l=b?.title)!==null&&l!==void 0?l:"Product Name"),d.createElement("div",{className:V.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},v?.ctaTitle))},(a=(r=b?.bindCta)===null||r===void 0?void 0:r.enTitle)!==null&&a!==void 0?a:"Shop Now")))};var Ho=d.memo(Vo);const Uo=he(Ho,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u900F\u660E\u5E95",icon:"",category:"template",type:"Commodity",related:{interactionRender:Bo,bindableProps:[],settingRender:be},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#fff",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:130,height:20,backgroundColor:"rgba(0,0,0,.5)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)"}},w:100,h:40,sort:1});var Wo=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const Xo=t=>{var e,i,n,o,{content:l,style:r,bgImg:a,recData:s,bottom_image:u,ctaTempStyles:c}=t,f=re(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles"]);const{sxpParameter:h}=Q(),v=(e=s?.video)===null||e===void 0?void 0:e.bindCta;return d.createElement(Je,Object.assign({rec:s,className:V.css(Object.assign({alignItems:"center"},r)),style:{display:"flex"}},f),d.createElement("div",{className:V.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},c?.img))},d.createElement("img",{className:V.css({width:"100%",objectFit:"cover",height:"100%"}),src:(n=(i=v?.icon)!==null&&i!==void 0?i:h?.bottom_image)!==null&&n!==void 0?n:u,alt:""})),d.createElement("div",{className:V.css(Object.assign({overflow:"hidden",textOverflow:"ellipsis"},c?.ctaTitle))},(o=v?.enTitle)!==null&&o!==void 0?o:"Product Name"))};var Yo=d.memo(Xo);const qo=he(Yo,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"template",type:"Appoint",related:{interactionRender:Wo,settingRender:be?.filter(t=>t.type!=="commodityTitle"),bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:30,height:30,marginRight:8},ctaTitle:{fontSize:12,color:"#fff",textAlign:"left",width:130,height:20}}},style:{padding:7,width:236,height:44,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)"}},w:100,h:40,sort:6});var Jo={"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU"};const Ko=t=>{var e,i,n,o,l,{content:r,style:a,bgImg:s,recData:u,bottom_image:c,ctaTempStyles:f}=t,h=re(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles"]);const{sxpParameter:v,bffEventReport:y}=Q(),{jumpToWeb:_}=qe(),b=(e=u?.video)===null||e===void 0?void 0:e.bindCta,p=(i=u?.video)===null||i===void 0?void 0:i.bindProduct,m=()=>{b?.link&&(_(u,p,b),window.location.href=window.getJointUtmLink(b.link))};return d.createElement(Je,Object.assign({rec:u,className:V.css(Object.assign({alignItems:"center"},a)),style:{display:"flex"}},h,{onClick:m}),d.createElement("div",{className:V.css(Object.assign({backgroundColor:"#f2f2f2",overflow:"hidden",flexShrink:0},f?.img))},d.createElement("img",{className:V.css({width:"100%",objectFit:"cover",height:"100%"}),src:(o=(n=b?.icon)!==null&&n!==void 0?n:v?.bottom_image)!==null&&o!==void 0?o:c,alt:""})),d.createElement("div",{className:V.css({display:"flex",alignItems:"center",width:"100%",overflow:"hidden"})},d.createElement("div",{className:Jo["tow-line-ellipsis"],style:f?.ctaTitle},(l=b?.enTitle)!==null&&l!==void 0?l:"Product Name")))};var Qo=d.memo(Ko);const Zo=he(Qo,{displayName:"\u8DF3\u8F6C\u6307\u5F15",icon:"",category:"template",type:"Link",related:{settingRender:be?.filter(t=>t.type!=="commodityTitle"),bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},ctaTitle:{fontSize:12,color:"#fff",textAlign:"left",width:130,height:20}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)"}},w:100,h:40,sort:5});var el=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],tl={"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};const il=t=>{var e,i,n,o,l,r,a,{content:s,style:u,bgImg:c,recData:f,bottom_image:h,ctaTempStyles:v}=t,y=re(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles"]);const{sxpParameter:_}=Q(),b=(e=f?.video)===null||e===void 0?void 0:e.bindProduct,p=(o=(n=(i=b?.homePage)===null||i===void 0?void 0:i[0])!==null&&n!==void 0?n:_?.bottom_image)!==null&&o!==void 0?o:h;return d.createElement(Je,Object.assign({rec:f,className:V.css(Object.assign({},u)),style:{display:"flex"}},y),d.createElement("div",{className:V.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},v?.img))},d.createElement("img",{className:V.css({width:"100%",objectFit:"cover",height:"100%"}),src:p,hidden:!p,alt:""})),d.createElement("div",{className:V.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:tl["tow-line-ellipsis"],style:v?.title},(l=b?.title)!==null&&l!==void 0?l:"Product Name"),d.createElement("div",{className:V.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",borderRadius:"25px",whiteSpace:"nowrap"},v?.ctaTitle))},(a=(r=b?.bindCta)===null||r===void 0?void 0:r.enTitle)!==null&&a!==void 0?a:"Shop Now")))};var nl=d.memo(il);const ol=he(nl,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u767D\u5E95\u5706\u89D2\u6309\u94AE",icon:"",category:"template",type:"CommodityDiro",related:{interactionRender:el,settingRender:be,bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#000",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:80,height:20,backgroundColor:"rgba(0,0,0,1)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"#fff"}},w:100,h:40,sort:2});var ll=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],sl={"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};const rl=t=>{var e,i,n,o,l,r,a,{content:s,style:u,bgImg:c,recData:f,bottom_image:h,ctaTempStyles:v}=t,y=re(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles"]);const{sxpParameter:_}=Q(),b=(e=f?.video)===null||e===void 0?void 0:e.bindProduct,p=(o=(n=(i=b?.homePage)===null||i===void 0?void 0:i[0])!==null&&n!==void 0?n:_?.bottom_image)!==null&&o!==void 0?o:h;return d.createElement(Je,Object.assign({rec:f,className:V.css(Object.assign({},u)),style:{display:"flex"}},y),d.createElement("div",{className:V.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},v?.img))},d.createElement("img",{className:V.css({width:"100%",objectFit:"cover",height:"100%"}),src:p,hidden:!p,alt:""})),d.createElement("div",{className:V.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",overflow:"hidden"})},d.createElement("div",{className:sl["tow-line-ellipsis"],style:v?.title},(l=b?.title)!==null&&l!==void 0?l:"Product Name"),d.createElement("div",{className:V.css(Object.assign({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},v?.ctaTitle))},(a=(r=b?.bindCta)===null||r===void 0?void 0:r.enTitle)!==null&&a!==void 0?a:"Shop now")))};var al=d.memo(rl);const dl=he(al,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u767D\u5E95\u4E0B\u5212\u7EBF\u6309\u94AE",icon:"",category:"template",type:"CommodityDiroNew",related:{interactionRender:ll,bindableProps:[],settingRender:be},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:8,width:78,height:78,marginRight:16},title:{fontSize:12,color:"#000",textAlign:"left"},ctaTitle:{textDecoration:"underline",fontSize:12,fontWeight:"bold",color:"#000",textAlign:"left",width:150,height:20}}},style:{borderRadius:4,width:260,height:86,padding:4,backgroundColor:"rgba(255,255,255,0.75)"}},w:100,h:40,sort:2});var cl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const ul=({children:t})=>d.createElement(Ge,{direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[tn,en,Zi],style:{paddingRight:"20px"}},t);var st=d.memo(ul);const vl=({src:t,rec:e,item:i})=>{const n=d.useRef(null),o=ui(n),{ctaEvent:l}=Q();return d.useEffect(()=>{o&&t&&n?.current&&l?.({eventSubject:"ctaExposure",eventDescription:"The cta was shown to the user"},e,i)},[o,t,n,e,l,i]),d.createElement("img",{ref:n,hidden:!t,className:V.css({width:"100%",objectFit:"cover",height:"100%"}),src:t,alt:""})};var At=d.memo(vl),pl={"two-line-ellipsis":"index-module_two-line-ellipsis__SFQwJ"};const fl=t=>{var e,i,{content:n,style:o,bgImg:l,recData:r,onClick:a,bottom_image:s,ctaTempStyles:u}=t,c=re(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles"]);const{ctaEvent:f,setPopupDetailData:h,sxpParameter:v}=Q(),{popupAni:y}=me(),[_,b]=d.useState((i=(e=r?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),p=le.throttle(m=>{f?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},r,m),h?.(Object.assign(Object.assign({},r),{video:Object.assign(Object.assign({},r?.video),{bindProduct:m})})),a?.()},y?.duration);return d.createElement(st,null,_?.map(m=>{var g,w,x,A,k,S;return d.createElement(Ce,Object.assign({hidden:r&&!m?.bindCta,key:m?.itemId,className:V.css(Object.assign({flexShrink:0},o)),style:{display:"flex"}},c,{onClick:()=>p(m)}),d.createElement("div",{className:V.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},d.createElement(At,{src:(x=(w=(g=m?.homePage)===null||g===void 0?void 0:g[0])!==null&&w!==void 0?w:v?.bottom_image)!==null&&x!==void 0?x:s,rec:r,item:m})),d.createElement("div",{className:V.css({color:"#000",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:pl["two-line-ellipsis"],style:u?.title},(A=m?.title)!==null&&A!==void 0?A:"Product Name"),d.createElement("div",{className:V.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",borderRadius:"25px",whiteSpace:"nowrap"},u?.ctaTitle))},(S=(k=m?.bindCta)===null||k===void 0?void 0:k.enTitle)!==null&&S!==void 0?S:"Shop Now")))}))};var ml=d.memo(fl);const hl=he(ml,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u767D\u5E95\u5706\u89D2\u6309\u94AE",icon:"",category:"template",type:"MultiCommodityDiro",related:{interactionRender:cl,bindableProps:[],settingRender:be},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#000",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:80,height:20,backgroundColor:"rgba(0,0,0,1)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"#fff"}},w:100,h:40,sort:4});var gl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],bl={"two-line-ellipsis":"index-module_two-line-ellipsis__mdzn0"};const yl=t=>{var e,i,{content:n,style:o,bgImg:l,recData:r,onClick:a,bottom_image:s,ctaTempStyles:u}=t,c=re(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles"]);const{sxpParameter:f}=Q(),{ctaEvent:h,setPopupDetailData:v}=Q(),{popupAni:y}=me(),[_,b]=d.useState((i=(e=r?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),p=le.throttle(m=>{h?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},r,m),v?.(Object.assign(Object.assign({},r),{video:Object.assign(Object.assign({},r?.video),{bindProduct:m})})),a?.()},y?.duration);return d.createElement(st,null,_?.map(m=>{var g,w,x,A,k,S;return d.createElement(Ce,Object.assign({hidden:r&&!m?.bindCta,key:m.itemId,className:V.css(Object.assign({flexShrink:0},o)),style:{display:"flex"}},c,{onClick:()=>p(m)}),d.createElement("div",{className:V.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},d.createElement(At,{src:(x=(w=(g=m?.homePage)===null||g===void 0?void 0:g[0])!==null&&w!==void 0?w:f?.bottom_image)!==null&&x!==void 0?x:s,rec:r,item:m})),d.createElement("div",{className:V.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:bl["two-line-ellipsis"],style:u?.title},(A=m?.title)!==null&&A!==void 0?A:"Product Name"),d.createElement("div",{className:V.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},u?.ctaTitle))},(S=(k=m?.bindCta)===null||k===void 0?void 0:k.enTitle)!==null&&S!==void 0?S:"Shop Now")))}))};var wl=d.memo(yl);const Sl=he(wl,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u900F\u660E\u5E95",icon:"",category:"template",type:"MultiCommodity",related:{interactionRender:gl,settingRender:be,bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#fff",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:130,height:20,backgroundColor:"rgba(0,0,0,.5)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)"}},w:100,h:40,sort:3});var El=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Tl={"tow-line-ellipsis":"index-module_tow-line-ellipsis__fselR"};const xl=t=>{var e,i,{content:n,style:o,bgImg:l,recData:r,onClick:a,bottom_image:s,ctaTempStyles:u}=t,c=re(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles"]);const{ctaEvent:f,setPopupDetailData:h,sxpParameter:v}=Q(),{popupAni:y}=me(),[_,b]=d.useState((i=(e=r?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),p=le.throttle(m=>{f?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},r,m),h?.(Object.assign(Object.assign({},r),{video:Object.assign(Object.assign({},r?.video),{bindProduct:m})})),a?.()},y?.duration);return d.createElement(st,null,_?.map(m=>{var g,w,x,A,k,S;return d.createElement(Ce,Object.assign({hidden:r&&!m?.bindCta,key:m?.itemId,className:V.css(Object.assign({flexShrink:0},o)),style:{display:"flex"}},c,{onClick:()=>p(m)}),d.createElement("div",{className:V.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},d.createElement(At,{src:(x=(w=(g=m?.homePage)===null||g===void 0?void 0:g[0])!==null&&w!==void 0?w:v?.bottom_image)!==null&&x!==void 0?x:s,rec:r,item:m})),d.createElement("div",{className:V.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",overflow:"hidden",lineHeight:"20px"})},d.createElement("div",{className:Tl["tow-line-ellipsis"],style:u?.title},(A=m?.title)!==null&&A!==void 0?A:"Product Name"),d.createElement("div",{className:V.css(Object.assign({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},u?.ctaTitle))},(S=(k=m?.bindCta)===null||k===void 0?void 0:k.enTitle)!==null&&S!==void 0?S:"Shop now")))}))};var Cl=d.memo(xl);const _l=he(Cl,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u767D\u5E95\u4E0B\u5212\u7EBF\u6309\u94AE",icon:"",category:"template",type:"MultiCommodityDiroNew",related:{interactionRender:El,bindableProps:[],settingRender:be},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:8,width:78,height:78,marginRight:16},title:{fontSize:12,color:"#000",textAlign:"left"},ctaTitle:{textDecoration:"underline",fontSize:12,fontWeight:"bold",color:"#000",textAlign:"left",width:150,height:20}}},style:{borderRadius:4,width:260,height:86,padding:4,backgroundColor:"rgba(255,255,255,0.75)"}},w:100,h:40,sort:4});var vi=Object.freeze({__proto__:null,Appoint:qo,AppointForm:Vi,Commodity:Uo,CommodityDetail:Po,CommodityDetailDiroNew:jo,CommodityDiro:ol,CommodityDiroNew:dl,Link:Zo,MultiCommodity:Sl,MultiCommodityDiro:hl,MultiCommodityDiroNew:_l,Prompt:Lo});const Il="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",Al="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Pl=t=>{var{active:e,activeIcon:i,unActicveIcon:n,recData:o}=t,l=re(t,["active","activeIcon","unActicveIcon","recData"]);const{mutateLike:r,mutateUnlike:a,bffEventReport:s}=Q(),[u,c]=d.useState(e),f=Le(Al),h=Le(Il),v=le.debounce(()=>ue(void 0,void 0,void 0,function*(){var y,_,b,p,m,g,w,x,A,k,S,E,T,D,C,I,M,R,z,B;if(u){c(!1);const O=(b=yield a?.({videoItemId:(_=(y=o.video)===null||y===void 0?void 0:y.itemId)!==null&&_!==void 0?_:""}))!==null&&b!==void 0?b:!1;s?.({eventInfo:{eventSubject:"favoriteContentCanceled",eventDescription:"This content was unfavorite by the user",contentId:(m=(p=o.video)===null||p===void 0?void 0:p.itemId)!==null&&m!==void 0?m:"",contentName:(w=(g=o.video)===null||g===void 0?void 0:g.title)!==null&&w!==void 0?w:"",contentTags:JSON.stringify((A=(x=o.video)===null||x===void 0?void 0:x.tags)!==null&&A!==void 0?A:[]),position:o.position,contentFormat:!((k=o.video)===null||k===void 0)&&k.url?"video":"image",traceInfo:(S=o.video)===null||S===void 0?void 0:S.traceInfo}}),O||c(!0)}else{c(!0);const O=(E=yield r?.({content:JSON.stringify(o)}))!==null&&E!==void 0?E:!1;s?.({eventInfo:{eventSubject:"favoriteContent",eventDescription:"This content was favorite by the user",contentId:(D=(T=o.video)===null||T===void 0?void 0:T.itemId)!==null&&D!==void 0?D:"",contentName:(I=(C=o.video)===null||C===void 0?void 0:C.title)!==null&&I!==void 0?I:"",contentTags:JSON.stringify((R=(M=o.video)===null||M===void 0?void 0:M.tags)!==null&&R!==void 0?R:[]),position:o.position,contentFormat:!((z=o.video)===null||z===void 0)&&z.url?"video":"image",traceInfo:(B=o.video)===null||B===void 0?void 0:B.traceInfo}}),O||c(!1)}}),200);return d.createElement("button",Object.assign({},l,{onClick:v}),d.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:u?i||f:n||h,alt:"icon"}))};var Dl=d.memo(Pl);const $e=new wi;var De;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide"})(De||(De={}));const Ol=({rec:t,index:e,height:i,data:n,muted:o,activeIndex:l})=>{const[r,a]=d.useState(!1),s=d.useRef(null),{bffEventReport:u,sxpParameter:c,waterFallData:f,openHashtag:h}=Q(),v=d.useRef(0),[y,_]=d.useState(!1),{isActive:b}=di();d.useEffect(()=>{s.current&&(s.current.muted=o)},[o]);const p=d.useCallback(()=>{var S,E;!s?.current||((S=s?.current)===null||S===void 0?void 0:S.readyState)<2||(E=s.current)===null||E===void 0||E.play()},[]),m=Le("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),g=d.useCallback(()=>{var S,E,T,D,C,I,M,R,z,B,O,P,N;a(!1);const U=n[e];if(U&&y&&(!((S=s?.current)===null||S===void 0)&&S.duration)){v.current=((E=s?.current)===null||E===void 0?void 0:E.currentTime)||0;const te=((D=(T=s.current)===null||T===void 0?void 0:T.duration)!==null&&D!==void 0?D:0).toFixed(2),ne=((I=(C=s.current)===null||C===void 0?void 0:C.currentTime)!==null&&I!==void 0?I:0).toFixed(2);u?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(R=(M=U.video)===null||M===void 0?void 0:M.itemId)!==null&&R!==void 0?R:"",contentName:(B=(z=U.video)===null||z===void 0?void 0:z.title)!==null&&B!==void 0?B:"",playType:"1",startTime:ne,videoDuration:te,contentTags:JSON.stringify((P=(O=U.video)===null||O===void 0?void 0:O.tags)!==null&&P!==void 0?P:[]),position:U.position,contentFormat:"video",traceInfo:(N=U.video)===null||N===void 0?void 0:N.traceInfo}})}y||_(!0)},[u,n,e,y]),w=d.useCallback(()=>{var S,E,T,D,C,I,M,R,z,B,O,P,N;const U=n[e];if(U&&!y&&(!((S=s?.current)===null||S===void 0)&&S.duration)){v.current=((E=s?.current)===null||E===void 0?void 0:E.currentTime)||0;const te=((D=(T=s.current)===null||T===void 0?void 0:T.duration)!==null&&D!==void 0?D:0).toFixed(2),ne=((I=(C=s.current)===null||C===void 0?void 0:C.currentTime)!==null&&I!==void 0?I:0).toFixed(2);u?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(R=(M=U.video)===null||M===void 0?void 0:M.itemId)!==null&&R!==void 0?R:"",contentName:(B=(z=U.video)===null||z===void 0?void 0:z.title)!==null&&B!==void 0?B:"",playType:"0",startTime:ne,videoDuration:te,contentTags:JSON.stringify((P=(O=U.video)===null||O===void 0?void 0:O.tags)!==null&&P!==void 0?P:[]),position:U.position,contentFormat:"video",traceInfo:(N=U.video)===null||N===void 0?void 0:N.traceInfo}})}setTimeout(()=>{var te,ne;!s?.current||((te=s?.current)===null||te===void 0?void 0:te.readyState)<2||(ne=s.current)===null||ne===void 0||ne.play()},0)},[e,u,n,y]),x=d.useCallback(S=>()=>{var E,T,D,C,I,M;if(!s?.current||((E=s?.current)===null||E===void 0?void 0:E.readyState)<2||!y)return;const R=(T=s.current)===null||T===void 0?void 0:T.paused;switch(S){case"start":if(!R)return;(D=s.current)===null||D===void 0||D.play(),a(!1);break;case"pause":if(R)return;(C=s.current)===null||C===void 0||C.pause(),a(!0);break;default:R?(I=s.current)===null||I===void 0||I.play():(M=s.current)===null||M===void 0||M.pause(),a(!R);break}},[n,e,y]),A=d.useCallback(()=>{var S,E,T,D,C,I,M,R,z,B,O,P,N;const U=n[e],te=((E=(S=s.current)===null||S===void 0?void 0:S.duration)!==null&&E!==void 0?E:0).toFixed(2),ne=((D=(T=s.current)===null||T===void 0?void 0:T.currentTime)!==null&&D!==void 0?D:0).toFixed(2);if(!((C=s?.current)===null||C===void 0)&&C.duration){const de=(((I=s?.current)===null||I===void 0?void 0:I.currentTime)-v.current).toFixed(2);u?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(R=(M=U.video)===null||M===void 0?void 0:M.itemId)!==null&&R!==void 0?R:"",contentName:(B=(z=U.video)===null||z===void 0?void 0:z.title)!==null&&B!==void 0?B:"",endTime:ne,videoDuration:te,playDuration:de,contentTags:JSON.stringify((P=(O=U.video)===null||O===void 0?void 0:O.tags)!==null&&P!==void 0?P:[]),position:U.position,contentFormat:"video",traceInfo:(N=U.video)===null||N===void 0?void 0:N.traceInfo}})}},[n,e,u]);d.useEffect(()=>{var S,E,T,D,C,I;if(n.length<=0||!s.current)return;const M=(S=s.current)===null||S===void 0?void 0:S.paused;if(a(!1),!b){!M&&((E=s?.current)===null||E===void 0?void 0:E.readyState)>=2&&((T=s.current)===null||T===void 0||T.pause());return}if(s.current.src){if(((D=s?.current)===null||D===void 0?void 0:D.readyState)<2)return;s.current.play()}else{const R=t.video.url;s.current.src=R,s.current.setAttribute("x5-playsinline","true"),s.current.setAttribute("webkit-playsinline","true")}return(C=s.current)===null||C===void 0||C.addEventListener("canplay",w),(I=s.current)===null||I===void 0||I.addEventListener("playing",g),()=>{var R,z;(R=s.current)===null||R===void 0||R.removeEventListener("canplay",w),(z=s.current)===null||z===void 0||z.removeEventListener("playing",g)}},[n,w,g,b,y,t.video]),d.useEffect(()=>{var S,E,T,D;if(!s?.current||((S=s?.current)===null||S===void 0?void 0:S.readyState)<2)return;const C=(E=s.current)===null||E===void 0?void 0:E.paused;b&&(!C&&h?(T=s.current)===null||T===void 0||T.pause():h||(D=s.current)===null||D===void 0||D.play())},[h,b]),d.useEffect(()=>{if(!b)return;const S=x("start"),E=x("pause");return $e.on(De.PAGE_DID_SHOW,S),$e.on(De.PAGE_DID_HIDE,E),()=>{$e.off(De.PAGE_DID_SHOW,S),$e.off(De.PAGE_DID_HIDE,E)}},[x,b]);const k=d.useMemo(()=>c?.placeholder_image?d.createElement("img",{hidden:y,style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:c?.placeholder_image}):null,[y,c?.placeholder_image]);return d.useEffect(()=>{const S=()=>{var E,T;l===e&&(!((E=t?.video)===null||E===void 0)&&E.url)&&(!((T=s?.current)===null||T===void 0)&&T.src)&&!r&&x("pause")()};return window.addEventListener("beforeunload",S),()=>{window.removeEventListener("beforeunload",S)}},[l,e,t,s,x,r]),t.video?d.createElement("div",{className:"video-container",key:t.video.itemId,onClick:x(),style:{position:"relative",width:"100%",height:i}},d.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",ref:s,poster:c?.placeholder_image,muted:!0,controls:!1,playsInline:!0,preload:"auto",onPause:A,onEnded:p}),k,d.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:m})):null};var Ml=d.memo(Ol);const Nl=({defaultValue:t,activeIcon:e,unactiveIcon:i,onChange:n,style:o})=>{const[l,r]=d.useState(t),a=s=>{s.stopPropagation();const u=!l;r(u),n?.(u)};return d.createElement("button",{style:o,className:"pb-toggle-button",onClick:a},d.createElement("img",{className:"pb-toggle-button-icon",src:l?e:i}))};var kl=d.memo(Nl);const Ll=({imageUrl:t})=>{const[e,i]=d.useState(!0);me(),d.useEffect(()=>{setTimeout(()=>{i(!1)},2e3)},[]);const n=Le("/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png"),o=d.useMemo(()=>e?"pb-fadeIn":"pb-fadeOut",[e]);return d.createElement("div",{hidden:!e,className:`pb-finger-wrap ${o}`},d.createElement("img",{src:t||n}))},Rl=t=>{const{src:e,height:i,width:n}=t,o=d.useRef(null),{sxpParameter:l}=Q();return d.createElement("div",{style:{overflow:"hidden",height:i,width:"100%",position:"relative"}},d.createElement("img",{ref:o,loading:"lazy",src:e??l?.placeholder_image,style:{height:"100%",width:"100%",objectFit:"cover"}}))},zl=({imgUrls:t,width:e,height:i,rec:n,index:o,onReportViewImageEnd:l,onViewImageStartEvent:r})=>{const{isActive:a}=di(),{sxpParameter:s,openHashtag:u}=Q(),[c,f]=d.useState(!1);return d.useEffect(()=>{c&&a?u?l(n):r(o):f(!0)},[n,a,l,u,o,r,c]),a?d.createElement(Ge,{defaultValue:0,direction:"horizontal",modules:[mt,ht],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet"},height:i,loop:!0,autoplay:{delay:3e3}},t?.map(h=>d.createElement(Ce,{key:h},d.createElement(Rl,{src:h,width:e,height:i})))):d.createElement("img",{src:s?.placeholder_image,style:{width:e,height:i,objectFit:"cover"}})};var Fl=d.memo(zl);const jl=({tags:t,itemId:e,itemType:i,index:n,rec:o})=>{const[l,r]=d.useState(!1),{setWaterFallData:a,setOpenHashtag:s,setCacheActiveIndex:u,waterFallData:c,setIsFromHashtag:f}=Q(),h=v=>{c?f?.(!0):u?.(n),a?.(i?{hashTag:v,itemId:e,itemType:i,rec:o}:{hashTag:v,rec:o}),s?.(!0)};return d.useMemo(()=>t.length<=6?null:d.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>r(!l)},l?"show less":"show more"),[l,t]),d.createElement("div",{className:"clc-sxp-bottom-hashtag"},d.createElement(st,null,t?.map((v,y)=>d.createElement(Ce,{key:y,hidden:l?!1:y>=6,className:"clc-sxp-bottom-hashtag-item",onClick:()=>h(v)},`#${v}`))))};var Bl=d.memo(jl);const Gl=({icon:t,styles:e,onClose:i})=>{const{waterFallData:n,setOpenHashtag:o}=Q();return d.createElement("div",{className:"clc-sxp-nav",style:e},d.createElement("img",{className:"clc-sxp-nav-left",src:t,alt:"",onClick:i}),d.createElement("div",{className:"clc-sxp-nav-title"},`#${n?.hashTag}`))};var pi=d.memo(Gl),$l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAbtJREFUeF7t2DFKxFAQxvHv6xTxCoKNiAuCna2X2NY7eAE9hYdwj2BjZ2ulYLW9pQcYDWyxBIK7ZN7MNyapk/D+v8zC20dM/OLE+zEDzBMwcYH5J1BpAMzsAMAJyU+vdZeZADN7AHAH4BjAC8kbD4QSAJv4+17wFcm3sQjyAGbWhXdff/takzwdG989Lw0wEN+te0ly9a8BIuJlJyAqXhIgMl4OIDpeCiAjXgYgK14CIDM+HSA7PhVgYHvrusnZZaOUshNUiU+ZAKX4cAC1+FAAxfgwANX4EADl+OYA6vFNASrENwOoEt8EoFK8O0C1eFcAMzsE8AXgqLcHdzvA3GVvv+89bv8FzOwcwEdvASuSy30XFXm/G0C3aDN7BXBdCcEb4ALAE4BFFQRXgM0UlEJwB6iG0ASgEkIzgCoITQEqIDQHUEcIAVBGCANQRQgFUEQIB1BDSAFQQkgDUEFIBVBASAfIRpAAyESQAchCkALIQJADiEaQBIhEkAWIQpAG+ANh8Xvk/j72CF0eYABhDeCS5PckALYQbgGcAXgm+Tg2vnu+xAR4hA69YwZoqVvh3fMEVPhKLdc4+Qn4AXwYBFBN2dYpAAAAAElFTkSuQmCC";function Pt(t){return d.memo(function(e){const{$store:i}=Pi(),n=l=>{let r=l;const a=l.match(/{{.*?}}/g);return a?.length&&a.forEach(s=>{s.replace(/{{\s*([\w.]+)\s*}}/g,(u,c)=>{if(c){const f=le.get(i,c);return r=r.replace(s,f),f}})}),r},o=d.useMemo(()=>{var l,r,a;const{bindDatas:s}=e,u=re(e,["bindDatas"]);if((l=s?.forEach)===null||l===void 0||l.call(s,c=>{if(c?.propKey&&c?.dataPath){const{propKey:f,dataPath:h}=c;h.replace(/{{\s*([\w.]+)\s*}}/g,(v,y)=>{var _,b;if(y){const p=(b=(_=le.get(i,y))!==null&&_!==void 0?_:e[f])!==null&&b!==void 0?b:"";return u[f]=p,p}})}}),u){u.eventMap={};const c=le.cloneDeep(u.event)||{};for(const f in c)if(Object.prototype.hasOwnProperty.call(c,f))try{c[f].value=n(c[f].value),u.eventMap[f]=new Function(c[f].value)}catch{}}return!((a=(r=u?.event)===null||r===void 0?void 0:r.onClick)===null||a===void 0)&&a.linkType&&(u.style.cursor="pointer"),u},[i,e]);return d.createElement(t,Object.assign({},o,o.eventMap))})}const Vl=({rec:t,index:e,tempMap:i,resolver:n})=>{const{schema:o}=me(),l=d.useMemo(()=>{var r,a,s,u,c,f,h,v,y,_,b,p,m,g,w,x,A,k,S,E,T,D,C,I,M,R,z;if(!t?.video)return null;let B=null;!((a=(r=t?.video)===null||r===void 0?void 0:r.bindProducts)===null||a===void 0)&&a.length?B="\u591A\u5546\u54C1CTA":!((s=t?.video)===null||s===void 0)&&s.bindProduct?B="\u5546\u54C1CTA":B=(c=(u=t?.video)===null||u===void 0?void 0:u.bindCta)===null||c===void 0?void 0:c.itemId;const O=i?.[B];if(((f=O?.item)===null||f===void 0?void 0:f.type)==="CommodityDiro"&&!(!((h=t?.video)===null||h===void 0)&&h.bindProduct)||((v=O?.item)===null||v===void 0?void 0:v.type)==="Commodity"&&!(!((y=t?.video)===null||y===void 0)&&y.bindProduct)||((_=O?.item)===null||_===void 0?void 0:_.type)==="CommodityDiroNew"&&!(!((b=t?.video)===null||b===void 0)&&b.bindProduct)||((p=O?.item)===null||p===void 0?void 0:p.type)==="MultiCommodity"&&!(!((g=(m=t?.video)===null||m===void 0?void 0:m.bindProducts)===null||g===void 0)&&g.length)||((w=O?.item)===null||w===void 0?void 0:w.type)==="MultiCommodityDiro"&&!(!((A=(x=t?.video)===null||x===void 0?void 0:x.bindProducts)===null||A===void 0)&&A.length)||((k=O?.item)===null||k===void 0?void 0:k.type)==="MultiCommodityDiroNew"&&!(!((E=(S=t?.video)===null||S===void 0?void 0:S.bindProducts)===null||E===void 0)&&E.length))return null;if(O&&n){const P=Pt(n[(T=O?.item)===null||T===void 0?void 0:T.type]);return d.createElement(P,Object.assign({style:Object.assign(Object.assign({},(D=O?.item)===null||D===void 0?void 0:D.style),{zIndex:50,marginLeft:"20px"}),textStyle:(C=O?.item)===null||C===void 0?void 0:C.textStyle,bindDatas:(M=(I=O?.item)===null||I===void 0?void 0:I.bindDatas)!==null&&M!==void 0?M:[]},(R=O?.item)===null||R===void 0?void 0:R.props,{event:((z=O?.item)===null||z===void 0?void 0:z.event)||{},schema:o,id:O?.id,key:O?.id,recData:t}))}else return null},[t,n,i,o]);return d.createElement(d.Fragment,null,l)};var Hl=d.memo(Vl);const Ul=t=>{const{rec:e,index:i,list:n,reportTagsView:o}=t,{swiperRef:l,setRtcList:r,setOpenHashtag:a,bffEventReport:s,sxpParameter:u}=Q(),[c,f]=d.useState(!1),h=d.useRef(null),v=d.useRef(null),y=d.useRef(null),[_,b]=d.useState(""),p=d.useMemo(()=>{var A,k,S,E,T,D,C,I,M,R,z,B;return!((A=e?.video)===null||A===void 0)&&A.cover?(k=e?.video)===null||k===void 0?void 0:k.cover:!((S=e?.video)===null||S===void 0)&&S.url?(f(!0),(E=e?.video)===null||E===void 0?void 0:E.url):!((D=(T=e?.video)===null||T===void 0?void 0:T.imgUrls)===null||D===void 0)&&D.length?(I=(C=e?.video)===null||C===void 0?void 0:C.imgUrls)===null||I===void 0?void 0:I[0]:!((R=(M=e?.product)===null||M===void 0?void 0:M.homePage)===null||R===void 0)&&R.length?(B=(z=e?.product)===null||z===void 0?void 0:z.homePage)===null||B===void 0?void 0:B[0]:u?.bottom_image||""},[e,u?.bottom_image]),m=d.useMemo(()=>{var A,k;return((A=e?.product)===null||A===void 0?void 0:A.title)||((k=e?.video)===null||k===void 0?void 0:k.title)||null},[e]),g=d.useMemo(()=>{var A,k,S,E,T,D,C,I,M;return!((A=e?.product)===null||A===void 0)&&A.currency&&(!((k=e?.product)===null||k===void 0)&&k.price)?`${(D=(T=(E=(S=e?.product)===null||S===void 0?void 0:S.currency)===null||E===void 0?void 0:E.split("-")[1])===null||T===void 0?void 0:T.toUpperCase())!==null&&D!==void 0?D:""}${(M=(I=(C=e?.product)===null||C===void 0?void 0:C.price)===null||I===void 0?void 0:I.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&M!==void 0?M:""}`:null},[e]);d.useEffect(()=>{const A=new IntersectionObserver(k=>{k.forEach(S=>{if(S.isIntersecting){if(h.current===null||p==="")return;c&&_?h.current.src=_:h.current.src=p,A.unobserve(h.current)}})});return A.observe(h.current),()=>{A.disconnect()}},[p,c,_]);const w=(A,k,S)=>{const E=A/k;return S/E};d.useEffect(()=>{const A=v?.current;A===null||p===""||!c||(A.src=p,A.currentTime=1,A.crossOrigin="anonymous",A.onloadeddata=()=>{const k=y?.current;if(!k)return;const S=k.getContext("2d"),E=window?.innerWidth/2,T=w(A.videoWidth,A.videoHeight,E);k.height=T,k.width=E,S?.drawImage(A,0,0,k.width,k.height),b(k.toDataURL()),A.remove(),k.remove()})},[p,c]);const x=()=>{o(),r?.(n),setTimeout(()=>{var A;(A=l?.current)===null||A===void 0||A.swiper.slideTo(i,0,!1),a?.(!1)},0)};return d.createElement("div",{className:"list-content-listItem",key:i,onClick:x},d.createElement("div",{className:"list-content-listItem-picture"},c&&d.createElement("div",{style:{display:"none"}},d.createElement("video",{ref:v,crossOrigin:"anonymous",className:"list-content-listItem-picture-img"}),d.createElement("canvas",{ref:y})),d.createElement("img",{className:"list-content-listItem-picture-img",loading:"lazy",ref:h})),d.createElement("div",{className:"list-content-listItem-info"},d.createElement("div",{className:`list-content-listItem-info-title ${g?"list-content-listItem-info-nowrap":""}`},m&&m),d.createElement("div",{className:"list-content-listItem-info-price",hidden:!g},g)))};function Wl({reportTagsView:t}){var e,i,n,o,l,r;const{waterFallData:a,getRecommendVideos:s,hashTagSize:u,loadingImage:c}=Q(),[f,h]=d.useState(),[v,y]=d.useState(),[_,b]=d.useState(!1),p=d.useRef(null),[m,g]=d.useState(!1);d.useCallback(()=>{m||(g(!0),a&&s?.({hashTag:a?.hashTag,"itemFilter.itemId":a?.itemId,"itemFilter.itemType":a?.itemType}).then(x=>{var A;h(f?.concat((A=x?.recList)!==null&&A!==void 0?A:[])),g(!1)}))},[a,s,f,m]),d.useEffect(()=>{b(!0),a&&s?.({hashTag:a?.hashTag,"itemFilter.itemId":a?.itemId,"itemFilter.itemType":a?.itemType,defaultSize:u}).then(x=>{var A,k;y(x),h((k=(A=x?.recList)===null||A===void 0?void 0:A.filter(S=>S?.video!==null||S?.product!==null))!==null&&k!==void 0?k:[]),b(!1)})},[a,s,u]);const w=()=>{var x,A;!((x=v?.tag)===null||x===void 0)&&x.link&&(t(),window.location.href=(A=v?.tag)===null||A===void 0?void 0:A.link)};return d.createElement(d.Fragment,null,_?d.createElement("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},d.createElement("img",{width:64,height:64,src:c,alt:"loading...",style:{objectFit:"contain"}})):d.createElement("div",{className:"list"},d.createElement("div",{className:"list-scroll",ref:p,style:{bottom:!((e=v?.tag)===null||e===void 0)&&e.link?"100px":0}},d.createElement("div",{className:"list-info"},(i=v?.tag)===null||i===void 0?void 0:i.info),d.createElement("div",{hidden:!(!((n=v?.tag)===null||n===void 0)&&n.link),className:"list-collection",onClick:w},((o=v?.tag)===null||o===void 0?void 0:o.linkTitle)||"Shop the collection"),d.createElement("div",{className:"list-content"},f?.map((x,A)=>d.createElement(Ul,{key:A,index:A,rec:x,list:f,reportTagsView:t}))),d.createElement("div",{hidden:!m,style:{textAlign:"center"}},"loading...")),d.createElement("div",{className:"list-bottom",hidden:!(!((l=v?.tag)===null||l===void 0)&&l.link)},d.createElement("button",{className:"list-bottom-btn",onClick:w},((r=v?.tag)===null||r===void 0?void 0:r.linkTitle)||"Shop the collection"))))}var Xl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAaZJREFUeF7t2jFKBEEQRuG3mSJeQTARURDMTL2EqXfwAnoKD6FHMDEzNVIw2tzQC2gFggyDrExX1V92T7wz9PumFnqbXdH5teq8nwEwJqBzgfEVKDYAW8Ae8NZq3ZUm4Aa4AnaBR+C8BUIVAIu/ngSfAs9LESoAWLgB/LzWwP7SeLtfHWAu3tZ9Adz/dwD3eOUJCIlXBQiLVwQIjVcDCI9XAkiJVwFIi1cASI3PBpjb3jbd5GyyUcraCUrEZ02ATHwGgFR8NIBcfCSAZHwUgGx8BIB0vDeAfLwnQIl4L4Ay8R4ApeJbA2wD78DOZA/e7ABzk739Xz/T8rfAIfA6WYCd3BqA7NUSwCKfgLNKCK0BjoC7rzP74yoIrQGsuxSCB0ApBC+AMgieACUQvAHkESIApBGiAGQRIgEkEaIB5BAyAKQQsgBkEDIBJBCyAdIRFABSEVQA0hCUAFIQ1ADCERQBQhFUAcIQlAFCENQBfkOwg9eXpeftFQDmEOzv8ifARy8A3wiXwAHwANwujbf7q0xAi9bZZwwAN9oiDx4TUORFuS2z+wn4BAiAaEHnKChjAAAAAElFTkSuQmCC";const Yl=()=>{const{waterFallData:t,setOpenHashtag:e,openHashtag:i,swiperRef:n,setWaterFallData:o,cacheRtcList:l,setRtcList:r,cacheActiveIndex:a,rtcList:s,setCacheRtcList:u,setIsFromHashtag:c,isFromHashtag:f,bffEventReport:h}=Q();d.useRef(null);const v=d.useRef(null),[y,_]=d.useState();d.useEffect(()=>{const w=document.getElementById("sxp-render"),x=document.getElementById("water-fall");x?v.current=x:(v.current=document.createElement("div"),v.current.setAttribute("id","water-fall"),w?.appendChild(v.current))},[]);const b=()=>{const w=le.isEqual(s,l);!w&&l&&l?.length&&r?.(l),g(),o?.(void 0),c?.(!1),setTimeout(()=>{var x,A;w||(A=(x=n?.current)===null||x===void 0?void 0:x.swiper)===null||A===void 0||A.slideTo(a,0,!1),e?.(!1)},0)},[p,m]=d.useState();d.useEffect(()=>{t&&m(t)},[t]);const g=d.useCallback(()=>{var w,x,A,k,S,E;const T=p?.rec;if(!T)return;let D="";f?D="hashTagPage":!((w=T?.video)===null||w===void 0)&&w.url?D="videoPage":!((A=(x=T?.video)===null||x===void 0?void 0:x.imgUrls)===null||A===void 0)&&A.length&&(D="imagePage"),h?.({eventInfo:{relatedContentId:(k=T?.video)===null||k===void 0?void 0:k.itemId,position:T?.position,contentTags:JSON.stringify((S=T?.video)===null||S===void 0?void 0:S.tags),traceInfo:JSON.stringify((E=T?.video)===null||E===void 0?void 0:E.traceInfo),hashTags:JSON.stringify([p?.hashTag]),fromKName:D,fromKPage:location?.href,timeOnSite:Math.floor((new Date-y)/1e3)+"",eventSubject:"clickTagsViewContents",eventDescription:"User click tags view contents"}})},[p,h,y,f]);return d.useEffect(()=>{i&&_(new Date)},[i]),d.useEffect(()=>{const w=()=>{_(new Date)};return window.addEventListener("pageshow",w),()=>{window.removeEventListener("pageshow",w)}},[]),v.current?Mt.createPortal(d.createElement("div",{className:"waterfall",style:{display:i?"block":"none"}},d.createElement(pi,{icon:Xl,styles:{top:"32px"},onClose:b}),d.createElement(Wl,{reportTagsView:g})),v.current):null};var ql=d.memo(Yl);const Jl=({nudge:t})=>d.createElement("div",{hidden:!t?.isOpen,className:"clc-sxp-bottom-nudge",style:{marginBottom:t?.marginBottom,width:t?.size.width,height:t?.size.height,backgroundColor:t?.backgroundColor,borderRadius:t?.borderRadius}},t?.icon?d.createElement("img",{src:t.icon,style:{height:"100%",objectFit:"cover"}}):null,d.createElement("p",{style:Object.assign({},t?.textStyle)},t?.content)),fi=({globalConfig:t,descStyle:e,containerHeight:i=window.innerHeight,containerWidth:n=window.innerWidth,tempMap:o,resolver:l,data:r=[],ctaType:a,tipText:s,nudge:u,_schema:c})=>{var f,h,v,y;const{schema:_}=me(),[b,p]=d.useState(0),m=d.useRef(0),[g,w]=d.useState(!1),[x,A]=d.useState(!0),k=d.useRef(),S=d.useRef(),[E,T]=d.useState(!1),{loadVideos:D,bffEventReport:C,loading:I,setPopupDetailData:M,ctaEvent:R,swiperRef:z,waterFallData:B,setOpenHashtag:O,appDomain:P,openHashtag:N,loadingImage:U,isFromHashtag:te,popupDetailData:ne}=Q(),{productView:de}=qe(),j=d.useMemo(()=>r.length>0&&!I,[r,I]),F=d.useCallback(()=>{if(r.length<=0)return;H();const L=location.search.slice(1),$=Ot.parse(L.replace(/\+/g,"%2B"));for(const X in $)$[X]=$[X].replace(/%2B/g,"+");const G=X=>{var J;return(J=$[X])!==null&&J!==void 0?J:""};C?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:G("utm_source"),utmMedium:G("utm_medium"),utmCampaign:G("utm_campaign"),utmId:G("utm_id"),utmContent:G("utm_content"),enterTime:`${Date.now()}`,requestId:null}}),w(!0)},[C,r.length]),H=()=>{k.current=new Date,S.current=new Date,Oi()};d.useEffect(()=>{g||F()},[F,g]),d.useEffect(()=>{var L;const $=r?.findIndex(G=>{var X,J,Z,W,q,ie,oe,ye,we;return a==="\u591A\u5546\u54C1CTA"?((X=G?.video)===null||X===void 0?void 0:X.bindProducts)&&((Z=(J=G?.video)===null||J===void 0?void 0:J.bindProducts)===null||Z===void 0?void 0:Z.length)>0:a==="\u5546\u54C1CTA"?(W=G?.video)===null||W===void 0?void 0:W.bindProduct:((ie=(q=G?.video)===null||q===void 0?void 0:q.bindCta)===null||ie===void 0?void 0:ie.itemId)===a&&(((oe=G?.video)===null||oe===void 0?void 0:oe.url)||((we=(ye=G?.video)===null||ye===void 0?void 0:ye.imgUrls)===null||we===void 0?void 0:we.length))})||0;(L=z?.current)===null||L===void 0||L.swiper.slideTo($)},[a,z]),d.useEffect(()=>{const L=r?.[b],$=()=>{var G,X,J,Z,W,q,ie,oe,ye,we,Me,Ne,We,rt,at;if(document.visibilityState==="hidden"){$e.emit(De.PAGE_DID_HIDE,L),Ee(L),Oe(L);let ke="";ne&&(!((X=(G=L?.video)===null||G===void 0?void 0:G.bindProducts)===null||X===void 0)&&X.length||!((J=L?.video)===null||J===void 0)&&J.bindProduct)?ke="pdpPage":ne&&o?.[(q=(W=(Z=L.video)===null||Z===void 0?void 0:Z.bindCta)===null||W===void 0?void 0:W.itemId)!==null&&q!==void 0?q:""].item.type==="Appoint"?ke="formPage":te?ke="hashTagPage":!((ie=L?.video)===null||ie===void 0)&&ie.url?ke="videoPage":!((oe=L?.video)===null||oe===void 0)&&oe.imgUrls&&(!((we=(ye=L?.video)===null||ye===void 0?void 0:ye.imgUrls)===null||we===void 0)&&we.length)?ke="imagePage":L?.product&&(ke="productPage"),C?.({eventInfo:{sessionDuration:Math.floor((new Date-k.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",relatedContentId:(Me=L?.video)===null||Me===void 0?void 0:Me.itemId,relatedProductId:(Ne=L?.product)===null||Ne===void 0?void 0:Ne.itemId,position:L?.position,fromKName:ke,fromKPage:location?.href,relatedCtatId:(at=(rt=(We=L.video)===null||We===void 0?void 0:We.bindCta)===null||rt===void 0?void 0:rt.itemId)!==null&&at!==void 0?at:""}})}else document.visibilityState==="visible"&&(F(),ze(b),$e.emit(De.PAGE_DID_SHOW,L))};return document.addEventListener("visibilitychange",$),()=>{document.removeEventListener("visibilitychange",$)}},[b,C,k,r,F,ne,te,o]);const Y=d.useMemo(()=>t?.logoUrl&&t?.isShowLogo?i-45:i,[t,i]),K=d.useMemo(()=>t?.logoUrl&&t?.isShowLogo?d.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:t?.color}},d.createElement("img",{src:t?.logoUrl,alt:"logo"})):null,[t]),ee=d.useCallback((L,$)=>{var G,X,J,Z;return!((G=L.video)===null||G===void 0)&&G.url?d.createElement(Ml,{rec:L,index:$,muted:x,data:r,height:Y,activeIndex:b}):!((X=L.video)===null||X===void 0)&&X.imgUrls?d.createElement(Fl,{key:L.video.itemId,imgUrls:L.video.imgUrls,width:n,height:Y,rec:L,index:$,onReportViewImageEnd:Ee,onViewImageStartEvent:ze}):L.product&&Array.isArray(t?.productPost)&&((J=t?.productPost)===null||J===void 0?void 0:J.length)>0?(Z=t?.productPost)===null||Z===void 0?void 0:Z.map((W,q)=>{var ie,oe,ye,we,Me,Ne;const We=Pt(l[(ie=W?.item)===null||ie===void 0?void 0:ie.type]);return d.createElement(We,Object.assign({key:q,textStyle:(oe=W?.item)===null||oe===void 0?void 0:oe.textStyle,bindDatas:(we=(ye=W?.item)===null||ye===void 0?void 0:ye.bindDatas)!==null&&we!==void 0?we:[]},(Me=W?.item)===null||Me===void 0?void 0:Me.props,{event:((Ne=W?.item)===null||Ne===void 0?void 0:Ne.event)||{},schema:_,id:W?.id,viewTime:S.current,rec:L,isPost:!0,tipText:s,style:{height:"100%",overflow:"auto"}}))}):null},[n,r,Y,x,b,t?.productPost,S,s,l,_]),pe=d.useCallback((L,$)=>{var G,X,J,Z,W,q,ie;return L.video?d.createElement(d.Fragment,null,((G=L.video)===null||G===void 0?void 0:G.title)&&d.createElement("div",{className:"clc-sxp-bottom-shadow"}),d.createElement("div",{className:"clc-sxp-bottom"},d.createElement(Jl,{nudge:u}),d.createElement("div",{className:"clc-sxp-bottom-card"},d.createElement(Hl,{rec:L,index:$,tempMap:o,resolver:l})),d.createElement("div",{className:"clc-sxp-bottom-text"},d.createElement(It,{isPost:!0,foldText:s?.foldText,unfoldText:s?.unfoldText,text:(J=(X=L.video)===null||X===void 0?void 0:X.title)!==null&&J!==void 0?J:"",style:e})),d.createElement(Bl,{index:b,tags:(W=(Z=L?.video)===null||Z===void 0?void 0:Z.hashTags)!==null&&W!==void 0?W:[],itemId:(q=L?.video)===null||q===void 0?void 0:q.itemId,itemType:!((ie=L.video)===null||ie===void 0)&&ie.url?"VIDEO":null,rec:L}))):null},[e,b,o,l,s,u]),fe=d.useCallback(L=>{var $,G;if(!t?.isShowLike)return;let X=($=t?.likeIconY)!==null&&$!==void 0?$:400;return B&&X<40&&(X+=40),L.video?d.createElement(Dl,{key:L.position,activeIcon:t?.likeIcon,unActicveIcon:t?.unlikeIcon,active:L.isCollected,recData:L,className:"clc-sxp-like-button",style:{top:X,right:(G=t?.likeIconX)!==null&&G!==void 0?G:0}}):null},[t,B]),Ee=L=>{var $,G,X,J,Z,W;if(!(!(($=L.video)===null||$===void 0)&&$.url)&&(!((G=L.video)===null||G===void 0)&&G.imgUrls)){const q=Date.now(),ie=(q-m.current)/1e3;C?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(J=(X=L.video)===null||X===void 0?void 0:X.itemId)!==null&&J!==void 0?J:"",contentName:(Z=L.video.title)!==null&&Z!==void 0?Z:"",imageEndTime:`${q}`,playDuration:`${ie}`,contentTags:JSON.stringify((W=L.video.tags)!==null&&W!==void 0?W:[]),position:L.position,contentFormat:"image",traceInfo:L.video.traceInfo}})}},Ve=L=>{var $,G,X,J,Z,W,q,ie;S.current=new Date;const oe=r[L.previousIndex];oe&&(L.previousIndex-L.activeIndex<0?(C?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",relatedContentId:(G=($=oe.video)===null||$===void 0?void 0:$.itemId)!==null&&G!==void 0?G:"",relatedProductId:(J=(X=oe.product)===null||X===void 0?void 0:X.itemId)!==null&&J!==void 0?J:"",requestId:null}}),Ee(oe)):(C?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",relatedContentId:(W=(Z=oe.video)===null||Z===void 0?void 0:Z.itemId)!==null&&W!==void 0?W:"",relatedProductId:(ie=(q=oe.product)===null||q===void 0?void 0:q.itemId)!==null&&ie!==void 0?ie:"",requestId:null}}),Ee(oe)),Oe(oe))},Oe=L=>{var $,G,X;!(!(($=L?.video)===null||$===void 0)&&$.url)&&!(!((G=L?.video)===null||G===void 0)&&G.imgUrls)&&L?.product&&de(L,L.product,(X=L?.product)===null||X===void 0?void 0:X.bindCta,S.current)};d.useEffect(()=>{const L=r[b];N&&Oe(L)},[N,r,b]);const ze=L=>{var $,G,X,J,Z,W;const q=r[L];if(!(!(($=q?.video)===null||$===void 0)&&$.url)&&(!((G=q?.video)===null||G===void 0)&&G.imgUrls)){const ie=Date.now();m.current=ie,C?.({eventInfo:{eventSubject:"viewImageCarouselStart",eventDescription:"User start view the image carousel",contentId:(J=(X=q.video)===null||X===void 0?void 0:X.itemId)!==null&&J!==void 0?J:"",contentName:(Z=q.video.title)!==null&&Z!==void 0?Z:"",imageStartTime:`${ie}`,contentTags:JSON.stringify((W=q.video.tags)!==null&&W!==void 0?W:[]),position:q.position,contentFormat:"image",traceInfo:q.video.traceInfo}})}},Ie=d.useMemo(()=>{const L=r?.map(($,G)=>b===G||G-1===b||G+1===b?$:null);return B?L:L.concat([{loading:!0}])},[r,b,B]),He=d.useMemo(()=>I?d.createElement("div",{style:{height:Y,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},d.createElement("img",{width:64,height:64,src:U,alt:"loading...",style:{objectFit:"contain"}})):Ie?.map((L,$)=>d.createElement(Ce,{key:$,virtualIndex:$},L&&d.createElement(d.Fragment,null,L?.loading?d.createElement("div",{style:{height:Y,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},d.createElement("img",{width:64,height:64,src:U,alt:"loading...",style:{objectFit:"contain"}})):d.createElement(d.Fragment,null,ee(L,$),pe(L,$),fe(L))))),[n,r,Y,I,pe,ee,Ie,U]),Ue=Le("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),ce=Le("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png");return d.createElement("div",{id:"sxp-render",className:"clc-sxp-container"},B&&d.createElement(pi,{icon:$l,styles:{background:"rgba(0,0,0,.3)",color:"#fff"},onClose:()=>{O?.(!0)}}),K,j?d.createElement(Ll,{imageUrl:t?.swipeTipIcon}):null,d.createElement(Ge,{ref:z,onActiveIndexChange:L=>{p(L.activeIndex),!N&&(Ve(L),!B&&L?.activeIndex+2>=r?.length&&(E||(T(!0),D?.(Math.ceil(b/10)+1).then(()=>{T(!1)}))))},direction:"vertical",height:Y},d.createElement(kl,{style:{position:"fixed",right:(f=t?.muteIconX)!==null&&f!==void 0?f:0,visibility:!((v=(h=r?.[b])===null||h===void 0?void 0:h.video)===null||v===void 0)&&v.url?"visible":"hidden",bottom:(y=t?.muteIconY)!==null&&y!==void 0?y:23,zIndex:999},defaultValue:x,activeIcon:t?.unMuteIcon?t?.unMuteIcon:Ue,unactiveIcon:t?.muteIcon?t?.muteIcon:ce,onChange:A}),He),d.createElement(ql,null))},Kl=()=>{const{schema:t,resolver:e,popup:i,popupAni:n}=me(),{setPopupDetailData:o,popupDetailData:l,bffEventReport:r}=Q(),{productView:a}=qe(),[s,u]=d.useState(!1),c=d.useRef(null);d.useEffect(()=>{const v=()=>{c.current=new Date};return v(),window.addEventListener("pageshow",v),()=>{window.removeEventListener("pageshow",v)}},[]),d.useEffect(()=>{i&&i!==""&&(c.current=new Date,u(!0))},[i]);const f=()=>{var v,y,_;if(!i||i===""||!s||new Date-c.current<n?.duration)return;u(!1);const b=l,p=(v=b?.video)===null||v===void 0?void 0:v.bindProduct,m=(_=(y=b?.video)===null||y===void 0?void 0:y.bindProduct)===null||_===void 0?void 0:_.bindCta;p&&m&&a(b,p,m,c.current),setTimeout(()=>{window?.sxpPopup(""),o?.(null)},n?.duration)},h=d.useMemo(()=>{var v,y,_;return(_=(y=(v=t?.sxpPageConf)===null||v===void 0?void 0:v.globalConfig)===null||y===void 0?void 0:y.popupList)===null||_===void 0?void 0:_.map((b,p)=>{var m,g,w,x,A,k,S;if(b?.id===i){const E=Pt(e[(m=b?.item)===null||m===void 0?void 0:m.type]);return d.createElement(E,Object.assign({key:p,style:Object.assign(Object.assign({},(g=b?.item)===null||g===void 0?void 0:g.style),{width:"100%",height:"80vh",overflow:"auto"}),textStyle:(w=b?.item)===null||w===void 0?void 0:w.textStyle,bindDatas:(A=(x=b?.item)===null||x===void 0?void 0:x.bindDatas)!==null&&A!==void 0?A:[]},(k=b?.item)===null||k===void 0?void 0:k.props,{event:((S=b?.item)===null||S===void 0?void 0:S.event)||{},schema:t,id:b?.id}))}else return d.createElement(d.Fragment,null)})},[t,i,e]);return d.createElement(lt,{visible:!!s,onClose:f,padding:0,modalStyle:{position:"fixed"}},h)},Dt={};Object.values(vi).forEach(t=>{Dt[t.extend.type]=t});const Ql=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:n=20,loadingImage:o,appDomain:l})=>{var r,a,s,u,c,f;const h=d.useMemo(()=>{var v;return location?.search?(v=location?.search)===null||v===void 0?void 0:v.replace("?",""):""},[]);return d.createElement(Vt,{resolver:Dt,enableDataSource:!1,schema:t?.data,utmVal:h},d.createElement(jt,{utmVal:h,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(a=(r=t?.sxp_parameter)===null||r===void 0?void 0:r.personalized_recommend)!==null&&a!==void 0?a:e,defaultSize:(u=(s=t?.sxp_parameter)===null||s===void 0?void 0:s.default_recommend)!==null&&u!==void 0?u:i,hashTagSize:(f=(c=t?.sxp_parameter)===null||c===void 0?void 0:c.hash_tag_size)!==null&&f!==void 0?f:n,loadingImage:o,appDomain:l,render:({rtcList:v})=>{var y;return d.createElement(d.Fragment,null,d.createElement(fi,Object.assign({},(y=t?.data)===null||y===void 0?void 0:y.sxpPageConf,{data:v,resolver:Dt})),d.createElement(Kl,null))}}))};var Zl=d.memo(Ql);const mi=d.createContext({}),es=({children:t,data:e})=>{var i,n,o,l,r,a;return d.createElement(mi.Provider,{value:{sxpPrameter:{bottomImage:(i=e?.sxp_parameter)===null||i===void 0?void 0:i.bottom_image,defaultRecommend:(n=e?.sxp_parameter)===null||n===void 0?void 0:n.default_recommend,personalizedRecommend:(o=e?.sxp_parameter)===null||o===void 0?void 0:o.personalized_recommend,placeholderImage:(l=e?.sxp_parameter)===null||l===void 0?void 0:l.placeholder_image,hashTagSize:(r=e?.sxp_parameter)===null||r===void 0?void 0:r.hash_tag_size,loadingImage:(a=e?.sxp_parameter)===null||a===void 0?void 0:a.loading_image},appDomain:e?.appDomain}},t)};function ts(){return d.useContext(mi)}exports.EditorDataProvider=es,exports.Modal=lt,exports.SxpDataSourceProvider=jt,exports.SxpPageCore=Zl,exports.SxpPageRender=fi,exports.core=Fi,exports.default=Ai,exports.materials=vi,exports.useEditorDataProvider=ts;
|
9
7
|
//# sourceMappingURL=index.min.cjs.map
|