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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/index.cjs +2373 -823
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +115 -112
  4. package/dist/index.js +2374 -824
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +3 -3
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +3 -3
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +2373 -823
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +3 -3
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/SxpPageRender/Hashtag/index.d.ts +2 -1
  15. package/es/core/components/SxpPageRender/Hashtag/index.js +2 -2
  16. package/es/core/components/SxpPageRender/Navbar.d.ts +1 -0
  17. package/es/core/components/SxpPageRender/Navbar.js +3 -2
  18. package/es/core/components/SxpPageRender/WaterFall/List.d.ts +2 -1
  19. package/es/core/components/SxpPageRender/WaterFall/List.js +24 -14
  20. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.d.ts +2 -1
  21. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +13 -11
  22. package/es/core/components/SxpPageRender/WaterFall/index.d.ts +2 -1
  23. package/es/core/components/SxpPageRender/WaterFall/index.js +4 -3
  24. package/es/core/components/SxpPageRender/WaterFall/preview.json +1242 -0
  25. package/es/core/components/SxpPageRender/index.d.ts +2 -0
  26. package/es/core/components/SxpPageRender/index.js +5 -5
  27. package/es/core/context/EditorDataProvider.d.ts +3 -1
  28. package/es/core/context/EditorDataProvider.js +5 -2
  29. package/es/core/context/SxpDataSourceProvider.d.ts +2 -0
  30. package/es/core/context/SxpDataSourceProvider.js +7 -3
  31. package/es/materials/sxp/HashTag/index.d.ts +14 -0
  32. package/es/materials/sxp/HashTag/index.js +6 -0
  33. package/es/materials/sxp/HashTag/material.d.ts +2 -0
  34. package/es/materials/sxp/HashTag/material.js +52 -0
  35. package/es/materials/sxp/HashTag/settingRender.d.ts +122 -0
  36. package/es/materials/sxp/HashTag/settingRender.js +153 -0
  37. package/es/materials/sxp/index.d.ts +1 -0
  38. package/es/materials/sxp/index.js +1 -0
  39. package/es/materials/sxp/template/components/settingRender.d.ts +15 -0
  40. package/es/materials/sxp/template/components/settingRender.js +17 -0
  41. package/lib/core/components/SxpPageRender/Hashtag/index.d.ts +2 -1
  42. package/lib/core/components/SxpPageRender/Hashtag/index.js +2 -2
  43. package/lib/core/components/SxpPageRender/Navbar.d.ts +1 -0
  44. package/lib/core/components/SxpPageRender/Navbar.js +3 -2
  45. package/lib/core/components/SxpPageRender/WaterFall/List.d.ts +2 -1
  46. package/lib/core/components/SxpPageRender/WaterFall/List.js +23 -14
  47. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.d.ts +2 -1
  48. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +12 -11
  49. package/lib/core/components/SxpPageRender/WaterFall/index.d.ts +2 -1
  50. package/lib/core/components/SxpPageRender/WaterFall/index.js +4 -3
  51. package/lib/core/components/SxpPageRender/WaterFall/preview.json +1242 -0
  52. package/lib/core/components/SxpPageRender/index.d.ts +2 -0
  53. package/lib/core/components/SxpPageRender/index.js +5 -5
  54. package/lib/core/context/EditorDataProvider.d.ts +3 -1
  55. package/lib/core/context/EditorDataProvider.js +4 -1
  56. package/lib/core/context/SxpDataSourceProvider.d.ts +2 -0
  57. package/lib/core/context/SxpDataSourceProvider.js +7 -3
  58. package/lib/materials/sxp/HashTag/index.d.ts +14 -0
  59. package/lib/materials/sxp/HashTag/index.js +9 -0
  60. package/lib/materials/sxp/HashTag/material.d.ts +2 -0
  61. package/lib/materials/sxp/HashTag/material.js +56 -0
  62. package/lib/materials/sxp/HashTag/settingRender.d.ts +122 -0
  63. package/lib/materials/sxp/HashTag/settingRender.js +155 -0
  64. package/lib/materials/sxp/index.d.ts +1 -0
  65. package/lib/materials/sxp/index.js +1 -0
  66. package/lib/materials/sxp/template/components/settingRender.d.ts +15 -0
  67. package/lib/materials/sxp/template/components/settingRender.js +17 -0
  68. package/package.json +1 -1
