pb-sxp-ui 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Xe=require("lodash"),jo=require("uuid"),Vo=require("pako"),n=require("react"),ai=require("qs"),zo=require("eventemitter3"),Se=require("@emotion/css"),Di=require("react-dom");function Ho(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var Mi=Ho(Di);function Je(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(t);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]]);return i}function Qe(t,e,i,o){function a(l){return l instanceof i?l:new i(function(s){s(l)})}return new(i||(i=Promise))(function(l,s){function r(c){try{v(o.next(c))}catch(m){s(m)}}function d(c){try{v(o.throw(c))}catch(m){s(m)}}function v(c){c.done?l(c.value):a(c.value).then(r,d)}v((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Go=/:\w+/g;var Oi=(t,e)=>Qe(void 0,void 0,void 0,function*(){const i={},o={};for(let a=0;a<e?.length;a++){const{id:l,method:s,url:r,urlParams:d,name:v,queryString:c,headers:m,body:h}=e[a];let f=r;d&&Object.entries(d).forEach(([y,S])=>{f=f.replace(Go,x=>x===y?S:x)}),c&&(f+=c),o[l]=v;try{const y=yield fetch(f,{method:s,headers:Object.assign({"Content-Type":"application/json"},m),body:JSON.stringify(h)}).then(S=>S.json());i[l]=y}catch(y){console.error("DataSource request error: ",y),i[l]={}}}return{$store:i,idMapName:o}});const Ri="SXP_TOKEN_INFO",Uo=(t,e)=>Qe(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),a=t.getAppId(),l=t.getApiUrl(),s=window.localStorage.getItem(Ri);let r=JSON.parse(s||"{}");if(Date.now()>((i=r?.expireTime)!==null&&i!==void 0?i:0)){const v=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":a||""}}).then(c=>c.json());if(v.success){const c=v.data;r=Object.assign(Object.assign({},c),{expireTime:Date.now()+c.expire*1e3}),window.localStorage.setItem(Ri,JSON.stringify(r))}}return r});function Wt(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)o[a]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(l=0|Math.random()*16,o[a]=i[a===19?l&3|8:l])}return o.join("")}const Wo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*o)),a+=1;return e},Yo=()=>{const t=jo.v4();return t?.replaceAll?t.replaceAll("-",""):Wo(32)},he=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!o&&!a)return t;let l=t;const s=/[\u4e00-\u9fa5]/g,r=/[^\u4e00-\u9fa5]/g,d=`font-family:${o??"inherit"}`,v=`font-family:${a??"inherit"}`,c=h=>{let f=h.search(s),y=h.search(r);return f!==-1&&y!==-1&&f<y&&(i+=`<span style="${d}">${h.substring(f,y)}</span>`,l=h.substring(y,h?.length)),f!==-1&&y!==-1&&f>y&&(i+=`<span style="${v}">${h.substring(y,f)}</span>`,l=h.substring(f,h?.length)),f===-1?(i+=`<span style="${v}">${h.substring(y,h?.length)}</span>`,l="",!1):y===-1?(i+=`<span style="${d}">${h.substring(f,h?.length)}</span>`,l="",!1):!0};let m=!0;for(;m;)m=c(l);return i};function Li(){var t,e,i,o,a,l,s;let r=self.navigator.userAgent;return r?/edge\/([\d\.]+)/i.exec(r)?`Edge ${(t=/edge\/([\d\.]+)/i.exec(r))===null||t===void 0?void 0:t[1]}`:/edg\/([\d\.]+)/i.exec(r)?`Edge(Chromium) ${(e=/edge\/([\d\.]+)/i.exec(r))===null||e===void 0?void 0:e[1]}`:/msie/i.test(r)?`Internet Explorer ${(i=/msie ([\d\.]+)/i.exec(r))===null||i===void 0?void 0:i[1]}`:/Trident/i.test(r)?`Internet Explorer ${(o=/rv:([\d\.]+)/i.exec(r))===null||o===void 0?void 0:o[1]}`:/chrome/i.test(r)?`Chrome ${(a=/chrome\/([\d\.]+)/i.exec(r))===null||a===void 0?void 0:a[1]}`:/firefox/i.test(r)?`Firefox ${(l=/firefox\/([\d\.]+)/i.exec(r))===null||l===void 0?void 0:l[1]}`:/safari/i.test(r)?`Safari ${(s=/version\/([\d\.]+)/i.exec(r))===null||s===void 0?void 0:s[1]}`:null:null}function Bi(){var t,e,i;let o=self.navigator.userAgent;return o?/iphone/i.test(o)?`IOS ${(t=o.match(/OS\s(.*?)\slike/))===null||t===void 0?void 0:t[1]}`:/android/i.test(o)?`Android ${(e=o.match(/Android\s(.*?)\;/))===null||e===void 0?void 0:e[1]}`:/windows/i.test(o)?`Windows ${(i=o.match(/Windows\s(.*?)\;/))===null||i===void 0?void 0:i[1]}`:/mac/i.test(o)?"Mac OS":null:null}function Ni(){let t=self.navigator.userAgent;if(!t)return null;if(/iphone/i.test(t))return"iPhone";if(/android/i.test(t)){var e=t.indexOf("("),i=t.indexOf(")");if(e!==-1&&i!==-1){var o=t.substring(e+1,i);return`${o}`}}return/windows/i.test(t)?"Windows":/mac/i.test(t)?"Mac":null}function Fi(t){const i=document.cookie.split(";");let o=null;return i.forEach(a=>{const[l,s]=a.trim().split("=");l===t&&(o=s)}),o??""}function ji(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),a=Vo.inflate(o,{to:"string"});return JSON.parse(a)}let si=null;const Xo={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Jo{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,si)return si;si=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Xo[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let $e=null;const qo={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{$e||($e=new Jo),o&&$e.setApiUrl(o),$e.setAppId(t),$e.setTenantId(e),$e.setEnv(i)},getDetail:t=>{if(!$e)return;const e=$e.getTenantId(),i=$e.getAppId(),o=$e.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>Qe(void 0,void 0,void 0,function*(){var l,s;const r=yield a.json(),d=ji((l=r?.data)===null||l===void 0?void 0:l.data);if(d){const{$store:v}=yield Oi(o,(s=d?.dataSource)!==null&&s!==void 0?s:[]);r.data.data=d,Object.assign(r.data.data,{__STORE__:v})}return r}))},getSxpDetailByPageId:t=>Qe(void 0,void 0,void 0,function*(){if(!$e)return;const e=$e.getTenantId(),i=$e.getAppId(),o=$e.getApiUrl();return fetch(`${o}/storefront/v1/page?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>Qe(void 0,void 0,void 0,function*(){var l;const s=yield a.json();if(!s.success)return;const r=ji((l=s?.data)===null||l===void 0?void 0:l.data);return s.data.data=r,s.data}))}),getSxpRecommendVideoData:t=>Qe(void 0,void 0,void 0,function*(){if(!$e)return;const e=yield Uo($e,t),i=Wt(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");Xe.isEmpty(o)&&(o=Wt(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const a=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:o,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return a?.data||null})};function ht(){return n.useContext(Zi)}function Ko(){return n.useContext(Ki)}const ri="feRealSessionIdKey",Vi=()=>{const t=Yo();return`${Date.now()}${t}`},Zo=()=>{let t=Qo();return t||(t=Vi(),window.sessionStorage.setItem(ri,t)),t},zi=()=>{const t=Vi();window.sessionStorage.setItem(ri,t)},Qo=()=>window.sessionStorage.getItem(ri),Hi="SXP_FAKE_USER_ID",Gi="FAKE_USER_STATE",Ui="AGREE_POLICY",Wi="SLIDE_SKIP_STATE",Yi=()=>{let t=window.localStorage.getItem(Hi);return Xe.isEmpty(t)&&(t=Wt(36,62),window.localStorage.setItem(Hi,t)),t},$o=()=>{const t=window.localStorage.getItem(Gi);return Xe.isEmpty(t)&&window.localStorage.setItem(Gi,"true"),Xe.isEmpty(t)},en=()=>{const t=window.localStorage.getItem(Wi);return Xe.isEmpty(t)},tn=()=>{window.localStorage.setItem(Wi,"true")};function ct(t,e){const{appDomain:i}=_e();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const gt=new zo;var st;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(st||(st={}));const on=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:a,privacy_policy_title:l})=>{const{setIsAgreePolicy:s,bffEventReport:r}=_e(),d=n.useMemo(()=>{const m=location.search.slice(1),h=ai.parse(m.replace(/\+/g,"%2B"));for(const f in h)h[f]=h[f].replace(/%2B/g,"+");return h},[]),v=m=>{var h;return(h=d[m])!==null&&h!==void 0?h:null};n.useEffect(()=>{r?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:v("utm_source"),utmMedium:v("utm_medium"),utmCampaign:v("utm_campaign"),utmId:v("utm_id"),utmContent:v("utm_content"),clSource:v("cl_source"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const c=()=>{r?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),s?.(!0),window.localStorage.setItem(Ui,"yes")};return n.createElement("div",{className:"consent-bg"},n.createElement("div",{className:"consent"},n.createElement("div",{className:"consent-col"},n.createElement("div",{className:"consent-title"},i??"Privacy Policy"),n.createElement("div",{className:"consent-content"},o??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),n.createElement("div",{className:"consent-col"},n.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:c},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},l??"More information"))))};var nn=n.memo(on);const Xi=n.createContext({rtcList:[],tagList:[]});var di;(function(t){t[t.BFF=5]="BFF"})(di||(di={}));const Yt="FOR U",ln=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:a,defaultSize:l,isPreview:s=!1,sxpParameter:r,appDomain:d,hashTagSize:v,loadingImage:c,isOpenHashTag:m=!1,enabledMetaConversionApi:h=!1,consentHeight:f,consentWidth:y,isShowTag:S=!0,isOpenConsent:x=!1,globalConfig:p,isEditor:w=!1,utmParameter:b,channelQueryList:T})=>{var k,g,O;const[P,A]=n.useState([]),[u,M]=n.useState([]),[C,E]=n.useState(!1),[I,R]=n.useState({rtc:"",requestId:""}),N=n.useRef(null),F=n.useRef(!1),[V,L]=n.useState(()=>!!window.localStorage.getItem(Ui)),[_,B]=n.useState(),[W,U]=n.useState(),[X,ne]=n.useState(m),[te,re]=n.useState([]),[ke,ue]=n.useState(0),[Q,K]=n.useState(!1),[$,Z]=n.useState(null),ae=n.useRef(),we=n.useRef(),[be,De]=n.useState(Yt),Ee=n.useRef(-1),je=n.useRef(null),[ve,ye]=n.useState(!1),Ae=n.useMemo(()=>{var z,H,xe,Ce;return((Ce=(xe=(H=(z=p?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||xe===void 0?void 0:xe.props)===null||Ce===void 0?void 0:Ce.privacy_necessity)&&!V&&!w||x},[V,p,x,w]),J=n.useCallback(z=>{var H;const xe=z?.recList;return(H=xe?.map(me=>{var le,ee,Te,Fe,We,Ge;if(!((le=me?.video)===null||le===void 0)&&le.bindProducts&&((Te=(ee=me?.video)===null||ee===void 0?void 0:ee.bindProducts)===null||Te===void 0?void 0:Te.length)>0){const lt=(Ge=(We=(Fe=me?.video)===null||Fe===void 0?void 0:Fe.bindProducts)===null||We===void 0?void 0:We.filter(ot=>!!ot?.bindCta))!==null&&Ge!==void 0?Ge:[];return Object.assign(Object.assign({},me),{video:Object.assign(Object.assign({},me?.video),{bindProducts:lt})})}return me}))!==null&&H!==void 0?H:[]},[]);n.useEffect(()=>{const z=H=>{ae.current=H};return gt.on(st.CHANGE_THEME_TAG,z),()=>{gt.off(st.CHANGE_THEME_TAG,z)}},[]),n.useEffect(()=>{ne(m)},[m]);const de=n.useMemo(()=>e?.find(z=>z.type===di.BFF),[e]),q=n.useCallback((z,H)=>{if(!de)return;const xe=de.url,Ce=Yi();if(H?.query){const me=ai.stringify(H.query);z=`${z}?${me}`}return H.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${xe}/api/v1${z}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},de.headers),{"x-user-id":Ce}),H.body))],{type:"application/json;charset=UTF-8"})):window.fetch(`${xe}/api/v1${z}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":Ce},de.headers),method:H.method,body:JSON.stringify(H.body)}).then(me=>me.json()).catch(me=>Promise.reject(me))},[de]),ce=n.useCallback(z=>Qe(void 0,void 0,void 0,function*(){var H,xe,Ce,me,le,ee,Te,Fe,We,Ge,lt,ot,pt,At;if(z=Object.assign(Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:a,defaultSize:(xe=z?.defaultSize)!==null&&xe!==void 0?xe:l,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag},z?.contentFilter&&{contentFilter:`[${z?.contentFilter}]`}),z?.productFilter&&{productFilter:`[${z?.productFilter}]`}),{pageNum:z?.pageNum}),i){const se=(le=(me=(Ce=i?.split("&"))===null||Ce===void 0?void 0:Ce.filter(ie=>{var Y,fe;const ge=ie.split("=")[0];return(fe=(Y=b?.channels)!==null&&Y!==void 0?Y:[])===null||fe===void 0?void 0:fe.includes(ge)}))===null||me===void 0?void 0:me.join("&"))!==null&&le!==void 0?le:"";z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(se)})}if(w){let se=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&T&&T?.length>0&&{channel:T?.[0]}),!z?.channel||F.current)return;F.current=!0;let ie=[],Y=null;const fe=ge=>Qe(void 0,void 0,void 0,function*(){var oe,pe,Ie,Me,Ne,Ve;if(ge.pageNum=se,Y=yield q?.("/recommend/list",{method:"GET",query:ge}),!Y?.success)return;E(!1),ie=ie.concat((Me=(Ie=(pe=(oe=Y?.data)===null||oe===void 0?void 0:oe.recList)===null||pe===void 0?void 0:pe.filter)===null||Ie===void 0?void 0:Ie.call(pe,Le=>Le?.product||Le?.video))!==null&&Me!==void 0?Me:[]),A(J(Object.assign(Object.assign({},Y.data),{recList:ie}))),re(J(Object.assign(Object.assign({},Y.data),{recList:ie}))),((Ve=(Ne=Y?.data)===null||Ne===void 0?void 0:Ne.recList)===null||Ve===void 0?void 0:Ve.some(Le=>Le?.product||Le?.video))&&(se=se+1,yield fe(ge))});return yield fe(z),!z?.hashTag&&Y&&R({rtc:(ee=Y?.data)===null||ee===void 0?void 0:ee.rtc,requestId:(Te=Y?.data)===null||Te===void 0?void 0:Te.requestId}),Object.assign(Object.assign({},Y.data),{recList:ie})}p?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(Fe=z?.pageNum)!==null&&Fe!==void 0?Fe:1}));const D=yield q?.("/recommend/list",{method:"GET",query:z});if(D?.success){if(z?.hashTag||R({rtc:D.data.rtc,requestId:D.data.requestId}),p?.enablePreview&&!w){let se=[];return se=se.concat((ot=(lt=(Ge=(We=D?.data)===null||We===void 0?void 0:We.recList)===null||Ge===void 0?void 0:Ge.filter)===null||lt===void 0?void 0:lt.call(Ge,Y=>Y?.product||Y?.video))!==null&&ot!==void 0?ot:[]),((At=(pt=D?.data)===null||pt===void 0?void 0:pt.recList)===null||At===void 0?void 0:At.some(Y=>Y?.product||Y?.video))||ye(!0),Object.assign(Object.assign({},D.data),{recList:se})}return D?.data}}),[q,i,a,l,T]),Oe=n.useCallback(z=>Qe(void 0,void 0,void 0,function*(){var H,xe,Ce,me;if(P.length<=0)return;const le=P?.[P?.length-1],ee=yield ce(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:W?.hashTag},((H=le?.product)===null||H===void 0?void 0:H.itemId)&&{productFilter:(xe=le?.product)===null||xe===void 0?void 0:xe.itemId}),((Ce=le?.video)===null||Ce===void 0?void 0:Ce.itemId)&&{contentFilter:(me=le?.video)===null||me===void 0?void 0:me.itemId}),{themeTag:ae.current}),p?.enablePreview&&!w&&{pageNum:z}));return A(P.concat(J(ee))),re(te.concat(J(ee))),ee}),[ce,P,W,te]),G=n.useCallback(({userInfo:z,eventInfo:H})=>{if(!o||p?.enablePreview)return;z||(z={});const xe=Zo(),Ce=Object.assign(Object.assign(Object.assign(Object.assign({sessionID:xe,rtc:I.rtc,requestId:I.requestId},H),Ni()&&{sxpDevice:Ni()}),Bi()&&{sxpSystem:Bi()}),Li()&&{sxpBrowser:Li()}),me=Object.entries(z).map(([ee,Te])=>({name:ee,value:Te})),le=Object.entries(Ce).map(([ee,Te])=>Te&&{name:ee,value:Te}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",Ce),console.log("========= \u7ED3\u675F ========="),q?.("/event/report",{method:"POST",body:{userInfo:me,eventInfo:le},type:"beacon"})},[q,I,o,p?.enablePreview]),j=n.useCallback(z=>{var H,xe,Ce,{eventName:me,actionSource:le="website",eventSourceUrl:ee=(H=window?.location)===null||H===void 0?void 0:H.href,externalId:Te}=z;if(!o||!h||p?.enablePreview)return;const Fe=Yi(),Ge=new URLSearchParams(window.location.search).get("fbclid");return q?.("/fb/events",{method:"POST",body:{eventName:me,actionSource:le,eventSourceUrl:ee,userData:Object.assign(Object.assign(Object.assign({externalId:Fe},Ge&&{fbc:`fb.2.${new Date().getTime()}.${Ge}`}),Fi("_fbp")&&{fbp:`fb.2.${new Date().getTime()}.${Fi("_fbp")}`}),{clientUserAgent:(Ce=(xe=window?.navigator)===null||xe===void 0?void 0:xe.userAgent)!==null&&Ce!==void 0?Ce:""})},type:"beacon"})},[q,o,h,p?.enablePreview]),Re=n.useCallback(z=>Qe(void 0,void 0,void 0,function*(){const H=yield q?.("/recommend/like",{method:"POST",body:z});return H?.success}),[q]),Ue=n.useCallback(z=>Qe(void 0,void 0,void 0,function*(){const H=yield q?.("/recommend/unlike",{method:"POST",body:z});return H?.success}),[q]),dt=n.useCallback(z=>Qe(void 0,void 0,void 0,function*(){const H=yield q?.("/customform",{method:"POST",body:z});return H?.success}),[q]),wt=n.useCallback(()=>Qe(void 0,void 0,void 0,function*(){var z,H,xe,Ce,me;if(!(!i||!S))try{const le=(xe=(H=(z=i?.split("&"))===null||z===void 0?void 0:z.filter(Te=>{var Fe,We;const Ge=Te.split("=")[0];return(We=(Fe=b?.channels)!==null&&Fe!==void 0?Fe:[])===null||We===void 0?void 0:We.includes(Ge)}))===null||H===void 0?void 0:H.join("&"))!==null&&xe!==void 0?xe:"",ee=yield q?.("/tag/list",{method:"GET",query:{channel:decodeURIComponent(le)}});M((me=(Ce=ee?.data)===null||Ce===void 0?void 0:Ce.tags)!==null&&me!==void 0?me:[])}catch(le){console.log("e",le)}}),[q,i,S]),tt=n.useCallback((z,H,xe,Ce)=>{var me,le,ee,Te,Fe,We,Ge,lt,ot,pt,At,D,se,ie,Y,fe,ge,oe,pe,Ie,Me,Ne,Ve,He,Le,qe,Pe,ze,at,Ye,mt,ft,Ct,It,Be,li;const kt=xe?.bindCta,Fo=((me=H?.video)===null||me===void 0?void 0:me.bindProduct)||((le=H?.video)===null||le===void 0?void 0:le.bindProducts)&&((Te=(ee=H?.video)===null||ee===void 0?void 0:ee.bindProducts)===null||Te===void 0?void 0:Te.length)>0;let Ut="";Q?Ut="hashTagPage":!((Fe=H?.video)===null||Fe===void 0)&&Fe.url?Ut="videoPage":!((Ge=(We=H?.video)===null||We===void 0?void 0:We.imgUrls)===null||Ge===void 0)&&Ge.length&&(Ut="imagePage");const Pi=(ie=(D=(lt=xe?.tags)!==null&&lt!==void 0?lt:(At=(pt=(ot=H?.video)===null||ot===void 0?void 0:ot.bindProducts)===null||pt===void 0?void 0:pt[0])===null||At===void 0?void 0:At.tags)!==null&&D!==void 0?D:(se=H?.video)===null||se===void 0?void 0:se.tags)!==null&&ie!==void 0?ie:(Y=H?.product)===null||Y===void 0?void 0:Y.tags;G?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(fe=kt?.itemId)!==null&&fe!==void 0?fe:"",ctaName:(ge=kt?.title)!==null&&ge!==void 0?ge:"",contentTags:Pi?JSON.stringify(Pi):"",position:Ce+"",contentId:(pe=(oe=H?.video)===null||oe===void 0?void 0:oe.itemId)!==null&&pe!==void 0?pe:"",productId:Fo?xe?.itemId:"",traceInfo:(Be=(ft=(Pe=(Ve=(Ie=kt?.traceInfo)!==null&&Ie!==void 0?Ie:(Ne=(Me=H?.video)===null||Me===void 0?void 0:Me.bindCta)===null||Ne===void 0?void 0:Ne.traceInfo)!==null&&Ve!==void 0?Ve:(qe=(Le=(He=H?.video)===null||He===void 0?void 0:He.bindProduct)===null||Le===void 0?void 0:Le.bindCta)===null||qe===void 0?void 0:qe.traceInfo)!==null&&Pe!==void 0?Pe:(mt=(Ye=(at=(ze=H?.video)===null||ze===void 0?void 0:ze.bindProducts)===null||at===void 0?void 0:at[0])===null||Ye===void 0?void 0:Ye.bindCta)===null||mt===void 0?void 0:mt.traceInfo)!==null&&ft!==void 0?ft:(It=(Ct=H?.product)===null||Ct===void 0?void 0:Ct.bindCta)===null||It===void 0?void 0:It.traceInfo)!==null&&Be!==void 0?Be:"",fromKName:Ut,fromKPage:(li=location?.href)!==null&&li!==void 0?li:""})})},[G,Q]),it=n.useCallback(()=>{var z,H;const xe=location.search.slice(1),Ce=ai.parse(xe.replace(/\+/g,"%2B"));for(const ee in Ce)Ce[ee]=Ce[ee].replace(/%2B/g,"+");const me=ee=>{var Te;return(Te=Ce[ee])!==null&&Te!==void 0?Te:""},le=new Date;we.current=le,G?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:me("utm_source"),utmMedium:me("utm_medium"),utmCampaign:me("utm_campaign"),utmId:me("utm_id"),utmContent:me("utm_content"),enterTime:Math.floor(le/1e3)+"",requestId:null,enterUrl:(H=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&H!==void 0?H:"",clSource:me("cl_source")}})},[G]);n.useEffect(()=>{Ae||it()},[Ae]),n.useEffect(()=>{Ae||(E(!0),wt(),ce().then(z=>{z&&(A(J(z)),re(J(z)))}).finally(()=>{G({eventInfo:{eventSubject:"apiRequest",eventDescription:"api request succeed"}}),E(!1)}))},[Ae]),n.useEffect(()=>{s&&(E(!0),wt(),ce().then(z=>{z&&(A(J(z)),re(J(z)))}).finally(()=>{G({eventInfo:{eventSubject:"apiRequest",eventDescription:"api request succeed"}}),E(!1)}))},[ce,wt]);const St=ct("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",d);return n.createElement(Xi.Provider,{value:{rtcList:P,setRtcList:A,mutateLike:Re,mutateUnlike:Ue,submitForm:dt,popupDetailData:_,loadVideos:Oe,setPopupDetailData:B,getRecommendVideos:ce,bffEventReport:G,utmVal:i,isPreview:s,loading:C,sxpParameter:r,waterFallData:W,setWaterFallData:U,ctaEvent:tt,swiperRef:N,openHashtag:X,setOpenHashtag:ne,cacheRtcList:te,setCacheRtcList:re,cacheActiveIndex:ke,setCacheActiveIndex:ue,isFromHashtag:Q,setIsFromHashtag:K,appDomain:d,hashTagSize:v,loadingImage:c??St,isOpenHashTag:m,tagList:u,setLoading:E,videoRef:$,setVideoRef:Z,bffFbReport:j,isAgreePolicy:V,setIsAgreePolicy:L,curTime:we,h5EnterLink:it,themeTag:ae,isShowConsent:Ae,selectTag:be,setSelectTag:De,globalConfig:p,popupCurTimeRef:je,checkCommodityIndexRef:Ee,isEditor:w,isNoMoreData:ve}},Ae?n.createElement(nn,Object.assign({},(O=(g=(k=p?.consent)===null||k===void 0?void 0:k[0])===null||g===void 0?void 0:g.item)===null||O===void 0?void 0:O.props)):t({rtcList:P,mutateLike:Re,mutateUnlike:Ue,submitForm:dt,tagList:u}))};var Ji=n.memo(ln);function _e(){return n.useContext(Xi)}var qi;(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"})(qi||(qi={}));const Ki=n.createContext({$store:{},options:[],configs:[]}),an=({children:t,isSsr:e,enable:i})=>{const[o,a]=n.useState([]),{schema:l}=ht(),[s,r]=n.useState(l.__STORE__||{}),[d,v]=n.useState([]);n.useEffect(()=>{var h;e||Xe.isEqual(d,l?.dataSource)||v((h=l?.dataSource)!==null&&h!==void 0?h:[])},[l?.dataSource,e]);const c=n.useCallback(()=>Qe(void 0,void 0,void 0,function*(){const{$store:h,idMapName:f}=yield Oi("",d);r(h),m(h,f)}),[d]),m=(h,f)=>{const y=[];Object.entries(h).forEach(([S,x])=>{Object.keys(x).forEach(p=>{const w={label:`${f[S]} - ${p}`,value:`{{ ${S}.${p} }}`};y.push(w)})}),a(y)};return n.useEffect(()=>{e||c()},[c,e,l]),i?n.createElement(Ki.Provider,{value:{$store:l.__STORE__||s,options:o,configs:d}},t):t};var sn=n.memo(an);const Xt={id:Wt(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},ci={id:"",duration:0,name:"none"},Zi=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Xt],redoStack:[],popup:ci,setPopup:()=>{}}),Qi=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:a=!0,utmVal:l},s)=>{const[r,d]=n.useState(null),[v,c]=n.useState(o||{pointData:[Xt],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[m,h]=n.useState([Xt]),[f,y]=n.useState([[Xt]]),[S,x]=n.useState([]),[p,w]=n.useState(ci);typeof window<"u"&&(window.sxpPopup=(O,P)=>{w(Object.assign(Object.assign(Object.assign({},ci),{id:O}),P))}),typeof window<"u"&&(window.getJointUtmLink=O=>(tn(),O?.indexOf("?")!==-1?O+(l?"&"+l:""):O+(l?"?"+l:""))),n.useEffect(()=>{y([v.pointData]),x([])},[v.type]);const b=n.useCallback(O=>{const P=Xe.cloneDeep(v);P&&(P.dataSource=O,c?.(P))},[v]),[T,k]=n.useState();n.useImperativeHandle(s,()=>({loadSchema(O){O&&(y([O.pointData]),c(O))},exportSchema(){return Xe.cloneDeep(v)},getPageInfoData(){return T},initPageInfoData(O){O&&k(O)}}));const g=n.useMemo(()=>{if(v)return v.type==="PC"?v.pcPageConf:v.mobilePageConf},[v]);return n.createElement(Zi.Provider,{value:{resolver:e,currentNode:r,schema:v,setCurrentNode:d,setSchema:c,saveDataSource:b,prePiontData:m,setPrePiontData:h,pageInfoData:T,setPageInfoData:O=>k(Object.assign(Object.assign({},T),O)),undoStack:f,redoStack:S,setRedoStack:x,setUndoStack:y,getCurPageConf:g,popup:p,setPopup:w}},n.createElement(sn,{isSsr:i,enable:a},t))});var rn=Object.freeze({__proto__:null,EditorCore:Qi}),dn=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],cn=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Ke(){const{bffEventReport:t,popupDetailData:e,waterFallData:i,isFromHashtag:o}=_e(),a=n.useCallback((r,d,v,c,m)=>{var h,f,y,S,x,p,w,b,T,k,g,O,P,A,u,M,C,E,I,R,N,F,V,L,_,B,W,U,X,ne,te,re,ke,ue,Q,K,$,Z;let ae="";e&&(!((f=(h=r?.video)===null||h===void 0?void 0:h.bindProducts)===null||f===void 0)&&f.length||!((y=r?.video)===null||y===void 0)&&y.bindProduct)?ae="pdpPage":o?ae="hashTagPage":!((S=r?.video)===null||S===void 0)&&S.url?ae="videoPage":!((x=r?.video)===null||x===void 0)&&x.imgUrls&&(!((w=(p=r?.video)===null||p===void 0?void 0:p.imgUrls)===null||w===void 0)&&w.length)?ae="imagePage":r?.product&&(ae="productPage");const we=(A=(O=(b=d?.tags)!==null&&b!==void 0?b:(g=(k=(T=r?.video)===null||T===void 0?void 0:T.bindProducts)===null||k===void 0?void 0:k[0])===null||g===void 0?void 0:g.tags)!==null&&O!==void 0?O:(P=r?.video)===null||P===void 0?void 0:P.tags)!==null&&A!==void 0?A:(u=r?.product)===null||u===void 0?void 0:u.tags;let be=null;!((M=r?.video)===null||M===void 0)&&M.url?be="video":!((C=r?.video)===null||C===void 0)&&C.imgUrls&&(!((I=(E=r?.video)===null||E===void 0?void 0:E.imgUrls)===null||I===void 0)&&I.length)&&(be="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(R=d?.itemId)!==null&&R!==void 0?R:"",productName:(N=d?.title)!==null&&N!==void 0?N:"",price:d?.price?d?.price+"":"0",productCollection:(F=d?.collection)!==null&&F!==void 0?F:"",fromKName:ae,fromKPage:location?.href,contentTags:we?JSON.stringify(we):"",position:c+"",contentId:(L=(V=r?.video)===null||V===void 0?void 0:V.itemId)!==null&&L!==void 0?L:"",ctatId:(_=v?.itemId)!==null&&_!==void 0?_:"",traceInfo:(Z=(Q=(ke=(X=(B=m??d?.traceInfo)!==null&&B!==void 0?B:(U=(W=r?.video)===null||W===void 0?void 0:W.bindProduct)===null||U===void 0?void 0:U.traceInfo)!==null&&X!==void 0?X:(re=(te=(ne=r?.video)===null||ne===void 0?void 0:ne.bindProducts)===null||te===void 0?void 0:te[0])===null||re===void 0?void 0:re.traceInfo)!==null&&ke!==void 0?ke:(ue=r?.product)===null||ue===void 0?void 0:ue.traceInfo)!==null&&Q!==void 0?Q:($=(K=r?.video)===null||K===void 0?void 0:K.bindCta)===null||$===void 0?void 0:$.traceInfo)!==null&&Z!==void 0?Z:""},be&&{contentFormat:be})})},[t,e,o]),l=n.useCallback((r,d,v,c,m)=>{var h,f,y,S,x,p,w,b,T,k,g,O,P,A;let u="";e&&(!((f=(h=r?.video)===null||h===void 0?void 0:h.bindProducts)===null||f===void 0)&&f.length||!((y=r?.video)===null||y===void 0)&&y.bindProduct)?u="pdpPage":r?.product&&(u="productPage"),t?.({eventInfo:{productId:d?.itemId,productName:d?.title,price:d?.price?d?.price+"":"0",productCollection:d?.collection,fromKName:u,fromKPage:location?.href,contentTags:JSON.stringify(d?.tags),position:m+"",contentId:(S=r?.video)===null||S===void 0?void 0:S.itemId,ctatId:v?.itemId,traceInfo:(A=(O=(b=(x=d?.traceInfo)!==null&&x!==void 0?x:(w=(p=r?.video)===null||p===void 0?void 0:p.bindProduct)===null||w===void 0?void 0:w.traceInfo)!==null&&b!==void 0?b:(g=(k=(T=r?.video)===null||T===void 0?void 0:T.bindProducts)===null||k===void 0?void 0:k[0])===null||g===void 0?void 0:g.traceInfo)!==null&&O!==void 0?O:(P=r?.product)===null||P===void 0?void 0:P.traceInfo)!==null&&A!==void 0?A:"",timeOnSite:Math.floor((new Date-c)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),s=n.useCallback((r,d,v,c)=>{d&&d===Yt&&t?.({eventInfo:{lastFeed:r,themeTags:v?`['${v}']`:"",hashTags:c?`['${c}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:a,productView:l,backMainFeed:s}}const un=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,a)=>n.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&n.createElement("label",{className:"pb-appoint-form-container-label"},o?.title),o?.valueType==="text"&&n.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?o?.title:"\u8BF7\u8F93\u5165",name:o?.dataIndex},i&&{onChange:i})))));var vn=n.memo(un);const pn=t=>{var e,i,{columns:o,style:a,title:l,textStyle:s,submitBgColor:r,submitColor:d,submitText:v,layoutType:c="inline",isExternalLink:m,isPopup:h,onClick:f,onClose:y,submitButtonStyle:S}=t,x=Je(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:p,popupDetailData:w}=_e(),{jumpToWeb:b}=Ke(),[T,k]=n.useState(!1),[g,O]=n.useState({}),[P,A]=n.useState(0),u=n.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),M=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),C=n.useMemo(()=>Xe.cloneDeep(o)||u,[o,u]),E=n.useCallback(R=>{const{name:N,value:F}=R.target;O(Object.assign(Object.assign({},g),{[N]:F}))},[g]),I=Xe.debounce(()=>Qe(void 0,void 0,void 0,function*(){var R,N,F,V,L;const _=g;if(!_)return;const B=(N=(R=Object.keys(_))===null||R===void 0?void 0:R.map(U=>{var X;return{name:U,value:(X=_[U])!==null&&X!==void 0?X:""}}))===null||N===void 0?void 0:N.filter(U=>U?.value);if(!B||!B?.length)return;k(!0);const W=yield p?.({attributes:B});if(k(!1),W){if(m){const U=w,X=(F=U?.video)===null||F===void 0?void 0:F.bindProduct,ne=(L=(V=U?.video)===null||V===void 0?void 0:V.bindProduct)===null||L===void 0?void 0:L.bindCta,te=w?.index;b(U,X,ne,te)}h||y?.(),f?.()}}),1e3);return n.useEffect(()=>{const R=()=>{var N,F;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((N=document?.documentElement)===null||N===void 0?void 0:N.clientHeight)||((F=document?.body)===null||F===void 0?void 0:F.clientHeight))<M?A(50):A(0)};return window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}},[]),n.createElement("div",{className:"pb-appoint-form"},n.createElement("div",{className:`pb-appoint-form-title ${Se.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:he(l,s)}}),n.createElement("div",Object.assign({className:Se.css(Object.assign(Object.assign({},a),{marginTop:P}))},x),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(vn,{columns:C,layout:c,onChange:E}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":v,onClick:I,className:"pb-appoint-form-btn",style:Object.assign({color:d,background:r},S),dangerouslySetInnerHTML:{__html:he(T?"loading...":v,S)}})))};var mn=n.memo(pn);function Ze(t,e){return t.extend=e,t}const fn=Ze(mn,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:cn,bindableProps:[],interactionRender:dn},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var hn=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}];function $i(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ui(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:$i(e[i])&&$i(t[i])&&Object.keys(e[i]).length>0&&ui(t[i],e[i])})}const eo={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 bt(){const t=typeof document<"u"?document:{};return ui(t,eo),t}const gn={document:eo,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 et(){const t=typeof window<"u"?window:{};return ui(t,gn),t}function Pt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function bn(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function Rt(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function ut(){return Date.now()}function yn(t){const e=et();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function wn(t,e){e===void 0&&(e="x");const i=et();let o,a,l;const s=yn(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(r=>r.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(a==="none"?"":a)):(l=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=l.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?a=l.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function Jt(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Sn(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function rt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const o=i<0||arguments.length<=i?void 0:arguments[i];if(o!=null&&!Sn(o)){const a=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,s=a.length;l<s;l+=1){const r=a[l],d=Object.getOwnPropertyDescriptor(o,r);d!==void 0&&d.enumerable&&(Jt(t[r])&&Jt(o[r])?o[r].__swiper__?t[r]=o[r]:rt(t[r],o[r]):!Jt(t[r])&&Jt(o[r])?(t[r]={},o[r].__swiper__?t[r]=o[r]:rt(t[r],o[r])):t[r]=o[r])}}}return t}function qt(t,e,i){t.style.setProperty(e,i)}function to(t){let{swiper:e,targetPosition:i,side:o}=t;const a=et(),l=-e.translate;let s=null,r;const d=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const v=i>l?"next":"prev",c=(h,f)=>v==="next"&&h>=f||v==="prev"&&h<=f,m=()=>{r=new Date().getTime(),s===null&&(s=r);const h=Math.max(Math.min((r-s)/d,1),0),f=.5-Math.cos(h*Math.PI)/2;let y=l+f*(i-l);if(c(y,i)&&(y=i),e.wrapperEl.scrollTo({[o]:y}),c(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:y})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(m)};m()}function xt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Kt(t){try{console.warn(t);return}catch{}}function jt(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Pt(e)),i}function xn(t){const e=et(),i=bt(),o=t.getBoundingClientRect(),a=i.body,l=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,r=t===e?e.scrollY:t.scrollTop,d=t===e?e.scrollX:t.scrollLeft;return{top:o.top+r-l,left:o.left+d-s}}function Tn(t,e){const i=[];for(;t.previousElementSibling;){const o=t.previousElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function En(t,e){const i=[];for(;t.nextElementSibling;){const o=t.nextElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Dt(t,e){return et().getComputedStyle(t,null).getPropertyValue(e)}function Zt(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function io(t,e){const i=[];let o=t.parentElement;for(;o;)e?o.matches(e)&&i.push(o):i.push(o),o=o.parentElement;return i}function vi(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function pi(t,e,i){const o=et();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Tt(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function An(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=et();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let s,r=ut(),d;const v=[];function c(b){let O=0,P=0,A=0,u=0;return"detail"in b&&(P=b.detail),"wheelDelta"in b&&(P=-b.wheelDelta/120),"wheelDeltaY"in b&&(P=-b.wheelDeltaY/120),"wheelDeltaX"in b&&(O=-b.wheelDeltaX/120),"axis"in b&&b.axis===b.HORIZONTAL_AXIS&&(O=P,P=0),A=O*10,u=P*10,"deltaY"in b&&(u=b.deltaY),"deltaX"in b&&(A=b.deltaX),b.shiftKey&&!A&&(A=u,u=0),(A||u)&&b.deltaMode&&(b.deltaMode===1?(A*=40,u*=40):(A*=800,u*=800)),A&&!O&&(O=A<1?-1:1),u&&!P&&(P=u<1?-1:1),{spinX:O,spinY:P,pixelX:A,pixelY:u}}function m(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function f(b){return e.params.mousewheel.thresholdDelta&&b.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&ut()-r<e.params.mousewheel.thresholdTime?!1:b.delta>=6&&ut()-r<60?!0:(b.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",b.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",b.raw)),r=new l.Date().getTime(),!1)}function y(b){const T=e.params.mousewheel;if(b.direction<0){if(e.isEnd&&!e.params.loop&&T.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&T.releaseOnEdges)return!0;return!1}function S(b){let T=b,k=!0;if(!e.enabled||b.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const g=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let O=e.el;e.params.mousewheel.eventsTarget!=="container"&&(O=document.querySelector(e.params.mousewheel.eventsTarget));const P=O&&O.contains(T.target);if(!e.mouseEntered&&!P&&!g.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let A=0;const u=e.rtlTranslate?-1:1,M=c(T);if(g.forceToAxis)if(e.isHorizontal())if(Math.abs(M.pixelX)>Math.abs(M.pixelY))A=-M.pixelX*u;else return!0;else if(Math.abs(M.pixelY)>Math.abs(M.pixelX))A=-M.pixelY;else return!0;else A=Math.abs(M.pixelX)>Math.abs(M.pixelY)?-M.pixelX*u:-M.pixelY;if(A===0)return!0;g.invert&&(A=-A);let C=e.getTranslate()+A*g.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),k=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),k&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const E={time:ut(),delta:Math.abs(A),direction:Math.sign(A),raw:b};v.length>=2&&v.shift();const I=v.length?v[v.length-1]:void 0;if(v.push(E),I?(E.direction!==I.direction||E.delta>I.delta||E.time>I.time+150)&&f(E):f(E),y(E))return!0}else{const E={time:ut(),delta:Math.abs(A),direction:Math.sign(A)},I=d&&E.time<d.time+500&&E.delta<=d.delta&&E.direction===d.direction;if(!I){d=void 0;let R=e.getTranslate()+A*g.sensitivity;const N=e.isBeginning,F=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(),(!N&&e.isBeginning||!F&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:E.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,v.length>=15&&v.shift();const V=v.length?v[v.length-1]:void 0,L=v[0];if(v.push(E),V&&(E.delta>V.delta||E.direction!==V.direction))v.splice(0);else if(v.length>=15&&E.time-L.time<500&&L.delta-E.delta>=1&&E.delta<=6){const _=A>0?.8:.2;d=E,v.splice(0),s=Rt(()=>{e.slideToClosest(e.params.speed,!0,void 0,_)},0)}s||(s=Rt(()=>{d=E,v.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(I||a("scroll",T),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),g.releaseOnEdges&&(R===e.minTranslate()||R===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function x(b){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[b]("mouseenter",m),T[b]("mouseleave",h),T[b]("wheel",S)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",S),!0):e.mousewheel.enabled?!1:(x("addEventListener"),e.mousewheel.enabled=!0,!0)}function w(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,S),!0):e.mousewheel.enabled?(x("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&w(),e.params.mousewheel.enabled&&p()}),o("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&w()}),Object.assign(e.mousewheel,{enable:p,disable:w})}function oo(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(a=>{if(!i[a]&&i.auto===!0){let l=xt(t.el,`.${o[a]}`)[0];l||(l=jt("div",o[a]),l.className=o[a],t.el.append(l)),i[a]=l,e[a]=l}}),i}function Lt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Qt(t){let{swiper:e,extendParams:i,on:o,emit:a}=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 s,r=0;function d(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function v(p,w){const{bulletActiveClass:b}=e.params.pagination;p&&(p=p[`${w==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${b}-${w}`),p=p[`${w==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${b}-${w}-${w}`)))}function c(p){const w=p.target.closest(Lt(e.params.pagination.bulletClass));if(!w)return;p.preventDefault();const b=Zt(w)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===b)return;e.slideToLoop(b)}else e.slideTo(b)}function m(){const p=e.rtl,w=e.params.pagination;if(d())return;let b=e.pagination.el;b=Tt(b);let T,k;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,O=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(k=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,k=e.previousSnapIndex):(k=e.previousIndex||0,T=e.activeIndex||0),w.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const P=e.pagination.bullets;let A,u,M;if(w.dynamicBullets&&(s=pi(P[0],e.isHorizontal()?"width":"height",!0),b.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${s*(w.dynamicMainBullets+4)}px`}),w.dynamicMainBullets>1&&k!==void 0&&(r+=T-(k||0),r>w.dynamicMainBullets-1?r=w.dynamicMainBullets-1:r<0&&(r=0)),A=Math.max(T-r,0),u=A+(Math.min(P.length,w.dynamicMainBullets)-1),M=(u+A)/2),P.forEach(C=>{const E=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(I=>`${w.bulletActiveClass}${I}`)].map(I=>typeof I=="string"&&I.includes(" ")?I.split(" "):I).flat();C.classList.remove(...E)}),b.length>1)P.forEach(C=>{const E=Zt(C);E===T?C.classList.add(...w.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),w.dynamicBullets&&(E>=A&&E<=u&&C.classList.add(...`${w.bulletActiveClass}-main`.split(" ")),E===A&&v(C,"prev"),E===u&&v(C,"next"))});else{const C=P[T];if(C&&C.classList.add(...w.bulletActiveClass.split(" ")),e.isElement&&P.forEach((E,I)=>{E.setAttribute("part",I===T?"bullet-active":"bullet")}),w.dynamicBullets){const E=P[A],I=P[u];for(let R=A;R<=u;R+=1)P[R]&&P[R].classList.add(...`${w.bulletActiveClass}-main`.split(" "));v(E,"prev"),v(I,"next")}}if(w.dynamicBullets){const C=Math.min(P.length,w.dynamicMainBullets+4),E=(s*C-s)/2-M*s,I=p?"right":"left";P.forEach(R=>{R.style[e.isHorizontal()?I:"top"]=`${E}px`})}}b.forEach((P,A)=>{if(w.type==="fraction"&&(P.querySelectorAll(Lt(w.currentClass)).forEach(u=>{u.textContent=w.formatFractionCurrent(T+1)}),P.querySelectorAll(Lt(w.totalClass)).forEach(u=>{u.textContent=w.formatFractionTotal(O)})),w.type==="progressbar"){let u;w.progressbarOpposite?u=e.isHorizontal()?"vertical":"horizontal":u=e.isHorizontal()?"horizontal":"vertical";const M=(T+1)/O;let C=1,E=1;u==="horizontal"?C=M:E=M,P.querySelectorAll(Lt(w.progressbarFillClass)).forEach(I=>{I.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${E})`,I.style.transitionDuration=`${e.params.speed}ms`})}w.type==="custom"&&w.renderCustom?(P.innerHTML=w.renderCustom(e,T+1,O),A===0&&a("paginationRender",P)):(A===0&&a("paginationRender",P),a("paginationUpdate",P)),e.params.watchOverflow&&e.enabled&&P.classList[e.isLocked?"add":"remove"](w.lockClass)})}function h(){const p=e.params.pagination;if(d())return;const w=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let b=e.pagination.el;b=Tt(b);let T="";if(p.type==="bullets"){let k=e.params.loop?Math.ceil(w/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&k>w&&(k=w);for(let g=0;g<k;g+=1)p.renderBullet?T+=p.renderBullet.call(e,g,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=[],b.forEach(k=>{p.type!=="custom"&&(k.innerHTML=T||""),p.type==="bullets"&&e.pagination.bullets.push(...k.querySelectorAll(Lt(p.bulletClass)))}),p.type!=="custom"&&a("paginationRender",b[0])}function f(){e.params.pagination=oo(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let w;typeof p.el=="string"&&e.isElement&&(w=e.el.querySelector(p.el)),!w&&typeof p.el=="string"&&(w=[...document.querySelectorAll(p.el)]),w||(w=p.el),!(!w||w.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(w)&&w.length>1&&(w=[...e.el.querySelectorAll(p.el)],w.length>1&&(w=w.filter(b=>io(b,".swiper")[0]===e.el)[0])),Array.isArray(w)&&w.length===1&&(w=w[0]),Object.assign(e.pagination,{el:w}),w=Tt(w),w.forEach(b=>{p.type==="bullets"&&p.clickable&&b.classList.add(...(p.clickableClass||"").split(" ")),b.classList.add(p.modifierClass+p.type),b.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(b.classList.add(`${p.modifierClass}${p.type}-dynamic`),r=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&b.classList.add(p.progressbarOppositeClass),p.clickable&&b.addEventListener("click",c),e.enabled||b.classList.add(p.lockClass)}))}function y(){const p=e.params.pagination;if(d())return;let w=e.pagination.el;w&&(w=Tt(w),w.forEach(b=>{b.classList.remove(p.hiddenClass),b.classList.remove(p.modifierClass+p.type),b.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(b.classList.remove(...(p.clickableClass||"").split(" ")),b.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(b=>b.classList.remove(...p.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:w}=e.pagination;w=Tt(w),w.forEach(b=>{b.classList.remove(p.horizontalClass,p.verticalClass),b.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?x():(f(),h(),m())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&m()}),o("snapIndexChange",()=>{m()}),o("snapGridLengthChange",()=>{h(),m()}),o("destroy",()=>{y()}),o("enable disable",()=>{let{el:p}=e.pagination;p&&(p=Tt(p),p.forEach(w=>w.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{m()}),o("click",(p,w)=>{const b=w.target,T=Tt(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&T&&T.length>0&&!b.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&b===e.navigation.nextEl||e.navigation.prevEl&&b===e.navigation.prevEl))return;const k=T[0].classList.contains(e.params.pagination.hiddenClass);a(k===!0?"paginationShow":"paginationHide"),T.forEach(g=>g.classList.toggle(e.params.pagination.hiddenClass))}});const S=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Tt(p),p.forEach(w=>w.classList.remove(e.params.pagination.paginationDisabledClass))),f(),h(),m()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Tt(p),p.forEach(w=>w.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:S,disable:x,render:h,update:m,init:f,destroy:y})}function Cn(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=bt();let s=!1,r=null,d=null,v,c,m,h;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:E}=e,{dragEl:I,el:R}=C,N=e.params.scrollbar,F=e.params.loop?e.progressLoop:e.progress;let V=c,L=(m-c)*F;E?(L=-L,L>0?(V=c-L,L=0):-L+c>m&&(V=m+L)):L<0?(V=c+L,L=0):L+c>m&&(V=m-L),e.isHorizontal()?(I.style.transform=`translate3d(${L}px, 0, 0)`,I.style.width=`${V}px`):(I.style.transform=`translate3d(0px, ${L}px, 0)`,I.style.height=`${V}px`),N.hide&&(clearTimeout(r),R.style.opacity=1,r=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 S(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:E,el:I}=C;E.style.width="",E.style.height="",m=e.isHorizontal()?I.offsetWidth:I.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=m*h:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?E.style.width=`${c}px`:E.style.height=`${c}px`,h>=1?I.style.display="none":I.style.display="",e.params.scrollbar.hide&&(I.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function x(C){return e.isHorizontal()?C.clientX:C.clientY}function p(C){const{scrollbar:E,rtlTranslate:I}=e,{el:R}=E;let N;N=(x(C)-xn(R)[e.isHorizontal()?"left":"top"]-(v!==null?v:c/2))/(m-c),N=Math.max(Math.min(N,1),0),I&&(N=1-N);const F=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*N;e.updateProgress(F),e.setTranslate(F),e.updateActiveIndex(),e.updateSlidesClasses()}function w(C){const E=e.params.scrollbar,{scrollbar:I,wrapperEl:R}=e,{el:N,dragEl:F}=I;s=!0,v=C.target===F?x(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),R.style.transitionDuration="100ms",F.style.transitionDuration="100ms",p(C),clearTimeout(d),N.style.transitionDuration="0ms",E.hide&&(N.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",C)}function b(C){const{scrollbar:E,wrapperEl:I}=e,{el:R,dragEl:N}=E;s&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,p(C),I.style.transitionDuration="0ms",R.style.transitionDuration="0ms",N.style.transitionDuration="0ms",a("scrollbarDragMove",C))}function T(C){const E=e.params.scrollbar,{scrollbar:I,wrapperEl:R}=e,{el:N}=I;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",R.style.transitionDuration=""),E.hide&&(clearTimeout(d),d=Rt(()=>{N.style.opacity=0,N.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",C),E.snapOnRelease&&e.slideToClosest())}function k(C){const{scrollbar:E,params:I}=e,R=E.el;if(!R)return;const N=R,F=I.passiveListeners?{passive:!1,capture:!1}:!1,V=I.passiveListeners?{passive:!0,capture:!1}:!1;if(!N)return;const L=C==="on"?"addEventListener":"removeEventListener";N[L]("pointerdown",w,F),l[L]("pointermove",b,F),l[L]("pointerup",T,V)}function g(){!e.params.scrollbar.el||!e.scrollbar.el||k("on")}function O(){!e.params.scrollbar.el||!e.scrollbar.el||k("off")}function P(){const{scrollbar:C,el:E}=e;e.params.scrollbar=oo(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const I=e.params.scrollbar;if(!I.el)return;let R;if(typeof I.el=="string"&&e.isElement&&(R=e.el.querySelector(I.el)),!R&&typeof I.el=="string"){if(R=l.querySelectorAll(I.el),!R.length)return}else R||(R=I.el);e.params.uniqueNavElements&&typeof I.el=="string"&&R.length>1&&E.querySelectorAll(I.el).length===1&&(R=E.querySelector(I.el)),R.length>0&&(R=R[0]),R.classList.add(e.isHorizontal()?I.horizontalClass:I.verticalClass);let N;R&&(N=R.querySelector(Lt(e.params.scrollbar.dragClass)),N||(N=jt("div",e.params.scrollbar.dragClass),R.append(N))),Object.assign(C,{el:R,dragEl:N}),I.draggable&&g(),R&&R.classList[e.enabled?"remove":"add"](...Pt(e.params.scrollbar.lockClass))}function A(){const C=e.params.scrollbar,E=e.scrollbar.el;E&&E.classList.remove(...Pt(e.isHorizontal()?C.horizontalClass:C.verticalClass)),O()}o("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:E}=e.scrollbar;E=Tt(E),E.forEach(I=>{I.classList.remove(C.horizontalClass,C.verticalClass),I.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),o("init",()=>{e.params.scrollbar.enabled===!1?M():(P(),S(),f())}),o("update resize observerUpdate lock unlock changeDirection",()=>{S()}),o("setTranslate",()=>{f()}),o("setTransition",(C,E)=>{y(E)}),o("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...Pt(e.params.scrollbar.lockClass))}),o("destroy",()=>{A()});const u=()=>{e.el.classList.remove(...Pt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Pt(e.params.scrollbar.scrollbarDisabledClass)),P(),S(),f()},M=()=>{e.el.classList.add(...Pt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Pt(e.params.scrollbar.scrollbarDisabledClass)),A()};Object.assign(e.scrollbar,{enable:u,disable:M,updateSize:S,setTranslate:f,init:P,destroy:A})}function $t(t){let{swiper:e,extendParams:i,on:o,emit:a,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 s,r,d=l&&l.autoplay?l.autoplay.delay:3e3,v=l&&l.autoplay?l.autoplay.delay:3e3,c,m=new Date().getTime(),h,f,y,S,x,p,w;function b(V){!e||e.destroyed||!e.wrapperEl||V.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),!(w||V.detail&&V.detail.bySwiperTouchMove)&&u())}const T=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(v=c,h=!1);const V=e.autoplay.paused?c:m+v-new Date().getTime();e.autoplay.timeLeft=V,a("autoplayTimeLeft",V,V/d),r=requestAnimationFrame(()=>{T()})},k=()=>{let V;return e.virtual&&e.params.virtual.enabled?V=e.slides.filter(_=>_.classList.contains("swiper-slide-active"))[0]:V=e.slides[e.activeIndex],V?parseInt(V.getAttribute("data-swiper-autoplay"),10):void 0},g=V=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(r),T();let L=typeof V>"u"?e.params.autoplay.delay:V;d=e.params.autoplay.delay,v=e.params.autoplay.delay;const _=k();!Number.isNaN(_)&&_>0&&typeof V>"u"&&(L=_,d=_,v=_),c=L;const B=e.params.speed,W=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(B,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,B,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(B,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,B,!0,!0),a("autoplay")),e.params.cssMode&&(m=new Date().getTime(),requestAnimationFrame(()=>{g()})))};return L>0?(clearTimeout(s),s=setTimeout(()=>{W()},L)):requestAnimationFrame(()=>{W()}),L},O=()=>{m=new Date().getTime(),e.autoplay.running=!0,g(),a("autoplayStart")},P=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(r),a("autoplayStop")},A=(V,L)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),V||(p=!0);const _=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):u()};if(e.autoplay.paused=!0,L){x&&(c=e.params.autoplay.delay),x=!1,_();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-m),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),_())},u=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(m=new Date().getTime(),p?(p=!1,g(c)):g(),e.autoplay.paused=!1,a("autoplayResume"))},M=()=>{if(e.destroyed||!e.autoplay.running)return;const V=bt();V.visibilityState==="hidden"&&(p=!0,A(!0)),V.visibilityState==="visible"&&u()},C=V=>{V.pointerType==="mouse"&&(p=!0,w=!0,!(e.animating||e.autoplay.paused)&&A(!0))},E=V=>{V.pointerType==="mouse"&&(w=!1,e.autoplay.paused&&u())},I=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",E))},R=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",E))},N=()=>{bt().addEventListener("visibilitychange",M)},F=()=>{bt().removeEventListener("visibilitychange",M)};o("init",()=>{e.params.autoplay.enabled&&(I(),N(),O())}),o("destroy",()=>{R(),F(),e.autoplay.running&&P()}),o("_freeModeStaticRelease",()=>{(y||p)&&u()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?P():A(!0,!0)}),o("beforeTransitionStart",(V,L,_)=>{e.destroyed||!e.autoplay.running||(_||!e.params.autoplay.disableOnInteraction?A(!0,!0):P())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){P();return}f=!0,y=!1,p=!1,S=setTimeout(()=>{p=!0,y=!0,A(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(S),clearTimeout(s),e.params.autoplay.disableOnInteraction){y=!1,f=!1;return}y&&e.params.cssMode&&u(),y=!1,f=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(x=!0)}),Object.assign(e.autoplay,{start:O,stop:P,pause:A,resume:u})}function In(t){let{swiper:e,extendParams:i,emit:o,once:a}=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 d=e.getTranslate();e.setTranslate(d),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:d,touches:v}=e;d.velocities.length===0&&d.velocities.push({position:v[e.isHorizontal()?"startX":"startY"],time:d.touchStartTime}),d.velocities.push({position:v[e.isHorizontal()?"currentX":"currentY"],time:ut()})}function r(d){let{currentPos:v}=d;if(e.params.cssMode)return;const{params:c,wrapperEl:m,rtlTranslate:h,snapGrid:f,touchEventsData:y}=e,x=ut()-y.touchStartTime;if(v<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(v>-e.maxTranslate()){e.slides.length<f.length?e.slideTo(f.length-1):e.slideTo(e.slides.length-1);return}if(c.freeMode.momentum){if(y.velocities.length>1){const P=y.velocities.pop(),A=y.velocities.pop(),u=P.position-A.position,M=P.time-A.time;e.velocity=u/M,e.velocity/=2,Math.abs(e.velocity)<c.freeMode.minimumVelocity&&(e.velocity=0),(M>150||ut()-P.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 w=e.velocity*p;let b=e.translate+w;h&&(b=-b);let T=!1,k;const g=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let O;if(b<e.maxTranslate())c.freeMode.momentumBounce?(b+e.maxTranslate()<-g&&(b=e.maxTranslate()-g),k=e.maxTranslate(),T=!0,y.allowMomentumBounce=!0):b=e.maxTranslate(),c.loop&&c.centeredSlides&&(O=!0);else if(b>e.minTranslate())c.freeMode.momentumBounce?(b-e.minTranslate()>g&&(b=e.minTranslate()+g),k=e.minTranslate(),T=!0,y.allowMomentumBounce=!0):b=e.minTranslate(),c.loop&&c.centeredSlides&&(O=!0);else if(c.freeMode.sticky){let P;for(let A=0;A<f.length;A+=1)if(f[A]>-b){P=A;break}Math.abs(f[P]-b)<Math.abs(f[P-1]-b)||e.swipeDirection==="next"?b=f[P]:b=f[P-1],b=-b}if(O&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?p=Math.abs((-b-e.translate)/e.velocity):p=Math.abs((b-e.translate)/e.velocity),c.freeMode.sticky){const P=Math.abs((h?-b:b)-e.translate),A=e.slidesSizesGrid[e.activeIndex];P<A?p=c.speed:P<2*A?p=c.speed*1.5:p=c.speed*2.5}}else if(c.freeMode.sticky){e.slideToClosest();return}c.freeMode.momentumBounce&&T?(e.updateProgress(k),e.setTransition(p),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating=!0,vi(m,()=>{!e||e.destroyed||!y.allowMomentumBounce||(o("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(k),vi(m,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(b),e.setTransition(p),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,vi(m,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(b),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&o("_freeModeNoMomentumRelease");(!c.freeMode.momentum||x>=c.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:s,onTouchEnd:r}})}let mi;function kn(){const t=et(),e=bt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function no(){return mi||(mi=kn()),mi}let fi;function _n(t){let{userAgent:e}=t===void 0?{}:t;const i=no(),o=et(),a=o.navigator.platform,l=e||o.navigator.userAgent,s={ios:!1,android:!1},r=o.screen.width,d=o.screen.height,v=l.match(/(Android);?[\s\/]+([\d.]+)?/);let c=l.match(/(iPad).*OS\s([\d_]+)/);const m=l.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=a==="Win32";let y=a==="MacIntel";const S=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&y&&i.touch&&S.indexOf(`${r}x${d}`)>=0&&(c=l.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),y=!1),v&&!f&&(s.os="android",s.android=!0),(c||h||m)&&(s.os="ios",s.ios=!0),s}function lo(t){return t===void 0&&(t={}),fi||(fi=_n(t)),fi}let hi;function Pn(){const t=et(),e=lo();let i=!1;function o(){const r=t.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(o()){const r=String(t.navigator.userAgent);if(r.includes("Version/")){const[d,v]=r.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));i=d<16||d===16&&v<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),s=l||a&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function Dn(){return hi||(hi=Pn()),hi}function Mn(t){let{swiper:e,on:i,emit:o}=t;const a=et();let l=null,s=null;const r=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},d=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(m=>{s=a.requestAnimationFrame(()=>{const{width:h,height:f}=e;let y=h,S=f;m.forEach(x=>{let{contentBoxSize:p,contentRect:w,target:b}=x;b&&b!==e.el||(y=w?w.width:(p[0]||p).inlineSize,S=w?w.height:(p[0]||p).blockSize)}),(y!==h||S!==f)&&r()})}),l.observe(e.el))},v=()=>{s&&a.cancelAnimationFrame(s),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},c=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){d();return}a.addEventListener("resize",r),a.addEventListener("orientationchange",c)}),i("destroy",()=>{v(),a.removeEventListener("resize",r),a.removeEventListener("orientationchange",c)})}function On(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=[],s=et(),r=function(c,m){m===void 0&&(m={});const h=s.MutationObserver||s.WebkitMutationObserver,f=new h(y=>{if(e.__preventObserver__)return;if(y.length===1){a("observerUpdate",y[0]);return}const S=function(){a("observerUpdate",y[0])};s.requestAnimationFrame?s.requestAnimationFrame(S):s.setTimeout(S,0)});f.observe(c,{attributes:typeof m.attributes>"u"?!0:m.attributes,childList:typeof m.childList>"u"?!0:m.childList,characterData:typeof m.characterData>"u"?!0:m.characterData}),l.push(f)},d=()=>{if(e.params.observer){if(e.params.observeParents){const c=io(e.hostEl);for(let m=0;m<c.length;m+=1)r(c[m])}r(e.hostEl,{childList:e.params.observeSlideChildren}),r(e.wrapperEl,{attributes:!1})}},v=()=>{l.forEach(c=>{c.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",d),o("destroy",v)}var Rn={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const a=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][a](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function a(){o.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var l=arguments.length,s=new Array(l),r=0;r<l;r++)s[r]=arguments[r];e.apply(o,s)}return a.__emitterProxy=e,o.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const o=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[o](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(o=>{typeof e>"u"?i.eventsListeners[o]=[]:i.eventsListeners[o]&&i.eventsListeners[o].forEach((a,l)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[o].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,o;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),o=t):(e=l[0].events,i=l[0].data,o=l[0].context||t),i.unshift(o),(Array.isArray(e)?e:e.split(" ")).forEach(d=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(v=>{v.apply(o,[d,...i])}),t.eventsListeners&&t.eventsListeners[d]&&t.eventsListeners[d].forEach(v=>{v.apply(o,i)})}),t}};function Ln(){const t=this;let e,i;const o=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=o.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=o.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(Dt(o,"padding-left")||0,10)-parseInt(Dt(o,"padding-right")||0,10),i=i-parseInt(Dt(o,"padding-top")||0,10)-parseInt(Dt(o,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Bn(){const t=this;function e(u,M){return parseFloat(u.getPropertyValue(t.getDirectionLabel(M))||0)}const i=t.params,{wrapperEl:o,slidesEl:a,size:l,rtlTranslate:s,wrongRTL:r}=t,d=t.virtual&&i.virtual.enabled,v=d?t.virtual.slides.length:t.slides.length,c=xt(a,`.${t.params.slideClass}, swiper-slide`),m=d?t.virtual.slides.length:c.length;let h=[];const f=[],y=[];let S=i.slidesOffsetBefore;typeof S=="function"&&(S=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,w=t.slidesGrid.length;let b=i.spaceBetween,T=-S,k=0,g=0;if(typeof l>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*l:typeof b=="string"&&(b=parseFloat(b)),t.virtualSize=-b,c.forEach(u=>{s?u.style.marginLeft="":u.style.marginRight="",u.style.marginBottom="",u.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(qt(o,"--swiper-centered-offset-before",""),qt(o,"--swiper-centered-offset-after",""));const O=i.grid&&i.grid.rows>1&&t.grid;O?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let P;const A=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(u=>typeof i.breakpoints[u].slidesPerView<"u").length>0;for(let u=0;u<m;u+=1){P=0;let M;if(c[u]&&(M=c[u]),O&&t.grid.updateSlide(u,M,c),!(c[u]&&Dt(M,"display")==="none")){if(i.slidesPerView==="auto"){A&&(c[u].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(M),E=M.style.transform,I=M.style.webkitTransform;if(E&&(M.style.transform="none"),I&&(M.style.webkitTransform="none"),i.roundLengths)P=t.isHorizontal()?pi(M,"width",!0):pi(M,"height",!0);else{const R=e(C,"width"),N=e(C,"padding-left"),F=e(C,"padding-right"),V=e(C,"margin-left"),L=e(C,"margin-right"),_=C.getPropertyValue("box-sizing");if(_&&_==="border-box")P=R+V+L;else{const{clientWidth:B,offsetWidth:W}=M;P=R+N+F+V+L+(W-B)}}E&&(M.style.transform=E),I&&(M.style.webkitTransform=I),i.roundLengths&&(P=Math.floor(P))}else P=(l-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(P=Math.floor(P)),c[u]&&(c[u].style[t.getDirectionLabel("width")]=`${P}px`);c[u]&&(c[u].swiperSlideSize=P),y.push(P),i.centeredSlides?(T=T+P/2+k/2+b,k===0&&u!==0&&(T=T-l/2-b),u===0&&(T=T-l/2-b),Math.abs(T)<1/1e3&&(T=0),i.roundLengths&&(T=Math.floor(T)),g%i.slidesPerGroup===0&&h.push(T),f.push(T)):(i.roundLengths&&(T=Math.floor(T)),(g-Math.min(t.params.slidesPerGroupSkip,g))%t.params.slidesPerGroup===0&&h.push(T),f.push(T),T=T+P+b),t.virtualSize+=P+b,k=P,g+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+x,s&&r&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+b}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+b}px`),O&&t.grid.updateWrapperSize(P,h),!i.centeredSlides){const u=[];for(let M=0;M<h.length;M+=1){let C=h[M];i.roundLengths&&(C=Math.floor(C)),h[M]<=t.virtualSize-l&&u.push(C)}h=u,Math.floor(t.virtualSize-l)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-l)}if(d&&i.loop){const u=y[0]+b;if(i.slidesPerGroup>1){const M=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=u*i.slidesPerGroup;for(let E=0;E<M;E+=1)h.push(h[h.length-1]+C)}for(let M=0;M<t.virtual.slidesBefore+t.virtual.slidesAfter;M+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+u),f.push(f[f.length-1]+u),t.virtualSize+=u}if(h.length===0&&(h=[0]),b!==0){const u=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");c.filter((M,C)=>!i.cssMode||i.loop?!0:C!==c.length-1).forEach(M=>{M.style[u]=`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let u=0;y.forEach(C=>{u+=C+(b||0)}),u-=b;const M=u-l;h=h.map(C=>C<=0?-S:C>M?M+x:C)}if(i.centerInsufficientSlides){let u=0;y.forEach(C=>{u+=C+(b||0)}),u-=b;const M=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(u+M<l){const C=(l-u-M)/2;h.forEach((E,I)=>{h[I]=E-C}),f.forEach((E,I)=>{f[I]=E+C})}}if(Object.assign(t,{slides:c,snapGrid:h,slidesGrid:f,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){qt(o,"--swiper-centered-offset-before",`${-h[0]}px`),qt(o,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const u=-t.snapGrid[0],M=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+u),t.slidesGrid=t.slidesGrid.map(C=>C+M)}if(m!==v&&t.emit("slidesLengthChange"),h.length!==p&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==w&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!d&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const u=`${i.containerModifierClass}backface-hidden`,M=t.el.classList.contains(u);m<=i.maxBackfaceHiddenSlides?M||t.el.classList.add(u):M&&t.el.classList.remove(u)}}function Nn(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let a=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=r=>o?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&&!o)break;i.push(s(r))}else i.push(s(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const r=i[l].offsetHeight;a=r>a?r:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function Fn(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let o=0;o<e.length;o+=1)e[o].swiperSlideOffset=(t.isHorizontal()?e[o].offsetLeft:e[o].offsetTop)-i-t.cssOverflowAdjustment()}const ao=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function jn(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:a,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),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 d=0;d<o.length;d+=1){const v=o[d];let c=v.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=o[0].swiperSlideOffset);const m=(s+(i.centeredSlides?e.minTranslate():0)-c)/(v.swiperSlideSize+r),h=(s-l[0]+(i.centeredSlides?e.minTranslate():0)-c)/(v.swiperSlideSize+r),f=-(s-c),y=f+e.slidesSizesGrid[d],S=f>=0&&f<=e.size-e.slidesSizesGrid[d],x=f>=0&&f<e.size-1||y>1&&y<=e.size||f<=0&&y>=e.size;x&&(e.visibleSlides.push(v),e.visibleSlidesIndexes.push(d)),ao(v,x,i.slideVisibleClass),ao(v,S,i.slideFullyVisibleClass),v.progress=a?-m:m,v.originalProgress=a?-h:h}}function Vn(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,o=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:l,isEnd:s,progressLoop:r}=e;const d=l,v=s;if(o===0)a=0,l=!0,s=!0;else{a=(t-e.minTranslate())/o;const c=Math.abs(t-e.minTranslate())<1,m=Math.abs(t-e.maxTranslate())<1;l=c||a<=0,s=m||a>=1,c&&(a=0),m&&(a=1)}if(i.loop){const c=e.getSlideIndexByData(0),m=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[c],f=e.slidesGrid[m],y=e.slidesGrid[e.slidesGrid.length-1],S=Math.abs(t);S>=h?r=(S-h)/y:r=(S+y-f)/y,r>1&&(r-=1)}Object.assign(e,{progress:a,progressLoop:r,isBeginning:l,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!d&&e.emit("reachBeginning toEdge"),s&&!v&&e.emit("reachEnd toEdge"),(d&&!l||v&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const gi=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function zn(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:a}=t,l=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,r=m=>xt(o,`.${i.slideClass}${m}, swiper-slide${m}`)[0];let d,v,c;if(l)if(i.loop){let m=a-t.virtual.slidesBefore;m<0&&(m=t.virtual.slides.length+m),m>=t.virtual.slides.length&&(m-=t.virtual.slides.length),d=r(`[data-swiper-slide-index="${m}"]`)}else d=r(`[data-swiper-slide-index="${a}"]`);else s?(d=e.filter(m=>m.column===a)[0],c=e.filter(m=>m.column===a+1)[0],v=e.filter(m=>m.column===a-1)[0]):d=e[a];d&&(s||(c=En(d,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c&&(c=e[0]),v=Tn(d,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!v===0&&(v=e[e.length-1]))),e.forEach(m=>{gi(m,m===d,i.slideActiveClass),gi(m,m===c,i.slideNextClass),gi(m,m===v,i.slidePrevClass)}),t.emitSlidesClasses()}const ei=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,o=e.closest(i());if(o){let a=o.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(o.shadowRoot?a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},bi=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},yi=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const o=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,r=[s-e];r.push(...Array.from({length:e}).map((d,v)=>s+o+v)),t.slides.forEach((d,v)=>{r.includes(d.column)&&bi(t,v)});return}const l=a+o-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=l+e;s+=1){const r=(s%i+i)%i;(r<a||r>l)&&bi(t,r)}else for(let s=Math.max(a-e,0);s<=Math.min(l+e,i-1);s+=1)s!==a&&(s>l||s<a)&&bi(t,s)};function Hn(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let a;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?o>=e[l]&&o<e[l+1]-(e[l+1]-e[l])/2?a=l:o>=e[l]&&o<e[l+1]&&(a=l+1):o>=e[l]&&(a=l);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Gn(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:a,activeIndex:l,realIndex:s,snapIndex:r}=e;let d=t,v;const c=f=>{let y=f-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof d>"u"&&(d=Hn(e)),o.indexOf(i)>=0)v=o.indexOf(i);else{const f=Math.min(a.slidesPerGroupSkip,d);v=f+Math.floor((d-f)/a.slidesPerGroup)}if(v>=o.length&&(v=o.length-1),d===l&&!e.params.loop){v!==r&&(e.snapIndex=v,e.emit("snapIndexChange"));return}if(d===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=c(d);return}const m=e.grid&&a.grid&&a.grid.rows>1;let h;if(e.virtual&&a.virtual.enabled&&a.loop)h=c(d);else if(m){const f=e.slides.filter(S=>S.column===d)[0];let y=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(f),0)),h=Math.floor(y/a.grid.rows)}else if(e.slides[d]){const f=e.slides[d].getAttribute("data-swiper-slide-index");f?h=parseInt(f,10):h=d}else h=d;Object.assign(e,{previousSnapIndex:r,snapIndex:v,previousRealIndex:s,realIndex:h,previousIndex:l,activeIndex:d}),e.initialized&&yi(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function Un(t,e){const i=this,o=i.params;let a=t.closest(`.${o.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(r=>{!a&&r.matches&&r.matches(`.${o.slideClass}, swiper-slide`)&&(a=r)});let l=!1,s;if(a){for(let r=0;r<i.slides.length;r+=1)if(i.slides[r]===a){l=!0,s=r;break}}if(a&&l)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Wn={updateSize:Ln,updateSlides:Bn,updateAutoHeight:Nn,updateSlidesOffset:Fn,updateSlidesProgress:jn,updateProgress:Vn,updateSlidesClasses:zn,updateActiveIndex:Gn,updateClickedSlide:Un};function Yn(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:a,wrapperEl:l}=e;if(i.virtualTranslate)return o?-a:a;if(i.cssMode)return a;let s=wn(l,t);return s+=e.cssOverflowAdjustment(),o&&(s=-s),s||0}function Xn(t,e){const i=this,{rtlTranslate:o,params:a,wrapperEl:l,progress:s}=i;let r=0,d=0;const v=0;i.isHorizontal()?r=o?-t:t:d=t,a.roundLengths&&(r=Math.floor(r),d=Math.floor(d)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?r:d,a.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-r:-d:a.virtualTranslate||(i.isHorizontal()?r-=i.cssOverflowAdjustment():d-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${r}px, ${d}px, ${v}px)`);let c;const m=i.maxTranslate()-i.minTranslate();m===0?c=0:c=(t-i.minTranslate())/m,c!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Jn(){return-this.snapGrid[0]}function qn(){return-this.snapGrid[this.snapGrid.length-1]}function Kn(t,e,i,o,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),o===void 0&&(o=!0);const l=this,{params:s,wrapperEl:r}=l;if(l.animating&&s.preventInteractionOnTransition)return!1;const d=l.minTranslate(),v=l.maxTranslate();let c;if(o&&t>d?c=d:o&&t<v?c=v:c=t,l.updateProgress(c),s.cssMode){const m=l.isHorizontal();if(e===0)r[m?"scrollLeft":"scrollTop"]=-c;else{if(!l.support.smoothScroll)return to({swiper:l,targetPosition:-c,side:m?"left":"top"}),!0;r.scrollTo({[m?"left":"top"]:-c,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(c),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(c),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(h){!l||l.destroyed||h.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var Zn={getTranslate:Yn,setTranslate:Xn,minTranslate:Jn,maxTranslate:qn,translateTo:Kn};function Qn(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function so(t){let{swiper:e,runCallbacks:i,direction:o,step:a}=t;const{activeIndex:l,previousIndex:s}=e;let r=o;if(r||(l>s?r="next":l<s?r="prev":r="reset"),e.emit(`transition${a}`),i&&l!==s){if(r==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),r==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function $n(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),so({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function el(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),so({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var tl={setTransition:Qn,transitionStart:$n,transitionEnd:el};function il(t,e,i,o,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let s=t;s<0&&(s=0);const{params:r,snapGrid:d,slidesGrid:v,previousIndex:c,activeIndex:m,rtlTranslate:h,wrapperEl:f,enabled:y}=l;if(!y&&!o&&!a||l.destroyed||l.animating&&r.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const S=Math.min(l.params.slidesPerGroupSkip,s);let x=S+Math.floor((s-S)/l.params.slidesPerGroup);x>=d.length&&(x=d.length-1);const p=-d[x];if(r.normalizeSlideIndex)for(let b=0;b<v.length;b+=1){const T=-Math.floor(p*100),k=Math.floor(v[b]*100),g=Math.floor(v[b+1]*100);typeof v[b+1]<"u"?T>=k&&T<g-(g-k)/2?s=b:T>=k&&T<g&&(s=b+1):T>=k&&(s=b)}if(l.initialized&&s!==m&&(!l.allowSlideNext&&(h?p>l.translate&&p>l.minTranslate():p<l.translate&&p<l.minTranslate())||!l.allowSlidePrev&&p>l.translate&&p>l.maxTranslate()&&(m||0)!==s))return!1;s!==(c||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(p);let w;if(s>m?w="next":s<m?w="prev":w="reset",h&&-p===l.translate||!h&&p===l.translate)return l.updateActiveIndex(s),r.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),r.effect!=="slide"&&l.setTranslate(p),w!=="reset"&&(l.transitionStart(i,w),l.transitionEnd(i,w)),!1;if(r.cssMode){const b=l.isHorizontal(),T=h?p:-p;if(e===0){const k=l.virtual&&l.params.virtual.enabled;k&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),k&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[b?"scrollLeft":"scrollTop"]=T})):f[b?"scrollLeft":"scrollTop"]=T,k&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return to({swiper:l,targetPosition:T,side:b?"left":"top"}),!0;f.scrollTo({[b?"left":"top"]:T,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(p),l.updateActiveIndex(s),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,o),l.transitionStart(i,w),e===0?l.transitionEnd(i,w):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,w))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function ol(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const l=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let r;if(l){const h=s*a.params.grid.rows;r=a.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else r=a.getSlideIndexByData(s);const d=l?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:v}=a.params;let c=a.params.slidesPerView;c==="auto"?c=a.slidesPerViewDynamic():(c=Math.ceil(parseFloat(a.params.slidesPerView,10)),v&&c%2===0&&(c=c+1));let m=d-r<c;if(v&&(m=m||r<Math.ceil(c/2)),o&&v&&a.params.slidesPerView!=="auto"&&!l&&(m=!1),m){const h=v?r<a.activeIndex?"prev":"next":r-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?r+1:r-d+1,slideRealIndex:h==="next"?a.realIndex:void 0})}if(l){const h=s*a.params.grid.rows;s=a.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,o)}),a}function nl(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:a,params:l,animating:s}=o;if(!a||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let r=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(r=Math.max(o.slidesPerViewDynamic("current",!0),1));const d=o.activeIndex<l.slidesPerGroupSkip?1:r,v=o.virtual&&l.virtual.enabled;if(l.loop){if(s&&!v&&l.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+d,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+d,t,e,i)}function ll(t,e,i){e===void 0&&(e=!0);const o=this,{params:a,snapGrid:l,slidesGrid:s,rtlTranslate:r,enabled:d,animating:v}=o;if(!d||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const c=o.virtual&&a.virtual.enabled;if(a.loop){if(v&&!c&&a.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const m=r?o.translate:-o.translate;function h(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const f=h(m),y=l.map(p=>h(p));let S=l[y.indexOf(f)-1];if(typeof S>"u"&&a.cssMode){let p;l.forEach((w,b)=>{f>=w&&(p=b)}),typeof p<"u"&&(S=l[p>0?p-1:p])}let x=0;if(typeof S<"u"&&(x=s.indexOf(S),x<0&&(x=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(x=x-o.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),a.rewind&&o.isBeginning){const p=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(p,t,e,i)}else if(a.loop&&o.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{o.slideTo(x,t,e,i)}),!0;return o.slideTo(x,t,e,i)}function al(t,e,i){e===void 0&&(e=!0);const o=this;if(!o.destroyed)return typeof t>"u"&&(t=o.params.speed),o.slideTo(o.activeIndex,t,e,i)}function sl(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let l=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,l),r=s+Math.floor((l-s)/a.params.slidesPerGroup),d=a.rtlTranslate?a.translate:-a.translate;if(d>=a.snapGrid[r]){const v=a.snapGrid[r],c=a.snapGrid[r+1];d-v>(c-v)*o&&(l+=a.params.slidesPerGroup)}else{const v=a.snapGrid[r-1],c=a.snapGrid[r];d-v<=(c-v)*o&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,t,e,i)}function rl(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,l;const s=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?a<t.loopedSlides-o/2||a>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),a=t.getSlideIndex(xt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),Rt(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-o?(t.loopFix(),a=t.getSlideIndex(xt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),Rt(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var dl={slideTo:il,slideToLoop:ol,slideNext:nl,slidePrev:ll,slideReset:al,slideToClosest:sl,slideToClickedSlide:rl};function cl(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{xt(o,`.${i.slideClass}, swiper-slide`).forEach((m,h)=>{m.setAttribute("data-swiper-slide-index",h)})},l=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(l?i.grid.rows:1),r=e.slides.length%s!==0,d=l&&e.slides.length%i.grid.rows!==0,v=c=>{for(let m=0;m<c;m+=1){const h=e.isElement?jt("swiper-slide",[i.slideBlankClass]):jt("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(r){if(i.loopAddBlankSlides){const c=s-e.slides.length%s;v(c),e.recalcSlides(),e.updateSlides()}else Kt("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(d){if(i.loopAddBlankSlides){const c=i.grid.rows-e.slides.length%i.grid.rows;v(c),e.recalcSlides(),e.updateSlides()}else Kt("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function ul(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:a,activeSlideIndex:l,byController:s,byMousewheel:r}=t===void 0?{}:t;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:v,allowSlidePrev:c,allowSlideNext:m,slidesEl:h,params:f}=d,{centeredSlides:y}=f;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&f.virtual.enabled){i&&(!f.centeredSlides&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):f.centeredSlides&&d.snapIndex<f.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=c,d.allowSlideNext=m,d.emit("loopFix");return}let S=f.slidesPerView;S==="auto"?S=d.slidesPerViewDynamic():(S=Math.ceil(parseFloat(f.slidesPerView,10)),y&&S%2===0&&(S=S+1));const x=f.slidesPerGroupAuto?S:f.slidesPerGroup;let p=x;p%x!==0&&(p+=x-p%x),p+=f.loopAdditionalSlides,d.loopedSlides=p;const w=d.grid&&f.grid&&f.grid.rows>1;v.length<S+p?Kt("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):w&&f.grid.fill==="row"&&Kt("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],T=[];let k=d.activeIndex;typeof l>"u"?l=d.getSlideIndex(v.filter(E=>E.classList.contains(f.slideActiveClass))[0]):k=l;const g=o==="next"||!o,O=o==="prev"||!o;let P=0,A=0;const u=w?Math.ceil(v.length/f.grid.rows):v.length,C=(w?v[l].column:l)+(y&&typeof a>"u"?-S/2+.5:0);if(C<p){P=Math.max(p-C,x);for(let E=0;E<p-C;E+=1){const I=E-Math.floor(E/u)*u;if(w){const R=u-I-1;for(let N=v.length-1;N>=0;N-=1)v[N].column===R&&b.push(N)}else b.push(u-I-1)}}else if(C+S>u-p){A=Math.max(C-(u-p*2),x);for(let E=0;E<A;E+=1){const I=E-Math.floor(E/u)*u;w?v.forEach((R,N)=>{R.column===I&&T.push(N)}):T.push(I)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),O&&b.forEach(E=>{v[E].swiperLoopMoveDOM=!0,h.prepend(v[E]),v[E].swiperLoopMoveDOM=!1}),g&&T.forEach(E=>{v[E].swiperLoopMoveDOM=!0,h.append(v[E]),v[E].swiperLoopMoveDOM=!1}),d.recalcSlides(),f.slidesPerView==="auto"?d.updateSlides():w&&(b.length>0&&O||T.length>0&&g)&&d.slides.forEach((E,I)=>{d.grid.updateSlide(I,E,d.slides)}),f.watchSlidesProgress&&d.updateSlidesOffset(),i){if(b.length>0&&O){if(typeof e>"u"){const E=d.slidesGrid[k],R=d.slidesGrid[k+P]-E;r?d.setTranslate(d.translate-R):(d.slideTo(k+Math.ceil(P),0,!1,!0),a&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-R,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-R))}else if(a){const E=w?b.length/f.grid.rows:b.length;d.slideTo(d.activeIndex+E,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(T.length>0&&g)if(typeof e>"u"){const E=d.slidesGrid[k],R=d.slidesGrid[k-A]-E;r?d.setTranslate(d.translate-R):(d.slideTo(k-A,0,!1,!0),a&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-R,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-R))}else{const E=w?T.length/f.grid.rows:T.length;d.slideTo(d.activeIndex-E,0,!1,!0)}}if(d.allowSlidePrev=c,d.allowSlideNext=m,d.controller&&d.controller.control&&!s){const E={slideRealIndex:e,direction:o,setTranslate:a,activeSlideIndex:l,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(I=>{!I.destroyed&&I.params.loop&&I.loopFix({...E,slideTo:I.params.slidesPerView===f.slidesPerView?i:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...E,slideTo:d.controller.control.params.slidesPerView===f.slidesPerView?i:!1})}d.emit("loopFix")}function vl(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const o=[];t.slides.forEach(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[l]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var pl={loopCreate:cl,loopFix:ul,loopDestroy:vl};function ml(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 fl(){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 hl={setGrabCursor:ml,unsetGrabCursor:fl};function gl(t,e){e===void 0&&(e=this);function i(o){if(!o||o===bt()||o===et())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(t);return!a&&!o.getRootNode?null:a||i(o.getRootNode().host)}return i(e)}function ro(t,e,i){const o=et(),{params:a}=t,l=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return l&&(i<=s||i>=o.innerWidth-s)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function bl(t){const e=this,i=bt();let o=t;o.originalEvent&&(o=o.originalEvent);const a=e.touchEventsData;if(o.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(a.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){ro(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:s,enabled:r}=e;if(!r||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let d=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(d)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const v=!!l.noSwipingClass&&l.noSwipingClass!=="",c=o.composedPath?o.composedPath():o.path;v&&o.target&&o.target.shadowRoot&&c&&(d=c[0]);const m=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,h=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(h?gl(m,d):d.closest(m))){e.allowClick=!0;return}if(l.swipeHandler&&!d.closest(l.swipeHandler))return;s.currentX=o.pageX,s.currentY=o.pageY;const f=s.currentX,y=s.currentY;if(!ro(e,o,f))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=f,s.startY=y,a.touchStartTime=ut(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let S=!0;d.matches(a.focusableElements)&&(S=!1,d.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==d&&i.activeElement.blur();const x=S&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||x)&&!d.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function yl(t){const e=bt(),i=this,o=i.touchEventsData,{params:a,touches:l,rtlTranslate:s,enabled:r}=i;if(!r||!a.simulateTouch&&t.pointerType==="mouse")return;let d=t;if(d.originalEvent&&(d=d.originalEvent),d.type==="pointermove"&&(o.touchId!==null||d.pointerId!==o.pointerId))return;let v;if(d.type==="touchmove"){if(v=[...d.changedTouches].filter(g=>g.identifier===o.touchId)[0],!v||v.identifier!==o.touchId)return}else v=d;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",d);return}const c=v.pageX,m=v.pageY;if(d.preventedByNestedSwiper){l.startX=c,l.startY=m;return}if(!i.allowTouchMove){d.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:c,startY:m,currentX:c,currentY:m}),o.touchStartTime=ut());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(m<l.startY&&i.translate<=i.maxTranslate()||m>l.startY&&i.translate>=i.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(c<l.startX&&i.translate<=i.maxTranslate()||c>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&d.target===e.activeElement&&d.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",d),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=c,l.currentY=m;const h=l.currentX-l.startX,f=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(h**2+f**2)<i.params.threshold)return;if(typeof o.isScrolling>"u"){let g;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?o.isScrolling=!1:h*h+f*f>=25&&(g=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI,o.isScrolling=i.isHorizontal()?g>a.touchAngle:90-g>a.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",d),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||d.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!a.cssMode&&d.cancelable&&d.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&d.stopPropagation();let y=i.isHorizontal()?h:f,S=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(y=Math.abs(y)*(s?1:-1),S=Math.abs(S)*(s?1:-1)),l.diff=y,y*=a.touchRatio,s&&(y=-y,S=-S);const x=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=S>0?"prev":"next";const p=i.params.loop&&!a.cssMode,w=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!o.isMoved){if(p&&w&&i.loopFix({direction:i.swipeDirection}),o.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const g=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(g)}o.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",d)}let b;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&x!==i.touchesDirection&&p&&w&&Math.abs(y)>=1){Object.assign(l,{startX:c,startY:m,currentX:c,currentY:m,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",d),o.isMoved=!0,o.currentTranslate=y+o.startTranslate;let T=!0,k=a.resistanceRatio;if(a.touchReleaseOnEdges&&(k=0),y>0?(p&&w&&!b&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(T=!1,a.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+y)**k))):y<0&&(p&&w&&!b&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(T=!1,a.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-y)**k))),T&&(d.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(o.currentTranslate=o.startTranslate),a.threshold>0)if(Math.abs(y)>a.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,o.currentTranslate=o.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{o.currentTranslate=o.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function wl(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let a;if(o.type==="touchend"||o.type==="touchcancel"){if(a=[...o.changedTouches].filter(k=>k.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;a=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:r,rtlTranslate:d,slidesGrid:v,enabled:c}=e;if(!c||!s.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const m=ut(),h=m-i.touchStartTime;if(e.allowClick){const k=o.path||o.composedPath&&o.composedPath();e.updateClickedSlide(k&&k[0]||o.target,k),e.emit("tap click",o),h<300&&m-i.lastClickTime<300&&e.emit("doubleTap doubleClick",o)}if(i.lastClickTime=ut(),Rt(()=>{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 f;if(s.followFinger?f=d?e.translate:-e.translate:f=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}const y=f>=-e.maxTranslate()&&!e.params.loop;let S=0,x=e.slidesSizesGrid[0];for(let k=0;k<v.length;k+=k<s.slidesPerGroupSkip?1:s.slidesPerGroup){const g=k<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof v[k+g]<"u"?(y||f>=v[k]&&f<v[k+g])&&(S=k,x=v[k+g]-v[k]):(y||f>=v[k])&&(S=k,x=v[v.length-1]-v[v.length-2])}let p=null,w=null;s.rewind&&(e.isBeginning?w=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const b=(f-v[S])/x,T=S<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(h>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?p:S+T):e.slideTo(S)),e.swipeDirection==="prev"&&(b>1-s.longSwipesRatio?e.slideTo(S+T):w!==null&&b<0&&Math.abs(b)>s.longSwipesRatio?e.slideTo(w):e.slideTo(S))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(o.target===e.navigation.nextEl||o.target===e.navigation.prevEl)?o.target===e.navigation.nextEl?e.slideTo(S+T):e.slideTo(S):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:S+T),e.swipeDirection==="prev"&&e.slideTo(w!==null?w:S))}}function co(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:l}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const r=s&&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&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Sl(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function xl(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:o}=t;if(!o)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a;const l=t.maxTranslate()-t.minTranslate();l===0?a=0:a=(t.translate-t.minTranslate())/l,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Tl(t){const e=this;ei(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function El(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const uo=(t,e)=>{const i=bt(),{params:o,el:a,wrapperEl:l,device:s}=t,r=!!o.nested,d=e==="on"?"addEventListener":"removeEventListener",v=e;!a||typeof a=="string"||(i[d]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:r}),a[d]("touchstart",t.onTouchStart,{passive:!1}),a[d]("pointerdown",t.onTouchStart,{passive:!1}),i[d]("touchmove",t.onTouchMove,{passive:!1,capture:r}),i[d]("pointermove",t.onTouchMove,{passive:!1,capture:r}),i[d]("touchend",t.onTouchEnd,{passive:!0}),i[d]("pointerup",t.onTouchEnd,{passive:!0}),i[d]("pointercancel",t.onTouchEnd,{passive:!0}),i[d]("touchcancel",t.onTouchEnd,{passive:!0}),i[d]("pointerout",t.onTouchEnd,{passive:!0}),i[d]("pointerleave",t.onTouchEnd,{passive:!0}),i[d]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[d]("click",t.onClick,!0),o.cssMode&&l[d]("scroll",t.onScroll),o.updateOnWindowResize?t[v](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",co,!0):t[v]("observerUpdate",co,!0),a[d]("load",t.onLoad,{capture:!0}))};function Al(){const t=this,{params:e}=t;t.onTouchStart=bl.bind(t),t.onTouchMove=yl.bind(t),t.onTouchEnd=wl.bind(t),t.onDocumentTouchStart=El.bind(t),e.cssMode&&(t.onScroll=xl.bind(t)),t.onClick=Sl.bind(t),t.onLoad=Tl.bind(t),uo(t,"on")}function Cl(){uo(this,"off")}var Il={attachEvents:Al,detachEvents:Cl};const vo=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function kl(){const t=this,{realIndex:e,initialized:i,params:o,el:a}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const s=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const d=(s in l?l[s]:void 0)||t.originalParams,v=vo(t,o),c=vo(t,d),m=t.params.grabCursor,h=d.grabCursor,f=o.enabled;v&&!c?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!v&&c&&(a.classList.add(`${o.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),m&&!h?t.unsetGrabCursor():!m&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(b=>{if(typeof d[b]>"u")return;const T=o[b]&&o[b].enabled,k=d[b]&&d[b].enabled;T&&!k&&t[b].disable(),!T&&k&&t[b].enable()});const y=d.direction&&d.direction!==o.direction,S=o.loop&&(d.slidesPerView!==o.slidesPerView||y),x=o.loop;y&&i&&t.changeDirection(),rt(t.params,d);const p=t.params.enabled,w=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!p?t.disable():!f&&p&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",d),i&&(S?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&w?(t.loopCreate(e),t.updateSlides()):x&&!w&&t.loopDestroy()),t.emit("breakpoint",d)}function _l(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const a=et(),l=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(r=>{if(typeof r=="string"&&r.indexOf("@")===0){const d=parseFloat(r.substr(1));return{value:l*d,point:r}}return{value:r,point:r}});s.sort((r,d)=>parseInt(r.value,10)-parseInt(d.value,10));for(let r=0;r<s.length;r+=1){const{point:d,value:v}=s[r];e==="window"?a.matchMedia(`(min-width: ${v}px)`).matches&&(o=d):v<=i.clientWidth&&(o=d)}return o||"max"}var Pl={setBreakpoint:kl,getBreakpoint:_l};function Dl(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&i.push(e+a)}):typeof o=="string"&&i.push(e+o)}),i}function Ml(){const t=this,{classNames:e,params:i,rtl:o,el:a,device:l}=t,s=Dl(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:o},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...s),a.classList.add(...e),t.emitContainerClasses()}function Ol(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Rl={addClasses:Ml,removeClasses:Ol};function Ll(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const a=t.slides.length-1,l=t.slidesGrid[a]+t.slidesSizesGrid[a]+o*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 Bl={checkOverflow:Ll},wi={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 Nl(t,e){return function(o){o===void 0&&(o={});const a=Object.keys(o)[0],l=o[a];if(typeof l!="object"||l===null){rt(e,o);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in l)){rt(e,o);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),rt(e,o)}}const Si={eventsEmitter:Rn,update:Wn,translate:Zn,transition:tl,slide:dl,loop:pl,grabCursor:hl,events:Il,breakpoints:Pl,checkOverflow:Bl,classes:Rl},xi={};let Ti=class _t{constructor(){let e,i;for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=rt({},i),e&&!i.el&&(i.el=e);const s=bt();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const c=[];return s.querySelectorAll(i.el).forEach(m=>{const h=rt({},i,{el:m});c.push(new _t(h))}),c}const r=this;r.__swiper__=!0,r.support=no(),r.device=lo({userAgent:i.userAgent}),r.browser=Dn(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],i.modules&&Array.isArray(i.modules)&&r.modules.push(...i.modules);const d={};r.modules.forEach(c=>{c({params:i,swiper:r,extendParams:Nl(i,d),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const v=rt({},wi,d);return r.params=rt({},v,xi,i),r.originalParams=rt({},r.params),r.passedParams=rt({},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:o}=this,a=xt(i,`.${o.slideClass}, swiper-slide`),l=Zt(a[0]);return Zt(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:o}=e;e.slides=xt(i,`.${o.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const o=this;e=Math.min(Math.max(e,0),1);const a=o.minTranslate(),s=(o.maxTranslate()-a)*e+a;o.translateTo(s,typeof i>"u"?0:i),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(o=>{const a=e.getSlideClasses(o);i.push({slideEl:o,classNames:a}),e.emit("_slideClass",o,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:a,slides:l,slidesGrid:s,slidesSizesGrid:r,size:d,activeIndex:v}=o;let c=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let m=l[v]?Math.ceil(l[v].swiperSlideSize):0,h;for(let f=v+1;f<l.length;f+=1)l[f]&&!h&&(m+=Math.ceil(l[f].swiperSlideSize),c+=1,m>d&&(h=!0));for(let f=v-1;f>=0;f-=1)l[f]&&!h&&(m+=l[f].swiperSlideSize,c+=1,m>d&&(h=!0))}else if(e==="current")for(let m=v+1;m<l.length;m+=1)(i?s[m]+r[m]-s[v]<d:s[m]-s[v]<d)&&(c+=1);else for(let m=v-1;m>=0;m-=1)s[v]-s[m]<d&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:o}=e;o.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&ei(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,r=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const s=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(s.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||a()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,a=o.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),o.emit("changeDirection"),i&&o.update()),o}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let o=e||i.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=i,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):xt(o,a())[0];return!s&&i.params.createElements&&(s=jt("div",i.params.wrapperClass),o.append(s),xt(o,`.${i.params.slideClass}`).forEach(r=>{s.append(r)})),Object.assign(i,{el:o,wrapperEl:s,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:s,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||Dt(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||Dt(o,"direction")==="rtl"),wrongRTL:Dt(s,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(l=>{l.complete?ei(i,l):l.addEventListener("load",s=>{ei(i,s.target)})}),yi(i),i.initialized=!0,yi(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const o=this,{params:a,el:l,wrapperEl:s,slides:r}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),s&&s.removeAttribute("style"),r&&r.length&&r.forEach(d=>{d.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(d=>{o.off(d)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),bn(o)),o.destroyed=!0),null}static extendDefaults(e){rt(xi,e)}static get extendedDefaults(){return xi}static get defaults(){return wi}static installModule(e){_t.prototype.__modules__||(_t.prototype.__modules__=[]);const i=_t.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>_t.installModule(i)),_t):(_t.installModule(e),_t)}};Object.keys(Si).forEach(t=>{Object.keys(Si[t]).forEach(e=>{Ti.prototype[e]=Si[t][e]})}),Ti.use([Mn,On]);const po=["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 Mt(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Bt(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>i.indexOf(o)<0).forEach(o=>{typeof t[o]>"u"?t[o]=e[o]:Mt(e[o])&&Mt(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:Bt(t[o],e[o]):t[o]=e[o]})}function mo(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function fo(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function ho(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function go(t){t===void 0&&(t="");const e=t.split(" ").map(o=>o.trim()).filter(o=>!!o),i=[];return e.forEach(o=>{i.indexOf(o)<0&&i.push(o)}),i.join(" ")}function Fl(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function jl(t){let{swiper:e,slides:i,passedParams:o,changedParams:a,nextEl:l,prevEl:s,scrollbarEl:r,paginationEl:d}=t;const v=a.filter(A=>A!=="children"&&A!=="direction"&&A!=="wrapperClass"),{params:c,pagination:m,navigation:h,scrollbar:f,virtual:y,thumbs:S}=e;let x,p,w,b,T,k,g,O;a.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(x=!0),a.includes("controller")&&o.controller&&o.controller.control&&c.controller&&!c.controller.control&&(p=!0),a.includes("pagination")&&o.pagination&&(o.pagination.el||d)&&(c.pagination||c.pagination===!1)&&m&&!m.el&&(w=!0),a.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||r)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(b=!0),a.includes("navigation")&&o.navigation&&(o.navigation.prevEl||s)&&(o.navigation.nextEl||l)&&(c.navigation||c.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(T=!0);const P=A=>{e[A]&&(e[A].destroy(),A==="navigation"?(e.isElement&&(e[A].prevEl.remove(),e[A].nextEl.remove()),c[A].prevEl=void 0,c[A].nextEl=void 0,e[A].prevEl=void 0,e[A].nextEl=void 0):(e.isElement&&e[A].el.remove(),c[A].el=void 0,e[A].el=void 0))};a.includes("loop")&&e.isElement&&(c.loop&&!o.loop?k=!0:!c.loop&&o.loop?g=!0:O=!0),v.forEach(A=>{if(Mt(c[A])&&Mt(o[A]))Object.assign(c[A],o[A]),(A==="navigation"||A==="pagination"||A==="scrollbar")&&"enabled"in o[A]&&!o[A].enabled&&P(A);else{const u=o[A];(u===!0||u===!1)&&(A==="navigation"||A==="pagination"||A==="scrollbar")?u===!1&&P(A):c[A]=o[A]}}),v.includes("controller")&&!p&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),a.includes("children")&&i&&y&&c.virtual.enabled?(y.slides=i,y.update(!0)):a.includes("virtual")&&y&&c.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),a.includes("children")&&i&&c.loop&&(O=!0),x&&S.init()&&S.update(!0),p&&(e.controller.control=c.controller.control),w&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-pagination"),d.part.add("pagination"),e.el.appendChild(d)),d&&(c.pagination.el=d),m.init(),m.render(),m.update()),b&&(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),f.init(),f.updateSize(),f.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)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),l&&(c.navigation.nextEl=l),s&&(c.navigation.prevEl=s),h.init(),h.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),a.includes("direction")&&e.changeDirection(o.direction,!1),(k||O)&&e.loopDestroy(),(g||O)&&e.loopCreate(),e.update()}function Vl(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},a={};Bt(i,wi),i._emitClasses=!0,i.init=!1;const l={},s=po.map(d=>d.replace(/_/,"")),r=Object.assign({},t);return Object.keys(r).forEach(d=>{typeof t[d]>"u"||(s.indexOf(d)>=0?Mt(t[d])?(i[d]={},a[d]={},Bt(i[d],t[d]),Bt(a[d],t[d])):(i[d]=t[d],a[d]=t[d]):d.search(/on[A-Z]/)===0&&typeof t[d]=="function"?e?o[`${d[2].toLowerCase()}${d.substr(3)}`]=t[d]:i.on[`${d[2].toLowerCase()}${d.substr(3)}`]=t[d]:l[d]=t[d])}),["navigation","pagination","scrollbar"].forEach(d=>{i[d]===!0&&(i[d]={}),i[d]===!1&&delete i[d]}),{params:i,passedParams:a,rest:l,events:o}}function zl(t,e){let{el:i,nextEl:o,prevEl:a,paginationEl:l,scrollbarEl:s,swiper:r}=t;mo(e)&&o&&a&&(r.params.navigation.nextEl=o,r.originalParams.navigation.nextEl=o,r.params.navigation.prevEl=a,r.originalParams.navigation.prevEl=a),fo(e)&&l&&(r.params.pagination.el=l,r.originalParams.pagination.el=l),ho(e)&&s&&(r.params.scrollbar.el=s,r.originalParams.scrollbar.el=s),r.init(i)}function Hl(t,e,i,o,a){const l=[];if(!e)return l;const s=d=>{l.indexOf(d)<0&&l.push(d)};if(i&&o){const d=o.map(a),v=i.map(a);d.join("")!==v.join("")&&s("children"),o.length!==i.length&&s("children")}return po.filter(d=>d[0]==="_").map(d=>d.replace(/_/,"")).forEach(d=>{if(d in t&&d in e)if(Mt(t[d])&&Mt(e[d])){const v=Object.keys(t[d]),c=Object.keys(e[d]);v.length!==c.length?s(d):(v.forEach(m=>{t[d][m]!==e[d][m]&&s(d)}),c.forEach(m=>{t[d][m]!==e[d][m]&&s(d)}))}else t[d]!==e[d]&&s(d)}),l}const Gl=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 ti(){return ti=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},ti.apply(this,arguments)}function bo(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function yo(t){const e=[];return n.Children.toArray(t).forEach(i=>{bo(i)?e.push(i):i.props&&i.props.children&&yo(i.props.children).forEach(o=>e.push(o))}),e}function Ul(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(o=>{if(bo(o))e.push(o);else if(o.props&&o.props.slot&&i[o.props.slot])i[o.props.slot].push(o);else if(o.props&&o.props.children){const a=yo(o.props.children);a.length>0?a.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function Wl(t,e,i){if(!i)return null;const o=c=>{let m=c;return c<0?m=e.length+c:m>=e.length&&(m=m-e.length),m},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:s}=i,r=t.params.loop?-e.length:0,d=t.params.loop?e.length*2:e.length,v=[];for(let c=r;c<d;c+=1)c>=l&&c<=s&&v.push(e[o(c)]);return v.map((c,m)=>n.cloneElement(c,{swiper:t,style:a,key:c.props.virtualIndex||c.key||`slide-${m}`}))}function Vt(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const Ei=n.createContext(null),wo=()=>n.useContext(Ei),Yl=n.createContext(null),Ot=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:a="div",children:l,onSwiper:s,...r}=t===void 0?{}:t,d=!1;const[v,c]=n.useState("swiper"),[m,h]=n.useState(null),[f,y]=n.useState(!1),S=n.useRef(!1),x=n.useRef(null),p=n.useRef(null),w=n.useRef(null),b=n.useRef(null),T=n.useRef(null),k=n.useRef(null),g=n.useRef(null),O=n.useRef(null),{params:P,passedParams:A,rest:u,events:M}=Vl(r),{slides:C,slots:E}=Ul(l),I=()=>{y(!f)};Object.assign(P.on,{_containerClasses(L,_){c(_)}});const R=()=>{Object.assign(P.on,M),d=!0;const L={...P};if(delete L.wrapperClass,p.current=new Ti(L),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=C;const _={cache:!1,slides:C,renderExternal:h,renderExternalUpdate:!1};Bt(p.current.params.virtual,_),Bt(p.current.originalParams.virtual,_)}};x.current||R(),p.current&&p.current.on("_beforeBreakpoint",I);const N=()=>{d||!M||!p.current||Object.keys(M).forEach(L=>{p.current.on(L,M[L])})},F=()=>{!M||!p.current||Object.keys(M).forEach(L=>{p.current.off(L,M[L])})};n.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",I)}),n.useEffect(()=>{!S.current&&p.current&&(p.current.emitSlidesClasses(),S.current=!0)}),Vt(()=>{if(e&&(e.current=x.current),!!x.current)return p.current.destroyed&&R(),zl({el:x.current,nextEl:T.current,prevEl:k.current,paginationEl:g.current,scrollbarEl:O.current,swiper:p.current},P),s&&!p.current.destroyed&&s(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),Vt(()=>{N();const L=Hl(A,w.current,C,b.current,_=>_.key);return w.current=A,b.current=C,L.length&&p.current&&!p.current.destroyed&&jl({swiper:p.current,slides:C,passedParams:A,changedParams:L,nextEl:T.current,prevEl:k.current,scrollbarEl:O.current,paginationEl:g.current}),()=>{F()}}),Vt(()=>{Gl(p.current)},[m]);function V(){return P.virtual?Wl(p.current,C,m):C.map((L,_)=>n.cloneElement(L,{swiper:p.current,swiperSlideIndex:_}))}return n.createElement(o,ti({ref:x,className:go(`${v}${i?` ${i}`:""}`)},u),n.createElement(Yl.Provider,{value:p.current},E["container-start"],n.createElement(a,{className:Fl(P.wrapperClass)},E["wrapper-start"],V(),E["wrapper-end"]),mo(P)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:k,className:"swiper-button-prev"}),n.createElement("div",{ref:T,className:"swiper-button-next"})),ho(P)&&n.createElement("div",{ref:O,className:"swiper-scrollbar"}),fo(P)&&n.createElement("div",{ref:g,className:"swiper-pagination"}),E["container-end"]))});Ot.displayName="Swiper";const yt=n.forwardRef(function(t,e){let{tag:i="div",children:o,className:a="",swiper:l,zoom:s,lazy:r,virtualIndex:d,swiperSlideIndex:v,...c}=t===void 0?{}:t;const m=n.useRef(null),[h,f]=n.useState("swiper-slide"),[y,S]=n.useState(!1);function x(T,k,g){k===m.current&&f(g)}Vt(()=>{if(typeof v<"u"&&(m.current.swiperSlideIndex=v),e&&(e.current=m.current),!(!m.current||!l)){if(l.destroyed){h!=="swiper-slide"&&f("swiper-slide");return}return l.on("_slideClass",x),()=>{l&&l.off("_slideClass",x)}}}),Vt(()=>{l&&m.current&&!l.destroyed&&f(l.getSlideClasses(m.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},w=()=>typeof o=="function"?o(p):o,b=()=>{S(!0)};return n.createElement(i,ti({ref:m,className:go(`${h}${a?` ${a}`:""}`),"data-swiper-slide-index":d,onLoad:b},c),s&&n.createElement(Ei.Provider,{value:p},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},w(),r&&!y&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&n.createElement(Ei.Provider,{value:p},w(),r&&!y&&n.createElement("div",{className:"swiper-lazy-preloader"})))});yt.displayName="SwiperSlide";const Xl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Jl=({visible:t,onClose:e,children:i,modalStyle:o,padding:a,popup:l,schema:s,fullHeight:r=window.innerHeight,isFullScreen:d=!1})=>{var v,c,m,h,f,y,S,x,p,w,b,T,k,g,O,P,A,u,M,C,E,I,R,N;const F=n.useRef(null),V=n.useRef(null),L=n.useRef(null),_=n.useRef(null),B=r*.2,W=d?r:r*.8,[U,X]=n.useState(B),[ne,te]=n.useState(!1),re=n.useRef(null),{globalConfig:ke,popupDetailData:ue}=_e(),{schema:Q}=ht(),[K,$]=n.useState(15);n.useEffect(()=>{const ve=document.getElementById("sxp-render"),ye=document.getElementById("pb-modal");ye?re.current=ye:(re.current=document.createElement("div"),re.current.setAttribute("id","pb-modal"),ve?.appendChild(re.current))},[]);const Z=n.useMemo(()=>l?.id&&l?.id!==""||t,[t,l]),ae=n.useMemo(()=>{var ve,ye,Ae;const J=s??Q;return(Ae=(ye=(ve=J?.sxpPageConf)===null||ve===void 0?void 0:ve.globalConfig)===null||ye===void 0?void 0:ye.popupList)===null||Ae===void 0?void 0:Ae.find(q=>q?.id===l?.id)},[l,s,Q]),we=n.useMemo(()=>{var ve,ye;return((ye=(ve=ae?.item)===null||ve===void 0?void 0:ve.event)===null||ye===void 0?void 0:ye.isScrollFullScreen)||!1},[ae]);if(n.useEffect(()=>{Z?te(!0):setTimeout(()=>{te(!1),X(B)},l?.duration)},[Z,l]),!re.current)return null;const be=Xe.debounce(()=>{e?.()},300),De=ve=>{F.current=ve.touches[0],V.current=ve.touches[0],L.current=!0},Ee=ve=>{requestAnimationFrame(()=>{var ye;if(L.current&&((ye=_?.current)===null||ye===void 0?void 0:ye.scrollTop)===0){const Ae=ve.touches[0].clientY,J=ve.touches[0].clientX,de=F.current.clientY-Ae;F.current=ve.touches[0];const q=Ae-V.current.clientY,ce=J-V.current.clientX;if(Math.abs(ce)>Math.abs(q))return;const Oe=U-de;Oe>0&&X(Oe)}})},je=ve=>{var ye;if(L.current&&((ye=_?.current)===null||ye===void 0?void 0:ye.scrollTop)===0){const Ae=ve.changedTouches[0].clientY-V.current.clientY,J=ve.changedTouches[0].clientX-V.current.clientX;if(Math.abs(J)>Math.abs(Ae))return;const de=V.current.clientY-F.current.clientY;de>0?X(0):U<B&&de<0?X(B):U>=B&&de<0&&e?.()}L.current=!1};return Mi.createPortal(n.createElement(n.Fragment,null,ne&&n.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Z?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},o),onClick:be},n.createElement("div",{style:{position:"relative",left:`${(h=(m=(c=(v=ae?.item)===null||v===void 0?void 0:v.props)===null||c===void 0?void 0:c.popupBg)===null||m===void 0?void 0:m.horizontalMargin)!==null&&h!==void 0?h:0}px`,right:`${(x=(S=(y=(f=ae?.item)===null||f===void 0?void 0:f.props)===null||y===void 0?void 0:y.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&x!==void 0?x:0}px`,bottom:`${(T=(b=(w=(p=ae?.item)===null||p===void 0?void 0:p.props)===null||w===void 0?void 0:w.popupBg)===null||b===void 0?void 0:b.bottomMargin)!==null&&T!==void 0?T:0}px`,overflow:"hidden",width:`calc(100% - ${((P=(O=(g=(k=ae?.item)===null||k===void 0?void 0:k.props)===null||g===void 0?void 0:g.popupBg)===null||O===void 0?void 0:O.horizontalMargin)!==null&&P!==void 0?P:0)*2}px)`,height:"100%"}},n.createElement("div",Object.assign({className:`modal-container ${Z?"modal-popIn":"modal-popOut"}`,style:Object.assign(Object.assign({padding:a,animationDuration:((A=l?.duration)!==null&&A!==void 0?A:0)/1e3+"s"},we&&{transform:`translateY(${U}px)`}),{overflow:"hidden",borderRadius:`${(E=(C=(M=(u=ae?.item)===null||u===void 0?void 0:u.props)===null||M===void 0?void 0:M.popupBg)===null||C===void 0?void 0:C.borderRadius)!==null&&E!==void 0?E:0}px`}),onClick:ve=>{ve.stopPropagation(),ve.preventDefault()}},we&&{onTouchMove:Ee,onTouchStart:De,onTouchEnd:je}),n.createElement("div",{className:"modal-icon-wrapper",onClick:e,style:{top:K}},n.createElement("img",{src:(I=ke?.popupCloseIcon)!==null&&I!==void 0?I:Xl,alt:"close",className:"modal-icon"})),n.createElement("div",Object.assign({ref:_,style:{height:we?r:W,overflow:we&&U<=0||!we?"auto":"hidden"}},((N=(R=ae?.item)===null||R===void 0?void 0:R.props)===null||N===void 0?void 0:N.enableFixedCloseButton)&&{onScroll:ve=>{var ye;$(15-((ye=ve?.target)===null||ye===void 0?void 0:ye.scrollTop))}}),i))))),re.current)};var Nt=n.memo(Jl);const ql=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const o=t.split(" "),a=[];for(let s=0;s<o.length&&(a.push(o[s]),!(a.join(" ").length>=e));s++);return(a.length>1&&a.length<o.length?a.slice(0,a.length-1):a).join(" ")+" "},Kl=({text:t,maxStr:e=108,style:i,className:o,onClick:a,foldText:l,unfoldText:s,isPost:r,onChange:d})=>{const[v,c]=n.useState(!1),[m,h]=n.useState(!1),f=Number(i?.lineClamp||2),y=n.useRef(null),S=n.useRef(null),x=n.useCallback(()=>{c(!v)},[v,d]);return n.useMemo(()=>!v&&t.length>e?ql(t,e)+"...":t,[t,e,v]),n.useEffect(()=>{var p,w;((p=S?.current)===null||p===void 0?void 0:p.offsetHeight)>((w=y?.current)===null||w===void 0?void 0:w.offsetHeight)&&r?h(!0):h(!1),S.current.style.display="none"},[r]),n.createElement("div",{className:o,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},n.createElement("div",{ref:y,style:{overflow:"hidden",WebkitLineClamp:!r||v?"":f,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:he(t?.replace(/\n/g,"</br>"),i)}}),n.createElement("div",{ref:S,dangerouslySetInnerHTML:{__html:he(t?.replace(/\n/g,"</br>"),i)}}),t&&r&&m&&n.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:a??x,dangerouslySetInnerHTML:{__html:he(v?s||"show less":l||"show more",i)}}))};var ii=n.memo(Kl);const Zl=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:a,className:l,loading:s,alt:r="image"}=t,[d,v]=n.useState(i),c=n.useRef(null),[m,h]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:f=>{f&&v(f)}})),n.useEffect(()=>{i&&v(i)},[i]),n.useEffect(()=>{const f=()=>{i&&!m&&c.current&&(c.current.src="",c.current.src=i)};return gt.on(st.PAGE_DID_SHOW,f),()=>{gt.off(st.PAGE_DID_SHOW,f)}},[i,m]),n.createElement(n.Fragment,null,!m&&!d&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),d?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:d}),n.createElement("source",{type:"image/webp",srcSet:`${d}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${d}?imageMogr2/format/jpg`}),n.createElement("img",{ref:c,className:l,src:d,style:Object.assign({},a),loading:s,onLoad:f=>{h(!0),o?.(f.target)},alt:r})):n.createElement("img",{ref:c,className:l,src:d,style:Object.assign({},a),loading:s,onLoad:f=>{h(!0),o?.(f.target)},alt:r}))});var nt=n.memo(Zl);const Ql=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const a=n.useRef(),{popupDetailData:l}=_e();return n.useEffect(()=>{var s,r;o&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((r=l?.multiCheckIndex)!==null&&r!==void 0?r:0))},[l,o]),n.createElement(Ot,{ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[In,Cn,An],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var zt=n.memo(Ql);const $l=({products:t,data:e,defImg:i,style:o,onCLick:a,popupDetailData:l,check:s})=>{var r;const{productView:d}=Ke(),{popupCurTimeRef:v}=_e(),c=(m,h)=>{if(s===h)return;const f=t?.[s];d(l,f,f?.bindCta,v.current,l?.index),a?.(h)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&n.createElement(zt,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(r=l?t:[0,1,2,3])===null||r===void 0?void 0:r.map((m,h)=>{var f,y,S;return n.createElement(n.Fragment,null,m?.bindCta?n.createElement(yt,{className:Se.css({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{c(m,h)},key:h},n.createElement(nt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(S=(f=m?.cover)!==null&&f!==void 0?f:(y=m?.homePage)===null||y===void 0?void 0:y[0])!==null&&S!==void 0?S:i})):null)})))};var So=n.memo($l);const ea=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:o,file:a,src:l}=t;switch(i){case 2:return o||null;case 3:return l||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},Ht=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:o})=>{var a,l,s,r,d;if((!t?.currency||!t?.price)&&o)return null;let v=t?.currency&&t?.price?t?.price:7e3,c="",m=i?.priceSymbol,h=t?.currency?(s=(l=(a=t?.currency)===null||a===void 0?void 0:a.split("-")[1])===null||l===void 0?void 0:l.toUpperCase())!==null&&s!==void 0?s:"":"$";const f=e===void 0||e;let y=v.toString();m?.showTwoDecimalPoint&&(y=v?.toFixed(2));let S=(r=y?.indexOf("."))!==null&&r!==void 0?r:-1;if(f){c=(d=v?.toLocaleString("zh",{minimumFractionDigits:m?.showTwoDecimalPoint?2:0}))!==null&&d!==void 0?d:"";let x=0,p=S??c?.length;m?.millesimalSymbol==="."?c=c?.replace(/\,/g,function(w,b){return b>=x&&b<p?".":w}):m?.millesimalSymbol===" "&&(c=c?.replace(","," "))}else c=`${m?.showTwoDecimalPoint?v?.toFixed(2):v}`;return m?.decimalPoint===","&&S>0&&(c=c=c?.replace(/\./g,function(x,p){return p>=S&&p<c?.length?",":x})),m?.currencyPosition&&m?.currencyPosition!=="none"?c=m?.currencyPosition==="left"?h+c:c+h:m?.currencyPosition!=="none"&&(c=h+c),c},ta=t=>{var e,i,o,a,l,s,r,d,v,c,m,h,f,y,S,x,p,w,b,T,k,g,O,P,{content:A,style:u,bgImg:M,onClick:C,schema:E,isDefault:I,bottom_image:R,tipText:N,isPost:F,viewTime:V,rec:L,swiper:_,commodityStyles:B,buttonStyle:W,index:U,commodityGroup:X,popupBg:ne,iframeIcon:te,commodityImgRatio:re,isTel:ke,iframeBgColor:ue}=t,Q=Je(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor"]);const{sxpParameter:K,popupDetailData:$,isPreview:Z,bffFbReport:ae,popupCurTimeRef:we,checkCommodityIndexRef:be,globalConfig:De}=_e(),{jumpToWeb:Ee,productView:je}=Ke(),ve=n.useRef(null),[ye,Ae]=n.useState(!1),[J,de]=n.useState(!1),[q,ce]=n.useState((e=$?.multiCheckIndex)!==null&&e!==void 0?e:0),Oe=n.useRef(),G=F?L:$;let j=F?G?.product:(o=(i=G?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&o!==void 0?o:(l=(a=G?.video)===null||a===void 0?void 0:a.bindProducts)===null||l===void 0?void 0:l[0],Re=F?(s=G?.product)===null||s===void 0?void 0:s.bindCta:(v=(d=(r=G?.video)===null||r===void 0?void 0:r.bindProduct)===null||d===void 0?void 0:d.bindCta)!==null&&v!==void 0?v:(h=(m=(c=G?.video)===null||c===void 0?void 0:c.bindProducts)===null||m===void 0?void 0:m[0])===null||h===void 0?void 0:h.bindCta;const Ue=F?U:$?.index;if(!F&&X?.open&&(!((f=G?.video)===null||f===void 0)&&f.bindProducts)&&((S=(y=G?.video)===null||y===void 0?void 0:y.bindProducts)===null||S===void 0?void 0:S.length)>0){be.current=q;const ee=(x=G?.video)===null||x===void 0?void 0:x.bindProducts[q];j=ee,Re=ee?.bindCta}const dt=()=>{j?.link&&(Ee(G,j,Re,Ue),F||je(G,j,Re,V||ve.current,Ue),window.location.href=window.getJointUtmLink(j.link))};n.useEffect(()=>{F||ae?.({eventName:"ProductView"})},[F,ae]),n.useEffect(()=>{const ee=()=>{ve.current=new Date};return ee(),window.addEventListener("pageshow",ee),()=>{window.removeEventListener("pageshow",ee)}},[]);const wt=Ht({product:j,enableFormattedPrice:(p=B?.price)===null||p===void 0?void 0:p.enableFormattedPrice,globalConfig:De}),tt=(Z?375:(w=u?.width)!==null&&w!==void 0?w:window.innerWidth)-((b=ne?.horizontalMargin)!==null&&b!==void 0?b:0)*2,it=re?tt*(re.h/re.w):tt,St=({isPost:ee})=>{var Te,Fe,We,Ge;return n.createElement("div",null,n.createElement("div",{className:"pb-commondity-content-collection",style:H(B?.collection),hidden:!!j&&(!j?.collection||j?.collection===""),dangerouslySetInnerHTML:{__html:he((Te=j?.collection)!==null&&Te!==void 0?Te:"Tiffany Lock",B?.collection)}}),n.createElement("div",{className:"pb-commondity-content-title",style:H(B?.title),hidden:!!j&&!j?.title,dangerouslySetInnerHTML:{__html:he((Fe=j?.title)!==null&&Fe!==void 0?Fe:"Pendant in Yellow Gold with Diamonds, Medium",B?.title)}}),n.createElement("div",{className:"pb-commondity-content-price",style:H(B?.price),hidden:!!j&&!j?.price,dangerouslySetInnerHTML:{__html:he(wt,B?.price)}}),n.createElement("div",{hidden:!!j&&!j?.taxInfo,style:H(B?.taxInfo),dangerouslySetInnerHTML:{__html:he((We=j?.taxInfo)!==null&&We!==void 0?We:"\u7A0E\u8D39",B?.taxInfo)}}),n.createElement("div",{hidden:!!j&&(!j?.info||j?.info==="")},n.createElement(ii,{foldText:N?.foldText,unfoldText:N?.unfoldText,onClick:()=>Ae(!0),isPost:ee,text:(Ge=j?.info)!==null&&Ge!==void 0?Ge:`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 Xe=require("lodash"),jo=require("uuid"),Vo=require("pako"),n=require("react"),ai=require("qs"),zo=require("eventemitter3"),Se=require("@emotion/css"),Di=require("react-dom");function Ho(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var Mi=Ho(Di);function Je(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(t);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]]);return i}function Qe(t,e,i,o){function a(l){return l instanceof i?l:new i(function(s){s(l)})}return new(i||(i=Promise))(function(l,s){function r(c){try{v(o.next(c))}catch(m){s(m)}}function d(c){try{v(o.throw(c))}catch(m){s(m)}}function v(c){c.done?l(c.value):a(c.value).then(r,d)}v((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Go=/:\w+/g;var Oi=(t,e)=>Qe(void 0,void 0,void 0,function*(){const i={},o={};for(let a=0;a<e?.length;a++){const{id:l,method:s,url:r,urlParams:d,name:v,queryString:c,headers:m,body:h}=e[a];let f=r;d&&Object.entries(d).forEach(([y,S])=>{f=f.replace(Go,x=>x===y?S:x)}),c&&(f+=c),o[l]=v;try{const y=yield fetch(f,{method:s,headers:Object.assign({"Content-Type":"application/json"},m),body:JSON.stringify(h)}).then(S=>S.json());i[l]=y}catch(y){console.error("DataSource request error: ",y),i[l]={}}}return{$store:i,idMapName:o}});const Ri="SXP_TOKEN_INFO",Uo=(t,e)=>Qe(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),a=t.getAppId(),l=t.getApiUrl(),s=window.localStorage.getItem(Ri);let r=JSON.parse(s||"{}");if(Date.now()>((i=r?.expireTime)!==null&&i!==void 0?i:0)){const v=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":a||""}}).then(c=>c.json());if(v.success){const c=v.data;r=Object.assign(Object.assign({},c),{expireTime:Date.now()+c.expire*1e3}),window.localStorage.setItem(Ri,JSON.stringify(r))}}return r});function Wt(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)o[a]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(l=0|Math.random()*16,o[a]=i[a===19?l&3|8:l])}return o.join("")}const Wo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*o)),a+=1;return e},Yo=()=>{const t=jo.v4();return t?.replaceAll?t.replaceAll("-",""):Wo(32)},he=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!o&&!a)return t;let l=t;const s=/[\u4e00-\u9fa5]/g,r=/[^\u4e00-\u9fa5]/g,d=`font-family:${o??"inherit"}`,v=`font-family:${a??"inherit"}`,c=h=>{let f=h.search(s),y=h.search(r);return f!==-1&&y!==-1&&f<y&&(i+=`<span style="${d}">${h.substring(f,y)}</span>`,l=h.substring(y,h?.length)),f!==-1&&y!==-1&&f>y&&(i+=`<span style="${v}">${h.substring(y,f)}</span>`,l=h.substring(f,h?.length)),f===-1?(i+=`<span style="${v}">${h.substring(y,h?.length)}</span>`,l="",!1):y===-1?(i+=`<span style="${d}">${h.substring(f,h?.length)}</span>`,l="",!1):!0};let m=!0;for(;m;)m=c(l);return i};function Li(){var t,e,i,o,a,l,s;let r=self.navigator.userAgent;return r?/edge\/([\d\.]+)/i.exec(r)?`Edge ${(t=/edge\/([\d\.]+)/i.exec(r))===null||t===void 0?void 0:t[1]}`:/edg\/([\d\.]+)/i.exec(r)?`Edge(Chromium) ${(e=/edge\/([\d\.]+)/i.exec(r))===null||e===void 0?void 0:e[1]}`:/msie/i.test(r)?`Internet Explorer ${(i=/msie ([\d\.]+)/i.exec(r))===null||i===void 0?void 0:i[1]}`:/Trident/i.test(r)?`Internet Explorer ${(o=/rv:([\d\.]+)/i.exec(r))===null||o===void 0?void 0:o[1]}`:/chrome/i.test(r)?`Chrome ${(a=/chrome\/([\d\.]+)/i.exec(r))===null||a===void 0?void 0:a[1]}`:/firefox/i.test(r)?`Firefox ${(l=/firefox\/([\d\.]+)/i.exec(r))===null||l===void 0?void 0:l[1]}`:/safari/i.test(r)?`Safari ${(s=/version\/([\d\.]+)/i.exec(r))===null||s===void 0?void 0:s[1]}`:null:null}function Bi(){var t,e,i;let o=self.navigator.userAgent;return o?/iphone/i.test(o)?`IOS ${(t=o.match(/OS\s(.*?)\slike/))===null||t===void 0?void 0:t[1]}`:/android/i.test(o)?`Android ${(e=o.match(/Android\s(.*?)\;/))===null||e===void 0?void 0:e[1]}`:/windows/i.test(o)?`Windows ${(i=o.match(/Windows\s(.*?)\;/))===null||i===void 0?void 0:i[1]}`:/mac/i.test(o)?"Mac OS":null:null}function Ni(){let t=self.navigator.userAgent;if(!t)return null;if(/iphone/i.test(t))return"iPhone";if(/android/i.test(t)){var e=t.indexOf("("),i=t.indexOf(")");if(e!==-1&&i!==-1){var o=t.substring(e+1,i);return`${o}`}}return/windows/i.test(t)?"Windows":/mac/i.test(t)?"Mac":null}function Fi(t){const i=document.cookie.split(";");let o=null;return i.forEach(a=>{const[l,s]=a.trim().split("=");l===t&&(o=s)}),o??""}function ji(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),a=Vo.inflate(o,{to:"string"});return JSON.parse(a)}let si=null;const Xo={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Jo{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,si)return si;si=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Xo[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let $e=null;const qo={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{$e||($e=new Jo),o&&$e.setApiUrl(o),$e.setAppId(t),$e.setTenantId(e),$e.setEnv(i)},getDetail:t=>{if(!$e)return;const e=$e.getTenantId(),i=$e.getAppId(),o=$e.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>Qe(void 0,void 0,void 0,function*(){var l,s;const r=yield a.json(),d=ji((l=r?.data)===null||l===void 0?void 0:l.data);if(d){const{$store:v}=yield Oi(o,(s=d?.dataSource)!==null&&s!==void 0?s:[]);r.data.data=d,Object.assign(r.data.data,{__STORE__:v})}return r}))},getSxpDetailByPageId:t=>Qe(void 0,void 0,void 0,function*(){if(!$e)return;const e=$e.getTenantId(),i=$e.getAppId(),o=$e.getApiUrl();return fetch(`${o}/storefront/v1/page?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>Qe(void 0,void 0,void 0,function*(){var l;const s=yield a.json();if(!s.success)return;const r=ji((l=s?.data)===null||l===void 0?void 0:l.data);return s.data.data=r,s.data}))}),getSxpRecommendVideoData:t=>Qe(void 0,void 0,void 0,function*(){if(!$e)return;const e=yield Uo($e,t),i=Wt(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");Xe.isEmpty(o)&&(o=Wt(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const a=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:o,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return a?.data||null})};function ht(){return n.useContext(Zi)}function Ko(){return n.useContext(Ki)}const ri="feRealSessionIdKey",Vi=()=>{const t=Yo();return`${Date.now()}${t}`},Zo=()=>{let t=Qo();return t||(t=Vi(),window.sessionStorage.setItem(ri,t)),t},zi=()=>{const t=Vi();window.sessionStorage.setItem(ri,t)},Qo=()=>window.sessionStorage.getItem(ri),Hi="SXP_FAKE_USER_ID",Gi="FAKE_USER_STATE",Ui="AGREE_POLICY",Wi="SLIDE_SKIP_STATE",Yi=()=>{let t=window.localStorage.getItem(Hi);return Xe.isEmpty(t)&&(t=Wt(36,62),window.localStorage.setItem(Hi,t)),t},$o=()=>{const t=window.localStorage.getItem(Gi);return Xe.isEmpty(t)&&window.localStorage.setItem(Gi,"true"),Xe.isEmpty(t)},en=()=>{const t=window.localStorage.getItem(Wi);return Xe.isEmpty(t)},tn=()=>{window.localStorage.setItem(Wi,"true")};function ct(t,e){const{appDomain:i}=_e();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const gt=new zo;var st;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(st||(st={}));const on=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:a,privacy_policy_title:l})=>{const{setIsAgreePolicy:s,bffEventReport:r}=_e(),d=n.useMemo(()=>{const m=location.search.slice(1),h=ai.parse(m.replace(/\+/g,"%2B"));for(const f in h)h[f]=h[f].replace(/%2B/g,"+");return h},[]),v=m=>{var h;return(h=d[m])!==null&&h!==void 0?h:null};n.useEffect(()=>{r?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:v("utm_source"),utmMedium:v("utm_medium"),utmCampaign:v("utm_campaign"),utmId:v("utm_id"),utmContent:v("utm_content"),clSource:v("cl_source"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const c=()=>{r?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),s?.(!0),window.localStorage.setItem(Ui,"yes")};return n.createElement("div",{className:"consent-bg"},n.createElement("div",{className:"consent"},n.createElement("div",{className:"consent-col"},n.createElement("div",{className:"consent-title"},i??"Privacy Policy"),n.createElement("div",{className:"consent-content"},o??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),n.createElement("div",{className:"consent-col"},n.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:c},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},l??"More information"))))};var nn=n.memo(on);const Xi=n.createContext({rtcList:[],tagList:[]});var di;(function(t){t[t.BFF=5]="BFF"})(di||(di={}));const Yt="FOR U",ln=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:a,defaultSize:l,isPreview:s=!1,sxpParameter:r,appDomain:d,hashTagSize:v,loadingImage:c,isOpenHashTag:m=!1,enabledMetaConversionApi:h=!1,consentHeight:f,consentWidth:y,isShowTag:S=!0,isOpenConsent:x=!1,globalConfig:p,isEditor:w=!1,utmParameter:b,channelQueryList:T})=>{var k,g,O;const[P,A]=n.useState([]),[u,M]=n.useState([]),[C,E]=n.useState(!1),[I,R]=n.useState({rtc:"",requestId:""}),N=n.useRef(null),F=n.useRef(!1),[V,L]=n.useState(()=>!!window.localStorage.getItem(Ui)),[_,B]=n.useState(),[W,U]=n.useState(),[X,ne]=n.useState(m),[te,re]=n.useState([]),[ke,ue]=n.useState(0),[Q,K]=n.useState(!1),[$,Z]=n.useState(null),ae=n.useRef(),we=n.useRef(),[be,De]=n.useState(Yt),Ee=n.useRef(-1),je=n.useRef(null),[ve,ye]=n.useState(!1),Ae=n.useMemo(()=>{var z,H,xe,Ce;return((Ce=(xe=(H=(z=p?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||xe===void 0?void 0:xe.props)===null||Ce===void 0?void 0:Ce.privacy_necessity)&&!V&&!w||x},[V,p,x,w]),J=n.useCallback(z=>{var H;const xe=z?.recList;return(H=xe?.map(me=>{var le,ee,Te,Fe,We,Ge;if(!((le=me?.video)===null||le===void 0)&&le.bindProducts&&((Te=(ee=me?.video)===null||ee===void 0?void 0:ee.bindProducts)===null||Te===void 0?void 0:Te.length)>0){const lt=(Ge=(We=(Fe=me?.video)===null||Fe===void 0?void 0:Fe.bindProducts)===null||We===void 0?void 0:We.filter(ot=>!!ot?.bindCta))!==null&&Ge!==void 0?Ge:[];return Object.assign(Object.assign({},me),{video:Object.assign(Object.assign({},me?.video),{bindProducts:lt})})}return me}))!==null&&H!==void 0?H:[]},[]);n.useEffect(()=>{const z=H=>{ae.current=H};return gt.on(st.CHANGE_THEME_TAG,z),()=>{gt.off(st.CHANGE_THEME_TAG,z)}},[]),n.useEffect(()=>{ne(m)},[m]);const de=n.useMemo(()=>e?.find(z=>z.type===di.BFF),[e]),q=n.useCallback((z,H)=>{if(!de)return;const xe=de.url,Ce=Yi();if(H?.query){const me=ai.stringify(H.query);z=`${z}?${me}`}return H.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${xe}/api/v1${z}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},de.headers),{"x-user-id":Ce}),H.body))],{type:"application/json;charset=UTF-8"})):window.fetch(`${xe}/api/v1${z}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":Ce},de.headers),method:H.method,body:JSON.stringify(H.body)}).then(me=>me.json()).catch(me=>Promise.reject(me))},[de]),ce=n.useCallback(z=>Qe(void 0,void 0,void 0,function*(){var H,xe,Ce,me,le,ee,Te,Fe,We,Ge,lt,ot,pt,At;if(z=Object.assign(Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:a,defaultSize:(xe=z?.defaultSize)!==null&&xe!==void 0?xe:l,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag},z?.contentFilter&&{contentFilter:`[${z?.contentFilter}]`}),z?.productFilter&&{productFilter:`[${z?.productFilter}]`}),{pageNum:z?.pageNum}),i){const se=(le=(me=(Ce=i?.split("&"))===null||Ce===void 0?void 0:Ce.filter(ie=>{var Y,fe;const ge=ie.split("=")[0];return(fe=(Y=b?.channels)!==null&&Y!==void 0?Y:[])===null||fe===void 0?void 0:fe.includes(ge)}))===null||me===void 0?void 0:me.join("&"))!==null&&le!==void 0?le:"";z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(se)})}if(w){let se=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&T&&T?.length>0&&{channel:T?.[0]}),!z?.channel||F.current)return;F.current=!0;let ie=[],Y=null;const fe=ge=>Qe(void 0,void 0,void 0,function*(){var oe,pe,Ie,Me,Ne,Ve;if(ge.pageNum=se,Y=yield q?.("/recommend/list",{method:"GET",query:ge}),!Y?.success)return;E(!1),ie=ie.concat((Me=(Ie=(pe=(oe=Y?.data)===null||oe===void 0?void 0:oe.recList)===null||pe===void 0?void 0:pe.filter)===null||Ie===void 0?void 0:Ie.call(pe,Le=>Le?.product||Le?.video))!==null&&Me!==void 0?Me:[]),A(J(Object.assign(Object.assign({},Y.data),{recList:ie}))),re(J(Object.assign(Object.assign({},Y.data),{recList:ie}))),((Ve=(Ne=Y?.data)===null||Ne===void 0?void 0:Ne.recList)===null||Ve===void 0?void 0:Ve.some(Le=>Le?.product||Le?.video))&&(se=se+1,yield fe(ge))});return yield fe(z),!z?.hashTag&&Y&&R({rtc:(ee=Y?.data)===null||ee===void 0?void 0:ee.rtc,requestId:(Te=Y?.data)===null||Te===void 0?void 0:Te.requestId}),Object.assign(Object.assign({},Y.data),{recList:ie})}p?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(Fe=z?.pageNum)!==null&&Fe!==void 0?Fe:1}));const D=yield q?.("/recommend/list",{method:"GET",query:z});if(D?.success){if(z?.hashTag||R({rtc:D.data.rtc,requestId:D.data.requestId}),p?.enablePreview&&!w){let se=[];return se=se.concat((ot=(lt=(Ge=(We=D?.data)===null||We===void 0?void 0:We.recList)===null||Ge===void 0?void 0:Ge.filter)===null||lt===void 0?void 0:lt.call(Ge,Y=>Y?.product||Y?.video))!==null&&ot!==void 0?ot:[]),((At=(pt=D?.data)===null||pt===void 0?void 0:pt.recList)===null||At===void 0?void 0:At.some(Y=>Y?.product||Y?.video))||ye(!0),Object.assign(Object.assign({},D.data),{recList:se})}return D?.data}}),[q,i,a,l,T]),Oe=n.useCallback(z=>Qe(void 0,void 0,void 0,function*(){var H,xe,Ce,me;if(P.length<=0)return;const le=P?.[P?.length-1],ee=yield ce(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:W?.hashTag},((H=le?.product)===null||H===void 0?void 0:H.itemId)&&{productFilter:(xe=le?.product)===null||xe===void 0?void 0:xe.itemId}),((Ce=le?.video)===null||Ce===void 0?void 0:Ce.itemId)&&{contentFilter:(me=le?.video)===null||me===void 0?void 0:me.itemId}),{themeTag:ae.current}),p?.enablePreview&&!w&&{pageNum:z}));return A(P.concat(J(ee))),re(te.concat(J(ee))),ee}),[ce,P,W,te]),G=n.useCallback(({userInfo:z,eventInfo:H})=>{if(!o||p?.enablePreview)return;z||(z={});const xe=Zo(),Ce=Object.assign(Object.assign(Object.assign(Object.assign({sessionID:xe,rtc:I.rtc,requestId:I.requestId},H),Ni()&&{sxpDevice:Ni()}),Bi()&&{sxpSystem:Bi()}),Li()&&{sxpBrowser:Li()}),me=Object.entries(z).map(([ee,Te])=>({name:ee,value:Te})),le=Object.entries(Ce).map(([ee,Te])=>Te&&{name:ee,value:Te}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",Ce),console.log("========= \u7ED3\u675F ========="),q?.("/event/report",{method:"POST",body:{userInfo:me,eventInfo:le},type:"beacon"})},[q,I,o,p?.enablePreview]),j=n.useCallback(z=>{var H,xe,Ce,{eventName:me,actionSource:le="website",eventSourceUrl:ee=(H=window?.location)===null||H===void 0?void 0:H.href,externalId:Te}=z;if(!o||!h||p?.enablePreview)return;const Fe=Yi(),Ge=new URLSearchParams(window.location.search).get("fbclid");return q?.("/fb/events",{method:"POST",body:{eventName:me,actionSource:le,eventSourceUrl:ee,userData:Object.assign(Object.assign(Object.assign({externalId:Fe},Ge&&{fbc:`fb.2.${new Date().getTime()}.${Ge}`}),Fi("_fbp")&&{fbp:`fb.2.${new Date().getTime()}.${Fi("_fbp")}`}),{clientUserAgent:(Ce=(xe=window?.navigator)===null||xe===void 0?void 0:xe.userAgent)!==null&&Ce!==void 0?Ce:""})},type:"beacon"})},[q,o,h,p?.enablePreview]),Re=n.useCallback(z=>Qe(void 0,void 0,void 0,function*(){const H=yield q?.("/recommend/like",{method:"POST",body:z});return H?.success}),[q]),Ue=n.useCallback(z=>Qe(void 0,void 0,void 0,function*(){const H=yield q?.("/recommend/unlike",{method:"POST",body:z});return H?.success}),[q]),dt=n.useCallback(z=>Qe(void 0,void 0,void 0,function*(){const H=yield q?.("/customform",{method:"POST",body:z});return H?.success}),[q]),wt=n.useCallback(()=>Qe(void 0,void 0,void 0,function*(){var z,H,xe,Ce,me;if(!(!i||!S))try{const le=(xe=(H=(z=i?.split("&"))===null||z===void 0?void 0:z.filter(Te=>{var Fe,We;const Ge=Te.split("=")[0];return(We=(Fe=b?.channels)!==null&&Fe!==void 0?Fe:[])===null||We===void 0?void 0:We.includes(Ge)}))===null||H===void 0?void 0:H.join("&"))!==null&&xe!==void 0?xe:"",ee=yield q?.("/tag/list",{method:"GET",query:{channel:decodeURIComponent(le)}});M((me=(Ce=ee?.data)===null||Ce===void 0?void 0:Ce.tags)!==null&&me!==void 0?me:[])}catch(le){console.log("e",le)}}),[q,i,S]),tt=n.useCallback((z,H,xe,Ce)=>{var me,le,ee,Te,Fe,We,Ge,lt,ot,pt,At,D,se,ie,Y,fe,ge,oe,pe,Ie,Me,Ne,Ve,He,Le,qe,Pe,ze,at,Ye,mt,ft,Ct,It,Be,li;const kt=xe?.bindCta,Fo=((me=H?.video)===null||me===void 0?void 0:me.bindProduct)||((le=H?.video)===null||le===void 0?void 0:le.bindProducts)&&((Te=(ee=H?.video)===null||ee===void 0?void 0:ee.bindProducts)===null||Te===void 0?void 0:Te.length)>0;let Ut="";Q?Ut="hashTagPage":!((Fe=H?.video)===null||Fe===void 0)&&Fe.url?Ut="videoPage":!((Ge=(We=H?.video)===null||We===void 0?void 0:We.imgUrls)===null||Ge===void 0)&&Ge.length&&(Ut="imagePage");const Pi=(ie=(D=(lt=xe?.tags)!==null&&lt!==void 0?lt:(At=(pt=(ot=H?.video)===null||ot===void 0?void 0:ot.bindProducts)===null||pt===void 0?void 0:pt[0])===null||At===void 0?void 0:At.tags)!==null&&D!==void 0?D:(se=H?.video)===null||se===void 0?void 0:se.tags)!==null&&ie!==void 0?ie:(Y=H?.product)===null||Y===void 0?void 0:Y.tags;G?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(fe=kt?.itemId)!==null&&fe!==void 0?fe:"",ctaName:(ge=kt?.title)!==null&&ge!==void 0?ge:"",contentTags:Pi?JSON.stringify(Pi):"",position:Ce+"",contentId:(pe=(oe=H?.video)===null||oe===void 0?void 0:oe.itemId)!==null&&pe!==void 0?pe:"",productId:Fo?xe?.itemId:"",traceInfo:(Be=(ft=(Pe=(Ve=(Ie=kt?.traceInfo)!==null&&Ie!==void 0?Ie:(Ne=(Me=H?.video)===null||Me===void 0?void 0:Me.bindCta)===null||Ne===void 0?void 0:Ne.traceInfo)!==null&&Ve!==void 0?Ve:(qe=(Le=(He=H?.video)===null||He===void 0?void 0:He.bindProduct)===null||Le===void 0?void 0:Le.bindCta)===null||qe===void 0?void 0:qe.traceInfo)!==null&&Pe!==void 0?Pe:(mt=(Ye=(at=(ze=H?.video)===null||ze===void 0?void 0:ze.bindProducts)===null||at===void 0?void 0:at[0])===null||Ye===void 0?void 0:Ye.bindCta)===null||mt===void 0?void 0:mt.traceInfo)!==null&&ft!==void 0?ft:(It=(Ct=H?.product)===null||Ct===void 0?void 0:Ct.bindCta)===null||It===void 0?void 0:It.traceInfo)!==null&&Be!==void 0?Be:"",fromKName:Ut,fromKPage:(li=location?.href)!==null&&li!==void 0?li:""})})},[G,Q]),it=n.useCallback(()=>{var z,H;const xe=location.search.slice(1),Ce=ai.parse(xe.replace(/\+/g,"%2B"));for(const ee in Ce)Ce[ee]=Ce[ee].replace(/%2B/g,"+");const me=ee=>{var Te;return(Te=Ce[ee])!==null&&Te!==void 0?Te:""},le=new Date;we.current=le,G?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:me("utm_source"),utmMedium:me("utm_medium"),utmCampaign:me("utm_campaign"),utmId:me("utm_id"),utmContent:me("utm_content"),enterTime:Math.floor(le/1e3)+"",requestId:null,enterUrl:(H=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&H!==void 0?H:"",clSource:me("cl_source")}})},[G]);n.useEffect(()=>{Ae||it()},[Ae]),n.useEffect(()=>{Ae||(E(!0),wt(),ce().then(z=>{z&&(A(J(z)),re(J(z)))}).finally(()=>{G({eventInfo:{eventSubject:"apiRequest",eventDescription:"api request succeed"}}),E(!1)}))},[Ae]),n.useEffect(()=>{s&&(E(!0),wt(),ce().then(z=>{z&&(A(J(z)),re(J(z)))}).finally(()=>{G({eventInfo:{eventSubject:"apiRequest",eventDescription:"api request succeed"}}),E(!1)}))},[ce,wt]);const St=ct("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",d);return n.createElement(Xi.Provider,{value:{rtcList:P,setRtcList:A,mutateLike:Re,mutateUnlike:Ue,submitForm:dt,popupDetailData:_,loadVideos:Oe,setPopupDetailData:B,getRecommendVideos:ce,bffEventReport:G,utmVal:i,isPreview:s,loading:C,sxpParameter:r,waterFallData:W,setWaterFallData:U,ctaEvent:tt,swiperRef:N,openHashtag:X,setOpenHashtag:ne,cacheRtcList:te,setCacheRtcList:re,cacheActiveIndex:ke,setCacheActiveIndex:ue,isFromHashtag:Q,setIsFromHashtag:K,appDomain:d,hashTagSize:v,loadingImage:c??St,isOpenHashTag:m,tagList:u,setLoading:E,videoRef:$,setVideoRef:Z,bffFbReport:j,isAgreePolicy:V,setIsAgreePolicy:L,curTime:we,h5EnterLink:it,themeTag:ae,isShowConsent:Ae,selectTag:be,setSelectTag:De,globalConfig:p,popupCurTimeRef:je,checkCommodityIndexRef:Ee,isEditor:w,isNoMoreData:ve}},Ae?n.createElement(nn,Object.assign({},(O=(g=(k=p?.consent)===null||k===void 0?void 0:k[0])===null||g===void 0?void 0:g.item)===null||O===void 0?void 0:O.props)):t({rtcList:P,mutateLike:Re,mutateUnlike:Ue,submitForm:dt,tagList:u}))};var Ji=n.memo(ln);function _e(){return n.useContext(Xi)}var qi;(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"})(qi||(qi={}));const Ki=n.createContext({$store:{},options:[],configs:[]}),an=({children:t,isSsr:e,enable:i})=>{const[o,a]=n.useState([]),{schema:l}=ht(),[s,r]=n.useState(l.__STORE__||{}),[d,v]=n.useState([]);n.useEffect(()=>{var h;e||Xe.isEqual(d,l?.dataSource)||v((h=l?.dataSource)!==null&&h!==void 0?h:[])},[l?.dataSource,e]);const c=n.useCallback(()=>Qe(void 0,void 0,void 0,function*(){const{$store:h,idMapName:f}=yield Oi("",d);r(h),m(h,f)}),[d]),m=(h,f)=>{const y=[];Object.entries(h).forEach(([S,x])=>{Object.keys(x).forEach(p=>{const w={label:`${f[S]} - ${p}`,value:`{{ ${S}.${p} }}`};y.push(w)})}),a(y)};return n.useEffect(()=>{e||c()},[c,e,l]),i?n.createElement(Ki.Provider,{value:{$store:l.__STORE__||s,options:o,configs:d}},t):t};var sn=n.memo(an);const Xt={id:Wt(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},ci={id:"",duration:0,name:"none"},Zi=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Xt],redoStack:[],popup:ci,setPopup:()=>{}}),Qi=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:a=!0,utmVal:l},s)=>{const[r,d]=n.useState(null),[v,c]=n.useState(o||{pointData:[Xt],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[m,h]=n.useState([Xt]),[f,y]=n.useState([[Xt]]),[S,x]=n.useState([]),[p,w]=n.useState(ci);typeof window<"u"&&(window.sxpPopup=(O,P)=>{w(Object.assign(Object.assign(Object.assign({},ci),{id:O}),P))}),typeof window<"u"&&(window.getJointUtmLink=O=>(tn(),O?.indexOf("?")!==-1?O+(l?"&"+l:""):O+(l?"?"+l:""))),n.useEffect(()=>{y([v.pointData]),x([])},[v.type]);const b=n.useCallback(O=>{const P=Xe.cloneDeep(v);P&&(P.dataSource=O,c?.(P))},[v]),[T,k]=n.useState();n.useImperativeHandle(s,()=>({loadSchema(O){O&&(y([O.pointData]),c(O))},exportSchema(){return Xe.cloneDeep(v)},getPageInfoData(){return T},initPageInfoData(O){O&&k(O)}}));const g=n.useMemo(()=>{if(v)return v.type==="PC"?v.pcPageConf:v.mobilePageConf},[v]);return n.createElement(Zi.Provider,{value:{resolver:e,currentNode:r,schema:v,setCurrentNode:d,setSchema:c,saveDataSource:b,prePiontData:m,setPrePiontData:h,pageInfoData:T,setPageInfoData:O=>k(Object.assign(Object.assign({},T),O)),undoStack:f,redoStack:S,setRedoStack:x,setUndoStack:y,getCurPageConf:g,popup:p,setPopup:w}},n.createElement(sn,{isSsr:i,enable:a},t))});var rn=Object.freeze({__proto__:null,EditorCore:Qi}),dn=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],cn=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Ke(){const{bffEventReport:t,popupDetailData:e,waterFallData:i,isFromHashtag:o}=_e(),a=n.useCallback((r,d,v,c,m)=>{var h,f,y,S,x,p,w,b,T,k,g,O,P,A,u,M,C,E,I,R,N,F,V,L,_,B,W,U,X,ne,te,re,ke,ue,Q,K,$,Z;let ae="";e&&(!((f=(h=r?.video)===null||h===void 0?void 0:h.bindProducts)===null||f===void 0)&&f.length||!((y=r?.video)===null||y===void 0)&&y.bindProduct)?ae="pdpPage":o?ae="hashTagPage":!((S=r?.video)===null||S===void 0)&&S.url?ae="videoPage":!((x=r?.video)===null||x===void 0)&&x.imgUrls&&(!((w=(p=r?.video)===null||p===void 0?void 0:p.imgUrls)===null||w===void 0)&&w.length)?ae="imagePage":r?.product&&(ae="productPage");const we=(A=(O=(b=d?.tags)!==null&&b!==void 0?b:(g=(k=(T=r?.video)===null||T===void 0?void 0:T.bindProducts)===null||k===void 0?void 0:k[0])===null||g===void 0?void 0:g.tags)!==null&&O!==void 0?O:(P=r?.video)===null||P===void 0?void 0:P.tags)!==null&&A!==void 0?A:(u=r?.product)===null||u===void 0?void 0:u.tags;let be=null;!((M=r?.video)===null||M===void 0)&&M.url?be="video":!((C=r?.video)===null||C===void 0)&&C.imgUrls&&(!((I=(E=r?.video)===null||E===void 0?void 0:E.imgUrls)===null||I===void 0)&&I.length)&&(be="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(R=d?.itemId)!==null&&R!==void 0?R:"",productName:(N=d?.title)!==null&&N!==void 0?N:"",price:d?.price?d?.price+"":"0",productCollection:(F=d?.collection)!==null&&F!==void 0?F:"",fromKName:ae,fromKPage:location?.href,contentTags:we?JSON.stringify(we):"",position:c+"",contentId:(L=(V=r?.video)===null||V===void 0?void 0:V.itemId)!==null&&L!==void 0?L:"",ctatId:(_=v?.itemId)!==null&&_!==void 0?_:"",traceInfo:(Z=(Q=(ke=(X=(B=m??d?.traceInfo)!==null&&B!==void 0?B:(U=(W=r?.video)===null||W===void 0?void 0:W.bindProduct)===null||U===void 0?void 0:U.traceInfo)!==null&&X!==void 0?X:(re=(te=(ne=r?.video)===null||ne===void 0?void 0:ne.bindProducts)===null||te===void 0?void 0:te[0])===null||re===void 0?void 0:re.traceInfo)!==null&&ke!==void 0?ke:(ue=r?.product)===null||ue===void 0?void 0:ue.traceInfo)!==null&&Q!==void 0?Q:($=(K=r?.video)===null||K===void 0?void 0:K.bindCta)===null||$===void 0?void 0:$.traceInfo)!==null&&Z!==void 0?Z:""},be&&{contentFormat:be})})},[t,e,o]),l=n.useCallback((r,d,v,c,m)=>{var h,f,y,S,x,p,w,b,T,k,g,O,P,A;let u="";e&&(!((f=(h=r?.video)===null||h===void 0?void 0:h.bindProducts)===null||f===void 0)&&f.length||!((y=r?.video)===null||y===void 0)&&y.bindProduct)?u="pdpPage":r?.product&&(u="productPage"),t?.({eventInfo:{productId:d?.itemId,productName:d?.title,price:d?.price?d?.price+"":"0",productCollection:d?.collection,fromKName:u,fromKPage:location?.href,contentTags:JSON.stringify(d?.tags),position:m+"",contentId:(S=r?.video)===null||S===void 0?void 0:S.itemId,ctatId:v?.itemId,traceInfo:(A=(O=(b=(x=d?.traceInfo)!==null&&x!==void 0?x:(w=(p=r?.video)===null||p===void 0?void 0:p.bindProduct)===null||w===void 0?void 0:w.traceInfo)!==null&&b!==void 0?b:(g=(k=(T=r?.video)===null||T===void 0?void 0:T.bindProducts)===null||k===void 0?void 0:k[0])===null||g===void 0?void 0:g.traceInfo)!==null&&O!==void 0?O:(P=r?.product)===null||P===void 0?void 0:P.traceInfo)!==null&&A!==void 0?A:"",timeOnSite:Math.floor((new Date-c)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),s=n.useCallback((r,d,v,c)=>{d&&d===Yt&&t?.({eventInfo:{lastFeed:r,themeTags:v?`['${v}']`:"",hashTags:c?`['${c}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:a,productView:l,backMainFeed:s}}const un=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,a)=>n.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&n.createElement("label",{className:"pb-appoint-form-container-label"},o?.title),o?.valueType==="text"&&n.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?o?.title:"\u8BF7\u8F93\u5165",name:o?.dataIndex},i&&{onChange:i})))));var vn=n.memo(un);const pn=t=>{var e,i,{columns:o,style:a,title:l,textStyle:s,submitBgColor:r,submitColor:d,submitText:v,layoutType:c="inline",isExternalLink:m,isPopup:h,onClick:f,onClose:y,submitButtonStyle:S}=t,x=Je(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:p,popupDetailData:w}=_e(),{jumpToWeb:b}=Ke(),[T,k]=n.useState(!1),[g,O]=n.useState({}),[P,A]=n.useState(0),u=n.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),M=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),C=n.useMemo(()=>Xe.cloneDeep(o)||u,[o,u]),E=n.useCallback(R=>{const{name:N,value:F}=R.target;O(Object.assign(Object.assign({},g),{[N]:F}))},[g]),I=Xe.debounce(()=>Qe(void 0,void 0,void 0,function*(){var R,N,F,V,L;const _=g;if(!_)return;const B=(N=(R=Object.keys(_))===null||R===void 0?void 0:R.map(U=>{var X;return{name:U,value:(X=_[U])!==null&&X!==void 0?X:""}}))===null||N===void 0?void 0:N.filter(U=>U?.value);if(!B||!B?.length)return;k(!0);const W=yield p?.({attributes:B});if(k(!1),W){if(m){const U=w,X=(F=U?.video)===null||F===void 0?void 0:F.bindProduct,ne=(L=(V=U?.video)===null||V===void 0?void 0:V.bindProduct)===null||L===void 0?void 0:L.bindCta,te=w?.index;b(U,X,ne,te)}h||y?.(),f?.()}}),1e3);return n.useEffect(()=>{const R=()=>{var N,F;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((N=document?.documentElement)===null||N===void 0?void 0:N.clientHeight)||((F=document?.body)===null||F===void 0?void 0:F.clientHeight))<M?A(50):A(0)};return window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}},[]),n.createElement("div",{className:"pb-appoint-form"},n.createElement("div",{className:`pb-appoint-form-title ${Se.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:he(l,s)}}),n.createElement("div",Object.assign({className:Se.css(Object.assign(Object.assign({},a),{marginTop:P}))},x),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(vn,{columns:C,layout:c,onChange:E}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":v,onClick:I,className:"pb-appoint-form-btn",style:Object.assign({color:d,background:r},S),dangerouslySetInnerHTML:{__html:he(T?"loading...":v,S)}})))};var mn=n.memo(pn);function Ze(t,e){return t.extend=e,t}const fn=Ze(mn,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:cn,bindableProps:[],interactionRender:dn},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var hn=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}];function $i(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ui(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:$i(e[i])&&$i(t[i])&&Object.keys(e[i]).length>0&&ui(t[i],e[i])})}const eo={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 bt(){const t=typeof document<"u"?document:{};return ui(t,eo),t}const gn={document:eo,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 et(){const t=typeof window<"u"?window:{};return ui(t,gn),t}function Pt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function bn(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function Rt(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function ut(){return Date.now()}function yn(t){const e=et();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function wn(t,e){e===void 0&&(e="x");const i=et();let o,a,l;const s=yn(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(r=>r.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(a==="none"?"":a)):(l=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=l.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?a=l.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function Jt(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Sn(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function rt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const o=i<0||arguments.length<=i?void 0:arguments[i];if(o!=null&&!Sn(o)){const a=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,s=a.length;l<s;l+=1){const r=a[l],d=Object.getOwnPropertyDescriptor(o,r);d!==void 0&&d.enumerable&&(Jt(t[r])&&Jt(o[r])?o[r].__swiper__?t[r]=o[r]:rt(t[r],o[r]):!Jt(t[r])&&Jt(o[r])?(t[r]={},o[r].__swiper__?t[r]=o[r]:rt(t[r],o[r])):t[r]=o[r])}}}return t}function qt(t,e,i){t.style.setProperty(e,i)}function to(t){let{swiper:e,targetPosition:i,side:o}=t;const a=et(),l=-e.translate;let s=null,r;const d=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const v=i>l?"next":"prev",c=(h,f)=>v==="next"&&h>=f||v==="prev"&&h<=f,m=()=>{r=new Date().getTime(),s===null&&(s=r);const h=Math.max(Math.min((r-s)/d,1),0),f=.5-Math.cos(h*Math.PI)/2;let y=l+f*(i-l);if(c(y,i)&&(y=i),e.wrapperEl.scrollTo({[o]:y}),c(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:y})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(m)};m()}function xt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Kt(t){try{console.warn(t);return}catch{}}function jt(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Pt(e)),i}function xn(t){const e=et(),i=bt(),o=t.getBoundingClientRect(),a=i.body,l=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,r=t===e?e.scrollY:t.scrollTop,d=t===e?e.scrollX:t.scrollLeft;return{top:o.top+r-l,left:o.left+d-s}}function Tn(t,e){const i=[];for(;t.previousElementSibling;){const o=t.previousElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function En(t,e){const i=[];for(;t.nextElementSibling;){const o=t.nextElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Dt(t,e){return et().getComputedStyle(t,null).getPropertyValue(e)}function Zt(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function io(t,e){const i=[];let o=t.parentElement;for(;o;)e?o.matches(e)&&i.push(o):i.push(o),o=o.parentElement;return i}function vi(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function pi(t,e,i){const o=et();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Tt(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function An(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=et();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let s,r=ut(),d;const v=[];function c(b){let O=0,P=0,A=0,u=0;return"detail"in b&&(P=b.detail),"wheelDelta"in b&&(P=-b.wheelDelta/120),"wheelDeltaY"in b&&(P=-b.wheelDeltaY/120),"wheelDeltaX"in b&&(O=-b.wheelDeltaX/120),"axis"in b&&b.axis===b.HORIZONTAL_AXIS&&(O=P,P=0),A=O*10,u=P*10,"deltaY"in b&&(u=b.deltaY),"deltaX"in b&&(A=b.deltaX),b.shiftKey&&!A&&(A=u,u=0),(A||u)&&b.deltaMode&&(b.deltaMode===1?(A*=40,u*=40):(A*=800,u*=800)),A&&!O&&(O=A<1?-1:1),u&&!P&&(P=u<1?-1:1),{spinX:O,spinY:P,pixelX:A,pixelY:u}}function m(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function f(b){return e.params.mousewheel.thresholdDelta&&b.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&ut()-r<e.params.mousewheel.thresholdTime?!1:b.delta>=6&&ut()-r<60?!0:(b.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",b.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",b.raw)),r=new l.Date().getTime(),!1)}function y(b){const T=e.params.mousewheel;if(b.direction<0){if(e.isEnd&&!e.params.loop&&T.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&T.releaseOnEdges)return!0;return!1}function S(b){let T=b,k=!0;if(!e.enabled||b.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const g=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let O=e.el;e.params.mousewheel.eventsTarget!=="container"&&(O=document.querySelector(e.params.mousewheel.eventsTarget));const P=O&&O.contains(T.target);if(!e.mouseEntered&&!P&&!g.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let A=0;const u=e.rtlTranslate?-1:1,M=c(T);if(g.forceToAxis)if(e.isHorizontal())if(Math.abs(M.pixelX)>Math.abs(M.pixelY))A=-M.pixelX*u;else return!0;else if(Math.abs(M.pixelY)>Math.abs(M.pixelX))A=-M.pixelY;else return!0;else A=Math.abs(M.pixelX)>Math.abs(M.pixelY)?-M.pixelX*u:-M.pixelY;if(A===0)return!0;g.invert&&(A=-A);let C=e.getTranslate()+A*g.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),k=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),k&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const E={time:ut(),delta:Math.abs(A),direction:Math.sign(A),raw:b};v.length>=2&&v.shift();const I=v.length?v[v.length-1]:void 0;if(v.push(E),I?(E.direction!==I.direction||E.delta>I.delta||E.time>I.time+150)&&f(E):f(E),y(E))return!0}else{const E={time:ut(),delta:Math.abs(A),direction:Math.sign(A)},I=d&&E.time<d.time+500&&E.delta<=d.delta&&E.direction===d.direction;if(!I){d=void 0;let R=e.getTranslate()+A*g.sensitivity;const N=e.isBeginning,F=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(),(!N&&e.isBeginning||!F&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:E.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,v.length>=15&&v.shift();const V=v.length?v[v.length-1]:void 0,L=v[0];if(v.push(E),V&&(E.delta>V.delta||E.direction!==V.direction))v.splice(0);else if(v.length>=15&&E.time-L.time<500&&L.delta-E.delta>=1&&E.delta<=6){const _=A>0?.8:.2;d=E,v.splice(0),s=Rt(()=>{e.slideToClosest(e.params.speed,!0,void 0,_)},0)}s||(s=Rt(()=>{d=E,v.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(I||a("scroll",T),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),g.releaseOnEdges&&(R===e.minTranslate()||R===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function x(b){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[b]("mouseenter",m),T[b]("mouseleave",h),T[b]("wheel",S)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",S),!0):e.mousewheel.enabled?!1:(x("addEventListener"),e.mousewheel.enabled=!0,!0)}function w(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,S),!0):e.mousewheel.enabled?(x("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&w(),e.params.mousewheel.enabled&&p()}),o("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&w()}),Object.assign(e.mousewheel,{enable:p,disable:w})}function oo(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(a=>{if(!i[a]&&i.auto===!0){let l=xt(t.el,`.${o[a]}`)[0];l||(l=jt("div",o[a]),l.className=o[a],t.el.append(l)),i[a]=l,e[a]=l}}),i}function Lt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Qt(t){let{swiper:e,extendParams:i,on:o,emit:a}=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 s,r=0;function d(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function v(p,w){const{bulletActiveClass:b}=e.params.pagination;p&&(p=p[`${w==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${b}-${w}`),p=p[`${w==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${b}-${w}-${w}`)))}function c(p){const w=p.target.closest(Lt(e.params.pagination.bulletClass));if(!w)return;p.preventDefault();const b=Zt(w)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===b)return;e.slideToLoop(b)}else e.slideTo(b)}function m(){const p=e.rtl,w=e.params.pagination;if(d())return;let b=e.pagination.el;b=Tt(b);let T,k;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,O=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(k=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,k=e.previousSnapIndex):(k=e.previousIndex||0,T=e.activeIndex||0),w.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const P=e.pagination.bullets;let A,u,M;if(w.dynamicBullets&&(s=pi(P[0],e.isHorizontal()?"width":"height",!0),b.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${s*(w.dynamicMainBullets+4)}px`}),w.dynamicMainBullets>1&&k!==void 0&&(r+=T-(k||0),r>w.dynamicMainBullets-1?r=w.dynamicMainBullets-1:r<0&&(r=0)),A=Math.max(T-r,0),u=A+(Math.min(P.length,w.dynamicMainBullets)-1),M=(u+A)/2),P.forEach(C=>{const E=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(I=>`${w.bulletActiveClass}${I}`)].map(I=>typeof I=="string"&&I.includes(" ")?I.split(" "):I).flat();C.classList.remove(...E)}),b.length>1)P.forEach(C=>{const E=Zt(C);E===T?C.classList.add(...w.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),w.dynamicBullets&&(E>=A&&E<=u&&C.classList.add(...`${w.bulletActiveClass}-main`.split(" ")),E===A&&v(C,"prev"),E===u&&v(C,"next"))});else{const C=P[T];if(C&&C.classList.add(...w.bulletActiveClass.split(" ")),e.isElement&&P.forEach((E,I)=>{E.setAttribute("part",I===T?"bullet-active":"bullet")}),w.dynamicBullets){const E=P[A],I=P[u];for(let R=A;R<=u;R+=1)P[R]&&P[R].classList.add(...`${w.bulletActiveClass}-main`.split(" "));v(E,"prev"),v(I,"next")}}if(w.dynamicBullets){const C=Math.min(P.length,w.dynamicMainBullets+4),E=(s*C-s)/2-M*s,I=p?"right":"left";P.forEach(R=>{R.style[e.isHorizontal()?I:"top"]=`${E}px`})}}b.forEach((P,A)=>{if(w.type==="fraction"&&(P.querySelectorAll(Lt(w.currentClass)).forEach(u=>{u.textContent=w.formatFractionCurrent(T+1)}),P.querySelectorAll(Lt(w.totalClass)).forEach(u=>{u.textContent=w.formatFractionTotal(O)})),w.type==="progressbar"){let u;w.progressbarOpposite?u=e.isHorizontal()?"vertical":"horizontal":u=e.isHorizontal()?"horizontal":"vertical";const M=(T+1)/O;let C=1,E=1;u==="horizontal"?C=M:E=M,P.querySelectorAll(Lt(w.progressbarFillClass)).forEach(I=>{I.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${E})`,I.style.transitionDuration=`${e.params.speed}ms`})}w.type==="custom"&&w.renderCustom?(P.innerHTML=w.renderCustom(e,T+1,O),A===0&&a("paginationRender",P)):(A===0&&a("paginationRender",P),a("paginationUpdate",P)),e.params.watchOverflow&&e.enabled&&P.classList[e.isLocked?"add":"remove"](w.lockClass)})}function h(){const p=e.params.pagination;if(d())return;const w=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let b=e.pagination.el;b=Tt(b);let T="";if(p.type==="bullets"){let k=e.params.loop?Math.ceil(w/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&k>w&&(k=w);for(let g=0;g<k;g+=1)p.renderBullet?T+=p.renderBullet.call(e,g,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=[],b.forEach(k=>{p.type!=="custom"&&(k.innerHTML=T||""),p.type==="bullets"&&e.pagination.bullets.push(...k.querySelectorAll(Lt(p.bulletClass)))}),p.type!=="custom"&&a("paginationRender",b[0])}function f(){e.params.pagination=oo(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let w;typeof p.el=="string"&&e.isElement&&(w=e.el.querySelector(p.el)),!w&&typeof p.el=="string"&&(w=[...document.querySelectorAll(p.el)]),w||(w=p.el),!(!w||w.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(w)&&w.length>1&&(w=[...e.el.querySelectorAll(p.el)],w.length>1&&(w=w.filter(b=>io(b,".swiper")[0]===e.el)[0])),Array.isArray(w)&&w.length===1&&(w=w[0]),Object.assign(e.pagination,{el:w}),w=Tt(w),w.forEach(b=>{p.type==="bullets"&&p.clickable&&b.classList.add(...(p.clickableClass||"").split(" ")),b.classList.add(p.modifierClass+p.type),b.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(b.classList.add(`${p.modifierClass}${p.type}-dynamic`),r=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&b.classList.add(p.progressbarOppositeClass),p.clickable&&b.addEventListener("click",c),e.enabled||b.classList.add(p.lockClass)}))}function y(){const p=e.params.pagination;if(d())return;let w=e.pagination.el;w&&(w=Tt(w),w.forEach(b=>{b.classList.remove(p.hiddenClass),b.classList.remove(p.modifierClass+p.type),b.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(b.classList.remove(...(p.clickableClass||"").split(" ")),b.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(b=>b.classList.remove(...p.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:w}=e.pagination;w=Tt(w),w.forEach(b=>{b.classList.remove(p.horizontalClass,p.verticalClass),b.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?x():(f(),h(),m())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&m()}),o("snapIndexChange",()=>{m()}),o("snapGridLengthChange",()=>{h(),m()}),o("destroy",()=>{y()}),o("enable disable",()=>{let{el:p}=e.pagination;p&&(p=Tt(p),p.forEach(w=>w.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{m()}),o("click",(p,w)=>{const b=w.target,T=Tt(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&T&&T.length>0&&!b.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&b===e.navigation.nextEl||e.navigation.prevEl&&b===e.navigation.prevEl))return;const k=T[0].classList.contains(e.params.pagination.hiddenClass);a(k===!0?"paginationShow":"paginationHide"),T.forEach(g=>g.classList.toggle(e.params.pagination.hiddenClass))}});const S=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Tt(p),p.forEach(w=>w.classList.remove(e.params.pagination.paginationDisabledClass))),f(),h(),m()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Tt(p),p.forEach(w=>w.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:S,disable:x,render:h,update:m,init:f,destroy:y})}function Cn(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=bt();let s=!1,r=null,d=null,v,c,m,h;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:E}=e,{dragEl:I,el:R}=C,N=e.params.scrollbar,F=e.params.loop?e.progressLoop:e.progress;let V=c,L=(m-c)*F;E?(L=-L,L>0?(V=c-L,L=0):-L+c>m&&(V=m+L)):L<0?(V=c+L,L=0):L+c>m&&(V=m-L),e.isHorizontal()?(I.style.transform=`translate3d(${L}px, 0, 0)`,I.style.width=`${V}px`):(I.style.transform=`translate3d(0px, ${L}px, 0)`,I.style.height=`${V}px`),N.hide&&(clearTimeout(r),R.style.opacity=1,r=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 S(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:E,el:I}=C;E.style.width="",E.style.height="",m=e.isHorizontal()?I.offsetWidth:I.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=m*h:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?E.style.width=`${c}px`:E.style.height=`${c}px`,h>=1?I.style.display="none":I.style.display="",e.params.scrollbar.hide&&(I.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function x(C){return e.isHorizontal()?C.clientX:C.clientY}function p(C){const{scrollbar:E,rtlTranslate:I}=e,{el:R}=E;let N;N=(x(C)-xn(R)[e.isHorizontal()?"left":"top"]-(v!==null?v:c/2))/(m-c),N=Math.max(Math.min(N,1),0),I&&(N=1-N);const F=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*N;e.updateProgress(F),e.setTranslate(F),e.updateActiveIndex(),e.updateSlidesClasses()}function w(C){const E=e.params.scrollbar,{scrollbar:I,wrapperEl:R}=e,{el:N,dragEl:F}=I;s=!0,v=C.target===F?x(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),R.style.transitionDuration="100ms",F.style.transitionDuration="100ms",p(C),clearTimeout(d),N.style.transitionDuration="0ms",E.hide&&(N.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",C)}function b(C){const{scrollbar:E,wrapperEl:I}=e,{el:R,dragEl:N}=E;s&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,p(C),I.style.transitionDuration="0ms",R.style.transitionDuration="0ms",N.style.transitionDuration="0ms",a("scrollbarDragMove",C))}function T(C){const E=e.params.scrollbar,{scrollbar:I,wrapperEl:R}=e,{el:N}=I;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",R.style.transitionDuration=""),E.hide&&(clearTimeout(d),d=Rt(()=>{N.style.opacity=0,N.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",C),E.snapOnRelease&&e.slideToClosest())}function k(C){const{scrollbar:E,params:I}=e,R=E.el;if(!R)return;const N=R,F=I.passiveListeners?{passive:!1,capture:!1}:!1,V=I.passiveListeners?{passive:!0,capture:!1}:!1;if(!N)return;const L=C==="on"?"addEventListener":"removeEventListener";N[L]("pointerdown",w,F),l[L]("pointermove",b,F),l[L]("pointerup",T,V)}function g(){!e.params.scrollbar.el||!e.scrollbar.el||k("on")}function O(){!e.params.scrollbar.el||!e.scrollbar.el||k("off")}function P(){const{scrollbar:C,el:E}=e;e.params.scrollbar=oo(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const I=e.params.scrollbar;if(!I.el)return;let R;if(typeof I.el=="string"&&e.isElement&&(R=e.el.querySelector(I.el)),!R&&typeof I.el=="string"){if(R=l.querySelectorAll(I.el),!R.length)return}else R||(R=I.el);e.params.uniqueNavElements&&typeof I.el=="string"&&R.length>1&&E.querySelectorAll(I.el).length===1&&(R=E.querySelector(I.el)),R.length>0&&(R=R[0]),R.classList.add(e.isHorizontal()?I.horizontalClass:I.verticalClass);let N;R&&(N=R.querySelector(Lt(e.params.scrollbar.dragClass)),N||(N=jt("div",e.params.scrollbar.dragClass),R.append(N))),Object.assign(C,{el:R,dragEl:N}),I.draggable&&g(),R&&R.classList[e.enabled?"remove":"add"](...Pt(e.params.scrollbar.lockClass))}function A(){const C=e.params.scrollbar,E=e.scrollbar.el;E&&E.classList.remove(...Pt(e.isHorizontal()?C.horizontalClass:C.verticalClass)),O()}o("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:E}=e.scrollbar;E=Tt(E),E.forEach(I=>{I.classList.remove(C.horizontalClass,C.verticalClass),I.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),o("init",()=>{e.params.scrollbar.enabled===!1?M():(P(),S(),f())}),o("update resize observerUpdate lock unlock changeDirection",()=>{S()}),o("setTranslate",()=>{f()}),o("setTransition",(C,E)=>{y(E)}),o("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...Pt(e.params.scrollbar.lockClass))}),o("destroy",()=>{A()});const u=()=>{e.el.classList.remove(...Pt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Pt(e.params.scrollbar.scrollbarDisabledClass)),P(),S(),f()},M=()=>{e.el.classList.add(...Pt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Pt(e.params.scrollbar.scrollbarDisabledClass)),A()};Object.assign(e.scrollbar,{enable:u,disable:M,updateSize:S,setTranslate:f,init:P,destroy:A})}function $t(t){let{swiper:e,extendParams:i,on:o,emit:a,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 s,r,d=l&&l.autoplay?l.autoplay.delay:3e3,v=l&&l.autoplay?l.autoplay.delay:3e3,c,m=new Date().getTime(),h,f,y,S,x,p,w;function b(V){!e||e.destroyed||!e.wrapperEl||V.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),!(w||V.detail&&V.detail.bySwiperTouchMove)&&u())}const T=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(v=c,h=!1);const V=e.autoplay.paused?c:m+v-new Date().getTime();e.autoplay.timeLeft=V,a("autoplayTimeLeft",V,V/d),r=requestAnimationFrame(()=>{T()})},k=()=>{let V;return e.virtual&&e.params.virtual.enabled?V=e.slides.filter(_=>_.classList.contains("swiper-slide-active"))[0]:V=e.slides[e.activeIndex],V?parseInt(V.getAttribute("data-swiper-autoplay"),10):void 0},g=V=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(r),T();let L=typeof V>"u"?e.params.autoplay.delay:V;d=e.params.autoplay.delay,v=e.params.autoplay.delay;const _=k();!Number.isNaN(_)&&_>0&&typeof V>"u"&&(L=_,d=_,v=_),c=L;const B=e.params.speed,W=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(B,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,B,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(B,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,B,!0,!0),a("autoplay")),e.params.cssMode&&(m=new Date().getTime(),requestAnimationFrame(()=>{g()})))};return L>0?(clearTimeout(s),s=setTimeout(()=>{W()},L)):requestAnimationFrame(()=>{W()}),L},O=()=>{m=new Date().getTime(),e.autoplay.running=!0,g(),a("autoplayStart")},P=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(r),a("autoplayStop")},A=(V,L)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),V||(p=!0);const _=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):u()};if(e.autoplay.paused=!0,L){x&&(c=e.params.autoplay.delay),x=!1,_();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-m),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),_())},u=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(m=new Date().getTime(),p?(p=!1,g(c)):g(),e.autoplay.paused=!1,a("autoplayResume"))},M=()=>{if(e.destroyed||!e.autoplay.running)return;const V=bt();V.visibilityState==="hidden"&&(p=!0,A(!0)),V.visibilityState==="visible"&&u()},C=V=>{V.pointerType==="mouse"&&(p=!0,w=!0,!(e.animating||e.autoplay.paused)&&A(!0))},E=V=>{V.pointerType==="mouse"&&(w=!1,e.autoplay.paused&&u())},I=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",E))},R=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",E))},N=()=>{bt().addEventListener("visibilitychange",M)},F=()=>{bt().removeEventListener("visibilitychange",M)};o("init",()=>{e.params.autoplay.enabled&&(I(),N(),O())}),o("destroy",()=>{R(),F(),e.autoplay.running&&P()}),o("_freeModeStaticRelease",()=>{(y||p)&&u()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?P():A(!0,!0)}),o("beforeTransitionStart",(V,L,_)=>{e.destroyed||!e.autoplay.running||(_||!e.params.autoplay.disableOnInteraction?A(!0,!0):P())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){P();return}f=!0,y=!1,p=!1,S=setTimeout(()=>{p=!0,y=!0,A(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(S),clearTimeout(s),e.params.autoplay.disableOnInteraction){y=!1,f=!1;return}y&&e.params.cssMode&&u(),y=!1,f=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(x=!0)}),Object.assign(e.autoplay,{start:O,stop:P,pause:A,resume:u})}function In(t){let{swiper:e,extendParams:i,emit:o,once:a}=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 d=e.getTranslate();e.setTranslate(d),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:d,touches:v}=e;d.velocities.length===0&&d.velocities.push({position:v[e.isHorizontal()?"startX":"startY"],time:d.touchStartTime}),d.velocities.push({position:v[e.isHorizontal()?"currentX":"currentY"],time:ut()})}function r(d){let{currentPos:v}=d;if(e.params.cssMode)return;const{params:c,wrapperEl:m,rtlTranslate:h,snapGrid:f,touchEventsData:y}=e,x=ut()-y.touchStartTime;if(v<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(v>-e.maxTranslate()){e.slides.length<f.length?e.slideTo(f.length-1):e.slideTo(e.slides.length-1);return}if(c.freeMode.momentum){if(y.velocities.length>1){const P=y.velocities.pop(),A=y.velocities.pop(),u=P.position-A.position,M=P.time-A.time;e.velocity=u/M,e.velocity/=2,Math.abs(e.velocity)<c.freeMode.minimumVelocity&&(e.velocity=0),(M>150||ut()-P.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 w=e.velocity*p;let b=e.translate+w;h&&(b=-b);let T=!1,k;const g=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let O;if(b<e.maxTranslate())c.freeMode.momentumBounce?(b+e.maxTranslate()<-g&&(b=e.maxTranslate()-g),k=e.maxTranslate(),T=!0,y.allowMomentumBounce=!0):b=e.maxTranslate(),c.loop&&c.centeredSlides&&(O=!0);else if(b>e.minTranslate())c.freeMode.momentumBounce?(b-e.minTranslate()>g&&(b=e.minTranslate()+g),k=e.minTranslate(),T=!0,y.allowMomentumBounce=!0):b=e.minTranslate(),c.loop&&c.centeredSlides&&(O=!0);else if(c.freeMode.sticky){let P;for(let A=0;A<f.length;A+=1)if(f[A]>-b){P=A;break}Math.abs(f[P]-b)<Math.abs(f[P-1]-b)||e.swipeDirection==="next"?b=f[P]:b=f[P-1],b=-b}if(O&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?p=Math.abs((-b-e.translate)/e.velocity):p=Math.abs((b-e.translate)/e.velocity),c.freeMode.sticky){const P=Math.abs((h?-b:b)-e.translate),A=e.slidesSizesGrid[e.activeIndex];P<A?p=c.speed:P<2*A?p=c.speed*1.5:p=c.speed*2.5}}else if(c.freeMode.sticky){e.slideToClosest();return}c.freeMode.momentumBounce&&T?(e.updateProgress(k),e.setTransition(p),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating=!0,vi(m,()=>{!e||e.destroyed||!y.allowMomentumBounce||(o("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(k),vi(m,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(b),e.setTransition(p),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,vi(m,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(b),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&o("_freeModeNoMomentumRelease");(!c.freeMode.momentum||x>=c.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:s,onTouchEnd:r}})}let mi;function kn(){const t=et(),e=bt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function no(){return mi||(mi=kn()),mi}let fi;function _n(t){let{userAgent:e}=t===void 0?{}:t;const i=no(),o=et(),a=o.navigator.platform,l=e||o.navigator.userAgent,s={ios:!1,android:!1},r=o.screen.width,d=o.screen.height,v=l.match(/(Android);?[\s\/]+([\d.]+)?/);let c=l.match(/(iPad).*OS\s([\d_]+)/);const m=l.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=a==="Win32";let y=a==="MacIntel";const S=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&y&&i.touch&&S.indexOf(`${r}x${d}`)>=0&&(c=l.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),y=!1),v&&!f&&(s.os="android",s.android=!0),(c||h||m)&&(s.os="ios",s.ios=!0),s}function lo(t){return t===void 0&&(t={}),fi||(fi=_n(t)),fi}let hi;function Pn(){const t=et(),e=lo();let i=!1;function o(){const r=t.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(o()){const r=String(t.navigator.userAgent);if(r.includes("Version/")){const[d,v]=r.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));i=d<16||d===16&&v<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),s=l||a&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function Dn(){return hi||(hi=Pn()),hi}function Mn(t){let{swiper:e,on:i,emit:o}=t;const a=et();let l=null,s=null;const r=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},d=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(m=>{s=a.requestAnimationFrame(()=>{const{width:h,height:f}=e;let y=h,S=f;m.forEach(x=>{let{contentBoxSize:p,contentRect:w,target:b}=x;b&&b!==e.el||(y=w?w.width:(p[0]||p).inlineSize,S=w?w.height:(p[0]||p).blockSize)}),(y!==h||S!==f)&&r()})}),l.observe(e.el))},v=()=>{s&&a.cancelAnimationFrame(s),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},c=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){d();return}a.addEventListener("resize",r),a.addEventListener("orientationchange",c)}),i("destroy",()=>{v(),a.removeEventListener("resize",r),a.removeEventListener("orientationchange",c)})}function On(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=[],s=et(),r=function(c,m){m===void 0&&(m={});const h=s.MutationObserver||s.WebkitMutationObserver,f=new h(y=>{if(e.__preventObserver__)return;if(y.length===1){a("observerUpdate",y[0]);return}const S=function(){a("observerUpdate",y[0])};s.requestAnimationFrame?s.requestAnimationFrame(S):s.setTimeout(S,0)});f.observe(c,{attributes:typeof m.attributes>"u"?!0:m.attributes,childList:typeof m.childList>"u"?!0:m.childList,characterData:typeof m.characterData>"u"?!0:m.characterData}),l.push(f)},d=()=>{if(e.params.observer){if(e.params.observeParents){const c=io(e.hostEl);for(let m=0;m<c.length;m+=1)r(c[m])}r(e.hostEl,{childList:e.params.observeSlideChildren}),r(e.wrapperEl,{attributes:!1})}},v=()=>{l.forEach(c=>{c.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",d),o("destroy",v)}var Rn={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const a=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][a](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function a(){o.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var l=arguments.length,s=new Array(l),r=0;r<l;r++)s[r]=arguments[r];e.apply(o,s)}return a.__emitterProxy=e,o.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const o=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[o](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(o=>{typeof e>"u"?i.eventsListeners[o]=[]:i.eventsListeners[o]&&i.eventsListeners[o].forEach((a,l)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[o].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,o;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),o=t):(e=l[0].events,i=l[0].data,o=l[0].context||t),i.unshift(o),(Array.isArray(e)?e:e.split(" ")).forEach(d=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(v=>{v.apply(o,[d,...i])}),t.eventsListeners&&t.eventsListeners[d]&&t.eventsListeners[d].forEach(v=>{v.apply(o,i)})}),t}};function Ln(){const t=this;let e,i;const o=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=o.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=o.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(Dt(o,"padding-left")||0,10)-parseInt(Dt(o,"padding-right")||0,10),i=i-parseInt(Dt(o,"padding-top")||0,10)-parseInt(Dt(o,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Bn(){const t=this;function e(u,M){return parseFloat(u.getPropertyValue(t.getDirectionLabel(M))||0)}const i=t.params,{wrapperEl:o,slidesEl:a,size:l,rtlTranslate:s,wrongRTL:r}=t,d=t.virtual&&i.virtual.enabled,v=d?t.virtual.slides.length:t.slides.length,c=xt(a,`.${t.params.slideClass}, swiper-slide`),m=d?t.virtual.slides.length:c.length;let h=[];const f=[],y=[];let S=i.slidesOffsetBefore;typeof S=="function"&&(S=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,w=t.slidesGrid.length;let b=i.spaceBetween,T=-S,k=0,g=0;if(typeof l>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*l:typeof b=="string"&&(b=parseFloat(b)),t.virtualSize=-b,c.forEach(u=>{s?u.style.marginLeft="":u.style.marginRight="",u.style.marginBottom="",u.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(qt(o,"--swiper-centered-offset-before",""),qt(o,"--swiper-centered-offset-after",""));const O=i.grid&&i.grid.rows>1&&t.grid;O?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let P;const A=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(u=>typeof i.breakpoints[u].slidesPerView<"u").length>0;for(let u=0;u<m;u+=1){P=0;let M;if(c[u]&&(M=c[u]),O&&t.grid.updateSlide(u,M,c),!(c[u]&&Dt(M,"display")==="none")){if(i.slidesPerView==="auto"){A&&(c[u].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(M),E=M.style.transform,I=M.style.webkitTransform;if(E&&(M.style.transform="none"),I&&(M.style.webkitTransform="none"),i.roundLengths)P=t.isHorizontal()?pi(M,"width",!0):pi(M,"height",!0);else{const R=e(C,"width"),N=e(C,"padding-left"),F=e(C,"padding-right"),V=e(C,"margin-left"),L=e(C,"margin-right"),_=C.getPropertyValue("box-sizing");if(_&&_==="border-box")P=R+V+L;else{const{clientWidth:B,offsetWidth:W}=M;P=R+N+F+V+L+(W-B)}}E&&(M.style.transform=E),I&&(M.style.webkitTransform=I),i.roundLengths&&(P=Math.floor(P))}else P=(l-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(P=Math.floor(P)),c[u]&&(c[u].style[t.getDirectionLabel("width")]=`${P}px`);c[u]&&(c[u].swiperSlideSize=P),y.push(P),i.centeredSlides?(T=T+P/2+k/2+b,k===0&&u!==0&&(T=T-l/2-b),u===0&&(T=T-l/2-b),Math.abs(T)<1/1e3&&(T=0),i.roundLengths&&(T=Math.floor(T)),g%i.slidesPerGroup===0&&h.push(T),f.push(T)):(i.roundLengths&&(T=Math.floor(T)),(g-Math.min(t.params.slidesPerGroupSkip,g))%t.params.slidesPerGroup===0&&h.push(T),f.push(T),T=T+P+b),t.virtualSize+=P+b,k=P,g+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+x,s&&r&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+b}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+b}px`),O&&t.grid.updateWrapperSize(P,h),!i.centeredSlides){const u=[];for(let M=0;M<h.length;M+=1){let C=h[M];i.roundLengths&&(C=Math.floor(C)),h[M]<=t.virtualSize-l&&u.push(C)}h=u,Math.floor(t.virtualSize-l)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-l)}if(d&&i.loop){const u=y[0]+b;if(i.slidesPerGroup>1){const M=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=u*i.slidesPerGroup;for(let E=0;E<M;E+=1)h.push(h[h.length-1]+C)}for(let M=0;M<t.virtual.slidesBefore+t.virtual.slidesAfter;M+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+u),f.push(f[f.length-1]+u),t.virtualSize+=u}if(h.length===0&&(h=[0]),b!==0){const u=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");c.filter((M,C)=>!i.cssMode||i.loop?!0:C!==c.length-1).forEach(M=>{M.style[u]=`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let u=0;y.forEach(C=>{u+=C+(b||0)}),u-=b;const M=u-l;h=h.map(C=>C<=0?-S:C>M?M+x:C)}if(i.centerInsufficientSlides){let u=0;y.forEach(C=>{u+=C+(b||0)}),u-=b;const M=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(u+M<l){const C=(l-u-M)/2;h.forEach((E,I)=>{h[I]=E-C}),f.forEach((E,I)=>{f[I]=E+C})}}if(Object.assign(t,{slides:c,snapGrid:h,slidesGrid:f,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){qt(o,"--swiper-centered-offset-before",`${-h[0]}px`),qt(o,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const u=-t.snapGrid[0],M=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+u),t.slidesGrid=t.slidesGrid.map(C=>C+M)}if(m!==v&&t.emit("slidesLengthChange"),h.length!==p&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==w&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!d&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const u=`${i.containerModifierClass}backface-hidden`,M=t.el.classList.contains(u);m<=i.maxBackfaceHiddenSlides?M||t.el.classList.add(u):M&&t.el.classList.remove(u)}}function Nn(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let a=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=r=>o?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&&!o)break;i.push(s(r))}else i.push(s(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const r=i[l].offsetHeight;a=r>a?r:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function Fn(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let o=0;o<e.length;o+=1)e[o].swiperSlideOffset=(t.isHorizontal()?e[o].offsetLeft:e[o].offsetTop)-i-t.cssOverflowAdjustment()}const ao=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function jn(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:a,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),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 d=0;d<o.length;d+=1){const v=o[d];let c=v.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=o[0].swiperSlideOffset);const m=(s+(i.centeredSlides?e.minTranslate():0)-c)/(v.swiperSlideSize+r),h=(s-l[0]+(i.centeredSlides?e.minTranslate():0)-c)/(v.swiperSlideSize+r),f=-(s-c),y=f+e.slidesSizesGrid[d],S=f>=0&&f<=e.size-e.slidesSizesGrid[d],x=f>=0&&f<e.size-1||y>1&&y<=e.size||f<=0&&y>=e.size;x&&(e.visibleSlides.push(v),e.visibleSlidesIndexes.push(d)),ao(v,x,i.slideVisibleClass),ao(v,S,i.slideFullyVisibleClass),v.progress=a?-m:m,v.originalProgress=a?-h:h}}function Vn(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,o=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:l,isEnd:s,progressLoop:r}=e;const d=l,v=s;if(o===0)a=0,l=!0,s=!0;else{a=(t-e.minTranslate())/o;const c=Math.abs(t-e.minTranslate())<1,m=Math.abs(t-e.maxTranslate())<1;l=c||a<=0,s=m||a>=1,c&&(a=0),m&&(a=1)}if(i.loop){const c=e.getSlideIndexByData(0),m=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[c],f=e.slidesGrid[m],y=e.slidesGrid[e.slidesGrid.length-1],S=Math.abs(t);S>=h?r=(S-h)/y:r=(S+y-f)/y,r>1&&(r-=1)}Object.assign(e,{progress:a,progressLoop:r,isBeginning:l,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!d&&e.emit("reachBeginning toEdge"),s&&!v&&e.emit("reachEnd toEdge"),(d&&!l||v&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const gi=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function zn(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:a}=t,l=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,r=m=>xt(o,`.${i.slideClass}${m}, swiper-slide${m}`)[0];let d,v,c;if(l)if(i.loop){let m=a-t.virtual.slidesBefore;m<0&&(m=t.virtual.slides.length+m),m>=t.virtual.slides.length&&(m-=t.virtual.slides.length),d=r(`[data-swiper-slide-index="${m}"]`)}else d=r(`[data-swiper-slide-index="${a}"]`);else s?(d=e.filter(m=>m.column===a)[0],c=e.filter(m=>m.column===a+1)[0],v=e.filter(m=>m.column===a-1)[0]):d=e[a];d&&(s||(c=En(d,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c&&(c=e[0]),v=Tn(d,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!v===0&&(v=e[e.length-1]))),e.forEach(m=>{gi(m,m===d,i.slideActiveClass),gi(m,m===c,i.slideNextClass),gi(m,m===v,i.slidePrevClass)}),t.emitSlidesClasses()}const ei=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,o=e.closest(i());if(o){let a=o.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(o.shadowRoot?a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},bi=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},yi=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const o=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,r=[s-e];r.push(...Array.from({length:e}).map((d,v)=>s+o+v)),t.slides.forEach((d,v)=>{r.includes(d.column)&&bi(t,v)});return}const l=a+o-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=l+e;s+=1){const r=(s%i+i)%i;(r<a||r>l)&&bi(t,r)}else for(let s=Math.max(a-e,0);s<=Math.min(l+e,i-1);s+=1)s!==a&&(s>l||s<a)&&bi(t,s)};function Hn(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let a;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?o>=e[l]&&o<e[l+1]-(e[l+1]-e[l])/2?a=l:o>=e[l]&&o<e[l+1]&&(a=l+1):o>=e[l]&&(a=l);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Gn(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:a,activeIndex:l,realIndex:s,snapIndex:r}=e;let d=t,v;const c=f=>{let y=f-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof d>"u"&&(d=Hn(e)),o.indexOf(i)>=0)v=o.indexOf(i);else{const f=Math.min(a.slidesPerGroupSkip,d);v=f+Math.floor((d-f)/a.slidesPerGroup)}if(v>=o.length&&(v=o.length-1),d===l&&!e.params.loop){v!==r&&(e.snapIndex=v,e.emit("snapIndexChange"));return}if(d===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=c(d);return}const m=e.grid&&a.grid&&a.grid.rows>1;let h;if(e.virtual&&a.virtual.enabled&&a.loop)h=c(d);else if(m){const f=e.slides.filter(S=>S.column===d)[0];let y=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(f),0)),h=Math.floor(y/a.grid.rows)}else if(e.slides[d]){const f=e.slides[d].getAttribute("data-swiper-slide-index");f?h=parseInt(f,10):h=d}else h=d;Object.assign(e,{previousSnapIndex:r,snapIndex:v,previousRealIndex:s,realIndex:h,previousIndex:l,activeIndex:d}),e.initialized&&yi(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function Un(t,e){const i=this,o=i.params;let a=t.closest(`.${o.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(r=>{!a&&r.matches&&r.matches(`.${o.slideClass}, swiper-slide`)&&(a=r)});let l=!1,s;if(a){for(let r=0;r<i.slides.length;r+=1)if(i.slides[r]===a){l=!0,s=r;break}}if(a&&l)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Wn={updateSize:Ln,updateSlides:Bn,updateAutoHeight:Nn,updateSlidesOffset:Fn,updateSlidesProgress:jn,updateProgress:Vn,updateSlidesClasses:zn,updateActiveIndex:Gn,updateClickedSlide:Un};function Yn(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:a,wrapperEl:l}=e;if(i.virtualTranslate)return o?-a:a;if(i.cssMode)return a;let s=wn(l,t);return s+=e.cssOverflowAdjustment(),o&&(s=-s),s||0}function Xn(t,e){const i=this,{rtlTranslate:o,params:a,wrapperEl:l,progress:s}=i;let r=0,d=0;const v=0;i.isHorizontal()?r=o?-t:t:d=t,a.roundLengths&&(r=Math.floor(r),d=Math.floor(d)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?r:d,a.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-r:-d:a.virtualTranslate||(i.isHorizontal()?r-=i.cssOverflowAdjustment():d-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${r}px, ${d}px, ${v}px)`);let c;const m=i.maxTranslate()-i.minTranslate();m===0?c=0:c=(t-i.minTranslate())/m,c!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Jn(){return-this.snapGrid[0]}function qn(){return-this.snapGrid[this.snapGrid.length-1]}function Kn(t,e,i,o,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),o===void 0&&(o=!0);const l=this,{params:s,wrapperEl:r}=l;if(l.animating&&s.preventInteractionOnTransition)return!1;const d=l.minTranslate(),v=l.maxTranslate();let c;if(o&&t>d?c=d:o&&t<v?c=v:c=t,l.updateProgress(c),s.cssMode){const m=l.isHorizontal();if(e===0)r[m?"scrollLeft":"scrollTop"]=-c;else{if(!l.support.smoothScroll)return to({swiper:l,targetPosition:-c,side:m?"left":"top"}),!0;r.scrollTo({[m?"left":"top"]:-c,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(c),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(c),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(h){!l||l.destroyed||h.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var Zn={getTranslate:Yn,setTranslate:Xn,minTranslate:Jn,maxTranslate:qn,translateTo:Kn};function Qn(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function so(t){let{swiper:e,runCallbacks:i,direction:o,step:a}=t;const{activeIndex:l,previousIndex:s}=e;let r=o;if(r||(l>s?r="next":l<s?r="prev":r="reset"),e.emit(`transition${a}`),i&&l!==s){if(r==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),r==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function $n(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),so({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function el(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),so({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var tl={setTransition:Qn,transitionStart:$n,transitionEnd:el};function il(t,e,i,o,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let s=t;s<0&&(s=0);const{params:r,snapGrid:d,slidesGrid:v,previousIndex:c,activeIndex:m,rtlTranslate:h,wrapperEl:f,enabled:y}=l;if(!y&&!o&&!a||l.destroyed||l.animating&&r.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const S=Math.min(l.params.slidesPerGroupSkip,s);let x=S+Math.floor((s-S)/l.params.slidesPerGroup);x>=d.length&&(x=d.length-1);const p=-d[x];if(r.normalizeSlideIndex)for(let b=0;b<v.length;b+=1){const T=-Math.floor(p*100),k=Math.floor(v[b]*100),g=Math.floor(v[b+1]*100);typeof v[b+1]<"u"?T>=k&&T<g-(g-k)/2?s=b:T>=k&&T<g&&(s=b+1):T>=k&&(s=b)}if(l.initialized&&s!==m&&(!l.allowSlideNext&&(h?p>l.translate&&p>l.minTranslate():p<l.translate&&p<l.minTranslate())||!l.allowSlidePrev&&p>l.translate&&p>l.maxTranslate()&&(m||0)!==s))return!1;s!==(c||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(p);let w;if(s>m?w="next":s<m?w="prev":w="reset",h&&-p===l.translate||!h&&p===l.translate)return l.updateActiveIndex(s),r.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),r.effect!=="slide"&&l.setTranslate(p),w!=="reset"&&(l.transitionStart(i,w),l.transitionEnd(i,w)),!1;if(r.cssMode){const b=l.isHorizontal(),T=h?p:-p;if(e===0){const k=l.virtual&&l.params.virtual.enabled;k&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),k&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[b?"scrollLeft":"scrollTop"]=T})):f[b?"scrollLeft":"scrollTop"]=T,k&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return to({swiper:l,targetPosition:T,side:b?"left":"top"}),!0;f.scrollTo({[b?"left":"top"]:T,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(p),l.updateActiveIndex(s),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,o),l.transitionStart(i,w),e===0?l.transitionEnd(i,w):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,w))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function ol(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const l=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let r;if(l){const h=s*a.params.grid.rows;r=a.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else r=a.getSlideIndexByData(s);const d=l?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:v}=a.params;let c=a.params.slidesPerView;c==="auto"?c=a.slidesPerViewDynamic():(c=Math.ceil(parseFloat(a.params.slidesPerView,10)),v&&c%2===0&&(c=c+1));let m=d-r<c;if(v&&(m=m||r<Math.ceil(c/2)),o&&v&&a.params.slidesPerView!=="auto"&&!l&&(m=!1),m){const h=v?r<a.activeIndex?"prev":"next":r-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?r+1:r-d+1,slideRealIndex:h==="next"?a.realIndex:void 0})}if(l){const h=s*a.params.grid.rows;s=a.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,o)}),a}function nl(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:a,params:l,animating:s}=o;if(!a||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let r=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(r=Math.max(o.slidesPerViewDynamic("current",!0),1));const d=o.activeIndex<l.slidesPerGroupSkip?1:r,v=o.virtual&&l.virtual.enabled;if(l.loop){if(s&&!v&&l.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+d,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+d,t,e,i)}function ll(t,e,i){e===void 0&&(e=!0);const o=this,{params:a,snapGrid:l,slidesGrid:s,rtlTranslate:r,enabled:d,animating:v}=o;if(!d||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const c=o.virtual&&a.virtual.enabled;if(a.loop){if(v&&!c&&a.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const m=r?o.translate:-o.translate;function h(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const f=h(m),y=l.map(p=>h(p));let S=l[y.indexOf(f)-1];if(typeof S>"u"&&a.cssMode){let p;l.forEach((w,b)=>{f>=w&&(p=b)}),typeof p<"u"&&(S=l[p>0?p-1:p])}let x=0;if(typeof S<"u"&&(x=s.indexOf(S),x<0&&(x=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(x=x-o.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),a.rewind&&o.isBeginning){const p=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(p,t,e,i)}else if(a.loop&&o.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{o.slideTo(x,t,e,i)}),!0;return o.slideTo(x,t,e,i)}function al(t,e,i){e===void 0&&(e=!0);const o=this;if(!o.destroyed)return typeof t>"u"&&(t=o.params.speed),o.slideTo(o.activeIndex,t,e,i)}function sl(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let l=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,l),r=s+Math.floor((l-s)/a.params.slidesPerGroup),d=a.rtlTranslate?a.translate:-a.translate;if(d>=a.snapGrid[r]){const v=a.snapGrid[r],c=a.snapGrid[r+1];d-v>(c-v)*o&&(l+=a.params.slidesPerGroup)}else{const v=a.snapGrid[r-1],c=a.snapGrid[r];d-v<=(c-v)*o&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,t,e,i)}function rl(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,l;const s=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?a<t.loopedSlides-o/2||a>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),a=t.getSlideIndex(xt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),Rt(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-o?(t.loopFix(),a=t.getSlideIndex(xt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),Rt(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var dl={slideTo:il,slideToLoop:ol,slideNext:nl,slidePrev:ll,slideReset:al,slideToClosest:sl,slideToClickedSlide:rl};function cl(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{xt(o,`.${i.slideClass}, swiper-slide`).forEach((m,h)=>{m.setAttribute("data-swiper-slide-index",h)})},l=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(l?i.grid.rows:1),r=e.slides.length%s!==0,d=l&&e.slides.length%i.grid.rows!==0,v=c=>{for(let m=0;m<c;m+=1){const h=e.isElement?jt("swiper-slide",[i.slideBlankClass]):jt("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(r){if(i.loopAddBlankSlides){const c=s-e.slides.length%s;v(c),e.recalcSlides(),e.updateSlides()}else Kt("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(d){if(i.loopAddBlankSlides){const c=i.grid.rows-e.slides.length%i.grid.rows;v(c),e.recalcSlides(),e.updateSlides()}else Kt("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function ul(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:a,activeSlideIndex:l,byController:s,byMousewheel:r}=t===void 0?{}:t;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:v,allowSlidePrev:c,allowSlideNext:m,slidesEl:h,params:f}=d,{centeredSlides:y}=f;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&f.virtual.enabled){i&&(!f.centeredSlides&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):f.centeredSlides&&d.snapIndex<f.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=c,d.allowSlideNext=m,d.emit("loopFix");return}let S=f.slidesPerView;S==="auto"?S=d.slidesPerViewDynamic():(S=Math.ceil(parseFloat(f.slidesPerView,10)),y&&S%2===0&&(S=S+1));const x=f.slidesPerGroupAuto?S:f.slidesPerGroup;let p=x;p%x!==0&&(p+=x-p%x),p+=f.loopAdditionalSlides,d.loopedSlides=p;const w=d.grid&&f.grid&&f.grid.rows>1;v.length<S+p?Kt("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):w&&f.grid.fill==="row"&&Kt("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],T=[];let k=d.activeIndex;typeof l>"u"?l=d.getSlideIndex(v.filter(E=>E.classList.contains(f.slideActiveClass))[0]):k=l;const g=o==="next"||!o,O=o==="prev"||!o;let P=0,A=0;const u=w?Math.ceil(v.length/f.grid.rows):v.length,C=(w?v[l].column:l)+(y&&typeof a>"u"?-S/2+.5:0);if(C<p){P=Math.max(p-C,x);for(let E=0;E<p-C;E+=1){const I=E-Math.floor(E/u)*u;if(w){const R=u-I-1;for(let N=v.length-1;N>=0;N-=1)v[N].column===R&&b.push(N)}else b.push(u-I-1)}}else if(C+S>u-p){A=Math.max(C-(u-p*2),x);for(let E=0;E<A;E+=1){const I=E-Math.floor(E/u)*u;w?v.forEach((R,N)=>{R.column===I&&T.push(N)}):T.push(I)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),O&&b.forEach(E=>{v[E].swiperLoopMoveDOM=!0,h.prepend(v[E]),v[E].swiperLoopMoveDOM=!1}),g&&T.forEach(E=>{v[E].swiperLoopMoveDOM=!0,h.append(v[E]),v[E].swiperLoopMoveDOM=!1}),d.recalcSlides(),f.slidesPerView==="auto"?d.updateSlides():w&&(b.length>0&&O||T.length>0&&g)&&d.slides.forEach((E,I)=>{d.grid.updateSlide(I,E,d.slides)}),f.watchSlidesProgress&&d.updateSlidesOffset(),i){if(b.length>0&&O){if(typeof e>"u"){const E=d.slidesGrid[k],R=d.slidesGrid[k+P]-E;r?d.setTranslate(d.translate-R):(d.slideTo(k+Math.ceil(P),0,!1,!0),a&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-R,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-R))}else if(a){const E=w?b.length/f.grid.rows:b.length;d.slideTo(d.activeIndex+E,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(T.length>0&&g)if(typeof e>"u"){const E=d.slidesGrid[k],R=d.slidesGrid[k-A]-E;r?d.setTranslate(d.translate-R):(d.slideTo(k-A,0,!1,!0),a&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-R,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-R))}else{const E=w?T.length/f.grid.rows:T.length;d.slideTo(d.activeIndex-E,0,!1,!0)}}if(d.allowSlidePrev=c,d.allowSlideNext=m,d.controller&&d.controller.control&&!s){const E={slideRealIndex:e,direction:o,setTranslate:a,activeSlideIndex:l,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(I=>{!I.destroyed&&I.params.loop&&I.loopFix({...E,slideTo:I.params.slidesPerView===f.slidesPerView?i:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...E,slideTo:d.controller.control.params.slidesPerView===f.slidesPerView?i:!1})}d.emit("loopFix")}function vl(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const o=[];t.slides.forEach(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[l]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var pl={loopCreate:cl,loopFix:ul,loopDestroy:vl};function ml(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 fl(){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 hl={setGrabCursor:ml,unsetGrabCursor:fl};function gl(t,e){e===void 0&&(e=this);function i(o){if(!o||o===bt()||o===et())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(t);return!a&&!o.getRootNode?null:a||i(o.getRootNode().host)}return i(e)}function ro(t,e,i){const o=et(),{params:a}=t,l=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return l&&(i<=s||i>=o.innerWidth-s)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function bl(t){const e=this,i=bt();let o=t;o.originalEvent&&(o=o.originalEvent);const a=e.touchEventsData;if(o.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(a.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){ro(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:s,enabled:r}=e;if(!r||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let d=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(d)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const v=!!l.noSwipingClass&&l.noSwipingClass!=="",c=o.composedPath?o.composedPath():o.path;v&&o.target&&o.target.shadowRoot&&c&&(d=c[0]);const m=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,h=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(h?gl(m,d):d.closest(m))){e.allowClick=!0;return}if(l.swipeHandler&&!d.closest(l.swipeHandler))return;s.currentX=o.pageX,s.currentY=o.pageY;const f=s.currentX,y=s.currentY;if(!ro(e,o,f))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=f,s.startY=y,a.touchStartTime=ut(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let S=!0;d.matches(a.focusableElements)&&(S=!1,d.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==d&&i.activeElement.blur();const x=S&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||x)&&!d.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function yl(t){const e=bt(),i=this,o=i.touchEventsData,{params:a,touches:l,rtlTranslate:s,enabled:r}=i;if(!r||!a.simulateTouch&&t.pointerType==="mouse")return;let d=t;if(d.originalEvent&&(d=d.originalEvent),d.type==="pointermove"&&(o.touchId!==null||d.pointerId!==o.pointerId))return;let v;if(d.type==="touchmove"){if(v=[...d.changedTouches].filter(g=>g.identifier===o.touchId)[0],!v||v.identifier!==o.touchId)return}else v=d;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",d);return}const c=v.pageX,m=v.pageY;if(d.preventedByNestedSwiper){l.startX=c,l.startY=m;return}if(!i.allowTouchMove){d.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:c,startY:m,currentX:c,currentY:m}),o.touchStartTime=ut());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(m<l.startY&&i.translate<=i.maxTranslate()||m>l.startY&&i.translate>=i.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(c<l.startX&&i.translate<=i.maxTranslate()||c>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&d.target===e.activeElement&&d.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",d),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=c,l.currentY=m;const h=l.currentX-l.startX,f=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(h**2+f**2)<i.params.threshold)return;if(typeof o.isScrolling>"u"){let g;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?o.isScrolling=!1:h*h+f*f>=25&&(g=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI,o.isScrolling=i.isHorizontal()?g>a.touchAngle:90-g>a.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",d),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||d.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!a.cssMode&&d.cancelable&&d.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&d.stopPropagation();let y=i.isHorizontal()?h:f,S=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(y=Math.abs(y)*(s?1:-1),S=Math.abs(S)*(s?1:-1)),l.diff=y,y*=a.touchRatio,s&&(y=-y,S=-S);const x=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=S>0?"prev":"next";const p=i.params.loop&&!a.cssMode,w=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!o.isMoved){if(p&&w&&i.loopFix({direction:i.swipeDirection}),o.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const g=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(g)}o.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",d)}let b;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&x!==i.touchesDirection&&p&&w&&Math.abs(y)>=1){Object.assign(l,{startX:c,startY:m,currentX:c,currentY:m,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",d),o.isMoved=!0,o.currentTranslate=y+o.startTranslate;let T=!0,k=a.resistanceRatio;if(a.touchReleaseOnEdges&&(k=0),y>0?(p&&w&&!b&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(T=!1,a.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+y)**k))):y<0&&(p&&w&&!b&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(T=!1,a.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-y)**k))),T&&(d.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(o.currentTranslate=o.startTranslate),a.threshold>0)if(Math.abs(y)>a.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,o.currentTranslate=o.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{o.currentTranslate=o.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function wl(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let a;if(o.type==="touchend"||o.type==="touchcancel"){if(a=[...o.changedTouches].filter(k=>k.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;a=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:r,rtlTranslate:d,slidesGrid:v,enabled:c}=e;if(!c||!s.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const m=ut(),h=m-i.touchStartTime;if(e.allowClick){const k=o.path||o.composedPath&&o.composedPath();e.updateClickedSlide(k&&k[0]||o.target,k),e.emit("tap click",o),h<300&&m-i.lastClickTime<300&&e.emit("doubleTap doubleClick",o)}if(i.lastClickTime=ut(),Rt(()=>{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 f;if(s.followFinger?f=d?e.translate:-e.translate:f=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}const y=f>=-e.maxTranslate()&&!e.params.loop;let S=0,x=e.slidesSizesGrid[0];for(let k=0;k<v.length;k+=k<s.slidesPerGroupSkip?1:s.slidesPerGroup){const g=k<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof v[k+g]<"u"?(y||f>=v[k]&&f<v[k+g])&&(S=k,x=v[k+g]-v[k]):(y||f>=v[k])&&(S=k,x=v[v.length-1]-v[v.length-2])}let p=null,w=null;s.rewind&&(e.isBeginning?w=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const b=(f-v[S])/x,T=S<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(h>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?p:S+T):e.slideTo(S)),e.swipeDirection==="prev"&&(b>1-s.longSwipesRatio?e.slideTo(S+T):w!==null&&b<0&&Math.abs(b)>s.longSwipesRatio?e.slideTo(w):e.slideTo(S))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(o.target===e.navigation.nextEl||o.target===e.navigation.prevEl)?o.target===e.navigation.nextEl?e.slideTo(S+T):e.slideTo(S):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:S+T),e.swipeDirection==="prev"&&e.slideTo(w!==null?w:S))}}function co(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:l}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const r=s&&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&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Sl(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function xl(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:o}=t;if(!o)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a;const l=t.maxTranslate()-t.minTranslate();l===0?a=0:a=(t.translate-t.minTranslate())/l,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Tl(t){const e=this;ei(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function El(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const uo=(t,e)=>{const i=bt(),{params:o,el:a,wrapperEl:l,device:s}=t,r=!!o.nested,d=e==="on"?"addEventListener":"removeEventListener",v=e;!a||typeof a=="string"||(i[d]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:r}),a[d]("touchstart",t.onTouchStart,{passive:!1}),a[d]("pointerdown",t.onTouchStart,{passive:!1}),i[d]("touchmove",t.onTouchMove,{passive:!1,capture:r}),i[d]("pointermove",t.onTouchMove,{passive:!1,capture:r}),i[d]("touchend",t.onTouchEnd,{passive:!0}),i[d]("pointerup",t.onTouchEnd,{passive:!0}),i[d]("pointercancel",t.onTouchEnd,{passive:!0}),i[d]("touchcancel",t.onTouchEnd,{passive:!0}),i[d]("pointerout",t.onTouchEnd,{passive:!0}),i[d]("pointerleave",t.onTouchEnd,{passive:!0}),i[d]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[d]("click",t.onClick,!0),o.cssMode&&l[d]("scroll",t.onScroll),o.updateOnWindowResize?t[v](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",co,!0):t[v]("observerUpdate",co,!0),a[d]("load",t.onLoad,{capture:!0}))};function Al(){const t=this,{params:e}=t;t.onTouchStart=bl.bind(t),t.onTouchMove=yl.bind(t),t.onTouchEnd=wl.bind(t),t.onDocumentTouchStart=El.bind(t),e.cssMode&&(t.onScroll=xl.bind(t)),t.onClick=Sl.bind(t),t.onLoad=Tl.bind(t),uo(t,"on")}function Cl(){uo(this,"off")}var Il={attachEvents:Al,detachEvents:Cl};const vo=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function kl(){const t=this,{realIndex:e,initialized:i,params:o,el:a}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const s=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const d=(s in l?l[s]:void 0)||t.originalParams,v=vo(t,o),c=vo(t,d),m=t.params.grabCursor,h=d.grabCursor,f=o.enabled;v&&!c?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!v&&c&&(a.classList.add(`${o.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),m&&!h?t.unsetGrabCursor():!m&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(b=>{if(typeof d[b]>"u")return;const T=o[b]&&o[b].enabled,k=d[b]&&d[b].enabled;T&&!k&&t[b].disable(),!T&&k&&t[b].enable()});const y=d.direction&&d.direction!==o.direction,S=o.loop&&(d.slidesPerView!==o.slidesPerView||y),x=o.loop;y&&i&&t.changeDirection(),rt(t.params,d);const p=t.params.enabled,w=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!p?t.disable():!f&&p&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",d),i&&(S?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&w?(t.loopCreate(e),t.updateSlides()):x&&!w&&t.loopDestroy()),t.emit("breakpoint",d)}function _l(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const a=et(),l=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(r=>{if(typeof r=="string"&&r.indexOf("@")===0){const d=parseFloat(r.substr(1));return{value:l*d,point:r}}return{value:r,point:r}});s.sort((r,d)=>parseInt(r.value,10)-parseInt(d.value,10));for(let r=0;r<s.length;r+=1){const{point:d,value:v}=s[r];e==="window"?a.matchMedia(`(min-width: ${v}px)`).matches&&(o=d):v<=i.clientWidth&&(o=d)}return o||"max"}var Pl={setBreakpoint:kl,getBreakpoint:_l};function Dl(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&i.push(e+a)}):typeof o=="string"&&i.push(e+o)}),i}function Ml(){const t=this,{classNames:e,params:i,rtl:o,el:a,device:l}=t,s=Dl(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:o},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...s),a.classList.add(...e),t.emitContainerClasses()}function Ol(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Rl={addClasses:Ml,removeClasses:Ol};function Ll(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const a=t.slides.length-1,l=t.slidesGrid[a]+t.slidesSizesGrid[a]+o*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 Bl={checkOverflow:Ll},wi={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 Nl(t,e){return function(o){o===void 0&&(o={});const a=Object.keys(o)[0],l=o[a];if(typeof l!="object"||l===null){rt(e,o);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in l)){rt(e,o);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),rt(e,o)}}const Si={eventsEmitter:Rn,update:Wn,translate:Zn,transition:tl,slide:dl,loop:pl,grabCursor:hl,events:Il,breakpoints:Pl,checkOverflow:Bl,classes:Rl},xi={};let Ti=class _t{constructor(){let e,i;for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=rt({},i),e&&!i.el&&(i.el=e);const s=bt();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const c=[];return s.querySelectorAll(i.el).forEach(m=>{const h=rt({},i,{el:m});c.push(new _t(h))}),c}const r=this;r.__swiper__=!0,r.support=no(),r.device=lo({userAgent:i.userAgent}),r.browser=Dn(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],i.modules&&Array.isArray(i.modules)&&r.modules.push(...i.modules);const d={};r.modules.forEach(c=>{c({params:i,swiper:r,extendParams:Nl(i,d),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const v=rt({},wi,d);return r.params=rt({},v,xi,i),r.originalParams=rt({},r.params),r.passedParams=rt({},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:o}=this,a=xt(i,`.${o.slideClass}, swiper-slide`),l=Zt(a[0]);return Zt(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:o}=e;e.slides=xt(i,`.${o.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const o=this;e=Math.min(Math.max(e,0),1);const a=o.minTranslate(),s=(o.maxTranslate()-a)*e+a;o.translateTo(s,typeof i>"u"?0:i),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(o=>{const a=e.getSlideClasses(o);i.push({slideEl:o,classNames:a}),e.emit("_slideClass",o,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:a,slides:l,slidesGrid:s,slidesSizesGrid:r,size:d,activeIndex:v}=o;let c=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let m=l[v]?Math.ceil(l[v].swiperSlideSize):0,h;for(let f=v+1;f<l.length;f+=1)l[f]&&!h&&(m+=Math.ceil(l[f].swiperSlideSize),c+=1,m>d&&(h=!0));for(let f=v-1;f>=0;f-=1)l[f]&&!h&&(m+=l[f].swiperSlideSize,c+=1,m>d&&(h=!0))}else if(e==="current")for(let m=v+1;m<l.length;m+=1)(i?s[m]+r[m]-s[v]<d:s[m]-s[v]<d)&&(c+=1);else for(let m=v-1;m>=0;m-=1)s[v]-s[m]<d&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:o}=e;o.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&ei(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,r=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const s=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(s.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||a()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,a=o.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),o.emit("changeDirection"),i&&o.update()),o}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let o=e||i.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=i,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):xt(o,a())[0];return!s&&i.params.createElements&&(s=jt("div",i.params.wrapperClass),o.append(s),xt(o,`.${i.params.slideClass}`).forEach(r=>{s.append(r)})),Object.assign(i,{el:o,wrapperEl:s,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:s,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||Dt(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||Dt(o,"direction")==="rtl"),wrongRTL:Dt(s,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(l=>{l.complete?ei(i,l):l.addEventListener("load",s=>{ei(i,s.target)})}),yi(i),i.initialized=!0,yi(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const o=this,{params:a,el:l,wrapperEl:s,slides:r}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),s&&s.removeAttribute("style"),r&&r.length&&r.forEach(d=>{d.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(d=>{o.off(d)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),bn(o)),o.destroyed=!0),null}static extendDefaults(e){rt(xi,e)}static get extendedDefaults(){return xi}static get defaults(){return wi}static installModule(e){_t.prototype.__modules__||(_t.prototype.__modules__=[]);const i=_t.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>_t.installModule(i)),_t):(_t.installModule(e),_t)}};Object.keys(Si).forEach(t=>{Object.keys(Si[t]).forEach(e=>{Ti.prototype[e]=Si[t][e]})}),Ti.use([Mn,On]);const po=["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 Mt(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Bt(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>i.indexOf(o)<0).forEach(o=>{typeof t[o]>"u"?t[o]=e[o]:Mt(e[o])&&Mt(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:Bt(t[o],e[o]):t[o]=e[o]})}function mo(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function fo(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function ho(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function go(t){t===void 0&&(t="");const e=t.split(" ").map(o=>o.trim()).filter(o=>!!o),i=[];return e.forEach(o=>{i.indexOf(o)<0&&i.push(o)}),i.join(" ")}function Fl(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function jl(t){let{swiper:e,slides:i,passedParams:o,changedParams:a,nextEl:l,prevEl:s,scrollbarEl:r,paginationEl:d}=t;const v=a.filter(A=>A!=="children"&&A!=="direction"&&A!=="wrapperClass"),{params:c,pagination:m,navigation:h,scrollbar:f,virtual:y,thumbs:S}=e;let x,p,w,b,T,k,g,O;a.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(x=!0),a.includes("controller")&&o.controller&&o.controller.control&&c.controller&&!c.controller.control&&(p=!0),a.includes("pagination")&&o.pagination&&(o.pagination.el||d)&&(c.pagination||c.pagination===!1)&&m&&!m.el&&(w=!0),a.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||r)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(b=!0),a.includes("navigation")&&o.navigation&&(o.navigation.prevEl||s)&&(o.navigation.nextEl||l)&&(c.navigation||c.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(T=!0);const P=A=>{e[A]&&(e[A].destroy(),A==="navigation"?(e.isElement&&(e[A].prevEl.remove(),e[A].nextEl.remove()),c[A].prevEl=void 0,c[A].nextEl=void 0,e[A].prevEl=void 0,e[A].nextEl=void 0):(e.isElement&&e[A].el.remove(),c[A].el=void 0,e[A].el=void 0))};a.includes("loop")&&e.isElement&&(c.loop&&!o.loop?k=!0:!c.loop&&o.loop?g=!0:O=!0),v.forEach(A=>{if(Mt(c[A])&&Mt(o[A]))Object.assign(c[A],o[A]),(A==="navigation"||A==="pagination"||A==="scrollbar")&&"enabled"in o[A]&&!o[A].enabled&&P(A);else{const u=o[A];(u===!0||u===!1)&&(A==="navigation"||A==="pagination"||A==="scrollbar")?u===!1&&P(A):c[A]=o[A]}}),v.includes("controller")&&!p&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),a.includes("children")&&i&&y&&c.virtual.enabled?(y.slides=i,y.update(!0)):a.includes("virtual")&&y&&c.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),a.includes("children")&&i&&c.loop&&(O=!0),x&&S.init()&&S.update(!0),p&&(e.controller.control=c.controller.control),w&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-pagination"),d.part.add("pagination"),e.el.appendChild(d)),d&&(c.pagination.el=d),m.init(),m.render(),m.update()),b&&(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),f.init(),f.updateSize(),f.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)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),l&&(c.navigation.nextEl=l),s&&(c.navigation.prevEl=s),h.init(),h.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),a.includes("direction")&&e.changeDirection(o.direction,!1),(k||O)&&e.loopDestroy(),(g||O)&&e.loopCreate(),e.update()}function Vl(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},a={};Bt(i,wi),i._emitClasses=!0,i.init=!1;const l={},s=po.map(d=>d.replace(/_/,"")),r=Object.assign({},t);return Object.keys(r).forEach(d=>{typeof t[d]>"u"||(s.indexOf(d)>=0?Mt(t[d])?(i[d]={},a[d]={},Bt(i[d],t[d]),Bt(a[d],t[d])):(i[d]=t[d],a[d]=t[d]):d.search(/on[A-Z]/)===0&&typeof t[d]=="function"?e?o[`${d[2].toLowerCase()}${d.substr(3)}`]=t[d]:i.on[`${d[2].toLowerCase()}${d.substr(3)}`]=t[d]:l[d]=t[d])}),["navigation","pagination","scrollbar"].forEach(d=>{i[d]===!0&&(i[d]={}),i[d]===!1&&delete i[d]}),{params:i,passedParams:a,rest:l,events:o}}function zl(t,e){let{el:i,nextEl:o,prevEl:a,paginationEl:l,scrollbarEl:s,swiper:r}=t;mo(e)&&o&&a&&(r.params.navigation.nextEl=o,r.originalParams.navigation.nextEl=o,r.params.navigation.prevEl=a,r.originalParams.navigation.prevEl=a),fo(e)&&l&&(r.params.pagination.el=l,r.originalParams.pagination.el=l),ho(e)&&s&&(r.params.scrollbar.el=s,r.originalParams.scrollbar.el=s),r.init(i)}function Hl(t,e,i,o,a){const l=[];if(!e)return l;const s=d=>{l.indexOf(d)<0&&l.push(d)};if(i&&o){const d=o.map(a),v=i.map(a);d.join("")!==v.join("")&&s("children"),o.length!==i.length&&s("children")}return po.filter(d=>d[0]==="_").map(d=>d.replace(/_/,"")).forEach(d=>{if(d in t&&d in e)if(Mt(t[d])&&Mt(e[d])){const v=Object.keys(t[d]),c=Object.keys(e[d]);v.length!==c.length?s(d):(v.forEach(m=>{t[d][m]!==e[d][m]&&s(d)}),c.forEach(m=>{t[d][m]!==e[d][m]&&s(d)}))}else t[d]!==e[d]&&s(d)}),l}const Gl=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 ti(){return ti=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},ti.apply(this,arguments)}function bo(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function yo(t){const e=[];return n.Children.toArray(t).forEach(i=>{bo(i)?e.push(i):i.props&&i.props.children&&yo(i.props.children).forEach(o=>e.push(o))}),e}function Ul(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(o=>{if(bo(o))e.push(o);else if(o.props&&o.props.slot&&i[o.props.slot])i[o.props.slot].push(o);else if(o.props&&o.props.children){const a=yo(o.props.children);a.length>0?a.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function Wl(t,e,i){if(!i)return null;const o=c=>{let m=c;return c<0?m=e.length+c:m>=e.length&&(m=m-e.length),m},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:s}=i,r=t.params.loop?-e.length:0,d=t.params.loop?e.length*2:e.length,v=[];for(let c=r;c<d;c+=1)c>=l&&c<=s&&v.push(e[o(c)]);return v.map((c,m)=>n.cloneElement(c,{swiper:t,style:a,key:c.props.virtualIndex||c.key||`slide-${m}`}))}function Vt(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const Ei=n.createContext(null),wo=()=>n.useContext(Ei),Yl=n.createContext(null),Ot=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:a="div",children:l,onSwiper:s,...r}=t===void 0?{}:t,d=!1;const[v,c]=n.useState("swiper"),[m,h]=n.useState(null),[f,y]=n.useState(!1),S=n.useRef(!1),x=n.useRef(null),p=n.useRef(null),w=n.useRef(null),b=n.useRef(null),T=n.useRef(null),k=n.useRef(null),g=n.useRef(null),O=n.useRef(null),{params:P,passedParams:A,rest:u,events:M}=Vl(r),{slides:C,slots:E}=Ul(l),I=()=>{y(!f)};Object.assign(P.on,{_containerClasses(L,_){c(_)}});const R=()=>{Object.assign(P.on,M),d=!0;const L={...P};if(delete L.wrapperClass,p.current=new Ti(L),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=C;const _={cache:!1,slides:C,renderExternal:h,renderExternalUpdate:!1};Bt(p.current.params.virtual,_),Bt(p.current.originalParams.virtual,_)}};x.current||R(),p.current&&p.current.on("_beforeBreakpoint",I);const N=()=>{d||!M||!p.current||Object.keys(M).forEach(L=>{p.current.on(L,M[L])})},F=()=>{!M||!p.current||Object.keys(M).forEach(L=>{p.current.off(L,M[L])})};n.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",I)}),n.useEffect(()=>{!S.current&&p.current&&(p.current.emitSlidesClasses(),S.current=!0)}),Vt(()=>{if(e&&(e.current=x.current),!!x.current)return p.current.destroyed&&R(),zl({el:x.current,nextEl:T.current,prevEl:k.current,paginationEl:g.current,scrollbarEl:O.current,swiper:p.current},P),s&&!p.current.destroyed&&s(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),Vt(()=>{N();const L=Hl(A,w.current,C,b.current,_=>_.key);return w.current=A,b.current=C,L.length&&p.current&&!p.current.destroyed&&jl({swiper:p.current,slides:C,passedParams:A,changedParams:L,nextEl:T.current,prevEl:k.current,scrollbarEl:O.current,paginationEl:g.current}),()=>{F()}}),Vt(()=>{Gl(p.current)},[m]);function V(){return P.virtual?Wl(p.current,C,m):C.map((L,_)=>n.cloneElement(L,{swiper:p.current,swiperSlideIndex:_}))}return n.createElement(o,ti({ref:x,className:go(`${v}${i?` ${i}`:""}`)},u),n.createElement(Yl.Provider,{value:p.current},E["container-start"],n.createElement(a,{className:Fl(P.wrapperClass)},E["wrapper-start"],V(),E["wrapper-end"]),mo(P)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:k,className:"swiper-button-prev"}),n.createElement("div",{ref:T,className:"swiper-button-next"})),ho(P)&&n.createElement("div",{ref:O,className:"swiper-scrollbar"}),fo(P)&&n.createElement("div",{ref:g,className:"swiper-pagination"}),E["container-end"]))});Ot.displayName="Swiper";const yt=n.forwardRef(function(t,e){let{tag:i="div",children:o,className:a="",swiper:l,zoom:s,lazy:r,virtualIndex:d,swiperSlideIndex:v,...c}=t===void 0?{}:t;const m=n.useRef(null),[h,f]=n.useState("swiper-slide"),[y,S]=n.useState(!1);function x(T,k,g){k===m.current&&f(g)}Vt(()=>{if(typeof v<"u"&&(m.current.swiperSlideIndex=v),e&&(e.current=m.current),!(!m.current||!l)){if(l.destroyed){h!=="swiper-slide"&&f("swiper-slide");return}return l.on("_slideClass",x),()=>{l&&l.off("_slideClass",x)}}}),Vt(()=>{l&&m.current&&!l.destroyed&&f(l.getSlideClasses(m.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},w=()=>typeof o=="function"?o(p):o,b=()=>{S(!0)};return n.createElement(i,ti({ref:m,className:go(`${h}${a?` ${a}`:""}`),"data-swiper-slide-index":d,onLoad:b},c),s&&n.createElement(Ei.Provider,{value:p},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},w(),r&&!y&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&n.createElement(Ei.Provider,{value:p},w(),r&&!y&&n.createElement("div",{className:"swiper-lazy-preloader"})))});yt.displayName="SwiperSlide";const Xl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Jl=({visible:t,onClose:e,children:i,modalStyle:o,padding:a,popup:l,schema:s,fullHeight:r=window.innerHeight,isFullScreen:d=!1})=>{var v,c,m,h,f,y,S,x,p,w,b,T,k,g,O,P,A,u,M,C,E,I,R,N;const F=n.useRef(null),V=n.useRef(null),L=n.useRef(null),_=n.useRef(null),B=r*.2,W=d?r:r*.8,[U,X]=n.useState(B),[ne,te]=n.useState(!1),re=n.useRef(null),{globalConfig:ke,popupDetailData:ue}=_e(),{schema:Q}=ht(),[K,$]=n.useState(15);n.useEffect(()=>{const ve=document.getElementById("sxp-render"),ye=document.getElementById("pb-modal");ye?re.current=ye:(re.current=document.createElement("div"),re.current.setAttribute("id","pb-modal"),ve?.appendChild(re.current))},[]);const Z=n.useMemo(()=>l?.id&&l?.id!==""||t,[t,l]),ae=n.useMemo(()=>{var ve,ye,Ae;const J=s??Q;return(Ae=(ye=(ve=J?.sxpPageConf)===null||ve===void 0?void 0:ve.globalConfig)===null||ye===void 0?void 0:ye.popupList)===null||Ae===void 0?void 0:Ae.find(q=>q?.id===l?.id)},[l,s,Q]),we=n.useMemo(()=>{var ve,ye;return((ye=(ve=ae?.item)===null||ve===void 0?void 0:ve.event)===null||ye===void 0?void 0:ye.isScrollFullScreen)||!1},[ae]);if(n.useEffect(()=>{Z?te(!0):setTimeout(()=>{te(!1),X(B)},l?.duration)},[Z,l]),!re.current)return null;const be=Xe.debounce(()=>{e?.()},300),De=ve=>{F.current=ve.touches[0],V.current=ve.touches[0],L.current=!0},Ee=ve=>{requestAnimationFrame(()=>{var ye;if(L.current&&((ye=_?.current)===null||ye===void 0?void 0:ye.scrollTop)===0){const Ae=ve.touches[0].clientY,J=ve.touches[0].clientX,de=F.current.clientY-Ae;F.current=ve.touches[0];const q=Ae-V.current.clientY,ce=J-V.current.clientX;if(Math.abs(ce)>Math.abs(q))return;const Oe=U-de;Oe>0&&X(Oe)}})},je=ve=>{var ye;if(L.current&&((ye=_?.current)===null||ye===void 0?void 0:ye.scrollTop)===0){const Ae=ve.changedTouches[0].clientY-V.current.clientY,J=ve.changedTouches[0].clientX-V.current.clientX;if(Math.abs(J)>Math.abs(Ae))return;const de=V.current.clientY-F.current.clientY;de>0?X(0):U<B&&de<0?X(B):U>=B&&de<0&&e?.()}L.current=!1};return Mi.createPortal(n.createElement(n.Fragment,null,ne&&n.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Z?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},o),onClick:be},n.createElement("div",{style:{position:"relative",left:`${(h=(m=(c=(v=ae?.item)===null||v===void 0?void 0:v.props)===null||c===void 0?void 0:c.popupBg)===null||m===void 0?void 0:m.horizontalMargin)!==null&&h!==void 0?h:0}px`,right:`${(x=(S=(y=(f=ae?.item)===null||f===void 0?void 0:f.props)===null||y===void 0?void 0:y.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&x!==void 0?x:0}px`,bottom:`${(T=(b=(w=(p=ae?.item)===null||p===void 0?void 0:p.props)===null||w===void 0?void 0:w.popupBg)===null||b===void 0?void 0:b.bottomMargin)!==null&&T!==void 0?T:0}px`,overflow:"hidden",width:`calc(100% - ${((P=(O=(g=(k=ae?.item)===null||k===void 0?void 0:k.props)===null||g===void 0?void 0:g.popupBg)===null||O===void 0?void 0:O.horizontalMargin)!==null&&P!==void 0?P:0)*2}px)`,height:"100%"}},n.createElement("div",Object.assign({className:`modal-container ${Z?"modal-popIn":"modal-popOut"}`,style:Object.assign(Object.assign({padding:a,animationDuration:((A=l?.duration)!==null&&A!==void 0?A:0)/1e3+"s"},we&&{transform:`translateY(${U}px)`}),{overflow:"hidden",borderRadius:`${(E=(C=(M=(u=ae?.item)===null||u===void 0?void 0:u.props)===null||M===void 0?void 0:M.popupBg)===null||C===void 0?void 0:C.borderRadius)!==null&&E!==void 0?E:0}px`,zIndex:9}),onClick:ve=>{ve.stopPropagation(),ve.preventDefault()}},we&&{onTouchMove:Ee,onTouchStart:De,onTouchEnd:je}),n.createElement("div",{className:"modal-icon-wrapper",onClick:e,style:{top:K}},n.createElement("img",{src:(I=ke?.popupCloseIcon)!==null&&I!==void 0?I:Xl,alt:"close",className:"modal-icon"})),n.createElement("div",Object.assign({ref:_,style:{height:we?r:W,overflow:we&&U<=0||!we?"auto":"hidden",zIndex:1}},((N=(R=ae?.item)===null||R===void 0?void 0:R.props)===null||N===void 0?void 0:N.enableFixedCloseButton)&&{onScroll:ve=>{var ye;$(15-((ye=ve?.target)===null||ye===void 0?void 0:ye.scrollTop))}}),i))))),re.current)};var Nt=n.memo(Jl);const ql=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const o=t.split(" "),a=[];for(let s=0;s<o.length&&(a.push(o[s]),!(a.join(" ").length>=e));s++);return(a.length>1&&a.length<o.length?a.slice(0,a.length-1):a).join(" ")+" "},Kl=({text:t,maxStr:e=108,style:i,className:o,onClick:a,foldText:l,unfoldText:s,isPost:r,onChange:d})=>{const[v,c]=n.useState(!1),[m,h]=n.useState(!1),f=Number(i?.lineClamp||2),y=n.useRef(null),S=n.useRef(null),x=n.useCallback(()=>{c(!v)},[v,d]);return n.useMemo(()=>!v&&t.length>e?ql(t,e)+"...":t,[t,e,v]),n.useEffect(()=>{var p,w;((p=S?.current)===null||p===void 0?void 0:p.offsetHeight)>((w=y?.current)===null||w===void 0?void 0:w.offsetHeight)&&r?h(!0):h(!1),S.current.style.display="none"},[r]),n.createElement("div",{className:o,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},n.createElement("div",{ref:y,style:{overflow:"hidden",WebkitLineClamp:!r||v?"":f,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:he(t?.replace(/\n/g,"</br>"),i)}}),n.createElement("div",{ref:S,dangerouslySetInnerHTML:{__html:he(t?.replace(/\n/g,"</br>"),i)}}),t&&r&&m&&n.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:a??x,dangerouslySetInnerHTML:{__html:he(v?s||"show less":l||"show more",i)}}))};var ii=n.memo(Kl);const Zl=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:a,className:l,loading:s,alt:r="image"}=t,[d,v]=n.useState(i),c=n.useRef(null),[m,h]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:f=>{f&&v(f)}})),n.useEffect(()=>{i&&v(i)},[i]),n.useEffect(()=>{const f=()=>{i&&!m&&c.current&&(c.current.src="",c.current.src=i)};return gt.on(st.PAGE_DID_SHOW,f),()=>{gt.off(st.PAGE_DID_SHOW,f)}},[i,m]),n.createElement(n.Fragment,null,!m&&!d&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),d?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:d}),n.createElement("source",{type:"image/webp",srcSet:`${d}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${d}?imageMogr2/format/jpg`}),n.createElement("img",{ref:c,className:l,src:d,style:Object.assign({},a),loading:s,onLoad:f=>{h(!0),o?.(f.target)},alt:r})):n.createElement("img",{ref:c,className:l,src:d,style:Object.assign({},a),loading:s,onLoad:f=>{h(!0),o?.(f.target)},alt:r}))});var nt=n.memo(Zl);const Ql=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const a=n.useRef(),{popupDetailData:l}=_e();return n.useEffect(()=>{var s,r;o&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((r=l?.multiCheckIndex)!==null&&r!==void 0?r:0))},[l,o]),n.createElement(Ot,{ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[In,Cn,An],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var zt=n.memo(Ql);const $l=({products:t,data:e,defImg:i,style:o,onCLick:a,popupDetailData:l,check:s})=>{var r;const{productView:d}=Ke(),{popupCurTimeRef:v}=_e(),c=(m,h)=>{if(s===h)return;const f=t?.[s];d(l,f,f?.bindCta,v.current,l?.index),a?.(h)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&n.createElement(zt,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(r=l?t:[0,1,2,3])===null||r===void 0?void 0:r.map((m,h)=>{var f,y,S;return n.createElement(n.Fragment,null,m?.bindCta?n.createElement(yt,{className:Se.css({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{c(m,h)},key:h},n.createElement(nt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(S=(f=m?.cover)!==null&&f!==void 0?f:(y=m?.homePage)===null||y===void 0?void 0:y[0])!==null&&S!==void 0?S:i})):null)})))};var So=n.memo($l);const ea=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:o,file:a,src:l}=t;switch(i){case 2:return o||null;case 3:return l||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},Ht=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:o})=>{var a,l,s,r,d;if((!t?.currency||!t?.price)&&o)return null;let v=t?.currency&&t?.price?t?.price:7e3,c="",m=i?.priceSymbol,h=t?.currency?(s=(l=(a=t?.currency)===null||a===void 0?void 0:a.split("-")[1])===null||l===void 0?void 0:l.toUpperCase())!==null&&s!==void 0?s:"":"$";const f=e===void 0||e;let y=v.toString();m?.showTwoDecimalPoint&&(y=v?.toFixed(2));let S=(r=y?.indexOf("."))!==null&&r!==void 0?r:-1;if(f){c=(d=v?.toLocaleString("zh",{minimumFractionDigits:m?.showTwoDecimalPoint?2:0}))!==null&&d!==void 0?d:"";let x=0,p=S??c?.length;m?.millesimalSymbol==="."?c=c?.replace(/\,/g,function(w,b){return b>=x&&b<p?".":w}):m?.millesimalSymbol===" "&&(c=c?.replace(","," "))}else c=`${m?.showTwoDecimalPoint?v?.toFixed(2):v}`;return m?.decimalPoint===","&&S>0&&(c=c=c?.replace(/\./g,function(x,p){return p>=S&&p<c?.length?",":x})),m?.currencyPosition&&m?.currencyPosition!=="none"?c=m?.currencyPosition==="left"?h+c:c+h:m?.currencyPosition!=="none"&&(c=h+c),c},ta=t=>{var e,i,o,a,l,s,r,d,v,c,m,h,f,y,S,x,p,w,b,T,k,g,O,P,{content:A,style:u,bgImg:M,onClick:C,schema:E,isDefault:I,bottom_image:R,tipText:N,isPost:F,viewTime:V,rec:L,swiper:_,commodityStyles:B,buttonStyle:W,index:U,commodityGroup:X,popupBg:ne,iframeIcon:te,commodityImgRatio:re,isTel:ke,iframeBgColor:ue}=t,Q=Je(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor"]);const{sxpParameter:K,popupDetailData:$,isPreview:Z,bffFbReport:ae,popupCurTimeRef:we,checkCommodityIndexRef:be,globalConfig:De}=_e(),{jumpToWeb:Ee,productView:je}=Ke(),ve=n.useRef(null),[ye,Ae]=n.useState(!1),[J,de]=n.useState(!1),[q,ce]=n.useState((e=$?.multiCheckIndex)!==null&&e!==void 0?e:0),Oe=n.useRef(),G=F?L:$;let j=F?G?.product:(o=(i=G?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&o!==void 0?o:(l=(a=G?.video)===null||a===void 0?void 0:a.bindProducts)===null||l===void 0?void 0:l[0],Re=F?(s=G?.product)===null||s===void 0?void 0:s.bindCta:(v=(d=(r=G?.video)===null||r===void 0?void 0:r.bindProduct)===null||d===void 0?void 0:d.bindCta)!==null&&v!==void 0?v:(h=(m=(c=G?.video)===null||c===void 0?void 0:c.bindProducts)===null||m===void 0?void 0:m[0])===null||h===void 0?void 0:h.bindCta;const Ue=F?U:$?.index;if(!F&&X?.open&&(!((f=G?.video)===null||f===void 0)&&f.bindProducts)&&((S=(y=G?.video)===null||y===void 0?void 0:y.bindProducts)===null||S===void 0?void 0:S.length)>0){be.current=q;const ee=(x=G?.video)===null||x===void 0?void 0:x.bindProducts[q];j=ee,Re=ee?.bindCta}const dt=()=>{j?.link&&(Ee(G,j,Re,Ue),F||je(G,j,Re,V||ve.current,Ue),window.location.href=window.getJointUtmLink(j.link))};n.useEffect(()=>{F||ae?.({eventName:"ProductView"})},[F,ae]),n.useEffect(()=>{const ee=()=>{ve.current=new Date};return ee(),window.addEventListener("pageshow",ee),()=>{window.removeEventListener("pageshow",ee)}},[]);const wt=Ht({product:j,enableFormattedPrice:(p=B?.price)===null||p===void 0?void 0:p.enableFormattedPrice,globalConfig:De}),tt=(Z?375:(w=u?.width)!==null&&w!==void 0?w:window.innerWidth)-((b=ne?.horizontalMargin)!==null&&b!==void 0?b:0)*2,it=re?tt*(re.h/re.w):tt,St=({isPost:ee})=>{var Te,Fe,We,Ge;return n.createElement("div",null,n.createElement("div",{className:"pb-commondity-content-collection",style:H(B?.collection),hidden:!!j&&(!j?.collection||j?.collection===""),dangerouslySetInnerHTML:{__html:he((Te=j?.collection)!==null&&Te!==void 0?Te:"Tiffany Lock",B?.collection)}}),n.createElement("div",{className:"pb-commondity-content-title",style:H(B?.title),hidden:!!j&&!j?.title,dangerouslySetInnerHTML:{__html:he((Fe=j?.title)!==null&&Fe!==void 0?Fe:"Pendant in Yellow Gold with Diamonds, Medium",B?.title)}}),n.createElement("div",{className:"pb-commondity-content-price",style:H(B?.price),hidden:!!j&&!j?.price,dangerouslySetInnerHTML:{__html:he(wt,B?.price)}}),n.createElement("div",{hidden:!!j&&!j?.taxInfo,style:H(B?.taxInfo),dangerouslySetInnerHTML:{__html:he((We=j?.taxInfo)!==null&&We!==void 0?We:"\u7A0E\u8D39",B?.taxInfo)}}),n.createElement("div",{hidden:!!j&&(!j?.info||j?.info==="")},n.createElement(ii,{foldText:N?.foldText,unfoldText:N?.unfoldText,onClick:()=>Ae(!0),isPost:ee,text:(Ge=j?.info)!==null&&Ge!==void 0?Ge:`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