1var CS_CONF={"collectionEnabled":!0,"projectId":581084,"status":1,"hostnames":[""],"crossDomainTracking":0,"crossDomainSingleIframeTracking":0,"consentRequired":0,"allowSubdomains":1,"visitorCookieTimeout":34164000000,"sampleRate":100,"replayRecordingRate":100,"validationRate":10,"lastTrackingDraw":null,"trackerDomain":"c.ba.contentsquare.net","recordingDomain":"r.contentsquare.net","useMalkaPipeline":1,"malkaQuotaServiceDomain":"q.ba.contentsquare.net","malkaRecordingDomain":"k.ba.contentsquare.net","ed":"l.contentsquare.net/log/web","eMerchandisingEnabled":0,"mouseMoveHeatmapEnabled":1,"jsErrorsEnabled":1,"customErrorsEnabled":0,"jsCustomErrorsEnabled":0,"apiErrorsEnabled":0,"customHashIdEnabled":0,"recordingEncryptionEnabled":0,"recordingEncryptionPublicKey":null,"recordingEncryptionPublicKeyId":0,"secureCookiesEnabled":1,"triggerSessionReplayEnabled":0,"triggerSessionReplayRegex":null,"dynamicIdRegex":null,"whitelistedAttributes":null,"replayRecordingUnmaskedUrlRegex":null,"replayRecordingUnmaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegexRules":[{"operator":"contain","value":".*","ignoreQueryParams":1,"ignoreURIFragments":1,"ignoreCaseSensitivity":1,"maskMedia":1}],"replayRecordingMaskedUrlRegex":null,"anonymisationMethod":"replayRecordingMaskedUrlRegexRules","anonymizeDigits":!0,"tagDeploymentMode":"CONTENTSQUARE","experimental":null,"iframesTracking":0,"textVisibilityEnabled":0,"cookielessTrackingEnabled":0,"malkaUrlEnabled":0,"malkaEtrEnabled":0,"pathComputationRules":{},"asyncSerializerEnabled":1,"pendingInactivityTimeout":5000,"accessibilityEnabled":0,"taskSchedulerOptions":{"enabled":1},"uxaDomain":"app.contentsquare.com","webviewsTrackingEnabled":0,"staticResourceManagerDomain":"srm.ba.contentsquare.net","useStaticResourceManager":1,"performanceTimingOptions":{"withResource":!1,"withNavigation":!1},"replayConsentRequiredForSession":0,"displayAdOptions":null,"implementations":[{"template":{"name":"ArtificialPageview","args":{}},"triggers":[{"name":"HistoryChange","args":{"listeners":"popstate, pushState, replaceState","useDebounce":"no","window":400}}]}],"eventsApiEnabled":0,"dynamicConfDomain":"t.contentsquare.net/settings","collectHierarchy":0,"collectSubmit":0,"collectTargetText":1,"tagVerificationDomain":"tcvsapi.contentsquare.com","tagVerificationEnabled":!0,"startMode":1,"trackingCodeVerified":!0,"quotas":[{"quotaType":"ANALYTICS","value":1},{"quotaType":"RECORDING","value":0.05}],"isLegacyHJ":!1,"urlBlacklist":null,"maskMedia":!1};var cS=(D,v,oe)=>new Promise((dp,Xn)=>{var cu=Us=>{try{Vr(oe.next(Us))}catch(Qn){Xn(Qn)}},du=Us=>{try{Vr(oe.throw(Us))}catch(Qn){Xn(Qn)}},Vr=Us=>Us.done?dp(Us.value):Promise.resolve(Us.value).then(cu,du);Vr((oe=oe.apply(D,v)).next())});window.CSCurrentScript=document.currentScript,(function(D,v,oe){return cS(this,null,function*(){yield(typeof scheduler!="undefined"&&(scheduler!=null&&scheduler.yield)?scheduler.yield.bind(scheduler):()=>new Promise(Xn=>setTimeout(Xn,0)))(),(()=>{var Xn=Object.defineProperty,cu=Object.defineProperties,du=Object.getOwnPropertyDescriptors,Vr=Object.getOwnPropertySymbols,Us=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,pS=(Ee,ue)=>(ue=Symbol[Ee])?ue:Symbol.for("Symbol."+Ee),pp=(Ee,ue,_e)=>ue in Ee?Xn(Ee,ue,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Ee[ue]=_e,Z=(Ee,ue)=>{for(var _e in ue||(ue={}))Us.call(ue,_e)&&pp(Ee,_e,ue[_e]);if(Vr)for(var _e of Vr(ue))Qn.call(ue,_e)&&pp(Ee,_e,ue[_e]);return Ee},Vt=(Ee,ue)=>cu(Ee,du(ue)),gS=(Ee,ue)=>{var _e={};for(var Ce in Ee)Us.call(Ee,Ce)&&ue.indexOf(Ce)<0&&(_e[Ce]=Ee[Ce]);if(Ee!=null&&Vr)for(var Ce of Vr(Ee))ue.indexOf(Ce)<0&&Qn.call(Ee,Ce)&&(_e[Ce]=Ee[Ce]);return _e},fS=(Ee,ue)=>()=>{try{return ue||Ee((ue={exports:{}}).exports,ue),ue.exports}catch(_e){throw ue=0,_e}},yt=(Ee,ue,_e)=>new Promise((Ce,dr)=>{var $s=je=>{try{Hi(_e.next(je))}catch(Bi){dr(Bi)}},pr=je=>{try{Hi(_e.throw(je))}catch(Bi){dr(Bi)}},Hi=je=>je.done?Ce(je.value):Promise.resolve(je.value).then($s,pr);Hi((_e=_e.apply(Ee,ue)).next())}),mS=function(Ee,ue){this[0]=Ee,this[1]=ue},gp=(Ee,ue,_e)=>{var Ce=(Hi,je,Bi,Vs)=>{try{var hn=_e[Hi](je),un=(je=hn.value)instanceof mS,Jn=hn.done;Promise.resolve(un?je[0]:je).then(Ri=>un?Ce(Hi==="return"?Hi:"next",je[1]?{done:Ri.done,value:Ri.value}:Ri,Bi,Vs):Bi({value:Ri,done:Jn})).catch(Ri=>Ce("throw",Ri,Bi,Vs))}catch(Ri){Vs(Ri)}},dr=(Hi,je,Bi,Vs)=>pr[Hi]=hn=>
1(je=new Promise((un,Jn,Ri)=>(Ri=()=>Ce(Hi,hn,un,Jn),$s?$s.then(Ri):Ri())),Vs=()=>$s===Bi&&($s=0),$s=Bi=je.then(Vs,Vs),je),$s,pr={};return _e=_e.apply(Ee,ue),pr[pS("asyncIterator")]=()=>pr,dr("next"),dr("throw"),dr("return"),pr},vS=fS(Ee=>{var ue=Object.defineProperty,_e=(i,s,t)=>s in i?ue(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,Ce=(i,s,t)=>_e(i,typeof s!="symbol"?s+"":s,t),dr,$s,pr,Hi,je,Bi,Vs,hn,un,Jn,Ri,fp,mp,vp,Ep,Wa=(i,s,t,e)=>{let r=i&65535|0,n=i>>>16&65535|0,a=0;for(;t!==0;){a=t>2e3?2e3:t,t-=a;do r=r+s[e++]|0,n=n+r|0;while(--a);r%=65521,n%=65521}return r|n<<16|0},ES=()=>{let i,s=[];for(var t=0;t<256;t++){i=t;for(var e=0;e<8;e++)i=i&1?3988292384^i>>>1:i>>>1;s[t]=i}return s},yS=new Uint32Array(ES()),ri=(i,s,t,e)=>{let r=yS,n=e+t;i^=-1;for(let a=e;a<n;a++)i=i>>>8^r[(i^s[a])&wt];return i^-1},wt=255,st={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},SS=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),_S=function(i){let s=Array.prototype.slice.call(arguments,1);for(;s.length;){let t=s.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(let e in t)SS(t,e)&&(i[e]=t[e])}}return i},RS=i=>{let s=0;for(let e=0,r=i.length;e<r;e++)s+=i[e].length;let t=new Uint8Array(s);for(let e=0,r=0,n=i.length;e<n;e++){let a=i[e];t.set(a,r),r+=a.length}return t},ol={assign:_S,flattenChunks:RS},yp=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(i){yp=!1}var ja=new Uint8Array(256);for(let i=0;i<256;i++)ja[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;ja[254]=ja[254]=1;var TS=i=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(i);let s,t,e,r,n,a=i.length,o=0;for(r=0;r<a;r++)t=i.charCodeAt(r),(t&64512)===55296&&r+1<a&&(e=i.charCodeAt(r+1),(e&64512)===56320&&(t=65536+(t-55296<<10)+(e-56320),r++)),o+=t<128?1:t<2048?2:t<65536?3:4;for(s=new Uint8Array(o),n=0,r=0;n<o;r++)t=i.charCodeAt(r),(t&64512)===55296&&r+1<a&&(e=i.charCodeAt(r+1),(e&64512)===56320&&(t=65536+(t-55296<<10)+(e-56320),r++)),t<128?s[n++]=t:t<2048?(s[n++]=192|t>>>6,s[n++]=128|t&63):t<65536?(s[n++]=224|t>>>12,s[n++]=128|t>>>6&63,s[n++]=128|t&63):(s[n++]=240|t>>>18,s[n++]=128|t>>>12&63,s[n++]=128|t>>>6&63,s[n++]=128|t&63);return s},Sp=(i,s=i.length)=>{if(s<65534&&i.subarray&&yp)return String.fromCharCode.apply(null,i.length===s?i:i.subarray(0,s));let t="";for(let e=0;e<s;e++)t+=String.fromCharCode(i[e]);return t},CS=(i,s)=>{let t=s||i.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(i.subarray(0,s));let e,r,n=new Array(t*2);for(r=0,e=0;e<t;){let a=i[e++];if(a<128){n[r++]=a;continue}let o=ja[a];if(o>4){n[r++]=65533,e+=o-1;continue}for(a&=o===2?31:o===3?15:7;o>1&&e<t;)a=a<<6|i[e++]&63,o--;if(o>1){n[r++]=65533;continue}a<65536?n[r++]=a:(a-=65536,n[r++]=55296|a>>10&1023,n[r++]=56320|a&1023)}return Sp(n,r)},bS=(i,s)=>{s=s||i.length,s>i.length&&(s=i.length);let t=s-1;for(;t>=0&&(i[t]&192)===128;)t--;return t<0||t===0?s:t+ja[i[t]]>s?t:s},qa={string2buf:TS,buf2string:CS,utf8border:bS};function AS(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.__avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var _p=AS;function Rp(i){function s(h){let _=h.length;for(;--_>=0;)h[_]=0}let t=0,e=1,r=2,n=3,a=258,o=29,u=256,c=u+1+o,p=30,f=19,E=2*c+1,g=15,R=16,k=7,X=256,U=16,z=17,dt=18,vt=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ht=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),ke=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Pt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ue=512,Se=new Array((c+2)*2);s(Se);let ii=new Array(p*2);s(ii);let Si=new Array(Ue);s(Si);let V=new Array(a-n+1);s(V);let ut=new Array(o);s(ut);let gt=new Array(p);s(gt);function Rt(h,_,C,w,m){this.static_tree=h,this.extra_bits=_,this.extra_base=C,this.elems=w,this.max_length=m,this.has_stree=h&&h.length}let Ie,hs,us;function Pi(h,_){this.dyn_tree=h,this.max_code=0,this.stat_desc=_}let rr=h=>h<256?Si[h]:Si[256+(h>>>7)],Xi=(h,_)=>{h.__pending_buf[h.__pending++]=_&wt,h.__pending_buf[h.__pending++]=_>>>8&wt},zt=(h,_,C)=>{h.bi_valid>R-C?(h.bi_buf|=_<<h.bi_valid&65535,Xi(h,h.bi_buf),h.bi_buf=_>>R-h.bi_valid,h.bi_valid+=C-R):(h.bi_buf|=_<<h.bi_valid&65535,h.bi_valid+=C)},li=(h,_,C)=>{zt(h,C[_*2],C[_*2+1])},nr=(h,_)=>{let C=0;do C|=h&1,h>>>=1,C<<=1;while(--_>0);return C>>>1},Bn=h=>{h.bi_valid===16?(Xi(h,h.bi_buf),h.bi_buf=0,h.bi_valid=0):h.bi_valid>=8&&(h.__pending_buf[h.__pending++]=h.bi_buf&wt,h.bi_buf>>=8,h.bi_valid-=8)},rn=(h,_)=>{let C=_.dyn_tree,w=_.max_code,m=_.stat_desc.static_tree,at=_.stat_desc.has_stree,Y=_.stat_desc.extra_bits,tt=_.stat_desc.extra_base,he=_.stat_desc.max_length,bt,Ji,ln,we,Zn,Ga,uu=0;for(we=0;we<=g;we++)h.bl_count[we]=0;for(C[h.heap[h.heap_max]*2+1]=0,bt=h.heap_max+1;bt<E;bt++)Ji=h.heap[bt],we=C[C[Ji*2+1]*2+1]+1,we>he&&(we=he,uu++),C[Ji*2+1]=we,!(Ji>w)&&(h.bl_count[we]++,Zn=0,Ji>=tt&&(Zn=Y[Ji-tt]),Ga=C[Ji*2],h.opt_len+=Ga*(we+Zn),at&&(h.static_len+=Ga*(m[Ji*2+1]+Zn)));if(uu!==0){do{for(we=he-1;h.bl_count[we]===0;)we--;h.bl_count[we]--,h.bl_count[we+1]+=2,h.bl_count[he]--,uu-=2}while(uu>0);for(we=he;we!==0;
vendor: 5,306 bytes, line 1
1we--)for(Ji=h.bl_count[we];Ji!==0;)ln=h.heap[--bt],!(ln>w)&&(C[ln*2+1]!==we&&(h.opt_len+=(we-C[ln*2+1])*C[ln*2],C[ln*2+1]=we),Ji--)}},ks=(h,_,C)=>{let w=new Array(g+1),m=0,at,Y;for(at=1;at<=g;at++)w[at]=m=m+C[at-1]<<1;for(Y=0;Y<=_;Y++){let tt=h[Y*2+1];tt!==0&&(h[Y*2]=nr(w[tt]++,tt))}},ar=()=>{let h,_,C,w,m,at=new Array(g+1);for(C=0,w=0;w<o-1;w++)for(ut[w]=C,h=0;h<1<<vt[w];h++)V[C++]=w;for(V[C-1]=w,m=0,w=0;w<16;w++)for(gt[w]=m,h=0;h<1<<ht[w];h++)Si[m++]=w;for(m>>=7;w<p;w++)for(gt[w]=m<<7,h=0;h<1<<ht[w]-7;h++)Si[256+m++]=w;for(_=0;_<=g;_++)at[_]=0;for(h=0;h<=143;)Se[h*2+1]=8,h++,at[8]++;for(;h<=255;)Se[h*2+1]=9,h++,at[9]++;for(;h<=279;)Se[h*2+1]=7,h++,at[7]++;for(;h<=287;)Se[h*2+1]=8,h++,at[8]++;for(ks(Se,c+1,at),h=0;h<p;h++)ii[h*2+1]=5,ii[h*2]=nr(h,5);Ie=new Rt(Se,vt,u+1,c,g),hs=new Rt(ii,ht,0,p,g),us=new Rt(new Array(0),ke,0,f,k)},Nr=h=>{let _;for(_=0;_<c;_++)h.dyn_ltree[_*2]=0;for(_=0;_<p;_++)h.dyn_dtree[_*2]=0;for(_=0;_<f;_++)h.bl_tree[_*2]=0;h.dyn_ltree[X*2]=1,h.opt_len=h.static_len=0,h.last_lit=h.matches=0},$i=h=>{h.bi_valid>8?Xi(h,h.bi_buf):h.bi_valid>0&&(h.__pending_buf[h.__pending++]=h.bi_buf),h.bi_buf=0,h.bi_valid=0},Pr=(h,_,C,w)=>{$i(h),Xi(h,C),Xi(h,~C),h.__pending_buf.set(h.window.subarray(_,_+C),h.__pending),h.__pending+=C},Os=(h,_,C,w)=>{let m=_*2,at=C*2;return h[m]<h[at]||h[m]===h[at]&&w[_]<=w[C]},or=(h,_,C)=>{let w=h.heap[C],m=C<<1;for(;m<=h.heap_len&&(m<h.heap_len&&Os(_,h.heap[m+1],h.heap[m],h.depth)&&m++,!Os(_,w,h.heap[m],h.depth));)h.heap[C]=h.heap[m],C=m,m<<=1;h.heap[C]=w},lr=(h,_,C)=>{let w,m,at=0,Y,tt;if(h.last_lit!==0)do w=h.__pending_buf[h.d_buf+at*2]<<8|h.__pending_buf[h.d_buf+at*2+1],m=h.__pending_buf[h.l_buf+at],at++,w===0?li(h,m,_):(Y=V[m],li(h,Y+u+1,_),tt=vt[Y],tt!==0&&(m-=ut[Y],zt(h,m,tt)),w--,Y=rr(w),li(h,Y,C),tt=ht[Y],tt!==0&&(w-=gt[Y],zt(h,w,tt)));while(at<h.last_lit);li(h,X,_)},kr=(h,_)=>{let C=_.dyn_tree,w=_.stat_desc.static_tree,m=_.stat_desc.has_stree,at=_.stat_desc.elems,Y,tt,he=-1,bt;for(h.heap_len=0,h.heap_max=E,Y=0;Y<at;Y++)C[Y*2]!==0?(h.heap[++h.heap_len]=he=Y,h.depth[Y]=0):C[Y*2+1]=0;for(;h.heap_len<2;)bt=h.heap[++h.heap_len]=he<2?++he:0,C[bt*2]=1,h.depth[bt]=0,h.opt_len--,m&&(h.static_len-=w[bt*2+1]);for(_.max_code=he,Y=h.heap_len>>1;Y>=1;Y--)or(h,C,Y);bt=at;do Y=h.heap[1],h.heap[1]=h.heap[h.heap_len--],or(h,C,1),tt=h.heap[1],h.heap[--h.heap_max]=Y,h.heap[--h.heap_max]=tt,C[bt*2]=C[Y*2]+C[tt*2],h.depth[bt]=(h.depth[Y]>=h.depth[tt]?h.depth[Y]:h.depth[tt])+1,C[Y*2+1]=C[tt*2+1]=bt,h.heap[1]=bt++,or(h,C,1);while(h.heap_len>=2);h.heap[--h.heap_max]=h.heap[1],rn(h,_),ks(C,he,h.bl_count)},Or=(h,_,C)=>{let w,m=-1,at,Y=_[1],tt=0,he=7,bt=4;for(Y===0&&(he=138,bt=3),_[(C+1)*2+1]=65535,w=0;w<=C;w++)at=Y,Y=_[(w+1)*2+1],!(++tt<he&&at===Y)&&(tt<bt?h.bl_tree[at*2]+=tt:at!==0?(at!==m&&h.bl_tree[at*2]++,h.bl_tree[U*2]++):tt<=10?h.bl_tree[z*2]++:h.bl_tree[dt*2]++,tt=0,m=at,Y===0?(he=138,bt=3):at===Y?(he=6,bt=3):(he=7,bt=4))},Ms=(h,_,C)=>{let w,m=-1,at,Y=_[1],tt=0,he=7,bt=4;for(Y===0&&(he=138,bt=3),w=0;w<=C;w++)if(at=Y,Y=_[(w+1)*2+1],!(++tt<he&&at===Y)){if(tt<bt)do li(h,at,h.bl_tree);while(--tt!==0);else at!==0?(at!==m&&(li(h,at,h.bl_tree),tt--),li(h,U,h.bl_tree),zt(h,tt-3,2)):tt<=10?(li(h,z,h.bl_tree),zt(h,tt-3,3)):(li(h,dt,h.bl_tree),zt(h,tt-11,7));tt=0,m=at,Y===0?(he=138,bt=3):at===Y?(he=6,bt=3):(he=7,bt=4)}},hr=h=>{let _;for(Or(h,h.dyn_ltree,h.l_desc.max_code),Or(h,h.dyn_dtree,h.d_desc.max_code),kr(h,h.bl_desc),_=f-1;_>=3&&h.bl_tree[Pt[_]*2+1]===0;_--);return h.opt_len+=3*(_+1)+5+5+4,_},zn=(h,_,C,w)=>{let m;for(zt(h,_-257,5),zt(h,C-1,5),zt(h,w-4,4),m=0;m<w;m++)zt(h,h.bl_tree[Pt[m]*2+1],3);Ms(h,h.dyn_ltree,_-1),Ms(h,h.dyn_dtree,C-1)},nn=h=>{let _=4093624447,C;for(C=0;C<=31;C++,_>>>=1)if(_&1&&h.dyn_ltree[C*2]!==0)return st.Z_BINARY;if(h.dyn_ltree[18]!==0||h.dyn_ltree[20]!==0||h.dyn_ltree[26]!==0)return st.Z_TEXT;for(C=32;C<u;C++)if(h.dyn_ltree[C*2]!==0)return st.Z_TEXT;return st.Z_BINARY},Mr=!1,Gn=h=>{Mr||(ar(),Mr=!0),h.l_desc=new Pi(h.dyn_ltree,Ie),h.d_desc=new Pi(h.dyn_dtree,hs),h.bl_desc=new Pi(h.bl_tree,us),h.bi_buf=0,h.bi_valid=0,Nr(h)},an=(h,_,C,w)=>{zt(h,(t<<1)+(w?1:0),3),Pr(h,_,C)},Wn=h=>{zt(h,e<<1,3),li(h,X,Se),Bn(h)},jn=(h,_,C,w)=>{let m,at,Y=0;h.level>0?(h.__strm.data_type===st.Z_UNKNOWN&&(h.__strm.data_type=nn(h)),kr(h,h.l_desc),kr(h,h.d_desc),Y=hr(h),m=h.opt_len+3+7>>>3,at=h.static_len+3+7>>>3,at<=m&&(m=at)):m=at=C+5,C+4<=m&&_!==-1?an(h,_,C,w):h.strategy===st.Z_FINISH||at===m?(zt(h,(e<<1)+(w?1:0),3),lr(h,Se,ii)):(zt(h,(r<<1)+(w?1:0),3),zn(h,h.l_desc.max_code+1,h.d_desc.max_code+1,Y+1),lr(h,h.dyn_ltree,h.dyn_dtree)),Nr(h),w&&$i(h)},qn=(h,_,C)=>(h.__pending_buf[h.d_buf+h.last_lit*2]=_>>>8&wt,h.__pending_buf[h.d_buf+h.last_lit*2+1]=_&wt,h.__pending_buf[h.l_buf+h.last_lit]=C&wt,h.last_lit++,_===0?h.dyn_ltree[C*2]++:(h.matches++,_--,h.dyn_ltree[(V[C]+u+1)*2]++,h.dyn_dtree[rr(_)*2]++),h.last_lit===h.lit_bufsize-1);var L=Gn,ur=an,_i=jn,Dr=qn,Yt=Wn,cr={_tr_init:L,_tr_stored_block:ur,_tr_flush_block:_i,_tr_tally:Dr,_tr_align:Yt};let{_tr_init:pi,_tr_stored_block:Qi,_tr_flush_block:ki,_tr_tally:Vi,_tr_align:Yn}=cr,xr=9,Ds=15,Xt=8,N=286,W=30,d=19,rt=2*N+1,ft=15,$=3,Lt=258,S=Lt+$+1,Jt=32,O=42,x=69,nt=73,pt=91,G=103,ce=113,se=666,T=1,P=2,H=3,M=4,B=3,Tt=(h,_)=>(h.msg=_,_),re=h=>(h<<1)-(h>4?9:0),Ut=h=>{let _=h.length;for(;--_>=0;)h[_]=0},te=(h,_,C)=>(_<<h.hash_shift^C)&h.hash_mask,Et=h=>
1{let _=h.state,C=_.__pending;C>h.__avail_out&&(C=h.__avail_out),C!==0&&(h.output.set(_.__pending_buf.subarray(_.__pending_out,_.__pending_out+C),h.next_out),h.next_out+=C,_.__pending_out+=C,h.total_out+=C,h.__avail_out-=C,_.__pending-=C,_.__pending===0&&(_.__pending_out=0))},_t=(h,_)=>{ki(h,h.block_start>=0?h.block_start:-1,h.__strstart-h.block_start,_),h.block_start=h.__strstart,Et(h.__strm)},Mt=(h,_)=>{h.__pending_buf[h.__pending++]=_},Oi=(h,_)=>{h.__pending_buf[h.__pending++]=_>>>8&wt,h.__pending_buf[h.__pending++]=_&wt},cs=(h,_,C,w)=>{let m=h.avail_in;return m>w&&(m=w),m===0?0:(h.avail_in-=m,_.set(h.input.subarray(h.next_in,h.next_in+m),C),h.state.wrap===1?h.adler=Wa(h.adler,_,m,C):h.state.wrap===2&&(h.adler=ri(h.adler,_,m,C)),h.next_in+=m,h.total_in+=m,m)},Lr=(h,_)=>{let C=h.max_chain_length,w=h.__strstart,m,at,Y=h.prev_length,tt=h.nice_match,he=h.__strstart>h.w_size-S?h.__strstart-(h.w_size-S):0,bt=h.window,Ji=h.w_mask,ln=h.prev,we=h.__strstart+Lt,Zn=bt[w+Y-1],Ga=bt[w+Y];h.prev_length>=h.good_match&&(C>>=2),tt>h.__lookahead&&(tt=h.__lookahead);do if(m=_,!(bt[m+Y]!==Ga||bt[m+Y-1]!==Zn||bt[m]!==bt[w]||bt[++m]!==bt[w+1])){w+=2,m++;do;while(bt[++w]===bt[++m]&&bt[++w]===bt[++m]&&bt[++w]===bt[++m]&&bt[++w]===bt[++m]&&bt[++w]===bt[++m]&&bt[++w]===bt[++m]&&bt[++w]===bt[++m]&&bt[++w]===bt[++m]&&w<we);if(at=Lt-(we-w),w=we-Lt,at>Y){if(h.match_start=_,Y=at,at>=tt)break;Zn=bt[w+Y-1],Ga=bt[w+Y]}}while((_=ln[_&Ji])>he&&--C!==0);return Y<=h.__lookahead?Y:h.__lookahead},gi=h=>{let _=h.w_size,C,w,m,at,Y;do{if(at=h.window_size-h.__lookahead-h.__strstart,h.__strstart>=_+(_-S)){h.window.set(h.window.subarray(_,_+_),0),h.match_start-=_,h.__strstart-=_,h.block_start-=_,w=h.hash_size,C=w;do m=h.head[--C],h.head[C]=m>=_?m-_:0;while(--w);w=_,C=w;do m=h.prev[--C],h.prev[C]=m>=_?m-_:0;while(--w);at+=_}if(h.__strm.avail_in===0)break;if(w=cs(h.__strm,h.window,h.__strstart+h.__lookahead,at),h.__lookahead+=w,h.__lookahead+h.insert>=$)for(Y=h.__strstart-h.insert,h.ins_h=h.window[Y],h.ins_h=te(h,h.ins_h,h.window[Y+1]);h.insert&&(h.ins_h=te(h,h.ins_h,h.window[Y+$-1]),h.prev[Y&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=Y,Y++,h.insert--,!(h.__lookahead+h.insert<$)););}while(h.__lookahead<S&&h.__strm.avail_in!==0)},op=(h,_)=>{let C=65535;for(C>h.__pending_buf_size-5&&(C=h.__pending_buf_size-5);;){if(h.__lookahead<=1){if(gi(h),h.__lookahead===0&&_===st.Z_NO_FLUSH)return T;if(h.__lookahead===0)break}h.__strstart+=h.__lookahead,h.__lookahead=0;let w=h.block_start+C;if((h.__strstart===0||h.__strstart>=w)&&(h.__lookahead=h.__strstart-w,h.__strstart=w,_t(h,!1),h.__strm.__avail_out===0)||h.__strstart-h.block_start>=h.w_size-S&&(_t(h,!1),h.__strm.__avail_out===0))return T}return h.insert=0,_===st.Z_FINISH?(_t(h,!0),h.__strm.__avail_out===0?H:M):(h.__strstart>h.block_start&&(_t(h,!1),h.__strm.__avail_out),T)},Ba=(h,_)=>{let C,w;while(!0){if(h.__lookahead<S){if(gi(h),h.__lookahead<S&&_===st.Z_NO_FLUSH)return T;if(h.__lookahead===0)break}if(C=0,h.__lookahead>=$&&(h.ins_h=te(h,h.ins_h,h.window[h.__strstart+$-1]),C=h.prev[h.__strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.__strstart),C!==0&&h.__strstart-C<=h.w_size-S&&(h.match_length=Lr(h,C)),h.match_length>=$)if(w=Vi(h,h.__strstart-h.match_start,h.match_length-$),h.__lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.__lookahead>=$){h.match_length--;do h.__strstart++,h.ins_h=te(h,h.ins_h,h.window[h.__strstart+$-1]),C=h.prev[h.__strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.__strstart;while(--h.match_length!==0);h.__strstart++}else h.__strstart+=h.match_length,h.match_length=0,h.ins_h=h.window[h.__strstart],h.ins_h=te(h,h.ins_h,h.window[h.__strstart+1]);else w=Vi(h,0,h.window[h.__strstart]),h.__lookahead--,h.__strstart++;if(w&&(_t(h,!1),h.__strm.__avail_out===0))return T}return h.insert=h.__strstart<$-1?h.__strstart:$-1,_===st.Z_FINISH?(_t(h,!0),h.__strm.__avail_out===0?H:M):h.last_lit&&(_t(h,!1),h.__strm.__avail_out===0)?T:P},Ur=(h,_)=>{let C,w,m;while(!0){if(h.__lookahead<S){if(gi(h),h.__lookahead<S&&_===st.Z_NO_FLUSH)return T;if(h.__lookahead===0)break}if(C=0,h.__lookahead>=$&&(h.ins_h=te(h,h.ins_h,h.window[h.__strstart+$-1]),C=h.prev[h.__strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.__strstart),h.prev_length=h.match_length,h.prev_match=h.match_start,h.match_length=$-1,C!==0&&h.prev_length<h.max_lazy_match&&h.__strstart-C<=h.w_size-S&&(h.match_length=Lr(h,C),h.match_length<=5&&(h.strategy===st.Z_FILTERED||h.match_length===$&&h.__strstart-h.match_start>4096)&&(h.match_length=$-1)),h.prev_length>=$&&h.match_length<=h.prev_length){m=h.__strstart+h.__lookahead-$,w=Vi(h,h.__strstart-1-h.prev_match,h.prev_length-$),h.__lookahead-=h.prev_length-1,h.prev_length-=2;do++h.__strstart<=m&&(h.ins_h=te(h,h.ins_h,h.window[h.__strstart+$-1]),C=h.prev[h.__strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.__strstart);while(--h.prev_length!==0);if(h.match_available=0,h.match_length=$-1,h.__strstart++,w&&(_t(h,!1),h.__strm.__avail_out===0))return T}else if(h.match_available){if(w=Vi(h,0,h.window[h.__strstart-1]),w&&_t(h,!1),h.__strstart++,h.__lookahead--,h.__strm.__avail_out===0)return T}else h.match_available=1,h.__strstart++,h.__lookahead--}return h.match_available&&(w=Vi(h,0,h.window[h.__strstart-1]),h.match_available=0),h.insert=h.__strstart<$-1?h.__strstart:$-1,_===st.Z_FINISH?(_t(h,!0),h.__strm.__avail_out===0?H:M):h.last_lit&&(_t(h,!1),h.__strm.__avail_out===0)?T:P},nu=(h,_)=>{let C,w,m,at,Y=h.window;while(!0){if(h.__lookahead<=Lt){if(gi(h),h.__lookahead<=Lt&&_===st.Z_NO_FLUSH)return T;if(h.__lookahead===0)break}if(h.match_length=0,h.__lookahead>=$&&h.__strstart>0&&(m=h.__strstart-1,w=Y[m],w===Y[++m]&&w===Y[++m]&&w===Y[++m])){at=h.__strstart+Lt;do;while(w===Y[++m]&&w===Y[++m]&&w===Y[++m]&&w===Y[++m]&&w===Y[++m]&&w===Y[++m]&&w===Y[++m]&&w===Y[++m]&&m<at);h.match_length=Lt-(at-m),h.match_length>h.__lookahead&&(h.match_length=h.__lookahead)}if(h.match_length>=$?(C=Vi(h,1,h.match_length-$),h.__lookahead-=h.match_length,h.__strstart+=h.match_length,h.match_length=0):(C=Vi(h,0,h.window[h.__strstart]),h.__lookahead--,h.__strstart++),C&&(_t(h,!1),h.__strm.__avail_out===0))return T}return h.insert=0,_===st.Z_FINISH?(_t(h,!0),h.__strm.__avail_out===0?H:M):h.last_lit&&(_t(h,!1),h.__strm.__avail_out===0)?T:P},au=(h,_)=>{let C;while(!0){if(h.__lookahead===0&&(gi(h),h.__lookahead===0)){if(_===st.Z_NO_FLUSH)return T;break}if(h.match_length=0,C=Vi(h,0,h.window[h.__strstart]),h.__lookahead--,h.__strstart++,C&&(_t(h,!1),h.__strm.__avail_out===0))return T}return h.insert=0,_===st.Z_FINISH?(_t(h,!0),h.__strm.__avail_out===0?H:M):h.last_lit&&(_t(h,!1),h.__strm.__avail_out===0)?T:P};function Mi(h,_,C,w,m){this.good_length=h,this.max_lazy=_,this.nice_length=C,this.max_chain=w,this.func=m}let on=[new Mi(0,0,0,0,op),new Mi(4,4,8,4,Ba),new Mi(4,5,16,8,Ba),new Mi(4,6,32,32,Ba),new Mi(4,4,16,16,Ur),new Mi(8,16,32,32,Ur),new Mi(8,16,128,128,Ur),new Mi(8,32,128,256,Ur),new Mi(32,128,258,1024,Ur),new Mi(32,258,258,4096,Ur)],ou=h=>{h.window_size=2*h.w_size,Ut(h.head),h.max_lazy_match=on[h.level].max_lazy,h.good_match=on[h.level].good_length,h.nice_match=on[h.level].nice_length,h.max_chain_length=on[h.level].max_chain,h.__strstart=0,h.block_start=0,h.__lookahead=0,h.insert=0,h.match_length=h.prev_length=$-1,h.match_available=0,h.ins_h=0};function lp(){this.__strm=null,this.status=0,this.__pending_buf=null,this.__pending_buf_size=0,this.__pending_out=0,this.__pending=0,this.wrap=0,this.__gzhead=null,this.gzindex=0,this.method=st.Z_DEFLATED,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.__strstart=0,this.match_start=0,this.__lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(rt*2),this.dyn_dtree=new Uint16Array((2*W+1)*2),this.bl_tree=new Uint16Array((2*d+1)*2),Ut(this.dyn_ltree),Ut(this.dyn_dtree),Ut(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(ft+1),this.heap=new Uint16Array(2*N+1),Ut(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*N+1),Ut(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}let za=h=>{if(!h||!h.state)return Tt(h,st.Z_STREAM_ERROR);h.total_in=h.total_out=0,h.data_type=st.Z_UNKNOWN;let _=h.state;return _.__pending=0,_.__pending_out=0,_.wrap<0&&(_.wrap=-_.wrap),_.status=_.wrap?O:ce,h.adler=_.wrap===2?0:1,_.last_flush=st.Z_NO_FLUSH,pi(_),st.Z_OK},lu=h=>{let _=za(h);return _===st.Z_OK&&ou(h.state),_},y=(h,_)=>!h||!h.state||h.state.wrap!==2?st.Z_STREAM_ERROR:(h.state.__gzhead=_,st.Z_OK),A=(h,_,C,w,m,at)=>{if(!h)return st.Z_STREAM_ERROR;let Y=1;if(_===st.Z_DEFAULT_COMPRESSION&&(_=6),w<0?(Y=0,w=-w):w>15&&(Y=2,w-=16),m<1||m>xr||C!==st.Z_DEFLATED||w<8||w>15||_<0||_>9||at<0||at>st.Z_FIXED)return Tt(h,st.Z_STREAM_ERROR);w===8&&(w=9);let tt=new lp;return h.state=tt,tt.__strm=h,tt.wrap=Y,tt.__gzhead=null,tt.w_bits=w,tt.w_size=1<<tt.w_bits,tt.w_mask=tt.w_size-1,tt.hash_bits=m+7,tt.hash_size=1<<tt.hash_bits,tt.hash_mask=tt.hash_size-1,tt.hash_shift=~~((tt.hash_bits+$-1)/$),tt.window=new Uint8Array(tt.w_size*2),tt.head=new Uint16Array(tt.hash_size),tt.prev=new Uint16Array(tt.w_size),tt.lit_bufsize=1<<m+6,tt.__pending_buf_size=tt.lit_bufsize*4,tt.__pe
1nding_buf=new Uint8Array(tt.__pending_buf_size),tt.d_buf=1*tt.lit_bufsize,tt.l_buf=3*tt.lit_bufsize,tt.level=_,tt.strategy=at,tt.method=C,lu(h)},F=(h,_)=>A(h,_,st.Z_DEFLATED,Ds,Xt,st.Z_DEFAULT_STRATEGY),Wt=(h,_)=>{let C,w;if(!h||!h.state||_>st.Z_BLOCK||_<0)return h?Tt(h,st.Z_STREAM_ERROR):st.Z_STREAM_ERROR;let m=h.state;if(!h.output||!h.input&&h.avail_in!==0||m.status===se&&_!==st.Z_FINISH)return Tt(h,h.__avail_out===0?st.Z_BUF_ERROR:st.Z_STREAM_ERROR);m.__strm=h;let at=m.last_flush;if(m.last_flush=_,m.status===O)if(m.wrap===2)h.adler=0,Mt(m,31),Mt(m,139),Mt(m,8),m.__gzhead?(Mt(m,(m.__gzhead.text?1:0)+(m.__gzhead.hcrc?2:0)+(m.__gzhead.extra?4:0)+(m.__gzhead.name?8:0)+(m.__gzhead.comment?16:0)),Mt(m,m.__gzhead.time&wt),Mt(m,m.__gzhead.time>>8&wt),Mt(m,m.__gzhead.time>>16&wt),Mt(m,m.__gzhead.time>>24&wt),Mt(m,m.level===9?2:m.strategy>=st.Z_HUFFMAN_ONLY||m.level<2?4:0),Mt(m,m.__gzhead.os&wt),m.__gzhead.extra&&m.__gzhead.extra.length&&(Mt(m,m.__gzhead.extra.length&wt),Mt(m,m.__gzhead.extra.length>>8&wt)),m.__gzhead.hcrc&&(h.adler=ri(h.adler,m.__pending_buf,m.__pending,0)),m.gzindex=0,m.status=x):(Mt(m,0),Mt(m,0),Mt(m,0),Mt(m,0),Mt(m,0),Mt(m,m.level===9?2:m.strategy>=st.Z_HUFFMAN_ONLY||m.level<2?4:0),Mt(m,B),m.status=ce);else{let Y=st.Z_DEFLATED+(m.w_bits-8<<4)<<8,tt=-1;m.strategy>=st.Z_HUFFMAN_ONLY||m.level<2?tt=0:m.level<6?tt=1:m.level===6?tt=2:tt=3,Y|=tt<<6,m.__strstart!==0&&(Y|=Jt),Y+=31-Y%31,m.status=ce,Oi(m,Y),m.__strstart!==0&&(Oi(m,h.adler>>>16),Oi(m,h.adler&65535)),h.adler=1}if(m.status===x)if(m.__gzhead.extra){for(C=m.__pending;m.gzindex<(m.__gzhead.extra.length&65535)&&!(m.__pending===m.__pending_buf_size&&(m.__gzhead.hcrc&&m.__pending>C&&(h.adler=ri(h.adler,m.__pending_buf,m.__pending-C,C)),Et(h),C=m.__pending,m.__pending===m.__pending_buf_size));)Mt(m,m.__gzhead.extra[m.gzindex]&wt),m.gzindex++;m.__gzhead.hcrc&&m.__pending>C&&(h.adler=ri(h.adler,m.__pending_buf,m.__pending-C,C)),m.gzindex===m.__gzhead.extra.length&&(m.gzindex=0,m.status=nt)}else m.status=nt;if(m.status===nt)if(m.__gzhead.name){C=m.__pending;do{if(m.__pending===m.__pending_buf_size&&(m.__gzhead.hcrc&&m.__pending>C&&(h.adler=ri(h.adler,m.__pending_buf,m.__pending-C,C)),Et(h),C=m.__pending,m.__pending===m.__pending_buf_size)){w=1;break}m.gzindex<m.__gzhead.name.length?w=m.__gzhead.name.charCodeAt(m.gzindex++)&wt:w=0,Mt(m,w)}while(w!==0);m.__gzhead.hcrc&&m.__pending>C&&(h.adler=ri(h.adler,m.__pending_buf,m.__pending-C,C)),w===0&&(m.gzindex=0,m.status=pt)}else m.status=pt;if(m.status===pt)if(m.__gzhead.comment){C=m.__pending;do{if(m.__pending===m.__pending_buf_size&&(m.__gzhead.hcrc&&m.__pending>C&&(h.adler=ri(h.adler,m.__pending_buf,m.__pending-C,C)),Et(h),C=m.__pending,m.__pending===m.__pending_buf_size)){w=1;break}m.gzindex<m.__gzhead.comment.length?w=m.__gzhead.comment.charCodeAt(m.gzindex++)&wt:w=0,Mt(m,w)}while(w!==0);m.__gzhead.hcrc&&m.__pending>C&&(h.adler=ri(h.adler,m.__pending_buf,m.__pending-C,C)),w===0&&(m.status=G)}else m.status=G;if(m.status===G&&(m.__gzhead.hcrc?(m.__pending+2>m.__pending_buf_size&&Et(h),m.__pending+2<=m.__pending_buf_size&&(Mt(m,h.adler&wt),Mt(m,h.adler>>8&wt),h.adler=0,m.status=ce)):m.status=ce),m.__pending!==0){if(Et(h),h.__avail_out===0)return m.last_flush=-1,st.Z_OK}else if(h.avail_in===0&&re(_)<=re(at)&&_!==st.Z_FINISH)return Tt(h,st.Z_BUF_ERROR);if(m.status===se&&h.avail_in!==0)return Tt(h,st.Z_BUF_ERROR);if(h.avail_in!==0||m.__lookahead!==0||_!==st.Z_NO_FLUSH&&m.status!==se){let Y=m.strategy===st.Z_HUFFMAN_ONLY?au(m,_):m.strategy===st.Z_RLE?nu(m,_):on[m.level].func(m,_);if((Y===H||Y===M)&&(m.status=se),Y===T||Y===H)return h.__avail_out===0&&(m.last_flush=-1),st.Z_OK;if(Y===P&&(_===st.Z_PARTIAL_FLUSH?Yn(m):_!==st.Z_BLOCK&&(Qi(m,0,0,!1),_===st.Z_FULL_FLUSH&&(Ut(m.head),m.__lookahead===0&&(m.__strstart=0,m.block_start=0,m.insert=0))),Et(h),h.__avail_out===0))return m.last_flush=-1,st.Z_OK}return _!==st.Z_FINISH?st.Z_OK:m.wrap<=0?st.Z_STREAM_END:(m.wrap===2?(Mt(m,h.adler&wt),Mt(m,h.adler>>8&wt),Mt(m,h.adler>>16&wt),Mt(m,h.adler>>24&wt),Mt(m,h.total_in&wt),Mt(m,h.total_in>>8&wt),Mt(m,h.total_in>>16&wt),Mt(m,h.total_in>>24&wt)):(Oi(m,h.adler>>>16),Oi(m,h.adler&65535)),Et(h),m.wrap>0&&(m.wrap=-m.wrap),m.__pending!==0?st.Z_OK:st.Z_STREAM_END)},ae=h=>
1{if(!h||!h.state)return st.Z_STREAM_ERROR;let _=h.state.status;return _!==O&&_!==x&&_!==nt&&_!==pt&&_!==G&&_!==ce&&_!==se?Tt(h,st.Z_STREAM_ERROR):(h.state=null,_===ce?Tt(h,st.Z_DATA_ERROR):st.Z_OK)},$e=(h,_)=>{let C=_.length;if(!h||!h.state)return st.Z_STREAM_ERROR;let w=h.state,m=w.wrap;if(m===2||m===1&&w.status!==O||w.__lookahead)return st.Z_STREAM_ERROR;if(m===1&&(h.adler=Wa(h.adler,_,C,0)),w.wrap=0,C>=w.w_size){m===0&&(Ut(w.head),w.__strstart=0,w.block_start=0,w.insert=0);let he=new Uint8Array(w.w_size);he.set(_.subarray(C-w.w_size,C),0),_=he,C=w.w_size}let at=h.avail_in,Y=h.next_in,tt=h.input;for(h.avail_in=C,h.next_in=0,h.input=_,gi(w);w.__lookahead>=$;){let he=w.__strstart,bt=w.__lookahead-($-1);do w.ins_h=te(w,w.ins_h,w.window[he+$-1]),w.prev[he&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=he,he++;while(--bt);w.__strstart=he,w.__lookahead=$-1,gi(w)}return w.__strstart+=w.__lookahead,w.block_start=w.__strstart,w.insert=w.__lookahead,w.__lookahead=0,w.match_length=w.prev_length=$-1,w.match_available=0,h.next_in=Y,h.input=tt,h.avail_in=at,w.wrap=m,st.Z_OK};var Fi=F,xs=A,b1=lu,A1=za,I1=y,w1=Wt,N1=ae,P1=$e,k1="pako deflate (from Nodeca project)",rl={deflateInit:Fi,deflateInit2:xs,deflateReset:b1,deflateResetKeep:A1,deflateSetHeader:I1,deflate:w1,deflateEnd:N1,deflateSetDictionary:P1,deflateInfo:k1};let uS=Object.prototype.toString;function hu(h){this.options=ol.assign({level:st.Z_DEFAULT_COMPRESSION,method:st.Z_DEFLATED,chunkSize:16384,windowBits:15,memLevel:8,strategy:st.Z_DEFAULT_STRATEGY},h||{});let _=this.options;_.raw&&_.windowBits>0?_.windowBits=-_.windowBits:_.gzip&&_.windowBits>0&&_.windowBits<16&&(_.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.__strm=new _p,this.__strm.__avail_out=0;let C=rl.deflateInit2(this.__strm,_.level,_.method,_.windowBits,_.memLevel,_.strategy);if(C!==st.Z_OK)throw new Error("Err: "+C);if(_.header&&rl.deflateSetHeader(this.__strm,_.header),_.dictionary){let w;if(typeof _.dictionary=="string"?w=qa.string2buf(_.dictionary):uS.call(_.dictionary)==="[object ArrayBuffer]"?w=new Uint8Array(_.dictionary):w=_.dictionary,C=rl.deflateSetDictionary(this.__strm,w),C!==st.Z_OK)throw new Error("Err: "+C);this._dict_set=!0}}hu.prototype.push=function(h,_){let C=this.__strm,w=this.options.chunkSize,m,at;if(this.ended)return!1;for(_===~~_?at=_:at=_===!0?st.Z_FINISH:st.Z_NO_FLUSH,typeof h=="string"?C.input=qa.string2buf(h):uS.call(h)==="[object ArrayBuffer]"?C.input=new Uint8Array(h):C.input=h,C.next_in=0,C.avail_in=C.input.length;;){if(C.__avail_out===0&&(C.output=new Uint8Array(w),C.next_out=0,C.__avail_out=w),(at===st.Z_SYNC_FLUSH||at===st.Z_FULL_FLUSH)&&C.__avail_out<=6){this.onData(C.output.subarray(0,C.next_out)),C.__avail_out=0;continue}if(m=rl.deflate(C,at),m===st.Z_STREAM_END)return C.next_out>0&&this.onData(C.output.subarray(0,C.next_out)),m=rl.deflateEnd(this.__strm),this.onEnd(m),this.ended=!0,m===st.Z_OK;if(C.__avail_out===0){this.onData(C.output);continue}if(at>0&&C.next_out>0){this.onData(C.output.subarray(0,C.next_out)),C.__avail_out=0;continue}if(C.avail_in===0)break}return!0},hu.prototype.onData=function(h){this.chunks.push(h)},hu.prototype.onEnd=function(h){h===st.Z_OK&&(this.result=ol.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.__strm.msg};function O1(h,_){_=_||{};let C=new hu(_);if(C.push(h,!0),C.err)throw C.msg||C.err;return C.result}function M1(h,_){return _=_||{},_.gzip=!0,O1(h,_)}return(h,_)=>{let C=M1(h);return i==="base64"?C=btoa(Sp(C)):C=C.buffer,_&&_(C),C}}var IS=class hp{constructor(s){var t;this.source=s,this.locked=!1,this.chunks=[],this.pendingReads=[],this.isClosed=!1,(t=s==null?void 0:s.start)==null||t.call(s,{enqueue:e=>this.enqueue(e),close:()=>this.close(),error:e=>this.error(e)})}getReader(){return{closed:Promise.resolve(void 0),read:()=>this.read(),cancel:s=>this.cancel(s),releaseLock:()=>{}}}cancel(s){var t,e;return(e=(t=this.source)==null?void 0:t.cancel)==null||e.call(t,s),this.isClosed=!0,this.chunks.length=0,Promise.resolve()}pipeTo(s){let t=s.getWriter();return this.pump(e=>t.write(e)).then(()=>t.close(),e=>{var r;throw(r=t.abort)==null||r.call(t,e),e})}pipeThrough(s){return this.pipeTo(s.writable),s.readable}tee(){let s=new hp,t=new hp;return this.pump(e=>{s.enqueue(e),t.enqueue(e)}
1).then(()=>{s.close(),t.close()},e=>{s.error(e),t.error(e)}),[s,t]}enqueue(s){let t=this.pendingReads.shift();t?t.resolve({value:s,done:!1}):this.chunks.push(s)}close(){this.isClosed=!0;for(let s of this.pendingReads.splice(0))s.resolve({value:void 0,done:!0})}error(s){this.failure={reason:s};for(let t of this.pendingReads.splice(0))t.reject(s)}read(){return this.chunks.length>0?Promise.resolve({value:this.chunks.shift(),done:!1}):this.failure?Promise.reject(this.failure.reason):this.isClosed?Promise.resolve({value:void 0,done:!0}):new Promise((s,t)=>{this.pendingReads.push({resolve:s,reject:t})})}pump(s){let t=()=>this.read().then(e=>{if(!e.done)return Promise.resolve(s(e.value)).then(t)});return t()}},Tp=(dr=self.ReadableStream)!=null?dr:IS,wS=class{constructor(i){if(this.compressor=Rp("byteArray"),i!=="gzip")throw new TypeError(`Unsupported compression format: '${i}'`);let s,t=[];this.readable=new Tp({start(a){s=a}});let e=this.compressor,r=a=>{t.push(a)},n=()=>{let a=t.reduce((p,f)=>p+f.length,0),o=new Uint8Array(a),u=0;for(let p of t)o.set(p,u),u+=p.length;let c=e(o.buffer);s.enqueue(new Uint8Array(c)),s.close()};this.writable=self.WritableStream?new WritableStream({write:r,close:n}):{getWriter(){return{write(a){return r(a),Promise.resolve()},close(){return n(),Promise.resolve()}}}}}},Cp=($s=self.CompressionStream)!=null?$s:wS,kt={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};function NS(){var i=function(N,W){let d,rt,ft,$,Lt,S,Jt,O,x,nt,pt,G,ce,se,T,P,H,M,B,Tt,re,Ut,te,Et,_t=N.__state;d=N.next_in,te=N.input,rt=d+(N.avail_in-5),ft=N.next_out,Et=N.output,$=ft-(W-N.__avail_out),Lt=ft+(N.__avail_out-257),S=_t.dmax,Jt=_t.wsize,O=_t.whave,x=_t.wnext,nt=_t.window,pt=_t.hold,G=_t.bits,ce=_t.lencode,se=_t.distcode,T=(1<<_t.lenbits)-1,P=(1<<_t.distbits)-1;t:do{G<15&&(pt+=te[d++]<<G,G+=8,pt+=te[d++]<<G,G+=8),H=ce[pt&T];e:while(!0){if(M=H>>>24,pt>>>=M,G-=M,M=H>>>16&wt,M===0)Et[ft++]=H&65535;else if(M&16){B=H&65535,M&=15,M&&(G<M&&(pt+=te[d++]<<G,G+=8),B+=pt&(1<<M)-1,pt>>>=M,G-=M),G<15&&(pt+=te[d++]<<G,G+=8,pt+=te[d++]<<G,G+=8),H=se[pt&P];i:for(;;){if(M=H>>>24,pt>>>=M,G-=M,M=H>>>16&wt,M&16){if(Tt=H&65535,M&=15,G<M&&(pt+=te[d++]<<G,G+=8,G<M&&(pt+=te[d++]<<G,G+=8)),Tt+=pt&(1<<M)-1,Tt>S){N.msg="invalid distance too far back",_t.mode=16209;break t}if(pt>>>=M,G-=M,M=ft-$,Tt>M){if(M=Tt-M,M>O&&_t.sane){N.msg="invalid distance too far back",_t.mode=16209;break t}if(re=0,Ut=nt,x===0){if(re+=Jt-M,M<B){B-=M;do Et[ft++]=nt[re++];while(--M);re=ft-Tt,Ut=Et}}else if(x<M){if(re+=Jt+x-M,M-=x,M<B){B-=M;do Et[ft++]=nt[re++];while(--M);if(re=0,x<B){M=x,B-=M;do Et[ft++]=nt[re++];while(--M);re=ft-Tt,Ut=Et}}}else if(re+=x-M,M<B){B-=M;do Et[ft++]=nt[re++];while(--M);re=ft-Tt,Ut=Et}for(;B>2;)Et[ft++]=Ut[re++],Et[ft++]=Ut[re++],Et[ft++]=Ut[re++],B-=3;B&&(Et[ft++]=Ut[re++],B>1&&(Et[ft++]=Ut[re++]))}else{re=ft-Tt;do Et[ft++]=Et[re++],Et[ft++]=Et[re++],Et[ft++]=Et[re++],B-=3;while(B>2);B&&(Et[ft++]=Et[re++],B>1&&(Et[ft++]=Et[re++]))}}else if((M&64)===0){H=se[(H&65535)+(pt&(1<<M)-1)];continue i}else{N.msg="invalid distance code",_t.mode=16209;break t}break}}else if((M&64)===0){H=ce[(H&65535)+(pt&(1<<M)-1)];continue e}else if(M&32){_t.mode=16191;break t}else{N.msg="invalid literal/length code",_t.mode=16209;break t}break}}while(d<rt&&ft<Lt);B=G>>3,d-=B,G-=B<<3,pt&=(1<<G)-1,N.next_in=d,N.next_out=ft,N.avail_in=d<rt?5+(rt-d):5-(d-rt),N.__avail_out=ft<Lt?257+(Lt-ft):257-(ft-Lt),_t.hold=pt,_t.bits=G};let s=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),t=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),e=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),r=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var n=(N,W,d,rt,ft,$,Lt,S)=>{let Jt=S.bits,O=0,x=0,nt=0,pt=0,G=0,ce=0,se=0,T=0,P=0,H=0,M,B,Tt,re,Ut,te=null,Et,_t=new Uint16Array(16),Mt=new Uint16Array(16),Oi=null,cs,Lr,gi;for(O=0;O<=15;O++)_t[O]=0;for(x=0;x<rt;x++)_t[W[d+x]]++;for(G=Jt,pt=15;pt>=1&&_t[pt]===0;pt--);if(G>pt&&(G=pt),pt===0)return ft[$++]=1<<24|64<<16|0,ft[$++]=1<<24|64<<16|0,S.bits=1,0;for(nt=1;nt<pt&&_t[nt]===0;nt++);for(G<nt&&(G=nt),T=1,O=1;O<=15;O++)if(T<<=1,T-=_t[O],T<0)return-1;if(T>0&&(N===0||pt!==1))return-1;for(Mt[1]=0,O=1;O<15;O++)Mt[O+1]=Mt[O]+_t[O];for(x=0;x<rt;x++)W[d+x]!==0&&(Lt[Mt[W[d+x]]++]=x);if(N===0?(te=Oi=Lt,Et=20):N===1?(te=s,Oi=t,Et=257):(te=e,Oi=r,Et=0),H=0,x=0,O=nt,Ut=$,ce=G,se=0,Tt=-1,P=1<<G,re=P-1,N===1&&P>852||N===2&&P>592)return 1;while(!0){cs=O-se,Lt[x]+1<Et?(Lr=0,gi=Lt[x]):Lt[x]>=Et?(Lr=Oi[Lt[x]-Et],gi=te[Lt[x]-Et]):(Lr=96,gi=0),M=1<<O-se,B=1<<ce,nt=B;do B-=M,ft[Ut+(H>>se)+B]=cs<<24|Lr<<16|gi|0;while(B!==0);for(M=1<<O-1;H&M;)M>>=1;if(M!==0?(H&=M-1,H+=M):H=0,x++,--_t[O]===0){if(O===pt)break;O=W[d+Lt[x]]}if(O>G&&(H&re)!==Tt){for(se===0&&(se=G),Ut+=nt,ce=O-se,T=1<<ce;ce+se<pt&&(T-=_t[ce+se],!(T<=0));)ce++,T<<=1;if(P+=1<<ce,N===1&&P>852||N===2&&P>592)return 1;Tt=H&re,ft[Tt]=G<<24|ce<<16|Ut-$|0}}return H!==0&&(ft[Ut+H]=O-se<<24|64<<16|0),S.bits=G,0};let a=0,o=1,u=2,c=16180,p=16181,f=16182,E=16183,g=16184,R=16185,k=16186,X=16187,U=16188,z=16189,dt=16190,vt=16191,ht=16192,ke=16193,Pt=16194,Ue=16195,Se=16196,ii=16197,Si=16198,V=16199,ut=16200,gt=16201,Rt=16202,Ie=16203,hs=16204,us=16205,Pi=16206,rr=16207,Xi=16208,zt=16209,li=16210,nr=16211,Bn=852,rn=592,ks=15,ar=N=>(N>>>24&wt)+(N>>>8&65280)+((N&65280)<<8)+((N&wt)<<24);function Nr(){this.__strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}let $i=N=>{if(!N)return 1;let W=N.__state;return!W||W.__strm!==N||W.mode<c||W.mode>nr?1:0},Pr=N=>{if($i(N))return kt.Z_STREAM_ERROR;let W=N.__state;return N.total_in=N.total_out=W.total=0,N.msg="",W.wrap&&(N.adler=W.wrap&1),W.mode=c,W.last=0,W.havedict=0,W.flags=-1,W.dmax=32768,W.head=null,W.hold=0,W.bits=0,W.lencode=W.lendyn=new Int32Array(Bn),W.distcode=W.distdyn=new Int32Array(rn),W.sane=1,W.back=-1,kt.Z_OK},Os=N=>{if($i(N))return kt.Z_STREAM_ERROR;let W=N.__state;return W.wsize=0,W.whave=0,W.wnext=0,Pr(N)},or=(N,W)=>{let d;if($i(N))return kt.Z_STREAM_ERROR;let rt=N.__state;return W<0?(d=0,W=-W):(d=(W>>4)+5,W<48&&(W&=15)),W&&(W<8||W>15)?kt.Z_STREAM_ERROR:(rt.window!==null&&rt.wbits!==W&&(rt.window=null),rt.wrap=d,rt.wbits=W,Os(N))},lr=(N,W)=>{if(!N)return kt.Z_STREAM_ERROR;let d=new Nr;N.__state=d,d.__strm=N,d.window=null,d.mode=c;let rt=or(N,W);return rt!==kt.Z_OK&&(N.__state=null),rt},kr=N=>lr(N,ks),Or=!0,Ms,hr,zn=N=>{if(Or){Ms=new Int32Array(512),hr=new Int32Array(32);let W=0;for(;W<144;)N.lens[W++]=8;for(;W<256;)N.lens[W++]=9;for(;W<280;)N.lens[W++]=7;for(;W<288;)N.lens[W++]=8;for(n(o,N.lens,0,288,Ms,0,N.work,{bits:9}),W=0;W<32;)N.lens[W++]=5;n(u,N.lens,0,32,hr,0,N.work,{bits:5}),Or=!1}N.lencode=Ms,N.lenbits=9,N.distcode=hr,N.distbits=5},nn=(N,W,d,rt)=>{let ft,$=N.__state;return $.window===null&&($.wsize=1<<$.wbits,$.wnext=0,$.whave=0,$.window=new Uint8Array($.wsize)),rt>
1=$.wsize?($.window.set(W.subarray(d-$.wsize,d),0),$.wnext=0,$.whave=$.wsize):(ft=$.wsize-$.wnext,ft>rt&&(ft=rt),$.window.set(W.subarray(d-rt,d-rt+ft),$.wnext),rt-=ft,rt?($.window.set(W.subarray(d-rt,d),0),$.wnext=rt,$.whave=$.wsize):($.wnext+=ft,$.wnext===$.wsize&&($.wnext=0),$.whave<$.wsize&&($.whave+=ft))),0},Mr=(N,W)=>{let d,rt,ft,$,Lt,S,Jt,O,x,nt,pt,G,ce,se,T=0,P,H,M,B,Tt,re,Ut,te,Et=new Uint8Array(4),_t,Mt,Oi=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if($i(N)||!N.output||!N.input&&N.avail_in!==0)return kt.Z_STREAM_ERROR;d=N.__state,d.mode===vt&&(d.mode=ht),Lt=N.next_out,ft=N.output,Jt=N.__avail_out,$=N.next_in,rt=N.input,S=N.avail_in,O=d.hold,x=d.bits,nt=S,pt=Jt,te=kt.Z_OK;t:while(!0)switch(d.mode){case c:if(d.wrap===0){d.mode=ht;break}for(;x<16;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}if(d.wrap&2&&O===35615){d.wbits===0&&(d.wbits=15),d.check=0,Et[0]=O&wt,Et[1]=O>>>8&wt,d.check=ri(d.check,Et,2,0),O=0,x=0,d.mode=p;break}if(d.head&&(d.head.done=!1),!(d.wrap&1)||(((O&wt)<<8)+(O>>8))%31){N.msg="incorrect header check",d.mode=zt;break}if((O&15)!==kt.Z_DEFLATED){N.msg="unknown compression method",d.mode=zt;break}if(O>>>=4,x-=4,Ut=(O&15)+8,d.wbits===0&&(d.wbits=Ut),Ut>15||Ut>d.wbits){N.msg="invalid window size",d.mode=zt;break}d.dmax=1<<d.wbits,d.flags=0,N.adler=d.check=1,d.mode=O&512?z:vt,O=0,x=0;break;case p:for(;x<16;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}if(d.flags=O,(d.flags&wt)!==kt.Z_DEFLATED){N.msg="unknown compression method",d.mode=zt;break}if(d.flags&57344){N.msg="unknown header flags set",d.mode=zt;break}d.head&&(d.head.text=O>>8&1),d.flags&512&&d.wrap&4&&(Et[0]=O&wt,Et[1]=O>>>8&wt,d.check=ri(d.check,Et,2,0)),O=0,x=0,d.mode=f;case f:for(;x<32;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}d.head&&(d.head.time=O),d.flags&512&&d.wrap&4&&(Et[0]=O&wt,Et[1]=O>>>8&wt,Et[2]=O>>>16&wt,Et[3]=O>>>24&wt,d.check=ri(d.check,Et,4,0)),O=0,x=0,d.mode=E;case E:for(;x<16;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}d.head&&(d.head.xflags=O&wt,d.head.os=O>>8),d.flags&512&&d.wrap&4&&(Et[0]=O&wt,Et[1]=O>>>8&wt,d.check=ri(d.check,Et,2,0)),O=0,x=0,d.mode=g;case g:if(d.flags&1024){for(;x<16;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}d.length=O,d.head&&(d.head.extra_len=O),d.flags&512&&d.wrap&4&&(Et[0]=O&wt,Et[1]=O>>>8&wt,d.check=ri(d.check,Et,2,0)),O=0,x=0}else d.head&&(d.head.extra=null);d.mode=R;case R:if(d.flags&1024&&(G=d.length,G>S&&(G=S),G&&(d.head&&(Ut=d.head.extra_len-d.length,d.head.extra||(d.head.extra=new Uint8Array(d.head.extra_len)),d.head.extra.set(rt.subarray($,$+G),Ut)),d.flags&512&&d.wrap&4&&(d.check=ri(d.check,rt,G,$)),S-=G,$+=G,d.length-=G),d.length))break t;d.length=0,d.mode=k;case k:if(d.flags&2048){if(S===0)break t;G=0;do Ut=rt[$+G++],d.head&&Ut&&d.length<65536&&(d.head.name+=String.fromCharCode(Ut));while(Ut&&G<S);if(d.flags&512&&d.wrap&4&&(d.check=ri(d.check,rt,G,$)),S-=G,$+=G,Ut)break t}else d.head&&(d.head.name=null);d.length=0,d.mode=X;case X:if(d.flags&4096){if(S===0)break t;G=0;do Ut=rt[$+G++],d.head&&Ut&&d.length<65536&&(d.head.comment+=String.fromCharCode(Ut));while(Ut&&G<S);if(d.flags&512&&d.wrap&4&&(d.check=ri(d.check,rt,G,$)),S-=G,$+=G,Ut)break t}else d.head&&(d.head.comment=null);d.mode=U;case U:if(d.flags&512){for(;x<16;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}if(d.wrap&4&&O!==(d.check&65535)){N.msg="header crc mismatch",d.mode=zt;break}O=0,x=0}d.head&&(d.head.hcrc=d.flags>>9&1,d.head.done=!0),N.adler=d.check=0,d.mode=vt;break;case z:for(;x<32;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}N.adler=d.check=ar(O),O=0,x=0,d.mode=dt;case dt:if(d.havedict===0)return N.next_out=Lt,N.__avail_out=Jt,N.next_in=$,N.avail_in=S,d.hold=O,d.bits=x,kt.Z_NEED_DICT;N.adler=d.check=1,d.mode=vt;case vt:if(W===kt.Z_BLOCK||W===kt.Z_TREES)break t;case ht:if(d.last){O>>>=x&7,x-=x&7,d.mode=Pi;break}for(;x<3;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}switch(d.last=O&1,O>>>=1,x-=1,O&3){case 0:d.mode=ke;break;case 1:if(zn(d),d.mode=V,W===kt.Z_TREES){O>>>=2,x-=2;break t}break;case 2:d.mode=Se;break;case 3:N.msg="invalid block type",d.mode=zt}O>>>=2,x-=2;break;case ke:for(O>>>=x&7,x-=x&7;x<32;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}if((O&65535)!==(O>>>16^65535)){N.msg="invalid stored block lengths",d.mode=zt;break}if(d.length=O&65535,O=0,x=0,d.mode=Pt,W===kt.Z_TREES)break t;case Pt:d.mode=Ue;case Ue:if(G=d.length,G){if(G>S&&(G=S),G>Jt&&(G=Jt),G===0)break t;ft.set(rt.subarray($,$+G),Lt),S-=G,$+=G,Jt-=G,Lt+=G,d.length-=G;break}d.mode=vt;break;case Se:for(;x<14;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}
vendor: 4,628 bytes, line 1
1if(d.nlen=(O&31)+257,O>>>=5,x-=5,d.ndist=(O&31)+1,O>>>=5,x-=5,d.ncode=(O&15)+4,O>>>=4,x-=4,d.nlen>286||d.ndist>30){N.msg="too many length or distance symbols",d.mode=zt;break}d.have=0,d.mode=ii;case ii:for(;d.have<d.ncode;){for(;x<3;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}d.lens[Oi[d.have++]]=O&7,O>>>=3,x-=3}for(;d.have<19;)d.lens[Oi[d.have++]]=0;if(d.lencode=d.lendyn,d.lenbits=7,_t={bits:d.lenbits},te=n(a,d.lens,0,19,d.lencode,0,d.work,_t),d.lenbits=_t.bits,te){N.msg="invalid code lengths set",d.mode=zt;break}d.have=0,d.mode=Si;case Si:for(;d.have<d.nlen+d.ndist;){for(;T=d.lencode[O&(1<<d.lenbits)-1],P=T>>>24,H=T>>>16&wt,M=T&65535,!(P<=x);){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}if(M<16)O>>>=P,x-=P,d.lens[d.have++]=M;else{if(M===16){for(Mt=P+2;x<Mt;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}if(O>>>=P,x-=P,d.have===0){N.msg="invalid bit length repeat",d.mode=zt;break}Ut=d.lens[d.have-1],G=3+(O&3),O>>>=2,x-=2}else if(M===17){for(Mt=P+3;x<Mt;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}O>>>=P,x-=P,Ut=0,G=3+(O&7),O>>>=3,x-=3}else{for(Mt=P+7;x<Mt;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}O>>>=P,x-=P,Ut=0,G=11+(O&127),O>>>=7,x-=7}if(d.have+G>d.nlen+d.ndist){N.msg="invalid bit length repeat",d.mode=zt;break}for(;G--;)d.lens[d.have++]=Ut}}if(d.mode===zt)break;if(d.lens[256]===0){N.msg="invalid code -- missing end-of-block",d.mode=zt;break}if(d.lenbits=9,_t={bits:d.lenbits},te=n(o,d.lens,0,d.nlen,d.lencode,0,d.work,_t),d.lenbits=_t.bits,te){N.msg="invalid literal/lengths set",d.mode=zt;break}if(d.distbits=6,d.distcode=d.distdyn,_t={bits:d.distbits},te=n(u,d.lens,d.nlen,d.ndist,d.distcode,0,d.work,_t),d.distbits=_t.bits,te){N.msg="invalid distances set",d.mode=zt;break}if(d.mode=V,W===kt.Z_TREES)break t;case V:d.mode=ut;case ut:if(S>=6&&Jt>=258){N.next_out=Lt,N.__avail_out=Jt,N.next_in=$,N.avail_in=S,d.hold=O,d.bits=x,i(N,pt),Lt=N.next_out,ft=N.output,Jt=N.__avail_out,$=N.next_in,rt=N.input,S=N.avail_in,O=d.hold,x=d.bits,d.mode===vt&&(d.back=-1);break}for(d.back=0;T=d.lencode[O&(1<<d.lenbits)-1],P=T>>>24,H=T>>>16&wt,M=T&65535,!(P<=x);){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}if(H&&(H&240)===0){for(B=P,Tt=H,re=M;T=d.lencode[re+((O&(1<<B+Tt)-1)>>B)],P=T>>>24,H=T>>>16&wt,M=T&65535,!(B+P<=x);){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}O>>>=B,x-=B,d.back+=B}if(O>>>=P,x-=P,d.back+=P,d.length=M,H===0){d.mode=us;break}if(H&32){d.back=-1,d.mode=vt;break}if(H&64){N.msg="invalid literal/length code",d.mode=zt;break}d.extra=H&15,d.mode=gt;case gt:if(d.extra){for(Mt=d.extra;x<Mt;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}d.length+=O&(1<<d.extra)-1,O>>>=d.extra,x-=d.extra,d.back+=d.extra}d.was=d.length,d.mode=Rt;case Rt:for(;T=d.distcode[O&(1<<d.distbits)-1],P=T>>>24,H=T>>>16&wt,M=T&65535,!(P<=x);){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}if((H&240)===0){for(B=P,Tt=H,re=M;T=d.distcode[re+((O&(1<<B+Tt)-1)>>B)],P=T>>>24,H=T>>>16&wt,M=T&65535,!(B+P<=x);){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}O>>>=B,x-=B,d.back+=B}if(O>>>=P,x-=P,d.back+=P,H&64){N.msg="invalid distance code",d.mode=zt;break}d.offset=M,d.extra=H&15,d.mode=Ie;case Ie:if(d.extra){for(Mt=d.extra;x<Mt;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}d.offset+=O&(1<<d.extra)-1,O>>>=d.extra,x-=d.extra,d.back+=d.extra}if(d.offset>d.dmax){N.msg="invalid distance too far back",d.mode=zt;break}d.mode=hs;case hs:if(Jt===0)break t;if(G=pt-Jt,d.offset>G){if(G=d.offset-G,G>d.whave&&d.sane){N.msg="invalid distance too far back",d.mode=zt;break}G>d.wnext?(G-=d.wnext,ce=d.wsize-G):ce=d.wnext-G,G>d.length&&(G=d.length),se=d.window}else se=ft,ce=Lt-d.offset,G=d.length;G>Jt&&(G=Jt),Jt-=G,d.length-=G;do ft[Lt++]=se[ce++];while(--G);d.length===0&&(d.mode=ut);break;case us:if(Jt===0)break t;ft[Lt++]=d.length,Jt--,d.mode=ut;break;case Pi:if(d.wrap){for(;x<32;){if(S===0)break t;S--,O|=rt[$++]<<x,x+=8}if(pt-=Jt,N.total_out+=pt,d.total+=pt,d.wrap&4&&pt&&(N.adler=d.check=d.flags?ri(d.check,ft,pt,Lt-pt):Wa(d.check,ft,pt,Lt-pt)),pt=Jt,d.wrap&4&&(d.flags?O:ar(O))!==d.check){N.msg="incorrect data check",d.mode=zt;break}O=0,x=0}d.mode=rr;case rr:if(d.wrap&&d.flags){for(;x<32;){if(S===0)break t;S--,O+=rt[$++]<<x,x+=8}if(d.wrap&4&&O!==(d.total&4294967295)){N.msg="incorrect length check",d.mode=zt;break}O=0,x=0}d.mode=Xi;case Xi:te=kt.Z_STREAM_END;break t;case zt:te=kt.Z_DATA_ERROR;break t;case li:return kt.Z_MEM_ERROR;case nr:default:return kt.Z_STREAM_ERROR}return N.next_out=Lt,N.__avail_out=Jt,N.next_in=$,N.avail_in=S,d.hold=O,d.bits=x,(d.wsize||pt!==N.__avail_out&&d.mode<zt&&(d.mode<Pi||W!==kt.Z_FINISH))&&nn(N,N.output,N.next_out,pt-N.__avail_out),nt-=N.avail_in,pt-=N.__avail_out,N.total_in+=nt,N.total_out+=pt,d.total+=pt,d.wrap&4&&pt&&(N.adler=
1d.check=d.flags?ri(d.check,ft,pt,N.next_out-pt):Wa(d.check,ft,pt,N.next_out-pt)),N.data_type=d.bits+(d.last?64:0)+(d.mode===vt?128:0)+(d.mode===V||d.mode===Pt?256:0),(nt===0&&pt===0||W===kt.Z_FINISH)&&te===kt.Z_OK&&(te=kt.Z_BUF_ERROR),te},Gn=N=>{if($i(N))return kt.Z_STREAM_ERROR;let W=N.__state;return W.window&&(W.window=null),N.__state=null,kt.Z_OK},an=(N,W)=>{if($i(N))return kt.Z_STREAM_ERROR;let d=N.__state;return(d.wrap&2)===0?kt.Z_STREAM_ERROR:(d.head=W,W.done=!1,kt.Z_OK)},Wn=(N,W)=>{let d=W.length,rt,ft,$;return $i(N)||(rt=N.__state,rt.wrap!==0&&rt.mode!==dt)?kt.Z_STREAM_ERROR:rt.mode===dt&&(ft=1,ft=Wa(ft,W,d,0),ft!==rt.check)?kt.Z_DATA_ERROR:($=nn(N,W,d,d),$?(rt.mode=li,kt.Z_MEM_ERROR):(rt.havedict=1,kt.Z_OK))};var jn=Os,qn=or,L=Pr,ur=kr,_i=lr,Dr=Mr,Yt=Gn,cr=an,pi=Wn,Qi="pako inflate (from Nodeca project)",ki={inflateReset:jn,inflateReset2:qn,inflateResetKeep:L,inflateInit:ur,inflateInit2:_i,inflate:Dr,inflateEnd:Yt,inflateGetHeader:cr,inflateSetDictionary:pi,inflateInfo:Qi};function Vi(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Yn=Vi;let xr=Object.prototype.toString;function Ds(N){this.options=ol.assign({chunkSize:1024*64,windowBits:15,to:""},N||{});let W=this.options;W.raw&&W.windowBits>=0&&W.windowBits<16&&(W.windowBits=-W.windowBits,W.windowBits===0&&(W.windowBits=-15)),W.windowBits>=0&&W.windowBits<16&&!(N&&N.windowBits)&&(W.windowBits+=32),W.windowBits>15&&W.windowBits<48&&(W.windowBits&15)===0&&(W.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.__strm=new _p,this.__strm.__avail_out=0;let d=ki.inflateInit2(this.__strm,W.windowBits);if(d!==kt.Z_OK)throw new Error("Err: "+d);if(this.header=new Yn,ki.inflateGetHeader(this.__strm,this.header),W.dictionary&&(typeof W.dictionary=="string"?W.dictionary=qa.string2buf(W.dictionary):xr.call(W.dictionary)==="[object ArrayBuffer]"&&(W.dictionary=new Uint8Array(W.dictionary)),W.raw&&(d=ki.inflateSetDictionary(this.__strm,W.dictionary),d!==kt.Z_OK)))throw new Error("Err: "+d)}Ds.prototype.push=function(N,W){let d=this.__strm,rt=this.options.chunkSize,ft=this.options.dictionary,$,Lt,S;if(this.ended)return!1;for(W===~~W?Lt=W:Lt=W===!0?kt.Z_FINISH:kt.Z_NO_FLUSH,xr.call(N)==="[object ArrayBuffer]"?d.input=new Uint8Array(N):d.input=N,d.next_in=0,d.avail_in=d.input.length;;){for(d.__avail_out===0&&(d.output=new Uint8Array(rt),d.next_out=0,d.__avail_out=rt),$=ki.inflate(d,Lt),$===kt.Z_NEED_DICT&&ft&&($=ki.inflateSetDictionary(d,ft),$===kt.Z_OK?$=ki.inflate(d,Lt):$===kt.Z_DATA_ERROR&&($=kt.Z_NEED_DICT));d.avail_in>0&&$===kt.Z_STREAM_END&&d.__state.wrap>0&&N[d.next_in]!==0;)ki.inflateReset(d),$=ki.inflate(d,Lt);switch($){case kt.Z_STREAM_ERROR:case kt.Z_DATA_ERROR:case kt.Z_NEED_DICT:case kt.Z_MEM_ERROR:return this.onEnd($),this.ended=!0,!1}if(S=d.__avail_out,d.next_out&&(d.__avail_out===0||$===kt.Z_STREAM_END))if(this.options.to==="string"){let Jt=qa.utf8border(d.output,d.next_out),O=d.next_out-Jt,x=qa.buf2string(d.output,Jt);d.next_out=O,d.__avail_out=rt-O,O&&d.output.set(d.output.subarray(Jt,Jt+O),0),this.onData(x)}else this.onData(d.output.length===d.next_out?d.output:d.output.subarray(0,d.next_out));if(!($===kt.Z_OK&&S===0)){if($===kt.Z_STREAM_END)return $=ki.inflateEnd(this.__strm),this.onEnd($),this.ended=!0,!0;if(d.avail_in===0)break}}return!0},Ds.prototype.onData=function(N){this.chunks.push(N)},Ds.prototype.onEnd=function(N){N===kt.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ol.flattenChunks(this.chunks)),this.chunks=[],this.err=N,this.msg=this.__strm.msg};function Xt(N,W){let d=new Ds(W);if(d.push(N),d.err)throw d.msg||"Err: "+d.err;return d.result}return N=>Xt(new Uint8Array(N))}var PS=class{constructor(i){if(this.decompressor=NS(),i!=="gzip")throw new TypeError(`Unsupported compression format: '${i}'`);let s,t=[];this.readable=new Tp({start(a){s=a}});let e=this.decompressor,r=a=>{t.push(a)},n=()=>{let a=t.reduce((c,p)=>c+p.length,0),o=new Uint8Array(a),u=0;for(let c of t)o.set(c,u),u+=c.length;try{let c=e(o.buffer);s.enqueue(new Uint8Array(c)),s.close()}catch(c){s.error(c)}};this.writable=self.WritableStream?new WritableStream({write:r,close:n}):{getWriter(){return{write(a){return r(a),Promise.resolve()},close(){return n(),Promise.resolve()}}}}}},D1=(pr=self.DecompressionStream)!=null?pr:PS;function cn(i,s=oe){let t;return typeof Zone!="undefined"&&typeof Zone.__symbol__=="function"&&(t=s[Zone.__symbol__(i)]),t!=null?t:s[i]}var kS=i=>i();function bp(i,s){let t=cn(i);return function(e,r){return t(()=>kS(e),r)}}var Ft=bp("setTimeout"),ta=bp("setInterval"),Ap=(Hi=cn("queueMicrotask"))!=null?Hi:Ft,Ti=cn("clearTimeout"),gr=cn("clearInterval"),ea=typeof self!="undefined"?self.scheduler:void 0,fr={yield:()=>ea!=null&&ea.yield?ea.yield():new Promise(i=>
1Ft(i,0)),postTask:(i,s)=>ea!=null&&ea.postTask?ea.postTask(i,s):new Promise(t=>Ft(t,0)).then(i)},ll=typeof v=="undefined",dn=oe;function OS(){var i,s;let t=(i=D.getElementsByTagName("cs-native-frame-holder")[0])!=null?i:D.createElement("cs-native-frame-holder");if(t.contentWindow&&t.isConnected)return t.contentWindow;t.setAttribute("hidden","");let e=((s=t.attachShadow)==null?void 0:s.call(t,{mode:"closed"}))||t;e.innerHTML='<iframe id="cs-native-frame" title="Intentionally blank" hidden sandbox="allow-same-origin"></iframe>';let r=e.firstElementChild;return(D.head||D.body).appendChild(t),t.contentWindow=r.contentWindow,t.contentWindow}function MS(i){if(!i.document||typeof i.setTimeout!="function")throw new Error("Pure window is missing expected APIs")}var Ip=(()=>{if(ll)return dn;try{let i=OS();return MS(i),i}catch(i){return pu("Warning",`failed to copy references from pure iframe: ${i.message}`),dn}})();function pu(i,s){dn.CSProtectnativeFunctionsLogs=dn.CSProtectnativeFunctionsLogs||{},dn.CSProtectnativeFunctionsLogs[i]=s}function Fr(i){if(ll)return dn[i];try{return Ip[i]}catch(s){return pu("Warning",`Failed to access global property ${i} from pure window: ${s.message}`),dn[i]}}var DS={Element:1,Document:9,DocumentFragment:11};function wp(i,s){var t;try{let e=(t=Ip[i])==null?void 0:t.prototype;return e?Object.getOwnPropertyDescriptor(e,s):void 0}catch(e){return}}var Np=ll||(je=wp("Node","nodeType"))==null?void 0:je.get;function xS(i){try{return Np?Np.call(i):i.nodeType}catch(s){return}}function hl(i,s,t,e){let r=[];if(!ll)for(let u=0;u<i.length;u++)r[u]=wp(i[u],s);function n(u){if(r.length<2)return r[0];let c=xS(u);for(let p=0;p<i.length;p++)if(DS[i[p]]===c)return r[p]}function a(u){let c=u[s];return c===void 0&&t?t:c}let o=(...u)=>[o,u];return o.g=u=>{let c=n(u);if(!c)return a(u);try{return c.get?c.get.call(u):c.value}catch(p){return a(u)}},o.s=(u,c)=>{let p=n(u);if(p!=null&&p.set){try{p.set.call(u,c)}catch(f){u[s]=c}return}u[s]=c},o.c=(u,c)=>{let p=o.g(u);if(!e)return p.apply(u,c);try{return p.apply(u,c)}catch(f){let E=a(u);if(typeof E!="function"||E===p)throw f;return E.apply(u,c)}},o}var qe=0;function l(i,...s){let t=i;for(let e=0;e<s.length;e++){let r=s[e];if(r===qe){if(t==null)return}else typeof r=="function"?t=r.g(t):typeof r=="string"?t=t[r]:t=r[0].c(t,r[1])}return t}function LS(i,s,t){return s.s(i,t),t}var Pp=Symbol.for("csShadowRoot"),gu=hl(["Element"],"shadowRoot"),US=gu.g;gu.g=i=>{var s;return(s=i[Pp])!=null?s:US(i)};try{let i=(Bi=oe.Element)==null?void 0:Bi.prototype,s=i==null?void 0:i.attachShadow;s&&(i.attachShadow=function(t){let e=s.call(this,t);try{this[Pp]=e}catch(r){}return e})}catch(i){pu("Warning",`Failed to wrap attachShadow: ${i.message}`)}var $S=gu;function kp(i,s=oe){let t;return typeof Zone!="undefined"&&typeof Zone.__symbol__=="function"&&(t=s[Zone.__symbol__(i)]),t!=null?t:s[i]}var VS=Fr("Array");function FS(i,s){i[i.length]=s}function Op(i,s,t){for(let e=0;e<s.length;e++){if(!(e in s))continue;let r=s[e];t>0&&VS.isArray(r)?Op(i,r,t-1):FS(i,r)}}function HS(i=1){let s=[];return Op(s,this,Math.trunc(i)||0),s}function BS(i,s=0){let t=this.length,e=Math.trunc(s)||0;for(e<0&&(e=Math.max(t+e,0));e<t;e++){let r=this[e];if(r===i||r!==r&&i!==i)return!0}return!1}function zS(i,s){let t="";for(;t.length<i;)t+=s;return t.slice(0,i)}function GS(i,s=" "){let t=(Math.trunc(i)||0)-this.length;return t<=0||s===""?this:zS(t,s)+this}var WS=Fr("RegExp");function jS(i,s){let t=typeof i=="string"?new WS(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"):i;return this.replace(t,s)}var ia=Fr("Object");function qS(i,s,t){ia.defineProperty(i,s,{value:t,writable:!0,enumerable:!0,configurable:!0})}function YS(i){let s=ia.keys(i),t=[];for(let e=0;e<s.length;e++)t[e]=[s[e],i[s[e]]];return t}function ZS(i){let s=ia.keys(i),t=[];for(let e=0;e<s.length;e++)t[e]=i[s[e]];return t}function KS(i){let s=ia.getOwnPropertyNames(i),t=ia.getOwnPropertySymbols(i);for(let r=0;r<t.length;r++)s[s.length]=t[r];let e={};for(let r=0;r<s.length;r++){let n=ia.getOwnPropertyDescriptor(i,s[r]);n&&qS(e,s[r],n)}return e}var XS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",QS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function JS(i){let s=(i==null?void 0:i.alphabet)==="base64url"?QS:XS,t="",e=0;for(;e+2<this.length;e+=3){let n=this[e]<<16|this[e+1]<<8|this[e+2];t+=s[n>>18&63]+s[n>>12&63]+s[n>>6&63]+s[n&63]}let r=this.length-e;if(r===1){let n=this[e]<<16;t+=s[n>>18&63]+s[n>>12&63],t+=i!=null&&i.omitPadding?"":"=="}else if(r===2){let n=this[e]<<16|this[e+1]<<8;t+=s[n>>18&63]+s[n>>12&63]+s[n>>6&63],t+=i!=null&&i.omitPadding?"":"="}return t}var t_=kp("FileReader");function e_(){return new Promise((i,s)=>{let t=new t_;t.onload=()=>i(t.result),t.onerror=()=>s(t.error),t.readAsArrayBuffer(this)})}var ps=(...i)=>(s,t)=>hl(i,s,t),ul=(i,s)=>hl([],i,s),Ht=Fr("JSON"),sa=Fr("URL"),Mp=Fr("MutationObserver"),Re=Fr("RegExp"),Dp=Fr("screen"),i_=kp("FileReader"),Nt=ps("Node"),Ve=Nt("nodeType"),es=Nt("parentNode"),s_=Nt("childNodes"),cl=Nt("firstChild"),Ya=Nt("nextSibling"),xp=Nt("previousSibling"),dl=Nt("previousElementSibling"),Fs=Nt("parentElement");Nt=ps("Element","Document","DocumentFragment");var pn=Nt("querySelector"),Hr=Nt("querySelectorAll"),Lp=i=>hl(["EventTarget"],i,void 0,!0),ni=Lp("addEventListener"),gs=Lp("removeEventListener");Nt=ps("Element");var gn=Nt("attributes"),is=$S,Up=Nt("matches"),r_=Nt("matchesSelector"),$p=Nt("classList"),fs=Nt("getAttribute"),Ot=Nt("localName");Nt=ps("HTMLImageElement");var Vp=Nt("src");Nt=ps("Array");var xt=Nt("filter"),I=Nt("push"),ra=Nt("pop"),fn=Nt("shift"),Za=Nt("splice"),Fp=Nt("slice"),fu=Nt("concat"),Dt=Nt("indexOf"),$t=Nt("map"),et=Nt("forEach"),ye=Nt("some"),mu=Nt("every"),n_=Nt("find"),Hp=Nt("flat",HS),na=Nt("includes",BS);Nt=ps("String");var Bt=Nt("indexOf"),Oe=Nt("slice"),de=Nt("split"),ai=Nt("trim"),jt=Nt("replace"),mn=Nt("match"),a_=Nt("padStart",GS),o_=Nt("replaceAll",jS);Nt=ps("Navigator");var Bp=Nt("sendBeacon");Nt=ps("Event");var Ci=Nt("target"),vu=ul("entries",YS),Ka=ul("values",ZS),zp=ul("getOwnPropertyDescriptors",KS);Nt=ps("Iterator"),Nt=ps("Uint8Array");var l_=Nt("toBase64",JS),Gp=ul("arrayBuffer",e_);Nt=ps("Set");var pe=(()=>{let i;return(function(s){s.debug="debug",s.warn="warn",s.implementation="implementation",s.error="error",s.critical="critical"})(i||(i={})),i})();function ze(i){return le(i)&&(typeof i=="number"||i instanceof Number)&&!isNaN(i)}function ms(i){return i===parseInt(i,10)}function j(i){return le(i)&&(typeof i=="string"||i instanceof String)}function Xa(i){return typeof i=="boolean"}function ss(i){return typeof i=="object"}function le(i){return typeof i!="undefined"}function Me(i){return le(i)&&i!==null}function Gt(i){return typeof i=="object"&&i!==null}function h_(i,s,t){return ms(i)&&i>=s&&i<=t}function Eu(i){for(let s in i)return!1;return!0}function bi(i){return typeof i=="function"}function vn(i){return typeof Node!="undefined"&&i instanceof Node}function mr(i){return i instanceof Element}function Hs(i){return i instanceof Error}function pl(i){let s=i.length;for(let t=0;t<s;t++)switch(i.charCodeAt(t)){case 9:case 10:case 11:case 12:case 13:case 32:case 160:continue;default:return!1}return!0}var yu={[pe.debug]:0,[pe.warn]:1,[pe.implementation]:1,[pe.error]:2,[pe.critical]:3},fe={debug(...i){},warn(...i){},implementation(...i){},error(...i){},critical(...i){},isPerfLoggingActive(){return!1}};function Wp(i){fe=i}var J=i=>(s,t,e)=>{let r=(t==null?void 0:t.toString())||"",n=i||`${s.constructor&&s.constructor.name}.${r}`;if(e){let a=e.value;e.value=function(...o){return vr(n,a.bind(this))(...o)}}};function vr(i,s){return function(...t){try{let e=s.apply(this,t);return le(self.Promise)&&e instanceof self.Promise?e.then(r=>r,r=>fe.error(Hs(r)?r:new Error(r),i)):e}catch(e){try{fe.error(Hs(e)?e:new Error(e),i)}catch(r){}}}}function gl(i){var s;let t=(s=i.length)!=null?s:0,e=new Array(t);for(let r=0;r<t;r+=1)e[r]=i[r];return e}function Su(i,s){let t=i.length,e=new Array(t);for(let r=0;r<t;r+=1)e[r]=s(i[r]);return e}function u_(i,s,t){let e=[],r=0;for(let n=0;n<i.length;n+=1){let a=s(i[n]);for(let o=0;o<a.length;o++)t(a[o],r++)}return e}function jp(i,s){let t=[];return u_(i,s,e=>l(t,I(e))),t}
1function ne(i,s){if(c_(i)){let t=i.length;for(let e=0;e<t;e++)s(i[e],e)}else{let t=0,e=i.next();for(;!e.done;)s(e.value,t++),e=i.next()}}function c_(i){return i.length>=0}function fl(i,s){let t=i.length;for(let e=0;e<t;e++)if(s(i[e],e))return i[e]}function qp(i,s){let t=i.length;for(let e=0;e<t;e++)if(s(i[e],e))return!0;return!1}function Yp(i,s){let t=i.length;for(let e=0;e<t;e++)if(!s(i[e],e))return!1;return!0}function _u(i,s){let t=i.length,e=[];for(let r=0;r<t;r+=1){let n=i[r];s(n)&&l(e,I(n))}return e}function d_(i,s,t){let e=i.length+s.length+0,r=new Array(e),n=0;for(let a=0;a<i.length;a++)r[n++]=i[a];for(let a=0;a<s.length;a++)r[n++]=s[a];return r}function Zp(i,s){for(let t=0;t<i.length;t++)l(s,I(i[t]))}function En(i){let s=i instanceof Map,t=[];return i.forEach((e,r)=>l(t,I(s?[r,e]:e))),t}function p_(i){return Array.isArray(i)&&i.length>0}function g_(i,s){let t=[],e=!1;return{push(r){if(l(t,I(r)),t.length===s.batchSize){this.flush();return}s.autoFlushDelay&&s.autoFlushDelay>0&&!e&&(e=!0,Ft(()=>{e=!1,t.length>0&&this.flush()},s.autoFlushDelay))},flush(){if(!t.length)return;let r=t;t=[],i(r)}}}var Ze=(()=>{let i;return(function(s){function t(){let f=[r()];return D.documentElement&&l(f,I(D.documentElement.scrollHeight,D.documentElement.offsetHeight,D.documentElement.clientHeight)),D.body&&l(f,I(D.body.scrollHeight,D.body.offsetHeight)),Math.max(...f)}s.documentHeight=t;function e(){return D.documentElement.scrollWidth}s.documentWidth=e;function r(){return v.innerHeight}s.windowHeight=r;function n(){return v.innerWidth}s.windowWidth=n;function a(){let f=Dp.width;return ms(f)&&f>0?f:v.screen.width}s.screenWidth=a;function o(){let f=Dp.height;return ms(f)&&f>0?f:v.screen.height}s.screenHeight=o;function u(){return v.pageXOffset}s.windowOffsetX=u;function c(){return v.pageYOffset}s.windowOffsetY=c;function p(){return{dw:`${e()}`,dh:`${t()}`,ww:`${n()}`,wh:`${r()}`,sw:`${a()}`,sh:`${o()}`}}s.getRequestParameters=p})(i||(i={})),i})();function Fe(i){return l(i,Ve)===1}function ml(i){return l(i,Ve)===3}function f_(i){return l(i,Ve)===8}function m_(i){return Fe(i)&&l(i,Ot)==="link"}function v_(i){return Fe(i)&&l(i,Ot)==="source"}function Kp(i){return Fe(i)&&l(i,Ot)==="a"}function Ru(i){return m_(i)&&l(i.rel,Bt("stylesheet"))!==-1}function E_(i){return Fe(i)&&l(i,Ot)==="img"}function vl(i){return Fe(i)&&l(i,Ot)==="style"}function Tu(i){return Fe(i)&&l(i,Ot)==="input"}function Xp(i){return Fe(i)&&l(i,Ot)==="textarea"}function Cu(i){return Fe(i)&&l(i,Ot)==="script"}function y_(i){return Fe(i)&&l(i,Ot)==="button"}function aa(i){return Fe(i)&&"ownerSVGElement"in i}function Qp(i){return Fe(i)&&l(i,Ot)==="select"}function S_(i){return Fe(i)&&l(i,Ot)==="details"}function __(i){return Fe(i)&&l(i,Ot)==="summary"}function R_(i){return aa(i)&&l(i,Ot)==="image"}function T_(i){return aa(i)&&l(i,Ot)==="use"}function C_(i){return aa(i)&&l(i,Ot)==="feImage"}function b_(i){switch(l(i,Ve)){case 9:case 11:return!0;default:return!1}}function A_(i){switch(l(i,Ve)){case 9:case 11:case 1:return!0;default:return!1}}function El(i){return l(i,Ve)===9}function Bs(i){return b_(i)&&"host"in i&&"mode"in i}function Jp(i){return Fe(i)&&!!l(i,is)&&Bs(l(i,is))}function Ai(i,s=Ii.SHOW_ALL){let t=s|Ii.SHOW_ELEMENT,e=[D.createTreeWalker(i,t,null,!1)],r=tg(i);r&&l(e,I(D.createTreeWalker(r,t,null,!1)));let n=null;return{root:i,nextNode(){if(r){let a=r;return r=null,a}for(;e.length>0;){if(n){let u=n;return n=null,u}let a=e[e.length-1].nextNode();if(!a){l(e,ra());continue}let o=tg(a);if(s&Ii.SHOW_DOCUMENT_FRAGMENT&&o&&(n=o),o&&l(e,I(D.createTreeWalker(o,t,null,!1))),(bu[l(a,Ve)]&s)!==0)return a}return null},visitAll(a){bu[l(i,Ve)]&s&&a(i);let o=this.nextNode();for(;o;){if((bu[l(o,Ve)]&s)===0){o=this.nextNode();continue}a(o),o=this.nextNode()}},find(a){let o;return this.visitAll(u=>a(u)&&(o=u)),o},collectAll(a){let o=[];return this.visitAll(u=>l(o,I(a?a(u):u))),o}}}function tg(i){return i&&Jp(i)?l(i,is):null}var Ii=(Vs=oe.NodeFilter)!=null?Vs:{},bu={2:Ii.SHOW_ATTRIBUTE,4:Ii.SHOW_CDATA_SECTION,8:Ii.SHOW_COMMENT,11:Ii.SHOW_DOCUMENT_FRAGMENT,9:Ii.SHOW_DOCUMENT,10:Ii.SHOW_DOCUMENT_TYPE,1:Ii.SHOW_ELEMENT,6:Ii.SHOW_ENTITY,5:Ii.SHOW_ENTITY_REFERENCE,12:Ii.SHOW_NOTATION,7:Ii.SHOW_PROCESSING_INSTRUCTION,3:Ii.SHOW_TEXT};function yl(i,s){let t,e,r,n,a,o=null,u=p=>{let f=mt.elapsed();if(!p&&o!==null){let g=s-(f-o);if(g>=1){r=Ft(u,g);return}}let E=f-n;r=null,o=null,n=null,a=i.apply(t,[E,...e])},c=function(){if(t=this,e=arguments,n){o=mt.elapsed();return}return n=mt.elapsed(),r=Ft(u,s),a};return c.flushPending=()=>{r&&(Ti(r),u(!0))},c.cancel=()=>{o=null,n=null,r&&(Ti(r),r=null)},c}function b(i,s,t,e){var r=arguments.length,n=r<3?s:e===null?e=Object.getOwnPropertyDescriptor(s,t):e,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,s,t,e);else for(var o=i.length-1;o>=0;o--)(a=i[o])&&(n=(r<3?a(n):r>3?a(s,t,n):a(s,t))||n);return r>3&&n&&Object.defineProperty(s,t,n),n}function Au(i){return{debug(...s){i.debug(...s)},warn(...s){i.warn(...s)},error(s,...t){i.error(s,...t)},critical(s,...t){let e=i.critical;e?e.call(i,s,...t):i.error(s,...t)}}}var Qa=Au(console);function I_(i){Qa=Au(i)}function eg(i,s){var t;return s instanceof Error?`${i} 2Caused by: ${s.message} 3${(t=s.stack)!=null?t:""}`:`${i}: ${String(s)}`}function oa(i){let s;function t(n){if(!i)return n;let a=n instanceof Error?n.message:n;return`[${i}] ${a}`}let e={debug(...n){let[a,...o]=n;
3(s!=null?s:Qa).debug(...i&&typeof a=="string"?[t(a),...o]:n)},warn(...n){let[a,...o]=n;(s!=null?s:Qa).warn(...i&&typeof a=="string"?[t(a),...o]:n)},error(n,...a){let o=s!=null?s:Qa,[u,...c]=a,p=t(n);if(u!=null&&typeof u!="string"){let f=typeof p=="string"?p:p.message;o.error(eg(f,u))}else u!==void 0?o.error(p,u,...c):o.error(p)},critical(n,...a){let o=s!=null?s:Qa,[u,...c]=a,p=t(n);if(u!=null&&typeof u!="string"){let f=typeof p=="string"?p:p.message;o.critical(eg(f,u))}else u!==void 0?o.critical(p,u,...c):o.critical(p)}};function r(n){s=Au(n)}return{logger:e,setLogger:r}}var{logger:w_}=oa("metrics"),Ja={error(i,s){w_.error(i,s)}},ig=typeof performance!="undefined"&&!!performance.now,sg=ig?()=>performance.now():()=>Date.now(),N_=ig?(Jn=(hn=performance.timing)==null?void 0:hn.navigationStart)!=null?Jn:Math.floor((un=performance.timeOrigin)!=null?un:0):0,P_={now(){return Math.round(sg()+N_)},elapsed(){return sg()}};function k_(i,s){let t=s.wait,e,r=[],n=null,a,o=()=>{P_.now(),n=null,a=i.apply(e,r),r=[],e=null},u=function(...c){return e=this,r=[...c],n||(n=Ft(o,t)),a};return u.cancel=()=>{n&&(Ti(n),n=null,r=[])},u.flushPending=()=>{n&&(Ti(n),o())},u}function O_(i,s){let t=null,e,r=[],n=()=>{t=null,i.apply(e,r),r=[],e=null};return function(...a){e=this,r=[...a],t&&Ti(t),t=Ft(n,s)}}var rg=i=>(s,t,e)=>{let r=(t==null?void 0:t.toString())||"",n=`${s.constructor&&s.constructor.name}.${r}`;if(e){let a=e.value;e.value=function(...o){return M_(n,a.bind(this))(...o)}}};function ng(i){return i instanceof Error}function M_(i,s){return function(...t){try{let e=s.apply(this,t);return e instanceof Promise?e.then(r=>r,r=>Ja.error(ng(r)?r:new Error(r),i)):e}catch(e){try{Ja.error(ng(e)?e:new Error(e),i)}catch(r){}}}}var fi=(()=>{let i=class nl{static setGlobalService(e){nl.globalService=e}static jS(e){this.BS.test(e)||Ja.error(`Invalid metric name: "${e}". Must contain only letters with optional hyphens or dots between words.`)}static validateParameterName(e){return!/^https?:\/\/.+/.test(e)&&!this.FS.test(e)?(Ja.error(`Invalid parameter name: "${e}". Must start with letters, optionally followed by segments of letters or digits separated by hyphens, dots, colons, underscores, or pipes.`),!1):!0}constructor(e){this.name=e,this.values={},nl.jS(e)}reset(){this.values={}}flush(e=""){if(!nl.globalService)return!1;let r=this.values,n=Object.keys(r);if(!n.length)return!1;let a=l(n,$t(o=>({name:this.name,parameter:`${e===""?"":`${e}.`}${o}`,value:Math.round(r[o])})));return nl.globalService.push(a),this.reset(),a.length>0}};i.globalService=null,i.BS=/^[a-zA-Z]+([-.][a-zA-Z]+)*$/,i.FS=/^[a-zA-Z]+([-.:_|][a-zA-Z0-9]+)*$/;let s=i;return b([rg()],s.prototype,"flush",null),s})(),be=(()=>{class i extends fi{constructor(t,e=100){super(t),this.GS=e,this.values={},this.debouncedFlush=()=>this.flush(),e&&(this.debouncedFlush=O_(()=>this.flush(),this.GS))}count(t,e=1){fi.globalService&&(this.values[t]||fi.validateParameterName(t),this.values[t]=(this.values[t]||0)+e,this.debouncedFlush())}}return i})(),to=(()=>{class i extends fi{constructor(t,e=["max","average","total","count"]){super(t),this.collecting=e,this.values={average:0,count:0,max:0,total:0}}get average(){return this.values.average}get count(){return this.values.count}get max(){return this.values.max}get total(){return this.values.total}flush(t=""){if(this.count===0)return!1;let e=Object.keys(this.values);return l(e,xt(r=>!l(this.collecting,ye(n=>r===n))),et(r=>{delete this.values[r]})),super.flush(t)}push(t){this.values.count++,this.values.total+=t,this.values.max=Math.max(this.values.max,t),this.values.average=this.values.total/this.values.count}reset(){this.values={count:0,total:0,max:0,average:0}}}return i})(),eo=(()=>{class i extends fi{constructor(t,e=["max","average","total","count"]){super(t),this.collecting=e}flush(t=""){let e=Object.keys(this.values);return l(e,xt(r=>!l(this.collecting,ye(n=>r.endsWith(`.${n}`)))),et(r=>{delete this.values[r]})),super.flush(t)}add(t,e){var r,n,a,o,u,c,p;if(!fi.globalService)return;this.values[`${t}.count`]||fi.validateParameterName(t);let f=E=>this.values[`${t}.${E}`];(a=(r=this.values)[n=`${t}.count`])!=null||(r[n]=0),(c=(o=this.values)[u=`${t}.total`])!=null||(o[u]=0),this.values[`${t}.count`]++,this.values[`${t}.total`]+=e,this.values[`${t}.max`]=Math.max((p=f("max"))!=null?p:0,e),this.values[`${t}.average`]=f("total")/f("count")}}return i})(),ag=(()=>{class i extends fi{constructor(){super(...arguments),this.values={}}set(t,e="flags"){var r,n;fi.globalService&&(this.values[e]||fi.validateParameterName(e),(n=(r=this.values)[e])!=null||(r[e]=0),this.values[e]|=t,this.flush())}}return i})(),D_=(()=>{class i extends fi{constructor(t,e={iterations:10,interval:2e3}){super(t),this.mf=e,this.Jo=0,this.Ie=null,this.ta=[],this.values={}}push(t){D.visibilityState!=="hidden"&&(this.Jo+=t,this.Ie||this.zS())}zS(){this.Ie=ta(()=>
3{l(this.ta,I(this.Jo)),this.Jo=0,this.ta.length>=this.mf.iterations&&this.Ie&&gr(this.Ie)},this.mf.interval)}flush(t){return this.Ie&&(gr(this.Ie),this.Ie=null),l(this.ta,et((e,r)=>{this.values[`interval.${r+1}`]=e})),this.ta=[],this.Jo=0,super.flush(t)}}return i})(),x_=(()=>{class i extends fi{constructor(){super("upload-size"),this.sa=new Map}add(t,e,r){if(t===0)return;try{e=`${l(new sa(e).pathname,jt(/[^a-z0-9]+/g,"-")).substring(1)||"home"}|${r}`,e=l(e,jt(/^v2-/,"")).toLowerCase()}catch(a){Ja.error(`Invalid URL for upload size metric: ${e}`);return}let n=this.sa.get(e)||{count:0,total:0,max:0,average:0};n.count++,n.total+=t,n.max=Math.max(n.max,t),n.average=n.total/n.count,this.sa.set(e,n)}flush(t){if(fi.globalService===null||isNaN(+t))return!1;let e=[];return this.sa.forEach((r,n)=>{l(Object.keys(r),et(a=>{let o=`${n}.${a}.${t}`;fi.validateParameterName(o),l(e,I({name:this.name,parameter:o,value:Math.round(r[a])}))}))}),fi.globalService.push(e),this.sa.clear(),!0}}return b([rg()],i.prototype,"flush",null),i})(),ot={counters:{boot:new be("boot"),commandsFromIntegrations:new be("commands-from-integrations"),commandsFromCSTC:new be("commands-from-cstc"),commandsFromIframe:new be("commands-from-iframe"),commandApplied:new be("command-applied"),commandError:new be("command-error"),commandMisuse:new be("command-misuse"),CSTCSnippetUsed:new be("cstc-snippet-used"),redactedPII:new be("redacted-pii"),pageAnonymisation:new be("page-anonymisation"),patchedNativeFunctions:new be("patched-native-functions"),pureWindowState:new be("pure-window-state"),sensitiveElements:new be("sensitive-elements"),networkRequests:new be("network-requests"),webVitalsErrors:new be("web-vitals-errors"),tagSegments:new ag("segment"),longTasks:new to("long-tasks"),errors:new be("errors"),methodPerformance:new eo("perf"),transferSize:new to("transfer-size",["max","average"]),downloadTime:new to("download-time",["average"]),blockingTime:new to("blocking-time"),inpContribution:new to("inp-contribution"),tasks:new eo("tasks"),availableFeatures:new ag("available-features"),dom:new eo("dom",["total"]),mutations:new D_("mutations"),requestTimeouts:new be("request-timeouts"),requestErrors:new be("request-errors"),requestCounts:new be("request-counter"),payloadSize:new x_,featureUsage:new be("feature-usage"),inpLoaf:new eo("inp-loaf",["max","average"]),transactions:new be("transactions"),cssomVarFallback:new be("cssom-var-fallback"),nativeOverrides:new be("native-overrides"),experimentVariantApplied:new be("experiment-variant-applied"),experimentVariantApplyDuration:new eo("experiment-variant-apply-duration"),experimentFailed:new be("experiment-failed"),cookieStorage:new be("cookie-storage")},setService(i){fi.setGlobalService(i)},normalizeParameter(i){return l(i,jt(/([a-z])([A-Z])/g,"$1-$2"),jt(/([A-Z])([A-Z][a-z])/g,"$1-$2")).toLowerCase()}},L_=(()=>{let i=class dS{constructor(t,e,r,n=dS.THROTTLE_INTERVAL){var a;this.send=t,this.getRequestParameters=e,this.onInit=r,this.queue=[],this.throttledFlush=k_(()=>this._flush(),{wait:n}),(a=this.onInit)==null||a.call(this)}_flush(){this.queue.length!==0&&(this.send(Z({m:l(this.queue,$t(t=>({n:t.name,p:t.parameter,v:t.value})))},this.getRequestParameters())),this.queue=[])}push(t){l(this.queue,I(...t)),this.throttledFlush()}};return i.THROTTLE_INTERVAL=5e3,i})(),og=!1,Iu=5,Sl=50;function U_(i=5){og=fe.isPerfLoggingActive(),Iu=i}function _l(i,s){return function(){if(!og)return i.apply(this,arguments);let t=mt.elapsed(),e=i.apply(this,arguments);if(e!=null&&e.then)e.then(()=>{let r=mt.elapsed()-t;r>=Iu&&ot.counters.methodPerformance.add(s,r),r>Sl&&ot.counters.blockingTime.push(r-Sl)});else{let r=mt.elapsed()-t;r>=Iu&&ot.counters.methodPerformance.add(s,r),r>Sl&&ot.counters.blockingTime.push(r-Sl)}return e}}var Di=function(i){return function(s,t,e){let r=e.value;e.value=_l(r,i)}},$_=typeof performance!="undefined"&&!!performance.now,V_=$_?()=>performance.now():()=>Date.now(),lg={elapsed(){return V_()}},{logger:hg}=oa("task");function ug(i,s=oe){let t;return typeof Zone!="undefined"&&typeof Zone.__symbol__=="function"&&(t=s[Zone.__symbol__(i)]),t!=null?t:s[i]}var cg=(()=>{class i{constructor(){this.fe=0}get length(){return this.fe}get isEmpty(){return!this.ht}pushAll(t){for(let e=0;e<t.length;e++)this.push(t[e])}push(t){this.fe++,this.Wt?this.Wt=this.Wt[1]=[t,void 0]:this.Wt=this.ht=[t,void 0]}pop(){if(!this.ht)return null;this.fe--;let t=this.ht[0];return this.ht=this.ht[1],this.ht||(this.Wt=void 0),t}forEach(t){let e=this.ht;for(;e!=null&&e.length;)t(e[0]),e=e[1]}clear(){this.fe=0,this.ht=this.Wt=void 0}}return i})(),Rl=(()=>{let i;return(function(s){s.Timer="timer",s.MonkeyPatch="monkeyPatch",s.MutationObserver="mutationObserver",s.EventListener="eventListener",s.IntersectionObserver="intersectionObserver",s.MicroTask="microtask"})(i||(i={})),i})(),vs=null,F_=["click","tap","keyup","keydown","pointerup","pointerdown"];function dg(i,s,t=null){return yt(this,null,function*(){if(vs&&s[0]!==Rl.MicroTask)return i();t&&(vs=t),vs||(vs={type:s[0],elapsed:0});try{vs.elapsed+=H_(i)}catch(e){hg.critical(new Error(`Task error: ${s}/${i.name}. 4${e.message} 5${e.stack}`),"TASK_ERROR")}finally{wu<=0&&(vs.elapsed>50&&(ot.counters.longTasks.push(vs.elapsed),ot.counters.blockingTime.push(vs.elapsed-50)),ot.counters.tasks.add(s[0],vs.elapsed),l(F_,na(s[1]))&&ot.counters.inpContribution.push(vs.elapsed),vs=null)}})}function H_(i){let s=lg.elapsed();return i(),lg.elapsed()-s}var wu=0;function B_(){let i=ug("queueMicrotask");if(typeof i=="function")return i;let s=ug("setTimeout");return t=>{s(t,0)}}var z_=B_(),pg=i=>{wu++,z_(()=>dg(()=>{try{i()}finally{wu--}},[Rl.MicroTask,"queueMicrotask"]))},Tl=new cg,Cl=new cg;function io(i,s="high"){Tl.isEmpty&&Cl.isEmpty&&gg(G_),s==="high"?Cl.push(fg(i)):Tl.push(fg(i))}function gg(i,s=10){s===0?pg(i):Ap(()=>gg(i,s-1))}function G_(){for(;!Cl.isEmpty;)Cl.pop()();for(;!Tl.isEmpty;)Tl.pop()()}function fg(i){return function(){try{i.apply(v,arguments)}catch(s){hg.critical(s)}}}var Nu=()=>(i,s,t)=>{t.value=W_(t.value)};function W_(i){let s=Symbol("oncePerTickSymbol"),t=null,e={},r=function(){let n=this!=null?this:e;t=arguments,!n[s]&&(n[s]=!0,pg(()=>{n[s]=!1,i.apply(n,t)}))};
5return r.oncePerTickSymbol=s,r}Nu.isScheduled=(i,s)=>{let t=s.oncePerTickSymbol;return i[t]};function bl(i,s){typeof s=="number"&&(s={wait:s});let t=s.wait,e=s.mode||"leading",r,n=[],a=null,o=0,u,c=()=>{o=mt.now(),a=null,u=i.apply(r,n),n=[],r=null},p=function(...f){if(r=this!=null?this:oe,n=[...f],e==="trailing")return a||(a=Ft(c,t)),u;let E=mt.now(),g=t-(E-o);return g<=0||g>t?(o=E,u=i.apply(r,n),a?(Ti(a),a=null):n=[]):a||(a=Ft(c,g)),u};return p.cancel=()=>{a&&(Ti(a),o=0,a=null,n=[])},p.flushPending=()=>{a&&(Ti(a),c())},p}var la=i=>(s,t,e)=>{let r=e.value,n=new WeakMap,a=o=>{let u=n.get(o);return u||(u=bl(r.bind(o),i),n.set(o,u)),u};e.value=function(...o){if(typeof this!="object"&&typeof this!="function"||this===null){fe.warn("@Throttle decorated method called without a valid instance context");return}return a(this)(...o)}},Er=(()=>{let i;return(function(s){function t(){return!!Element.prototype.attachShadow}s.isSupported=t;function e(n){return n&&Jp(n)?l(n,is):null}s.getShadowRoot=e;function r(n){return Ai(n,NodeFilter.SHOW_DOCUMENT_FRAGMENT).collectAll(a=>a.host)}s.getAllShadowHosts=_l(r,"getAllShadowHosts")})(i||(i={})),i})(),Pu=(Ri=oe.Node)!=null?Ri:Object,mi=(()=>{let i;return(function(s){let t="isConnected"in Pu.prototype?V=>V.isConnected:V=>!V.ownerDocument||!(V.ownerDocument.compareDocumentPosition(V)&V.DOCUMENT_POSITION_DISCONNECTED);function e(V,ut){for(let gt=V;gt;gt=l(gt,Ya))ut(V)}s.forEachChild=e;function r(V){return t(V)}s.isConnected=r;function n(V,ut){let gt=[];for(let Rt of u(V,ut))l(gt,I(Rt));return gt}s.getAncestors=n;let a=(V,ut)=>{var gt;return(gt=l(V,es))!=null?gt:ut&&Bs(V)?V.host:null};function o(V,ut,gt=!1){let Rt=V;for(;Rt;){if(ut(Rt))return Rt;let Ie=a(Rt,gt);if(Ie&&Ie!==Rt)Rt=Ie;else break}return null}s.findAncestor=o;function*u(V,ut=!1){let gt=V;for(;gt;){yield gt;let Rt=a(gt,ut);if(Rt&&Rt!==gt)gt=Rt;else break}}s.walkUp=u;function c(V,ut){if(V===ut||ut.contains(V))return!0;let gt=s.getParentElement(V);return gt&>!==V?c(gt,ut):!1}s.isDescendantOf=c;function p(V){var ut;return l(V,Fs)?l(V,Fs):s.getRootNode(V)?(ut=s.getRootNode(V))==null?void 0:ut.host:null}s.getParentElement=p;function f(V,ut=D){let gt=gl(l(ut,Hr(V))),Rt=Er.getAllShadowHosts(ut);for(let Ie of Rt){let hs=Er.getShadowRoot(Ie);if(!hs)continue;let us=gl(l(hs,Hr(V)));l(gt,I(...us))}return gt}s.findAllElements=f,s.getRootNode=(()=>{if("getRootNode"in Pu.prototype)return(gt,Rt)=>gt.getRootNode(Rt);function V(gt){let Rt=ut(gt);return Bs(Rt)?V(Rt.host):Rt}function ut(gt){return l(gt,es)!=null?ut(l(gt,es)):gt}return(gt,Rt)=>typeof Rt=="object"&&Rt.composed?V(gt):ut(gt)})();function E(V){return V==="transparent"||/^(rgba|hsla)\(\d+, \d+%?, \d+%?, 0\)$/.test(V)}function g(V){let ut=V.getBoundingClientRect();return ut.right+Ze.windowOffsetX()<0||ut.bottom+Ze.windowOffsetY()<0}function R(V){var ut,gt;if(((ut=V.checkVisibility)==null?void 0:ut.call(V,{checkOpacity:!0,checkVisibilityCSS:!0}))===!1)return!0;if(!V.offsetParent){if(!V.getBoundingClientRect)return fe.warn(`SUP-11432: Element doesn't have getBoundingClientRect. Node: ${V instanceof Pu} Ctor: ${(gt=V==null?void 0:V.constructor)==null?void 0:gt.name}`),!1;let Ie=V.getBoundingClientRect();if(Ie.width===0&&Ie.height===0)return!0}let Rt=v.getComputedStyle(V);return Rt?Rt.display==="none"||Rt.visibility==="hidden"||Rt.visibility==="collapse"||Rt.opacity==="0"||Rt.filter==="opacity(0)"||Rt.width==="0px"&&Rt.height==="0px"||E(Rt.color):!0}s.isHiddenByCSS=R;function k(V){if(R(V))return!0;let ut=p(V);return ut!=null&&k(ut)}s.areAncestorsHiddenByCSS=k;function X(V){let ut=null,gt=V;do if(R(gt))ut=gt;else break;while(gt=p(gt));return ut}s.getTopAncestorHiddenByCSS=X;function U(V){let ut=z(V);return ut!==null&&!V.contains(ut)&&!ut.contains(V)}function z(V){let ut=V.getBoundingClientRect(),gt=ut.left+.5*ut.width,Rt=ut.top+.5*ut.height;return vt(D,gt,Rt)}s.getTopElement=z;function dt(V){if(!V.getBoundingClientRect)return null;let ut=V.getBoundingClientRect(),gt=ut.x+ut.width/2,Rt=ut.y+ut.height/2;return s.getTopElementFromPoint(D,gt,Rt)}s.getElementOnTop=dt;function vt(V,ut,gt){let Rt=V.elementFromPoint(ut,gt);if(!Rt)return null;let Ie=Er.getShadowRoot(Rt);return Ie&&Ie!==s.getRootNode(D.body)&&Ie!==V?vt(Ie,ut,gt):Rt}s.getTopElementFromPoint=vt;function ht(V){return!g(V)&&!R(V)&&!U(V)}s.isVisibleInDocument=ht;function ke(V){return R(V)?!1:Pt(V)}s.isVisibleInViewportInForeground=ke;function Pt(V){let ut=z(V);return ut===null?!1:V===ut?!0:ii(V)?V.textContent!==""&&ut.contains(V):V.contains(ut)}s.isInViewPort=Pt;function Ue(V,ut,gt){let Rt=V.getAttributeNS(ut,gt);return Rt===""?V.hasAttributeNS(ut,gt)?Rt:null:Rt}s.getAttributeNS=Ue;function Se(V){return!!(V.hasAttribute("tabIndex")||l(V,fs("contentEditable"))==="true"||Kp(V)&&V.hasAttribute("href")||(Qp(V)||Xp(V)||Tu(V)||y_(V))&&!V.hasAttribute("disabled")||S_(V)||__(V))}s.isElementFocusable=Se;function ii(V){return l(V,Ot)==="span"||l(V,Ot)==="a"||l(V,Ot)==="b"||l(V,Ot)==="i"||l(V,Ot)==="button"||l(V,Ot)==="input"||l(V,Ot)==="label"||l(V,Ot)==="cite"||l(V,Ot)==="small"||l(V,Ot)==="strong"||l(V,Ot)==="code"||l(V,Ot)==="abbr"||l(V,Ot)==="em"||l(V,Ot)==="dfn"||l(V,Ot)==="time"||l(V,Ot)==="output"||l(V,Ot)==="object"||l(V,Ot)==="sub"}s.isInlineElement=ii;function Si(V){D.readyState==="loading"?l(D,ni("DOMContentLoaded",()=>V(),{once:!0})):Ft(V)}s.onDocumentLoaded=Si})(i||(i={})),i})(),mg=typeof v=="undefined";function j_(){try{let i=new Error,s=i.stack?l(i.stack,de(` 6`),xt(e=>e!=="Error"&&l(e.toLowerCase(),Bt("promise "))===-1&&l(e,Bt("[native code]"))===-1&&l(e,Bt("(<anonymous>)"))===-1)):[];if(s.length===0)return"";let t=Y_(s);return t===""||(s=Z_(s,t),s.length===0)?"":vg(s[0])}catch(i){return""}}function q_(i){return l(i,Bt("@"))!==-1}function Y_(i){return i.length>0?vg(i[0]):""}function Z_(i,s){return l(i,xt(t=>l(t,Bt(s))===-1))}function vg(i){let s="",t;q_(i)?t=new Re("@(.+):(\\d+):(\\d+)$"):t=new Re("\\((.+):(\\d+):(\\d+)\\)");let e=t.exec(i);return e&&(s=e[1]),s}var{logger:so}=oa("domListeners"),ro;function K_(i){return ro=i,()=>{ro===i&&(ro=void 0)}}function Eg(i,s){try{ro?ro(s,i):i()}catch(t){so.error(`Error in ${s.type}/${s.type==="intercept"?s.method:s.name}`,t)}}var yn=(()=>{let i;return(function(s){s[s.Properties=1]="Properties",s[s.Methods=2]="Methods",s[s.All=3]="All"})(i||(i={})),i})(),Al=new WeakMap,ku=new WeakMap;
6function X_(i,s){if(!i||typeof i!="object"&&typeof i!="function")return i;if(Al.has(i))return Al.get(i);let t=s();return Al.set(i,t),t}function Ou(i,s){return i.prototype=s.prototype,Object.defineProperty(i,"toString",{value:()=>s.toString()}),i}function Q_(i,s,t,e,r){let n=String(s);Object.defineProperty(i,s,{set(a){var o;let u=t.get?t.get.call(this):void 0,c=(o=t.set)==null?void 0:o.apply(this,[a]);return Al.delete(u),e(this,{name:n,args:[a],result:c,oldValue:u}),c},get(){var a;let o=this,u=(a=t.get)==null?void 0:a.apply(this);return typeof Proxy!="function"?u:X_(u,()=>{let c=new Map,p=new Proxy(u,{get(f,E){let g=Reflect.get(f,E);if(typeof g!="function")return g;let R=c.get(g);if(R)return R;let k;return r&yn.Methods?k=Ou(function(...X){let U=ku.get(this)||this,z=Reflect.apply(g,U,X);return e(o,{name:n,property:E,args:X,result:z}),z},g):k=Ou(function(...X){let U=ku.get(this)||this;return Reflect.apply(g,U,X)},g),c.set(g,k),k},set:r&yn.Properties?(f,E,g)=>{let R=Reflect.get(f,E),k=Reflect.set(f,E,g);return e(o,{name:n,property:E,args:[g],result:k,oldValue:R}),k}:Reflect.set});return ku.set(p,u),p})}})}function J_(i,s,t,e,r,n){let a=String(s),o={};
6t.get&&(o.get=t.get),t.set&&(o.set=function(u){let c=t.get?t.get.call(this):this[s],p=t.set.call(this,u);return e(this,{name:a,args:[u],result:p,oldValue:c}),p}),t.value&&(typeof t.value=="function"?o.value=Ou(function(...u){let c=r?r(u):u,p=Reflect.apply(t.value,this,u);if(n){let f=j_();e(this,{name:a,args:Array.from(c),result:p,callerName:f})}else e(this,{name:a,args:Array.from(c),result:p});return p},t.value):o.value=t.value,o.writable=t.writable!==!1),t.configurable!==void 0&&(o.configurable=t.configurable),t.enumerable!==void 0&&(o.enumerable=t.enumerable),Object.defineProperty(i,s,o)}function qt(i,s,t,e={}){var r,n;let a=i&&i.prototype?i.prototype:i;if(!a)return()=>{};let o=(r=e.ownProperty)!=null?r:!1,u=e.mode!=null?`_m${e.mode}`:"",c=Symbol.for(`fd_intercept_${s}${u}`);if(o?Object.prototype.hasOwnProperty.call(a,c):c in a){let g=a[c];return g.add(t),()=>g.delete(t)}let p=new Set([t]);a[c]=p;let f=Object.getOwnPropertyDescriptor(a,s);if(!f)return so.warn(`Could not find descriptor for ${s} on target ${a}`),()=>p.delete(t);if(!f.configurable)return so.warn(`Cannot intercept non-configurable property '${s}' on target ${a}`),()=>p.delete(t);if(f.value&&typeof f.value=="function"&&!f.writable)return so.warn(`Cannot intercept read-only function '${s}' on target ${a}`),()=>p.delete(t);let E=(g,R)=>{Eg(()=>{for(let k of p)try{k(g,R)}catch(X){so.error(`Error in intercept hook for ${s} on target ${a}`,X)}},{type:"intercept",method:s,context:g,args:R.args})};return e.mode?Q_(a,s,f,E,e.mode):J_(a,s,f,E,e.prepareArgs,(n=e.withCallerName)!=null?n:!1),()=>p.delete(t)}function vi(i,s,t,e){var r,n;let a=(r=e==null?void 0:e.capture)!=null?r:!0,o=(n=e==null?void 0:e.passive)!=null?n:!0,u=c=>{Eg(()=>t(c),{type:"listen",event:c,name:s})};return l(i,ni(s,u,{capture:a,passive:o})),()=>{l(i,gs(s,u,{capture:a}))}}var Il=Symbol("cleanup");function Ke(i,s=!0){var t;(t=i[Il])==null||t.call(i),i[Il]=vi(i.boundElement,i.type,e=>i.listener.call(i.boundElement,e),{capture:s})}function Ge(i,s){var t;(t=i[Il])==null||t.call(i),i[Il]=void 0}function Mu(i){let s=new ArrayBuffer(i.length),t=new Uint8Array(s);for(let e=0,r=i.length;e<r;e+=1)t[e]=i.charCodeAt(e);return s}function yg(i){let s=new Uint8Array(i),t="";for(let e=0;e<s.byteLength;e+=1)t+=String.fromCodePoint(s[e]);return t}function Sg(i){let s=atob(i);return Mu(s)}function Du(i){let s=Array.from(new Uint8Array(i));return l(s,$t(t=>l(t.toString(16),a_(2,"0")))).join("")}function t0(i){let s=l(i,de(";")),t=s[0],e=l(s,Fp(1),xt(r=>r.includes("=")));return[t,...e].join(";")}function _g(i){let s=l(i,Bt(";base64,"))!==-1,t=l(i,Bt(",")),e=s?[i.substring(0,t-7),i.substring(t+1)]:[i.substring(0,t),i.substring(t+1)];if(!s&&/^%3Csvg/i.test(e[1]))try{e[1]=decodeURIComponent(e[1])}catch(n){fe.warn(`${n}, calling decodeURIComponent on: ${e[1]}`)}let r=s?Sg(e[1]):Mu(e[1]);return new Blob([r],{type:t0(l(e[0],jt("data:","")))})}var Rg=typeof performance!="undefined"&&!!performance.now,Tg=Rg?()=>performance.now():()=>Date.now(),e0=Rg?(mp=(fp=performance.timing)==null?void 0:fp.navigationStart)!=null?mp:Math.floor(performance.timeOrigin):0,xu=34164e6,i0=2592e6,mt={now(){return Math.round(Tg()+e0)},elapsed(){return Tg()}};function Cg(){return Math.floor(mt.now()/1e3)}function bg(){return typeof Promise=="function"}function s0(){var i;return typeof crypto!="undefined"&&bi((i=crypto.subtle)==null?void 0:i.digest)}function Ag(){var i,s;return typeof((i=v.navigation)==null?void 0:i.addEventListener)=="function"&&typeof((s=v.navigation)==null?void 0:s.removeEventListener)=="function"}function Ei(i,s){return i.lastIndexOf(s,0)===0}function ha(i,s){return l(i,Bt(s,i.length-s.length))!==-1}var r0=Number.MAX_SAFE_INTEGER||9007199254740991,zs={percentage(){return Math.floor(Math.random()*1e4)/100},boolean(i){return this.percentage()<i},integer(i=r0){return Math.floor(Math.random()*i)}};function Lu(i){let s=l(i,ai());if(i==="")return[];let[t,e]=n0(s);return e?(ha(t,",")||(e=a0(e)),[Ig(t),...Lu(e)]):[Ig(t)]}function n0(i){return i.split(/\s(.+)/)}function Ig(i){return l(i,de(/,$/))[0]}function a0(i){return l(i,de(/,(.+)/))[1]||""}var wl=!1;function o0(){wl=!0}function l0(){return wl}function Ne(){return(i,s,t)=>{if(t){let e=t.value;t.value=function(r,n){(r==null?void 0:r.isTrusted)===!1&&wl||e.call(this,r,n)}}else{let e=i[s];if(typeof e!="function")return;i[s]=function(r,...n){(r==null?void 0:r.isTrusted)===!1&&wl||e.call(this,r,n)}}}}var h0=i=>i instanceof HTMLFormElement?"form":l(i,Ot);function u0(i,s){let t;return v.Zone&&typeof v.Zone.__symbol__=="function"&&(t=i[v.Zone.__symbol__(s)]),t!=null?t:i[s]}var hi=!mg&&D.createElement("a"),c0=/(:443|:80)$/;function Br(i){return hi?(hi.href=i,hi.href):""}function wg(i,s){return new sa(i,s).href}function Ng(i){let s=$u(i);return s===null?"":decodeURIComponent(s.hostname)}function Uu(i,s,t={}){let{allowWildcard:e=!0}=t;return l(s,ye(r=>e&&r===""||r!==""&&(ha(i,`.${r}`)||i===r)))}function d0(i,s){return ha(i,`.${s}`)||i===s}function p0(i,s){return l(s,ye(t=>g0(i,t)))}function g0(i,s){if(s==="")return!1;let t=l(s,Bt("/")),e=t===-1?s:l(s,Oe(0,t)),r=t===-1?"":l(s,Oe(t));return(l(e,Bt("*"))===-1?d0(i.hostname,e):Pg(e,!0).test(i.hostname))?r===""?!0:Pg(r,!1).test(i.pathname):!1}function Pg(i,s){let t=l(i,jt(/[.*+?^${}()|[\]\\]/g,"\\$&"),jt(/\\\*/g,".*"));return new Re(`^${t}${s?"$":""}`)}function f0(i){return i[0]==="/"?i:`/${i}`}function kg(i){return l(i,jt(c0,""))}function $u(i){return!hi||!Ei(i,"http://")&&!Ei(i,"https://")?null:(hi.href=i,{hash:hi.hash,host:kg(hi.host),hostname:hi.hostname,href:hi.href,origin:hi.origin?hi.origin:kg(`${hi.protocol}//${hi.host}`),pathname:f0(hi.pathname),port:hi.port,protocol:hi.protocol,search:hi.search})}function m0(i){if(typeof Object.values=="function")return l(Object,Ka(i));let s=[];for(let t in i)i.hasOwnProperty(t)&&l(s,I(i[t]));return s}function v0(i,s){if(Object.keys(i).length<=s)return i;let t={},e=0;for(let[r,n]of l(Object,vu(i))){if(e>=s)break;t[r]=n,e++}return t}function xi(i,s=0){let t=Math.pow(10,s);return Math.round(i*t)/t}var Sn=(Ep=(vp=oe.Element)==null?void 0:vp.prototype)!=null?Ep:{},Li=l(Sn,Up)||l(Sn,r_)||Sn.mozMatchesSelector||Sn.msMatchesSelector||Sn.oMatchesSelector||Sn.webkitMatchesSelector,Og=Sn.closest,Vu;function ui(i){if(Vu||(Vu=D.createElement("div")),!(i&&j(i)))return fe.warn(`isValidSelector: invalid selector provided '${i}'`),!1;try{return Li.call(Vu,i),!0}catch(s){return fe.warn(`isValidSelector: invalid selector provided '${i}'`),!1}}function ua(i,s){if(Og)return Og.call(i,s);let t=i;do{if(Li.call(t,s))return t;t=l(t,qe,Fs)}while(t!==null&&l(t,Ve)===1);return null}var Ae=(()=>{let i;return(function(s){s.ELLIPSIS="\u2026";function t(a){return l(a,jt(/[.*+?^${}()|[\]\\]/g,"\\$&"))}function e(a){return l(a,jt(/([#;&,.+*~':"!^$[\]()<=>|/%?@`{}\\ ])/g,"\\$1"))}s.escapeInvalidCharacters=e;function r(a,o,u){if("replaceAll"in String.prototype)return l(a,o_(o,u));let c=new Re(t(o),"g");return l(a,jt(c,u))}s.stringReplaceAll=r;function n(a,o,u=""){return a.length<=o?a:l(a,Oe(0,o-u.length))+u}s.truncate=n})(i||(i={})),i})(),Mg=new Map,Fu=!mg&&D.implementation.createHTMLDocument("");function Dg(i){var s,t;return(t=(s=i.sheet)==null?void 0:s.href)!=null?t:l(i,fs("href"))}function E0(i){if(!vl(i))return null;let s=xg(i);if(s===null||s.length===0)return null;let t="";if(pl(i.textContent))ne(s,e=>t+=e.cssText);else{let e=y0(i);if(e===s.length||e>s.length)return null;let r=new Array(s.length-e);for(let n=e,a=0;n<s.length;n+=1,a+=1)r[a]=s[n];ne(r,n=>t+=n.cssText)}return t}function y0(i){if(!Fu)return 0;let s=Mg.get(i.textContent);if(s)return s;let t=i.cloneNode(!0);t.textContent=i.textContent,Fu.head.appendChild(t);let e=xg(t);return s=e?e.length:0,Mg.set(i.textContent,s),Fu.head.removeChild(t),s}function xg(i){try{if(i.disabled)return null;let s=i.sheet;return s?s.cssRules||s.rules:null}catch(s){let t=s;if(t.name!=="SecurityError"&&t.name!=="InvalidAccessError")throw t;return null}}function S0(i){var s=parseInt(i,16),t=55296<=s&&s<=57343;return t||s===0||s>1114111?"\uFFFD":String.fromCodePoint(s)}function _0(i){return i.replace(/\\(?:([a-fA-F0-9]{1,6})|(\\+|.))[\n\t\x20]?/g,function(s,t,e){return e||S0(t)})}function R0(i){return i.replace(/([\\]+|")|([\n])/g,function(s,t,e){return t?"\\".concat(t," "):"\\".concat(e.codePointAt(0).toString(16)," ")}
6)}var _n=function(i,s){return Object.defineProperty?Object.defineProperty(i,"raw",{value:s}):i.raw=s,i},Hu=String.raw(Ug||(Ug=_n([`\\(?:[a-fA-F0-9]{1,6}|\\+|.)[ 7 ]?`],["\\\\(?:[a-fA-F0-9]{1,6}|\\\\+|.)[\\n\\t\\x20]?"]))),T0=String.raw($g||($g=_n(["((?:",'|[^"])+)'],["((?:",'|[^"])+)'])),Hu),C0=String.raw(Vg||(Vg=_n(["((?:","|[^'])+)"],["((?:","|[^'])+)"])),Hu),b0=String.raw(Fg||(Fg=_n(["((?:",`|[^)"'])+)`],["((?:",`|[^)"'])+)`])),Hu),Lg=String.raw(Hg||(Hg=_n(['(?:"',`"|'`,"')"],['(?:"',`"|'`,"')"])),T0,C0),A0=String.raw(Bg||(Bg=_n(["urls*(s*(?:","|",")s*)"],["url\\s*\\(\\s*(?:","|",")\\s*\\)"])),Lg,b0),I0=String.raw(zg||(zg=_n(["@imports*",""],["@import\\s*",""])),Lg),w0=new RegExp("".concat(A0,"|").concat(I0),"g");function N0(i,s){return i.replace(w0,function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=e.find(function(c){return c!==void 0}),a=_0(n),o=s(a);if(!o||o===a)return t;var u=/^@import/.test(t)?"@import ":"";return"".concat(u,'url("').concat(R0(o),'")')})}function ca(i){var s=new Set;return N0(i,function(t){s.add(t)}),Array.from(s)}var Ug,$g,Vg,Fg,Hg,Bg,zg;function zi(i){let s=l(i,Ci);return s&&mr(s)&&l(s,is)&&i.composedPath?i.__csOriginalTarget||i.composedPath()[0]:s}function P0(i){return i.composedPath&&Object.defineProperty(i,"__csOriginalTarget",{value:i.composedPath()[0],writable:!1,enumerable:!1}),i}function k0(){return(i,s,t)=>{let e=t.value;return e&&(t.value=function(r){if(zi(r)===r.target)return e.call(this,r)}),t}}var Bu=(()=>{class i{constructor(){this.set=new Set}add(t){this.set.add(t),this.set.size===1&&Ft(()=>{this.set.clear()})}has(t){return this.set.has(t)}del(t){this.set.delete(t)}clear(){this.set.clear()}values(){return En(this.set)}get count(){return this.set.size}}return i})();function zu(i,s=!1){let t=new Bu;return{push(e){t.count===0&&(s?io:Ft)(()=>{i(t.values()),t.clear()}),t.add(e)}}}function Gi(i){return Ei(i,"data:")}function Gg(i){return Ei(i,"#")}function Nl(i){return!!i&&(ha(i,".css")||Ei(i,"https://fonts.googleapis.com/css"))}function O0(i=location.href){let s={};return new sa(i).searchParams.forEach((t,e)=>s[e]=t),s}var yr=(()=>{let i;return(function(s){s.REGEX="regex",s.START="start",s.NOT_START="not-start",s.END="end",s.NOT_END="not-end",s.CONTAIN="contain",s.NOT_CONTAIN="not-contain",s.EXACT="exact",s.NOT_EXACT="not-exact"})(i||(i={})),i})(),Gs=(()=>{let i;return(function(s){s.START="start",s.NOT_START="not-start",s.END="end",s.NOT_END="not-end",s.CONTAIN="contain",s.NOT_CONTAIN="not-contain",s.EXACT="exact",s.NOT_EXACT="not-exact",s.REGEX_TO_RULE="regex-to-rule"})(i||(i={})),i})(),Ws=(()=>{let i;return(function(s){s.replayRecordingUnmaskedUrlRegex="replayRecordingUnmaskedUrlRegex",s.replayRecordingMaskedUrlRegex="replayRecordingMaskedUrlRegex",s.replayRecordingUnmaskedUrlRegexRules="replayRecordingUnmaskedUrlRegexRules",s.replayRecordingMaskedUrlRegexRules="replayRecordingMaskedUrlRegexRules"})(i||(i={})),i})(),Sr=(()=>{class i{constructor(){this.il=[]}setRegexRules(t){this.il=l(t,$t(e=>this.WS(e)),xt(e=>e!==null))}WS(t){try{return this.qS(t)}catch(e){return fe.warn(`compileRegexRule, failed to compile rule (operator: ${t.operator}, value: ${t.value}): ${String(e)}`),null}}evaluateUrl(t){return l(this.il,ye(e=>this.Ef(t,e)))}getMatchingRules(t){return l(this.il,xt(e=>this.Ef(t,e)),$t(e=>e.ruleInput))}Ef(t,e){var r,n;let a=this.YS(t,e);return!this.XS(e)||!this.KS(e)?!1:(e.regex.lastIndex=0,!!(e!=null&&e.notOperator?!((r=e.regex)!=null&&r.test(a)):(n=e.regex)!=null&&n.test(a)))}XS(t){let e=new Date,r=t.startDate&&t.startDate>e,n=t.endDate&&t.endDate<e;return!r&&!n}KS(t){let e=t.samplingRate!==100,r=e&&zs.boolean(t.samplingRate);return!e||r}ia(t){return!Ei(t,"http://")&&!Ei(t,"https://")?`https://${t}`:t}YS(t,e){let r=$u(this.ia(t));return r?e.ignoreQueryParams&&e.ignoreURIFragments?`${r.origin}${r.pathname}`:e.ignoreQueryParams?`${r.origin}${r.pathname}${r.hash}`:e.ignoreURIFragments?`${r.origin}${r.pathname}${r.search}`:t:t}ra(t){return t!=null&&t.ignoreCaseSensitivity?"i":""}qS(t){let e=null,r=!1;switch(t.operator){case Gs.NOT_START:case yr.NOT_START:r=!0;case Gs.START:case yr.START:e=new Re(`^${t.value}`,this.ra(t));break;case Gs.NOT_END:case yr.NOT_END:r=!0;case Gs.END:case yr.END:e=new Re(`${t.value}$`,this.ra(t));break;case Gs.NOT_CONTAIN:case yr.NOT_CONTAIN:r=!0;case Gs.CONTAIN:case yr.CONTAIN:case yr.REGEX:e=new Re(`${t.value}`,this.ra(t));break;case Gs.NOT_EXACT:case yr.NOT_EXACT:r=!0;case Gs.EXACT:case yr.EXACT:e=new Re(`^${t.value}$`,this.ra(t));break;case Gs.REGEX_TO_RULE:e=this.ZS(t.value);break;default:fe.warn(`compileRegexRule, unknown operator: ${t.operator}`)}if(e===null)return null;let n=t.startDate?this.vf(t.startDate):void 0,a=t.endDate?this.vf(t.endD
7ate):void 0;return{regex:e,ignoreQueryParams:t.ignoreQueryParams,ignoreURIFragments:t.ignoreURIFragments,notOperator:r,samplingRate:t.samplingRate!==void 0?t.samplingRate:100,startDate:n,endDate:a,ruleInput:t}}vf(t){let e=new Date(t);return isNaN(e.getTime())?void 0:e}ZS(t){try{let e=/^\/(.*)\/([gim]*)$/.exec(t);if(e){let[,r,n]=e;return new Re(`^${r}$`,n)}return new Re(`^${t}$`)}catch(e){return fe.warn(`compileRegexRule, ${Gs.REGEX_TO_RULE}, Invalid regex rule value "${t}" could not be compiled: ${e instanceof Error?e.message:String(e)}`),null}}}return i})(),Xe=(()=>{class i{constructor(t,e,r,n){this.vt=t,this.Ws=e,this.qs=r,this.ns=n}init(){this.QS()}shouldMaskNonTextElements(){let{anonymisationMethod:t}=this.vt;if(t===Ws.replayRecordingMaskedUrlRegexRules){if(this.vt.isSMB)return this.shouldUseAnonymization();if(this.vt.maskMedia)return!0;let e=this.qs.getMatchingRules(this.Ws.getAnonymizedUrl());return l(e,ye(r=>r.maskMedia))}if(t===Ws.replayRecordingUnmaskedUrlRegexRules){if(!this.vt.maskMedia)return!1;let e=this.qs.getMatchingRules(this.Ws.getAnonymizedUrl());return!l(e,ye(r=>r.maskMedia===!1||r.maskMedia===0))}return!!this.vt.maskMedia}shouldMaskNumbers(){var t,e;let{anonymisationMethod:r}=this.vt;if(r===Ws.replayRecordingMaskedUrlRegexRules){if(this.vt.anonymizeDigits)return!0;let n=this.qs.getMatchingRules(this.Ws.getAnonymizedUrl());return!!l(n,ye(a=>
7a.maskNumbers||a.maskNumbers==null))}if(r===Ws.replayRecordingUnmaskedUrlRegexRules){if(this.vt.anonymizeDigits===!1)return!1;let n=this.qs.getMatchingRules(this.Ws.getAnonymizedUrl());return l(n,ye(a=>a.maskNumbers!==!0&&a.maskNumbers!==1))?!1:(t=this.vt.anonymizeDigits)!=null?t:!0}return(e=this.vt.anonymizeDigits)!=null?e:!1}shouldUseAnonymization(){if(this.ns&&!this.ns.isReplayUnanonymizedAllowedByConsent()){switch(this.vt.anonymisationMethod){case null:case Ws.replayRecordingUnmaskedUrlRegex:return!(this.vt.replayRecordingUnmaskedUrlRegex&&this.vt.replayRecordingUnmaskedUrlRegex.test(this.Ws.getAnonymizedUrl()));case Ws.replayRecordingUnmaskedUrlRegexRules:let t=this.qs.getMatchingRules(this.Ws.getAnonymizedUrl());return!l(t,qe,ye(e=>e.maskText===!1||e.maskText===0||e.maskText==null))}return!0}else{switch(this.vt.anonymisationMethod){case null:case Ws.replayRecordingMaskedUrlRegex:return!!(this.vt.replayRecordingMaskedUrlRegex&&this.vt.replayRecordingMaskedUrlRegex.test(this.Ws.getAnonymizedUrl()));case Ws.replayRecordingMaskedUrlRegexRules:let t=this.qs.getMatchingRules(this.Ws.getAnonymizedUrl());return l(t,qe,ye(e=>e.maskText===!0||e.maskText===1||e.maskText==null))}return!1}}QS(){this.vt.anonymisationMethod===Ws.replayRecordingMaskedUrlRegexRules&&this.vt.replayRecordingMaskedUrlRegexRules?this.qs.setRegexRules(this.vt.replayRecordingMaskedUrlRegexRules):this.vt.anonymisationMethod===Ws.replayRecordingUnmaskedUrlRegexRules&&this.vt.replayRecordingUnmaskedUrlRegexRules&&this.qs.setRegexRules(this.vt.replayRecordingUnmaskedUrlRegexRules)}}return i})();function M0(){return v.navigator.language||v.navigator.userLanguage||v.navigator.browserLanguage||v.navigator.systemLanguage||"unknown"}var D0="spki",Wg="RSA-OAEP",x0="SHA-256",jg="AES-CTR",L0="SHA-1",qg=190,Gu=(()=>{let i;return(function(s){let t=!1,e=null,r,n=typeof TextEncoder!="undefined"?new TextEncoder:null;s.MAX_DIGEST_INPUT_SIZE=100;function a(){return!t}s.isKeyImported=a;function o(){return e}s.getCryptoKey=o;function u(){var U;return typeof crypto!="undefined"&&((U=crypto.subtle)==null?void 0:U.encrypt)!=null&&oe.CryptoKey!=null}s.isSupported=u;function c(U){return yt(this,null,function*(){r=crypto.subtle.importKey(D0,Sg(U),{name:Wg,hash:x0},!1,["encrypt"]).catch(()=>(t=!0,null)),e=yield r,r=void 0,e||fe.warn(`Fail to import public key '${U}'`)})}s.importKey=c;function p(U){return yt(this,null,function*(){if(!u()||t)return null;yield r;let z=Mu(U);z.byteLength>qg&&(z=z.slice(0,qg));try{let dt=yield crypto.subtle.encrypt({name:Wg},e,z);return yg(dt)}catch(dt){return null}})}s.asymmetricEncrypt=p;function f(U,z){return yt(this,null,function*(){if(!u()||t)return null;let dt={counter:z.initializationVector,name:jg,length:64},vt=n.encode(U);try{let ht=yield crypto.subtle.encrypt(dt,z.cryptoKey,vt);return yg(ht)}catch(ht){return null}})}s.symmetricEncrypt=f;function E(U){return yt(this,null,function*(){let z=yield g(U);if(!z)throw new Error("Export secret failed");let dt=yield p(z);if(!dt)throw new Error("Encrypt secret failed");return dt})}s.encryptSecret=E;function g(U){return yt(this,null,function*(){var z;if(!u())return null;try{return(z=(yield crypto.subtle.exportKey("jwk",U)).k)!=null?z:null}catch(dt){return null}})}function R(){return yt(this,null,function*(){if(!u()||t)return null;try{return{cryptoKey:yield crypto.subtle.generateKey({name:jg,length:128},!0,["encrypt","decrypt"]),initializationVector:oe.crypto.getRandomValues(new Uint8Array(16))}}catch(U){return null}})}s.generateSymmetricKey=R;function k(U,z){return yt(this,null,function*(){U=l(U,ai()).toLocaleLowerCase(),z&&(U=`${U}:${z}`);let dt=n.encode(U);try{let vt=yield crypto.subtle.digest(L0,dt);return Du(vt)}catch(vt){return null}})}s.digest=k;function X(){return crypto.subtle.generateKey({name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},!0,["encrypt","decrypt"])}s.generateKeyPair=X})(i||(i={})),i})(),ge=(()=>{class i extends Error{constructor(t,e){let r=e?`Command misuse: ${t} - ${e}`:`Command misuse: ${t}`;super(r),this.name="MisusedCommandError"}}return i})(),Pl=(()=>{let i=class up{emit(t,e,r,n=D){let a=`${r!==void 0?`${r}`:`${up.JS}`}${t}`,o=up.createEvent(a,{detail:e});o!==null&&n.dispatchEvent(o)}static createEvent(t,e={}){if(typeof CustomEvent=="function")return new CustomEvent(t,e);let r=this.t_();if(r===null)return null;let{bubbles:n=!1,cancelable:a=!1,detail:o}=e;return r.initCustomEvent(t,n,a,o),r}static t_(){try{return D.createEvent("CustomEvent")}catch(t){return null}}};return i.JS="cs.tracking.",i})(),U0=(()=>{class i{constructor(t){this.Sf=t,this.Ve=null,this._f=!1,this.e_=typeof requestIdleCallback!="undefined"?e=>
7requestIdleCallback(e):e=>Ft(e)}start(){return yt(this,null,function*(){this._f||(this._f=!0,yield this.s_(this.Sf))})}stop(){var t;(t=this.Ve)==null||t.call(this),this.Ve=null}s_(t){return yt(this,null,function*(){(yield this.i_(D))?t():this.r_(this.Sf)})}r_(t){this.Ve=qt(HTMLElement,"attachInternals",()=>{t(),this.stop()})}i_(t){return yt(this,null,function*(){yield new Promise(n=>this.e_(()=>n()));let e=Ai(t,NodeFilter.SHOW_ELEMENT),r=e.nextNode();for(;r;){if(this.n_(r))return!0;r=e.nextNode()}return!1})}n_(t){var e;return((e=t.constructor)==null?void 0:e.formAssociated)===!0&&t.tagName.includes("-")}}return i})(),{logger:Yg}=oa("task"),$0=typeof performance!="undefined"&&!!performance.now,V0=$0?()=>performance.now():()=>Date.now(),Zg={elapsed(){return V0()}};function F0(){let i=cn("queueMicrotask");if(typeof i=="function")return i;let s=cn("setTimeout");return t=>{s(t,0)}}F0();var Wu=(i=>(i.Timer="timer",i.MonkeyPatch="monkeyPatch",i.MutationObserver="mutationObserver",i.EventListener="eventListener",i.IntersectionObserver="intersectionObserver",i.MicroTask="microtask",i))(Wu||{}),Es=null,H0=["click","tap","keyup","keydown","pointerup","pointerdown"];function B0(i,s,t=null){return yt(this,null,function*(){if(Es&&s[0]!=="microtask")return i();t&&(Es=t),Es||(Es={type:s[0],elapsed:0});try{Es.elapsed+=z0(i)}catch(e){Yg.critical(new Error(`Task error: ${s}/${i.name}. 8${e.message} 9${e.stack}`),"TASK_ERROR")}finally{Es.elapsed>50&&(ot.counters.longTasks.push(Es.elapsed),ot.counters.blockingTime.push(Es.elapsed-50)),ot.counters.tasks.add(s[0],Es.elapsed),H0.includes(s[1])&&ot.counters.inpContribution.push(Es.elapsed),Es=null}})}function z0(i){let s=Zg.elapsed();return i(),Zg.elapsed()-s}var Kg=typeof Mp!="undefined"?Mp:oe.MutationObserver;if("Prototype"in v||W0()){let i=cn("MutationObserver");j0(i)&&(Kg=i)}var G0=Xg(oe.IntersectionObserver,Wu.IntersectionObserver),Rn=Xg(Kg,Wu.MutationObserver);function Xg(i,s){try{let t=function(e,r){return new i((n,a)=>{B0(()=>e(n,a),[s,i.name])},r)};return t.base=i,t.prototype=i.prototype,t}catch(t){return Yg.warn(`Observer protection: failed to extends ${i.name}`),i}}function W0(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function j0(i){try{let{observe:s,takeRecords:t}=i.prototype;return[i,s,t].every(e=>/\{\s*\[native code\]\s*\}/.test(Function.prototype.toString.call(e)))}catch(s){return!1}}var no=(()=>{let i=class Kn{static o_(e){this.ys.forEach(r=>{e(r,"initial")})}static mn(e){if(this.D||(this.D=new Rn(r=>{for(let n of r)n.target.isConnected&&ne(n.addedNodes,this.a_),ne(n.removedNodes,this.c_)})),l(this.pt,I(e)),!this.ws){this.ws=!0,this.D.observe(D,this.nl);for(let r of Er.getAllShadowHosts(D)){let n=l(r,is);this.ys.add(n),this.D.observe(n,this.nl)}this.Ve||(this.Ve=qt(Element,"attachShadow",(r,{result:n})=>this.Ys(n)&&this.yf(n)))}this.o_(e)}static Ys(e){return e.isConnected&&e.ownerDocument===D}static En(e){var r,n;this.pt=l(this.pt,xt(a=>a!==e)),this.pt.length===0&&(this.pt=[],this.ws=!1,(r=this.D)==null||r.disconnect(),(n=this.Ve)==null||n.call(this),this.Ve=null,this.ys.clear())}constructor(e){this.R=e,this.R=vr("DocumentShadowRootObserver:callback",(r,n)=>e(r,n))}get shadowRoots(){return En(Kn.ys)}static get shadowRootsCount(){if(Kn.ws)return En(Kn.ys).length}takeRecords(){var e,r;return(r=(e=Kn.D)==null?void 0:e.takeRecords())!=null?r:[]}observe(){Er.isSupported()&&Kn.mn(this.R)}disconnect(){Er.isSupported()&&Kn.En(this.R)}};i.pt=[],i.ys=new Set,i.ws=!1,i.Ve=null,i.nl={childList:!0,subtree:!0},i.yf=t=>{l(t.host,is)!==null&&(i.ys.has(t)||(i.D.observe(t,i.nl),i.ys.add(t),ne(i.pt,e=>e(t,"added"))))},i.a_=t=>{Ai(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(i.yf)},i.c_=t=>{t.isConnected||Ai(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(e=>{i.ys.has(e)&&(i.ys.delete(e),ne(i.pt,r=>r(e,"removed")))})};let s=i;return b([J()],s.prototype,"observe",null),b([J()],s.prototype,"disconnect",null),s})(),Qg={childList:!0,subtree:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,attributeOldValue:!0},ys=(()=>{let i=class ds{static setShadowRootFilter(e){l(ds.shadowRootFilters,I(e))}static ol(e){if(ds.shadowRootFilters.length>0&&Bs(e))for(let r=0;r<ds.shadowRootFilters.length;r++){let n=ds.shadowRootFilters[r];if(n(e))return}this.observedTargets.add(e),this.mutationObserver.observe(e,Qg)}static disconnectShadowRoot(e){this.observedTargets.has(e)&&(this.observedTargets.delete(e),this.isRefreshing||(this.isRefreshing=!0,io(()=>{this.isRefreshing=!1;let r=this.mutationObserver.takeRecords();r.length&&ds.mutationCallback(r),this.mutationObserver.disconnect(),this.observedTargets.forEac
9h(n=>{this.mutationObserver.observe(n,Qg)})})))}static observe(e,r){l(this.callbacks,I(e)),r&&l(this.shadowRootCallbacks,I(r)),this.started?r&&l(Er.getAllShadowHosts(D),et(n=>r(l(n,is),"initial"))):(this.mutationObserver=new Rn(this.mutationCallback),this.ol(D),this.shadowRootObserver=new no(this.onShadowRoot),this.shadowRootObserver.observe(),this.started=!0,ne(this.shadowRootObserver.shadowRoots,n=>{this.ol(n)}))}static disconnect(e,r){var n,a;this.callbacks=l(this.callbacks,xt(o=>o!==e)),r&&(this.shadowRootCallbacks=l(this.shadowRootCallbacks,xt(o=>o!==r))),this.callbacks.length===0&&(this.callbacks=[],this.shadowRootCallbacks=[],ds.shadowRootFilters=[],(n=this.shadowRootObserver)==null||n.disconnect(),(a=this.mutationObserver)==null||a.disconnect(),this.observedTargets.clear(),this.started=!1)}constructor(e,r){this.R=e,this.wf=r;let n=zu(a=>e(a,this),!0);this.R=vr("DocumentMutationObserver:callback",a=>{ne(a,o=>n.push(o))})}get shadowRoots(){var e,r;return(r=(e=ds.shadowRootObserver)==null?void 0:e.shadowRoots)!=null?r:[]}takeRecords(){var e;let r=(e=ds.mutationObserver)==null?void 0:e.takeRecords(),n=ds.shadowRootObserver.takeRecords();return r!=null&&r.length&&n.length?d_(r,n):r!=null?r:n}observe(){ds.observe(this.R,this.wf)}disconnect(){ds.disconnect(this.R,this.wf)}};i.callbacks=[],i.shadowRootCallbacks=[],i.started=!1,i.observedTargets=new Set,i.shadowRootFilters=[],i.mutationCallback=t=>{ot.counters.mutations.push(t.length),l(i.callbacks,et(e=>e(t,i.mutationObserver)))},i.onShadowRoot=(t,e)=>{ne(i.shadowRootCallbacks,r=>r(t,e)),e!=="removed"?i.ol(t):i.disconnectShadowRoot(t)},i.isRefreshing=!1;let s=i;return b([J()],s.prototype,"observe",null),b([J()],s.prototype,"disconnect",null),s})(),q0=(()=>{class i{constructor(t=Number.POSITIVE_INFINITY){this.Xs=[],this.St=[],this.l_=t}next(t){this.St.length===this.l_&&l(this.St,fn()),l(this.St,I(t)),this.St.length===1&&Ft(()=>this.clear());for(let e of this.Xs)e(t)}subscribe(t){if(fl(this.Xs,e=>t===e))return()=>{this.Xs=l(this.Xs,xt(e=>e!==t))};l(this.Xs,I(t));for(let e of this.St)t(e);return()=>{this.Xs=l(this.Xs,xt(e=>e!==t))}}clear(){this.St=[]}hasObservers(){return this.Xs.length>0}}return i})(),Y0=(()=>{let i=class ts{constructor(e){this.R=e}observe(){this.u_=ts.vn.subscribe(e=>this.R(e)),ts.na||(ts.na=!0,ts.Sn.observe(),Ai(D,NodeFilter.SHOW_ELEMENT).visitAll(e=>{ts.bs.add(e),ts.vn.next(e)}))}disconnect(){ts.na&&(this.u_(),ts.vn.hasObservers()||(ts.na=!1,ts.Sn.disconnect(),ts.vn.clear(),ts.bs.clear()))}};i.bs=new Bu,i.vn=new q0,i.h_=_l(t=>{io(()=>{for(let e of t)e.type==="childList"&&ne(e.addedNodes,r=>{Ai(r,NodeFilter.SHOW_ELEMENT).visitAll(n=>{i.bs.has(n)||(i.bs.add(n),i.vn.next(n))})})})},"ElementObserver.findAllElements"),i.na=!1,i.Sn=new ys(i.h_);let s=i;return b([J()],s.prototype,"observe",null),b([J()],s.prototype,"disconnect",null),s})(),Z0=(()=>{class i{constructor(t){this.R=t,this.Ks=new Map,this.bf=e=>{let r=e.target;if(this.Ks.has(r))return!0;let n=!1;return this.Ks.forEach((a,o)=>{n||!this.Ks.get(o).subtree||(n=o.contains(r))}),n},this.D=new Rn(e=>{Nu.isScheduled(this,this.garbageCollect)&&(e=_u(e,this.bf)),e.length&&io(()=>t(e,this))})}disconnect(){this.D.disconnect(),this.Ks=new Map}takeRecords(){return this.D.takeRecords()}observe(t,e){return this.Ks.set(t,e),this.D.observe(t,e)}unobserve(t){this.Ks.has(t)&&(this.Ks.delete(t),this.garbageCollect())}garbageCollect(){let t=_u(this.takeRecords(),this.bf);t.length&&this.R(t,this),this.D.disconnect(),this.Ks.forEach((e,r)=>this.D.observe(r,e))}}return b([Nu()],i.prototype,"garbageCollect",null),i})(),Ye=(()=>{let i;return(function(s){s[s.TAP=0]="TAP",s[s.LONG_PRESS=1]="LONG_PRESS",s[s.DRAG=2]="DRAG",s[s.FLICK=3]="FLICK",s[s.PINCH_IN=4]="PINCH_IN",s[s.PINCH_OUT=5]="PINCH_OUT"})(i||(i={})),i})(),kl=(()=>{let i;return(function(s){s[s.UP=1]="UP",s[s.DOWN=2]="DOWN",s[s.LEFT=3]="LEFT",s[s.RIGHT=4]="RIGHT"})(i||(i={})),i})(),K0=(()=>{class i{compute(t,e){let r=this.Zs(e.x)-this.Zs(t.x),n=this.Zs(e.y)-this.Zs(t.y),a=e.time-t.time;return{duration:a,distance:this.Rf(r,n),direction:this.d_(r,n),velocity:this.f_(r,n,a)}}computePinchMetrics(t,e){let r=this.Zs(e.x)-this.Zs(t.x),n=this.Zs(e.y)-this.Zs(t.y);return{duration:e.time-t.time,distance:this.Rf(r,n)}}getScale(t,e){return Math.abs(e/t-1)}Zs(t){return t/v.devicePixelRatio}Rf(t,e){return Math.round(Math.sqrt(t*t+e*e))}f_(t,e,r){let n=r/1e3,a=t/n,o=e/n;return Math.round(Math.abs(a)+Math.abs(o))}d_(t,e){return Math.abs(t)>Math.abs(e)?t>0?kl.RIGHT:kl.LEFT:e>0?kl.DOWN:kl.UP}}return i})();function Jg(i,s=0){let t=Math.pow(10,s);return Math.round(i*t)/t}var X0=1e3,Q0=100,J0=.1,tf=(()=>{class i{constructor(){this.br=[],this.qt={},this.al=()=>{},this.oa=new K0,this.Tf()}static isGestureDetectionSupported(){return typeof devicePixelRatio!="undefined"}onGesture(t){this.al=t}isValidTouchEvent(t){return"touches"in t&&"changedTouches"in t}processActionDown(t){if(!this.g_(t))return;this.p_(t)&&this.Tf();let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:mt.now()};if(t.touches.length===1)this.qt.startPinchTime=e.time,this.qt.firstTouch=e;else if(t.touches.length===2&&(this.qt.secondTouch={x:t.touches[1].clientX,y:t.touches[1].clientY,time:mt.now()},this.qt.firstTouch&&this.qt.secondTouch)){let r=this.oa.computePinchMetrics(this.qt.firstTouch,this.qt.secondTouch);this.Rr=r.distance}l(this.br,I(e)),this.aa=zi(t)}processActionMove(){this.cl=!0}processActionUp(t){if(this.m_(t)){if(l(this.br,I({x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:mt.now()})),this.E_(t)&&this.qt.startPinchTime){let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:this.qt.startPinchTime},r={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:mt.now()};this.qt.firstTouch&&(this.qt.firstTouch=e,this.qt.secondTouch=r),this.v_(t)}this.Rr||this.S_()&&this.__(t)}}Tf(){this.br=[],this.aa=void 0,this.cl=!1,this.Rr=void 0,this._n=!0}__(t){let e=this.oa.compute(this.br[0],this.br[1]);this._n=t.isTrusted;let r=this.cl?this.y_(e):this.w_(e);if(this.b_(r.type,t.changedTouches)){let n=t.changedTouches[0];r.pageX=Jg(n.pageX,1),r.pageY=Jg(n.pageY,1)}this.al(r,t)}v_(t){if(!(this.qt.firstTouch&&this.qt.secondTouch))return;let e=this.oa.computePinchMetrics(this.qt.firstTouch,this.qt.secondTouch);this._n=t.isTrusted;let r=this.R_(e);r&&this.al(r,t)}R_(t){return!this.Rr||this.oa.getScale(this.Rr,t.distance)<J0?void 0:{type:this.Rr>t.distance?Ye.PINCH_IN:Ye.PINCH_OUT,target:this.aa,distance:t.distance,isTrusted:this._n}}y_(t){return{type:t.velocity<Q0?Ye.DRAG:Ye.FLICK,target:this.aa,velocity:t.velocity,distance:t.distance,direction:t.direction,isTrusted:this._n}}w_(t){return{type:t.duration<X0?Ye.TAP:Ye.LONG_PRESS,target:this.aa,isTrusted:this._n}}b_(t,e){return t===Ye.TAP&&e&&e.length===1}p_(t){return t.touches.length===1}S_(){return this.br.length===2}g_(t){return t.touches.length>0}m_(t){return t.changedTouches.length>0}E_(t){return this.cl===!0&&!!this.Rr&&t.changedTouches.length===1&&t.touches.length===1}}return i})(),tR="touchstart",eR="touchmove",iR="touchend",ef=(()=>{let i=class si{constructor(t){this.R=t}observe(){si.Cf&&si.ll(this.R)}disconnect(){si.Cf&&si.yn(this.R)}static T_(t,e){l(En(si.wt),et(r=>r(t,e)))}static ll(t){si.wt.has(t)||(si.wt.add(t),si.wt.size===1&&(si.wn.onGesture(si.T_),l(si.Af,et(e=>Ke(e)))))}static yn(t){si.wt.delete(t),si.wt.size===0&&l(si.Af,et(e=>Ge(e)))}static ul(t){if(si.wn.isValidTouchEvent(t))switch(t.type){case"touchstart":si.wn.processActionDown(t);break;case"touchmove":si.wn.processActionMove();break;case"touchend":si.wn.processActionUp(t);break}}};return i.Af=[{boundElement:oe.document,type:tR,listener:s=>i.ul(s)},{boundElement:oe.document,type:eR,listener:s=>i.ul(s)},{boundElement:oe.document,type:iR,listener:s=>i.ul(s)}],i.Cf=tf.isGestureDetectionSupported(),i.wt=new Set,i.wn=new tf,i})(),sR=(()=>{let i=class me{static C_(){var e,r,n,a;
9if("history"in v){let o=l(Object,zp(history));if((e=o.pushState)!=null&&e.writable&&(r=o.replaceState)!=null&&r.writable)return history}if(History.prototype){let o=l(Object,zp(History.prototype));if((n=o.pushState)!=null&&n.writable&&(a=o.replaceState)!=null&&a.writable)return History.prototype}fe.warn("Unable to override pushState, replaceState",!0,"HistoryChangeObserver")}static A_(){let e=me.C_();me.bn===null&&bi(e==null?void 0:e.pushState)&&(me.bn=qt(e,"pushState",(r,{args:n})=>{me.If("pushstate",n)})),me.Rn===null&&bi(e==null?void 0:e.replaceState)&&(me.Rn=qt(e,"replaceState",(r,{args:n})=>{me.If("replacestate",n)}))}static mn(e){me.pt.add(e),me.pt.size===1&&((me.bn===null||me.Rn===null)&&me.A_(),Ke(me.Pf),Ke(me.Mf))}static En(e){var r,n;me.pt.delete(e),me.pt.size===0&&((r=me.bn)==null||r.call(me),me.bn=null,(n=me.Rn)==null||n.call(me),me.Rn=null,Ge(me.Pf),Ge(me.Mf))}static If(e,r){let n={type:e,state:r[0]};j(r[2])&&(n.url=r[2]),me.Tr(n)}static popstateListener(e){me.Tr({type:"popstate",state:e.state})}static hashchangeListener(e){me.Tr({type:"hashchange",state:null,url:e.newURL})}static Tr(e){l(En(me.pt),et(r=>{r(e)}))}constructor(e){this.R=e}observe(){me.mn(this.R)}disconnect(){me.En(this.R)}};i.bn=null,i.Rn=null,i.Pf={boundElement:oe,type:"popstate",listener:t=>i.popstateListener(t)},i.Mf={boundElement:oe,type:"hashchange",listener:t=>i.hashchangeListener(t)},i.pt=new Set;let s=i;return b([J("popstateListener"),Ne()],s,"popstateListener",null),b([J("hashchangeListener"),Ne()],s,"hashchangeListener",null),s})(),sf=(()=>{let i=class al{static isNavigationTimingObserverSupported(){return l(v.PerformanceObserver,qe,"supportedEntryTypes",qe,Dt("navigation"))>=0}static getTimeOrigin(){var t;return(t=v.performance.timeOrigin)!=null?t:v.performance.timing.navigationStart}static Nf(){if(this.isNavigationTimingObserverSupported())return new v.PerformanceObserver(t=>al.I_(t))}static I_(t){let e=t.getEntriesByType("navigation")[0];e&&(this.Ti=e,al.Tr(e))}static mn(t){this.P_(t),this.Ti&&t(this.Ti),this.Pe||this.M_()}static P_(t){this.wt.add(t)}static N_(t){this.wt.delete(t)}static M_(){if(this.Tn||(this.Tn=this.Nf()),!this.Tn){this.Ti||(this.Ti={requestStart:v.performance.timing.requestStart,domInteractive:v.performance.timing.domInteractive}),this.Tr(this.Ti);return}this.Tn.observe({type:"navigation",buffered:!0}),this.Pe=!0}static Tr(t){this.wt.forEach(e=>e(t))}static En(t){this.N_(t),this.wt.size===0&&this.Cn()}static Cn(){var t;this.Pe&&((t=this.Tn)==null||t.disconnect(),this.Pe=!1,this.Ti=null,this.Tn=this.Nf())}constructor(t){this.R=t}observe(){al.mn(this.R)}disconnect(){al.En(this.R)}};return i.Pe=!1,i.wt=new Set,i.Ti=null,i})(),rR=(()=>{let i=class Ls{static readyStateChangeListener(e){l(En(Ls.callbacks),et(r=>r(e)))}static ll(e){Ls.callbacks.has(e)||(Ls.callbacks.add(e),Ls.callbacks.size===1&&Ke(Ls.eventHandler,!1))}static yn(e){Ls.callbacks.delete(e),Ls.callbacks.size===0&&Ge(Ls.eventHandler)}constructor(e){this.R=e}observe(){Ls.ll(this.R)}disconnect(){Ls.yn(this.R)}};i.callbacks=new Set,i.eventHandler={boundElement:oe.document,type:"readystatechange",listener:i.readyStateChangeListener};let s=i;return b([J("readyStateChangeListener"),Ne()],s,"readyStateChangeListener",null),s})(),js=(()=>{class i{get selectors(){return this.He===""?null:this.He}constructor(t,e={closest:!1}){this.R=t,this.Qt=e,this.He="",this.An=new Bu,this.Cr=_l(r=>{if(this.He==="")return;let n=[];for(let a of jp(r,o=>o.addedNodes)){if(!(A_(a)||this.Qt.closest&&ml(a)))continue;let o=this.Qt.closest?this.O_(a,this.He):this.findMatchingElements(a,this.He);Zp(o,n)}n.length&&this.R(n,"added")},"SelectorObserver.processMutations"),this.k_=(r,n)=>{if(this.He===""||n!=="added")return;let a=this.findMatchingElements(r,this.He);a.length&&this.R(a,"added")},this.G=new ys(this.Cr,this.k_)}observe(t){this.He===""?this.G.observe():this.He+=",",this.He+=t;let e=this.findMatchingElements(D,t);for(let r of this.G.shadowRoots){let n=this.findMatchingElements(r,t);Zp(n,e)}e.length&&(ne(e,r=>{this.An.add(r)}),this.R(e,"initial"))}processPendingMutations(){this.Cr(this.G.takeRecords())}disconnect(){this.G.disconnect(),this.An.clear(),this.He=""}O_(t,e){let r=[];if(ml(t)){if(l(t,Fs)){let n=ua(l(t,Fs),e);n&&l(r,I(n))}return l(r,xt(n=>this.An.has(n)===!1))}else{if(mr(t)){let n=ua(t,e);if(n)return l(r,I(n)),l(r,xt(a=>this.An.has(a)===!1))}return this.findMatchingElements(t,e)}}
9findMatchingElements(t,e){let r=gl(l(t,Hr(e)));return Fe(t)&&Li.call(t,e)&&l(r,I(t)),l(r,xt(n=>this.An.has(n)===!1))}}return b([J()],i.prototype,"observe",null),b([J()],i.prototype,"disconnect",null),b([Di("SelectorObserver.findMatchingElements")],i.prototype,"findMatchingElements",null),i})(),ju=Symbol(),nR=(()=>{class i{constructor(t){this.R=t,this.as=[],this.D_=zu(e=>this.processUpdateRulesInATick(e)),this.R=e=>io(()=>t(e))}observe(){let t=v.CSSGroupingRule?[v.CSSGroupingRule]:l([v.CSSMediaRule,v.CSSSupportsRule],xt(Boolean));l(t,et(e=>{l(this.as,I(qt(e,"insertRule",r=>{this.processUpdateRule(r)}),qt(e,"deleteRule",r=>{this.processUpdateRule(r)})))})),l(this.as,I(qt(v.CSSStyleSheet,"insertRule",(e,{args:r})=>{this.processInsertRule(e,r)}),qt(v.CSSStyleSheet,"deleteRule",(e,{args:r})=>{this.processDeleteRule(e,r)}),qt(v.StyleSheet,"disabled",(e,{args:r,oldValue:n})=>{let a=r[0];a!==n&&this.L_(e,a)}),qt(v.CSSStyleDeclaration,"setProperty",e=>{let r=e.parentRule;r instanceof CSSStyleRule&&this.processUpdateRule(r)}),qt(v.CSSStyleDeclaration,"removeProperty",e=>{let r=e.parentRule;r instanceof CSSStyleRule&&this.processUpdateRule(r)}),qt(v.CSSStyleRule,"style",e=>{this.processUpdateRule(e)},{mode:yn.Properties})))}disconnect(){l(this.as,et(t=>t())),this.as=[]}processInsertRule(t,[e,r]){if(t[ju]==null&&!t.ownerNode)return;let n={type:"cssRuleInserted",sheet:t,rule:e,index:r};this.R(n)}processUpdateRule(t){let e=t;for(;e.parentRule!==null;)e=e.parentRule;e.parentStyleSheet!==null&&this.D_.push(e)}processUpdateRulesInATick(t){for(let e of t){if(e.parentStyleSheet===null)return;let r=e.parentStyleSheet,n=l(gl(r.cssRules),Dt(e));if(n===-1)return;let a={type:"cssRuleUpdated",sheet:r,rule:e.cssText,index:n};this.R(a)}}processDeleteRule(t,[e]){if(t[ju]==null&&!t.ownerNode)return;let r={type:"cssRuleDeleted",sheet:t,index:e};this.R(r)}L_(t,e){if(t[ju]==null&&!t.ownerNode)return;let r={type:"cssStyleSheetDisabled",sheet:t,disabled:e};this.R(r)}}return b([J()],i.prototype,"observe",null),b([J()],i.prototype,"disconnect",null),b([J()],i.prototype,"processInsertRule",null),b([J()],i.prototype,"processUpdateRule",null),b([J()],i.prototype,"processUpdateRulesInATick",null),b([J()],i.prototype,"processDeleteRule",null),i})(),rf=(()=>{class i{constructor(t){this.R=t,this.Qs=!1,this.ge={boundElement:oe,type:"error",listener:e=>this.$_(e)}}observe(){Ke(this.ge,this.Qs)}disconnect(){Ge(this.ge,this.Qs)}$_(t){this.R(t)}}return i})(),nf=(()=>{class i{static create(t,e){if(!i.isSupported())throw new Error("IntersectionObserver is not supported");if(e&&e.delay&&e.delay<100)throw new Error("Visibility delay should be > 100ms");return e!=null&&e.trackVisibility&&(t=i.U_(t)),new G0(t,e)}static isSupported(){return!!v.IntersectionObserver&&!!v.IntersectionObserverEntry}static U_(t){return(e,r)=>t(Su(e,aR),r)}}return i})();function aR(i){return i.isVisible||!mi.isVisibleInViewportInForeground(i.target)?i:{boundingClientRect:i.boundingClientRect,intersectionRatio:i.intersectionRatio,intersectionRect:i.intersectionRect,isIntersecting:i.isIntersecting,rootBounds:i.rootBounds,target:i.target,time:i.time,isVisible:!0}}var oR=(()=>{class i{constructor(t){this.R=t,this.Rs=new Set}onMutations(t){if(qp(t,e=>{var r;return!!((r=e.removedNodes)!=null&&r.length)}))for(let e of this.Rs.values())mi.isConnected(e)||(this.Rs.delete(e),this.R(e))}observe(t){this.G||(this.G=new ys(e=>Ft(()=>this.onMutations(e))),this.G.observe()),this.Rs.add(t)}disconnect(){var t;(t=this.G)==null||t.disconnect(),this.Rs.clear(),this.G=void 0}}return b([J("NodeDisconnectedObserver.onMutations")],i.prototype,"onMutations",null),i})(),lR=300,Ol=(()=>{class i{constructor(t){this.ca=new Set,this.V_=new oR(e=>this.Of(e)),this.ws=!1,this.Ts=0,this.Qt=t?Z(Z({},af),t):af}stop(){var t,e;this.ws=!1,this.Ts++,(t=this.In)==null||t.disconnect(),(e=this.D)==null||e.disconnect()}start(t){if(this.ws)throw new Error("VisibilityObserver is already started");this.R=vr("VisibilityObserver:callback",(n,a)=>t(n,a));let e={root:null,rootMargin:"0px",threshold:.5,trackVisibility:!0,delay:lR},r=this.Ts;this.In=nf.create(n=>this.handleIntersection(n,r),e),this.D=new Z0(n=>Ft(()=>{ne(n,a=>this.Of(a.target))})),this.Ci(),this.ws=!0}observe(t){if(!this.ws)throw new Error("Observer is stopped.");this.Qt.reobserve===!1&&t[this.dl]||(t[this.dl]=!0,this.watchIntersection(t))}Ci(){this.ua=Symbol("isVisible"),this.dl=Symbol("ObservedElement"),this.gl=Symbol("LinkedElement"),this.kf=Symbol("Tracked")}Of(t){this.ca.add(t);for(let e of this.H_(t))this.ca.add(e);this.recheckCssVisibilityAll()}recheckCssVisibilityAll(){ne(this.ca.keys(),t=>{!t.isConnected||mi.areAncestorsHiddenByCSS(t)||t[this.dl]&&this.watchIntersection(t)}),this.ca.clear()}watchIntersection(t){this.D.unobserve(t),this.In.unobserve(t);let e=mi.getTopAncestorHiddenByCSS(t);e?(e!==t&&(this.Df(e,t),this.watchMutation(e)),this.watchMutation(t)):this.In.observe(t)}watchMutation(t,e=!0){e&&delete t[this.ua],this.In.unobserve(t);let r={attributeFilter:["style","class","hidden"]};this.D.observe(t,r)}handleIntersection(t,e){if(this.Ts===e){for(let r of t){let n=r.target;if(!r.isVisible){mi.isVisibleInDocument(n)||this.j_(n);continue}let a=this.Qt.allowSameMatch||!r.target[this.ua];r.target[this.ua]=!0,a&&!this.Qt.delay&&this.onVisibilityChanged(r.target,ao.VisibleInViewPort)}this.Qt.delay&&Ft(()=>{if(this.Ts===e)for(let r of t){let n=r.isIntersecting&&r.isVisible;r.target[this.ua]&&n&&this.onVisibilityChanged(r.target,ao.VisibleInViewPort)}},this.Qt.delay)}}j_(t){let e=mi.getTopElement(t);this.watchMutation(t),e&&(this.V_.observe(e),this.Df(e,t),this.watchMutation(e,!1))}Df(t,e){var r;(t[this.gl]=(r=t[this.gl])!=null?r:new Set).add(e)}H_(t){var e,r;let n=[],a=(r=(e=t[this.gl])==null?void 0:e.values())!=null?r:[];return ne(a,o=>l(n,I(o))),n}onVisibilityChanged(t,e){if(e===ao.VisibleInViewPort&&this.Qt.trackOnce){if(this.In.unobserve(t),this.D.unobserve(t),t[this.kf])return;t[this.kf]=!0}this.R(t,e)}static isSupported(){return nf.isSupported()}}return b([J()],i.prototype,"observe",null),b([la({wait:50}),J(),Di("recheckCssVisibilityAll")],i.prototype,"recheckCssVisibilityAll",null),b([J()],i.prototype,"watchIntersection",null),b([J()],i.prototype,"watchMutation",null),b([J(),Di("VisibilityObserver.handleIntersection")],i.prototype,"handleIntersection",null),b([J()],i.prototype,"onVisibilityChanged",null),i})(),ao=(()=>{let i;return(function(s){s.VisibleInViewPort="VisibleInViewPort",s.HiddenByAnother="HiddenByAnother",s.Hidden="Hidden"})(i||(i={})),i})(),af={delay:1e3,trackOnce:!0,reobserve:!1},qu=(()=>{class i{constructor(){this.fe=0}get length(){return this.fe}get isEmpty(){return!this.ht}peek(){var t;return(t=this.ht)==null?void 0:t[0]}pushAll(t){for(let e=0;e<t.length;e++)this.push(t[e])}push(t){this.fe++,this.Wt?this.Wt=this.Wt[1]=[t,void 0]:this.Wt=this.ht=[t,void 0]}pop(){if(!this.ht)return null;this.fe--;let t=this.ht[0];return this.ht=this.ht[1],this.ht||(this.Wt=void 0),t}forEach(t){let e=this.ht;for(;e!=null&&e.length;)t(e[0]),e=e[1]}clear(){this.fe=0,this.ht=this.Wt=void 0}}return i})();function hR(i){if(D!=null&&D.prerendering){l(D,ni("prerenderingchange",i,{once:!0}));return}i()}var oo="detached";function of(i){let s=i,t=[s];for(;l(s,es)!==null;)s=l(s,es),l(t,I(s));return Ml(s)&&l(t,I(oo)),{ancestors:t,selectionRoot:s}}function uR(i){let s=i,t=[s],e=null;for(;l(s,es)!==null;)e===null&&Kp(s)&&(e=s),l(t,I(l(s,es))),s=l(s,es);return Ml(s)&&l(t,I(oo)),{firstAnchorParent:e,ancestors:t,selectionRoot:s}}function Ml(i){return zr.isValidElement(i)}var cR="@",dR=[/\d{4}/,/^ember\d+$/];function Yu(i){return Ae.escapeInvalidCharacters(l(i,Ot).toLowerCase())}function pR(i){let s=l(i,fs("id"));return s&&Ae.escapeInvalidCharacters(s)}var lf=9;function gR(i,s){return s?l(s,ye(t=>Li.call(i,t))):!1}function fR(i,s,t){if(i===oo||l(i,Ve)===lf)return 0;let e=t.dynamicElementNameRegex,r=!!(e!=null&&e.test(l(s,Ot))),n=Yu(s),a=0,o=l(s,dl);for(;o;)(Yu(o)===n||r&&e!=null&&e.test(l(o,Ot)))&&!gR(o,t.reliableSelectors)&&(a+=1),o=l(o,dl);return a}function mR(i,s,t){if(i===oo||l(i,Ve)===lf)return 0;let e=0,r=l(s,dl);for(;r;)Li.call(r,t)&&(e+=1),r=l(r,dl);return e}var Zu="data-cs-override-id",vR="data-cs-dynamic-id";
9function hf(i,s,t,e){let r=e.dynamicIdRegex||null,n=e.dynamicElementNameRegex,a=Yu(i);if(n&&n.test(l(i,Ot))&&(a=l(a,jt(n,`$1${cR}`))),SR(i,t)){let E=Ku(i);return{hasUniqueIdentifier:!0,elementSelector:`${a}[${Zu}="${E}"]`}}let o=AR(i,t,e);if(o.success)return{hasUniqueIdentifier:!0,elementSelector:`${a}#UA[${o.attributeName}="${o.attributeValue}"]`};let u=ER(i,t,e);if(u)return{hasUniqueIdentifier:!0,elementSelector:`${a}#UCS[${u}]`};let c=pR(i);if(RR(i,c,t,r))return{hasUniqueIdentifier:!0,elementSelector:`${a}#${c}`};let p=yR(i,e);if(p){let E=mR(s,i,p);return{hasUniqueIdentifier:!1,elementSelector:`${a}[${p}](${E})`}}let f=fR(s,i,e);return{hasUniqueIdentifier:!1,elementSelector:`${a}:eq(${f})`}}function ER(i,s,t){if(t.uniqueCssSelectors){for(let e of t.uniqueCssSelectors)if(Li.call(i,e)&&bR(e,s))return e}}function yR(i,s){if(s.reliableSelectors){for(let t of s.reliableSelectors)if(Li.call(i,t))return t}}function SR(i,s){let t=Ku(i);return t&&l(t,mn(/^[\w-]+$/))&&Xu(Zu,t,s)}function _R(i){return Ku(i)!==null}function Ku(i){return l(i,fs(Zu))}function RR(i,s,t,e){return s&&!_R(i)&&!TR(i,s,e)&&CR(s,t)}function TR(i,s,t){if(i.hasAttribute(vR)||uf(s,t))return!0;let e=l(i,fs("id"));return s!==e?uf(e,t):!1}function uf(i,s){let t=!1;return i&&s&&(t=s.test(i)),i&&(l(dR,ye(e=>e.test(i)))||t)}function CR(i,s){return i&&Xu("id",i,s)}function Xu(i,s,t){try{return l(t,Hr(`[${i}="${s}"]`)).length===1}catch(e){if(e.name!=="SyntaxError")throw e}return!1}function bR(i,s){try{return l(s,Hr(i)).length===1}catch(t){if(t.name!=="SyntaxError")throw t}return!1}function AR(i,s,t){if(!t.uniqueAttributes)return{success:!1};for(let e of t.uniqueAttributes){let r=l(i,fs(e));if(r!==null&&Xu(e,r,s))return{attributeName:e,attributeValue:r,success:!0}}return{success:!1}}var Qu=11;function Dl(i,s,t){let e=l(i,fn());if(i.length===0)return cf(e,t);let r=e,n=i[0],{elementSelector:a,hasUniqueIdentifier:o}=hf(r,n,s,t);if(!t.fullPath&&o){let c=i[i.length-1];return`${cf(c,t)}${a}`}let u=Dl(i,s,t);return`${u?`${u}>`:""}${a}`}function cf(i,s){if(i===oo)return"|detached|";if(Bs(i)){let{ancestors:t,selectionRoot:e}=of(i.host);return`${Dl(t,e,s)}|shadow-root|`}return l(i,Ve)===Qu?"|fragment|":""}var df=(()=>{class i{constructor(t){this.options=t,this.done=!1,this.path=null}getPath(){if(this.path===null)throw new Error("getPath was called before serializeElement");return this.path}isDone(){return this.done}}return i})(),IR=(()=>{class i extends df{constructor(){super(...arguments),this.ha=!1,this.da=!1,this.pl=!1}B_(t,e){return this.ha&&!(e===null&&Ml(t))&&l(t,Ve)!==Qu&&!Bs(t)}F_(t){return!l(t,Ot)}serializeElement(t,e,r){var n;if((n=this.path)!=null||(this.path=""),this.B_(t,e))return;let a=!1;e===null&&Ml(t)&&(a=!0,this.done=!0);let o=this.da&&!this.options.fullPath?"":">",u=Bs(t);if(u&&this.path&&(this.path="|shadow-root|"+o+this.path,this.pl=!0,this.ha=!1,this.da=!1),!u&&e===null&&l(t,Ve)===Qu){this.path="|fragment|"+o+this.path,this.done=!0;return}if(this.F_(t))return;let c=e!=null?e:"detached",{elementSelector:p,hasUniqueIdentifier:f}=hf(t,c,r,this.options);f&&(this.da=!0,this.ha=!this.options.fullPath);let E=`${a?`|detached|${o}`:""}${this.ha&&!f?"":p}`,g=!f&&this.da&&!this.options.fullPath?"":this.path&&!this.pl?">":"";this.pl=!1,this.path=`${E}${g}${this.path}`}}return i})(),wR=(()=>{class i extends df{serializeElement(t){var e;if((e=this.path)!=null||(this.path=""),(t==="detached"||l(t,Ot)==="body")&&(this.done=!0,this.path.length>0))return;let r=this.G_(t);if(r+=r.length>0?"|":"",this.path.length+r.length>this.options.hierarchyMaxLength){this.done=!0;return}this.path=r+this.path}G_(t){if(!l(t,Ot))return"";let e=`@${l(t,Ot)};`;return e+=this.z_(t.id),l(t,$p)&&(e+=this.W_(Array.from(l(t,$p)))),l(t,gn)&&(e+=this.q_(t)),e}z_(t){return t?`#${t};`:""}W_(t){return t.length>0?`.${t.sort().join(";.")};`:""}Y_(t,e){var r,n;return e==="id"||e==="class"||((n=(r=this.options).isAttributeSensitive)==null?void 0:n.call(r,t,e))||l(this.options.attributeIgnoreTokens,Dt(e))!==-1||aa(t)&&l(e,Bt("data-"))===-1&&e!=="aria-label"||Tu(t)&&e==="value"}X_(t,e){return this.options.useAnonymization&&!this.options.allWhitelistedAttributes.has(t)||e.length>this.options.attrMaxLength}K_(t){let e={};for(let r of Array.from(l(t,gn)))this.Y_(t,r.name)||(e[r.name]=r.value);return e}q_(t){var e,r;if((r=(e=this.options).isNodeSensitive)!=null&&r.call(e,t))return"";let n=l(Object,vu(this.K_(t)));return l(n,xt(([a])=>a.length<this.options.attrMaxLength),$t(([a,o])=>this.X_(a,o)?`[${a}]`:`[${a}=${o}]`)).sort().join(";")+(n.length>0?";":"")}}return i})(),NR=(()=>{class i{constructor(t){this.Z_=t}run(t){let e=[...this.Z_],r=mi.getAncestors(t,!1),n=r[r.length-1];for(;e.length>0&&r.length>0;){let a=l(r,fn()),o=r[0]||null;if(this.Q_(e,a,o,n),this.J_(e),e.length===0)break;r.length===0&&Bs(a)&&(r=mi.getAncestors(a.host,!1),n=r[r.length-1])}}Q_(t,e,r,n){for(let a of t)a.serializeElement(e,r,n)}J_(t){for(let e=0;e<t.length;e++)t[e].isDone()&&(l(t,Za(e,1)),e--)}}return i})(),pf=(function(){function i(r,n){function a(){this.constructor=r}a.prototype=n.prototype,r.prototype=new a}function s(r,n,a,o){var u=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf(u,s.prototype),u.expected=n,u.found=a,u.location=o,u.name="SyntaxError",u}i(s,Error);function t(r,n,a){return a=a||" ",r.length>n?r:(n-=r.length,a+=a.repeat(n),r+a.slice(0,n))}s.prototype.format=function(r){var n="Error: "+this.message;if(this.location){var a=null,o;for(o=0;o<r.length;o++)if(r[o].source===this.location.source){a=r[o].text.split(/\r\n|\n|\r/g);break}var u=this.location.start,c=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(u):u,p=this.location.source+":"+c.line+":"+c.column;if(a){var f=this.location.end,E=t("",c.line.toString().length," "),g=a[u.line-1],R=u.line===f.line?f.column:g.length+1,k=R-u.column||1;n+=` 10 --> `+p+` 11`+E+` | 12`+c.line+" | "+g+` 13`+E+" | "+t("",u.column-1," ")+t("",k,"^")}else n+=` 14 at `+p}return n},s.buildMessage=function(r,n){var a={literal:function(g){return'"'+u(g.text)+'"'},class:function(g){var R=g.parts.map(function(k){return Array.isArray(k)?c(k[0])+"-"+c(k[1]):c(k)});
14return"["+(g.inverted?"^":"")+R.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(g){return g.description}};function o(g){return g.charCodeAt(0).toString(16).toUpperCase()}function u(g){return g.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(R){return"\\x0"+o(R)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(R){return"\\x"+o(R)})}function c(g){return g.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(R){return"\\x0"+o(R)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(R){return"\\x"+o(R)})}function p(g){return a[g.type](g)}function f(g){var R=g.map(p),k,X;if(R.sort(),R.length>0){for(k=1,X=1;k<R.length;k++)R[k-1]!==R[k]&&(R[X]=R[k],X++);R.length=X}switch(R.length){case 1:return R[0];case 2:return R[0]+" or "+R[1];default:return R.slice(0,-1).join(", ")+", or "+R[R.length-1]}}function E(g){return g?'"'+u(g)+'"':"end of input"}return"Expected "+f(r)+" but "+E(n)+" found."};function e(r,n){n=n!==void 0?n:{};var a={},o=n.grammarSource,u={start:re},c=re,p="|detached|",f=">",E=":eq(",g=")",R="[",k="](",X="#",U="|shadow-root|",z="|iframe|",dt="@",vt="\\",ht="#UCS[",ke="]",Pt="#UA",Ue="=",Se='="',ii='"]',Si=/^[\]]/,V=/^[\]"]/,ut=/^[#;&,.+*~':"!\^$[\]()<=>|\/%?@`{}\\ ]/,gt=/^[0-9]/,Rt=G("|detached|",!1),Ie=G(">",!1),hs=G(":eq(",!1),us=G(")",!1),Pi=G("[",!1),rr=G("](",!1),Xi=G("#",!1),zt=G("|shadow-root|",!1),li=G("|iframe|",!1),nr=G("@",!1),Bn=P("word"),rn=ce(["]"],!1,!1),ks=se(),ar=G("\\",!1),Nr=ce(["]",'"'],!1,!1),$i=ce(["#",";","&",",",".","+","*","~","'",":",'"',"!","^","$","[","]","(",")","<","=",">","|","/","%","?","@","`","{","}","\\"," "],!1,!1),Pr=P("integer"),Os=ce([["0","9"]],!1,!1),or=G("#UCS[",!1),lr=G("]",!1),kr=G("#UA",!1),Or=G("=",!1),Ms=G('="',!1),hr=G('"]',!1),zn=function(){return{type:"detached"}},nn=function(y,A){let[F,Wt]=A||[[],[]],ae=F.length==2?[F[0]]:[];return[y,...ae,...Wt]},Mr=function(y){return Z({type:"directChildSelector"},y)},Gn=function(y){return Z({type:"uniqueIdentifierSelector"},y)},an=function(y,A){return{localName:y,position:A}},Wn=function(y,A,F){return{localName:y,customSelector:A,position:F}},jn=function(y){return Vt(Z({},y),{kind:"uniqueAttribute"})},qn=function(y){return Vt(Z({},y),{kind:"uniqueCssSelector"})},L=function(y,A){return{localName:y,attrName:"id",attrValue:A,kind:"uniqueId"}},ur=function(){return{type:"propertySelector",property:"shadowRoot"}},_i=function(){return{type:"propertySelector",property:"contentDocument"}},Dr=function(y,A){return y.join("")+(A||"")},Yt=function(){return"@"},cr=function(y){return y.join("")},pi=function(){return""},Qi=function(y){return y.join("")},ki=function(y){return y},Vi=function(y){return y},Yn=function(y){return y.join("")},xr=function(y){return y},Ds=function(y){return y},Xt=function(y){return y},N=function(y){return parseInt(y.join(""),10)},W=function(y,A){return{uniqueCssSelector:A}},d=function(){return"#UA"},rt=function(){return""},ft=function(y,A,F){return{localName:y,attrName:A,attrValue:F}},$=function(y,A,F){return{localName:y,attrName:A,attrValue:F}},Lt=function(y,A,F){return{localName:y,attrName:A,attrValue:F}},S=0,Jt=[{line:1,column:1}],O=0,x=[],nt=0,pt;if("startRule"in n){if(!(n.startRule in u))throw new Error(`Can't start parsing from rule "`+n.startRule+'".');c=u[n.startRule]}function G(y,A){return{type:"literal",text:y,ignoreCase:A}}function ce(y,A,F){return{type:"class",parts:y,inverted:A,ignoreCase:F}}function se(){return{type:"any"}}function T(){return{type:"end"}}function P(y){return{type:"other",description:y}}function H(y){var A=Jt[y],F;if(A)return A;for(F=y-1;!Jt[F];)F--;for(A=Jt[F],A={line:A.line,column:A.column};F<y;)r.charCodeAt(F)===10?(A.line++,A.column=1):A.column++,F++;return Jt[y]=A,A}function M(y,A,F){var Wt=H(y),ae=H(A),$e={source:o,start:{offset:y,line:Wt.line,column:Wt.column},end:{offset:A,line:ae.line,column:ae.column}};return $e}function B(y){S<O||(S>O&&(O=S,x=[]),l(x,I(y)))}function Tt(y,A,F){return new s(s.buildMessage(y,A),y,A,F)}function re(){var y,A,F;return y=te(),y===a&&(y=S,A=Ut(),A!==a?(F=te(),F!==a?(A=[A,F],y=A):(S=y,y=a)):(S=y,y=a)),y}function Ut(){var y,A;return y=S,r.substr(S,10)===p?(A=p,S+=10):(A=a,nt===0&&B(Rt)),A!==a?(r.charCodeAt(S)===62?S++:nt===0&&B(Ie),y=zn()):(S=y,y=a),y}function te(){var y,A,F,Wt,ae,$e;return y=S,A=Et(),A!==a?(F=S,Wt=S,ae=Oi(),ae!==a?(r.charCodeAt(S)===62?($e=f,S++):($e=a,nt===0&&B(Ie)),$e===a&&($e=null),ae=[ae,$e],Wt=ae):(S=Wt,Wt=a),Wt===a&&(r.charCodeAt(S)===62?(Wt=f,S++):(Wt=a,nt===0&&B(Ie))),Wt!==a?(ae=te(),ae!==a?(Wt=[Wt,ae],F=Wt):(S=F,F=a)):(S=F,F=a),F===a&&(F=null),y=nn(A,F)):(S=y,y=a),y}function Et(){var y,A;return y=S,A=_t(),A!==a&&(A=Mr(A)),y=A,y===a&&(y=S,A=Mt(),A!==a&&(A=Gn(A)),y=A),y}function _t(){var y,A,F,Wt,ae,$e,Fi;return y=S,A=cs(),A!==a?(r.substr(S,4)===E?(F=E,S+=4):(F=a,nt===0&&B(hs)),F!==a?(Wt=ou(),Wt!==a?(r.charCodeAt(S)===41?(ae=g,S++):(ae=a,nt===0&&B(us)),ae!==a?y=an(A,Wt):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a),y===a&&(y=S,A=cs(),A!==a?(r.charCodeAt(S)===91?(F=R,S++):(F=a,nt===0&&B(Pi)),F!==a?(Wt=Ba(),Wt!==a?(r.substr(S,2)===k?(ae=k,S+=2):(ae=a,nt===0&&B(rr)),ae!==a?($e=ou(),$e!==a?(r.charCodeAt(S)===41?(Fi=g,S++):(Fi=a,nt===0&&B(us)),Fi!==a?y=Wn(A,Wt,$e):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)),y}function Mt(){var y,A,F,Wt;return y=S,A=lu(),A!==a&&(A=jn(A)),y=A,y===a&&(y=S,A=lp(),A!==a&&(A=qn(A)),y=A,y===a&&(y=S,A=cs(),A!==a?(r.charCodeAt(S)===35?(F=X,S++):(F=a,nt===0&&B(Xi)),F!==a?(Wt=gi(),Wt!==a?y=L(A,Wt):(S=y,y=a)):(S=y,y=a)):(S=y,y=a))),y}function Oi(){var y,A;return y=S,r.substr(S,13)===U?(A=U,S+=13):(A=a,nt===0&&B(zt)),A!==a&&(A=ur()),y=A,y===a&&(y=S,r.substr(S,8)===z?(A=z,S+=8):(A=a,nt===0&&B(li)),A!==a&&(A=_i()),y=A),y}function cs(){var y,A,F;if(y=S,A=[],F=Mi(),F!==a)for(;F!==a;)l(A,I(F)),F=Mi();else A=a;return A!==a?(F=Lr(),F===a&&(F=null),y=Dr(A,F)):(S=y,y=a),y}function Lr(){var y,A;return y=S,r.charCodeAt(S)===64?(A=dt,S++):(A=a,nt===0&&B(nr)),A!==a&&(A=Yt()),y=A,y}function gi(){var y,A,F;if(nt++,y=S,A=[],F=Mi(),F!==a)for(;F!==a;)l(A,I(F)),F=Mi();else A=a;return A!==a&&(A=cr(A)),y=A,nt--,y===a&&(A=a,nt===0&&B(Bn)),y}function op(){var y,A;return y=S,A="",A=pi(),y=A,y}function Ba(){var y,A,F;if(y=S,A=[],F=Ur(),F!==a)for(;F!==a;)l(A,I(F)),F=Ur();else A=a;return A!==a&&(A=Qi(A)),y=A,y}function Ur(){var y,A,F;return y=S,A=S,nt++,Si.test(r.charAt(S))?(F=r.charAt(S),S++):(F=a,nt===0&&B(rn)),nt--,F===a?A=void 0:(S=A,A=a),A!==a?(r.length>S?(F=r.charAt(S),S++):(F=a,nt===0&&B(ks)),F!==a?y=ki(F):(S=y,y=a)):(S=y,y=a),y===a&&(y=S,r.charCodeAt(S)===92?(A=vt,S++):(A=a,nt===0&&B(ar)),A!==a?(Si.test(r.charAt(S))?(F=r.charAt(S),S++):(F=a,nt===0&&B(rn)),F!==a?y=Vi(F):(S=y,y=a)):(S=y,y=a)),y}function nu(){var y,A,F;if(y=S,A=[],F=au(),F!==a)for(;F!==a;)l(A,I(F)),F=au();else A=a;return A!==a&&(A=Yn(A)),y=A,y}function au(){var y,A,F;
14return y=S,A=S,nt++,V.test(r.charAt(S))?(F=r.charAt(S),S++):(F=a,nt===0&&B(Nr)),nt--,F===a?A=void 0:(S=A,A=a),A!==a?(r.length>S?(F=r.charAt(S),S++):(F=a,nt===0&&B(ks)),F!==a?y=xr(F):(S=y,y=a)):(S=y,y=a),y}function Mi(){var y,A,F;return y=S,A=S,nt++,F=on(),nt--,F===a?A=void 0:(S=A,A=a),A!==a?(r.length>S?(F=r.charAt(S),S++):(F=a,nt===0&&B(ks)),F!==a?y=Ds(F):(S=y,y=a)):(S=y,y=a),y===a&&(y=S,r.charCodeAt(S)===92?(A=vt,S++):(A=a,nt===0&&B(ar)),A!==a?(F=on(),F!==a?y=Xt(F):(S=y,y=a)):(S=y,y=a)),y}function on(){var y;return ut.test(r.charAt(S))?(y=r.charAt(S),S++):(y=a,nt===0&&B($i)),y}function ou(){var y,A,F;if(nt++,y=S,A=[],gt.test(r.charAt(S))?(F=r.charAt(S),S++):(F=a,nt===0&&B(Os)),F!==a)for(;F!==a;)l(A,I(F)),gt.test(r.charAt(S))?(F=r.charAt(S),S++):(F=a,nt===0&&B(Os));else A=a;return A!==a&&(A=N(A)),y=A,nt--,y===a&&(A=a,nt===0&&B(Pr)),y}function lp(){var y,A,F,Wt,ae;return y=S,A=cs(),A!==a?(r.substr(S,5)===ht?(F=ht,S+=5):(F=a,nt===0&&B(or)),F!==a?(Wt=Ba(),Wt!==a?(r.charCodeAt(S)===93?(ae=ke,S++):(ae=a,nt===0&&B(lr)),ae!==a?y=W(A,Wt):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a),y}function za(){var y,A;return y=S,r.substr(S,3)===Pt?(A=Pt,S+=3):(A=a,nt===0&&B(kr)),A!==a&&(A=d()),y=A,y===a&&(y=S,A="",A=rt(),y=A),y}function lu(){var y,A,F,Wt,ae,$e,Fi,xs;return y=S,A=cs(),A!==a?(F=za(),F!==a?(r.charCodeAt(S)===91?(Wt=R,S++):(Wt=a,nt===0&&B(Pi)),Wt!==a?(ae=gi(),ae!==a?(r.charCodeAt(S)===61?($e=Ue,S++):($e=a,nt===0&&B(Or)),$e!==a?(Fi=nu(),Fi!==a?(r.charCodeAt(S)===93?(xs=ke,S++):(xs=a,nt===0&&B(lr)),xs!==a?y=ft(A,ae,Fi):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a),y===a&&(y=S,A=cs(),A!==a?(F=za(),F!==a?(r.charCodeAt(S)===91?(Wt=R,S++):(Wt=a,nt===0&&B(Pi)),Wt!==a?(ae=gi(),ae!==a?(r.substr(S,2)===Se?($e=Se,S+=2):($e=a,nt===0&&B(Ms)),$e!==a?(Fi=nu(),Fi!==a?(r.substr(S,2)===ii?(xs=ii,S+=2):(xs=a,nt===0&&B(hr)),xs!==a?y=$(A,ae,Fi):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a),y===a&&(y=S,A=cs(),A!==a?(F=za(),F!==a?(r.charCodeAt(S)===91?(Wt=R,S++):(Wt=a,nt===0&&B(Pi)),Wt!==a?(ae=gi(),ae!==a?(r.substr(S,2)===Se?($e=Se,S+=2):($e=a,nt===0&&B(Ms)),$e!==a?(Fi=op(),r.substr(S,2)===ii?(xs=ii,S+=2):(xs=a,nt===0&&B(hr)),xs!==a?y=Lt(A,ae,Fi):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a)):(S=y,y=a))),y}if(pt=c(),pt!==a&&S===r.length)return pt;throw pt!==a&&S<r.length&&B(T()),Tt(x,O<r.length?r.charAt(O):null,O<r.length?M(O,O+1):M(O,O))}return{SyntaxError:s,parse:e}})();pf.SyntaxError.prototype.name="PeggySyntaxError";var x1=pf.parse,zr=(()=>{let i;return(function(s){s.INVALID_ELEMENT="INVALID_ELEMENT";function t(o){return!!o&&"localName"in o&&"getAttribute"in o&&"hasAttribute"in o&&"parentNode"in o}s.isValidElement=t;function e(o,u,c={fullPath:!1,dynamicIdRegex:null}){let p=a(o);if(p===D)return{path:"",hierarchy:""};if(!t(p))return{path:s.INVALID_ELEMENT,hierarchy:s.INVALID_ELEMENT};let f=new IR(c),E=new wR(u);return new NR([f,E]).run(p),{path:f.getPath(),hierarchy:E.getPath()}}s.getElementPathAndHierarchy=e;function r(o,u={fullPath:!1,dynamicIdRegex:null}){let c=a(o);if(c===D)return"";if(!t(c))return s.INVALID_ELEMENT;let{ancestors:p,selectionRoot:f}=of(c);return Dl(p,f,u)}s.getElementPath=r;function n(o,u={fullPath:!1,dynamicIdRegex:null}){let c=a(o);if(c===D)return{path:"",firstAnchorParent:null};if(!t(c))return{path:s.INVALID_ELEMENT,firstAnchorParent:null};let{firstAnchorParent:p,ancestors:f,selectionRoot:E}=uR(c);return{path:Dl(f,E,u),firstAnchorParent:p}}s.getElementPathAndFirstAnchorParent=n;function a(o){return o&&"jquery"in o&&o.length===1?o[0]:o}})(i||(i={})),i})();v.CSPathComputation=v.CSPathComputation||zr;function PR(i){return!!(i!=null&&i.enabled&&i!=null&&i.siteId)}var lo,Ju=()=>{if(!lo){try{let i=oe.performance;if(i!=null&&typeof i.now=="function")return lo=i.now.bind(i),lo()}catch(i){}lo=()=>Date.now()}return lo()};function gf(i){return Symbol(i)}var kR=20,Gr=i=>{var s;return ff(i)?(s=i.name)!=null?s:"anonymous":String(i)},ff=i=>typeof i=="function"&&i.prototype&&i.prototype.constructor===i,OR=i=>typeof i=="object"&&i!==null&&"__optional"in i,MR=i=>{let s=i.prototype;return s!=null&&s.__module===!0},DR=i=>{var s,t;let e=i.prototype,r=(s=e.imports)!=null?s:[];return{providers:(t=e.providers)!=null?t:[],imports:l(r,xt(n=>!!n)),exports:e.exports}},xR=i=>{var s;let t=(s=i.prototype.imports)!=null?s:[];return l(t,xt(e=>!!e))},LR=i=>{let s=i;return s===String||s===Number||s===Boolean||s===Object||s===Array||s===Symbol||typeof BigInt!="undefined"&&s===BigInt},tc=(()=>{class i{constructor(){this.pe=new Map,this.ml=new Set,this.cs=new Map,this.El=new Map,this.Ai=new Map,this.Lf=new Map,this.vl=0,this.pe.set(i,{type:"factory",provider:()=>this,token:i,instance:this})}register(t,e,r){if(ff(t)){let n=e!=null?e:t,a={type:"class",provider:t,token:n};if(this.pe.has(n))throw new Error(`Token "${Gr(n)}" is already registered`);this.pe.set(n,a),n!==t&&this.pe.set(t,a)}else{if(e===void 0)throw new Error("A token is required when registering a factory function");this.pe.set(e,{type:"factory",provider:t,token:e,deps:r})}}override(t,e){this.pe.set(t,{type:"factory",provider:()=>e,token:t,instance:e})}registerModule(t){if(this.ml.has(t))return;this.ml.add(t);let{providers:e,imports:r,exports:n}=DR(t);for(let o of r)this.registerModule(o);this.Lf.set(t,r),n!==void 0&&this.El.set(t,new Set(n));let a=new Map;this.Ai.set(t,a),a.set(t,{type:"class",provider:t,token:t}),this.cs.set(t,t);for(let o of e)o&&this.ty(t,a,o);this.ey(t,a,r)}ey(t,e,r){for(let n of r){let a=this.Ai.get(n);if(a){for(let o of a.keys())if(o!==n&&this.xf(n,o)&&!this.pe.has(o)&&e.has(o))throw new Error(`Duplicate provider: "${Gr(o)}" is provided by "${t.name}" and also exported by imported module "${n.name}". Remove it from one of them.`)}}}ty(t,e,r){if(typeof r=="function"){let n=r;if(typeof n.useFactory=="function")r={provide:r.provide||r,useFactory:n.useFactory.bind(n),inject:n.inject};else{e.set(r,{type:"class",provider:r,token:r}),this.cs.set(r,t);return}}if("useClass"in r){let n=r.provide,a={type:"class",provider:r.useClass,token:n};e.set(n,a),n!==r.useClass&&(e.set(r.useClass,a),this.cs.set(r.useClass,t)),this.cs.set(n,t)}else if("useValue"in r){let n=r.provide;e.set(n,{type:"factory",provider:()=>r.useValue,token:n}),this.cs.set(n,t)}else if("useFactory"in r){let n=r.provide;e.set(n,{type:"factory",provider:r.useFactory,token:n,deps:r.inject}),this.cs.set(n,t)}}Sl(t,e){let r=this.pe.get(t);if(r)return{registration:r,owningModule:e};let n=this.Ai.get(e);if(n!=null&&n.has(t))return{registration:n.get(t),owningModule:e};let a=this._l(e);for(let o of a)if(this.xf(o,t)){let u=this.Ai.get(o);if(u!=null&&u.has(t))return{registration:u.get(t),owningModule:o};let c=this.Sl(t,o);if(c)return c}}xf(t,e){return this.El.has(t)?this.El.get(t).has(e):!0}_l(t){var e;return(e=this.Lf.get(t))!=null?e:[]}resolve(t){return yt(this,null,function*(){this.vl=Ju();let e=this.pe.has(t)?void 0:this.cs.get(t);return this.yl(t,new Set,e)})}yl(t,e,r){return yt(this,null,function*(){if(t==null)return;if(e.has(t))throw new Error(`Circular dependency detected for token: ${Gr(t)}`);let n=this.fa();n&&(yield n);let a,o=r;if(r){let c=this.Sl(t,r);c&&(a=c.registration,o=c.owningModule)}else a=this.pe.get(t);if(a||this.sy(t,e,r),a.instance!==void 0)return a.instance;if(a.resolving)return a.resolving;e.add(t);let u=yt(this,null,function*(){var c,p;try{let f;if(a.type==="factory"){let E=a.provider,g=(c=a.deps)!=null?c:[],R=yield this.wl(g,e,o);f=yield E(...R)}else{let E=a.provider,g=(p=E.$deps)!=null?p:[];yield this.iy(E,e);let R=yield this.wl(g,e,o);f=new E(...R),yield this.ry(f,E,e,o),yield this.ny(f)}return a.instance=f,f}finally{a.resolving=void 0,e.delete(t)}});return a.resolving=u,u})}wl(t,e,r){return yt(this,null,function*(){let n=[];for(let a of t){let o=this.fa();o&&(yield o);let u,c;if(OR(a)?(u=a.__optional,c=!0):(u=a,c=!1),LR(u)){let f=l(Array.from(e),$t(Gr)).join(" -> "),E=f?` 15Resolution path: ${f} -> ${Gr(u)}`:"";throw new Error(`Cannot resolve primitive type: ${Gr(u)}. Use @Inject with a token instead.${E}`)}if(c&&!(r?this.Sl(u,r)!==void 0:this.pe.has(u))){l(n,I(void 0));continue}let p=yield this.yl(u,e,r);
15l(n,I(p))}return n})}iy(t,e){return yt(this,null,function*(){if(!MR(t))return;let r=xR(t);for(let n of r){let a=this.fa();a&&(yield a),yield this.yl(n,e,n)}})}ry(t,e,r,n){return yt(this,null,function*(){let a=e.$propDeps;if(a)for(let o of Object.keys(a)){let u=yield this.wl([a[o]],r,n);t[o]=u[0]}})}ny(t){return yt(this,null,function*(){t!==null&&typeof t=="object"&&"onInit"in t&&typeof t.onInit=="function"&&(yield t.onInit())})}sy(t,e,r){let n=Gr(t),a=l(Array.from(e),$t(Gr)).join(" -> "),o=a?` 16Resolution path: ${a} -> ${n}`:"";if(r){let u=this._l(r);for(let p of u){let f=this.Ai.get(p);if(f!=null&&f.has(t))throw new Error(`Module boundary violation: "${n}" is not exported from module "${p.name}". Add it to ${p.name}'s exports array to make it accessible.${o}`)}let c=this.cs.get(t);if(c)throw new Error(`Module boundary violation: "${n}" is provided by "${c.name}" but "${r.name}" does not import "${c.name}".${o}`)}throw new Error(`No registration found for token: ${n}${o}`)}fa(){if(Ju()-this.vl>=kR)return this.vl=Ju(),fr.yield()}oy(t){var e;let r=this.pe.get(t);if(r)return r;let n=this.cs.get(t);if(n)return(e=this.Ai.get(n))==null?void 0:e.get(t)}getDeps(t){var e,r;let n=this.oy(t);return n?n.type==="class"?(e=n.provider.$deps)!=null?e:[]:(r=n.deps)!=null?r:[]:[]}has(t){return this.pe.has(t)?!0:this.cs.has(t)}bootModules(){return yt(this,null,function*(){var t,e;let r=new Set,n=[],a=o=>{if(!r.has(o)){r.add(o);for(let u of this._l(o))a(u);l(n,I(o))}};for(let o of this.ml)a(o);for(let o of n){let u=this.fa();u&&(yield u);let c=(e=(t=this.Ai.get(o))==null?void 0:t.get(o))==null?void 0:e.instance;c!=null&&typeof c=="object"&&"onBootstrap"in c&&typeof c.onBootstrap=="function"&&(yield c.onBootstrap())}})}}return i})();function UR(i){return yt(this,null,function*(){let s=new tc;s.registerModule(i);let t=yield s.resolve(i);return yield s.bootModules(),t})}function q(i){return s=>(s.prototype.__module=!0,i.providers&&(s.prototype.providers=i.providers),i.imports&&(s.prototype.imports=i.imports),i.exports&&(s.prototype.exports=i.exports),s)}function mf(i,s){return{provide:i,useValue:s}}function ho(i,s){return{provide:i,useClass:s}}function ee(i,s,t){return t?{provide:i,useFactory:s,inject:t}:{provide:i,useFactory:s}}var $R=/[a-zA-Z0-9._%+-]+(?:@|%40|%2540)[a-zA-Z0-9.%-_]+((?:\.|%2[eE])[a-zA-Z0-9-]+)+/g,VR=/[a-zA-Z0-9+_-](?:@|%40|%2540)/,FR="CS_ANONYMIZED_EMAIL",ec="([-A-Za-z0-9+/=_]|=[^=]|={3,})+",HR=new Re(`(ey${ec}\\.ey${ec}\\.${ec})`,"g"),BR="CS_ANONYMIZED_JWT",zR=/[0-9]{4}/,GR=/(^|[^a-zA-Z0-9*.,-])([45*][0-9*]{3}([ -]?)[0-9*]{4}\3[0-9*]{4}\3[0-9*]{4})($|[^a-zA-Z0-9*.,-])/g,WR="CS_ANONYMIZED_PII",jR="\u2022",qR=/\d/g,YR=/([+(]{0,2}\d[-_ ()/]{0,4}){9,}/,ZR=/(?:\d{1,3}\.){3}\d{1,3}/,KR=/(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}/,XR=new Re("(?:^|[?&#]|%3[fF]|%2[36])(?:id_token|access_token|refresh_token|auth_token)(=|%3[dD]).*?(?=%2[36]|&|$)","gi"),QR=/_token/i,JR="CS_ANONYMIZED_TOKEN",qs=(()=>{let i;return(function(s){function t(E){return l(E,jt($R,FR))}s.replaceEmail=t;function e(E){return l(E,jt(HR,BR))}s.replaceJWT=e;function r(E,g){return l(E,jt(GR,g))}s.replaceCreditCardNumber=r;function n(E){return l(E,jt(qR,jR))}s.replaceDigits=n;function a(E){return l(E,jt(XR,function(g){let R=l(g,mn(/%3d/i)),k=R?R[0]:"=";return l(g,de(k))[0]+k+JR}))}s.replaceTokens=a;function o(E){return ZR.test(E)||KR.test(E)}s.mayHaveIPAddress=o;function u(E){return YR.test(E)}s.mayHaveNumberSequence=u;function c(E){return zR.test(E)}s.mayHaveCreditCardNumber=c;function p(E){return VR.test(E)}s.mayHaveEmail=p;function f(E){return QR.test(E)}s.mayHaveToken=f})(i||(i={})),i})(),Qe=(()=>{class i{hasPII(t,e){let r=this.checkAndAnonymizePII(t,e);return t!==r}checkAndAnonymizePII(t,e=null,r=!1){let n=this.ay(this.bl(t));return r?n:e===!0?this.cy(n):this.ly(n)}anonymizePII(t){return this.bl(t)}anonymizeJwt(t){return qs.replaceJWT(t)}anonymizeTokens(t){return qs.mayHaveToken(t)?qs.replaceTokens(t):t}anonymizeFields(t,e){return l(e,et(r=>{t[r]=this.bl(t[r])})),t}bl(t){if(qs.mayHaveEmail(t)){let e=qs.replaceEmail(t);return e!==t&&ot.counters.redactedPII.count("email"),e}return t}cy(t){return qs.replaceDigits(t)}ly(t){return qs.mayHaveNumberSequence(t)?qs.replaceDigits(t):t}ay(t){return qs.mayHaveCreditCardNumber(t)?qs.replaceCreditCardNumber(t,(e,r,n,a,o)=>
16{if(l(n,Bt("*"))===-1){let u=a.length?l(n,de(a)).join(""):n;if(!this.uy(u))return e;ot.counters.redactedPII.count("cc")}else ot.counters.redactedPII.count("cc-partial");return`${r}${WR}${o}`}):t}uy(t){let e=parseInt(t[t.length-1]),r=0;for(let n=t.length-2;n>=0;n--){let a=parseInt(t[n]);n%2===0&&(a*=2),r+=Math.floor(a/10)+a%10}return 10-r%10===e}}return i})(),Ct=(()=>{let i;return(function(s){s.QUOTA_REACHED="X",s.RECORDING_RULES_TARGETING="8",s.ANALYTICS_ONLY_RULES_TARGETING="9",s.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING="P",s.ANALYTICS_ONLY="0",s.RECORDING_GLOBAL_SAMPLING="5",s.RECORDING_URL_SAMPLING="6",s.RECORDING_ETR_SAMPLING="7"})(i||(i={})),i})();function tT(i){return i===Ct.RECORDING_GLOBAL_SAMPLING||i===Ct.RECORDING_RULES_TARGETING||i===Ct.RECORDING_URL_SAMPLING||i===Ct.RECORDING_ETR_SAMPLING}var eT={[Ct.RECORDING_RULES_TARGETING]:Ct.RECORDING_GLOBAL_SAMPLING},_r=(()=>{let i;return(function(s){s.ETR_OFF="0",s.ETR_ON="1"})(i||(i={})),i})(),Wr=(()=>{let i;return(function(s){s.ETR_LEGACY="0",s.ETR_SESSION="1",s.ETR_PAGE="2"})(i||(i={})),i})(),Ui=(()=>{let i;return(function(s){s.ETR_DISABLED="0",s.ETR_PENDING="1",s.ETR_SAVED_PAGE="2",s.ETR_SAVED_SESSION="3",s.ETR_NOT_SAVED_SESSION="9"})(i||(i={})),i})(),wi=(()=>{let i;return(function(s){s.UNNECESSARY="U",s.NOT_EXPRESSED="N",s.WITHDRAWN="W",s.GRANTED="G"})(i||(i={})),i})(),iT=512,sT=255,uo=(()=>{class i{constructor(t,e){this.key=l(t,Oe(0,iT)),this.value=j(e)?l(e,Oe(0,sT)):e}static isKeyValid(t){return j(t)}static isValueValid(t){return j(t)||ms(t)}}return i})(),vf=100,rT=100,ic=(()=>{class i{constructor(t,e){this.id=t,this.revenue=e}static from(t){let e=new i(t.id,parseFloat(t.revenue));return isNaN(parseFloat(t.tax))||(e.tax=parseFloat(t.tax)),isNaN(parseFloat(t.shipping))||(e.shipping=parseFloat(t.shipping)),j(t.currency)&&t.currency.length<=10&&(e.currency=t.currency),e}hasValidRevenue(){return!isNaN(this.revenue)&&this.revenue>=0}static isValid(t){return Me(t)&&ze(t.revenue)&&j(t.currency)&&t.currency.length<=10&&(!Me(t.id)||j(t.id))}}return i})(),nT=(()=>{class i{constructor(t,e,r,n){this.id=t,this.name=e,this.price=r,this.quantity=n}static from(t){if(!i.Rl(t))return null;let e=new i(t.id,t.name,parseFloat(t.price),parseInt(t.quantity,10));return le(t.sku)&&(e.sku=t.sku),le(t.category)&&(e.category=t.category),le(t.merchant)&&t.merchant.length>0&&(e.merchant=t.merchant.slice(0,vf)),e}static Rl(t){return Me(t)&&j(t.id)&&j(t.name)&&ze(parseFloat(t.price))&&ms(parseInt(t.quantity,10))&&(!le(t.sku)||j(t.sku))&&(!le(t.category)||j(t.category))&&(!le(t.merchant)||j(t.merchant))}}return i})(),Ef=/^(\d+\.[01356789BWXP](\.[01UNWG])?(\.[39])?)(\.\d+)?$/,yf=".";function aT(i){return[i.pageNumber,i.collectState,i.replayConsent,i.etrStatus].join(yf)}function oT(i){if(!xl(i))return null;let s=Ll(i);return s!==null?Sf(s):null}function Sf(i){let[s,t,e,r]=l(i,de(yf));return t==="B"||t==="W"?{collectState:Ct.ANALYTICS_ONLY,replayConsent:t==="B"?wi.NOT_EXPRESSED:wi.WITHDRAWN,etrStatus:r!=null?r:Ui.ETR_NOT_SAVED_SESSION,pageNumber:parseInt(s,10)}:{collectState:t,replayConsent:e!=null?e:wi.UNNECESSARY,etrStatus:r!=null?r:Ui.ETR_NOT_SAVED_SESSION,pageNumber:parseInt(s,10)}}function xl(i){return Ef.test(i)}function Ll(i){var s;if(!i)return null;let t=(s=l(i,mn(Ef)))==null?void 0:s[1];return t!=null?t:null}var sc=(()=>{let i;return(function(s){let t;function e(g){t=g}s.setLogger=e;function r(g,R){for(let k of g)if(a(k,R))return!0;return!1}s.isUrlMatching=r;function n(g,R){if(j(R)){for(let k of g)if(a(k,R))return!0}else if(Xa(R)){for(let k of g)if(a(k,String(R)))return!0}return!1}s.isMatching=n;function a(g,R){let k=o(g,R);return g.negate?!k:k}function o(g,R){switch(g.rule_type==="date"&&(g.match_operation==="less_than"||g.match_operation==="greater_than")&&(R=(new Date(R).valueOf()/1e3).toFixed(0)),g.match_operation){case"exact":switch(g.rule_type){case"string":return j(g.pattern)?R.toLowerCase()===g.pattern.toLowerCase():!1;case"boolean":return R===g.pattern||R===String(g.pattern);case"number":return Me(R)?Number(R)===Number(g.pattern):!1;default:return R===g.pattern}case"starts_with":return j(g.pattern)?l(R,Bt(g.pattern))===0:!1;case"ends_with":return j(g.pattern)?ha(R,g.pattern):!1;case"contains":return j(g.pattern)?l(R,Bt(g.pattern))!==-1:!1;case"regex":if(!j(g.pattern))return!1;try{return new Re(g.pattern).test(R)}catch(k){return t==null||t.warn(`targeting.matchOperation.regex invali
16d ${k==null?void 0:k.message}`),!1}case"simple":return j(g.pattern)?E(R)===E(g.pattern):!1;case"greater_than":return Number(R)>Number(g.pattern);case"less_than":return Number(R)<Number(g.pattern);case"exact_date":{let k=Number(g.pattern);if(!ze(k))return!1;let X=new Date(k*1e3);return new Date(R).toDateString()===X.toDateString()}case"exact_days_ago":return u(g,R);case"more_than_days_ago":return c(g,R);case"less_than_days_ago":return p(g,R);case"unknown":return f(R);default:return t==null||t.warn(`targeting.matchOperation.regex not managed operation ${g.match_operation}`),!1}}function u(g,R){let k=new Date,X=k.setDate(k.getDate()-Number(g.pattern)),U=new Date(X);return new Date(R).toDateString()===U.toDateString()}function c(g,R){let k=Number(g.pattern);if(!ze(k))return!1;let X=Number(k)+1,U=new Date,z=new Date(U);return z.setDate(U.getDate()-X),new Date(R).getTime()<=z.getTime()}function p(g,R){let k=Number(g.pattern);if(!ze(k))return!1;if(k===0)return u(g,R);let X=new Date,U=new Date(X);return U.setDate(X.getDate()-k),new Date(R).getTime()>=U.getTime()}function f(g){return Me(g)?j(g)?l(g,ai())==="":Xa(g)?g===!0:ze(g)?g!==0:!1:!0}function E(g){let R=Ei(g,"http://")||Ei(g,"https://")?g:`https://${g}`,k=$u(R);return k!==null?l(k.host,jt(/^www./,"")):g}})(i||(i={})),i})(),lT={MATCHED:{[Ct.ANALYTICS_ONLY]:Ct.ANALYTICS_ONLY_RULES_TARGETING,[Ct.RECORDING_GLOBAL_SAMPLING]:Ct.RECORDING_RULES_TARGETING,[Ct.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING]:Ct.RECORDING_RULES_TARGETING},MISSED:{[Ct.ANALYTICS_ONLY]:Ct.ANALYTICS_ONLY_RULES_TARGETING,[Ct.RECORDING_GLOBAL_SAMPLING]:Ct.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING}},hT=(()=>{let i;return(function(s){s.URL="url"})(i||(i={})),i})(),rc={isLegacyURL:i=>i.component==="url",isLegacyTrigger:i=>i.component==="trigger",isURL:i=>i.type===hT.URL},uT=(()=>{class i{constructor(t){this.$f=new Sr,this.Uf=[],this.Vf=[],sc.setLogger(t)}setTargetingRules(t){this.$f.setRegexRules(l(t,xt(rc.isURL)));for(let e of t)rc.isLegacyURL(e)?l(this.Uf,I(e)):rc.isLegacyTrigger(e)&&l(this.Vf,I(e))}matchUrl(t){return sc.isUrlMatching(this.Uf,t)||this.$f.evaluateUrl(t)}matchTrigger(t){return sc.isMatching(this.Vf,t)}}return i})(),_f=":";function Rf(i){let s=[],t=cT(i),e=l(t,de("/"));for(let r of e)Ei(r,_f)?l(s,I({key:r,value:`CS_ANONYMIZED_${l(r,Oe(1)).toUpperCase()}`})):l(s,I({key:r,value:null}));return s}function cT(i){let s=i;return Ei(i,"/")&&(s=s.substring(1)),ha(i,"/")&&(s=l(s,Oe(0,-1))),s}var dT=/\b((?:profile|user|last|first|primary|primary(?:[/_+-]|%20)?last)(?:[/_+-]|%20)?(?:name)[/=])[^#;?&/]+/gi,pT="$1CS_ANONYMIZED_NAME",Tn=(()=>{class i{constructor(t){this.O=t}anonymizeUrl(t,e={}){let r=e.maskingPatterns||[],n=e.partialMaskingPatterns||[],a=this.O.anonymizePII(t);if(a=this.O.anonymizeJwt(a),a=this.O.anonymizeTokens(a),e.maskNames){let c=a;a=this.Pn(a),a!==c&&(ot.counters.redactedPII.count("name"),ot.counters.redactedPII.count("name-in-url"))}let o=this.hy(a,r);if(o!==a)return ot.counters.redactedPII.count("url"),o;let u=this.dy(a,n);return u!==a&&ot.counters.redactedPII.count("url"),u}removeQueryString(t){let{path:e,queryString:r}=this.Tl(t);return r!==""?`${e}?`:e}Tl(t){let e=l(t,Bt("?")),r,n="";return e!==-1?(r=l(t,Oe(0,e)),n=l(t,Oe(e,t.length))):r=t,{path:r,queryString:n}}hy(t,e){if(e.length===0)return t;let{path:r,queryString:n}=this.Tl(t),a=l(r,de("/"));for(let o of e){let u=this.fy(a,o);if(u!==null)return`${u}${n}`}return t}fy(t,e){if(t.length<e.length)return null;let r=[];for(let n=0;n<t.length;n++){let a=t[n];if(n>=e.length){l(r,I(a));continue}let o=e[n].key;if(this.Hf(o)){let u=e[n].value;l(r,I(u));continue}if(a===o){l(r,I(a));continue}return null}return r.join("/")}dy(t,e){if(e.length===0)return t;let{path:r,queryString:n}=this.Tl(t),a=l(r,de("/"));for(let o of e)a=this.gy(a,o);return`${a.join("/")}${n}`}gy(t,e){let r=[],n=0,a=t[0]==="http:"||t[0]==="https:"?2:0;for(let o=0;o<t.length;o++){let u=t[o],c=e[n].key;if(this.Hf(c)&&o>=a){let p=e[n].value;l(r,I(u.length>0?p:"")),n++,n===e.length&&(n=0);continue}if(u===c){l(r,I(u)),n++,n===e.length&&(n=0);continue}for(let p=0;p<n;p++){let f=o-n+p;r[f]=t[f]}n=0,l(r,I(u))}for(let o=0;o<n;o++){let u=t.length-n+o;r[u]=t[u]}return r}Hf(t){return Ei(t,_f)}
16Pn(t){return l(t,jt(dT,pT))}}return i})(),Ul=".",nc="__DOT__",gT=/^(([a-z0-9\-])+(\.[0-9]+){6})(\.[0-1])?(\.\b(x|[0-9a-fA-F]{12})\b)?$/,Tf="x";function fT(i){let[s,t,e,r,n,a,o,u,c]=ST(i);return{id:s,creationTimestamp:Number(t),visitsCount:Number(e),hitTimestamp:Number(r),lastVisitTimestamp:Number(n),appliedTrackingDraw:Number(a),expires:Number(o),allowSubdomains:u===void 0?void 0:!!Number(u),identityPrint:c===void 0||c===Tf?null:c}}function mT(i){var s;return l([i.id,i.creationTimestamp,i.visitsCount,i.hitTimestamp,i.lastVisitTimestamp,i.appliedTrackingDraw,i.expires,i.allowSubdomains?1:0,(s=i.identityPrint)!=null?s:Tf],$t(String),$t(ET)).join(Ul)}function vT(i){return gT.test(i)}function ET(i){return l(i,jt(/\./g,nc))}function yT(i){return l(i,jt(new Re(nc,"g"),Ul))}function ST(i){return l(i,Bt(nc))!==-1?l(i,de(Ul),$t(yT)):l(i,de(Ul))}function _T(){let i=new Rn(s=>{s.forEach(t=>{ne(t.removedNodes,e=>{e instanceof HTMLElement&&e.tagName==="CS-NATIVE-FRAME-HOLDER"&&(ot.counters.pureWindowState.count("iframe-deletion"),fe.warn("<cs-native-frame-holder> deleted"),i.disconnect())})})});i.observe(D.body,{childList:!0})}function Cf(i){return typeof i!="function"?!1:i.toString().indexOf("[native code]")!==-1}function RT(){(!Cf(Rn)||!Cf(Rn.prototype.observe))&&ot.counters.patchedNativeFunctions.count("MutationObserver")}function TT(){try{v.CSPureWindow&&_T(),RT()}catch(i){}}var CT=(()=>{class i{constructor(){this.subscriptions={}}subscribe(t,e){this.subscriptions[t]=e,Object.keys(this.subscriptions).length===1&&this.onStartTracking()}unsubscribe(t){delete this.subscriptions[t],Object.keys(this.subscriptions).length===0&&this.onStopTracking()}}return i})(),bf=(()=>{let i;return(function(s){function t(){let r=navigator.userAgent+navigator.language+navigator.platform,n=l(e(r).toString(16),Oe(-4)),a=new Date().getTime(),o=l("xxxxxxxx-hhhh-axxx-yxxx-xxxxxxxxxxxx",jt(/[xy]/g,u=>{let c=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(u==="x"?c:c&7|8).toString(16)}));return l(o,jt("hhhh",n))}s.generate=t;function e(r){let n=0;for(let a=0;a<r.length;a+=1)n=r.charCodeAt(a)+(n<<6)+(n<<16)-n;return Math.abs(n)}})(i||(i={})),i})();function Af(i,s,t){if(!le(s)&&!le(t))return i.href;let e=le(s)?ac(s):i.pathname,r=le(t)?If(t):i.search;return`${i.protocol}//${i.host}${e}${r}`}function ac(i){return Ei(i,"/")?i:`/${i}`}function If(i){return Ei(i,"?")||i===""?i:`?${i}`}var bT={VERSION:"15.250.1+fix-e9190a67"},oc,lc,AT=((lc=(oc=v.CS_CONF)===null||oc===void 0?void 0:oc.rollout)===null||lc===void 0?void 0:lc.arm)==="stable"?"-stable":"",wf=bT.VERSION+AT;function hc(){return{v:wf}}var Nf=(()=>{class i{constructor(t,e){this.E=t,this.O=e}getRequestParameters(){return Z(Z({d:`${mt.now()}`,p:this.O.anonymizePII(v.location.href)},this.E.getRequestParameters()),hc())}}return i})(),IT="No stacktrace",wT="No context";function Pf(i,s){return Hs(i)?`${i.stack||IT} ${s}`:s||wT}function uc(i,s,t){let e=Hs(s)?i.anonymizePII(s.message||s.toString()):s;return t&&(e+=` ErrorCode: ${t}`),e}function kf(){}function cc(i,s){return i.lastIndexOf(s,0)===0}function NT(i,s){return l(i,Bt(s,i.length-s.length))!==-1}var dc=Symbol("cachedJson");function PT(i){if(i[dc])return i[dc];if(Array.isArray(i)){if(i.length===0)return"[]";let s="["+Ss(i[0]);for(let t=1;t<i.length;t++)s+=","+Ss(i[t]);return s+="]"}return i[dc]=Ht.stringify(i)}var Ss=typeof v.Symbol!="undefined"?PT:Ht.stringify,Of=(()=>{class i{constructor(t,e){this.domainUri=t,this.path=e,this.beforeRequestCallbacks=[],this.afterRequestCallbacks=[]}setRequestParametersProviders(...t){this.requestParametersProviders=t}before(t){l(this.beforeRequestCallbacks,I(t))}after(t){l(this.afterRequestCallbacks,I(t))}retrieveParameters(){return this.requestParametersProviders?l(this.requestParametersProviders,$t(t=>t.getRequestParameters())).reduce((t,e)=>Z(Z({},t),e)):{}}}return i})(),Mf=()=>!1;function kT(i){Mf=i}function $l(){return Mf()}var co=(()=>{let i;return(function(s){function t(e){return l(Object.keys(e),$t(r=>`${encodeURIComponent(r)}=${encodeURIComponent(e[r])}`)).join("&")}s.toQuery=t})(i||(i={})),i})(),po=(()=>{class i extends Of{constructor(t,e){super(t,e)}send(){l(this.beforeRequestCallbacks,et(r=>r()));let t=this.retrieveParameters();this.Cl(t);let e=co.toQuery(t);this.py(e),l(this.afterRequestCallbacks,et(r=>r()))}py(t){if($l())return;let e=new v.Image(1,1);e.onload=kf,e.onerror=kf,LS(e,Vp,`${this.domainUri}${this.path?`/${this.path}`:""}?${t}`)}Cl(t){t.r=l(`${Math.random()}`,Oe(2,8))}}return i})(),Df=(()=>{class i{constructor(t,e){this.oe=t,this.my=e}
16init(){this.Lt=new po(this.oe.getLoggerUri()),this.Lt.setRequestParametersProviders(this,this.my)}send(t){this.ga=t,this.Lt.send()}getRequestParameters(){return{a:this.ga.app,l:this.ga.level,m:this.ga.message,s:this.ga.stacktrace}}}return i})(),OT="uxa",xf=(()=>{class i{constructor(t){if(this.Lt=null,this.O=new Qe,!!t)try{let e=new Nf(t,this.O);this.Lt=new Df(t,e),this.Lt.init()}catch(e){this.Lt=null}}send(t,e,r){if(this.Lt)try{let n={message:uc(this.O,t,e),stacktrace:Pf(t),app:OT,level:r};this.Lt.send(n);return}catch(n){}}}return i})(),Lf=["t.contentsquare.net","clicktale"],MT=i=>{var s;if(typeof i.filename=="string"&&l(Lf,ye(t=>l(i.filename,Bt(t))>-1))&&!(l(i.filename,Bt("blob"))>-1&&l(i.message,qe,Bt("importScripts"))>-1)){let t=new Error(i.message);t.stack=(s=i.error)===null||s===void 0?void 0:s.stack,K.critical(t)}};l(v,ni("error",MT));var K=(()=>{class i{constructor(){}static whiteListFilename(t){l(Lf,I(t))}static setStrategy(t){i.Ii=t}static computeIsActive(t){i.Pi=zs.boolean(t),i.Pi?i.Al=zs.boolean(10):i.Al=!1}static isLoggingActive(){return i.Pi}static getStrategy(){return i.Ii}static debug(t,e=""){i.Pi&&this.Ii.send(t,e,pe.debug)}static warn(t,e=!0,r=""){var n,a;ot.counters.errors.count("warning"),i.Pi&&e&&this.Ii.send(t,r,pe.warn),(a=(n=v.UXAnalytics)===null||n===void 0?void 0:n.Console)===null||a===void 0||a.warn(t)}static implementation(t,e=""){ot.counters.errors.count("implementation"),i.Pi&&this.Ii.send(t,e,pe.implementation)}static error(t,e=""){var r,n;ot.counters.errors.count("error"),i.Pi&&this.Ii.send(t,e,pe.error),(n=(r=v.UXAnalytics)===null||r===void 0?void 0:r.Console)===null||n===void 0||n.error(t)}static critical(t,e=""){ot.counters.errors.count("critical"),this.Ii.send(t,e,pe.critical)}static tryToExecute(t,e){return function(...r){try{let n=e.apply(this,r);return n instanceof Promise?n.then(a=>a,a=>i.error(Hs(a)?a:new Error(a),t)):n}catch(n){try{i.error(Hs(n)?n:new Error(n),t)}catch(a){}}}}static isPerfLoggingActive(){return i.Al}}return i.Ii=new xf,i.Pi=!1,i.Al=!1,i})();function Vl(i){let s=i.CS_CONF,t=!!(s!=null&&s.isWebView),e=!!(s!=null&&s.iframesTracking),r=i._uxa;if(Array.isArray(r))for(let n of r){if(!Array.isArray(n))continue;let[a,...o]=n;if(a==="setOption"){let[u,c]=o;u==="isWebView"?t=!!c:u==="iframesTracking"&&(e=!!c)}else a==="setIframeAutonomous"&&(e=!1)}return{isWebView:t,iframesTracking:e}}function DT(i){let s=i.CS_mobilePid;if(s!=null&&s!=="")return String(s);let t=i.CSJavascriptBridge;if(t&&typeof t.getMobilePid=="function")try{let r=t.getMobilePid();if(r!=null&&r!=="")return String(r)}catch(r){K.warn("an error occurred when calling getMobilePid")}let e=l(i.navigator,qe,"userAgent",qe,mn(/CS_mobilePid=([^\s;]+)/));return e?e[1]:null}function xT(i=v){var s;let{isWebView:t}=Vl(i);if(!t)return!0;let e=DT(i);if(e===null)return!0;let r=(s=i.CS_CONF)===null||s===void 0?void 0:s.projectId;return e!==String(r)?(K.warn(`Tracking not allowed: mobile PID mismatch: expected ${r}, got ${e}`),!1):!0}var pc=(()=>{class i extends Error{constructor(t,e,r){super(e),this.level=t,this.code=r}}return i})(),gc=(()=>{class i extends pc{constructor(t){super(pe.warn,`Tracking not allowed: ${t||"Unknown reason"}`,"NOT_ALLOWED_TO_TRACK")}}return i})(),LT=(()=>{class i extends pc{constructor(t){super(pe.error,`protectNativeFunctions failed: ${t}`,"NATIVE_PROTECTION_FAILED")}}return i})();function Uf(i){if(i instanceof pc)switch(i.level){case pe.debug:fe.debug(i.message,i.code);return;case pe.warn:fe.warn(i.message,!0,i.code);return;case pe.error:fe.error(i,i.code);return;case pe.critical:fe.critical(i,i.code);return}fe.critical(i,"UNEXPECTED_ERROR")}var jr=(()=>{let i;
16return(function(s){s.None="None",s.Lax="Lax",s.NotSet="X"})(i||(i={})),i})(),Ys=(()=>{let i;return(function(s){s[s.Yes=1]="Yes",s[s.No=0]="No"})(i||(i={})),i})(),We=(()=>{let i;return(function(s){s.CURRENT_DOMAIN="CURRENT_DOMAIN";function t(u){let c=new Re(`(^|;)[ ]*${u}=([^;]*)`).exec(D.cookie);return c?decodeURIComponent(c[2]):null}s.get=t;function e(u,c,p,f,E,g){let R=encodeURIComponent(`${c}`),k=p===s.CURRENT_DOMAIN?void 0:p,X=r(f),U=X?`;expires=${X.toUTCString()}`:"",z=";path=/",dt=Me(k)?`;domain=${k}`:"",vt=`${u}=${R}${U}${z}${dt}`;return le(E)&&E!==jr.NotSet&&(vt=`${vt};SameSite=${E}`),le(g)&&g===Ys.Yes&&(vt=`${vt};Secure`),D.cookie=vt,!0}s.set=e;function r(u){return ze(u)?new Date(mt.now()+u):u}s.toExpireDate=r;function n(u,c){t(u)&&e(u,"",c,new Date(0)),t(u)&&e(u,"",c,new Date(0),jr.None,Ys.Yes)}s.remove=n;function a(){return D.cookie.length>0}s.isCookiePresent=a;function o(u,c){let p="_cs_root-domain",f=t(p);if(f!==null&&f!=="1")return f;let E=l(v.location.hostname,de(".")),g=E.pop();for(;E.length&&(f===null||f==="1");)g=[l(E,ra()),g].join("."),e(p,g,g,void 0,u,c),f=t(p);return n(p,g),g}s.getRootDomain=o})(i||(i={})),i})(),UT=(()=>{class i{get(t){return We.get(t)}}return i.$deps=[],i})(),rs;(function(i){i.ContentSquare="CONTENTSQUARE",i.LoadedByClicktale="LOADED_BY_CLICKTALE",i.LoadClicktalePtc="LOAD_CLICKTALE_PTC",i.DualCollectionReview="DUAL_COLLECTION_REVIEW",i.DualCollection="DUAL_COLLECTION",i.ContentSquareTagClickTaleEndpoints="CONTENTSQUARE_TAG_CLICKTALE_ENDPOINTS"})(rs||(rs={}));var Fl;(function(i){i.replayRecordingUnmaskedUrlRegex="replayRecordingUnmaskedUrlRegex",i.replayRecordingMaskedUrlRegex="replayRecordingMaskedUrlRegex",i.replayRecordingUnmaskedUrlRegexRules="replayRecordingUnmaskedUrlRegexRules",i.replayRecordingMaskedUrlRegexRules="replayRecordingMaskedUrlRegexRules"})(Fl||(Fl={}));var $f;(function(i){i.START="start",i.NOT_START="not-start",i.END="end",i.NOT_END="not-end",i.CONTAIN="contain",i.NOT_CONTAIN="not-contain",i.EXACT="exact",i.NOT_EXACT="not-exact"})($f||($f={}));var $T=(()=>{class i{constructor(t,e,r){var n;typeof t=="string"?(this.name=t,this.value=e,this.namespaceURI=r!=null?r:""):(this.name=t.name,this.value=t.value,this.namespaceURI=(n=t.namespaceURI)!=null?n:"")}static create(t){let e=l(t,gn),r=new Array(e.length);for(let n=0;n<r.length;n++){let a=e[n];r[n]=new i(a.name,a.value,a.namespaceURI),a.name==="href"&&Ru(t)&&(r[n].value=Dg(t))}return r}}return i})(),{logger:fc}=oa("scheduler"),Hl=(()=>{class i{constructor(t){if(this.fe=0,t)for(let e of t)this.push(e)}get length(){return this.fe}push(t){this.fe++,this.Wt?this.Wt=this.Wt[1]=[t,void 0]:this.Wt=this.ht=[t,void 0]}shift(){if(!this.ht)return;this.fe--;let t=this.ht[0];return this.ht=this.ht[1],this.ht||(this.Wt=void 0),t}isEmpty(){return!this.ht}}return i})(),da=(()=>{let i;return(function(s){s[s.High=0]="High",s[s.Low=1]="Low"})(i||(i={})),i})(),Bl=(()=>{class i{constructor(){this.Il=new Hl,this.Pl=new Hl}get length(){return this.Il.length+this.Pl.length}push(t,e=da.Low){return e===da.High?this.Il.push(t):this.Pl.push(t),this.length}shift(){var t;return(t=this.Il.shift())!=null?t:this.Pl.shift()}isEmpty(){return this.length===0}}return i})();function VT(){if(typeof performance!="undefined"&&typeof performance.now=="function")try{let i=performance.now();if(Number.isFinite(i))return()=>performance.now()}catch(i){}return()=>Date.now()}var mc=VT(),Je=(()=>{let i;return(function(s){s[s.Continue=1]="Continue",s[s.Stop=0]="Stop",s[s.Reschedule=2]="Reschedule"})(i||(i={})),i})(),Vf=40,FT=10;function zl(i=Vf){let s=mc(),t=0,e=!0;return{get hasTimeLeft(){return e&&t++%FT===0&&(e=mc()-s<i),e},get elapsedTime(){return mc()-s}}}var Cn=(()=>{class i{constructor(){this.Ar=new Bl,this.jf=()=>{fr.yield().then(()=>{let t=zl();if(this.Bf(t),!t.hasTimeLeft){let e=t.elapsedTime;e>Vf*3&&fc.warn(`Task largely exceeded maximum duration: ${e.toFixed(2)}ms`)}(this.bt||!this.Ar.isEmpty())&&this.jf()})}}pa(){var t,e,r;let n=(e=(t=this.bt)==null?void 0:t.subTasks)==null?void 0:e.shift();return n?(n.subTasks=(r=this.bt)==null?void 0:r.subTasks,n):this.Ar.shift()}Ey(t,e){this.bt&&(this.bt.subTasks=this.bt.subTasks||new Bl,this.bt.subTasks.push(t,e))}vy(t,e){return this.Ar.push(t,e)===1&&!this.bt}Sy(t,e){t.isRunning=!0;let r=Je.Stop;try{let n=t.run(e);r=n===Je.Continue||n===Je.Reschedule?n:Je.Stop,t.isEnded=r===Je.Stop}catch(n){n instanceof Error?fc.error("Error occurred while running task (schedulerTaskError)",n):fc.error(`Error occurred while running task (schedulerTaskError): ${String(n)}`),t.isEnded=!0}return t.isRunning=!1,r}_y(t){return t.isEnded||t.isAborted}Bf(t){var e;
16for(this.bt=(e=this.bt)!=null?e:this.pa();t.hasTimeLeft&&this.bt;){if(this.bt.isAborted){this.bt=this.pa();continue}this.Sy(this.bt,t)===Je.Reschedule?(this.Ar.push(this.bt,this.bt.priority),this.bt=this.pa()):this._y(this.bt)&&(this.bt=this.pa())}}task(t,e=da.Low){var r;let n={run:t,isAborted:!1,isEnded:!1,priority:e,abort(){this.isAborted=!0}};return(r=this.bt)!=null&&r.isRunning?this.Ey(n,e):this.vy(n,e)&&this.jf(),n}flush(){this.Bf(zl(1/0))}clear(){this.Ar=new Bl,this.bt=void 0}isWorking(){return this.bt!==void 0||!this.Ar.isEmpty()}}return i})();function HT(i,s){if(i===s)return!0;if(i==null||s==null||typeof i!=typeof s||typeof i!="object"||Array.isArray(i)!==Array.isArray(s))return!1;if(Array.isArray(i))return i.length!==s.length?!1:l(i,mu((r,n)=>r===s[n]));let t=Object.keys(i),e=Object.keys(s);return t.length!==e.length?!1:l(t,mu(r=>i[r]===s[r]))}function bn(i,s=15){if(!i||typeof i!="object")return i;let t=[],e=n=>{if(Array.isArray(n))return Array.from(n);let a={},o=Object.keys(n);if(o.length>0&&l(t,I({source:n,target:a,keys:o,index:0}))>s){let u=l(t,$t(c=>c.keys[c.index-1])).join(".");throw new Error(`Too deep object to clone probably due to circular reference at "${u.length>100?l(u,Oe(0,100))+"...":u}"`)}return a},r=e(i);for(;t.length>0;){let n=t[t.length-1];if(n.index>=n.keys.length){l(t,ra());continue}let a=n.keys[n.index++],o=n.source[a];if(!o||typeof o!="object"){n.target[a]=o;continue}let u=e(o);n.target[a]=u}return r}function Gl(i){for(let s in i)if(i[s]!==void 0)return!0;return!1}function Ff(i,s){if(Array.isArray(i)&&Array.isArray(s))return i.length!==s.length||l(i,ye((r,n)=>r!==s[n]))?bn(s):void 0;let t={},e=new Set([...Object.keys(i||{}),...Object.keys(s||{})]);for(let r of e){let n=i[r],a=s[r];if(n===a)continue;let o=typeof n;if(o!==typeof a)n===void 0&&a!==void 0?t[r]=a:n!==void 0&&a===void 0&&(t[r]=null);else if(o==="object"&&n&&a){let u=Ff(n,a);u!==void 0&&(t[r]=u)}else t[r]=bn(a)}return Gl(t)?t:void 0}function Hf(i,s){let t=s,e=i,r;for(let n in t){let a=t[n];if(a===null)n in e&&(r||(r=Z({},e)),delete r[n]);else if(a!==void 0){let o=e[n];if(o&&typeof o=="object"&&a&&typeof a=="object"&&!Array.isArray(o)&&!Array.isArray(a)){let u=Hf(o,a);u!==o&&(r||(r=Z({},e)),r[n]=u)}else o!==a&&(r||(r=Z({},e)),r[n]=a)}}return r!=null?r:e}function Bf(i){let s=null;return t=>t?s=t:s||(s=i())}var BT=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function zf(i){return l(i,Bt("-"))>0&&l(i,Bt(":"))===-1&&l(i,Bt('"'))===-1&&l(i,Bt(","))===-1&&!BT.has(i)}var pa=Bf(()=>new WeakMap),vc=Bf(()=>new Set),Zs=(()=>{let i;return(function(s){function t(p){return pa().get(p)}s.getAll=t;function e(p,f){var E;return(E=pa().get(p))==null?void 0:E[f]}s.get=e;function r(p,f,E){let g=pa().get(p);g||pa().set(p,g={}),!HT(g[f],E)&&(g[f]=E,o(p))}s.set=r;function n(p,f){let E=pa().get(p);E&&(delete E[f],o(p))}s.remove=n;function a(){pa(new WeakMap)}s.reset=a;function o(p){for(let f of vc())f(p)}function u(p){vc().add(p)}s.subscribe=u;function c(p){vc().delete(p)}s.unsubscribe=c})(i||(i={})),i})(),zT=1,Gf=Symbol("nodeIdentifier");function Zt(i){let s=i[Gf];return s!=null?s:i[Gf]=zT++}var ie=(()=>{let i;return(function(s){s[s.ELEMENT_NODE=1]="ELEMENT_NODE",s[s.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",s[s.TEXT_NODE=3]="TEXT_NODE",s[s.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",s[s.COMMENT_NODE=8]="COMMENT_NODE",s[s.DOCUMENT_NODE=9]="DOCUMENT_NODE",s[s.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",s[s.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",s[s.CSS_STYLESHEET_NODE=50]="CSS_STYLESHEET_NODE"})(i||(i={})),i})(),Wl=(()=>{let i;return(function(s){s[s.Closed=0]="Closed",s[s.Open=1]="Open",s[s.OpenModal=2]="OpenModal"})(i||(i={})),i})(),{logger:qr}=oa("fastDom"),Wf=Symbol.for("csHost"),GT=Symbol.for("csInternals"),jf=new WeakSet;function qf(i){let s=i.HTMLElement.prototype;!s.attachInternals||jf.has(s)||(jf.add(s),s.attachInternals=(function(t){return function(...e){let r=t.apply(this,e);try{r&&(r[Wf]=this,this[GT]=r)}catch(n){qr.warn(n)}return r}})(s.attachInternals))}typeof v!="undefined"&&qf(v);function WT(i){return i[Wf]}var jT=(()=>{class i{constructor(t){this.tt=t,this.ma=!1,this.Rs=new WeakSet,this.Ea=e=>{let r=e.ownerDocument||e;r&&this.Rs.has(r)&&this.tt(e)}}observe(t){this.Rs.has(t)||(this.Rs.add(t),this.ma||(Zs.subscribe(this.Ea),this.ma=!0))}disconnect(){this.ma&&(Zs.unsubscribe(this.Ea),this.ma=!1),this.Rs=new WeakSet}}return i})(),qT=(()=>{class i{constructor(t){this.tt=t,this.xt=new WeakMap,this.Ir=e=>{this.tt([{type:"valueChanged",target:e},{type:"validityChanged",target:e}]),this.yy(e)},this.wy=e=>this.tt({type:"validityChanged",target:e}),this.va=e=>this.tt({type:"overlayChanged",target:e}),this.by=e=>this.tt({type:"scrollChanged",target:e}),this.Ff=e=>this.tt([{type:"scrollChanged",target:e},{type:"viewportChanged",target:e},{type:"screenChanged",target:e}]),this.Gf=e=>this.tt([{type:"scrollChanged",target:e},{type:"viewportChanged",target:e}]),this.zf=e=>this.tt({type:"setAdoptedStyleSheets",target:e}),this.Pr=e=>
16this.tt({type:"styleSheetUpdated",target:e}),this.Ry=e=>this.tt({type:"animationUpdated",target:e}),this.Mi=(e,r)=>yt(this,[e,r],function*(n,{name:a}){let o=n.effect,u=o==null?void 0:o.target;u&&((a==="updatePlaybackRate"||a==="reverse")&&(yield n.ready),this.tt({type:"animationUpdated",target:u}))}),this.Mn=e=>{var r;let n=(r=this.Ty(e))==null?void 0:r.parentStyleSheet;n&&this.Pr(n)},this.Cy=e=>this.tt({type:"styleSheetDisabledChanged",target:e}),this.Wf=e=>{let r=e.ownerDocument;r&&this.tt({type:"activeElementChanged",target:r})},this.Ea=e=>this.tt({type:"metadataChanged",target:e})}yy(t){if(l(t,Ot)!=="input"||t.type!=="radio"||t.checked!==!0)return;let e=t,{name:r,form:n}=e;if(!r)return;let a=e.getRootNode(),o=l(a,Hr(`input[type="radio"][name="${CSS.escape(r)}"]`));for(let u=0;u<o.length;u++){let c=o[u];c!==e&&c.form===n&&this.tt([{type:"valueChanged",target:c},{type:"validityChanged",target:c}])}}Ay(t){return l(t,Ve)===ie.DOCUMENT_NODE}Iy(t){let e=[vi(t,"input",r=>this.Ir(l(r,Ci))),vi(t,"change",r=>this.Ir(l(r,Ci))),vi(t,"checked",r=>this.Ir(l(r,Ci))),vi(t,"scroll",r=>this.by(l(r,Ci))),vi(t,"toggle",r=>this.va(l(r,Ci))),vi(t,"focusin",r=>this.Wf(l(r,Ci))),vi(t,"focusout",r=>this.Wf(l(r,Ci))),vi(t,"pointerover",r=>{let n=l(r,Ci),a=n.ownerDocument;a&&this.tt({type:"pointerOverElement",target:a,element:n})}),vi(t,"pointerout",r=>{let n=l(r,Ci).ownerDocument;n&&this.tt({type:"pointerOverElement",target:n,element:null})}),vi(t,"load",r=>{let n=l(r,Ci);switch(l(n,Ot)){case"iframe":case"link":this.tt({type:"loaded",target:n});break}})];this.Sa(t,()=>{l(e,et(r=>r()))})}Py(t){let e=t.defaultView;if(!e)return;qf(e);let r=[vi(e,"resize",()=>
16this.Ff(t)),...e.visualViewport?[vi(e.visualViewport,"resize",()=>this.Gf(t)),vi(e.visualViewport,"scroll",()=>this.Gf(t))]:[],vi(t,"visibilitychange",()=>this.tt({type:"visibilityChanged",target:t})),vi(t,"fullscreenchange",()=>this.Ff(t)),qt(e.Document,"adoptedStyleSheets",this.zf,{mode:yn.Methods}),qt(e.ShadowRoot,"adoptedStyleSheets",this.zf,{mode:yn.Methods}),qt(e.Element,"attachShadow",(n,{result:a})=>{this.tt({type:"attachShadow",target:n,shadowRoot:a})}),qt(e.ElementInternals,"setValidity",n=>{let a=WT(n);a&&this.wy(a)}),qt(e.HTMLInputElement,"value",this.Ir),qt(e.HTMLInputElement,"checked",this.Ir),qt(e.HTMLSelectElement,"selectedIndex",this.Ir),qt(e.CSSStyleSheet,"insertRule",this.Pr),qt(e.CSSStyleSheet,"deleteRule",this.Pr),qt(e.CSSStyleSheet,"replace",this.Pr),qt(e.CSSStyleSheet,"replaceSync",this.Pr),qt(e.CSSStyleSheet,"addRule",this.Pr),qt(e.CSSStyleRule,"style",this.Mn,{mode:yn.Properties}),qt(e.CSSGroupingRule,"insertRule",this.Mn),qt(e.CSSGroupingRule,"deleteRule",this.Mn),qt(e.CSSStyleDeclaration,"setProperty",this.Mn),qt(e.CSSStyleDeclaration,"removeProperty",this.Mn),qt(e.StyleSheet,"disabled",this.Cy),qt(e.HTMLDialogElement,"show",this.va),qt(e.HTMLDialogElement,"showModal",this.va),qt(e.HTMLDialogElement,"close",this.va),qt(e.CustomElementRegistry,"define",(n,{args:a})=>{this.tt({type:"customElementRegistration",target:t,name:a[0]})}),qt(e.Element,"animate",this.Ry),qt(e.Animation,"play",this.Mi),qt(e.Animation,"pause",this.Mi),qt(e.Animation,"finish",this.Mi),qt(e.Animation,"cancel",this.Mi),qt(e.Animation,"reverse",this.Mi),qt(e.Animation,"updatePlaybackRate",this.Mi),qt(e.Animation,"currentTime",this.Mi,{mode:yn.Properties})];this.Sa(t,()=>{l(r,et(n=>n()))})}Ty(t){for(;t.parentRule!==null;)t=t.parentRule;return t}My(t){let e=new Rn(r=>{this.tt(r)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),this.Sa(t,()=>{e.disconnect()})}Ny(t){let e=new jT(this.Ea);e.observe(t),this.Sa(t,()=>{e.disconnect()})}Sa(t,e){l(this.xt.get(t),qe,I(e))}observe(t){this.xt.has(t)||(this.xt.set(t,[]),this.Iy(t),this.Ay(t)&&(this.Py(t),this.Ny(t)),this.My(t))}disconnect(t){let e=this.xt.get(t)||[];for(let r of e)try{r()}catch(n){qr.warn(n)}this.xt.delete(t)}}return i})(),Yf=(()=>{class i{get length(){return this.Tt.length}constructor(){this.Nn=[],this.Tt=new Bl,this.Ml=new Set}Oy(t){return t.type==="attributes"?`-${t.attributeNamespace}-${t.attributeName}`:""}ky(t){switch(t.type){case"pointerOverElement":case"customElementRegistration":return}return`${Zt(t.target)}-${t.type}${this.Oy(t)}`}Dy(t){switch(t.type){case"valueChanged":case"validityChanged":case"overlayChanged":case"scrollChanged":case"visibilityChanged":case"viewportChanged":case"screenChanged":return da.High;default:return da.Low}}Ly(t){let e=this.ky(t);if(e){if(this.Ml.has(e))return;this.Ml.add(e)}return this.Tt.push({mutation:t,key:e},this.Dy(t))}xy(){this.Nn.length!==0&&(l(this.Nn,Hp(),et(t=>this.Ly(t))),this.Nn=[])}push(t){l(this.Nn,I(t))}shift(){this.xy();let t=this.Tt.shift();if(t)return t.key&&this.Ml.delete(t.key),t.mutation}isEmpty(){return this.Tt.isEmpty()&&this.Nn.length===0}}return i})(),YT=10,ZT=(()=>{class i{constructor(t){this.$y=t,this.Mr=new Set}get size(){return this.Mr.size}add(t){this.Mr.add(t),this.qf()}flush(){this.Yf(),this.Xf(zl(1/0))}clear(){this.Yf(),this.Mr.clear()}qf(){this.On!==void 0||this.Mr.size===0||(this.On=requestAnimationFrame(()=>{this.On=void 0,this.Xf(zl(YT)),this.qf()}))}Yf(){this.On!==void 0&&(cancelAnimationFrame(this.On),this.On=void 0)}Xf(t){for(let e of this.Mr){if(!t.hasTimeLeft)return;this.Mr.delete(e),this.$y(e)}}}return i})(),KT=new Cn;function ga(i,s=da.Low){return KT.task(i,s)}function Zf(i){return l(i,jt(/[:\\]/g,"\\$&"))}function Ec(i){return l(i,jt(/\\([:\\\\])/g,"$1"))}function jl(i,s){let t=Zf(s);return i?`${Zf(i)}:${t}`:t}function XT(i){let s=!1,t=-1;for(let n=0;n<i.length;n++){let a=i[n];if(s)s=!1;else if(a==="\\")s=!0;else if(a===":"){t=n;break}}if(t===-1)return{namespaceURI:null,name:Ec(i)};let e=l(i,Oe(0,t)),r=l(i,Oe(t+1));return{namespaceURI:Ec(e),name:Ec(r)}}function QT(i){return{get node(){return l(i,Ya)}}}function JT(i){return{get node(){return l(i,cl)}}}function tC(i){return{get node(){return i.contentDocument}}}function eC(i){return{get node(){return l(i,is)}}}function iC(i){return typeof i=="boolean"}function Yr(i){return typeof i=="number"&&!Number.isNaN(i)}function Kf(i){return typeof i=="string"}function ql(i,s){try{return l(i,Up(s))}catch(t){return!1}}function sC(i){var s;let t=new Map;if(!i.getAnimations)return t;for(let e of i.getAnimations()){let r=(s=e.effect)==null?void 0:s.target;if(r){let n=t.get(r);n?l(n,I(e)):t.set(r,[e])}}return t}function*Xf(i,s){for(let t of l(Object,Ka(i)))s(t)&&(yield t)}var rC=40,Qf=1e3,Yl=["nextSibling","firstChild","contentDocument","shadowRoot","sheetId"];function Zl(i,s){return!!i&&s in i&&!!i[s]}function fa(i,s){let t=i||{};return s(t),Gl(t)?t:void 0}var Jf={"http://www.w3.org/1999/xhtml":void 0,"http://www.w3.org/2000/svg":"svg"};function nC(i){return!!i&&"axis"in i}var tm=(()=>{let i=class cp{constructor(t){this.R=t,this.G=new qT(e=>{this._a.push(e),this.Uy()}),this.Nl=!1,this.Ee={},this.Me=new Map,this._a=new Yf,this.kn=new Map,this.ya=new ZT(e=>this.Vy(e)),this.Dn=null,this.processedMutationsCount=0,this.serializedNodeCount=0,this.Kf=0,this.Zf=rC}disconnect(){var t;for(let e of this.kn.values())this.G.disconnect(e);this.kn.clear(),this.Ee={},this.Me.clear(),this._a=new Yf,this.ya.clear(),(t=this.Ol)==null||t.abort(),this.Ol=void 0}observe(t){return this.disconnect(),this.wa(t),this}getState(t=!0){return this.Nl=!1,t&&this.Qf(),this.Ee}getChanges(){let t={};for(let[e,r]of this.Me){let n=this.Ee[e];if(!(r&&!n))if(n&&!r)t[e]=bn(n);else{let a=Ff(r,n);a!==void 0&&(t[e]=a)}}return this.Qf(),Gl(t)?t:void 0}setFrameRate(t){return this.Zf=t/1e3,this}onChange(t){return this.R=t,()=>{this.R===t&&(this.R=void 0,this.Ln&&(Ti(this.Ln),this.Ln=void 0))}}getStateAsync(t=!0){return yt(this,null,function*(){return yield this.Jf(),this.get
16State(t)})}getChangesAsync(){return yt(this,null,function*(){return yield this.Jf(),this.getChanges()})}Jf(){return yt(this,null,function*(){yield new Promise(t=>{ga(()=>t())}),this.ya.flush()})}Qf(){this.Me.clear()}static apply(t,e,r){let n=Z({},t),a=new Set,o=new Set,u=E=>{o.has(E)?o.delete(E):a.add(E)},c=E=>{a.has(E)?a.delete(E):o.add(E)};function p(E,g){for(let R of Yl)R in g&&(Zl(E,R)&&u(E[R]),Zl(g,R)&&c(g[R]))}for(let E in e){let g=e[E];if(g==null)continue;let R=E,k=n[R],X=g,U=k===void 0?X:Hf(k,X);p(k,X),n[R]=U}let f=Array.from(a);for(;f.length>0;){let E=l(f,ra());if(o.has(E))continue;let g=n[E];if(g){delete n[E],r==null||r(E);for(let R of Yl)Zl(g,R)&&l(f,I(g[R]))}}return n}static nodeRelationsEntries(t,e=!1){let r=e?Yl.filter(a=>a!=="nextSibling"):Yl,n=[];for(let a of r)Zl(t,a)&&l(n,I({key:a,nodeId:t[a]}));return n}kl(){this.Nl||(this.Ee=Z({},this.Ee),this.Nl=!0)}z(t){if(this.kl(),t in this.Ee&&!this.Me.has(t)){let e=this.Ee[t];this.Me.set(t,bn(e)),this.Ee[t]=bn(e)}return this.Ee[t]}tg(t){return this.Ee[t]}Hy(t){var e;let r=t.effect,n={keyframes:this.jy((e=r==null?void 0:r.getKeyframes())!=null?e:[]),options:this.By(t,r),time:this.Fy(t.currentTime),state:t.playState,rate:t.playbackRate},a=this.Gy(t);if(a!==void 0){let o=this.zy(t,n.options);this.Wy(n,a),o&&(n.timeline=o)}return n}zy(t,e){let r=t.timeline;if(!r)return;let n=e.duration,a={axis:r.axis,timing:{duration:Yr(n)||Kf(n)?n:"auto",delay:e.delay,endDelay:e.endDelay}},o=r.subject;if(o)return this.isVirtualized(o)?Vt(Z({},a),{type:"view",subject:Zt(o)}):void 0;let u=r.source;return u&&this.isVirtualized(u)?Vt(Z({},a),{type:"scroll",source:Zt(u)}):void 0}Wy(t,e){let{iterations:r}=t.options,n=Yr(r)&&r<1/0?r:1;t.options.duration=Qf,t.options.delay=0,t.options.endDelay=0,t.time=Math.trunc(e*Qf*n),t.state="paused",t.rate=1}Gy(t){let e=t.currentTime;if(Yr(e))return;if(e==null)return nC(t.timeline)?0:void 0;let r=e.value;return Yr(r)?Math.min(Math.max(r/100,0),1):0}Fy(t){if(!(t===null||!Yr(t)))return Math.trunc(t)}jy(t){return t.reduce((e,r,n)=>(e[n]=r,e),{})}By(t,e){var r;let n=Vt(Z({},(r=e==null?void 0:e.getTiming())!=null?r:{}),{composite:e==null?void 0:e.composite,pseudoElement:e==null?void 0:e.pseudoElement,iterationComposite:e==null?void 0:e.iterationComposite}),a=t.id;return a&&(n.id=a),n}qy(t){try{let e=t.cssRules.length,r={};for(let n=0;n<e;n++){let a=t.cssRules[n];r[n]=a.cssText}return{type:ie.CSS_STYLESHEET_NODE,cssRules:r,disabled:t.disabled}}catch(e){return{type:ie.CSS_STYLESHEET_NODE,cssRules:{}}}}Yy(t){return l(Array.from(l(t,Hr(":hover"))),ra())||void 0}Xy(t){let e=this.eg(t);switch(l(t,Ve)){case ie.DOCUMENT_NODE:{let r=t,n=r.activeElement||void 0,a=this.Yy(r),o=Vt(Z({type:ie.DOCUMENT_NODE,baseURI:r.baseURI,activeId:n&&Zt(n),hoveredId:a&&Zt(a)},this.Ky(t)),{metadata:e});return r.compatMode==="BackCompat"&&(o.quirksMode=!0),o}case ie.DOCUMENT_FRAGMENT_NODE:return{type:ie.DOCUMENT_FRAGMENT_NODE,mode:t.mode,metadata:e};case ie.COMMENT_NODE:return{type:ie.COMMENT_NODE,data:void 0,metadata:e};case ie.ELEMENT_NODE:{let r=t,n=r.namespaceURI||"";return{type:ie.ELEMENT_NODE,namespaceURI:n in Jf?Jf[n]:n,localName:l(r,Ot),attributes:this.Zy(r),state:this.Qy(r),metadata:e}}case ie.TEXT_NODE:return{type:ie.TEXT_NODE,data:t.data||"",metadata:e};case ie.CDATA_SECTION_NODE:return{type:ie.CDATA_SECTION_NODE,data:t.data,metadata:e};case ie.DOCUMENT_TYPE_NODE:return{type:ie.DOCUMENT_TYPE_NODE,name:t.name,publicId:t.publicId,systemId:t.systemId,metadata:e};default:return null}}Zy(t){return Array.from(l(t,gn)).reduce((e,r)=>{let n=e||{};return n[jl(r.namespaceURI,r.name)]=r.value,n},void 0)}Ky(t){let e=t.defaultView;return{state:{scrollX:e==null?void 0:e.scrollX,scrollY:e==null?void 0:e.scrollY,visibility:t.visibilityState},viewport:this.sg(t),screen:this.ig(t)}}sg(t){var e;
16let r=(e=t.defaultView)==null?void 0:e.visualViewport;return{width:r==null?void 0:r.width,height:r==null?void 0:r.height,scale:r==null?void 0:r.scale,offsetLeft:r==null?void 0:r.offsetLeft,offsetTop:r==null?void 0:r.offsetTop}}ig(t){var e;let r=(e=t.defaultView)==null?void 0:e.screen;return{width:r==null?void 0:r.width,height:r==null?void 0:r.height}}Jy(t){return t.open?ql(t,":modal")?Wl.OpenModal:Wl.Open:Wl.Closed}tw(t){if(!zf(l(t,Ot))){let e=t.validity;return typeof(e==null?void 0:e.valid)=="boolean"?e.valid:void 0}if(ql(t,":valid"))return!0;if(ql(t,":invalid"))return!1}rg(t,e){let r="value"in t?t.value:void 0;Kf(r)?e.value=r:delete e.value;let n="selectedIndex"in t?t.selectedIndex:void 0;Yr(n)&&n>=0?e.selectedIndex=n:delete e.selectedIndex;let a="checked"in t?t.checked:void 0;iC(a)?e.checked=a:delete e.checked}ng(t,e){if(delete e.popover,delete e.dialog,delete e.open,t.popover&&ql(t,":popover-open"))e.popover=!0;else if(l(t,Ot)==="dialog"){let r=this.Jy(t);e.dialog=r,e.open=r!==Wl.Closed}}og(t,e){let r=this.tw(t);r!==void 0?e.valid=r:delete e.valid}ew(t,e,r){Yr(e)&&e!==0?t.scrollX=e:delete t.scrollX,Yr(r)&&r!==0?t.scrollY=r:delete t.scrollY}Vy(t){var e,r;if(!this.isVirtualized(t)||!this.Ys(t))return;let n=Zt(t),a=this.tg(n);if(!a)return;if(a.type===ie.DOCUMENT_NODE){let f=t.defaultView,E=f==null?void 0:f.scrollX,g=f==null?void 0:f.scrollY;if(((e=a.state)==null?void 0:e.scrollX)===E&&((r=a.state)==null?void 0:r.scrollY)===g)return;let R=this.z(n);R.state=fa(R.state,k=>{k.scrollX=E,k.scrollY=g});return}let{scrollLeft:o,scrollTop:u}=t,c=a.state;if(!o&&!u&&!(c!=null&&c.scrollX)&&!(c!=null&&c.scrollY))return;let p=this.z(n);p.state=fa(p.state,f=>this.ew(f,o,u))}Qy(t){let e={};return this.rg(t,e),this.ng(t,e),this.og(t,e),this.ya.add(t),Gl(e)?e:void 0}Uy(){var t;((t=this.Ol)==null?void 0:t.isEnded)!==!1&&(this.Ol=ga(e=>(this.Cr(e),this.ag(),this._a.isEmpty()?Je.Stop:Je.Reschedule)))}ag(){if(!this.R||this.Ln)return;let t=performance.now()-this.Kf,e=Math.max(0,this.Zf-t);this.Ln=Ft(()=>{this.Ln=void 0;let r=this.getChanges();this.Kf=performance.now(),r&&this.R(r,this.getState())},e)}iw(t){for(let e=l(t,qe,xp);e;e=l(e,xp))if(this.isVirtualized(e))return Zt(e)}rw(t){var e;let r=l(t,es)||t.host||((e=t.defaultView)==null?void 0:e.frameElement);if(this.isVirtualized(r))return Zt(r)}Dl(t){let e=t?this.tg(t):void 0;return(e==null?void 0:e.type)===ie.ELEMENT_NODE&&e.localName==="style"}ba(t){let e=t==null?void 0:t.sheet;e&&!this.isVirtualized(e)&&this.xn(e)}wa(t){if(this.isVirtualized(t)){this.Dl(Zt(t))&&this.ba(t);return}let e=new Hl;this.cg(t,e),!e.isEmpty()&&ga(r=>{let n;for(;r.hasTimeLeft&&(n=e.shift());){let a=n.node;if(!a||!this.Ys(a))continue;let o=this.rw(a);o&&(this.isVirtualized(a)||this.cg(a,e),this.lg(a,o),l(a,Ya)&&e.push(QT(a)))}return e.isEmpty()?Je.Stop:Je.Continue})}nw(t){switch(t){case ie.DOCUMENT_NODE:return"contentDocument";case ie.DOCUMENT_FRAGMENT_NODE:return"shadowRoot";default:return"childList"}}xn(t){ga(()=>{let e=t.ownerNode;if(e&&(!this.Ys(e)||!this.isVirtualized(e)))return Je.Stop;if(this.isVirtualized(t)||!e||l(e,Ot)==="style"?this.ug(t):this.Ll(Zt(t),{type:ie.CSS_STYLESHEET_NODE,cssRules:{},disabled:t.disabled}),e&&this.isVirtualized(e)){let r=Zt(e),n=this.z(r),a=n.sheetId,o=Zt(t);n.sheetId=o,a&&a!==o&&this.xl(a)}return Je.Stop})}ow(t){var e;this.Dn||(this.Dn=new Map,Ap(()=>{this.Dn=null}));let r=t.ownerDocument;if(!r)return[];let n=this.Dn.get(r);return n||(n=sC(r),this.Dn.set(r,n)),(e=n.get(t))!=null?e:[]}hg(t,e=(r=>(r=(n=>(n=t.getAnimations)==null?void 0:n.call(t))())!=null?r:[])()){let r={},n=0,a=e.length;ga(o=>{if(!this.isVirtualized(t)||!this.Ys(t))return Je.Stop;let u=this.z(Zt(t));if(!u)return Je.Stop;for(;o.hasTimeLeft&&n<a;){let c=e[n],p=Zt(c);r[p]=this.Hy(c),n++}return n<a?Je.Continue:(u.animations=e.length>0?r:void 0,Je.Stop)})}dg(t){let e=0,r=Zt(t),n=t.adoptedStyleSheets,a=n.length,o={};ga(u=>{if(!this.isVirtualized(t)||!this.Ys(t)||!this.aw(n,t.adoptedStyleSheets))return Je.Stop;for(;u.hasTimeLeft&&e<a;){let p=n[e];o[e]=this.isVirtualized(p)?Zt(p):this.ug(p),e+=1}if(e<a)return Je.Continue;let c=this.z(r);return c&&(c.adoptedStyleSheets=o),Je.Stop})}aw(t,e){let r=e||[];if(r===t)return!0;
16if(r.length!==t.length)return!1;for(let n=0;n<t.length;n++)if(r[n]!==t[n])return!1;return!0}ug(t){let e=Zt(t);return this.Ll(e,this.qy(t)),e}Ll(t,e){this.serializedNodeCount++,this.kl(),this.Ee[t]=e,this.ag(),this.Me.has(t)||this.Me.set(t,null)}isVirtualized(t){return Zt(t)in this.Ee}fg(t){var e;if(!cp.trackIframeContent||l(t,Ot)!=="iframe")return!1;let r=t;try{return!!r.contentDocument&&!!((e=r.contentWindow)!=null&&e.document)}catch(n){return!1}}lg(t,e){let r=Zt(t),n=this.z(r);if(!n){qr.warn(`No serialized node id ${r}`);return}if(!e){qr.warn(`No parent id for node id ${r}`);return}let a=this.nw(n.type);if(a==="childList"){let o=this.iw(t);this.$l(r,o,e,!0)}else{let o=this.z(e);o[a]=r,n.parent=e}}cg(t,e){var r,n,a;let o=Zt(t),u=this.Xy(t);if(!u){qr.warn(`Node was not serialized ${l(t,Ve)}`);return}switch(this.Ll(o,u),u.type){case ie.DOCUMENT_NODE:case ie.DOCUMENT_FRAGMENT_NODE:{let c=t;this.kn.set(o,c),this.G.observe(c),(r=c.adoptedStyleSheets)!=null&&r.length&&this.dg(c);break}case ie.TEXT_NODE:{l(t,Fs,qe,Ot)==="style"&&(u.data="");break}case ie.ELEMENT_NODE:{let c=t;switch(u.localName){case"iframe":this.fg(c)&&e.push(tC(c));break;case"link":c.rel==="stylesheet"&&c.sheet&&this.xn(c.sheet);break;case"style":{let f=c.sheet;f&&this.xn(f);break}default:zf(u.localName)&&(a=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null&&a.customElements.get(u.localName)&&this.gg(Zt(t.ownerDocument),u.localName);let p=this.ow(c);p.length>0&&this.hg(c,p),l(c,is)&&e.push(eC(c));break}break}}l(t,cl)&&e.push(JT(t))}gg(t,e){let r=this.z(t),n=r.customElements||(r.customElements={});n[e]=1}xl(t){let e=new Hl([t]),r=new Set;this.pg(t);let n;for(;n=e.shift();){if(r.has(n)){qr.warn(`Node id ${n} already visited during deletion process`);continue}r.add(n);let a=this.z(n);if(a){switch(a.type){case ie.DOCUMENT_NODE:case ie.DOCUMENT_FRAGMENT_NODE:this.G.disconnect(this.kn.get(n)),this.kn.delete(n)}this.kl(),delete this.Ee[n];for(let{nodeId:o}of cp.nodeRelationsEntries(a))e.push(o)}}}$l(t,e,r,n){t&&this.pg(t);let a;if(e){let o=this.z(e);a=o.nextSibling,o.nextSibling=t}else{let o=this.z(r);a=o.firstChild,o.firstChild=t}if(n&&t&&a!==t){let o=this.z(t);if(o.nextSibling=a,a){let u=this.z(a);u.previousSibling=t}}if(t){let o=this.z(t);o.parent=r,o.previousSibling=e}}lw(t){var e;let r=this.z(t),n=new Set;for(let a=r==null?void 0:r.firstChild;a;a=(e=this.z(a))==null?void 0:e.nextSibling){if(n.has(a)){qr.warn(`Cycle detected in children of node id ${t}, breaking traversal.`);break}n.add(a)}return n}Ys(t){let e="isConnected"in t?t:"ownerNode"in t?t.ownerNode:null;return e?e.isConnected:!0}pg(t){let e=this.z(t);if(e){if(e.previousSibling!==void 0){let r=this.z(e.previousSibling);r&&(r.nextSibling=e.nextSibling)}else if(e.parent!==void 0){let r=this.z(e.parent);r&&r.firstChild===t&&(r.firstChild=e.nextSibling)}if(e.nextSibling!==void 0){let r=this.z(e.nextSibling);r&&(r.previousSibling=e.previousSibling)}e.parent=void 0,e.nextSibling=void 0,e.previousSibling=void 0}}eg(t){try{let e=Zs.getAll(t);if(e)return bn(e)}catch(e){qr.error("FastDOM.serializeNodeMetadata",e)}}Cr(t){let e;for(;t.hasTimeLeft&&(e=this._a.shift());){if(this.processedMutationsCount++,!this.Ys(e.target))continue;if(!this.isVirtualized(e.target)){switch(e.type){case"styleSheetUpdated":case"styleSheetDisabledChanged":{let n=e.target.ownerNode;n&&this.isVirtualized(n)&&this.ba(n);break}}continue}let r=Zt(e.target);switch(e.type){case"attachShadow":{this.wa(e.shadowRoot),this.lg(e.shadowRoot,r);break}case"childList":{let n,a=this.lw(r);for(let o=l(e.target,cl);o;o=l(o,Ya)){this.wa(o);let u=Zt(o);a.delete(u),this.$l(u,n,r),n=u}this.$l(void 0,n,r);for(let o of a)this.xl(o);this.Dl(r)&&this.ba(e.target);break}case"characterData":{let n=this.z(r);n.type===ie.TEXT_NODE&&(this.Dl(n.parent)?(n.data="",this.ba(l(e.target,Fs))):n.data=e.target.data);break}case"attributes":{let n=jl(e.attributeNamespace,e.attributeName),a=e.target,o=this.z(r),u=a.getAttributeNS(e.attributeNamespace,e.attributeName);o.attributes=o.attributes||{},u===null?delete o.attributes[n]:o.attributes[n]=u;break}case"valueChanged":{let n=e.target,a=this.z(r);a.state=fa(a.state,o=>this.rg(n,o));break}case"validityChanged":{let n=e.target,a=this.z(r);a.state=fa(a.state,o=>this.og(n,o));break}case"overlayChanged":{let n=e.target,a=this.z(r);a.state=fa(a.state,o=>this.ng(n,o));break}case"scrollChanged":{this.ya.add(e.target);break}case"visibilityChanged":{let n=this.z(r),a=e.target.visibilityState;n.state=fa(n.state,o=>{o.visibility=a});break}case"viewportChanged":{let n=this.z(r);n.viewport=this.sg(e.target);break}case"screenChanged":{let n=this.z(r);n.screen=this.ig(e.target);break}case"setAdoptedStyleSheets":{this.dg(e.target);break}
16case"styleSheetUpdated":{this.xn(e.target);break}case"styleSheetDisabledChanged":{let n=this.z(r);n.disabled=e.target.disabled;break}case"animationUpdated":{this.hg(e.target);break}case"loaded":{switch(l(e.target,Ot)){case"link":{let n=e.target;n.rel==="stylesheet"&&n.sheet&&this.xn(n.sheet);break}case"iframe":{let n=e.target,a=this.z(r),o=n.contentDocument,u=o&&Zt(o);a.contentDocument&&a.contentDocument!==u&&(this.xl(a.contentDocument),delete a.contentDocument),this.fg(n)&&this.wa(o);break}}break}case"activeElementChanged":{let n=this.z(r),a=e.target.activeElement||void 0;n.activeId=a&&Zt(a);break}case"pointerOverElement":{let n=this.z(r),a=e.element||void 0;n.hoveredId=a&&Zt(a);break}case"customElementRegistration":{this.gg(r,e.name);break}case"metadataChanged":{let n=this.z(r);n.metadata=this.eg(e.target);break}}}}};return i.trackIframeContent=!1,i.cloneDeep=bn,i.findNodes=Xf,i.stringifyAttrKey=jl,i.parseAttrKey=XT,i})(),An=(()=>{class i{constructor(t){this.csId=Zt(t),this.props=Zs.getAll(t)}}return i})(),aC=(()=>{class i extends An{constructor(t){super(t),this.nodeType=4,this.data=t.data}}return i})(),oC=(()=>{class i extends An{constructor(t){super(t),this.nodeType=8,this.data=t.data}}return i})(),lC=(()=>{class i extends An{constructor(t){super(t),this.nodeType=9,this.baseURI=i.getBaseURI(t),this.children=[]}static getBaseURI(t){let e=t.baseURI;if(e==null){let r=t.getElementsByTagName("base");e=r.length!==0?r[0].href:t.URL}return e}}return i})(),hC=(()=>{class i extends An{constructor(t){super(t),this.nodeType=10,this.name=t.name,this.publicId=t.publicId,this.systemId=t.systemId}}return i})(),Zr={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11},em=(()=>{class i extends An{constructor(t){super(t),this.nodeType=3,this.data=t.data}}return i})(),im=(()=>{class i extends An{constructor(t){var e,r,n;super(t),this.attributes=[],this.nodeType=Zr.ELEMENT_NODE,this.localName=h0(t),this.namespaceURI=(e=t.namespaceURI)!=null?e:void 0,this.children=[];let a=E0(t);if(a){this.children=new Array(l(t,s_).length);let o=D.createTextNode(a),u=new em(o);l(this.children,I(u))}
16(vl(t)||Ru(t))&&(this.disabledSheet=(n=(r=t.sheet)==null?void 0:r.disabled)!=null?n:!1)}static isElement(t){return t.nodeType===Zr.ELEMENT_NODE}static getAttribute(t,e){return fl(t.attributes,r=>r.name===e)}static getAttributeValue(t,e){var r;return(r=this.getAttribute(t,e))==null?void 0:r.value}}return i})(),De=(()=>{let i;return(function(s){function t(u,c,p){var f;if(vn(u))Zs.set(u,c,p);else{let E=u;(f=E.props)!=null||(E.props={}),E.props[c]=p}}s.setProperty=t;function e(u,c){var p;return vn(u)?Zs.get(u,c):(p=u.props)==null?void 0:p[c]}s.getProperty=e;function r(u){return vn(u)?Zs.getAll(u):u.props}s.getProperties=r;function n(u,c){let p=null;return a(u,(f,E,g)=>c(f)&&(p=f)&&!!g()),p}s.findDescendant=n;function a(u,c){o(u,void 0,c)}s.traverse=a;function o(u,c,p){let f=!1;if(p(u,c,()=>f=!0),f)return;let E=u.shadowRoot;E&&o(E,u,p);let g=u.children;if(g!=null&&g.length){for(let R of g)if(R&&(o(R,u,p),f))break}}})(i||(i={})),i})(),uC=(()=>{class i extends An{constructor(t){super(t),this.children=[],this.nodeType=11,this.adoptedStyleSheets=[],this.mode=t.mode}}return i})(),sm={workTime:40,async:!0,initialDOM:!0},L1={serialize:nm()},yc=Symbol("InitialDom"),rm=Symbol.for("ignoreNextSerialization");function cC(i){return i[rm]?(delete i[rm],!0):!1}function nm(i=sm){return function(s,t){var e;(e=i.workTime)!=null||(i.workTime=sm.workTime);let r=vr("serialize:callback",f=>t(f)),n=new qu,a=(f,E)=>{f.hasChildNodes()&&n.push({node:f,serializedNode:E});let g=f instanceof Element&&l(f,is);if(g){let R=E.shadowRoot=Sc(g);i.async&&i.initialDOM&&De.setProperty(g,yc,!0),a(g,R)}},o,u=!0,c=8,p=vr("work",()=>{var f;if(u)o=Sc(s),i.async&&i.initialDOM&&De.setProperty(s,yc,!0),a(s,o),u=!1;else if(n.isEmpty)return;let E=dC(100);for(;!n.isEmpty;){if(i.async&&E.elapsed()>=i.workTime){--c<=0&&Ft(p);return}let{node:g,serializedNode:R}=n.pop(),k=(f=R.children)!=null?f:[];if(Cu(g))continue;let X=0;for(let U=l(g,cl);U;U=l(U,Ya)){if(cC(U))continue;let z=Sc(U);i.async&&i.initialDOM&&De.setProperty(U,yc,!0),k[X++]=z,a(U,z)}}i.async?Ft(()=>r(o)):t(o)});if(!i.async)i.workTime=1/0,p();else for(let f=0;f<c;f++)Ft(p,1)}}function Sc(i){let s,t;switch(l(i,Ve)){case 1:t=s=new im(i),s.attributes=pC(i);break;case 3:t=new em(i);break;case 4:t=new aC(i);break;case 8:t=new oC(i);break;case 10:t=new hC(i);break;case 9:t=new lC(i);break;case 11:t=new uC(i);break;default:throw new Error("Node type not supported: "+l(i,Ve))}return t}function dC(i){let s=0,t=mt.elapsed();return{started:t,elapsed(){return++s%i===0&&(t=mt.elapsed()),t-this.started}}}function pC(i){return Cu(i)?[]:$T.create(i)}function gC(i,s){let t=nm(Vt(Z({},s),{async:!1})),e;return t(i,r=>e=r),e}var Rr=(()=>{let i;return(function(s){s.EDITABLE_NODE_PROP="editableNode";function t(n){var a;return"nodeType"in n?De.getProperty(n,s.EDITABLE_NODE_PROP)===!0:((a=n.metadata)==null?void 0:a[s.EDITABLE_NODE_PROP])===!0}s.isEditableNode=t;function e(n){De.setProperty(n,s.EDITABLE_NODE_PROP,!0)}s.markEditableNode=e;function r(n){De.setProperty(n,s.EDITABLE_NODE_PROP,void 0)}s.unmarkEditableNode=r})(i||(i={})),i})(),In=(()=>{class i{constructor(){this.Y=null,this.D=null,this.L=!1,this.$n=t=>{for(let e of t)if(Rr.isEditableNode(e.target))for(let r=0;r<e.addedNodes.length;r+=1){let n=e.addedNodes[r];if(!Rr.isEditableNode(n)){if(ml(n)||f_(n)){Rr.markEditableNode(n);continue}Fe(n)&&this.mg(n)}}}}start(){this.L||(this.L=!0,this.Y=new js(t=>ne(t,e=>{this.mg(e)})),this.Y.observe("[contenteditable]"),this.D=new ys(this.$n,(t,e)=>e==="added"&&this.uw(t)),this.D.observe())}stop(){var t,e;this.L&&(this.L=!1,(t=this.Y)==null||t.disconnect(),this.Y=null,(e=this.D)==null||e.disconnect(),this.D=null)}mg(t){Ai(t).visitAll(e=>{Rr.markEditableNode(e)})}uw(t){Rr.isEditableNode(t.host)&&Rr.markEditableNode(t)}}return i})(),wn=(()=>{class i{constructor(){this.xt=[]}restart(){this.stop(),this.start()}start(){}stop(){this.xt.length=0,this.xt=[]}pushEvent(t,e){let r=e!=null?e:u=>{l(this.xt,et(c=>c(u)))},n=this.Ul,a={sourceEvent:t,emittedEvents:[]};this.Ul=a;let o;try{this.isListening(t)?o=vr("Processor:processEvent",u=>this.processEvent(u))(t):o=t}finally{this.Ul=n}if(a.error)throw a.error;o!=null&&r(o),l(a.emittedEvents,et(r))}subscribe(t){return l(this.xt,I(t)),()=>{this.xt=l(this.xt,xt(e=>e!==t))}}emitEvent(t){let e=this.Ul;if(!e)throw new Error("Cannot emit an event outside processor execution.");
16if(t.timestamp!==e.sourceEvent.timestamp){e.error=new Error("A processor-emitted event must use its source event timestamp.");return}l(e.emittedEvents,I(t))}}return i})(),fC="textarea",am=(()=>{class i extends wn{isListening(t){return t.type==="DOM_PATCH"||t.type==="DOM_INITIAL_STATE"}processEvent(t){let e=t.type==="DOM_PATCH"?t.diff:t.state,r=t.state;for(let n in e){let a=e[n],o=r[n];if(!o.parent||!("data"in a)||o.type!==3)continue;let u=r[o.parent];u||fe.warn(`AnonymizedEditableTextProcessor: Missing parent "${o.parent}" from node ${n} (${o.type}) (event: ${t.type})`,!0,"AnonymizedEditableTextProcessor.processFastDOM"),this.hw(a,o.metadata,u==null?void 0:u.localName)}return t}hw(t,e,r){this.fw(r,e)&&t.data!=null&&(t.data=this.gw(t.data))}gw(t){return l(t,jt(/\S/g,"\u2022"))}fw(t,e){return t===fC||(e==null?void 0:e[Rr.EDITABLE_NODE_PROP])===!0}}return b([Di("AnonymizedEditableTextProcessor.processEvent")],i.prototype,"processEvent",null),i})(),om=/[\u4E00-\u9FFF]|[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]/g,lm="\uFF41",mC=/[^0-9ï½\s]/g,vC=/[^ï½\s]/g,hm="a";function um(i){let s=l(i,jt(om,lm));return l(s,jt(mC,hm))}function EC(i){let s=l(i,jt(om,lm));return l(s,jt(vC,hm))}function yC(i,s){return l(i,jt(/\S/g,s==="number"?"0":"\u2022"))}var ma=(()=>{class i{constructor(t){this.timestamp=t,this.type="asyncEvent",this.Vl=!1}resolve(t){if(this.Vl)throw new Error("AsyncEvent already resolve.");this.Eg=Vt(Z({},t),{timestamp:this.timestamp}),this.Vl=!0,this.R&&this.R(this.Eg)}reject(t){return this.resolve(t)}complete(t){this.Vl&&t(this.Eg),this.R=t}wait(){return new Promise(t=>this.complete(t))}}return i})(),Wi=(()=>{class i{constructor(){this.xt=[],this.isStarted=!1}get name(){var t;return((t=this.constructor)==null?void 0:t.name)||"Producer"}produceEvent(t){return yt(this,null,function*(){var e;this.isStarted&&(t instanceof ma||(t.timestamp=(e=t.timestamp)!=null?e:mt.now()),l(this.xt,et(r=>r(t))))})}onStop(){}restart(){this.stop(),this.start()}start(){this.isStarted||(this.isStarted=!0,vr(`${this.name}.start`,()=>this.onStart())())}stop(){this.isStarted&&(this.isStarted=!1,vr(`${this.name}.stop`,()=>this.onStop())())}subscribe(t){return l(this.xt,I(t)),()=>{let e=l(this.xt,Dt(t));l(this.xt,Za(e,1))}}}return i})(),SC=5e3,cm=(()=>{class i extends Wi{constructor(){super(...arguments),this.Bl=0}get name(){return"DomStateProducer"}onStart(){return yt(this,null,function*(){this.Fl();let t=++this.Bl;this.Un||(this.Un=new tm().observe(D));let e=new ma(mt.now());this.produceEvent(e);let r=yield this.Un.getStateAsync();if(t!==this.Bl){e.reject({timestamp:e.timestamp,type:"warn",message:"DOM state generation outdated"});return}let n=tm.cloneDeep(r);e.resolve({type:"DOM_INITIAL_STATE",state:n}),this.yn=this.Un.onChange((a,o)=>{this.produceEvent({type:"DOM_PATCH",diff:a,state:o})})})}onStop(){var t;this.Bl++,(t=this.yn)==null||t.call(this),this.mw()}mw(){this.Fl(),this.Gl=Ft(()=>{this.destroy()},SC)}Fl(){this.Gl!==void 0&&(Ti(this.Gl),this.Gl=void 0)}destroy(){var t;this.Fl(),(t=this.Un)==null||t.disconnect(),this.Un=void 0}}return i})(),ct=(()=>{let i;return(function(s){let t;(function(U){U[U.NotMasked=0]="NotMasked",U[U.Parent=1]="Parent",U[U.Child=2]="Child"})(t=s.MaskedElementState||(s.MaskedElementState={})),s.maskedProp="masked",s.maskedAttributeProp="maskedAttribute";function e(U){return ss(U)&&"Attributes"in U&&"PIISelectors"in U?U.Attributes instanceof Array&&U.PIISelectors instanceof Array:!1}s.isSelectorUserInput=e;function r(U){if(!ss(U)||U===null)throw new ge("setPIISelectors");return"Attributes"in U||(U.Attributes=[]),"PIISelectors"in U||(U.PIISelectors=[]),U}s.sanitizeSelectorUserInput=r;function n(U){var z,dt,vt;return"nodeType"in U?(z=De.getProperty(U,s.maskedProp))!=null?z:{state:t.NotMasked}:(vt=(dt=U.metadata)==null?void 0:dt[s.maskedProp])!=null?vt:{state:t.NotMasked}}s.getMaskedElementDetails=n;function a(U){var z,dt,vt;return"nodeType"in U?(z=De.getProperty(U,s.maskedAttributeProp))!=null?z:{attributes:[]}:(vt=(dt=U.metadata)==null?void 0:dt[s.maskedAttributeProp])!=null?vt:{attributes:[]}}s.getMaskedAttributeDetails=a;function o(U){let z=De.getProperty(U,s.maskedProp);return(z==null?void 0:z.state)===t.Parent}s.isMaskedElement=o;function u(U){let z=De.getProperty(U,s.maskedProp);return(z==null?void 0:z.state)===t.Child}s.isMaskedElementChild=u;function c(U,z){let dt=De.getProperty(U,s.maskedAttributeProp);return l(dt,qe,"attributes",qe,Dt(z))>-1}s.isMaskedAttribute=c;function p(U,z){De.setProperty(U,s.maskedProp,z)}s.setMaskedElementProperty=p;function f(U){De.setProperty(U,s.maskedProp,void 0)}s.unsetMaskedElementProperty=f;function E(U,z){De.setProperty(U,s.maskedAttributeProp,z)}s.setMaskedAttributeProperty=E;function g(U,z){let dt=l(U.PIISelectors,xt(ht=>ui(ht)));z.elementSelector.length>0&&l(dt,I(...l(z.elementSelector,de(","))));let vt={elementSelector:X([...dt]).join(","),attrSelector:z.attrSelector,attr
16Selectors:z.attrSelectors};return l(U.Attributes,et(ht=>{ht!=null&&ht.attrName&&ht!=null&&ht.selector&&ui(ht.selector)&&!R(vt.attrSelectors,ht)&&l(vt.attrSelectors,I(ht))})),vt.attrSelector=k(vt.attrSelectors),vt}s.getComputedSelectorSettings=g;function R(U,z){return l(U,ye(dt=>dt.selector===z.selector&&dt.attrName===z.attrName))}function k(U){let z="";return l(U,et(dt=>{let vt=l(dt.selector,de(","));l(vt,et(ht=>{ui(ht)&&(z&&(z+=","),z+=ht)}))})),z}function X(U){if(U.length<=1)return U;let z=[];for(let dt of U){let vt=l(dt,de(","));for(let ht of vt)l(z,Dt(ht))===-1&&l(z,I(ht))}return z}})(i||(i={})),i})(),Tr=(()=>{class i extends Wi{constructor(t){super(),this.Y=null,this.Ra=null,this.D=null,this.Vn=null,this.Sg=["value","checked","src","data","alt"],this.Ta={state:ct.MaskedElementState.Child},this.Ew=e=>{for(let r of e){if(ct.isMaskedElement(r.target)||ct.isMaskedElementChild(r.target))for(let n=0;n<r.addedNodes.length;n+=1){let a=r.addedNodes[n];ct.isMaskedElement(a)||ct.isMaskedElementChild(a)||Fe(a)&&this._g(a)}for(let n=0;n<r.removedNodes.length;n+=1){let a=r.removedNodes[n];mi.isConnected(a)||this.yg(a)}}},this.vw=t}setMaskedElementSettings(t){this.Cs=t}startIdentifier(){this.isStarted||(this.isStarted=!0,this.onStart())}stopIdentifier(){return this.isStarted=!1,this.onStop()}start(){}stop(){}onStart(){var t,e,r,n;this.Cs||(fe.error("maskedElementSettings not initialized","MaskedElementIdentifier.start"),this.Cs={elementSelector:"",attrSelector:"",attrSelectors:[]});let{elementSelector:a,attrSelector:o,attrSelectors:u}=this.Cs;(t=this.Vn)!=null||(this.Vn=this.Sw()),a.length!==0&&((e=this.Y)!=null||(this.Y=this._w()),this.Y.observe(a)),o.length!==0&&((r=this.Ra)!=null||(this.Ra=this.yw(u)),this.Ra.observe(o)),(n=this.D)!=null||(this.D=new ys(this.Ew,(c,p)=>p==="added"&&this.bw(c))),this.D.observe(),Ft(this.vw)}onStop(){var t,e,r;this.Y&&(this.yg(D),this.Y.disconnect()),(t=this.Ra)==null||t.disconnect(),(e=this.D)==null||e.disconnect(),(r=this.Vn)==null||r.disconnect()}Sw(){return v.ResizeObserver?new ResizeObserver(t=>{v.requestAnimationFrame(()=>{l(t,et(e=>{this.resizeObserverCallback(e)}))})}):null}_w(){return new js(t=>{l(t,et(e=>{this.Rw(e)?this._g(e):(this.Tw(e),this.Cw(e))}))})}yw(t){return new js(e=>{l(e,et(r=>this.Aw(r,t)))})}resizeObserverCallback(t){let e=t.target.getBoundingClientRect(),r=ct.getMaskedElementDetails(t.target);if(r.state!==ct.MaskedElementState.Parent||e.width===r.width&&e.height===r.height)return;let n={state:ct.MaskedElementState.Parent,width:e.width,height:e.height};ct.setMaskedElementProperty(t.target,n),this.produceEvent({type:"ResizeMaskedElement",target:Zt(t.target),width:e.width,height:e.height})}Cw(t){!this.Vn||!Fe(t)||Cu(t)||this.Vn.observe(t)}Rw(t){let e=l(t,es);return e?ct.isMaskedElement(e)||ct.isMaskedElementChild(e):Bs(t)?ct.isMaskedElement(t.host)||ct.isMaskedElementChild(t.host):!1}bw(t){(ct.isMaskedElement(t.host)||ct.isMaskedElementChild(t.host))&&ct.setMaskedElementProperty(t,this.Ta)}yg(t){Ai(t,NodeFilter.SHOW_ELEMENT).visitAll(e=>{ct.unsetMaskedElementProperty(e),t===D&&ot.counters.dom.add("size",1)})}Tw(t){let e=t.getBoundingClientRect(),r={state:ct.MaskedElementState.Parent,width:e.width,height:e.height};ct.setMaskedElementProperty(t,r),this.Iw(t),Ai(t).visitAll(n=>n!==t&&ct.setMaskedElementProperty(n,this.Ta))}_g(t){ct.setMaskedElementProperty(t,this.Ta),Ai(t).visitAll(e=>e!==t&&ct.setMaskedElementProperty(e,this.Ta))}Iw(t){var e;let r=(e=De.getProperty(t,ct.maskedAttributeProp))!=null?e:{attributes:[]};for(let n=0;n<this.Sg.length;n+=1){let a=this.Sg[n];l(r.attributes,Dt(a))===-1&&l(r.attributes,I(a))}r.attributes.length!==0&&ct.setMaskedAttributeProperty(t,r)}Aw(t,e){var r;let n=(r=De.getProperty(t,ct.maskedAttributeProp))!=null?r:{attributes:[]};for(let a=0;a<l(t,gn).length;a+=1){let o=l(t,gn)[a].name;l(n.attributes,Dt(o))===-1&&l(e,ye(u=>l(u.attrName,Bt(o))>-1&&Li.call(t,u.selector)))&&l(n.attributes,I(o))}n.attributes.length!==0&&ct.setMaskedAttributeProperty(t,n)}}return b([J()],i.prototype,"resizeObserverCallback",null),i})(),Kr=(()=>{class i extends Wi{constructor(t){super(),this.Pw=t,this.Hn=new ef(this.Mw.bind(this))}onStart(){this.Hn.observe()}onStop(){this.Hn.disconnect()}Mw(t,e){let r=this.Nw(t,e);r&&this.produceEvent(r)}Nw(t,e){var r;return this.Ow(t)?{type:"Gesture",targetId:Zt(t.target),targetInfo:(r=this.Pw)==null?void 0:r.call(this,t,e),data:{type:t.type,direction:t.direction,distance:t.distance,velocity:t.velocity,pageX:t.pageX,pageY:t.pageY}}:null}Ow(t){return vn(t.target)&&!(Fe(t.target)&&ct.isMaskedElementChild(t.target))}}return i})(),_C=(()=>{class i extends Wi{constructor(){super(...arguments),this.wg=new rf(t=>this.kw(t))}kw({message:t,filename:e,lineno:r,colno:n}){t=t!=null?t:"[NO ERROR MESSAGE]",e=!e||Gi(e)?"":e,this.produceEvent({type:"JSError",message:t,filename:e,lineno:r,colno:n})}onStart(){this.wg.observe()}onStop(){this.wg.disconnect()}}return i})(),dm=(()=>{class i extends Wi{constructor(){super(...arguments),this.Ca=null,this.bg=new sf(t=>{if(this.Ca)return;let e=this.Dw(t);e&&(this.Ca=e,this.produceEvent(e))})}
16onStart(){if(this.Ca){this.produceEvent(Vt(Z({},this.Ca),{timestamp:mt.now()}));return}this.bg.observe()}onStop(){this.bg.disconnect()}Dw(t){let e=sf.getTimeOrigin();return{type:"PerformanceTiming",timings:{timeOrigin:e,requestStart:Math.floor(e+t.requestStart),domInteractive:Math.floor(e+t.domInteractive)},timestamp:mt.now()}}}return i})(),pm=(()=>{let i;return(function(s){function t(e){return e.type==="TextVisibility"}s.isTextVisibilityEvent=t})(i||(i={})),i})();function gm(i){var s;let t=(s=i.attributes)==null?void 0:s.type;if(t!=null)return l(t.toLowerCase(),ai())}var go=(()=>{class i extends wn{constructor(t,e,r=new Qe,n=null,a=!1){super(),this.O=r,this.Nr=n,this.captureAnonymizedPlaceholders=a,this.Ia=new LC(t,e,r,n,a)}setAnonymization(t){this.Ia.setAnonymization(t)}setAnonymizeDigits(t){this.Nr=t,this.Ia.setAnonymizeDigits(t)}isListening(t){return t.type==="DOM_PATCH"||t.type==="DOM_INITIAL_STATE"||pm.isTextVisibilityEvent(t)}processEvent(t){var e,r;if(pm.isTextVisibilityEvent(t))return t.text=this.O.checkAndAnonymizePII(t.text,this.Nr),t;let n=t.type==="DOM_PATCH"?t.diff:t.state,a=t.state;for(let o in n){let u=a[o];if(!u){fe.warn(`AnonymizedTextProcessor: Missing node ${o} in state (event: ${t.type})`,!0,"AnonymizedTextProcessor.handleFastDom");continue}let c=u.parent,p=c?a[c]:void 0;switch(u.type){case Zr.TEXT_NODE:case Zr.COMMENT_NODE:{let f=n[o];if(f.data==null)continue;if(p||fe.warn(`AnonymizedTextProcessor: Missing parent "${c}" from node ${o} (${u.type}) (event: ${t.type})`,!0,"AnonymizedTextProcessor.handleFastDom"),(p==null?void 0:p.localName)==="script"){f.data="";continue}let{anonymizedValue:E,withAnonymization:g}=this.Ia.getAnonymizedValue((e=f.data)!=null?e:"",p==null?void 0:p.localName,p==null?void 0:p.metadata);f.anonymized=g,f.data=E;break}case Zr.ELEMENT_NODE:{let f=n[o];if(f.attributes)for(let E in f.attributes){let g=f.attributes[E];if(g==null)continue;let R=gm(u);f.attributes[E]=this.Ia.getAnonymizedAttributeValue(u.namespaceURI,u.localName,E,g,R)}(r=f.state)!=null&&r.value&&(f.state.value=yC(f.state.value,gm(u)));break}}}return t}}return b([Di("AnonymizedTextProcessor.processEvent")],i.prototype,"processEvent",null),i})(),RC=/(?:^|[{;])\s*(?!--)[\w-]+:\s*(?=;)/g;function TC(i){let s=0;for(let t in i){let e=i[t];if(typeof e!="string")continue;let r=l(e,mn(RC));r&&(s+=r.length)}return s}var fm=(()=>{class i extends wn{constructor(){super(...arguments),this.cssomVarFallbackCount=0}isListening(t){return t.type==="DOM_INITIAL_STATE"||t.type==="DOM_PATCH"}processEvent(t){let e=0,r=t.type==="DOM_PATCH"?t.diff:t.state;for(let n in r){let a=t.state[n];if(!a||a.type!==ie.CSS_STYLESHEET_NODE)continue;let o=r[n];o.cssRules&&(e+=TC(o.cssRules))}return e>0&&(this.cssomVarFallbackCount+=e,ot.counters.cssomVarFallback.count("detected",e)),t}}return i})(),CC=(()=>{class i extends wn{constructor(t){super(),this.Vw=t,this.ql=1024,this.Yl=150}isListening(t){return t.type==="JSError"}processEvent(t){return t.message=Ae.truncate(t.message,this.ql,Ae.ELLIPSIS),t.filename=Ae.truncate(t.filename,this.Yl,Ae.ELLIPSIS),this.Vw(t)}}return i})(),mm=(()=>{class i extends wn{isListening(t){return t.type==="DOM_PATCH"||t.type==="DOM_INITIAL_STATE"}processEvent(t){let{MaskedElementState:e}=ct,r=t.type==="DOM_PATCH"?t.diff:t.state,n=t.state,a=new Map,o=0;function u(c){let p=`${c}`,f=a.get(p);if(f!==void 0)return f;let E=n[c];if(!E)return a.set(p,!1),!1;let{state:g}=ct.getMaskedElementDetails(E);if(g===e.Child||g===e.Parent)return a.set(p,!0),!0;let R=E.parent!=null?u(E.parent):!1;return a.set(p,R),R}for(let c in r){let p=r[c],f=n[c],E=ct.getMaskedElementDetails(f);if(!f.parent){E.state!==e.NotMasked?fe.error(`MaskedElementProcessor: node without parent in diff with masking details, this should not happen (id: ${c})`):f.type!==ie.DOCUMENT_NODE&&f.type!==ie.CSS_STYLESHEET_NODE&&fe.error(`MaskedElementProcessor: node without parent in diff, this should not happen (id: ${c})`);continue}if(E.state===e.Child||u(f.parent)){delete r[c],a.set(c,!0);continue}f.type===ie.ELEMENT_NODE&&(this.Hw(p,f),E.state===e.Parent&&(a.set(c,!0),this.Xl(p,E),o++))}return o>0&&ot.counters.sensitiveElements.count("masked-elements",o),t}Hw(t,e){if(!t.attributes)return;let{attributes:r}=ct.getMaskedAttributeDetails(e);if(r!=null&&r.length)for(let n of r)delete t.attributes[n]}Xl(t,e){var r;let n=`width: ${e.width}px !important; height: ${e.height}px !important;`;(r=t.attributes)!=null||(t.attributes={}),delete t.firstChild,delete t.shadowRoot,t.attributes.style=n,t.attributes["data-cs-mask"]||(t.attributes["data-cs-mask"]="")}}return b([Di("MaskedElementProcessor.processEvent")],i.prototype,"processEvent",null),i})(),vm=(()=>{let i=class $r{static toStaticResourceEvent(t,e,r){return yt(this,null,function*(){let n=yield $r.jw(t);if(!n)return null;let a=yield $r.Ag(n),o=Gi(t)?void 0:t,u={type:"StaticResourceManagerEvent",timestamp:r,resourceId:e,resource:{hash:a,data:n}};return o&&(u.originalResourceName=o),u})}static toCSSStaticResourceEvent(t,e,r,n){return yt(this,null,function*(){let a=yield $r.Bw(t,n),o=Br(t),u=a.get(o);if(!u)return null;
16let c={type:"StaticResourceManagerEvent",timestamp:r,resourceId:e,resource:{hash:u.hash,data:u.data}};return a.delete(o),a.size&&(c.nestedResources=[],a.forEach(p=>{p&&l(c.nestedResources,I({hash:p.hash,data:p.data}))})),c})}static Ag(t){return yt(this,null,function*(){let e=yield l(t,Gp()),r=yield crypto.subtle.digest(this.Ig,e);return Du(r)})}static jw(t){return yt(this,null,function*(){let e;if(!Gi(t))e=yield(yield v.fetch(t)).blob();else{let r=_g(t);if(!r)return null;e=r}return e})}static Bw(t,e){return yt(this,null,function*(){let r=new Map,n=Br(t),a=[{resourceRawPath:t,resourceAbsolutePath:n}];for(;a.length>0;){let o=l(a,ra());if(!e&&o.resourceAbsolutePath!==null&&!Gi(o.resourceAbsolutePath)){r.set(o.resourceAbsolutePath,null);continue}if(r.get(o.resourceAbsolutePath)===void 0)try{if(o.resourceRawPath===null||l(o.resourceRawPath,Bt(".css"))>0){if(!o.data){let p=yield fetch(o.resourceAbsolutePath);o.data=yield p.text()}o.nestedResources||(o.nestedResources=ca(o.data));let u=!1,c=!1;for(let p of o.nestedResources){let f=Gi(p)?p:o.resourceAbsolutePath?wg(p,o.resourceAbsolutePath):Br(p),E=r.get(f);if(E!==void 0){if(E!==null){let g=$r.Fw(E,p);o.data=Ae.stringReplaceAll(o.data,p,g)}continue}fl(a,g=>g.resourceAbsolutePath===f)!==void 0||(u=!0,c||(l(a,I(o)),c=!0),l(a,I({resourceRawPath:p,resourceAbsolutePath:f})))}if(!u){let p=yield $r.Gw(o.data);r.set(o.resourceAbsolutePath,{hash:p.hash,data:p.data})}}else{let u;if(!Gi(o.resourceAbsolutePath))u=yield(yield fetch(o.resourceAbsolutePath)).blob();else{let p=_g(o.resourceAbsolutePath);if(!p){r.set(o.resourceAbsolutePath,null);continue}u=p}let c=yield $r.Ag(u);r.set(o.resourceAbsolutePath,{hash:c,data:u})}}catch(u){r.set(o.resourceAbsolutePath,null)}}return r})}static Fw(t,e){let r=`cs://resources/${t.hash}`;return Gi(e)||(r+=`?${$r.Kl}=${e}`),r}static Gw(t){return yt(this,null,function*(){let e=new Blob([t],{type:"text/css"}),r=yield l(e,Gp()),n=yield crypto.subtle.digest($r.Ig,r);return{data:e,hash:Du(n)}})}};return i.Ig="SHA-256",i.Kl="original-resource-name",i})(),_c=jl("http://www.w3.org/1999/xlink","href"),Cr=(()=>{class i extends wn{get busy(){return this.Zl>0}constructor(){super(),this.zw="cssrm://",this.Ww=1,this.As=!1,this.Zl=0}isListening(t){return i.isSupported()?t.type==="DOM_PATCH"||t.type==="DOM_INITIAL_STATE":!1}processEvent(t){var e;let r=t.type==="DOM_PATCH"?t.diff:t.state;for(let n in r){let a=r[n],o=t.state[n],u=t.state[o.parent];switch(o.type){case ie.TEXT_NODE:this.qw(a,u==null?void 0:u.localName,t.timestamp);break;case ie.CSS_STYLESHEET_NODE:{if(a=a,a.cssRules)for(let c in a.cssRules){let p=a.cssRules[c];if(typeof p!="string")continue;let f=this.Ql(p,t.timestamp);f!==null&&(a.cssRules[c]=f)}break}case ie.ELEMENT_NODE:{a=a;let c=a.attributes;if(!c)continue;if(typeof c.style=="string"&&(c.style=this.Ql(c.style,t.timestamp)),(this.Yw(o.localName)||this.Xw(o.localName,u==null?void 0:u.localName))&&(typeof c.src=="string"&&(c.src=this.Jl(c.src,t.timestamp)),typeof c.srcset=="string"&&(c.srcset=this.Kw(c.srcset,t.timestamp))),this.Zw(o.localName)&&(typeof c.href=="string"&&(c.href=this.Jl(c.href,t.timestamp)),typeof c[_c]=="string"&&(c[_c]=this.Jl(c[_c],t.timestamp))),this.As&&o.localName==="link"&&(e=c.href)!=null&&e.length&&c.rel==="stylesheet"){let p=this.Or(Br(c.href),!0,t.timestamp);c["data-cs-original-href"]=c.href,c.href=p}}}}return t}disableOnlineAssets(){this.As=!1}enableOnlineAssets(){this.As=!0}isOnlineAssetsActivated(){return this.As}qw(t,e,r){if(!t||e!=="style"||t.data==null)return;let n=this.Ql(t.data,r);n!==null&&(t.data=n)}Jl(t,e){return Gi(t)||this.As?this.Or(t,!1,e):t}Kw(t,e){if(!this.As)return t;let r=t,n=Lu(t);for(let a of n){let o=this.Or(Br(a),!1,e);r=l(r,jt(a,o))}return r}Ql(t,e){let r=ca(t),n=t;for(let a of r){let o=Gi(a);if(!(o||this.As)||this.Qw(a))continue;let u=Nl(a),c=a;o?c=this.Or(a,!1,e):this.As&&(u?c=this.Or(a,!0,e):c=this.Or(Br(a),!1,e)),n=l(n,jt(a,c))}return n}Or(t,e,r){let n=this.Ww++;this.Zl++;let a=e?vm.toCSSStaticResourceEvent:vm.toStaticResourceEvent,o=new ma(r);return yt(this,null,function*(){try{let u=yield a(t,n,r,this.As);u?o.resolve(u):o.resolve({type:"warn",message:`Failed to process static resource: ${t}`})}catch(u){o.resolve({type:"warn",message:u})}finally{this.Zl--}}),this.emitEvent(o),this.zw+n}Yw(t){return t==="img"}Zw(t){return t==="image"}Xw(t,e){return t==="source"&&e==="picture"}static isSupported(){return bg()&&s0()&&!!Array.from}Qw(t){return l(t,jt(/['"]+/g,"")).length===0}}return b([Di("StaticResourceManagerProcessor.processEvent")],i.prototype,"processEvent",null),i})(),Em=(()=>{class i extends wn{constructor(t){super(),this.lt=t}isListening(t){return t.type==="DOM_INITIAL_STATE"}processEvent(t){for(let e of Xf(t.state,r=>r.type===ie.DOCUMENT_NODE))e&&e.type===ie.DOCUMENT_NODE&&(e.baseURI=this.lt.anonymizeUrl(e.baseURI));return t}}return b([Di("UrlAnonymizationProcessor.processEvent")],i.prototype,"processEvent",null),i})();function bC(i){return De.traverse(i,s=>
16{if(s.nodeType===Zr.DOCUMENT_FRAGMENT_NODE){let t=De.getProperty(s,"styles");t&&(s.adoptedStyleSheets=t)}}),i}function AC(i){if(i!=null&&i.length)return Su(i,s=>wC(s))}function IC(){Ai(D).visitAll(i=>{var s;if(Bs(i)&&((s=i.adoptedStyleSheets)==null?void 0:s.length)>0){let t=AC(i.adoptedStyleSheets);De.setProperty(i,"styles",t)}})}function wC(i){let s=[];try{s=Su(i.cssRules,t=>t.cssText)}catch(t){}return{cssRules:s,disabled:i.disabled}}var NC=["id","class","style","srcset","sizes","rel","type","width","height","media","align","dir","bgcolor","color","border","colspan","rowspan","cols","rows","size","start","slot","data-cs-override-id"],Kl=i=>{let s=new Set(NC);return l(i,et(t=>{s.add(t)})),s},PC=["svg","slot"],kC=(i,s,t)=>t==="radio"&&i==="input"&&s==="name"||l(PC,Dt(i))>-1,ym={href:new Set(["a"]),src:new Set(["iframe"])},OC=i=>ym.hasOwnProperty(i),MC=(i,s,t)=>{var e;return((e=ym[s])==null?void 0:e.has(i))&&!Gi(t)},DC=(i,s,t)=>(t==="submit"||t==="button")&&i==="input"&&s==="value";function Rc(i){return i?xC(i):null}function xC(i){try{let s=/^\/(.*)\/([gim]*)$/.exec(i);if(s){let[,t,e]=s;return new Re(`^${t}$`,e)}return new Re(`^${i}$`)}catch(s){return null}}var LC=(()=>{class i{constructor(t,e,r,n=null,a=!1){this.ls=t,this.Jw=e,this.O=r,this.Nr=n,this.tb=a,this.Bn=Kl(this.Jw)}sanitize(t){return De.traverse(t,(e,r)=>{if(e.anonymized=this.ls,e.nodeType===Zr.TEXT_NODE){let n=e,{anonymizedValue:a,withAnonymization:o}=this.getAnonymizedValue(n.data,r==null?void 0:r.localName,r?De.getProperties(r):void 0);e.anonymized=o,n.data=a;return}if(im.isElement(e))return this.eb(e);if(e.nodeType===Zr.CDATA_SECTION_NODE){let n=e;n.data=this.O.checkAndAnonymizePII(n.data,this.Nr),this.ls&&(n.data=um(n.data));return}}),t}setAnonymization(t){this.ls=t}setAnonymizeDigits(t){this.Nr=t}getAnonymizedValue(t,e,r){let n;if(e==="style")return{anonymizedValue:t,withAnonymization:!1};let a=(r==null?void 0:r[ns.ANONYMIZED_TEXT_STATUS_PROP])===ns.WHITELISTED_STATUS;return n=this.O.checkAndAnonymizePII(t,this.Nr,a),this.ls&&!a?{anonymizedValue:um(n),withAnonymization:!0}:{anonymizedValue:n,withAnonymization:!1}}eb(t){let e=fl(t.attributes,n=>n.name==="type"),r=e==null?void 0:e.value;t.attributes=l(t.attributes,$t(n=>(n.anonymized=this.ls,n.value=this.getAnonymizedAttributeValue(t.namespaceURI,t.localName,n.name,n.value,r),n)))}getAnonymizedAttributeValue(t,e,r,n,a){if(t==="http://www.w3.org/2000/svg"||t==="svg"||this.sb(e,r,a))return n;if(OC(r))return MC(e,r,n)?this.O.anonymizePII(n):n;let o=this.tb&&r==="placeholder";return this.ls&&(DC(e,r,a)||o)?EC(n):this.ls?"":this.O.checkAndAnonymizePII(n,null)}sb(t,e,r){return kC(t,e,r)||this.Bn.has(e)}}return i})(),ns=(()=>{let i;return(function(s){s.ANONYMIZED_TEXT_STATUS_PROP="anonymizationStatus",s.WHITELISTED_STATUS="whitelisted";function t(n){return De.getProperty(n,s.ANONYMIZED_TEXT_STATUS_PROP)===s.WHITELISTED_STATUS}s.isWhitelistedElement=t;function e(n){De.setProperty(n,s.ANONYMIZED_TEXT_STATUS_PROP,s.WHITELISTED_STATUS)}s.whitelistElement=e;function r(n){De.setProperty(n,s.ANONYMIZED_TEXT_STATUS_PROP,void 0)}s.removeWhitelistElement=r})(i||(i={})),i})(),_s=(()=>{class i{constructor(){this.tu=0,this.L=!1,this.Pg="data-cs-capture",this.$n=t=>{for(let e of t){if(ns.isWhitelistedElement(e.target))for(let r=0;r<e.addedNodes.length;r+=1){let n=e.addedNodes[r];ns.isWhitelistedElement(n)||Fe(n)&&this.Mg(n)}for(let r=0;r<e.removedNodes.length;r+=1){let n=e.removedNodes[r];mi.isConnected(n)||this.Ng(n)}}}}start(){this.tu++,!this.L&&(this.L=!0,this.rb())}rb(){this.Y||(this.Y=new js(e=>ne(e,r=>this.Mg(r))));let t=this.eu?`[${this.Pg}], ${this.eu}`:`[${this.Pg}]`;this.Y.observe(t),this.D||(this.D=new ys(this.$n,(e,r)=>r==="added"&&this.nb(e))),this.D.observe()}stop(){this.L&&(this.tu--,this.tu===0&&(this.L=!1,this.ob()))}ob(){this.Y&&(this.Ng(D),this.Y.disconnect()),this.D&&this.D.disconnect()}setWhitelistedElementsSelector(t,e=!0){if(ui(t))this.eu=t;else if(e)throw new ge("setCapturedElementsSelector")}getWhitelistedElementsSelector(){return this.eu}Mg(t){Ai(t).visitAll(e=>{ns.whitelistElement(e)})}nb(t){ns.isWhitelistedElement(t.host)&&ns.whitelistElement(t)}Ng(t){Ai(t,NodeFilter.SHOW_ELEMENT).visitAll(e=>{ns.removeWhitelistElement(e)})}}return i})(),Sm=(()=>{class i{}return i})();function _m(i,s){let t=new Cm;return i.subscribe(e=>s.transform(e,r=>t.push(r))),t}function Rm(i,s){return i.subscribe(t=>s.write(t))}function Tm(i,s=2){let t=[];for(let e=0;e<s;e+=1)l(t,I(new Cm));return i.subscribe(e=>{for(let r=0;r<t.length;r+=1)t[r].push(e)}),t}var Cm=(()=>{class i{constructor(){this.wt=[]}subscribe(t){return l(this.wt,I(t)),()=>{let e=l(this.wt,Dt(t));e!==-1&&l(this.wt,Za(e,1))}}push(t){let e=this.wt;for(let r=0;r<e.length;r+=1)e[r](t)}pipeThrough(t){return _m(this,t)}pipeTo(t){return Rm(this,t)}tee(t=2){return Tm(this,t)}}return i})(),bm=(()=>{class i{constructor(){this.Tt=new qu,this.R=null,this.iu=!1,this.Ts=0}get queueLength(){return this.Tt.length}start(t){if(this.R)throw new Error("callback already set");this.R=t,this.drain()}push(t){if(!this.R)return;let e={resolved:!(t instanceof ma),value:t instanceof ma?void 0:t};
16if(this.Tt.push(e),t instanceof ma){let r=this.Ts;t.complete(n=>{!this.R||r!==this.Ts||(e.value=n,e.resolved=!0,this.drain())})}this.drain()}stop(){this.R=null,this.Ts++,this.Tt=new qu}drain(t){if(this.R===null||this.iu)return;let e=(t==null?void 0:t.dropPendingAsync)===!0;e&&this.Ts++,this.iu=!0;try{for(;this.Tt.length>0&&(e||this.Tt.peek().resolved)&&this.R!==null;){let r=this.Tt.pop();r.resolved&&this.R(r.value)}}finally{this.iu=!1}}static pipe(t){let e=l(t,$t(()=>new i)),r=new UC(e),n=r;for(let a=t.length-1;a>=0;a--){let o=e[a],u=n;o.start(c=>t[a].pushEvent(c,p=>u.push(p))),n=o}return{input:n,output:r}}}return i})(),UC=(()=>{class i extends bm{constructor(t){super(),this.ru=t}get queueLength(){return super.queueLength+this.ru.reduce((t,e)=>t+e.queueLength,0)}stop(){super.stop(),ne(this.ru,t=>t.stop())}drain(t){t!=null&&t.dropPendingAsync&&ne(this.ru,e=>e.drain(t)),super.drain(t)}}return i})(),Am="__csRecorderDrain__",Ni=(()=>{class i{constructor(t=[],e=[]){this.producers=t,this.processors=e,this.Rt=!1,this.wt=[],this.nu=[]}get pendingEvents(){var t,e;return(e=(t=this.Tt)==null?void 0:t.queueLength)!=null?e:0}addProducer(t){l(this.producers,I(t)),this.Rt&&(this.kg(t),t.start())}restartProducers(t){this.Rt&&ne(t,e=>e.restart())}addProcessor(t){if(this.Rt)throw new Error("Cannot add a processor while active.");l(this.processors,I(t))}activate(){this.Rt||this.Dg()}deactivate(){this.Rt&&(ne(this.producers,t=>t.stop()),ne(this.nu,t=>t()),this.nu=[],this.Tt.stop(),ne(this.processors,t=>t.stop()),this.Rt=!1)}start(){if(this.Rt)throw new Error("Recording is already started.");this.Dg()}stop(){this.deactivate()}Dg(){let{input:t,output:e}=bm.pipe(this.processors);this.Lg=t,this.Tt=e,this.Tt.start(r=>this.cb(r)),ne(this.processors,r=>r.start()),this.Rt=!0,ne(this.producers,r=>this.kg(r)),ne(this.producers,r=>r.start())}kg(t){l(this.nu,I(t.subscribe(e=>this.Lg.push(e))))}cb(t){if(t.type===Am){t.resolve();return}l(this.wt,et(e=>e(t)))}drain(t){return this.Rt?t!=null&&t.dropPendingAsync?(this.Tt.drain({dropPendingAsync:!0}),Promise.resolve()):new Promise(e=>{this.Lg.push({type:Am,timestamp:0,resolve:e})}):Promise.resolve()}subscribe(t){if(this.Rt)throw new Error("Recording is already active.");return l(this.wt,I(t)),()=>this.wt=l(this.wt,xt(e=>e!==t))}tee(t=2){return Tm(this,t)}pipeThrough(t){return _m(this,t)}pipeTo(t){return Rm(this,t)}}return i})(),Im=gf("CS_CONF"),$C=/^\d+\.\d+(?:\.\d+)?$/,VC=i=>{if(!$C.test(i))return;let[s,t,e]=l(i,de("."),$t(Number));return{major:s,minor:t,patch:!e||Number.isNaN(e)?0:e}},FC=(i,s)=>i.major!==s.major?i.major-s.major:i.minor!==s.minor?i.minor-s.minor:i.patch-s.patch,HC=(i,s)=>FC(i,s)>=0,BC={EMIT_DEBUG_EVENTS:!1},zC=1,Tc=(()=>{let i;return(function(s){s[s.Disabled=0]="Disabled",s[s.ButtonAndLinkOnly=1]="ButtonAndLinkOnly",s[s.Enabled=2]="Enabled"})(i||(i={})),i})(),Xl=(()=>{let i;return(function(s){s[s.Automatic=1]="Automatic",s[s.Manual=2]="Manual"})(i||(i={})),i})(),lt=(()=>{class i{constructor(t){var e,r,n,a,o,u,c,p,f,E,g;this.isChild=!1,this.isSMB=!!t.isSMB,this.trackerDomain=t.trackerDomain,this.dynamicConfDomain=t.dynamicConfDomain,this.settingsFileUri=t.settingsFileUri,this.tagDomain=t.tagDomain,this.loggerDomain=t.ed,this.minLogLevel=t.logLevel,this.maxLogs=t.maxLogs,this.projectId=t.projectId,this.smbConfig=t.smbConfig,this.status=t.status,this.hostnames=t.hostnames,this.urlBlacklist=(n=t.urlBlacklist)!==null&&n!==void 0?n:[],this.iframesTracking=!!t.iframesTracking,this.crossDomainTracking=!1,this.crossDomainSingleIframeTracking=!!t.crossDomainSingleIframeTracking,this.consentRequired=t.anonymisationMethod===Fl.replayRecordingUnmaskedUrlRegexRules||t.anonymisationMethod===Fl.replayRecordingUnmaskedUrlRegex||t.anonymisationMethod===null&&!!t.consentRequired,this.allowSubdomains=!!t.allowSubdomains,this.visitorCookieTimeout=t.visitorCookieTimeout||xu,this.sampleRate=t.sampleRate,this.replayRecordingRate=t.replayRecordingRate,this.validationRate=t.validationRate,this.lastTrackingDraw=t.lastTrackingDraw||1,this.useHttps=!0,this.eMerchandisingEnabled=!1,this.jsErrorsEnabled=!0,this.collectionEnabled=!!((o=(a=t.collectionEnabled)!==null&&a!==void 0?a:(e=t.smbConfig)===null||e===void 0?void 0:e.record)!==null&&o!==void 0&&o),this.apiErrors=Z({enabled:0},t.apiErrors),this.customErrors=Z({enabled:0},t.customErrors),this.jsCustomErrorsEnabled=t.jsCustomErrorsEnabled,this.triggerSessionReplayEnabled=t.triggerSessionReplayEnabled,this.triggerSessionReplayRegex=Rc(t.triggerSessionReplayRegex),this.dynamicIdRegex=t.dynamicIdRegex?new Re(t.dynamicIdRegex):null,this.whitelistedAttributes=t.whitelistedAttributes||[],this.replayRecordingUnmaskedUrlRegex=Rc(t.replayRecordingUnmaskedUrlRegex),this.replayRecordingMaskedUrlRegex=Rc(t.replayRecordingMaskedUrlRegex),this.replayRecordingMaskedUrlRegexRules=t.replayRecordingMaskedUrlRegexRules||null,this.replayRecordingUnmaskedUrlRegexRules=t.replayRecordingUnmaskedUrlRegexRules||null,this.maskMedia=t.maskMedia,this.anonymisationMethod=t.anonymisationMethod||null,this.tagDeploymentMode=t.tagDeploymentMode,this.dualCollectionTagDomain=t.dualCollectionTagDomain||null,this.ptcDomain=t.ptcDomain||null,this.ptcGuid=t.ptcGuid||null,this.secureCookiesEnabled=!!t.secureCookiesEnabled,this.ptcSha512=t.ptcSha512||null,this.ptcSnapsh
16otPath=t.ptcSnapshotPath||null,this.emitDebugEvents=BC.EMIT_DEBUG_EVENTS,this.staticResourceManagerDomain=t.staticResourceManagerDomain||null,this.malkaRecordingDomain=t.malkaRecordingDomain||null,this.textVisibilityEnabled=!1,this.experimental=t.experimental||{},this.malkaEtrEnabled=!!t.malkaEtrEnabled,this.malkaUrlEnabled=!!t.malkaUrlEnabled,this.recordingUrlRules=(u=t.recordingUrlRules)!==null&&u!==void 0?u:[],this.cookielessTrackingEnabled=t.cookielessTrackingEnabled,this.customHashIdEnabled=!!t.customHashIdEnabled,this.encryptionEnabled=!1,this.encryptionPublicKey=t.recordingEncryptionPublicKey||null,this.pathComputationRules=t.pathComputationRules||{},t.pathComputationRules&&t.pathComputationRules.dynamicElementNameRegex===""&&(this.pathComputationRules.dynamicElementNameRegex=null),t.pathComputationRules&&t.pathComputationRules.dynamicElementNameRegex&&(this.pathComputationRules.dynamicElementNameRegex=new Re(t.pathComputationRules.dynamicElementNameRegex)),this.asyncSerializerEnabled=!!t.asyncSerializerEnabled,this.encryptionPublicKeyId=t.recordingEncryptionPublicKeyId,this.pendingInactivityTimeout=t.pendingInactivityTimeout||5e3,this.accessibilityEnabled=!1,this.useStaticResourceManager=!0,this.uxaDomain=t.uxaDomain,this.environment=((r=t.uxaDomain)===null||r===void 0?void 0:r.indexOf("staging"))>-1?"staging":"production",this.performanceTimingOptions=t.performanceTimingOptions,this.replayConsentRequiredForSession=!!t.replayConsentRequiredForSession,this.isWebView=!1,t.voc&&(this.voc=Vt(Z({},t.voc),{enabled:!!t.voc.enabled})),this.vocData=t.vocData,t.heapEnvironment&&(this.heapEnvironment=t.hea
16pEnvironment),t.implementations&&t.implementations.length&&(this.implementations=t.implementations),this.eventsApiEnabled=!1,this.anonymizeDigits=(c=t.anonymizeDigits)!==null&&c!==void 0?c:null,this.isHeapPresent=v.heap!==void 0,this.recordTargetingRules=(p=t.recordTargetingRules)!==null&&p!==void 0?p:[],this.paProxyDomainUri=t.paProxyDomainUri||null,this.emitRecordInfoEvents=t.emitRecordInfoEvents!==!1,this.collectHierarchy=!!t.collectHierarchy,this.collectSubmit=!!t.collectSubmit,this.collectTargetText=(f=t.collectTargetText)!==null&&f!==void 0?f:Tc.Disabled,this.identityEncryptionKey=t.identityEncryptionKey||null,this.tagVerificationDomain=t.tagVerificationDomain,this.trackingCodeVerified=!!t.trackingCodeVerified,this.quotas=(E=t.quotas)!==null&&E!==void 0?E:null,this.startMode=(g=t.startMode)!==null&&g!==void 0?g:Xl.Automatic,this.eventEnricher=t.eventEnricher||null,this.experiments=t.experiments||null}getTrackerUri(){return`${this.Js()}://${this.trackerDomain}`}getRecordingUri(){return`${this.Js()}://${this.malkaRecordingDomain}`}getLoggerUri(){return`${this.Js()}://${this.loggerDomain}`}getMetricsUri(){return`${this.Js()}://${this.loggerDomain}/metrics`}getStaticResourceManagerUri(){return`${this.Js()}://${this.staticResourceManagerDomain}`}getVerificationEndpoint(){return`${this.Js()}://${this.tagVerificationDomain}`}getSettingsFileUri(){return this.settingsFileUri?this.settingsFileUri:`${this.Js()}://${this.dynamicConfDomain}/${this.projectId}.json`}isQuotaEnabled(){return this.isSMB||this.quotas!==null}getPaProxyDomainUri(){return`${this.Js()}://${this.paProxyDomainUri}`}Js(){return this.useHttps?"https":"http"}isProjectActive(){return this.status===zC}onInit(){var t;let{isWebView:e,iframesTracking:r}=Vl(v);this.isWebView=e,this.iframesTracking=r,!((t=v._uxa)===null||t===void 0)&&t.forEach&&v._uxa.forEach(([n,...a])=>{if(n==="setOption"){let[o,u]=a;this.lb(o,u)}else n==="setIframeAutonomous"&&(this.allowSubdomains=!1)})}lb(t,e){t==="trackerDomain"&&(this.trackerDomain=e),t==="loggerDomain"&&(this.loggerDomain=e),t==="malkaRecordingDomain"&&(this.malkaRecordingDomain=e),t==="staticResourceManagerDomain"&&(this.staticResourceManagerDomain=e),t==="minLogLevel"&&(this.minLogLevel=e),t==="maxLogs"&&(this.maxLogs=ms(e)?Number(e):void 0),t==="useHttps"&&(this.useHttps=!!e),t==="dynamicConfDomain"&&(this.dynamicConfDomain=e),t==="paProxyDomainUri"&&(this.paProxyDomainUri=e),t==="allowSubdomains"&&(this.allowSubdomains=!!e),t==="startMode"&&ms(e)&&l(Object,Ka(Xl),na(e))&&(this.startMode=e)}getRequestParameters(){return{pid:`${this.projectId}`}}updateDynamicFields(t,e){t==="emitDebugEvents"&&(this.emitDebugEvents=e),t==="minLogLevel"&&(this.minLogLevel=e),t==="maxLogs"&&(this.maxLogs=e)}isCsSideloadingHeap(){return!1}isHeapSideloadsCs(){return!1}isHeapSideloadsCsV5(){return!1}isHeapSideloadsStartDataCollection(){if(this.isHeapSideloadsCs()){if(this.hb())return!0;let t=VC(this.getHeapVersion()||"");if(t&&t.major===4&&HC(t,{major:4,minor:23,patch:5}))return!0}return!1}hb(){var t;return typeof((t=v.heap)===null||t===void 0?void 0:t.getUserId)=="function"}getHeapVersion(){var t,e,r,n,a,o;return typeof((t=v.heap)===null||t===void 0?void 0:t.getConfig)=="function"&&((n=(r=(e=v.heap)===null||e===void 0?void 0:e.getConfig())===null||r===void 0?void 0:r.sdk)===null||n===void 0?void 0:n.version)||((o=(a=v.heap)===null||a===void 0?void 0:a.version)===null||o===void 0?void 0:o.heapJsVersion)||void 0}isCsCrosswritingHeap(){return!1}getHeapStorageLocation(){var t,e;return(e=(t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_storage_location)!==null&&e!==void 0?e:null}getHeapWebAppUri(){return this.getHeapStorageLocation()==="eu-west-1"?"https://eu.heapanalytics.com":"https://heapanalytics.com"}getHeapConfigCdnUri(){return this.getHeapStorageLocation()==="eu-west-1"?"https://cdn.eu.heap-api.com":"https://cdn.us.heap-api.com"}isCollectTargetTextEnabled(){return this.collectTargetText!==Tc.Disabled}isNetworkDetailsEnabled(){return this.performanceTimingOptions?this.performanceTimingOptions.withResource||this.performanceTimingOptions.withNavigation:!1}hasRecordingUrlRules(){return this.recordingUrlRules.length>0}hasTargetingRules(){var t;return!!(!((t=this.recordTargetingRules)===null||t===void 0)&&t.length)}getHeapEnvId(){return this.heapEnvironment?this.heapEnvironment.env_id:""}}return i.$deps=[Im],i})(),Cc=(()=>{let i;return(function(s){s[s.page=1]="page",s[s.onNextPageviewOnly=2]="onNextPageviewOnly"})(i||(i={})),i})(),ti=(()=>{class i{constructor(t,e){this.te=t,this.lt=e,this.db=10}overridePath(t,e){if(t===""){this.ti=void 0;return}let r=this.xg(e);r&&(this.ou=r),this.ti=e?this.$g(t,e):t}overrideQuery(t,e){let r=this.xg(e);r&&(this.au=r),this.Fn=e?this.$g(t,e):t}computeOverriddenUrl(t){return this.fb(t)?this.getAnonymizedUrl():t}gb(t){return(typeof t=="string"||typeof t=="number")&&t in Cc}fb(t){let e=this.ia(this.te.href);return this.ia(t)===e}ia(t){return NT(t,"/")?l(t,Oe(0,-1)):t}xg(t){return le(t==null?void 0:t.lifespan)&&this.gb(t==null?void 0:t.lifespan)?t==null?void 0:t.lifespan:null}pb(){return this.ou&&this.ou in Cc}mb(){return this.au&&this.au in Cc}cleanupOverrideLifespan(){this.pb()&&(this.ti=void 0,this.ou=void 0),this.mb()&&(this.Fn=void 0,this.au=void 0)}getAnonymizedUrl(){let t=Af(this.te,this.ti,this.Fn);return this.lt.anonymizeUrl(t)}getUrl(){return Af(this.te,this.ti,this.Fn)}getAnonymizedPathAndQuery(){let t=le(this.ti)?ac(this.ti):this.te.pathname,e=le(this.Fn)?If(this.Fn):this.te.search;return this.lt.anonymizeUrl(t+e)}getPath(){return le(this.ti)?ac(this.ti):this.te.pathname}getUrlProtocol(){return this.te.protocol}getRequestParameters(){return{url:this.getAnonymizedUrl()}}$g(t,e){return this.Eb(e)?this.vb(t):this.Sb(e)?this._b(t):t}
16Sb(t){return!!t.decodeURI}_b(t){return this.Ug(t,1,!1)}Eb(t){return!!t.decodeURIDeep}vb(t){return this.Ug(t,this.db,!0)}Ug(t,e,r){let n=t;for(let a=0;a<e;a++)try{let o=v.decodeURI(n);if(o===n)return n;n=o}catch(o){return n}return r&&K.warn(`decodeURIDeep limit reached: ${n}`),n}}return i.$deps=[Location,Tn],i})(),fo=(()=>{class i{constructor(t,e){this.Gn=t,this.Vg=e}onInit(){this.Hg=this.Gn!==this.Gn.top,this.jg=this.Vg.isWebView&&this.Gn===this.Gn.top;let t=this.Vg.iframesTracking&&this.Hg;this.Bg=t&&this.yb(),t&&!this.Bg||this.jg?this.Fg=!1:this.Fg=!0}isInIframeContext(){return this.Hg}isTopWindowTracker(){return this.Fg}isInWebViewContext(){return this.jg}isInSalesforceContext(){return this.Bg}yb(){return wm(this.Gn)}}return i.$deps=[Window,lt],i})();function wm(i){var s,t,e;let r=!1;try{r=bi((t=(s=i.top)===null||s===void 0?void 0:s.$A)===null||t===void 0?void 0:t.createComponent)||Gt((e=i.top)===null||e===void 0?void 0:e.LWR)}catch(n){}return r}function Nm(i=v){let{isWebView:s,iframesTracking:t}=Vl(i),e=i!==i.top,r=s&&i===i.top;return!(t&&e&&!wm(i)||r)}function bc(i=v){let{isWebView:s}=Vl(i);return s&&i===i.top}function GC(i=v){return!Nm(i)&&!bc(i)}var va="_cs_t",Pm="1",Ac=(()=>{class i{constructor(t,e){this.Is=t,this.E=e,this.Pa=!1,this.Ma=!1}onInit(){if(!this.E.cookielessTrackingEnabled&&this.Is.isTopWindowTracker()&&"cookie"in D){if(!this.Is.isInIframeContext()&&We.isCookiePresent()){this.Pa=!0,this.Ma=!1;return}if(We.set(va,Pm,We.CURRENT_DOMAIN),We.get(va)!==null){this.Pa=!0,this.Ma=!1,We.remove(va,We.CURRENT_DOMAIN);return}We.set(va,Pm,We.CURRENT_DOMAIN,void 0,jr.None,Ys.Yes),We.get(va)!==null&&(this.Pa=!0,this.Ma=!0,We.remove(va,We.CURRENT_DOMAIN))}}areCookiesEnabled(){return this.Pa}isSameSiteNoneSecureNeeded(){return this.Ma}}return i.$deps=[fo,lt],i})(),WC=(()=>{let i;return(function(s){function t(){return v.navigator.vendor&&l(v.navigator.vendor,Bt("Apple"))>-1&&v.navigator.appVersion&&l(v.navigator.appVersion,Bt("Version/12."))>-1}s.browserIsSafariV12=t})(i||(i={})),i})(),Ks=(()=>{class i extends UT{constructor(t,e,r){super(),this.E=t,this.A=e,this.zn=r,this.lu=!1,this.Gg=jr.NotSet,this.hu=Ys.No}getSameSiteFlag(){return this.Gg}getSecureFlag(){return this.hu}getDomain(){return this.du}getRootDomain(){return this.zg}init(){if(this.E.cookielessTrackingEnabled)return;let t=this.wb(),e=this.bb();this.lu=this.Rb(t,e),this.lu?(this.Gg=t,this.hu=e):this.E.secureCookiesEnabled&&this.A.getUrlProtocol()==="https:"&&(this.hu=Ys.Yes),this.zg=this.Tb(),this.du=this.Cb(this.zg)}Rb(t,e){return WC.browserIsSafariV12()?!1:(We.set(i.COOKIE_TEST_FOR_SAME_SITE,"Test same site",i.CURRENT_DOMAIN,void 0,t,e),We.get(i.COOKIE_TEST_FOR_SAME_SITE)?(We.remove(i.COOKIE_TEST_FOR_SAME_SITE,i.CURRENT_DOMAIN),!0):!1)}wb(){return this.A.getUrlProtocol()==="http:"?jr.Lax:this.zn.isSameSiteNoneSecureNeeded()||this.E.crossDomainTracking?jr.None:jr.Lax}bb(){return this.A.getUrlProtocol()==="http:"?Ys.No:this.E.secureCookiesEnabled||this.E.crossDomainTracking||this.zn.isSameSiteNoneSecureNeeded()?Ys.Yes:Ys.No}isSameSiteSupported(){return this.lu}set(t,e,r,n){let a=We.toExpireDate(r),o=n?Ys.Yes:this.getSecureFlag();We.set(t,e,this.du,a,this.getSameSiteFlag(),o)}delete(t,e){let r=e||this.du;We.remove(t,r)}Tb(){let t=this.zn.isSameSiteNoneSecureNeeded()&&this.isSameSiteSupported(),e=t?jr.None:void 0,r=t?Ys.Yes:void 0;return We.getRootDomain(e,r)}Cb(t){return this.E.allowSubdomains?t:We.CURRENT_DOMAIN}}return i.$deps=[lt,ti,Ac],i.CURRENT_DOMAIN="CURRENT_DOMAIN",i.COOKIE_TEST_FOR_SAME_SITE="_cs_same_site",i})(),Ea=(()=>{class i{setItem(t,e){v.sessionStorage.setItem(t,e)}getItem(t){return v.sessionStorage.getItem(t)}removeItem(t){v.sessionStorage.removeItem(t)}}return i.$deps=[],i})(),Rs="_cs_s",Ql=18e5,Jl=".",jC=13,th=(()=>{let i;return(function(s){s[s.NOT_FOUND=0]="NOT_FOUND",s[s.EXPIRED=1]="EXPIRED",s[s.FOUND=2]="FOUND"})(i||(i={})),i})(),Ic=(()=>{class i{constructor(t,e,r){this.E=t,this.N=e,this.Ot=r,this.$t=null,this.fu=!1}get(t){let e=this.getRawSession(t);return this.isValid(e)?Sf(e):null}getRawSession(t){if(t){let p=this.Na();return Ll(p)}let{sessionString:e,status:r}=this.Ab(),n=Ll(e);if(r!==th.EXPIRED)return n;if(this.E.cookielessTrackingEnabled)return null;let a=this.Na();if(!a)return null;let o=l(a,de(Jl));if(!i.Wg(o))return a;let u=o[o.length-1],c=parseInt(u,10);return isNaN(c)||this.Ib(c),n}onCookieSet(t){this.je=t}onCookieRemoved(t){this.Ni=t}set(t,e=Ql){let r=mt.now()+e,n=this.Pb(t,r);this.Mb(n,r),this.qg(n,e)}extendSessionExpiry(t=Ql){let e=this.Na();if(e===null||!xl(e))return!1;let r=mt.now()+t,n=`${Ll(e)}${Jl}${r}`;return this.qg(n,t),this.$t&&(this.$t.expires=r),!0}Pb(t,e){return`${aT(t)}${Jl}${e}`}qg(t,e){var r;this.E.cookielessTrackingEnabled?this.Ot.setItem(Rs,t):(this.N.set(Rs,t,e),(r=this.je)===null||r===void 0||r.call(this,Rs,t,e))}remove(){var t;this.E.cookielessTrackingEnabled?this.Ot.removeItem(Rs):(this.N.delete(Rs),(t=this.Ni)===null||t===void 0||t.call(this,Rs)),this.Nb()}handleSubdomainChange(){if(this.E.cookielessTrackingEnabled)return;let t=this.get(!0);t&&(this.E.allowSubdomains?this.N.delete(Rs,Ks.CURRENT_DOMAIN):this.N.delete(Rs,this.N.getRootDomain()),this.set(t))}isValid(t){return t!==null&&xl(t)}
16Mb(t,e){this.$t={sessionString:t,expires:e}}Ab(){return this.$t?this.$t&&mt.now()<=this.$t.expires?{sessionString:this.$t.sessionString,status:th.FOUND}:{sessionString:this.$t.sessionString,status:th.EXPIRED}:{sessionString:this.Na(),status:th.NOT_FOUND}}Nb(){this.$t=null}Ib(t){this.$t&&(this.$t.expires=t,this.fu=!0)}isCacheRefreshed(){return this.fu}resetCacheRefreshed(){this.fu=!1}Na(){if(this.E.cookielessTrackingEnabled){let e=this.Ot.getItem(Rs);return!e||this.Yg(e)?null:e}let t=this.N.get(Rs);return!t||this.Yg(t)?null:t}Yg(t){let e=l(t,de(Jl));if(!i.Wg(e))return!1;let r=parseInt(e[e.length-1],10);return!isNaN(r)&&mt.now()>r}static Wg(t){return t[t.length-1].length===jC}}return i.$deps=[lt,Ks,Ea],i})(),Xs="_cs_id",qC=["visitor:language"],YC=["device","browser:resolution","browser:windowWidth","browser:windowHeight"],ZC=["visit:isNew","visit:number","source:from"],U1=[...qC,...YC,...ZC],eh;(function(i){i.MATCH_GREATER_OR_EQUAL=">=",i.MATCH_LESS_OR_EQUAL="<=",i.MATCH_GREATER=">",i.MATCH_LESS="<",i.MATCH_LOGICAL_EQUAL="=",i.MATCH_LOGICAL_NOT_EQUAL="!=",i.MATCH_GTE="more_or_equals",i.MATCH_LTE="less_or_equals",i.MATCH_GT="more_than",i.MATCH_LT="less_than",i.MATCH_CONTAINS="contains",i.MATCH_DOES_NOT_CONTAIN="not_contains",i.MATCH_EQUALS="equals",i.MATCH_NOT_EQUALS="not_equals",i.MATCH_STARTS_WITH="starts_with",i.MATCH_DOES_NOT_START_WITH="not_starts_with",i.MATCH_ENDS_WITH="ends_with",i.MATCH_DOES_NOT_END_WITH="not_ends_with",i.MATCH_REGEX="matches_regex",i.MATCH_IN="matchIn",i.MATCH_BETWEEN="between",i.DOES_NOT_MATCH_IN="not_matchIn",i.DOES_NOT_MATCH_REGEX="not_matches_regex",i.DOES_NOT_MATCH="doesNotMatchIn",i.IS_EMPTY="is_empty",i.NOT_IS_EMPTY="not_is_empty",i.EXISTS="exists",i.NOT_EXISTS="not_exists",i.HAS_ANY="hasAny",i.NOT_HAS_ANY="not_hasAny",i.HAS_ALL="hasAll",i.NOT_HAS_ALL="not_hasAll",i.SIMPLE_MATCH="simple_match",i.NOT_SIMPLE_MATCH="not_simple_match",i.ALL_MATCH_IN="allMatchIn"})(eh||(eh={}));var km;(function(i){i.interactionEvents="interactionEvents",i.zoneMetrics="zoneMetrics",i.zoneInsights="zoneInsights",i.pageviewMetrics="pageviewMetrics",i.dynamicVars="dynamicVars",i.errors="errors",i.textConditions="textConditions",i.pageEvents="pageEvents",i.webVitals="webVitals",i.pageviewFrustrationScore="pageviewFrustrationScore",i.accessibilityMetrics="accessibilityMetrics",i.pageviewFrustrationFactor="pageviewFrustrationFactor",i.zoneFrustrationFactor="zoneFrustrationFactor"})(km||(km={}));var br;(function(i){i.Pageviews="pageviews",i.UserId="userId",i.Goal="goal",i.GoalId="goal:id",i.GoalReference="goal:reference",i.SegmentId="segment:id",i.PrestoredText="page:prestored_text",i.TextSeen="segment:textSeen",i.VisitText="visit:text",i.IsReturning="visit:isNew",i.NumberVisits="visit:number",i.Language="visitor:language",i.Connection="visit:connectionType",i.AppVersion="visit:appVersion",i.DynamicVariable="dynamicVar",i.DeviceCommercialName="device:marketingName",i.DeviceModel="device:manufacturer",i.DeviceModelCommercialName="device:manufacturerCommercialName",i.DeviceModelVersion="device:model",i.OsVersion="device:osVersion",i.Device="device",i.DeviceType="device:typeId",i.Transaction="visit:isBuyer",i.Amount="visit:amount",i.NumberPageViews="visit:pageviews",i.VisitDuration="visit:durationTime",i.Referrer="source:from",i.GeographicCity="location:city",i.GeographicArea="location:country",i.Test="version:id",i.CustomVariable="customVar",i.Browser="browser:name",i.BrowserVersion="browser:version",i.BrowserSemanticVersion="browser:semanticVersion",i.Os="browser:platform",i.WebOsVersion="browser:platformVersion",i.Resolution="browser:resolution",i.BrowserWindowWidth="browser:windowWidth",i.BrowserWindowHeight="browser:windowHeight",i.LandingPath="visit:landingPath",i.LandingPage="visit:landingPage",i.LandingPagePOF="visit:landingPagePOF",i.ExitPage="visit:exitPath",i.NumberPageviews="visit:pageviews",i.PageHostViewed="page:host",i.PagePathViewed="page:path",i.PageFullUrlViewd="page:fullURL",i.PageQueryParamsViewed="page:query",i.PageEvent="page:pageEvent",i.PageText="page:text",i.ExternalEvent="externalEvent",i.Feedback="voc:feedback",i.NetPromoterScore="voc:nps",i.Survey="voc:surveyId",i.Reaction="voc:reaction",i.FullText="page:full_text",i.PageCustomHashId="page:customHashId",
16i.CustomHashId="customHashId",i.SessionVisitIP="visit:ip",i.SegmentMerch="segment:merch",i.SegmentMerchProduct="segment:merchProduct",i.SegmentMerchCategoryBrand="segment:merchCategoryBrand",i.Error="error",i.ErrorMessage="error:message",i.ErrorFileName="error:filename",i.ErrorLineNumber="error:lineNumber",i.ErrorColumnNumber="error:colNumber",i.ErrorType="error:type",i.ErrorGroupId="error:groupId",i.ErrorGroupIdV1="error:groupIdV1",i.ApiErrorURL="errorApi:url",i.ApiErrorStatusCode="errorApi:statusCode",i.ApiErrorMethod="errorApi:method",i.ApiErrorType="errorApi:type",i.ApiErrorGroupId="errorApi:groupId",i.ApiErrorGroupIdV1="errorApi:groupIdV1",i.ApiErrorBodyAttribute="errorApi:responseBodyAttribute",i.ErrorDismissStatus="error:dismiss_status",i.ApiErrorDismissStatus="errorApi:dismiss_status",i.CustomErrorType="customError:type",i.CustomErrorMessage="customError:message",i.CustomErrorAttributes="customError:attributes",i.CustomErrorGroupId="customError:groupId",i.CustomErrorGroupIdV1="customError:groupIdV1",i.CrashType="errorCrash:type",i.CrashGroupId="errorCrash:groupId",i.CrashSpecificId="errorCrash:id",i.FlutterType="errorFlutter:type",i.FlutterGroupId="errorFlutter:groupId",i.FlutterSpecificId="errorFlutter:id",i.ExcludeBots="visit:excludeBots",i.IsBot="visit:isBot",i.SdkScreenActivity="screen:activity",i.SdkScreenContainer="screen:container",i.SdkScreenQuery="screen:query",i.SdkScreenName="screen:name",i.LargestContentfulPaint="cwv:largest_contentful_paint",i.FirstContentfulPaint="cwv:first_contentful_paint",i.CumulativeLayoutShift="cwv:cumulative_layout_shift",i.InteractionToNextPaint="cwv:interaction_to_next_paint",i.FirstInputDelay="cwv:first_input_delay",i.TimeToFirstByte="cwv:time_to_first_byte",i.EnrichmentIntegration="external:integrationEnrichment",i.DynamicSnippetIntegration="external:dynamicSnippetIntegration",i.ExternalSegmentIntegration="external:segmentIntegration",i.AccessibilityFeatures="accessibility:features",i.AccessibilityZoom="accessibility:max_zoom",i.AccessibilityHighlight="accessibility:text_highlight",i.AccessibilityKeyboard="accessibility:keyboard",i.AccessibilityKeyboardClick="accessibility:keyboard_click",i.AccessibilityKeyboardFocus="accessibility:keyboard_focus",i.AccessibilityKeyboardScroll="accessibility:keyboard_scroll",i.AccessibilityExtensions="accessibility:extensions",i.PageviewFrustrationScore="pageviewFrustrationScore",i.SessionFrustrationScore="visit:sessionFrustrationScore",i.FrustrationFactor="frustrationFactor",i.FrustrationFactorBlankPage="frustrationFactor:blankPage",i.FrustrationFactorDeadLink="frustrationFactor:deadAnchor",i.FrustrationFactorDeadClick="frustrationFactor:deadClick",i.FrustrationFactorDeadZoom="frustrationFactor:deadZoom",i.FrustrationFactorExcessiveHover="frustrationFactor:excessiveHover",i.FrustrationFactorLoopingIndex="frustrationFactor:loopingIndex",i.FrustrationFactorMultipleButtonInteractions="frustrationFactor:multipleButtonInteractions",i.FrustrationFactorMultipleFieldInteractions="frustrationFactor:multipleFieldInteractions",i.FrustrationFactorMultipleInteractions="frustrationFactor:multipleInteractions",i.FrustrationFactorMultipleUseTarget="frustrationFactor:multipleUseTarget",i.FrustrationFactorPageReload="frustrationFactor:pageReload",i.FrustrationFactorPropViewsNotConsumed="frustrationFactor:propViewsNotConsumed",i.FrustrationFactorRageClick="frustrationFactor:rageClick",i.FrustrationFactorRageTap="frustrationFactor:rageTap",i.FrustrationFactorLowActivity="frustrationFactor:lowActivity",i.FrustrationFactorThrashedCursor="frustrationFactor:thrashedCursor",i.SessionWithUserReturn="heap:sessionWithUserReturn",i.SessionFollowedByPurchase="heap:sessionFollowedByPurchase",i.FrontEndClickedElement="frontend-clicked-element",i.BotName="visit:bot_name",i.BotProvider="visit:bot_provider",i.BotType="visit:bot_type"})(br||(br={})),br.PageHostViewed,br.PagePathViewed,br.PageQueryParamsViewed;var Om;(function(i){i.ZoneInteractionClick="pageview:zone-interaction:click",i.ZoneInteractionHover="pageview:zone-interaction:hover",i.ZoneInteractionTap="pageview:zone-interaction:tap",i.ZoneInteractionExitZone="pageview:zone-interaction:exitZone",i.TextConditionFullSearch="pageview:fullSearch",i.TextConditionPrestoredText="pageview:prestoredText",i.MetricHoverTime="metric:hoverTime",i.MetricTimeBeforeFirstClick="metric:timeBeforeFirstClick",i.MetricTimeBeforeFirstTap="metric:timeBeforeFirstTap",i.MetricHesitationTime="metric:hesitationTime",i.MetricScrollRate="metric:scrollRate",i.MetricTimeSpent="metric:timeSpent",i.FrontendZoneInteractionGoal="frontend:pageview:zone-interaction:goal",i.PageEvent="page:pageEvent",i.FrustrationScore="pageview:frustration-score"})(Om||(Om={}));var Mm;(function(i){i.Click="click",i.Change="change",i.DynamicVariable="dvar_page",i.Focus="focus",i.Tap="tap",i.Pageview="pageview",i.Screenview="screenview",i.PageEvent="pageEvent",i.Hover="hover",i.HoverTime="hoverTime",i.ExitPage="exitPage",i.ExitZone="exitZone",i.Purchase="purchase",i.AddToCart="addToCart",i.MetricBounce="metric:bounce",i.MetricScrollRate="metric:scrollRate",i.MetricTimeBeforeFirstClick="metric:timeBeforeFirstClick",i.MetricTimeBeforeFirstTap="metric:timeBeforeFirstTap",i.MetricHesitationTime="metric:hesitationTime",i.MetricHoverTime="metric:hoverTime",i.MetricTimeSpent="metric:timeSpent",i.MetricClickRepetition="metric:clickRepetition",i.BlankPage="friction:blankPage",i.DeadClick="friction:deadClick",i.DeadLink="friction:deadAnchor",i.DeadZoom="friction:deadZoom",i.ExcessiveHover="friction:excessiveHover",i.FastBack="friction:fastBack",i.LoadingTime="friction:loadingTime",i.LowActivity="friction:lowActivity",i.MultipleButtonInteraction="friction:multipleButtonInteraction",i.MultipleFieldInteraction="friction:multipleFieldInteraction",i.MultipleInteraction="friction:multipleInteraction",i.MultiplePageRevisit="friction:multiplePageRevisit",i.MultipleUseTarget="friction:multipleUseTarget",i.PageReload="friction:pageReload",i.PromocodeStruggle="friction:promocodeStruggle",i.QualifiedBouncers="friction:qualifiedBouncers",i.RageClick="friction:rageClick",i.RageTap="friction:rageTap",i.ThrashedCursor="friction:thrashedCursor",i.Swipe="swipe",i.LandingPage="landingPage",i.LargestContentFulPaint="cwv:largest_contentful_paint",i.FirstContentFulPaint="cwv:first_contentful_paint",i.CumulativeLayoutShift="cwv:cumulative_layout_shift",i.InteractionToNextPaint="cwv:interaction_to_next_paint",i.FirstInputDelay="cwv:first_input_delay",i.TimeToFistByte="cwv:time_to_first_byte",i.Error="error",i.AccessibilityFeatures="accessibility:features",i.AccessibilityZoom="accessibility:max_zoom",i.AccessibilityHighlight="accessibility:text_highlight",i.AccessibilityKeyboard="accessibility:keyboard",i.AccessibilityKeyboardClick="accessibility:keyboard_click",i.AccessibilityKeyboardFocus="accessibility:keyboard_focus",i.AccessibilityKeyboardScroll="accessibility:keyboard_scroll",i.AccessibilityExtensions="accessibility:extensions"})(Mm||(Mm={}));var Ts;
16(function(i){i.AND="AND",i.OR="OR",i.NOT="NOT",i.SEQ="SEQ",i.CSEQ="CSEQ",i.THEN="THEN",i.DIRECTLY_THEN="DIRECTLY_THEN",i.FILTER="filter",i.EVENT_OCCURRENCE="event_occurrence",i.EVENT_SEQUENCE_OCCURRENCE="event_sequence_occurrence"})(Ts||(Ts={}));var Dm;(function(i){i.EQUAL="=",i.GREATER=">",i.LESS="<",i.GREATER_OR_EQUAL=">=",i.LESS_OR_EQUAL="<=",i.NOT_EQUAL="!=",i.BETWEEN="between"})(Dm||(Dm={}));var xm;(function(i){i.ANY="any",i.URL="url",i.PAGE="page"})(xm||(xm={}));var Lm;(function(i){i.ANY="any",i.NAMED="named",i.EXACT="exact",i.GROUPED="grouped"})(Lm||(Lm={}));var Um;(function(i){i.API="API",i.JS="JS",i.CUSTOM="CUSTOM",i.CRASH="CRASH",i.FLUTTER="FLUTTER"})(Um||(Um={}));var $m;(function(i){i.GET="GET",i.POST="POST",i.PUT="PUT",i.PATCH="PATCH",i.DELETE="DELETE"})($m||($m={}));var Vm;(function(i){i.EXPERIENCED="EXPERIENCED",i.HAVE_NOT_EXPERIENCED="HAVE_NOT_EXPERIENCED"})(Vm||(Vm={}));var Fm;(function(i){i.ALL="ALL",i.DISMISSED="DISMISSED",i.UNDISMISSED="UNDISMISSED"})(Fm||(Fm={}));var $1=Object.freeze([Ts.AND,Ts.OR,Ts.SEQ,Ts.CSEQ,Ts.THEN,Ts.DIRECTLY_THEN]);Ts.AND,Ts.FILTER,br.SegmentId,eh.MATCH_EQUALS;var Hm;(function(i){i.Model="model",i.Product="product",i.Category="category",i.Brand="brand"})(Hm||(Hm={}));var Bm;(function(i){i.Visit="pageview:visit",i.First="pageview:first",i.Last="pageview:last",i.Bounce="pageview:bounce",i.FrontendGoal="frontend:pageview:goal"})(Bm||(Bm={})),Ts.FILTER,eh.MATCH_EQUALS;var zm;(function(i){i.PageViewedConditionId="goal:reference:PageViewed",i.ZoneClickedConditionId="goal:reference:click",i.SamePageViewConditionEditorId="pageviews"})(zm||(zm={})),br.EnrichmentIntegration,br.DynamicSnippetIntegration,br.ExternalSegmentIntegration;var ya=["trackEvent"],mo=["trackDynamicVariable"],Nn=(()=>{let i;return(function(s){s.Artificial="a",s.Renewal="r",s.Natural="n"})(i||(i={})),i})(),Gm;(Gm=v._uxa)!==null&&Gm!==void 0||(v._uxa=[]);var KC=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[ee(Window,()=>{try{return oe}catch(s){return v}}),ee(Location,s=>s.location,[Window]),ee(Storage,s=>s.localStorage,[Window])]})],i),i})(),Ar=(()=>{class i{}return i})(),ih=(()=>{class i{constructor(){this.rp={}}register(t,e){this.rp[t]=e}getApi(){return this.rp}}return i.$deps=[],i})(),Pn=(()=>{let i;return(function(s){let t="{domain}/tag/tag.bundle.js?v={version}",e,r={loadBundle(z){let dt=z.source,vt=z.data;if(o(vt)){let ht=()=>{let ke=n(t,vt);E(ke,()=>dt.postMessage("csBundleLoaded",z.origin))};e=vt.token,U(r.loadBundle),u(z.origin)&&ht()}}};function n(z,dt){return l(z,jt("{version}",dt.version),jt("{token}",dt.token),jt("{domain}",dt.domain))}function a(){return e}s.getToken=a;function o(z){return z&&z.type==="csBundleInjection"&&u(z.domain)&&p(z.version)&&c(z.token)}s.isAuthorizedIncomingMessage=o,s.hjDomainRegex=/^https?:\/\/[a-zA-Z0-9\.\-]+\.hotjar\.com$/;function u(z){return/^https?:\/\/[a-zA-Z0-9\.\-]+\.(content-square\.fr|contentsquare\.com|csq\.io)$/.test(z)||s.hjDomainRegex.test(z)}s.isAuthorizedDomain=u;function c(z){return/^[a-zA-Z0-9]+$/.test(z)}s.isAuthorizedToken=c;function p(z){return/^[a-zA-Z0-9\.]+$/.test(z)}s.isAuthorizedTagVersion=p;function f(){let z=v.opener||v.parent;return v!==z&&l(v,ni)}s.isActivable=f;function E(z,dt){let vt=D.createElement("script");vt.type="text/javascript",vt.async=!0,vt.src=z,vt.onload=dt,vt.charset="utf-8",D.head.appendChild(vt)}s.addScript=E;function g(z){let dt=D.createElement("link");dt.rel="stylesheet",dt.href=z,D.head.appendChild(dt)}s.addStyle=g;function R(z){return`${z}?cb=${new Date().getTime()}`}s.addCacheBusting=R;function k(){X(r.loadBundle)}s.waitForBundleInjection=k;function X(z){l(v,ni("message",z,!1))}s.listen=X;function U(z){l(v,gs("message",z,!1))}s.removeListener=U})(i||(i={})),i})(),Wm="_hp_ved",XC=18e5,QC="/js/ved.js",JC="/css/ved.css",tb="/js/ved.css",eb=(()=>{let i;return(function(s){s.StatusUpdate="status"})(i||(i={})),i})(),ib=(()=>{let i;return(function(s){s.ReceivedInitMessage="received_init_message"})(i||(i={})),i})(),wc=(()=>{let i;return(function(s){let t=!1,e;function r(E){return e+E}function n(){let E=[r(JC),r(tb)];l(E,et(g=>{Pn.addStyle(g)}))}function a(E){let g=new Re("(^|;)[ ]*"+E+"=([^;]*)"),R=g.exec(D.cookie);
16return R?decodeURIComponent(R[2]):null}function o(E,g,R){let k=encodeURIComponent(E)+"="+encodeURIComponent(g),X=new Date;X.setTime(X.getTime()+R);let U=k+"; expires="+X.toUTCString()+"; path=/";D.cookie=U}function u(){o(Wm,"on",XC)}function c(){return a(Wm)==="on"}s.isVLCookieEnabled=c;function p(E){v.heapV=Object.assign({},v.heap,{source:E==null?void 0:E.source,uri:e,loadArgs:E==null?void 0:E.data.args,identify:()=>{},track:()=>{}})}s.initializeHeapV=p;function f(E,g){var R;if(e=E,g){let k={type:eb.StatusUpdate,value:ib.ReceivedInitMessage},X={targetOrigin:g==null?void 0:g.origin};(R=g==null?void 0:g.source)==null||R.postMessage(k,X)}t||(t=!0,u(),p(g),v.heapV&&(Pn.addScript(r(QC)),n()))}s.init=f})(i||(i={})),i})(),sb=(()=>{let i;return(function(s){let t=v.opener||v.parent,e="tag",r="https://app.contentsquare.com",n=[/^https:\/\/app\.contentsquare\.com$/,/^https:\/\/dev-app\.contentsquare\.com$/,/^https:\/\/staging-app\.contentsquare\.com$/,/^https:\/\/.*\.test\.contentsquare\.com$/,/^https:\/\/app\.[a-z0-9-]+\.csiab\.[a-z0-9-]+\.csq\.io$/,Pn.hjDomainRegex],a,o,u,c={initHeapVisualLabeler(ht){var ke;ht.origin===u&&((ke=ht.data)==null?void 0:ke.message)==="init"&&ht.source&&(wc.init(u,ht),z(c.initHeapVisualLabeler))},ping(ht){typeof ht.data=="string"&&ht.data==="ping"&&E(ht.origin)&&(o=ht.origin,a=Pn.hjDomainRegex.test(ht.origin)?r:ht.origin,z(c.ping),U(c.insertMessageScript),g(Pn.addCacheBusting("utils.js")))},insertMessageScript:dt(ht=>{typeof ht.data=="string"&&ht.data!=="ping"&&(z(c.insertMessageScript),g(ht.data))})};function p(){return Pn.getToken()}s.getToken=p;function f(){return v!==t&&l(v,ni)}s.isActivable=f;function E(ht){return l(n,ye(ke=>ke.test(ht)))}s.isAuthorizedDomain=E;function g(ht,ke){let Pt=D.createElement("script");Pt.type="text/javascript",Pt.async=!0;let Ue=l(a,qe,jt(/^https?:/,""));Pt.src=`${Ue}/${e}/${ht}`,Pt.onload=ke,Pt.charset="utf-8",D.getElementsByTagName("head")[0].appendChild(Pt),R(ht)}function R(ht){ht.includes("&mode=")&&sessionStorage.setItem("_hjRetakerMode",l(ht,de("&mode="))[1])}function k(){U(c.ping),Pn.waitForBundleInjection()}s.waitForConnection=k;function X(ht){u=ht,U(c.initHeapVisualLabeler),wc.isVLCookieEnabled()&&wc.init(u)}s.waitForHeapVisualLabeler=X;function U(ht){l(v,ni("message",ht,!1))}s.listen=U;function z(ht){l(v,gs("message",ht,!1))}s.removeListener=z;function dt(ht){return function(ke){ke.origin===o&&ht(ke)}}s.secureListener=dt;function vt(ht){o&&t.postMessage(ht,o)}s.post=vt})(i||(i={})),i})(),sh=v.CSFrameCommunication||sb,jm=(()=>{class i{constructor(t,e,r){this.E=t,this.fR=e,this.Su=r}start(){var t;if(v.CSQ_TAGS=l(v.CSQ_TAGS||[],fu(this.E.projectId)),!v.UXAnalytics){v.UXAnalytics=this.Su.getApi(),!((t=v.CSProtectnativeFunctionsLogs)===null||t===void 0)&&t.Warning&&K.warn(`protectNativeFunctions failed: ${v.CSProtectnativeFunctionsLogs.Warning}`);try{this.fR.init()}catch(e){Uf(e),v.CS_TAG_NO_BOOT=e instanceof gc?"denied":"error";return}v.CSFrameCommunication||(v.CSFrameCommunication=sh,sh.isActivable()&&sh.waitForConnection(),this.E.isCsCrosswritingHeap()&&sh.waitForHeapVisualLabeler(this.E.getHeapWebAppUri()))}}}return i.$deps=[lt,Ar,ih],b([Di("main.start"),J("main.start")],i.prototype,"start",null),i})();function rb(){let i="CSSessionStorageTest";try{return sessionStorage.setItem(i,i),sessionStorage.getItem(i)!==i?!1:(sessionStorage.removeItem(i),!0)}catch(s){return!1}}var qm=(()=>{class i{constructor(t,e){this.E=t,this.zn=e}canTrack(){return!this.np()&&this.E.isProjectActive()&&this.gR()&&this.op()&&this.pR()}canTrackInChild(){return!this.np()&&this.E.isProjectActive()&&this.mR()&&(this.op()||this.ER()||this.vR())}np(){return this.E.isWebView&&this.E.urlBlacklist.length>0&&p0(v.location,this.E.urlBlacklist)}
16pR(){return this.E.cookielessTrackingEnabled?rb():this.zn.areCookiesEnabled()}op(){return Uu(v.location.hostname,this.E.hostnames)}gR(){return!this.ap()&&this.SR()}mR(){return!this.ap()&&this._R()}ER(){return v.location.protocol==="about:"&&v.location.hostname===""}ap(){return"visibilityState"in D&&D.visibilityState==="prerender"}SR(){return this.cp()&&this.yR()}_R(){return this.cp()}yR(){try{return!!v.localStorage}catch(t){return!1}}cp(){return"globalThis"in v&&"pageXOffset"in v&&"pageYOffset"in v&&"onpagehide"in v&&"JSON"in v&&"parse"in Ht&&"stringify"in Ht&&"addEventListener"in v&&"removeEventListener"in v&&"Node"in v&&"filter"in Array.prototype&&"forEach"in Array.prototype&&"querySelectorAll"in D&&"now"in Date&&"keys"in Object&&"performance"in v&&"Map"in v&&"Set"in v}vR(){return this.E.isWebView&&v.location.protocol==="file:"&&v.location.hostname===""}}return i.$deps=[lt,Ac],i})(),rh=(()=>{class i{constructor(t){this.lp=t}assertCanBoot(){var t;try{if(!((t=v.CSProtectnativeFunctionsLogs)===null||t===void 0)&&t.Critical)throw new LT(v.CSProtectnativeFunctionsLogs.Critical);if(!this.lp.canTrack())throw new gc;TT()}catch(e){throw ot.counters.boot.count("no-boot"),e}}assertCanBootInChild(){if(!this.lp.canTrackInChild())throw ot.counters.boot.count("no-boot"),new gc}}return i.$deps=[qm],i})(),nh=(()=>{class i{constructor(){this.listeners=[]}addListener(t){l(this.listeners,na(t))||l(this.listeners,I(t))}}return i})(),Sa=(()=>{let i;return(function(s){s.RecordingStarted="RecordingStarted",s.RecordingStopped="RecordingStopped",s.Other="Other"})(i||(i={})),i})(),At=(()=>{class i extends nh{constructor(t){super(),this.ve=t}emitBeforeNaturalPageView(t){for(let e of this.listeners)e.onBeforeNaturalPageView&&e.onBeforeNaturalPageView(t);this.emitNaturalPageView(t)}emitNaturalPageView(t){var e;for(let r of this.listeners)(e=r.onNaturalPageView)===null||e===void 0||e.call(r,t)}emitAfterNaturalPageView(t){for(let e of this.listeners)e.onAfterNaturalPageView&&e.onAfterNaturalPageView(t)}emitInitTracking(){for(let t of this.listeners)t.onInitTracking&&t.onInitTracking()}emitTrackingAllowed(){for(let t of this.listeners)t.onTrackingAllowed&&t.onTrackingAllowed()}emitStartTracking(t){for(let e of this.listeners)e.onStartTracking&&this.ve.task(()=>e.onStartTracking(t))}emitStartNoTrackingMode(){for(let t of this.listeners)t.onStartNoTrackingMode&&this.ve.task(()=>t.onStartNoTrackingMode())}emitArtificialPageViewEnd(t=!1){for(let e of this.listeners)if(e.onArtificialPageViewEnd)try{e.onArtificialPageViewEnd(t)}catch(r){K.error(r)}}emitBeforeArtificialPageView(t,e){for(let r of this.listeners)r.onBeforeArtificialPageView&&r.onBeforeArtificialPageView(t,e)}emitAfterArtificialPageView(t=!1){for(let e of this.listeners)e.onAfterArtificialPageView&&e.onAfterArtificialPageView(t)}emitBeforeSessionRenewal(){for(let t of this.listeners)t.onBeforeSessionRenewal&&t.onBeforeSessionRenewal()}emitAfterSessionRenewal(){for(let t of this.listeners)t.onAfterSessionRenewal&&t.onAfterSessionRenewal()}emitOptout(){for(let t of this.listeners)t.onOptout&&t.onOptout()}emitReplayUnanonymizationConsentGranted(){for(let t of this.listeners)t.onReplayUnanonymizationConsentGranted&&t.onReplayUnanonymizationConsentGranted()}emitReplayUnanonymizationConsentWithdrawn(){for(let t of this.listeners)t.onReplayUnanonymizationConsentWithdrawn&&t.onReplayUnanonymizationConsentWithdrawn()}emitAfterReplayRecordingConsentGranted(){for(let t of this.listeners)t.onAfterReplayRecordingConsentGranted&&t.onAfterReplayRecordingConsentGranted()}emitAfterReplayRecordingConsentWithdrawn(){for(let t of this.listeners)t.onAfterReplayRecordingConsentWithdrawn&&t.onAfterReplayRecordingConsentWithdrawn()}emitCollectStateChange(t,e){for(let r of this.listeners)r.onCollectStateChange&&r.onCollectStateChange(t,e)}emitInitialDomStart(){for(let t of this.listeners)t.onInitialDomStart&&t.onInitialDomStart()}emitInitialDomDone(t){for(let e of this.listeners)e.onInitialDomDone&&e.onInitialDomDone(t)}emitRecordingContextChange(t=Sa.Other){for(let e of this.listeners)e.onRecordingContextChange&&e.onRecordingContextChange(t)}
16emitSensitiveStatusChange(){var t;for(let e of this.listeners)(t=e.onSensitiveStatusChange)===null||t===void 0||t.call(e)}emitBeforeVisitorRenewal(){for(let t of this.listeners)t.onBeforeVisitorRenewal&&t.onBeforeVisitorRenewal()}emitAfterVisitorCleared(){for(let t of this.listeners)t.onAfterVisitorCleared&&t.onAfterVisitorCleared()}emitAfterVisitorRenewal(){for(let t of this.listeners)t.onAfterVisitorRenewal&&t.onAfterVisitorRenewal()}emitSessionCreated(){for(let t of this.listeners)t.onSessionCreated&&t.onSessionCreated()}emitSessionRemoved(){for(let t of this.listeners)t.onSessionRemoved&&t.onSessionRemoved()}emitSessionRefreshed(){for(let t of this.listeners)t.onSessionRefreshed&&t.onSessionRefreshed()}emitTargetingRulesMatched(){for(let t of this.listeners)t.onTargetingRulesMatched&&t.onTargetingRulesMatched()}}return i.$deps=[Cn],b([Di("emitStartTracking")],i.prototype,"emitStartTracking",null),i})(),Nc=(function(){function i(r,n){function a(){this.constructor=r}a.prototype=n.prototype,r.prototype=new a}function s(r,n,a,o){var u=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf(u,s.prototype),u.expected=n,u.found=a,u.location=o,u.name="SyntaxError",u}i(s,Error);function t(r,n,a){return a=a||" ",r.length>n?r:(n-=r.length,a+=a.repeat(n),r+a.slice(0,n))}s.prototype.format=function(r){var n="Error: "+this.message;if(this.location){var a=null,o;for(o=0;o<r.length;o++)if(r[o].source===this.location.source){a=r[o].text.split(/\r\n|\n|\r/g);break}var u=this.location.start,c=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(u):u,p=this.location.source+":"+c.line+":"+c.column;if(a){var f=this.location.end,E=t("",c.line.toString().length," "),g=a[u.line-1],R=u.line===f.line?f.column:g.length+1,k=R-u.column||1;n+=` 17 --> `+p+` 18`+E+` | 19`+c.line+" | "+g+` 20`+E+" | "+t("",u.column-1," ")+t("",k,"^")}else n+=` 21 at `+p}return n},s.buildMessage=function(r,n){var a={literal:function(g){return'"'+u(g.text)+'"'},class:function(g){var R=g.parts.map(function(k){return Array.isArray(k)?c(k[0])+"-"+c(k[1]):c(k)});return"["+(g.inverted?"^":"")+R.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(g){return g.description}};function o(g){return g.charCodeAt(0).toString(16).toUpperCase()}function u(g){return g.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(R){return"\\x0"+o(R)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(R){return"\\x"+o(R)})}function c(g){return g.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(R){return"\\x0"+o(R)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(R){return"\\x"+o(R)})}function p(g){return a[g.type](g)}function f(g){var R=g.map(p),k,X;if(R.sort(),R.length>0){for(k=1,X=1;k<R.length;k++)R[k-1]!==R[k]&&(R[X]=R[k],X++);R.length=X}switch(R.length){case 1:return R[0];case 2:return R[0]+" or "+R[1];default:return R.slice(0,-1).join(", ")+", or "+R[R.length-1]}}function E(g){return g?'"'+u(g)+'"':"end of input"}return"Expected "+f(r)+" but "+E(n)+" found."};function e(r,n){n=n!==void 0?n:{};var a={},o=n.grammarSource,u={Expression:W},c=W,p="+",f="new",E="(",g=")",R=".",k="[",X="]",U=",",z="'",dt='"',vt="\\",ht=/^[0-9]/,ke=/^[^'\\]/,Pt=/^[^"\\]/,Ue=/^[a-zA-Z_$]/,Se=/^[a-zA-Z0-9_$]/,ii=/^[a-zA-Z0-9_$\-]/,Si=/^[ \t\n\r]/,V=pi("+",!1),ut=pi("new",!1),gt=pi("(",!1),Rt=pi(")",!1),Ie=pi(".",!1),hs=pi("[",!1),us=pi("]",!1),Pi=Qi([["0","9"]],!1,!1),rr=pi(",",!1),Xi=pi("'",!1),zt=pi('"',!1),li=pi("\\",!1),nr=ki(),Bn=Qi(["'","\\"],!0,!1),rn=Qi(['"',"\\"],!0,!1),ks=Qi([["a","z"],["A","Z"],"_","$"],!1,!1),ar=Qi([["a","z"],["A","Z"],["0","9"],"_","$"],!1,!1),Nr=Qi([["a","z"],["A","Z"],["0","9"],"_","$","-"],!1,!1),$i=Yn("whitespace"),Pr=Qi([" "," ",` 22`,"\r"],!1,!1),Os=function(T,P){return P},or=function(T,P){return P.length===0?T:{type:"concat",parts:[T,...P]}},lr=function(T,P){return P.length===0&&T.type==="identifier"?{type:"property",path:T.name}:{type:"chain",base:T,accessors:P}},kr=function(T){return{type:"identifier",name:T}},Or=function(T,P){return{type:"new",className:T,args:P!=null?P:[]}},Ms=function(T,P){return{type:"methodCall",name:T,args:P!=null?P:[]}},hr=function(T){return{type:"propertyAccess",name:T}},zn=function(T){return{type:"indexAccess",key:T}},nn=function(T){return{type:"string",value:T}},Mr=function(T,P){return P},Gn=function(T,P){return[T,...P]},an=function(T){return{type:"string",value:T.join("")}},Wn=function(T){return{type:"string",value:T.join("")}},jn=function(T){return T},qn=function(T){return T},L=0,ur=[{line:1,column:1}],_i=0,Dr=[],Yt=0,cr;if("startRule"in n){if(!(n.startRule in u))throw new Error(`Can't start parsing from rule "`+n.startRule+'".');c=u[n.startRule]}function pi(T,P){return{type:"literal",text:T,ignoreCase:P}}function Qi(T,P,H){return{type:"class",parts:T,inverted:P,ignoreCase:H}}function ki(){return{type:"any"}}function Vi(){return{type:"end"}}function Yn(T){return{type:"other",description:T}}function xr(T){var P=ur[T],H;
22if(P)return P;for(H=T-1;!ur[H];)H--;for(P=ur[H],P={line:P.line,column:P.column};H<T;)r.charCodeAt(H)===10?(P.line++,P.column=1):P.column++,H++;return ur[T]=P,P}function Ds(T,P,H){var M=xr(T),B=xr(P),Tt={source:o,start:{offset:T,line:M.line,column:M.column},end:{offset:P,line:B.line,column:B.column}};return Tt}function Xt(T){L<_i||(L>_i&&(_i=L,Dr=[]),l(Dr,I(T)))}function N(T,P,H){return new s(s.buildMessage(T,P),T,P,H)}function W(){var T,P,H,M,B,Tt;if(T=L,P=d(),P!==a){for(H=[],M=L,se(),r.charCodeAt(L)===43?(B=p,L++):(B=a,Yt===0&&Xt(V)),B!==a?(se(),Tt=d(),Tt!==a?M=Os(P,Tt):(L=M,M=a)):(L=M,M=a);M!==a;)l(H,I(M)),M=L,se(),r.charCodeAt(L)===43?(B=p,L++):(B=a,Yt===0&&Xt(V)),B!==a?(se(),Tt=d(),Tt!==a?M=Os(P,Tt):(L=M,M=a)):(L=M,M=a);T=or(P,H)}else L=T,T=a;return T}function d(){var T;return T=rt(),T===a&&(T=x()),T}function rt(){var T,P,H,M;if(T=L,P=ft(),P!==a){for(H=[],M=Lt();M!==a;)l(H,I(M)),M=Lt();T=lr(P,H)}else L=T,T=a;return T}function ft(){var T,P;return T=$(),T===a&&(T=L,P=G(),P!==a&&(P=kr(P)),T=P),T}function $(){var T,P,H,M,B,Tt;return T=L,r.substr(L,3)===f?(P=f,L+=3):(P=a,Yt===0&&Xt(ut)),P!==a?(se(),H=G(),H!==a?(r.charCodeAt(L)===40?(M=E,L++):(M=a,Yt===0&&Xt(gt)),M!==a?(B=O(),B===a&&(B=null),r.charCodeAt(L)===41?(Tt=g,L++):(Tt=a,Yt===0&&Xt(Rt)),Tt!==a?T=Or(H,B):(L=T,T=a)):(L=T,T=a)):(L=T,T=a)):(L=T,T=a),T}function Lt(){var T,P,H,M,B,Tt;return T=L,r.charCodeAt(L)===46?(P=R,L++):(P=a,Yt===0&&Xt(Ie)),P!==a?(H=G(),H!==a?(r.charCodeAt(L)===40?(M=E,L++):(M=a,Yt===0&&Xt(gt)),M!==a?(B=O(),B===a&&(B=null),r.charCodeAt(L)===41?(Tt=g,L++):(Tt=a,Yt===0&&Xt(Rt)),Tt!==a?T=Ms(H,B):(L=T,T=a)):(L=T,T=a)):(L=T,T=a)):(L=T,T=a),T===a&&(T=L,r.charCodeAt(L)===46?(P=R,L++):(P=a,Yt===0&&Xt(Ie)),P!==a?(H=ce(),H!==a?T=hr(H):(L=T,T=a)):(L=T,T=a),T===a&&(T=L,r.charCodeAt(L)===91?(P=k,L++):(P=a,Yt===0&&Xt(hs)),P!==a?(H=se(),M=S(),M!==a?(B=se(),r.charCodeAt(L)===93?(Tt=X,L++):(Tt=a,Yt===0&&Xt(us)),Tt!==a?T=zn(M):(L=T,T=a)):(L=T,T=a)):(L=T,T=a))),T}function S(){var T;return T=x(),T===a&&(T=Jt()),T}function Jt(){var T,P,H,M;if(T=L,P=L,H=[],ht.test(r.charAt(L))?(M=r.charAt(L),L++):(M=a,Yt===0&&Xt(Pi)),M!==a)for(;M!==a;)l(H,I(M)),ht.test(r.charAt(L))?(M=r.charAt(L),L++):(M=a,Yt===0&&Xt(Pi));else H=a;return H!==a?P=r.substring(P,L):P=H,P!==a&&(P=nn(P)),T=P,T}function O(){var T,P,H,M,B,Tt;if(T=L,P=x(),P!==a){for(H=[],M=L,se(),r.charCodeAt(L)===44?(B=U,L++):(B=a,Yt===0&&Xt(rr)),B!==a?(se(),Tt=x(),Tt!==a?M=Mr(P,Tt):(L=M,M=a)):(L=M,M=a);M!==a;)l(H,I(M)),M=L,se(),r.charCodeAt(L)===44?(B=U,L++):(B=a,Yt===0&&Xt(rr)),B!==a?(se(),Tt=x(),Tt!==a?M=Mr(P,Tt):(L=M,M=a)):(L=M,M=a);T=Gn(P,H)}else L=T,T=a;return T}function x(){var T,P,H,M;if(T=L,r.charCodeAt(L)===39?(P=z,L++):(P=a,Yt===0&&Xt(Xi)),P!==a){for(H=[],M=nt();M!==a;)l(H,I(M)),M=nt();r.charCodeAt(L)===39?(M=z,L++):(M=a,Yt===0&&Xt(Xi)),M!==a?T=an(H):(L=T,T=a)}else L=T,T=a;if(T===a)if(T=L,r.charCodeAt(L)===34?(P=dt,L++):(P=a,Yt===0&&Xt(zt)),P!==a){for(H=[],M=pt();M!==a;)l(H,I(M)),M=pt();r.charCodeAt(L)===34?(M=dt,L++):(M=a,Yt===0&&Xt(zt)),M!==a?T=Wn(H):(L=T,T=a)}else L=T,T=a;return T}function nt(){var T,P,H;return T=L,r.charCodeAt(L)===92?(P=vt,L++):(P=a,Yt===0&&Xt(li)),P!==a?(r.length>L?(H=r.charAt(L),L++):(H=a,Yt===0&&Xt(nr)),H!==a?T=jn(H):(L=T,T=a)):(L=T,T=a),T===a&&(ke.test(r.charAt(L))?(T=r.charAt(L),L++):(T=a,Yt===0&&Xt(Bn))),T}function pt(){var T,P,H;return T=L,r.charCodeAt(L)===92?(P=vt,L++):(P=a,Yt===0&&Xt(li)),P!==a?(r.length>L?(H=r.charAt(L),L++):(H=a,Yt===0&&Xt(nr)),H!==a?T=qn(H):(L=T,T=a)):(L=T,T=a),T===a&&(Pt.test(r.charAt(L))?(T=r.charAt(L),L++):(T=a,Yt===0&&Xt(rn))),T}function G(){var T,P,H,M,B;if(T=L,P=L,Ue.test(r.charAt(L))?(H=r.charAt(L),L++):(H=a,Yt===0&&Xt(ks)),H!==a){for(M=[],Se.test(r.charAt(L))?(B=r.charAt(L),L++):(B=a,Yt===0&&Xt(ar));B!==a;)l(M,I(B)),Se.test(r.charAt(L))?(B=r.charAt(L),L++):(B=a,Yt===0&&Xt(ar));H=[H,M],P=H}else L=P,P=a;return P!==a?T=r.substring(T,L):T=P,T}function ce(){var T,P,H,M,B;if(T=L,P=L,Ue.test(r.charAt(L))?(H=r.charAt(L),L++):(H=a,Yt===0&&Xt(ks)),H!==a){for(M=[],ii.test(r.charAt(L))?(B=r.charAt(L),L++):(B=a,Yt===0&&Xt(Nr));B!==a;)l(M,I(B)),ii.test(r.charAt(L))?(B=r.charAt(L),L++):(B=a,Yt===0&&Xt(Nr));H=[H,M],P=H}else L=P,P=a;return P!==a?T=r.substring(T,L):T=P,T}function se(){var T,P;for(Yt++,T=[],Si.test(r.charAt(L))?(P=r.charAt(L),L++):(P=a,Yt===0&&Xt(Pr));P!==a;)l(T,I(P)),Si.test(r.charAt(L))?(P=r.charAt(L),L++):(P=a,Yt===0&&Xt(Pr));return Yt--,P=a,Yt===0&&Xt($i),T}if(cr=c(),cr!==a&&L===r.length)return cr;throw cr!==a&&L<r.length&&Xt(Vi()),N(Dr,_i<r.length?r.charAt(_i):null,_i<r.length?Ds(_i,_i+1):Ds(_i,_i))}return{SyntaxError:s,parse:e}}
22)();Nc.SyntaxError.prototype.name="PeggySyntaxError";var nb=Nc.parse,ab=Nc.SyntaxError,Ym=new Map([["replace",i=>typeof i=="string"],["getItem",i=>i===v.localStorage||i===v.sessionStorage],["getTime",i=>i instanceof Date]]);function ob(i,s){let t=Ym.get(i);return t!==void 0&&t(s)}var Zm=[{method:"querySelector",receiver:"document",allowedResultProperties:new Set(["textContent","value"])}],Km={Date},ah=new Set(["__proto__","prototype","constructor"]),lb=100,vo=new Map;function hb(i){let s=vo.get(i);if(s!==void 0)return s;let t=nb(i);if(vo.size>=lb){let e=vo.keys().next().value;e!==void 0&&vo.delete(e)}return vo.set(i,t),t}function ub(i,s,t){let e,r;if(i.type==="identifier"){if(ah.has(i.name))return!1;r=t[i.name]}else if(!Km[i.className])return!1;for(let n=0;n<s.length;n++){let a=s[n];if(a.type==="indexAccess"){let o=a.key.value;if(ah.has(o)||e&&!e.has(o))return!1;e=void 0;continue}if(ah.has(a.name))return!1;if(a.type==="methodCall"){if(e)return!1;if(Ym.has(a.name))continue;if(n===0){let o=l(Zm,n_(u=>u.method===a.name&&u.receiver in t));if(o&&r===t[o.receiver]){e=o.allowedResultProperties;continue}}return!1}if(e&&!e.has(a.name))return!1;e=void 0}return!e}function Xm(i,s){switch(i.type){case"string":return i.value;case"property":return db(i.path,s);case"chain":return cb(i.base,i.accessors,s);case"concat":{let t="";for(let e of i.parts){let r=Xm(e,s);if(r===void 0)return;t+=r}return t}}}function cb(i,s,t){if(!ub(i,s,t))return;let e;if(i.type==="identifier"){if(e=t[i.name],e===void 0)return}else{let r=Km[i.className];if(!r)return;e=new r(...l(i.args,$t(n=>n.value)))}for(let r=0;r<s.length;r++){let n=s[r];if(e==null)return;if(n.type==="propertyAccess")e=e[n.name];else if(n.type==="indexAccess")e=e[n.key.value];else{if(!(r===0&&l(Zm,ye(u=>u.method===n.name)))&&!ob(n.name,e))return;let a=e[n.name];if(typeof a!="function")return;let o=l(n.args,$t(u=>u.value));e=a.apply(e,o)}}return e==null?void 0:String(e)}
22function db(i,s){if(ah.has(i))return;let t=s[i];if(t!==void 0)return String(t)}var pb=/\$\{([\s\S]+?)\}/g,gb=i=>(s,t)=>{let e=hb(l(t,ai())),r=Xm(e,i);if(r===void 0)throw new Error("undefined not allowed");return r};function _a(i,s){try{return l(i,jt(pb,gb(s)))}catch(t){return t instanceof ab&&fe.warn(`Interpolation failed to parse expression in "${i}": ${t.message}`,!0,"INTERPOLATION_PARSE_ERROR"),null}}function Pc(i,s){let t={};for(let e of Object.keys(i)){let r=i[e];if(j(r)){let n=_a(r,s);if(n===null)return null;t[e]=n}else t[e]=r}return t}function kc(i,s){let t=l(i,de(","),$t(e=>_a(e,s)),xt(e=>e!==null&&ui(e))).join(",");return ui(t)?t:null}var Oc=(()=>{let i;return(function(s){s.AND="AND",s.OR="OR"})(i||(i={})),i})(),Cs=(()=>{let i;return(function(s){s.STARTS_WITH="startsWith",s.EQUALS="equals",s.NOT_EQUALS="notEquals",s.CONTAINS="contains",s.NOT_CONTAINS="notContains",s.MATCHES="matches",s.NOT_MATCHES="notMatches",s.EXIST="exist",s.NOT_EXIST="notExist"})(i||(i={})),i})();function Qm(i,s){return fb(i.operator,yb(i.args,s))}function fb(i,s){switch(i){case Cs.EXIST:case Cs.NOT_EXIST:return mb(i,s);default:return vb(i,s)}}function mb(i,s){let[t]=s;if(!ui(t))return!1;switch(i){case Cs.EXIST:return l(D,pn(t))!==null;case Cs.NOT_EXIST:return l(D,pn(t))===null;default:return!1}}function vb(i,s){let[t,e]=s;if(!(i in Oc)&&!(j(t)&&j(e)))return!1;switch(i){case Oc.AND:return!!s.reduce((r,n)=>r&&n);case Oc.OR:return!!s.reduce((r,n)=>r||n);case Cs.STARTS_WITH:return Ei(t,e);case Cs.EQUALS:return t===e;case Cs.NOT_EQUALS:return t!==e;case Cs.CONTAINS:return l(t,Bt(e))>-1;case Cs.NOT_CONTAINS:return l(t,Bt(e))===-1;case Cs.MATCHES:{let r=Jm(e);return r!==null&&r.test(t)}case Cs.NOT_MATCHES:{let r=Jm(e);return r!==null&&!r.test(t)}default:return!1}}function Eb(i){return!!(i&&i.operator&&i.args)}function yb(i,s){return l(i,$t(t=>Eb(t)?Qm(t,s):j(t)?_a(t,s):t))}function Jm(i){let s=/^\/(.*)\/([gimy]*)$/.exec(i),t=null;if(s){let[,e,r]=s;try{t=new Re(e,r)}catch(n){}}else try{t=new Re(i)}catch(e){}return t}var tv=["api-errors:maskUrl"],ei=(()=>{class i{constructor(t,e){this.commandsService=t,this.args=e}}return i})(),Eo=(()=>{class i extends ei{}return i})(),Sb=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.url):!1}execute(t){this.commandsService.applyFromImplementation(tv[0],[t.url],"ApiErrorsMaskUrlTemplate")}}return i})(),yo=["trackPageview"],oh=["setPath"],lh=["setQuery"],Mc=["referrer:maskUrl"],ev=["referrer:removeQueryString"],iv=["referrer:keepQueryString"];function Dc(i){switch(i){case"no decoding":return null;case"decode once":return{decodeURI:!0};case"decode multiple times":return{decodeURIDeep:!0};default:return null}}function xc(i){return(i==null?void 0:i[0])==="on next pageview only"?{lifespan:"onNextPageviewOnly"}:null}var sv=(()=>{class i extends ei{validateArgs(t){if(Gt(t)){let e=le(t.path)?j(t.path):!0,r=le(t.decodeURI
22)?j(t.decodeURI):!0,n=le(t.lifespan)?Array.isArray(t.lifespan):!0;return e&&r&&n}return!1}execute(t){if(!t.path)this.qn([]);else{let e=[t.path],r=Dc(t.decodeURI),n=xc(t.lifespan),a=Z(Z({},r),n);Object.keys(a).length&&e.push(a),this.qn(e)}}qn(t){this.commandsService.applyFromImplementation(yo[0],t,"ArtificialPageviewTemplate")}}return i})(),hh=["excludeURLforReplay"],Lc=(()=>{let i;return(function(s){s.SessionReplay="SR",s.None=""})(i||(i={})),i})(),_b=".^",rv=".*",kn=(()=>{class i{constructor(t){this.A=t,this._u=new Re(`${_b}`)}setExcludeUrlForSessionReplay(t){try{this._u=new Re(t)}catch(e){K.warn(`excludeURLforReplay - invalid regex '${t}'`),this._u=new Re(`${rv}`)}}up(){return this._u.test(this.A.getAnonymizedUrl())?Lc.SessionReplay:Lc.None}isUrlExcludedForSessionReplay(){return this.up()===Lc.SessionReplay}getRequestParameters(){return{ex:this.up()}}}return i.$deps=[ti],i})(),Rb=(()=>{class i extends ei{constructor(){super(...arguments),this.yu=!1}validateArgs(t){return Gt(t)&&j(t.type)&&j(t.urls)&&(t.type==="allow"||t.type==="block")&&l(t.urls,ai()).length>0?(this.yu=!1,!0):(K.implementation(`BlockAllowListForSRTemplate has wrong argument: ${t}, fallback to default config.`),this.yu=!0,!0)}execute(t){let e="";this.yu?e=rv:e=this.wR(t.urls,t.type),this.commandsService.applyFromImplementation(hh[0],[e],"BlockAllowListForSRTemplate")}wR(t,e){let r=e==="allow"?"?!":"";return r+=l(t,de(","),$t(n=>`.*${l(n,ai())}`)).join("|"),`^(${r}).*?`}}return i})(),uh=["trackError"],Tb=(()=>{class i extends Eo{validateArgs(t){return Gt(t)?j(t.message)&&Array.isArray(t.attributes):!1}execute(t,e){let r=_a(t.message,e);if(!r)return;let n={};for(let a of t.attributes){let o=_a(a.value,e);o!==null&&(n[a.key]=o)}this.commandsService.applyFromImplementation(uh[0],[r,n],"CustomErrorTemplate")}}return i})(),bs=["setCustomVariable"],{toString:Cb}=Object.prototype;function bb(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Cb.call(i)}var Uc=i=>typeof i=="symbol"||typeof i=="object"&&i!=null&&bb(i)==="[object Symbol]";function nv(i){if(typeof i=="string"||Uc(i))return i;let s=`${i}`;return typeof i=="number"?s==="0"&&1/i===-1/0?"-0":s:i instanceof Number&&s==="0"&&1/i.valueOf()===-1/0?"-0":s}var Ab=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ib=/^\w*$/;function wb(i,s){return Array.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||Uc(i)?!0:Ib.test(i)||!Ab.test(i)||s!=null&&i in Object(s)}function $c(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new TypeError("Expected a function");let t=function(...e){let r=s?s.apply(this,e):e[0],{cache:n}=t;if(n.has(r))return n.get(r);let a=i.apply(this,e);return t.cache=n.set(r,a)||n,a};return t.cache=new($c.Cache||Map),t}$c.Cache=Map;var Nb=500;function Pb(i){let s=$c(i,t=>{let{cache:e}=s;return e.size===Nb&&e.clear(),t});return s}var kb=46,Ob=/\\(\\)?/g,Mb=Re(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),av=Pb(i=>{let s=[];return i.charCodeAt(0)===kb&&l(s,I("")),l(i,jt(Mb,(t,e,r,n)=>{let a=t;return r?a=l(n,jt(Ob,"$1")):e&&(a=l(e,ai())),l(s,I(a)),t})),s});function Db(i,s){return Array.isArray(i)?i:wb(i,s)?[i]:av(i)}function xb(i,s){let t=Db(s,i),e=i,r=0,{length:n}=t;for(;e!=null&&r<n;){let a=nv(t[r]);e=e[a],r+=1}return r&&r===n?e:void 0}function Lb(i){return"iterable"in i}function ov(i){return le(i.iterable)?j(i.iterable)||i.iterable===null:!0}var Ub=(()=>{class i extends ei{validateArgs(t){if(Gt(t)){let e=ov(t),r=Array.isArray(t.scope)?Yp(t.scope,n=>j(n)):!0;return e&&r&&ze(t.index)&&j(t.name)&&j(t.value)}return!1}execute(t){this.commandsService.applyFromImplementation(bs[0],[t.index,t.name,t.value,t.scope[0]],"CustomVariableTemplate")}}return i})(),Vc=["setEncryptionSelectors"],So=["setPIISelectors"],ch=["setCapturedElementsSelector"],$b=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.selector):!1}execute(t){this.commandsService.applyFromImplementation(Vc[0],[t.selector],"DataCsEncryptTemplate")}}return i})(),Vb="data-cs-override-id",Fb=(()=>{class i extends ei{validateArgs(t){if(Gt(t)){let e=Me(t.value)?j(t.value):!0;return j(t.selector)&&e}return!1}execute(t){var e;if(!ui(t.selector))return;let r=l(D,pn(t.selector));r&&r.setAttribute(Vb,(e=t.value)!==null&&e!==void 0?e:"")}}return i})(),Hb=20,Bb=(()=>
22{class i extends Eo{validateArgs(t){return Gt(t)?ov(t)&&j(t.key)&&j(t.value)&&j(t.type):!1}execute(t,e){let r=Pc(t,e);r!==null?this.qn(r):this.bR(t,e)()}bR(t,e){return()=>{let r=0,n=ta(()=>{r+=1;let a=Pc(t,e);if(a!==null){gr(n),n=void 0,r=0,this.qn(a);return}r>=Hb&&(gr(n),n=void 0,r=0)},100)}}qn(t){let e=t.value;if(t.type==="Integer"){let r=Number.parseInt(t.value,10);Number.isNaN(r)||(e=r)}this.commandsService.applyFromImplementation(mo[0],[{key:t.key,value:e}],"DynamicVariableTemplate")}}return i})(),lv=["ecommerce:addToCart","ec:cart:add"],_o=["ecommerce:addTransaction","ec:transaction:create"],Ra=["ecommerce:addItem","ec:transaction:items:add"],Ro=["ecommerce:send","ec:transaction:send"],zb=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.transactionId)&&ze(t.revenue)&&j(t.currency)&&j(t.name)&&j(t.sku)&&j(t.category)&&ze(t.price)&&ze(t.quantity):!1}execute(t){this.RR({id:t.transactionId,revenue:t.revenue,currency:t.currency}),this.TR({id:t.transactionId,name:t.name,sku:t.sku,category:t.category,price:t.price,quantity:t.quantity}),this.xa()}RR(t){this.commandsService.applyFromImplementation(_o[0],[t],"EcTransactionAllTemplate")}TR(t){this.commandsService.applyFromImplementation(Ra[0],[t],"EcTransactionAllTemplate")}xa(){this.commandsService.applyFromImplementation(Ro[0],[],"EcTransactionAllTemplate")}}return i})(),Gb=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.id)&&ze(t.revenue)&&j(t.currency):!1}execute(t){this.commandsService.applyFromImplementation(_o[0],[t],"EcTransactionCreateTemplate")}}return i})(),Wb=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.id)&&j(t.name)&&j(t.sku)&&j(t.category)&&ze(t.price)&&ze(t.quantity):!1}execute(t){this.commandsService.applyFromImplementation(Ra[0],[t],"EcTransactionItemsAddTemplate")}}return i})(),jb=(()=>{class i extends ei{validateArgs(t){return!!Gt(t)}execute(){this.commandsService.applyFromImplementation(Ro[0],[],"EcTransactionSendTemplate")}}return i})(),qb=(()=>{class i extends Eo{validateArgs(t){return Gt(t)?Me(t)&&j(t.selector):!1}execute(t,e){if(!Me(t)||!j(t==null?void 0:t.selector))return;let r=kc(t.selector,e);r!==null&&this.commandsService.applyFromImplementation(ch[0],[r],"ElementUnmaskingTemplate")}}return i})(),dh=["trackPageEvent"],Ta=["trackEventTriggerRecording"],Yb=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(Ta[0],[`@ETP@${t.eventName}`],"EventTriggerRecordingPageTemplate")}}return i})(),Zb=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(Ta[0],[`@ETS@${t.eventName}`],"EventTriggerRecordingSessionTemplate")}}return i})(),Fc=["networkRequest:maskUrls"],hv=["networkRequest:maskUrls:reset"],Kb=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.maskingPattern):!1}execute(t){this.commandsService.applyFromImplementation(Fc[0],[t.maskingPattern],"NetworkRequestMaskUrlTemplate")}}return i})(),Xb=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(dh[0],[t.eventName],"PageEventTemplate")}}return i})(),Qb=(()=>{class i extends Eo{validateArgs(t){if(Gt(t)){let e=Array.isArray(t.cssSelectors),r=Array.isArray(t.attributes);return e&&r}return!1}execute(t,e){let r=l(t.cssSelectors,$t(o=>kc(o,e)),xt(o=>!!o)),n=l(t.attributes,$t(o=>{let u=_a(o.attrName,e),c=kc(o.selector,e);return{attrName:u,selector:c}}),xt(o=>!!o.attrName&&!!o.selector)),a={PIISelectors:[...r],Attributes:[...n]};this.commandsService.applyFromImplementation(So[0],[a],"PIIMaskingTemplate")}}return i})(),Jb=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(Ta[0],[`${t.eventName}`],"RecordingEventTriggerTemplate")}}return i})(),tA=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.path):!1}execute(t){let e=[t.path],r=Dc(t.decodeURI),n=xc(t.lifespan),a=Z(Z({},r),n);Object.keys(a).length&&e.push(a),this.commandsService.applyFromImplementation(oh[0],e,"SetPathTemplate")}}return i})(),eA=(()=>{class i extends ei{validateArgs(t){return Gt(t)?j(t.query):!1}
22execute(t){let e=[t.query],r=Dc(t.decodeURI),n=xc(t.lifespan),a=Z(Z({},r),n);Object.keys(a).length&&e.push(a),this.commandsService.applyFromImplementation(lh[0],e,"SetQueryTemplate")}}return i})(),Hc=["isRecording"],ph=["replay:resourceManager:enableForOnlineResource:nextPageviewOnly","cssrm:onlineAssets:activateForNextPageview"],Bc=["replay:resourceManager:getStatus","cssrm:getStatus"],iA=(()=>{class i extends ei{validateArgs(t){return!!Gt(t)}execute(){this.commandsService.applyFromImplementation(ph[0],[],"SrmOnlineAssetsTemplate")}}return i})(),gh=["afterPageView"],uv=["getSessionKey"],sA=["getPageviewContext"],zc=["onRecordingContextChange","onRecordingStateChange"],rA=["replay:link:generate"],ji=(()=>{class i{onEvent(t){this.onEventCallback=t}constructor(t,e,r,n){this.commandsService=t,this.condition=r,this.experimentalConfig=n,this.isStarted=!1,this.Yn=!1,this.args=e}start(){this.Yn||(this.onInit(),this.Yn=!0),this.isStarted||(this.onStart(),this.isStarted=!0)}stop(){this.isStarted&&(this.onStop(),this.isStarted=!1)}}return b([J()],i.prototype,"start",null),b([J()],i.prototype,"stop",null),i})(),nA=(()=>{class i extends ji{validateArgs(t){return!!Gt(t)}CR(){this.isStarted&&this.onEventCallback()}onInit(){this.commandsService.applyFromImplementation(gh[0],[()=>this.CR()],"AfterPageViewTrigger")}onStart(){}onStop(){}}return i})(),Gc=(()=>{class i extends ji{constructor(){super(...arguments),this.wu={pageviewTypes:["natural","artificial"]}}validateArgs(t){var e;return Gt(t)&&ss(t)&&Array.isArray(t.pageviewTypes)&&Yp(t.pageviewTypes,r=>j(r))||(K.implementation(`BeforePageViewTrigger has wrong argument: ${(e=this.args)===null||e===void 0?void 0:e.pageviewTypes}, fallback to default config.`),this.args=this.wu),!0}onInit(){this.AR=this.args.pageviewTypes}onPageView(t){this.isStarted&&l(this.AR,Dt(t))!==-1&&this.onEventCallback()}onStart(){}onStop(){}}return i})(),cv="once per pageview",aA="always",oA=(()=>{class i extends ji{constructor(){super(...arguments),this.mt=!0}validateArgs(t){if(Gt(t)){let e=j(t.selector),r=t.frequency?t.frequency===cv||t.frequency===aA:!0;return e&&r}return!1}onInit(){if(!ui(this.args.selector)){this.mt=!1;return}this.Xn=this.args.frequency?this.args.frequency===cv:!0,this.G=new js((t,e)=>this.R(t,e))}onStart(){this.mt&&this.G.observe(this.args.selector)}onStop(){this.mt&&(this.G.processPendingMutations(),this.G.disconnect())}R(t,e){e==="added"&&(this.Xn?(this.stop(),this.onEventCallback({element:t[0]})):new Set(t).forEach(r=>this.onEventCallback({element:r})))}}return i})(),dv="once per pageview",lA="always",hA=(()=>{class i extends ji{constructor(){super(...arguments),this.bu=!1,this.ki=!1,this.Xn=!0}validateArgs(t){if(Gt(t)){let e=j(t.selector),r=t.frequency?t.frequency===dv||t.frequency===lA:!0;return e&&r}return!1}onInit(){if(!Ol.isSupported())return;this.ki=!0,this.Xn=this.args.frequency?this.args.frequency===dv:!0;let t=this.hp();this.Y=new js((e,r)=>{if(r==="initial")for(let n of e)mi.isVisibleInViewportInForeground(n)&&(n[this.Ru]=!0);this.Tu(e)},{closest:t}),this.Jt=new Ol({delay:0,trackOnce:!1,reobserve:!0,allowSameMatch:!0})}onStart(){!this.ki||this.isStarted||(this.Ru=Symbol("skipElement"),this.bu=!1,this.Jt.start((t,e)=>this.Cu(t,e)),this.Y.observe(this.args.selector))}onStop(){!this.ki||!this.isStarted||(this.Y.disconnect(),this.Jt.stop())}Cu(t,e){if(this.isStarted&&e===ao.VisibleInViewPort){let r=this.hp()?t.closest(this.args.selector):t;if(r){if(r&&r[this.Ru]){delete r[this.Ru];return}this.Xn&&this.stop(),(!this.Xn||!this.bu)&&(this.bu=!0,this.onEventCallback({element:r}))}}}Tu(t){for(let e of t)this.Jt.observe(e)}hp(){var t;return((t=this.experimentalConfig)===null||t===void 0?void 0:t.useClosestElement)===!0}}return i})(),uA=(()=>{class i extends ji{constructor(){super(...arguments),this.Au=!1,this.mt=!0,this.Qs=!0,this.ae={boundElement:D,type:"click",listener:t=>{if(this.Au){this.Au=!1;return}this.onClickOrTap(t)}},this.IR=(t,e)=>{t.type===Ye.TAP&&(this.Au=!0,this.onClickOrTap(e))}}validateArgs(t){return Gt(t)?j(t.selector):!1}onClickOrTap({target:t}){if(Me(t)&&mr(t)){let e=ua(t,this.args.selector);e&&this.onEventCallback({element:e})}}onInit(){if(!ui(this.args.selector)){this.mt=!1;return}this.Hn=new ef(this.IR)}onStart(){var t;this.mt&&(Ke(this.ae,this.Qs),(t=this.Hn)===null||t===void 0||t.observe())}onStop(){var t;this.mt&&(Ge(this.ae,this.Qs),(t=this.Hn)===null||t===void 0||t.disconnect())}}return b([J("onClickOrTap"),Ne()],i.prototype,"onClickOrTap",null),i})(),cA=(()=>{class i extends ji{constructor(){super(...arguments),this.mt=!0,this.dp=!1}validateArgs(t){return Gt(t)?j(t.selector):!1}onInit(){if(!ui(this.args.selector)){this.mt=!1;return}this.G=new js((t,e)=>{this.R(t,e)})}onStart(){this.mt&&(this.G.observe(this.args.selector),this.dp=!0)}onStop(){this.mt&&(this.G.processPendingMutations(),this.G.disconnect())}R(t,e){this.dp?e==="added"&&new Set(t).forEach(r=>this.onEventCallback({element:r})):this.onEventCallback({element:t[0]})}}return i})(),dA=(()=>{class i extends ji{constructor(){super(...arguments),this.mt=!0}validateArgs(t){return Gt(t)?j(t.selector):!1}onInit(){if(!ui(this.args.selector)){this.mt=!1;return}this.Y=new js(t=>this.PR(t)),this.D=new ys(t=>this.MR(t))}onStart(){this.mt&&(this.$a=Symbol("MatchingElement"),this.Y.observe(this.args.selector),this.D.observe())}onStop(){this.mt&&(this.Y.processPendingMutations(),this.Y.disconnect(),this.D.disconnect())}
22PR(t){new Set(t).forEach(e=>this.NR(e))}MR(t){let e=jp(t,n=>n.removedNodes),r=[];for(let n of e)l(r,I(...this.kR(n)));new Set(r).forEach(n=>this.onEventCallback({element:n}))}NR(t){t[this.$a]=!0}kR(t){let e=[];return Ai(t,NodeFilter.SHOW_ELEMENT).visitAll(r=>{r[this.$a]&&(mi.isConnected(r)?Li.call(r,this.args.selector)||delete r[this.$a]:delete r[this.$a],l(e,I(r)))}),e}}return i})(),pA=(()=>{class i extends ji{constructor(){super(...arguments),this.Ua=!0}validateArgs(t){return Gt(t)?j(t.selector):!1}onInit(){if(!ui(this.args.selector)||!Ol.isSupported()){this.Ua=!1;return}this.Jt=new Ol({delay:0,trackOnce:!0,reobserve:!0}),this.Y=new js(t=>this.Tu(t),{closest:!0})}Tu(t){for(let e of t)this.Jt.observe(e)}Cu(t,e){if(this.isStarted&&e===ao.VisibleInViewPort){let r=ua(t,this.args.selector);r&&(this.onEventCallback({element:r}),this.stop(),this.Ua=!1)}}onStart(){this.Ua&&(this.Jt.start((t,e)=>this.Cu(t,e)),this.Y.observe(this.args.selector))}onStop(){this.Ua&&(this.Jt.stop(),this.Y.disconnect())}}return i})(),gA=(()=>{class i extends ji{constructor(){super(...arguments),this.mt=!0,this.Qs=!0,this.ae={boundElement:D,type:"submit",listener:t=>this.submitListener(t)}}validateArgs(t){return Gt(t)?j(t.selector):!1}submitListener({target:t}){Me(t)&&mr(t)&&Li.call(t,this.args.selector)&&this.onEventCallback({element:t})}onInit(){ui(this.args.selector)||(this.mt=!1)}onStart(){this.mt&&Ke(this.ae,this.Qs)}onStop(){this.mt&&Ge(this.ae,this.Qs)}}return b([J("submitListener"),Ne()],i.prototype,"submitListener",null),i})(),fA=(()=>{class i extends ji{constructor(){super(...arguments),this.ae={boundElement:v,type:"hashchange",listener:t=>this.hashChangedListener(t)}}validateArgs(t){return!!Gt(t)}hashChangedListener(t){t.newURL&&t.newURL===t.oldURL||this.onEventCallback()}onInit(){}onStart(){Ke(this.ae)}onStop(){Ge(this.ae)}}return b([J("hashChangedListener"),Ne()],i.prototype,"hashChangedListener",null),i})(),mA=(()=>{class i extends ji{validateArgs(t){if(Gt(t)){let e=j(t.useDebounce),r=t.useDebounce==="yes"?ze(t==null?void 0:t.window):!0,n=j(t.listeners);return e&&r&&n}return!1}onInit(){this.args.useDebounce==="yes"?this.Ms=yl(()=>{this.onEventCallback()},this.args.window):this.Ms=this.onEventCallback,this.G=new sR(t=>this.DR(t))}fp(){return v.location.href}DR(t){let e=t.type==="replacestate"&&l(this.args.listeners,Bt("replaceState"))===-1,r=t.type==="hashchange"&&l(this.args.listeners,Bt("hashchange"))===-1;if(e||r)return;let n=this.fp();this.gp!==n&&(this.gp=n,this.Ms())}onStart(){this.gp=this.fp(),this.G.observe()}onStop(){this.G.disconnect()}}return i})(),vA=(()=>{class i extends ji{constructor(){super(...arguments),this.mt=!0,this.pp={boundElement:D,type:"mouseover",listener:t=>this.mouseoverListener(t)},this.mp={boundElement:D,type:"mouseleave",listener:t=>this.mouseleaveListener(t)}}validateArgs(t){return Gt(t)?j(t.selector):!1}onInit(){ui(this.args.selector)||(this.mt=!1)}mouseleaveListener({target:t}){Me(t)&&mr(t)&&t[this.Va]&&delete t[this.Va]}mouseoverListener({target:t}){if(Me(t)&&mr(t)){let e=ua(t,this.args.selector);e!==null&&!e[this.Va]&&(e[this.Va]=!0,this.onEventCallback({element:e}))}}onStart(){this.mt&&(this.Va=Symbol("Hovered"),Ke(this.mp,!0),Ke(this.pp,!0))}onStop(){this.mt&&(Ge(this.pp),Ge(this.mp))}}return b([J("mouseleaveListener"),Ne()],i.prototype,"mouseleaveListener",null),b([J("mouseoverListener"),Ne()],i.prototype,"mouseoverListener",null),i})(),EA=(()=>{class i extends ji{constructor(){super(...arguments),this.wu={state:"Any"}}validateArgs(t){var e;return Gt(t)&&j(t.state)||(K.implementation(`PageStateTrigger has wrong argument: ${(e=this.args)===null||e===void 0?void 0:e.state}, fallback to default config.`),this.args=this.wu),!0}onInit(){this.Ep=this.args.state.toLowerCase(),this.G=new rR(()=>{this.vp(this.Ep,D.readyState)&&(this.onEventCallback(),this.G.disconnect())})}onStart(){this.vp(this.Ep,D.readyState)?this.onEventCallback():this.G.observe()}onStop(){this.G.disconnect()}vp(t,e){let r=i.Sp[e];return i.Sp[t]<=r}}return i.Sp={complete:3,interactive:2,loading:1,any:0},i})(),yA=(()=>{class i{constructor(t,e){this.w=t,this.LR=e,this.xR={ApiErrorsMaskUrl:Sb,NetworkRequestMaskUrls:Kb,ArtificialPageview:sv,BlockAllowListForSr:Rb,CustomError:Tb,CustomVariable:Ub,DataCsEncrypt:$b,DataCsOverride:Fb,DynamicVariable:Bb,EcTransactionAll:zb,EcTransactionCreate:Gb,EcTransactionItemsAdd:Wb,EcTransactionSend:jb,ElementUnmasking:qb,EventTriggerRecordingPage:Yb,EventTriggerRecordingSession:Zb,PageEvent:Xb,PiiMasking:Qb,RecordingEventTrigger:Jb,SetPath:tA,SetQuery:eA,SrmOnlineAssets:iA},this.kr={AfterPageView:nA,ElementAdded:oA,ElementBecomesVisible:hA,ElementExist:cA,ElementRemoved:dA,ElementVisibility:pA,ElementClick:uA,FormSubmit:gA,HashChange:fA,HistoryChange:mA,Mouseover:vA,PageState:EA,BeforePageView:Gc}}$R(t){let e=this.xR[t.name];return e?new e(this.w,t.args):(K.error(`Implementations: template ${t.name} does not exist`),null)}UR(t){var e;let r=this.kr[t.name];if(!r)return K.error(`Implementations: trigger ${t.name} does not exist`),null;let n=(e=this.LR)===null||e===void 0?void 0:e[t.name];return new r(this.w,t.args,t.condition,n)}parse(t){let e=[];for(let{triggers:r,template:n}of t){let a=this.$R(n);
22if(a){if(!a.validateArgs(a.args)){K.implementation(`${n.name} has wrong argument.`);continue}for(let o of r){let u=this.UR(o);if(u){if(!u.validateArgs(u.args)){K.implementation(`${o.name} has wrong argument.`);continue}l(e,I({name:`${o.name}_${n.name}`,trigger:u,template:a}))}}}}return e}}return i})();function SA(i,s,t){let e=i==null?void 0:xb(i,s);return e===void 0?t:e}function _A(i){return Array.isArray(i)?l(i,$t(nv)):Uc(i)?[i]:Array.from(av(i))}function RA(i,s){try{let t=/^values\(([a-zA-Z0-9_$[\].]+)\)\[\?([a-zA-Z0-9_$]+)\]$/.exec(i);if(!t)return null;let e=t[1],r=t[2],n=SA(s,_A(e));if(typeof n!="object"||n===null)return null;let a=[];return l(Object.keys(n),et(o=>{let u=n[o];typeof u=="object"&&u!==null&&!Array.isArray(u)&&r in u&&l(a,I(u))})),a}catch(t){return null}}function TA(i,s){let t=/^\[([0-9]+):([0-9+])\]$/.exec(i);if(!t)return null;let e=parseInt(t[1],10),r=parseInt(t[2],10);return r<=e||r>s.length?null:l(s,Fp(e,r))}function CA(i,s){let t=l(i,de("|"));if(t.length>2)return null;let e=RA(l(t[0],ai()),s);return t.length===2?e===null?null:TA(l(t[1],ai()),e):e}var fh=(()=>{class i{constructor(t,e,r,n){this.VR=t,this.ve=r,this.Se={window:v,document:D,location,cookies:{}},this.kr=new Set,this.HR=new yA(e,n)}onInit(){Object.defineProperty(this.Se,"cookies",{get:()=>this.jR()});let t=this.HR.parse(this.VR);for(let{name:e,trigger:r,template:n}of t)r instanceof Gc&&n instanceof sv||(this.kr.add(r),r.onEvent(a=>{this.onTriggerEvent(a,n),ot.counters.CSTCSnippetUsed.count(e)}))}start(t=!1){this.kr.forEach(e=>{e.condition&&!Qm(e.condition,this.Se)||(t?this.ve.task(()=>{e.start()}):e.start())})}stop(){this.kr.forEach(t=>{t.stop()})}onBeforePageView(t){this.kr.forEach(e=>{if(e instanceof Gc){e.onPageView(t);return}})}onTriggerEvent(t,e){let r=this.BR(t),n=Z(Z({},this.Se),r),a=[];if(Lb(e.args)&&j(e.args.iterable)&&e.args.iterable.length>0){let o=CA(e.args.iterable,n);if(Me(o)){let u=l(o,$t(c=>Vt(Z({},n),{$:c})));l(a,I(...u))}}else l(a,I(n));if(e instanceof Eo){for(let o of a)e.execute(e.args,o);return}for(let o of a){let u=Pc(e.args,o);u&&e.execute(u)}}jR(){let t;try{t=D.cookie}catch(e){t=""}return l(t,de("; ")).reduce((e,r)=>
22{let[n,a]=l(r,de("="));return a!==void 0&&(e[n]=a),e},{})}BR(t){let e=Z({},t);for(let r in e)Fe(e[r])&&(ct.isMaskedElement(e[r])||ct.isMaskedElementChild(e[r]))&&delete e[r];return e}}return b([Di("implementationsService.start")],i.prototype,"start",null),b([J()],i.prototype,"onTriggerEvent",null),i})(),He=(()=>{class i{constructor(){this._isStarted=!1}get isStarted(){return this._isStarted}start(...t){this._isStarted||(this._isStarted=!0,this.onStart(...t))}stop(){this._isStarted&&(this._isStarted=!1,this.onStop())}restart(){this.stop(),this.start()}}return i})(),pv=(()=>{let i;return(function(s){s.UXA="_uxa",s.WVT="cs_wvt"})(i||(i={})),i})(),Kt=(()=>{class i extends He{constructor(t,e){super(),this.Kn=t,this.Iu=e,this.et={},this.Pu=[]}addCommandRegistry(t){l(this.Kn,na(t))||l(this.Kn,I(t))}register(t,e,r){for(let n of t){let a=(...o)=>{let u=(r==null?void 0:r.metricParameter)||n;try{let c=e(...o);return ot.counters.commandApplied.count(u),c}catch(c){c instanceof ge?(ot.counters.commandMisuse.count(u),K.implementation(`Misused Command: ${n}; Args: ${Ht.stringify(o)}; Error: ${Hs(c)?c.stack:c}`)):(ot.counters.commandError.count(u),K.error(`Command Error - ${n}: ${Hs(c)?c.stack:c}`))}};this.et[n]={callback:a,configuration:r}}}onStart(){this.FR(),this.GR();for(let t of this.Pu)t.start()}onStop(){for(let t of this.Kn)v[t]=[];for(let t of this.Pu)t.stop()}registerCompanion(t){if(this.isStarted)throw new Error("Cannot register companion after CommandsService has started");l(this.Pu,I(t))}applyFromIntegration(t,e,r){this._p(t,e,`Commands.apply.from.integration: ${r}`),ot.counters.commandsFromIntegrations.count(t)}applyFromImplementation(t,e,r){var n;this._p(t,e,`Commands.apply.from.implementation: ${r}`),ot.counters.commandsFromCSTC.count(t),r==="PIIMaskingTemplate"&&((n=this.Iu)===null||n===void 0||n.markPIIMaskingTemplateInUse(e[0]))}onIframeCommands(t){for(let e of t.commands)this.zR(e.name,e.params,t.iframePath),ot.counters.commandsFromIframe.count(e.name)}_p(t,e,r){if(!this.isStarted){v._uxa.push([t,...e]);return}K.tryToExecute(r,()=>{if(this.et[t])return this.et[t].callback(...e)})()}zR(t,e,r){K.tryToExecute(`Commands.apply.from.iframe: ${r}`,()=>{if(this.et[t])return this.et[t].callback(...e)})()}FR(){for(let t of this.Kn)v[t].forEach(([e,...r])=>this.yp(e,r,!1))}GR(){for(let t of this.Kn)v[t]={push:([e,...r])=>this.yp(e,r,!0)}}yp(t,e,r){var n,a;if(this.et[t]){if(!((n=this.et[t].configuration)===null||n===void 0)&&n.disableApplyPending&&!r||!((a=this.et[t].configuration)===null||a===void 0)&&a.disableApplyImmediate&&r)return;try{return this.et[t].callback(...e)}catch(o){K.error(`Command ${t} failed - params: ${Ht.stringify(e)}`,o)}}}}return i})(),mh=(()=>{class i{setContext(t,e){this.P=t,this.C=e}getVisitorService(){return this.P}getSessionService(){return this.C}}return i.$deps=[],i})(),gv="CS_IFRAME_MESSAGE",To=(()=>{let i;return(function(s){s.AfterPageView="afterPageView",s.GetSessionKey="getSessionKey"})(i||(i={})),i})(),as=(()=>{let i;return(function(s){s.Parent="parent",s.Child="child"})(i||(i={})),i})(),Q=(()=>{let i;return(function(s){s.Discovery="discovery",s.Stop="stop",s.RecordingContext="recordingContext",s.SensitiveStatus="sensitiveStatus",s.RecordingEvent="recordingEvent",s.EndOfBufferedMessages="endOfBufferedMessages",s.ChildLogMessage="childLogMessage",s.AnalysisEvent="analysisEvent",s.JavascriptError="javascriptError",s.ApiError="apiError",s.Assets="assets",s.DetailedApiError="detailedApiError",s.EmerchandisingMessage="emerchandisingMessage",s.Commands="commands",s.IntegrationCallback="integrationCallback",s.StaticResource="staticResource",s.TrackingContextResultMessage="trackingContextResultMessage",s.TrackingContextRequestMessage="trackingContextRequestMessage",s.CustomError="customError"})(i||(i={})),i})(),Te=(()=>{let i;return(function(s){function t(u,c,p,f){let E={type:u,from:c,pid:p,signature:gv};return f!==void 0&&f>=0&&(E.id=f),E}s.buildBaseMessage=t;function e(u,c,p,f){let E=Ng(u.origin);return!!u.data&&!!u.data.type&&u.data.signature===gv&&u.data.from===c&&u.data.pid===p&&Uu(E,f,{allowWildcard:!1})}s.isMessageValid=e;function r(u,c,p,f){f?u.postMessage(p,c,f):u.postMessage(p,c)}s.sendPostMessage=r;function n(){return new MessageChannel}s.getNewChannelMessage=n;function a(u,c){u.postMessage(c)}s.sendChannelMessage=a;function o(u){u.close()}s.closeChannelPort=o})(i||(i={})),i})(),Co=(()=>{let i;return(function(s){s.UNCOMPRESSED="0",s.GZIP="2"})(i||(i={})),i})(),Ca=(()=>{class i{}return i})(),bA=(()=>{let i;return(function(s){s.COMPRESSION_DISABLED="compressionDisabled"})(i||(i={})),i})(),AA=(()=>{class i{constructor(){}static init(t){(!this.Mu||t!==void 0)&&this.initFlags(t)}static initFlags(t=D.cookie){var e;let r=(e=/_cs_debug=((\w|\.|\:|=)+)/g.exec(t))===null||e===void 0?void 0:e[1];if(this.Mu=new Map,r){let n=l(r,de("."));for(let a=0;a<n.length;a++){let[o,u]=l(n[a],de("="));this.Mu.set(o,u||"true")}}}static getBoolean(t){let e=this.getString(t);return e!=null&&e!=="false"&&parseInt(e)!==0}static getString(t){var e;return this.init(),(e=this.Mu)===null||e===void 0?void 0:e.get(t)}static isCompressionEnabled(){return!this.getBoolean(bA.COMPRESSION_DISABLED)}static Log(t){return(e,r,n)=>{var a;let o=r.toString(),u=`${(a=e.constructor)===null||a===void 0?void 0:a.name}.${o}`,c=n.value;IA(i.getString("debugLog"),t)&&(n.value=function(...p){return console.log(u,...p),c.bind(this)(...p)})}}}return i})();function IA(i,s){return i==null?!1:i===s||!!l(i,mn(new Re("(^|,)("+s+")(,|$)")),qe,"length")}var wA=(()=>{class i extends Ca{constructor(){super(),this.algorithm=Co.GZIP,this.WR=Rp("base64"),this.compress=(t,e,r)=>yt(this,null,function*(){yield fr.yield();let n=new Cp("gzip"),a=n.writable.getWriter(),o=n.readable.getReader(),u=a.write(new TextEncoder().encode(t)).then(()=>a.close()),c=[],p=0;while(!0){let{done:R,value:k}=yield o.read();if(R)break;k&&(l(c,I(k)),p+=k.length)}yield u;let f=new Uint8Array(p),E=0;for(let R of c)f.set(R,E),E+=R.length;let g=f.buffer;if(e==="base64"){let R=this.qR(g);return yield fr.yield(),r==null||r(R),R}else return yield fr.yield(),r==null||r(g),g})}compressSync(t){try{return this.WR(t)}catch(e){throw fe.warn(e),e}}qR(t){return l(new Uint8Array(t),l_())}}return i})(),NA=(()=>{class i extends Ca{constructor(){super(...arguments),this.algorithm=Co.UNCOMPRESSED,this.compress=(t,e,r)=>{r(t)},this.compressSync=t=>t}}return i})(),fv=(()=>
22{class i{static create(t=!0){return this.instance?this.instance:t&&!AA.isCompressionEnabled()?this.instance=new NA:this.instance=new wA}}return i})(),PA=2e4,As=(()=>{class i{constructor(t){var e,r;this.Fe={},this.Nu={},this.wp=n=>{for(let a of n){let{metadata:o,events:u}=a;this.send(u,o)}},this.Di=t.endpoint,this.Zn=t.compressionOpts,this.ee=t.recoveryStorage,this.mandatoryParameters=(e=t.mandatoryParameters)!==null&&e!==void 0?e:[],this.Ou=t.contentType,this.worker=!!t.worker,this.ku=(r=t.disableRequestCounting)!==null&&r!==void 0?r:!1,this.bp=t.paramsProvider,this.ee&&this.ee.recover(this.wp)}initQueryParams(){this.bp&&this.setQueryParams(this.bp.getRequestParameters())}setQueryParams(t){l(Object.keys(t),et(e=>{this.Fe[e]=t[e]}))}removeQueryParams(t){t?l(t,et(e=>{delete this.Fe[e]})):this.Fe={}}send(t,e){t=t!=null?t:"";let r=e||Z({},this.Fe),n=!("ct"in r),a=this.Ou==="application/json"||typeof t!="string"&&!this.YR(t);"ct"in r||(!this.Zn||!n?r.ct=Co.UNCOMPRESSED:r.ct=this.Zn.compressionType);let o=a?Ht.stringify(t):t,u=l(Object.keys(r),$t(f=>`${encodeURIComponent(f)}=${encodeURIComponent(r[f])}`)).join("&"),c=`${this.Di}?${u}`;if(qp(this.mandatoryParameters,f=>r[f]==null)){fe.warn(`[${this.worker?"WORKER":"MAIN"}] All mandatory parameters are not present on ${c}`);return}let p=f=>typeof f=="string"?f.length:f.byteLength;ot.counters.payloadSize.add(p(o),c,"raw"),this.Zn&&n&&typeof o=="string"?this.Zn.compressor(o,this.Zn.compressionOutputType,f=>{ot.counters.payloadSize.add(p(f),c,"compressed"),this.Rp(c,r,f)}):this.Rp(c,r,o)}onLoad(t){this.ei=t}onError(t){this.Li=t}onTimeout(t,e){this.xi=t,this.Ha=e}abort(){this.Tp&&this.Tp()}setRequestHeader(t,e){this.Nu[t]=e}getQueryParams(){return this.Fe}YR(t){return t&&t.byteLength!==void 0}Rp(t,e,r){if($l()){this.ei&&this.ei({params:e,responseText:"",status:200});return}let n=new XMLHttpRequest,a=l(Object.keys(e),$t(o=>`${encodeURIComponent(o)}=${encodeURIComponent(e[o])}`)).join("&");n.open("POST",t,!0),this.Ou&&n.setRequestHeader("Content-Type",this.Ou),n.onload=()=>{if(this.ee&&this.ee.recover(this.wp),this.ei){let o={params:e,responseText:n.responseText,status:n.status};this.ei(o)}this.ku||ot.counters.requestCounts.count(this.Di)},n.onerror=()=>{if(this.ku||ot.counters.requestErrors.count(this.Di),!this.ee){this.Li&&this.Li({params:e});return}this.ee.save({key:a,metadata:e,events:r}).then(o=>{o&&this.Li&&this.Li({params:e})})},n.timeout=this.Ha||PA,n.ontimeout=()=>{this.ku||ot.counters.requestTimeouts.count(this.Di),this.xi&&this.xi()},this.Tp=()=>n.abort(),l(Object.keys(this.Nu),et(o=>{n.setRequestHeader(o,this.Nu[o])})),n.send(r)}}return i})(),kA=(()=>{class i{constructor(t,e){this.oe=t,this.XR=e}init(){this.Lt=new As({endpoint:this.oe.getLoggerUri(),contentType:"text/plain"})}send(t){let e=this.XR.getRequestParameters(),r=l(t,$t(n=>Vt(Z({},e),{a:n.app,l:n.level,m:n.message,s:n.stacktrace})));this.Lt.send(r)}getRequestParameters(){return{}}}return i})(),OA="uxa",mv=5,vv="snippet-",Ev="implementation-snippet-",yv=(()=>{let i;return(function(s){s.IMPLEMENTATION="implementation",s.DYNAMIC="dynamic"})(i||(i={})),i})(),MA=(()=>{class i{constructor(t,e,r,n){this.si=e,this.O=new Qe,this.Cp=yu[pe.warn],this.Du=mv,this.Cp=yu[t.minLogLevel||pe.warn];let a=t.maxLogs;this.Du=Number.isFinite(a)&&Number.isInteger(a)&&a>0?a:mv;let o=new Nf(t,this.O);this.Lt=r||new Df(t,o),this.Ap=n||new kA(t,o),this.Lu={[pe.debug]:[],[pe.warn]:[],[pe.implementation]:[],[pe.error]:[],[pe.critical]:[]},this.ja={implementation:{},dynamic:{}},this.Lt.init(),this.Ap.init()}send(t,e="",r=pe.warn){if(!this.Ip(r,e))return;l(this.Lu[r],I(e||""));let n=this.KR(),a={message:uc(this.O,t,e),stacktrace:Pf(t,n),app:OA,level:r};this.Lt.send(a)}sendBulk(t){let e=l(t,xt(n=>{let a=n.level,o=this.ZR(n.message);return n.message.startsWith("debug-ct-log")?!0:this.Ip(a,o)?(l(this.Lu[a],I(o||"")),!0):!1}));if(e.length===0)return;let r=l(e,$t(n=>Vt(Z({},n),{message:n.message,stacktrace:n.stacktrace})));this.Ap.send(r)}ZR(t){let e=l(t,mn(/ErrorCode: (.+)$/));return e?e[1]:""}KR(){let t=this.si.getVisitorService(),e=t==null?void 0:t.getVisitor();if(!e)return"No context";let r=this.si.getSessionService(),n=r&&r.getSession(),a={userId:e.id,sessionNumber:e.visitsCount,pageNumber:n&&n.pageNumber};return Ht.stringify(a)}Ip(t,e){if(yu[t]<this.Cp)return!1;if(l(e,qe,Bt(Ev,0))===0)return this.Pp(e,yv.IMPLEMENTATION);if(l(e,qe,Bt(vv,0))===0)return this.Pp(e,yv.DYNAMIC);let r=this.Lu[t];return r.length>=this.Du?!1:!(e&&l(r,ye(n=>n===e)))}Pp(t,e){return t in this.ja[e]?this.ja[e][t]>=this.Du?!1:(this.ja[e][t]+=1,!0):(this.ja[e][t]=1,!0)}}return i})(),DA=2,ve=(()=>{let i;return(function(s){function t(){return typeof v.CSJavascriptBridge=="object"&&typeof v.CSJavascriptBridge.optIn=="function"&&typeof v.CSJavascriptBridge.optOut=="function"&&typeof v.CSJavascriptBridge.sendEvent=="function"&&typeof v.CSJavascriptBridge.sendDynamicVar=="function"&&typeof v.CSJavascriptBridge.sendTransaction=="function"}s.isCSJavascriptBridgeDefined=t;function e(){if(typeof v.CSJavascriptBridge.getVersion=="function")try{let Pt=v.CSJavascriptBridge.getVersion();if(ze(Pt))return Pt}catch(Pt){K.warn("an error occurred when calling getVersion")}return null}s.getBridgeVersion=e;function r(){typeof v.CSJavascriptBridge.onWebviewTrackingReady=="function"&&v.CSJavascriptBridge.onWebviewTrackingReady()}s.notifyIsReadyForTracking=r;function n(Pt,Ue){v.CSJavascriptBridge.identify&&v.CSJavascriptBridge.identify(Pt,Ht.stringify(Ue))}s.identify=n;function a(){v.CSJavascriptBridge.resetIdentity&&v.CSJavascriptBridge.resetIdentity()}s.resetIdentity=a;function o(Pt){v.CSJavascriptBridge.addUserProperties&&v.CSJavascriptBridge.addUserProperties(Ht.stringify(Pt))}s.addUserProperties=o;function u(Pt){v.CSJavascriptBridge.addEventProperties&&v.CSJavascriptBridge.addEventProperties(Ht.stringify(Pt))}s.addEventProperties=u;function c(Pt){v.CSJavascriptBridge.removeEventProperty&&v.CSJavascriptBridge.removeEventProperty(Pt)}s.removeEventProperty=c;function p(){v.CSJavascriptBridge.clearEventProperties&&v.CSJavascriptBridge.clearEventProperties()}s.clearEventProperties=p;function f(Pt){v.CSJavascriptBridge.addPageviewProperties&&v.CSJavascriptBridge.addPageviewProperties(Ht.stringify(Pt))}s.addPageviewProperties=f;function E(Pt){v.CSJavascriptBridge.removePageviewProperty&&v.CSJavascriptBridge.removePageviewProperty(Pt)}s.removePageviewProperty=E;function g(){v.CSJavascriptBridge.clearPageviewProperties&&v.CSJavascriptBridge.clearPageviewProperties()}s.clearPageviewProperties=g;function R(Pt){v.CSJavascriptBridge.sendEvent(Ht.stringify(Pt))}s.sendAnalysisEvent=R;function k(Pt){if(v.CSJavascriptBridge.sendSREvent)for(let Ue of Pt.events)v.CSJavascriptBridge.sendSREvent(Ht.stringify(Ue))}s.sendSREvent=k;function X(Pt){v.CSJavascriptBridge&&v.CSJavascriptBridge.sendLog&&v.CSJavascriptBridge.sendLog(Ht.
22stringify(Pt))}s.sendLog=X;function U(){v.CSJavascriptBridge.optIn()}s.sendOptIn=U;function z(){v.CSJavascriptBridge.optOut()}s.sendOptOut=z;function dt(Pt,Ue){v.CSJavascriptBridge.sendDynamicVar(Pt,Ue)}s.sendDynamicVariable=dt;function vt(Pt,Ue,Se){v.CSJavascriptBridge.sendTransaction(Pt,Ue,Se)}s.sendTransaction=vt;function ht(Pt,Ue){if(v.CSJavascriptBridge.sendAssets){let Se=Ht.stringify(Pt);v.CSJavascriptBridge.sendAssets(Se,Ue||null)}else v.CSJavascriptBridge.sendSRAssets&&v.CSJavascriptBridge.sendSRAssets(l(Pt,$t(Se=>Se.assetId)))}s.sendAssets=ht;function ke(Pt){v.CSJavascriptBridge&&v.CSJavascriptBridge.sendNativeSREvent&&v.CSJavascriptBridge.sendNativeSREvent(Ht.stringify(Pt))}s.sendNativeSREvent=ke})(i||(i={})),i})(),xA="No stacktrace",LA=(()=>{class i{constructor(){this.O=new Qe}send(t,e,r=pe.warn){let n={message:uc(this.O,t),errorCode:e,level:r},a=this.QR(t);a&&(n.stacktrace=a),ve.sendLog(n)}QR(t){if(Hs(t))return`${t.stack||xA}`}sendBulk(t){}}return i.$deps=[],i})(),Sv=(()=>{class i{constructor(t,e,r){this.Is=t,this.E=e,this.si=r}createStrategy(){return this.Is.isTopWindowTracker()?new MA(this.E,this.si):this.Is.isInWebViewContext()?new LA:new xf(this.E)}}return i.$deps=[fo,lt,mh],i})(),UA=(()=>{class i{constructor(){this.Ie=null,this.JR=1}startInterval(){this.Ie=ta(()=>{let t=this.JR++;if(this.flush(`interval.${t}`),t>=5){this.stopInterval();return}},5e3)}flush(t){ot.counters.tasks.flush(t),ot.counters.longTasks.flush(t)}clear(){ot.counters.tasks.reset(),ot.counters.longTasks.reset(),this.stopInterval()}stopInterval(){this.Ie&&(gr(this.Ie),this.Ie=null)}}return i})(),_v=-1,ba=()=>_v,Aa=i=>{addEventListener("pageshow",s=>{s.persisted&&(_v=s.timeStamp,i(s))},!0)},qi=(i,s,t,e)=>{let r,n;return a=>{s.value>=0&&(a||e)&&(n=s.value-(r!=null?r:0),(n||r===void 0)&&(r=s.value,s.delta=n,s.rating=((o,u)=>o>u[1]?"poor":o>u[0]?"needs-improvement":"good")(s.value,t),i(s)))}},Wc=i=>{requestAnimationFrame(()=>requestAnimationFrame(i))},jc=()=>{let i=performance.getEntriesByType("navigation")[0];if(i&&i.responseStart>0&&i.responseStart<performance.now())return i},bo=()=>{var i,s;return(s=(i=jc())==null?void 0:i.activationStart)!=null?s:0},On=-1,Rv=new Set,Tv=()=>D.visibilityState!=="hidden"||D.prerendering?1/0:0,qc=i=>{if(D.visibilityState==="hidden"){if(i.type==="visibilitychange")for(let s of Rv)s();isFinite(On)||(On=i.type==="visibilitychange"?i.timeStamp:0,removeEventListener("prerenderingchange",qc,!0))}},Ao=(i=!1)=>{var s;if(i&&(On=1/0),On<0){let t=bo(),e=D.prerendering||(s=oe.performance.getEntriesByType("visibility-state").find(r=>r.name==="hidden"&&r.startTime>=t))==null?void 0:s.startTime;On=e!=null?e:Tv(),addEventListener("visibilitychange",qc,!0),addEventListener("prerenderingchange",qc,!0),Aa(()=>{setTimeout(()=>{On=Tv()})})}return{get firstHiddenTime(){return On},onHidden(t){Rv.add(t)}}},os=(i,s=-1,t,e=0,r,n,a)=>{let o=jc(),u=(o==null?void 0:o.navigationId)||0,c="navigate";return t?c=t:ba()>=0?c="back-forward-cache":o&&(D.prerendering||bo()>0?c="prerender":D.wasDiscarded?c="restore":o.type&&(c=o.type.replace(/_/g,"-"))),{name:i,value:s,rating:"good",delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:c,navigationId:e||u,navigationInteractionId:r,navigationURL:n||(o==null?void 0:o.name),navigationStartTime:a||0}},Cv=new WeakMap;function vh(i,s){let t=Cv.get(s);return t||(t=new WeakMap,Cv.set(s,t)),t.get(i)||t.set(i,new s),t.get(i)}var $A=class{constructor(){Ce(this,"t"),Ce(this,"i",0),Ce(this,"o",[])}h(i){var s;if(i.hadRecentInput)return;let t=this.o[0],e=this.o.at(-1);this.i&&t&&e&&i.startTime-e.startTime<1e3&&i.startTime-t.startTime<5e3?(this.i+=i.value,this.o.push(i)):(this.i=i.value,this.o=[i]),(s=this.t)==null||s.call(this,i)}},Mn=(i,s,t={})=>{try{let e=i.filter(r=>PerformanceObserver.supportedEntryTypes.includes(r));if(e.length>0){let r=new PerformanceObserver(n=>{queueMicrotask(()=>{let a=n.getEntries();e.length>1&&a.sort((o,u)=>o.startTime+o.duration-(u.startTime+u.duration)),s(a)})});for(let n of e)r.observe(Z({type:n,buffered:!0},t));return r}}catch(e){}},Io=i=>{var s,t,e;return((s=oe.PerformanceObserver)==null?void 0:s.supportedEntryTypes.includes("soft-navigation"))&&typeof((e=(t=oe.PerformanceSoftNavigation)==null?void 0:t.prototype)==null?void 0:e.getLargestInteractionContentfulPaint)=="function"&&i&&i.reportSoftNavs},bv=(i,s)=>{if(i.set(s.navigationId,s),i.size>2){let t=i.keys().next().value;t!==void 0&&i.delete(t)}},Av=i=>{let s=!1;return()=>{s||(i(),s=!0)}},VA=class{constructor(){Ce(this,"l")}},Eh=i=>{D.prerendering?addEventListener("prerenderingchange",i,!0):i()},Yc=[1800,3e3],Iv=(i,s={})=>{let t=Io(s);Eh(()=>{let e=vh(s,VA),r=Ao(),n,a=os("FCP"),o=Mn(["paint"],u=>{for(let c of u)c.name==="first-contentful-paint"&&(o.disconnect(),c.startTime<r.firstHiddenTime&&(a.value=Math.max(c.startTime-bo(),0),a.entries.push(c),a.navigationId=c.navigationId||a.navigationId,n(!0)))});o&&(n=qi(i,a,Yc,s.reportAllChanges),Aa(u=>{a=os("FCP",-1,"back-forward-cache",a.navigationId,a.navigationInteractionId,a.navigationURL,ba()),n=qi(i,a,Yc,s.reportAllChanges),Wc(()=>{a.value=performance.now()-u.timeStamp,n(!0)})}
22)),t&&Mn(["soft-navigation"],u=>{u.forEach(c=>{e.l&&c.navigationId&&bv(e.l,c);let p=Math.max((c.presentationTime||c.paintTime||0)-c.startTime,0);a=os("FCP",p,"soft-navigation",c.navigationId,c.interactionId,c.name,c.startTime),n=qi(i,a,Yc,s.reportAllChanges),n(!0)})},s)})},wv=[.1,.25],FA=(i,s={})=>{let t=Ao();Iv(Av(()=>{let e,r=os("CLS",0),n=vh(s,$A),a=(E,g,R,k,X)=>{r=os("CLS",0,E,g,R,k,X),n.i=0,e=qi(i,r,wv,s.reportAllChanges)},o=(E=!1)=>{n.i>r.value&&(r.value=n.i,r.entries=n.o),e(E)},u=E=>{o(!0),a("soft-navigation",E.navigationId,E.interactionId,E.name,E.startTime)},c=E=>{for(let g of E)g.entryType!=="soft-navigation"?n.h(g):u(g);o()},p=["layout-shift"];Io(s)&&p.push("soft-navigation");let f=Mn(p,c);f&&(e=qi(i,r,wv,s.reportAllChanges),t.onHidden(()=>{c(f.takeRecords()),e(!0)}),Aa(()=>{a("back-forward-cache",r.navigationId,r.navigationInteractionId,r.navigationURL,ba()),Wc(e)}),setTimeout(e))}))},Nv=0,Zc=1/0,yh=0,HA=i=>{for(let s of i)s.interactionId&&(Zc=Math.min(Zc,s.interactionId),yh=Math.max(yh,s.interactionId),Nv=yh?(yh-Zc)/7+1:0)},Kc,Pv=()=>{var i;return Kc?Nv:(i=performance.interactionCount)!=null?i:0},BA=()=>{"interactionCount"in performance||Kc||(Kc=Mn(["event"],HA,{durationThreshold:0}))},kv=0,zA=class{constructor(){Ce(this,"u",[]),Ce(this,"v",new Map),Ce(this,"m"),Ce(this,"p")}T(){kv=Pv(),this.u.length=0,this.v.clear()}M(i){let s=Pv()-kv,t=Math.min(this.u.length-1,Math.floor(s/50));return!s||t!==-1||i!=="soft-navigation"&&i!=="back-forward-cache"?this.u[t]:{_:8,id:-1,entries:[]}}h(i){var s,t;if((s=this.m)==null||s.call(this,i),!i.interactionId&&i.entryType!=="first-input")return;let e=this.u.at(-1),r=this.v.get(i.interactionId);if(r||this.u.length<10||i.duration>e._){if(r?i.duration>r._?(r.entries=[i],r._=i.duration):i.duration===r._&&i.startTime===r.entries[0].startTime&&r.entries.push(i):(r={id:i.interactionId,entries:[i],_:i.duration},this.v.set(r.id,r),this.u.push(r)),this.u.sort((n,a)=>a._-n._),this.u.length>10){let n=this.u.splice(10);for(let a of n)this.v.delete(a.id)}(t=this.p)==null||t.call(this,r)}}},Ov=i=>{let s="requestIdleCallback"in oe?1e3:0,t=oe.requestIdleCallback||setTimeout,e=oe.cancelIdleCallback||clearTimeout;if(D.visibilityState==="hidden")i();else{let r=Av(i),n=-1,a=()=>{e(n),r()};addEventListener("visibilitychange",a,{once:!0,capture:!0}),n=t(()=>{removeEventListener("visibilitychange",a,{capture:!0}),r()},{timeout:s})}},Mv=[200,500],GA=(i,s={})=>{if(!oe.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let t=Ao();Eh(()=>{var e;BA();let r,n=os("INP"),a=vh(s,zA),o=(g,R,k,X,U)=>{a.T(),n=os("INP",-1,g,R,k,X,U),r=qi(i,n,Mv,s.reportAllChanges)},u=()=>{let g=a.M(n.navigationType);g&&g._!==n.value&&(n.value=g._,n.entries=g.entries,r())},c=g=>{u(),r(!0),o("soft-navigation",g.navigationId,g.interactionId,g.name,g.startTime)},p=(g,R=!1)=>{Ov(()=>{for(let k of g)k.entryType!=="soft-navigation"?a.h(k):c(k);u(),R&&r(!0)})},f=["event","first-input"];Io(s)&&f.push("soft-navigation");let E=Mn(f,p,Vt(Z({},s),{durationThreshold:(e=s.durationThreshold)!=null?e:40}));r=qi(i,n,Mv,s.reportAllChanges),E&&(t.onHidden(()=>{p(E.takeRecords(),!0)}),Aa(()=>{o("back-forward-cache",n.navigationId,n.navigationInteractionId,n.navigationURL,ba())}))})},WA=class{constructor(){Ce(this,"m"),Ce(this,"l")}h(i){var s;(s=this.m)==null||s.call(this,i)}},Xc=[2500,4e3],jA=(i,s={})=>{let t=!1,e=Io(s);Eh(()=>{let r,n=Ao(),a=os("LCP"),o=vh(s,WA),u=(g,R,k,X,U)=>{a=os("LCP",-1,g,R,k,X,U),r=qi(i,a,Xc,s.reportAllChanges),t=!1,g==="soft-navigation"&&(n=Ao(!0))},c=g=>{var R;o.l&&g.navigationId&&bv(o.l,g),t||r(!0),u("soft-navigation",g.navigationId,g.interactionId,g.name,g.startTime);let k=(R=g.getLargestInteractionContentfulPaint)==null?void 0:R.call(g);k&&p([k])},p=g=>{var R;s.reportAllChanges||e||(g=g.slice(-1));for(let k of g){if(!k)continue;if(k.entryType==="soft-navigation"){c(k);continue}let X=0,U=[],z=k.startTime;if(k.entryType==="largest-contentful-paint")X=Math.max(k.startTime-bo(),0),o.h(k),U=[k];else if(k.entryType==="interaction-contentful-paint"){let dt=k;if(!a.navigationId||"interactionId"in dt&&dt.interactionId!=a.navigationInteractionId)continue;z=((R=dt.largestContentfulPaint)==null?void 0:R.renderTime)||0,X=Math.max(z-k.startTime,0),dt.largestContentfulPaint&&(o.h(dt.largestContentfulPaint),U=[dt.largestContentfulPaint])}z<n.firstHiddenTime&&(a.value=X,a.entries=U,r())}},f=["largest-contentful-paint"];e&&f.push("interaction-contentful-paint","soft-navigation");let E=Mn(f,p);if(E){r=qi(i,a,Xc,s.reportAllChanges);let g=["keydown","click","visibilitychange"],R=k=>{if(k.isTrusted&&!t){let X=a.id;Ov(()=>{if(!t){if(!e){E.disconnect();for(let U of g)removeEventListener(U,R,{capture:!0})}X===a.id&&(t=!0,r(!0))}})}};for(let k of g)addEventListener(k,R,{capture:!0});Aa(k=>{u("back-forward-cache",a.navigationId,a.navigationInteractionId,a.navigationURL,ba()),r=qi(i,a,Xc,s.reportAllChanges),Wc(()=>{a.value=performance.now()-k.timeStamp,t=!0,r(!0)})})}})},Qc=[800,1800],Jc=i=>{D.prerendering?Eh(()=>Jc(i)):D.readyState!=="complete"?addEventListener("load",()=>Jc(i),!0):setTimeout(i)},qA=(i,s={})=>{let t=Io(s),e=os("TTFB"),r=qi(i,e,Qc,s.reportAllChanges);Jc(()=>{let n=jc();if(n){let a=n.responseStart;e.value=Math.max(a-bo(),0),e.entries=[n],r(!0),Aa(()=>{e=os("TTFB",0,"back-forward-cache",e.navigationId,e.navigationInteractionId,e.navigationURL,ba()),r=qi(i,e,Qc,s.reportAllChanges),r(!0)}
22),t&&Mn(["soft-navigation"],o=>{o.forEach(u=>{u.navigationId&&(e=os("TTFB",0,"soft-navigation",u.navigationId,u.interactionId,u.name,u.startTime),e.entries=[u],r=qi(i,e,Qc,s.reportAllChanges),r(!0))})},s)}})},Dv=(()=>{class i{static isSupported(){return typeof Array.prototype.at=="function"}static observe(t,e){i.isSupported()&&l(t,et(r=>{i.pt[r]&&i.pt[r].add(e),l(i.Mp,na(r))||i.tT(r)}))}static tT(t){try{switch(t){case"FCP":Iv(e=>{i.pt.FCP.forEach(r=>r(e))},{reportAllChanges:!0});break;case"CLS":FA(e=>{i.pt.CLS.forEach(r=>r(e))},{reportAllChanges:!0});break;case"LCP":jA(e=>{i.pt.LCP.forEach(r=>r(e))},{reportAllChanges:!0});break;case"TTFB":qA(e=>{i.pt.TTFB.forEach(r=>r(e))},{reportAllChanges:!0});break;case"INP":GA(e=>{i.pt.INP.forEach(r=>r(e))},{reportAllChanges:!0});break}l(i.Mp,I(t))}catch(e){ot.counters.webVitalsErrors.count(t)}}static disconnect(t,e){l(t,et(r=>{i.pt[r]&&i.pt[r].delete(e)}))}constructor(t,e){this.Np=t,this.R=e}observe(){i.observe(this.Np,this.R)}disconnect(){i.disconnect(this.Np,this.R)}}return i.Mp=[],i.pt={FCP:new Set,CLS:new Set,LCP:new Set,TTFB:new Set,INP:new Set},i})(),YA=(()=>{class i{get eT(){return typeof PerformanceObserver!="undefined"&&l(PerformanceObserver.supportedEntryTypes,qe,na("long-animation-frame"))}get sT(){return typeof performance=="object"&&typeof performance.getEntriesByType=="function"}constructor(){var t;this.L=!1,this.xu=null,this.iT=10,this.rT=5,this.ii=[],this.$i=[],this.Qn=new Dv(["INP"],e=>this.onINP(e)),this.Op=(t=v.CSCurrentScript)===null||t===void 0?void 0:t.src}start(){this.eT&&this.sT&&this.Op&&(this.Qn.observe(),this.initLoAFObserver(),this.L=!0)}stop(){var t;this.L&&(this.Qn.disconnect(),(t=this.xu)===null||t===void 0||t.disconnect(),this.ii=[],this.$i=[],this.L=!1)}initLoAFObserver(){var t;this.xu=new PerformanceObserver(e=>{for(let r of e.getEntries())this.onLoAF(r)}),(t=this.xu)===null||t===void 0||t.observe({type:"long-animation-frame",buffered:!1})}onINP(t){if(!t.entries||t.entries.length===0)return;let e=t.entries[0],r=t.entries[t.entries.length-1],n=e.startTime,a=r.startTime+r.duration;l(this.$i,I({metric:t,startTime:n,endTime:a})),this.$i.length>this.rT&&l(this.$i,fn())}onLoAF(t){let e={startTime:t.startTime,duration:t.duration,csDuration:l(t.scripts,xt(r=>r.sourceURL===this.Op)).reduce((r,n)=>r+n.duration,0)};l(this.ii,I(e)),this.ii.length>this.iT&&l(this.ii,fn()),this.nT()}nT(){for(;this.$i.length>0;){let t=this.$i[0],e=this.oT(t.startTime,t.endTime);if(e===null)break;l(this.$i,fn()),e.length>0&&this.reportINPWithLoAFs(t,e)}}oT(t,e){let r=this.ii[0],n=this.ii[this.ii.length-1];return r&&r.startTime>e?[]:n&&n.startTime+n.duration<e?null:l(this.ii,xt(a=>{let o=a.startTime+a.duration;return t<o&&e>a.startTime}))}reportINPWithLoAFs(t,e){let r=t.metric.value,n=t.startTime,a=t.endTime,o=0;l(e,et(u=>{let c=u.startTime+u.duration,p=Math.max(u.startTime,n),f=Math.min(c,a),E=Math.max(0,f-p);if(u.duration>0){let g=u.csDuration/u.duration;o+=E*g}})),ot.counters.inpLoaf.add("total",r),ot.counters.inpLoaf.add("contribution",o)}}return b([J()],i.prototype,"initLoAFObserver",null),b([J()],i.prototype,"onINP",null),b([J()],i.prototype,"onLoAF",null),b([J()],i.prototype,"reportINPWithLoAFs",null),i})(),ZA="t.contentsquare.net",KA="t-staging.contentsquare.net",XA="/experiment/",QA="experiment";function JA(i){return i==="staging"?KA:ZA}function xv(i){try{return new sa(i)}catch(s){return null}}var Lv=(()=>{class i{constructor(t){this.E=t,this.Jn=!1,this.$u=[],this.kp=new YA,this.Ns=new UA,this.Dp=JA(t.environment)}onStartTracking(){this.aT(),this.kp.start()}
22aT(){if(typeof performance!="object"||typeof performance.getEntriesByType!="function")return;let t=this.cT();this.Lp(l(t,xt(e=>this.lT(e)))),this.uT()&&this.Lp(l(t,xt(e=>this.xp(e))),QA)}cT(){return l(performance.getEntriesByType("resource"),xt(t=>t.initiatorType==="script"))}Lp(t,e){l(t,et(r=>{if(r.transferSize===0)return;let n=r.responseEnd-r.responseStart,a=r.transferSize;n>=0&&ot.counters.downloadTime.push(n),a>=0&&ot.counters.transferSize.push(a)})),ot.counters.downloadTime.count>0&&ot.counters.downloadTime.flush(e),ot.counters.transferSize.count>0&&ot.counters.transferSize.flush(e)}lT(t){var e;if(this.xp(t))return!1;let r=(e=v.CSCurrentScript)===null||e===void 0?void 0:e.src;return r?r===t.name:this.hT(t.name)}xp(t){let e=xv(t.name);return e?e.hostname===this.Dp&&e.pathname.startsWith(XA):!1}hT(t){var e;return((e=xv(t))===null||e===void 0?void 0:e.hostname)===this.Dp}uT(){var t,e;return!!(!((e=(t=this.E.experiments)===null||t===void 0?void 0:t.list)===null||e===void 0)&&e.length)}$p(){let t=no.shadowRootsCount;t!==void 0&&ot.counters.dom.add("shadow-dom",t),ot.counters.mutations.flush(),ot.counters.dom.flush(),ot.counters.blockingTime.flush(),ot.counters.inpContribution.flush(),ot.counters.inpLoaf.flush()}onBeforeArtificialPageView(){this.$p(),this.Up(),this.Ns.stopInterval(),this.Jn=!0}onBeforeNaturalPageView(){this.$p()}onAfterNaturalPageView(t){t===Nn.Natural?(this.Ns.flush("boot"),this.Ns.startInterval()):(this.Up(),this.Ns.stopInterval(),this.Jn=!0)}onInitialDomStart(){this.Jn||this.Ns.stopInterval()}onInitialDomDone(){if(this.Jn)return;this.Jn=!0,this.Ns.flush("initial-dom"),this.Vp(()=>{this.Ns.flush("post-initial-dom"),this.Ns.startInterval()},5e3);let t=0,e=this.Vp(()=>{let r=t.toString();ot.counters.payloadSize.flush(r),++t>6&&e()},1e3,5e3)}onOptout(){this.Ns.clear(),this.kp.stop()}Up(){l(this.$u,et(t=>t())),this.$u=[]}Vp(t,e,r){let n,a;a=Ft(()=>{a=void 0,t(),r!==void 0&&(n=ta(t,r))},e);let o=()=>{a!==void 0&&(Ti(a),a=void 0),n!==void 0&&(gr(n),n=void 0)};return l(this.$u,I(o)),o}}return i.$deps=[lt],i})(),wo=(()=>{class i{constructor(){this.Ba={elementSelector:"",attrSelector:"",attrSelectors:[]},this.Uu={elementSelector:"",attrSelector:"",attrSelectors:[]},this.dT=v.top===v?"pii-migration":"pii-migration-iframe",this.Hp=!1}onAfterNaturalPageView(){this.jp()}onParentSensitiveStatusChange(t){t.started&&!this.Hp&&(this.Hp=!0,t.maskedElementSettings&&(this.Ba=t.maskedElementSettings),this.jp())}jp(){var t,e;let r=this.Bp(this.Ba),n=this.Bp(this.Uu),a=l(n.elementSelectors,xt(u=>l(r.elementSelectors,Dt(u))===-1&&u!=="[data-cs-mask]")),o={};for(let[u,c]of l(Object,vu(n.attrSelectors))){let p=r.attrSelectors[u]||[],f=l(c,xt(E=>l(p,Dt(E))===-1));f.length>0&&(o[u]=f)}(a.length>0||Object.keys(o).length>0)&&(K.computeIsActive(100),K.warn(Ht.stringify({selectors:a,attrs:o}),!0,this.dT),K.computeIsActive((e=(t=v.CS_CONF)===null||t===void 0?void 0:t.validationRate)!==null&&e!==void 0?e:10))}Bp(t){let e=l(t.elementSelector,ai()).length>0?l(t.elementSelector,de(","),$t(n=>l(n,ai())),xt(n=>n.length>0)):[],r={};for(let n of t.attrSelectors)r[n.attrName]=l(n.selector,de(","),$t(a=>l(a,ai())),xt(a=>a.length>0));return{elementSelectors:e,attrSelectors:r}}markClicktalePIIInUse(t){this.Uu=ct.getComputedSelectorSettings(t,this.Uu)}markPIIMaskingTemplateInUse(t){let e=ct.sanitizeSelectorUserInput(t);this.Ba=ct.getComputedSelectorSettings(e,this.Ba)}}return i.$deps=[],b([J()],i.prototype,"markPIIMaskingTemplateInUse",null),i})(),No="|iframe|",Qs=(()=>{class i extends nh{emitIframeAnalysisUserEvent(t){for(let e of this.listeners)e.onIframeAnalysisUserEvent&&e.onIframeAnalysisUserEvent(t)}emitIframeAnalysisBrowserEvent(t){for(let e of this.listeners)e.onIframeAnalysisBrowserEvent&&e.onIframeAnalysisBrowserEvent(t)}emitIframeRecordingUserEvent(t){for(let e of this.listeners)e.onIframeRecordingUserEvent&&e.onIframeRecordingUserEvent(t)}emitIframeRecordingBrowserEvent(t){for(let e of this.listeners)e.onIframeRecordingBrowserEvent&&e.onIframeRecordingBrowserEvent(t)}emitIframeJavascriptError(t){for(let e of this.listeners)e.onIframeJavascriptError&&e.onIframeJavascriptError(t)}emitIframeApiError(t){for(let e of this.listeners)e.onIframeApiError&&e.onIframeApiError(t)}emitIframeDetailedApiError(t){for(let e of this.listeners)e.onIframeDetailedApiError&&e.onIframeDetailedApiError(t)}emitIframeEmerchandisingMessage(t){for(let e of this.listeners)e.onIframeEmerchandisingMessage&&e.onIframeEmerchandisingMessage(t)}
22emitIframeCommands(t){for(let e of this.listeners)e.onIframeCommands&&e.onIframeCommands(t)}emitIframeIntegrationCallback(t){for(let e of this.listeners)e.onIframeIntegrationCallback&&e.onIframeIntegrationCallback(t)}emitIframeStaticResource(t){for(let e of this.listeners)e.onIframeStaticResource&&e.onIframeStaticResource(t)}emitTrackingContextRequestMessage(t){for(let e of this.listeners)e.onTrackingContextRequestCallback&&e.onTrackingContextRequestCallback(t)}emitIframeCustomError(t){for(let e of this.listeners)e.onIframeCustomError&&e.onIframeCustomError(t)}}return i.$deps=[],i})(),It=(()=>{let i;return(function(s){s[s.RESIZE=0]="RESIZE",s[s.SCROLL=1]="SCROLL",s[s.MOUSEMOVE=2]="MOUSEMOVE",s[s.MOUSEDOWN=3]="MOUSEDOWN",s[s.MOUSEUP=4]="MOUSEUP",s[s.CLICK=5]="CLICK",s[s.MOUSEOVER=6]="MOUSEOVER",s[s.MOUSEOUT=7]="MOUSEOUT",s[s.CHANGE=10]="CHANGE",s[s.FOCUSIN=11]="FOCUSIN",s[s.FOCUSOUT=12]="FOCUSOUT",s[s.TAP=14]="TAP",s[s.KEYDOWN=15]="KEYDOWN",s[s.KEYUP=16]="KEYUP",s[s.COMMAND=17]="COMMAND",s[s.PERFORMANCE=19]="PERFORMANCE",s[s.DRAG=20]="DRAG",s[s.FLICK=21]="FLICK",s[s.KEYBOARD_NAVIGATION=22]="KEYBOARD_NAVIGATION",s[s.ZOOM=23]="ZOOM",s[s.VIEWPORT_SCALE=24]="VIEWPORT_SCALE",s[s.TEXT_HIGHLIGHT=25]="TEXT_HIGHLIGHT",s[s.DEAD_CLICK=30]="DEAD_CLICK",s[s.DEAD_ZOOM=31]="DEAD_ZOOM",s[s.PAGE_RELOAD=32]="PAGE_RELOAD",s[s.THRASHED_CURSOR=33]="THRASHED_CURSOR",s[s.BLANK_PAGE=34]="BLANK_PAGE",s[s.EXTERNAL_EVENT=35]="EXTERNAL_EVENT",s[s.SUBMIT=36]="SUBMIT",s[s.CUSTOM_EVENT=37]="CUSTOM_EVENT"})(i||(i={})),i})(),Js=(()=>{let i;return(function(s){s.APPCUES="appcues",s.CHAMELEON="chameleon",s.CONTENTSQUARE="contentsquare",s.SEGMENT="segment",s.SHOPIFY="shopify",s.VOC="voc",s.WEB="web"})(i||(i={})),i})();function Uv(i){return"text"in i}function td(i){return"hrchy"in i}function Sh(i){return"properties"in i}function tI(i){return i.tgtHM!==void 0}function $v(i){return i.tgt!==void 0}function eI(i){return i.tgtLk!==void 0}function iI(i){return i.x!==void 0&&i.y!==void 0}function sI(i){return i===Js.APPCUES||i===Js.CHAMELEON||i===Js.CONTENTSQUARE||i===Js.SEGMENT||i===Js.SHOPIFY||i===Js.VOC||i===Js.WEB}var Ia=(()=>{let i;return(function(s){s[s.COPY=0]="COPY",s[s.CUT=1]="CUT",s[s.PASTE=2]="PASTE"})(i||(i={})),i})(),Qt=(()=>{let i;return(function(s){s[s.SPACE=0]="SPACE",s[s.ENTER=1]="ENTER",s[s.BACKSPACE=2]="BACKSPACE",s[s.DELETE=3]="DELETE",s[s.ARROWUP=4]="ARROWUP",s[s.ARROWDOWN=5]="ARROWDOWN",s[s.ARROWLEFT=6]="ARROWLEFT",s[s.ARROWRIGHT=7]="ARROWRIGHT",s[s.CAPSLOCK=8]="CAPSLOCK",s[s.SHIFT=9]="SHIFT",s[s.TAB=10]="TAB",s[s.ALPHANUMERICAL=11]="ALPHANUMERICAL",s[s.ESCAPE=12]="ESCAPE",s[s.END=13]="END",s[s.ALT=14]="ALT",s[s.CTRL=15]="CTRL",s[s.META=16]="META"})(i||(i={})),i})(),St=(()=>{let i;return(function(s){s[s.MUTATION_INSERT=1]="MUTATION_INSERT",s[s.MUTATION_REMOVE=2]="MUTATION_REMOVE",s[s.MUTATION_ATTRIBUTE=3]="MUTATION_ATTRIBUTE",s[s.MUTATION_CHARACTER_DATA=4]="MUTATION_CHARACTER_DATA",s[s.INITIAL_DOM=5]="INITIAL_DOM",s[s.SCROLL=6]="SCROLL",s[s.CLICK=8]="CLICK",s[s.RESIZE=9]="RESIZE",s[s.INPUT_CHECKABLE=10]="INPUT_CHECKABLE",s[s.INPUT_SELECT=11]="INPUT_SELECT",s[s.INPUT_TEXT=12]="INPUT_TEXT",s[s.HASH_CHANGE=13]="HASH_CHANGE",s[s.UNANONYMIZED_CONSENT_GRANTED=14]="UNANONYMIZED_CONSENT_GRANTED",s[s.UNANONYMIZED_CONSENT_WITHDRAWN=15]="UNANONYMIZED_CONSENT_WITHDRAWN",s[s.MOUSE_OVER=16]="MOUSE_OVER",s[s.VISIBILITY_CHANGE=17]="VISIBILITY_CHANGE",s[s.STYLESHEET_RULE_INSERT=18]="STYLESHEET_RULE_INSERT",s[s.STATIC_RESOURCE_URL=19]="STATIC_RESOURCE_URL",s[s.PERFORMANCE_TIMINGS=20]="PERFORMANCE_TIMINGS",s[s.ATTACH_SHADOW=22]="ATTACH_SHADOW",s[s.STYLESHEET_CSS_TEXT_UPDATE=23]="STYLESHEET_CSS_TEXT_UPDATE",s[s.JAVASCRIPT_ERROR=26]="JAVASCRIPT_ERROR",s[s.PAGE_EVENT=27]="PAGE_EVENT",s[s.API_ERROR=28]="API_ERROR",s[s.TEXT_VISIBILITY=29]="TEXT_VISIBILITY",s[s.MUTATION_ENCRYPTED_CHARACTER_DATA=30]="MUTATION_ENCRYPTED_CHARACTER_DATA",s[s.INPUT_ENCRYPTED_TEXT=31]="INPUT_ENCRYPTED_TEXT",s[s.KEY_DOWN=32]="KEY_DOWN",s[s.KEY_UP=33]="KEY_UP",s[s.CLIPBOARD_COMMAND=34]="CLIPBOARD_COMMAND",s[s.STYLESHEET_RULE_DELETE=37]="STYLESHEET_RULE_DELETE",s[s.USER_IDENTIFIER=38]="USER_IDENTIFIER",s[s.TOUCH_START=41]="TOUCH_START",s[s.TOUCH_MOVE=42]="TOUCH_MOVE",s[s.TOUCH_END=43]="TOUCH_END",s[s.GESTURE_RECOGNITION=44]="GESTURE_RECOGNITION",s[s.POINTER_DOWN=47]="POINTER_DOWN",s[s.POINTER_MO
22VE=48]="POINTER_MOVE",s[s.POINTER_UP=49]="POINTER_UP",s[s.CUSTOM_ERROR=50]="CUSTOM_ERROR",s[s.CUSTOM_ELEMENT_REGISTRATION=54]="CUSTOM_ELEMENT_REGISTRATION",s[s.REGISTER_ADOPTED_STYLE_SHEET=60]="REGISTER_ADOPTED_STYLE_SHEET",s[s.SET_ADOPTED_STYLE_SHEETS=61]="SET_ADOPTED_STYLE_SHEETS",s[s.ADOPTED_STYLESHEET_RULE_INSERT=62]="ADOPTED_STYLESHEET_RULE_INSERT",s[s.ADOPTED_STYLESHEET_RULE_DELETE=63]="ADOPTED_STYLESHEET_RULE_DELETE",s[s.SCREEN_RESIZE=65]="SCREEN_RESIZE",s[s.RESOURCE_HASHES=66]="RESOURCE_HASHES",s[s.PERFORMANCE_NAVIGATION_TIMING=67]="PERFORMANCE_NAVIGATION_TIMING",s[s.PERFORMANCE_RESOURCE_TIMING=68]="PERFORMANCE_RESOURCE_TIMING",s[s.RECORDING_INFO_EVENT=72]="RECORDING_INFO_EVENT",s[s.TEXT_REF=73]="TEXT_REF",s[s.TOUCH_CANCEL=74]="TOUCH_CANCEL",s[s.MUTATION_MOVE=75]="MUTATION_MOVE",s[s.STYLESHEET_RULE_UPDATE=76]="STYLESHEET_RULE_UPDATE",s[s.ADOPTED_STYLESHEET_RULE_UPDATE=77]="ADOPTED_STYLESHEET_RULE_UPDATE",s[s.VIDEO_PLAY=78]="VIDEO_PLAY",s[s.VIDEO_PAUSE=79]="VIDEO_PAUSE",s[s.VIDEO_SEEK=80]="VIDEO_SEEK",s[s.ADOPTED_STYLESHEET_DISABLED=98]="ADOPTED_STYLESHEET_DISABLED",s[s.STYLESHEET_DISABLED=99]="STYLESHEET_DISABLED",s[s.DOM_INITIAL_STATE=102]="DOM_INITIAL_STATE",s[s.DOM_PATCH_STATE=103]="DOM_PATCH_STATE",s[s.DEBUG=999]="DEBUG"})(i||(i={})),i})(),tr=(()=>{let i;return(function(s){s.EVENT_TRIGGER_RECORDING="event-trigger-recording",s.CONSENT_FOR_SESSION_GRANTED="consent-granted",s.CONSENT_FOR_SESSION_WITHDRAWN="consent-withdrawn",s.TAG_VERSION="tag-version",s.PAGE_STATE="page-state",s.PENDING_EVENTS="pending-events"})(i||(i={})),i})(),Po=(()=>{let i;return(function(s){s[s.SWIPE=0]="SWIPE",s[s.PINCH_IN=1]="PINCH_IN",s[s.PINCH_OUT=2]="PINCH_OUT",s[s.LONG_PRESS=3]="LONG_PRESS",s[s.TAP=4]="TAP",s[s.DOUBLE_TAP=5]="DOUBLE_TAP"})(i||(i={})),i})(),er=(()=>{class i extends nh{emitPageEvent(t){for(let e of this.listeners)e.onPageEvent&&e.onPageEvent(t)}emitEventTriggerRecording(t,e){for(let r of this.listeners)r.onEventTriggerRecording&&r.onEventTriggerRecording(t,e)}emitCustomJavaScriptErrorEvent(t){for(let e of this.listeners)e.onCustomJavaScriptErrorEvent&&e.onCustomJavaScriptErrorEvent(t)}emitCustomErrorEvent(t){for(let e of this.listeners)e.onCustomErrorEvent&&e.onCustomErrorEvent(t)}emitUserIdentifierEvent(t){for(let e of this.listeners)e.onUserIdentifierEvent&&e.onUserIdentifierEvent(t)}emitExternalEvent(t){for(let e of this.listeners)e.onExternalEvent&&e.onExternalEvent({type:It.EXTERNAL_EVENT,name:t,ts:0})}emitTargetingRulesArtificialPageview(t){for(let e of this.listeners)e.onTargetingRulesArtificialPageview&&e.onTargetingRulesArtificialPageview(t)}emitCustomEvent(t){for(let e of this.listeners)e.onCustomEvent&&e.onCustomEvent(t)}}return i.$deps=[],i})(),_h=(()=>{class i{constructor(){this.Dr=null}observe(t){t.composedPath&&(this.Dr={path:t.composedPath(),x:t.clientX,y:t.clientY,ts:t.timeStamp,releaseTs:null,pointerId:t.pointerId})}observeRelease(t){this.Dr&&this.Dr.pointerId===t.pointerId&&(this.Dr.releaseTs=t.timeStamp)}getLastPress(){return this.Dr}clear(){this.Dr=null}}return i.$deps=[],i})(),rI=["data-com.agilebits.onepassword.initial-value","data-com.onepassword.iv","data-ember-action","data-initial-value","data-previous-value","data-react-checksum","data-reactid","maxlength","onclick","onsubmit","style"],nI=1024,aI=1024,oI=["click","mousedown","mouseup"],Vv=5,lI=1500;function hI(i,s){if(!s||l(oI,Dt(i.type))===-1||!l(i,Ci)||l(s.path,Dt(l(i,Ci)))<=0||!uI(i,s))return null;let t=s.path[0];return!mr(t)||!mi.isConnected(t)||t===D.documentElement||t===D.body?null:cI(t)?t:null}function uI(i,s){let t=i.pointerId;if(typeof t=="number"&&t!==s.pointerId)return!1;let e=i.timeStamp-(s.releaseTs!==null?s.releaseTs:s.ts);if(e<0||e>lI)return!1;let r=i;return Math.abs(r.clientX-s.x)<=Vv&&Math.abs(r.clientY-s.y)<=Vv}function cI(i){let s=v.getComputedStyle(i);return!!s&&s.pointerEvents==="none"}var ir=(()=>{class i{constructor(t,e,r){this.X=t,this.E=e,this.eo=r}resolveEventTarget(t){return hI(t,this.eo.getLastPress())||zi(t)}getEventTargetPathAndHierarchy(t,e){let r=this.resolveEventTarget(t),n={isNodeSensitive(a){return ct.isMaskedElement(a)||ct.isMaskedElementChild(a)},isAttributeSensitive(a,o){return ct.isMaskedAttribute(a,o)},allWhitelistedAttributes:Kl(this.E.whitelistedAttributes),attributeIgnoreTokens:rI,useAnonymization:e,attrMaxLength:aI,hierarchyMaxLength:nI};return this.X.getElementPathAndHierarchy(r,n,Z({dynamicIdRegex:this.E.dynamicIdRegex},this.E.pathComputationRules))}getEventTargetPath(t){return this.getTargetPath(this.resolveEventTarget(t))}getTargetPath(t){return this.X.getElementPath(t,Z({dynamicIdRegex:this.E.dynamicIdRegex},this.E.pathComputationRules))}getEventTargetPathAndTargetLink(t){let e=this.resolveEventTarget(t),{path:r,firstAnchorParent:n}=this.X.getElementPathAndFirstAnchorParent(e,Z({dynamicIdRegex:this.E.dynamicIdRegex},this.E.pathComputationRules)),a=this.fT(n)?n.href:"";return{path:r,targetLink:a}}hasValidEventTarget(t){let e=this.resolveEventTarget(t);return this.X.isValidElement(e)}getElementPath(t){return this.X.getElementPath(t,Z({dynamicIdRegex:this.E.dynamicIdRegex},this.E.pathComputationRules))}fT(t){var e;return t!==null&&t.hasAttribute("href")&&!cc((e=l(t,fs("href")))!==null&&e!==void 0?e:"","#")}}return i})(),Dn=(()=>{class i{constructor(t){this.Fp=t}create(t,e,r,n,a){let o=e?{compressor:this.Fp.compress,compressionOutputType:e,compressionType:this.Fp.algorithm}:void 0;return new As({endpoint:t,compressionOpts:o,recoveryStorage:r,disableRequestCounting:n,paramsProvider:a})}}return i.$deps=[Ca],i})();function dI(){var i;let s=(i=v.CSCurrentScript)===null||i===void 0?void 0:i.src;if(!s)return Promise.resolve(!0);let{origin:t}=new sa(s);return/^https?:\/\/t(-staging)?\.contentsquare\.net$/.test(t)?new Promise(e=>{var r;let n,a=!1,o=u=>{a||(a=!0,n!==void 0&&Ti(n),n=void 0,e(u))};try{let u=D.createElement("script");u.async=!0,u.onload=()=>o(!0),u.onerror=()=>o(!1),u.src=`${t}/releases/probe/tag.js`,((r=D.head)!==null&&r!==void 0?r:D.documentElement).appendChild(u),n=Ft(()=>o(!1),8e3)}catch(u){o(!1)}}):Promise.resolve(!0)}function pI(){Ft(()=>yt(null,null,function*(){let i=0;typeof Cp!="undefined"&&(i|=1),typeof TransformStream!="undefined"&&(i|=2),typeof performance!="undefined"&&typeof performance.now=="function"&&(i|=4),typeof Worker!="undefined"&&(i|=8),typeof fr!="undefined"&&(typeof fr.yield=="function"&&(i|=16),typeof fr.postTask=="function"&&(i|=32)),typeof oe!="undefined"&&(i|=64),typeof Array.prototype.flat=="function"&&(i|=128),l(D,pn("form[toolname]"))&&(i|=256);function s(){return gp(this,null,function*(){yield 1})}s.constructor.name==="AsyncGeneratorFunction"&&(i|=512),typeof WeakRef!="undefined"&&(i|=1024),(yield dI())||(i|=2048),typeof Zone!="undefined"&&typeof Zone.__symbol__=="function"&&(i|=4096),ot.counters.availableFeatures.set(i),ko(Date.now,"Date.now"),k
22o(l(D,pn),"document.querySelector"),ko(l(D,Hr),"document.querySelectorAll"),ko(l(navigator,Bp),"navigator.sendBeacon");for(let[t,...e]of mI)for(let r of e){let n=gI(t,r);n&&ko(n,`${t.name}.${r}`)}}))}function gI(i,s){var t;let e=Object.getOwnPropertyDescriptor(i.prototype,s);return(t=e==null?void 0:e.get)!==null&&t!==void 0?t:e==null?void 0:e.value}function ko(i,s){fI(i)||ot.counters.nativeOverrides.count(s,1)}function fI(i){return typeof i!="function"||/native code/.test(i.toString())}var mI=[[Node,"childNodes","parentNode","nextSibling","firstChild","nodeType","isConnected"],[Array,"filter","map"],[Element,"shadowRoot","matches","firstElementChild"],[Event,"target"],[HTMLImageElement,"src"]],vI=(()=>{class i extends L_{constructor(t,e,r){let n=()=>{pI()},a=()=>({p:e.anonymizePII(v.location.pathname),pid:r,v:hc().v});super(t.send.bind(t),a,n)}}return i})();function EI(i,s){let t=i.validationRate/10,e=zs.boolean(t);if((i.environment==="staging"||e)&&!s.isInWebViewContext())try{let r=fv.create(s.isTopWindowTracker()),n=new Dn(r).create(i.getMetricsUri(),void 0,void 0,!0),a=new Qe,o=new vI(n,a,i.projectId);ot.setService(o)}catch(r){K.warn(`Error initializing metrics: ${r.message}`)}}var yI="_cs";function SI(){if(typeof D=="undefined")return;let i=0,s=0;for(let t of l(D.cookie,de(";"))){let e=l(t,ai());e&&(i+=e.length,l(e,Bt(yI))===0&&(s+=e.length))}ot.counters.cookieStorage.count("total",i),ot.counters.cookieStorage.count("contentsquare",s)}var ed=(()=>{class i{setItem(t,e){v.localStorage.setItem(t,e)}getItem(t){return v.localStorage.getItem(t)}removeItem(t){v.localStorage.removeItem(t)}}return i.$deps=[],i})(),id=(()=>{class i{static useFactory(t,e){return t.create(e,this.key,this.expiresIn,this.forceSecureFlag)}static get inject(){return[Fv,this.browserStorageType]}constructor(t,e,r,n,a,o){this.E=t,this.N=e,this.Vu=r,this.ni=n,this.Gp=a,this.gT=o}onCookieSet(t){this.je=t}onCookieRemoved(t){this.Ni=t}get(){return this.E.cookielessTrackingEnabled?this.Vu.getItem(this.ni):this.N.get(this.ni)}set(t){var e;this.E.cookielessTrackingEnabled?this.Vu.setItem(this.ni,t):(this.N.set(this.ni,t,this.Gp,this.gT),(e=this.je)===null||e===void 0||e.call(this,this.ni,t,this.Gp))}remove(){var t;this.E.cookielessTrackingEnabled?this.Vu.removeItem(this.ni):(this.N.delete(this.ni),(t=this.Ni)===null||t===void 0||t.call(this,this.ni))}}return i})(),Fv=(()=>{class i{constructor(t,e){this.E=t,this.N=e}create(t,e,r,n){return new id(this.E,this.N,t,e,r,n)}}return i.$deps=[lt,Ks],i})(),Hv=(()=>{class i extends id{}return i.browserStorageType=Ea,i})(),_I=(()=>{class i extends id{}return i.browserStorageType=ed,i})(),Xr="_cs_c",xn=(()=>{let i;return(function(s){s[s.NOT_REQUIRED=0]="NOT_REQUIRED",s[s.NOT_EXPRESSED=1]="NOT_EXPRESSED",s[s.GRANTED=2]="GRANTED",s[s.WITHDRAWN=3]="WITHDRAWN"})(i||(i={})),i})(),Bv=(()=>{class i{constructor(t,e,r){this.E=t,this.N=e,this.Ne=r}get(){let t;return this.E.cookielessTrackingEnabled?t=this.Ne.getItem(Xr):t=this.N.get(Xr),t===null?t:Number(t)}set(t){this.E.cookielessTrackingEnabled?this.Ne.setItem(Xr,String(t)):this.N.set(Xr,String(t),xu)}remove(){this.E.cookielessTrackingEnabled?this.Ne.removeItem(Xr):this.N.delete(Xr)}handleSubdomainChange(){this.E.cookielessTrackingEnabled||(this.E.allowSubdomains?this.N.delete(Xr,Ks.CURRENT_DOMAIN):this.N.delete(Xr,this.N.getRootDomain()))}}return i.$deps=[lt,Ks,ed],i})(),wa=(()=>{class i{constructor(t,e,r){this.E=t,this.J=e,this.S=r}setInitialConsent(){let t=this.J.get();(t===null||this.hasConsentRequiredChanged(t))&&this.setDefaultReplayAnonymization()}hasConsentRequiredChanged(t){let e=this.E.consentRequired;return e&&t===xn.NOT_REQUIRED||!e&&t!==xn.NOT_REQUIRED}handleSubdomainChange(){this.J.handleSubdomainChange()}setDefaultReplayAnonymization(){let t=this.E.consentRequired?xn.NOT_EXPRESSED:xn.NOT_REQUIRED;this.J.set(t)}grantReplayAnonymizationConsent(){this.E.consentRequired&&(this.J.set(xn.GRANTED),this.S.emitReplayUnanonymizationConsentGranted())}withdrawReplayAnonymizationConsent(){this.E.consentRequired&&(this.J.set(xn.WITHDRAWN),this.S.emitReplayUnanonymizationConsentWithdrawn())}removeAllConsents(){this.J.remove()}isReplayUnanonymizedAllowedByConsent(){return!this.E.consentRequired||this.J.get()===xn.GRANTED}getRequestParameters(){return{uc:`${this.J.get()}`}}}return i.$deps=[lt,Bv,At],i})();function RI(){let i="[data-cs-mask]",s="#c1_card_info_id",t=".ctHidden",e=["[data-heap-redact-text]","[heap-ignore]","[data-heap-ignore]","[data-heap-redact-attributes]"],r=["[data-hj-suppress]",".data-hj-suppress","[data-hj-masked]"];return[i,s,t,...e,...r]}
22function TI(){return[{selector:".ctHidden,input:not([type=button]):not([type=submit])",attrName:"value"}]}var Na=(()=>{class i{constructor(t){this.Iu=t,this.pT={PIISelectors:["picture","img","video","audio"],Attributes:[]},this.Cs={elementSelector:"",attrSelector:"",attrSelectors:[]};let e={PIISelectors:RI(),Attributes:TI()};this.Cs=ct.getComputedSelectorSettings(e,this.Cs)}loadClickTalePIISelectors(){this.mT()}setMaskedElementSettingsFromCommand(t){if(t=ct.sanitizeSelectorUserInput(t),!ct.isSelectorUserInput(t))throw new ge(So[0]);this.Hu(t)}setMaskedElementSettingsFromParent(t){let e={PIISelectors:l(t.elementSelector,de(",")),Attributes:t.attrSelectors};this.Hu(e)}getMaskedElementSettings(t){return t?this.zp(this.pT):this.Cs}mT(){var t,e,r,n,a,o,u;let c={PIISelectors:[],Attributes:[]};((r=(e=(t=v==null?void 0:v.ClickTaleSettings)===null||t===void 0?void 0:t.DOM)===null||e===void 0?void 0:e.PII)===null||r===void 0?void 0:r.Text)instanceof Array&&c.PIISelectors.push(...v.ClickTaleSettings.DOM.PII.Text),((o=(a=(n=v==null?void 0:v.ClickTaleSettings)===null||n===void 0?void 0:n.DOM)===null||a===void 0?void 0:a.PII)===null||o===void 0?void 0:o.Attributes)instanceof Array&&v.ClickTaleSettings.DOM.PII.Attributes.forEach(p=>{j(p.attr)&&j(p.rule)&&c.Attributes.push({selector:p.rule,attrName:p.attr})}),(u=this.Iu)===null||u===void 0||u.markClicktalePIIInUse(c),this.Hu(c)}Hu(t){this.Cs=this.zp(t)}zp(t){return ct.getComputedSelectorSettings(t,this.Cs)}}return i.$deps=[{__optional:wo}],i})();function CI(i,s){let t=s.createStrategy();K.computeIsActive(i.validationRate),I_(K),Wp(K),K.setStrategy(t)}var it=(()=>{let i=class{constructor(s,t,e,r,n,a){this.E=s,this.Is=t,this.ET=e,this.S=r,this.vT=n,this.Wp=a}onInit(){var s;CI(this.E,this.ET),EI(this.E,this.Is),this.S.addListener(this),this.S.addListener(this.vT),!((s=this.E.experimental)===null||s===void 0)&&s.checkPIIMigration&&this.Wp&&this.S.addListener(this.Wp)}onStartTracking(s){s||SI()}};return i.$deps=[lt,fo,Sv,At,Lv,wo],i=b([q({imports:[KC],providers:[ee(Im,()=>v.CS_CONF),lt,fo,ee(Cn,()=>new Cn),ee(Tn,s=>new Tn(s),[Qe]),ee(Kt,s=>new Kt([pv.UXA],s),[wo]),ee(wo,s=>{var t;return!((t=s.experimental)===null||t===void 0)&&t.checkPIIMigration?new wo:void 0},[lt]),Qe,ti,Ac,Ks,ed,Ea,er,At,Qs,_h,Lv,Na,Bv,wa,qm,mh,Sv,Fv,ee(Ca,()=>fv.create(!1)),Dn,ee(ir,(s,t)=>new ir(zr,s,t),[lt,_h])]})],i),i})(),bI=(()=>{let i=class{constructor(s,t){this.S=s,this.Ge=t}onInit(){this.Ge.onInit(),this.S.addListener(this)}onInitTracking(){this.Ge.start(!0)}onOptout(){this.Ge.stop()}onBeforeSessionRenewal(){this.Ge.stop(),this.Ge.start()}onArtificialPageViewEnd(){this.Ge.stop()}onBeforeArtificialPageView(){this.Ge.start(),this.Ge.onBeforePageView("artificial")}onBeforeNaturalPageView(){this.Ge.onBeforePageView("natural")}};return i.$deps=[At,fh],i=b([q({imports:[it],providers:[ee(fh,(s,t,e)=>{var r;return new fh(s.implementations||[],t,e,(r=s.experimental)===null||r===void 0?void 0:r.snippets)},[lt,Kt,Cn])]})],i),i})(),sd=bI,Is=(()=>{class i extends He{constructor(t,e,r,n,a){super(),this.ds=t,this.kt=e,this.ce=r,this.qp=n,this.it=a,this.ju=[]}addIdentifier(t){l(this.ju,I(t))}onStart(){var t,e;this.ce.start(),this.ds.setMaskedElementSettings(this.kt.getMaskedElementSettings((t=this.it)===null||t===void 0?void 0:t.shouldMaskNonTextElements())),this.ds.startIdentifier(),(e=this.qp)===null||e===void 0||e.start();for(let r of this.ju)r.start()}onStop(){var t;this.ce.stop(),this.ds.stopIdentifier(),(t=this.qp)===null||t===void 0||t.stop();for(let e of this.ju)e.stop()}}return i.$deps=[Tr,Na,_s,{__optional:In},{__optional:Xe}],i})(),Oo;(i=>{function s(o,u,c){var p;if(vn(o))Zs.set(o,u,c);else{let f=o;(p=f.props)!=null||(f.props={}),f.props[u]=c}}i.setProperty=s;function t(o,u){var c;return vn(o)?Zs.get(o,u):(c=o.props)==null?void 0:c[u]}i.getProperty=t;function e(o){return vn(o)?Zs.getAll(o):o.props}i.getProperties=e;function r(o,u){let c=null;return n(o,(p,f,E)=>u(p)&&(c=p)&&!!E()),c}i.findDescendant=r;function n(o,u){a(o,void 0,u)}i.traverse=n;function a(o,u,c){let p=!1;if(c(o,u,()=>p=!0),p)return;let f=o.shadowRoot;f&&a(f,o,c);let E=o.children;if(E!=null&&E.length){for(let g of E)if(g&&(a(g,o,c),p))break}}})(Oo||(Oo={}));var Rh;(i=>{i.ENCRYPTED_NODE_PROP="encrypted";function s(r){return Oo.getProperty(r,i.ENCRYPTED_NODE_PROP)===!0}i.shouldEncrypt=s;function t(r){Oo.setProperty(r,i.ENCRYPTED_NODE_PROP,!0)}i.markEncryptedNode=t;function e(r){Oo.setProperty(r,i.ENCRYPTED_NODE_PROP,void 0)}i.unmarkEncryptedNode=e})(Rh||(Rh={}));var Pe=(()=>{let i;return(function(s){s[s.ANONYMIZED=0]="ANONYMIZED",s[s.CAPTURED=1]="CAPTURED",s[s.MASKED=2]="MASKED",s[s.ENCRYPTED=3]="ENCRYPTED"})(i||(i={})),i})(),Mo=(()=>{class i{constructor(t,e,r,n,a){this.it=t,this.kt=e,this.Ct=r,this.ce=n,this.E=a,this.Bn=Kl(this.E.whitelistedAttributes)}setEncryptionSelectorsProvider(t){this.ST=t}getSensitiveStatus(){var t,e;return{started:this.Ct.isStarted,useAnonymization:this.it.shouldUseAnonymization(),capturedElementSelector:this.ce.getWhitelistedElementsSelector(),maskedElementSettings:this.kt.getMaskedElementSettings((t=this.it)===null||t===void 0?void 0:t.shouldMaskNonTextElements()),encryptionSelectors:(e=this.ST)===null||e===void 0?void 0:e.call(this)}}getElementSensitiveStatus(t){let e=this.Ct.isStarted,r=this.it.shouldUseAnonymization();return e?ct.isMaskedElement(t)||ct.isMaskedElementChild(t)?Pe.MASKED:Rh.shouldEncrypt(t)?Pe.ENCRYPTED:Rr.isEditableNode(t)?Pe.ANONYMIZED:r?ns.isWhitelistedElement(t)?Pe.CAPTURED:Pe.ANONYMIZED:Pe.CAPTURED:Pe.ANONYMIZED}getAttributeSensitiveStatus(t,e){if(!this.Ct.isStarted)return Pe.ANONYMIZED;let r=this.it.shouldUseAnonymization();return ct.isMaskedAttribute(t,e)?Pe.MASKED:r?aa(t)||ns.isWhitelistedElement(t)||this.Bn.has(e)?Pe.CAPTURED:Pe.ANONYMIZED:Pe.CAPTURED}}return i.$deps=[Xe,Na,Is,_s,lt],i})(),rd=(()=>{class i extends Wi{}return i})(),Pa=(()=>{class i{constructor(){this.Ui=[]}add(t){l(this.Ui,I(t))}getAll(){return this.Ui}}return i.$deps=[],i})(),Th=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[Pa],exports:[Pa]})],i),i})(),nd=(()=>{class i{constructor(t,e,r){this.E=t,this.N=e,this.Ot=r}onCookieSet(t){this.je=t}onCookieRemoved(t){this.Ni=t}get(){let t;return this.E.cookielessTrackingEnabled?t=this.Ot.getItem(Xs):t=this.N.get(Xs),t?(vT(t)||K.warn(`Invalid visitor string: ${t}`),fT(t)):null}set(t){var e;let r=mT(t);if(this.E.cookielessTrackingEnabled)this.Ot.setItem(Xs,r);else{let n=new Date(t.expires);this.N.set(Xs,r,n),(e=this.je)===null||e===void 0||e.call(this,Xs,r,n)}}remove(){var t;this.E.cookielessTrackingEnabled?this.Ot.removeItem(Xs):(this.N.delete(Xs),(t=this.Ni)===null||t===void 0||t.call(this,Xs))}handleSubdomainChange(){if(this.E.cookielessTrackingEnabled)return;let t=this.get();t&&(t.allowSubdomains=this.E.allowSubdomains,this.E.allowSubdomains?this.N.delete(Xs,Ks.CURRENT_DOMAIN):this.N.delete(Xs,this.N.getRootDomain()),this.set(t))}}return i.$deps=[lt,Ks,Ea],i})(),ka=(()=>{let i;return(function(s){function t(n){return n.replayConsentRequiredForSession}s.isReplayConsentNeeded=t;function e(n){return n.replayConsent===wi.NOT_EXPRESSED||n.replayConsent===wi.WITHDRAWN}s.isRecordingBlockedByConsent=e;function r(n){return n.replayConsent===wi.WITHDRAWN}s.isRecordingWithDrawn=r})(i||(i={})),i})(),Ln=(()=>
22{class i{static isRecordingSupported(){return"MutationObserver"in v&&"visibilityState"in D}}return i})(),ws=(()=>{class i{constructor(t,e,r,n){this.configuration=t,this.lifeCycleEventsEmitter=e,this.urlService=r,this.regexRulesEvaluator=n,this.recordingUrlRulesUsed=!1}getEligibleCollectState(t){if(this.bT(t))return Ct.ANALYTICS_ONLY;if(this.shouldPreserveSessionCollectState(t))return t.collectState;let e=this.isUrlSampledForRecording()?Ct.RECORDING_URL_SAMPLING:Ct.ANALYTICS_ONLY;return this.lifeCycleEventsEmitter.emitCollectStateChange(e,this.getEtrState()),e}isReplayRecorded(t){return!Ln.isRecordingSupported()||ka.isRecordingBlockedByConsent(t)?!1:this.Yp(t)}isEtrActive(){return this.configuration.malkaEtrEnabled}shouldPreserveSessionCollectState(t){switch(t.collectState){case Ct.ANALYTICS_ONLY_RULES_TARGETING:case Ct.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING:case Ct.RECORDING_RULES_TARGETING:return this.configuration.hasTargetingRules();case Ct.RECORDING_GLOBAL_SAMPLING:return!0;default:return!1}}getEtrState(){return this.isEtrActive()?_r.ETR_ON:_r.ETR_OFF}isUrlSampledForRecording(){return Ln.isRecordingSupported()&&this.recordingUrlRulesUsed&&this.regexRulesEvaluator.evaluateUrl(this.urlService.getAnonymizedUrl())}initUrlRules(){this.configuration.malkaUrlEnabled&&this.configuration.hasRecordingUrlRules()&&(this.recordingUrlRulesUsed=!0,this.regexRulesEvaluator.setRegexRules(this.configuration.recordingUrlRules))}Yp(t){return t.collectState===Ct.QUOTA_REACHED?!1:this.RT(t)||this.isEtrActive()}RT(t){return t.collectState===Ct.RECORDING_GLOBAL_SAMPLING||t.collectState===Ct.RECORDING_URL_SAMPLING||t.collectState===Ct.RECORDING_RULES_TARGETING}bT(t){return!Ln.isRecordingSupported()&&this.Yp(t)}}return i})(),ad=60*1e3,AI=60*ad,II=4*AI-ad,Un=(()=>{let i;return(function(s){s[s.NO=0]="NO",s[s.WITHDRAWN=1]="WITHDRAWN",s[s.GRANTED=2]="GRANTED"})(i||(i={})),i})(),xe=(()=>{class i{constructor(t,e,r,n){this.Mt=t,this.Oe=e,this.S=r,this.E=n,this.io=null,this.Bu=0,this.Lr=Un.NO}setDynamicVariablesService(t){this.TT=t}createOrUpdateSession(){this.Fu(),this.CT=mt.now(),this.Bu=0;let t=this.AT();t===null?(t=this.IT(),this.PT(t),this.S.emitSessionCreated()):(this.MT(t),t.collectState=this.Oe.getEligibleCollectState(t)),this.setSession(t)}grantReplayRecording(t){t.replayConsent=wi.GRANTED,t.collectState=this.Oe.computeInitialCollectState(),this.setSession(t)}grantReplayRecordingBeforeSessionStart(){this.Lr=Un.GRANTED}withdrawnReplayRecording(t){t.replayConsent=wi.WITHDRAWN,this.setSession(t)}withdrawnReplayRecordingBeforeSessionStart(){this.Lr=Un.WITHDRAWN}PT(t){this.Lr===Un.WITHDRAWN?t.replayConsent=wi.WITHDRAWN:(this.Lr===Un.GRANTED&&(t.replayConsent=wi.GRANTED),t.collectState=this.Oe.computeInitialCollectState()),this.Lr=Un.NO}IT(){return{pageNumber:1,collectState:this.Oe.getInitialCollectState(),replayConsent:this.E.replayConsentRequiredForSession?wi.NOT_EXPRESSED:wi.UNNECESSARY,etrStatus:Ui.ETR_NOT_SAVED_SESSION}}MT(t){t.pageNumber+=1}isReplayRecorded(){let t=this.getSession();return!!t&&this.Oe.isReplayRecorded(t)}getRequestParameters(){let t={},e=this.getSession();return e!==null&&(t.pn=`${e.pageNumber}`),t}getSession(){return this.Mt.get()}AT(){return this.Mt.get(!0)}doesSessionExist(){return this.Mt.get()!==null}setSession(t){this.Mt.set(t),this.S.emitSessionRefreshed()}refreshSession(){this.Mt.extendSessionExpiry()&&this.S.emitSessionRefreshed()}removeSession(){this.Mt.remove(),this.S.emitSessionRemoved()}resetPendingReplayConsent(){this.Lr=Un.NO}getRecordingTypes(){let t=this.getSession(),e=this.NT(t);return this.OT(e)}OT(t){let e=[];return l(t,et(r=>{if(tT(r)){let n=eT[r]||r;l(e,I(n))}})),e}NT(t){let e=[];return(t==null?void 0:t.collectState)!==void 0&&(l(e,I(t.collectState)),this.E.malkaEtrEnabled&&l(e,I(Ct.RECORDING_ETR_SAMPLING))),e}updateCollectState(t){let e=this.getSession();e!==null&&(e.collectState=t,this.setSession(e))}hasValidSession(){let t=this.Mt.getRawSession();return this.Mt.isValid(t)}handleSubdomainChange(){this.Mt.handleSubdomainChange()}pollCacheRefreshEvent(t=!0){let e=this.Mt.isCacheRefreshed();return e&&t&&this.Mt.resetCacheRefreshed(),e}extendSessionPeriodically(){this.io||this.Xp()}extendSession(){return this.Mt.extendSessionExpiry()?(this.S.emitSessionRefreshed(),!0):(K.warn("extendSession is trying to extend an expired session"),this.Fu(),!1)}Xp(){if(this.kT()){this.Fu();return}this.extendSession()&&(this.DT(),this.LT())}LT(){this.io=Ft(()=>{this.Xp()},Ql-ad)}kT(){return II-(mt.now()+Ql-this.CT)<0}Fu(){this.io&&(Ti(this.io),this.io=null)}DT(){this.Bu+=1,this.TT.trackDynamicVariable("session_expiry_update",this.Bu)}}return i.$deps=[Ic,ws,At,lt],i})(),ci=(()=>{class i{constructor(t,e,r,n){this.E=t,this.J=e,this.S=r,this.C=n,this.xT=10*1e3}createOrUpdateVisitor(){var t;let e=this.getVisitor();e===null&&(e=this.$T(),(t=this.C)===null||t===void 0||t.removeSession()),this.UT(e),this.setVisitor(e)}$T(){return{id:bf.generate(),visitsCount:0,appliedTrackingDraw:this.E.lastTrackingDraw,creationTimestamp:Cg(),lastVisitTimestamp:0,hitTimestamp:0,expires:mt.now()+this.E.visitorCookieTimeout,allowSubdomains:this.E.allowSubdomains,identityPrint:null}}UT(t){let e=Cg();this.C&&!this.C.doesSessionExist()&&(t.visitsCount+=1,t.lastVisitTimestamp=e),t.hitTimestamp=e,t.appliedTrackingDraw=this.E.lastTrackingDraw,this.Kp=t.visitsCount}getRequestParameters(){let t=this.getVisitor();return t?{uu:t.id,sn:`${t.visitsCount}`,hd:`${t.hitTimestamp}`}:{}}getVisitor(){return this.J.get()}setVisitor(t){this.J.set(t)}doesVisitorExist(){return this.J.get()!==null}resetVisitor(){this.Zp(),this.S.emitAfterVisitorCleared()}removeVisitor(){this.J.remove()}hasAllowSubdomainsChanged(){let t=this.getVisitor();return t?t.allowSubdomains!==this.E.allowSubdomains:!1}handleSubdomainChange(){this.J.handleSubdomainChange()}isSessionRenewed(){let t=this.getVisitor();return t===null||this.Kp===void 0?!1:t.visitsCount!==this.Kp}
22VT(){return!le(this.Qp)||mt.now()-this.Qp>this.xT}renewVisitor(){this.VT()?(this.Qp=mt.now(),this.Zp(),this.S.emitAfterVisitorRenewal()):K.warn("session:start:newVisitor is trying to renew visitor under time limit")}Zp(){this.S.emitBeforeVisitorRenewal(),this.removeVisitor()}}return i.$deps=[lt,nd,At,{__optional:xe}],i})(),wI=/[?&#]_cs_inspect=1(?:[&#]|$)/,od="_cs_inspect",Ch=(()=>{class i{constructor(t){this.Mt=t,this.Rt=this.Jp(),this.Rt&&this.tm()}isActive(){return this.Rt}getStatus(){let t=this.Jp();return{active:this.Rt,nextLoadActive:t,reloadRequired:this.Rt!==t}}prepareStart(){return this.em()&&this.tm(),this.getStatus()}prepareStop(){return this.Mt.removeItem(od),this.getStatus()}Jp(){if(!this.em())return!1;try{return this.Mt.getItem(od)==="1"||wI.test(v.location.href)}catch(t){return!1}}em(){try{let t=v.opener;return t!=null&&!t.closed}catch(t){return!1}}tm(){this.Mt.setItem(od,"1")}}return i.$deps=[Ea],i})(),zv=(()=>{let i=class{constructor(s,t){this.Fa=s,this.w=t}onInit(){kT(()=>this.Fa.isActive()),this.w.register(["inspection:getStatus"],()=>this.Fa.getStatus(),{disableApplyPending:!0}),this.w.register(["inspection:prepareStart"],()=>this.Fa.prepareStart(),{disableApplyPending:!0}),this.w.register(["inspection:prepareStop"],()=>this.Fa.prepareStop(),{disableApplyPending:!0})}};return i.$deps=[Ch,Kt],i=b([q({imports:[it],providers:[Ch],exports:[Ch]})],i),i})(),ld="_cs_inc",Do=(()=>{class i{constructor(t,e){this.te=t,this.N=e}isForceIncluded(){return this.HT()||this.jT()}isForceReplayRecorded(){return this.BT(Ct.RECORDING_GLOBAL_SAMPLING)}HT(){return this.N.get(ld)!==null}BT(t){return this.N.get(ld)===t}jT(){return l(this.te.href,Bt(ld))>0}}return i.$deps=[Location,Ks],i})(),Gv=(()=>{class i extends ws{constructor(t,e,r,n){super(t,e,r,n)}onInit(){}canTrack(){return!1}refresh(){return yt(this,null,function*(){})}canCollect(t){return!1}computeInitialCollectState(){return this.getInitialCollectState()}getInitialCollectState(){return Ct.QUOTA_REACHED}}return i.$deps=[lt,At,ti,Sr],i})(),Wv=(()=>{class i extends ws{constructor(t,e,r,n){super(t,e,r,n)}onInit(){}canTrack(){return!0}refresh(){return yt(this,null,function*(){})}canCollect(t){return!0}computeInitialCollectState(){return this.getInitialCollectState()}getInitialCollectState(){return Ct.RECORDING_GLOBAL_SAMPLING}getEligibleCollectState(t){return this.getInitialCollectState()}isReplayRecorded(t){return Ln.isRecordingSupported()}}return i.$deps=[lt,At,ti,Sr],i})(),NI=i=>{let s=i*60*1e3;return`${Math.floor(Date.now()/s)}`},PI=5e3,kI=(()=>{class i extends Of{constructor(t,e,r){super(t,e),this.xr=null,this.FT=(r==null?void 0:r.type)||"json",this.sm=r==null?void 0:r.cacheMinutes,this.Ha=r==null?void 0:r.timeout}onLoad(t){this.ei=t}onError(t){this.Li=t}onTimeout(t,e){this.xi=t,this.Ha=e}send(){l(this.beforeRequestCallbacks,et(n=>n()));let t=this.retrieveParameters();this.Cl(t);let e=co.toQuery(t),r=`${this.domainUri}${this.path?`/${this.path}`:""}?${e}`;this.GT(r,this.FT)}abort(){this.xr&&(this.xr.abort(),this.xr=null)}isInProgress(){return this.xr!==null}GT(t,e){var r;if($l())return;let n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType=e,n.onerror=()=>{var a;return(a=this.Li)===null||a===void 0?void 0:a.call(this,n)},n.ontimeout=()=>{var a;return(a=this.xi)===null||a===void 0?void 0:a.call(this,n)},n.onload=()=>{var a,o;n.status>=200&&n.status<400?((a=this.ei)===null||a===void 0||a.call(this,this.zT(n,e)?n.response:n.responseText),l(this.afterRequestCallbacks,et(u=>u()))):(o=this.Li)===null||o===void 0||o.call(this,n)},n.onloadend=()=>{this.xr=null},n.timeout=(r=this.Ha)!==null&&r!==void 0?r:PI,this.xr=n,n.send()}zT(t,e){let r=t.getResponseHeader("Content-Type");return r===null?e==="json":l(r.toLowerCase(),Bt("json"))>0}Cl(t){let e;this.sm?e=`${NI(this.sm)}`:e=l(`${Math.random()}`,Oe(2,8)),t.r=e}}return i})(),jv=(()=>{class i extends ws{constructor(t,e,r,n){super(t,e,r,n),this.Ga=Ct.RECORDING_GLOBAL_SAMPLING,this.im=Ct.QUOTA_REACHED}onInit(){return yt(this,null,function*(){let t=We.get(Rs);if(t!==null&&xl(t)){let e=oT(t);this.oi=e==null?void 0:e.collectState;return}this.oi=yield this.rm()})}canTrack(){return this.oi!==void 0&&this.oi!==Ct.QUOTA_REACHED}refresh(){return yt(this,null,function*(){this.oi=yield this.rm()})}canCollect(t){return t!==null&&t.collectState!==Ct.QUOTA_REACHED}computeInitialCollectState(){return this.oi?(this.lifeCycleEventsEmitter.emitCollectStateChange(this.oi,this.getEtrState()),this.oi):(K.warn("Quota file error computeInitialCollectState() called before quota answered"),Ct.QUOTA_REACHED)}isEtrActive(){return!1}shouldPreserveSessionCollectState(t){return t.collectState===Ct.QUOTA_REACHED?!0:super.shouldPreserveSessionCollectState(t)}getInitialCollectState(){return this.oi||Ct.QUOTA_REACHED}rm(){return yt(this,null,function*(){try{return yield this.WT()}catch(t){return K.error(`Quota error - unexpected: ${t}`),this.im}})}WT(){let t=this.qT();return new Promise(e=>{t.onError(r=>{let n=`Quota error - HTTP:${r.status} - fetching quota file for pid: ${this.configuration.projectId}`;K.warn(n),e(this.Ga)}),t.onTimeout(()=>{K.warn("Quota error - timeout"),e(this.Ga)}),t.onLoad(r=>{var n;return e((n=this.parseQuotaResponse(r))!==null&&n!==void 0?n:this.im)}),t.send()})}qT(){return new kI(this.configuration.getSettingsFileUri(),"",{type:"json",cacheMinutes:15})}parseQuotaResponse(t){var e;return!((e=t==null?void 0:t.quotas)===null||e===void 0)&&e.length?this.YT(t):(K.warn("Quota error - Quota types missing from config file"),this.Ga)}YT(t){let e=!1,r=!1;for(let n of t.quotas)n.quotaType==="ANALYTICS"&&n.value?e=!0:n.quotaType==="RECORDING"&&n.value&&zs.boolean(Math.round(n.value*100))&&(r=!0);if(!e&&r){let n=`Quota error - Quota types impossible: replay without analytics - ${Ht.stringify(t)}`;return K.warn(n),this.Ga}return e&&r?Ln.isRecordingSupported()?Ct.RECORDING_GLOBAL_SAMPLING:Ct.ANALYTICS_ONLY:e?Ct.ANALYTICS_ONLY:Ct.QUOTA_REACHED}}return i.$deps=[lt,At,ti,Sr],b([J("Quota File: parseQuotaResponse")],i.prototype,"parseQuotaResponse",null),i})(),qv=(()=>{class i extends ws{constructor(t,e,r,n,a){super(t,e,n,a),this.Gu=r}onInit(){this.initUrlRules()}canTrack(){return!0}refresh(){return yt(this,null,function*(){})}canCollect(t){return!0}computeInitialCollectState(){if(!Ln.isRecordingSupported())return Ct.ANALYTICS_ONLY;let t=Ct.ANALYTICS_ONLY;return zs.percentage()<this.configuration.replayRecordingRate||this.Gu.isForceReplayRecorded()?t=Ct.RECORDING_GLOBAL_SAMPLING:this.isUrlSampledForRecording()&&(t=Ct.RECORDING_URL_SAMPLING),this.lifeCycleEventsEmitter.emitCollectStateChange(t,this.getEtrState()),t}getInitialCollectState(){return Ct.ANALYTICS_ONLY}}return i.$deps=[lt,At,Do,ti,Sr],i})();function OI(i,s){return s.isActive()?Wv:i.isQuotaEnabled()?i.collectionEnabled?jv:Gv:qv}var Yv=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,zv],providers:[Do,ee(Sr,()=>new Sr),jv,qv,Gv,Wv,ee(ws,(s,t,e)=>yt(null,null,function*(){return s.resolve(OI(t,e))}),[tc,lt,Ch])],exports:[ws,Do]})],i),i})(),MI=60*1e3,DI=30*1e3,Ns=(()=>{class i{constructor(t,e){this.C=t,this.P=e,this.zu=!1,this.nm=bl(()=>this.C.refreshSession(),DI)}abortPendingRefresh(){this.nm.cancel()}onSessionExpired(t){this.om=t}isSessionValid(){return this.zu?!0:!(!this.C.hasValidSession()||this.C.pollCacheRefreshEvent()&&this.P.isSessionRenewed())}isCurrentPageviewValid(){let t=this.C.hasValidSession();return this.C.pollCacheRefreshEvent(!1)?!this.P.isSessionRenewed():t}refreshSession(){this.isSessionValid()?this.nm():this.XT()&&(this.am=mt.now(),this.renewSession(!1))}renewSession(t){if(!le(this.om)){K.warn("SessionRenewer: renewSession called before onSessionExpired callback was registered");return}this.zu=!0;try{this.om(t)}finally{this.zu=!1}}XT(){return!D.hidden&&(!le(this.am)||mt.now()-this.am>MI)}}return i.$deps=[xe,ci],i})(),Le=(()=>{let i=class{constructor(s,t,e){this.si=s,this.P=t,this.C=e}onInit(){this.si.setContext(this.P,this.C)}};return i.$deps=[mh,ci,xe],i=b([q({imports:[it,Yv],providers:[Ic,nd,Ns,xe,ci],exports:[Ic,xe,nd,ci,Ns,ws,Do]})],i),i})(),bh=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it],providers:[ee(Xe,(s,t,e)=>{let r=new Xe(s,t,new Sr,e);return r.init(),r},[lt,ti,wa])],exports:[Xe]})],i),i})(),Zv=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it],providers:[ee(Tr,()=>new Tr(()=>{})),ee(_s,()=>new _s),ee(In,()=>new In)],exports:[Tr,_s,In]})],i),i})(),xI=(()=>{let i=class{constructor(s,t,e,r,n,a){this.S=s,this.w=t,this.kt=e,this.Ct=r,this.it=n,this.ce=a,this.cm=!1}onInit(){this.Nt(),this.S.addListener(this)}onNaturalPageView(s){this.kt.loadClickTalePIISelectors(),this.Ct.start(),this.S.emitSensitiveStatusChange()}onStartTracking(s){this.Ct.start(),!this.cm&&this.it.shouldUseAnonymization()&&(this.cm=!0,ot.counters.pageAnonymisation.count("anonymized-on-start")),this.S.emitSensitiveStatusChange()}onAfterArtificialPageView(){this.Ct.stop(),this.Ct.start(),this.S.emitSensitiveStatusChange()}onBeforeSessionRenewal(){this.Ct.stop(),this.S.emitSensitiveStatusChange()}onOptout(){this.Ct.stop(),this.S.emitSensitiveStatusChange()}onReplayUnanonymizationConsentGranted(){this.S.emitSensitiveStatusChange()}onReplayUnanonymizationConsentWithdrawn(){this.S.emitSensitiveStatusChange()}Nt(){this.w.register(So,s=>{this.kt.setMaskedElementSettingsFromCommand(s),this.S.emitSensitiveStatusChange()}),this.w.register(ch,s=>{this.ce.setWhitelistedElementsSelector(s),this.S.emitSensitiveStatusChange()})}};return i.$deps=[At,Kt,Na,Is,Xe,_s],i=b([q({imports:[it,Le,bh,Zv],providers:[Is,Mo],exports:[Tr,_s,In,Xe,Is,Mo]})],i),i})(),Ah=null;function LI(i,s,t=1e4,e="exact"){let r,n=o=>{UI(o.blockedURI,i,e)&&o.disposition==="enforce"&&(a(),s(o))},a=()=>{l(v,gs("securitypolicyviolation",n,!0)),r!==void 0&&Ti(r)};return l(v,ni("securitypolicyviolation",n,{capture:!0})),r=Ft(a,t),a}function UI(i,s,t){if(t==="exact")return i===s;let e=s.endsWith("/")?l(s,Oe(0,-1)):s;return i===e||i.startsWith(`${e}/`)||i.startsWith(`${e}?`)}var Kv="cs_verify_install_auto",Xv="cs_verify_install",hd="verifyInstallation",Qv="verifyInstallationAuto",$I=1e4,VI="csqVerifyInstall",FI="csqVerifyUUID",HI="hjVerifyInstall",BI="hjVerifyUUID",Jv=(()=>{class i{constructor(t,e){this.E=t,this.Ot=e}verifyInstallation(){var t;let e=O0(),r=e[VI]||e[HI]||"",n=e[FI]||e[BI]||"",a,o=0;try{a=this.Ot.getItem(Xv)}catch(u){}if(r||a){if(o=Number(r||a)||0,r)try{this.Ot.setItem(Xv,r)}catch(u){}if(((t=v.CSQ_TAGS)===null||t===void 0?void 0:t.length)>1){this.KT(o,n);return}this.ZT(o,n)}}verifyInstallationAuto(){if(this.E.trackingCodeVerified)return;let t=null;try{t=this.Ot.getItem(Kv)}catch(r){}let e=`${this.E.projectId}`;if(!t||t!==e){let r=this.QT(),n=this.lm(r),a=new As({endpoint:r,contentType:"application/json"});a.onLoad(()=>{n.stop(),this.Ot.setItem(Kv,e)}),a.onError(o=>{let u=n.getErrorMessage();u?K.warn(`Failed to report verification results: ${u}`,!0,Qv):K.error(`Failed to report verification results: ${o}`,Qv),n.stop()});try{a.send({})}catch(o){throw n.stop(),o}}}lm(t){let e,r=LI(t,n=>{e=`CSP blocked verification endpoint ${t}. Violated directive: ${n.violatedDirective}`},$I,"prefix");return{getErrorMessage:()=>e,stop:r}}QT(){return`${this.E.getVerificationEndpoint()}/v2/projects/${this.E.projectId}/verify-installation/auto`}JT(t){return`${this.E.getVerificationEndpoint()}/v1/verification/${t}/result`}
22um(t,e){this.$r({title:"Contentsquare installation invalid",message:"The tracking code you are trying to verify does not match the one installed on this page. Please make sure you install the correct tracking code provided for this site.",status:"bad"}),this.ro({verifyUUID:e,status:"wrong_code",detail:{expected:String(t),actual:String(this.E.projectId)}});let r=`Passed projectId: ${t} != Configured Site ${this.E.projectId}`;K.error(r,hd)}KT(t,e){let r=l(v.CSQ_TAGS,xt(function(c,p){return l(v.CSQ_TAGS,Dt(c))===p})),n="You have "+v.CSQ_TAGS.length+" tracking scripts installed on your site. ",a=!!v.dataLayer,o;r.length>1?(o=n+"Please remove the duplicate scripts to prevent data collection issues.",this.$r({title:"Multiple different Contentsquare scripts detected",message:o,status:"bad"}),this.ro({verifyUUID:e,status:"multiple_codes",detail:{expected:String(t),actual:l(r,$t(String)),gtm:!1}})):a?(o=n+"If you've installed Contentsquare through GTM - please remove the duplicate scripts to prevent data collection issues.",this.$r({title:"Multiple Contentsquare scripts detected",message:o,status:"bad"}),this.ro({verifyUUID:e,status:"multiple_codes",detail:{expected:String(t),actual:l(r,$t(String)),gtm:!0}})):t===this.E.projectId?(o=n+"This will not affect data collection, but we do suggest removing redundant scripts.",this.$r({title:"Multiple Contentsquare scripts detected",message:o,status:"warning"}),this.ro({verifyUUID:e,status:"warning",detail:{expected:String(t),reason:"multiple scripts"}})):this.um(t,e);let u="Passed Site ID: "+t+" contains multiple scripts "+v.CSQ_TAGS.join(", ");K.error(u,"verifyInstallation")}ZT(t,e){if(t===this.E.projectId){let r=()=>this.$r({title:"Contentsquare installation verified",message:"The Contentsquare tracking code has been properly installed on this page. Browse your site in this window if you wish to verify installation on any other pages.",status:"good"}),n=()=>this.$r({title:"Error reporting verification results",message:"There was an error reporting the verification result. Please try again.",status:"bad"});this.ro({verifyUUID:e,status:"ok",onSuccess:r,onError:n})}else this.um(t,e)}tC(t){switch(t){case"good":return"\u2705";case"bad":return"\u274C";case"warning":return"\u26A0\uFE0F";default:return"\u2139\uFE0F"}}$r({title:t,message:e,status:r}){let n=`${this.tC(r)} ${t} 23 24${e}`;v.alert(n)}ro({verifyUUID:t,detail:e,status:r,onSuccess:n,onError:a}){if(!t)return;
24let o=this.JT(t),u=new As({endpoint:o,contentType:"application/json"}),c=this.lm(o),p=Vt(Z({},e&&{error_detail:e}),{status:r});u.onLoad(f=>{c.stop(),f.status<400?n&&n():a&&a()}),u.onError(f=>{let E=c.getErrorMessage();E?K.warn(`Failed to report verification results: ${E}`,!0,hd):K.error(`Failed to report verification results: ${f}`,hd),c.stop(),a&&a()});try{u.send(p)}catch(f){throw c.stop(),f}}}return i.$deps=[lt,Ea],i})(),zI=(()=>{let i=class{constructor(s){this.hm=s}onInit(){this.hm.verifyInstallationAuto(),this.hm.verifyInstallation()}};return i.$deps=[Jv],i=b([q({imports:[it],providers:[Jv]})],i),i})(),tE=zI,Be=(()=>{class i extends nh{emitTrackingContextResultMessage(t){for(let e of this.listeners)e.onTrackingContextResultCallback&&e.onTrackingContextResultCallback(t)}emitAfterPageViewCallback(t){for(let e of this.listeners)e.onAfterPageViewCallback&&e.onAfterPageViewCallback(t)}emitIntegrationSessionKeyCallback(t){for(let e of this.listeners)e.onIntegrationSessionKeyCallback&&e.onIntegrationSessionKeyCallback(t)}emitParentRecordingContextChange(t){for(let e of this.listeners)e.onParentRecordingContextChange&&e.onParentRecordingContextChange(t)}emitParentSensitiveStatusChange(t){for(let e of this.listeners)e.onParentSensitiveStatusChange&&e.onParentSensitiveStatusChange(t)}emitStartAnalytics(){for(let t of this.listeners)t.onStartAnalytics&&t.onStartAnalytics()}emitStopAnalytics(){for(let t of this.listeners)t.onStopAnalytics&&t.onStopAnalytics()}emitStartRecording(){for(let t of this.listeners)t.onStartRecording&&t.onStartRecording()}emitStopRecording(){for(let t of this.listeners)t.onStopRecording&&t.onStopRecording()}emitInitTracking(){for(let t of this.listeners)t.onInitTracking&&t.onInitTracking()}emitStartTracking(){for(let t of this.listeners)t.onStartTracking&&t.onStartTracking()}}return i})(),GI=(()=>{class i extends Ar{constructor(t,e,r){super(),this.qu=t,this.E=e,this.U=r}init(){this.qu.assertCanBootInChild(),this.E.isChild=!0,this.U.emitInitTracking()}}return i.$deps=[rh,lt,Be],i})(),Qr=(()=>{class i{constructor(){this.Ur=null}getRecordingContext(){return this.Ur===null?{isRecording:!1}:this.Ur}setRecordingContext(t){this.Ur=t}}return i.$deps=[],i})(),sr=(()=>{class i{constructor(t){this.E=t,this.Vr={started:!1,useAnonymization:!0},this.Bn=Kl(this.E.whitelistedAttributes)}getSensitiveStatus(){return this.Vr}setSensitiveStatus(t){this.Vr=t}getElementSensitiveStatus(t){return this.Vr.started?ct.isMaskedElement(t)||ct.isMaskedElementChild(t)?Pe.MASKED:Rh.shouldEncrypt(t)?Pe.ENCRYPTED:Rr.isEditableNode(t)?Pe.ANONYMIZED:this.Vr.useAnonymization?ns.isWhitelistedElement(t)?Pe.CAPTURED:Pe.ANONYMIZED:Pe.CAPTURED:Pe.ANONYMIZED}getAttributeSensitiveStatus(t,e){return this.Vr.started?ct.isMaskedAttribute(t,e)?Pe.MASKED:this.Vr.useAnonymization?aa(t)||ns.isWhitelistedElement(t)||this.Bn.has(e)?Pe.CAPTURED:Pe.ANONYMIZED:Pe.CAPTURED:Pe.ANONYMIZED}}return i.$deps=[lt],i})(),WI="Buffer is full, events might be missing.",jI=(()=>{class i{constructor(t=25){this.dm=t,this.Hr=[]}reset(){this.Hr=[]}getMessages(){return this.Hr}addMessage(t){this.Hr.length<this.dm?l(this.Hr,I(t)):this.Hr.length===this.dm&&(this.eC(t),l(this.Hr,I(t)))}eC(t){t.type=Q.ChildLogMessage,t.content={message:WI,errorCode:"",level:pe.warn}}}return i})(),di=(()=>{class i extends He{constructor(t){super(),this.buffer=new jI(t)}}return i})(),qI=25,YI=(()=>{class i extends di{constructor(t,e,r,n,a){super(qI),this.E=t,this.S=e,this.Vi=r,this.ks=n,this.Hi=a,this.We=null,this.qe=[],this.fm={boundElement:v,type:"message",listener:o=>this.Yu(o)},Ke(this.fm,!1)}onStart(){if(this.sC(),this.qe.length>0){let t=this.qe;this.qe=[];for(let e of t)this.no(e)}}onStop(){Ge(this.fm),this.qe=[],this.We&&(Te.closeChannelPort(this.We),this.We=null)}sendToParent(t,e){let r=this.buildChildBaseMessage(t,e);this.za(r)}sC(){let t=this.buildChildBaseMessage(Q.Discovery);Te.sendPostMessage(v.parent,"*",t)}buildChildBaseMessage(t,e){let r=Te.buildBaseMessage(t,as.Child,this.E.projectId);return e&&(r.content=e),r}za(t){this.We!==null?Te.sendChannelMessage(this.We,t):this.buffer.addMessage(t)}iC(t,e){let r=Te.getNewChannelMessage();this.We=r.port1,this.We.onmessage=a=>{this.Xu(a)};let n=this.buildChildBaseMessage(Q.Discovery);n.id=e,Te.sendPostMessage(v.parent,t,n,[r.port2]),this.sendAllMessagesFromBuffer()}Xu(t){switch(t.data.type){case Q.TrackingContextResultMessage:this.Hi.emitTrackingContextResultMessage(t.data.content);break;case Q.IntegrationCallback:{let e=t.data.content;e.initiator===To.AfterPageView?this.Hi.emitAfterPageViewCallback(e):e.initiator===To.GetSessionKey?this.Hi.emitIntegrationSessionKeyCallback(e):K.warn(`Iframe child received unknown IntegrationCallback type from parent : ${Ht.stringify(t.data)}`);break}case Q.Stop:this.S.emitOptout();break;case Q.RecordingContext:{let e=t.data.content;this.Vi.setRecordingContext(e),this.Hi.emitParentRecordingContextChange(e);break}case Q.SensitiveStatus:{let e=t.data.content;this.ks.setSensitiveStatus(e),this.Hi.emitParentSensitiveStatusChange(e);break}default:K.warn(`Iframe child received unknown channelMessage type from parent : ${Ht.stringify(t.data)}`)}}Yu(t){if(!this.isStarted){l(this.qe,I(t));return}this.no(t)}no(t){if(this.We===null&&Te.isMessageValid(t,as.Parent,this.E.projectId,this.E.hostnames))switch(t.data.type){case Q.Stop:this.S.emitOptout();break;case Q.Discovery:if(!ms(t.data.id)||t.data.id<0){K.warn(`Iframe child received discovery without valid id from parent (${t.origin}) : ${Ht.stringify(t.data)}`);return}this.iC(t.origin,t.data.id);break;default:K.warn(`Iframe child received unknown postMessage type from parent (${t.origin}) : ${Ht.stringify(t.data)}`)}}sendAllMessagesFromBuffer(){if(this.We===null)return;let t=this.buffer.getMessages();for(let e of t)Te.sendChannelMessage(this.We,e);this.rC(),this.buffer.reset()}rC(){let t=Te.buildBaseMessage(Q.EndOfBufferedMessages,as.Child,this.E.projectId);Te.sendChannelMessage(this.We,t)}}return i.$deps=[lt,At,Qr,sr,Be],i})(),xo=gf("ChildAnalysisGestureOptions"),eE=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it],providers:[Be,Qr,sr],exports:[Be,Qr,sr]})],i),i})(),Oa=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,eE],providers:[ho(di,YI),mf(xo,{collectGestureVelocity:!1,collectGestureDistance:!1})],exports:[di,Be,Qr,sr,xo]})],i),i})(),ZI=2500,KI=500,Ih=(()=>{class i extends di{constructor(t,e,r=KI){super(ZI),this.U=t,this.E=e,this.nC=r,this.ji=!1,this.Wa=void 0,this.Ku=!0}onStart(){this.oC()}onStop(){this.buffer.reset(),this.Zu&&gr(this.Zu)}sendToParent(t,e){var r;if(this.aC()){(r=this.Qu)===null||r===void 0||r.call(this,t,e);return}if(this.cC(t)){let n=this.buildChildBaseMessage(t,e);this.buffer.addMessage(n)}}aC(){return this.ji&&this.Ku}cC(t){return!this.ji||t===Q.Commands}onWebViewEvent(t){this.Qu=t}setAnalyticsStatus(t){this.Ku=t,this.Ku&&this.lC()}sendAllMessagesFromBuffer(){var t;let e=this.buffer.getMessages();for(let r of e)(t=this.Qu)===null||t===void 0||t.call(this,r.type,r.content);this.buffer.reset()}lC(){var t;if(!this.ji)return;let e=this.buffer.getMessages();for(let r of e)r.type===Q.Commands&&((t=this.Qu)===null||t===void 0||t.call(this,r.type,r.content));this.buffer.reset()}buildChildBaseMessage(t,e){return{type:t,content:e}}oC(){this.ji=ve.isCSJavascriptBridgeDefined(),this.ji?this.gm():this.Zu=ta(()=>{this.ji=ve.isCSJavascriptBridgeDefined(),this.ji&&(this.gm(),gr(this.Zu))},this.nC)}gm(){this.uC(),this.Wa=ve.getBridgeVersion(),this.Wa===null?this.sendAllMessagesFromBuffer():this.Wa>=DA?(this.hC(),ve.notifyIsReadyForTracking()):K.warn(`bridge version ${this.Wa} is not supported`)}uC(){let t={message:Ht.stringify(this.E),errorCode:"TAG_CONFIGURATION",level:pe.critical};ve.sendLog(t)}hC(){this.U.emitStopAnalytics()}}return i.$deps=[Be,lt,null],i})(),$n=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,eE],providers:[ho(di,Ih),mf(xo,{collectGestureVelocity:!0,collectGestureDistance:!0})],exports:[di,Ih,Be,Qr,sr,xo]})],i),i})(),Ps=bc()?$n:Oa,wh=(()=>{class i extends He{constructor(t,e){super(),this.w=t,this.V=e,this.Yt=[]}onStart(){this.commandsBatchReady()}onStop(){this.Yt=[]}register(t){for(let e of t)this.w.register([e],(...r)=>this.forwardCommand(e,r))}forwardCommand(t,e){l(this.Yt,I({name:t,params:e})),this.isStarted&&this.commandsBatchReady()}commandsBatchReady(){if(this.Yt.length===0)return;let t={commands:this.Yt};this.V.sendToParent(Q.Commands,t),this.Yt=[]}}return i.$deps=[Kt,di],b([J("Commands.iframe.commandsBatch.send")],i.prototype,"forwardCommand",null),b([la({wait:0,mode:"trailing"}),J("send iframe commands batch")],i.prototype,"commandsBatchReady",null),i})(),ud=["identify"],XI=["getIdentity"],iE=["resetIdentity"],cd=["addUserProperties"],dd=["optout"],sE=["optin"],rE=["startDataCollection","data-collection:start"],QI=["data-collection:stop"],nE=["replay:consent:unanonymized:granted","trackConsentGranted"],aE=["replay:consent:unanonymized:withdrawn","trackConsentWithdrawn"],oE=["replay:consent:startForSession:granted"],lE=["replay:consent:startForSession:withdrawn"],Nh=["customProperties:page:add","addPageviewProperties"],Ph=["customProperties:page:remove","removePageviewProperty"],pd=["customProperties:page:clear","clearPageviewProperties"],kh=["customProperties:visit:add","addEventProperties"],Oh=["customProperties:visit:remove","removeEventProperty"],gd=["customProperties:visit:clear","clearEventProperties"],hE=["clearSession"],uE=["extendSession"],JI=["getSessionData"],cE=["session:start:newVisitor"],dE=["session:clear:visitor"],pE=["trackTransaction"],fd=(()=>{let i=class{constructor(s,t,e){this.I=s,this.w=t,this.S=e}onInit(){this.Nt(),this.w.registerCompanion(this.I),this.S.addListener(this)}onOptout(){this.I.stop()}Nt(){this.I.register(mo),this.I.register(bs),this.I.register(oh),this.I.register(lh),this.I.register(yo),this.I.register(Mc),this.I.register(ev),this.I.register(iv),this.I.register(lv),this.I.register(_o),this.I.register(Ra),this.I.register(Ro),this.I.register(pE),this.I.register(hE),this.I.register(uE),this.I.register(dd),this.I.register(sE),this.I.register(cE),this.I.register(dE),this.I.register(dh),this.I.register(Ta),this.I.register(ph),this.I.register(nE),this.I.register(aE),this.I.register(oE),this.I.register(lE),this.I.register(hh),this.I.register(Fc),this.I.register(hv),this.I.register(cd),this.I.register(ud),this.I.register(XI),this.I.register(iE),this.I.register(kh),this.I.register(Oh),this.I.register(gd),this.I.register(Nh),this.I.register(Ph),this.I.register(pd),this.I.register(rE),this.I.register(kh),this.I.register(Oh),this.I.register(gd),this.I.register(Nh),this.I.register(Ph),this.I.register(pd)}};return i.$deps=[wh,Kt,At],i=b([q({imports:[it,Ps],providers:[wh],exports:[wh]})],i),i})(),tw=null,ew=(()=>{let i=class{constructor(s){this.w=s}onInit(){v.cs_wvt=v.cs_wvt||[],this.w.addCommandRegistry(pv.WVT)}};return i.$deps=[Kt],i=b([q({imports:[it],providers:[]})],i),i})(),Lo=(()=>{class i extends He{constructor(t){super(),this.E=t,this.Ju=0,this._e=new Map,this.qe=[],this.pm={boundElement:v,type:"message",listener:e=>this.Yu(e)},Ke(this.pm,!1)}onChildMessage(t){this.mm=t}setRecordingContextCallback(t){this.pC=t}setSentiveStatusCallback(t){this.mC=t}onSensitiveStatusChange(t){let e=Te.buildBaseMessage(Q.SensitiveStatus,as.Parent,this.E.projectId);e.content=t;let r=Te.buildBaseMessage(Q.SensitiveStatus,as.Parent,this.E.projectId);r.content=Vt(Z({},t),{started:!1,useAnonymization:!0,capturedElementSelector:""}),this._e.forEach(n=>{if(n.port){let a=this.qa(n)?r:e;this.th(n,a)}})}onRecordingContextChange(t){let e=Te.buildBaseMessage(Q.RecordingContext,as.Parent,this.E.projectId);e.content=t,this._e.forEach(r=>{!this.qa(r)&&r.port&&this.th(r,e)})}sendToChildren(t,e){let r=Te.buildBaseMessage(t,as.Parent,this.E.projectId);r.content=e,this.EC(r)}
24onStart(){if(this.Em(),this.qe.length>0){let t=this.qe;this.qe=[];for(let e of t)this.no(e)}}onStop(){this.vC(),Ge(this.pm),this.qe=[],this.SC()}Em(){let t=this._C();this.yC(t),l(t,et(e=>{if(this.wC(e)===null){let r={iframe:e};this._e.set(this.Ju,r),this.Ju+=1}})),this.bC()}_C(){return l(mi.findAllElements("iframe"),xt(t=>this.RC(t)))}yC(t){this._e.forEach((e,r)=>{e.iframe&&l(t,Dt(e.iframe))===-1&&this.TC(r,e)})}TC(t,e){e.port&&Te.closeChannelPort(e.port),this._e.delete(t)}SC(){this._e.forEach(t=>{t.port&&Te.closeChannelPort(t.port)}),this._e.clear()}wC(t){let e=null;return this._e.forEach((r,n)=>{e===null&&r.iframe===t&&(e=n)}),e}RC(t){return t.id!=="cs-native-frame"&&(!t.src||Ei(t.src,"about:")||Uu(Ng(t.src),this.E.hostnames,{allowWildcard:!1}))}EC(t){this._e.forEach(e=>{this.th(e,t)})}th(t,e){let r=e.type===Q.SensitiveStatus||e.type===Q.RecordingContext;t.port&&(!r||t.initialStatusSent)&&Te.sendChannelMessage(t.port,e)}bC(){this._e.forEach((t,e)=>{if(t.iframe.contentWindow){let r=this.CC(e);Te.sendPostMessage(t.iframe.contentWindow,"*",r)}})}vC(){let t=this.AC();this._e.forEach(e=>{e.port?Te.sendChannelMessage(e.port,t):e.iframe.contentWindow&&Te.sendPostMessage(e.iframe.contentWindow,"*",t)})}CC(t){return Te.buildBaseMessage(Q.Discovery,as.Parent,this.E.projectId,t)}AC(){return Te.buildBaseMessage(Q.Stop,as.Parent,this.E.projectId)}IC(t,e){let r=this._e.get(t);if(r===void 0){K.error(`Parent received channel messaging initialization from unknow child id : ${t} (${this.Ju})`);return}r.port=e,r.port.onmessage=n=>{this.Xu(n,r)}}PC(t){if(!t.port)return;let e=Te.buildBaseMessage(Q.SensitiveStatus,as.Parent,this.E.projectId),r=this.mC();this.qa(t)&&(r.started=!1,r.capturedElementSelector="",r.useAnonymization=!0),e.content=r,Te.sendChannelMessage(t.port,e)}MC(t){if(!t.port)return;let e=Te.buildBaseMessage(Q.RecordingContext,as.Parent,this.E.projectId),r=this.pC();this.qa(t)&&(r.isRecording=!1),e.content=r,Te.sendChannelMessage(t.port,e)}Xu(t,e){if(e===void 0){K.error(`Parent received channelMessage from unknown child : ${Ht.stringify(t.data)}`);return}let r=t.data.type,n=t.data.content;r===Q.EndOfBufferedMessages?(this.PC(e),this.MC(e),e.initialStatusSent=!0):this.mm(e.iframe,r,n)}Yu(t){if(!this.isStarted){l(this.qe,I(t));return}this.no(t)}no(t){if(Te.isMessageValid(t,as.Child,this.E.projectId,this.E.hostnames))switch(t.data.type){case Q.Discovery:if(t.data.id===void 0){this.Em();return}if(t.ports&&t.ports.length===1&&this._e.has(t.data.id)){this.IC(t.data.id,t.ports[0]);return}K.error(`Parent received wrong channelMessage initialization : (${t.origin}) : ${Ht.stringify(t.data)}`);break;case Q.ChildLogMessage:this.mm(null,Q.ChildLogMessage,t.data.content);break;default:K.warn(`Parent received unexpected postMessage type from child (${t.origin}) : ${Ht.stringify(t.data)}`)}}qa(t){return ct.isMaskedElement(t.iframe)||ct.isMaskedElementChild(t.iframe)}}return i.$deps=[lt],i})(),Vn=(()=>{class i{constructor(){this.eh=[],this.ih=[],this.vm=[]}addEventsEnhancer(t){l(this.eh,I(t))}addGestureEnhancer(t){l(this.ih,I(t))}addIframeEnhancer(t){l(this.vm,I(t))}hasEventsEnhancer(t){return l(this.eh,ye(e=>e instanceof t))}hasGestureEnhancer(t){return l(this.ih,ye(e=>e instanceof t))}getEventsEnhancers(){return this.eh}getGestureEnhancers(){return this.ih}getIframeEnhancers(){return this.vm}}return i.$deps=[],i})(),iw=Math.pow(2,31);function sw(i,s=0){let t=s>>>0,e=i.length;for(let o=0;o<e-3;o+=4){let u=(i.charCodeAt(o)&255|(i.charCodeAt(o+1)&255)<<8|(i.charCodeAt(o+2)&255)<<16|(i.charCodeAt(o+3)&255)<<24)>>>0;u=Math.imul(u,3432918353),u=u<<15|u>>>17,u=Math.imul(u,461845907),t^=u,t=t<<13|t>>>19,t=Math.imul(t,5)+3864292196}let r=0,n=e&3,a=e-n;switch(n){case 3:r^=(i.charCodeAt(a+2)&255)<<16;case 2:r^=(i.charCodeAt(a+1)&255)<<8;case 1:r^=i.charCodeAt(a)&255,r=Math.imul(r,3432918353),r=r<<15|r>>>17,r=Math.imul(r,461845907),t^=r}return t^=e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,t=Math.imul(t,3266489909),t^=t>>>16,t>>>0}function gE(i){return sw(i)+iw>>>0}var fE=(()=>{class i{constructor(t,e,r){this.ai=t,this.E=e,this.jr=r}transformEvent(t,e){this.NC(t,e.event);let r=this.ai.getElementPath(t);return this.OC(r,e.event),this.kC(e.event),e}NC(t,e){if(iI(e)){let r=t.getBoundingClientRect();e.x=Math.round(r.left+e.x+Ze.windowOffsetX()),e.y=Math.round(r.top+e.y+Ze.windowOffsetY())}}OC(t,e){$v(e)&&(e.tgt=`${t}${No}${e.tgt}`),tI(e)&&(e.tgtHM=`${t}${No}${e.tgtHM}`,this.E.isChild||(e.tgtHMH=gE(e.tgtHM))),eI(e)&&(e.tgtLk=`${t}${No}${e.tgtLk}`)}kC(t){if(!this.E.isChild)for(let e of this.jr.getIframeEnhancers())e.enhanceAnalysisEvent(null,t)}}return i.$deps=[ir,lt,Vn],i})(),mE=(()=>{class i{constructor(t){this.ai=t}transformEvent(t,e){let r=this.ai.getElementPath(t);return{iframePath:e.iframePath?`${r}${No}${e.iframePath}`:r,commands:e.commands}}}return i.$deps=[ir],i})(),vE=(()=>{class i{constructor(t){this.ai=t}transformEvent(t,e){if(e.products.length===0)return e;let r=this.ai.getElementPath(t),n=l(e.products,$t(a=>Vt(Z({},a),{targetPath:`${r}${No}${a.targetPath}`})));return Vt(Z({},e),{products:n})}}return i.$deps=[ir],i})(),EE=(()=>{class i{constructor(){this.DC={clientX:2,clientY:3},this.LC={clientX:1,clientY:2}
24,this.xC=[St.POINTER_DOWN,St.POINTER_MOVE,St.POINTER_UP],this.$C=[St.TOUCH_START,St.TOUCH_MOVE,St.TOUCH_END]}transformEvents(t,e){if(!mi.isConnected(t))return e.events=l(e.events,xt(a=>a.type!==St.VISIBILITY_CHANGE)),e.events.length===0||(K.warn(`IframeRecordingEventsTransformer received event ${Q.RecordingEvent} 25 from disconnected iframe, content:${Ht.stringify(e.events)}`),e.events=[]),e;let r=Zt(t),n=null;l(e.events,ye(a=>this.Sm(a)||this._m(a)))&&(n=t.getBoundingClientRect());for(let a of e.events)this.Sm(a)?this.UC(n,a):this._m(a)&&this.VC(n,a),a.context=a.context&&a.context.length>0?`${r}/${a.context}`:`${r}`;return e}VC(t,e){this.ym(this.LC,t,e)}UC(t,e){this.ym(this.DC,t,e)}ym(t,e,r){r.args&&(r.args[t.clientX]=Math.round(e.left+r.args[t.clientX]),r.args[t.clientY]=Math.round(e.top+r.args[t.clientY]))}Sm(t){return l(this.xC,Dt(t.type))!==-1}_m(t){return l(this.$C,Dt(t.type))!==-1}}return i.$deps=[],i})(),md=(()=>{class i{constructor(t,e,r,n,a){this.F=t,this.HC=e,this.jC=r,this.BC=n,this.FC=a}dispatch(t,e,r){if(this.GC(e)&&t===null){K.error(`IframeEventDispatcher received event ${e} with null iframe, content:${Ht.stringify(r)}`);return}switch(e){case Q.ChildLogMessage:this.zC(r);break;case Q.AnalysisEvent:{let n=r,a=this.HC.transformEvent(t,n);a.isUserEvent?this.F.emitIframeAnalysisUserEvent(a.event):this.F.emitIframeAnalysisBrowserEvent(a.event);break}case Q.RecordingEvent:{let n=r,a=this.FC.transformEvents(t,n);if(a.events.length===0)return;a.containsUserEvent?this.F.emitIframeRecordingUserEvent(a.events):this.F.emitIframeRecordingBrowserEvent(a.events);break}case Q.JavascriptError:this.F.emitIframeJavascriptError(r);break;case Q.ApiError:this.F.emitIframeApiError(r);break;case Q.DetailedApiError:this.F.emitIframeDetailedApiError(r);break;case Q.CustomError:this.F.emitIframeCustomError(r);break;case Q.EmerchandisingMessage:{let n=this.BC.transformEvent(t,r);this.F.emitIframeEmerchandisingMessage(n);break}case Q.Commands:{let n=this.jC.transformEvent(t,r);this.F.emitIframeCommands(n);break}case Q.IntegrationCallback:this.F.emitIframeIntegrationCallback(r);break;case Q.StaticResource:this.F.emitIframeStaticResource(r);break;case Q.TrackingContextRequestMessage:this.F.emitTrackingContextRequestMessage(r);break;default:K.error(`Parent received unknown data type from iframe : ${Ht.stringify(r)}`)}}GC(t){let e=[Q.AnalysisEvent,Q.RecordingEvent,Q.EmerchandisingMessage,Q.Commands];return l(e,Dt(t))!==-1}zC(t){let{message:e,errorCode:r,level:n}=t;switch(n){case pe.debug:K.debug(e,r);break;case pe.warn:K.warn(e,!0,r);break;case pe.implementation:K.implementation(e,r);break;case pe.error:K.error(e,r);break;case pe.critical:K.critical(e,r);break}}}return i.$deps=[Qs,fE,mE,vE,EE],i})(),yE=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[Vn],exports:[Vn]})],i),i})(),SE=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,yE],providers:[fE,mE,vE,EE,md],exports:[md]})],i),i})(),vd=(()=>{let i=class{constructor(s,t,e,r,n,a,o,u){this.ut=s,this.rh=t,this.V=e,this.Vi=r,this.ks=n,this.F=a,this.U=o,this.S=u}onInit(){this.ut.onChildMessage((s,t,e)=>this.rh.dispatch(s,t,e)),this.ut.setSentiveStatusCallback(()=>this.ks.getSensitiveStatus()),this.ut.setRecordingContextCallback(()=>this.Vi.getRecordingContext()),this.F.addListener(this),this.U.addListener(this),this.S.addListener(this)}onStartTracking(){this.ut.start()}onOptout(){this.ut.stop()}onIframeRecordingUserEvent(s){let t={events:s,containsUserEvent:!0};this.V.sendToParent(Q.RecordingEvent,t)}onIframeRecordingBrowserEvent(s){let t={events:s,containsUserEvent:!1};this.V.sendToParent(Q.RecordingEvent,t)}onIframeAnalysisUserEvent(s){let t={event:s,isUserEvent:!0};this.V.sendToParent(Q.AnalysisEvent,t)}onIframeAnalysisBrowserEvent(s){let t={event:s,isUserEvent:!1};this.V.sendToParent(Q.AnalysisEvent,t)}onIframeJavascriptError(s){this.V.sendToParent(Q.JavascriptError,s)}onIframeApiError(s){this.V.sendToParent(Q.ApiError,s)}onIframeDetailedApiError(s){this.V.sendToParent(Q.DetailedApiError,s)}onIframeEmerchandisingMessage(s){this.V.sendToParent(Q.EmerchandisingMessage,s)}
25onIframeCommands(s){this.V.sendToParent(Q.Commands,s)}onIframeIntegrationCallback(s){this.V.sendToParent(Q.IntegrationCallback,s)}onTrackingContextRequestCallback(s){this.V.sendToParent(Q.TrackingContextRequestMessage,s)}onIframeStaticResource(s){this.V.sendToParent(Q.StaticResource,s)}onIframeCustomError(s){this.V.sendToParent(Q.CustomError,s)}onTrackingContextResultCallback(s){this.ut.sendToChildren(Q.TrackingContextResultMessage,s)}onAfterPageViewCallback(s){this.ut.sendToChildren(Q.IntegrationCallback,s)}onIntegrationSessionKeyCallback(s){this.ut.sendToChildren(Q.IntegrationCallback,s)}onParentRecordingContextChange(s){this.ut.sendToChildren(Q.RecordingContext,s)}onParentSensitiveStatusChange(s){this.ut.sendToChildren(Q.SensitiveStatus,s)}};return i.$deps=[Lo,md,di,Qr,sr,Qs,Be,At],i=b([q({imports:[it,Ps,SE],providers:[Lo],exports:[Lo]})],i),i})(),Yi=(()=>{class i{static buildFromCustomEvent(t,e){return this.Bi(null,t,e)}static buildFromAnalysisEvent(t,e,r){return this.Bi(t,e,r)}static Bi(t,e,r){return r.reduce((n,a)=>a.enhanceAnalysisEvent(t,n),e)}}return i})(),_E="data-cs-scroll-container",Ed=`[${_E}]`,Ir,Ma=null,Uo=null;function rw(){if(!Er.isSupported())return null;for(let i of Er.getAllShadowHosts(D)){let s=l(i,is);if(s){let t=l(s,pn(Ed));if(t)return t}}return null}function yd(){Ir=void 0}function nw(i){for(let s of i)if(s.type==="attributes"&&s.attributeName===_E&&s.oldValue===null&&s.target instanceof Element){yd(),Sd();break}}function RE(){Ma||(Ma=new js(()=>{yd(),Sd()}),Ma.observe(Ed),Uo=new ys(nw),Uo.observe())}function TE(){Ma&&(Ma.disconnect(),Ma=null),Uo&&(Uo.disconnect(),Uo=null)}function Sd(){var i;if(Ir!==void 0)if(Ir&&!Ir.isConnected)Ir=void 0,RE();else return Ir;return Ir=(i=l(D,pn(Ed)))!=null?i:rw(),Ir?TE():RE(),Ir}function aw(i){try{if(Me(l(i,Ci)))return!0}catch(s){}return!1}var yi=(()=>{let i;return(function(s){s.getScrollContainer=Sd,s.resetCache=yd;function t(o){if(Me(o)&&aw(o)){let u=s.getScrollContainer();if(u===null)return!1;if(l(o,Ci)===u)return!0;try{if(o.composedPath&&o.composedPath()[0]===u)return!0}catch(c){}}return!1}s.isEventOnScrollContainer=t;function e(o){return t(o)?s.getScrollContainer():null}s.getScrollContainerFromEvent=e;function r(){TE(),s.resetCache()}s.stop=r;function n(o){let u=parseInt(v.getComputedStyle(o).paddingTop||"0px",10);return isNaN(u)?0:u}s.getPaddingTop=n;function a(o,u=n(o)){return Math.round(o.scrollHeight+o.getBoundingClientRect().top+u)}s.getDocumentHeightFromContainer=a})(i||(i={})),i})(),Da=(()=>{class i{constructor(t,e,r,n,a=["submit"]){this.Ye=t,this.X=e,this.ye=r,this.eo=n,this.WC=a,this.wm="select, select *, input, textarea",this.qC="select, select *, input, textarea",this.bm="a, a *, button, button *, select, select *, input, textarea",this.oo="input, select, textarea",this.YC="form",this.Ya=150,this.XC=400,this.Rm=!1,this.Br=yl((o,u,c)=>this.scrollListener(o,u,c),this.Ya),this.Tm=yl(o=>this.resizeListener(o),this.Ya),this.KC=bl(o=>this.mouseMoveListener(o),this.XC),this.ZC=[{boundElement:v,type:"resize",listener:()=>this.Tm()},{boundElement:D,type:"scroll",listener:o=>this.Br(o,yi.getScrollContainerFromEvent(o))},{boundElement:v,type:"mousemove",listener:o=>{this.KC(P0(o))}},{boundElement:D,type:"pointerdown",listener:o=>this.pointerDownListener(o)},{boundElement:D,type:"pointerup",listener:o=>this.pointerUpListener(o)},{boundElement:D,type:"mousedown",listener:o=>this.mouseDownListener(o)},{boundElement:D,type:"mouseup",listener:o=>this.mouseUpListener(o)},{boundElement:D,type:"click",listener:o=>this.clickListener(o)}],this.QC={type:"scroll",listener:o=>{let u=yi.getScrollContainerFromEvent(o);u&&this.Br(o,u)}},this.Cm=[{type:"change",listener:this.ye.on(this.qC,o=>this.changeListener(o))},{type:"submit",listener:this.ye.on(this.YC,o=>this.submitListener(o))}],this.JC=[{boundElement:D,type:"mouseover",listener:this.ye.on(this.bm,o=>this.mouseOverListener(o))},{boundElement:D,type:"mouseout",listener:this.ye.on(this.bm,o=>this.mouseOutListener(o))},{boundElement:D,type:"focusin",listener:this.ye.on(this.wm,o=>this.focusInListener(o))},{boundElement:D,type:"focusout",listener:this.ye.on(this.wm,o=>this.focusOutListener(o))},{boundElement:D,type:"keyup",listener:this.ye.on(this.oo,o=>this.keyUpListener(o))},{boundElement:D,type:"keydown",listener:this.ye.on(this.oo,o=>this.keyDownListener(o))},{boundElement:D,type:"copy",listener:this.ye.on(this.oo,o=>this.copyListener(o))},{boundElement:D,type:"cut",listener:this.ye.on(this.oo,o=>this.cutListener(o))},{boundElement:D,type:"paste",listener:this.ye.on(this.oo,o=>this.pasteListener(o))},...l(this.Cm,$t(o=>Vt(Z({},o),{boundElement:D})))],this.j={},this.Fr=new Map,this.nh=(o,u)=>{switch(u){case"initial":case"added":this.ao(o);break;case"removed":this.co(o);break}},this.ci=new no(this.nh),this.oh()}ao(t){if(El(t)){let e=this.Am();l(e,et(r=>Ke(r)))}else{if(this.Fr.has(t))return;let e=[...l(this.tA(),$t(r=>Vt(Z({},r),{boundElement:t}))),Vt(Z({},this.QC),{boundElement:t})];l(e,et(r=>Ke(r))),this.Fr.set(t,e)}}co(t){if(El(t)){let e=this.Am();l(e,et(r=>Ge(r)))}else{let e=this.Fr.get(t);e&&(l(e,et(r=>Ge(r))),this.Fr.delete(t))}}onEvent(t){this.gt=t}start(){this.ci.observe(),this.ao(D),this.resizeListener()}stop(){this.co(D),this.Fr.forEach(t=>{l(t,et(e=>Ge(e)))}),this.Fr.clear(),this.ci.disconnect()}flushPendingDebouncedListeners(){this.Br.flushPending(),this.Tm.flushPending()}Im(t){return l(this.WC,ye(e=>e===t))}tA(){return this.ye.isMatchesSelectorSupported()?l(this.Cm,xt(t=>!this.Im(t.type))):(K.warn("Element.matches is not implemented yet"),[])}Am(){let t=[];return l(t,I(...this.ZC)),this.ye.isMatchesSelectorSupported()?l(t,I(...this.JC)):K.warn("Element.matches is not implemented yet"),l(t,xt(e=>!this.Im(e.type)))}
25resizeListener(t){let e=yi.getScrollContainer(),r=mr(e);r&&(this.Rm=!0);let n={type:It.RESIZE,ts:0,x:r?e.clientWidth:Ze.windowWidth(),y:r?e.clientHeight:Ze.windowHeight()};t!==void 0&&(n.d=t),this.gt(n)}scrollListener(t,e,r){!this.Rm&&r&&this.resizeListener();let n={type:It.SCROLL,ts:0,x:r?r.scrollLeft:Ze.windowOffsetX(),y:r?r.scrollTop:Ze.windowOffsetY(),d:t},a=Yi.buildFromAnalysisEvent(e,n,this.Ye);this.gt(a)}mouseMoveListener(t){let e={type:It.MOUSEMOVE,ts:0,x:t.pageX,y:t.pageY},r=Yi.buildFromAnalysisEvent(t,e,this.Ye);this.gt(r)}pointerDownListener(t){this.eo.observe(t)}pointerUpListener(t){this.eo.observeRelease(t)}mouseDownListener(t){let e={type:It.MOUSEDOWN,ts:0,x:t.pageX,y:t.pageY,tgt:""},r=Yi.buildFromAnalysisEvent(t,e,this.Ye);this.le(r)}mouseUpListener(t){let e={type:It.MOUSEUP,ts:0,x:t.pageX,y:t.pageY,tgt:""},r=Yi.buildFromAnalysisEvent(t,e,this.Ye);this.le(r)}clickListener(t){let e={type:It.CLICK,ts:0,x:t.pageX,y:t.pageY,tgt:""},r=Yi.buildFromAnalysisEvent(t,e,this.Ye);this.eo.clear(),this.le(r)}mouseOverListener(t){let e={type:It.MOUSEOVER,ts:0,x:t.pageX,y:t.pageY,tgt:""},r=Yi.buildFromAnalysisEvent(t,e,this.Ye);this.le(r)}mouseOutListener(t){let e={type:It.MOUSEOUT,ts:0,x:t.pageX,y:t.pageY,tgt:this.X.getEventTargetPath(t)},r=Yi.buildFromAnalysisEvent(t,e,this.Ye);this.le(r)}focusInListener(t){let e={type:It.FOCUSIN,ts:0,tgt:this.X.getEventTargetPath(t)},r=Yi.buildFromAnalysisEvent(t,e,this.Ye);this.le(r)}focusOutListener(t){let e={type:It.FOCUSOUT,ts:0,tgt:this.X.getEventTargetPath(t)},r=Yi.buildFromAnalysisEvent(t,e,this.Ye);this.le(r)}changeListener(t){let e={type:It.CHANGE,ts:0,tgt:""},r=Yi.buildFromAnalysisEvent(t,e,this.Ye);this.le(r)}submitListener(t){let e={type:It.SUBMIT,ts:0,tgt:""},r=Yi.buildFromAnalysisEvent(t,e,this.Ye);this.le(r)}copyListener(t){let e={type:It.COMMAND,ts:0,tgt:this.X.getEventTargetPath(t),key:Ia.COPY};this.le(e)}cutListener(t){let e={type:It.COMMAND,ts:0,tgt:this.X.getEventTargetPath(t),key:Ia.CUT};this.le(e)}pasteListener(t){let e={type:It.COMMAND,ts:0,tgt:this.X.getEventTargetPath(t),key:Ia.PASTE};this.le(e)}keyUpListener(t){let e={type:It.KEYUP,ts:0,tgt:this.X.getEventTargetPath(t),key:this.Pm(t)};this.le(e)}keyDownListener(t){let e={type:It.KEYDOWN,ts:0,tgt:this.X.getEventTargetPath(t),key:this.Pm(t)};this.le(e)}Pm(t){let e=this.j[t.key];return e===void 0?Qt.ALPHANUMERICAL:e}le(t){$v(t)&&t.tgt!==zr.INVALID_ELEMENT&&this.gt(t)}oh(){this.j[" "]=Qt.SPACE,this.j.Spacebar=Qt.SPACE,this.j.Enter=Qt.ENTER,this.j.Backspace=Qt.BACKSPACE,this.j.Delete=Qt.DELETE,this.j.ArrowUp=Qt.ARROWUP,this.j.ArrowDown=Qt.ARROWDOWN,this.j.ArrowLeft=Qt.ARROWLEFT,this.j.ArrowRight=Qt.ARROWRIGHT,this.j.Up=Qt.ARROWUP,this.j.Down=Qt.ARROWDOWN,this.j.Left=Qt.ARROWLEFT,this.j.Right=Qt.ARROWRIGHT,this.j.CapsLock=Qt.CAPSLOCK,this.j.Shift=Qt.SHIFT,this.j.Tab=Qt.TAB}}return b([J("Event handler type: resize")],i.prototype,"resizeListener",null),b([J("Event handler type: scroll")],i.prototype,"scrollListener",null),b([J("Event handler type: mouseMove"),Ne()],i.prototype,"mouseMoveListener",null),b([J("Event handler type: pointerDown"),Ne()],i.prototype,"pointerDownListener",null),b([J("Event handler type: pointerUp"),Ne()],i.prototype,"pointerUpListener",null),b([J("Event handler type: mouseDown"),Ne()],i.prototype,"mouseDownListener",null),b([J("Event handler type: mouseUp"),Ne()],i.prototype,"mouseUpListener",null),b([J("Event handler type: click"),Ne()],i.prototype,"clickListener",null),b([J("Event handler type: mouseOver"),Ne()],i.prototype,"mouseOverListener",null),b([J("Event handler type: mouseOut"),Ne()],i.prototype,"mouseOutListener",null),b([J("Event handler type: focusIn")],i.prototype,"focusInListener",null),b([J("Event handler type: focusOut")],i.prototype,"focusOutListener",null),b([J("Event handler type: change")],i.prototype,"changeListener",null),b([J("Event handler type: submit"),Ne()],i.prototype,"submitListener",null),b([J("Event handler type: copy")],i.prototype,"copyListener",null),b([J("Event handler type: cut")],i.prototype,"cutListener",null),b([J("Event handler type: paste")],i.prototype,"pasteListener",null),b([J("Event handler type: keyup")],i.prototype,"keyUpListener",null),b([J("Event handler type: keydown")],i.prototype,"keyDownListener",null),i})(),Mh=(()=>{class i{constructor(){this.Gr=[]}addTracker(t){l(this.Gr,I(t))}bindOnEvent(t){l(this.Gr,et(e=>e.onEvent(t)))}startAll(){l(this.Gr,et(t=>t.start()))}stopAll(){l(this.Gr,et(t=>t.stop()))}flushAllPending(){l(this.Gr,et(t=>{var e;return(e=t.flushPending)===null||e===void 0?void 0:e.call(t)}))}collectAllInitialEvents(){l(this.Gr,et(t=>{var e;return(e=t.collectInitialEvents)===null||e===void 0?void 0:e.call(t)}))}}return i.$deps=[],i})(),_d=(()=>{class i extends Mh{}return i.$deps=[],i})(),ow=1024,lw=512,Rd=1024,Td="||",Dh=(()=>{let i;return(function(s){function t(o,u){return j(o)&&l(o.toLowerCase(),Bt(Js.CHAMELEON))!==-1?Js.CHAMELEON:u}s.handleCustomEventCommandMisuse=t;function e(o,u,c){let p=r(c);return Z({type:It.CUSTOM_EVENT,ts:0,customEventName:Ae.truncate(o,ow,Ae.ELLIPSIS),sourceLibrary:sI(u)?u:Js.WEB},Eu(p)?{}:{properties:p})}s.buildCustomEvent=e;function r(o){let u={};for(let c in o){if(c.length>lw)continue;let p=o[c];if(ze(p)||Xa(p))u[c]=String(p);else if(a(p))u[c]=Ae.truncate(p,Rd,Ae.ELLIPSIS);else if(p_(p)){let f=n(p);f!==""&&(u[c]=f)}}return u}s.sanitizeCustomEventProperties=r;function n(o){let u="";for(let c=0;c<o.length;c++){let p=o[c];if(!ze(p)&&!Xa(p)&&!a(p))continue;let f=String(p);if(u==="")u=Ae.truncate(f,Rd,Ae.ELLIPSIS);else if(u.length+Td.length+f.length<=Rd)u+=Td+f;else break}return u}function a(o){return j(o)&&!pl(o)&&!o.includes(Td)}})(i||(i={})),i})(),CE=(()=>{class i extends He{constructor(t,e,r){super(),this.li=t,this.V=e,this.fs=r,this.Fi=[]}init(){this.li.onEvent(t=>this.we(t)),this.fs.bindOnEvent(t=>this.we(t))}write(t){t.isUserEvent?this.we(t.analysisEvent):this.Xe(t.analysisEvent)}onStart(){this.li.start(),this.fs.startAll(),l(this.Fi,et(t=>{this.Xe(t)})),this.Fi=[]}onStop(){this.li.stop(),this.fs.stopAll()}
25we(t){let e={isUserEvent:!0,event:t};this.Z(e)}Xe(t){let e={isUserEvent:!1,event:t};this.Z(e)}Z(t){!this.isStarted||t.event.type===It.RESIZE||this.V.sendToParent(Q.AnalysisEvent,t)}pushCustomEvent(t,e,r){if(!(j(t)&&!pl(t))||r!==void 0&&!Gt(r))throw new ge(ya[0]);let n=Dh.buildCustomEvent(t,e,r);this.isStarted?this.Xe(n):l(this.Fi,I(n))}}return i.$deps=[Da,di,_d],i})(),hw={collectGestureDistance:!1,collectGestureVelocity:!1},$o=(()=>{class i{constructor(t=hw){this.Mm=t}transform(t,e){if(t.type!=="Gesture")return;let r=this.eA(t);r&&e({analysisEvent:r,isUserEvent:!0})}eA(t){let e=t.targetInfo,r=e==null?void 0:e.targetPath;if(!r||r===zr.INVALID_ELEMENT)return null;switch(t.data.type){case Ye.TAP:{let n={type:It.TAP,ts:0,x:0,y:0,tgt:r};return e.hierarchy!==void 0&&(n.hrchy=e.hierarchy),e.text!==void 0&&(n.text=e.text),e.properties!==void 0&&(n.properties=e.properties),e.targetLink!==void 0&&(n.tgtLk=e.targetLink),n}case Ye.DRAG:{let n={type:It.DRAG,ts:0,fd:t.data.direction,tgt:r};return this.Nm(n,t),n}case Ye.FLICK:{let n={type:It.FLICK,ts:0,fd:t.data.direction,tgt:r};return this.Nm(n,t),n}default:return null}}Nm(t,e){this.Mm.collectGestureDistance&&(t.distance=e.data.distance),this.Mm.collectGestureVelocity&&(t.velocity=e.data.velocity)}}return i})(),xh=(()=>{class i{constructor(t){this.X=t}on(t,e){return r=>{this.X.hasValidEventTarget(r)&&this.sA(r,t)&&e(r)}}sA(t,e){let r=zi(t);return Li.call(r,e)}isMatchesSelectorSupported(){return!!Li}}return i.$deps=[ir],i})(),Vo=(()=>{class i{isEventTypeSupported(t){return l(this.supportedEventTypes,Dt(t))!==-1}enhanceAnalysisEvent(t,e){return this.isEventTypeSupported(e.type)?this.baseEnhanceAnalysisEvent(t,e):e}}return i})(),bE=(()=>{class i extends Vo{constructor(){super(...arguments),this.supportedEventTypes=[It.CHANGE],this.mA=["text","email","number","search","tel","url","password"]}baseEnhanceAnalysisEvent(t,e){let r=zi(t);return Tu(r)&&l(this.mA,Dt(r.type))>=0&&(e.isBlank=r.value===""),e}}return i})(),Lh=(()=>{class i extends Vo{constructor(t){super(),this.X=t,this.supportedEventTypes=[It.MOUSEDOWN,It.MOUSEUP,It.CLICK,It.MOUSEOVER,It.TAP,It.DRAG,It.FLICK,It.SUBMIT,It.CHANGE]}baseEnhanceAnalysisEvent(t,e){return e.tgt||(e.tgt=this.X.getEventTargetPath(t)),e}}return i})(),AE=65535,uw=(()=>{let i;return(function(s){function t(e,r){let n=r;if(!n||!Fe(n)||!bi(n.getBoundingClientRect)||!Me(e.pageX)||!Me(e.pageY))return{xRel:-1,yRel:-1,valid:!1};let a=n.getBoundingClientRect(),o=e.pageX-a.left-Ze.windowOffsetX(),u=e.pageY-a.top-Ze.windowOffsetY();n!==D.documentElement&&(o+=n.scrollLeft,u+=n.scrollTop);let c=Math.max(n.scrollWidth,a.width),p=Math.max(n.scrollHeight,a.height),f=Math.round(o/c*AE),E=Math.round(u/p*AE);return{xRel:f,yRel:E,valid:!0}}s.getRelativePosition=t})(i||(i={})),i})(),IE=(()=>{class i extends Vo{constructor(t,e){super(),this.oe=t,this.X=e,this.supportedEventTypes=[It.MOUSEMOVE,It.CLICK],this.uh=""}baseEnhanceAnalysisEvent(t,e){let r=this.X.resolveEventTarget(t),{valid:n,xRel:a,yRel:o}=uw.getRelativePosition(t,r);if(n){let u=this.X.getTargetPath(r);u!==zr.INVALID_ELEMENT&&(e.xRel=a,e.yRel=o,e.type===It.MOUSEMOVE&&(u!==this.uh||this.oe.iframesTracking?(this.uh=u,e.tgtHM=u,this.oe.isChild||(e.tgtHMH=gE(e.tgtHM))):e.tgtHM=""))}else e.type===It.MOUSEMOVE&&(this.uh="");return e}}return i})(),xa=(()=>{class i extends Vo{constructor(t,e){super(),this.X=t,this.se=e,this.supportedEventTypes=[It.CLICK,It.SUBMIT,It.CHANGE,It.TAP]}baseEnhanceAnalysisEvent(t,e){let r=this.se.getSensitiveStatus().useAnonymization,{path:n,hierarchy:a}=this.X.getEventTargetPathAndHierarchy(t,r);return e.tgt=n,e.hrchy=a,e}}return i})(),wE=100,Uh=(()=>{class i extends Vo{constructor(t,e,r,n,a){super(),this.E=t,this.se=e,this.O=r,this.it=n,this.X=a,this.supportedEventTypes=[It.TAP,It.CLICK,It.SUBMIT]}SA(t){let e="",r=D.createTreeWalker(t,NodeFilter.SHOW_TEXT),n=r.nextNode();for(;n;){if(e+=n.textContent,Qp(l(n,Fs))||Xp(l(n,Fs))||this.se.getElementSensitiveStatus(l(n,Fs))!==Pe.CAPTURED)return!0;if(l(e,ai()).length>=wE)break;n=r.nextNode()}return!1}_A(t){return ua(t,"button,a")||(this.E.collectTargetText===Tc.ButtonAndLinkOnly?null:t)}baseEnhanceAnalysisEvent(t,e){let r=this.X.resolveEventTarget(t);if(mr(r)){let n=this._A(r);if(n&&j(n.textContent)&&!this.SA(n)&&!this.O.hasPII(n.textContent,this.it.shouldMaskNumbers())){let a=Ae.truncate(l(n.textContent,ai()),wE);a.length>0&&(e.text=a)}}return e}}return i})();function cw(i,s,t,e,r){i.addEventsEnhancer(new IE(s,t)),s.isCollectTargetTextEnabled()&&i.addEventsEnhancer(new Uh(s,e,new Qe,r,t)),s.collectHierarchy&&!i.hasEventsEnhancer(xa)&&i.addEventsEnhancer(new xa(t,e)),i.addEventsEnhancer(new bE),i.addEventsEnhancer(new Lh(t))}function dw(i,s,t,e,r){s.isCollectTargetTextEnabled()&&i.addGestureEnhancer(new Uh(s,e,new Qe,r,t)),s.collectHierarchy&&!i.hasGestureEnhancer(xa)&&i.addGestureEnhancer(new xa(t,e)),i.addGestureEnhancer(new Lh(t))}function pw(i,s,t,e,r,n){let a=[];return l(a,I(new IE(i,s))),i.isCollectTargetTextEnabled()&&l(a,I(new Uh(i,t,new Qe,e,s))),i.collectHierarchy&&l(a,I(new xa(s,t))),l(a,I(new bE,new Lh(s))),a}function gw(i,s,t,e,r,n){let a=[];return i.isCollectTargetTextEnabled()&&l(a,I(new Uh(i,t,new Qe,e,s))),i.collectHierarchy&&l(a,I(new xa(s,t))),l(a,I(new Lh(s))),a}var fw={[Ye.TAP]:It.TAP,[Ye.DRAG]:It.DRAG,[Ye.FLICK]:It.FLICK};function NE(i){return(s,t)=>{var e;let r=fw[s.type];
25if(r===void 0||l0()&&!s.isTrusted)return{targetPath:zr.INVALID_ELEMENT};let n={type:r,ts:0,tgt:""},a=Yi.buildFromAnalysisEvent(t,n,i);return{targetPath:(e=a.tgt)!==null&&e!==void 0?e:zr.INVALID_ELEMENT,hierarchy:a.hrchy,text:a.text,properties:a.properties,targetLink:a.tgtLk}}}var Cd=(()=>{let i=class{constructor(s,t,e,r){this.nt=s,this.S=t,this.U=e,this.w=r}onInit(){this.S.addListener(this),this.U.addListener(this)}onStartTracking(){this.nt.activate()}onStartAnalytics(){this.nt.activate()}onStartRecording(){this.nt.activate()}onParentRecordingContextChange(s){s.isRecording&&this.nt.activate()}onOptout(){this.nt.deactivate()}};return i.$deps=[Ni,At,Be,Kt],i=b([q({imports:[it,Ps],providers:[ee(Ni,()=>new Ni,[])],exports:[Ni]})],i),i})(),mw=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[_d],exports:[_d]})],i),i})(),vw=null,Ew=(()=>{class i extends Da{constructor(t,e,r,n,a,o){let u=pw(t,e,r,o),c=[];t.collectSubmit||l(c,I("submit")),super(u,e,n,a,c)}}return i.$deps=[lt,ir,sr,xh,_h,Xe],i})(),PE=(()=>{let i=class{constructor(s,t,e,r,n,a){this.w=s,this.Wi=t,this.U=e,this.S=r,this.nt=n,this.mh=a}onInit(){this.Wi.init(),this.nt.pipeThrough(this.mh).pipeTo(this.Wi),this.w.register(ya,s=>{if(!Gt(s))throw new ge(ya[0]);this.Wi.pushCustomEvent(s.name,s.source,s.properties)}),this.U.addListener(this),this.S.addListener(this)}onStartTracking(){this.Wi.start()}onOptout(){this.Wi.stop()}onStartAnalytics(){this.Wi.start()}onStopAnalytics(){this.Wi.stop()}};return i.$deps=[Kt,CE,Be,At,Ni,$o],i=b([q({imports:[it,Ps,Cd,bh,mw,vw],providers:[xh,ho(Da,Ew),ee(Kr,(s,t,e,r)=>new Kr(NE(gw(s,t,e,r))),[lt,ir,sr,Xe]),ee($o,s=>new $o(s),[xo]),CE],exports:[Kr]})],i),i})(),kE=(()=>{class i{constructor(){}onLoad(t){this.ei=t}onLoadCallbackExecute(){this.ei()}start(){let t=this.onLoadCallbackExecute.bind(this);this.RA(t)}RA(t){D.readyState==="complete"||D.readyState!=="loading"&&!D.documentElement.doScroll?Ft(t):(l(D,ni("DOMContentLoaded",e)),l(v,ni("load",e)));function e(){l(D,gs("DOMContentLoaded",e)),l(v,gs("load",e)),t()}}}return i.$deps=[],b([J("onLoad")],i.prototype,"onLoadCallbackExecute",null),i})(),yw=(()=>{let i=class{constructor(s,t,e){this.uo=s,this.U=t,this.w=e}onInit(){this.uo.onLoad(()=>{this.U.emitStartTracking()}),this.U.addListener(this)}onInitTracking(){this.w.start(),this.uo.start()}};return i.$deps=[kE,Be,Kt],i=b([q({imports:[it,Ps],providers:[kE]})],i),i})(),Sw=null,_w=(()=>{let i;return(function(s){function t(n,a,o=!1){let u={message:Ae.truncate(n,300,Ae.ELLIPSIS),errorType:"customError"};
25return(o||r(a))&&(e(a),u.attributes=a),u}s.buildCustomErrorEvent=t;function e(n){for(let a in n){let o=n[a];if(typeof o=="string"&&o.length>30&&(o=Ae.truncate(o,30,Ae.ELLIPSIS),n[a]=o),a.length>30){let u=Ae.truncate(a,30,Ae.ELLIPSIS);delete n[a],n[u]=o}}}function r(n){let a=Object.keys(n).length;return a>0&&a<=5}})(i||(i={})),i})(),Rw=null,Fo=(()=>{class i extends CT{constructor(){super(),this.G=new rf(t=>this.errorListener(t))}onStartTracking(){this.G.observe()}onStopTracking(){this.G.disconnect()}errorListener(t){let e=this.l0(t);for(let r in this.subscriptions){let n=this.subscriptions[r];n(e)}}u0(t){return t=t!=null?t:"[NO ERROR MESSAGE]",Ae.truncate(t,i.ql,Ae.ELLIPSIS)}h0(t){return!t||Gi(t)?"":Ae.truncate(t,i.Yl,Ae.ELLIPSIS)}l0(t){return{errorType:"jsError",message:this.u0(t.message),filename:this.h0(t.filename),lineno:t.lineno,colno:t.colno}}}return i.$deps=[],i.ql=1024,i.Yl=150,b([J("Event handler type: error")],i.prototype,"errorListener",null),i})(),OE=(()=>{class i extends He{constructor(t,e){super(),this.ho=t,this.V=e}onStart(){this.ho.subscribe(i.ue,t=>this.Z(t))}onStop(){this.ho.unsubscribe(i.ue)}Z(t){this.isStarted&&this.V.sendToParent(Q.JavascriptError,t)}}return i.$deps=[Fo,di],i.ue="ChildJavaScriptErrorsService",i})(),Tw=(()=>{let i=class{constructor(s,t,e,r,n){this.E=s,this.I=t,this.S=e,this.U=r,this.lc=n}onInit(){this.Nt(),this.S.addListener(this),this.U.addListener(this)}onStartTracking(){this.lc.start()}onOptout(){this.lc.stop()}onStartAnalytics(){this.lc.start()}onStopAnalytics(){this.lc.stop()}Nt(){this.E.jsCustomErrorsEnabled&&!this.E.customErrors.enabled&&this.I.register(uh)}};return i.$deps=[lt,wh,At,Be,OE],i=b([q({imports:[it,Ps,fd],providers:[Fo,OE]})],i),i})(),Cw=Tw,bw=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[Sw,Cw,Rw]})],i),i})(),Aw=bw,Iw=null,ww=(()=>{let i=class{constructor(s,t){this.nt=s,this.yh=t}onInit(){this.nt.addProducer(this.yh)}};return i.$deps=[Ni,Kr],i=b([q({imports:[it,Ps,Cd,PE]})],i),i})(),ME=(()=>{class i{constructor(t={maskingEnabled:!0}){this.p0=t}onScannedAsset(t){this.fc=t}fo(){let t=v.location.href,e=l(t,Bt("#"));return e===-1?t:t.substring(0,e)}scanCssString(t){this.bh(ca(t))}scanElement(t,e){this.p0.maskingEnabled&&(ct.getMaskedElementDetails(t).state!==ct.MaskedElementState.NotMasked||e&&ct.isMaskedAttribute(t,e))||(vl(t)?this.m0(t):Ru(t)?this.E0(t,e):(this.v0(t,e),this.S0(t,e),this._0(t,e)))}E0(t,e){var r;if((!e||e==="href")&&t.href){let n={assetId:((r=t.sheet)===null||r===void 0?void 0:r.href)||t.href,assetBasePath:this.fo(),assetRawPath:Dg(t)};this.fc({type:"stylesheet",asset:n})}}m0(t){var e;let r=new Set;if(t.textContent)for(let a of ca(t.textContent))r.add(a);let n;try{n=(e=t.sheet)===null||e===void 0?void 0:e.cssRules}catch(a){a.name==="SecurityError"||a.name==="InvalidAccessError"||K.error(a.message)}if(n)for(let a=0;a<n.length;a++){let o=n.item(a).cssText;for(let u of ca(o))r.add(u)}this.bh(En(r))}Rh(t){return!this.y0(t)&&!Gi(t)&&!Gg(t)&&!this.w0(t)}w0(t){let e=l(t,Bt("#"));return e>0&&t.substring(0,e)===this.fo()}v0(t,e){if(E_(t)||v_(t)){if(!e||e==="src"){let r=l(t,fs("src"));if(r&&this.Rh(r)){let n={assetId:l(t,Vp),assetRawPath:r,assetBasePath:this.fo()};this.fc({type:"asset",asset:n})}}(!e||e==="srcset")&&t.srcset&&this.b0(t.srcset)}}S0(t,e){if(l(t,Ve)!==1){fe.warn(`StaticResourceUrlProducer: Wrong element nodeType: ${t==null?void 0:t.nodeName}/${l(t,Ve)}`);return}if(t.hasAttribute&&(!e||e==="style")&&t.hasAttribute("style")){let r=l(t,fs("style"));if(typeof r=="string")this.scanCssString(r);else throw new Error("Unexpected style: "+t.outerHTML)}}b0(t){this.bh(Lu(t))}_0(t,e){if((R_(t)||T_(t)||C_(t))&&(!e||e==="href"||e==="xlink:href")){let r=l(t,fs("href"))||l(t,fs("xlink:href"));if(r&&this.Rh(r)){let n={assetId:Br(r),assetRawPath:r,assetBasePath:this.fo()};this.fc({type:"asset",asset:n})}}}bh(t){return l(t,xt(e=>this.Rh(e)),$t(e=>({rawUrl:e,absoluteUrl:Br(e)})),et(e=>{let r={assetId:e.absoluteUrl,assetBasePath:this.fo(),assetRawPath:e.rawUrl};this.fc({type:"asset",asset:r})}))}y0(t){return/^https:\/\/\w+:\w+@/.test(t)}}return i})(),Ho=(()=>{class i extends Wi{constructor(){super(),this.Wm=new nR(t=>t.type==="cssRuleInserted"&&this.R0(t)),this.T0=zu(t=>{this.isStarted&&t.length>0&&this.ve.task(()=>ne(t,e=>this.go.scanElement(e)))}),this.C0=({type:t,asset:e})=>{var r,n;t==="stylesheet"&&((r=this.A0)===null||r===void 0||r.call(this,e)),(n=this.I0)===null||n===void 0||n.call(this,e),this.produceEvent(this.P0(e.assetId))},this.ve=new Cn,this.qm=new Y0(t=>this.M0(t)),this.D=new ys(t=>this.Cr(t)),this.go=new ME,this.go.onScannedAsset(this.C0)}onAsset(t){this.I0=t}onStyleSheetFound(t){this.A0=t}onStart(){this.Wm.observe(),this.qm.observe(),this.D.observe()}onStop(){this.Wm.disconnect(),this.qm.disconnect(),this.D.disconnect()}P0(t){return{type:"StaticResourceUrl",assetId:t}}R0(t){!t.rule||!this.isStarted||this.go.scanCssString(t.rule)}M0(t){this.isStarted&&ct.getMaskedElementDetails(t).state===ct.MaskedElementState.NotMasked&&this.T0.push(t)}Cr(t){Ft(()=>{for(let e of t)switch(e.type){case"attributes":this.go.scanElement(e.target,e.attributeName);break;case"characterData":this.N0(e.target);break}})}N0(t){ml(t)&&l(t,es)&&vl(l(t,es))&&this.go.scanCssString(t.data)}}return i.$deps=[],i})(),$h=(()=>{class i{constructor(){this.Yi=[]}add(t){l(this.Yi,I(t))}getAll(){return this.Yi}}return i.$deps=[],i})(),bd=(()=>{class i{constructor(){this.Ui=[]}add(t){l(this.Ui,I(t))}getAll(){return this.Ui}}return i.$deps=[],i})(),Vh=(()=>
25{class i{setProcessor(t){this.Yr=t}setConsumer(t){this.po=t}setService(t){this.Et=t}getProcessor(){return this.Yr}getConsumer(){return this.po}getService(){return this.Et}}return i.$deps=[],i})(),Ad=(()=>{class i{set(t){this.Th=t}get(){return this.Th}}return i.$deps=[],i})(),DE=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[$h,bd,Vh,Ad],exports:[$h,bd,Vh,Ad]})],i),i})();function Nw(i){if(!j(i))return null;let s=/iP(ad|hone|od).+Version\/(\d+)\..*Safari/i.exec(i);return s?Number(s[2]):null}var Pw=33,Fh=(()=>{class i extends Wi{constructor(t){super(),this.lt=t,this.O0=[{type:"pointerup",listener:r=>this.pointerUpListener(r),boundElement:D},{type:"pointermove",listener:r=>this.pointerMoveListener(r),boundElement:D},{type:"pointerdown",listener:r=>this.pointerDownListener(r),boundElement:D}],this.k0=[{type:"touchstart",listener:r=>this.touchStartListener(r),boundElement:D},{type:"touchmove",listener:r=>this.touchMoveListener(r),boundElement:D},{type:"touchend",listener:r=>this.touchEndCancelListener(r),boundElement:D},{type:"touchcancel",listener:r=>this.touchEndCancelListener(r),boundElement:D}],this.gc=[{type:"click",listener:r=>this.clickListener(r),boundElement:D},{type:"keyup",listener:r=>this.keyUpListener(r),boundElement:D},{type:"keydown",listener:r=>this.keyDownListener(r),boundElement:D},{type:"copy",listener:r=>this.copyListener(r),boundElement:D},{type:"cut",listener:r=>this.cutListener(r),boundElement:D},{type:"paste",listener:r=>this.pasteListener(r),boundElement:D},{type:"scroll",listener:r=>this.scrollListener(r.target),boundElement:D},{type:"mouseover",listener:r=>this.mouseOverListener(r),boundElement:D},{type:"hashchange",listener:()=>this.hashChangeListener(),boundElement:v},{type:"visibilitychange",listener:()=>this.visibilityChangeListener(),boundElement:D}],this.Ch=[{type:"scroll",listener:r=>this.scrollListener(r.target)}];let e=Nw(v.navigator.userAgent);(e===null||e&&e>=16)&&l(this.Ch,I({type:"mouseover",listener:r=>this.mouseOverListener(r)})),this.ci=new no((r,n)=>{switch(n){case"initial":case"added":this.ao(r);break;case"removed":this.co(r);break}})}onInit(){this.D0(),this.L0(),this.oh()}Vt(t,e=!1,r=!0){this.produceEvent({type:"RecordingPageEvent",recordingEvent:t,initialEvent:e,isUserEvent:r})}onStart(){this.x0(),this.ao(D),this.ci.observe()}onStop(){this.co(D),this.ci.disconnect()}L0(){this.$0()&&l(this.gc,I(...this.O0))}D0(){this.U0()&&l(this.gc,I(...this.k0))}ao(t){El(t)?l(this.gc,et(e=>Ke(e))):l(this.Ch,et(e=>{let r={type:e.type,listener:e.listener,boundElement:t};Ke(r)}))}co(t){El(t)?l(this.gc,et(e=>Ge(e))):l(this.Ch,et(e=>{let r={type:e.type,listener:e.listener,boundElement:t};Ge(r)}))}$0(){return"PointerEvent"in v&&typeof v.PointerEvent=="function"}U0(){return"TouchEvent"in v&&typeof v.TouchEvent=="function"}x0(){this.V0(),this.hashChangeListener()}hashChangeListener(){let t={type:St.HASH_CHANGE,args:[this.lt.anonymizeUrl(v.location.href)],date:mt.now()};this.Vt(t,!1,!1)}visibilityChangeListener(){let t={type:St.VISIBILITY_CHANGE,args:[D.visibilityState],date:mt.now()};this.Vt(t,!1,!1)}V0(){let t=yi.getScrollContainer()||D,e=Zt(t),r=this.Ym(t);if(r.top!==0||r.left!==0){let n={type:St.SCROLL,args:[e,r.left,r.top],date:mt.now()};this.Vt(n,!0)}}Ym(t){return t===D?{top:v.pageYOffset,left:v.pageXOffset}:{top:t.scrollTop,left:t.scrollLeft}}scrollListener(t){if(ct.isMaskedElement(t)||ct.isMaskedElementChild(t))return;let e=Zt(t),r=this.Ym(t),n={type:St.SCROLL,args:[e,r.left,r.top],date:mt.now()};this.Vt(n)}mouseOverListener(t){if(ct.isMaskedElementChild(t.target))return;let e=Zt(t.target),r={type:St.MOUSE_OVER,args:[e],date:mt.now()};this.Vt(r)}clickListener(t){let e=zi(t);if(ct.isMaskedElementChild(e))return;let r=Zt(e),n={type:St.CLICK,args:[r],date:mt.now()};this.Vt(n)}keyUpListener(t){let e=zi(t);if(ct.isMaskedElementChild(e))return;let r=Zt(e),n=this.j[t.key];if(n===void 0)return;let a={type:St.KEY_UP,args:[r,n],date:mt.now()};this.Vt(a)}keyDownListener(t){let e=zi(t);if(ct.isMaskedElementChild(e))return;let r=Zt(e),n=this.j[t.key];if(n===void 0)return;
25let a={type:St.KEY_DOWN,args:[r,n],date:mt.now()};this.Vt(a)}copyListener(t){let e=zi(t);if(ct.isMaskedElementChild(e))return;let r=Zt(e),n={type:St.CLIPBOARD_COMMAND,args:[r,Ia.COPY],date:mt.now()};this.Vt(n)}cutListener(t){let e=zi(t);if(ct.isMaskedElementChild(e))return;let r=Zt(e),n={type:St.CLIPBOARD_COMMAND,args:[r,Ia.CUT],date:mt.now()};this.Vt(n)}pasteListener(t){let e=zi(t);if(ct.isMaskedElementChild(e))return;let r=Zt(e),n={type:St.CLIPBOARD_COMMAND,args:[r,Ia.PASTE],date:mt.now()};this.Vt(n)}pointerUpListener(t){let e=zi(t);if(ct.isMaskedElementChild(e))return;let r=Zt(e),n={type:St.POINTER_UP,args:[t.pointerId,t.pointerType,xi(t.clientX,1),xi(t.clientY,1),r,t.button],date:mt.now()};this.Vt(n)}pointerMoveListener(t){let e={type:St.POINTER_MOVE,args:[t.pointerId,t.pointerType,xi(t.clientX,1),xi(t.clientY,1)],date:mt.now()};this.Vt(e)}pointerDownListener(t){let e=zi(t);if(ct.isMaskedElementChild(e))return;let r=Zt(e),n={type:St.POINTER_DOWN,args:[t.pointerId,t.pointerType,xi(t.clientX,1),xi(t.clientY,1),r,t.button,{pageX:xi(t.pageX,1),pageY:xi(t.pageY,1)}],date:mt.now()};this.Vt(n)}touchStartListener(t){if(!t.changedTouches)return;let{changedTouches:e}=t;for(let r=0;r<e.length;r+=1){let n=e[r],a={type:St.TOUCH_START,args:[n.identifier,xi(n.clientX,1),xi(n.clientY,1)],date:mt.now()};this.Vt(a)}}touchMoveListener(t){if(!t.changedTouches)return;let{changedTouches:e}=t;for(let r=0;r<e.length;r+=1){let n=e[r],a={type:St.TOUCH_MOVE,args:[n.identifier,xi(n.clientX,1),xi(n.clientY,1)],date:mt.now()};this.Vt(a)}}touchEndCancelListener(t){if(!t.changedTouches)return;let{changedTouches:e}=t;for(let r=0;r<e.length;r+=1){let n=e[r],a={type:t.type==="touchend"?St.TOUCH_END:St.TOUCH_CANCEL,args:[n.identifier,xi(n.clientX,1),xi(n.clientY,1)],date:mt.now()};this.Vt(a)}}oh(){this.j={},this.j[" "]=Qt.SPACE,this.j.Spacebar=Qt.SPACE,this.j.Backspace=Qt.BACKSPACE,this.j.Enter=Qt.ENTER,this.j.Delete=Qt.DELETE,this.j.ArrowUp=Qt.ARROWUP,this.j.ArrowDown=Qt.ARROWDOWN,this.j.ArrowLeft=Qt.ARROWLEFT,this.j.ArrowRight=Qt.ARROWRIGHT,this.j.Up=Qt.ARROWUP,this.j.Down=Qt.ARROWDOWN,this.j.Left=Qt.ARROWLEFT,this.j.Right=Qt.ARROWRIGHT,this.j.CapsLock=Qt.CAPSLOCK,this.j.Shift=Qt.SHIFT,this.j.Tab=Qt.TAB,this.j.Escape=Qt.ESCAPE,this.j.Esc=Qt.ESCAPE,this.j.End=Qt.END,this.j.Alt=Qt.ALT,this.j.Control=Qt.CTRL,this.j.Meta=Qt.META}}return i.$deps=[Tn],b([Di("RecordingPageEvents.start")],i.prototype,"onStart",null),b([J("hashChange")],i.prototype,"hashChangeListener",null),b([J("visibilityChange")],i.prototype,"visibilityChangeListener",null),b([J("scroll")],i.prototype,"scrollListener",null),b([J("mouseOver"),Ne(),k0()],i.prototype,"mouseOverListener",null),b([J("click"),Ne()],i.prototype,"clickListener",null),b([J("Event handler type: keyup")],i.prototype,"keyUpListener",null),b([J("Event handler type: keydown")],i.prototype,"keyDownListener",null),b([J("Event handler type: copy")],i.prototype,"copyListener",null),b([J("Event handler type: cut")],i.prototype,"cutListener",null),b([J("Event handler type: paste")],i.prototype,"pasteListener",null),b([J("Event handler type: pointerup"),Ne()],i.prototype,"pointerUpListener",null),b([J("Event handler type: pointermove"),Ne(),la({wait:Pw})],i.prototype,"pointerMoveListener",null),b([J("Event handler type: pointerdown"),Ne()],i.prototype,"pointerDownListener",null),b([J("Event handler type: touchstart"),Ne()],i.prototype,"touchStartListener",null),b([J("Event handler type: touchmove"),Ne()],i.prototype,"touchMoveListener",null),b([J("Event handler type: touchend-cancel"),Ne()],i.prototype,"touchEndCancelListener",null),i})();function xE(i){let s=i.timestamp;switch(i.kind){case"UNANONYMIZED_CONSENT_GRANTED":return{type:St.UNANONYMIZED_CONSENT_GRANTED,date:s};case"UNANONYMIZED_CONSENT_WITHDRAWN":return{type:St.UNANONYMIZED_CONSENT_WITHDRAWN,date:s};case"CONSENT_FOR_SESSION_GRANTED":return{type:St.RECORDING_INFO_EVENT,date:s,args:[tr.CONSENT_FOR_SESSION_GRANTED]};case"CONSENT_FOR_SESSION_WITHDRAWN":return{type:St.RECORDING_INFO_EVENT,date:s,args:[tr.CONSENT_FOR_SESSION_WITHDRAWN]}}}function kw(i){let s=Ow(i.data);return{type:St.GESTURE_RECOGNITION,args:[i.targetId,s],date:i.timestamp}}function Ow(i){let s={type:Mw(i.type)};for(let t in i){let e=i[t];e!==void 0&&t!=="type"&&(s[t]=e)}return s}function Mw(i){switch(i){case Ye.DRAG:case Ye.FLICK:return Po.SWIPE;case Ye.LONG_PRESS:return Po.LONG_PRESS;case Ye.TAP:return Po.TAP;case Ye.PINCH_IN:return Po.PINCH_IN;case Ye.PINCH_OUT:return Po.PINCH_OUT}}var Id=(()=>{let i;return(function(s){s.REQUEST_START="requestStart",s.DOM_INTERACTIVE="domInteractive",s.TIME_ORIGIN="timeOrigin"})(i||(i={})),i})(),Dw={connectEnd:"ce",connectStart:"cs",decodedBodySize:"dbs",domainLookupEnd:"dle",domainLookupStart:"dls",duration:"d",fetchStart:"fs",initiatorType:"it",name:"n",nextHopProtocol:"nhp",redirectEnd:"re",redirectStart:"rs",requestStart:"rqs",responseEnd:"rse",responseStart:"rss",responseStatus:"rst",secureConnectionStart:"scs",startTime:"st",transferSize:"ts"},V1=Vt(Z({},Dw),{domComplete:"dc",domContentLoadedEventEnd:"dclee",domContentLoadedEventStart:"dcles",domInteractive:"di",loadEventEnd:"lee",loadEventStart:"les",type:"t"});function xw(i){return{type:St.PERFORMANCE_TIMINGS,args:[{performanceTiming:Id.REQUEST_START,timestamp:i.timings.requestStart},{performanceTiming:Id.DOM_INTERACTIVE,timestamp:i.timings.domInteractive},{performanceTiming:Id.TIME_ORIGIN,timestamp:i.timings.timeOrigin}],date:i.timestamp}}var Lw=["parent","previousSibling","metadata"];function Uw(i){return i===null||typeof i!="object"?!1:Array.isArray(i)?i.length===0:Object.keys(i).length===0}function LE(i){let s=i.type==="DOM_PATCH",t=s?i.diff:i.state;for(let e in t){let r=t[e],n=!1;for(let a of Lw)a in r&&(delete r[a],n=!0);if(s)for(let a of Object.keys(r))Uw(r[a])&&(delete r[a],n=!0);s&&n&&Object.keys(r).length===0&&delete t[e]}return i}function $w(i){for(let s in i)return!1;return!0}var Vw=20;function Fw(i){return g_(s=>{let t={visibleInViewPort:s}
25,e={type:St.TEXT_VISIBILITY,date:mt.now(),args:[t]};i(e)},{batchSize:Vw,autoFlushDelay:1e3})}var UE=(()=>{class i{constructor(t,e){var r;this.S=t,this.Xi=e,this.Rt=!1,this.$s=null,this.tt=()=>{},this.Ht=n=>{this.Rt&&this.tt({recordingEvent:n,isUserEvent:!1})},this.fi=n=>{this.Rt&&this.tt({recordingEvent:n,isUserEvent:!0})},this.Xm=Fw(n=>this.Ht(n)),(r=this.Xi)===null||r===void 0||r.onEvent(n=>this.Ht(n))}transform(t,e){var r,n,a,o,u,c,p,f;this.tt=e;let E=t;if(!this.Rt){E.type==="ConsentRecordingEvent"&&E.kind==="CONSENT_FOR_SESSION_GRANTED"&&(this.$s=E);return}let{timestamp:g}=E;switch(E.type){case"inputEncryptedText":{let{target:R,value:k,encryptedData:X,encryptionMetadata:U}=E;(r=this.fi)===null||r===void 0||r.call(this,{type:St.INPUT_ENCRYPTED_TEXT,date:g,args:[R,k,X,U]});break}case"encryptedCharacterDataChanged":{let{target:R,rawData:k,encryptedData:X,encryptionMetadata:U}=E;this.Ht({type:St.MUTATION_ENCRYPTED_CHARACTER_DATA,date:g,args:[R,k,X,U]});break}case"StaticResource":{let{url:R}=E;this.Ht({type:St.STATIC_RESOURCE_URL,date:g,args:[R]});break}case"StaticResourceUrl":{this.Ht({type:St.STATIC_RESOURCE_URL,date:g,args:[E.assetId]});break}case"ResizeMaskedElement":{let{target:R,width:k,height:X}=E;this.Ht({type:St.MUTATION_ATTRIBUTE,date:g,args:[R,"","style",`width:${k}px !important;height:${X}px !important;`]});break}case"Gesture":{let R=kw(t);(n=this.fi)===null||n===void 0||n.call(this,R);break}case"RecordingPageEvent":{let R=E.isUserEvent?this.fi:this.Ht;R==null||R(E.recordingEvent,E.initialEvent);break}case"PageEvent":{(a=this.fi)===null||a===void 0||a.call(this,{type:St.PAGE_EVENT,date:g,args:[{eventName:l(E.eventName,Oe(0,255))}]});break}case"EtrEvent":{(o=this.fi)===null||o===void 0||o.call(this,{type:St.PAGE_EVENT,date:g,args:[{eventName:l(E.eventName,Oe(0,255))}]}),(u=this.Ht)===null||u===void 0||u.call(this,{type:St.RECORDING_INFO_EVENT,date:g,args:[tr.EVENT_TRIGGER_RECORDING,E.eventType]});break}case"EncryptionUserEvent":{(c=this.fi)===null||c===void 0||c.call(this,E.recordingEvent);break}case"EncryptionBrowserEvent":{this.Ht(E.recordingEvent);break}case"ApiErrorRecording":{this.Ht(E.recordingEvent);break}case"ConsentRecordingEvent":{(p=this.fi)===null||p===void 0||p.call(this,xE(E));break}case"TextVisibility":{this.Xm.push(E.text);break}case"StaticResourceManagerEvent":{(f=this.Xi)===null||f===void 0||f.processEvent(E);break}case"PerformanceTiming":{this.Ht(xw(E));break}case"PerformanceTimingResource":{this.Ht({type:St.PERFORMANCE_RESOURCE_TIMING,date:g,args:[E.resource]});break}case"PerformanceTimingNavigation":{this.Ht({type:St.PERFORMANCE_NAVIGATION_TIMING,date:g,args:[E.navigation]});break}case"CustomError":{let{message:R,attributes:k}=E;this.Ht({type:St.CUSTOM_ERROR,date:g,args:[{errorType:"customError",message:R,attributes:k}]});break}case"JSError":{let{filename:R,message:k,lineno:X,colno:U}=E;this.Ht({type:St.JAVASCRIPT_ERROR,date:g,args:[{errorType:"jsError",message:k,filename:R,lineno:X,colno:U}]});break}case"DOM_INITIAL_STATE":{let R=LE(E),k={type:St.DOM_INITIAL_STATE,date:g,args:[R.state]};this.Ht(k),this.S.emitInitialDomDone(k);break}case"DOM_PATCH":{let R=LE(E);if($w(R.diff))break;let k={type:St.DOM_PATCH_STATE,date:g,args:[R.diff]};this.Ht(k);break}case"Lifecycle":break;case"warn":case"error":case"debug":{let R=E.type;K[R](E.message);break}default:K.error(`WebRecorderEventTranslator: Event not supported (${E.type})`);break}}start(){var t;this.Rt=!0,this.S.emitInitialDomStart();let e=this.$s;this.$s=null,e&&((t=this.fi)===null||t===void 0||t.call(this,xE(e)))}stop(){var t;this.flush(),(t=this.Xi)===null||t===void 0||t.flushEvents(),this.Rt=!1,this.$s=null}flush(){this.Xm.flush()}}return i})(),Hw=500,$E=20,VE={PerformanceTimingResource:Hw,JSError:$E,CustomError:$E},FE=(()=>{class i{constructor(){this.Ah=Z({},VE)}transform(t,e){if(this.H0(t)){this.reset(),e(t);return}let r=this.Ah[t.type];if(r!==void 0){if(r<=0)return;this.Ah[t.type]=r-1}e(t)}reset(){this.Ah=Z({},VE)}H0(t){if(t.type!=="Lifecycle")return!1;let{kind:e}=t;return e==="afterNaturalPageView"||e==="afterArtificialPageView"}}return i})(),Bw=(()=>{class i extends He{constructor(t,e,r,n){super(),this.E=t,this.V=e,this.j0=r,this.gi=n,this.pi=new Pl,this.ot=[],this.pc=!1}init(){}write(t){this.isStarted&&(t.isUserEvent?this.we(t.recordingEvent):this.Xe(t.recordingEvent))}Xe(t){this.B0(t),this.mc()}we(t){this.Km(t),this.mc()}Km(t){l(this.ot,I(t)),this.pc=!0}B0(t){l(this.ot,I(t))}mc(){let t={containsUserEvent:this.pc,events:this.ot};this.V.sendToParent(Q.RecordingEvent,t),this.ot=[],this.pc=!1}onStart(){this.j0.reset(),this.gi.start(),this.E.emitDebugEvents&&this.pi.emit
25("replayRecordingStarted")}onStop(){this.gi.stop()}addInitialDom(t){for(let e=0;e<this.ot.length;e+=1)if(this.ot[e].date>=t.date){l(this.ot,Za(e,0,t)),this.pc=!0,this.mc();return}this.Km(t),this.mc()}}return i})(),HE=(()=>{class i{constructor(t,e,r,n,a,o,u,c,p,f,E,g,R,k,X,U){this.E=t,this.O=e,this.ds=r,this.S=n,this.V=a,this.Vi=o,this.Ec=u,this.lt=c,this.ke=p,this.jt=f,this.Bt=E,this.mo=g,this.Ih=R,this.nt=k,this.it=X,this.ft=U,this.Eo=!1,this.Us=[]}isActive(){return!!this.Ki}getStaticResourceManagerStatus(){var t;return(t=this.Bt.getService())===null||t===void 0?void 0:t.getStatus()}setupRecordingPipeline(){if(!Ln.isRecordingSupported())return!1;let t=this.Vi.getRecordingContext();this.Xr=new go(!!t.useAnonymization,this.E.whitelistedAttributes,this.O,this.E.anonymizeDigits);let e=[new mm,new fm,new am];ne(this.ke.getAll(),a=>l(e,I(a))),l(e,I(this.Xr)),l(e,I(new Em(this.lt))),this.Us=[this.ds,new cm,this.Ec,new dm,this.Ih],this.ft&&l(this.Us,I(this.ft)),ne(this.jt.getAll(),a=>l(this.Us,I(a))),ne(e,a=>this.nt.addProcessor(a));let r=new UE(this.S,this.Bt.getConsumer()),n=new FE;return this.Ki=new Bw(this.E,this.V,n,r),this.nt.pipeThrough(n).pipeThrough(r).pipeTo(this.Ki),this.Ki.init(),!0}onParentRecordingContextChange(t){t.useAnonymization!==void 0&&this.Zi(t.useAnonymization,t.maskNumbers);let e=this.Bt.getService();if(t.enableOnlineResourcesOnNextPageview!==void 0&&(e==null||e.setOnlineAssetsEnabledOnNextStart(t.enableOnlineResourcesOnNextPageview)),t.isRecording){this.F0(),e==null||e.setEnableOnlineAssets(t.enableOnlineResources),e==null||e.start();let r=this.Ki.isStarted;this.Ki.start(),r||this.G0()}else this.Ki.stop(),e==null||e.stop()}onOptout(){this.Ki.stop()}G0(){if(this.Eo){this.nt.restartProducers(this.Us);return}this.Eo=!0,ne(this.Us,t=>this.nt.addProducer(t))}Zi(t,e){var r;this.Xr.setAnonymization(t),this.Xr.setAnonymizeDigits(e!==void 0?!!e:this.it.shouldMaskNumbers()),(r=this.mo.get())===null||r===void 0||r.setAnonymization(t)}F0(){var t,e,r,n,a,o;if(!((r=(e=(t=this.E.experimental)===null||t===void 0?void 0:t.sessionReplay)===null||e===void 0?void 0:e.shadowRoot)===null||r===void 0)&&r.filterByHostSelector){let u=(o=(a=(n=this.E.experimental)===null||n===void 0?void 0:n.sessionReplay)===null||a===void 0?void 0:a.shadowRoot)===null||o===void 0?void 0:o.filterByHostSelector;ne(u,c=>{ui(c)&&ys.setShadowRootFilter(p=>{try{return Li.call(p.host,c)}catch(f){return!1}})})}}}return i.$deps=[lt,Qe,Tr,At,di,Qr,Ho,Tn,$h,bd,Vh,Ad,Fh,Ni,Xe,{__optional:rd}],i})(),wd=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[Zv],exports:[Tr,_s,In]})],i),i})(),zw=null,BE=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it],providers:[Ho],exports:[Ho]})],i),i})(),Bo=(()=>{class i{constructor(t=100){this.z0=t,this.vc={},this.vo=null,this.Kl="original-resource-name"}onEvent(t){this.W0=t}processEvent(t){this.q0(t.resourceId,t.resource.hash,t.originalResourceName),this.Y0(t)}flushEvents(){this.vo&&Ti(this.vo),this.Zm()}onSendStaticResource(t){this.Y0=t}Zm(){if(!Object.keys(this.vc).length)return;let t={type:St.RESOURCE_HASHES,date:mt.now(),args:[this.vc]};this.vo=null,this.vc={},this.W0(t)}q0(t,e,r){let n=e;r&&(n+=`?${this.Kl}=${r}`),this.vc[t]=n,!this.vo&&(this.vo=Ft(()=>this.Zm(),this.z0))}}return i})(),zE=(()=>{class i extends He{constructor(t,e,r){super(),this.Xi=t,this.V=e,this.Kr=r,this.Ph=!1,this.Qi=!1}setEnableOnlineAssets(t){this.Ph=t!=null?t:!1}setOnlineAssetsEnabledOnNextStart(t){this.Qi=t}getStatus(){return{supported:Cr.isSupported(),onlineAssets:{activated:this.Ph,enableOnNextStart:this.Qi}}}onStart(){this.Ph&&this.Kr.enableOnlineAssets()}onStop(){this.Kr.disableOnlineAssets()}init(){this.Xi.onSendStaticResource(t=>this.V.sendToParent(Q.StaticResource,t))}}return i.$deps=[Bo,di,Cr],i})(),Gw=(()=>{let i=class{constructor(s,t,e,r,n){this.Yr=s,this.po=t,this.Et=e,this.ke=r,this.Bt=n}onInit(){this.Et.init(),this.ke.add(this.Yr),this.Bt.setProcessor(this.Yr),this.Bt.setConsumer(this.po),this.Bt.setService(this.Et)}};return i.$deps=[Cr,Bo,zE,$h,Vh],i=b([q({imports:[it,Oa,DE],providers:[ee(Cr,()=>new Cr),ee(Bo,()=>new Bo),zE]})],i),i})(),Ww=Cr.isSupported()&&GC()?Gw:null,jw=null,qw=(()=>{let i=class{constructor(s,t,e,r,n){this.ps=s,this.Vi=t,this.w=e,this.S=r,this.Hi=n}onInit(){this.w.register(Hc,()=>this.Vi.getRecordingContext().isRecording),this.w.register(Bc,()=>
25this.ps.getStaticResourceManagerStatus()),this.ps.setupRecordingPipeline()&&(this.Hi.addListener(this.ps),this.S.addListener(this.ps))}};return i.$deps=[HE,Qr,Kt,At,Be],i=b([q({imports:[it,Ps,Cd,wd,bh,BE,DE,zw,jw,Ww,Ah],providers:[HE,Fh]})],i),i})(),Yw=qw,Zw=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,Ps,fd,Aw,PE,ww,Iw,Yw,vd,yw]})],i),i})(),Kw=(()=>{let i=class{constructor(s,t,e){this.V=s,this.S=t,this.U=e}onInit(){this.U.addListener(this),this.S.addListener(this)}onStartTracking(){this.V.start()}onOptout(){this.V.stop()}};return i.$deps=[di,At,Be],i=b([q({imports:[Oa,it]})],i),i})(),Xw=(()=>{let i=class{constructor(s,t){this.Ge=s,this.U=t}onInit(){this.U.addListener(this)}onInitTracking(){this.Ge.start(!0)}};return i.$deps=[fh,Be],i=b([q({imports:[it,Ps,sd]})],i),i})(),Qw=Xw,Jr=(()=>{class i{constructor(){this.ie=new Set}handleCommand(t,e){return!bi(t)||this.ie.has(t)?null:(this.ie.add(t),e&&(this.Se=e,this.Qm(t,e)),()=>this.ie.delete(t))}executeCallbacks(t){this.X0(t)&&(this.Se=t,this.ie.forEach(e=>this.Qm(e,t)))}Qm(t,e){Ft(()=>{try{t(e)}catch(r){}})}X0(t){let{isRecording:e,recordingStartTimestamp:r,etrState:n,etrStatus:a,collectState:o}=t;return this.Se&&(this.Se.isRecording!==e||this.Se.recordingStartTimestamp!==r||this.Se.etrState!==n||this.Se.etrStatus!==a||this.Se.collectState!==o)}}return i.$deps=[],i})(),Hh=(()=>{class i{constructor(t){this.Vs=t}getRecordingContext(){return this.Ur}forwardRecordingContextChange(t){this.Ur={isRecording:t.isRecording,recordingStartTimestamp:t.recordingStartTimestamp||0,etrState:t.etrState||_r.ETR_OFF},this.Vs.executeCallbacks(this.Ur)}}return i.$deps=[Jr],b([la({wait:0,mode:"trailing"})],i.prototype,"forwardRecordingContextChange",null),i})(),GE=(()=>{class i{constructor(t){this.V=t,this.ie={}}handleCommand(t){bi(t)&&this.So(t)}executeRegisteredCallbacks(t){let e=t.trackingContext;if(e)if(t.callbackId){let r=this.ie[t.callbackId];r&&this.Ft(r,e)}else for(let r in this.ie)this.Ft(this.ie[r],e)}So(t){let e=zs.integer(),r={callbackId:e,initiator:To.AfterPageView};this.ie[e]=t,this.V.sendToParent(Q.IntegrationCallback,r)}Ft(t,e){Ft(()=>{t(e)})}}return i.$deps=[di],i})(),WE=(()=>{class i{constructor(t){this.V=t,this.Ji={}}handleCommand(t){ss(t)&&bi(t.callback)&&this._o(t.callback)}executePendingCallbacks(t){let{trackingContext:e,callbackId:r}=t;if(!r||!e)return;let n=this.Ji[r];n&&(delete this.Ji[r],this.Ft(n,e.sessionKey))}_o(t){let e=zs.integer(),r={callbackId:e,initiator:To.GetSessionKey};this.Ji[e]=t,this.V.sendToParent(Q.IntegrationCallback,r)}Ft(t,e){Ft(()=>{t(e)})}}return i.$deps=[di],i})(),zo=(()=>{class i{constructor(){this.Mh=Nn.Natural}setPageViewType(t){this.Mh=t}getPageViewType(){return this.Mh}getRequestParameters(){return{pvt:this.Mh}}}return i.$deps=[],i})(),Jw="_cs_cvars",jE=512,qE=255,Bh={SESSION:["visit",2],PAGE:["page",3],NEXT_PAGE_ONLY:["nextPageOnly",4]},Nd=(()=>{class i extends Hv{}return i.key=Jw,i})(),Go=(()=>{class i{constructor(t,e){this.O=t,this.J=e,this.Kt={},this.tr={},this.yo={},this.K0=new Set(l(Object,Ka(Bh),Hp()))}set(t,e,r,n){let a,o;if(!(ze(t)||j(t))||j(t)&&l(t,ai())==="")throw new ge(bs[0],"index must be a number or string");let u=Number(t);if(Number.isNaN(u))throw new ge(bs[0],"index must be a valid number");if(u<=0)throw new ge(bs[0],"index must be greater than 0");if(!Me(e))throw new ge(bs[0],"name is required");if(bi(e))throw new ge(bs[0],"name cannot be a function");if(!Me(r))throw new ge(bs[0],"value is required");if(bi(r))throw new ge(bs[0],"value cannot be a function");if(!this.Z0(n))throw new ge(bs[0],"invalid scope: "+String(n));let c=this.O.anonymizePII(String(e)),p=this.O.anonymizePII(String(r));if(a=[l(c,Oe(0,jE)),l(p,Oe(0,qE))],o=r!=="",!le(n)||l(Bh.SESSION,Dt(n))>=0){let f=this.getCustomVariablesSession();o?f[t]=a:delete f[t],this.setCustomVariableSession(f)}(!le(n)||l(Bh.PAGE,Dt(n))>=0)&&(o?this.Kt[t]=a:delete this.Kt[t]),le(n)&&l(Bh.NEXT_PAGE_ONLY,Dt(n))>=0&&(o?this.tr[t]=a:delete this.tr[t])}getCustomVariablesSession(){let t=this.J.get();if(!t)return{};let e=Ht.parse(t);return e!==null&&ss(e)?e:{}}setCustomVariableSession(t){this.J.set(Ht.stringify(t))}removeCustomVariablesSession(){this.J.remove()}removeCustomVariablesPage(){this.Kt={}}getRequestParameters(){let t=this.getCustomVariablesSession();for(let r in this.Kt)this.Kt.hasOwnProperty(r)&&(t[r]=this.Kt[r]);if(Ht.stringify(t).length<=2)return{};let e={cvars:this.Jm(t)};return this.hasCustomVariablesPage()&&(e.cvarp=this.getCustomVariablesPage()),e}onBeforePageview(){for(let t in this.yo)this.yo.hasOwnProperty(t)&&(this.yo[t]===this.Kt[t]&&delete this.Kt[t],delete this.yo[t]);for(let t in this.tr)this.tr.hasOwnProperty(t)&&(this.yo[t]=this.tr[t],this.Kt[t]=this.tr[t],delete this.tr[t])}hasCustomVariablesPage(){return this.Kt&&!Eu(this.Kt)}getCustomVariablesPage(){return this.Jm(this.Kt)}getAllValidPageCustomVars(){let t=Z({},this.Kt);return this.Nh(t),t}Nh(t){for(let e in t)if(t.hasOwnProperty(e)){let r=parseInt(e,10),n=t[e],a=n[0],o=n[1];(!h_(r,1,20)||a.length>jE||o.length>qE)&&delete t[e]}}Jm(t){this.Nh(t);let e=Eu(t)?[]:t;return Ht.stringify(e)}
25Z0(t){return!le(t)||this.K0.has(t)}getAllValidCustomVars(){let t=this.getCustomVariablesSession();for(let e in this.Kt)this.Kt.hasOwnProperty(e)&&(t[e]=this.Kt[e]);return this.Nh(t),t}}return i.$deps=[Qe,Nd],i})(),La=(()=>{let i;return(function(s){s[s.NOT_NEEDED=1]="NOT_NEEDED",s[s.NOT_EXPRESSED=2]="NOT_EXPRESSED",s[s.WITHDRAWN=3]="WITHDRAWN",s[s.GRANTED=4]="GRANTED"})(i||(i={})),i})(),Fn=(()=>{class i{constructor(t,e,r,n,a,o){this.P=t,this.C=e,this.E=r,this.wo=n,this.A=a,this._t=o,this.tE=!1}isNaturalPageViewSent(){return this.tE}setNaturalPageViewSent(t){this.tE=t}onAfterNaturalPageView(){this.setNaturalPageViewSent(!0)}getTrackingContext(t=!1){let e=this.C.getSession();if(!e)return null;let r=this.getSessionKey();if(!r)return null;let n=this.E.projectId,a=this.E.uxaDomain,o=e.pageNumber,u=this.wo.getPageViewType(),c=this.C.isReplayRecorded(),p=this.Q0(e),f,E,g;return t||this.E.experiments?(f=this.A.getUrl(),E=this._t.getAllValidCustomVars(),g=this._t.getAllValidPageCustomVars()):this.E.isCsSideloadingHeap()&&(E=this._t.getAllValidCustomVars()),Z(Vt(Z({projectId:n,sessionKey:r,pageNumber:o,pageViewType:u,isRecording:c,uxaDomain:a,recordingConsentState:p},this.E.smbConfig),{pageViewUrl:f,customVariables:E}),g!==void 0?{pageCustomVariables:g}:{})}getSessionKey(){let t=this.P.getVisitor();return t?`${t.id}.${t.visitsCount}`:null}Q0(t){if(!ka.isReplayConsentNeeded(this.E))return La.NOT_NEEDED;switch(t.replayConsent){case wi.NOT_EXPRESSED:return La.NOT_EXPRESSED;case wi.WITHDRAWN:return La.WITHDRAWN;case wi.GRANTED:return La.GRANTED;default:return La.NOT_NEEDED}}}return i.$deps=[ci,xe,lt,zo,ti,Go],i})();function YE(i,s){let{isRecording:t,pageNumber:e,projectId:r,siteId:n,uxaDomain:a,csLiteDomain:o}=i,u=/^(.+)\.(\d+)$/.exec(i.sessionKey),c;if(t&&u){let[,p,f]=u;n?c=`${o}/sites/${n}/player?uu=${p}&sn=${f}&pn=${e}`:c=`${a}/quick-playback/index.html?pid=${r}&uu=${p}&sn=${f}&pvid=${e}&recordingType=cs`,s.withTimestamp&&(c+=`&t=${mt.now()-s.recordingStartTimestamp}`)}return{replayLink:c,isRecording:t}}var Pd=(()=>{class i{constructor(t){this.Dt=t}handleCommand(t,e){ss(t)&&bi(e)&&this.Ft(t,e)}Ft(t,e){Ft(()=>{let r=this.Dt.getTrackingContext();if(r){let n=YE(r,t);e(n)}})}}return i.$deps=[Fn],i})(),ZE=(()=>{class i{constructor(t,e){this.V=t,this.ut=e,this.Sc={}}handleCommand(t,e){ss(t)&&bi(e)&&this._o(t,e)}executePendingCommand(t){let{trackingContext:e,callbackId:r}=t;if(!(!r||!e))if(this.Sc[r]){let[n,a]=this.Sc[r];n&&(delete this.Sc[r],this.Ft(e,n,a))}else this.ut.sendToChildren(Q.TrackingContextResultMessage,t)}_o(t,e){let r=zs.integer();this.Sc[r]=[t,e],this.V.sendToParent(Q.TrackingContextRequestMessage,{callbackId:r})}Ft(t,e,r){Ft(()=>{let n=YE(t,e);r(n)})}}return i.$deps=[di,Lo],i})(),tN=(()=>{let i=class{constructor(s,t,e,r,n,a,o){this.w=s,this.bo=t,this.Vs=e,this.eE=r,this.sE=n,this.iE=a,this.U=o}onInit(){this.Nt(),this.U.addListener(this)}onParentRecordingContextChange(s){this.bo.forwardRecordingContextChange(s)}onAfterPageViewCallback(s){this.eE.executeRegisteredCallbacks(s)}onIntegrationSessionKeyCallback(s){this.sE.executePendingCallbacks(s)}onTrackingContextResultCallback(s){this.iE.executePendingCommand(s)}Nt(){this.w.register(zc,s=>this.Vs.handleCommand(s,this.bo.getRecordingContext())),this.w.register(gh,s=>{this.eE.handleCommand(s)}),this.w.register(uv,s=>this.sE.handleCommand(s)),this.w.register(rA,(s,t)=>{this.iE.handleCommand(s,t)})}};return i.$deps=[Kt,Hh,Jr,GE,WE,ZE,Be],i=b([q({imports:[it,Oa,vd],providers:[Jr,Hh,GE,WE,ZE]})],i),i})(),KE=null,eN=(()=>{let i=class{constructor(s,t,e,r,n,a,o){this.w=s,this.kt=t,this.ce=e,this.Ct=r,this.U=n,this.Os=a,this.ft=o}onInit(){let s=this.Os,t=this.ft;s&&t&&(s.addSelector(t.getEncryptionSelectors()),this.Ct.addIdentifier(s)),this.Nt(),this.U.addListener(this)}er(){this.Ct.start()}J0(){this.Ct.stop()}onParentSensitiveStatusChange(s){var t,e;s.maskedElementSettings&&this.kt.setMaskedElementSettingsFromParent(s.maskedElementSettings),s.capturedElementSelector&&this.ce.setWhitelistedElementsSelector(s.capturedElementSelector,!1),s.encryptionSelectors&&((t=this.Os)===null||t===void 0||t.addSelector(s.encryptionSelectors),(e=this.ft)===null||e===void 0||e.setEncryptionSelectors(s.encryptionSelectors,!1)),s.started?this.er():this.J0()}Nt(){this.w.register(ch,s=>{this.ce.setWhitelistedElementsSelector(s)}),this.w.register(So,s=>{this.kt.setMaskedElementSettingsFromCommand(s)}),this.w.register(Vc,s=>{var t,e;(t=this.ft)===null||t===void 0||t.setEncryptionSelectors(s),(e=this.Os)===null||e===void 0||e.addSelector(s)})}};return i.$deps=[Kt,Na,_s,Is,Be,{__optional:Sm},{__optional:rd}],i=b([q({imports:[it,Oa,wd,bh,KE],providers:[Is],exports:[Is]})],i),i})(),iN=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[Oa,Kw,eN,tN,Qw]})],i),i})(),zh=(()=>{class i extends He{constructor(t,e,r){super(),this.O=t,this.rE=e,this.B=r,this.Oh=[],this.clear()}
25onStart(){l(this.Oh,et(t=>{this.he=t.transaction,this.Ro=t.transactionItems,this.sendTransaction()})),this.Oh=[]}onStop(){}addTransaction(t){let e=this.O.anonymizeFields(t,["id"]);this.he=ic.from(e)}getTransaction(){return this.he}sendTransaction(){if(!this.isStarted){l(this.Oh,I({transaction:this.he,transactionItems:[...this.Ro]})),this.clear();return}if(!(this.rE===null||this.B===null)&&(this.B.refreshSession(),!!this.B.isSessionValid())){if(!this.he.hasValidRevenue()){K.warn("Transaction Service: unable to send transaction with invalid parameters");return}this.rE.send(),ot.counters.transactions.count("sent")}}addItem(t){if(bi(t))throw new ge(Ra[1]);let e=this.O.anonymizeFields(t,["id","name","sku","category"]),r=nT.from(e);r!==null&&l(this.Ro,I(r))}getItems(){return this.Ro}clear(){this.he=ic.from({revenue:NaN}),this.Ro=[]}getRequestParameters(){let t={id:this.he.id?`${this.he.id}`:"",revenue:`${this.he.revenue}`};return le(this.he.tax)&&(t.tax=`${this.he.tax}`),le(this.he.shipping)&&(t.shipping=`${this.he.shipping}`),le(this.he.currency)&&(t.cu=`${this.he.currency}`),t.items=Ht.stringify(this.Ro),t}}return i})(),Zi=(()=>{let i;return(function(s){s[s.PAGE_VIEW=4]="PAGE_VIEW",s[s.TAP=6]="TAP",s[s.LONG_PRESS=8]="LONG_PRESS",s[s.DRAG=9]="DRAG",s[s.FLICK=10]="FLICK",s[s.DETAILED_API_ERROR=13]="DETAILED_API_ERROR",s[s.JAVASCRIPT_ERROR_SR=19]="JAVASCRIPT_ERROR_SR",s[s.CUSTOM_ERROR_SR=20]="CUSTOM_ERROR_SR",s[s.API_ERROR=21]="API_ERROR",s[s.CUSTOM_ERROR_AN=25]="CUSTOM_ERROR_AN",s[s.JAVASCRIPT_ERROR_AN=26]="JAVASCRIPT_ERROR_AN",s[s.CHANGE=100]="CHANGE",s[s.SUBMIT=101]="SUBMIT",s[s.CUSTOM_EVENT=102]="CUSTOM_EVENT"})(i||(i={})),i})(),XE=(()=>{class i{constructor(){this.Zr=1}transformEvent(t){switch(t.type){case It.CUSTOM_EVENT:{let e={version:this.Zr,type:Zi.CUSTOM_EVENT,data:{customEventName:t.customEventName,sourceLibrary:t.sourceLibrary}};return Sh(t)&&(e.data.properties=t.properties),e}case It.CHANGE:{let e={version:this.Zr,type:Zi.CHANGE,data:{path:t.tgt}};return Sh(t)&&(e.data.properties=t.properties),td(t)&&(e.data.hrchy=t.hrchy),e}case It.SUBMIT:{let e={version:this.Zr,type:Zi.SUBMIT,data:{path:t.tgt}};return Sh(t)&&(e.data.properties=t.properties),td(t)&&(e.data.hrchy=t.hrchy),Uv(t)&&(e.data.text=t.text),e}case It.TAP:{let e={version:this.Zr,type:Zi.TAP,data:{path:t.tgt}};return Sh(t)&&(e.data.properties=t.properties),td(t)&&(e.data.hrchy=t.hrchy),Uv(t)&&(e.data.text=t.text),e}case It.DRAG:{let e=t;return{version:this.Zr,type:Zi.DRAG,data:{path:e.tgt,direction:e.fd,distance:e.distance,velocity:e.velocity}}}case It.FLICK:{let e=t;return{version:this.Zr,type:Zi.FLICK,data:{path:e.tgt,direction:e.fd,distance:e.distance,velocity:e.velocity}}}default:return null}}}return i.$deps=[],i})(),Gh=(()=>{class i{constructor(){this.nE=new Map}registerTransformer(t,e){this.nE.set(t,e)}transformEvent(t,e){let r=this.nE.get(t);return r?r(e):null}}return i.$deps=[],i})(),QE=(()=>{class i{constructor(){this.tI=50*1024*1024,this.eI=30*1024*1024,this.kh=0,this.Dh=!1,this._c=new Map,this.Tt=[]}getAssetContent(t){return yt(this,null,function*(){return this._c.get(t)||new Promise((r,n)=>{l(this.Tt,I({assetUrl:t,successCallback:r,errorCallback:n})),this.Dh||this.sI()})})}sI(){return yt(this,null,function*(){for(this.Dh=!0;this.Tt.length>0;){let{assetUrl:t,successCallback:e,errorCallback:r}=l(this.Tt,fn()),n=this._c.get(t);if(n){e(n);continue}try{let a=(yield this.iI("GET",t,"blob")).target;if(a.status===200){let o=a.getResponseHeader("Content-Type"),u=Number(a.getResponseHeader("Content-Length"));if(u&&Number(u)>this.eI){let p=`asset is too big, size = ${u} bytes`;r(p);continue}let c=new i_;c.onload=()=>{let p={data:l(c.result,de("base64,"))[1],mimeType:o!=null?o:""};this.kh+=u,this.kh>this.tI&&(this.kh=0,this._c.clear()),this._c.set(t,p),e(p)},c.onerror=()=>{r("Error converting XHR response to base64")},c.readAsDataURL(a.response)}else r(`error downloading ${t}: ${a.statusText}`)}catch(a){let o=`Error downloading resource ${t}: ${a.message}`;r(o)}}this.Dh=!1})}iI(t,e,r){return new Promise(function(n,a){let o=new XMLHttpRequest;o.open(t,e),o.responseType=r,o.onload=n,o.onerror=a,o.send()})}}return i.$deps=[],i})(),sN="REMOTE_ASSET",JE="LOCAL_ASSET",rN="UNKNOWN_ASSET_TYPE",kd="NONE",ty="ONLY_LOCAL_ASSETS",Od="ALL",Wh=(()=>{class i{constructor(t){var e,r;this.rI=t,this.Lh=new Set,this.yc=kd;try{let n=(r=(e=v.CSJavascriptBridge)===null||e===void 0?void 0:e.getAssetTransformerMode)===null||r===void 0?void 0:r.call(e);(n===ty||n===Od)&&(this.yc=n)}catch(n){}}setAssetProcessingMode(t){this.yc=t}getTransformedAssets(t,e){return yt(this,null,function*(){if(this.yc===kd)return t;let r=[];for(let n of t){let a=n.assetId,o=this.nI(a);if(this.yc===Od||o===JE){let u=a;if(this.oI(a,e)&&(u=this.aI(a,e)),this.Lh.has(u)){l(r,I(n));continue}try{let c=yield this.rI.getAssetContent(a);if(this.Lh.has(u)){l(r,I(n));continue}l(r,I(Vt(Z({},n),{retrievedAssetContent:c}))),this.Lh.add(n.assetId)}catch(c){K.error(`an error occurred while getting data for asset: ${u}: ${c}`),l(r,I(n))}}else l(r,I(n))}return r})}nI(t){let e=v.WEBVIEW_SERVER_URL||null;try{let{protocol:r}=new sa(t);return r==="file:"||e&&t.startsWith(e)?JE:sN}
25catch(r){K.error(`Error constructing URL (${t}"): ${r.message}`)}return rN}oI(t,e){return e&&Nl(t)||!1}aI(t,e){return`${t}#${e}`}}return i.$deps=[QE],i})(),jh=(()=>{class i{constructor(){this.oE=new Set,this.aE=[],this.xh=new Set,this.$h=[]}addUrlMaskingPattern(t){if(this.oE.has(t))return;this.oE.add(t);let e=Rf(t);l(this.aE,I(e))}getUrlMaskingPatterns(){return this.aE}resetPartialUrlMaskingPatterns(){this.xh.clear(),this.$h=[]}addPartialUrlMaskingPattern(t){if(this.xh.has(t))return;this.xh.add(t);let e=Rf(t);l(this.$h,I(e))}getPartialUrlMaskingPatterns(){return this.$h}}return i.$deps=[],i})(),ey=(()=>{let i;return(function(s){function t(n){return j(n)||ze(n)}s.isValidIdentity=t;function e(n){let a=!1;return r(n)&&(a=!!n.hash),a}s.parseIdentityOptionsHash=e;function r(n){return Me(n)&&ss(n)&&"hash"in n}})(i||(i={})),i})(),iy=(()=>{let i;return(function(s){function t(n){return Gt(n)}s.isValidProperties=t;let e=255;function r(n){let a={};for(let o of Object.keys(n)){let u=n[o];if(j(u)||ze(u)){let c=Ae.truncate(String(o),e);a[c]=Ae.truncate(String(u),e)}}return a}s.sanitizeProperties=r})(i||(i={})),i})(),sy=(()=>{class i{constructor(t,e,r,n,a,o,u,c){this.cE=t,this.De=e,this.cI=r,this.wc=n,this.Uh=a,this.S=o,this.A=u,this.yt=c,this.Vh=!1,this.Le=null,this.Hh=!1}emitWebviewEventToBridge(t,e){return yt(this,null,function*(){switch(t){case Q.AnalysisEvent:{let r=this.cI.transformEvent(e.event);r&&ve.sendAnalysisEvent(r);break}case Q.RecordingEvent:ve.sendSREvent(e);break;case Q.ChildLogMessage:ve.sendLog(e);break;case Q.Commands:K.tryToExecute(`SDKMessageUtils.sendMessage.sendCommandMessage: ${e}`,()=>{this.lI(e)})();break;case Q.Assets:{let{assets:r,serializationId:n}=e,a=yield this.Uh.getTransformedAssets(r,n);ve.sendAssets(a,n);break}case Q.JavascriptError:{let r=this.wc.transformEvent(Q.JavascriptError,e);r&&(this.Vh&&ve.sendNativeSREvent(Vt(Z({},r),{type:Zi.JAVASCRIPT_ERROR_SR})),ve.sendAnalysisEvent(Vt(Z({},r),{type:Zi.JAVASCRIPT_ERROR_AN})));break}case Q.ApiError:{let r=this.wc.transformEvent(Q.ApiError,e);r&&(ve.sendAnalysisEvent(Vt(Z({},r),{type:Zi.API_ERROR})),ot.counters.networkRequests.count("collected"));break}case Q.DetailedApiError:{let r=this.wc.transformEvent(Q.DetailedApiError,e);r&&(ve.sendNativeSREvent(Vt(Z({},r),{type:Zi.DETAILED_API_ERROR})),ot.counters.networkRequests.count("collected"));break}}})}setSessionReplayStatus(t){this.Vh=t}lI(t){let e=t.commands;this.Hh||(this.Hh=l(e,ye(r=>l(yo,Dt(r.name))>=0&&this.lE(r)&&!this.uE(r))));for(let r of e)switch(!0){case l(sE,Dt(r.name))>=0:ve.sendOptIn();break;case l(dd,Dt(r.name))>=0:this.S.emitOptout(),ve.sendOptOut();break;case l(mo,Dt(r.name))>=0:this.uI(r);break;case l(yo,Dt(r.name))>=0:this.hI(r);break;case l(_o,Dt(r.name))>=0:this.hE(r);break;case l(Ra,Dt(r.name))>=0:break;case l(Ro,Dt(r.name))>=0:this.xa();break;case l(pE,Dt(r.name))>=0:this.hE(r),this.xa();break;case l(tv,Dt(r.name))>=0:this.yt.addUrlMaskingPattern(r.params[0]);break;case l(Fc,Dt(r.name))>=0:this.yt.addPartialUrlMaskingPattern(r.params[0]);break;case l(hv,Dt(r.name))>=0:this.yt.resetPartialUrlMaskingPatterns();break;case l(uh,Dt(r.name))>=0:this.dI(r);break;case l(ud,Dt(r.name))>=0:this.fI(r);break;case l(iE,Dt(r.name))>=0:this.gI();break;case l(cd,Dt(r.name))>=0:this.pI(r);break;case l(kh,Dt(r.name))>=0:this.mI(r);break;case l(Oh,Dt(r.name))>=0:this.EI(r);break;case l(gd,Dt(r.name))>=0:this.vI();break;case l(Nh,Dt(r.name))>=0:this.SI(r);break;case l(Ph,Dt(r.name))>=0:this._I(r);break;case l(pd,Dt(r.name))>=0:this.yI();break;default:K.warn(`WebviewBridgeEventEmitter received an unknown command: ${Ht.stringify(r)}`);break}}fI(t){if(t.params.length<1||t.params.length>2)return;let e=t.params[0],r=t.params[1];if(!ey.isValidIdentity(e))throw new ge(ud[0]);let n=ey.parseIdentityOptionsHash(r);ve.identify(e.toString(),{hash:n})}gI(){ve.resetIdentity()}pI(t){if(t.params.length!==1)return;let e=t.params[0];if(!iy.isValidProperties(e))throw new ge(cd[0]);let r=iy.sanitizeProperties(e);ve.addUserProperties(r)}mI(t){if(t.params.length!==1)return;let e=t.params[0];if(!Gt(e))throw new ge(kh[0]);let r=Dh.sanitizeCustomEventProperties(e);r&&ve.addEventProperties(r)}EI(t){if(t.params.length!==1)return;let e=t.params[0];if(!e||!j(e))throw new ge(Oh[0]);ve.removeEventProperty(e)}vI(){ve.clearEventProperties()}SI(t){if(t.params.length!==1)return;let e=t.params[0];if(!Gt(e))throw new ge(Nh[0]);let r=Dh.sanitizeCustomEventProperties(e);r&&ve.addPageviewProperties(r)}_I(t){if(t.params.length!==1)return;let e=t.params[0];if(!e||!j(e))throw new ge(Ph[0]);ve.removePageviewProperty(e)}yI(){ve.clearPageviewProperties()}uI(t){if(t.params.length!==1)return;let e=t.params[0];
25if(!(!ss(e)||!("key"in e)||!("value"in e))&&uo.isKeyValid(e.key)&&uo.isValueValid(e.value)){let r=this.cE.anonymizePII(e.key),n=ms(e.value)?e.value:this.cE.anonymizePII(e.value);ve.sendDynamicVariable(r,n)}}lE(t){let{params:e}=t;return e.length>=1&&e.length<=2&&j(e[0])}uE(t){let e=t.params[1];return(e==null?void 0:e.autoinjected)===!0}hI(t){if(!this.lE(t)||this.uE(t)&&this.Hh)return;let e=t.params[0],r={type:Zi.PAGE_VIEW,version:1,data:{url:e}};this.S.emitArtificialPageViewEnd(),this.A.overridePath(e);let n=this.A.getAnonymizedUrl();this.S.emitBeforeArtificialPageView(this.Le||"",n),ve.sendAnalysisEvent(r),this.S.emitAfterArtificialPageView(),this.Le=n}hE(t){if(t.params.length!==1)return;let[e]=t.params;e.value&&(e.revenue=e.value),this.De.addTransaction(e)}xa(){let t=this.De.getTransaction();ic.isValid(t)&&(ve.sendTransaction(t.id?t.id:null,t.revenue,t.currency?t.currency:""),this.De.clear())}dI(t){if(t.params.length<1)return;let e=t.params[0],r=t.params[1]||{};if(!(j(e)&&ss(r)))return;let n=_w.buildCustomErrorEvent(e,r),a=this.wc.transformEvent(Q.CustomError,n);a&&(this.Vh&&ve.sendNativeSREvent(Vt(Z({},a),{type:Zi.CUSTOM_ERROR_SR})),ve.sendAnalysisEvent(Vt(Z({},a),{type:Zi.CUSTOM_ERROR_AN})))}}return i.$deps=[Qe,zh,XE,Gh,Wh,At,ti,jh],i})(),ry=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[Gh],exports:[Gh]})],i),i})(),nN=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[jh],exports:[jh]})],i),i})(),aN=null,ny=(()=>{class i{set(t){this.Hs=t}get(){return this.Hs}}return i.$deps=[],i})(),oN=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[ny],exports:[ny]})],i),i})(),lN=null,hN="CS_ANONYMIZED_VALUE",Wo=(()=>{class i{constructor(t,e){this.O=t,this.A=e}anonymize(t){return j(t.message)&&(t.message=this.RI(t.message),t.message=this.O.anonymizePII(t.message)),j(t.filename)&&(t.filename=this.A.computeOverriddenUrl(t.filename)),t}RI(t){return l(t,jt(/(value\s*=\s*".*"|value\s*=\s*'.*')/,`value='${hN}'`))}}return i.$deps=[Qe,ti],i})(),qh=(()=>{class i{set(t){this.Hs=t}get(){return this.Hs}}return i.$deps=[],i})(),Md=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[qh],exports:[qh]})],i),i})(),uN=(()=>{let i=class{constructor(s,t){this.Bh=s,this.TI=t}onInit(){this.TI.set(this.Bh)}};return i.$deps=[Wo,qh],i=b([q({imports:[it,Md],providers:[Wo],exports:[Wo]})],i),i})(),ay=uN,cN=1,dN=(()=>{let i=class{constructor(s,t,e){this.et=s,this.Hs=t,this.A=e}onInit(){this.et.registerTransformer(Q.JavascriptError,s=>{let t=Vt(Z({},s),{pageUrl:this.A.getAnonymizedUrl()}),e=this.Hs.anonymize(t);return{version:cN,data:Vt(Z({},e),{date:mt.now()})}})}};return i.$deps=[Gh,Wo,ti],i=b([q({imports:[it,ry,ay]})],i),i})(),pN=dN,oy=(()=>{let i=class{constructor(s,t,e,r){this.mi=s,this.S=t,this.U=e,this.fE=r}onInit(){this.mi.onWebViewEvent((s,t)=>{this.fE.emitWebviewEventToBridge(s,t)}),this.S.addListener(this),this.U.addListener(this)}onStartTracking(){this.mi.start()}onOptout(){this.mi.stop()}onStartAnalytics(){this.mi.setAnalyticsStatus(!0)}onStopAnalytics(){this.mi.setAnalyticsStatus(!1)}onParentRecordingContextChange(s){this.fE.setSessionReplayStatus(s.isRecording)}};return i.$deps=[Ih,At,Be,sy],i=b([q({imports:[it,$n,ry,nN,pN,aN,lN],providers:[QE,Wh,XE,ee(zh,s=>new zh(s,null,null),[Qe]),sy],exports:[Wh]})],i),i})(),gN=["webview:analytics:start"],fN=["webview:analytics:stop"],mN=(()=>{let i=class{constructor(s,t){this.w=s,this.U=t}onInit(){this.w.register(gN,()=>this.U.emitStartAnalytics(),{disableApplyPending:!0}),this.w.register(fN,()=>{this.U.emitStopRecording(),this.U.emitStopAnalytics()},{disableApplyPending:!0})}};return i.$deps=[Kt,Be],i=b([q({imports:[it,$n]})],i),i})(),Yh=(()=>{class i{constructor(t){this.E=t,this.Fh=null}isSdkTrackingContext(t){return Me(t)&&ss(t)&&j(t.sessionKey)&&ms(t.pageNumber)&&j(t.pageViewType)&&Xa(t.isRecording)}update(t){if(!this.isSdkTrackingContext(t)){K.warn(`webViewTrackingContext.service received wrong sdkTrackingContext, content:${Ht.stringify(t)}`),this.Fh=null;return}this.Fh=Z(Vt(Z({},t),{recordingConsentState:La.NOT_NEEDED,projectId:this.E.projectId,uxaDomain:this.E.uxaDomain}),this.E.smbConfig)}getTrackingContext(){return this.Fh}}return i.$deps=[lt],i})(),ly=(()=>{class i{constructor(t,e){this.ut=t,this.Qr=e}onIframeIntegrationCallback(t){let e=this.Qr.getTrackingContext();e!==null&&(t.trackingContext=e,this.ut.sendToChildren(Q.IntegrationCallback,t))}}return i.$deps=[Lo,Yh],i})(),hy=(()=>{class i{constructor(t){this.Qr=t,this.ie=[]}handleCommand(t){if(!bi(t))return;this.So(t);let e=this.Qr.getTrackingContext();e!==null&&this.Ft(t,e)}executeRegisteredCallbacks(t){let e=t.trackingContext;e&&l(this.ie,$t(r=>this.Ft(r,e)))}So(t){l(this.ie,I(t))}Ft(t,e){Ft(()=>{t(e)})}}return i.$deps=[Yh],i})(),Dd=(()=>{class i{getResourceContentText(t,e,r){let n=o=>{e(t,o.responseText)},a=this.CI(n,r);a.open("GET",t),a.send()}CI(t,e){let r=new XMLHttpRequest;return r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&(r.status===200?t(r):e(r.statusText))},r}}return i.$deps=[],i})(),Zh=(()=>{class i{constructor(t){this.AI=t}getStyleSheetAssets(t,e,r,n,a){let o=[];if(!Nl(t)){r(`Not a recognized valid css file path ${t}`);return}let u=(c,p)=>{let f=this.II(c,p);l(f,et(E=>
25{l(o,I(E)),Nl(E.assetId)&&n(E.assetId)&&(a==null||a(E),this.getStyleSheetAssets(E.assetId,e,r,n,a))})),e(o)};this.AI.getResourceContentText(t,u,r)}II(t,e){return this.PI(t,ca(e))}PI(t,e){return l(e,xt(r=>!Gi(r)),xt(r=>!Gg(r)),$t(r=>({assetId:wg(r,t),assetBasePath:t,assetRawPath:r})))}}return i.$deps=[Dd],i})(),xd=(()=>{class i{static isWebViewLocalAssetsSupported(){return"URL"in v}}return i})(),uy=(()=>{class i{constructor(t,e){this.V=t,this.Gh=e,this.gE=new ME({maskingEnabled:!1})}MI(){let t=new Set;Ai(D,NodeFilter.SHOW_ELEMENT).visitAll(e=>{t.has(e)||(this.gE.scanElement(e),t.add(e))})}handleCommand(t){let e=t&&t.withAssets,r=[],n=new Set,a=new Set,o=[];e&&xd.isWebViewLocalAssetsSupported()?(this.gE.onScannedAsset(({type:p,asset:f})=>{p==="stylesheet"&&!a.has(f.assetId)&&(a.add(f.assetId),l(o,I(f))),n.has(f.assetId)||(n.add(f.assetId),l(r,I(f)))}),this.MI()):xd.isWebViewLocalAssetsSupported()||K.warn("Local asset is not supported on this browser");let u=vN(),c=Ht.stringify(u);if(e){let p=bf.generate();return this.NI(r,o,p),Ht.stringify({serializedDom:c,serializationId:p})}return c}NI(t,e,r){e.length===0?this.To(t,r):this.OI(t,e,r,(n,a)=>this.To(n,a))}OI(t,e,r,n){let a=0,o=0,u=new Set(l(t,$t(g=>g.assetId))),c=g=>!u.has(g),p=g=>{u.has(g.assetId)||(u.add(g.assetId),l(e,I(g)),l(t,I(g)))},f=g=>{for(let R of g)u.has(R.assetId)||(u.add(R.assetId),l(t,I(R)));a++,a+o===e.length&&n(t,r)},E=g=>{o++,K.error("An error occurred while fetching a styleSheet: "+g),a+o===e.length&&n(t,r)};l(e,et(g=>{this.Gh.getStyleSheetAssets(g.assetId,f,E,c,p)}))}To(t,e){this.V.sendToParent(Q.Assets,{assets:t,serializationId:e})}}return i.$deps=[di,Zh],i})();function vN(){return IC(),bC(gC(D))}var cy=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it],providers:[Dd,Zh],exports:[Dd,Zh]})],i),i})(),EN=["serializeWebView","webview:serializeWebView"],yN=["setAssetTransformerMode","webview:setAssetTransformerMode"],SN=["webview:onAfterScreenView"],_N=(()=>{let i=class{constructor(s,t,e,r,n,a,o,u,c,p){this.w=s,this.pE=t,this.F=e,this.bo=r,this.Vs=n,this.Uh=a,this.Qr=o,this.kI=u,this.mE=c,this.DI=p}onInit(){this.F.addListener(this.kI),this.pE.addListener(this),this.Nt()}onParentRecordingContextChange(s){this.bo.forwardRecordingContextChange(s)}onAfterPageViewCallback(s){this.mE.executeRegisteredCallbacks(s)}Nt(){this.w.register(zc,s=>this.Vs.handleCommand(s,this.bo.getRecordingContext())),this.w.register(gh,s=>{this.mE.handleCommand(s)}),this.w.register(SN,s=>{this.Qr.update(s);let t=this.Qr.getTrackingContext();t!==null&&this.pE.emitAfterPageViewCallback({initiator:To.AfterPageView,trackingContext:t})}),this.w.register(EN,s=>this.DI.handleCommand(s)),this.w.register(yN,s=>{(s===kd||s===ty||s===Od)&&this.Uh.setAssetProcessingMode(s)})}};return i.$deps=[Kt,Be,Qs,Hh,Jr,Wh,Yh,ly,hy,uy],i=b([q({imports:[it,$n,vd,oy,cy],providers:[Jr,Hh,Yh,ly,hy,uy]})],i),i})(),jo=(()=>{let i=class{constructor(s,t){this.Et=s,this.w=t}onInit(){this.w.register(hh,s=>{if(j(s))this.Et.setExcludeUrlForSessionReplay(s);else throw new ge("excludeURLforReplay")})}};return i.$deps=[kn,Kt],i=b([q({imports:[it],providers:[kn],exports:[kn]})],i),i})(),Ld=(()=>{class i{constructor(t){this.E=t}isReplayUnanonymizedAllowedByConsent(){return!this.E.consentRequired}}return i.$deps=[lt],i})(),dy=(()=>{let i=class{constructor(s,t,e,r,n,a,o,u,c,p){this.S=s,this.w=t,this.kt=e,this.it=r,this.ce=n,this.ks=a,this.Ct=o,this.U=u,this.Os=c,this.ft=p}onInit(){this.it.init();let s=this.Os,t=this.ft;s&&t&&(s.addSelector(t.getEncryptionSelectors()),this.Ct.addIdentifier(s)),this.Nt(),this.S.addListener(this),this.U.addListener(this)}onStartAnalytics(){this.Co()}onAfterArtificialPageView(){this.EE(),this.Co()}onStopAnalytics(){this.EE()}Co(){this.Ct.start(),this.ks.setSensitiveStatus({started:!0,useAnonymization:this.it.shouldUseAnonymization()}),this.S.emitSensitiveStatusChange()}EE(){this.Ct.stop(),this.ks.setSensitiveStatus({started:!1,useAnonymization:this.it.shouldUseAnonymization()}),this.S.emitSensitiveStatusChange()}Nt(){this.w.register(ch,s=>{this.ce.setWhitelistedElementsSelector(s),this.S.emitSensitiveStatusChange()}),this.w.register(So,s=>{this.kt.setMaskedElementSettingsFromCommand(s),this.S.emitSensitiveStatusChange()}),this.w.register(Vc,s=>{!this.ft||!this.Os||(this.ft.setEncryptionSelectors(s),this.Os.addSelector(s),this.S.emitSensitiveStatusChange())})}};return i.$deps=[At,Kt,Na,Xe,_s,sr,Is,Be,{__optional:Sm},{__optional:rd}],i=b([q({imports:[it,$n,wd,KE],providers:[Ld,ee(Xe,(s,t,e)=>new Xe(s,t,new Sr,e),[lt,ti,Ld]),Is],exports:[Xe,Is,Ld]})],i),i})(),RN=["webview:replay:start"],TN=["webview:replay:stop"],CN=(()=>{let i=class{constructor(s,t,e,r,n,a,o,u){this.U=s,this.S=t,this.Ec=e,this.mi=r,this.Gh=n,this.w=a,this.be=o,this.ks=u,this.zh=!1}onInit(){if(this.U.addListener(this),this.S.addListener(this),xd.isWebViewLocalAssetsSupported()){let s=a=>{this.To(a)},t=a=>K.error("An error occurred while fetching a styleSheet: "+a),e=new Set,r=a=>!e.has(a),n=a=>{e.add(a.assetId),this.To([a])};this.Ec.onAsset(a=>{this.LI(a)}),this.Ec.onStyleSheetFound(a=>{this.Gh.getStyleSheetAssets(a.assetId,s,t,r,n)})}this.xI(),this.$I()}onStartRecording(){if(this.zh=!0,!this.be.isUrlExcludedForSessionReplay()){let s=this.ks.getSensitiveStatus();this.U.emitParentRecordingContextChange({isRecording:!0,useAnonymization:s.useAnonymization})}}onStopRecording(){this.zh=!1,this.U.emitParentRecordingContextChange({isRecording:!1})}onArtificialPageViewEnd(){this.U.emitParentRecordingContextChange({isRecording:!1})}onAfterArtificialPageView(){if(this.L()&&!this.be.isUrlExcludedForSessionReplay()){let s=this.ks.getSensitiveStatus();this.U.emitParentRecordingContextChange({isRecording:!0,useAnonymization:s.useAnonymization})}}L(){return this.zh}xI(){this.w.register(RN,()=>{this.U.emitStartAnalytics(),this.U.emitStartRecording()},{disableApplyPending:!0}),this.w.register(TN,()=>this.U.emitStopRecording(),{disableApplyPending:!0})}$I(){this.w.register(hh,s=>{if(j(s))this.be.setExcludeUrlForSessionReplay(s);else throw new ge("excludeURLforReplay")})}LI(s){this.mi.sendToParent(Q.Assets,{assets:[s]})}To(s){s.length!==0&&this.mi.sendToParent(Q.Assets,{assets:s})}};return i.$deps=[Be,At,Ho,Ih,Zh,Kt,kn,sr],i=b([q({imports:[it,$n,jo,dy,cy,BE]})],i),i})(),bN=CN,AN=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[$n,oy,dy,bN,mN,_N]})],i),i})(),py=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,Ah,Ps,fd,tw,Zw],providers:[rh,ho(Ar,GI)],exports:[Ar]})],i),i})(),IN=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[py,iN,tE],exports:[Ar]})],i),i})(),wN=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[py,AN,sd,ew],exports:[Ar]})],i),i})(),Ud=(()=>{let i=class{constructor(s,t,e){this.nt=s,this.S=t,this.w=e}onInit(){this.S.addListener(this)}onStartTracking(){this.nt.activate()}onArtificialPageViewEnd(){this.vE()}onBeforeSessionRenewal(){this.vE()}onOptout(){this.nt.deactivate()}vE(){this.nt.drain({dropPendingAsync:!0})}};return i.$deps=[Ni,At,Kt],i=b([q({imports:[it],providers:[ee(Ni,()=>new Ni,[])],exports:[Ni]})],i),i})(),gy=(()=>{let i=class{constructor(s,t,e){this.w=s,this.F=t,this.S=e}onInit(){this.F.addListener(this.w),this.S.addListener(this)}onOptout(){this.w.stop()}onBeforeSessionRenewal(){this.w.stop()}};return i.$deps=[Kt,Qs,At],i=b([q({imports:[it]})],i),i})(),fy=(()=>{class i{constructor(t){this.w=t}start(){this.w.start()}}return i.$deps=[Kt],i})(),my="_cs_optout",vy="1",Ey=(()=>{class i extends _I{}return i.key=my,i.expiresIn=xu,i})(),Ua=(()=>{class i{constructor(t,e,r){this.S=t,this.te=e,this.J=r,this.js=!1}Ci(){!this.isActive()&&this.UI()&&this.activate()}isActive(){return this.js||(this.js=!0,this.Ci()),this.J.get()===vy}activate(){this.S.emitOptout(),this.J.set(vy)}UI(){return l(this.te.href,Bt(my))>0}}return i.$deps=[At,Location,Ey],i})(),qo=(()=>{let i=class{constructor(s,t){this.w=s,this.ir=t}onInit(){this.w.register(dd,()=>{this.ir.activate()})}};return i.$deps=[Kt,Ua],i=b([q({imports:[it],providers:[Ey,Ua],exports:[Ua]})],i),i})(),yy=(()=>{class i{constructor(){this.ge={boundElement:D,type:"securitypolicyviolation",listener:t=>this.securityPolicyViolationListener(t)}}start(){Ke(this.ge)}stop(){Ge(this.ge)}onEvent(t){this.gt=t}HI(t){if(!t)return!1;let e=t.disposition;return j(t.sourceFile)&&l(i.VI,ye(r=>l(t.sourceFile,Bt(r))>0))&&e!=="report"}securityPolicyViolationListener(t){this.HI(t)&&this.gt({violatedDirective:t.violatedDirective,sourceFile:t.sourceFile})}}return i.$deps=[],i.VI=["contentsquare","cdnssl.clicktale.net"],b([J("Event handler type: securitypolicyviolation")],i.prototype,"securityPolicyViolationListener",null),i})(),Sy=(()=>{class i{constructor(t){this.Wh=t}start(){this.Wh.onEvent(t=>this.Z(t)),this.Wh.start()}stop(){this.Wh.stop()}Z(t){let e=`Content Security Policy error. Violated directive: ${t.violatedDirective} - Source file: ${t.sourceFile}`;K.warn(e)}}return i.$deps=[yy],i})(),NN=(()=>{let i=class{constructor(s,t){this.bc=s,this.S=t}onInit(){this.bc.start(),this.S.addListener(this)}onOptout(){this.bc.stop()}onArtificialPageViewEnd(s){s&&this.bc.stop()}onAfterArtificialPageView(s){s&&this.bc.start()}};return i.$deps=[Sy,At],i=b([q({imports:[it],providers:[Sy,yy]})],i),i})(),_y=(()=>{class i{constructor(t,e,r){this.E=t,this.C=e,this.S=r}grantReplayConsent(){if(!ka.isReplayConsentNeeded(this.E))return;let t=this.C.getSession();if(!t){this.C.grantReplayRecordingBeforeSessionStart();return}ka.isRecordingBlockedByConsent(t)&&(this.C.grantReplayRecording(t),this.S.emitAfterReplayRecordingConsentGranted())}withdrawReplayConsent(){if(!ka.isReplayConsentNeeded(this.E))return;let t=this.C.getSession();if(!t){this.C.withdrawnReplayRecordingBeforeSessionStart();return}ka.isRecordingWithDrawn(t)||(this.C.withdrawnReplayRecording(t),this.S.emitAfterReplayRecordingConsentWithdrawn())}}return i.$deps=[lt,xe,At],i})(),Ry=(()=>{let i=class{constructor(s,t,e,r){this.w=s,this.ns=t,this.S=e,this.SE=r}onInit(){this.S.addListener(this),this.Nt()}onTrackingAllowed(){this.ns.setInitialConsent()}
25Nt(){this.w.register(nE,()=>{this.ns.grantReplayAnonymizationConsent()}),this.w.register(aE,()=>{this.ns.withdrawReplayAnonymizationConsent()}),this.w.register(oE,()=>{this.SE.grantReplayConsent()}),this.w.register(lE,()=>{this.SE.withdrawReplayConsent()})}onOptout(){this.ns.removeAllConsents()}onBeforeVisitorRenewal(){this.ns.removeAllConsents()}onAfterVisitorRenewal(){this.ns.setInitialConsent()}onAfterVisitorCleared(){this.ns.setInitialConsent()}};return i.$deps=[Kt,wa,At,_y],i=b([q({imports:[it,Le],providers:[_y],exports:[i,wa]})],i),i})(),Ty="_cs_ex",$d=(()=>{class i extends Hv{}return i.key=Ty,i.expiresIn=i0,i})(),Yo=(()=>{class i{constructor(t,e){this.te=t,this.J=e}exclude(t){this.J.set(String(t.lastTrackingDraw))}removeExclusion(){this.J.remove()}isExcluded(){return this.jI()||this.BI()}jI(){return this.getAppliedTrackingDraw()!==0}getAppliedTrackingDraw(){return Number(this.J.get())}BI(){return l(this.te.href,Bt(Ty))>0}}return i.$deps=[Location,$d],i})(),PN=(()=>{let i=class{constructor(s,t){this.Et=s,this.S=t}onInit(){this.S.addListener(this)}onOptout(){this.Et.removeExclusion()}};return i.$deps=[Yo,At],i=b([q({imports:[it],providers:[$d,Yo],exports:[Yo,$d]})],i),i})(),Vd=(()=>{class i{constructor(t,e,r){this.P=t,this.C=e,this.FI=r}handle(){this.P.hasAllowSubdomainsChanged()&&(this.P.handleSubdomainChange(),this.C.handleSubdomainChange(),this.FI.handleSubdomainChange())}}return i.$deps=[ci,xe,wa],i})(),Fd=(()=>{class i{constructor(t,e,r){this.E=t,this.P=e,this.ms=r}clear(){this.GI()&&(this._E=this.P.getVisitor(),this.P.removeVisitor()),this.zI()&&this.ms.removeExclusion()}GI(){return this.P.doesVisitorExist()&&this.P.getVisitor().appliedTrackingDraw!==this.E.lastTrackingDraw}zI(){return this.ms.getAppliedTrackingDraw()!==this.E.lastTrackingDraw}restoreClearedVisitor(){this._E&&this.P.setVisitor(this._E)}}return i.$deps=[lt,ci,Yo],i})(),Hd=(()=>{class i{constructor(t,e,r,n,a,o){this.E=t,this.P=e,this.ms=r,this.yE=n,this.WI=a,this.Gu=o}addComputeInterceptor(t){this.wE=t}compute(t){this.wE?this.wE.intercept(()=>this.bE(t)):this.bE(t)}bE(t){this.WI.handle(),this.yE.clear(),this.qI()?(this.yE.restoreClearedVisitor(),t(!0)):(this.ms.exclude(this.E),t(!1))}qI(){let t=zs.boolean(this.E.sampleRate);return this.Gu.isForceIncluded()||!this.ms.isExcluded()&&this.P.doesVisitorExist()||!this.ms.isExcluded()&&t}}return i.$deps=[lt,ci,Yo,Fd,Vd,Do],i})(),Zo=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,PN,Ry,Le],providers:[Nd,Go,Vd,Fd,Hd],exports:[Nd,Go,Ns,Vd,Fd,Hd]})],i),i})(),kN=(()=>{let i=class{constructor(s,t,e){this.w=s,this._t=t,this.S=e}onInit(){this.S.addListener(this),this.w.register(bs,(s,t,e,r)=>{this._t.set(s,t,e,r)})}onBeforeArtificialPageView(){this._t.onBeforePageview()}onBeforeNaturalPageView(){this._t.onBeforePageview()}onOptout(){this._t.removeCustomVariablesSession()}onBeforeVisitorRenewal(){this._t.removeCustomVariablesSession(),this._t.removeCustomVariablesPage()}};return i.$deps=[Kt,Go,At],i=b([q({imports:[it,Zo]})],i),i})(),ON=(()=>{let i;return(function(s){s.HJ_DUAL_COLLECT="one_app_tag_dc"})(i||(i={})),i})();function MN(){return v.hjSiteSettings?l(v.hjSiteSettings.features,qe,Dt(ON.HJ_DUAL_COLLECT))>-1:!1}var Bd={d:function(i,s){for(var t in s)Bd.o(s,t)&&!Bd.o(i,t)&&Object.defineProperty(i,t,{enumerable:!0,get:s[t]})},o:function(i,s){return Object.prototype.hasOwnProperty.call(i,s)}},Cy={};Bd.d(Cy,{H:function(){return DN}});var DN=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=i.tryCatch,t=i.exception,e=i.scriptDomain,r=i.hjHost,n=i.askUrl,a=i.surveyImagesHost,o=i.surveyImpressionsEndpoint;v.hj=v.hj||function(){(v.hj.q=v.hj.q||[]).push(arguments)},hj.q=v.hj.q||[],v._hjSettings=v._hjSettings||{},hj.isPreview=!!_hjSettings.preview,hj.settings=hj.isPreview||!v.hjSiteSettings?{}:v.hjSiteSettings,hj.scriptDomain=v.hj.scriptDomain||e||"https://script.hotjar.com/",hj.defaults={environment:"live",host:"in.hotjar.com",insightsHost:"insights.hotjar.com",identifyEndpoint:"https://identify.hotjar.com",surveysHost:"surveys.hotjar.com",surveyImagesHost:"survey-images.hotjar.com",surveyImpressionsEndpoint:"https://surveystats.hotjar.io/hit",askUrl:"https://ask.hotjar.io/"},hj.environment=_hjSettings.environment||hj.defaults.environment,hj.host=r||_hjSettings.host||hj.defaults.host,hj.insightsHost=_hjSettings.insightsHost||hj.defaults.insightsHost,hj.surveysHost=_hjSettings.surveysHost||hj.defaults.surveysHost,hj.surveyImagesHost=a||hj.defaults.surveyImagesHost,hj.apiUrlBase="https://"+hj.host+"/api/v1",hj.insightsHost=_hjSettings.insightsHost||hj.defaults.insightsHost,hj.identifyEndpoint=_hjSettings.identifyEndpoint||hj.defaults.identifyEndpoint,hj.askUrl=_hjSettings.askUrl||n||hj.defaults.askUrl,hj.surveyImpressionsEndpoint=o||_hjSettings.surveyImpressionsEndpoint||hj.defaults.surveyImpressionsEndpoint,hj.userDeviceType=null,hj.tryCatch=s||v.hj.tryCatch;var u=t&&{log:t};hj.exceptions=u||v.hj.exceptions},F1=Cy.H,xN=3600*24*1e3,H1=xN*365,Kh=(()=>{class i{constructor(t,e,r){this.E=t,this.P=e,this.C=r,this.TE=[]}addParamsEnhancer(t){l(this.TE,I(t))}getRequestParameters(){let t=Z(Z({},hc()),this.E.getRequestParameters()),e=this.C.getSession();e&&(t.pn=`${e.pageNumber}`);let r=this.P.getVisitor();r&&(t.sn=`${r.visitsCount}`,t.uu=`${r.id}`);
25for(let n of this.TE)n.enhanceRequestParams(t);if(v.heap&&!this.E.isCsCrosswritingHeap())try{t.happid=v.heap.appid,v.heap.getSessionId&&(t.hsid=v.heap.getSessionId()),v.heap.getUserId?t.huu=v.heap.getUserId():v.heap.userId&&(t.huu=v.heap.userId),v.heap.getPageviewMetadata&&(t.hpvid=v.heap.getPageviewMetadata().pageviewId)}catch(n){delete t.happid,delete t.hsid,delete t.huu,delete t.hpvid}return t}}return i.$deps=[lt,ci,xe],i})(),tn=(()=>{class i extends Kh{constructor(t,e,r){super(t,e,r)}}return i.$deps=[lt,ci,xe],i})(),Ko=(()=>{class i extends Kh{constructor(t,e,r){super(t,e,r)}getRequestParameters(t){let e=super.getRequestParameters();return t!=null&&t.basicOnly&&(delete e.let,delete e.rst,delete e.rt),e}}return i.$deps=[lt,ci,xe],i})(),by=(()=>{class i{getRequestParameters(){return{dw:`${Ze.documentWidth()}`,dh:`${this.sP()}`,ww:`${Ze.windowWidth()}`,wh:`${Ze.windowHeight()}`,sw:`${Ze.screenWidth()}`,sh:`${Ze.screenHeight()}`}}sP(){let t=yi.getScrollContainer(),e=Ze.documentHeight();return t?Math.max(e,yi.getDocumentHeightFromContainer(t)):e}}return i.$deps=[],i})(),$a=(()=>{class i{constructor(t,e){this.lt=t,this.yt=e,this.Xh=!1}getRequestParameters(){return{dr:this.get()}}addUrlMaskingPattern(t){this.yt.addUrlMaskingPattern(t)}enableRemoveQueryString(){this.Xh=!0}disableRemoveQueryString(){this.Xh=!1}get(){let t=this.Xh?this.lt.removeQueryString(this.CE()):this.CE();return this.lt.anonymizeUrl(t,{maskingPatterns:this.yt.getUrlMaskingPatterns()})}set(t){this.AE=t}CE(){if(this.AE)return this.AE;let t="";try{t=v.top.document.referrer}catch(e){if(v.parent)try{t=v.parent.document.referrer}catch(r){t=""}}return t===""&&(t=D.referrer),typeof t!="string"&&(t=""),t}}return i})(),LN=99999,Ay=(()=>{class i{constructor(t){this.C=t,this.iP=this.rP()&&v.CSCurrentScript}nP(){let t=v.CSCurrentScript;if(!t)return null;let e=v.performance.getEntriesByName(t.src,"resource")[0];return!e||this.oP(e)?null:Math.round(e.responseEnd-e.fetchStart)}oP(t){let e=t.transferSize;return e!==void 0?e===0||e===300||e<t.encodedBodySize:t.connectStart===t.domainLookupEnd}getRequestParameters(){if(!this.iP||this.aP()!==1)return{};let t=this.nP();return t===null?{}:{dt:`${Math.min(t,LN)}`}}aP(){var t;return((t=this.C.getSession())===null||t===void 0?void 0:t.pageNumber)||null}rP(){return typeof v.performance=="object"&&typeof v.performance.getEntriesByName=="function"}}return i.$deps=[xe],i})(),Xh=(()=>{class i{constructor(){this.Ao=[]}addProvider(t){l(this.Ao,I(t))}getRequestParameters(){return this.Ao.reduce((t,e)=>Z(Z({},e.getRequestParameters()),t),{})}}return i.$deps=[],i})(),Va=(()=>{class i{constructor(...t){this.IE=t}addProvider(t){l(this.IE,I(t))}getRequestParameters(){return this.IE.reduce((t,e)=>Z(Z({},e.getRequestParameters()),t),{})}}return i})();function UN(){return{la:M0()}}var $N=Object.freeze(Object.defineProperty({__proto__:null,getRequestParameters:UN},Symbol.toStringTag,{value:"Module"})),Iy=(()=>{class i{constructor(t,e,r,n,a,o,u,c,p,f,E){this.cP=new Va(t,e,r,n,a,o,$N,u,c,p,f,E)}getRequestParameters(){return this.cP.getRequestParameters()}}return i.$deps=[tn,ci,by,$a,ti,wa,Go,zo,Ay,kn,Xh],i})(),zd=(()=>{class i{constructor(){this.Ao=[]}addProvider(t){l(this.Ao,I(t))}getProperties(t){let e=this.Ao.reduce((r,n)=>{let a=n.getPageViewProperties(t);return a?Z(Z({},r),a):r},{});if(Object.keys(e).length!==0)return v0(e,i.lP)}}return i.$deps=[],i.lP=200,i})(),VN="pageview",Hn=(()=>{let i;return(function(s){s.Natural="Natural",s.Artificial="Artificial",s.Renewal="Renewal"})(i||(i={})),i})(),Xo=(()=>{class i extends He{constructor(t,e,r,n,a,o,u,c){super(),this.E=t,this.S=e,this.K=r,this.A=n,this.wo=a,this.uP=o,this.nr=u,this.Qe=c,this.pi=new Pl,this.Le=null}onInit(){this.or=this.Qe.create(`${this.E.getTrackerUri()}/${VN}`,"base64"),this.Kh()}onStart(t=Hn.Natural){switch(t){case Hn.Natural:this.Zh();break;case Hn.Artificial:this.Qh();break;case Hn.Renewal:this.Jh();break}}onStop(){}triggerArtificialPageView(t,e){this.isStarted?(this.S.emitArtificialPageViewEnd(),this.ar(t,e)):(Me(t)&&this.A.overridePath(t,e),this.K.emitTargetingRulesArtificialPageview(this.A.getUrl()),this.E.hasTargetingRules()&&this.A.cleanupOverrideLifespan())}onBeforeSessionRenewal(){this.stop()}Zh(){this.wo.setPageViewType(Nn.Natural);let t=this.A.getAnonymizedUrl();this.S.emitBeforeNaturalPageView(t),this.td(),this.A.cleanupOverrideLifespan(),this.S.emitAfterNaturalPageView(Nn.Natural),this.Le=t}Jh(){this.wo.setPageViewType(Nn.Renewal);let t=this.A.getAnonymizedUrl();this.S.emitBeforeNaturalPageView(t),this.td(),this.S.emitAfterNaturalPageView(Nn.Renewal),this.Le=t}ar(t,e,r=!1){Me(t)&&this.A.overridePath(t,e);let n=this.A.getAnonymizedUrl();this.S.emitBeforeArtificialPageView(this.Le,n),this.wo.setPageViewType(Nn.Artificial),this.td(),this.A.cleanupOverrideLifespan(),this.S.emitAfterArtificialPageView(r),this.Le=n}Qh(){this.ar(null,void 0,!0)}Kh(){l(v,ni("pageshow",t=>{this.isStarted&&t.persisted&&(this.S.emitArtificialPageViewEnd(),this.ar())}))}hP(){return this.nr.getProperties(this.A.getPath())}td(){let t=this.hP(),e=t?{properties:t}:void 0,r=Z(Z({},this.uP.getRequestParameters()),e?{}:{ct:Co.UNCOMPRESSED});this.or.removeQueryParams(),this.or.setQueryParams(r),this.dP(r,e),this.or.send(e)}
25dP(t,e){this.E.emitDebugEvents&&this.pi.emit("pageViewRequest",{params:Z({},t),payload:e})}}return i.$deps=[lt,At,er,ti,zo,Iy,zd,Dn],i})(),ls=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,Le],providers:[Kh,tn,Ko],exports:[Kh,tn,Ko]})],i),i})(),Qh=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[Xh,zd,zo],exports:[Xh,zd,zo]})],i),i})(),wy=(()=>{class i{constructor(t){this.E=t}getRequestParameters(){let t={cw:this.E.isCsCrosswritingHeap()?"1":"2"},e=this.E.getHeapEnvId()||void 0;return e&&(t.happid=e),t}}return i.$deps=[lt],i})(),FN=(()=>{let i=class{constructor(s,t,e){this.E=s,this.Et=t,this.et=e}onInit(){this.fP()&&this.et.addProvider(this.Et)}fP(){return this.E.isCsCrosswritingHeap()||this.E.isCsSideloadingHeap()||this.E.isHeapSideloadsCs()}};return i.$deps=[lt,wy,Xh],i=b([q({imports:[it,Qh],providers:[wy]})],i),i})(),Ny=["setReferrer"],Gd=(()=>{let i=class{constructor(s,t){this.w=s,this.cr=t}onInit(){this.w.register(Ny,s=>{if(!j(s))throw new ge(Ny[0]);this.cr.set(s)})}};return i.$deps=[Kt,$a],i=b([q({imports:[it],providers:[ee($a,s=>new $a(s,new jh),[Tn])],exports:[$a]})],i),i})(),Wd=i=>ss(i)&&i!==null,HN=(i,s,t,e)=>{i.register(yo,(r,n)=>{if(!j(r)){s.triggerArtificialPageView();return}Wd(n)?s.triggerArtificialPageView(r,n):s.triggerArtificialPageView(r)}),i.register(oh,(r,n)=>{if(!j(r))throw new ge(oh[0]);Wd(n)?t.overridePath(r,n):t.overridePath(r)}),i.register(lh,(r,n)=>{if(!j(r))throw new ge(lh[0]);Wd(n)?t.overrideQuery(r,n):t.overrideQuery(r)}),e&&(i.register(Mc,r=>{if(!j(r))throw new ge(Mc[0]);e.addUrlMaskingPattern(r)}),i.register(ev,()=>e.enableRemoveQueryString()),i.register(iv,()=>e.disableRemoveQueryString()))},jd=(()=>{let i=class{constructor(s,t,e,r,n){this.Jr=s,this.w=t,this.S=e,this.A=r,this.cr=n}onInit(){HN(this.w,this.Jr,this.A,this.cr),this.S.addListener(this.Jr)}};return i.$deps=[Xo,Kt,At,ti,$a],i=b([q({imports:[it,Le,Zo,ls,Gd,Qh,jo,FN],providers:[by,Ay,Iy,Xo],exports:[Xo]})],i),i})(),qd=null,BN=(()=>{let i=class{constructor(s,t){this.w=s,this.oe=t}onInit(){this.w.register(["debugEvents"],s=>{typeof s=="boolean"&&this.oe.updateDynamicFields("emitDebugEvents",s)})}};return i.$deps=[Kt,lt],i=b([q({imports:[it]})],i),i})(),Py=(()=>{let i;return(function(s){function t(){return v.ClickTaleIsRecording&&v.ClickTaleIsRecording()}s.isRecording=t;function e(){v.ClickTaleStop&&v.ClickTaleStop()}s.stopRecording=e;function r(o){v.ClickTaleLogicalWithUploadPage&&v.ClickTaleLogicalWithUploadPage(o)}s.triggerLogicalPageView=r;function n(o){v.ClickTaleEvent&&v.ClickTaleEvent(o)}s.sendPageEvent=n;function a(o){v.ClickTaleEventTrigger&&v.ClickTaleEventTrigger(o)}s.sendEventTriggerRecording=a})(i||(i={})),i})();function Yd(i){return i.tagDeploymentMode===rs.DualCollectionReview||i.tagDeploymentMode===rs.DualCollection}function zN(i){return Yd(i)||i.tagDeploymentMode===rs.LoadClicktalePtc}var GN=null,WN=(()=>{class i extends He{constructor(){super(),this.OE=0}onStart(){K.isPerfLoggingActive()&&(this.Po=ta(()=>this.kE(),i.yP))}onStop(){K.isPerfLoggingActive()&&(this.kE(),gr(this.Po))}kE(){this.OE>=i.wP||ot.counters.methodPerformance.flush()&&this.OE++}}return i.yP=5e3,i.wP=5,i})(),jN=(()=>{let i=class{constructor(s){this.S=s}onInit(){this.Ac=new WN,this.S.addListener(this)}onStartTracking(){this.Ac.start()}onOptout(){this.Ac.stop()}onArtificialPageViewEnd(s){s&&this.Ac.stop()}onAfterArtificialPageView(s){s&&this.Ac.start()}};return i.$deps=[At],i=b([q({imports:[it]})],i),i})(),ky=(()=>{class i{constructor(){this.DE=100,this.Mo=0,this.en=0,this.Ic=null,this.LE={boundElement:D,type:"scroll",listener:e=>this.maxScrollRateListener(e)},this.rn=new Map,this.nh=(e,r)=>{switch(r){case"initial":case"added":{if(this.rn.has(e))return;let n={boundElement:e,type:"scroll",listener:a=>{yi.isEventOnScrollContainer(a)&&this.maxScrollRateListener(a,!0)}};this.rn.set(e,n),Ke(n);break}case"removed":{let n=this.rn.get(e);n&&(Ge(n),this.rn.delete(e));break}}},this.ci=new no(this.nh);let t=this.nd(yi.getScrollContainer());this.Mo=t.maxScrollRate,this.en=t.maxDocumentHeight}onEvent(t){this.gt=t}start(){Ke(this.LE),this.ci.observe()}
25stop(){this.xE(),Ge(this.LE),this.rn.forEach(t=>{Ge(t)}),this.rn.clear(),this.ci.disconnect()}reset(){this.xE(),yi.resetCache();let t=yi.getScrollContainer(),{maxScrollRate:e,maxDocumentHeight:r}=this.nd(t);this.en=r,this.Mo=e,this.gt()}nd(t){let e=0,r=0;if(t===null)r=Ze.documentHeight(),e=this.bP(r);else{let n=yi.getPaddingTop(t);r=yi.getDocumentHeightFromContainer(t,n),e=this.RP(t,n)}return{maxScrollRate:e,maxDocumentHeight:r}}maxScrollRateListener(t,e){(e!=null?e:yi.isEventOnScrollContainer(t))&&(this.Ic=yi.getScrollContainer()),this.TP()}TP(){if(this.Oo===void 0){if(typeof v.requestAnimationFrame!="function"){this.measure();return}this.Oo=v.requestAnimationFrame(()=>{this.Oo=void 0,this.measure()})}}xE(){this.Oo!==void 0&&(v.cancelAnimationFrame(this.Oo),this.Oo=void 0),this.Ic=null}measure(){let t=this.Ic;this.Ic=null;let{maxScrollRate:e,maxDocumentHeight:r}=this.nd(t);(e>this.Mo||r>this.en)&&(this.Mo=e,r>this.en&&(this.en=r),this.gt())}bP(t){let e=Math.round(this.CP()/t*100);return Math.min(e,this.DE)}CP(){let t=Ze.windowHeight();return Ze.windowOffsetY()+t}RP(t,e){let r=t.scrollTop+t.clientHeight+t.getBoundingClientRect().top+e,n=yi.getDocumentHeightFromContainer(t,e),a=Math.round(r/n*100);return Math.min(a,this.DE)}getRequestParameters(){return{sr:`${this.Mo}`,mdh:`${this.en}`}}}return i.$deps=[],b([J("MaxScrollRate handler")],i.prototype,"maxScrollRateListener",null),b([J("MaxScrollRate measure")],i.prototype,"measure",null),i})(),Oy=(()=>{class i{constructor(t){this.AP=Math.pow(2,32)-2,this.ur=t.performance}getRequestParameters(){let t=this.IP();return t?{str:t.startRender,di:t.domInteractive,dc:t.domComplete,fl:t.fullyLoaded}:{}}IP(){let t=this.PP();if(t&&(t==null?void 0:t.loadEventEnd)>0){let e=this.$E({startRender:t.responseStart-t.requestStart,domInteractive:t.domInteractive-t.requestStart,domComplete:t.domComplete-t.requestStart,fullyLoaded:t.loadEventEnd-t.requestStart});if(e)return e}if(this.ur&&this.ur.timing&&this.ur.timing.loadEventEnd>0){let e=this.ur.timing;return this.$E({startRender:e.domLoading-e.requestStart,domInteractive:e.domInteractive-e.requestStart,domComplete:e.domComplete-e.requestStart,fullyLoaded:e.loadEventEnd-e.requestStart})}return null}PP(){if(!this.MP())return null;let t=this.ur.getEntriesByType("navigation");return t&&t.length>0?t[0]:null}$E(t){let e={};for(let r in t){let n=t[r];if(n<0)e[r]="0";else{if(n>this.AP||!Number.isFinite(n))return null;e[r]=Math.round(n).toString()}}return l(Object,Ka(e),mu(r=>r==="0"))?null:e}MP(){return typeof this.ur=="object"&&typeof this.ur.getEntriesByType=="function"}}return i.$deps=[Window],i})(),qN=50,My=(()=>{class i{constructor(){this.Gt=[]}stringifyEvents(){return Ht.stringify(this.Gt)}addEvent(t){l(this.Gt,I(t))}eventsCount(){return this.Gt.length}clearEvents(){this.Gt=[]}empty(){this.clearEvents()}isFull(){return this.eventsCount()>=qN}isEmpty(){return this.Gt.length===0}getEvents(){return this.Gt}}return i.$deps=[],i})(),en=(()=>{class i{constructor(t){this.UE=[],this.VE=[],this.Fe={},this.Di=t}setQueryParams(t){l(Object.keys(t),et(e=>{this.Fe[e]=t[e]}))}removeQueryParams(t){t?l(t,et(e=>{delete this.Fe[e]})):this.Fe={}}onBeaconSuccess(t){l(this.UE,I(t))}onBeaconFailure(t){l(this.VE,I(t))}send(t){let e=co.toQuery(Vt(Z({},this.Fe),{ct:Co.UNCOMPRESSED})),r=this.NP(e,t);return r?l(this.UE,et(n=>n())):l(this.VE,et(n=>n(this.Fe))),r}NP(t,e){if($l())return!0;try{if(typeof navigator.sendBeacon!="function")return!1;let r=l(navigator,Bp(`${this.Di}?${t}`,e||""));if(r)return r}catch(r){}return typeof navigator.sendBeacon!="function"?!1:navigator.sendBeacon(`${this.Di}?${t}`,e||"")}}return i})(),YN="csAnalysisEventsPersisted",Zd=(()=>{class i{constructor(){this.nn=YN}save(t){localStorage.setItem(this.nn,Ht.stringify(t))}clear(){localStorage.removeItem(this.nn)}recover(){let t=localStorage.getItem(this.nn);if(t===null)return null;let e=null;try{e=Ht.parse(t)}catch(r){K.error(`Invalid item in localStorage. 26 (key:${this.nn}; value:${t})`)}finally{this.clear()}return e}}return i.$deps=[],i})(),Dy=(()=>{class i{constructor(){this.OP=t=>this.processMetric(t),this.L=!1,this.Qn=new Dv(["FCP","CLS","LCP","TTFB","INP"],this.OP)}
26onEvent(t){this.gt=t}start(){this.L||(this.L=!0,this.Qn.observe())}stop(){this.L=!1,this.Qn.disconnect()}processMetric(t){if(!this.L)return;let e={type:It.PERFORMANCE,name:t.name,val:t.value,ts:0};this.gt(e)}}return i.$deps=[],b([J("Performance metric handler")],i.prototype,"processMetric",null),i})(),Ki=(()=>{let i;return(function(s){s.Visible="visible",s.Hidden="hidden",s.Blur="blur",s.PagehideVisible="pagehideVisible",s.PagehideHidden="pagehideHidden",s.ExitPageByNavigate="exitPageByNavigate"})(i||(i={})),i})(),Kd=(()=>{class i{constructor(){this.L=!1,this.vi=t=>{try{switch(t.type){case"visibilitychange":return D.visibilityState==="hidden"?this.Ms(Ki.Hidden):this.Ms(Ki.Visible);case"pagehide":return D.visibilityState==="hidden"?this.Ms(Ki.PagehideHidden):this.Ms(Ki.PagehideVisible);case"blur":return this.Ms(Ki.Blur);case"navigate":return this.kP(t)?this.Ms(Ki.ExitPageByNavigate):void 0;default:return}}catch(e){}}}start(){this.L||(this.L=!0,this.od(),this.DP(),this.LP(),Ag()&&this.xP())}stop(){this.L&&(this.L=!1,this.ad(),this.$P(),this.VP(),Ag()&&this.HP())}onEvent(t){this.Ms=t}xP(){l(v.navigation,ni("navigate",this.vi))}HP(){l(v.navigation,gs("navigate",this.vi))}od(){l(D,ni("visibilitychange",this.vi))}ad(){l(D,gs("visibilitychange",this.vi))}DP(){l(v,ni("pagehide",this.vi))}$P(){l(v,gs("pagehide",this.vi))}LP(){l(v,ni("blur",this.vi))}VP(){l(v,gs("blur",this.vi))}kP(t){return t instanceof NavigateEvent?!t.hashChange&&!t.downloadRequest&&!t.formData:!1}}return i.$deps=[],i})(),xy=(()=>{class i extends He{constructor(t,e,r,n,a,o,u,c,p,f,E,g,R,k){super(),this.E=t,this.li=e,this.an=r,this.cd=n,this.Je=a,this.Re=o,this.ld=u,this.B=c,this.ee=p,this.ud=f,this.es=E,this.W=g,this.jr=R,this.fs=k,this.pi=new Pl,this.Pc=!1,this.Fi=[]}onInit(){this.li.onEvent(t=>this.we(t)),this.an.onEvent(()=>{let t=this.an.getRequestParameters();this.W.setQueryParams(t),this.Re.setQueryParams(t)}),this.ud.onEvent(t=>this.Xe(t)),this.dd(),this.fs.bindOnEvent(t=>this.we(t)),this.jP()}jP(){this.Re.onBeaconSuccess(()=>{this.Je.clearEvents()}),this.Re.onBeaconFailure(t=>{this.BP(t)})}initStates(){let t=this.ld.getRequestParameters(),e=this.cd.getRequestParameters(),r=this.an.getRequestParameters();this.W.setQueryParams(t),this.W.setQueryParams(e),this.W.setQueryParams(r),this.Re.setQueryParams(t),this.Re.setQueryParams(e),this.Re.setQueryParams(r),this.gd()}clearStates(t){this.li.flushPendingDebouncedListeners(),this.fs.flushAllPending(),t?(this.pd(),this.sendLastMessageBeacon()):this.sendEvents(),this.an.reset(),this.W.removeQueryParams()}onStart(t){this.es.start(),this.li.start(),this.an.start(),this.fs.startAll(),t||this.ud.start(),l(this.Fi,et(e=>{this.Xe(e)})),this.Fi=[]}collectInitialEvents(){this.fs.collectAllInitialEvents()}onIframeAnalysisBrowserEvent(t){this.Xe(t)}onIframeAnalysisUserEvent(t){this.we(t)}onExternalEvent(t){this.Z(t)}onCustomEvent(t){this.pushCustomEvent(t.customEventName,t.sourceLibrary,t.properties)}write(t){t.isUserEvent?this.we(t.analysisEvent):this.Xe(t.analysisEvent)}Xe(t){this.isStarted&&this.B.isCurrentPageviewValid()&&this.Z(t)}we(t){this.isStarted&&(this.B.refreshSession(),this.B.isSessionValid()&&this.Z(t))}Z(t){this.Je.addEvent(this.FP(t)),this.Je.isFull()&&this.sendEvents(),this.E.emitDebugEvents&&this.pi.emit("analysisEvent",Vt(Z({},t),{typeName:It[t.type]}))}FP(t){return t.ts=this.fr(),t}pd(){this.Re.setQueryParams({hlm:"true"}),this.Pc=!0}sendLastMessageBeacon(){this.Re.removeQueryParams(["i"]),this.Re.setQueryParams(this.ld.getRequestParameters()),this.Re.setQueryParams(this.cd.getRequestParameters()),this.Re.send(this.Je.stringifyEvents()),this.Re.removeQueryParams(["hlm"]),this.Pc=!1}sendEvents(){this.Je.isEmpty()||(this.Re.removeQueryParams(["i"]),this.W.setQueryParams(this.ld.getRequestParameters()),this.W.setQueryParams(this.cd.getRequestParameters()),this.W.send(this.Je.getEvents()),this.Je.clearEvents())}onStop(){this.es.stop(),this.li.stop(),this.an.stop(),this.ud.stop(),this.fs.stopAll(),yi.stop(),this.Je.empty()}gd(){this.Es=mt.now()}fr(){return mt.now()-this.Es}dd(){this.es.onEvent(t=>{t!==Ki.Visible&&(this.fs.flushAllPending(),t===Ki.PagehideVisible?this.pd():t===Ki.PagehideHidden?(this.pd(),this.sendLastMessageBeacon()):(!this.Je.isEmpty()||this.Pc)&&this.sendLastMessageBeacon())})}BP(t){try{(!this.Je.isEmpty()||this.Pc)&&this.ee.save({requestParameters:t,events:this.Je.getEvents()})}catch(e){}}pushCustomEvent(t,e,r){if(!(j(t)&&!pl(t))||r!==void 0&&!Gt(r))throw new ge(ya[0]);let n=Dh.buildCustomEvent(t,e,r),a=Yi.buildFromCustomEvent(n,this.jr.getEventsEnhancers());this.isStarted?this.Xe(a):l(this.Fi,I(a))}}return i.$deps=[lt,Da,ky,Oy,My,en,Va,Ns,Zd,Dy,Kd,As,Vn,Mh],i})(),ZN="v2/events",Ly=(()=>{class i extends He{constructor(t,e,r){super(),this.ee=t,this.Qe=e,this.E=r,this.HE=()=>{D.visibilityState==="visible"&&this.jE()}}onInit(){this.W=this.Qe.create(`${this.E.getTrackerUri()}/${ZN}`,"base64")}onStart(){this.jE(),this.od()}onStop(){this.ad()}getRecoveryStorage(){return this.ee}jE(){let t=this.ee.recover();if(t!==null){let{requestParameters:e,events:r}=t;this.W.send(r,e)}}od(){l(D,ni("visibilitychange",this.HE))}ad(){l(D,gs("visibilitychange",this.HE))}}return i.$deps=[Zd,Dn,lt],i})(),Qo=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[xI,Ah],exports:[Tr,_s,In,Xe,Is,Mo]})],i),i})(),KN=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[Mh],exports:[Mh]})],i),i})(),XN=null,QN="v2/events",Uy=i=>`${i.getTrackerUri()}/${QN}`,$y=(()=>{let i=class{constructor(s,t,e,r,n,a,o,u,c,p,f,E,g){this.de=s,this.ko=t,this.w=e,this.K=r,this.F=n,this.S=a,this.jr=o,this.E=u,this.ai=c,this.se=p,this.nt=f,this.mh=E,this.it=g}onInit(){cw(this.jr,this.E,this.ai,this.se,this.it),dw(this.jr,this.E,this.ai,this.se,this.it),this.K.addListener(this.de),this.F.addListener(this.de),this.w.register(ya,s=>{var t;if(!Gt(s))throw new ge(ya[0]);this.E.isCsSideloadingHeap()?(t=v.heap)===null||t===void 0||t.track(s.name,s.properties,s.source):this.de.pushCustomEvent(s.name,s.source,s.properties)}),this.S.addListener(this),this.nt.pipeThrough(this.mh).pipeTo(this.de)}onStartTracking(s){this.ko.start(),this.de.start(s)}onAfterNaturalPageView(){this.de.initStates()}onArtificialPageViewEnd(s){this.de.clearStates(!0),s&&(this.de.stop(),this.ko.stop())}onAfterArtificialPageView(s){this.de.initStates(),s&&(this.de.start(),this.ko.start()),this.de.collectInitialEvents()}onBeforeSessionRenewal(){this.de.clearStates(),this.de.stop(),this.ko.stop()}onOptout(){this.de.stop(),this.ko.stop()}};return i.$deps=[xy,Ly,Kt,er,Qs,At,Vn,lt,ir,Mo,Ni,$o,Xe],i=b([q({imports:[it,Le,ls,Qo,yE,KN,XN,Ud],providers:[xh,Zd,Ly,ky,Oy,My,Dy,Kd,ee(Da,(s,t,e,r,n)=>{let a=[];return n.collectSubmit||l(a,I("submit")),new Da(s.getEventsEnhancers(),t,e,r,a)},[Vn,ir,xh,_h,lt]),ee(Kr,s=>new Kr(NE(s.getGestureEnhancers())),[Vn]),ee(en,s=>new en(Uy(s)),[lt]),ee(As,(s,t)=>s.create(Uy(t),"base64"),[Dn,lt]),ee(Va,(s,t)=>new Va(s,t),[tn,ci]),xy,$o],exports:[Kr]})],i),i})(),Xd={fromSessionRenewal:!1,isRenewedVisitor:!1},Fa=(()=>{class i{constructor(t,e,r,n,a){this.E=t,this.S=e,this.ir=r,this.Jr=n,this.B=a,this.KE=!1,this.ZE=0,this.Ed=!0,this.QE=!1,this.Bs=!1,this.startDataCollection=({fromSessionRenewal:o,onAfterDataCollectionStartedCallback:u}=Xd)=>{o&&this.Bs||!this.KE?this.JP(o,u):this.tM()}}isDataCollectionStarted(){return this.Bs}tryStartAutomaticDataCollection({fromSessionRenewal:t,isRenewedVisitor:e,onAfterDataCollectionStartedCallback:r}=Xd){this.eM(t,e)&&this.startDataCollection({fromSessionRenewal:t,onAfterDataCollectionStartedCallback:r})}disableStartDataCollection(){this.Ed=!1}allowStartDataCollection({fromSessionRenewal:t}=Xd){this.Ed=!0,this.QE&&this.startDataCollection({fromSessionRenewal:t})}stopDataCollection(){this.Bs&&(this.Bs=!1,this.S.emitArtificialPageViewEnd(!0),this.Jr.stop())}tM(){this.Bs||(this.Bs=!0,this.B.isSessionValid()?(this.B.refreshSession(),this.Jr.start(Hn.Artificial)):this.B.renewSession(!1))}eM(t,e){return e&&!this.Bs?!1:t?!0:this.E.startMode===Xl.Manual?!1:!Yd(this.E)&&!this.E.isHeapSideloadsStartDataCollection()&&
26!this.E.isCsSideloadingHeap()}JP(t,e){if(this.ir.isActive()||(this.QE=!0,this.sM()&&(this.ZE++,this.ZE<2))||!this.Ed||this.Bs&&!t)return;this.KE=!0,this.Bs=!0;let r=t?Hn.Renewal:Hn.Natural;this.Jr.start(r);let n=()=>{this.S.emitStartTracking(t),typeof e=="function"&&e()};mi.onDocumentLoaded(n)}sM(){return Yd(this.E)&&this.E.isCsSideloadingHeap()}}return i.$deps=[lt,At,Ua,Xo,Ns],i})(),Vy=(()=>{let i=class{constructor(s,t){this.Fs=s,this.w=t}onInit(){this.w.register(rE,()=>{this.Fs.startDataCollection()}),this.w.register(QI,()=>{this.Fs.stopDataCollection()})}};return i.$deps=[Fa,Kt],i=b([q({imports:[it,qo,Le,jd],providers:[Fa],exports:[Fa]})],i),i})(),JN=(()=>{class i extends He{constructor(t,e){super(),this.Yt=t,this.O=e,this.vd=[]}onStart(){l(this.vd,et(t=>this.JE(t.key,t.value))),this.vd=[]}onStop(){}JE(t,e){let r=this.O.anonymizePII(t),n=ms(e)?e:this.O.anonymizePII(e);this.Yt.add(new uo(r,n))}trackDynamicVariable(t,e){if(uo.isKeyValid(t)&&uo.isValueValid(e)){if(!this.isStarted){l(this.vd,I({key:t,value:e}));return}this.JE(t,e)}else throw new ge(mo[0])}}return i})(),tP=(()=>{class i{constructor(t){this.ze=t,this.Yt=[]}add(t){l(this.Yt,I(t)),this.setBatchReadyCall()}clear(){this.Yt=[]}onBatchReady(t){this.iM=t}getRequestParameters(){let t={};for(let e of this.Yt)t[e.key]=e.value;return{dv:this.ze.compressSync(Ht.stringify(t)),ct:this.ze.algorithm}}setBatchReadyCall(){this.iM()}}return b([la({wait:0,mode:"trailing"}),J("dynamicVariablesBatchReady")],i.prototype,"setBatchReadyCall",null),i})(),eP="dvar",iP=(()=>{let i=class{constructor(s,t,e,r,n,a,o){this.w=s,this.C=t,this.E=e,this.Gs=r,this.ze=n,this.O=a,this.S=o,this.Lt=new po(this.E.getTrackerUri(),eP),this.Yt=new tP(this.ze),this.Et=new JN(this.Yt,this.O)}onInit(){this.Lt.setRequestParametersProviders(this.Gs,this.Yt),this.C.setDynamicVariablesService(this.Et),this.Yt.onBatchReady(()=>this.Lt.send()),this.Lt.after(()=>this.Yt.clear()),this.w.register(mo,({key:s,value:t}={})=>{this.Et.trackDynamicVariable(s,t)}),this.S.addListener(this)}onStartTracking(){this.Et.start()}onArtificialPageViewEnd(s){s&&this.Et.stop()}onAfterArtificialPageView(s){s&&this.Et.start()}};return i.$deps=[Kt,xe,lt,tn,Ca,Qe,At],i=b([q({imports:[it,Le,ls]})],i),i})(),sP=(()=>{var i;let s=i=class{constructor(t){this.w=t}onInit(){this.sv(i.rM,Ev),this.sv(i.nM,vv)}sv(t,e){this.w.register([t],(r,n)=>{!j(r)||!(j(n)||Hs(n))||K.error(n,`${e}${r}`)})}};return s.$deps=[Kt],s.nM="logSnippetError",s.rM="logImplementationSnippetError",s=i=b([q({imports:[it]})],s),s})(),rP="@ETP@",Fy="@user-identifier@",nP=(()=>{class i extends He{constructor(t,e,r,n){super(),this.E=t,this.oM=e,this.ze=r,this.K=n,this.Sd=[],this._d=[]}onStart(){l(this.Sd,et(t=>this.iv(t))),this.Sd=[],l(this._d,et(t=>this.rv(t))),this._d=[]}onStop(){}iv(t){this.aM(t)?Gu.isSupported()&&this.cM(t):this.lM(t)}trackPageEvent(t){if(!i.nv(t))throw new ge(dh[0]);this.isStarted?this.iv(t):l(this.Sd,I(t))}aM(t){return cc(t,Fy)}cM(t){return yt(this,null,function*(){if(!this.E.customHashIdEnabled)return;let e=l(t,Oe(Fy.length));if(e.length>Gu.MAX_DIGEST_INPUT_SIZE){K.warn("UserIdentifier event: invalid user identifier");return}let r=this.E.projectId.toString(),n=yield Gu.digest(e,r);n?(this.cn={eventName:n,isETR:!1,isCustomHashId:!0},this.Mc()):K.warn("Page event: unable to compute customHashId"),this.E.encryptionEnabled&&this.K.emitUserIdentifierEvent(e)})}lM(t){this.K.emitPageEvent(t),this.cn={eventName:t,isETR:!1,isCustomHashId:!1},this.Mc(),this.E.tagDeploymentMode===rs.LoadClicktalePtc&&Py.sendPageEvent(t)}rv(t){this.E.malkaEtrEnabled?this.uM(t):this.hM(t)}trackEventTriggerRecording(t){if(!i.nv(t))throw new ge(Ta[0]);this.isStarted?this.rv(t):l(this._d,I(t))}uM(t){cc(t,rP)?this.K.emitEventTriggerRecording(t,Wr.ETR_PAGE):this.K.emitEventTriggerRecording(t,Wr.ETR_SESSION),this.cn={eventName:t,isETR:!0,isCustomHashId:!1},this.Mc()}hM(t){zN(this.E)&&(this.K.emitEventTriggerRecording(t,Wr.ETR_LEGACY),this.cn={eventName:t,isETR:!0,isCustomHashId:!1},this.Mc(),this.E.tagDeploymentMode===rs.LoadClicktalePtc&&Py.sendEventTriggerRecording(t))}getRequestParameters(){return{value:this.ze.compressSync(this.cn.eventName),ct:this.ze.algorithm,isETR:`${this.cn.isETR}`,isCustomHashId:`${this.cn.isCustomHashId}`}}Mc(){this.oM.send()}static nv(t){return j(t)&&!!l(t,ai())}}return i})(),aP=(()=>{let i=class{constructor(s,t,e,r,n,a){this.E=s,this.w=t,this.ze=e,this.Gs=r,this.K=n,this.S=a}onInit(){let s=new po(this.E.getTrackerUri(),"pageEvent");this.ln=new nP(this.E,s,this.ze,this.K),s.setRequestParametersProviders(this.ln,this.Gs),this.w.register(dh,t=>{this.ln.trackPageEvent(t)}),this.w.register(Ta,t=>{this.ln.trackEventTriggerRecording(t)}),this.S.addListener(this)}onStartTracking(){this.ln.start()}onArtificialPageViewEnd(s){s&&this.ln.stop()}onAfterArtificialPageView(s){s&&this.ln.start()}};return i.$deps=[lt,Kt,Ca,tn,er,At],i=b([q({imports:[it,Le,ls]})],i),i})(),Jo=(()=>{class i{constructor(t,e){this.S=t,this.C=e,this.Do=Ui.ETR_DISABLED,this.Nc=Ui.ETR_PENDING,this.ov=!0}getEtrStatus(t){t===void 0&&(t=this.C.getSession());let e=t==null?void 0:t.etrStatus;
26return this.av()&&e===Ui.ETR_SAVED_SESSION?e:this.Do}onEventTriggerRecording(t,e){switch(e){case Wr.ETR_PAGE:this.cv(Ui.ETR_SAVED_PAGE);break;case Wr.ETR_LEGACY:case Wr.ETR_SESSION:this.cv(Ui.ETR_SAVED_SESSION);break}}onCollectStateChange(t,e){this.ov=!1,t===Ct.ANALYTICS_ONLY&&e===_r.ETR_ON?this.lv(this.Nc):this.lv(Ui.ETR_DISABLED)}lv(t){this.Do=t,this.Nc=Ui.ETR_PENDING,this.uv(t),this.S.emitRecordingContextChange()}cv(t){this.ov?Number(t)>Number(this.Nc)&&(this.Nc=t):this.av()&&Number(t)>Number(this.Do)&&(this.Do=t,this.uv(t),this.S.emitRecordingContextChange())}uv(t){let e=this.C.getSession();e!==null&&e.etrStatus===Ui.ETR_NOT_SAVED_SESSION&&t===Ui.ETR_SAVED_SESSION&&(e.etrStatus=t,this.C.setSession(e))}av(){return this.Do!==Ui.ETR_DISABLED}}return i.$deps=[At,xe],i})(),Jh=(()=>{class i{setProvider(t){this.dM=t}getProvider(){return this.dM}}return i.$deps=[],i})(),Ha=(()=>{class i{constructor(t,e,r,n,a,o){this.se=t,this.E=e,this.C=r,this.yd=n,this.Lo=a,this.it=o}getRecordingContext(){var t;let e=this.yd.getProvider();if(!e)return{isRecording:!1,recordingStartTimestamp:0,etrState:_r.ETR_OFF,etrStatus:Ui.ETR_DISABLED,collectState:Ct.ANALYTICS_ONLY};let r=this.C.getSession(),n=e.getStaticResourceManagerStatus();return{isRecording:e.isRecording(),maskNumbers:this.it.shouldMaskNumbers(),useAnonymization:this.se.getSensitiveStatus().useAnonymization,enableOnlineResources:n==null?void 0:n.onlineAssets.activated,enableOnlineResourcesOnNextPageview:n==null?void 0:n.onlineAssets.enabledOnNextPageview,recordingStartTimestamp:parseInt(e.getRecordingStartTimestamp(),10),etrState:this.E.malkaEtrEnabled?_r.ETR_ON:_r.ETR_OFF,etrStatus:this.Lo.getEtrStatus(r),collectState:(t=r==null?void 0:r.collectState)!==null&&t!==void 0?t:Ct.ANALYTICS_ONLY}}}return i.$deps=[Mo,lt,xe,Jh,Jo,Xe],i})(),tu=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,Qo,Le],providers:[Ha,Jh,Jo],exports:[Ha,Jh,Jo]})],i),i})(),Qd=(()=>{let i=class{constructor(s,t){this.B=s,this.S=t}onInit(){this.S.addListener(this)}onAfterVisitorRenewal(){this.B.renewSession(!0)}};return i.$deps=[Ns,At],i=b([q({imports:[it,Le],providers:[]})],i),i})(),Hy=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,Le,qo,Zo,jo,ls,Qo,$y,iP,aP,Qd,sP,jN,Qh,jd,Gd,tu,Vy],exports:[Ha,Xo,Fa]})],i),i})(),By=(()=>{class i{set(t){this.Et=t}get(){return this.Et}}return i.$deps=[],i})(),oP=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[By],exports:[By]})],i),i})(),lP=null,hP=null,uP=null,cP=20,dP="Custom Error:",pP="errors",zy=(()=>{class i extends He{constructor(t,e,r,n,a,o,u,c){super(),this.ho=t,this.Bh=e,this.Id=r,this.A=n,this.B=a,this.vs=o,this.Qe=u,this.E=c,this.xc=[],this.Pd=0,this.pr=[]}onInit(){this.Md=this.Qe.create(`${this.E.getTrackerUri()}/${pP}`)}initStates(){this.Es=mt.now(),this.Md.removeQueryParams(),this.Md.setQueryParams(this.vs.getRequestParameters()),this.xc=[],this.Pd=0}onStart(){this.ho.subscribe(i.ue,t=>this.Z(t)),this.Cd()}onStop(){this.ho.unsubscribe(i.ue)}onIframeJavascriptError(t){this.Z(t)}onStartTracking(){this.start()}onAfterNaturalPageView(){this.initStates()}onArtificialPageViewEnd(t){t&&this.stop()}onAfterArtificialPageView(t){this.initStates(),t&&this.start()}onBeforeSessionRenewal(){this.stop()}onOptout(){this.stop()}trackCustomError(t){let e={errorType:"jsError",message:`${dP} ${t}`,lineno:1,colno:1,filename:""};this.Ho(e)}Ho(t){if(this.isStarted){let e=this.Z(t);e&&this.Id.emitCustomJavaScriptErrorEvent(e)}else l(this.pr,I(t))}Cd(){this.isStarted&&(l(this.pr,et(t=>this.Ho(t))),this.pr=[])}Z(t){if(this.isStarted&&this.Pd<cP&&this.B.isSessionValid()){let e=Vt(Z({},t),{pageUrl:this.A.getAnonymizedUrl(),rt:this.fr()});return this.Bh.anonymize(e),l(this.xc,I(e)),this.$o(),e}return null}fr(){return mt.now()-this.Es}$o(){this.Md.send({errors:this.xc}),this.xc=[],this.Pd+=1}}return i.$deps=[Fo,Wo,er,ti,Ns,tn,Dn,lt],i.ue="JavaScriptErrorsService",i})(),gP=(()=>{let i=class{constructor(s,t,e,r,n){this.E=s,this.w=t,this.Nd=e,this.F=r,this.S=n}onInit(){this.F.addListener(this.Nd),this.S.addListener(this.Nd),this.E.jsCustomErrorsEnabled&&!this.E.customErrors.enabled&&this.w.register(uh,s=>{this.Nd.trackCustomError(s)})}};return i.$deps=[lt,Kt,zy,Qs,At],i=b([q({imports:[it,Le,ls,ay],providers:[Fo,zy],exports:[Fo]})],i),i})(),fP=gP,Gy=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,Le,ls,fP,hP,uP]})],i),i})(),mP=2,Jd=(()=>{class i{constructor(t){this.TM=t,this.$c=0}addString(t){this.$c+=t.length*mP}addArrayBuffer(t){this.$c+=t.byteLength}isThresholdReached(){return this.$c>this.TM}reset(){this.$c=0}}return i})(),vP=null,EP=(()=>{class i extends He{constructor(t,e){super(),this.UM=t,this.B=e,this.Te=null,this.kd=[]}
26onStart(){l(this.kd,et(t=>{this.Te=t,this.Cv()})),this.kd=[]}onStop(){}addToCart(t){let e={};j(t.sku)&&(e.sku=l(t.sku,Oe(0,rT))),j(t.merchant)&&(e.merchant=l(t.merchant,Oe(0,vf))),(e.sku||e.merchant)&&(this.Te=e,this.Cv())}getCartItem(){return this.Te}Cv(){if(!this.isStarted&&this.Te!==null){l(this.kd,I(this.Te)),this.clear();return}this.B.refreshSession(),this.B.isSessionValid()&&this.UM.send()}clear(){this.Te=null}getRequestParameters(){if(!this.Te)return{};let t={};return j(this.Te.sku)&&this.Te.sku.length>0&&(t.sku=this.Te.sku),j(this.Te.merchant)&&this.Te.merchant.length>0&&(t.me=this.Te.merchant),t}}return i})(),tp=(()=>{class i{constructor(t,e,r,n,a,o){this.E=t,this.vs=e,this.P=r,this.O=n,this.B=a,this.A=o}onInit(){let t=new po(this.E.getTrackerUri(),"transaction"),e=new po(this.E.getTrackerUri(),"addtocart");this.De=new zh(this.O,t,this.B),this.dn=new EP(e,this.B);let r=new Va(this.vs,this.P,this.A,this.De);t.setRequestParametersProviders(r),t.after(()=>{this.De.clear()});let n=new Va(this.vs,this.P,this.A,this.dn);e.setRequestParametersProviders(n),e.after(()=>{this.dn.clear()})}addTransaction(t){this.De.addTransaction(t)}addItem(t){this.De.addItem(t)}sendTransaction(){this.De.sendTransaction()}addToCart(t){this.dn.addToCart(t)}onStartTracking(){this.De.start(),this.dn.start()}onArtificialPageViewEnd(t){t&&(this.De.stop(),this.dn.stop())}onAfterArtificialPageView(t){t&&(this.De.start(),this.dn.start())}}return i.$deps=[lt,tn,ci,Qe,Ns,ti],i})(),yP=(()=>{let i=class{constructor(s,t,e){this.Fo=s,this.w=t,this.S=e}onInit(){this.S.addListener(this.Fo),this.w.register(_o,s=>this.Fo.addTransaction(s)),this.w.register(Ra,s=>this.Fo.addItem(s)),this.w.register(Ro,()=>this.Fo.sendTransaction()),this.w.register(lv,s=>this.Fo.addToCart(s))}};return i.$deps=[tp,Kt,At],i=b([q({imports:[it,Le,ls,Qd],providers:[tp],exports:[tp]})],i),i})(),SP=(()=>{let i=class{constructor(s){this.et=s}onInit(){let s=l(v.location.href,Bt("csDebug=1"))>-1;this.et.register("Version",wf),this.et.register("Sensitive",{isNodeSensitive(t){return ct.isMaskedElement(t)||ct.isMaskedElementChild(t)},isAttributeSensitive(t,e){return ct.isMaskedAttribute(t,e)},getSensitiveAttributes(t){return _u(l(t,gn),e=>ct.isMaskedAttribute(t,e.name))}}),this.et.register("Console",{warn(t){s&&console.warn("cs.tracking.warning",t)},error(t){s&&console.error("cs.tracking.error",t)}})}};return i.$deps=[ih],i=b([q({providers:[ih],exports:[ih]})],i),i})(),_P=null,RP=null,Wy=(()=>{class i{constructor(t){this.Dt=t,this.ie=[]}handleCommand(t){if(bi(t)&&(this.So(t),this.Dt.isNaturalPageViewSent())){let e=this.Dt.getTrackingContext();e!==null&&this.Ft(t,e)}}So(t){l(this.ie,I(t))}onAfterNaturalPageView(){this.executeRegisteredCallbacks()}onAfterArtificialPageView(){this.executeRegisteredCallbacks()}executeRegisteredCallbacks(){let t=this.Dt.getTrackingContext();t!==null&&l(this.ie,$t(e=>this.Ft(e,t)))}Ft(t,e){Ft(()=>{t(e)})}}return i.$deps=[Fn],i})(),jy=(()=>{class i{constructor(t){this.Dt=t,this.Ji=[]}handleCommand(t){if(this.Dt.isNaturalPageViewSent())return this.YM(t);this._o(t)}onAfterNaturalPageView(){this.flushPendingCallbacks()}YM(t){let e=this.Dt.getSessionKey();return this.Dv(t)&&e!==null&&this.Ft(t.callback,e),e}_o(t){this.Dv(t)&&l(this.Ji,I(t.callback))}flushPendingCallbacks(){let t=this.Dt.getSessionKey();t!==null&&l(this.Ji,et(e=>{this.Ft(e,t)})),this.Ji=[]}Dv(t){return t&&typeof t.callback=="function"}Ft(t,e){Ft(()=>{t(e)})}}return i.$deps=[Fn],i})(),qy=(()=>{class i{constructor(t,e){this._i=t,this.Vs=e}onCollectStateChange(){this.notify()}onRecordingContextChange(){this.notify()}notify(){this.Vs.executeCallbacks(this._i.getRecordingContext())}}return i.$deps=[Ha,Jr],b([la({wait:0,mode:"trailing"})],i.prototype,"notify",null),i})(),ep=(()=>{let i=class{constructor(s,t){this.Dt=s,this.S=t}onInit(){this.S.addListener(this.Dt)}};return i.$deps=[Fn,At],i=b([q({imports:[it,Le,Qh,Zo],providers:[Fn],exports:[Fn]})],i),i})(),TP=(()=>{let i=class{constructor(s,t,e,r,n,a,o,u){this.w=s,this.S=t,this.Dt=e,this._i=r,this.Lv=n,this.xv=a,this.Vs=o,this.XM=u}onInit(){this.S.addListener(this.Lv),this.S.addListener(this.xv),this.S.addListener(this.
26XM),this.w.register(uv,s=>this.xv.handleCommand(s)),this.w.register(gh,s=>this.Lv.handleCommand(s)),this.w.register(sA,s=>s(this.Dt.getTrackingContext(!0))),this.w.register(zc,s=>this.Vs.handleCommand(s,this._i.getRecordingContext()))}};return i.$deps=[Kt,At,Fn,Ha,Wy,jy,Jr,qy],i=b([q({imports:[it,tu,ep],providers:[Wy,jy,Jr,qy]})],i),i})(),CP=null,bP=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[_P,RP,TP,CP,yP]})],i),i})(),AP=(()=>{let i=class{constructor(s,t){this.nt=s,this.yh=t}onInit(){this.nt.addProducer(this.yh)}};return i.$deps=[Ni,Kr],i=b([q({imports:[it,Ud,$y]})],i),i})(),ip=(()=>{class i{set(t){this.Th=t}get(){return this.Th}}return i.$deps=[],i})(),IP=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[ip],exports:[ip]})],i),i})(),tl=(()=>{class i{setProcessor(t){this.Yr=t}setConsumer(t){this.po=t}setService(t){this.Et=t}getProcessor(){return this.Yr}getConsumer(){return this.po}getService(){return this.Et}}return i.$deps=[],i})(),Yy=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[tl],exports:[tl]})],i),i})(),wP={VERSION:"15.250.1+fix-e9190a67"},NP=2e3,eu=new Set([St.API_ERROR,St.JAVASCRIPT_ERROR,St.CUSTOM_ERROR,St.TEXT_VISIBILITY,St.POINTER_DOWN]),iu=(()=>{class i extends He{constructor(t,e,r,n,a,o,u,c,p,f){super(),this.E=t,this.ot=e,this.$e=r,this.B=n,this.W=a,this.Zt=o,this.It=u,this.nt=c,this.gi=p,this.S=f,this.pi=new Pl,this.Uv=bl(()=>{this.ot.eventsCount()>0&&this.Hv()},NP),this.es=new Kd,this.Ud=!1,this.jv=50*1024,this.Bv=E=>{this.Zt.removeBatchInProgress(`${E.params.sn}.${E.params.pn}.${E.params.ri}`)}}init(){this.ZM(),this.W.onLoad(this.Bv),this.W.onError(this.Bv)}write(t){this.isStarted&&(this.QM(t.recordingEvent)?(this.JM(t.recordingEvent.args[1]),this.pushEvents()):t.isUserEvent?this.we(t.recordingEvent):this.processBrowserEvent(t.recordingEvent))}QM(t){var e;return t.type===St.RECORDING_INFO_EVENT&&((e=t.args)===null||e===void 0?void 0:e[0])===tr.EVENT_TRIGGER_RECORDING}ZM(){this.es.onEvent(t=>{if(Ft(()=>this.Go(tr.PAGE_STATE,t)),t!==Ki.Visible){if(t===Ki.Blur||t===Ki.ExitPageByNavigate)return this.Fv();if(!this.Ud)return this.Ud=!0,Ft(()=>{this.Ud=!1}),t===Ki.Hidden?this.Fv():this.tN()}})}Fv(){this.gi.flush(),this.Zt.saveBatchesInProgress();let t=this.ot.getEvents();if(t.length===0)return;this.Go(tr.PENDING_EVENTS,this.nt.pendingEvents);let e=this.W.getQueryParams();e.rst=this.getRecordingStartTimestamp(),this.$e.setLastEvent(t[t.length-1].date),e.let=this.getRecordingLastEventTimestamp();let r=this.ot.getCurrentRequestIndex(),n=r.getCurrentIndex();e.ri=n.toString(),this.It.removeQueryParams(),this.It.setQueryParams(e);let a=this.ot.getEvents(),o=Ss(a);if(o.length>this.jv){let u=l(a,xt(p=>eu.has(p.type)));if(u.length>0){let p=Ss(u);this.It.send(p)||this.Zt.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:Vt(Z({},e),{datatype:"json"}),events:p}),r.increment()}let c=l(a,xt(p=>!eu.has(p.type)));if(c.length>0){e.ri=r.getCurrentIndex().toString();let p=Ss(c);this.Zt.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:Vt(Z({},e),{datatype:"json"}),events:p}),r.increment()}}else this.It.send(o)||this.Zt.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:Vt(Z({},e),{datatype:"json"}),events:o}),r.increment();this.It.removeQueryParams(),this.ot.clearEvents()}tN(){this.gi.flush();let t=this.W.getQueryParams();this.Zt.saveBatchesInProgress(),t.rst=this.getRecordingStartTimestamp(),delete t.ri,t.hlm="true",this.It.removeQueryParams();let e=this.ot.getEvents();if(e.length===0){delete t.let,delete t.rst,this.It.setQueryParams(t),this.It.send(),this.It.removeQueryParams();return}this.Go(tr.PENDING_EVENTS,this.nt.pendingEvents),this.$e.setLastEvent(e[e.length-1].date),t.let=this.getRecordingLastEventTimestamp(),this.It.setQueryParams(t);let r=this.ot.getEvents(),n=Ss(r);if(n.length>this.jv){let a=l(r,xt(u=>eu.has(u.type)));if(a.length>0){let u=Ss(a);this.It.send(u)||this.Zt.save({key:`${t.sn}.${t.pn}.last`,metadata:Vt(Z({},t),{datatype:"json"}),events:u})}else delete t.let,delete t.rst,delete t.ri,this.It.removeQueryParams(),this.It.setQueryParams(t),this.It.send(),this.It.removeQueryParams();let o=l(r,xt(u=>!eu.has(u.type)));if(o.length>0){t.rst=this.getRecordingStartTimestamp(),t.let=this.getRecordingLastEventTimestamp();let u=this.ot.getCurrentRequestIndex(),c=u.getCurrentIndex();t.ri=c.toString();let p=Ss(o);this.Zt.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:Vt(Z({},t),{datatype:"json"}),events:p}),u.increment()}}else this.It.send(n)||(this.Zt.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:Vt(Z({},t),{datatype:"json"}),events:n}),this.ot.getCurrentRequestIndex().increment());this.It.removeQueryParams(),this.ot.clearEvents()}onIframeRecordingUserEvent(t){if(this.isStarted)for(let e of t)this.we(e)}onIframeRecordingBrowserEvent(t){if(this.isStarted)for(let e of t)this.processBrowserEvent(e)}processBrowserEvent(t){this.B.isCurrentPageviewValid()&&this.Z(t)}we(t){this.B.refreshSession(),this.B.isSessionValid()&&(this.Z(t),this.eN(t)&&this.sN())}eN(t){var e;return t.type===St.RECORDING_INFO_EVENT&&((e=t.args)===null||e===void 0?void 0:e[0])===tr.CONSENT_FOR_SESSION_WITHDRAWN}sN(){this.clearStates(),this.stop(),this.Zt.stop(),this.S.emitRecordingContextChange()}Z(t){let e=this.ot.addEvent(t);this.Gv(t,e),this.iN(t)||this.ot.isThresholdReached()?this.pushEvents():this.ot.
26isFull()&&this.Uv()}iN(t){return t.type===St.DOM_INITIAL_STATE}Gv(t,e){this.E.emitDebugEvents&&this.pi.emit("recordingEvent",Vt(Z({},t),{typeName:St[t.type],params:{sn:this.W.getQueryParams().sn,pn:String(e)}}))}onStart(){this.Go(tr.TAG_VERSION,wP.VERSION),this.Go(tr.PAGE_STATE,D.visibilityState),this.es.start(),this.initStates(),this.gi.start(),this.E.emitDebugEvents&&this.pi.emit("replayRecordingStarted")}onStop(){this.es.stop(),this.gi.stop()}clearStates(){this.gi.flush(),this.Uv.cancel(),this.pushEvents(),this.W.removeQueryParams()}initStates(){this.$e.setStart(mt.now()),this.ot.getCurrentRequestIndex().reset(),this.W.initQueryParams()}pushEvents(){this.ot.eventsCount()>0&&(this.isStarted?this.Hv():this.ot.clearEvents())}Hv(){if(!this.B.isCurrentPageviewValid())return;let t=this.ot.getOrderedBatchSlots();for(let e of t){let r=e.batch.getEvents();if(!r.length)continue;this.$e.setLastEvent(r[r.length-1].date);let n=e.metadata.requestIndex,a=n.getCurrentIndex(),o=this.$e.start>this.$e.lastEvent?r[0].date:this.$e.start;this.W.setQueryParams({pn:String(e.metadata.pageNumber),ri:a.toString(),rst:o.toString(),let:this.getRecordingLastEventTimestamp()});let u=this.W.getQueryParams();this.Zt.addBatchInProgress(`${u.sn}.${u.pn}.${a}`,Z({},this.W.getQueryParams()),r),this.W.send(r),n.increment(),e.batch.clearEvents(),this.zv&&this.zv()}this.ot.clearEmptyBatchSlots()}JM(t){t===Wr.ETR_SESSION?this.W.setQueryParams({[i.rN]:i.Wv}):t===Wr.ETR_PAGE&&this.W.setQueryParams({[i.nN]:i.Wv})}clearEvents(){this.ot.clearEvents()}onRecordingRequestSent(t){this.zv=t}getRecordingStartTimestamp(){return this.$e.start.toString()}getRecordingLastEventTimestamp(){return this.$e.lastEvent.toString()}Go(t,e){if(!this.E.emitRecordInfoEvents)return;let r={date:mt.now(),type:St.RECORDING_INFO_EVENT,args:e==null?[t]:[t,e]},n=this.ot.addEvent(r);this.Gv(r,n)}}return i.nN="etrp",i.rN="etrs",i.Wv="1",i})(),sn=(()=>{let i;return(function(s){s[s.NOT_STARTED=0]="NOT_STARTED",s[s.OPEN_IN_PROGRESS=1]="OPEN_IN_PROGRESS",s[s.OPEN_FAILED=2]="OPEN_FAILED",s[s.READY=3]="READY"})(i||(i={})),i})(),PP=(()=>{class i{constructor(t,e,r){this.nn=t,this.oN=r,this.Er=sn.NOT_STARTED,this.Fc=[],this.Vd=0,this.aN=self.origin,this.Se=typeof v=="object"?"":"worker-",this.Ce=new Jd(e),this.Ci()}Ci(){return yt(this,null,function*(){yield this.qv(),this.Er===sn.READY?this.cN():this.oN(this.Fc)})}cN(){l(this.Fc,et(t=>{this.save(t)})),this.Fc=[]}save(t){return yt(this,null,function*(){try{if(this.Er===sn.OPEN_IN_PROGRESS)return l(this.Fc,I(t)),!1;if(this.Er!==sn.READY||this.Ce.isThresholdReached())return!1;let{key:e,metadata:r,events:n}=t;return this.Ce.addString(e),typeof n=="string"?this.Ce.addString(n):this.Ce.addArrayBuffer(n),this.Ce.isThresholdReached()?!1:(yield this.$t.put(`${this.aN}/${e}`,new Response(n,{headers:r})),!0)}catch(e){return!1}})}recover(t){return yt(this,null,function*(){!this.$t&&(yield this.qv(),this.Er!==sn.READY)||this.lN(t)})}qv(){return yt(this,null,function*(){try{this.Er=sn.OPEN_IN_PROGRESS,this.$t=yield self.caches.open(`${this.Se}${this.nn}`),this.Er=sn.READY}catch(t){this.Er=sn.OPEN_FAILED}})}lN(t){return yt(this,null,function*(){try{if(this.Vd++,this.Vd>1)return;let e=yield this.$t.keys();if(e.length===0)return;let r=yield this.$t.matchAll(),n=l(r,$t(o=>{let u={};o.headers.forEach((p,f)=>{u[f]=p}),delete u["content-type"];let c=u.datatype;return delete u.datatype,c==="json"||c==="base64"?o.text().then(p=>({metadata:u,events:p})):o.arrayBuffer().then(p=>({metadata:u,events:p}))})),a=yield Promise.all(n);yield Promise.all(l(e,$t(o=>this.$t.delete(o)))),t(a),this.Ce.reset()}catch(e){}finally{this.Vd--}})}}return i})(),kP=(()=>{class i{constructor(t){this.Gc={},this.Ce=new Jd(t)}save(t){return yt(this,arguments,function*({key:e,metadata:r,events:n}){return this.Ce.isThresholdReached()||(this.Ce.addString(e),typeof n=="string"?this.Ce.addString(n):this.Ce.addArrayBuffer(n),this.Ce.isThresholdReached())?!1:(this.Gc[e]={metadata:r,events:n},!0)})}recover(t){let e=[];l(this.uN(),et(r=>{let n=this.Gc[r];n!==void 0&&(delete n.metadata.datatype,l(e,I(n)),this.hN(r))})),e.length!==0&&(t(e),this.Ce.reset())}uN(){return Object.keys(this.Gc)}hN(t){delete this.Gc[t]}}return i})(),el=(()=>{class i{constructor(t){try{this.dN(t)}catch(e){this.Hd()}}dN(t){caches?this.fN(t):this.Hd()}save(t){return Promise.resolve(this.zc.save(t))}recover(t){this.zc.recover(t)}fN(t){this.zc=new PP(t,i.Yv,e=>{this.Hd(e)})}Hd(t){this.zc=new kP(i.Yv),t&&l(t,et(e=>{this.zc.save(e)}))}}return i.Yv=1024*1024*16,i})(),OP="T",sp=(()=>{class i extends He{constructor(t,e,r){super(),this.ee=t,this.It=e,this.W=r,this.zo={},this.gN=n=>{if(n.length!==0)for(let a of n){let{metadata:o,events:u}=a;this.pN(o.rt)&&this.W.send(u,o)}},l(v,ni("focus",()=>{this.recover()}))}onStart(){this.zo={}}onStop(){}recover(){this.ee.recover(this.gN)}addBatchInProgress(t,e,r){this.zo[t]={metadata:Z({},e),events:r}}removeBatchInProgress(t){delete this.zo[t]}sendLastMessageBeacon(){let t=this.W.getQueryParams(),{ri:e,rst:r,let:n}=t,a=gS(t,["ri","rst","let"]);a.hlm="true",this.It.setQueryParams(a),this.It.send()}pN(t){return!!t&&!t.includes(OP)}saveBatchesInProgress(){l(Object.keys(this.zo),et(t=>{let{metadata:e,events:r}=this.zo[t];this.ee.save({key:`${e.sn}.${e.pn}.${e.ri}`,metadata:Vt(Z({},e),{datatype:"json"}),events:Ht.stringify(r)})}))}save(t){this.ee.save(t)}}return i.$deps=[el,en,As],b([J("RecordingRecovery")],i.prototype,"recover",null),i})(),Zy=(()=>
26{class i{constructor(t,e,r,n,a,o,u,c,p,f,E){this.C=t,this.be=e,this.S=r,this.it=n,this.mN=a,this.Bt=o,this.Lo=u,this.Ue=c,this.Zt=p,this.Xr=f,this.W=E,this.Wc=null}onInit(){this.Zi()}flush(t){t?this.Ue.pushEvents():Ft(()=>this.Ue.pushEvents(),50)}isRecording(){return this.C.hasValidSession()&&this.Ue.isStarted}getRecordingStartTimestamp(){return this.Ue.getRecordingStartTimestamp()}getStaticResourceManagerStatus(){var t,e;return(e=(t=this.Bt.getService())===null||t===void 0?void 0:t.getStatus())!==null&&e!==void 0?e:null}isReplayRecordedForUrl(){return this.C.isReplayRecorded()&&!this.be.isUrlExcludedForSessionReplay()}activateOnlineAssetsOnNextPageview(){var t;(t=this.Bt.getService())===null||t===void 0||t.activateOnlineAssetsOnNextPageview(),this.S.emitRecordingContextChange()}onAfterNaturalPageView(){let t=this.Bt.getService();this.be.isUrlExcludedForSessionReplay()?t==null||t.resetOnlineAssetsOnPageview():t==null||t.updateOnlineAssetsOnPageview(),t==null||t.initState()}onStartTracking(){this.Zt.recover(),this.Zi(),this.C.isReplayRecorded()&&!this.be.isUrlExcludedForSessionReplay()&&(this.qc(),this.Wc||(this.Wc=new U0(()=>ot.counters.featureUsage.count("form-associated-custom-elements")),this.Wc.start()))}onArtificialPageViewEnd(){this.C.isReplayRecorded()&&!this.be.isUrlExcludedForSessionReplay()&&this.Zt.sendLastMessageBeacon(),this.Ue.clearStates(),this.Yc()}onAfterArtificialPageView(){var t,e;this.Zi(),this.C.isReplayRecorded()&&!this.be.isUrlExcludedForSessionReplay()?((t=this.Bt.getService())===null||t===void 0||t.updateOnlineAssetsOnPageview(),this.qc()):(e=this.Bt.getService())===null||e===void 0||e.resetOnlineAssetsOnPageview()}onBeforeSessionRenewal(){this.Ue.clearStates(),this.Yc()}onOptout(){var t;this.Yc(),(t=this.Wc)===null||t===void 0||t.stop()}onReplayUnanonymizationConsentGranted(){this.Zi(),this.S.emitRecordingContextChange()}onReplayUnanonymizationConsentWithdrawn(){this.Zi(),this.S.emitRecordingContextChange()}onCollectStateChange(t,e){t===Ct.QUOTA_REACHED||t===Ct.ANALYTICS_ONLY&&e===_r.ETR_OFF?(this.Ue.clearEvents(),this.Yc()):(this.W.setQueryParams({rt:this.C.getRecordingTypes().join(",")}),this.Ue.pushEvents(),this.Lo.onCollectStateChange(t,e))}onTargetingRulesMatched(){this.C.isReplayRecorded()&&!this.be.isUrlExcludedForSessionReplay()&&!this.isRecording()&&this.qc()}onAfterReplayRecordingConsentGranted(){this.C.isReplayRecorded()&&!this.be.isUrlExcludedForSessionReplay()&&this.qc()}qc(){this.Ue.start(),this.Zt.start(),this.S.emitRecordingContextChange(Sa.RecordingStarted)}Yc(){this.Ue.stop(),this.Zt.stop(),this.S.emitRecordingContextChange(Sa.RecordingStopped)}Zi(){var t;let e=this.it.shouldUseAnonymization();this.Xr.setAnonymization(e),this.Xr.setAnonymizeDigits(this.it.shouldMaskNumbers()),(t=this.mN.get())===null||t===void 0||t.setAnonymization(e)}}return i.$deps=[xe,kn,At,Xe,ip,tl,Jo,iu,sp,go,As],b([Di("Recording.onStartTracking")],i.prototype,"onStartTracking",null),i})(),Ky=(()=>{class i extends Wi{constructor(t,e,r){super(),this.E=t,this.C=e,this.be=r,this.$s=null}onStart(){let t=this.$s;this.$s=null,t&&this.produceEvent(t)}onStop(){this.$s=null}onReplayUnanonymizationConsentGranted(){this.produceEvent(this.Bi("UNANONYMIZED_CONSENT_GRANTED"))}onReplayUnanonymizationConsentWithdrawn(){this.produceEvent(this.Bi("UNANONYMIZED_CONSENT_WITHDRAWN"))}onAfterReplayRecordingConsentGranted(){if(!this.E.emitRecordInfoEvents||!this.C.isReplayRecorded()||this.be.isUrlExcludedForSessionReplay())return;let t=this.Bi("CONSENT_FOR_SESSION_GRANTED");this.isStarted?this.produceEvent(t):this.$s=t}onAfterReplayRecordingConsentWithdrawn(){!this.E.emitRecordInfoEvents||!this.isStarted||this.produceEvent(this.Bi("CONSENT_FOR_SESSION_WITHDRAWN"))}Bi(t){return{type:"ConsentRecordingEvent",timestamp:mt.now(),kind:t}}}return i.$deps=[lt,xe,kn],i})(),Xy=(()=>{class i extends Wi{onStart(){}onAfterNaturalPageView(){this.produceEvent({type:"Lifecycle",kind:"afterNaturalPageView"})}onAfterArtificialPageView(){this.produceEvent({type:"Lifecycle",kind:"afterArtificialPageView"})}}return i.$deps=[],i})(),Qy=(()=>{class i extends Wi{constructor(t,e){super(),this.Id=t,this.jd=e,this.yi=[]}onInit(){this.Id.addListener(this),this.jd.addListener(this)}onStart(){let t=this.yi;this.yi=[];for(let e of t)this.produceEvent(e)}onStop(){this.yi=[]}onIframeJavascriptError(t){this.Xv(t)}onIframeCustomError(t){this.Kv(t)}onCustomJavaScriptErrorEvent(t){this.Xv(t)}onCustomErrorEvent(t){this.Kv(t)}Xv(t){this.Zv({type:"JSError",timestamp:mt.now(),message:t.message,filename:t.filename,lineno:t.lineno,colno:t.colno})}Kv(t){this.Zv({type:"CustomError",timestamp:mt.now(),message:t.message,attributes:t.attributes})}Zv(t){this.isStarted?this.produceEvent(t):l(this.yi,I(t))}}return i.$deps=[er,Qs],i})(),il=(()=>{class i{constructor(){this.Yi=[]}add(t){l(this.Yi,I(t))}getAll(){return this.Yi}}return i.$deps=[],i})(),rp=(()=>{let i=class{};return i.$deps=[],i=b([q({providers:[il],exports:[il]})],i),i})(),MP=null,DP=null,Jy=(()=>{class i extends Wi{constructor(){super(...arguments),this.yi=[]}onStart(){let t=this.yi;this.yi=[];for(let e of t)this.produceEvent(Z({type:"EtrEvent"},e))}onEventTriggerRecording(t,e){let r={eventName:t,eventType:e};if(!this.isStarted){l(this.yi,I(r));return}this.produceEvent(Z({type:"EtrEvent"},r))}}return i.$deps=[],i})(),xP=(()=>{let i=class{constructor(s,t,e){this.K=s,this.jt=t,this.Jv=e}onInit(){this.K.addListener(this.Jv),this.jt.add(this.Jv)}};return i.$deps=[er,Pa,Jy],i=b([q({imports:[it,Th],providers:[Jy]})],i),i})(),LP=(()=>{let i=class{constructor(s,t,e){this.Qv=s,this.ke=t,this.jt=e}onInit(){let s=new _C,t=new CC(e=>this.Qv.get().anonymize(e));this.jt.add(s),this.ke.add(t)}};return i.$deps=[qh,il,Pa],i=b([q({imports:[it,Md,rp,Th]})],i),i})(),UP=LP,$P=null,tS=(()=>{class i extends Wi{constructor(){super(...arguments),this.Fd=[]}onStart(){let t=this.Fd;this.Fd=[];for(let e of t)this.produceEvent({type:"PageEvent",eventName:e})}onPageEvent(t){if(!this.isStarted){l(this.Fd,I(t));return}this.produceEvent({type:"PageEvent",eventName:t})}}return i.$deps=[],i})(),VP=(()=>{let i=class{constructor(s,t,e){this.K=s,this.jt=t,this.sS=e}onInit(){this.K.addListener(this.sS),this.jt.add(this.sS)}};return i.$deps=[er,Pa,tS],i=b([q({imports:[it,Th],providers:[tS]})],i),i})(),sl=(()=>{class i{constructor(){this.iS=0,this.rS=0}setStart(t){this.iS=t}get start(){return this.iS}setLastEvent(t){this.rS=t}get lastEvent(){return this.rS}}return i})(),eS=(()=>{class i{constructor(){this.Xc=1}getCurrentIndex(){return this.Xc}increment(){this.Xc+=1}reset(){this.Xc=1}getRequestParameters(){return{ri:`${this.Xc}`}}}return i})(),iS=2*1e3*1024,FP=200,sS=(()=>
26{class i{constructor(t=iS){this.Gt=[],this.Gd=new Jd(t)}addEvent(t){this.Gd.addString(Ss(t)),l(this.Gt,I(t))}addEventByTimestamp(t){let e=0;for(;e<this.Gt.length&&!(this.Gt[e].date>=t.date);e+=1);l(this.Gt,Za(e,0,t))}eventsCount(){return this.Gt.length}clearEvents(){this.Gd.reset(),this.Gt=[]}isFull(){return this.eventsCount()>=FP}isThresholdReached(){return this.Gd.isThresholdReached()}getEvents(){return this.Gt}extractEvents(...t){let e=[],r=[];return l(this.Gt,et(n=>{l(t,Dt(n.type))!==-1?l(e,I(n)):l(r,I(n))})),this.Gt=r,e}stringifyEvents(){return Ss(this.Gt)}wO(t){t.type===St.INITIAL_DOM&&(v.CSDomSerialized=v.CSDomSerialized?v.CSDomSerialized+1:1)}}return b([Di("RecordingBatch.addEvent")],i.prototype,"addEvent",null),i})(),HP=3,BP=8,su=(()=>{class i{constructor(t,e=iS,r=HP){this.C=t,this.nS=e,this.zd=r,this.Kc={}}addEvent(t){let e=this.Wd();return e.batch.addEvent(t),e.metadata.pageNumber}addEventByTimestamp(t){this.bN().addEventByTimestamp(t)}eventsCount(){return this.vr().reduce((t,e)=>t+e.batch.eventsCount(),0)}isFull(){return l(this.vr(),ye(t=>t.batch.isFull()))}isThresholdReached(){let t=this.vr();return t.length>=this.zd||l(t,ye(e=>e.batch.isThresholdReached()))}getEvents(){return this.getOrderedBatchSlots().reduce((t,e)=>l(t,fu(e.batch.getEvents())),[])}extractEvents(...t){return this.getOrderedBatchSlots().reduce((e,r)=>l(e,fu(r.batch.extractEvents(...t))),[])}stringifyEvents(){return Ss(this.getEvents())}clearEvents(){l(this.vr(),et(t=>t.batch.clearEvents()))}clearEmptyBatchSlots(){let t=this.getOrderedBatchSlots();for(let e=0;e<t.length-1;e++)t[e].batch.eventsCount()===0&&delete this.Kc[t[e].metadata.pageNumber]}vr(){return m0(this.Kc)}getOrderedBatchSlots(){return this.vr().sort(zP)}Wd(){var t;let e=((t=this.C.getSession())===null||t===void 0?void 0:t.pageNumber)||0;if(e<=0)return{batch:new sS(this.nS),metadata:{pageNumber:0,requestIndex:new eS}};let r=this.Kc[e];if(r)return r;let n={batch:new sS(this.nS),metadata:{pageNumber:e,requestIndex:new eS}};return this.Kc[e]=n,this.vr().length>Math.max(this.zd,BP)&&K.warn(`RecordingBatchGroup: max number of slots overflowed(${this.vr().length}/${this.zd})`),n}bN(){return this.Wd().batch}getCurrentRequestIndex(){return this.Wd().metadata.requestIndex}}return i.$deps=[xe,null,null],i})();function zP(i,s){return i.metadata.pageNumber-s.metadata.pageNumber}var GP="csPersisted",rS="v2/recording",WP=(()=>{let i=class{constructor(s,t,e){this.RN=s,this.$e=t,this.C=e}onInit(){let s=this;
26this.RN.addParamsEnhancer({enhanceRequestParams(t){t.let=s.$e.lastEvent.toString(),t.rst=s.$e.start.toString(),t.rt=s.C.getRecordingTypes().join(",")}})}};return i.$deps=[Ko,sl,xe],i=b([q({imports:[it,Le,ls],providers:[ee(el,()=>new el(GP)),ee(As,(s,t,e,r)=>t.create(`${s.getRecordingUri()}/${rS}`,"byteArray",e,void 0,r),[lt,Dn,el,Ko]),ee(en,s=>new en(`${s.getRecordingUri()}/${rS}`),[lt]),ee(sl,()=>new sl),ee(su,s=>new su(s),[xe])],exports:[el,As,en,sl,su]})],i),i})(),jP=["replay:link:generate"],qP=(()=>{let i=class{constructor(s,t,e){this.w=s,this.TN=t,this._i=e}onInit(){this.w.register(jP,(s,t)=>{this.TN.handleCommand(Vt(Z({},s),{recordingStartTimestamp:this._i.getRecordingContext().recordingStartTimestamp}),t)})}};return i.$deps=[Kt,Pd,Ha],i=b([q({imports:[it,tu,ep],providers:[Pd],exports:[Pd]})],i),i})(),YP=(()=>{let i;return(function(s){s[s.NOT_EXIST=2]="NOT_EXIST"})(i||(i={})),i})(),ZP=8*1024*1024,KP=(()=>{class i extends He{constructor(t,e,r,n,a){super(),this.Xi=t,this.oS=e,this.Od=r,this.Kr=n,this.CN=a,this.qd={},this.aS=new Set,this.Yd=!1,this.Qi=!1,this.qo=!1}initState(){bg()&&(this.Gs=this.Od.getRequestParameters({basicOnly:!0}),this.AN=`${this.oS}/exist?${co.toQuery(this.Gs)}`,this.IN=`${this.oS}/putTag?${co.toQuery(this.Gs)}`,this.cS=yl(()=>yt(this,null,function*(){if(this.Yd){this.cS();return}this.Yd=!0;try{yield this.PN()}finally{this.Yd=!1}}),300),this.Xi.onSendStaticResource(t=>{this.lS(t)}))}onStart(){this.Qi&&(this.Kr.enableOnlineAssets(),this.Qi=!1)}onStop(){this.Kr.disableOnlineAssets()}onRecordingContextChange(t){t===Sa.RecordingStarted?this.start():t===Sa.RecordingStopped&&this.stop()}activateOnlineAssetsOnNextPageview(){this.qo=!0}resetOnlineAssetsOnPageview(){this.Qi=!1,this.qo=!1}updateOnlineAssetsOnPageview(){this.qo&&(this.Qi=!0,this.qo=!1)}getStatus(){return{isStarted:this.CN&&Cr.isSupported(),onlineAssets:{activated:this.Kr.isOnlineAssetsActivated(),enabledOnNextPageview:this.qo}}}onIframeStaticResource(t){this.lS(t)}lS(t){this.uS(t.resource.hash,t.resource.data),t.nestedResources&&t.nestedResources.length>0&&l(t.nestedResources,et(e=>{this.uS(e.hash,e.data)}))}uS(t,e){this.aS.has(t)||(this.aS.add(t),this.qd[t]=e,this.cS())}PN(){return yt(this,null,function*(){let t=this.qd;this.qd={};let e=yield this.MN(t);if(!e.length)return;let r=this.NN(e);yield Promise.all(l(r,$t(n=>v.fetch(this.IN,{method:"POST",body:n}))))})}ON(t){return yt(this,null,function*(){try{let e=Object.keys(t);if(!e.length)return[];let r={projectId:this.Gs.pid,filter:YP.NOT_EXIST,hashes:e,touch:!0};return yield(yield v.fetch(this.AN,{method:"POST",body:Ht.stringify(r)})).json()}catch(e){return[]}})}MN(t){return yt(this,null,function*(){let e=[],r=yield this.ON(t);return l(r,et(n=>{let a=t[n];a?l(e,I({hash:n,data:a})):K.warn("SRM: received unknown hash: "+n)})),e})}NN(t){let e=0,r=[new FormData];for(let n of t){let{data:a,hash:o}=n,u=r.length-1;if(e=e+a.size,e<ZP)r[u].append("",a,o);else{let c=new FormData;c.append("",a,o),e=a.size,l(r,I(c))}}return r}}return i})(),XP=(()=>{let i=class{constructor(s,t,e,r,n,a){this.E=s,this.Gs=t,this.jd=e,this.S=r,this.ke=n,this.Bt=a}onInit(){if(!Cr.isSupported())return;let s=new Cr,t=new Bo,e=new KP(t,this.E.getStaticResourceManagerUri(),this.Gs,s,this.E.useStaticResourceManager);this.jd.addListener(e),this.S.addListener(e),this.ke.add(s),this.Bt.setProcessor(s),this.Bt.setConsumer(t),this.Bt.setService(e)}};return i.$deps=[lt,Ko,Qs,At,il,tl],i=b([q({imports:[it,ls,rp,Yy]})],i),i})(),QP=XP,JP=null;function t1(i){var s,t,e;let r=(e=(t=(s=i.experimental)===null||s===void 0?void 0:s.sessionReplay)===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0?void 0:e.filterByHostSelector;r&&ne(r,n=>{ui(n)&&ys.setShadowRootFilter(a=>{try{return Li.call(a.host,n)}catch(o){return!1}})})}var e1=(()=>{let i=class{constructor(s,t,e,r,n,a,o,u,c,p,f,E,g,R,k){this.ps=s,this.Ue=t,this.w=e,this.S=r,this.K=n,this.F=a,this.yd=o,this.Lo=u,this.hS=c,this.dS=p,this.ds=f,this.Ih=E,this.jt=g,this.kN=R,this.nt=k,this.Eo=!1,this.Us=[]}onInit(){this.Us=[this.dS,this.ds,new cm,new Ho,new dm,this.Ih,this.kN,this.hS,...this.jt.getAll()],this.w.register(Hc,()=>this.ps.isReplayRecordedForUrl()),this.w.register(ph,()=>this.ps.activateOnlineAssetsOnNextPageview()),this.w.register(Bc,()=>
26this.ps.getStaticResourceManagerStatus()),this.S.addListener(this.hS),this.S.addListener(this.ps),this.S.addListener(this),this.S.addListener(this.dS),this.yd.setProvider(this.ps),this.F.addListener(this.Ue),this.K.addListener(this.Lo)}onRecordingContextChange(s){if(s===Sa.RecordingStarted){if(this.Eo){this.nt.restartProducers(this.Us);return}this.Eo=!0,ne(this.Us,t=>this.nt.addProducer(t))}}};return i.$deps=[Zy,iu,Kt,At,er,Qs,Jh,Jo,Ky,Xy,Tr,Fh,Pa,Qy,Ni],i=b([q({imports:[it,Le,Qo,tu,Qd,jo,Gy,ep,lP,Md,oN,oP,rp,Th,Yy,IP,xP,VP,DP,QP,UP,MP,JP,$P,qP,WP,Ud],providers:[Fh,sp,Zy,Qy,Ky,Xy,ee(go,(s,t,e)=>new go(s.shouldUseAnonymization(),t.whitelistedAttributes,e,t.anonymizeDigits),[Xe,lt,Qe]),ee(iu,(s,t,e,r,n,a,o,u,c,p,f,E,g)=>{let R=[new mm,new fm];ne(c.getAll(),z=>l(R,I(z))),l(R,I(e)),l(R,I(new Em(u))),l(R,I(new am)),ne(R,z=>g.addProcessor(z));let k=new FE,X=new UE(o,p.getConsumer()),U=new iu(s,f,E,t,n,r,a,g,X,o);return g.pipeThrough(k).pipeThrough(X).pipeTo(U),U.init(),t1(s),U},[lt,Ns,go,sp,As,en,At,Tn,il,tl,su,sl,Ni])]})],i),i})(),i1=(()=>{let i=class{constructor(s){this.w=s}onInit(){this.w.register(Hc,()=>!1),this.w.register(Bc,()=>null),this.w.register(ph,()=>{})}};return i.$deps=[Kt],i=b([q({imports:[it]})],i),i})(),s1=Nm()?e1:i1,r1=s1,n1=(()=>{class i extends He{constructor(t,e,r){super(),this.fS=t,this.Xd=e,this.A=r}init(){this.Kd=new uT(K),this.fS&&this.Kd.setTargetingRules(this.fS)}onStart(){}checkTargetingRules(){let t=this.A.getAnonymizedUrl();this.Xd(this.Zd(t,"url"))}onStop(){}onTargetingRulesArtificialPageview(t){this.isStarted&&this.Xd(this.Zd(t,"url"))}onExternalEvent(t){this.isStarted&&this.Xd(this.Zd(t.name,"trigger"))}Zd(t,e){var r,n;return e==="url"&&j(t)&&!((r=this.Kd)===null||r===void 0)&&r.matchUrl(t)?!0:!!(e==="trigger"&&!((n=this.Kd)===null||n===void 0)&&n.matchTrigger(t))}}return i})(),ru=(()=>{class i{constructor(t,e,r,n,a,o){this.E=t,this.S=e,this.Oe=r,this.A=n,this.C=a,this.Fs=o,this.wi=!1,this.Qd=!1,this.gS=(u=!1)=>{this.wi&&this.E.isSMB&&this.Fs.allowStartDataCollection({fromSessionRenewal:u}),this.E.startMode===Xl.Automatic&&this.Fs.startDataCollection({fromSessionRenewal:u})},this.DN=u=>{this.wi||(this.wi=u,this.pS(),this.gS(this.Qd))}}LN(){this._s||(this.E.isSMB&&this.Fs.disableStartDataCollection(),this._s=new n1(this.E.recordTargetingRules,this.DN,this.A),this._s.init())}er(){var t;(t=this._s)===null||t===void 0||t.start()}onInitTracking(){this.LN(),this.er()}stop(){var t;(t=this._s)===null||t===void 0||t.stop()}onTargetingRulesArtificialPageview(t){var e;(e=this._s)===null||e===void 0||e.onTargetingRulesArtificialPageview(t)}onExternalEvent(t){var e;(e=this._s)===null||e===void 0||e.onExternalEvent(t)}maybeStartDataCollection(t){if(!this._s)return!1;if(t){this.wi=!1,this.er(),this.Qd=!0;try{this._s.checkTargetingRules()}finally{this.Qd=!1}return!0}return this.xN()?(this.wi=!0,this.gS(),this.stop(),!0):(this._s.checkTargetingRules(),!0)}onAfterArtificialPageView(){var t;(t=this._s)===null||t===void 0||t.checkTargetingRules()}onCollectStateChange(t){if(this.mS(t)){this.stop();return}let e=t===Ct.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING;!this.wi&&e||Ft(()=>this.ES(t),0)}onStartTracking(){this.pS()}xN(){let t=this.C.getSession();return!!(t&&this.mS(t.collectState))}mS(t){return t===Ct.RECORDING_RULES_TARGETING||t===Ct.ANALYTICS_ONLY_RULES_TARGETING}pS(){var t;if(this.wi){let e=this.C.getSession(),r=this.Oe.getInitialCollectState();this.ES((t=e==null?void 0:e.collectState)!==null&&t!==void 0?t:r),this.Fs.isDataCollectionStarted()&&this.S.emitTargetingRulesMatched()}}ES(t){let e=lT[this.wi?"MATCHED":"MISSED"][t];e&&this.S.emitCollectStateChange(e,_r.ETR_OFF)}}return i.$deps=[lt,At,ws,ti,xe,Fa],i})(),a1=(()=>{let i=class{constructor(s,t,e,r){this.Et=s,this.S=t,this.K=e,this.E=r}onInit(){this.E.hasTargetingRules()&&(this.S.addListener(this.Et),this.K.addListener(this.Et))}};return i.$deps=[ru,At,er,lt],i=b([q({imports:[it,Le,Vy,jd,Yv],providers:[ru],exports:[ru]})],i),i})(),np=(()=>{class i{constructor(t,e,r,n,a,o,u,c){this.S=t,this.w=e,this.ir=r,this.B=n,this.Oe=a,this.Fs=o,this.$N=u,this.ve=c,this.UN=p=>{this.S.emitBeforeSessionRenewal(),this.Oe.refresh().then(()=>{this.Oe.canTrack()&&(this.Co(!0,p),this.S.emitAfterSessionRenewal())})}}start(){this.ir.isActive()||(this.B.onSessionExpired(t=>{this.UN(t)}),this.S.emitInitTracking(),this.ve.task(()=>{this.Co()}))}Co(t=!1,e=!1){this.w.start(),!this.$N.maybeStartDataCollection(t)&&this.Fs.tryStartAutomaticDataCollection({fromSessionRenewal:t,isRenewedVisitor:e})}}return i.$deps=[At,Kt,Ua,Ns,ws,Fa,ru,Cn],i})(),ap=(()=>{class i{constructor(t,e,r){this.E=t,this.P=e,this.C=r,this.Es=mt.now()}resetStartTime(){this.Es=mt.now()}onBeforeNaturalPageView(){this.P.createOrUpdateVisitor(),this.C.createOrUpdateSession()}onBeforeArtificialPageView(){this.P.createOrUpdateVisitor(),this.C.createOrUpdateSession()}onAfterNaturalPageView(){this.resetStartTime()}onAfterArtificialPageView(){this.resetStartTime()}onOptout(){this.P.removeVisitor(),this.C.removeSession()}onCollectStateChange(t){this.C.updateCollectState(t)}getSessionData(){let{projectId:t}=this.E,e=this.P.getVisitor();e==null&&K.warn("Visitor is null. This happens when a snippet tries to get Session Data before the tag was initialized.");let{id:r,visitsCount:n}=e!=null?e:{},a=this.C.getSession();a===null&&K.warn("Session is null. This happens when a snippet tries to get Session Data before the tag was initialized.");let{pageNumber:o}=a!=null?a:{};return{projectId:t,userId:r,sessionNumber:n,pageNumber:o,relativeTimestamp:mt.now()-this.Es}}}return i.$deps=[lt,ci,xe],i})(),o1=(()=>{let i=class{constructor(s,t,e,r,n,a){this.vS=s,this.w=t,this.S=e,this.C=r,this.P=n,this.B=a}onInit(){this.S.addListener(this),this.w.register(hE,()=>{this.B.abortPendingRefresh(),this.C.removeSession(),this.C.resetPendingReplayConsent()}),this.w.register(uE,()=>this.C.extendSessionPeriodically(),{disableApplyPending:!0}),this.w.register(JI,()=>this.vS.getSessionData(),{disableApplyPending:!0}),this.w.register(cE,()=>{this.P.renewVisitor(),this.C.resetPendingReplayConsent()}),this.w.register(dE,()=>{this.P.resetVisitor()},{disableApplyImmediate:!0})}onInitTracking(){this.S.addListener(this.vS)}};return i.$deps=[ap,Kt,At,xe,ci,Ns],i=b([q({imports:[it,Le],providers:[ap],exports:[ap]})],i),i})(),l1=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,Le,qo,gy,Hy,o1,a1],providers:[np],exports:[np]})],i),i})(),h1=null,wr={invitationDisplayed:"surveyInvitationDisplayed",displayed:"surveyDisplayed",submitted:"surveySubmitted",completed:"surveyCompleted",responseUrl:"surveyResponseUrl"}
26,B1={[wr.invitationDisplayed]:"Survey Invitation Displayed",[wr.displayed]:"Survey Displayed",[wr.submitted]:"Survey Response Submitted",[wr.completed]:"Survey Completed",[wr.responseUrl]:"Survey Response URL"},z1={[wr.invitationDisplayed]:"survey_invitation_displayed",[wr.displayed]:"survey_displayed",[wr.submitted]:"survey_response_submitted",[wr.completed]:"survey_completed"},u1=null,c1=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,Le,qo,ls,Qo,Gy,Hy,r1,AP,bP,vP,GN,u1,h1,l1]})],i),i})(),nS=(()=>{class i{constructor(t,e,r,n,a,o,u){this.Io=t,this.si=e,this.ir=r,this.Ko=n,this.P=a,this.C=o,this.S=u}initTracking(){this.si.setContext(this.P,this.C),this.Ko.compute(t=>{this.jN(t).catch(e=>K.error(e,"boot:trackingState"))})}initNoTracking(){return yt(this,null,function*(){qd&&(yield(yield this.Io.resolve(qd)).start())})}jN(t){return yt(this,null,function*(){if(this.ir.isActive())return;this.S.emitTrackingAllowed();let e=t?np:fy;(yield this.Io.resolve(e)).start()})}}return i.$deps=[tc,mh,Ua,Hd,ci,xe,At],i})(),d1=(()=>{class i extends Ar{constructor(t,e,r,n){super(),this.qu=t,this.N=e,this.Oe=r,this.yS=n}init(){this.qu.assertCanBoot(),this.N.init(),this.Oe.canTrack()?this.yS.initTracking():this.yS.initNoTracking()}}return i.$deps=[rh,Ks,ws,nS],i})(),aS={XDFRAME_VERSION:"1.1.1",XDFRAME_FALLBACK_VERSION:"1.1.0"},G1=aS.XDFRAME_VERSION,W1=aS.XDFRAME_FALLBACK_VERSION,p1={XDFRAME_SINGLE_DOMAIN_VERSION:"1.3.4"},j1=p1.XDFRAME_SINGLE_DOMAIN_VERSION,g1=null,f1=null,m1=null,v1=null,oi=(()=>{let i;return(function(s){s[s.CSQLite=1]="CSQLite",s[s.VoC=2]="VoC",s[s.Cookieless=4]="Cookieless",s[s.CrossDomain=8]="CrossDomain",s[s.Salesforce=16]="Salesforce",s[s.DualCollectionHJReplay=32]="DualCollectionHJReplay",s[s.DualCollectionCSQReplay=64]="DualCollectionCSQReplay",s[s.DeploymentLoadedByClicktale=128]="DeploymentLoadedByClicktale",s[s.DeploymentLoadClicktalePtc=256]="DeploymentLoadClicktalePtc",s[s.DeploymentDualCollectionReview=512]="DeploymentDualCollectionReview",s[s.DeploymentDualCollection=1024]="DeploymentDualCollection",s[s.DeploymentClicktaleEndpoints=2048]="DeploymentClicktaleEndpoints",s[s.HeapSideloadsCS=4096]="HeapSideloadsCS",s[s.CSSideloadsHeap=8192]="CSSideloadsHeap",s[s.HeapDrivesCS=16384]="HeapDrivesCS",s[s.HeapMappingOnly=32768]="HeapMappingOnly",s[s.ShopifyWorker=65536]="ShopifyWorker",s[s.Shopify=131072]="Shopify",s[s.ES6=262144]="ES6",
26s[s.TopTrackerIframe=524288]="TopTrackerIframe",s[s.DualCollection=1048576]="DualCollection"})(i||(i={})),i})(),E1={[rs.LoadedByClicktale]:oi.DeploymentLoadedByClicktale,[rs.LoadClicktalePtc]:oi.DeploymentLoadClicktalePtc,[rs.DualCollectionReview]:oi.DeploymentDualCollectionReview,[rs.DualCollection]:oi.DeploymentDualCollection,[rs.ContentSquareTagClickTaleEndpoints]:oi.DeploymentClicktaleEndpoints},y1={heap_sideloads_cs:oi.HeapSideloadsCS,cs_sideloads_heap:oi.CSSideloadsHeap,heap_drives_cs:oi.HeapDrivesCS,mapping_only:oi.HeapMappingOnly},S1=(()=>{let i=class{constructor(s,t,e){this.E=s,this.S=t,this.Is=e,this.HS=!1}onInit(){this.S.addListener(this)}onStartTracking(){if(!this.HS){this.HS=!0;try{let s=this.EO();s&&ot.counters.tagSegments.set(s)}catch(s){fe.error("TagSegmentModule failed to compute segments:",s==null?void 0:s.message)}}}EO(){var s,t,e;let r=0;this.E.isSMB&&v.hjSiteSettings&&(r|=oi.CSQLite),PR(this.E.voc)&&(r|=oi.VoC),r|=(t=E1[this.E.tagDeploymentMode])!==null&&t!==void 0?t:0;let n=(s=this.E.heapEnvironment)===null||s===void 0?void 0:s.heap_tag_status;n&&(r|=(e=y1[n])!==null&&e!==void 0?e:0),this.E.cookielessTrackingEnabled&&(r|=oi.Cookieless),(this.E.crossDomainSingleIframeTracking||this.E.crossDomainTracking)&&(r|=oi.CrossDomain),this.Is.isInSalesforceContext()&&(r|=oi.Salesforce),MN()&&(r|=oi.DualCollection),v.Shopify&&(r|=oi.Shopify);function a(){return gp(this,null,function*(){yield 1})}return a.constructor.name!=="AsyncGeneratorFunction"&&(r|=oi.ES6),lS===oS&&v.self!==v.top&&(r|=oi.TopTrackerIframe),r}};return i.$deps=[lt,At,fo],i=b([q({imports:[it]})],i),i})(),oS=(()=>{let i=class{};return i.$deps=[],i=b([q({imports:[it,Ah,zv,Le,qo,jo,BN,Gd,Zo,Ry,gy,v1,g1,NN,SE,m1,f1,sd,kN,ls,c1,tE,S1],providers:[rh,ho(Ar,d1),nS,fy,qd],exports:[Ar]})],i),i})(),_1=!1,lS=_1?bc()?wN:IN:oS,R1=null,T1=(()=>{let i=class{constructor(s,t){this.vO=s,this.E=t}onBootstrap(){Ft(()=>{try{hR(()=>this.SO())}catch(s){K.error(s,"trackingTagStartup")}})}SO(){v._uxa=v._uxa||[],this._O(),o0(),this.yO(),U_(),this.vO.start()}_O(){K_((s,t)=>{let e=s.type==="listen"?[Rl.EventListener,s.name]:[Rl.MonkeyPatch,s.method];dg(t,e)})}yO(){var s,t;!((t=(s=this.E)===null||s===void 0?void 0:s.experimental)===null||t===void 0)&&t.disableMutationObserverProtection&&v.csMutationObserver&&(v.csMutationObserver=u0(v,"MutationObserver"))}};return i.$deps=[jm,lt],i=b([q({imports:[lS,it,SP,R1],providers:[jm]})],i),i})(),hS;(hS=v.CSCurrentScript)!==null&&hS!==void 0||(v.CSCurrentScript=D.currentScript),Wp(K);var C1=xT();fr.yield().then(()=>{if(C1)return UR(T1)}).catch(Uf)});vS()})()})})(document,window,window)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.