@@ -1,7 +1,7 @@
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
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var oe=require("lodash"),Si=require("uuid"),Ti=require("pako"),d=require("react"),Rt=require("qs"),U=require("@emotion/css"),xi=require("@ant-design/pro-components"),Ci=require("react-dom"),Ei=require("eventemitter3");function Ii(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 Lt=Ii(Ci);function de(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 pe(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(f){a(f)}}function s(c){try{u(n.throw(c))}catch(f){a(f)}}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 Di=/:\w+/g;var Nt=(t,e)=>pe(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:f,body:g}=e[o];let v=r;s&&Object.entries(s).forEach(([b,C])=>{v=v.replace(Di,y=>y===b?C:y)}),c&&(v+=c),n[l]=u;try{const b=yield fetch(v,{method:a,headers:Object.assign({"Content-Type":"application/json"},f),body:JSON.stringify(g)}).then(C=>C.json());i[l]=b}catch(b){console.error("DataSource request error: ",b),i[l]={}}}return{$store:i,idMapName:n}});const Bt="SXP_TOKEN_INFO",Ai=(t,e)=>pe(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),o=t.getAppId(),l=t.getApiUrl(),a=window.localStorage.getItem(Bt);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(Bt,JSON.stringify(r))}}return r});function Ze(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 Pi=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},ki=()=>{const t=Si.v4();return t?.replaceAll?t.replaceAll("-",""):Pi(32)};function jt(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),n=new Uint8Array(i),o=Ti.inflate(n,{to:"string"});return JSON.parse(o)}let pt=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 Mi{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,pt)return pt;pt=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 ce=null;const Oi={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{ce||(ce=new Mi),n&&ce.setApiUrl(n),ce.setAppId(t),ce.setTenantId(e),ce.setEnv(i)},getDetail:t=>{if(!ce)return;const e=ce.getTenantId(),i=ce.getAppId(),n=ce.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>pe(void 0,void 0,void 0,function*(){var l,a;const r=yield o.json(),s=jt((l=r?.data)===null||l===void 0?void 0:l.data);if(s){const{$store:u}=yield Nt(n,(a=s?.dataSource)!==null&&a!==void 0?a:[]);r.data.data=s,Object.assign(r.data.data,{__STORE__:u})}return r}))},getSxpDetailByPageId:t=>pe(void 0,void 0,void 0,function*(){if(!ce)return;const e=ce.getTenantId(),i=ce.getAppId(),n=ce.getApiUrl();return fetch(`${n}/storefront/v1/page?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>pe(void 0,void 0,void 0,function*(){var l;const a=yield o.json();if(!a.success)return;const r=jt((l=a?.data)===null||l===void 0?void 0:l.data);return a.data.data=r,a.data}))}),getSxpRecommendVideoData:t=>pe(void 0,void 0,void 0,function*(){if(!ce)return;const e=yield Ai(ce,t),i=Ze(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");oe.isEmpty(n)&&(n=Ze(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 he(){return d.useContext(Wt)}function Ri(){return d.useContext(Gt)}const ft="feRealSessionIdKey",zt=()=>{const t=ki();return`${Date.now()}${t}`},Li=()=>{let t=Bi();return t||(t=zt(),window.sessionStorage.setItem(ft,t)),t},Ni=()=>{const t=zt();window.sessionStorage.setItem(ft,t)},Bi=()=>window.sessionStorage.getItem(ft),Vt="SXP_FAKE_USER_ID",ji=()=>{let t=window.localStorage.getItem(Vt);return oe.isEmpty(t)&&(t=Ze(36,62),window.localStorage.setItem(Vt,t)),t};function Ne(t,e){const{appDomain:i}=J();return d.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const Ft=d.createContext({rtcList:[]});var vt;(function(t){t[t.BFF=5]="BFF"})(vt||(vt={}));const zi=["utm_source","utm_medium","utm_campaign","utm_id","utm_content","cl_source"],Vi=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:o,defaultSize:l,isPreview:a=!1,sxpParameter:r,appDomain:s,hashTagSize:u,loadingImage:c,isOpenHashTag:f=!1})=>{const[g,v]=d.useState([]),[b,C]=d.useState(!1),[y,p]=d.useState({rtc:"",requestId:""}),m=d.useRef(null),h=d.useRef(!1),[T,D]=d.useState(),[P,N]=d.useState(),[S,w]=d.useState(f),[E,A]=d.useState([]),[x,I]=d.useState(0),[k,R]=d.useState(!1);d.useEffect(()=>{w(f)},[f]);const B=d.useMemo(()=>e?.find(j=>j.type===vt.BFF),[e]),V=d.useCallback((j,z)=>{if(!B)return;const G=B.url,K=ji();if(z?.query){const Q=Rt.stringify(z.query);j=`${j}?${Q}`}return z.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${G}/api/v1${j}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},B.headers),{"x-user-id":K}),z.body))],{type:"application/json;charset=UTF-8"})):window.fetch(`${G}/api/v1${j}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":K},B.headers),method:z.method,body:JSON.stringify(z.body)}).then(Q=>Q.json()).catch(Q=>Promise.reject(Q))},[B]),_=d.useCallback(j=>pe(void 0,void 0,void 0,function*(){var z,G,K,Q;if(j={maxSize:o,defaultSize:(z=j?.defaultSize)!==null&&z!==void 0?z:l,"itemFilter.itemId":j?.["itemFilter.itemId"],"itemFilter.itemType":j?.["itemFilter.itemType"],hashTag:j?.hashTag,traceInfo:j?.traceInfo},i){const le=(Q=(K=(G=i?.split("&"))===null||G===void 0?void 0:G.filter(me=>{const De=me.split("=")[0];return zi.includes(De)}))===null||K===void 0?void 0:K.join("&"))!==null&&Q!==void 0?Q:"";j=Object.assign(Object.assign({},j),{channel:decodeURIComponent(le)})}const re=yield V?.("/recommend/list",{method:"GET",query:j});if(re?.success)return j?.hashTag||p({rtc:re.data.rtc,requestId:re.data.requestId}),re?.data}),[V,i,o,l]),M=d.useCallback(()=>pe(void 0,void 0,void 0,function*(){var j,z;if(g.length<=0)return;const G=yield _({hashTag:P?.hashTag,"itemFilter.itemId":P?.itemId,"itemFilter.itemType":P?.itemType});v(g.concat((j=G?.recList)!==null&&j!==void 0?j:[])),A(E.concat((z=G?.recList)!==null&&z!==void 0?z:[]))}),[_,g,P,E]),O=d.useCallback(({userInfo:j,eventInfo:z})=>{if(!n)return;j||(j={});const G=Li(),K=Object.assign({sessionID:G,rtc:y.rtc,requestId:y.requestId},z),Q=Object.entries(j).map(([le,me])=>({name:le,value:me})),re=Object.entries(K).map(([le,me])=>me&&{name:le,value:me}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",j),console.log("eventInfo:",K),console.log("========= \u7ED3\u675F ========="),V?.("/event/report",{method:"POST",body:{userInfo:Q,eventInfo:re},type:"beacon"})},[V,y,n]),H=d.useCallback(j=>pe(void 0,void 0,void 0,function*(){const z=yield V?.("/recommend/like",{method:"POST",body:j});return z?.success}),[V]),ee=d.useCallback(j=>pe(void 0,void 0,void 0,function*(){const z=yield V?.("/recommend/unlike",{method:"POST",body:j});return z?.success}),[V]),ne=d.useCallback(j=>pe(void 0,void 0,void 0,function*(){const z=yield V?.("/customform",{method:"POST",body:j});return z?.success}),[V]),ae=d.useCallback((j,z,G)=>{var K,Q,re,le,me,De,je,$e,Ae,qe,Me,ze;const se=G?.bindCta,dt=((K=z?.video)===null||K===void 0?void 0:K.bindProduct)||((Q=z?.video)===null||Q===void 0?void 0:Q.bindProducts)&&((le=(re=z?.video)===null||re===void 0?void 0:re.bindProducts)===null||le===void 0?void 0:le.length)>0;let Ve="";k?Ve="hashTagPage":!((me=z?.video)===null||me===void 0)&&me.url?Ve="videoPage":!((je=(De=z?.video)===null||De===void 0?void 0:De.imgUrls)===null||je===void 0)&&je.length&&(Ve="imagePage"),O?.({eventInfo:Object.assign(Object.assign({},j),{ctaId:($e=se?.itemId)!==null&&$e!==void 0?$e:"",ctaName:(Ae=se?.title)!==null&&Ae!==void 0?Ae:"",contentTags:JSON.stringify(se?.tags),position:z?.position,relatedContentId:(Me=(qe=z?.video)===null||qe===void 0?void 0:qe.itemId)!==null&&Me!==void 0?Me:"",relatedProductId:dt?G?.itemId:"",traceInfo:(ze=se?.traceInfo)!==null&&ze!==void 0?ze:"",fromKName:Ve})})},[O,k]);d.useEffect(()=>{C(!0),_().then(j=>{var z,G;v((z=j?.recList)!==null&&z!==void 0?z:[]),A((G=j?.recList)!==null&&G!==void 0?G:[])}).finally(()=>{C(!1),h.current=!0})},[]),d.useEffect(()=>{h.current&&(C(!0),_().then(j=>{var z,G;v((z=j?.recList)!==null&&z!==void 0?z:[]),A((G=j?.recList)!==null&&G!==void 0?G:[])}).finally(()=>{C(!1)}))},[_]);const ye=Ne("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return d.createElement(Ft.Provider,{value:{rtcList:g,setRtcList:v,mutateLike:H,mutateUnlike:ee,submitForm:ne,popupDetailData:T,loadVideos:M,setPopupDetailData:D,getRecommendVideos:_,bffEventReport:O,utmVal:i,isPreview:a,loading:b,sxpParameter:r,waterFallData:P,setWaterFallData:N,ctaEvent:ae,swiperRef:m,openHashtag:S,setOpenHashtag:w,cacheRtcList:E,setCacheRtcList:A,cacheActiveIndex:x,setCacheActiveIndex:I,isFromHashtag:k,setIsFromHashtag:R,appDomain:s,hashTagSize:u,loadingImage:c??ye,isOpenHashTag:f}},t({rtcList:g,mutateLike:H,mutateUnlike:ee,submitForm:ne}))};var Ht=d.memo(Vi);function J(){return d.useContext(Ft)}var Ut;(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"})(Ut||(Ut={}));const Gt=d.createContext({$store:{},options:[],configs:[]}),Fi=({children:t,isSsr:e,enable:i})=>{const[n,o]=d.useState([]),{schema:l}=he(),[a,r]=d.useState(l.__STORE__||{}),[s,u]=d.useState([]);d.useEffect(()=>{var g;e||oe.isEqual(s,l?.dataSource)||u((g=l?.dataSource)!==null&&g!==void 0?g:[])},[l?.dataSource,e]);const c=d.useCallback(()=>pe(void 0,void 0,void 0,function*(){const{$store:g,idMapName:v}=yield Nt("",s);r(g),f(g,v)}),[s]),f=(g,v)=>{const b=[];Object.entries(g).forEach(([C,y])=>{Object.keys(y).forEach(p=>{const m={label:`${v[C]} - ${p}`,value:`{{ ${C}.${p} }}`};b.push(m)})}),o(b)};return d.useEffect(()=>{e||c()},[c,e,l]),i?d.createElement(Gt.Provider,{value:{$store:l.__STORE__||a,options:n,configs:s}},t):t};var Hi=d.memo(Fi);const et={id:Ze(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},Wt=d.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[et],redoStack:[],popup:"",setPopup:()=>{},popupAni:{name:"none",duration:0}}),$t=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:[et],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[f,g]=d.useState([et]),[v,b]=d.useState([[et]]),[C,y]=d.useState([]),[p,m]=d.useState(""),[h,T]=d.useState({name:"none",duration:0});typeof window<"u"&&(window.sxpPopup=(w,E)=>{m(w),E&&E?.name!=="none"?T(Object.assign(Object.assign({},h),E)):T({name:"none",duration:0})}),typeof window<"u"&&(window.getJointUtmLink=w=>w?.indexOf("?")!==-1?w+(l?"&"+l:""):w+(l?"?"+l:"")),d.useEffect(()=>{b([u.pointData]),y([])},[u.type]);const D=d.useCallback(w=>{const E=oe.cloneDeep(u);E&&(E.dataSource=w,c?.(E))},[u]),[P,N]=d.useState();d.useImperativeHandle(a,()=>({loadSchema(w){w&&(b([w.pointData]),c(w))},exportSchema(){return oe.cloneDeep(u)},getPageInfoData(){return P},initPageInfoData(w){w&&N(w)}}));const S=d.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return d.createElement(Wt.Provider,{value:{resolver:e,currentNode:r,schema:u,setCurrentNode:s,setSchema:c,saveDataSource:D,prePiontData:f,setPrePiontData:g,pageInfoData:P,setPageInfoData:w=>N(Object.assign(Object.assign({},P),w)),undoStack:v,redoStack:C,setRedoStack:y,setUndoStack:b,getCurPageConf:S,popup:p,setPopup:m,popupAni:h}},d.createElement(Hi,{isSsr:i,enable:o},t))});var Ui=Object.freeze({__proto__:null,EditorCore:$t}),Gi=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Wi=[{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 $i=t=>{var{columns:e,style:i,title:n,textStyle:o,submitBgColor:l,submitColor:a,submitText:r,layoutType:s,onClick:u}=t,c=de(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","onClick"]);he();const{submitForm:f}=J(),g=d.useRef(),[v,b]=d.useState(!1),C=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"}],[]),y=d.useMemo(()=>{if(s===void 0){const m=oe.cloneDeep(e)||C;return m?.map(h=>Object.assign(Object.assign({},h),{title:void 0,fieldProps:{placeholder:h?.title}}))}else return oe.cloneDeep(e)||C},[s,e,C]),p=oe.debounce(()=>pe(void 0,void 0,void 0,function*(){var m,h,T;b(!0);const D=yield(m=g?.current)===null||m===void 0?void 0:m.getFieldsValue(),P=(T=(h=Object.keys(D))===null||h===void 0?void 0:h.map(S=>({name:S,value:D[S]})))===null||T===void 0?void 0:T.filter(S=>S?.value);if(!P||!P?.length)return;const N=yield f?.({attributes:P});b(!1),N&&(window?.sxpPopup(""),N&&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(xi.BetaSchemaForm,{columns:y,submitter:!1,layout:s,autoFocusFirstInput:!1,size:"large",formRef:g,className:"panel-reset"}))),d.createElement("div",{className:"pb-appoint-form-btn-wrapper"},d.createElement("button",{onClick:p,className:"pb-appoint-form-btn",style:{color:a,background:l}},v?d.createElement(d.Fragment,null,"loading..."):r)))};var qi=d.memo($i);function fe(t,e){return t.extend=e,t}const Xi=fe(qi,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Wi,bindableProps:[],interactionRender:Gi},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 Yi=[{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 qt(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function mt(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:qt(e[i])&&qt(t[i])&&Object.keys(e[i]).length>0&&mt(t[i],e[i])})}const Xt={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 Te(){const t=typeof document<"u"?document:{};return mt(t,Xt),t}const Ji={document:Xt,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 ue(){const t=typeof window<"u"?window:{};return mt(t,Ji),t}function Pe(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Qi(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 Ki(t){const e=ue();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Zi(t,e){e===void 0&&(e="x");const i=ue();let n,o,l;const a=Ki(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 tt(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function en(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&&!en(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&&(tt(t[r])&&tt(n[r])?n[r].__swiper__?t[r]=n[r]:ve(t[r],n[r]):!tt(t[r])&&tt(n[r])?(t[r]={},n[r].__swiper__?t[r]=n[r]:ve(t[r],n[r])):t[r]=n[r])}}}return t}function it(t,e,i){t.style.setProperty(e,i)}function Yt(t){let{swiper:e,targetPosition:i,side:n}=t;const o=ue(),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=(g,v)=>u==="next"&&g>=v||u==="prev"&&g<=v,f=()=>{r=new Date().getTime(),a===null&&(a=r);const g=Math.max(Math.min((r-a)/s,1),0),v=.5-Math.cos(g*Math.PI)/2;let b=l+v*(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(f)};f()}function xe(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function nt(t){try{console.warn(t);return}catch{}}function Ye(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Pe(e)),i}function tn(t){const e=ue(),i=Te(),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 nn(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 on(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 ke(t,e){return ue().getComputedStyle(t,null).getPropertyValue(e)}function ot(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Jt(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 ht(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function gt(t,e,i){const n=ue();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 Ce(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function ln(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=ue();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=ge(),s;const u=[];function c(h){let N=0,S=0,w=0,E=0;return"detail"in h&&(S=h.detail),"wheelDelta"in h&&(S=-h.wheelDelta/120),"wheelDeltaY"in h&&(S=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(N=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(N=S,S=0),w=N*10,E=S*10,"deltaY"in h&&(E=h.deltaY),"deltaX"in h&&(w=h.deltaX),h.shiftKey&&!w&&(w=E,E=0),(w||E)&&h.deltaMode&&(h.deltaMode===1?(w*=40,E*=40):(w*=800,E*=800)),w&&!N&&(N=w<1?-1:1),E&&!S&&(S=E<1?-1:1),{spinX:N,spinY:S,pixelX:w,pixelY:E}}function f(){e.enabled&&(e.mouseEntered=!0)}function g(){e.enabled&&(e.mouseEntered=!1)}function v(h){return e.params.mousewheel.thresholdDelta&&h.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&ge()-r<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&ge()-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 C(h){let T=h,D=!0;if(!e.enabled||h.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const P=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let N=e.el;e.params.mousewheel.eventsTarget!=="container"&&(N=document.querySelector(e.params.mousewheel.eventsTarget));const S=N&&N.contains(T.target);if(!e.mouseEntered&&!S&&!P.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let w=0;const E=e.rtlTranslate?-1:1,A=c(T);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(A.pixelX)>Math.abs(A.pixelY))w=-A.pixelX*E;else return!0;else if(Math.abs(A.pixelY)>Math.abs(A.pixelX))w=-A.pixelY;else return!0;else w=Math.abs(A.pixelX)>Math.abs(A.pixelY)?-A.pixelX*E:-A.pixelY;if(w===0)return!0;P.invert&&(w=-w);let x=e.getTranslate()+w*P.sensitivity;if(x>=e.minTranslate()&&(x=e.minTranslate()),x<=e.maxTranslate()&&(x=e.maxTranslate()),D=e.params.loop?!0:!(x===e.minTranslate()||x===e.maxTranslate()),D&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const I={time:ge(),delta:Math.abs(w),direction:Math.sign(w),raw:h};u.length>=2&&u.shift();const k=u.length?u[u.length-1]:void 0;if(u.push(I),k?(I.direction!==k.direction||I.delta>k.delta||I.time>k.time+150)&&v(I):v(I),b(I))return!0}else{const I={time:ge(),delta:Math.abs(w),direction:Math.sign(w)},k=s&&I.time<s.time+500&&I.delta<=s.delta&&I.direction===s.direction;if(!k){s=void 0;let R=e.getTranslate()+w*P.sensitivity;const B=e.isBeginning,V=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(),(!B&&e.isBeginning||!V&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:I.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,u.length>=15&&u.shift();const _=u.length?u[u.length-1]:void 0,M=u[0];if(u.push(I),_&&(I.delta>_.delta||I.direction!==_.direction))u.splice(0);else if(u.length>=15&&I.time-M.time<500&&M.delta-I.delta>=1&&I.delta<=6){const O=w>0?.8:.2;s=I,u.splice(0),a=Fe(()=>{e.slideToClosest(e.params.speed,!0,void 0,O)},0)}a||(a=Fe(()=>{s=I,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(k||o("scroll",T),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),P.releaseOnEdges&&(R===e.minTranslate()||R===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function y(h){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[h]("mouseenter",f),T[h]("mouseleave",g),T[h]("wheel",C)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",C),!0):e.mousewheel.enabled?!1:(y("addEventListener"),e.mousewheel.enabled=!0,!0)}function m(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,C),!0):e.mousewheel.enabled?(y("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 Qt(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(o=>{if(!i[o]&&i.auto===!0){let l=xe(t.el,`.${n[o]}`)[0];l||(l=Ye("div",n[o]),l.className=n[o],t.el.append(l)),i[o]=l,e[o]=l}}),i}function He(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function bt(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 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(p,m){const{bulletActiveClass:h}=e.params.pagination;p&&(p=p[`${m==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${h}-${m}`),p=p[`${m==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${h}-${m}-${m}`)))}function c(p){const m=p.target.closest(He(e.params.pagination.bulletClass));if(!m)return;p.preventDefault();const h=ot(m)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===h)return;e.slideToLoop(h)}else e.slideTo(h)}function f(){const p=e.rtl,m=e.params.pagination;if(s())return;let h=e.pagination.el;h=Ce(h);let T,D;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,N=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(D=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,D=e.previousSnapIndex):(D=e.previousIndex||0,T=e.activeIndex||0),m.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const S=e.pagination.bullets;let w,E,A;if(m.dynamicBullets&&(a=gt(S[0],e.isHorizontal()?"width":"height",!0),h.forEach(x=>{x.style[e.isHorizontal()?"width":"height"]=`${a*(m.dynamicMainBullets+4)}px`}),m.dynamicMainBullets>1&&D!==void 0&&(r+=T-(D||0),r>m.dynamicMainBullets-1?r=m.dynamicMainBullets-1:r<0&&(r=0)),w=Math.max(T-r,0),E=w+(Math.min(S.length,m.dynamicMainBullets)-1),A=(E+w)/2),S.forEach(x=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(k=>`${m.bulletActiveClass}${k}`)].map(k=>typeof k=="string"&&k.includes(" ")?k.split(" "):k).flat();x.classList.remove(...I)}),h.length>1)S.forEach(x=>{const I=ot(x);I===T?x.classList.add(...m.bulletActiveClass.split(" ")):e.isElement&&x.setAttribute("part","bullet"),m.dynamicBullets&&(I>=w&&I<=E&&x.classList.add(...`${m.bulletActiveClass}-main`.split(" ")),I===w&&u(x,"prev"),I===E&&u(x,"next"))});else{const x=S[T];if(x&&x.classList.add(...m.bulletActiveClass.split(" ")),e.isElement&&S.forEach((I,k)=>{I.setAttribute("part",k===T?"bullet-active":"bullet")}),m.dynamicBullets){const I=S[w],k=S[E];for(let R=w;R<=E;R+=1)S[R]&&S[R].classList.add(...`${m.bulletActiveClass}-main`.split(" "));u(I,"prev"),u(k,"next")}}if(m.dynamicBullets){const x=Math.min(S.length,m.dynamicMainBullets+4),I=(a*x-a)/2-A*a,k=p?"right":"left";S.forEach(R=>{R.style[e.isHorizontal()?k:"top"]=`${I}px`})}}h.forEach((S,w)=>{if(m.type==="fraction"&&(S.querySelectorAll(He(m.currentClass)).forEach(E=>{E.textContent=m.formatFractionCurrent(T+1)}),S.querySelectorAll(He(m.totalClass)).forEach(E=>{E.textContent=m.formatFractionTotal(N)})),m.type==="progressbar"){let E;m.progressbarOpposite?E=e.isHorizontal()?"vertical":"horizontal":E=e.isHorizontal()?"horizontal":"vertical";const A=(T+1)/N;let x=1,I=1;E==="horizontal"?x=A:I=A,S.querySelectorAll(He(m.progressbarFillClass)).forEach(k=>{k.style.transform=`translate3d(0,0,0) scaleX(${x}) scaleY(${I})`,k.style.transitionDuration=`${e.params.speed}ms`})}m.type==="custom"&&m.renderCustom?(S.innerHTML=m.renderCustom(e,T+1,N),w===0&&o("paginationRender",S)):(w===0&&o("paginationRender",S),o("paginationUpdate",S)),e.params.watchOverflow&&e.enabled&&S.classList[e.isLocked?"add":"remove"](m.lockClass)})}function g(){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 h=e.pagination.el;h=Ce(h);let T="";if(p.type==="bullets"){let D=e.params.loop?Math.ceil(m/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&D>m&&(D=m);for(let P=0;P<D;P+=1)p.renderBullet?T+=p.renderBullet.call(e,P,p.bulletClass):T+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?T=p.renderFraction.call(e,p.currentClass,p.totalClass):T=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?T=p.renderProgressbar.call(e,p.progressbarFillClass):T=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],h.forEach(D=>{p.type!=="custom"&&(D.innerHTML=T||""),p.type==="bullets"&&e.pagination.bullets.push(...D.querySelectorAll(He(p.bulletClass)))}),p.type!=="custom"&&o("paginationRender",h[0])}function v(){e.params.pagination=Qt(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(h=>Jt(h,".swiper")[0]===e.el)[0])),Array.isArray(m)&&m.length===1&&(m=m[0]),Object.assign(e.pagination,{el:m}),m=Ce(m),m.forEach(h=>{p.type==="bullets"&&p.clickable&&h.classList.add(...(p.clickableClass||"").split(" ")),h.classList.add(p.modifierClass+p.type),h.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(h.classList.add(`${p.modifierClass}${p.type}-dynamic`),r=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&h.classList.add(p.progressbarOppositeClass),p.clickable&&h.addEventListener("click",c),e.enabled||h.classList.add(p.lockClass)}))}function b(){const p=e.params.pagination;if(s())return;let m=e.pagination.el;m&&(m=Ce(m),m.forEach(h=>{h.classList.remove(p.hiddenClass),h.classList.remove(p.modifierClass+p.type),h.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(h.classList.remove(...(p.clickableClass||"").split(" ")),h.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.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=Ce(m),m.forEach(h=>{h.classList.remove(p.horizontalClass,p.verticalClass),h.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?y():(v(),g(),f())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{g(),f()}),n("destroy",()=>{b()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=Ce(p),p.forEach(m=>m.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{f()}),n("click",(p,m)=>{const h=m.target,T=Ce(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 D=T[0].classList.contains(e.params.pagination.hiddenClass);o(D===!0?"paginationShow":"paginationHide"),T.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const C=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ce(p),p.forEach(m=>m.classList.remove(e.params.pagination.paginationDisabledClass))),v(),g(),f()},y=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ce(p),p.forEach(m=>m.classList.add(e.params.pagination.paginationDisabledClass))),b()};Object.assign(e.pagination,{enable:C,disable:y,render:g,update:f,init:v,destroy:b})}function sn(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Te();let a=!1,r=null,s=null,u,c,f,g;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:x,rtlTranslate:I}=e,{dragEl:k,el:R}=x,B=e.params.scrollbar,V=e.params.loop?e.progressLoop:e.progress;let _=c,M=(f-c)*V;I?(M=-M,M>0?(_=c-M,M=0):-M+c>f&&(_=f+M)):M<0?(_=c+M,M=0):M+c>f&&(_=f-M),e.isHorizontal()?(k.style.transform=`translate3d(${M}px, 0, 0)`,k.style.width=`${_}px`):(k.style.transform=`translate3d(0px, ${M}px, 0)`,k.style.height=`${_}px`),B.hide&&(clearTimeout(r),R.style.opacity=1,r=setTimeout(()=>{R.style.opacity=0,R.style.transitionDuration="400ms"},1e3))}function b(x){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${x}ms`)}function C(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:x}=e,{dragEl:I,el:k}=x;I.style.width="",I.style.height="",f=e.isHorizontal()?k.offsetWidth:k.offsetHeight,g=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=f*g:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?I.style.width=`${c}px`:I.style.height=`${c}px`,g>=1?k.style.display="none":k.style.display="",e.params.scrollbar.hide&&(k.style.opacity=0),e.params.watchOverflow&&e.enabled&&x.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function y(x){return e.isHorizontal()?x.clientX:x.clientY}function p(x){const{scrollbar:I,rtlTranslate:k}=e,{el:R}=I;let B;B=(y(x)-tn(R)[e.isHorizontal()?"left":"top"]-(u!==null?u:c/2))/(f-c),B=Math.max(Math.min(B,1),0),k&&(B=1-B);const V=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*B;e.updateProgress(V),e.setTranslate(V),e.updateActiveIndex(),e.updateSlidesClasses()}function m(x){const I=e.params.scrollbar,{scrollbar:k,wrapperEl:R}=e,{el:B,dragEl:V}=k;a=!0,u=x.target===V?y(x)-x.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,x.preventDefault(),x.stopPropagation(),R.style.transitionDuration="100ms",V.style.transitionDuration="100ms",p(x),clearTimeout(s),B.style.transitionDuration="0ms",I.hide&&(B.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",x)}function h(x){const{scrollbar:I,wrapperEl:k}=e,{el:R,dragEl:B}=I;a&&(x.preventDefault?x.preventDefault():x.returnValue=!1,p(x),k.style.transitionDuration="0ms",R.style.transitionDuration="0ms",B.style.transitionDuration="0ms",o("scrollbarDragMove",x))}function T(x){const I=e.params.scrollbar,{scrollbar:k,wrapperEl:R}=e,{el:B}=k;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",R.style.transitionDuration=""),I.hide&&(clearTimeout(s),s=Fe(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",x),I.snapOnRelease&&e.slideToClosest())}function D(x){const{scrollbar:I,params:k}=e,R=I.el;if(!R)return;const B=R,V=k.passiveListeners?{passive:!1,capture:!1}:!1,_=k.passiveListeners?{passive:!0,capture:!1}:!1;if(!B)return;const M=x==="on"?"addEventListener":"removeEventListener";B[M]("pointerdown",m,V),l[M]("pointermove",h,V),l[M]("pointerup",T,_)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||D("on")}function N(){!e.params.scrollbar.el||!e.scrollbar.el||D("off")}function S(){const{scrollbar:x,el:I}=e;e.params.scrollbar=Qt(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const k=e.params.scrollbar;if(!k.el)return;let R;if(typeof k.el=="string"&&e.isElement&&(R=e.el.querySelector(k.el)),!R&&typeof k.el=="string"){if(R=l.querySelectorAll(k.el),!R.length)return}else R||(R=k.el);e.params.uniqueNavElements&&typeof k.el=="string"&&R.length>1&&I.querySelectorAll(k.el).length===1&&(R=I.querySelector(k.el)),R.length>0&&(R=R[0]),R.classList.add(e.isHorizontal()?k.horizontalClass:k.verticalClass);let B;R&&(B=R.querySelector(He(e.params.scrollbar.dragClass)),B||(B=Ye("div",e.params.scrollbar.dragClass),R.append(B))),Object.assign(x,{el:R,dragEl:B}),k.draggable&&P(),R&&R.classList[e.enabled?"remove":"add"](...Pe(e.params.scrollbar.lockClass))}function w(){const x=e.params.scrollbar,I=e.scrollbar.el;I&&I.classList.remove(...Pe(e.isHorizontal()?x.horizontalClass:x.verticalClass)),N()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const x=e.params.scrollbar;let{el:I}=e.scrollbar;I=Ce(I),I.forEach(k=>{k.classList.remove(x.horizontalClass,x.verticalClass),k.classList.add(e.isHorizontal()?x.horizontalClass:x.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?A():(S(),C(),v())}),n("update resize observerUpdate lock unlock changeDirection",()=>{C()}),n("setTranslate",()=>{v()}),n("setTransition",(x,I)=>{b(I)}),n("enable disable",()=>{const{el:x}=e.scrollbar;x&&x.classList[e.enabled?"remove":"add"](...Pe(e.params.scrollbar.lockClass))}),n("destroy",()=>{w()});const E=()=>{e.el.classList.remove(...Pe(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Pe(e.params.scrollbar.scrollbarDisabledClass)),S(),C(),v()},A=()=>{e.el.classList.add(...Pe(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Pe(e.params.scrollbar.scrollbarDisabledClass)),w()};Object.assign(e.scrollbar,{enable:E,disable:A,updateSize:C,setTranslate:v,init:S,destroy:w})}function yt(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,f=new Date().getTime(),g,v,b,C,y,p,m;function h(_){!e||e.destroyed||!e.wrapperEl||_.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",h),!m&&E())}const T=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?g=!0:g&&(u=c,g=!1);const _=e.autoplay.paused?c:f+u-new Date().getTime();e.autoplay.timeLeft=_,o("autoplayTimeLeft",_,_/s),r=requestAnimationFrame(()=>{T()})},D=()=>{let _;return e.virtual&&e.params.virtual.enabled?_=e.slides.filter(O=>O.classList.contains("swiper-slide-active"))[0]:_=e.slides[e.activeIndex],_?parseInt(_.getAttribute("data-swiper-autoplay"),10):void 0},P=_=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(r),T();let M=typeof _>"u"?e.params.autoplay.delay:_;s=e.params.autoplay.delay,u=e.params.autoplay.delay;const O=D();!Number.isNaN(O)&&O>0&&typeof _>"u"&&(M=O,s=O,u=O),c=M;const H=e.params.speed,ee=()=>{!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&&(f=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return M>0?(clearTimeout(a),a=setTimeout(()=>{ee()},M)):requestAnimationFrame(()=>{ee()}),M},N=()=>{f=new Date().getTime(),e.autoplay.running=!0,P(),o("autoplayStart")},S=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(r),o("autoplayStop")},w=(_,M)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),_||(p=!0);const O=()=>{o("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",h):E()};if(e.autoplay.paused=!0,M){y&&(c=e.params.autoplay.delay),y=!1,O();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),O())},E=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),p?(p=!1,P(c)):P(),e.autoplay.paused=!1,o("autoplayResume"))},A=()=>{if(e.destroyed||!e.autoplay.running)return;const _=Te();_.visibilityState==="hidden"&&(p=!0,w(!0)),_.visibilityState==="visible"&&E()},x=_=>{_.pointerType==="mouse"&&(p=!0,m=!0,!(e.animating||e.autoplay.paused)&&w(!0))},I=_=>{_.pointerType==="mouse"&&(m=!1,e.autoplay.paused&&E())},k=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",x),e.el.addEventListener("pointerleave",I))},R=()=>{e.el.removeEventListener("pointerenter",x),e.el.removeEventListener("pointerleave",I)},B=()=>{Te().addEventListener("visibilitychange",A)},V=()=>{Te().removeEventListener("visibilitychange",A)};n("init",()=>{e.params.autoplay.enabled&&(k(),B(),N())}),n("destroy",()=>{R(),V(),e.autoplay.running&&S()}),n("_freeModeStaticRelease",()=>{(b||p)&&E()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?S():w(!0,!0)}),n("beforeTransitionStart",(_,M,O)=>{e.destroyed||!e.autoplay.running||(O||!e.params.autoplay.disableOnInteraction?w(!0,!0):S())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){S();return}v=!0,b=!1,p=!1,C=setTimeout(()=>{p=!0,b=!0,w(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!v)){if(clearTimeout(C),clearTimeout(a),e.params.autoplay.disableOnInteraction){b=!1,v=!1;return}b&&e.params.cssMode&&E(),b=!1,v=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(y=!0)}),Object.assign(e.autoplay,{start:N,stop:S,pause:w,resume:E})}function an(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:ge()})}function r(s){let{currentPos:u}=s;if(e.params.cssMode)return;const{params:c,wrapperEl:f,rtlTranslate:g,snapGrid:v,touchEventsData:b}=e,y=ge()-b.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(b.velocities.length>1){const S=b.velocities.pop(),w=b.velocities.pop(),E=S.position-w.position,A=S.time-w.time;e.velocity=E/A,e.velocity/=2,Math.abs(e.velocity)<c.freeMode.minimumVelocity&&(e.velocity=0),(A>150||ge()-S.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=c.freeMode.momentumVelocityRatio,b.velocities.length=0;let p=1e3*c.freeMode.momentumRatio;const m=e.velocity*p;let h=e.translate+m;g&&(h=-h);let T=!1,D;const P=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let N;if(h<e.maxTranslate())c.freeMode.momentumBounce?(h+e.maxTranslate()<-P&&(h=e.maxTranslate()-P),D=e.maxTranslate(),T=!0,b.allowMomentumBounce=!0):h=e.maxTranslate(),c.loop&&c.centeredSlides&&(N=!0);else if(h>e.minTranslate())c.freeMode.momentumBounce?(h-e.minTranslate()>P&&(h=e.minTranslate()+P),D=e.minTranslate(),T=!0,b.allowMomentumBounce=!0):h=e.minTranslate(),c.loop&&c.centeredSlides&&(N=!0);else if(c.freeMode.sticky){let S;for(let w=0;w<v.length;w+=1)if(v[w]>-h){S=w;break}Math.abs(v[S]-h)<Math.abs(v[S-1]-h)||e.swipeDirection==="next"?h=v[S]:h=v[S-1],h=-h}if(N&&o("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(g?p=Math.abs((-h-e.translate)/e.velocity):p=Math.abs((h-e.translate)/e.velocity),c.freeMode.sticky){const S=Math.abs((g?-h:h)-e.translate),w=e.slidesSizesGrid[e.activeIndex];S<w?p=c.speed:S<2*w?p=c.speed*1.5:p=c.speed*2.5}}else if(c.freeMode.sticky){e.slideToClosest();return}c.freeMode.momentumBounce&&T?(e.updateProgress(D),e.setTransition(p),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating=!0,ht(f,()=>{!e||e.destroyed||!b.allowMomentumBounce||(n("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(D),ht(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(h),e.setTransition(p),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,ht(f,()=>{!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||y>=c.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:a,onTouchEnd:r}})}let wt;function rn(){const t=ue(),e=Te();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Kt(){return wt||(wt=rn()),wt}let St;function dn(t){let{userAgent:e}=t===void 0?{}:t;const i=Kt(),n=ue(),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 f=l.match(/(iPod)(.*OS\s([\d_]+))?/),g=!c&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=o==="Win32";let b=o==="MacIntel";const C=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&b&&i.touch&&C.indexOf(`${r}x${s}`)>=0&&(c=l.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),b=!1),u&&!v&&(a.os="android",a.android=!0),(c||g||f)&&(a.os="ios",a.ios=!0),a}function Zt(t){return t===void 0&&(t={}),St||(St=dn(t)),St}let Tt;function cn(){const t=ue(),e=Zt();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 un(){return Tt||(Tt=cn()),Tt}function pn(t){let{swiper:e,on:i,emit:n}=t;const o=ue();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(f=>{a=o.requestAnimationFrame(()=>{const{width:g,height:v}=e;let b=g,C=v;f.forEach(y=>{let{contentBoxSize:p,contentRect:m,target:h}=y;h&&h!==e.el||(b=m?m.width:(p[0]||p).inlineSize,C=m?m.height:(p[0]||p).blockSize)}),(b!==g||C!==v)&&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 fn(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=[],a=ue(),r=function(c,f){f===void 0&&(f={});const g=a.MutationObserver||a.WebkitMutationObserver,v=new g(b=>{if(e.__preventObserver__)return;if(b.length===1){o("observerUpdate",b[0]);return}const C=function(){o("observerUpdate",b[0])};a.requestAnimationFrame?a.requestAnimationFrame(C):a.setTimeout(C,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=Jt(e.hostEl);for(let f=0;f<c.length;f+=1)r(c[f])}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 vn={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 mn(){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(ke(n,"padding-left")||0,10)-parseInt(ke(n,"padding-right")||0,10),i=i-parseInt(ke(n,"padding-top")||0,10)-parseInt(ke(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 hn(){const t=this;function e(E,A){return parseFloat(E.getPropertyValue(t.getDirectionLabel(A))||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=xe(o,`.${t.params.slideClass}, swiper-slide`),f=s?t.virtual.slides.length:c.length;let g=[];const v=[],b=[];let C=i.slidesOffsetBefore;typeof C=="function"&&(C=i.slidesOffsetBefore.call(t));let y=i.slidesOffsetAfter;typeof y=="function"&&(y=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,m=t.slidesGrid.length;let h=i.spaceBetween,T=-C,D=0,P=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(E=>{a?E.style.marginLeft="":E.style.marginRight="",E.style.marginBottom="",E.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(it(n,"--swiper-centered-offset-before",""),it(n,"--swiper-centered-offset-after",""));const N=i.grid&&i.grid.rows>1&&t.grid;N?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let S;const w=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(E=>typeof i.breakpoints[E].slidesPerView<"u").length>0;for(let E=0;E<f;E+=1){S=0;let A;if(c[E]&&(A=c[E]),N&&t.grid.updateSlide(E,A,c),!(c[E]&&ke(A,"display")==="none")){if(i.slidesPerView==="auto"){w&&(c[E].style[t.getDirectionLabel("width")]="");const x=getComputedStyle(A),I=A.style.transform,k=A.style.webkitTransform;if(I&&(A.style.transform="none"),k&&(A.style.webkitTransform="none"),i.roundLengths)S=t.isHorizontal()?gt(A,"width",!0):gt(A,"height",!0);else{const R=e(x,"width"),B=e(x,"padding-left"),V=e(x,"padding-right"),_=e(x,"margin-left"),M=e(x,"margin-right"),O=x.getPropertyValue("box-sizing");if(O&&O==="border-box")S=R+_+M;else{const{clientWidth:H,offsetWidth:ee}=A;S=R+B+V+_+M+(ee-H)}}I&&(A.style.transform=I),k&&(A.style.webkitTransform=k),i.roundLengths&&(S=Math.floor(S))}else S=(l-(i.slidesPerView-1)*h)/i.slidesPerView,i.roundLengths&&(S=Math.floor(S)),c[E]&&(c[E].style[t.getDirectionLabel("width")]=`${S}px`);c[E]&&(c[E].swiperSlideSize=S),b.push(S),i.centeredSlides?(T=T+S/2+D/2+h,D===0&&E!==0&&(T=T-l/2-h),E===0&&(T=T-l/2-h),Math.abs(T)<1/1e3&&(T=0),i.roundLengths&&(T=Math.floor(T)),P%i.slidesPerGroup===0&&g.push(T),v.push(T)):(i.roundLengths&&(T=Math.floor(T)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&g.push(T),v.push(T),T=T+S+h),t.virtualSize+=S+h,D=S,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+y,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`),N&&t.grid.updateWrapperSize(S,g),!i.centeredSlides){const E=[];for(let A=0;A<g.length;A+=1){let x=g[A];i.roundLengths&&(x=Math.floor(x)),g[A]<=t.virtualSize-l&&E.push(x)}g=E,Math.floor(t.virtualSize-l)-Math.floor(g[g.length-1])>1&&g.push(t.virtualSize-l)}if(s&&i.loop){const E=b[0]+h;if(i.slidesPerGroup>1){const A=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),x=E*i.slidesPerGroup;for(let I=0;I<A;I+=1)g.push(g[g.length-1]+x)}for(let A=0;A<t.virtual.slidesBefore+t.virtual.slidesAfter;A+=1)i.slidesPerGroup===1&&g.push(g[g.length-1]+E),v.push(v[v.length-1]+E),t.virtualSize+=E}if(g.length===0&&(g=[0]),h!==0){const E=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");c.filter((A,x)=>!i.cssMode||i.loop?!0:x!==c.length-1).forEach(A=>{A.style[E]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let E=0;b.forEach(x=>{E+=x+(h||0)}),E-=h;const A=E-l;g=g.map(x=>x<=0?-C:x>A?A+y:x)}if(i.centerInsufficientSlides){let E=0;if(b.forEach(A=>{E+=A+(h||0)}),E-=h,E<l){const A=(l-E)/2;g.forEach((x,I)=>{g[I]=x-A}),v.forEach((x,I)=>{v[I]=x+A})}}if(Object.assign(t,{slides:c,snapGrid:g,slidesGrid:v,slidesSizesGrid:b}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){it(n,"--swiper-centered-offset-before",`${-g[0]}px`),it(n,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const E=-t.snapGrid[0],A=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(x=>x+E),t.slidesGrid=t.slidesGrid.map(x=>x+A)}if(f!==u&&t.emit("slidesLengthChange"),g.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 E=`${i.containerModifierClass}backface-hidden`,A=t.el.classList.contains(E);f<=i.maxBackfaceHiddenSlides?A||t.el.classList.add(E):A&&t.el.classList.remove(E)}}function gn(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 bn(){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 yn(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 f=(a+(i.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+r),g=(a-l[0]+(i.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+r),v=-(a-c),b=v+e.slidesSizesGrid[s],C=v>=0&&v<=e.size-e.slidesSizesGrid[s];(v>=0&&v<e.size-1||b>1&&b<=e.size||v<=0&&b>=e.size)&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(s),n[s].classList.add(i.slideVisibleClass)),C&&n[s].classList.add(i.slideFullyVisibleClass),u.progress=o?-f:f,u.originalProgress=o?-g:g}}function wn(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,f=Math.abs(t-e.maxTranslate())<1;l=c||o<=0,a=f||o>=1,c&&(o=0),f&&(o=1)}if(i.loop){const c=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),g=e.slidesGrid[c],v=e.slidesGrid[f],b=e.slidesGrid[e.slidesGrid.length-1],C=Math.abs(t);C>=g?r=(C-g)/b:r=(C+b-v)/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 Sn(){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=f=>xe(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=r(`[data-swiper-slide-index="${f}"]`)}else s=r(`[data-swiper-slide-index="${o}"]`);else a?(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),a?(c&&c.classList.add(i.slideNextClass),u&&u.classList.add(i.slidePrevClass)):(c=on(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c&&(c=e[0]),c&&c.classList.add(i.slideNextClass),u=nn(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]),u&&u.classList.add(i.slidePrevClass))),t.emitSlidesClasses()}const lt=(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()}},xt=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Ct=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)&&xt(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)&&xt(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)&&xt(t,a)};function Tn(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 xn(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=v=>{let b=v-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=Tn(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!==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 f=e.grid&&o.grid&&o.grid.rows>1;let g;if(e.virtual&&o.virtual.enabled&&o.loop)g=c(s);else if(f){const v=e.slides.filter(C=>C.column===s)[0];let b=parseInt(v.getAttribute("data-swiper-slide-index"),10);Number.isNaN(b)&&(b=Math.max(e.slides.indexOf(v),0)),g=Math.floor(b/o.grid.rows)}else if(e.slides[s]){const v=e.slides[s].getAttribute("data-swiper-slide-index");v?g=parseInt(v,10):g=s}else g=s;Object.assign(e,{previousSnapIndex:r,snapIndex:u,previousRealIndex:a,realIndex:g,previousIndex:l,activeIndex:s}),e.initialized&&Ct(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==g&&e.emit("realIndexChange"),e.emit("slideChange"))}function Cn(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 En={updateSize:mn,updateSlides:hn,updateAutoHeight:gn,updateSlidesOffset:bn,updateSlidesProgress:yn,updateProgress:wn,updateSlidesClasses:Sn,updateActiveIndex:xn,updateClickedSlide:Cn};function In(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=Zi(l,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function Dn(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 f=i.maxTranslate()-i.minTranslate();f===0?c=0:c=(t-i.minTranslate())/f,c!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function An(){return-this.snapGrid[0]}function Pn(){return-this.snapGrid[this.snapGrid.length-1]}function kn(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 f=l.isHorizontal();if(e===0)r[f?"scrollLeft":"scrollTop"]=-c;else{if(!l.support.smoothScroll)return Yt({swiper:l,targetPosition:-c,side:f?"left":"top"}),!0;r.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(g){!l||l.destroyed||g.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:In,setTranslate:Dn,minTranslate:An,maxTranslate:Pn,translateTo:kn};function Mn(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 ei(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 On(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),ei({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Rn(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),ei({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Ln={setTransition:Mn,transitionStart:On,transitionEnd:Rn};function Nn(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:f,rtlTranslate:g,wrapperEl:v,enabled:b}=l;if(l.animating&&r.preventInteractionOnTransition||!b&&!n&&!o||l.destroyed)return!1;const C=Math.min(l.params.slidesPerGroupSkip,a);let y=C+Math.floor((a-C)/l.params.slidesPerGroup);y>=s.length&&(y=s.length-1);const p=-s[y];if(r.normalizeSlideIndex)for(let h=0;h<u.length;h+=1){const T=-Math.floor(p*100),D=Math.floor(u[h]*100),P=Math.floor(u[h+1]*100);typeof u[h+1]<"u"?T>=D&&T<P-(P-D)/2?a=h:T>=D&&T<P&&(a=h+1):T>=D&&(a=h)}if(l.initialized&&a!==f&&(!l.allowSlideNext&&(g?p>l.translate&&p>l.minTranslate():p<l.translate&&p<l.minTranslate())||!l.allowSlidePrev&&p>l.translate&&p>l.maxTranslate()&&(f||0)!==a))return!1;a!==(c||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(p);let m;if(a>f?m="next":a<f?m="prev":m="reset",g&&-p===l.translate||!g&&p===l.translate)return l.updateActiveIndex(a),r.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),r.effect!=="slide"&&l.setTranslate(p),m!=="reset"&&(l.transitionStart(i,m),l.transitionEnd(i,m)),!1;if(r.cssMode){const h=l.isHorizontal(),T=g?p:-p;if(e===0){const D=l.virtual&&l.params.virtual.enabled;D&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),D&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{v[h?"scrollLeft":"scrollTop"]=T})):v[h?"scrollLeft":"scrollTop"]=T,D&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return Yt({swiper:l,targetPosition:T,side:h?"left":"top"}),!0;v.scrollTo({[h?"left":"top"]:T,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(p),l.updateActiveIndex(a),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(T){!l||l.destroyed||T.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 Bn(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 g=a*o.params.grid.rows;r=o.slides.filter(v=>v.getAttribute("data-swiper-slide-index")*1===g)[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 f=s-r<c;if(u&&(f=f||r<Math.ceil(c/2)),f){const g=u?r<o.activeIndex?"prev":"next":r-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:g,slideTo:!0,activeSlideIndex:g==="next"?r+1:r-s+1,slideRealIndex:g==="next"?o.realIndex:void 0})}if(l){const g=a*o.params.grid.rows;a=o.slides.filter(v=>v.getAttribute("data-swiper-slide-index")*1===g)[0].column}else a=o.getSlideIndexByData(a)}return requestAnimationFrame(()=>{o.slideTo(a,e,i,n)}),o}function jn(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 zn(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 f=r?n.translate:-n.translate;function g(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const v=g(f),b=l.map(p=>g(p));let C=l[b.indexOf(v)-1];if(typeof C>"u"&&o.cssMode){let p;l.forEach((m,h)=>{v>=m&&(p=h)}),typeof p<"u"&&(C=l[p>0?p-1:p])}let y=0;if(typeof C<"u"&&(y=a.indexOf(C),y<0&&(y=n.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(y=y-n.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,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(y,t,e,i)}),!0;return n.slideTo(y,t,e,i)}function Vn(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 Fn(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 Hn(){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(xe(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(xe(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),Fe(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var Un={slideTo:Nn,slideToLoop:Bn,slideNext:jn,slidePrev:zn,slideReset:Vn,slideToClosest:Fn,slideToClickedSlide:Hn};function Gn(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const o=()=>{xe(n,`.${i.slideClass}, swiper-slide`).forEach((f,g)=>{f.setAttribute("data-swiper-slide-index",g)})},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 f=0;f<c;f+=1){const g=e.isElement?Ye("swiper-slide",[i.slideBlankClass]):Ye("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(g)}};if(r){if(i.loopAddBlankSlides){const c=a-e.slides.length%a;u(c),e.recalcSlides(),e.updateSlides()}else nt("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 nt("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 Wn(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:f,slidesEl:g,params:v}=s,{centeredSlides:b}=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 C=v.slidesPerView;C==="auto"?C=s.slidesPerViewDynamic():(C=Math.ceil(parseFloat(v.slidesPerView,10)),b&&C%2===0&&(C=C+1));const y=v.slidesPerGroupAuto?C:v.slidesPerGroup;let p=y;p%y!==0&&(p+=y-p%y),p+=v.loopAdditionalSlides,s.loopedSlides=p;const m=s.grid&&v.grid&&v.grid.rows>1;u.length<C+p?nt("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"&&nt("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const h=[],T=[];let D=s.activeIndex;typeof l>"u"?l=s.getSlideIndex(u.filter(I=>I.classList.contains(v.slideActiveClass))[0]):D=l;const P=n==="next"||!n,N=n==="prev"||!n;let S=0,w=0;const E=m?Math.ceil(u.length/v.grid.rows):u.length,x=(m?u[l].column:l)+(b&&typeof o>"u"?-C/2+.5:0);if(x<p){S=Math.max(p-x,y);for(let I=0;I<p-x;I+=1){const k=I-Math.floor(I/E)*E;if(m){const R=E-k-1;for(let B=u.length-1;B>=0;B-=1)u[B].column===R&&h.push(B)}else h.push(E-k-1)}}else if(x+C>E-p){w=Math.max(x-(E-p*2),y);for(let I=0;I<w;I+=1){const k=I-Math.floor(I/E)*E;m?u.forEach((R,B)=>{R.column===k&&T.push(B)}):T.push(k)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),N&&h.forEach(I=>{u[I].swiperLoopMoveDOM=!0,g.prepend(u[I]),u[I].swiperLoopMoveDOM=!1}),P&&T.forEach(I=>{u[I].swiperLoopMoveDOM=!0,g.append(u[I]),u[I].swiperLoopMoveDOM=!1}),s.recalcSlides(),v.slidesPerView==="auto"?s.updateSlides():m&&(h.length>0&&N||T.length>0&&P)&&s.slides.forEach((I,k)=>{s.grid.updateSlide(k,I,s.slides)}),v.watchSlidesProgress&&s.updateSlidesOffset(),i){if(h.length>0&&N){if(typeof e>"u"){const I=s.slidesGrid[D],R=s.slidesGrid[D+S]-I;r?s.setTranslate(s.translate-R):(s.slideTo(D+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?h.length/v.grid.rows:h.length;s.slideTo(s.activeIndex+I,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(T.length>0&&P)if(typeof e>"u"){const I=s.slidesGrid[D],R=s.slidesGrid[D-w]-I;r?s.setTranslate(s.translate-R):(s.slideTo(D-w,0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-R,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-R))}else{const I=m?T.length/v.grid.rows:T.length;s.slideTo(s.activeIndex-I,0,!1,!0)}}if(s.allowSlidePrev=c,s.allowSlideNext=f,s.controller&&s.controller.control&&!a){const I={slideRealIndex:e,direction:n,setTranslate:o,activeSlideIndex:l,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(k=>{!k.destroyed&&k.params.loop&&k.loopFix({...I,slideTo:k.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 $n(){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 qn={loopCreate:Gn,loopFix:Wn,loopDestroy:$n};function Xn(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 Yn(){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 Jn={setGrabCursor:Xn,unsetGrabCursor:Yn};function Qn(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Te()||n===ue())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 ti(t,e,i){const n=ue(),{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 Kn(t){const e=this,i=Te();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"){ti(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 f=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,g=!!(n.target&&n.target.shadowRoot);if(l.noSwiping&&(g?Qn(f,s):s.closest(f))){e.allowClick=!0;return}if(l.swipeHandler&&!s.closest(l.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const v=a.currentX,b=a.currentY;if(!ti(e,n,v))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=v,a.startY=b,o.touchStartTime=ge(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(o.allowThresholdMove=!1);let C=!0;s.matches(o.focusableElements)&&(C=!1,s.nodeName==="SELECT"&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const y=C&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||y)&&!s.isContentEditable&&n.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Zn(t){const e=Te(),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(P=>P.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 g=l.currentX-l.startX,v=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(g**2+v**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let P;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?n.isScrolling=!1:g*g+v*v>=25&&(P=Math.atan2(Math.abs(v),Math.abs(g))*180/Math.PI,n.isScrolling=i.isHorizontal()?P>o.touchAngle:90-P>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()?g:v,C=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;o.oneWayMovement&&(b=Math.abs(b)*(a?1:-1),C=Math.abs(C)*(a?1:-1)),l.diff=b,b*=o.touchRatio,a&&(b=-b,C=-C);const y=i.touchesDirection;i.swipeDirection=b>0?"prev":"next",i.touchesDirection=C>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 P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(P)}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&&y!==i.touchesDirection&&p&&m&&Math.abs(b)>=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=b+n.startTranslate;let T=!0,D=o.resistanceRatio;if(o.touchReleaseOnEdges&&(D=0),b>0?(p&&m&&!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)**D))):b<0&&(p&&m&&!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)**D))),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 eo(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(D=>D.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 f=ge(),g=f-i.touchStartTime;if(e.allowClick){const D=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(D&&D[0]||n.target,D),e.emit("tap click",n),g<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||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 v;if(a.followFinger?v=s?e.translate:-e.translate:v=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:v});return}const b=v>=-e.maxTranslate()&&!e.params.loop;let C=0,y=e.slidesSizesGrid[0];for(let D=0;D<u.length;D+=D<a.slidesPerGroupSkip?1:a.slidesPerGroup){const P=D<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof u[D+P]<"u"?(b||v>=u[D]&&v<u[D+P])&&(C=D,y=u[D+P]-u[D]):(b||v>=u[D])&&(C=D,y=u[u.length-1]-u[u.length-2])}let p=null,m=null;a.rewind&&(e.isBeginning?m=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const h=(v-u[C])/y,T=C<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(g>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?p:C+T):e.slideTo(C)),e.swipeDirection==="prev"&&(h>1-a.longSwipesRatio?e.slideTo(C+T):m!==null&&h<0&&Math.abs(h)>a.longSwipesRatio?e.slideTo(m):e.slideTo(C))}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(C+T):e.slideTo(C):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:C+T),e.swipeDirection==="prev"&&e.slideTo(m!==null?m:C))}}function ii(){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 to(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function io(){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 no(t){const e=this;lt(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function oo(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ni=(t,e)=>{const i=Te(),{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",ii,!0):t[u]("observerUpdate",ii,!0),o[s]("load",t.onLoad,{capture:!0})};function lo(){const t=this,{params:e}=t;t.onTouchStart=Kn.bind(t),t.onTouchMove=Zn.bind(t),t.onTouchEnd=eo.bind(t),t.onDocumentTouchStart=oo.bind(t),e.cssMode&&(t.onScroll=io.bind(t)),t.onClick=to.bind(t),t.onLoad=no.bind(t),ni(t,"on")}function so(){ni(this,"off")}var ao={attachEvents:lo,detachEvents:so};const oi=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function ro(){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=oi(t,n),c=oi(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,h=s[p]&&s[p].enabled;m&&!h&&t[p].disable(),!m&&h&&t[p].enable()});const g=s.direction&&s.direction!==n.direction,v=n.loop&&(s.slidesPerView!==n.slidesPerView||g),b=n.loop;g&&i&&t.changeDirection(),ve(t.params,s);const C=t.params.enabled,y=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!C?t.disable():!f&&C&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",s),i&&(v?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!b&&y?(t.loopCreate(e),t.updateSlides()):b&&!y&&t.loopDestroy()),t.emit("breakpoint",s)}function co(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const o=ue(),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 uo={setBreakpoint:ro,getBreakpoint:co};function po(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 fo(){const t=this,{classNames:e,params:i,rtl:n,el:o,device:l}=t,a=po(["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 vo(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var mo={addClasses:fo,removeClasses:vo};function ho(){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 go={checkOverflow:ho},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 bo(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 It={eventsEmitter:vn,update:En,translate:_n,transition:Ln,slide:Un,loop:qn,grabCursor:Jn,events:ao,breakpoints:uo,checkOverflow:go,classes:mo},Dt={};let At=class Ie{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 a=Te();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const c=[];return a.querySelectorAll(i.el).forEach(f=>{const g=ve({},i,{el:f});c.push(new Ie(g))}),c}const r=this;r.__swiper__=!0,r.support=Kt(),r.device=Zt({userAgent:i.userAgent}),r.browser=un(),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:bo(i,s),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const u=ve({},Et,s);return r.params=ve({},u,Dt,i),r.originalParams=ve({},r.params),r.passedParams=ve({},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=xe(i,`.${n.slideClass}, swiper-slide`),l=ot(o[0]);return ot(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=xe(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 f=l[u]?Math.ceil(l[u].swiperSlideSize):0,g;for(let v=u+1;v<l.length;v+=1)l[v]&&!g&&(f+=Math.ceil(l[v].swiperSlideSize),c+=1,f>s&&(g=!0));for(let v=u-1;v>=0;v-=1)l[v]&&!g&&(f+=l[v].swiperSlideSize,c+=1,f>s&&(g=!0))}else if(e==="current")for(let f=u+1;f<l.length;f+=1)(i?a[f]+r[f]-a[u]<s:a[f]-a[u]<s)&&(c+=1);else for(let f=u-1;f>=0;f-=1)a[u]-a[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(a=>{a.complete&&lt(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()):xe(n,o())[0];return!a&&i.params.createElements&&(a=Ye("div",i.params.wrapperClass),n.append(a),xe(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"||ke(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||ke(n,"direction")==="rtl"),wrongRTL:ke(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?lt(i,l):l.addEventListener("load",a=>{lt(i,a.target)})}),Ct(i),i.initialized=!0,Ct(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,Qi(n)),n.destroyed=!0),null}static extendDefaults(e){ve(Dt,e)}static get extendedDefaults(){return Dt}static get defaults(){return Et}static installModule(e){Ie.prototype.__modules__||(Ie.prototype.__modules__=[]);const i=Ie.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Ie.installModule(i)),Ie):(Ie.installModule(e),Ie)}};Object.keys(It).forEach(t=>{Object.keys(It[t]).forEach(e=>{At.prototype[e]=It[t][e]})}),At.use([pn,fn]);const li=["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 Be(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Ue(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]:Be(e[n])&&Be(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:Ue(t[n],e[n]):t[n]=e[n]})}function si(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function ai(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function ri(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function di(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 yo(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function wo(t){let{swiper:e,slides:i,passedParams:n,changedParams:o,nextEl:l,prevEl:a,scrollbarEl:r,paginationEl:s}=t;const u=o.filter(w=>w!=="children"&&w!=="direction"&&w!=="wrapperClass"),{params:c,pagination:f,navigation:g,scrollbar:v,virtual:b,thumbs:C}=e;let y,p,m,h,T,D,P,N;o.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(y=!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||r)&&(c.scrollbar||c.scrollbar===!1)&&v&&!v.el&&(h=!0),o.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||l)&&(c.navigation||c.navigation===!1)&&g&&!g.prevEl&&!g.nextEl&&(T=!0);const S=w=>{e[w]&&(e[w].destroy(),w==="navigation"?(e.isElement&&(e[w].prevEl.remove(),e[w].nextEl.remove()),c[w].prevEl=void 0,c[w].nextEl=void 0,e[w].prevEl=void 0,e[w].nextEl=void 0):(e.isElement&&e[w].el.remove(),c[w].el=void 0,e[w].el=void 0))};o.includes("loop")&&e.isElement&&(c.loop&&!n.loop?D=!0:!c.loop&&n.loop?P=!0:N=!0),u.forEach(w=>{if(Be(c[w])&&Be(n[w]))Object.assign(c[w],n[w]),(w==="navigation"||w==="pagination"||w==="scrollbar")&&"enabled"in n[w]&&!n[w].enabled&&S(w);else{const E=n[w];(E===!0||E===!1)&&(w==="navigation"||w==="pagination"||w==="scrollbar")?E===!1&&S(w):c[w]=n[w]}}),u.includes("controller")&&!p&&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&&(N=!0),y&&C.init()&&C.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()),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),v.init(),v.updateSize(),v.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),g.init(),g.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),o.includes("direction")&&e.changeDirection(n.direction,!1),(D||N)&&e.loopDestroy(),(P||N)&&e.loopCreate(),e.update()}function So(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},o={};Ue(i,Et),i._emitClasses=!0,i.init=!1;const l={},a=li.map(s=>s.replace(/_/,"")),r=Object.assign({},t);return Object.keys(r).forEach(s=>{typeof t[s]>"u"||(a.indexOf(s)>=0?Be(t[s])?(i[s]={},o[s]={},Ue(i[s],t[s]),Ue(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 To(t,e){let{el:i,nextEl:n,prevEl:o,paginationEl:l,scrollbarEl:a,swiper:r}=t;si(e)&&n&&o&&(r.params.navigation.nextEl=n,r.originalParams.navigation.nextEl=n,r.params.navigation.prevEl=o,r.originalParams.navigation.prevEl=o),ai(e)&&l&&(r.params.pagination.el=l,r.originalParams.pagination.el=l),ri(e)&&a&&(r.params.scrollbar.el=a,r.originalParams.scrollbar.el=a),r.init(i)}function xo(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 li.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in t&&s in e)if(Be(t[s])&&Be(e[s])){const u=Object.keys(t[s]),c=Object.keys(e[s]);u.length!==c.length?a(s):(u.forEach(f=>{t[s][f]!==e[s][f]&&a(s)}),c.forEach(f=>{t[s][f]!==e[s][f]&&a(s)}))}else t[s]!==e[s]&&a(s)}),l}const Co=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 st(){return st=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},st.apply(this,arguments)}function ci(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ui(t){const e=[];return d.Children.toArray(t).forEach(i=>{ci(i)?e.push(i):i.props&&i.props.children&&ui(i.props.children).forEach(n=>e.push(n))}),e}function Eo(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return d.Children.toArray(t).forEach(n=>{if(ci(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=ui(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 Io(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: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,f)=>d.cloneElement(c,{swiper:t,style:o,key:c.props.virtualIndex||c.key||`slide-${f}`}))}function Je(t,e){return typeof window>"u"?d.useEffect(t,e):d.useLayoutEffect(t,e)}const Pt=d.createContext(null),pi=()=>d.useContext(Pt),Do=d.createContext(null),Ge=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"),[f,g]=d.useState(null),[v,b]=d.useState(!1),C=d.useRef(!1),y=d.useRef(null),p=d.useRef(null),m=d.useRef(null),h=d.useRef(null),T=d.useRef(null),D=d.useRef(null),P=d.useRef(null),N=d.useRef(null),{params:S,passedParams:w,rest:E,events:A}=So(r),{slides:x,slots:I}=Eo(l),k=()=>{b(!v)};Object.assign(S.on,{_containerClasses(M,O){c(O)}});const R=()=>{Object.assign(S.on,A),s=!0;const M={...S};if(delete M.wrapperClass,p.current=new At(M),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=x;const O={cache:!1,slides:x,renderExternal:g,renderExternalUpdate:!1};Ue(p.current.params.virtual,O),Ue(p.current.originalParams.virtual,O)}};y.current||R(),p.current&&p.current.on("_beforeBreakpoint",k);const B=()=>{s||!A||!p.current||Object.keys(A).forEach(M=>{p.current.on(M,A[M])})},V=()=>{!A||!p.current||Object.keys(A).forEach(M=>{p.current.off(M,A[M])})};d.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",k)}),d.useEffect(()=>{!C.current&&p.current&&(p.current.emitSlidesClasses(),C.current=!0)}),Je(()=>{if(e&&(e.current=y.current),!!y.current)return p.current.destroyed&&R(),To({el:y.current,nextEl:T.current,prevEl:D.current,paginationEl:P.current,scrollbarEl:N.current,swiper:p.current},S),a&&!p.current.destroyed&&a(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),Je(()=>{B();const M=xo(w,m.current,x,h.current,O=>O.key);return m.current=w,h.current=x,M.length&&p.current&&!p.current.destroyed&&wo({swiper:p.current,slides:x,passedParams:w,changedParams:M,nextEl:T.current,prevEl:D.current,scrollbarEl:N.current,paginationEl:P.current}),()=>{V()}}),Je(()=>{Co(p.current)},[f]);function _(){return S.virtual?Io(p.current,x,f):x.map((M,O)=>d.cloneElement(M,{swiper:p.current,swiperSlideIndex:O}))}return d.createElement(n,st({ref:y,className:di(`${u}${i?` ${i}`:""}`)},E),d.createElement(Do.Provider,{value:p.current},I["container-start"],d.createElement(o,{className:yo(S.wrapperClass)},I["wrapper-start"],_(),I["wrapper-end"]),si(S)&&d.createElement(d.Fragment,null,d.createElement("div",{ref:D,className:"swiper-button-prev"}),d.createElement("div",{ref:T,className:"swiper-button-next"})),ri(S)&&d.createElement("div",{ref:N,className:"swiper-scrollbar"}),ai(S)&&d.createElement("div",{ref:P,className:"swiper-pagination"}),I["container-end"]))});Ge.displayName="Swiper";const Ee=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 f=d.useRef(null),[g,v]=d.useState("swiper-slide"),[b,C]=d.useState(!1);function y(T,D,P){D===f.current&&v(P)}Je(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),e&&(e.current=f.current),!(!f.current||!l)){if(l.destroyed){g!=="swiper-slide"&&v("swiper-slide");return}return l.on("_slideClass",y),()=>{l&&l.off("_slideClass",y)}}}),Je(()=>{l&&f.current&&!l.destroyed&&v(l.getSlideClasses(f.current))},[l]);const p={isActive:g.indexOf("swiper-slide-active")>=0,isVisible:g.indexOf("swiper-slide-visible")>=0,isPrev:g.indexOf("swiper-slide-prev")>=0,isNext:g.indexOf("swiper-slide-next")>=0},m=()=>typeof n=="function"?n(p):n,h=()=>{C(!0)};return d.createElement(i,st({ref:f,className:di(`${g}${o?` ${o}`:""}`),"data-swiper-slide-index":s,onLoad:h},c),a&&d.createElement(Pt.Provider,{value:p},d.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},m(),r&&!b&&d.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&d.createElement(Pt.Provider,{value:p},m(),r&&!b&&d.createElement("div",{className:"swiper-lazy-preloader"})))});Ee.displayName="SwiperSlide";function Qe(){const{bffEventReport:t,popupDetailData:e,waterFallData:i,isFromHashtag:n}=J(),o=d.useCallback((a,r,s)=>{var u,c,f,g,v,b,C,y,p,m,h,T,D,P;let N="";e&&(!((c=(u=a?.video)===null||u===void 0?void 0:u.bindProducts)===null||c===void 0)&&c.length||!((f=a?.video)===null||f===void 0)&&f.bindProduct)?N="pdpPage":n?N="hashTagPage":!((g=a?.video)===null||g===void 0)&&g.url?N="videoPage":!((v=a?.video)===null||v===void 0)&&v.imgUrls&&(!((C=(b=a?.video)===null||b===void 0?void 0:b.imgUrls)===null||C===void 0)&&C.length)?N="imagePage":a?.product&&(N="productPage"),t?.({eventInfo:{eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(y=r?.itemId)!==null&&y!==void 0?y:"",productName:(p=r?.title)!==null&&p!==void 0?p:"",price:r?.price?r?.price+"":"0",productCollection:(m=r?.collection)!==null&&m!==void 0?m:"",fromKName:N,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:(D=s?.itemId)!==null&&D!==void 0?D:"",traceInfo:(P=r?.traceInfo)!==null&&P!==void 0?P:""}})},[t,e,n]),l=d.useCallback((a,r,s,u)=>{var c,f,g,v;let b="";e&&(!((f=(c=a?.video)===null||c===void 0?void 0:c.bindProducts)===null||f===void 0)&&f.length||!((g=a?.video)===null||g===void 0)&&g.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:(v=a?.video)===null||v===void 0?void 0:v.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 Ao="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Po=({visible:t,onClose:e,children:i,modalStyle:n,padding:o,popupAniData:l})=>{const{popupAni:a}=he(),r=l??a,[s,u]=d.useState(!1),c=d.useRef(null);if(d.useEffect(()=>{const g=document.getElementById("sxp-render"),v=document.getElementById("pb-modal");v?c.current=v:(c.current=document.createElement("div"),c.current.setAttribute("id","pb-modal"),g?.appendChild(c.current))},[]),d.useEffect(()=>{t?u(!0):setTimeout(()=>{u(!1)},r?.duration)},[t,r]),!c.current)return null;const f=oe.debounce(()=>{e?.()},300);return Lt.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:r?.duration/1e3+"s"},onClick:g=>{g.stopPropagation(),g.preventDefault()}},d.createElement("div",{onClick:e,className:"modal-icon-wrapper"},d.createElement("img",{src:Ao,alt:"close",className:"modal-icon"})),i)),c.current)};var at=d.memo(Po);const ko=(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(" ")+" "},_o=({text:t,maxStr:e=108,style:i,className:n,onClick:o,foldText:l,unfoldText:a,isPost:r})=>{const[s,u]=d.useState(!0),[c,f]=d.useState(!1),g=Number(i?.lineClamp||2),v=d.useRef(null),b=d.useCallback(()=>{u(!s)},[s]);return d.useMemo(()=>!s&&t.length>e?ko(t,e)+"...":t,[t,e,s]),d.useEffect(()=>{v.current&&r&&(u(!0),setTimeout(()=>{var C;f(!1);try{const y=(C=window?.getComputedStyle)===null||C===void 0?void 0:C.call(window,v.current),p=parseFloat(y?.height),m=parseFloat(y?.lineHeight),h=parseFloat(y?.fontSize)+4,T=isNaN(m)?h:m;t&&p>T*g&&(u(!1),f(!0))}catch{}},100))},[v,t,g,i,r]),d.createElement("div",{className:n,style:Object.assign({},i),hidden:!t||t===""},d.createElement("div",{ref:v,style:{overflow:"hidden",WebkitLineClamp:s?"":g,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??b},s?a||"show less":l||"show more"))};var kt=d.memo(_o);const Mo=t=>{var e,i,n,o,l,a,r,s,{content:u,style:c,bgImg:f,onClick:g,schema:v,isDefault:b,bottom_image:C,tipText:y,isPost:p,viewTime:m,rec:h,swiper:T,commodityStyles:D,buttonStyle:P}=t,N=de(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle"]);const{sxpParameter:S}=J(),{popupDetailData:w,bffEventReport:E,isPreview:A,waterFallData:x}=J(),{jumpToWeb:I,productView:k}=Qe(),R=d.useRef(null),[B,V]=d.useState(!1),_=p?h:w,M=p?_?.product:(e=_?.video)===null||e===void 0?void 0:e.bindProduct,O=p?(i=_?.product)===null||i===void 0?void 0:i.bindCta:(o=(n=_?.video)===null||n===void 0?void 0:n.bindProduct)===null||o===void 0?void 0:o.bindCta,H=()=>{M?.link&&(I(w,M,O),p||k(_,M,O,m||R.current),window.location.href=window.getJointUtmLink(M.link))};d.useEffect(()=>{const j=()=>{R.current=new Date};return j(),window.addEventListener("pageshow",j),()=>{window.removeEventListener("pageshow",j)}},[]);const ee=d.useMemo(()=>{var j,z,G,K,Q;return M?.currency&&M?.price?`${(G=(z=(j=M?.currency)===null||j===void 0?void 0:j.split("-")[1])===null||z===void 0?void 0:z.toUpperCase())!==null&&G!==void 0?G:""}${(Q=(K=M?.price)===null||K===void 0?void 0:K.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&Q!==void 0?Q:""}`:"$7,000"},[M?.price,M?.currency]),ne=A?375:window.innerWidth,ae=({isPost:j})=>{var z,G,K;return d.createElement("div",{className:"pb-commondity-content"},d.createElement("div",{className:"pb-commondity-content-collection",style:D?.collection},(z=M?.collection)!==null&&z!==void 0?z:"Tiffany Lock"),d.createElement("div",{className:"pb-commondity-content-title",style:D?.title},(G=M?.title)!==null&&G!==void 0?G:"Pendant in Yellow Gold with Diamonds, Medium"),d.createElement("div",{className:"pb-commondity-content-price",style:D?.price},ee),d.createElement(kt,{foldText:y?.foldText,unfoldText:y?.unfoldText,onClick:()=>V(!0),isPost:j,text:(K=M?.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.`,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;
5
+ 18-karat gold, this necklace is embellished with hand-set diamonds.`,maxStr:79,className:"pb-commondity-content-info",style:D?.info}))},ye=()=>{var j;return d.createElement(d.Fragment,null,(b||M?.link)&&d.createElement("button",{onClick:H,className:"pb-commondity-btn",style:P},(j=O?.enTitle)!==null&&j!==void 0?j:"Purchase on Website"))};return d.createElement("div",{className:"pb-commondity"},d.createElement("div",Object.assign({className:U.css(Object.assign({},c))},N),M&&((l=M?.homePage)===null||l===void 0?void 0:l.length)>0&&d.createElement(Ge,{height:ne,modules:[bt,yt],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",clickableClass:T?.dotsAlign==="left"?"commondityDetail-swiper-clickable-left":"commondityDetail-swiper-clickable-center"},loop:!0,autoplay:{delay:T?.delay*1e3}},(a=M?.homePage)===null||a===void 0?void 0:a.map(j=>d.createElement(Ee,{key:j},d.createElement("div",{style:{overflow:"hidden",width:ne,height:ne}},d.createElement("img",{src:j,style:{height:"100%",width:"100%",objectFit:"cover"}}))))),!(!((r=M?.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=S?.bottom_image)!==null&&s!==void 0?s:C,alt:""})),ae({isPost:p})),ye(),d.createElement(at,{visible:B,onClose:()=>V(!1)},ae({isPost:!1}),ye()))};var Oo=d.memo(Mo);const Ro=fe(Oo,{displayName:"\u5546\u54C1\u8BE6\u60C5",icon:"",category:"popup",type:"CommodityDetail",related:{settingRender:Yi},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 Lo=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],No=[{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"]}],fi="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 Bo=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}},jo=t=>{var{content:e,btnText:i,style:n,icon:o,onClick:l}=t,a=de(t,["content","btnText","style","icon","onClick"]);he();const r=typeof o=="string"?o:Bo(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??fi})),d.createElement("div",{className:"pb-prompt-content"},e),d.createElement("button",{className:"pb-prompt-btn",onClick:s},i))};var zo=d.memo(jo);const Vo=fe(zo,{displayName:"\u63D0\u4EA4\u6210\u529F",icon:"",category:"popup",type:"Prompt",related:{settingRender:No,bindableProps:[],interactionRender:Lo},defaulSetting:{props:{icon:fi,content:"You have successfully completed the appointment!",btnText:"OK"},style:{}},w:100,h:40,sort:3});var Fo=[{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 Ho=t=>{var e,i,n,o,l,a,r,s,u,c,f,{style:g,isDefault:v,rec:b,viewTime:C,isPost:y,bottom_image:p,tipText:m,swiper:h,commodityStyles:T,buttonStyle:D}=t,P=de(t,["style","isDefault","rec","viewTime","isPost","bottom_image","tipText","swiper","commodityStyles","buttonStyle"]);d.useState(!0);const{sxpParameter:N}=J(),{popupDetailData:S,bffEventReport:w,isPreview:E,swiperRef:A,waterFallData:x}=J(),{jumpToWeb:I,productView:k}=Qe(),R=d.useRef(null);d.useRef(null),d.useRef(null),d.useState(!1),d.useState(!1),d.useState(!0);const[B,V]=d.useState(!1),_=d.useRef(null),M=y?b:S,O=y?M?.product:(e=M?.video)===null||e===void 0?void 0:e.bindProduct,H=y?(i=M?.product)===null||i===void 0?void 0:i.bindCta:(o=(n=M?.video)===null||n===void 0?void 0:n.bindProduct)===null||o===void 0?void 0:o.bindCta,ee=()=>{O?.link&&(I(M,O,H),y||k(M,O,H,C||_.current),window.location.href=window.getJointUtmLink(O.link))};d.useEffect(()=>{const j=()=>{_.current=new Date};return j(),window.addEventListener("pageshow",j),()=>{window.removeEventListener("pageshow",j)}},[]);const ne=d.useMemo(()=>{var j,z,G,K,Q;return O?.currency&&O?.price?`${(G=(z=(j=O?.currency)===null||j===void 0?void 0:j.split("-")[1])===null||z===void 0?void 0:z.toUpperCase())!==null&&G!==void 0?G:""}${(Q=(K=O?.price)===null||K===void 0?void 0:K.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&Q!==void 0?Q:""}`:"\xA3102,300.00"},[O?.price,O?.currency]),ae=E?375:window.innerWidth,ye=({isPost:j})=>d.createElement("div",{hidden:!!O&&(!O?.info||O?.info==="")},d.createElement(kt,{isPost:j,onClick:()=>V(!0),className:"pb-commondityDiroNew-info",style:T?.info,foldText:m?.foldText,unfoldText:m?.unfoldText,text:O?.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:U.css(Object.assign({},g))},P),O&&((l=O?.homePage)===null||l===void 0?void 0:l.length)>0&&d.createElement(Ge,{height:ae,modules:[bt,yt],pagination:{clickable:!0,bulletActiveClass:"commondityDiroNew-swipe-item-active-bullet",clickableClass:h?.dotsAlign==="left"?"commondityDiroNew-swiper-clickable-left":"commondityDiroNew-swiper-clickable-center"},loop:!0,autoplay:{delay:h?.delay*1e3}},(a=O?.homePage)===null||a===void 0?void 0:a.map(j=>d.createElement(Ee,{key:j},d.createElement("div",{style:{overflow:"hidden",width:ae,height:ae}},d.createElement("img",{src:j,style:{height:"100%",width:"100%",objectFit:"cover"}}))))),!(!((r=O?.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=N?.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:T?.title},(u=O?.title)!==null&&u!==void 0?u:"Large Dior Toujours Bag"),d.createElement("div",{className:""},d.createElement("div",{className:"pb-commondityDiroNew-content-top-price",hidden:!!O&&!O?.price,style:T?.price},ne),d.createElement("div",{className:"pb-commondityDiroNew-content-top-price",hidden:!!O&&!O?.taxInfo,style:T?.taxInfo},(c=O?.taxInfo)!==null&&c!==void 0?c:"\u7A0E\u8D39"))),d.createElement("div",{className:"pb-commondityDiroNew-content-collection",hidden:!!O&&(!O?.collection||O?.collection===""),style:T?.collection},O?.collection||"Black Macrocannage Calfskin"),(!O||O?.link)&&d.createElement("button",{onClick:ee,className:"pb-commondityDiroNew-btn",style:D},(f=H?.enTitle)!==null&&f!==void 0?f:"Shop now"),ye({isPost:y}))),d.createElement(at,{visible:B,onClose:()=>V(!1)},ye({isPost:!1})))};var Uo=d.memo(Ho);const Go=fe(Uo,{displayName:"\u5546\u54C1\u8BE6\u60C5",icon:"",category:"popup",type:"CommodityDetailDiroNew",related:{settingRender:Fo},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:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","ctaTempStyles","ctaTitle","borderRadius"],max:100},{type:"Number",name:["props","ctaTempStyles","ctaTitle","borderRadius"],addonAfter:"px",max:100}]},{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"]}]}],Wo=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];function vi(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,style:l}=t;de(t,["rec","children","className","onClick","style"]);const a=d.useRef(null),r=vi(a),{popupAni:s}=he(),{setPopupDetailData:u,ctaEvent:c}=J();d.useEffect(()=>{var g,v;if(r&&a?.current){const b=(v=(g=e?.video)===null||g===void 0?void 0:g.bindProduct)!==null&&v!==void 0?v:e?.video;c?.({eventSubject:"ctaExposure",eventDescription:"The cta was shown to the user"},e,b)}},[r,a,e,c]);const f=oe.throttle(()=>{var g,v;const b=(v=(g=e?.video)===null||g===void 0?void 0:g.bindProduct)!==null&&v!==void 0?v:e?.video;c?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},e,b),u?.(e),o?.()},s?.duration);return d.createElement("div",{ref:a,className:n,style:l,onClick:f},i)};var Ke=d.memo($o),qo={"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};const Xo=t=>{var e,i,n,o,l,a,r,{content:s,style:u,bgImg:c,recData:f,bottom_image:g,ctaTempStyles:v}=t,b=de(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles"]);const{sxpParameter:C}=J(),y=(e=f?.video)===null||e===void 0?void 0:e.bindProduct,p=(o=(n=(i=y?.homePage)===null||i===void 0?void 0:i[0])!==null&&n!==void 0?n:C?.bottom_image)!==null&&o!==void 0?o:g;return d.createElement(Ke,Object.assign({rec:f,className:U.css(Object.assign({},u)),style:{display:"flex"}},b),d.createElement("div",{className:U.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},v?.img))},d.createElement("img",{className:U.css({width:"100%",objectFit:"cover",height:"100%"}),src:p,hidden:!p,alt:""})),d.createElement("div",{className:U.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:qo["tow-line-ellipsis"],style:v?.title},(l=y?.title)!==null&&l!==void 0?l:"Product Name"),d.createElement("div",{className:U.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},v?.ctaTitle))},(r=(a=y?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&r!==void 0?r:"Shop Now")))};var Yo=d.memo(Xo);const Jo=fe(Yo,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u900F\u660E\u5E95",icon:"",category:"template",type:"Commodity",related:{interactionRender:Wo,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 Qo=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const Ko=t=>{var e,i,n,o,{content:l,style:a,bgImg:r,recData:s,bottom_image:u,ctaTempStyles:c}=t,f=de(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles"]);const{sxpParameter:g}=J(),v=(e=s?.video)===null||e===void 0?void 0:e.bindCta;return d.createElement(Ke,Object.assign({rec:s,className:U.css(Object.assign({alignItems:"center"},a)),style:{display:"flex"}},f),d.createElement("div",{className:U.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},c?.img))},d.createElement("img",{className:U.css({width:"100%",objectFit:"cover",height:"100%"}),src:(n=(i=v?.icon)!==null&&i!==void 0?i:g?.bottom_image)!==null&&n!==void 0?n:u,alt:""})),d.createElement("div",{className:U.css(Object.assign({overflow:"hidden",textOverflow:"ellipsis"},c?.ctaTitle))},(o=v?.enTitle)!==null&&o!==void 0?o:"Product Name"))};var Zo=d.memo(Ko);const el=fe(Zo,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"template",type:"Appoint",related:{interactionRender:Qo,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 tl={"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU"};const il=t=>{var e,i,n,o,l,{content:a,style:r,bgImg:s,recData:u,bottom_image:c,ctaTempStyles:f}=t,g=de(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles"]);const{sxpParameter:v,bffEventReport:b}=J(),{jumpToWeb:C}=Qe(),y=(e=u?.video)===null||e===void 0?void 0:e.bindCta,p=(i=u?.video)===null||i===void 0?void 0:i.bindProduct,m=()=>{y?.link&&(C(u,p,y),window.location.href=window.getJointUtmLink(y.link))};return d.createElement(Ke,Object.assign({rec:u,className:U.css(Object.assign({alignItems:"center"},r)),style:{display:"flex"}},g,{onClick:m}),d.createElement("div",{className:U.css(Object.assign({backgroundColor:"#f2f2f2",overflow:"hidden",flexShrink:0},f?.img))},d.createElement("img",{className:U.css({width:"100%",objectFit:"cover",height:"100%"}),src:(o=(n=y?.icon)!==null&&n!==void 0?n:v?.bottom_image)!==null&&o!==void 0?o:c,alt:""})),d.createElement("div",{className:U.css({display:"flex",alignItems:"center",width:"100%",overflow:"hidden"})},d.createElement("div",{className:tl["tow-line-ellipsis"],style:f?.ctaTitle},(l=y?.enTitle)!==null&&l!==void 0?l:"Product Name")))};var nl=d.memo(il);const ol=fe(nl,{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 ll=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],sl={"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};const al=t=>{var e,i,n,o,l,a,r,{content:s,style:u,bgImg:c,recData:f,bottom_image:g,ctaTempStyles:v}=t,b=de(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles"]);const{sxpParameter:C}=J(),y=(e=f?.video)===null||e===void 0?void 0:e.bindProduct,p=(o=(n=(i=y?.homePage)===null||i===void 0?void 0:i[0])!==null&&n!==void 0?n:C?.bottom_image)!==null&&o!==void 0?o:g;return d.createElement(Ke,Object.assign({rec:f,className:U.css(Object.assign({},u)),style:{display:"flex"}},b),d.createElement("div",{className:U.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},v?.img))},d.createElement("img",{className:U.css({width:"100%",objectFit:"cover",height:"100%"}),src:p,hidden:!p,alt:""})),d.createElement("div",{className:U.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:sl["tow-line-ellipsis"],style:v?.title},(l=y?.title)!==null&&l!==void 0?l:"Product Name"),d.createElement("div",{className:U.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",borderRadius:"25px",whiteSpace:"nowrap"},v?.ctaTitle))},(r=(a=y?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&r!==void 0?r:"Shop Now")))};var rl=d.memo(al);const dl=fe(rl,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u767D\u5E95\u5706\u89D2\u6309\u94AE",icon:"",category:"template",type:"CommodityDiro",related:{interactionRender:ll,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 cl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],ul={"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};const pl=t=>{var e,i,n,o,l,a,r,{content:s,style:u,bgImg:c,recData:f,bottom_image:g,ctaTempStyles:v}=t,b=de(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles"]);const{sxpParameter:C}=J(),y=(e=f?.video)===null||e===void 0?void 0:e.bindProduct,p=(o=(n=(i=y?.homePage)===null||i===void 0?void 0:i[0])!==null&&n!==void 0?n:C?.bottom_image)!==null&&o!==void 0?o:g;return d.createElement(Ke,Object.assign({rec:f,className:U.css(Object.assign({},u)),style:{display:"flex"}},b),d.createElement("div",{className:U.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},v?.img))},d.createElement("img",{className:U.css({width:"100%",objectFit:"cover",height:"100%"}),src:p,hidden:!p,alt:""})),d.createElement("div",{className:U.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",overflow:"hidden"})},d.createElement("div",{className:ul["tow-line-ellipsis"],style:v?.title},(l=y?.title)!==null&&l!==void 0?l:"Product Name"),d.createElement("div",{className:U.css(Object.assign({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},v?.ctaTitle))},(r=(a=y?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&r!==void 0?r:"Shop now")))};var fl=d.memo(pl);const vl=fe(fl,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u767D\u5E95\u4E0B\u5212\u7EBF\u6309\u94AE",icon:"",category:"template",type:"CommodityDiroNew",related:{interactionRender:cl,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 ml=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const hl=({children:t})=>d.createElement(Ge,{direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[an,sn,ln],style:{paddingRight:"20px"}},t);var rt=d.memo(hl);const gl=({src:t,rec:e,item:i})=>{const n=d.useRef(null),o=vi(n),{ctaEvent:l}=J();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 _t=d.memo(gl),bl={"two-line-ellipsis":"index-module_two-line-ellipsis__SFQwJ"};const yl=t=>{var e,i,{content:n,style:o,bgImg:l,recData:a,onClick:r,bottom_image:s,ctaTempStyles:u}=t,c=de(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles"]);const{ctaEvent:f,setPopupDetailData:g,sxpParameter:v}=J(),{popupAni:b}=he(),[C,y]=d.useState((i=(e=a?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),p=oe.throttle(m=>{f?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},a,m),g?.(Object.assign(Object.assign({},a),{video:Object.assign(Object.assign({},a?.video),{bindProduct:m})})),r?.()},b?.duration);return d.createElement(rt,null,C?.map(m=>{var h,T,D,P,N,S;return d.createElement(Ee,Object.assign({hidden:a&&!m?.bindCta,key:m?.itemId,className:U.css(Object.assign({flexShrink:0},o)),style:{display:"flex"}},c,{onClick:()=>p(m)}),d.createElement("div",{className:U.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},d.createElement(_t,{src:(D=(T=(h=m?.homePage)===null||h===void 0?void 0:h[0])!==null&&T!==void 0?T:v?.bottom_image)!==null&&D!==void 0?D:s,rec:a,item:m})),d.createElement("div",{className:U.css({color:"#000",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:bl["two-line-ellipsis"],style:u?.title},(P=m?.title)!==null&&P!==void 0?P:"Product Name"),d.createElement("div",{className:U.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",borderRadius:"25px",whiteSpace:"nowrap"},u?.ctaTitle))},(S=(N=m?.bindCta)===null||N===void 0?void 0:N.enTitle)!==null&&S!==void 0?S:"Shop Now")))}))};var wl=d.memo(yl);const Sl=fe(wl,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u767D\u5E95\u5706\u89D2\u6309\u94AE",icon:"",category:"template",type:"MultiCommodityDiro",related:{interactionRender:ml,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 Tl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],xl={"two-line-ellipsis":"index-module_two-line-ellipsis__mdzn0"};const Cl=t=>{var e,i,{content:n,style:o,bgImg:l,recData:a,onClick:r,bottom_image:s,ctaTempStyles:u}=t,c=de(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles"]);const{sxpParameter:f}=J(),{ctaEvent:g,setPopupDetailData:v}=J(),{popupAni:b}=he(),[C,y]=d.useState((i=(e=a?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),p=oe.throttle(m=>{g?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},a,m),v?.(Object.assign(Object.assign({},a),{video:Object.assign(Object.assign({},a?.video),{bindProduct:m})})),r?.()},b?.duration);return d.createElement(rt,null,C?.map(m=>{var h,T,D,P,N,S;return d.createElement(Ee,Object.assign({hidden:a&&!m?.bindCta,key:m.itemId,className:U.css(Object.assign({flexShrink:0},o)),style:{display:"flex"}},c,{onClick:()=>p(m)}),d.createElement("div",{className:U.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},d.createElement(_t,{src:(D=(T=(h=m?.homePage)===null||h===void 0?void 0:h[0])!==null&&T!==void 0?T:f?.bottom_image)!==null&&D!==void 0?D:s,rec:a,item:m})),d.createElement("div",{className:U.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},d.createElement("div",{className:xl["two-line-ellipsis"],style:u?.title},(P=m?.title)!==null&&P!==void 0?P:"Product Name"),d.createElement("div",{className:U.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},u?.ctaTitle))},(S=(N=m?.bindCta)===null||N===void 0?void 0:N.enTitle)!==null&&S!==void 0?S:"Shop Now")))}))};var El=d.memo(Cl);const Il=fe(El,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u900F\u660E\u5E95",icon:"",category:"template",type:"MultiCommodity",related:{interactionRender:Tl,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 Dl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Al={"tow-line-ellipsis":"index-module_tow-line-ellipsis__fselR"};const Pl=t=>{var e,i,{content:n,style:o,bgImg:l,recData:a,onClick:r,bottom_image:s,ctaTempStyles:u}=t,c=de(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles"]);const{ctaEvent:f,setPopupDetailData:g,sxpParameter:v}=J(),{popupAni:b}=he(),[C,y]=d.useState((i=(e=a?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),p=oe.throttle(m=>{f?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},a,m),g?.(Object.assign(Object.assign({},a),{video:Object.assign(Object.assign({},a?.video),{bindProduct:m})})),r?.()},b?.duration);return d.createElement(rt,null,C?.map(m=>{var h,T,D,P,N,S;return d.createElement(Ee,Object.assign({hidden:a&&!m?.bindCta,key:m?.itemId,className:U.css(Object.assign({flexShrink:0},o)),style:{display:"flex"}},c,{onClick:()=>p(m)}),d.createElement("div",{className:U.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},d.createElement(_t,{src:(D=(T=(h=m?.homePage)===null||h===void 0?void 0:h[0])!==null&&T!==void 0?T:v?.bottom_image)!==null&&D!==void 0?D:s,rec:a,item:m})),d.createElement("div",{className:U.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",overflow:"hidden",lineHeight:"20px"})},d.createElement("div",{className:Al["tow-line-ellipsis"],style:u?.title},(P=m?.title)!==null&&P!==void 0?P:"Product Name"),d.createElement("div",{className:U.css(Object.assign({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},u?.ctaTitle))},(S=(N=m?.bindCta)===null||N===void 0?void 0:N.enTitle)!==null&&S!==void 0?S:"Shop now")))}))};var kl=d.memo(Pl);const _l=fe(kl,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u767D\u5E95\u4E0B\u5212\u7EBF\u6309\u94AE",icon:"",category:"template",type:"MultiCommodityDiroNew",related:{interactionRender:Dl,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 Ml=[{title:"\u5361\u7247\u6837\u5F0F",child:[{type:"Number",label:"\u6587\u672C\u884C\u6570",name:["props","lineClamp"]},{type:"Number",label:"\u4E0A\u4E0B\u8FB9\u8DDD",name:["props","space"],addonAfter:"px"}]},{title:"\u6587\u672C\u8BBE\u7F6E",child:[{name:["props","textStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"hashtag\u6807\u9898",value:"hashTagTitle"},{label:"hashtag\u63CF\u8FF0",value:"hashTagDesc"},{label:"\u6807\u9898",value:"title"},{label:"\u4EF7\u683C",value:"price"}],name:["props","textStyles","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"}]}]},{title:"\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 Ol=({icon:t,styles:e,textStyle:i,onClose:n})=>{var o;const{waterFallData:l,setOpenHashtag:a}=J();return d.createElement("div",{className:"clc-sxp-nav",style:e},d.createElement("img",{className:"clc-sxp-nav-left",src:t,alt:"",onClick:n}),d.createElement("div",{className:"clc-sxp-nav-title",style:i},`#${(o=l?.hashTag)!==null&&o!==void 0?o:"\u6807\u9898"}`))};var mi=d.memo(Ol),Rl=null,Ll="3d989325-e7d6-4a74-8a97-98febdf5b567",Nl=null,Bl=null,jl={info:"The dior toujours bag is distinguished by a casual and practical design. Fully embroidered with black textured tweed, it is accented by a blend of threads displaying the cannage motif.",link:"www.baidu.com",linkTitle:null,linkType:"WEB"},zl=[{position:"0",isCollected:null,video:{itemId:"VIDEOY2BMu1710323630175",title:"A symbol of excellence, the Dior Toujours bag is reinterpreted in an unprecedented version. For the Dior spring-summer 2024 ready-to-wear collection, this exceptional accessory, dreamed up by Maria Grazia Chiuri, is dressed in irresistible crinkled leather featuring the iconic macrocannage motif. A new emblem of the virtuoso, perpetually reinvented savoir-faire of the Dior Ateliers.",tags:["Dior Toujours Bag","Casual","Leather Strap","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOY2BMu1710323630175:default:3::branch:Handbags:0",bindCta:null,bindProduct:{itemId:"M2821SNIOM900",title:"Medium Dior Toujours Bag Black Macrocannage Crinkled Leather",tags:["Medium","Black","Women","Handbags","Bucket Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2821SNIOM900:default:3::branch:Handbags:0",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:0",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsy6AN0OWw3rj8Luw3RTSP9n2kDLq1710497237677.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fszTc3uEUrtppdN9QVVU2XBnaaaBY1710497237986.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKbBMTRa0tTTX661wu7DzLw9OP0r1710497237980.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsOYHlYCwgzalxzmIJcsZmIsJ2L3g1710497237145.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKJqNVm1ZBlrgZ8XLC0YAaO6ws2F1710497237650.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsm2VoVancBQ20nDHceESUPNLyrUy1710497238312.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs2B5YYmv8OztP3d9rlM2a9KmYswl1710497237339.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the 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.",price:4400,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fswbY3wT0hCmrYkrqDzFKnHb3NMux1710323481052.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fs3Ifqv7fk2Tn9nPtwOTO2YjxAuRO1710323470472.mp4",imgUrls:null,hashTags:["Dior Toujours Bag","Casual","Leather Strap","Handbags"]},product:null,cta:null},{position:"1",isCollected:null,video:{itemId:"VIDEO6JCOb1710323364018",title:"Maria grazia chiuri's hallmark dior book tote offers an original take on elegance. Unveiled at the cruise 2024 fashion show, the refined style showcases the iconic blue dior oblique embroidery and calfskin. Designed to keep all the daily essentials organized, the interior is equipped with a zipped pocket and patch pockets.",tags:["Handbags","Manufacturing Craftsmanship","Dior Book Tote"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEO6JCOb1710323364018:default:3::branch:Handbags:1",bindCta:null,bindProduct:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:1",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:1",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsAHlkdbqYj5F84o2faRzU1E3AvG11710323339209.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fs7KIGk2IB0MsoDL1ANWB1Mb2hqu41710323314146.mp4",imgUrls:null,hashTags:["Handbags","Dior Book Tote"]},product:null,cta:null},{position:"2",isCollected:null,video:null,product:{itemId:"M2820OTKVM911",title:"Large Dior Toujours Bag Black Cannage Tweed",tags:["Black","Women","Handbags","Bucket Bag","Dior Toujours Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2820OTKVM911:default:3::branch:Handbags:2",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:2",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fsJTjyFchOFEJSTRYxXvL2XPU1dP61710238469418.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fstdFA1dFT55QjtQPU2qHNENo5peF1710836061716.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fs9xf8AlIApbHezVL3BsxjUGIrN231710836061181.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fs9iZ20MjLAPkXmFKvD8HzhLaBJ671710238470272.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fsSSodev3wicDfE1DYNWPQVeRjErt1710238464035.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fs3YAOuN6Pd9NFvH1Rdooj6eLI18S1710238465296.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fsBwIEp6OzI49isvHgiKD0cPSFtrD1710238459007.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M2820OTKV_M911-large-dior-toujours-bag",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Fully embroidered with black textured tweed, it is accented by a blend of threads displaying the cannage motif. It showcases a spacious interior compartment with a matching pouch to organize the essentials, while a leather strap closure keeps items secure and the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette.",price:4200,currency:"USD-$"},cta:null},{position:"3",isCollected:null,video:{itemId:"VIDEOOL1qU1709616182569",title:"Maria grazia chiuri brings a fresh update to the iconic saddle bag. Crafted in black grained calfskin, the legendary design features a saddle flap with a d stirrup clasp on a magnetic strap, as well as an antique gold-finish metal cd signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the saddle bag may be carried by hand, worn over the shoulder or crossbody.. Saddle bag with strap Black grained calfskin",tags:["Maria Grazia Chiuri","Saddle Bags","Removable Shoulder Strap","Shoulder","Crossbody","Cross-body & Shoulder Bags","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOOL1qU1709616182569:default:3::branch:Handbags:3",bindCta:null,bindProduct:{itemId:"M0455CBAAM900",title:"Saddle Bag with Strap",tags:["Saddle Bags","Handbags","Maria Grazia Chiuri"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0455CBAAM900:default:3::branch:Handbags:3",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:3",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsiwfgnCrVBGcGPh6gaFsvbYBIpxX1709285334896.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsXpilTgUS4u4oFWr0hUew8DQITi11709285353202.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsWxJm6YIeRYmDtDoB5WtYMjRX8bm1709285366208.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsj69PxKh1SAZ6p0902FbBT0vg2at1709285373714.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fs78nKueByU2cNulReOw8gJ1ZsieF1709285412981.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsmAEriTIohZAUMUE6gUCWvXwbbRE1709285429332.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0455CBAA_M900-saddle-bag-with-strap-black-grained-calfskin?objectID=M0455CBAA_M900&query=M0455CBAAM900&queryID=c171c63e69d6d109953e2de631718496",linkTitle:null,linkType:"WEB",info:"Maria Grazia Chiuri brings a fresh update to the iconic Saddle bag. Crafted in black grained calfskin, the legendary design features a Saddle flap with a D stirrup clasp on a magnetic strap, as well as an antique gold-finish metal CD signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the Saddle bag may be carried by hand, worn over the shoulder or crossbody.",price:4400,currency:"USD-$"},bindProducts:[],cover:null,url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsvbBN3IRfwctVIhdqgq3doWmhbb21710399187965.jpg"],hashTags:["Maria Grazia Chiuri","Saddle Bags","Handbags"]},product:null,cta:null},{position:"4",isCollected:null,video:null,product:{itemId:"S5909CTZQM928",title:"Saddle Shoulder Pouch Blue Dior Oblique Jacquard ",tags:["Saddle Bags","Handbags","Small-Leather-Goods","Small","Mini Bags"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:S5909CTZQM928:default:3::branch:Handbags:4",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:4",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fs34CpwKJOyjEDgoHypoLYakF8oR31710316280669.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsLOSOEf9pmz7wKnFaifWNw3TZ7Gy1710316287874.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsWHmVcrzHKKj6EfhfnQkxYIOt20a1710316295683.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fslyBNMyQwjpjY4EKzyrqzTMlOGRQ1710316313161.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/S5909CTZQ",linkTitle:null,linkType:"WEB",info:null,price:4900,currency:"USD-$"},cta:null},{position:"5",isCollected:null,video:{itemId:"VIDEOrZguC1710324513737",title:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",tags:["Handbags","Dior Book Tote"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOrZguC1710324513737:default:3::branch:Handbags:5",bindCta:null,bindProduct:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:5",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:5",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fstXNWStczbY8HbIKEqMwfCkv5CI51710324494939.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsOqu34FxaJTdascLcj6DHoYIIAs01710324439851.mp4",imgUrls:null,hashTags:["Handbags","Dior Book Tote"]},product:null,cta:null},{position:"6",isCollected:null,video:null,product:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:6",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:6",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},cta:null},{position:"7",isCollected:null,video:{itemId:"VIDEOEtr621710300614047",title:"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. T",tags:["Handbags","Leather Strap","Spring-Summer 2024 Fashion Show","Backstage","Dior Toujours Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOEtr621710300614047:default:3::branch:Handbags:7",bindCta:null,bindProduct:null,bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fshkOldZwfsSqTgvxHJzNBwS66ySc1710300910103.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsryDXTtPWXjYFWoSUEBUi48RHZCh1710398617300.jpg"],hashTags:["Backstage","Handbags","Spring-Summer 2024 Fashion Show","Dior Toujours Bag"]},product:null,cta:null},{position:"8",isCollected:null,video:{itemId:"VIDEOO8Zjt1709616802987",title:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",tags:["Blue","Medium","Shoulder","Hand","Handbags","Dior Book Tote"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOO8Zjt1709616802987:default:3::branch:Handbags:8",bindCta:null,bindProduct:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:8",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:8",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsmS72zfInwmblYTnuYzRuZKAOlhr1709616742898.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsU2gDw28XFd1nOAqlUjb1r1h6mpT1710400349981.jpg"],hashTags:["Dior Book Tote","Handbags"]},product:null,cta:null},{position:"9",isCollected:null,video:null,product:{itemId:"M2821SNIOM900",title:"Medium Dior Toujours Bag Black Macrocannage Crinkled Leather",tags:["Medium","Black","Women","Handbags","Bucket Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2821SNIOM900:default:3::branch:Handbags:9",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:9",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsy6AN0OWw3rj8Luw3RTSP9n2kDLq1710497237677.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fszTc3uEUrtppdN9QVVU2XBnaaaBY1710497237986.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKbBMTRa0tTTX661wu7DzLw9OP0r1710497237980.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsOYHlYCwgzalxzmIJcsZmIsJ2L3g1710497237145.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKJqNVm1ZBlrgZ8XLC0YAaO6ws2F1710497237650.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsm2VoVancBQ20nDHceESUPNLyrUy1710497238312.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs2B5YYmv8OztP3d9rlM2a9KmYswl1710497237339.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the 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.",price:4400,currency:"USD-$"},cta:null},{position:"10",isCollected:null,video:{itemId:"VIDEOesZlV1710323980494",title:"The lady dior bag embodies dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the house's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic cannage topstitching, while the ultra-matte metal d.i.o.r. Charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium lady dior bag can be carried by hand or worn crossbody.",tags:["Lady Dior","Removable Shoulder Strap","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOesZlV1710323980494:default:3::branch:Handbags:10",bindCta:null,bindProduct:{itemId:"M0565SDBRM900",title:"Medium Lady Dior Bag",tags:["Women","Black","Handbags","Hand","Lady Dior","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565SDBRM900:default:3::branch:Handbags:10",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:10",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsnyiCm9oirbXLqmqY7231O8O2Yhb1710498970982.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fskwIRRKCtuw9cb9btuubt2D5bXfB1710498970676.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqXFTCyhxspeYCD3uo4UiuN5vQ7w1710498970671.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8rDRSKJmWUNI42MjrMWVlI0D9Fz1710498970729.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsca9Cjqo3WMJVU0OL0OjQo8xOoMx1710498972076.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsjl1bxi56X0QrKwfvl8YocBVJ2N81710498971352.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M0565SDBR_M900-medium-lady-dior-bag-black-patent-to-matte-gradient-cannage-lambskin?objectID=M0565SDBR_M900&query=M0565SDBRM900&queryID=14cc52b35774a9a42e78fd9ba199860e",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the House's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic Cannage topstitching, while the ultra-matte metal D.I.O.R. charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or worn crossbody.",price:7100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsiwMQ88zO5Xdnl939krMyBMbz7Js1710323763013.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsxyS8nr7nn0LMe7EqOt3ETXqLu7d1710323753073.mp4",imgUrls:null,hashTags:["Lady Dior","Handbags"]},product:null,cta:null},{position:"11",isCollected:null,video:{itemId:"VIDEOdvsXq1710324342942",title:"New for summer 2024, the lady d-sire my abcdior bag draws inspiration from the signature elegance of the lady dior design. Reimagined with a casual style for an urban look, the lightweight black grained bull leather feels soft to the touch yet offers excellent durability. The medium bag is embellished with pale gold-finish metal d.i.o.r. Charms that highlight the silhouette.",tags:["Summer 2024","Lady Dior","Casual","Lightweight","Medium","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOdvsXq1710324342942:default:3::branch:Handbags:11",bindCta:null,bindProduct:{itemId:"M1151OTRLM900",title:"Medium Lady D-Sire My ABCDior Bag",tags:["Handbags","Summer 2024","Lady Dior","Black","Medium","Women","Lady D-Sire"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1151OTRLM900:default:3::branch:Handbags:11",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:11",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsBvqPYhaE9Ct1JzBd4gm8g9YOiAZ1710499102900.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs6sf9nB7WpJuLNIZT3c8O8Fmf3Gu1710499102936.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsSxYBxyVx2yRrUgEaYmarWhlUbk41710499102531.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsyhykK1B7W9613MAfipfIuE1foim1710499102345.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs6FXJdaXib8lP0NPloe1XQGpoiKc1710499103268.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsCRx7T4ejNvgKNensH6LT4dPt6251710499103615.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M1151OTRL_M900-medium-lady-d-sire-my-abcdior-bag-black-bull-leather?objectID=M1151OTRL_M900&query=M1151OTRLM900&queryID=e82938220687c425c75277a7c526b932",linkTitle:null,linkType:"WEB",info:"New for Summer 2024, the Lady D-Sire My ABCDior bag draws inspiration from the signature elegance of the Lady Dior design. Reimagined with a casual style for an urban look, the lightweight black grained bull leather feels soft to the touch yet offers excellent durability. The medium bag is embellished with pale gold-finish metal D.I.O.R. charms that highlight the silhouette. Showcasing a shoulder strap that can be personalized by adding symbolic badges, the unique bag can be carried by hand or w",price:6100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsOsdUSXr57U5Twhhkv17th3yHqBJ1710324292456.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsZyr3slVtlsParX6D0DqsM0QEx8d1710324283147.mp4",imgUrls:null,hashTags:["Summer 2024","Lady Dior","Handbags"]},product:null,cta:null},{position:"12",isCollected:null,video:{itemId:"VIDEOy76Fr1710324746846",title:"Maria grazia chiuri brings a fresh update to the iconic saddle bag. Crafted in black grained calfskin, the legendary design features a saddle flap with a d stirrup clasp on a magnetic strap, as well as an antique gold-finish metal cd signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the saddle bag may be carried by hand, worn over the shoulder or crossbody.. Saddle bag with strap Black grained calfskin",tags:["Maria Grazia Chiuri","Saddle Bags","Removable Shoulder Strap","Hand","Shoulder","Crossbody","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOy76Fr1710324746846:default:3::branch:Handbags:12",bindCta:null,bindProduct:{itemId:"M0455CBAAM900",title:"Saddle Bag with Strap",tags:["Saddle Bags","Handbags","Maria Grazia Chiuri"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0455CBAAM900:default:3::branch:Handbags:12",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:12",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsiwfgnCrVBGcGPh6gaFsvbYBIpxX1709285334896.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsXpilTgUS4u4oFWr0hUew8DQITi11709285353202.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsWxJm6YIeRYmDtDoB5WtYMjRX8bm1709285366208.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsj69PxKh1SAZ6p0902FbBT0vg2at1709285373714.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fs78nKueByU2cNulReOw8gJ1ZsieF1709285412981.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsmAEriTIohZAUMUE6gUCWvXwbbRE1709285429332.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0455CBAA_M900-saddle-bag-with-strap-black-grained-calfskin?objectID=M0455CBAA_M900&query=M0455CBAAM900&queryID=c171c63e69d6d109953e2de631718496",linkTitle:null,linkType:"WEB",info:"Maria Grazia Chiuri brings a fresh update to the iconic Saddle bag. Crafted in black grained calfskin, the legendary design features a Saddle flap with a D stirrup clasp on a magnetic strap, as well as an antique gold-finish metal CD signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the Saddle bag may be carried by hand, worn over the shoulder or crossbody.",price:4400,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsqwogfFahvNml7vmATxwfKLcNlh91710324602536.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsVRd4z4V8UScNc7Wc96xv4xDVByb1710324589932.mp4",imgUrls:null,hashTags:["Maria Grazia Chiuri","Saddle Bags","Handbags"]},product:null,cta:null},{position:"13",isCollected:null,video:{itemId:"VIDEOvqhF71709609258469",title:"The lady dior bag embodies dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the house's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic cannage topstitching, while the ultra-matte metal d.i.o.r. Charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium lady dior bag can be carried by hand or worn crossbody.",tags:["Thin","Removable Shoulder Strap","Medium","Lady Dior","Crossbody","Handbags","Cross-body & Shoulder Bags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOvqhF71709609258469:default:3::branch:Handbags:13",bindCta:null,bindProduct:{itemId:"M0565SDBRM900",title:"Medium Lady Dior Bag",tags:["Women","Black","Handbags","Hand","Lady Dior","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565SDBRM900:default:3::branch:Handbags:13",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:13",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsnyiCm9oirbXLqmqY7231O8O2Yhb1710498970982.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fskwIRRKCtuw9cb9btuubt2D5bXfB1710498970676.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqXFTCyhxspeYCD3uo4UiuN5vQ7w1710498970671.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8rDRSKJmWUNI42MjrMWVlI0D9Fz1710498970729.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsca9Cjqo3WMJVU0OL0OjQo8xOoMx1710498972076.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsjl1bxi56X0QrKwfvl8YocBVJ2N81710498971352.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M0565SDBR_M900-medium-lady-dior-bag-black-patent-to-matte-gradient-cannage-lambskin?objectID=M0565SDBR_M900&query=M0565SDBRM900&queryID=14cc52b35774a9a42e78fd9ba199860e",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the House's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic Cannage topstitching, while the ultra-matte metal D.I.O.R. charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or worn crossbody.",price:7100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsHmNyOcNdgB9Y8aIFYWCHlEZVl4x1709608981919.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fslhMX6mwCM4i5XFY6dpcMZdPocYv1710398865153.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsJQCe9rZmsEjuIUpdck9Hs2gpNU81710398856427.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsnHUJufSHptF88bNsyUGmSSKYH4A1710398855734.jpg"],hashTags:["Lady Dior","Handbags"]},product:null,cta:null},{position:"14",isCollected:null,video:null,product:{itemId:"M0455CBAAM900",title:"Saddle Bag with Strap",tags:["Saddle Bags","Handbags","Maria Grazia Chiuri"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0455CBAAM900:default:3::branch:Handbags:14",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:14",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsiwfgnCrVBGcGPh6gaFsvbYBIpxX1709285334896.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsXpilTgUS4u4oFWr0hUew8DQITi11709285353202.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsWxJm6YIeRYmDtDoB5WtYMjRX8bm1709285366208.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsj69PxKh1SAZ6p0902FbBT0vg2at1709285373714.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fs78nKueByU2cNulReOw8gJ1ZsieF1709285412981.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsmAEriTIohZAUMUE6gUCWvXwbbRE1709285429332.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0455CBAA_M900-saddle-bag-with-strap-black-grained-calfskin?objectID=M0455CBAA_M900&query=M0455CBAAM900&queryID=c171c63e69d6d109953e2de631718496",linkTitle:null,linkType:"WEB",info:"Maria Grazia Chiuri brings a fresh update to the iconic Saddle bag. Crafted in black grained calfskin, the legendary design features a Saddle flap with a D stirrup clasp on a magnetic strap, as well as an antique gold-finish metal CD signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the Saddle bag may be carried by hand, worn over the shoulder or crossbody.",price:4400,currency:"USD-$"},cta:null},{position:"15",isCollected:null,video:{itemId:"VIDEO693hq1709628690318",title:"New for the summer 2024 season, the dior caro top handle camera bag is a sophisticated and practical design. Crafted in black calfskin, the small model is elevated by the originality of the macrocannage stitching's quilted effect. The bag features a zip closure and an antique gold-tone metal cd signature.",tags:["Ready-To-Wear","Handbags","Signature Hardware Design","Monogram/Logo Print","Calfskin Leather","Summer 2024","Black"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEO693hq1709628690318:default:3::branch:Handbags:15",bindCta:null,bindProduct:{itemId:"M3352UBHMM900",title:"Small Dior Caro Top Handle Camera Bag Black Macrocannage Calfskin ",tags:["Summer 2024","Black","Women","Handbags","Dior Caro"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M3352UBHMM900:default:3::branch:Handbags:15",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:15",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsx3wufMP9P6ovvCrXL58eVVA61gI1710499528917.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs82a414vXXhbgMXsw3Zm8TWyDMvI1710499528543.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsJaZoFhur3jfMEciQdk5GMV8O2un1710499528346.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fstO8CRKfBzpJUmAMyCDHDo23ji9N1710499528346.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsagaUiox7KECRhbPn6MScg3s4Nwd1710499528602.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsBsyFADiYBLWHaAIQfNRsgweVOWj1710499529947.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqJEwfvOLpXQ6nQt76o92XdLwzs11710499529939.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M3352UBHM_M900",linkTitle:null,linkType:"WEB",info:"New for the Summer 2024 season, the Dior Caro Top Handle Camera bag is a sophisticated and practical design. Crafted in black calfskin, the small model is elevated by the originality of the Macrocannage stitching's quilted effect. The bag features a zip closure and an antique gold-tone metal CD signature. ",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsZhMDVzP6kuh9Qt86c11whAMglMU1709628656988.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsWrEKA6oRWUmOY14D1POTJjgiks51710401973577.jpg"],hashTags:["Ready-To-Wear"]},product:null,cta:null},{position:"16",isCollected:null,video:{itemId:"VIDEO2rUuG1709617832960",title:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the 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.",tags:["Dior Toujours Bag","Casual","Leather Strap","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEO2rUuG1709617832960:default:3::branch:Handbags:16",bindCta:null,bindProduct:{itemId:"M2821SNIOM900",title:"Medium Dior Toujours Bag Black Macrocannage Crinkled Leather",tags:["Medium","Black","Women","Handbags","Bucket Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2821SNIOM900:default:3::branch:Handbags:16",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:16",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsy6AN0OWw3rj8Luw3RTSP9n2kDLq1710497237677.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fszTc3uEUrtppdN9QVVU2XBnaaaBY1710497237986.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKbBMTRa0tTTX661wu7DzLw9OP0r1710497237980.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsOYHlYCwgzalxzmIJcsZmIsJ2L3g1710497237145.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKJqNVm1ZBlrgZ8XLC0YAaO6ws2F1710497237650.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsm2VoVancBQ20nDHceESUPNLyrUy1710497238312.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs2B5YYmv8OztP3d9rlM2a9KmYswl1710497237339.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the 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.",price:4400,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fs0BUtn8TYp4l8gWsg5WD9Ht8AP7R1709617796077.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsmecPfhI3OtZwJmKAXLv8scBSSdK1710399333565.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsfsWBLxbC36B7Pm7Ae1uL98EmoaH1710399333017.jpg"],hashTags:["Handbags","Dior Toujours Bag"]},product:null,cta:null},{position:"17",isCollected:null,video:{itemId:"VIDEOGZGZI1709629679782",title:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless white and navy blue calfskin style offers a new take on the iconic House motif with this season's signature Toile de Jouy Soleil, layering suns and crescent moons into a floral design representing the four seasons. A",tags:["Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOGZGZI1709629679782:default:3::branch:Handbags:17",bindCta:null,bindProduct:{itemId:"M0565OZEDM928",title:"Medium Lady Dior Bag",tags:["Lady Dior","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565OZEDM928:default:3::branch:Handbags:17",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:17",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsbVwOx4grEmqCNmvOnKpIS0vTPPc1710499656033.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsJrpY9R8uGenvzM7NnzI4lPMCF8g1710836215790.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsYQG9gipUNt6UbzFPXTwLTNgj5BF1710836214937.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsqPEXjWl7l3wPAxJIZbnnhZPXDCw1710836216838.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsNHlPmAsNYPsGDJ5w0G213wJkwFf1710499654946.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8dAObnEoAYe1V6pwJOGTs4vCBJO1710499655963.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsJpaBPC8OxQ4aYwxsMcqZpGtPWnq1710499655730.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0565OZED_M928",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless white and navy blue calfskin style offers a new take on the iconic House motif with this season's signature Toile de Jouy Soleil, layering suns and crescent moons into a floral design representing the four seasons. Accented by pale gold-finish metal D.I.O.R. charms illuminating the silhouette and featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or wo",price:6500,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsG1IT2gcB5iabcTL89Xs9bRHISMb1709629659698.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsJB1txgzSsQLBBJSTzqGI40BvLkr1710399454552.jpg"],hashTags:["Handbags"]},product:null,cta:null},{position:"18",isCollected:null,video:{itemId:"VIDEOC2IMa1710324169054",title:"The lady dior bag embodies dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the house's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic cannage topstitching, while the ultra-matte metal d.i.o.r. Charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium lady dior bag can be carried by hand or worn crossbody.",tags:["Lady Dior","Removable Shoulder Strap","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOC2IMa1710324169054:default:3::branch:Handbags:18",bindCta:null,bindProduct:{itemId:"M0565SDBRM900",title:"Medium Lady Dior Bag",tags:["Women","Black","Handbags","Hand","Lady Dior","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565SDBRM900:default:3::branch:Handbags:18",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:18",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsnyiCm9oirbXLqmqY7231O8O2Yhb1710498970982.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fskwIRRKCtuw9cb9btuubt2D5bXfB1710498970676.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqXFTCyhxspeYCD3uo4UiuN5vQ7w1710498970671.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8rDRSKJmWUNI42MjrMWVlI0D9Fz1710498970729.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsca9Cjqo3WMJVU0OL0OjQo8xOoMx1710498972076.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsjl1bxi56X0QrKwfvl8YocBVJ2N81710498971352.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M0565SDBR_M900-medium-lady-dior-bag-black-patent-to-matte-gradient-cannage-lambskin?objectID=M0565SDBR_M900&query=M0565SDBRM900&queryID=14cc52b35774a9a42e78fd9ba199860e",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the House's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic Cannage topstitching, while the ultra-matte metal D.I.O.R. charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or worn crossbody.",price:7100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsuF6sqlC9LCBLTgxHwMRinXwB6bF1710324135846.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsFwNsGElWR2SXQ2tWwHkaiqMZN5H1710324095954.mp4",imgUrls:null,hashTags:["Lady Dior","Handbags"]},product:null,cta:null},{position:"19",isCollected:null,video:null,product:{itemId:"M0565OZEDM928",title:"Medium Lady Dior Bag",tags:["Lady Dior","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565OZEDM928:default:3::branch:Handbags:19",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:19",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsbVwOx4grEmqCNmvOnKpIS0vTPPc1710499656033.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsJrpY9R8uGenvzM7NnzI4lPMCF8g1710836215790.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsYQG9gipUNt6UbzFPXTwLTNgj5BF1710836214937.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsqPEXjWl7l3wPAxJIZbnnhZPXDCw1710836216838.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsNHlPmAsNYPsGDJ5w0G213wJkwFf1710499654946.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8dAObnEoAYe1V6pwJOGTs4vCBJO1710499655963.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsJpaBPC8OxQ4aYwxsMcqZpGtPWnq1710499655730.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0565OZED_M928",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless white and navy blue calfskin style offers a new take on the iconic House motif with this season's signature Toile de Jouy Soleil, layering suns and crescent moons into a floral design representing the four seasons. Accented by pale gold-finish metal D.I.O.R. charms illuminating the silhouette and featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or wo",price:6500,currency:"USD-$"},cta:null}],Vl="Handbags",Fl={productUserId:Rl,requestId:Ll,channel:Nl,rtc:Bl,tag:jl,recList:zl,hashTag:Vl};const Hl=t=>{const{rec:e,index:i,list:n,reportTagsView:o,textStyles:l,space:a}=t,{swiperRef:r,setRtcList:s,setOpenHashtag:u,bffEventReport:c,sxpParameter:f}=J(),[g,v]=d.useState(!1),b=d.useRef(null),C=d.useRef(null),y=d.useRef(null),[p,m]=d.useState(""),h=d.useMemo(()=>{var S,w,E,A,x,I,k,R,B,V,_,M;return!((S=e?.video)===null||S===void 0)&&S.cover?(w=e?.video)===null||w===void 0?void 0:w.cover:!((E=e?.video)===null||E===void 0)&&E.url?(v(!0),(A=e?.video)===null||A===void 0?void 0:A.url):!((I=(x=e?.video)===null||x===void 0?void 0:x.imgUrls)===null||I===void 0)&&I.length?(R=(k=e?.video)===null||k===void 0?void 0:k.imgUrls)===null||R===void 0?void 0:R[0]:!((V=(B=e?.product)===null||B===void 0?void 0:B.homePage)===null||V===void 0)&&V.length?(M=(_=e?.product)===null||_===void 0?void 0:_.homePage)===null||M===void 0?void 0:M[0]:f?.bottom_image||""},[e,f?.bottom_image]),T=d.useMemo(()=>{var S,w;return((S=e?.product)===null||S===void 0?void 0:S.title)||((w=e?.video)===null||w===void 0?void 0:w.title)||null},[e]),D=d.useMemo(()=>{var S,w,E,A,x,I,k,R,B;return!((S=e?.product)===null||S===void 0)&&S.currency&&(!((w=e?.product)===null||w===void 0)&&w.price)?`${(I=(x=(A=(E=e?.product)===null||E===void 0?void 0:E.currency)===null||A===void 0?void 0:A.split("-")[1])===null||x===void 0?void 0:x.toUpperCase())!==null&&I!==void 0?I:""}${(B=(R=(k=e?.product)===null||k===void 0?void 0:k.price)===null||R===void 0?void 0:R.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&B!==void 0?B:""}`:null},[e]);d.useEffect(()=>{const S=new IntersectionObserver(w=>{w.forEach(E=>{if(E.isIntersecting){if(b.current===null||h==="")return;g&&p?b.current.src=p:b.current.src=h,S.unobserve(b.current)}})});return S.observe(b.current),()=>{S.disconnect()}},[h,g,p]);const P=(S,w,E)=>{const A=S/w;return E/A};d.useEffect(()=>{const S=C?.current;S===null||h===""||!g||(S.src=h,S.currentTime=1,S.crossOrigin="anonymous",S.onloadeddata=()=>{const w=y?.current;if(!w)return;const E=w.getContext("2d"),A=window?.innerWidth/2,x=P(S.videoWidth,S.videoHeight,A);w.height=x,w.width=A,E?.drawImage(S,0,0,w.width,w.height),m(w.toDataURL()),S.remove(),w.remove()})},[h,g]);const N=()=>{o(),s?.(n),setTimeout(()=>{var S;(S=r?.current)===null||S===void 0||S.swiper.slideTo(i,0,!1),u?.(!1)},0)};return d.createElement("div",{className:"list-content-listItem",key:i,onClick:N,style:{marginBottom:a}},d.createElement("div",{className:"list-content-listItem-picture"},g&&d.createElement("div",{style:{display:"none"}},d.createElement("video",{ref:C,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:b})),d.createElement("div",{className:"list-content-listItem-info"},d.createElement("div",{className:`list-content-listItem-info-title ${D?"list-content-listItem-info-nowrap":""}`,style:l?.title},T&&T),d.createElement("div",{className:"list-content-listItem-info-price",style:l.price,hidden:!D},D)))};function Ul(t){var e,i,n,o,l,a,r,{reportTagsView:s}=t,u=de(t,["reportTagsView"]);const{waterFallData:c,getRecommendVideos:f,hashTagSize:g,loadingImage:v,isOpenHashTag:b}=J(),[C,y]=d.useState(),[p,m]=d.useState(),[h,T]=d.useState(!1),D=d.useRef(null),[P,N]=d.useState(!1);d.useCallback(()=>{P||(N(!0),c&&f?.({hashTag:c?.hashTag,"itemFilter.itemId":c?.itemId,"itemFilter.itemType":c?.itemType}).then(w=>{var E;y(C?.concat((E=w?.recList)!==null&&E!==void 0?E:[])),N(!1)}))},[c,f,C,P]),d.useEffect(()=>{var w,E;if(T(!0),c&&f?.({hashTag:c?.hashTag,"itemFilter.itemId":c?.itemId,"itemFilter.itemType":c?.itemType,defaultSize:g}).then(A=>{var x,I;m(A),y((I=(x=A?.recList)===null||x===void 0?void 0:x.filter(k=>k?.video!==null||k?.product!==null))!==null&&I!==void 0?I:[]),T(!1)}),b){const A=Fl;m(A),y((E=(w=A?.recList)===null||w===void 0?void 0:w.filter(x=>x?.video!==null||x?.product!==null))!==null&&E!==void 0?E:[]),T(!1)}},[c,f,g,b]);const S=()=>{var w,E;!((w=p?.tag)===null||w===void 0)&&w.link&&(s(),window.location.href=(E=p?.tag)===null||E===void 0?void 0:E.link)};return d.createElement(d.Fragment,null,h?d.createElement("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},d.createElement("img",{width:64,height:64,src:v,alt:"loading...",style:{objectFit:"contain"}})):d.createElement("div",{className:"list"},d.createElement("div",{className:"list-scroll",ref:D,style:{bottom:!((e=p?.tag)===null||e===void 0)&&e.link?"100px":0}},d.createElement("div",{className:"list-info",style:(i=u?.textStyles)===null||i===void 0?void 0:i.hashTagDesc},(n=p?.tag)===null||n===void 0?void 0:n.info),d.createElement("div",{hidden:!(!((o=p?.tag)===null||o===void 0)&&o.link),className:"list-collection",onClick:S,style:{marginBottom:u?.space}},((l=p?.tag)===null||l===void 0?void 0:l.linkTitle)||"Shop the collection"),d.createElement("div",{className:"list-content"},C?.map((w,E)=>d.createElement(Hl,Object.assign({key:E,index:E,rec:w,list:C,reportTagsView:s},u)))),d.createElement("div",{hidden:!P,style:{textAlign:"center"}},"loading...")),d.createElement("div",{className:"list-bottom",hidden:!(!((a=p?.tag)===null||a===void 0)&&a.link)},d.createElement("button",{className:"list-bottom-btn",style:u?.buttonStyle,onClick:S},((r=p?.tag)===null||r===void 0?void 0:r.linkTitle)||"Shop the collection"))))}var Gl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAaZJREFUeF7t2jFKBEEQRuG3mSJeQTARURDMTL2EqXfwAnoKD6FHMDEzNVIw2tzQC2gFggyDrExX1V92T7wz9PumFnqbXdH5teq8nwEwJqBzgfEVKDYAW8Ae8NZq3ZUm4Aa4AnaBR+C8BUIVAIu/ngSfAs9LESoAWLgB/LzWwP7SeLtfHWAu3tZ9Adz/dwD3eOUJCIlXBQiLVwQIjVcDCI9XAkiJVwFIi1cASI3PBpjb3jbd5GyyUcraCUrEZ02ATHwGgFR8NIBcfCSAZHwUgGx8BIB0vDeAfLwnQIl4L4Ay8R4ApeJbA2wD78DOZA/e7ABzk739Xz/T8rfAIfA6WYCd3BqA7NUSwCKfgLNKCK0BjoC7rzP74yoIrQGsuxSCB0ApBC+AMgieACUQvAHkESIApBGiAGQRIgEkEaIB5BAyAKQQsgBkEDIBJBCyAdIRFABSEVQA0hCUAFIQ1ADCERQBQhFUAcIQlAFCENQBfkOwg9eXpeftFQDmEOzv8ifARy8A3wiXwAHwANwujbf7q0xAi9bZZwwAN9oiDx4TUORFuS2z+wn4BAiAaEHnKChjAAAAAElFTkSuQmCC";const Wl=t=>{var e;const{waterFallData:i,setOpenHashtag:n,openHashtag:o,swiperRef:l,setWaterFallData:a,cacheRtcList:r,setRtcList:s,cacheActiveIndex:u,rtcList:c,setCacheRtcList:f,setIsFromHashtag:g,isFromHashtag:v,bffEventReport:b}=J();d.useRef(null);const C=d.useRef(null),[y,p]=d.useState();d.useEffect(()=>{const P=document.getElementById("sxp-render"),N=document.getElementById("water-fall");N?C.current=N:(C.current=document.createElement("div"),C.current.setAttribute("id","water-fall"),P?.appendChild(C.current))},[]);const m=()=>{const P=oe.isEqual(c,r);!P&&r&&r?.length&&s?.(r),D(),a?.(void 0),g?.(!1),setTimeout(()=>{var N,S;P||(S=(N=l?.current)===null||N===void 0?void 0:N.swiper)===null||S===void 0||S.slideTo(u,0,!1),n?.(!1)},0)},[h,T]=d.useState();d.useEffect(()=>{i&&T(i)},[i]);const D=d.useCallback(()=>{var P,N,S,w,E,A;const x=h?.rec;if(!x)return;let I="";v?I="hashTagPage":!((P=x?.video)===null||P===void 0)&&P.url?I="videoPage":!((S=(N=x?.video)===null||N===void 0?void 0:N.imgUrls)===null||S===void 0)&&S.length&&(I="imagePage"),b?.({eventInfo:{relatedContentId:(w=x?.video)===null||w===void 0?void 0:w.itemId,position:x?.position,contentTags:JSON.stringify((E=x?.video)===null||E===void 0?void 0:E.tags),traceInfo:JSON.stringify((A=x?.video)===null||A===void 0?void 0:A.traceInfo),hashTags:JSON.stringify([h?.hashTag]),fromKName:I,fromKPage:location?.href,timeOnSite:Math.floor((new Date-y)/1e3)+"",eventSubject:"clickTagsViewContents",eventDescription:"User click tags view contents"}})},[h,b,y,v]);return d.useEffect(()=>{o&&p(new Date)},[o]),d.useEffect(()=>{const P=()=>{p(new Date)};return window.addEventListener("pageshow",P),()=>{window.removeEventListener("pageshow",P)}},[]),C.current?Lt.createPortal(d.createElement("div",{className:"waterfall",style:{display:o?"block":"none"}},d.createElement(mi,{icon:Gl,styles:{top:"32px"},textStyle:(e=t?.textStyles)===null||e===void 0?void 0:e.hashTagTitle,onClose:m}),d.createElement(Ul,Object.assign({reportTagsView:D},t))),C.current):null};var hi=d.memo(Wl);const $l=t=>d.createElement(hi,Object.assign({},t));var ql=d.memo($l);const Xl=fe(ql,{displayName:"",icon:"",category:"base",type:"HashTag",related:{settingRender:Ml,bindableProps:[]},defaulSetting:{props:{lineClamp:1,space:40,textStyles:{hashTagTitle:{fontSize:16,color:"#000"},hashTagDesc:{fontSize:12,textAlign:"center",color:"#000"},title:{fontSize:12,color:"#000"},price:{fontSize:12,fontWeight:"bold",color:"#000"}},buttonStyle:{backgroundColor:"#000",fontSize:12,height:52,fontWeight:"bold",textAlign:"center",color:"#fff",borderRadius:25}}},w:100,h:40,sort:2});var gi=Object.freeze({__proto__:null,Appoint:el,AppointForm:Xi,Commodity:Jo,CommodityDetail:Ro,CommodityDetailDiroNew:Go,CommodityDiro:dl,CommodityDiroNew:vl,HashTag:Xl,Link:ol,MultiCommodity:Il,MultiCommodityDiro:Sl,MultiCommodityDiroNew:_l,Prompt:Vo});const Yl="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",Jl="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Ql=t=>{var{active:e,activeIcon:i,unActicveIcon:n,recData:o}=t,l=de(t,["active","activeIcon","unActicveIcon","recData"]);const{mutateLike:a,mutateUnlike:r,bffEventReport:s}=J(),[u,c]=d.useState(e),f=Ne(Jl),g=Ne(Yl),v=oe.debounce(()=>pe(void 0,void 0,void 0,function*(){var b,C,y,p,m,h,T,D,P,N,S,w,E,A,x,I,k,R,B,V;if(u){c(!1);const _=(y=yield r?.({videoItemId:(C=(b=o.video)===null||b===void 0?void 0:b.itemId)!==null&&C!==void 0?C:""}))!==null&&y!==void 0?y:!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:(T=(h=o.video)===null||h===void 0?void 0:h.title)!==null&&T!==void 0?T:"",contentTags:JSON.stringify((P=(D=o.video)===null||D===void 0?void 0:D.tags)!==null&&P!==void 0?P:[]),position:o.position,contentFormat:!((N=o.video)===null||N===void 0)&&N.url?"video":"image",traceInfo:(S=o.video)===null||S===void 0?void 0:S.traceInfo}}),_||c(!0)}else{c(!0);const _=(w=yield a?.({content:JSON.stringify(o)}))!==null&&w!==void 0?w:!1;s?.({eventInfo:{eventSubject:"favoriteContent",eventDescription:"This content was favorite by the user",contentId:(A=(E=o.video)===null||E===void 0?void 0:E.itemId)!==null&&A!==void 0?A:"",contentName:(I=(x=o.video)===null||x===void 0?void 0:x.title)!==null&&I!==void 0?I:"",contentTags:JSON.stringify((R=(k=o.video)===null||k===void 0?void 0:k.tags)!==null&&R!==void 0?R:[]),position:o.position,contentFormat:!((B=o.video)===null||B===void 0)&&B.url?"video":"image",traceInfo:(V=o.video)===null||V===void 0?void 0:V.traceInfo}}),_||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||g,alt:"icon"}))};var Kl=d.memo(Ql);const We=new Ei;var _e;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide"})(_e||(_e={}));const Zl=({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:f,openHashtag:g}=J(),v=d.useRef(0),[b,C]=d.useState(!1),{isActive:y}=pi();d.useEffect(()=>{s.current&&(s.current.muted=o)},[o]);const p=d.useCallback(()=>{var S,w;!s?.current||((S=s?.current)===null||S===void 0?void 0:S.readyState)<2||(w=s.current)===null||w===void 0||w.play()},[]),m=Ne("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),h=d.useCallback(()=>{var S,w,E,A,x,I,k,R,B,V,_,M,O;r(!1);const H=n[e];if(H&&b&&(!((S=s?.current)===null||S===void 0)&&S.duration)){v.current=((w=s?.current)===null||w===void 0?void 0:w.currentTime)||0;const ee=((A=(E=s.current)===null||E===void 0?void 0:E.duration)!==null&&A!==void 0?A:0).toFixed(2),ne=((I=(x=s.current)===null||x===void 0?void 0:x.currentTime)!==null&&I!==void 0?I:0).toFixed(2);u?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(R=(k=H.video)===null||k===void 0?void 0:k.itemId)!==null&&R!==void 0?R:"",contentName:(V=(B=H.video)===null||B===void 0?void 0:B.title)!==null&&V!==void 0?V:"",playType:"1",startTime:ne,videoDuration:ee,contentTags:JSON.stringify((M=(_=H.video)===null||_===void 0?void 0:_.tags)!==null&&M!==void 0?M:[]),position:H.position,contentFormat:"video",traceInfo:(O=H.video)===null||O===void 0?void 0:O.traceInfo}})}b||C(!0)},[u,n,e,b]),T=d.useCallback(()=>{var S,w,E,A,x,I,k,R,B,V,_,M,O;const H=n[e];if(H&&!b&&(!((S=s?.current)===null||S===void 0)&&S.duration)){v.current=((w=s?.current)===null||w===void 0?void 0:w.currentTime)||0;const ee=((A=(E=s.current)===null||E===void 0?void 0:E.duration)!==null&&A!==void 0?A:0).toFixed(2),ne=((I=(x=s.current)===null||x===void 0?void 0:x.currentTime)!==null&&I!==void 0?I:0).toFixed(2);u?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(R=(k=H.video)===null||k===void 0?void 0:k.itemId)!==null&&R!==void 0?R:"",contentName:(V=(B=H.video)===null||B===void 0?void 0:B.title)!==null&&V!==void 0?V:"",playType:"0",startTime:ne,videoDuration:ee,contentTags:JSON.stringify((M=(_=H.video)===null||_===void 0?void 0:_.tags)!==null&&M!==void 0?M:[]),position:H.position,contentFormat:"video",traceInfo:(O=H.video)===null||O===void 0?void 0:O.traceInfo}})}setTimeout(()=>{var ee,ne;!s?.current||((ee=s?.current)===null||ee===void 0?void 0:ee.readyState)<2||(ne=s.current)===null||ne===void 0||ne.play()},0)},[e,u,n,b]),D=d.useCallback(S=>()=>{var w,E,A,x,I,k;if(!s?.current||((w=s?.current)===null||w===void 0?void 0:w.readyState)<2||!b)return;const R=(E=s.current)===null||E===void 0?void 0:E.paused;switch(S){case"start":if(!R)return;(A=s.current)===null||A===void 0||A.play(),r(!1);break;case"pause":if(R)return;(x=s.current)===null||x===void 0||x.pause(),r(!0);break;default:R?(I=s.current)===null||I===void 0||I.play():(k=s.current)===null||k===void 0||k.pause(),r(!R);break}},[n,e,b]),P=d.useCallback(()=>{var S,w,E,A,x,I,k,R,B,V,_,M,O;const H=n[e],ee=((w=(S=s.current)===null||S===void 0?void 0:S.duration)!==null&&w!==void 0?w:0).toFixed(2),ne=((A=(E=s.current)===null||E===void 0?void 0:E.currentTime)!==null&&A!==void 0?A:0).toFixed(2);if(!((x=s?.current)===null||x===void 0)&&x.duration){const ae=(((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=(k=H.video)===null||k===void 0?void 0:k.itemId)!==null&&R!==void 0?R:"",contentName:(V=(B=H.video)===null||B===void 0?void 0:B.title)!==null&&V!==void 0?V:"",endTime:ne,videoDuration:ee,playDuration:ae,contentTags:JSON.stringify((M=(_=H.video)===null||_===void 0?void 0:_.tags)!==null&&M!==void 0?M:[]),position:H.position,contentFormat:"video",traceInfo:(O=H.video)===null||O===void 0?void 0:O.traceInfo}})}},[n,e,u]);d.useEffect(()=>{var S,w,E,A,x,I;if(n.length<=0||!s.current)return;const k=(S=s.current)===null||S===void 0?void 0:S.paused;if(r(!1),!y){!k&&((w=s?.current)===null||w===void 0?void 0:w.readyState)>=2&&((E=s.current)===null||E===void 0||E.pause());return}if(s.current.src){if(((A=s?.current)===null||A===void 0?void 0:A.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(x=s.current)===null||x===void 0||x.addEventListener("canplay",T),(I=s.current)===null||I===void 0||I.addEventListener("playing",h),()=>{var R,B;(R=s.current)===null||R===void 0||R.removeEventListener("canplay",T),(B=s.current)===null||B===void 0||B.removeEventListener("playing",h)}},[n,T,h,y,b,t.video]),d.useEffect(()=>{var S,w,E,A;if(!s?.current||((S=s?.current)===null||S===void 0?void 0:S.readyState)<2)return;const x=(w=s.current)===null||w===void 0?void 0:w.paused;y&&(!x&&g?(E=s.current)===null||E===void 0||E.pause():g||(A=s.current)===null||A===void 0||A.play())},[g,y]),d.useEffect(()=>{if(!y)return;const S=D("start"),w=D("pause");return We.on(_e.PAGE_DID_SHOW,S),We.on(_e.PAGE_DID_HIDE,w),()=>{We.off(_e.PAGE_DID_SHOW,S),We.off(_e.PAGE_DID_HIDE,w)}},[D,y]);const N=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 S=()=>{var w,E;l===e&&(!((w=t?.video)===null||w===void 0)&&w.url)&&(!((E=s?.current)===null||E===void 0)&&E.src)&&!a&&D("pause")()};return window.addEventListener("beforeunload",S),()=>{window.removeEventListener("beforeunload",S)}},[l,e,t,s,D,a]),t.video?d.createElement("div",{className:"video-container",key:t.video.itemId,onClick:D(),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:P,onEnded:p}),N,d.createElement("img",{hidden:!a,className:"clc-pb-video-pause",src:m})):null};var es=d.memo(Zl);const ts=({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 is=d.memo(ts);const ns=({imageUrl:t})=>{const[e,i]=d.useState(!0);he(),d.useEffect(()=>{setTimeout(()=>{i(!1)},2e3)},[]);const n=Ne("/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}))},os=t=>{const{src:e,height:i,width:n}=t,o=d.useRef(null),{sxpParameter:l}=J();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"}}))},ls=({imgUrls:t,width:e,height:i,rec:n,index:o,onReportViewImageEnd:l,onViewImageStartEvent:a})=>{const{isActive:r}=pi(),{sxpParameter:s,openHashtag:u}=J(),[c,f]=d.useState(!1);return d.useEffect(()=>{c&&r?u?l(n):a(o):f(!0)},[n,r,l,u,o,a,c]),r?d.createElement(Ge,{defaultValue:0,direction:"horizontal",modules:[bt,yt],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet"},height:i,loop:!0,autoplay:{delay:3e3}},t?.map(g=>d.createElement(Ee,{key:g},d.createElement(os,{src:g,width:e,height:i})))):d.createElement("img",{src:s?.placeholder_image,style:{width:e,height:i,objectFit:"cover"}})};var ss=d.memo(ls);const as=({tags:t,itemId:e,itemType:i,index:n,rec:o,hashTagStyle:l})=>{const[a,r]=d.useState(!1),{setWaterFallData:s,setOpenHashtag:u,setCacheActiveIndex:c,waterFallData:f,setIsFromHashtag:g}=J(),v=b=>{f?g?.(!0):c?.(n),s?.(i?{hashTag:b,itemId:e,itemType:i,rec:o}:{hashTag:b,rec:o}),u?.(!0)};return d.useMemo(()=>t.length<=6?null:d.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>r(!a)},a?"show less":"show more"),[a,t]),d.createElement("div",{className:"clc-sxp-bottom-hashtag"},d.createElement(rt,null,t?.map((b,C)=>d.createElement(Ee,{key:C,hidden:a?!1:C>=6,className:"clc-sxp-bottom-hashtag-item",style:l,onClick:()=>v(b)},`#${b}`))))};var rs=d.memo(as),ds="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 Mt(t){return d.memo(function(e){const{$store:i}=Ri(),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 f=oe.get(i,c);return a=a.replace(s,f),f}})}),a},o=d.useMemo(()=>{var l,a,r;const{bindDatas:s}=e,u=de(e,["bindDatas"]);if((l=s?.forEach)===null||l===void 0||l.call(s,c=>{if(c?.propKey&&c?.dataPath){const{propKey:f,dataPath:g}=c;g.replace(/{{\s*([\w.]+)\s*}}/g,(v,b)=>{var C,y;if(b){const p=(y=(C=oe.get(i,b))!==null&&C!==void 0?C:e[f])!==null&&y!==void 0?y:"";return u[f]=p,p}})}}),u){u.eventMap={};const c=oe.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!((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 cs=({rec:t,index:e,tempMap:i,resolver:n})=>{const{schema:o}=he(),l=d.useMemo(()=>{var a,r,s,u,c,f,g,v,b,C,y,p,m,h,T,D,P,N,S,w,E,A,x,I,k,R,B;if(!t?.video)return null;let V=null;!((r=(a=t?.video)===null||a===void 0?void 0:a.bindProducts)===null||r===void 0)&&r.length?V="\u591A\u5546\u54C1CTA":!((s=t?.video)===null||s===void 0)&&s.bindProduct?V="\u5546\u54C1CTA":V=(c=(u=t?.video)===null||u===void 0?void 0:u.bindCta)===null||c===void 0?void 0:c.itemId;const _=i?.[V];if(((f=_?.item)===null||f===void 0?void 0:f.type)==="CommodityDiro"&&!(!((g=t?.video)===null||g===void 0)&&g.bindProduct)||((v=_?.item)===null||v===void 0?void 0:v.type)==="Commodity"&&!(!((b=t?.video)===null||b===void 0)&&b.bindProduct)||((C=_?.item)===null||C===void 0?void 0:C.type)==="CommodityDiroNew"&&!(!((y=t?.video)===null||y===void 0)&&y.bindProduct)||((p=_?.item)===null||p===void 0?void 0:p.type)==="MultiCommodity"&&!(!((h=(m=t?.video)===null||m===void 0?void 0:m.bindProducts)===null||h===void 0)&&h.length)||((T=_?.item)===null||T===void 0?void 0:T.type)==="MultiCommodityDiro"&&!(!((P=(D=t?.video)===null||D===void 0?void 0:D.bindProducts)===null||P===void 0)&&P.length)||((N=_?.item)===null||N===void 0?void 0:N.type)==="MultiCommodityDiroNew"&&!(!((w=(S=t?.video)===null||S===void 0?void 0:S.bindProducts)===null||w===void 0)&&w.length))return null;if(_&&n){const M=Mt(n[(E=_?.item)===null||E===void 0?void 0:E.type]);return d.createElement(M,Object.assign({style:Object.assign(Object.assign({},(A=_?.item)===null||A===void 0?void 0:A.style),{zIndex:50,marginLeft:"20px"}),textStyle:(x=_?.item)===null||x===void 0?void 0:x.textStyle,bindDatas:(k=(I=_?.item)===null||I===void 0?void 0:I.bindDatas)!==null&&k!==void 0?k:[]},(R=_?.item)===null||R===void 0?void 0:R.props,{event:((B=_?.item)===null||B===void 0?void 0:B.event)||{},schema:o,id:_?.id,key:_?.id,recData:t}))}else return null},[t,n,i,o]);return d.createElement(d.Fragment,null,l)};var us=d.memo(cs);const ps=({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)),bi=({globalConfig:t,descStyle:e,containerHeight:i=window.innerHeight,containerWidth:n=window.innerWidth,tempMap:o,resolver:l,data:a=[],ctaType:r,tipText:s,nudge:u,_schema:c,hashTagStyle:f})=>{var g,v,b,C,y,p,m;const{schema:h}=he(),[T,D]=d.useState(0),P=d.useRef(0),[N,S]=d.useState(!1),[w,E]=d.useState(!0),A=d.useRef(),x=d.useRef(),[I,k]=d.useState(!1),{loadVideos:R,bffEventReport:B,loading:V,setPopupDetailData:_,ctaEvent:M,swiperRef:O,waterFallData:H,setOpenHashtag:ee,appDomain:ne,openHashtag:ae,loadingImage:ye,isFromHashtag:j,popupDetailData:z}=J(),{productView:G}=Qe(),K=d.useMemo(()=>a.length>0&&!V,[a,V]),Q=d.useCallback(()=>{if(a.length<=0)return;re();const L=location.search.slice(1),$=Rt.parse(L.replace(/\+/g,"%2B"));for(const q in $)$[q]=$[q].replace(/%2B/g,"+");const F=q=>{var Y;return(Y=$[q])!==null&&Y!==void 0?Y:""};B?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:F("utm_source"),utmMedium:F("utm_medium"),utmCampaign:F("utm_campaign"),utmId:F("utm_id"),utmContent:F("utm_content"),enterTime:`${Date.now()}`,requestId:null}}),S(!0)},[B,a.length]),re=()=>{A.current=new Date,x.current=new Date,Ni()};d.useEffect(()=>{N||Q()},[Q,N]),d.useEffect(()=>{var L;const $=a?.findIndex(F=>{var q,Y,Z,W,X,te,ie,we,Se;return r==="\u591A\u5546\u54C1CTA"?((q=F?.video)===null||q===void 0?void 0:q.bindProducts)&&((Z=(Y=F?.video)===null||Y===void 0?void 0:Y.bindProducts)===null||Z===void 0?void 0:Z.length)>0:r==="\u5546\u54C1CTA"?(W=F?.video)===null||W===void 0?void 0:W.bindProduct:((te=(X=F?.video)===null||X===void 0?void 0:X.bindCta)===null||te===void 0?void 0:te.itemId)===r&&(((ie=F?.video)===null||ie===void 0?void 0:ie.url)||((Se=(we=F?.video)===null||we===void 0?void 0:we.imgUrls)===null||Se===void 0?void 0:Se.length))})||0;(L=O?.current)===null||L===void 0||L.swiper.slideTo($)},[r,O]),d.useEffect(()=>{const L=a?.[T],$=()=>{var F,q,Y,Z,W,X,te,ie,we,Se,Oe,Re,Xe,ct,ut;if(document.visibilityState==="hidden"){We.emit(_e.PAGE_DID_HIDE,L),Ae(L),Me(L);let Le="";z&&(!((q=(F=L?.video)===null||F===void 0?void 0:F.bindProducts)===null||q===void 0)&&q.length||!((Y=L?.video)===null||Y===void 0)&&Y.bindProduct)?Le="pdpPage":z&&o?.[(X=(W=(Z=L.video)===null||Z===void 0?void 0:Z.bindCta)===null||W===void 0?void 0:W.itemId)!==null&&X!==void 0?X:""].item.type==="Appoint"?Le="formPage":j?Le="hashTagPage":!((te=L?.video)===null||te===void 0)&&te.url?Le="videoPage":!((ie=L?.video)===null||ie===void 0)&&ie.imgUrls&&(!((Se=(we=L?.video)===null||we===void 0?void 0:we.imgUrls)===null||Se===void 0)&&Se.length)?Le="imagePage":L?.product&&(Le="productPage"),B?.({eventInfo:{sessionDuration:Math.floor((new Date-A.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",relatedContentId:(Oe=L?.video)===null||Oe===void 0?void 0:Oe.itemId,relatedProductId:(Re=L?.product)===null||Re===void 0?void 0:Re.itemId,position:L?.position,fromKName:Le,fromKPage:location?.href,relatedCtatId:(ut=(ct=(Xe=L.video)===null||Xe===void 0?void 0:Xe.bindCta)===null||ct===void 0?void 0:ct.itemId)!==null&&ut!==void 0?ut:""}})}else document.visibilityState==="visible"&&(Q(),ze(T),We.emit(_e.PAGE_DID_SHOW,L))};return document.addEventListener("visibilitychange",$),()=>{document.removeEventListener("visibilitychange",$)}},[T,B,A,a,Q,z,j,o]);const le=d.useMemo(()=>t?.logoUrl&&t?.isShowLogo?i-45:i,[t,i]),me=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]),De=d.useCallback((L,$)=>{var F,q,Y,Z;return!((F=L.video)===null||F===void 0)&&F.url?d.createElement(es,{rec:L,index:$,muted:w,data:a,height:le,activeIndex:T}):!((q=L.video)===null||q===void 0)&&q.imgUrls?d.createElement(ss,{key:L.video.itemId,imgUrls:L.video.imgUrls,width:n,height:le,rec:L,index:$,onReportViewImageEnd:Ae,onViewImageStartEvent:ze}):L.product&&Array.isArray(t?.productPost)&&((Y=t?.productPost)===null||Y===void 0?void 0:Y.length)>0?(Z=t?.productPost)===null||Z===void 0?void 0:Z.map((W,X)=>{var te,ie,we,Se,Oe,Re;const Xe=Mt(l[(te=W?.item)===null||te===void 0?void 0:te.type]);return d.createElement(Xe,Object.assign({key:X,textStyle:(ie=W?.item)===null||ie===void 0?void 0:ie.textStyle,bindDatas:(Se=(we=W?.item)===null||we===void 0?void 0:we.bindDatas)!==null&&Se!==void 0?Se:[]},(Oe=W?.item)===null||Oe===void 0?void 0:Oe.props,{event:((Re=W?.item)===null||Re===void 0?void 0:Re.event)||{},schema:h,id:W?.id,viewTime:x.current,rec:L,isPost:!0,tipText:s,style:{height:"100%",overflow:"auto"}}))}):null},[n,a,le,w,T,t?.productPost,x,s,l,h]),je=d.useCallback((L,$)=>{var F,q,Y,Z,W,X,te;return L.video?d.createElement(d.Fragment,null,((F=L.video)===null||F===void 0?void 0:F.title)&&d.createElement("div",{className:"clc-sxp-bottom-shadow"}),d.createElement("div",{className:"clc-sxp-bottom"},d.createElement(ps,{nudge:u}),d.createElement("div",{className:"clc-sxp-bottom-card"},d.createElement(us,{rec:L,index:$,tempMap:o,resolver:l})),d.createElement("div",{className:"clc-sxp-bottom-text"},d.createElement(kt,{isPost:!0,foldText:s?.foldText,unfoldText:s?.unfoldText,text:(Y=(q=L.video)===null||q===void 0?void 0:q.title)!==null&&Y!==void 0?Y:"",style:e})),d.createElement(rs,{index:T,tags:(W=(Z=L?.video)===null||Z===void 0?void 0:Z.hashTags)!==null&&W!==void 0?W:[],itemId:(X=L?.video)===null||X===void 0?void 0:X.itemId,itemType:!((te=L.video)===null||te===void 0)&&te.url?"VIDEO":null,rec:L,hashTagStyle:f}))):null},[e,T,o,l,s,u,f]),$e=d.useCallback(L=>{var $,F;if(!t?.isShowLike)return;let q=($=t?.likeIconY)!==null&&$!==void 0?$:400;return H&&q<40&&(q+=40),L.video?d.createElement(Kl,{key:L.position,activeIcon:t?.likeIcon,unActicveIcon:t?.unlikeIcon,active:L.isCollected,recData:L,className:"clc-sxp-like-button",style:{top:q,right:(F=t?.likeIconX)!==null&&F!==void 0?F:0}}):null},[t,H]),Ae=L=>{var $,F,q,Y,Z,W;if(!(!(($=L.video)===null||$===void 0)&&$.url)&&(!((F=L.video)===null||F===void 0)&&F.imgUrls)){const X=Date.now(),te=(X-P.current)/1e3;B?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(Y=(q=L.video)===null||q===void 0?void 0:q.itemId)!==null&&Y!==void 0?Y:"",contentName:(Z=L.video.title)!==null&&Z!==void 0?Z:"",imageEndTime:`${X}`,playDuration:`${te}`,contentTags:JSON.stringify((W=L.video.tags)!==null&&W!==void 0?W:[]),position:L.position,contentFormat:"image",traceInfo:L.video.traceInfo}})}},qe=L=>{var $,F,q,Y,Z,W,X,te;x.current=new Date;const ie=a[L.previousIndex];ie&&(L.previousIndex-L.activeIndex<0?(B?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",relatedContentId:(F=($=ie.video)===null||$===void 0?void 0:$.itemId)!==null&&F!==void 0?F:"",relatedProductId:(Y=(q=ie.product)===null||q===void 0?void 0:q.itemId)!==null&&Y!==void 0?Y:"",requestId:null}}),Ae(ie)):(B?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",relatedContentId:(W=(Z=ie.video)===null||Z===void 0?void 0:Z.itemId)!==null&&W!==void 0?W:"",relatedProductId:(te=(X=ie.product)===null||X===void 0?void 0:X.itemId)!==null&&te!==void 0?te:"",requestId:null}}),Ae(ie)),Me(ie))},Me=L=>{var $,F,q;!(!(($=L?.video)===null||$===void 0)&&$.url)&&!(!((F=L?.video)===null||F===void 0)&&F.imgUrls)&&L?.product&&G(L,L.product,(q=L?.product)===null||q===void 0?void 0:q.bindCta,x.current)};d.useEffect(()=>{const L=a[T];ae&&Me(L)},[ae,a,T]);const ze=L=>{var $,F,q,Y,Z,W;const X=a[L];if(!(!(($=X?.video)===null||$===void 0)&&$.url)&&(!((F=X?.video)===null||F===void 0)&&F.imgUrls)){const te=Date.now();P.current=te,B?.({eventInfo:{eventSubject:"viewImageCarouselStart",eventDescription:"User start view the image carousel",contentId:(Y=(q=X.video)===null||q===void 0?void 0:q.itemId)!==null&&Y!==void 0?Y:"",contentName:(Z=X.video.title)!==null&&Z!==void 0?Z:"",imageStartTime:`${te}`,contentTags:JSON.stringify((W=X.video.tags)!==null&&W!==void 0?W:[]),position:X.position,contentFormat:"image",traceInfo:X.video.traceInfo}})}},se=d.useMemo(()=>{const L=a?.map(($,F)=>T===F||F-1===T||F+1===T?$:null);return H?L:L.concat([{loading:!0}])},[a,T,H]),dt=d.useMemo(()=>V?d.createElement("div",{style:{height:le,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},d.createElement("img",{width:64,height:64,src:ye,alt:"loading...",style:{objectFit:"contain"}})):se?.map((L,$)=>d.createElement(Ee,{key:$,virtualIndex:$},L&&d.createElement(d.Fragment,null,L?.loading?d.createElement("div",{style:{height:le,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},d.createElement("img",{width:64,height:64,src:ye,alt:"loading...",style:{objectFit:"contain"}})):d.createElement(d.Fragment,null,De(L,$),je(L,$),$e(L))))),[n,a,le,V,je,De,se,ye]),Ve=Ne("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),wi=Ne("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png");return d.createElement("div",{id:"sxp-render",className:"clc-sxp-container"},H&&d.createElement(mi,{icon:ds,styles:{background:"rgba(0,0,0,.3)",color:"#fff"},onClose:()=>{ee?.(!0)}}),me,K?d.createElement(ns,{imageUrl:t?.swipeTipIcon}):null,d.createElement(Ge,{ref:O,onActiveIndexChange:L=>{D(L.activeIndex),!ae&&(qe(L),!H&&L?.activeIndex+2>=a?.length&&(I||(k(!0),R?.(Math.ceil(T/10)+1).then(()=>{k(!1)}))))},direction:"vertical",height:le},d.createElement(is,{style:{position:"fixed",right:(g=t?.muteIconX)!==null&&g!==void 0?g:0,visibility:!((b=(v=a?.[T])===null||v===void 0?void 0:v.video)===null||b===void 0)&&b.url?"visible":"hidden",bottom:(C=t?.muteIconY)!==null&&C!==void 0?C:23,zIndex:999},defaultValue:w,activeIcon:t?.unMuteIcon?t?.unMuteIcon:Ve,unactiveIcon:t?.muteIcon?t?.muteIcon:wi,onChange:E}),dt),d.createElement(hi,Object.assign({},(m=(p=(y=t?.hashTag)===null||y===void 0?void 0:y[0])===null||p===void 0?void 0:p.item)===null||m===void 0?void 0:m.props)))},fs=()=>{const{schema:t,resolver:e,popup:i,popupAni:n}=he(),{setPopupDetailData:o,popupDetailData:l,bffEventReport:a}=J(),{productView:r}=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,b,C;if(!i||i===""||!s||new Date-c.current<n?.duration)return;u(!1);const y=l,p=(v=y?.video)===null||v===void 0?void 0:v.bindProduct,m=(C=(b=y?.video)===null||b===void 0?void 0:b.bindProduct)===null||C===void 0?void 0:C.bindCta;p&&m&&r(y,p,m,c.current),setTimeout(()=>{window?.sxpPopup(""),o?.(null)},n?.duration)},g=d.useMemo(()=>{var v,b,C;return(C=(b=(v=t?.sxpPageConf)===null||v===void 0?void 0:v.globalConfig)===null||b===void 0?void 0:b.popupList)===null||C===void 0?void 0:C.map((y,p)=>{var m,h,T,D,P,N,S;if(y?.id===i){const w=Mt(e[(m=y?.item)===null||m===void 0?void 0:m.type]);return d.createElement(w,Object.assign({key:p,style:Object.assign(Object.assign({},(h=y?.item)===null||h===void 0?void 0:h.style),{width:"100%",height:"80vh",overflow:"auto"}),textStyle:(T=y?.item)===null||T===void 0?void 0:T.textStyle,bindDatas:(P=(D=y?.item)===null||D===void 0?void 0:D.bindDatas)!==null&&P!==void 0?P:[]},(N=y?.item)===null||N===void 0?void 0:N.props,{event:((S=y?.item)===null||S===void 0?void 0:S.event)||{},schema:t,id:y?.id}))}else return d.createElement(d.Fragment,null)})},[t,i,e]);return d.createElement(at,{visible:!!s,onClose:f,padding:0,modalStyle:{position:"fixed"}},g)},Ot={};Object.values(gi).forEach(t=>{Ot[t.extend.type]=t});const vs=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:n=20,loadingImage:o,appDomain:l})=>{var a,r,s,u,c,f;const g=d.useMemo(()=>{var v;return location?.search?(v=location?.search)===null||v===void 0?void 0:v.replace("?",""):""},[]);return d.createElement($t,{resolver:Ot,enableDataSource:!1,schema:t?.data,utmVal:g},d.createElement(Ht,{utmVal:g,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(r=(a=t?.sxp_parameter)===null||a===void 0?void 0:a.personalized_recommend)!==null&&r!==void 0?r: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 b;return d.createElement(d.Fragment,null,d.createElement(bi,Object.assign({},(b=t?.data)===null||b===void 0?void 0:b.sxpPageConf,{data:v,resolver:Ot})),d.createElement(fs,null))}}))};var ms=d.memo(vs);const yi=d.createContext({}),hs=({children:t,data:e})=>{var i,n,o,l,a,r;const[s,u]=d.useState(!1);return d.createElement(yi.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,openHashtag:s,setOpenHashtag:u}},t)};function gs(){return d.useContext(yi)}exports.EditorDataProvider=hs,exports.Modal=at,exports.SxpDataSourceProvider=Ht,exports.SxpPageCore=ms,exports.SxpPageRender=bi,exports.core=Ui,exports.default=Oi,exports.materials=gi,exports.useEditorDataProvider=gs;
7
7
  //# sourceMappingURL=index.min.cjs.map