//15.134.1-es2019 2025-09-29T19:48:58.626Z (617585dbd4173) var CS_CONF={"isSMB":true,"status":1,"visitorCookieTimeout":33164000000,"sampleRate":100,"replayRecordingRate":100,"validationRate":10,"trackerDomain":"c.ba.contentsquare.net","recordingDomain":"r.contentsquare.net","useMalkaPipeline":1,"ed":"l.contentsquare.net/log/web","eMerchandisingEnabled":0,"mouseMoveHeatmapEnabled":1,"autoInsightsEnabled":0,"customHashIdEnabled":0,"recordingEncryptionEnabled":0,"recordingEncryptionPublicKey":null,"recordingEncryptionPublicKeyId":0,"secureCookiesEnabled":1,"triggerSessionReplayEnabled":0,"dynamicIdRegex":"","replayRecordingUnmaskedUrlRegex":"","replayRecordingMaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegex":null,"tagDeploymentMode":"CONTENTSQUARE","iframesTracking":1,"textVisibilityEnabled":0,"cookielessTrackingEnabled":0,"malkaUrlEnabled":0,"malkaEtrEnabled":0,"pathComputationRules":{"reliableSelectors":[],"uniqueAttributes":[],"uniqueCssSelectors":[]},"asyncSerializerEnabled":1,"pendingInactivityTimeout":5000,"accessibilityEnabled":null,"uxaDomain":"app.contentsquare.com","webviewsTrackingEnabled":0,"useStaticResourceManager":0,"performanceTimingOptions":{"withResource":false,"withNavigation":false},"replayConsentRequiredForSession":0,"eventsApiEnabled":1,"smbConfig":{"useCSTC":true,"useSentry":true},"malkaQuotaServiceDomain":"q.ba.contentsquare.net","malkaRecordingDomain":"k.ba.contentsquare.net","voc":{"siteId":0,"enabled":1},"dynamicConfDomain":"t.contentsquare.net/settings","tagDomain":"t.contentsquare.net"}; if(window.CS_CONF_BASE) for(let p in CS_CONF_BASE) CS_CONF[p] = CS_CONF_BASE[p]; (()=>{var kp=Object.create;var An=Object.defineProperty;var Dp=Object.getOwnPropertyDescriptor;var xp=Object.getOwnPropertyNames;var Lp=Object.getPrototypeOf,Vp=Object.prototype.hasOwnProperty;var Up=(s,r,t)=>r in s?An(s,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[r]=t;var jp=(s,r)=>()=>(s&&(r=s(s=0)),r);var Hp=(s,r)=>()=>(r||s((r={exports:{}}).exports,r),r.exports),Bp=(s,r)=>{for(var t in r)An(s,t,{get:r[t],enumerable:!0})},sa=(s,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of xp(r))!Vp.call(s,i)&&i!==t&&An(s,i,{get:()=>r[i],enumerable:!(e=Dp(r,i))||e.enumerable});return s},gi=(s,r,t)=>(sa(s,r,"default"),t&&sa(t,r,"default")),ul=(s,r,t)=>(t=s!=null?kp(Lp(s)):{},sa(r||!s||!s.__esModule?An(t,"default",{value:s,enumerable:!0}):t,s));var _s=(s,r,t)=>Up(s,typeof r!="symbol"?r+"":r,t);var mi=jp(()=>{{let s=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};s.SENTRY_RELEASE={id:"tag-15.134.1-undefined"}}});var ll=Hp(()=>{mi();var rs={};rs.d=(s,r)=>{for(var t in r)rs.o(r,t)&&!rs.o(s,t)&&Object.defineProperty(s,t,{enumerable:!0,get:r[t]})};rs.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();rs.o=(s,r)=>Object.prototype.hasOwnProperty.call(s,r);rs.r=s=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var yc={};rs.r(yc);rs.d(yc,{getRequestParameters:()=>XE});function bi(s,r){let t;return window.Zone&&typeof window.Zone.__symbol__=="function"&&(t=s[window.Zone.__symbol__(r)]),t!=null?t:s[r]}function Lt(s){return mt(s)&&(typeof s=="number"||s instanceof Number)&&!isNaN(s)}function Os(s){return s===parseInt(s,10)}function L(s){return mt(s)&&(typeof s=="string"||s instanceof csString)}function Ur(s){return typeof s=="boolean"}function He(s){return typeof s=="object"}function mt(s){return typeof s!="undefined"}function Ot(s){return mt(s)&&s!==null}function ft(s){return typeof s=="object"&&s!==null}function Fp(s,r,t){return Os(s)&&s>=r&&s<=t}function ka(s){for(let r in s)return!1;return!0}function we(s){return typeof s=="function"}function Ns(s){return s instanceof Element}function ei(s){return s instanceof Error}function Da(s){let r=s.length;for(let t=0;t{let s;return function(r){r.debug="debug",r.warn="warn",r.implementation="implementation",r.error="error",r.critical="critical"}(s||(s={})),s})(),ia={[yt.debug]:0,[yt.warn]:1,[yt.implementation]:1,[yt.error]:2,[yt.critical]:3},Nt={debug(...s){},warn(...s){},implementation(...s){},error(...s){},critical(...s){},isPerfLoggingActive(){return!1}};function zp(s){Nt=s}var G=s=>(r,t,e)=>{let i=(t==null?void 0:t.toString())||"",n=s||`${r.constructor&&r.constructor.name}.${i}`;if(e){let o=e.value;e.value=function(...c){return si(n,o.bind(this))(...c)}}};function si(s,r){return function(...t){try{let e=r.apply(this,t);return mt(_t.Promise)&&e instanceof _t.Promise?e.then(i=>i,i=>Nt.error(ei(i)?i:new Error(i),s)):e}catch(e){try{Nt.error(ei(e)?e:new Error(e),s)}catch{}}}}function St(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,r,t,e);else for(var c=s.length-1;c>=0;c--)(o=s[c])&&(n=(i<3?o(n):i>3?o(r,t,n):o(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}function Ec(s){let r=new ArrayBuffer(s.length),t=new Uint8Array(r);for(let e=0,i=s.length;ecsString.prototype.padStart.call(t.toString(16),2,"0")),"")}function pl(s){let r=csString.prototype.indexOf.call(s,";base64,")!==-1,t=csString.prototype.indexOf.call(s,","),e=r?[csString.prototype.substring.call(s,0,t-7),csString.prototype.substring.call(s,t+1)]:[csString.prototype.substring.call(s,0,t),csString.prototype.substring.call(s,t+1)];if(!r&&/^%3Csvg/i.test(e[1]))try{e[1]=decodeURIComponent(e[1])}catch(o){Nt.warn(`${o}, calling decodeURIComponent on: ${e[1]}`)}let n=r?Uh(e[1]):Ec(e[1]);return new Blob([n],{type:csString.prototype.replace.call(e[0],"data:","")})}var jh=typeof performance!="undefined"&&!!performance.now,fl=jh?()=>performance.now():()=>csDate.now(),Gp=(()=>{var s,r;return jh?(r=(s=performance.timing)===null||s===void 0?void 0:s.navigationStart)!==null&&r!==void 0?r:Math.floor(performance.timeOrigin):0})(),Sc=34164e6,K={now(){return Math.round(fl()+Gp)},elapsed(){return fl()}};function gl(){return Math.floor(K.now()/1e3)}function qp(){return typeof window.Promise=="function"}function Wp(){var s;return typeof crypto!="undefined"&&we((s=crypto.subtle)===null||s===void 0?void 0:s.digest)}function ml(){var s,r;return typeof((s=window.navigation)===null||s===void 0?void 0:s.addEventListener)=="function"&&typeof((r=window.navigation)===null||r===void 0?void 0:r.removeEventListener)=="function"}function se(s,r){return csString.prototype.lastIndexOf.call(s,r,0)===0}function rr(s,r){return csString.prototype.indexOf.call(s,r,s.length-r.length)!==-1}var Yp=Number.MAX_SAFE_INTEGER||9007199254740991,os={percentage(){return Math.floor(Math.random()*1e4)/100},boolean(s){return this.percentage(){let f=K.elapsed();if(!E&&c!==null){let w=r-(f-c);if(w>=1){i=_t.csSetTimeout(u,w);return}}let _=f-n;i=null,c=null,n=null,o=s.apply(t,[_,...e])},d=function(){if(t=this,e=arguments,n){c=K.elapsed();return}return n=K.elapsed(),i=_t.csSetTimeout(u,r),o};return d.flushPending=()=>{i&&(_t.csClearTimeout(i),u(!0))},d.cancel=()=>{c=null,n=null,i&&(_t.csClearTimeout(i),i=null)},d}function Xp(s=0){return(r,t,e)=>{e.value=jr(e.value,s)}}var Hr=(()=>{class s{static setGlobalService(t){s.globalService=t}constructor(t){this.name=t,this.values={}}reset(){this.values={}}flush(){if(!s.globalService)return!1;let t=this.values,e=Object.keys(t);if(!e.length)return!1;let i=csArray.prototype.map.call(e,n=>({name:this.name,parameter:n,value:Math.round(t[n])}));return s.globalService.push(i),this.reset(),i.length>0}}return s.globalService=null,St([G()],s.prototype,"flush",null),s})(),oe=(()=>{class s extends Hr{constructor(t,e=100){super(t),this.sy=e,this.values={},e&&(this.debouncedFlush=jr(()=>this.flush(),this.sy))}count(t,e=1){Hr.globalService&&(this.values[t]=(this.values[t]||0)+e,this.debouncedFlush())}}return s})(),yl=(()=>{class s extends Hr{constructor(){super(...arguments),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}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 s})(),Kp=(()=>{class s extends Hr{add(t,e){var i,n,o,c,u,d,E;let f=_=>this.values[`${t}.${_}`];(i=(c=this.values)[u=`${t}.count`])!==null&&i!==void 0||(c[u]=0),(n=(d=this.values)[E=`${t}.total`])!==null&&n!==void 0||(d[E]=0),this.values[`${t}.count`]++,this.values[`${t}.total`]+=e,this.values[`${t}.max`]=Math.max((o=f("max"))!==null&&o!==void 0?o:0,e),this.values[`${t}.average`]=f("total")/f("count")}}return s})(),at={counters:{commandsFromIntegrations:new oe("commands-from-integrations"),commandsFromCSTC:new oe("commands-from-cstc"),commandsFromIframe:new oe("commands-from-iframe"),commandApplied:new oe("command-applied"),commandError:new oe("command-error"),commandMisuse:new oe("command-misuse"),CSTCSnippetUsed:new oe("cstc-snippet-used"),redactedPII:new oe("redacted-pii"),pageAnonymisation:new oe("page-anonymisation"),patchedNativeFunctions:new oe("patched-native-functions"),pureWindowState:new oe("pure-window-state"),sensitiveElements:new oe("sensitive-elements"),cspErrors:new oe("csp-errors"),networkRequests:new oe("network-requests"),webVitalsErrors:new oe("web-vitals-errors"),trackedFeatures:new oe("tracked-features"),longTasks:new yl("longTasks"),tasks:new yl("tasks"),errors:new oe("errors"),methodPerformance:new Kp("perf")},setService(s){Hr.setGlobalService(s)}},zr=(()=>{class s{constructor(){this.fo=0}get length(){return this.fo}get isEmpty(){return!this.ks}pushAll(t){for(let e=0;e{La++,csQueueMicrotask(()=>Ai(()=>{try{s()}finally{La--}},as.MicroTask))},Hn=new zr,Bn=new zr;function ve(s,r="high"){Hn.isEmpty&&Bn.isEmpty&&Hh(Jp),r==="high"?Bn.push(El(s)):Hn.push(El(s))}function Hh(s,r=10){r===0?vc(s):csQueueMicrotask(()=>Hh(s,r-1))}function Jp(){for(;!Bn.isEmpty;)Bn.pop()();for(;!Hn.isEmpty;)Hn.pop()()}async function Bh(s=1){for(let r=0;rve(t))}function El(s){return function(){try{s.apply(window,arguments)}catch(r){Nt.critical(r)}}}var xn="null",Xs=null,Fh=[],Qp=()=>{var s;return $r||!!(!((s=document.body)===null||s===void 0)&&s.getAttribute("data-cs-tag-extension"))};!$r&&Qp()&&(window._uxa?_uxa.push(["debugEvents",!0]):window._uxa=[["debugEvents",!0]],Xs=new BroadcastChannel("cs-tag"),document.addEventListener("cs.tracking.recordingEvent",s=>{Va({type:"UXA_EVENT",event:s.detail})}),Xs.addEventListener("message",s=>{if(s.data.type==="CONNECT"){if(s.data.sessionId===xn)return;xn=s.data.sessionId,csArray.prototype.forEach.call(Fh,r=>r()),Xs==null||Xs.postMessage({type:"CONNECTED",sessionId:xn})}}));function Zp(s){$r||(xn!==null&&csSetTimeout(s),csSetTimeout(()=>csArray.prototype.push.call(Fh,s)))}function Va(s){Xs==null||Xs.postMessage(s)}function Br(s){var r;let t=(r=s.length)!==null&&r!==void 0?r:0,e=new csArray(t);for(let i=0;icsArray.prototype.push.call(t,e)),t}function ht(s,r){if(ef(s)){let t=s.length;for(let e=0;e=0}function Ps(s,r){let t=s.length;for(let e=0;ecsArray.prototype.push.call(t,r?[i,e]:e)),t}var Gr=(()=>{class s{constructor(t,e=""){this.name=t,this.format=e}}return s})(),ws=(()=>{class s extends Gr{constructor(t){super(t,"Value: {count}"),this.count=0}increase(t=1){this.count+=t}decrease(){this.count>0&&this.count--}clear(){this.count=0}getData(){return{count:this.count}}}return s})(),vl=(()=>{class s extends Gr{constructor(t){super(t,"Living intances: {instances}
Added: {added}
Removed: {removed}"),this.added=0,this.removed=0}get value(){return this.added-this.removed}increase(){this.added++}decrease(){this.removed++}getData(){return{added:this.added,removed:this.removed,instances:this.added-this.removed}}}return s})(),Ts=(()=>{class s extends Gr{constructor(t){super(t,"Count: {count}
Average: {average}ms
Max: {max}ms
Total: {total}ms"),this.total=0,this.count=0,this.max=0}get average(){return this.count?this.total/this.count:0}elapsed(t){return this.count++,this.max=Math.max(this.max,t),this.total+=t,t}measure(t){let e=K.elapsed();t(),this.count++;let i=K.elapsed()-e;return this.max=Math.max(this.max,i),this.total+=i,i}asyncMeasure(){let t=K.elapsed();return()=>{this.count++;let e=K.elapsed()-t;return this.max=Math.max(this.max,e),this.total+=e,e}}getData(){return{total:this.total,count:this.count,average:this.average,max:this.max}}}return s})(),rf=(()=>{class s extends Gr{constructor(){super("INP","Value: {value}")}getData(){return{value:Ht.tasks.eventListener.max}}}return s})(),Ht={general:{category:"General",nbEvents:new ws("Nb of Events"),pendingTasks:new ws("Pending Tasks"),pendingEvents:new ws("Pending Tasks"),nbOfMutationObservers:new vl("Nb of Mutation Observers"),inp:new rf},mutations:{category:"Mutations",initialDOM:new Ts("Initial DOM"),pendingMutations:new ws("Nb of Mutations scheduled"),serializedMutations:new Ts("Serialized Mutations"),count:new ws("Mutation Count"),elementMutationObserved:new vl("Nb of Elements Observed by MutationObserver"),unobserveGarbageCollection:new Ts("Unobserve GC")},visibilityObserver:{category:"Visibility Observer",hiddenElements:new ws("Nb of Hidden Elements "),nbElements:new ws("Nb of Elements")},tasks:{category:"Tasks",tasks:new ws("Tasks"),errors:new ws("Errors"),timer:new Ts("Timers"),microtask:new Ts("Microtasks"),mutationObserver:new Ts("MutationObserver"),monkeyPatch:new Ts("MonkeyPatch"),eventListener:new Ts("EventListener"),intersectionObserver:new Ts("Intersection")}};function nf(){let s=null;Zp(()=>{let r=n=>Object.keys(n),t=csArray.prototype.map.call(r(Ht),n=>Ht[n]),e=csArray.prototype.map.call(t,n=>csArray.prototype.filter.call(csArray.prototype.map.call(r(n),o=>n[o]),o=>o instanceof Gr));Va({type:"UXA_PERFORMANCE_COUNTER_SCHEMA",event:csArray.prototype.map.call(t,(n,o)=>({category:n.category,performanceCounters:csArray.prototype.map.call(e[o],c=>({name:c.name,format:c.format}))}))}),!s&&(s=csSetInterval(()=>{Ai(()=>{let n=_c(Xe(e,o=>Xe(o,c=>c.getData())),o=>o);Va({type:"UXA_PERFORMANCE_COUNTER",event:n})},as.Timer)},1e3))})}var as=(()=>{let s;return function(r){r.Timer="timer",r.MonkeyPatch="monkeyPatch",r.MutationObserver="mutationObserver",r.EventListener="eventListener",r.IntersectionObserver="intersectionObserver",r.MicroTask="microtask"}(s||(s={})),s})(),Le=null;async function Ai(s,r,t=null){if(Le&&r!==as.MicroTask)return s();t&&(Le=t),Le||(Le={type:r,elapsed:0},Ht.tasks.tasks.increase());try{Le.elapsed+=of(s)}catch(e){Ht.tasks.errors.increase(),Nt.critical(new Error(`Task error: ${r}/${s.name}. ${e.message} ${e.stack}`,e),"TASK_ERROR")}finally{La<=0&&(Ht.tasks[Le.type].elapsed(Le.elapsed),Le.elapsed>50?at.counters.longTasks.push(Le.elapsed):at.counters.tasks.push(Le.elapsed),Le=null)}}function of(s){let r=K.elapsed();return s(),K.elapsed()-r}var ra,Gh="cs-native-frame",Fs={navigatorProperties:[{propertyName:"sendBeacon",binding:navigator}],nodeProperties:["childNodes","parentNode","nextSibling","firstChild"],elementProperties:["shadowRoot"],elementPropertiesValues:["matches","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector"],eventProperties:["target"],imageProperties:["src"],constructors:{Date:"csDate",JSON:"csJSON",Array:"csArray",String:"csString",URL:"csURL",MutationObserver:"csMutationObserver",screen:"csScreen",RegExp:"csRegExp"}};function qh(s,r){let t=bi(window,s);return function(e,i){return t(()=>Ai(e,r),i)}}window.csSetTimeout=qh("setTimeout",as.Timer);window.csSetInterval=qh("setInterval",as.Timer);window.csQueueMicrotask=(ra=bi(window,"queueMicrotask"))!==null&&ra!==void 0?ra:setTimeout;window.csClearTimeout=bi(window,"clearTimeout");window.csClearInterval=bi(window,"clearInterval");window.csFileReader=bi(window,"FileReader");(()=>{var s;let r=0;function t(i){return"cs$Symbol_"+i}function e(i){return t(i)+ ++r}e.for=t,window.csSymbol=(s=window.Symbol)!==null&&s!==void 0?s:e})();function af(){let s=document.createElement("iframe");s.id=Gh,s.setAttribute("hidden",""),s.setAttribute("title","Intentionally blank"),s.setAttribute("sandbox","allow-same-origin");let r=document.createElement("cs-native-frame-holder");if(r.setAttribute("hidden",""),document.body.appendChild(r),!!Element.prototype.attachShadow){let e=r.attachShadow({mode:"closed"});return e.innerHTML=s.outerHTML,e.firstElementChild.contentWindow}return r.innerHTML=s.outerHTML,r.firstElementChild.contentWindow}function cf(s,r){let t,e=s;for(;e&&!(t=Object.getOwnPropertyDescriptor(e,r));)e=Object.getPrototypeOf(e);return t}function lf(s,r,t){let e=cf(s,r);if(!e)return function(){return this[r]};switch(t){case"get":return e.get;case"set":return e.set;case"value":return e.value}}function Wh(s){var r,t;Object.keys(Fs.constructors).forEach(i=>{window[Fs.constructors[i]]=s[i]instanceof Function&&s[i].prototype==null?s[i].bind(window):s[i]}),df(s);let e=s.MutationObserver;("Prototype"in window||uf())&&(e=(t=(r=bi(window,"MutationObserver"))!==null&&r!==void 0?r:window.WebKitMutationObserver)!==null&&t!==void 0?t:window.MutationObserver),window.csIntersectionObserver=_l(window.IntersectionObserver,as.IntersectionObserver),window.csMutationObserver=_l(e,as.MutationObserver),Bi("csNode",Fs.nodeProperties,s.Node.prototype,"get"),Bi("csElement",Fs.elementProperties,s.Element.prototype,"get"),Bi("csElement",Fs.elementPropertiesValues,s.Element.prototype,"value",!1),Bi("csHTMLImageElement",Fs.imageProperties,s.HTMLImageElement.prototype,"set"),Bi("csEvent",Fs.eventProperties,s.Event.prototype,"get"),Bi("csNavigator",Fs.navigatorProperties,s.navigator,"value")}function Bi(s,r,t,e,i=!0){r.forEach(n=>{let o=typeof n!="string"&&"binding"in n,c=o?n.propertyName:n;(i||c in t)&&(window[`${s+c}`]=lf(t,c,e),o&&(window[`${s+c}`]=window[`${s+c}`].bind(n.binding)))})}function wc(s,r){window.CSProtectnativeFunctionsLogs=window.CSProtectnativeFunctionsLogs||{},window.CSProtectnativeFunctionsLogs[s]=r}function hf(){try{let s=af();return s?(window.CSPureWindow=s,Wh(window.CSPureWindow),!0):!1}catch(s){return wc("Warning",`failed to copy references from pure iframe: ${s.message}`),!1}}if(!hf())try{Wh(_t)}catch(s){wc("Critical",`failed to copy references from window: ${s.message}`)}function uf(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function df(s){window.csquerySelector={1:s.Element.prototype.querySelector,9:s.Document.prototype.querySelector,11:s.DocumentFragment.prototype.querySelector},window.csquerySelectorAll={1:s.Element.prototype.querySelectorAll,9:s.Document.prototype.querySelectorAll,11:s.DocumentFragment.prototype.querySelectorAll}}function _l(s,r){try{let t=function(e,i){return new s((o,c)=>{Ai(()=>e(o,c),r)},i)};return t.base=s,t}catch{return wc("Warning",`failed to extends ${s.name}`),s}}var ge=(()=>{let s;return function(r){r.ELLIPSIS="\u2026";function t(o){return csString.prototype.replace.call(o,/[.*+?^${}()|[\]\\]/g,"\\$&")}function e(o){return csString.prototype.replace.call(o,/([#;&,.+*~':"!^$[\]()<=>|/%?@`{}\\ ])/g,"\\$1")}r.escapeInvalidCharacters=e;function i(o,c,u){if("replaceAll"in csString.prototype)return csString.prototype.replaceAll.call(o,c,u);let d=new csRegExp(t(c),"g");return csString.prototype.replace.call(o,d,u)}r.stringReplaceAll=i;function n(o,c,u=""){return o.length<=c?o:csString.prototype.slice.call(o,0,c-u.length)+u}r.truncate=n}(s||(s={})),s})();function Ua(s){return ge.escapeInvalidCharacters(csString.prototype.toLowerCase.call(s.localName))}function pf(s){let r=s.getAttribute("id");return r&&ge.escapeInvalidCharacters(r)}function Mt(s){return s.nodeType===1}function $n(s){return s.nodeType===3}function ff(s){return s.nodeType===8}function Yh(s){return Mt(s)&&s.localName==="link"}function gf(s){return Mt(s)&&s.localName==="source"}function Xh(s){return Mt(s)&&s.localName==="a"}function Tc(s){return Yh(s)&&csString.prototype.indexOf.call(s.rel,"stylesheet")!==-1}function mf(s){return Mt(s)&&s.localName==="img"}function to(s){return Mt(s)&&s.localName==="style"}function eo(s){return Mt(s)&&s.localName==="input"}function bc(s){return Mt(s)&&s.localName==="textarea"}function so(s){return Mt(s)&&s.localName==="script"}function yf(s){return Mt(s)&&s.localName==="button"}function nr(s){return Mt(s)&&"ownerSVGElement"in s}function Ac(s){return Mt(s)&&s.localName==="select"}function Ef(s){return Mt(s)&&s.localName==="details"}function Sf(s){return Mt(s)&&s.localName==="summary"}function vf(s){return nr(s)&&s.localName==="image"}function _f(s){return nr(s)&&s.localName==="use"}function wf(s){return nr(s)&&s.localName==="feImage"}function Tf(s){switch(s.nodeType){case 9:case 11:return!0;default:return!1}}function bf(s){switch(s.nodeType){case 9:case 11:case 1:return!0;default:return!1}}function zn(s){return s.nodeType===9}function Ki(s){return Tf(s)&&"host"in s&&"mode"in s}function Kh(s){return Mt(s)&&!!csElementshadowRoot.apply(s)&&Ki(csElementshadowRoot.apply(s))}var Af=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function Rf(s){return Mt(s)&&Ot(s.tagName)&&csString.prototype.indexOf.call(s.tagName,"-")>0&&csString.prototype.indexOf.call(s.tagName,":")===-1&&csString.prototype.indexOf.call(s.tagName,'"')===-1&&csString.prototype.indexOf.call(s.tagName,",")===-1&&csArray.prototype.indexOf.call(Af,csString.prototype.toLocaleLowerCase.call(s.tagName))<0}var qr="detached";function Jh(s){let r=s,t=[r];for(;csNodeparentNode.apply(r)!==null;)r=csNodeparentNode.apply(r),csArray.prototype.push.call(t,r);return Gn(r)&&csArray.prototype.push.call(t,qr),{ancestors:t,selectionRoot:r}}function Cf(s){let r=s,t=[r],e=null;for(;csNodeparentNode.apply(r)!==null;)e===null&&Xh(r)&&(e=r),csArray.prototype.push.call(t,csNodeparentNode.apply(r)),r=csNodeparentNode.apply(r);return Gn(r)&&csArray.prototype.push.call(t,qr),{firstAnchorParent:e,ancestors:t,selectionRoot:r}}function Gn(s){return ns.isValidElement(s)}var Si=(()=>{var s,r;return(r=(s=_t.Element)===null||s===void 0?void 0:s.prototype)!==null&&r!==void 0?r:{}})(),Te=Si.matches||Si.matchesSelector||Si.mozMatchesSelector||Si.msMatchesSelector||Si.oMatchesSelector||Si.webkitMatchesSelector,wl=Si.closest,Qh=9;function If(s,r){return r?csArray.prototype.some.call(r,t=>Te.call(s,t)):!1}function Pf(s,r,t){if(s===qr||s.nodeType===Qh)return 0;let e=t.dynamicElementNameRegex,i=!!(e!=null&&e.test(r.localName)),n=Ua(r),o=0,c=r.previousElementSibling;for(;c;)(Ua(c)===n||i&&(e!=null&&e.test(c.localName)))&&!If(c,t.reliableSelectors)&&(o+=1),c=c.previousElementSibling;return o}function Of(s,r,t){if(s===qr||s.nodeType===Qh)return 0;let e=0,i=r.previousElementSibling;for(;i;)Te.call(i,t)&&(e+=1),i=i.previousElementSibling;return e}var Nf=[/\d{4}/,/^ember\d+$/],Mf="@",Rc="data-cs-override-id",kf="data-cs-dynamic-id";function Zh(s,r,t,e){let i=e.dynamicIdRegex||null,n=e.dynamicElementNameRegex,o=Ua(s);if(n&&n.test(s.localName)&&(o=csString.prototype.replace.call(o,n,`$1${Mf}`)),Lf(s,t)){let _=Cc(s);return{hasUniqueIdentifier:!0,elementSelector:`${o}[${Rc}="${_}"]`}}let c=$f(s,t,e);if(c.success)return{hasUniqueIdentifier:!0,elementSelector:`${o}#UA[${c.attributeName}="${c.attributeValue}"]`};let u=Df(s,t,e);if(u)return{hasUniqueIdentifier:!0,elementSelector:`${o}#UCS[${u}]`};let d=pf(s);if(Uf(s,d,t,i))return{hasUniqueIdentifier:!0,elementSelector:`${o}#${d}`};let E=xf(s,e);if(E){let _=Of(r,s,E);return{hasUniqueIdentifier:!1,elementSelector:`${o}[${E}](${_})`}}let f=Pf(r,s,e);return{hasUniqueIdentifier:!1,elementSelector:`${o}:eq(${f})`}}function Df(s,r,t){if(t.uniqueCssSelectors){for(let e of t.uniqueCssSelectors)if(Te.call(s,e)&&Ff(e,r))return e}}function xf(s,r){if(r.reliableSelectors){for(let t of r.reliableSelectors)if(Te.call(s,t))return t}}function Lf(s,r){let t=Cc(s);return t&&csString.prototype.match.call(t,/^[\w-]+$/)&&Ic(Rc,t,r)}function Vf(s){return Cc(s)!==null}function Cc(s){return s.getAttribute(Rc)}function Uf(s,r,t,e){return r&&!Vf(s)&&!jf(s,r,e)&&Bf(r,t)}function jf(s,r,t){return s.hasAttribute(kf)||Hf(r,t)}function Hf(s,r){let t=!1;return s&&r&&(t=r.test(s)),s&&(csArray.prototype.some.call(Nf,e=>e.test(s))||t)}function Bf(s,r){return s&&Ic("id",s,r)}function Ic(s,r,t){try{return window.csquerySelectorAll[t.nodeType].call(t,`[${s}="${r}"]`).length===1}catch(e){if(e.name!=="SyntaxError")throw e}return!1}function Ff(s,r){try{return window.csquerySelectorAll[r.nodeType].call(r,s).length===1}catch(t){if(t.name!=="SyntaxError")throw t}return!1}function $f(s,r,t){if(!t.uniqueAttributes)return{success:!1};for(let e of t.uniqueAttributes){let i=s.getAttribute(e);if(i!==null&&Ic(e,i,r))return{attributeName:e,attributeValue:i,success:!0}}return{success:!1}}var ja=11;function qn(s,r,t){let e=csArray.prototype.shift.call(s);if(s.length===0)return Tl(e,t);let i=e,n=s[0],{elementSelector:o,hasUniqueIdentifier:c}=Zh(i,n,r,t);if(!t.fullPath&&c){let d=s[s.length-1];return`${Tl(d,t)}${o}`}let u=qn(s,r,t);return`${u?`${u}>`:""}${o}`}function Tl(s,r){if(s===qr)return"|detached|";if(s.host){let{ancestors:t,selectionRoot:e}=Jh(s.host);return`${qn(t,e,r)}|shadow-root|`}return s.nodeType===ja?"|fragment|":""}var tu=(()=>{class s{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 s})(),zf=(()=>{class s extends tu{constructor(){super(...arguments),this.go=!1,this.mo=!1,this.lc=!1}iy(t,e){return this.go&&!(e===null&&Gn(t))&&t.nodeType!==ja&&!t.host}ry(t){return!t.localName}serializeElement(t,e,i){var n;if((n=this.path)!==null&&n!==void 0||(this.path=""),this.iy(t,e))return;let o=!1;e===null&&Gn(t)&&(o=!0,this.done=!0);let c=this.mo&&!this.options.fullPath?"":">",u=!!t.host;if(u&&this.path&&(this.path="|shadow-root|"+c+this.path,this.lc=!0,this.go=!1,this.mo=!1),!u&&e===null&&t.nodeType===ja){this.path="|fragment|"+c+this.path,this.done=!0;return}if(this.ry(t))return;let d=e!=null?e:"detached",{elementSelector:E,hasUniqueIdentifier:f}=Zh(t,d,i,this.options);f&&(this.mo=!0,this.go=!this.options.fullPath);let _=`${o?`|detached|${c}`:""}${this.go&&!f?"":E}`,A=!f&&this.mo&&!this.options.fullPath?"":this.path&&!this.lc?">":"";this.lc=!1,this.path=`${_}${A}${this.path}`}}return s})();function _e(s,r=pe.SHOW_ALL){let t=r|pe.SHOW_ELEMENT,e=[document.createTreeWalker(s,t,null,!1)],i=bl(s);i&&csArray.prototype.push.call(e,document.createTreeWalker(i,t,null,!1));let n=null;return{root:s,nextNode(){if(i){let o=i;return i=null,o}for(;e.length>0;){if(n){let d=n;return n=null,d}let c=e[e.length-1].nextNode();if(!c){csArray.prototype.pop.call(e);continue}let u=bl(c);if(r&pe.SHOW_DOCUMENT_FRAGMENT&&u&&(n=u),u&&csArray.prototype.push.call(e,document.createTreeWalker(u,t,null,!1)),(oa[c.nodeType]&r)!==0)return c}return null},visitAll(o){oa[s.nodeType]&r&&o(s);let c=this.nextNode();for(;c;){if((oa[c.nodeType]&r)===0){c=this.nextNode();continue}o(c),c=this.nextNode()}},collectAll(o){let c=[];return this.visitAll(u=>csArray.prototype.push.call(c,o?o(u):u)),c}}}function bl(s){return s&&Kh(s)?s.shadowRoot:null}var na=(()=>{var s;return(s=_t.Node)!==null&&s!==void 0?s:{}})(),pe=(()=>{var s;return(s=_t.NodeFilter)!==null&&s!==void 0?s:{}})(),oa={2:pe.SHOW_ATTRIBUTE,4:pe.SHOW_CDATA_SECTION,8:pe.SHOW_COMMENT,11:pe.SHOW_DOCUMENT_FRAGMENT,9:pe.SHOW_DOCUMENT,10:pe.SHOW_DOCUMENT_TYPE,1:pe.SHOW_ELEMENT,[na.ENTITY_NODE]:pe.SHOW_ENTITY,[na.ENTITY_REFERENCE_NODE]:pe.SHOW_ENTITY_REFERENCE,[na.NOTATION_NODE]:pe.SHOW_NOTATION,7:pe.SHOW_PROCESSING_INSTRUCTION,3:pe.SHOW_TEXT},eu=!1,Ha=5;function Gf(s=5){eu=Nt.isPerfLoggingActive(),Ha=s}function Ri(s,r){return function(){if(!eu)return s.apply(this,arguments);let t=K.elapsed(),e=s.apply(this,arguments);if(e!=null&&e.then)e.then(()=>{let i=K.elapsed()-t;i>=Ha&&at.counters.methodPerformance.add(r,i)});else{let i=K.elapsed()-t;i>=Ha&&at.counters.methodPerformance.add(r,i)}return e}}var ie=function(s){return function(r,t,e){let i=e.value;e.value=Ri(i,s)}},_i=(()=>{let s;return function(r){function t(){return!!Element.prototype.attachShadow}r.isSupported=t;function e(n){return n&&Kh(n)?n.shadowRoot:null}r.getShadowRoot=e;function i(n){return _e(n,NodeFilter.SHOW_DOCUMENT_FRAGMENT).collectAll(o=>o.host)}r.getAllShadowHosts=Ri(i,"getAllShadowHosts")}(s||(s={})),s})(),Yt=(()=>{let s;return function(r){function t(){let f=[i()];return document.documentElement&&csArray.prototype.push.call(f,document.documentElement.scrollHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight),document.body&&csArray.prototype.push.call(f,document.body.scrollHeight,document.body.offsetHeight),Math.max(...f)}r.documentHeight=t;function e(){return document.documentElement.scrollWidth}r.documentWidth=e;function i(){return window.innerHeight}r.windowHeight=i;function n(){return window.innerWidth}r.windowWidth=n;function o(){let f=window.csScreen.width;return Os(f)&&f>0?f:window.screen.width}r.screenWidth=o;function c(){let f=window.csScreen.height;return Os(f)&&f>0?f:window.screen.height}r.screenHeight=c;function u(){return window.pageXOffset}r.windowOffsetX=u;function d(){return window.pageYOffset}r.windowOffsetY=d;function E(){return{dw:`${e()}`,dh:`${t()}`,ww:`${n()}`,wh:`${i()}`,sw:`${o()}`,sh:`${c()}`}}r.getRequestParameters=E}(s||(s={})),s})(),aa=(()=>{var s;return(s=_t.Node)!==null&&s!==void 0?s:Object})(),Ct=(()=>{let s;return function(r){let t="isConnected"in aa.prototype?O=>O.isConnected:O=>!O.ownerDocument||!(O.ownerDocument.compareDocumentPosition(O)&O.DOCUMENT_POSITION_DISCONNECTED);function e(O,z){for(let X=O;X;X=csNodenextSibling.apply(X))z(O)}r.forEachChild=e;function i(O){return t(O)}r.isConnected=i;function n(O,z){let X=[];for(let it of u(O,z))csArray.prototype.push.call(X,it);return X}r.getAncestors=n;let o=(O,z)=>{var X;return(X=csNodeparentNode.apply(O))!==null&&X!==void 0?X:z&&Ki(O)?O.host:null};function c(O,z,X=!1){let it=O;for(;it;){if(z(it))return it;let It=o(it,X);if(It&&It!==it)it=It;else break}return null}r.findAncestor=c;function*u(O,z=!1){let X=O;for(;X;){yield X;let it=o(X,z);if(it&&it!==X)X=it;else break}}r.walkUp=u;function d(O,z){if(O===z||z.contains(O))return!0;let X=r.getParentElement(O);return X&&X!==O?d(X,z):!1}r.isDescendantOf=d;function E(O){var z;return O.parentElement?O.parentElement:r.getRootNode(O)?(z=r.getRootNode(O))===null||z===void 0?void 0:z.host:null}r.getParentElement=E;function f(O,z=document){let X=Br(window.csquerySelectorAll[z.nodeType].call(z,O)),it=_i.getAllShadowHosts(z);for(let It of it){let Kt=_i.getShadowRoot(It);if(!Kt)continue;let ne=Br(window.csquerySelectorAll[Kt.nodeType].call(Kt,O));csArray.prototype.push.call(X,...ne)}return X}r.findAllElements=f,r.getRootNode=(()=>{if("getRootNode"in aa.prototype)return(X,it)=>X.getRootNode(it);function O(X){let it=z(X);return Ki(it)?O(it.host):it}function z(X){return csNodeparentNode.apply(X)!=null?z(csNodeparentNode.apply(X)):X}return(X,it)=>typeof it=="object"&&!!it.composed?O(X):z(X)})();function _(O){return O==="transparent"||/^(rgba|hsla)\(\d+, \d+%?, \d+%?, 0\)$/.test(O)}function w(O){let z=O.getBoundingClientRect();return z.right+Yt.windowOffsetX()<0||z.bottom+Yt.windowOffsetY()<0}function A(O){var z,X;if(((z=O.checkVisibility)===null||z===void 0?void 0:z.call(O,{checkOpacity:!0,checkVisibilityCSS:!0}))===!1)return!0;if(!O.offsetParent){if(!O.getBoundingClientRect)return Nt.warn(`SUP-11432: Element doesn't have getBoundingClientRect. Node: ${O instanceof aa} Ctor: ${(X=O==null?void 0:O.constructor)===null||X===void 0?void 0:X.name}`),!1;let Kt=O.getBoundingClientRect();if(Kt.width==0&&Kt.height==0)return!0}let it=window.getComputedStyle(O);return it?it.display==="none"||it.visibility==="hidden"||it.visibility==="collapse"||it.opacity==="0"||it.filter==="opacity(0)"||it.width==="0px"&&it.height==="0px"||_(it.color):!0}r.isHiddenByCSS=A;function V(O){if(A(O))return!0;let X=E(O);return X!=null&&V(X)}r.areAncestorsHiddenByCSS=V;function U(O){let z=null,X=O;do if(A(X))z=X;else break;while(X=E(X));return z}r.getTopAncestorHiddenByCSS=U;function P(O){let z=C(O);return z!==null&&!O.contains(z)&&!z.contains(O)}function C(O){let z=O.getBoundingClientRect(),X=z.left+.5*z.width,it=z.top+.5*z.height;return j(document,X,it)}r.getTopElement=C;function F(O){if(!O.getBoundingClientRect)return null;let z=O.getBoundingClientRect(),X=z.x+z.width/2,it=z.y+z.height/2;return r.getTopElementFromPoint(document,X,it)}r.getElementOnTop=F;function j(O,z,X){let it=O.elementFromPoint(z,X);if(!it)return null;let It=_i.getShadowRoot(it);return It&&It!=r.getRootNode(document.body)&&It!==O?j(It,z,X):it}r.getTopElementFromPoint=j;function M(O){return!w(O)&&!A(O)&&!P(O)}r.isVisibleInDocument=M;function J(O){return A(O)?!1:ct(O)}r.isVisibleInViewportInForeground=J;function ct(O){let z=C(O);return z===null?!1:O===z?!0:$t(O)?O.textContent!==""&&z.contains(O):O.contains(z)}r.isInViewPort=ct;function gt(O,z,X){let it=O.getAttributeNS(z,X);return it===""?O.hasAttributeNS(z,X)?it:null:it}r.getAttributeNS=gt;function Xt(O){return!!(O.hasAttribute("tabIndex")||O.getAttribute("contentEditable")==="true"||Xh(O)&&O.hasAttribute("href")||(Ac(O)||bc(O)||eo(O)||yf(O))&&!O.hasAttribute("disabled")||Ef(O)||Sf(O))}r.isElementFocusable=Xt;function $t(O){return O.localName==="span"||O.localName==="a"||O.localName==="b"||O.localName==="i"||O.localName==="button"||O.localName==="input"||O.localName==="label"||O.localName==="cite"||O.localName==="small"||O.localName==="strong"||O.localName==="code"||O.localName==="abbr"||O.localName==="em"||O.localName==="dfn"||O.localName==="time"||O.localName==="output"||O.localName==="object"||O.localName==="sub"}r.isInlineElement=$t}(s||(s={})),s})(),qf=(()=>{class s{constructor(t){this.ny=t}run(t){let e=[...this.ny],i=Ct.getAncestors(t,!1),n=i[i.length-1];for(;e.length>0&&i.length>0;){let o=csArray.prototype.shift.call(i),c=i[0]||null;if(this.oy(e,o,c,n),this.ay(e),e.length===0)break;i.length===0&&o.host&&(i=Ct.getAncestors(o.host,!1),n=i[i.length-1])}}oy(t,e,i,n){for(let o of t)o.serializeElement(e,i,n)}ay(t){for(let e=0;e{class s extends tu{serializeElement(t){var e;if((e=this.path)!==null&&e!==void 0||(this.path=""),(t==="detached"||t.localName==="body")&&(this.done=!0,this.path.length>0))return;let i=this.cy(t);if(i+=i.length>0?"|":"",this.path.length+i.length>this.options.hierarchyMaxLength){this.done=!0;return}this.path=i+this.path}cy(t){if(!t.localName)return"";let e=`@${t.localName};`;return e+=this.ly(t.id),t.classList&&(e+=this.hy(csArray.from(t.classList))),t.attributes&&(e+=this.uy(t)),e}ly(t){return t?`#${t};`:""}hy(t){return t.length>0?`.${csArray.prototype.join.call(csArray.prototype.sort.call(t),";.")};`:""}dy(t,e){var i,n;return((n=(i=this.options).isAttributeSensitive)===null||n===void 0?void 0:n.call(i,t,e))||csArray.prototype.indexOf.call(this.options.attributeIgnoreTokens,e)!==-1||nr(t)&&csString.prototype.indexOf.call(e,"data-")===-1&&e!=="aria-label"||eo(t)&&e==="value"}py(t,e){return this.options.useAnonymization&&!this.options.allWhitelistedAttributes.has(t)||e.length>this.options.attrMaxLength}fy(t){let e={};for(let i of csArray.from(t.attributes))this.dy(t,i.name)||(e[i.name]=i.value);return e}uy(t){var e,i;if(!((i=(e=this.options).isNodeSensitive)===null||i===void 0)&&i.call(e,t))return"";let n=Object.entries(this.fy(t));return csArray.prototype.join.call(csArray.prototype.sort.call(csArray.prototype.map.call(csArray.prototype.filter.call(n,([o])=>o.lengththis.py(o,c)?`[${o}]`:`[${o}=${c}]`)),";")+(n.length>0?";":"")}}return s})(),ns=(()=>{let s;return function(r){r.INVALID_ELEMENT="INVALID_ELEMENT";function t(c){return!!c&&"localName"in c&&"getAttribute"in c&&"hasAttribute"in c&&"parentNode"in c}r.isValidElement=t;function e(c,u,d={fullPath:!1,dynamicIdRegex:null}){let E=o(c);if(E===document)return{path:"",hierarchy:""};if(!t(E))return{path:r.INVALID_ELEMENT,hierarchy:r.INVALID_ELEMENT};let f=new zf(d),_=new Wf(u);return new qf([f,_]).run(E),{path:f.getPath(),hierarchy:_.getPath()}}r.getElementPathAndHierarchy=e;function i(c,u={fullPath:!1,dynamicIdRegex:null}){let d=o(c);if(d===document)return"";if(!t(d))return r.INVALID_ELEMENT;let{ancestors:E,selectionRoot:f}=Jh(d);return qn(E,f,u)}r.getElementPath=i;function n(c,u={fullPath:!1,dynamicIdRegex:null}){let d=o(c);if(d===document)return{path:"",firstAnchorParent:null};if(!t(d))return{path:r.INVALID_ELEMENT,firstAnchorParent:null};let{firstAnchorParent:E,ancestors:f,selectionRoot:_}=Cf(d);return{path:qn(f,_,u),firstAnchorParent:E}}r.getElementPathAndFirstAnchorParent=n;function o(c){return c&&"jquery"in c&&c.length===1?c[0]:c}}(s||(s={})),s})();window.CSPathComputation=window.CSPathComputation||ns;var su=["t.contentsquare.net","clicktale"],Yf=s=>{var r;if(typeof s.filename=="string"&&csArray.prototype.some.call(su,t=>csString.prototype.indexOf.call(s.filename,t)>-1)&&!(csString.prototype.indexOf.call(s.filename,"blob")>-1&&(s.message==null?void 0:csString.prototype.indexOf.call(s.message,"importScripts"))>-1)){let t=new Error(s.message);t.stack=(r=s.error)===null||r===void 0?void 0:r.stack,W.critical(t)}};window.addEventListener("error",Yf);var W=(()=>{class s{constructor(){}static whiteListFilename(t){csArray.prototype.push.call(su,t)}static setStrategy(t){s.Gi=t}static computeIsActive(t){s.Ue=os.boolean(t),s.Ue?s.hc=os.boolean(10):s.hc=!1}static isLoggingActive(){return s.Ue}static getStrategy(){return s.Gi}static debug(t,e=""){s.Ue&&this.Gi.send(t,e,yt.debug)}static warn(t,e=!0,i=""){var n;at.counters.errors.count("warning"),s.Ue&&e&&this.Gi.send(t,i,yt.warn),(n=window.UXAnalytics.Console)===null||n===void 0||n.warn(t)}static implementation(t,e=""){at.counters.errors.count("implementation"),s.Ue&&this.Gi.send(t,e,yt.implementation)}static error(t,e=""){var i;at.counters.errors.count("error"),s.Ue&&this.Gi.send(t,e,yt.error),(i=window.UXAnalytics.Console)===null||i===void 0||i.error(t)}static critical(t,e=""){at.counters.errors.count("critical"),this.Gi.send(t,e,yt.critical)}static tryToExecute(t,e){return function(...i){try{let n=e.apply(this,i);return mt(_t.Promise)&&n instanceof _t.Promise?n.then(o=>o,o=>s.error(ei(o)?o:new Error(o),t)):n}catch(n){try{s.error(ei(n)?n:new Error(n),t)}catch{}}}}static isPerfLoggingActive(){return s.hc}}return s.Ue=!1,s.hc=!1,s})(),Xf=function(){"use strict";var s={d:function(i,n){for(var o in n)s.o(n,o)&&!s.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:n[o]})},o:function(i,n){return Object.prototype.hasOwnProperty.call(i,n)}},r={};s.d(r,{H:function(){return t}});var t=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.tryCatch,o=i.exception,c=i.scriptDomain,u=i.hjHost,d=i.askUrl,E=i.surveysHost,f=i.surveyImagesHost,_=i.surveyImpressionsEndpoint;window.hj=window.hj||function(){(window.hj.q=window.hj.q||[]).push(arguments)},hj.q=window.hj.q||[],window._hjSettings=window._hjSettings||{},hj.isPreview=!!_hjSettings.preview,hj.settings=hj.isPreview||!window.hjSiteSettings?{}:window.hjSiteSettings,hj.scriptDomain=window.hj.scriptDomain||c||"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=u||_hjSettings.host||hj.defaults.host,hj.insightsHost=_hjSettings.insightsHost||hj.defaults.insightsHost,hj.surveysHost=E||_hjSettings.surveysHost||hj.defaults.surveysHost,hj.surveyImagesHost=f||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||d||hj.defaults.askUrl,hj.surveyImpressionsEndpoint=_||_hjSettings.surveyImpressionsEndpoint||hj.defaults.surveyImpressionsEndpoint,hj.userDeviceType=null,hj.tryCatch=n||window.hj.tryCatch;var w=o&&{log:o};hj.exceptions=w||window.hj.exceptions},e=r.H;return{n:e}}(),Kf=Xf.n,Jf="https://script.hj.contentsquare.net/",Qf="https://ask.hj.contentsquare.net/",Zf="in.hj.contentsquare.net",tg="surveystats.hj.contentsquare.net",eg="survey-images.hj.contentsquare.net",sg="https://surveystats.hj.contentsquare.net/hit",ig={tryCatch:(s,r)=>W.tryToExecute(r,s),exception:(s,r)=>W.error(s,r),scriptDomain:Jf,hjHost:Zf,askUrl:Qf,surveysHost:tg,surveyImagesHost:eg,surveyImpressionsEndpoint:sg};Kf(ig);var rg=/^\d+\.\d+(?:\.\d+)?$/,ng=s=>{if(!rg.test(s))return;let[r,t,e]=csArray.prototype.map.call(csString.prototype.split.call(s,"."),Number);return{major:r,minor:t,patch:!e||Number.isNaN(e)?0:e}},og=(s,r)=>s.major!==r.major?s.major-r.major:s.minor!==r.minor?s.minor-r.minor:s.patch-r.patch,ag=(s,r)=>og(s,r)>=0;function Ye(s){return se(s,"data:")}function iu(s){return se(s,"#")}function Wn(s){return!!s&&(rr(s,".css")||se(s,"https://fonts.googleapis.com/css"))}var Al=/\bhttps?:\/\/[^\s<>"')\]]*[^\s<>"'),.;:…\])]/gi;function cg(s){Al.lastIndex=0;let r,t=0,e=[];for(;(r=Al.exec(s))!==null;){let i=r.index,n=r.index+r[0].length;if(i>t){let c=csString.prototype.slice.call(s,t,i);csArray.prototype.push.call(e,{content:c,isUrl:!1})}let o=csString.prototype.slice.call(s,i,n);csArray.prototype.push.call(e,{content:o,isUrl:!0}),t=n}if(t{let r=new Set(lg);return csArray.prototype.forEach.call(s,t=>{r.add(t)}),r},hg=["svg","slot"],ug=(s,r,t)=>t==="radio"&&s==="input"&&r==="name"||csArray.prototype.indexOf.call(hg,s)>-1,nu={href:new Set(["a"]),src:new Set(["iframe"])},dg=s=>nu.hasOwnProperty(s),pg=(s,r,t)=>{var e;return((e=nu[r])===null||e===void 0?void 0:e.has(s))&&!Ye(t)},fg=(s,r,t)=>(t==="submit"||t==="button")&&s==="input"&&r==="value";function ca(s){return s?gg(s):null}function gg(s){try{let r=/^\/(.*)\/([gim]*)$/.exec(s);if(r){let[,t,e]=r;return new csRegExp(`^${t}$`,e)}return new csRegExp(`^${s}$`)}catch{return null}}var mg=1,yg="f553e78fb58e051e51fe8074c4c6e73e",Ba=(()=>{let s;return function(r){r[r.Disabled=0]="Disabled",r[r.ButtonAndLinkOnly=1]="ButtonAndLinkOnly",r[r.Enabled=2]="Enabled"}(s||(s={})),s})(),Eg=(()=>{class s{constructor(t){var e,i,n,o,c,u,d,E,f,_,w,A,V,U;this.isChild=!1,this.isSMB=(e=t.isSMB)!==null&&e!==void 0?e:!1,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.projectId=t.projectId,this.smbConfig=t.smbConfig,this.status=t.status,this.hostnames=t.hostnames,this.iframesTracking=!!t.iframesTracking,this.crossDomainTracking=!!t.crossDomainTracking,this.crossDomainSingleIframeTracking=!!t.crossDomainSingleIframeTracking,this.consentRequired=!!t.consentRequired,this.allowSubdomains=!!t.allowSubdomains,this.visitorCookieTimeout=t.visitorCookieTimeout||Sc,this.sampleRate=t.sampleRate,this.replayRecordingRate=t.replayRecordingRate,this.validationRate=t.validationRate,this.lastTrackingDraw=t.lastTrackingDraw||1,this.useHttps=!0,this.eMerchandisingEnabled=t.eMerchandisingEnabled,this.mouseMoveHeatmapEnabled=t.mouseMoveHeatmapEnabled,this.jsErrorsEnabled=t.jsErrorsEnabled,this.collectionEnabled=!!(!((o=(i=t.collectionEnabled)!==null&&i!==void 0?i:(n=t.smbConfig)===null||n===void 0?void 0:n.record)!==null&&o!==void 0)||o),this.useSentry=!!((c=t.useSentry)!==null&&c!==void 0?c:!((u=t.smbConfig)===null||u===void 0)&&u.useSentry),this.apiErrors={enabled:(d=t.apiErrorsEnabled)!==null&&d!==void 0?d:0,...t.apiErrors},this.customErrors={enabled:(E=t.customErrorsEnabled)!==null&&E!==void 0?E:0,...t.customErrors},this.jsCustomErrorsEnabled=t.jsCustomErrorsEnabled,this.triggerSessionReplayEnabled=t.triggerSessionReplayEnabled,this.triggerSessionReplayRegex=ca(t.triggerSessionReplayRegex),this.dynamicIdRegex=t.dynamicIdRegex?new csRegExp(t.dynamicIdRegex):null,this.whitelistedAttributes=t.whitelistedAttributes||[],this.replayRecordingUnmaskedUrlRegex=ca(t.replayRecordingUnmaskedUrlRegex),this.replayRecordingMaskedUrlRegex=ca(t.replayRecordingMaskedUrlRegex),this.replayRecordingMaskedUrlRegexRules=t.replayRecordingMaskedUrlRegexRules||null,this.replayRecordingUnmaskedUrlRegexRules=t.replayRecordingUnmaskedUrlRegexRules||null,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.ptcSnapshotPath=t.ptcSnapshotPath||null,this.emitDebugEvents=!1,this.staticResourceManagerDomain=t.staticResourceManagerDomain||null,this.malkaRecordingDomain=t.malkaRecordingDomain||null,this.textVisibilityEnabled=t.textVisibilityEnabled,this.experimental=t.experimental||{},this.malkaEtrEnabled=!!t.malkaEtrEnabled,this.malkaUrlEnabled=!!t.malkaUrlEnabled,this.recordingUrlRules=(f=t.recordingUrlRules)!==null&&f!==void 0?f:[],this.cookielessTrackingEnabled=t.cookielessTrackingEnabled,this.customHashIdEnabled=!!t.customHashIdEnabled,this.encryptionEnabled=!!t.recordingEncryptionEnabled,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 csRegExp(t.pathComputationRules.dynamicElementNameRegex)),this.asyncSerializerEnabled=!!t.asyncSerializerEnabled,this.encryptionPublicKeyId=t.recordingEncryptionPublicKeyId,this.pendingInactivityTimeout=t.pendingInactivityTimeout||5e3,this.accessibilityEnabled=!!t.accessibilityEnabled,this.useStaticResourceManager=!!t.useStaticResourceManager,t.taskSchedulerOptions&&(this.taskSchedulerOptions={...t.taskSchedulerOptions,enabled:!!t.taskSchedulerOptions.enabled}),this.uxaDomain=t.uxaDomain,this.environment=((_=t.uxaDomain)===null||_===void 0?void 0:_.indexOf("staging"))>-1?"staging":"production",this.performanceTimingOptions=t.performanceTimingOptions,this.replayConsentRequiredForSession=!!t.replayConsentRequiredForSession,this.isWebView=!1,t.displayAdOptions&&t.displayAdOptions.length&&(this.displayAdOptions=t.displayAdOptions),t.voc&&(this.voc={...t.voc,enabled:!!t.voc.enabled}),this.vocData=t.vocData,t.heapEnvironment&&(this.heapEnvironment=t.heapEnvironment),t.implementations&&t.implementations.length&&(this.implementations=t.implementations),this.eventsApiEnabled=!!t.eventsApiEnabled,this.anonymizeDigits=(w=t.anonymizeDigits)!==null&&w!==void 0?w:null,this.isHeapPresent=window.heap!==void 0,this.recordTargetingRules=(A=t.recordTargetingRules)!==null&&A!==void 0?A:[],this.paProxyDomainUri=t.paProxyDomainUri||null,this.emitRecordInfoEvents=t.emitRecordInfoEvents!=!1,this.collectHierarchy=!!t.collectHierarchy,this.collectSubmit=!!t.collectSubmit,this.collectTargetText=(V=t.collectTargetText)!==null&&V!==void 0?V:Ba.Disabled,this.identityEncryptionKey=t.identityEncryptionKey||null,this.tagVerificationDomain=t.tagVerificationDomain,this.tagVerificationEnabled=!!t.tagVerificationEnabled,this.trackingCodeVerified=!!t.trackingCodeVerified,this.quotas=(U=t.quotas)!==null&&U!==void 0?U:null}getTrackerUri(){return`${this.cs()}://${this.trackerDomain}`}getSentryFileUri(){return`${this.cs()}://${this.tagDomain}/uxa/smb/errors.js`}getSentryDSNUri(){return`https://${yg}@${this.loggerDomain}/4508608369131520`}getRecordingUri(){return`${this.cs()}://${this.malkaRecordingDomain}`}getLoggerUri(){return`${this.cs()}://${this.loggerDomain}`}getMetricsUri(){return`${this.cs()}://${this.loggerDomain}/metrics`}getStaticResourceManagerUri(){return`${this.cs()}://${this.staticResourceManagerDomain}`}getVerificationEndpoint(){return`${this.cs()}://${this.tagVerificationDomain}`}getSettingsFileUri(){return this.settingsFileUri?this.settingsFileUri:`${this.cs()}://${this.dynamicConfDomain}/${this.projectId}.json`}isQuotaEnabled(){return this.isSMB||this.quotas!==null}getPaProxyDomainUri(){return`${this.cs()}://${this.paProxyDomainUri}`}cs(){return this.useHttps?"https":"http"}isProjectActive(){return this.status===mg}processOptionOverrides(t){t&&t.forEach&&t.forEach(([e,...i])=>{if(e==="setOption"){let[n,o]=i;this.gy(n,o)}})}gy(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==="useHttps"&&(this.useHttps=!!e),t==="isWebView"&&(this.isWebView=e),t==="dynamicConfDomain"&&(this.dynamicConfDomain=e),t==="paProxyDomainUri"&&(this.paProxyDomainUri=e)}getRequestParameters(){return{pid:`${this.projectId}`}}updateDynamicFields(t,e){t==="emitDebugEvents"&&(this.emitDebugEvents=e),t==="minLogLevel"&&(this.minLogLevel=e)}isCsSideloadingHeap(){var t;return((t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_tag_status)==="cs_sideloads_heap"&&!this.isHeapPresent}isHeapSideloadsCs(){var t;return((t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_tag_status)==="heap_sideloads_cs"}isHeapSideloadsCsV5(){var t;return((t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_tag_status)==="heap_sideloads_cs"&&this.td()}isHeapSideloadsStartDataCollection(){if(this.isHeapSideloadsCs()){if(this.td())return!0;let t=ng(this.getHeapVersion()||"");if(t&&t.major===4&&ag(t,{major:4,minor:23,patch:5}))return!0}return!1}td(){var t;return typeof((t=window.heap)===null||t===void 0?void 0:t.getUserId)=="function"}getHeapVersion(){var t,e,i,n,o,c;return typeof((t=window.heap)===null||t===void 0?void 0:t.getConfig)=="function"&&((n=(i=(e=window.heap)===null||e===void 0?void 0:e.getConfig())===null||i===void 0?void 0:i.sdk)===null||n===void 0?void 0:n.version)||((c=(o=window.heap)===null||o===void 0?void 0:o.version)===null||c===void 0?void 0:c.heapJsVersion)||void 0}isCsCrosswritingHeap(){var t;return((t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_tag_status)==="cs_crosswrites_heap"}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"}isCollectTargetTextEnabled(){return this.isSMB||this.collectTargetText!==Ba.Disabled}isNetworkDetailsEnabled(){return this.performanceTimingOptions?this.performanceTimingOptions.withResource||this.performanceTimingOptions.withNavigation:!1}hasRecordingUrlRules(){var t;return!!(!((t=this.recordingUrlRules)===null||t===void 0)&&t.length)}hasTargetingRules(){var t;return!!(!((t=this.recordTargetingRules)===null||t===void 0)&&t.length)}getHeapEnvId(){return this.heapEnvironment?this.heapEnvironment.env_id:""}}return s})(),Sg=(()=>{class s{constructor(t,e){this.yo=t,this.sd=e}init(){this.rd=this.yo!==this.yo.top,this.nd=this.sd.isWebView&&this.yo===this.yo.top,this.sd.iframesTracking&&this.rd||this.nd?this.od=!1:this.od=!0}isInIframeContext(){return this.rd}isTopWindowTracker(){return this.od}isInWebViewContext(){return this.nd}}return s})();function Rl(){}function Fa(s,r){return csString.prototype.lastIndexOf.call(s,r,0)===0}function vg(s,r){return csString.prototype.indexOf.call(s,r,s.length-r.length)!==-1}var la=csSymbol("cachedJson");function _g(s){if(s[la])return s[la];if(csArray.isArray(s)){if(s.length===0)return"[]";let r="["+Ji(s[0]);for(let t=1;t{let s;return function(r){function t(e){return csArray.prototype.join.call(csArray.prototype.map.call(Object.keys(e),i=>`${encodeURIComponent(i)}=${encodeURIComponent(e[i])}`),"&")}r.toQuery=t}(s||(s={})),s})(),Oc=(()=>{class s{constructor(t,e){this.domainUri=t,this.path=e,this.beforeRequestCallbacks=[],this.afterRequestCallbacks=[]}setRequestParametersProviders(...t){this.requestParametersProviders=t}before(t){csArray.prototype.push.call(this.beforeRequestCallbacks,t)}after(t){csArray.prototype.push.call(this.afterRequestCallbacks,t)}retrieveParameters(){return this.requestParametersProviders?csArray.prototype.reduce.call(csArray.prototype.map.call(this.requestParametersProviders,t=>t.getRequestParameters()),(t,e)=>({...t,...e})):{}}}return s})(),Qi=(()=>{class s extends Oc{constructor(t,e){super(t,e)}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,i=>i());let t=this.retrieveParameters();this.pc(t);let e=Pc.toQuery(t);this.my(e),csArray.prototype.forEach.call(this.afterRequestCallbacks,i=>i())}my(t){let e=new window.Image(1,1);e.onload=Rl,e.onerror=Rl,csHTMLImageElementsrc.call(e,`${this.domainUri}${this.path?`/${this.path}`:""}?${t}`)}pc(t){t.r=csString.prototype.slice.call(`${Math.random()}`,2,8)}}return s})(),wg=(()=>{class s extends Oc{constructor(){super("")}send(){}}return s})(),Tg=(()=>{class s{constructor(t,e){this.ls=t,this.yy=e}init(){this.hs=new Qi(this.ls.getLoggerUri()),this.hs.setRequestParametersProviders(this,this.yy)}send(t){this.Eo=t,this.hs.send()}getRequestParameters(){return{a:this.Eo.app,l:this.Eo.level,m:this.Eo.message,s:this.Eo.stacktrace}}}return s})(),bg=/[a-zA-Z0-9._%+-]+(?:@|%40|%2540)[a-zA-Z0-9.%-_]+((?:\.|%2[eE])[a-zA-Z0-9-]+)+/g,Ag=/[a-zA-Z0-9+_-](?:@|%40|%2540)/,Rg="CS_ANONYMIZED_EMAIL",ha="([-A-Za-z0-9+/=_]|=[^=]|={3,})+",Cg=new csRegExp(`(ey${ha}\\.ey${ha}\\.${ha})`,"g"),Ig="CS_ANONYMIZED_JWT",Pg=/[0-9]{4}/,Og=/(^|[^a-zA-Z0-9*.,-])([45*][0-9*]{3}([ -]?)[0-9*]{4}\3[0-9*]{4}\3[0-9*]{4})($|[^a-zA-Z0-9*.,-])/g,Ng="CS_ANONYMIZED_PII",Mg="\u2022",kg=/\d/g,Dg=/([+(]{0,2}\d[-_ ()/]{0,4}){9,}/,xg=/(?:\d{1,3}\.){3}\d{1,3}/,Lg=/(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}/,qe=(()=>{let s;return function(r){function t(E){return csString.prototype.replace.call(E,bg,Rg)}r.replaceEmail=t;function e(E){return csString.prototype.replace.call(E,Cg,Ig)}r.replaceJWT=e;function i(E,f){return csString.prototype.replace.call(E,Og,f)}r.replaceCreditCardNumber=i;function n(E){return csString.prototype.replace.call(E,kg,Mg)}r.replaceDigits=n;function o(E){return xg.test(E)||Lg.test(E)}r.mayHaveIPAddress=o;function c(E){return Dg.test(E)}r.mayHaveNumberSequence=c;function u(E){return Pg.test(E)}r.mayHaveCreditCardNumber=u;function d(E){return Ag.test(E)}r.mayHaveEmail=d}(s||(s={})),s})(),Ci=(()=>{class s{hasPII(t,e){let i=this.checkAndAnonymizePII(t,e);return t!==i}checkAndAnonymizePII(t,e=null){let i=this.Ey(this.fc(t));return e===!0?i=this.Sy(i):e===!1&&(i=this.vy(i)),i}anonymizePII(t){return this.fc(t)}anonymizeJwt(t){return qe.replaceJWT(t)}anonymizeFields(t,e){return csArray.prototype.forEach.call(e,i=>{t[i]=this.fc(t[i])}),t}fc(t){if(qe.mayHaveEmail(t)){let e=qe.replaceEmail(t);return e!==t&&at.counters.redactedPII.count("email"),e}return t}Sy(t){return qe.replaceDigits(t)}vy(t){return qe.mayHaveNumberSequence(t)?qe.replaceDigits(t):t}Ey(t){return qe.mayHaveCreditCardNumber(t)?qe.replaceCreditCardNumber(t,(e,i,n,o,c)=>{if(csString.prototype.indexOf.call(n,"*")===-1){let d=o.length?csArray.prototype.join.call(csString.prototype.split.call(n,o),""):n;if(!this._y(d))return e;at.counters.redactedPII.count("cc")}else at.counters.redactedPII.count("cc-partial");return`${i}${Ng}${c}`}):t}_y(t){let e=parseInt(t[t.length-1]),i=0;for(let n=t.length-2;n>=0;n--){let o=parseInt(t[n]);n%2===0&&(o*=2),i+=Math.floor(o/10)+o%10}return 10-i%10===e}}return s})(),Nc="15.134.1";function Mc(){return{v:Nc}}var Vg=(()=>{class s{constructor(t,e){this.f=t,this.M=e}getRequestParameters(){return{d:`${K.now()}`,p:this.M.anonymizePII(window.location.href),...this.f.getRequestParameters(),...Mc()}}}return s})(),Ug="uxa",Cl=5,jg="No stacktrace",ou="snippet-",au="implementation-snippet-",Il=(()=>{let s;return function(r){r.IMPLEMENTATION="implementation",r.DYNAMIC="dynamic"}(s||(s={})),s})(),Hg=(()=>{class s{constructor(t,e,i){this.us=e,this.M=new Ci,this.ad=ia[yt.warn],this.ad=ia[t.minLogLevel||yt.warn],this.hs=i||new Tg(t,new Vg(t,this.M)),this.cd={[yt.debug]:[],[yt.warn]:[],[yt.implementation]:[],[yt.error]:[],[yt.critical]:[]},this.So={implementation:{},dynamic:{}},this.hs.init()}send(t,e="",i=yt.warn){if(!this.wy(i,e))return;csArray.prototype.push.call(this.cd[i],e||"");let n={message:this.Ty(t,e),stacktrace:this.by(t),app:Ug,level:i};this.hs.send(n)}Ty(t,e){let i=ei(t)?this.M.anonymizePII(t.message||t.toString()):t;return e&&(i+=` ErrorCode: ${e}`),i}by(t){return ei(t)?`${t.stack||jg} ${this.Dr()}`:this.Dr()}Dr(){let t=this.us.getVisitorService(),e=t==null?void 0:t.getVisitor();if(!e)return"No context";let i=this.us.getSessionService(),n=i&&i.getSession(),o={userId:e.id,sessionNumber:e.visitsCount,pageNumber:n&&n.pageNumber};return csJSON.stringify(o)}wy(t,e){if(ia[t]=Cl?!1:!(e&&csArray.prototype.some.call(i,n=>n===e))}ld(t,e){return t in this.So[e]?this.So[e][t]>=Cl?!1:(this.So[e][t]+=1,!0):(this.So[e][t]=1,!0)}}return s})(),ae=!$r&&document.createElement("a"),Bg=/(:443|:80)$/;function Qs(s){return ae?(ae.href=s,ae.href):""}function cu(s,r){return new csURL(s,r).href}function lu(s){let r=Dc(s);return r===null?"":decodeURIComponent(r.hostname)}function kc(s,r){return csArray.prototype.some.call(r,t=>rr(s,`.${t}`)||s===t||t==="")}function Fg(s){return s[0]==="/"?s:`/${s}`}function Pl(s){return csString.prototype.replace.call(s,Bg,"")}function Dc(s){return!ae||!se(s,"http://")&&!se(s,"https://")?null:(ae.href=s,{hash:ae.hash,host:Pl(ae.host),hostname:ae.hostname,href:ae.href,origin:ae.origin?ae.origin:Pl(`${ae.protocol}//${ae.host}`),pathname:Fg(ae.pathname),port:ae.port,protocol:ae.protocol,search:ae.search})}var Ol="CS_IFRAME_MESSAGE",Zi=(()=>{let s;return function(r){r.AfterPageView="afterPageView",r.GetSessionKey="getSessionKey"}(s||(s={})),s})(),Ce=(()=>{let s;return function(r){r.Parent="parent",r.Child="child"}(s||(s={})),s})(),$=(()=>{let s;return function(r){r.Discovery="discovery",r.Stop="stop",r.RecordingContext="recordingContext",r.SensitiveStatus="sensitiveStatus",r.RecordingEvent="recordingEvent",r.EndOfBufferedMessages="endOfBufferedMessages",r.ChildLogMessage="childLogMessage",r.AnalysisEvent="analysisEvent",r.JavascriptError="javascriptError",r.ApiError="apiError",r.Assets="assets",r.DetailedApiError="detailedApiError",r.EmerchandisingMessage="emerchandisingMessage",r.Commands="commands",r.IntegrationCallback="integrationCallback",r.StaticResource="staticResource",r.TrackingContextResultMessage="trackingContextResultMessage",r.TrackingContextRequestMessage="trackingContextRequestMessage",r.CustomError="customError"}(s||(s={})),s})(),bt=(()=>{let s;return function(r){function t(u,d,E,f){let _={type:u,from:d,pid:E,signature:Ol};return f!==void 0&&f>=0&&(_.id=f),_}r.buildBaseMessage=t;function e(u,d,E,f){let _=lu(u.origin);return!!u.data&&!!u.data.type&&u.data.signature===Ol&&u.data.from===d&&u.data.pid===E&&kc(_,f)}r.isMessageValid=e;function i(u,d,E,f){f?u.postMessage(E,d,f):u.postMessage(E,d)}r.sendPostMessage=i;function n(){return new MessageChannel}r.getNewChannelMessage=n;function o(u,d){u.postMessage(d)}r.sendChannelMessage=o;function c(u){u.close()}r.closeChannelPort=c}(s||(s={})),s})(),$g=(()=>{class s{constructor(t){this.f=t}send(t,e="",i=yt.warn){let n={message:t,errorCode:e,level:i},o=bt.buildBaseMessage($.ChildLogMessage,Ce.Child,this.f.projectId);o.content=n,bt.sendPostMessage(window.parent,"*",o)}}return s})(),zg=(()=>{class s{setContext(t,e){this.I=t,this.R=e}getVisitorService(){return this.I}getSessionService(){return this.R}}return s})(),$a=!1;function Gg(){$a=!0}function Pt(){return(s,r,t)=>{if(t){let e=t.value;t.value=function(i,n){(i==null?void 0:i.isTrusted)===!1&&$a||e.call(this,i,n)}}else{let e=s[r];if(typeof e!="function")return;s[r]=function(i,...n){(i==null?void 0:i.isTrusted)===!1&&$a||e.call(this,i,n)}}}}function qg(s){if(document!=null&&document.prerendering){document.addEventListener("prerenderingchange",s,{once:!0});return}s()}function st(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,r,t,e);else for(var c=s.length-1;c>=0;c--)(o=s[c])&&(n=(i<3?o(n):i>3?o(r,t,n):o(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}function Wg(){let s=new MutationObserver(r=>{r.forEach(t=>{ht(t.removedNodes,e=>{e instanceof HTMLElement&&e.tagName==="CS-NATIVE-FRAME-HOLDER"&&(at.counters.pureWindowState.count("iframe-deletion"),Nt.warn(" deleted"),s.disconnect())})})});s.observe(document.body,{childList:!0})}function Nl(s){return typeof s!="function"?!1:s.toString().indexOf("[native code]")!==-1}function Yg(){(!Nl(MutationObserver)||!Nl(MutationObserver.prototype.observe))&&at.counters.patchedNativeFunctions.count("MutationObserver")}function Xg(){try{window.CSPureWindow&&Wg(),Yg()}catch{}}var Bt=(()=>{let s;return function(r){r.CURRENT_DOMAIN="CURRENT_DOMAIN";function t(u){let E=new csRegExp(`(^|;)[ ]*${u}=([^;]*)`).exec(document.cookie);return E?decodeURIComponent(E[2]):null}r.get=t;function e(u,d,E,f,_,w){let A=encodeURIComponent(`${d}`),V=E===r.CURRENT_DOMAIN?void 0:E,U=i(f),P=U?`;expires=${U.toUTCString()}`:"",C=";path=/",F=Ot(V)?`;domain=${V}`:"",j=`${u}=${A}${P}${C}${F}`;return mt(_)&&_!==Ks.NotSet&&(j=`${j};SameSite=${_}`),mt(w)&&w===ss.Yes&&(j=`${j};Secure`),document.cookie=j,!0}r.set=e;function i(u){return Lt(u)?new csDate(K.now()+u):u}r.toExpireDate=i;function n(u,d){t(u)&&e(u,"",d,new csDate(0)),t(u)&&e(u,"",d,new csDate(0),Ks.None,ss.Yes)}r.remove=n;function o(){return document.cookie.length>0}r.isCookiePresent=o;function c(u,d){let E="_cs_root-domain",f=t(E);if(f!==null&&f!=="1")return f;let _=csString.prototype.split.call(window.location.hostname,"."),w=csArray.prototype.pop.call(_);for(;_.length&&(f===null||f==="1");)w=csArray.prototype.join.call([csArray.prototype.pop.call(_),w],"."),e(E,w,w,void 0,u,d),f=t(E);return n(E,w),w}r.getRootDomain=c}(s||(s={})),s})(),Kg=(()=>{let s;return function(r){function t(){return window.navigator.vendor&&csString.prototype.indexOf.call(window.navigator.vendor,"Apple")>-1&&window.navigator.appVersion&&csString.prototype.indexOf.call(window.navigator.appVersion,"Version/12.")>-1}r.browserIsSafariV12=t}(s||(s={})),s})(),Ks=(()=>{let s;return function(r){r.None="None",r.Lax="Lax",r.NotSet="X"}(s||(s={})),s})(),ss=(()=>{let s;return function(r){r[r.Yes=1]="Yes",r[r.No=0]="No"}(s||(s={})),s})(),io=(()=>{class s{constructor(t,e,i){this.f=t,this.w=e,this.pi=i,this.gc=!1,this.ud=Ks.NotSet,this.mc=ss.No}getSameSiteFlag(){return this.ud}getSecureFlag(){return this.mc}getDomain(){return this.yc}getRootDomain(){return this.dd}init(){if(this.f.cookielessTrackingEnabled)return;let t=this.Ay(),e=this.Ry();this.gc=this.Cy(t,e),this.gc?(this.ud=t,this.mc=e):this.f.secureCookiesEnabled&&this.w.getUrlProtocol()==="https:"&&(this.mc=ss.Yes),this.dd=this.Iy(),this.yc=this.Py(this.dd)}Cy(t,e){return Kg.browserIsSafariV12()?!1:(Bt.set(s.COOKIE_TEST_FOR_SAME_SITE,"Test same site",s.CURRENT_DOMAIN,void 0,t,e),Bt.get(s.COOKIE_TEST_FOR_SAME_SITE)?(Bt.remove(s.COOKIE_TEST_FOR_SAME_SITE,s.CURRENT_DOMAIN),!0):!1)}Ay(){return this.w.getUrlProtocol()==="http:"?Ks.Lax:this.pi.isSameSiteNoneSecureNeeded()||this.f.crossDomainTracking?Ks.None:Ks.Lax}Ry(){return this.w.getUrlProtocol()==="http:"?ss.No:this.f.secureCookiesEnabled||this.f.crossDomainTracking||this.pi.isSameSiteNoneSecureNeeded()?ss.Yes:ss.No}isSameSiteSupported(){return this.gc}set(t,e,i,n){let o=Bt.toExpireDate(i),c=n?ss.Yes:this.getSecureFlag();Bt.set(t,e,this.yc,o,this.getSameSiteFlag(),c)}get(t){let i=new csRegExp(`(^|;)[ ]*${t}=([^;]*)`).exec(document.cookie);return i?decodeURIComponent(i[2]):null}delete(t,e){let i=e||this.yc;Bt.remove(t,i)}Iy(){let t=this.pi.isSameSiteNoneSecureNeeded()&&this.isSameSiteSupported(),e=t?Ks.None:void 0,i=t?ss.Yes:void 0;return Bt.getRootDomain(e,i)}Py(t){return this.f.allowSubdomains?t:Bt.CURRENT_DOMAIN}}return s.CURRENT_DOMAIN="CURRENT_DOMAIN",s.COOKIE_TEST_FOR_SAME_SITE="_cs_same_site",s})(),Fi="_cs_t",Ml="1",Jg=(()=>{class s{constructor(t,e){this.mt=t,this.f=e,this.vo=!1,this._o=!1}init(){if(!this.f.cookielessTrackingEnabled&&this.mt.isTopWindowTracker()&&"cookie"in document){if(!this.mt.isInIframeContext()&&Bt.isCookiePresent()){this.vo=!0,this._o=!1;return}if(Bt.set(Fi,Ml,Bt.CURRENT_DOMAIN),Bt.get(Fi)!==null){this.vo=!0,this._o=!1,Bt.remove(Fi,Bt.CURRENT_DOMAIN);return}Bt.set(Fi,Ml,Bt.CURRENT_DOMAIN,void 0,Ks.None,ss.Yes),Bt.get(Fi)!==null&&(this.vo=!0,this._o=!0,Bt.remove(Fi,Bt.CURRENT_DOMAIN))}}areCookiesEnabled(){return this.vo}isSameSiteNoneSecureNeeded(){return this._o}}return s})();function Qg(){let s="CSSessionStorageTest";try{return sessionStorage.setItem(s,s),sessionStorage.getItem(s)!==s?!1:(sessionStorage.removeItem(s),!0)}catch{return!1}}var Zg=(()=>{class s{constructor(t,e){this.f=t,this.pi=e}canTrack(){return this.f.isProjectActive()&&this.Oy()&&this.pd()&&this.Ny()}canTrackInChild(){return this.f.isProjectActive()&&this.My()&&(this.pd()||this.ky())}Ny(){return this.f.cookielessTrackingEnabled?Qg():this.pi.areCookiesEnabled()}pd(){return kc(window.location.hostname,this.f.hostnames)}Oy(){return!this.gd()&&this.Dy()}My(){return!this.gd()&&this.xy()}ky(){return window.location.protocol==="about:"&&window.location.hostname===""}gd(){return"visibilityState"in document&&document.visibilityState==="prerender"}Dy(){return this.md()&&this.Ly()}xy(){return this.md()}Ly(){try{return!!window.localStorage}catch{return!1}}md(){return"pageXOffset"in window&&"pageYOffset"in window&&"onpagehide"in window&&"JSON"in window&&"parse"in window.csJSON&&"stringify"in window.csJSON&&"addEventListener"in window&&"removeEventListener"in window&&"Node"in window&&"filter"in csArray.prototype&&"forEach"in csArray.prototype&&"querySelectorAll"in document&&"now"in csDate&&"keys"in Object&&"performance"in window&&"Map"in window&&"Set"in window}}return s})(),tm=(()=>{class s{constructor(t,e){this.Ec=!1,this.yd=new Map,this.Ed=new Map,this.Sd=new Map,this.vd="CS_WORKER_SIGNATURE";let i=` const algorithm = ${t.algorithm}; const compressor = (${t.getCompressorSourceCode()})(); (()=>{"use strict";function e(e,t,r,s){return new(r||(r=Promise))((function(o,a){function i(e){try{c(s.next(e))}catch(e){a(e)}}function n(e){try{c(s.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,n)}c((s=s.apply(e,t||[])).next())}))}var t,r;Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,function(e){e.UNCOMPRESSED="0",e.GZIP="2"}(t||(t={})),function(e){e.debug="debug",e.warn="warn",e.implementation="implementation",e.error="error",e.critical="critical"}(r||(r={})),r.debug,r.warn,r.implementation,r.error,r.critical;let s={debug(...e){},warn(...e){},implementation(...e){},error(...e){},critical(...e){},isPerfLoggingActive:()=>!1};class o{constructor(e){var t;this.queryParams={},this.headers={},this.handleRecoveredRequests=e=>{for(const t of e){const{metadata:e,events:r}=t;this.send(r,e)}},this.endpoint=e.endpoint,this.compressionOpts=e.compressionOpts,this.recoveryStorage=e.recoveryStorage,this.mandatoryParameters=null!==(t=e.mandatoryParameters)&&void 0!==t?t:[],this.contentType=e.contentType,this.worker=!!e.worker,this.recoveryStorage&&this.recoveryStorage.recover(this.handleRecoveredRequests)}setQueryParams(e){Object.keys(e).forEach((t=>{this.queryParams[t]=e[t]}))}removeQueryParams(e){e?e.forEach((e=>{delete this.queryParams[e]})):this.queryParams={}}send(e,r){const o=r||Object.assign({},this.queryParams),a=!("ct"in o),i="application/json"===this.contentType||"string"!=typeof e&&!this.isArrayBuffer(e);"ct"in o||(this.compressionOpts&&a?o.ct=this.compressionOpts.compressionType:o.ct=t.UNCOMPRESSED);const n=i?JSON.stringify(e):e,c=Object.keys(o).map((e=>\`\${encodeURIComponent(e)}=\${encodeURIComponent(o[e])}\`)).join("&"),h=\`\${this.endpoint}?\${c}\`;!function(e,t){const r=e.length;for(let s=0;snull==o[e]))?this.compressionOpts&&a&&"string"==typeof n?this.compressionOpts.compressor(n,this.compressionOpts.compressionOutputType,(e=>this.doSend(h,o,e))):this.doSend(h,o,n):s.warn(\`[\${this.worker?"WORKER":"MAIN"}] All mandatory parameters are not present on \${h}\`)}onLoad(e){this.onLoadCallback=e}onError(e){this.onErrorCallback=e}onTimeout(e,t){this.onTimeoutCallback=e,this.timeout=t}abort(){this.abortCurrentXhrCall&&this.abortCurrentXhrCall()}setRequestHeader(e,t){this.headers[e]=t}getQueryParams(){return this.queryParams}isArrayBuffer(e){return e&&void 0!==e.byteLength}doSend(e,t,r){const s=new XMLHttpRequest,o=Object.keys(t).map((e=>\`\${encodeURIComponent(e)}=\${encodeURIComponent(t[e])}\`)).join("&");s.open("POST",e),this.contentType&&s.setRequestHeader("Content-Type",this.contentType),s.onload=()=>{if(this.recoveryStorage&&this.recoveryStorage.recover(this.handleRecoveredRequests),this.onLoadCallback){const e={params:t,responseText:s.responseText,status:s.status};this.onLoadCallback(e)}},s.onerror=()=>{this.recoveryStorage&&this.recoveryStorage.save({key:o,metadata:t,events:r}),this.onErrorCallback&&this.onErrorCallback({params:t})},this.timeout&&this.onTimeoutCallback&&(s.timeout=this.timeout,s.ontimeout=()=>{this.onTimeoutCallback()}),this.abortCurrentXhrCall=()=>s.abort(),Object.keys(this.headers).forEach((e=>{s.setRequestHeader(e,this.headers[e])})),s.send(r)}}class a{constructor(e){this.maxStoredBytes=e,this.storageBytesUsed=0}addString(e){this.storageBytesUsed+=2*e.length}addArrayBuffer(e){this.storageBytesUsed+=e.byteLength}isThresholdReached(){return this.storageBytesUsed>this.maxStoredBytes}reset(){this.storageBytesUsed=0}}class i{constructor(e){this.ramStorage={},this.byteSizeCounter=new a(e)}save({key:e,metadata:t,events:r}){this.byteSizeCounter.isThresholdReached()||(this.byteSizeCounter.addString(e),"string"==typeof r?this.byteSizeCounter.addString(r):this.byteSizeCounter.addArrayBuffer(r),this.byteSizeCounter.isThresholdReached()||(this.ramStorage[e]={metadata:t,events:r}))}recover(e){const t=[];this.getStorageKeys().forEach((e=>{const r=this.ramStorage[e];void 0!==r&&(delete r.metadata.datatype,t.push(r),this.removeItem(e))})),0!==t.length&&(e(t),this.byteSizeCounter.reset())}getStorageKeys(){return Object.keys(this.ramStorage)}removeItem(e){delete this.ramStorage[e]}}var n;!function(e){e[e.NOT_STARTED=0]="NOT_STARTED",e[e.OPEN_IN_PROGRESS=1]="OPEN_IN_PROGRESS",e[e.OPEN_FAILED=2]="OPEN_FAILED",e[e.READY=3]="READY"}(n||(n={}));class c{constructor(e,t,r){this.storageName=e,this.onOpenError=r,this.cacheState=n.NOT_STARTED,this.toBeSavedBuffer=[],this.recoveryInProgress=0,this.origin=self.origin,this.context="object"==typeof window?"":"worker-",this.byteSizeCounter=new a(t),this.init()}init(){return e(this,void 0,void 0,(function*(){yield this.openCache(),this.cacheState===n.READY?this.flushToBeSavedBuffer():this.onOpenError(this.toBeSavedBuffer)}))}flushToBeSavedBuffer(){this.toBeSavedBuffer.forEach((e=>{this.save(e)})),this.toBeSavedBuffer=[]}save(t){return e(this,void 0,void 0,(function*(){try{if(this.cacheState===n.OPEN_IN_PROGRESS)return void this.toBeSavedBuffer.push(t);if(this.cacheState!==n.READY)return;if(this.byteSizeCounter.isThresholdReached())return;const{key:e,metadata:r,events:s}=t;if(this.byteSizeCounter.addString(e),"string"==typeof s?this.byteSizeCounter.addString(s):this.byteSizeCounter.addArrayBuffer(s),this.byteSizeCounter.isThresholdReached())return;yield this.cache.put(\`\${this.origin}/\${e}\`,new Response(s,{headers:r}))}catch(e){}}))}recover(t){return e(this,void 0,void 0,(function*(){(this.cache||(yield this.openCache(),this.cacheState===n.READY))&&this.doRecover(t)}))}openCache(){return e(this,void 0,void 0,(function*(){try{this.cacheState=n.OPEN_IN_PROGRESS,this.cache=yield self.caches.open(\`\${this.context}\${this.storageName}\`),this.cacheState=n.READY}catch(e){this.cacheState=n.OPEN_FAILED}}))}doRecover(t){return e(this,void 0,void 0,(function*(){try{if(this.recoveryInProgress++,this.recoveryInProgress>1)return;const e=yield this.cache.keys();if(0===e.length)return;const r=(yield this.cache.matchAll()).map((e=>{const t={};e.headers.forEach(((e,r)=>{t[r]=e})),delete t["content-type"];const r=t.datatype;return delete t.datatype,"json"===r||"base64"===r?e.text().then((e=>({metadata:t,events:e}))):e.arrayBuffer().then((e=>({metadata:t,events:e})))})),s=yield Promise.all(r);yield Promise.all(e.map((e=>this.cache.delete(e)))),t(s),this.byteSizeCounter.reset()}catch(e){}finally{this.recoveryInProgress--}}))}}class h{constructor(e){try{this.initializeStorageStrategy(e)}catch(e){this.setRamStorageStrategy()}}initializeStorageStrategy(e){self.caches?this.setCachesStrategy(e):this.setRamStorageStrategy()}save(e){this.storageStrategy.save(e)}recover(e){this.storageStrategy.recover(e)}setCachesStrategy(e){this.storageStrategy=new c(e,h.MAX_SIZE,(e=>{this.setRamStorageStrategy(e)}))}setRamStorageStrategy(e){this.storageStrategy=new i(h.MAX_SIZE),e&&e.forEach((e=>{this.storageStrategy.save(e)}))}}h.MAX_SIZE=16777216,function(){const t="CS_WORKER_SIGNATURE",r=new Map,s=new h("csPersisted");function a(e){var a;if((a=e)&&a.WORKER_SIGNATURE===t)switch(e.type){case"CreatePostRequest":{const{endpoint:a,compressionOutputType:i,useRetry:n,mandatoryParameters:c}=e,h={endpoint:a,mandatoryParameters:c,worker:!0};i&&(h.compressionOpts={compressor,compressionOutputType:i,compressionType:algorithm}),n&&(h.recoveryStorage=s);const d=new o(h);r.set(a,d),d.onLoad((e=>{const r={type:"onLoad",endpoint:a,response:e,WORKER_SIGNATURE:t};self.postMessage(r)})),d.onError((e=>{const r={type:"onError",endpoint:a,response:e,WORKER_SIGNATURE:t};self.postMessage(r)}))}break;case"SetQueryParams":{const{endpoint:t,queryParams:s}=e,o=r.get(t);o&&o.setQueryParams(s)}break;case"RemoveQueryParams":{const{endpoint:t,queryParams:s}=e,o=r.get(t);o&&o.removeQueryParams(s)}break;case"Send":{const{endpoint:t,payload:s,queryParams:o}=e,a=r.get(t);a&&a.send(s,o)}break;case"Abort":{const{endpoint:t}=e,s=r.get(t);s&&s.abort()}break;case"SetHeader":{const{endpoint:t,headerName:s,headerValue:o}=e,a=r.get(t);a&&a.setRequestHeader(s,o)}break;case"SetTimeout":{const{endpoint:s,timeout:o}=e,a=r.get(s);a&&a.onTimeout((()=>{const e={type:"onTimeout",endpoint:s,WORKER_SIGNATURE:t};self.postMessage(e)}),o)}break;default:throw new Error(JSON.stringify(e))}}self.addEventListener("message",(function(t){t.data.getReader?function(t,r){e(this,void 0,void 0,(function*(){const e=t.getReader();for(;;){const{done:t,value:s}=yield e.read();if(t)break;r(s)}}))}(t.data,a):a(t.data)}))}()})();`;try{this.ds=this.Vy(e||i),this.Ec=!0,s.isTransferableStreamSupported()&&(this._d=new ReadableStream({start:n=>{this.Sc=n},cancel:()=>{this.Sc=null}}),this.ds.postMessage(this._d,[this._d]))}catch(n){n.name==="SecurityError"&&at.counters.cspErrors.count("network-worker"),this.Ec=!1}}postMessage(t){t.WORKER_SIGNATURE=this.vd,this.Sc?this.Sc.enqueue(t):this.ds.postMessage(t)}Vy(t){let e=window.csURL||window.webkitURL,i=window.Blob,n=window.Worker,o=new i([t],{type:"application/javascript"}),c=e.createObjectURL(o);W.whiteListFilename(c);let u=new n(c);return u.onmessage=d=>{let{type:E,endpoint:f,WORKER_SIGNATURE:_}=d.data;if(_===this.vd){if(E==="onLoad"){let{response:w}=d.data,A=this.yd.get(f);A&&A(w)}else if(E==="onError"){let{response:w}=d.data,A=this.Ed.get(f);A&&A(w)}else if(E==="onTimeout"){let w=this.Sd.get(f);w&&w()}}},u}registerOnLoadCallback(t,e){this.yd.set(t,e)}registerOnErrorCallback(t,e){this.Ed.set(t,e)}registerOnTimeoutCallback(t,e){this.Sd.set(t,e)}isSupported(){return this.Ec}static isTransferableStreamSupported(){try{let t=new ReadableStream;return structuredClone(t,{transfer:[t]}),!0}catch{return!1}}}return s})(),em=(()=>{class s{constructor(t){var e;this.Yt={},this.Xt=t.endpoint,this.Ee=t.networkWorker,this.Uy=t.compressionOutputType,this.jy=t.useRetry,this.Ee.postMessage({type:"CreatePostRequest",endpoint:this.Xt,compressionOutputType:this.Uy,useRetry:this.jy,mandatoryParameters:(e=t.mandatoryParameters)!==null&&e!==void 0?e:[]})}setQueryParams(t){this.Ee.postMessage({type:"SetQueryParams",endpoint:this.Xt,queryParams:t}),csArray.prototype.forEach.call(Object.keys(t),e=>{this.Yt[e]=t[e]})}getQueryParams(){return this.Yt}removeQueryParams(t){this.Ee.postMessage({type:"RemoveQueryParams",endpoint:this.Xt,queryParams:t}),t&&csArray.prototype.forEach.call(t,e=>{delete this.Yt[e]})}send(t,e){this.Ee.postMessage({type:"Send",endpoint:this.Xt,payload:t,queryParams:e})}abort(){this.Ee.postMessage({type:"Abort",endpoint:this.Xt})}onLoad(t){this.Ee.registerOnLoadCallback(this.Xt,t)}onError(t){this.Ee.registerOnErrorCallback(this.Xt,t)}setRequestHeader(t,e){this.Ee.postMessage({type:"SetHeader",endpoint:this.Xt,headerName:t,headerValue:e})}onTimeout(t,e){this.Ee.registerOnTimeoutCallback(this.Xt,t),this.Ee.postMessage({type:"SetTimeout",endpoint:this.Xt,timeout:e})}}return s})(),ro=(()=>{let s;return function(r){r.UNCOMPRESSED="0",r.GZIP="2"}(s||(s={})),s})(),hu=(()=>{class s{constructor(t){this.onError=t}}return s})(),sm=(()=>{class s{constructor(t){var e;this.Yt={},this.vc={},this.wd=i=>{for(let n of i){let{metadata:o,events:c}=n;this.send(c,o)}},this.Xt=t.endpoint,this.xr=t.compressionOpts,this.Kt=t.recoveryStorage,this.mandatoryParameters=(e=t.mandatoryParameters)!==null&&e!==void 0?e:[],this._c=t.contentType,this.worker=!!t.worker,this.Kt&&this.Kt.recover(this.wd)}setQueryParams(t){Object.keys(t).forEach(e=>{this.Yt[e]=t[e]})}removeQueryParams(t){t?t.forEach(e=>{delete this.Yt[e]}):this.Yt={}}send(t,e){let i=e||{...this.Yt},n=!("ct"in i),o=this._c==="application/json"||typeof t!="string"&&!this.Hy(t);"ct"in i||(!this.xr||!n?i.ct=ro.UNCOMPRESSED:i.ct=this.xr.compressionType);let c=o?JSON.stringify(t):t,u=Object.keys(i).map(E=>`${encodeURIComponent(E)}=${encodeURIComponent(i[E])}`).join("&"),d=`${this.Xt}?${u}`;if($h(this.mandatoryParameters,E=>i[E]==null)){Nt.warn(`[${this.worker?"WORKER":"MAIN"}] All mandatory parameters are not present on ${d}`);return}this.xr&&n&&typeof c=="string"?this.xr.compressor(c,this.xr.compressionOutputType,E=>this.Td(d,i,E)):this.Td(d,i,c)}onLoad(t){this.qi=t}onError(t){this.Lr=t}onTimeout(t,e){this.fi=t,this.Vr=e}abort(){this.bd&&this.bd()}setRequestHeader(t,e){this.vc[t]=e}getQueryParams(){return this.Yt}Hy(t){return t&&t.byteLength!==void 0}Td(t,e,i){let n=new XMLHttpRequest,o=Object.keys(e).map(c=>`${encodeURIComponent(c)}=${encodeURIComponent(e[c])}`).join("&");n.open("POST",t),this._c&&n.setRequestHeader("Content-Type",this._c),n.onload=()=>{if(this.Kt&&this.Kt.recover(this.wd),this.qi){let c={params:e,responseText:n.responseText,status:n.status};this.qi(c)}},n.onerror=()=>{this.Kt&&this.Kt.save({key:o,metadata:e,events:i}),this.Lr&&this.Lr({params:e})},this.Vr&&this.fi&&(n.timeout=this.Vr,n.ontimeout=()=>{this.fi()}),this.bd=()=>n.abort(),Object.keys(this.vc).forEach(c=>{n.setRequestHeader(c,this.vc[c])}),n.send(i)}}return s})(),uu=(()=>{class s{constructor(t){this.wc=t,this.Ee=new tm(this.wc)}create(t,e,i,n,o=[]){if(this.Ee.isSupported()&&e)return new em({networkWorker:this.Ee,endpoint:t,compressionOutputType:i,useRetry:!!n,mandatoryParameters:o});{let c=i?{compressor:this.wc.compress,compressionOutputType:i,compressionType:this.wc.algorithm}:void 0;return new sm({endpoint:t,compressionOpts:c,recoveryStorage:n})}}}return s})(),im=(()=>{class s{constructor(t,e,i,n,o){this.I=t,this.R=e,this.Xe=i,this.vt=n,this.f=o}get(){return{exclusion:this.Xe.getAppliedTrackingDraw(),visitor:this.I.getVisitor(),session:this.R.getSession(),cvars:this.vt.getCustomVariablesSession()}}apply(t){t&&(t.exclusion?this.exclude():this.include(t))}exclude(){this.Xe.exclude(this.f),this.I.removeVisitor(),this.R.removeSession(),this.vt.removeCustomVariablesSession()}include(t){this.Xe.removeExclusion(),this.I.setVisitor(t.visitor),t.session?this.R.setSession(t.session):this.R.removeSession(),t.cvars?this.vt.setCustomVariableSession(t.cvars):this.vt.removeCustomVariablesSession()}}return s})(),Yn=".",xc="__DOT__",rm=/^(([a-z0-9\-])+(\.[0-9]+){6})(\.[0-1])?(\.\b(x|[0-9a-fA-F]{12})\b)?$/,du="x";function nm(s){let[r,t,e,i,n,o,c,u,d]=hm(s);return{id:r,creationTimestamp:Number(t),visitsCount:Number(e),hitTimestamp:Number(i),lastVisitTimestamp:Number(n),appliedTrackingDraw:Number(o),expires:Number(c),allowSubdomains:u===void 0?void 0:!!Number(u),identityPrint:d===void 0||d===du?null:d}}function om(s){var r;return csArray.prototype.join.call(csArray.prototype.map.call(csArray.prototype.map.call([s.id,s.creationTimestamp,s.visitsCount,s.hitTimestamp,s.lastVisitTimestamp,s.appliedTrackingDraw,s.expires,s.allowSubdomains?1:0,(r=s.identityPrint)!==null&&r!==void 0?r:du],csString),cm),Yn)}function am(s){return rm.test(s)}function cm(s){return csString.prototype.replace.call(s,/\./g,xc)}function lm(s){return csString.prototype.replace.call(s,new csRegExp(xc,"g"),Yn)}function hm(s){return csString.prototype.indexOf.call(s,xc)!==-1?csArray.prototype.map.call(csString.prototype.split.call(s,Yn),lm):csString.prototype.split.call(s,Yn)}var tt=(()=>{let s;return function(r){r.QUOTA_REACHED="X",r.RECORDING_RULES_TARGETING="8",r.ANALYTICS_ONLY_RULES_TARGETING="9",r.ANALYTICS_ONLY="0",r.RECORDING_GLOBAL_SAMPLING="5",r.RECORDING_TEMPORARILY="T",r.RECORDING_URL_SAMPLING="6",r.RECORDING_ETR_SAMPLING="7",r.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED="B",r.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN="W"}(s||(s={})),s})(),Se=(()=>{let s;return function(r){r.ETR_OFF="0",r.ETR_ON="1"}(s||(s={})),s})(),Zs=(()=>{let s;return function(r){r.ETR_LEGACY="0",r.ETR_SESSION="1",r.ETR_PAGE="2"}(s||(s={})),s})(),Ve=(()=>{let s;return function(r){r.ETR_DISABLED="0",r.ETR_PENDING="1",r.ETR_SAVED_PAGE="2",r.ETR_SAVED_SESSION="3",r.ETR_NOT_SAVED_SESSION="9"}(s||(s={})),s})(),za=(()=>{let s;return function(r){r.UNNECESSARY="U",r.NOT_EXPRESSED="N",r.WITHDRAWN="W",r.GRANTED="G"}(s||(s={})),s})(),um=(()=>{let s;return function(r){r.ETR_DISABLED="0",r.ETR_PENDING="1",r.ETR_SAVED_PAGE="2",r.ETR_SAVED_SESSION="3",r.ETR_NOT_SAVED_SESSION="9"}(s||(s={})),s})(),pu=/^(\d+\.[01356789TBWX](\.[01UNWG])?(\.[39])?)(\.\d+)?$/,fu=".";function dm(s){return csArray.prototype.join.call([s.pageNumber,s.collectState,s.replayConsent,s.etrStatus],fu)}function pm(s){if(!Lc(s))return null;let r=Ga(s);return r!==null?gu(r):null}function gu(s){var r,t;let[e,i,n,o]=csString.prototype.split.call(s,fu);return{collectState:i,replayConsent:(r=n)!==null&&r!==void 0?r:za.UNNECESSARY,etrStatus:(t=o)!==null&&t!==void 0?t:um.ETR_NOT_SAVED_SESSION,pageNumber:parseInt(e,10)}}function Lc(s){return pu.test(s)}function Ga(s){if(!s)return null;let r=(()=>{var t;return(t=csString.prototype.match.call(s,pu))===null||t===void 0?void 0:t[1]})();return r!=null?r:null}var As="_cs_ex",kl=2592e6,fm=/^[0-9]+$/,gm=(()=>{class s{constructor(t,e,i){this.f=t,this.N=e,this.K=i}onCookieToSet(t){this.gi=t}onCookieToRemove(t){this.mi=t}get(){return this.f.cookielessTrackingEnabled?Number(this.K.getItem(As)):Number(this.N.get(As))}set(t){var e;this.f.cookielessTrackingEnabled?this.K.setItem(As,t):(this.N.set(As,t,kl),(e=this.gi)===null||e===void 0||e.call(this,As,t,kl))}remove(){var t;this.f.cookielessTrackingEnabled?this.K.removeItem(As):(this.N.delete(As),(t=this.mi)===null||t===void 0||t.call(this,As))}static isValidExclusionString(t){return fm.test(t)}}return s})(),$s="_cs_cvars",mm=(()=>{class s{constructor(t,e,i){this.f=t,this.N=e,this.K=i}onCookieToSet(t){this.gi=t}onCookieToRemove(t){this.mi=t}get(){return this.f.cookielessTrackingEnabled?this.K.getItem($s):this.N.get($s)}set(t){var e;this.f.cookielessTrackingEnabled?this.K.setItem($s,t):(this.N.set($s,t),(e=this.gi)===null||e===void 0||e.call(this,$s,t))}remove(){var t;this.f.cookielessTrackingEnabled?this.K.removeItem($s):(this.N.delete($s),(t=this.mi)===null||t===void 0||t.call(this,$s))}static isValidCustomVarString(t){return typeof t=="string"}}return s})();function Ms(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,r,t,e);else for(var c=s.length-1;c>=0;c--)(o=s[c])&&(n=(i<3?o(n):i>3?o(r,t,n):o(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}var no=(()=>{class s{constructor(){this.set=new Set}add(t){this.set.add(t),this.set.size===1&&csSetTimeout(()=>{this.set.clear()})}has(t){return this.set.has(t)}del(t){this.set.delete(t)}clear(){this.set.clear()}values(){return ii(this.set)}get count(){return this.set.size}}return s})(),ym=(()=>{class s extends no{constructor(t="high"){super(),this.Gy=t}add(t){this.set.add(t),this.set.size===1&&ve(()=>{this.set.clear()},this.Gy)}}return s})();function oo(s,r=!1){let t=new no;return{push(e){t.count===0&&(r?ve:csSetTimeout)(()=>{s(t.values()),t.clear()}),t.add(e)}}}function Em(){let s=new Error,r=s.stack?csArray.prototype.filter.call(csString.prototype.split.call(s.stack,` `),e=>e!=="Error"&&csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(e),"promise ")===-1&&csString.prototype.indexOf.call(e,"[native code]")===-1&&csString.prototype.indexOf.call(e,"()")===-1):[];if(r.length===0)return"";let t=vm(r);return t===""||(r=_m(r,t),r.length===0)?"":mu(r[0])}function Sm(s){return csString.prototype.indexOf.call(s,"@")!==-1}function vm(s){return s.length>0?mu(s[0]):""}function _m(s,r){return csArray.prototype.filter.call(s,t=>csString.prototype.indexOf.call(t,r)===-1)}function mu(s){let r="",t;Sm(s)?t=new csRegExp("@(.+):(\\d+):(\\d+)$"):t=new csRegExp("\\((.+):(\\d+):(\\d+)\\)");let e=t.exec(s);return e&&(r=e[1]),r}var wm=s=>s;function Tm(s,r,t,e){let i=csSymbol.for("propertyProxy");Object.defineProperty(s,r,{get(){var n;if(this[i])return this[i];let o=(n=t.get)===null||n===void 0?void 0:n.apply(this);return typeof o!="object"?o:(typeof Proxy=="function"?this[i]=new Proxy(o,{get(c,u){let d=Reflect.get(c,u);return typeof d=="function"?d.bind(c):d},set:(c,u,d)=>{let E=c[u],f=Reflect.set(c,u,d);return e.forEach(_=>_(this,d,E,"subproperty")),f}}):this[i]=o,this[i])},set(){var n;let o=arguments,c=this[r],u=(n=t.set)===null||n===void 0?void 0:n.apply(this,o);delete this[i];try{e.forEach(d=>d(this,o[0],c,"property"))}catch(d){Nt.error(d)}return u}})}function bm(s,r,t){let e=Am(s,r);if(!e)return null;let i=(n,o,c,u)=>t(n,o,c,u);return{activate:()=>{e.add(i)},deactivate:()=>{e.delete(i)}}}function Am(s,r){let t=csSymbol.for(r);if(s[t])return s[t];let e=new Set,i=Object.getOwnPropertyDescriptor(s,r);return i?i.configurable?(s[t]=e,Tm(s,r,i,e),e):(Nt.warn(`Cannot intercept non configurable property '${csString(r)}' of object '${s}'`),null):(Nt.warn(`Cannot intercept property '${csString(r)}' because it does not exist directly on the target object '${s}'`),null)}function Rm(s,r){let t=csSymbol.for(r);if(s[t])return s[t];let e=Object.getOwnPropertyDescriptor(s,r);if(!(e!=null&&e.writable)&&!(e!=null&&e.set))return Nt.warn(`Cannot intercept read only function '${csString(r)}' of object '${s}'`),null;let i=new Set;s[t]=i;let n=s[r];if(typeof n=="function"){let o=function(){let c=arguments,u=[];try{u=csArray.prototype.map.call(ii(i),E=>E(c))}catch(E){Nt.critical(E)}let d=n.apply(this,c);return Ai(()=>{let E={result:d,context:this,args:c};csArray.prototype.forEach.call(u,f=>f(E))},as.MonkeyPatch),d};Im(o,n),s[r]=o}return i}function Rs({target:s,methodName:r,hook:t,hookPrepareArgs:e=wm,options:i}){let n=Rm(s,r);if(!n)return null;let o=c=>{let u=e(c),d=i!=null&&i.withCallerName?{callerName:Em()}:{};return E=>t({...E,...d,args:u})};return{activate:()=>{n.add(o)},deactivate:()=>{n.delete(o)}}}function Cm(s,r){let t=csSymbol.for(r);if(s[t])return s[t];let e=new Set,i=Object.getOwnPropertyDescriptor(s,r);return i?i.configurable?(s[t]=e,Object.defineProperty(s,r,{set(){var n;let o=this[r],c=arguments;return Ai(()=>{e.forEach(u=>u(this,c[0],o,"property"))},as.MonkeyPatch),(n=i.set)===null||n===void 0?void 0:n.apply(this,c)}}),e):(Nt.warn(`Cannot intercept read only property '${csString(r)}' of object '${s}'`),null):e}function Xn(s,r,t){let e=Cm(s,r);if(!e)return null;let i=(n,o,c)=>t(n,o,c,"property");return{activate:()=>{e.add(i)},deactivate:()=>{e.delete(i)}}}function Im(s,r){s.prototype=r.prototype,Object.defineProperty(s,"toString",{value:()=>r.toString()})}var or=(()=>{var s;class r{static qy(e){this.Ds.forEach(i=>{e(i,"initial")})}static Ur(e){if(this.D||(this.D=new csMutationObserver(i=>{for(let n of i)n.target.isConnected&&ht(n.addedNodes,this.Wy),ht(n.removedNodes,this.Yy)})),csArray.prototype.push.call(this.ve,e),!this.F){this.F=!0,this.D.observe(document,this.jr);for(let i of _i.getAllShadowHosts(document)){let n=csElementshadowRoot.apply(i);this.Ds.add(n),this.D.observe(n,this.jr)}this.Cc||(this.Cc=Rs({target:Element.prototype,methodName:"attachShadow",hook:i=>i.result.isConnected&&this.Cd(i.result)})),this.Cc.activate()}this.qy(e)}static Hr(e){var i,n;this.ve=csArray.prototype.filter.call(this.ve,o=>o!==e),this.ve.length===0&&(this.ve=[],this.F=!1,(i=this.D)===null||i===void 0||i.disconnect(),(n=this.Cc)===null||n===void 0||n.deactivate(),this.Ds.clear())}constructor(e){this.A=e,this.A=si("DocumentShadowRootObserver:callback",(i,n)=>e(i,n))}get shadowRoots(){return ii(s.Ds)}takeRecords(){var e,i;return(i=(e=s.D)===null||e===void 0?void 0:e.takeRecords())!==null&&i!==void 0?i:[]}observe(){_i.isSupported()&&s.Ur(this.A)}disconnect(){_i.isSupported()&&s.Hr(this.A)}}return s=r,r.ve=[],r.Ds=new Set,r.F=!1,r.jr={childList:!0,subtree:!0},r.Cd=t=>{s.Ds.has(t)||(s.D.observe(t,s.jr),s.Ds.add(t),ht(s.ve,e=>e(t,"added")))},r.Wy=t=>{_e(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(s.Cd)},r.Yy=t=>{t.isConnected||_e(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(e=>{s.Ds.has(e)&&(s.Ds.delete(e),ht(s.ve,i=>i(e,"removed")))})},St([G()],r.prototype,"observe",null),St([G()],r.prototype,"disconnect",null),r})(),Dl={childList:!0,subtree:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,attributeOldValue:!0},Je=(()=>{var s;class r{static setShadowRootFilter(e){csArray.prototype.push.call(s.shadowRootFilters,e)}static Ic(e){if(s.shadowRootFilters.length>0&&Ki(e))for(let i=0;i{this.isRefreshing=!1;let i=this.mutationObserver.takeRecords();i.length&&s.mutationCallback(i),this.mutationObserver.disconnect(),this.observedTargets.forEach(n=>{this.mutationObserver.observe(n,Dl)})})))}static observe(e,i){csArray.prototype.push.call(this.callbacks,e),i&&csArray.prototype.push.call(this.shadowRootCallbacks,i),this.started?i&&csArray.prototype.forEach.call(_i.getAllShadowHosts(document),n=>i(csElementshadowRoot.apply(n),"initial")):(this.mutationObserver=new csMutationObserver(this.mutationCallback),this.Ic(document),this.shadowRootObserver=new or(this.onShadowRoot),this.shadowRootObserver.observe(),this.started=!0,ht(this.shadowRootObserver.shadowRoots,n=>{this.Ic(n)}))}static disconnect(e,i){var n,o;this.callbacks=csArray.prototype.filter.call(this.callbacks,c=>c!==e),i&&(this.shadowRootCallbacks=csArray.prototype.filter.call(this.shadowRootCallbacks,c=>c!==i)),this.callbacks.length===0&&(this.callbacks=[],this.shadowRootCallbacks=[],s.shadowRootFilters=[],(n=this.shadowRootObserver)===null||n===void 0||n.disconnect(),(o=this.mutationObserver)===null||o===void 0||o.disconnect(),this.observedTargets.clear(),this.started=!1)}constructor(e,i){this.A=e,this.Id=i;let n=oo(o=>e(o,this),!0);this.A=si("DocumentMutationObserver:callback",o=>{ht(o,c=>n.push(c))})}get shadowRoots(){var e,i;return(i=(e=s.shadowRootObserver)===null||e===void 0?void 0:e.shadowRoots)!==null&&i!==void 0?i:[]}takeRecords(){var e;let i=(e=s.mutationObserver)===null||e===void 0?void 0:e.takeRecords(),n=s.shadowRootObserver.takeRecords();return i!=null&&i.length&&n.length?sf(i,n):i!=null?i:n}observe(){s.observe(this.A,this.Id)}disconnect(){s.disconnect(this.A,this.Id)}}return s=r,r.callbacks=[],r.shadowRootCallbacks=[],r.started=!1,r.observedTargets=new Set,r.shadowRootFilters=[],r.mutationCallback=t=>{Ht.mutations.count.increase(t.length),csArray.prototype.forEach.call(s.callbacks,e=>e(t,s.mutationObserver))},r.onShadowRoot=(t,e)=>{ht(s.shadowRootCallbacks,i=>i(t,e)),e!=="removed"?s.Ic(t):s.disconnectShadowRoot(t)},r.isRefreshing=!1,St([G()],r.prototype,"observe",null),St([G()],r.prototype,"disconnect",null),r})(),ua;function ee(s){if(ua||(ua=document.createElement("div")),!(!!s&&L(s)))return Nt.warn(`isValidSelector: invalid selector provided '${s}'`),!1;try{return Te.call(ua,s),!0}catch{return Nt.warn(`isValidSelector: invalid selector provided '${s}'`),!1}}function tr(s,r){if(wl)return wl.call(s,r);let t=s;do{if(Te.call(t,r))return t;t=t==null?void 0:t.parentElement}while(t!==null&&t.nodeType===1);return null}var Ke=(()=>{class s{get selectors(){return this.je===""?null:this.je}constructor(t,e={closest:!1}){this.A=t,this.At=e,this.je="",this.Br=new no,this.wo=Ri(i=>{if(this.je==="")return;let n=[];for(let o of _c(i,c=>c.addedNodes)){if(!(bf(o)||this.At.closest&&$n(o)))continue;let c=this.At.closest?this.Xy(o,this.je):this.findMatchingElements(o,this.je);Sl(c,n)}n.length&&this.A(n,"added")},"SelectorObserver.processMutations"),this.Ky=(i,n)=>{if(this.je===""||n!=="added")return;let o=this.findMatchingElements(i,this.je);o.length&&this.A(o,"added")},this.z=new Je(this.wo,this.Ky)}observe(t){this.je===""?this.z.observe():this.je+=",",this.je+=t;let e=this.findMatchingElements(document,t);for(let i of this.z.shadowRoots){let n=this.findMatchingElements(i,t);Sl(n,e)}e.length&&(ht(e,i=>{this.Br.add(i)}),this.A(e,"initial"))}processPendingMutations(){this.wo(this.z.takeRecords())}disconnect(){this.z.disconnect(),this.Br.clear(),this.je=""}Xy(t,e){let i=[];if($n(t)){if(t.parentElement){let n=tr(t.parentElement,e);n&&csArray.prototype.push.call(i,n)}return csArray.prototype.filter.call(i,n=>this.Br.has(n)===!1)}else{if(Ns(t)){let n=tr(t,e);if(n)return csArray.prototype.push.call(i,n),csArray.prototype.filter.call(i,o=>this.Br.has(o)===!1)}return this.findMatchingElements(t,e)}}findMatchingElements(t,e){let i=Br(window.csquerySelectorAll[t.nodeType].call(t,e));return Mt(t)&&Te.call(t,e)&&csArray.prototype.push.call(i,t),csArray.prototype.filter.call(i,n=>this.Br.has(n)===!1)}}return St([G()],s.prototype,"observe",null),St([G()],s.prototype,"disconnect",null),St([ie("SelectorObserver.findMatchingElements")],s.prototype,"findMatchingElements",null),s})();function Pm(){let s=csSymbol.for("propStore");return{getStore(r){return r[s]},get(r,t){let e=r[s];return e==null?void 0:e[t]},set(r,t,e){let i=r[s];i||(i={},r[s]=i),i[t]=e}}}var Ln=Pm(),lt=(()=>{let s;return function(r){function t(u,d,E){var f;if(typeof Node!="undefined"&&u instanceof Node)Ln.set(u,d,E);else{let _=u;(f=_.props)!==null&&f!==void 0||(_.props={}),_.props[d]=E}}r.setProperty=t;function e(u,d){var E;return typeof Node!="undefined"&&u instanceof Node?Ln.get(u,d):(E=u.props)===null||E===void 0?void 0:E[d]}r.getProperty=e;function i(u){return typeof Node!="undefined"&&u instanceof Node?Ln.getStore(u):u.props}r.getProperties=i;function n(u,d){let E=null;return o(u,(f,_,w)=>d(f)&&(E=f)&&!!w()),E}r.findDescendant=n;function o(u,d){c(u,void 0,d)}r.traverse=o;function c(u,d,E){let f=!1;if(E(u,d,()=>f=!0),f)return;let w=u.shadowRoot;w&&c(w,u,E);let A=u.children;if(A!=null&&A.length){for(let V of A)if(V&&(c(V,u,E),f))break}}}(s||(s={})),s})(),Y=(()=>{let s;return function(r){let t;(function(P){P[P.NotMasked=0]="NotMasked",P[P.Parent=1]="Parent",P[P.Child=2]="Child"})(t=r.MaskedElementState||(r.MaskedElementState={})),r.maskedProp="masked",r.maskedAttributeProp="maskedAttribute";function e(P){return He(P)&&"Attributes"in P&&"PIISelectors"in P?P.Attributes instanceof Array&&P.PIISelectors instanceof Array:!1}r.isSelectorUserInput=e;function i(P){if(!He(P)||P===null)throw new Error("Command misuse: setPIISelectors");return"Attributes"in P||(P.Attributes=[]),"PIISelectors"in P||(P.PIISelectors=[]),P}r.sanitizeSelectorUserInput=i;function n(P){var C;return(C=lt.getProperty(P,r.maskedProp))!==null&&C!==void 0?C:{state:t.NotMasked}}r.getMaskedElementDetails=n;function o(P){var C;return(C=lt.getProperty(P,r.maskedAttributeProp))!==null&&C!==void 0?C:{attributes:[]}}r.getMaskedAttributeDetails=o;function c(P){let C=lt.getProperty(P,r.maskedProp);return(C==null?void 0:C.state)===t.Parent}r.isMaskedElement=c;function u(P){let C=lt.getProperty(P,r.maskedProp);return(C==null?void 0:C.state)===t.Child}r.isMaskedElementChild=u;function d(P,C){let F=lt.getProperty(P,r.maskedAttributeProp);return((F==null?void 0:F.attributes)==null?void 0:csArray.prototype.indexOf.call(F==null?void 0:F.attributes,C))>-1}r.isMaskedAttribute=d;function E(P,C){lt.setProperty(P,r.maskedProp,C)}r.setMaskedElementProperty=E;function f(P){lt.setProperty(P,r.maskedProp,void 0)}r.unsetMaskedElementProperty=f;function _(P,C){lt.setProperty(P,r.maskedAttributeProp,C)}r.setMaskedAttributeProperty=_;function w(P,C){let F=csArray.prototype.filter.call(P.PIISelectors,J=>ee(J));C.elementSelector.length>0&&csArray.prototype.push.call(F,...csString.prototype.split.call(C.elementSelector,","));let j=U([...F]),M={elementSelector:csArray.prototype.join.call(j,","),attrSelector:C.attrSelector,attrSelectors:C.attrSelectors};return csArray.prototype.forEach.call(P.Attributes,J=>{J!=null&&J.attrName&&(J!=null&&J.selector)&&ee(J.selector)&&!A(M.attrSelectors,J)&&csArray.prototype.push.call(M.attrSelectors,J)}),M.attrSelector=V(M.attrSelectors),M}r.getComputedSelectorSettings=w;function A(P,C){return csArray.prototype.some.call(P,F=>F.selector===C.selector&&F.attrName===C.attrName)}function V(P){let C="";return csArray.prototype.forEach.call(P,F=>{let j=csString.prototype.split.call(F.selector,",");csArray.prototype.forEach.call(j,M=>{ee(M)&&(C&&(C+=","),C+=M)})}),C}function U(P){if(P.length<=1)return P;let C=[];for(let F of P){let j=csString.prototype.split.call(F,",");for(let M of j)csArray.prototype.indexOf.call(C,M)===-1&&csArray.prototype.push.call(C,M)}return C}}(s||(s={})),s})(),ks=(()=>{class s{constructor(){this.ne=[],this.isStarted=!1}produceEvent(t){var e;this.isStarted&&(t.timestamp=(e=t.timestamp)!==null&&e!==void 0?e:K.now(),t.timestamp==null&&(t.timestamp=K.now()),csArray.prototype.forEach.call(this.ne,i=>i(t)))}onStop(){}start(){this.isStarted||(this.isStarted=!0,this.onStart())}stop(){this.isStarted&&(this.isStarted=!1,this.onStop(),this.ne=[])}stopForInactivity(){this.isStarted&&(this.isStarted=!1,this.onStop())}subscribe(t){return csArray.prototype.push.call(this.ne,t),()=>{let e=csArray.prototype.indexOf.call(this.ne,t);csArray.prototype.splice.call(this.ne,e,1)}}}return s})(),yu=1,Nr=csSymbol("nodeIdentifier");function Om(s=!1){s&&(yu=1),Nr=csSymbol("nodeIdentifier")}function Nm(s){return lt.getProperty(s,Nr)}function Rt(s){let r=lt.getProperty(s,Nr);return r!=null?r:(lt.setProperty(s,Nr,yu++),lt.getProperty(s,Nr))}var Vc=(()=>{class s extends ks{constructor(t){super(),this.j=null,this.To=null,this.D=null,this.xs=null,this.Pd=["value","checked","src","data","alt"],this.bo={state:Y.MaskedElementState.Child},this.Jy=e=>{for(let i of e){if(Y.isMaskedElement(i.target)||Y.isMaskedElementChild(i.target))for(let n=0;nE==="added"&&this.sE(d))),this.D.observe(),csSetTimeout(this.Qy)}onStop(){var t,e,i;this.j&&(this.Nd(document),this.j.disconnect()),(t=this.To)===null||t===void 0||t.disconnect(),(e=this.D)===null||e===void 0||e.disconnect(),(i=this.xs)===null||i===void 0||i.disconnect()}Zy(){return window.ResizeObserver?new ResizeObserver(t=>{csArray.prototype.forEach.call(t,e=>{this.resizeObserverCallback(e)})}):null}tE(){return new Ke(t=>{csArray.prototype.forEach.call(t,e=>{this.iE(e)?this.Od(e):(this.rE(e),this.nE(e))})})}eE(t){return new Ke(e=>{csArray.prototype.forEach.call(e,i=>this.oE(i,t))})}resizeObserverCallback(t){let e=t.target.getBoundingClientRect(),i=Y.getMaskedElementDetails(t.target);if(i.state!==Y.MaskedElementState.Parent||e.width===i.width&&e.height===i.height)return;let n={state:Y.MaskedElementState.Parent,width:e.width,height:e.height};Y.setMaskedElementProperty(t.target,n),this.produceEvent({type:"ResizeMaskedElement",target:Rt(t.target),width:e.width,height:e.height})}nE(t){!this.xs||!Mt(t)||so(t)||this.xs.observe(t)}iE(t){let e=csNodeparentNode.apply(t);return e?Y.isMaskedElement(e)||Y.isMaskedElementChild(e):Ki(t)?Y.isMaskedElement(t.host)||Y.isMaskedElementChild(t.host):!1}sE(t){(Y.isMaskedElement(t.host)||Y.isMaskedElementChild(t.host))&&Y.setMaskedElementProperty(t,this.bo)}Nd(t){_e(t,NodeFilter.SHOW_ELEMENT).visitAll(i=>{Y.unsetMaskedElementProperty(i)})}rE(t){let e=t.getBoundingClientRect(),i={state:Y.MaskedElementState.Parent,width:e.width,height:e.height};Y.setMaskedElementProperty(t,i),this.aE(t),_e(t).visitAll(n=>n!=t&&Y.setMaskedElementProperty(n,this.bo))}Od(t){Y.setMaskedElementProperty(t,this.bo),_e(t).visitAll(e=>e!=t&&Y.setMaskedElementProperty(e,this.bo))}aE(t){var e;let i=(e=lt.getProperty(t,Y.maskedAttributeProp))!==null&&e!==void 0?e:{attributes:[]};for(let n=0;ncsString.prototype.indexOf.call(u.attrName,c)>-1&&Te.call(t,u.selector))&&csArray.prototype.push.call(n.attributes,c)}n.attributes.length!==0&&Y.setMaskedAttributeProperty(t,n)}}return Ms([G()],s.prototype,"resizeObserverCallback",null),s})(),is=(()=>{let s;return function(r){r.ANONYMIZED_TEXT_STATUS_PROP="anonymizationStatus",r.WHITELISTED_STATUS="whitelisted";function t(n){return lt.getProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP)===r.WHITELISTED_STATUS}r.isWhitelistedElement=t;function e(n){lt.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,r.WHITELISTED_STATUS)}r.whitelistElement=e;function i(n){lt.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,void 0)}r.removeWhitelistElement=i}(s||(s={})),s})(),Uc=(()=>{class s{constructor(){this.Pc=0,this.V=!1,this.Md="data-cs-capture",this.Ls=t=>{for(let e of t){if(is.isWhitelistedElement(e.target))for(let i=0;iht(e,i=>this.kd(i))));let t=this.Oc?`[${this.Md}], ${this.Oc}`:`[${this.Md}]`;this.j.observe(t),this.D||(this.D=new Je(this.Ls,(e,i)=>i==="added"&&this.lE(e))),this.D.observe()}stop(){this.V&&(this.Pc--,this.Pc===0&&(this.V=!1,this.hE()))}hE(){this.j&&(this.Dd(document),this.j.disconnect()),this.D&&this.D.disconnect()}setWhitelistedElementsSelector(t,e=!0){if(ee(t))this.Oc=t;else if(e)throw new Error("Command misuse: setCapturedElementsSelector")}getWhitelistedElementsSelector(){return this.Oc}kd(t){_e(t).visitAll(e=>{is.whitelistElement(e)})}lE(t){is.isWhitelistedElement(t.host)&&is.whitelistElement(t)}Dd(t){_e(t,NodeFilter.SHOW_ELEMENT).visitAll(i=>{is.removeWhitelistElement(i)})}}return s})(),Cs=(()=>{let s;return function(r){r.EDITABLE_NODE_PROP="editableNode";function t(n){return lt.getProperty(n,r.EDITABLE_NODE_PROP)===!0}r.isEditableNode=t;function e(n){lt.setProperty(n,r.EDITABLE_NODE_PROP,!0)}r.markEditableNode=e;function i(n){lt.setProperty(n,r.EDITABLE_NODE_PROP,void 0)}r.unmarkEditableNode=i}(s||(s={})),s})(),Eu=(()=>{class s{constructor(){this.j=null,this.D=null,this.V=!1,this.Ls=t=>{for(let e of t)if(Cs.isEditableNode(e.target))for(let i=0;iht(t,e=>{this.xd(e)})),this.j.observe("[contenteditable]"),this.D=new Je(this.Ls,(t,e)=>e==="added"&&this.uE(t)),this.D.observe())}stop(){var t,e;this.V&&(this.V=!1,(t=this.j)===null||t===void 0||t.disconnect(),this.j=null,(e=this.D)===null||e===void 0||e.disconnect(),this.D=null)}xd(t){_e(t).visitAll(e=>{Cs.markEditableNode(e)})}uE(t){Cs.isEditableNode(t.host)&&Cs.markEditableNode(t)}}return s})(),Su=(()=>{let s;return function(r){r.ENCRYPTED_NODE_PROP="toEncrypt";function t(n){return lt.getProperty(n,r.ENCRYPTED_NODE_PROP)===!0}r.shouldEncrypt=t;function e(n){lt.setProperty(n,r.ENCRYPTED_NODE_PROP,!0)}r.markEncryptedNode=e;function i(n){lt.setProperty(n,r.ENCRYPTED_NODE_PROP,void 0)}r.unmarkEncryptedNode=i}(s||(s={})),s})(),Mm="spki",xl="RSA-OAEP",km="SHA-256",Ll="AES-CTR",Dm="SHA-1",Vl=190,wi=(()=>{let s;return function(r){var t;let e=!1,i=null,n,o=typeof TextEncoder!="undefined"?new TextEncoder:null,c;r.crypto=(t=_t.crypto)===null||t===void 0?void 0:t.subtle,r.MAX_DIGEST_INPUT_SIZE=100;function u(){return!e}r.isKeyImported=u;function d(){return i}r.getCryptoKey=d;function E(){var j,M;return((M=(j=_t.self.crypto)===null||j===void 0?void 0:j.subtle)===null||M===void 0?void 0:M.encrypt)!=null&&_t.self.CryptoKey!=null}r.isSupported=E;async function f(j){n=r.crypto.importKey(Mm,Uh(j),{name:xl,hash:km},!1,["encrypt"]).catch(()=>(e=!0,null)),i=await n,n=void 0,i||Nt.warn(`Fail to import public key '${j}'`)}r.importKey=f;async function _(j){if(!E()||e)return null;await n;let M=Ec(j);M.byteLength>Vl&&(M=M.slice(0,Vl));try{let J=await r.crypto.encrypt({name:xl},i,M);return dl(J)}catch{return null}}r.asymmetricEncrypt=_;async function w(j,M){if(!E()||e)return null;let J={counter:M.initializationVector,name:Ll,length:64},ct=o.encode(j);try{let gt=await r.crypto.encrypt(J,M.cryptoKey,ct);return dl(gt)}catch{return null}}r.symmetricEncrypt=w;async function A(j){let M=await V(j);if(!M)throw new Error("Export secret failed");let J=await _(M);if(!J)throw new Error("Encrypt secret failed");return J}r.encryptSecret=A;async function V(j){var M;if(!E())return null;try{return(M=(await r.crypto.exportKey("jwk",j)).k)!==null&&M!==void 0?M:null}catch{return null}}async function U(){if(!E()||e)return null;try{return{cryptoKey:await r.crypto.generateKey({name:Ll,length:128},!0,["encrypt","decrypt"]),initializationVector:_t.crypto.getRandomValues(new Uint8Array(16))}}catch{return null}}r.generateSymmetricKey=U;function P(j){c=j}r.setDigestSalt=P;async function C(j){j=csString.prototype.toLocaleLowerCase.call(csString.prototype.trim.call(j)),c&&(j=`${j}:${c}`);let M=o.encode(j);try{let J=await r.crypto.digest(Dm,M);return xa(J)}catch{return null}}r.digest=C;function F(){return _t.crypto.subtle.generateKey({name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},!0,["encrypt","decrypt"])}r.generateKeyPair=F}(s||(s={})),s})(),bs=(()=>{let s;return function(r){r.REGEX="regex",r.START="start",r.NOT_START="not-start",r.END="end",r.NOT_END="not-end",r.CONTAIN="contain",r.NOT_CONTAIN="not-contain",r.EXACT="exact",r.NOT_EXACT="not-exact"}(s||(s={})),s})(),zs=(()=>{let s;return function(r){r.START="start",r.NOT_START="not-start",r.END="end",r.NOT_END="not-end",r.CONTAIN="contain",r.NOT_CONTAIN="not-contain",r.EXACT="exact",r.NOT_EXACT="not-exact"}(s||(s={})),s})(),yi=(()=>{let s;return function(r){r.replayRecordingUnmaskedUrlRegex="replayRecordingUnmaskedUrlRegex",r.replayRecordingMaskedUrlRegex="replayRecordingMaskedUrlRegex",r.replayRecordingUnmaskedUrlRegexRules="replayRecordingUnmaskedUrlRegexRules",r.replayRecordingMaskedUrlRegexRules="replayRecordingMaskedUrlRegexRules"}(s||(s={})),s})(),Wr=(()=>{class s{constructor(){this.Mc=[]}setRegexRules(t){this.Mc=csArray.prototype.filter.call(csArray.prototype.map.call(t,e=>this.pE(e)),e=>e!==null)}evaluateUrl(t){return csArray.prototype.some.call(this.Mc,e=>this.Vd(t,e))}getMatchingRules(t){return csArray.prototype.filter.call(this.Mc,e=>this.Vd(t,e))}Vd(t,e){var i,n;let o=this.fE(t,e);return!this.gE(e)||!this.mE(e)?!1:!!(e!=null&&e.notOperator?!(!((i=e.regex)===null||i===void 0)&&i.test(o)):!((n=e.regex)===null||n===void 0)&&n.test(o))}gE(t){let e=new csDate,i=t.startDate&&t.startDate>e,n=t.endDate&&t.endDate{class s{constructor(t,e,i,n){this.oe=t,this.Fr=e,this.$r=i,this._t=n}init(){this.yE()}shouldMaskNonTextElements(){if(this.oe.anonymisationMethod!==yi.replayRecordingMaskedUrlRegexRules)return!1;if(this.oe.isSMB)return this.shouldUseAnonymization();let t=this.$r.getMatchingRules(this.Fr.getAnonymizedUrl());return csArray.prototype.some.call(t,e=>e.maskMedia)}shouldUseAnonymization(){if(this._t&&!this._t.isReplayUnanonymizedAllowedByConsent()){switch(this.oe.anonymisationMethod){case null:case yi.replayRecordingUnmaskedUrlRegex:return!(this.oe.replayRecordingUnmaskedUrlRegex&&this.oe.replayRecordingUnmaskedUrlRegex.test(this.Fr.getAnonymizedUrl()));case yi.replayRecordingUnmaskedUrlRegexRules:return!this.$r.evaluateUrl(this.Fr.getAnonymizedUrl())}return!0}else{switch(this.oe.anonymisationMethod){case null:case yi.replayRecordingMaskedUrlRegex:return!!(this.oe.replayRecordingMaskedUrlRegex&&this.oe.replayRecordingMaskedUrlRegex.test(this.Fr.getAnonymizedUrl()));case yi.replayRecordingMaskedUrlRegexRules:return this.$r.evaluateUrl(this.Fr.getAnonymizedUrl())}return!1}}yE(){this.oe.anonymisationMethod===yi.replayRecordingMaskedUrlRegexRules&&this.oe.replayRecordingMaskedUrlRegexRules?this.$r.setRegexRules(this.oe.replayRecordingMaskedUrlRegexRules):this.oe.anonymisationMethod===yi.replayRecordingUnmaskedUrlRegexRules&&this.oe.replayRecordingUnmaskedUrlRegexRules&&this.$r.setRegexRules(this.oe.replayRecordingUnmaskedUrlRegexRules)}}return s})();function xm(s){return s.nodeType===1}function te(s){let r=csEventtarget.apply(s);return r&&xm(r)&&csElementshadowRoot.apply(r)&&s.composedPath?s.__csOriginalTarget||s.composedPath()[0]:r}function Lm(s){return s.composedPath&&Object.defineProperty(s,"__csOriginalTarget",{value:s.composedPath()[0],writable:!1,enumerable:!1}),s}function Vm(){return(s,r,t)=>{let e=t.value;return e&&(t.value=function(i){if(te(i)===csEventtarget.apply(i))return e.call(this,i)}),t}}var Wt=(()=>{let s;return function(r){r[r.TAP=0]="TAP",r[r.LONG_PRESS=1]="LONG_PRESS",r[r.DRAG=2]="DRAG",r[r.FLICK=3]="FLICK",r[r.PINCH_IN=4]="PINCH_IN",r[r.PINCH_OUT=5]="PINCH_OUT"}(s||(s={})),s})(),Rn=(()=>{let s;return function(r){r[r.UP=1]="UP",r[r.DOWN=2]="DOWN",r[r.LEFT=3]="LEFT",r[r.RIGHT=4]="RIGHT"}(s||(s={})),s})(),Um=(()=>{class s{compute(t,e){let i=this.Vs(e.x)-this.Vs(t.x),n=this.Vs(e.y)-this.Vs(t.y),o=e.time-t.time;return{duration:o,distance:this.jd(i,n),direction:this.EE(i,n),velocity:this.SE(i,n,o)}}computePinchMetrics(t,e){let i=this.Vs(e.x)-this.Vs(t.x),n=this.Vs(e.y)-this.Vs(t.y);return{duration:e.time-t.time,distance:this.jd(i,n)}}getScale(t,e){return Math.abs(e/t-1)}Vs(t){return t/window.devicePixelRatio}jd(t,e){return Math.round(Math.sqrt(t*t+e*e))}SE(t,e,i){let n=i/1e3,o=t/n,c=e/n;return Math.round(Math.abs(o)+Math.abs(c))}EE(t,e){return Math.abs(t)>Math.abs(e)?t>0?Rn.RIGHT:Rn.LEFT:e>0?Rn.DOWN:Rn.UP}}return s})(),vu=typeof performance!="undefined"&&!!performance.now,Ul=vu?()=>performance.now():()=>csDate.now(),jm=(()=>{var s;return vu?(s=performance.timing)===null||s===void 0?void 0:s.navigationStart:0})(),Cn={now(){return Math.round(Ul()+jm)},elapsed(){return Ul()}};function jl(s,r=0){let t=Math.pow(10,r);return Math.round(s*t)/t}var Hm=1e3,Bm=100,Fm=.1,qa=(()=>{class s{constructor(){this.Ht={},this.kc=()=>{},this.Co=new Um,this._e()}static isGestureDetectionSupported(){return typeof devicePixelRatio!="undefined"}onGesture(t){this.kc=t}isValidTouchEvent(t){return"touches"in t&&"changedTouches"in t}processActionDown(t){if(!this.vE(t))return;this._E(t)&&this._e();let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:Cn.now()};if(t.touches.length===1)this.Ht.startPinchTime=e.time,this.Ht.firstTouch=e;else if(t.touches.length===2&&(this.Ht.secondTouch={x:t.touches[1].clientX,y:t.touches[1].clientY,time:Cn.now()},this.Ht.firstTouch&&this.Ht.secondTouch)){let i=this.Co.computePinchMetrics(this.Ht.firstTouch,this.Ht.secondTouch);this.Wi=i.distance}csArray.prototype.push.call(this.zr,e),this.Io=te(t)}processActionMove(){this.Dc=!0}processActionUp(t){if(this.wE(t)){if(csArray.prototype.push.call(this.zr,{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:Cn.now()}),this.TE(t)&&this.Ht.startPinchTime){let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:this.Ht.startPinchTime},i={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:Cn.now()};this.Ht.firstTouch&&(this.Ht.firstTouch=e,this.Ht.secondTouch=i),this.bE(t)}this.Wi||this.AE()&&this.RE(t)}}_e(){this.zr=[],this.Io=null,this.Dc=!1,this.Wi=null,this.Gr=!0}RE(t){let e=this.Co.compute(this.zr[0],this.zr[1]);this.Gr=t.isTrusted;let i=this.Dc?this.CE(e):this.IE(e);if(this.PE(i.type,t.changedTouches)){let n=t.changedTouches[0];i.pageX=jl(n.pageX,1),i.pageY=jl(n.pageY,1)}this.kc(i,t)}bE(t){if(!(this.Ht.firstTouch&&this.Ht.secondTouch))return;let e=this.Co.computePinchMetrics(this.Ht.firstTouch,this.Ht.secondTouch);this.Gr=t.isTrusted;let i=this.OE(e);i&&this.kc(i,t)}OE(t){return!this.Wi||this.Co.getScale(this.Wi,t.distance)t.distance?Wt.PINCH_IN:Wt.PINCH_OUT,target:this.Io,distance:t.distance,isTrusted:this.Gr}}CE(t){return{type:t.velocity0}wE(t){return t.changedTouches.length>0}TE(t){return this.Dc&&!!this.Wi&&t.changedTouches.length===1&&t.touches.length===1}}return s})(),$m=(()=>{class s{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 s})(),_u=!0,Vn=csSymbol("safe"),Hl=csSymbol("task");function Dt(s,r=_u){var t;(t=s[Vn])!==null&&t!==void 0||(s[Vn]=function(e){let i=arguments;Ai(()=>(e[Hl]=Le,s.listener.apply(s.boundElement,i)),as.EventListener,e[Hl])}),s.boundElement.addEventListener(s.type,s[Vn],r)}function xt(s,r=_u){s.boundElement.removeEventListener(s.type,s[Vn],r)}var wu=(()=>{class s extends $m{constructor(t){super(),this.NE=t,this.Us=[{boundElement:document,type:"touchstart",listener:e=>this.J(e)},{boundElement:document,type:"touchmove",listener:e=>this.J(e)},{boundElement:document,type:"touchend",listener:e=>this.J(e)}],this.qr=new qa,this.qr.onGesture((e,i)=>this.xc(e,i))}xc(t,e){for(let i in this.subscriptions){let n=this.subscriptions[i];n(t,e)}}onStartTracking(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.Us,t=>Dt(t))}onStopTracking(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.Us,t=>xt(t))}canDetectGesture(){return typeof devicePixelRatio!="undefined"}J(t){this.NE.tryToExecute("process gesture event",()=>{if(this.qr.isValidTouchEvent(t))switch(t.type){case"touchstart":this.qr.processActionDown(t);break;case"touchmove":this.qr.processActionMove();break;case"touchend":this.qr.processActionUp(t);break}})()}static isSwipe(t){return t.type===Wt.FLICK||t.type===Wt.DRAG}}return s})(),Wa=class{constructor(r){this.we=r}send(r){hj.log.debug(`Sending tags: ${csJSON.stringify(r)}`),this.we.pushInternalEvents(r)}tag(r,t,e,i,n){let o=this;return function(c){if(c){let u=csArray.prototype.reduce.call(e,function(d,E){let f=r,_="",w=Object.keys(E);return csArray.prototype.forEach.call(w,function(A){let V=E[A],U=c[V];U==null&&(U=""),i&&(U=i(V,U)),V===t&&(_=U),V===t&&!n?f+=`.${A}`:U!==""&&(f+=`.${A}:${U}`)}),csArray.prototype.push.call(d,{key:f,val:_}),d},[]);o.send(u)}}}setup({vocEnabled:r,integrationsEnabled:t}){let e=function(d,E){return typeof E=="string"?csString.prototype.replace.call(E,/\.|:/g,"_"):E},i=function(d,E){return csString.prototype.replace.call(csString.prototype.replace.call(csString.prototype.replace.call(csString.prototype.toString.call(E),".e:",".E:"),".v:",".V:"),".c:",".C:")},n=function(d,E){if(d==="answer"){let _=parseInt(E);return isNaN(_)?(W.warn(`Poll question answer should be a number type, received ${E} instead`),E):_}return d!=="type"?E:{"rating-scale-5":"rating5","rating-scale-7":"rating7","net-promoter-score":"nps","single-close-ended":"singleClose","multiple-close-ended":"multiClose","single-open-ended-multiple-line":"singleOpenMulti","single-open-ended-single-line":"singleOpenSingle"}[E]||E},o={"poll.show":this.tag("poll.show","id",[{id:"id"}]),"poll.send":this.tag("poll.send","response_id",[{id:"id",r_id:"response_id"}]),"poll.question":this.tag("poll.q","answer",[{t:"type",a:"answer",id:"id",qid:"questionUuid"}],n),"feedback.show":this.tag("feedback.show","id",[{id:"id"}]),"feedback.send":this.tag("feedback.send","id",[{id:"id"}]),"feedback.sentiment":this.tag("feedback.sentiment","emotion",[{e:"emotion",id:"id",r_id:"response_id"}]),"survey.show":this.tag("survey.show","id",[{id:"id"}]),"survey.open":this.tag("survey.open","id",[{id:"id"}])},c={"exp.opt":this.tag("exp.opt","variantId",[{e:"experimentId",v:"variantId"}],i),"exp.ub":this.tag("exp.ub","variantId",[{e:"experimentId",v:"variantId"}],i),"exp.abt":this.tag("exp.abt","variantId",[{e:"experimentId",v:"variantId"}],i),"exp.go":this.tag("exp.go","variantId",[{e:"experimentId",v:"variantId",c:"containerId"}],i),"int.ga":this.tag("int.ga","action",[{a:"action"}],e,!0),"int.mp":this.tag("int.mp","event",[{event:"event"}],e,!0),"int.hubspot":this.tag("int.hubspot","utk",[{utk:"utk"}])};return Object.assign({},r?o:{},t?c:{})}listen(r){let t=this.setup(r);csArray.prototype.forEach.call(Object.keys(t),function(e){hj.event.listen(e,t[e])})}},Tu=Wa,Ii=function(){"use strict";var s={d:function(h,l){for(var p in l)s.o(l,p)&&!s.o(h,p)&&Object.defineProperty(h,p,{enumerable:!0,get:l[p]})}};s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=function(h,l){return Object.prototype.hasOwnProperty.call(h,l)};var r={};s.d(r,{u6:function(){return Ro},b2:function(){return Ao},Vv:function(){return Ko},pF:function(){return Li},XA:function(){return pn},fd:function(){return ys},ec:function(){return fi}});var t=function(h){return h.replace(/%u[\dA-F]{4}|%[\dA-F]{2}/gi,function(l){return l.startsWith("%u")?String.fromCharCode(parseInt(l.slice(2),16)):String.fromCharCode(parseInt(l.slice(1),16))})};function e(h){return t(encodeURIComponent(h))}function i(h){return btoa(e(h))}function n(h){return function(l){return decodeURIComponent(function(p){return p.replace(/[^a-zA-Z0-9@*_+-./]/g,function(m){var y=m.charCodeAt(0);return y<256?"%"+y.toString(16).padStart(2,"0").toUpperCase():"%u"+y.toString(16).padStart(4,"0").toUpperCase()})}(l))}(atob(h))}var o={isOn:function(){var h;return _hjSettings.hjdebug===void 0&&(_hjSettings.hjdebug=((h=hj.bridge.storage.items.DEBUG_FLAG)===null||h===void 0?void 0:h.get())==="true"),_hjSettings.hjdebug},on:function(h){_hjSettings.hjdebug=!0,h&&hj.bridge.storage.items.DEBUG_FLAG.set(!0)},off:function(){_hjSettings.hjdebug=!1,hj.bridge.storage.items.DEBUG_FLAG.clear()},emit:function(h,l){typeof _hjEmitters!="undefined"&&_hjEmitters.includes&&_hjEmitters.includes(h)&&window.postMessage({data:l,message:hj.bridge.storage.items.DEBUG_FLAG.getKey(),type:h},"*")}};function c(h){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},c(h)}var u=!1,d="",E={autotag:"#ff0099",command:"#0079a4",cookies:"#5a2c22",data:"#009bd2",event:"#ff7000",events:"#ffc000",exception:"#e63946",heatmap:"#700000",init:"#6600cc",integration:"#2a9072",poll:"#00a000",property:"#ff33cc",recording:"#dd0000",rendering:"#bd00ea",sampling:"#efb0a1",survey:"#007000",targeting:"#00ee00",visitdata:"#00668a",websocket:"#0dc0ff"},f={init:function(){window.console===void 0&&(window.console={debug:function(){},trace:function(){},log:function(){},info:function(){},warn:function(){},error:function(){}})},debug:function(h,l,p){var m=l&&E[l.toLowerCase()]||"#2a9d8f";d!=h&&u&&(console.groupEnd(),u=!1),d=h,hj.debug!==void 0&&hj.debug.isOn()&&(c(h)==="object"?hj.hq.each(h,function(y,b){hj.log.debug(y+": "+b,l,null)}):(h=l&&typeof h=="string"?l.toUpperCase()+": "+h:h,h="%c"+new Date().toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")+":%c "+h,p?(u||(console.groupCollapsed(h+":","color: #999;","color: "+m+";"),u=!0),console.log(p)):console.log(h,"color: #999;","color: "+m+";")))},info:function(h){console.log("%c"+h,"color: #006EFF")},warn:function(h){console.log("%c"+h,"color: #E8910C")},error:function(h){console.error("Hotjar error: "+h)},warnIfEmpty:function(h,l){if(Array.isArray(h)?h.length===0:hj.hq.isNullOrUndefined(h)){var p=h===null?"null":h===void 0?"undefined":"no value";hj.log.debug("WARNING: [".concat(l,"] a value was expected but ").concat(p," was found!"))}}},_={},w={},A={};function V(h,l,p){var m;h[l]||(h[l]=[]),(m=h[l])===null||m===void 0||m.push(p)}_={listen:hj.tryCatch(function(h,l){V(w,h,l),function(p){var m;A[p]&&((m=A[p])===null||m===void 0||m.forEach(function(y){_.signal(p,y)}),delete A[p])}(h)},"hj.event.listen"),removeListener:hj.tryCatch(function(h,l){var p=w[h];if(p){var m=p.indexOf(l);m!==-1&&p.splice(m,1)}},"hj.event.removeListener"),signal:hj.tryCatch(function(h,l,p){var m;w[h]?(m=w[h])===null||m===void 0||m.forEach(function(y){y(l)}):p?V(A,h,l):A[h]=[l]},"hj.event.signal"),clearAllListeners:hj.tryCatch(function(){w={},A={}},"hj.event.clearAllListeners")};var U,P,C=((P=function(){return U()}).test=U=function(){var h;if(!navigator)return"No User-Agent Provided";if((h=navigator.userAgentData)!==null&&h!==void 0&&h.mobile)return"mobile";var l=function(p){return navigator.userAgent.match(p)};return l(/GoogleTV|SmartTV|Internet.TV|NetCast|NETTV|AppleTV|boxee|Kylo|Roku|DLNADOC|CE\-HTML/i)||l(/Xbox|PLAYSTATION.3|Wii/i)?"tv":l(/iPad/i)||l(/tablet/i)&&!l(/RX-34/i)||l(/FOLIO/i)||l(/Linux/i)&&l(/Android/i)&&!l(/Fennec|mobi|HTC.Magic|HTCX06HT|Nexus.One|SC-02B|fone.945|Chromebook/i)||l(/Kindle/i)||l(/Mac.OS/i)&&l(/Silk/i)||l(/GT-P10|SC-01C|SHW-M180S|SGH-T849|SCH-I800|SHW-M180L|SPH-P100|SGH-I987|zt180|HTC(.Flyer|\_Flyer)|Sprint.ATP51|ViewPad7|pandigital(sprnova|nova)|Ideos.S7|Dell.Streak.7|Advent.Vega|A101IT|A70BHT|MID7015|Next2|nook/i)||l(/MB511/i)&&l(/RUTEM/i)?"tablet":l(/BOLT|Fennec|Iris|Maemo|Minimo|Mobi|mowser|NetFront|Novarra|Prism|RX-34|Skyfire|Tear|XV6875|XV6975|Google.Wireless.Transcoder/i)||l(/Opera/i)&&l(/Windows.NT.5/i)&&l(/HTC|Xda|Mini|Vario|SAMSUNG\-GT\-i8000|SAMSUNG\-SGH\-i9/i)?"mobile":l(/Windows.(NT|XP|ME|9)/)&&!l(/Phone/i)||l(/Win(9|.9|NT)/i)||l(/Macintosh|PowerPC/i)&&!l(/Silk/i)||l(/Linux/i)&&l(/X11/i)||l(/Solaris|SunOS|BSD/i)||l(/Bot|Crawler|Spider|Yahoo|ia_archiver|Covario-IDS|findlinks|DataparkSearch|larbin|Mediapartners-Google|NG-Search|Snappy|Teoma|Jeeves|TinEye/i)&&!l(/Mobile/i)||l(/\b(CrOS|Chromebook)\b/i)?"desktop":"mobile"},P);function F(h){return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},F(h)}var j=hj.tryCatch(function(h){var l,p,m;for(l=h.length-1;l>0;l-=1)p=Math.floor(Math.random()*(l+1)),m=h[l],h[l]=h[p],h[p]=m;return h},"utils.shuffle"),M=(hj.tryCatch(function(h){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(h)},"utils.validateEmail"),hj.tryCatch(function(){return hj.userDeviceType||(hj.userDeviceType=C(),hj.userDeviceType==="mobile"&&(hj.userDeviceType="phone")),hj.userDeviceType},"utils.deviceType")),J=hj.tryCatch(function(){var h=function(){try{return window.self!==window.top}catch{return!0}}(),l={width:!h&&window.screen?window.screen.width:document.body.clientWidth,height:!h&&window.screen?window.screen.height:document.body.clientHeight};return{width:window.innerWidth||document.documentElement.clientWidth||l.width,height:window.innerHeight||document.documentElement.clientHeight||l.height}},"utils.getWindowSize"),ct=function(h,l,p,m,y){var b=1;if(y!==void 0&&hj.log.debug("Retry iteration ".concat(b," of ").concat(y)),h())return l(!0);var x=setInterval(function(){return b++,h()?(clearInterval(x),l(!0)):b>=m?(clearInterval(x),l(!1)):void 0},p)},gt=function(h,l){return function(p,m){hj.log.debug("[".concat(h,"] ").concat(p),l,m)}},Xt=function(h){return h&&typeof h=="string"?h.replace(/[\W_]+/g,"-"):""};function $t(h){try{return decodeURIComponent(h)}catch{return h}}function O(h){for(var l,p=[],m=new RegExp("[^?&]?"+h.replace(/\[/,"\\[").replace(/]/,"\\]")+"=([^&]+)","g");l=m.exec(location.search);)p.push($t(l[1]));switch(p.length){case 0:return"";case 1:return p[0];default:return p}}var z={},X={};function it(h,l){var p;if(!z.matchOperations[h.match_operation])return hj.exceptions.log(new Error('Targeting error - "'.concat(h.match_operation,'" match operation does not exist.')),"hj.targeting.matchPatternWithRule"),!1;h.rule_type=h.rule_type||h.component;var m=function(y,b){return!b||y.rule_type!=="date"||y.match_operation!=="less_than"&&y.match_operation!=="greater_than"?b:(new Date(b).valueOf()/1e3).toFixed(0)}(h,l);return(p=z.matchOperations[h.match_operation](h,m)).error?(hj.exceptions.log(new Error("Targeting error - ".concat(h.match_operation," - ").concat(p.error)),"hj.targeting.matchPatternWithRule"),!1):(h.component!=="url"&&h.negate&&(p=!p),function(y,b,x){var D=x?"Match ":"No Match ";!x||y.component!=="url"&&y.component!=="device"||(D+=y.component+"|"+y.match_operation+"|"+y.pattern+(y.negate?" [NEGATE]":""),hj.log.debug(D,"targeting")),y.component!=="attribute"&&y.component!=="event"||(D+=y.component+"|"+y.name+" ("+y.rule_type+")|"+y.match_operation+"|"+y.pattern+"|compared with: "+b+(y.negate?" [NEGATE]":""),hj.log.debug(D,"targeting"))}(h,l,p),p)}function It(h){var l,p=M();return(l=h.length===0||h.length===3||h.some(function(m){return it(m,p)}))?hj.log.debug("Device match found","targeting"):hj.log.debug("No device match found","targeting"),l}var Kt=function(h){var l,p,m;return h==null||(l=h.toLowerCase())===null||l===void 0||(p=l.split("#")[0])===null||p===void 0||(m=p.split("?")[0])===null||m===void 0?void 0:m.replace("http://www.","").replace("https://www.","").replace("http://","").replace("https://","").replace(/\/$/,"")},ne=function(h,l,p){return function(){return h.apply(null,arguments)?l.apply(null,arguments):p.apply(null,arguments)}},Qe=function(h,l){return h!==void 0&&l!==void 0&&h!==null&&l!==null},Ds=function(h,l){return!isNaN(h.pattern)&&!isNaN(l)&&l!==""&&typeof l!="boolean"},le=function(h,l){if(!l||l.toString()===parseInt(l,10).toString())return!1;var p=new Date(l);return p!=="Invalid Date"&&!isNaN(p)},Vt=function(h){return ne(Qe,h,function(){return!1})},Oe=function(h){return Vt(ne(Ds,h,function(l,p){return{error:p?"Cannot compare non-numeric values (rule: { name: '".concat(l.name,`' }, pattern: '`).concat(p,"')."):void 0}}))},hs=function(h){return Vt(ne(le,h,function(l,p){return{error:"Cannot compare dates. Given pattern is not a date (rule: { name: '".concat(l.name,"' }, pattern: '").concat(p,"').")}}))};z.matchUrl=function(h,l){var p,m=!1,y=!1,b=!1;if(h.length===0)return hj.log.debug("No URL targeting rules set","targeting"),!1;for(var x=0;xNumber(h.pattern)}),less_than:Oe(function(h,l){return Number(l)=p})};var Ne={getFeatures:hj.tryCatch(function(){return hj.settings.features||[]},"hj.features.getFeatures"),hasFeature:hj.tryCatch(function(h){var l;try{var p=window.localStorage.getItem("HJ_OVERRIDE_FEATURE:".concat(h));l=p==="true"||p==="1"}catch{l=!1}return Ne.getFeatures().indexOf(h)>-1||l},"hj.features.hasFeature")};function At(h){return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},At(h)}var wt=function(h){var l,p,m,y=window._hjDocument||document;if(B.selector=h,B.isWindow(h))return this[0]=window,this.length=1,this;if(B.isDocument(h,y))return this[0]=y,this.length=1,this;if(At(h)==="object")return this[0]=h,this.length=1,this;if(typeof h=="string"&&h.charAt(0)==="<"&&h.charAt(h.length-1)===">"&&h.length>=3)return(l=y.createElement("div")).innerHTML=h,this[0]=l.childNodes[0],this.length=1,this;if(typeof h=="string"){isNaN(h.charAt(1))||h.charAt(0)!=="."&&h.charAt(0)!=="#"||(h=h.charAt(0)+"\\3"+h.charAt(1)+" "+h.slice(2));try{p=y.querySelectorAll(h)}catch{return this.length=0,this}for(m=0;m0&&(this[0].value=h),this[0]===void 0?void 0:this[0]?this[0].value:""},wt.prototype.each=function(h,l){Array.prototype.forEach.call(this,function(p,m,y){l(m,p,y)})},wt.prototype.hasClass=function(h){return this[0].classList?this[0].classList.contains(h):new RegExp("(^| )"+h+"( |$)","gi").test(this[0].className)},wt.prototype.remove=function(){var h;for(h=0;h-1&&p.call(H,a)}},Array.isArray(B.eventHandlers[x])||(B.eventHandlers[x]=[]),B.eventHandlers[x].push(D),document.addEventListener(rt[b].split(".")[0],D,!0)):(typeof l=="boolean"&&l===!1&&(l=function(a){return a.preventDefault(),!1}),Array.isArray(B.eventHandlers.document)||(B.eventHandlers.document=[]),B.eventHandlers.document.push(l),this[0].addEventListener(rt[b].split(".")[0],l,m));else if(B.isDocument(this[0]))for(b=0;b=200&&l.status<400?B.isFunction(h.success)&&h.success(l.responseText&&JSON.parse(l.responseText),l):B.isFunction(h.error)&&h.error(l)},l.onerror=function(){B.isFunction(h.error)&&h.error(l)},l.ontimeout=function(){B.isFunction(h.timeout)&&h.timeout(l)},B.isFunction(h.requestAnnotator)&&h.requestAnnotator(l),h.type!=="POST"&&h.type!=="PUT"||!h.data?l.send():l.send(h.data)},B.eventHandlers={},B.selector="",B.trim=function(h){return typeof h=="string"?h.replace(/^\s+|\s+$/gm,""):""},B.isUndefined=function(h){return h===void 0},B.isNullOrUndefined=function(h){return h===null||B.isUndefined(h)};var rn={get:function(h,l,p){l=l||B.noop,p=p||B.noop,B.ajax({url:h,success:hj.tryCatch(l,"Data"),error:hj.tryCatch(p,"Data")})},post:function(h,l,p,m){var y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{contentType:"json"};p=p||B.noop,m=m||B.noop;var b=y!=null&&y.query?"".concat(h,"?").concat(y.query):h;return B.ajax({url:b,type:"POST",data:(y==null?void 0:y.contentType)==="json"?B.stringify(l):l,contentType:"text/plain; charset=UTF-8",success:hj.tryCatch(p,"Data"),error:hj.tryCatch(m,"Data")})},putAsJSON:function(h,l,p,m){p=p||B.noop,m=m||B.noop,B.ajax({url:h,type:"PUT",data:B.stringify(l),contentType:"text/plain; charset=UTF-8",success:hj.tryCatch(p,"Data"),error:hj.tryCatch(m,"Data")})},postAsJSON:function(h,l,p,m){return p=p||B.noop,m=m||B.noop,B.ajax({url:h,type:"POST",data:B.stringify(l),contentType:"application/json; charset=UTF-8",success:hj.tryCatch(p,"Data"),error:hj.tryCatch(m,"Data")})}},Oi=[],ni=[];function nn(h,l){hj.tryCatch(l,"Rendering")(h)}function on(h,l){hj.widgetDelay.set(function(){hj.tryCatch(l,"Rendering")(h)},1e3*h.display_delay)}function an(h,l,p){var m=hj.hq(document),y=hj.hq(window),b=[];function x(){hj.tryCatch(l,"Rendering")(h),m.off("mousemove."+p),m.off("mouseout."+p)}Oi.push(p),m.off("mousemove."+p),m.off("mouseout."+p),m.on("mousemove."+p,hj.tryCatch(function(D){var R,H,q,Q;b.push({x:D.clientX,y:D.clientY}),b.length>2&&(((R=b[1])===null||R===void 0?void 0:R.x)===((H=b[2])===null||H===void 0?void 0:H.x)&&((q=b[1])===null||q===void 0?void 0:q.y)===((Q=b[2])===null||Q===void 0?void 0:Q.y)?b.pop():b.shift())},"Rendering")),m.on("mouseout."+p,hj.tryCatch(function(D){var R=this;D.relatedTarget&&(!R||D.relatedTarget===R||R.compareDocumentPosition(D.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||function(H){var q=b[1],Q=b[0];if(H|=0,q!==void 0&&!(Q&&q.y>=Q.y||H>0)){if(Q&&Q.x===q.x)x();else if(Q){var rt=Q.y-q.y/Q.x-q.x,a=-(Q.y-rt*Q.x)/rt;a>0&&a=.5&&(y.off("scroll."+p),l(h))},"Rendering"))}var xs={clearAllAbandonEvents:hj.tryCatch(function(){Oi.forEach(function(h){hj.log.debug("Removing abandon events for "+h,"rendering"),hj.hq(document).off("mousemove."+h),hj.hq(document).off("mouseout."+h)}),Oi=[]},"hj.rendering.clearAllAbandonEvents"),clearAllScrollEvents:hj.tryCatch(function(){ni.forEach(function(h){hj.log.debug("Removing scroll events for "+h,"rendering"),hj.hq(window).off("scroll."+h)}),ni=[]},"hj.rendering.clearAllScrollEvents"),callAccordingToCondition:hj.tryCatch(function(h,l,p){var m={immediate:nn,delay:on,abandon:an,scroll:yo}[h.display_type==="inline"?"immediate":h.display_condition];if(hj.log.debug("Calling active item ("+l+"): "+h.display_condition,"rendering"),!m)throw new Error('Unhandled display condition: "'+h.display_condition+'"');hj.tryCatch(m,"Rendering")(h,p,l)},"hj.rendering.callAccordingToCondition")},be=function(h,l){return h+l&4294967295};function Ni(h,l){var p=zt(p=h[0],b=h[1],y=h[2],m=h[3],l[0],7,-680876936),m=zt(m,p,b,y,l[1],12,-389564586),y=zt(y,m,p,b,l[2],17,606105819),b=zt(b,y,m,p,l[3],22,-1044525330);p=zt(p,b,y,m,l[4],7,-176418897),m=zt(m,p,b,y,l[5],12,1200080426),y=zt(y,m,p,b,l[6],17,-1473231341),b=zt(b,y,m,p,l[7],22,-45705983),p=zt(p,b,y,m,l[8],7,1770035416),m=zt(m,p,b,y,l[9],12,-1958414417),y=zt(y,m,p,b,l[10],17,-42063),b=zt(b,y,m,p,l[11],22,-1990404162),p=zt(p,b,y,m,l[12],7,1804603682),m=zt(m,p,b,y,l[13],12,-40341101),y=zt(y,m,p,b,l[14],17,-1502002290),p=Gt(p,b=zt(b,y,m,p,l[15],22,1236535329),y,m,l[1],5,-165796510),m=Gt(m,p,b,y,l[6],9,-1069501632),y=Gt(y,m,p,b,l[11],14,643717713),b=Gt(b,y,m,p,l[0],20,-373897302),p=Gt(p,b,y,m,l[5],5,-701558691),m=Gt(m,p,b,y,l[10],9,38016083),y=Gt(y,m,p,b,l[15],14,-660478335),b=Gt(b,y,m,p,l[4],20,-405537848),p=Gt(p,b,y,m,l[9],5,568446438),m=Gt(m,p,b,y,l[14],9,-1019803690),y=Gt(y,m,p,b,l[3],14,-187363961),b=Gt(b,y,m,p,l[8],20,1163531501),p=Gt(p,b,y,m,l[13],5,-1444681467),m=Gt(m,p,b,y,l[2],9,-51403784),y=Gt(y,m,p,b,l[7],14,1735328473),p=Jt(p,b=Gt(b,y,m,p,l[12],20,-1926607734),y,m,l[5],4,-378558),m=Jt(m,p,b,y,l[8],11,-2022574463),y=Jt(y,m,p,b,l[11],16,1839030562),b=Jt(b,y,m,p,l[14],23,-35309556),p=Jt(p,b,y,m,l[1],4,-1530992060),m=Jt(m,p,b,y,l[4],11,1272893353),y=Jt(y,m,p,b,l[7],16,-155497632),b=Jt(b,y,m,p,l[10],23,-1094730640),p=Jt(p,b,y,m,l[13],4,681279174),m=Jt(m,p,b,y,l[0],11,-358537222),y=Jt(y,m,p,b,l[3],16,-722521979),b=Jt(b,y,m,p,l[6],23,76029189),p=Jt(p,b,y,m,l[9],4,-640364487),m=Jt(m,p,b,y,l[12],11,-421815835),y=Jt(y,m,p,b,l[15],16,530742520),p=Qt(p,b=Jt(b,y,m,p,l[2],23,-995338651),y,m,l[0],6,-198630844),m=Qt(m,p,b,y,l[7],10,1126891415),y=Qt(y,m,p,b,l[14],15,-1416354905),b=Qt(b,y,m,p,l[5],21,-57434055),p=Qt(p,b,y,m,l[12],6,1700485571),m=Qt(m,p,b,y,l[3],10,-1894986606),y=Qt(y,m,p,b,l[10],15,-1051523),b=Qt(b,y,m,p,l[1],21,-2054922799),p=Qt(p,b,y,m,l[8],6,1873313359),m=Qt(m,p,b,y,l[15],10,-30611744),y=Qt(y,m,p,b,l[6],15,-1560198380),b=Qt(b,y,m,p,l[13],21,1309151649),p=Qt(p,b,y,m,l[4],6,-145523070),m=Qt(m,p,b,y,l[11],10,-1120210379),y=Qt(y,m,p,b,l[2],15,718787259),b=Qt(b,y,m,p,l[9],21,-343485551),h[0]=be(p,h[0]),h[1]=be(b,h[1]),h[2]=be(y,h[2]),h[3]=be(m,h[3])}function Ls(h,l,p,m,y,b){return l=be(be(l,h),be(m,b)),be(l<>>32-y,p)}function zt(h,l,p,m,y,b,x){return Ls(l&p|~l&m,h,l,y,b,x)}function Gt(h,l,p,m,y,b,x){return Ls(l&m|p&~m,h,l,y,b,x)}function Jt(h,l,p,m,y,b,x){return Ls(l^p^m,h,l,y,b,x)}function Qt(h,l,p,m,y,b,x){return Ls(p^(l|~m),h,l,y,b,x)}function Eo(h){var l,p=[];for(l=0;64>l;l+=4)p[l>>2]=h.charCodeAt(l)+(h.charCodeAt(l+1)<<8)+(h.charCodeAt(l+2)<<16)+(h.charCodeAt(l+3)<<24);return p}var dr="0123456789abcdef".split("");function So(h){for(var l="",p=0;4>p;p++)l+=dr[h>>8*p+4&15]+dr[h>>8*p&15];return l}var pr=function(h,l){var p="";try{p=function(m){for(var y=0;y>2]|=m.charCodeAt(y)<<(y%4<<3);if(D[y>>2]|=128<<(y%4<<3),55y;y++)D[y]=0;return D[14]=8*b,Ni(x,D),x}(e(h)))}catch(m){l?p="":hj.exceptions.log(m,"md5")}return p};pr("hello")!="5d41402abc4b2a76b9719d911017c592"&&(be=function(h,l){var p=(65535&h)+(65535&l);return(h>>16)+(l>>16)+(p>>16)<<16|65535&p});var vt={id:void 0,attributes:{},init:hj.tryCatch(function(){if(hj.settings.user_attributes_enabled){var h=function(){var l=hj.bridge.storage.items.HAS_CACHED_USER_ATTRIBUTES.get()==="true"?hj.bridge.storage.localStorage.USER_ATTRIBUTES.get():void 0;if(l)try{var p=function(m){try{var y=JSON.parse(m);if(y&&F(y)==="object")return!0}catch{}return!1}(l)?l:hj.b64DecodeUnicode(l);return JSON.parse(p)}catch{return}}();h&&(vt.id=h.userId,vt.attributes=h.attributes,delete vt.attributes.contentsquare_replay_link)}},"userAttributes.init"),reset:hj.tryCatch(function(){vt.id=void 0,vt.attributes={},hj.bridge.storage.items.HAS_CACHED_USER_ATTRIBUTES.clear(),hj.bridge.storage.localStorage.USER_ATTRIBUTES.clear()},"userAttributes.reset"),set:hj.tryCatch(function(h,l){var p,m,y,b,x;l&&l.contentsquare_replay_link&&(hj.log.debug("Storing contentsquare_replay_link user attribute: ".concat(l.contentsquare_replay_link),"userAttributes"),vt.attributes.contentsquare_replay_link=l.contentsquare_replay_link),hj.settings.user_attributes_enabled?(vt.id!==void 0&&vt.id!==null&&vt.id!==h&&(hj.log.debug("User ID changed, resetting all attributes before continuing.","userAttributes"),vt.reset()),vt.id=h,vt.attributes=(p=vt.attributes,m={},y={},[p,l].forEach(function(D){if(D)for(var R in D)Object.prototype.hasOwnProperty.call(D,R)&&R!=="length"&&(m[R]=D[R])}),Object.keys(m).sort().forEach(function(D){y[D]=m[D]}),y),b={attributes:vt.attributes,userId:vt.id},x=hj.b64EncodeUnicode(JSON.stringify(b)),hj.bridge.storage.localStorage.USER_ATTRIBUTES.set(x),hj.bridge.storage.items.HAS_CACHED_USER_ATTRIBUTES.set("true",!0),hj.event.signal("user-attributes-set"),hj.bridge.isRecordingEnabled()?vt.flush():hj.log.debug("No recording in progress. Not sending.","userAttributes")):hj.log.debug("User attributes not enabled. Doing nothing.","userAttributes")},"userAttributes.set"),flush:hj.tryCatch(function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hj.hq.noop;if(vt.id!==void 0||Object.keys(vt.attributes).length){var l=hj.bridge.storage.items.USER_ATTRIBUTES_HASH.get({resetExpiry:!0}),p=hj.md5(JSON.stringify({allAttributes:vt.attributes,userId:vt.id}));if(l===p)return h(null,vt.id,vt.attributes),void hj.log.debug("No changed user attributes. Not sending.","userAttributes");hj.bridge.storage.items.USER_ATTRIBUTES_HASH.set(p),hj.debug.isOn()&&function(m,y){hj.ajax.post("".concat(hj.identifyEndpoint,"/sites/").concat(hj.settings.site_id,"/users/").concat(hj.bridge.getSessionUserId(!0),"/validate"),{user_id:m,attributes:y},hj.tryCatch(function(b){b.errors&&Object.keys(b.errors).length>0?hj.log.debug("User validation API call PARTIALLY successful (some errors).","userAttributes",b):hj.log.debug("User validation API call successful.","userAttributes",b)},"userAttributes"),hj.tryCatch(function(b){hj.log.debug("User Attributes validation API call failed.","userAttributes",b.responseText&&JSON.parse(b.responseText)||"unknown_failure")},"userAttributes"))}(vt.id,vt.attributes),hj.bridge.flushUserAttributes(vt.id,vt.attributes),h(null,vt.id,vt.attributes)}else h(Error("no_user"))},"userAttributes.flush"),get:hj.tryCatch(function(h){return h==="user_id"?vt.id:h&&vt.attributes[h]},"userAttributes.get")},oi={},Mi={"user.id":void 0},vo={get:function(h){return Mi[h]},set:function(h,l){Mi[h]=l;var p=oi[h];typeof p=="function"&&l&&(p(l),delete oi[h])},on:function(h,l){oi[h]=l;var p=Mi[h];p&&(l(p),delete oi[h])},reset:function(){oi={},Mi={"user.id":void 0}}},cn=hj.tryCatch(function(){var h=function(){try{return window.self!==window.top}catch{return!0}}(),l={width:!h&&window.screen?window.screen.width:document.body.clientWidth,height:!h&&window.screen?window.screen.height:document.body.clientHeight};return{width:window.innerWidth||document.documentElement.clientWidth||l.width,height:window.innerHeight||document.documentElement.clientHeight||l.height}},"common"),_o=hj.tryCatch(function(){var h,l;if(document&&document.documentElement&&document.documentElement.clientWidth)h=document.documentElement.clientWidth,l=document.documentElement.clientHeight;else{var p=cn();h=p.width,l=p.height}return{width:h,height:l}},"common"),wo=hj.tryCatch(function(h){return h=h||window,{left:hj.hq(h).scrollLeft(),top:hj.hq(h).scrollTop()}},"common"),To=hj.tryCatch(function(){var h=parseInt(1e3*(hj.hq(window).scrollTop()+hj.ui.getWindowSize().height)/hj.hq(document).height(),10);return Math.min(1e3,h)},"common"),bo=hj.tryCatch(function(h){var l=hj.ui.getScrollPosition();hj.hq(document).on("scroll.hotjarDisable resize.hotjarDisable mousewheel.hotjarDisable DOMMouseScroll.hotjarDisable touchmove.hotjarDisable",hj.tryCatch(function(p){p.preventDefault(),window.scrollTo(l.left,l.top),h&&h()},"common"))},"common"),hl=hj.tryCatch(function(){hj.hq(document).off("scroll.hotjarDisable"),hj.hq(document).off("resize.hotjarDisable"),hj.hq(document).off("mousewheel.hotjarDisable"),hj.hq(document).off("DOMMouseScroll.hotjarDisable"),hj.hq(document).off("touchmove.hotjarDisable")},"common"),ln={getWindowSize:cn,getDocumentSize:_o,getScrollPosition:wo,getBottomAsPercentage:To,disableScrolling:bo,enableScrolling:hl},Ao=function(){var h=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).uuid;hj.debug=o,hj.log=f,hj.hq=B,hj.ajax=rn,hj.uuid=h||window.hj.uuid,hj.encodeAsUtf8=e,hj.b64EncodeUnicode=i,hj.b64DecodeUnicode=n,hj.md5=pr,hj.event=_,hj.userAttributes=vt,hj.targeting=z,hj.features=Ne,hj.rendering=xs,hj.ui=ln,hj.store={session:vo}},Ro=hj.tryCatch(function(){var h=O("hjDebug");h&&(h==="1"||h==="true"?hj.debug.on(!0):hj.debug.off())},"init"),hn={storage:{},set:hj.tryCatch(function(h){hn.storage.events=h},"sessionEvents.set"),get:hj.tryCatch(function(){return hn.storage.events},"sessionEvents.get")};function Me(h){return Me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Me(h)}function us(){return us=Object.assign?Object.assign.bind():function(h){for(var l=1;lh.length)&&(l=h.length);for(var p=0,m=new Array(l);p0&&(hj.log.debug("Removing previously shown widget from DOM","widgets"),hj.hq(R).remove())},"widgets"),l.emptyMatchingWidgets=function(){m=[],y=[],b.forEach(function(R){R()}),b=[],D=!1},l.isPhoneOrTablet=hj.tryCatch(function(){return hj.widget.isVeryNarrowScreen()||M()==="phone"||M()==="tablet"},"common"),l.isVeryNarrowScreen=hj.tryCatch(function(){return hj.hq(window).width()<=450},"common"),l.removeActiveWidget=function(R){hj.widgetDelay.clear(),xs.clearAllAbandonEvents(),xs.clearAllScrollEvents(),R=R||function(){},l.activeWidget?(l.activeWidget.removeCallback&&l.activeWidget.removeCallback(R),delete l.activeWidget):R()},l.runLatestMatchingWidget=function(){var R,H;m.forEach(function(q){var Q=function(rt){return rt.type==="incoming"||rt.displayType==="button"||rt.displayType==="bubble"?0:1}(q);(!R||Q>H||Q===H&&q.created>R.created)&&(R=q,H=Q)}),R?l.setActiveWidget(R):l.removeActiveWidget(),D=!0},l.runInlineEmbeddedWidgets=function(){x=x.filter(function(R){var H=hj.targeting.matchUrl(R.targetingRules,location.href);return H||R.removeCallback(),H}),y.forEach(function(R){R.runCallback()})},l.setActiveWidget=function(R){l.activeWidget&&R.type===l.activeWidget.type&&R.id===l.activeWidget.id||l.removeActiveWidget(function(){R.runCallback(),l.activeWidget=R})},l.setLanguage=hj.tryCatch(function(R){var H=(R||"en").replace("-","_");if(!ps.includes(H))throw new Error('Invalid language "'+R+'"');h=H,hj.widget.activeLanguageDirection=p.indexOf(H)>-1?"rtl":"ltr",hj.widget.isActiveLanguageDirectionRtl=hj.widget.activeLanguageDirection==="rtl"},"common"),l.registerCleanupForInlineWidget=function(R){b.push(R)},l}(),hj.widgetDelay=function(){var h={},l=null;return h.clear=hj.tryCatch(function(){clearTimeout(l),l=null},"hj.widgetDelay.clear"),h.set=hj.tryCatch(function(p,m){h.clear(),l=setTimeout(p,m)},"hj.widgetDelay.set"),h}()},"widgets"),Et=Object.freeze({LIVE:"LIVE",REVIEW_WEBAPP:"REVIEW_WEBAPP",REVIEW:"REVIEW",STAGING:"STAGING",DEV:"DEV",DEV_OLD:"DEV_OLD"}),ai=(gr=(he=document.location.host.match(/^(insights-webapp|surveys-webapp|insights|surveys)-(.*?)((?:\.[^.]+)?(?:\.hotjarians\.net)|(?:\.[^.]+)?(?:\.eks\.hotjar\.com))$/))&&{component:he[1],reviewId:he[2],domain:he[3],reviewUrlSuffix:he[2]+he[3]})===null||gr===void 0?void 0:gr.reviewUrlSuffix,qt=Object.freeze(((ds={})[Et.LIVE]={INSIGHTS:"insights.hotjar.com",SURVEYS:"surveys.hotjar.com"},ds[Et.REVIEW]={INSIGHTS:"insights-".concat(ai),SURVEYS:"surveys-".concat(ai)},ds[Et.REVIEW_WEBAPP]={INSIGHTS:"insights-webapp-".concat(ai),SURVEYS:"surveys-webapp-".concat(ai)},ds[Et.STAGING]={INSIGHTS:"insights-staging.hotjar.com",SURVEYS:"surveys-staging.hotjar.com"},ds[Et.DEV]={INSIGHTS:"local.hotjar.com:8443",SURVEYS:"surveys.local.hotjar.com:8443"},ds[Et.DEV_OLD]={INSIGHTS:"local.hotjar.com",SURVEYS:"surveys.local.hotjar.com"},ds)),fs=function(h){return function(l,p){return l===qt[h][p]}},me=fs(Et.DEV),Co=fs(Et.DEV_OLD),mr=fs(Et.LIVE),Io=fs(Et.REVIEW_WEBAPP),Po=fs(Et.REVIEW),ki=fs(Et.STAGING),fn=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.location.href,l=[qt[Et.LIVE].SURVEYS,qt[Et.REVIEW_WEBAPP].SURVEYS,qt[Et.REVIEW].SURVEYS,qt[Et.STAGING].SURVEYS,qt[Et.DEV].SURVEYS,qt[Et.DEV_OLD].SURVEYS],p=document.createElement("a");return p.href=h,l.indexOf(p.hostname)>=0},gn={popover:{isExternal:!1,allowsScreenshots:!0},full_screen:{isExternal:!1,allowsScreenshots:!0},inline:{isExternal:!1,allowsScreenshots:!0},button:{isExternal:!1,allowsScreenshots:!0},bubble:{isExternal:!1,allowsScreenshots:!0},external_link:{isExternal:!0,allowsScreenshots:!1},mobile_popover:{isExternal:!0,allowsScreenshots:!1}},mn=function(h){return gn[h].isExternal},Oo=(Object.freeze({LAST_RECORDING_ACTIVITY_STORE_DEBOUNCE:5e3,MAX_TIME_SINCE_LAST_RECORDING_ACTIVITY_IN_SESSION:12e4}),window.hjLazyModules,"js"),gs=(Object.freeze({id:null,selector_version:2}),function(h){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mo,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ko,m=0,y=!1;function b(){--m!=0||y||l.bind(this)()}function x(){y=!0,p.bind(this)()}Object.keys(h).forEach(function(D){var R=h[D];typeof R=="string"&&(R=[R]),m+=R.length,R.forEach(function(H){No(H,D,b,x)})})}),No=function(h,l,p,m){var y;l===Oo?(y=document.createElement("script")).src="".concat(hj.scriptDomain).concat(h):l==="css"&&((y=document.createElement("link")).href="".concat(hj.scriptDomain).concat(h),y.rel="stylesheet"),y.onload=p,y.onerror=m,document.getElementsByTagName("head")[0].appendChild(y)};function Mo(){}function ko(){var h=this.src||this.href;hj.exceptions.log(new Error("Failed to load module: ".concat(h,".")),"loader")}var Do=function(h,l){var p,m;if(hj.isPreview)return!1;var y=((p=h.targeting)===null||p===void 0?void 0:p.filter(function(R){return R.component==="url"}))||[],b=(m=h.targeting)===null||m===void 0?void 0:m.some(function(R){return R.component==="trigger"}),x=h.display_type===Vs.EXTERNAL||h.display_type===Vs.MOBILE_POPOVER,D=b||x||hj.targeting.matchUrl(y,hj.currentUrl)===!0;return hj.tryCatch(function(){if(!D)throw new Error("Rendered survey out of URL targeting in ".concat(l," with ID: ").concat(h.id))},"render-out-of-targeting")(),!D};function xo(h,l){for(var p=h.querySelectorAll(l),m=0;m0){var q,Q=hj.hq("._hj-survey-embed-container"),rt=Q.attr("data-survey-id"),a=(q=hj.settings.polls)===null||q===void 0?void 0:q.find(function(v){return mn(v.display_type)&&v.uuid==rt});if(a!==void 0)return hj.log.debug("Offsite poll #".concat(a.id," has matched with the embedded UUID ").concat(rt),"poll"),void l.addEmbedded(a,Q)}if(fn(R))return hj.hq(document).trigger("hj-embedded-survey-mismatch"),hj.widgetDelay.clear(),hj.widget.emptyMatchingWidgets(),void hj.log.debug("Could not match the embedded UUID.","poll");var S=(H=hj.settings.polls)===null||H===void 0?void 0:H.filter(function(v){return T=v.display_type,gn[T]!==void 0&&!mn(v.display_type);var T});S==null||S.forEach(function(v){hj.targeting.matchRules({rules:v.targeting,userAttributeMatchLogic:v.targeting_user_attribute_match_logic},R,hj.tryCatch(function(){hj.log.debug("Poll #"+v.id+" has matched.","poll"),hj.bridge.storage.items.POLL_DONE.exists(v.id)&&v.persist_condition!=="always"?hj.log.debug("Poll was already submitted.","poll"):hj.widget.addMatchingWidget("poll",v.id,v.created_epoch_time,v.targeting_percentage,function(){return l.add(v)},function(T){return l.remove(T,v.id)},v.display_type,v.targeting)},"polls.run.matchRules-callback"))})},"polls"),l.enablePreview=function(){window._hjPollReload=D},hj.isPreview&&l.enablePreview(),window.addEventListener("hotjar-survey-event",l.handleSurveyEvent),l}()},"polls"),yn=Object.freeze({MODAL:"_hj-modal",FOOTER:"_hj-footer",SURVEY_INVITES:"_hj_survey_invite_container",HEATMAP_RETAKER:"_hj-heatmap-retaker",ADMIN_WIDGET:"_hj_admin_widget",NOTICATION:"_hj-notification"}),Lo=(Object.freeze({RETAKER:"_hjRetakerTrsToken",TARGETING:"_hjRetakerTargeting"}),function(h){if(h){if(h.startsWith("data:image")||h.startsWith("blob:")||h.startsWith("http"))return h;var l=hj.environment==="live"?hj.surveyImagesHost:"d23waydkwbngmu.cloudfront.net";return"https://".concat(l,"/").concat(h)}}),Vo=function(){var h={},l=window.hjLazyModules;function p(m){return m.display_type===Vs.EXTERNAL?function(y,b){if(b)return"https://".concat(b,"/").concat(y);var x=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"INSIGHTS",H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.location.host;return mr(H,R)?Et.LIVE:me(H,R)?Et.DEV:Co(H,R)?Et.DEV_OLD:Io(H,R)?Et.REVIEW_WEBAPP:Po(H,R)?Et.REVIEW:ki(H,R)?Et.STAGING:Et.LIVE}(),D=qt[x].SURVEYS;return"https://".concat(D,"/").concat(y)}(m.uuid,hj.surveysHost):m.public_url}return h.run=hj.tryCatch(function(m){if(!fn(m)){var y=(hj.settings.polls||[]).filter(function(x){return x.invite_enabled&&x.display_type===Vs.EXTERNAL}),b=(hj.settings.surveys||[]).concat(y);hj.hq.each(b||[],function(x,D){z.matchRules({rules:D.targeting,userAttributeMatchLogic:D.targeting_user_attribute_match_logic},m,hj.tryCatch(function(){hj.log.debug("Survey #"+D.id+" has matched.","survey"),hj.bridge.storage.items.SURVEY_INVITES_CLOSED.exists(D.id)?hj.log.debug("Survey was already viewed.","survey"):hj.widget.addMatchingWidget("survey",D.id,D.created_epoch_time,D.targeting_percentage,function(){hj.survey.data=D,xs.callAccordingToCondition(hj.survey.data,"survey",hj.tryCatch(function(){var R;R=hj.survey.data,hj.widget.surveyInvitationData={id:R.id,title:R.invite.title,description:R.invite.description,button:R.invite.button,close:R.invite.close,url:p(R),logoUrl:Lo(R.logo_path||R.logo_url)},gs(l.SURVEY_INVITATION)},"polls"))},h.remove)},"surveys.run.matchRules-callback"))})}},"surveys"),h.remove=hj.tryCatch(function(m){hj.survey.data?(hj.hq(".".concat(yn.SURVEY_INVITES)).length>0&&hj.hq(".".concat(yn.SURVEY_INVITES)).remove(),delete hj.survey.data,m&&setTimeout(function(){m()},1)):m&&m()}),h},Uo=hj.tryCatch(function(){hj.survey={invites:Vo(),ctrl:void 0,data:void 0,model:{},activeLanguageDirection:"ltr"}},"surveys");function ut(){return ut=Object.assign?Object.assign.bind():function(h){for(var l=1;lh.length)&&(l=h.length);for(var p=0,m=new Array(l);p-1}).reduce(function(R,H){var q;return ke(ke({},R),{},((q={})[H[0]]=H[1],q))},{});return D.t?{event:D.t,category:D.ec||"",action:D.ea||"",label:D.el||"",value:D.ev||""}:{}}(y.get("hitPayload"));b.event==="event"&&ze("ga",b)})}),dt("gaClientSent")||(hj.metrics.count("ga-version",{tag:{version:"ga"}}),xe("gaClientSent",!0)))}},"ga.forward_events")},js=gt("ga.send_hjuid"),Ui=60,Ze=!0,En=!1,jo=hj.tryCatch(function(){En||(En=!0,hj.store.session.on("user.id",function(h){typeof h!="string"||h.length<8?js("invalid userid: '".concat(h,"'")):(js("got userId"),De=h.substring(0,8),Sn())}),Re())},"integrations.googleAnalytics"),Re=hj.tryCatch(function(){if(!hi){if($e()){dt("gaClientSent")||(hj.metrics.count("ga-version",{tag:{version:"ga"}}),xe("gaClientSent",!0));var h=window[window.GoogleAnalyticsObject||"ga"];return js("`ga` variable is available, waiting for tracker."),void h(function(l){Hs(l,!0)})}Ui<=0?js("given up looking for GA module"):(Ui-=1,setTimeout(Re,500))}},"integrations"),Hs=hj.tryCatch(function(h,l){h&&(hi&&l||(hi!==h&&(js("got fresh tracker"),Ze=!0),hi=h,Sn()))},"integrations"),Sn=hj.tryCatch(function(){Ze&&De&&hi&&(Ze=!1,hi.send("event","Hotjar","detect_user",De,{nonInteraction:1}),js("successfully sent detect_user event"))},"integrations"),Ho={setup:jo,setTracker:hj.tryCatch(function(h){Hs(h,!1)},"integrations.googleAnalytics")},wr=gt("ga.send_hjuid_gtag"),Tr=!1,Bo=hj.tryCatch(function(){if(!Tr){Tr=!0;var h=window.dataLayer;h!==void 0?(dt("datalayerSent")||(hj.metrics.count("ga-version",{tag:{version:"datalayer"}}),xe("datalayerSent",!0)),dt("gtagClientSent")||(hj.metrics.count("ga-version",{tag:{version:"gtag"}}),xe("gtagClientSent",!0)),hj.store.session.on("user.id",function(p){if(p&&typeof p=="string"&&!(p.length<8)){var m=p.substring(0,8);l("set","user_properties",{hjuid:m}),l("event","detect_user",{event_category:"Hotjar",event_label:m,non_interaction:!0})}})):wr("`dataLayer` is undefined")}function l(){var p;wr("calling gtag(".concat((p=arguments,Array.from(p).map(function(m){return JSON.stringify(m)})),")")),h.push(arguments)}},"ga.send_hjuid_gtag"),ji={forwardEvents:Es,sendHotjarUserId:Ho,sendHotjarUserIdGtag:{setup:Bo}},Fo=function(){return hj.bridge.storage.items.HUBSPOT_UTK.get()!==null},br=gt("hubspot","integrations"),$o={setup:hj.tryCatch(function(){br("HubSpot setup started"),ct(Fo,function(h){if(h){var l=hj.bridge.storage.items.HUBSPOT_UTK.get();br("HubSpot UTK found: ".concat(l)),hj.event.signal("int.hubspot",{utk:l})}else br("HubSpot UTK cookie not found")},5e3,5)},"hubspot.setup")},zo=gt("kissmetrics","integration"),Go=function(){return window.KM!==void 0&&window.KM.i!==void 0},qo={setup:hj.tryCatch(function(){ct(Go,function(h){if(h){var l=window.KM.i();zo("Kissmetrics User ID found: ".concat(l)),hj("identify",null,{kissmetrics_id:l})}},5e3,5)},"kissmetrics.setup")},Ar=gt("mixpanel.send_events"),Wo=function(){return window.mixpanel!==void 0&&window.mixpanel.set_config!==void 0},Yo={setup:hj.tryCatch(function(){ct(Wo,function(h){var l,p,m,y;h?(Ar("Registering mixpanel hook"),!Ae&&(l=window.mixpanel.config)!==null&&l!==void 0&&(p=l.hooks)!==null&&p!==void 0&&p.before_send_events&&(Ae=(m=window.mixpanel.config)===null||m===void 0||(y=m.hooks)===null||y===void 0?void 0:y.before_send_events),window.mixpanel.set_config({hooks:{before_send_events:function(b){Ae&&Ae(b);var x=Xt(b.event);return Ar("sending mixpanel payload: ".concat(b.event)),hj("event","MP_".concat(x)),hj.event.signal("int.mp",{event:x}),b}}})):Ar("mixpanel global object not found or set_config not ready")},3e3,5)},"mixpanel.setup")},Hi=gt("optimizely","integration"),Ss=window.optimizely;function vn(){Hi("looking for tags.");var h=Ss.get("state").getExperimentStates({isActive:!0});for(var l in h){var p=h[l],m=(p.isInExperimentHoldback?"HB_":"")+p.experimentName,y=p.variation.name||p.variation.id;hj.event.signal("exp.opt",{experimentId:m,variantId:y}),hj("event",m+"/"+y)}}var Xo={setup:hj.tryCatch(function(){Ss!==void 0&&typeof Ss.push=="function"&&typeof Ss.get=="function"&&Ss.get("state")!==void 0&&Ss.get("data")!==void 0?(Hi("listening for campaignDecided event."),(Ss=window.optimizely||[]).push({type:"addListener",filter:{name:"campaignDecided"},handler:function(h){h.name==="applied"&&(Hi("campaign decided; ready to tag experiments."),vn())}}),vn()):Hi("`window.optimizely` is not ready")},"optimizely.setup")},ui={setup:hj.tryCatch(function(){window.ub!==void 0&&window.ub.page!==void 0&&window.ub.page.variantId!==void 0?(hj.log.debug("Unbounce experiment in page '".concat(window.ub.page.name,"' is on variant '").concat(window.ub.page.variantId,"'"),"integration",window.ub),hj.event.signal("exp.ub",{experimentId:window.ub.page.name,variantId:window.ub.page.variantId}),hj("event","".concat(Xt(window.ub.page.name),"-variant-").concat(window.ub.page.variantId))):hj.log.debug("Unbounce experiment not found","integration")},"unbounce.setup")},Ko=hj.tryCatch(function(){var h=hj.settings.integrations;if(h){var l=hj.bridge.getSessionUserId();hj.store.session.set("user.id",l),h.optimizely&&h.optimizely.tag_recordings&&Xo.setup(),h.google_analytics&&(h.google_analytics.tag_sessions&&ji.forwardEvents.setup(),h.google_analytics.send_hotjar_id&&(ji.sendHotjarUserId.setup(),ji.sendHotjarUserIdGtag.setup())),h.unbounce&&h.unbounce.tag_recordings&&ui.setup(),h.mixpanel&&h.mixpanel.send_events&&Yo.setup(),h.hubspot&&h.hubspot.enabled&&h.hubspot.send_recordings&&$o.setup(),h.abtasty&&h.abtasty.tag_recordings&&li.setup(),h.kissmetrics&&h.kissmetrics.send_user_id&&qo.setup()}},"integrations"),_n=!1,di=function(h){var l=h.title,p=h.message,m=h.status,y=window.hjLazyModules;_n?hj.widget.renderNotificationWidget({title:l,message:p,status:m}):gs(y.NOTIFICATION,function(){_n=!0,hj.widget.renderNotificationWidget({title:l,message:p,status:m})})};function pi(){return pi=Object.assign?Object.assign.bind():function(h){for(var l=1;l0&&arguments[0]!==void 0?arguments[0]:"Hotjar",p=O("hjVerifyInstall"),m=O("hjVerifyUUID"),y=function(){di({title:"".concat(l," 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"}),ts._reportVerificationResults(m,"wrong_code",{expected:String(hj.verifyInstall),actual:String(hjSiteSettings.site_id)});var Q="Passed Site ID: ".concat(hj.verifyInstall," != Configured Site ").concat(hj.settings.site_id);hj.exceptions.log(new Error(Q),"init._verifyInstallation")};try{h=sessionStorage.getItem("hjVerifyInstall")}catch{}if(p||h){hj.verifyInstall=parseInt(p||h);try{sessionStorage.setItem("hjVerifyInstall",p||h)}catch{}if(window.hjBootstrapCalled&&window.hjBootstrapCalled.length>1){var b,x=window.hjBootstrapCalled.filter(function(Q,rt){return window.hjBootstrapCalled.indexOf(Q)===rt}),D="You have "+window.hjBootstrapCalled.length+" tracking scripts installed on your site. ",R=window.hjBootstrapCalled.length===2?"script as this":"scripts as these",H=!!window.dataLayer;x.length>1?(b=D+"Please remove the duplicate "+R+" will cause issues.",di({title:"Multiple different ".concat(l," scripts detected"),message:b,status:"bad"}),ts._reportVerificationResults(m,"multiple_codes",{expected:String(hj.verifyInstall),actual:x,gtm:!1})):H?(b=D+"If you've installed ".concat(l," through GTM - please remove the duplicate ")+R+" will cause issues.",ts._reportVerificationResults(m,"multiple_codes",{expected:String(hj.verifyInstall),actual:x,gtm:!0}),di({title:"Multiple ".concat(l," scripts detected"),message:b,status:"bad"})):hj.verifyInstall===hj.settings.site_id?(b=D+"This will not affect data collection, but we do suggest removing redundant scripts.",ts._reportVerificationResults(m,"warning",{expected:String(hj.verifyInstall),reason:"multiple scripts"}),di({title:"Multiple ".concat(l," scripts detected"),message:b,status:"warning"})):y();var q="Passed Site ID: "+hj.verifyInstall+" contains multiple scripts "+window.hjBootstrapCalled.join(", ");hj.exceptions.log(new Error(q),"init._verifyInstallation")}else hj.verifyInstall===hj.settings.site_id?(ts._sendVerifyInstallation(function(Q){Q.success||hj.exceptions.log(new Error("Verify installation endpoint failed"),"init._verifyInstallation")}),di({title:"".concat(l," installation verified"),message:"The ".concat(l," 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"}),ts._reportVerificationResults(m,"ok")):y()}}}).verifyInstallation,Jo=r.u6,wn=r.b2,Qo=r.Vv,Zo=r.pF,Tn=r.XA,ta=r.fd,ea=r.ec;return{gn:Jo,fn:wn,pn:Qo,vn:Zo,yn:Tn,mn:ta,jn:ea}}(),zm=Ii.gn,Gm=Ii.fn,qm=Ii.pn,Ya=Ii.vn,bu=Ii.yn,Xa=Ii.mn,Wm=Ii.jn;function Au(){window._uxa.push(["replay:link:generate",{},({isRecording:s,replayLink:r})=>{typeof hj=="function"&&s&&r&&hj("identify",null,{contentsquare_replay_link:`https://${r}&vd=hotjar`})}])}function Ym(s){let r=!1,t,e={},i=["event","trigger","identify"];function n(f){return!hj.optOut&&csArray.prototype.indexOf.call(i,f)>=0}function o(){Object.defineProperty(t,"push",{writable:!0,value:function(){for(let f=0;f0&&W.tryToExecute("hj-queue-command",c)()}function u(f){f[0]&&hj.event.signal("trigger:"+f[0])}function d(f){let _=f[0];if(f[1]){let w;!_&&_!==0||_==="null"||_==="undefined"?w=null:w=csString(_),hj.userAttributes.set(w,f[1])}else _!=null&&typeof _=="object"&&hj.userAttributes.set(null,_)}return e.event=function(f){if(u(f),f&&f.length>0){let _=f[0];s.pushExternalEvents([_])}},e.identify=function(f){d(f)},e.trigger=function(f){u(f)},{activate:function(){!r&&hj&&(t=hj.q,r=!0,o(),t.length>0&&c())},isActive:()=>r}}var Xm=s=>{let{accountId:r,accountSignature:t,projectId:e,siteId:i,surveys:n,hashes:o}=s,c=window.CS_INTEGRATIONS_CONF&&window.CS_INTEGRATIONS_CONF["hubspot-client-side"];hj.settings={...hj.settings,account_id:r,account_signature:t,cs_project_id:e,features:[],integrations:{hubspot:{enabled:!!c,send_surveys:(c==null?void 0:c.settings)==null?void 0:csArray.prototype.includes.call(c==null?void 0:c.settings,"sendSurveyResponses")}},polls:n,site_id:i,user_attributes_enabled:!0},window.hjLazyModules=o},Km=(()=>{class s{constructor(t,e,i,n){this.f=t,this.I=e,this.w=i,this.we=n}init(){window.hjSiteSettings&&(hj.settings=window.hjSiteSettings),this.f.vocData&&Xm(this.f.vocData),new Tu(this.we).listen({vocEnabled:!0,integrationsEnabled:!1}),bu()}Po(){let t=this.w.getUrl();hj.currentUrl=t,Ya(),Au(),Xa(t)}onAfterNaturalPageView(){this.Po()}onAfterArtificialPageView(){this.Po()}onStartNoTrackingMode(){this.I.createOrUpdateVisitor()}}return s})(),Jm=(()=>{class s{constructor(t,e,i,n,o){this.f=t,this.Z=e,this.js=i,this.ae=n,this.pt=o}init(){this.Z.onChildMessage((t,e,i)=>this.pt.emitIframeEvent(t,e,i)),this.Z.setSentiveStatusCallback(()=>this.ae.getSensitiveStatus()),this.Z.setRecordingContextCallback(()=>this.js.getRecordingContext())}onStartTracking(){this.f.iframesTracking&&this.Z.start()}onOptout(){this.f.iframesTracking&&this.Z.stop()}onSensitiveStatusChange(){if(this.f.iframesTracking){let t=this.ae.getSensitiveStatus();this.Z.onSensitiveStatusChange(t)}}onRecordingContextChange(){if(this.f.iframesTracking){let t=this.js.getRecordingContext();this.Z.onRecordingContextChange(t)}}}return s})(),re=(()=>{class s{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 s})(),Ru=(()=>{class s extends re{constructor(t){super(),this.f=t,this.Lc=0,this.Te=new Map,this.Hd={boundElement:window,type:"message",listener:e=>this.Vc(e)}}onChildMessage(t){this.Bd=t}setRecordingContextCallback(t){this.ME=t}setSentiveStatusCallback(t){this.kE=t}onSensitiveStatusChange(t){let e=bt.buildBaseMessage($.SensitiveStatus,Ce.Parent,this.f.projectId);e.content=t;let i=bt.buildBaseMessage($.SensitiveStatus,Ce.Parent,this.f.projectId);i.content={...t,started:!1,useAnonymization:!0,capturedElementSelector:""},this.Te.forEach(n=>{if(n.port){let o=this.Oo(n)?i:e;this.Uc(n,o)}})}onRecordingContextChange(t){let e=bt.buildBaseMessage($.RecordingContext,Ce.Parent,this.f.projectId);e.content=t,this.Te.forEach(i=>{!this.Oo(i)&&i.port&&this.Uc(i,e)})}sendToChildren(t,e){let i=bt.buildBaseMessage(t,Ce.Parent,this.f.projectId);i.content=e,this.DE(i)}onStart(){Dt(this.Hd,!1),this.Fd()}onStop(){this.xE(),xt(this.Hd,!1),this.LE()}Fd(){let t=this.VE();this.UE(t),csArray.prototype.forEach.call(t,e=>{if(this.jE(e)===null){let n={iframe:e};this.Te.set(this.Lc,n),this.Lc+=1}}),this.HE()}VE(){return csArray.prototype.filter.call(Ct.findAllElements("iframe"),t=>this.BE(t))}UE(t){this.Te.forEach((e,i)=>{e.iframe&&csArray.prototype.indexOf.call(t,e.iframe)===-1&&this.FE(i,e)})}FE(t,e){e.port&&bt.closeChannelPort(e.port),this.Te.delete(t)}LE(){this.Te.forEach(t=>{t.port&&bt.closeChannelPort(t.port)}),this.Te.clear()}jE(t){let e=null;return this.Te.forEach((i,n)=>{e===null&&i.iframe===t&&(e=n)}),e}BE(t){return t.id!==Gh&&(!t.src||se(t.src,"about:")||kc(lu(t.src),this.f.hostnames))}DE(t){this.Te.forEach(e=>{this.Uc(e,t)})}Uc(t,e){let i=e.type===$.SensitiveStatus||e.type===$.RecordingContext;t.port&&(!i||t.initialStatusSent)&&bt.sendChannelMessage(t.port,e)}HE(){this.Te.forEach((t,e)=>{if(t.iframe.contentWindow){let i=this.$E(e);bt.sendPostMessage(t.iframe.contentWindow,"*",i)}})}xE(){let t=this.zE();this.Te.forEach(e=>{e.port?bt.sendChannelMessage(e.port,t):e.iframe.contentWindow&&bt.sendPostMessage(e.iframe.contentWindow,"*",t)})}$E(t){return bt.buildBaseMessage($.Discovery,Ce.Parent,this.f.projectId,t)}zE(){return bt.buildBaseMessage($.Stop,Ce.Parent,this.f.projectId)}GE(t,e){let i=this.Te.get(t);if(i===void 0){W.error(`Parent received channel messaging initialization from unknow child id : ${t} (${this.Lc})`);return}i.port=e,i.port.onmessage=n=>{this.jc(n,i)}}qE(t){if(!t.port)return;let e=bt.buildBaseMessage($.SensitiveStatus,Ce.Parent,this.f.projectId),i=this.kE();this.Oo(t)&&(i.started=!1,i.capturedElementSelector="",i.useAnonymization=!0),e.content=i,bt.sendChannelMessage(t.port,e)}WE(t){if(!t.port)return;let e=bt.buildBaseMessage($.RecordingContext,Ce.Parent,this.f.projectId),i=this.ME();this.Oo(t)&&(i.isRecording=!1),e.content=i,bt.sendChannelMessage(t.port,e)}jc(t,e){if(e===void 0){W.error(`Parent received channelMessage from unknown child : ${csJSON.stringify(t.data)}`);return}let i=t.data.type,n=t.data.content;i===$.EndOfBufferedMessages?(this.qE(e),this.WE(e),e.initialStatusSent=!0):this.Bd(e.iframe,i,n)}Vc(t){if(bt.isMessageValid(t,Ce.Child,this.f.projectId,this.f.hostnames))switch(t.data.type){case $.Discovery:if(t.data.id===void 0){this.Fd();return}if(t.ports&&t.ports.length===1&&this.Te.has(t.data.id)){this.GE(t.data.id,t.ports[0]);return}W.error(`Parent received wrong channelMessage initialization : (${t.origin}) : ${csJSON.stringify(t.data)}`);break;case $.ChildLogMessage:this.Bd(null,$.ChildLogMessage,t.data.content);break;default:W.warn(`Parent received unexpected postMessage type from child (${t.origin}) : ${csJSON.stringify(t.data)}`)}}Oo(t){return Y.isMaskedElement(t.iframe)||Y.isMaskedElementChild(t.iframe)}}return s})(),Ti;(function(s){s.ContentSquare="CONTENTSQUARE",s.LoadedByClicktale="LOADED_BY_CLICKTALE",s.LoadClicktalePtc="LOAD_CLICKTALE_PTC",s.DualCollectionReview="DUAL_COLLECTION_REVIEW",s.DualCollection="DUAL_COLLECTION",s.ContentSquareTagClickTaleEndpoints="CONTENTSQUARE_TAG_CLICKTALE_ENDPOINTS"})(Ti||(Ti={}));function Cu(s){return s.tagDeploymentMode===Ti.DualCollectionReview||s.tagDeploymentMode===Ti.DualCollection}function Qm(s){return Cu(s)||s.tagDeploymentMode===Ti.LoadClicktalePtc}var Bl=(()=>{let s;return function(r){function t(){return window.ClickTaleIsRecording&&window.ClickTaleIsRecording()}r.isRecording=t;function e(){window.ClickTaleStop&&window.ClickTaleStop()}r.stopRecording=e;function i(c){window.ClickTaleLogicalWithUploadPage&&window.ClickTaleLogicalWithUploadPage(c)}r.triggerLogicalPageView=i;function n(c){window.ClickTaleEvent&&window.ClickTaleEvent(c)}r.sendPageEvent=n;function o(c){window.ClickTaleEventTrigger&&window.ClickTaleEventTrigger(c)}r.sendEventTriggerRecording=o}(s||(s={})),s})(),Iu=(()=>{class s{constructor(t){this.ft=t}on(t,e){return i=>{this.ft.hasValidEventTarget(i)&&this.ZE(i,t)&&e(i)}}ZE(t,e){let i=te(t);return Te.call(i,e)}isMatchesSelectorSupported(){return!!Te}}return s})(),Zm=(()=>{class s extends re{constructor(){super(),this.Gd=0}onStart(){W.isPerfLoggingActive()&&(this.Wr=window.csSetInterval(()=>this.qd(),s.tS))}onStop(){W.isPerfLoggingActive()&&(this.qd(),csClearInterval(this.Wr))}qd(){this.Gd>=s.eS||at.counters.methodPerformance.flush()&&this.Gd++}}return s.tS=5e3,s.eS=5,s})(),ty=(()=>{class s{constructor(){}init(){this.Wd=new Zm}onStartTracking(){this.Wd.start()}onOptout(){this.Wd.stop()}}return s})(),Fl=(()=>{let s;return function(r){function t(n){return L(n)||Lt(n)}r.isValidIdentity=t;function e(n){let o=!1;return i(n)&&(o=!!n.hash),o}r.parseIdentityOptionsHash=e;function i(n){return Ot(n)&&He(n)&&"hash"in n}}(s||(s={})),s})(),Ka=["identify"],ey=["getIdentity"],Pu=["resetIdentity"],sy=s=>{let r=s*60*1e3;return`${Math.floor(csDate.now()/r)}`},iy=5e3,ry=(()=>{class s extends Oc{constructor(t,e,i){super(t,e),this.Xi=null,this.oS=(i==null?void 0:i.type)||"json",this.Kd=i==null?void 0:i.cacheMinutes,this.Vr=i==null?void 0:i.timeout}onLoad(t){this.qi=t}onError(t){this.Lr=t}onTimeout(t,e){this.fi=t,this.Vr=e}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,n=>n());let t=this.retrieveParameters();this.pc(t);let e=Pc.toQuery(t),i=`${this.domainUri}${this.path?`/${this.path}`:""}?${e}`;this.aS(i,this.oS)}abort(){this.Xi&&(this.Xi.abort(),this.Xi=null)}isInProgress(){return this.Xi!==null}aS(t,e){var i;let n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType=e,n.onerror=()=>{var o;return(o=this.Lr)===null||o===void 0?void 0:o.call(this,n)},n.ontimeout=()=>{var o;return(o=this.fi)===null||o===void 0?void 0:o.call(this,n)},n.onload=()=>{var o,c;n.status>=200&&n.status<400?((o=this.qi)===null||o===void 0||o.call(this,this.cS(n,e)?n.response:n.responseText),csArray.prototype.forEach.call(this.afterRequestCallbacks,u=>u())):(c=this.Lr)===null||c===void 0||c.call(this,n)},n.onloadend=()=>{this.Xi=null},n.timeout=(i=this.Vr)!==null&&i!==void 0?i:iy,this.Xi=n,n.send()}cS(t,e){let i=t.getResponseHeader("Content-Type");return i===null?e==="json":csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(i),"json")>0}pc(t){let e;this.Kd?e=`${sy(this.Kd)}`:e=csString.prototype.slice.call(`${Math.random()}`,2,8),t.r=e}}return s})(),$l=(()=>{let s;return function(r){function t(n){return ft(n)}r.isValidProperties=t;let e=255;function i(n){let o={};for(let c of Object.keys(n)){let u=n[c];if(L(u)||Lt(u)){let d=ge.truncate(csString(c),e);o[d]=ge.truncate(csString(u),e)}}return o}r.sanitizeProperties=i}(s||(s={})),s})(),Ja=["addUserProperties"],ny=(()=>{class s extends re{constructor(){super(),this.Bc=[]}onStart(){csArray.prototype.forEach.call(this.Bc,t=>this.triggerHotjarEvent(t)),this.Bc=[]}onStop(){}triggerHotjarEvent(t){if(!this.isStarted){csArray.prototype.push.call(this.Bc,t);return}this.Fc(t)&&hj("event",t)}Fc(t){return L(t)}}return s})(),oy=60*60*24*1e3,ay=oy*365,da=(s,r,t=ay)=>({add:e=>{let i=r.get(s),n=i?`${i},${e}`:e;r.set({key:s,value:n,duration:t})},exists:e=>{let i=(r.get(s)==null?void 0:csString.prototype.split.call(r.get(s),","))||[];for(let n=0;n{let i=(r.get(s)==null?void 0:csString.prototype.split.call(r.get(s),","))||[],n=csArray.prototype.join.call(csArray.prototype.filter.call(i,o=>o!==csString(e)),",");r.set({key:s,value:n,duration:t})}}),$i=(s,r,t=!1)=>({set:e=>r.set({key:s,value:e,useLocalStorage:t}),get:()=>r.get(s,t),clear:()=>r.clear(s,t)}),cy=(()=>{class s{constructor(t,e,i){this.f=t,this.N=e,this.wt=i}get(t,e){return this.f.cookielessTrackingEnabled||e?this.wt.getItem(t):this.N.get(t)||this.wt.getItem(t)}set(t){this.f.cookielessTrackingEnabled||t.useLocalStorage?this.wt.setItem(t.key,t.value):this.N.set(t.key,t.value,t.duration)}clear(t,e){this.f.cookielessTrackingEnabled||e?this.wt.removeItem(t):this.N.delete(t)}}return s})(),ly=(s,r,t)=>{hj.bridge={storage:{items:{POLL_DONE:da("_hjDonePolls",s),POLL_MINIMIZED:da("_hjMinimizedPolls",s),SURVEY_INVITES_CLOSED:da("_hjClosedSurveyInvites",s),DEBUG_FLAG:$i("hjDebug",s),FEEDBACK_SHOW_MESSAGE:$i("_hjShownFeedbackMessage",s),HUBSPOT_UTK:$i("hubspotutk",s),HAS_CACHED_USER_ATTRIBUTES:$i("_hjHasCachedUserAttributes",s),USER_ATTRIBUTES_HASH:$i("_hjUserAttributesHash",s)},localStorage:{USER_ATTRIBUTES:$i("_hjUserAttributes",s,!0)}},getSessionUserId:()=>{let e=r.getVisitor();return e==null?void 0:e.id},getSessionFirstSeen:()=>{},getPageContent:e=>t.getPageContent(e),isRecordingEnabled:()=>!1,flushUserAttributes:()=>null}},er={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11};function Ou(s){return lt.traverse(s,r=>{if(r.nodeType===er.DOCUMENT_FRAGMENT_NODE){let t=lt.getProperty(r,"styles");t&&(r.adoptedStyleSheets=t)}}),s}function hy(s){if(s!=null&&s.length)return Xe(s,r=>uy(r))}function Nu(){_e(document).visitAll(s=>{var r;if(Ki(s)&&((r=s.adoptedStyleSheets)===null||r===void 0?void 0:r.length)>0){let t=hy(s.adoptedStyleSheets);lt.setProperty(s,"styles",t)}})}function uy(s){let r=[];try{r=Xe(s.cssRules,t=>t.cssText)}catch{}return{cssRules:r,disabled:s.disabled}}var zl=new Map,pa=!$r&&document.implementation.createHTMLDocument("");function Mu(s){var r,t;return(t=(r=s.sheet)===null||r===void 0?void 0:r.href)!==null&&t!==void 0?t:s.getAttribute("href")}function dy(s){if(!to(s))return null;let r=ku(s);if(r===null||r.length===0)return null;let t="";if(Da(s.textContent))ht(r,e=>t+=e.cssText);else{let e=py(s);if(e===r.length||e>r.length)return null;let i=new csArray(r.length-e);for(let n=e,o=0;nt+=n.cssText)}return t}function py(s){if(!pa)return 0;let r=zl.get(s.textContent);if(r)return r;let t=s.cloneNode(!0);t.textContent=s.textContent,pa.head.appendChild(t);let e=ku(t);return r=e?e.length:0,zl.set(s.textContent,r),pa.head.removeChild(t),r}function ku(s){try{if(s.disabled)return null;let r=s.sheet;return r?r.cssRules||r.rules:null}catch(r){if(r.name!=="SecurityError"&&r.name!=="InvalidAccessError")throw r;return null}}var Ir=s=>s instanceof HTMLFormElement?"form":s.localName,Pi=(()=>{class s{constructor(t){this.csId=Rt(t),this.props=Ln.getStore(t)}}return s})(),Du=(()=>{class s extends Pi{constructor(t){super(t),this.nodeType=3,this.data=t.data}}return s})(),ti=(()=>{class s extends Pi{constructor(t){var e,i,n;super(t),this.attributes=[],this.nodeType=er.ELEMENT_NODE,this.localName=Ir(t),this.namespaceURI=(e=t.namespaceURI)!==null&&e!==void 0?e:void 0,this.children=[];let o=dy(t);if(o){this.children=new csArray(csNodechildNodes.apply(t).length);let c=document.createTextNode(o),u=new Du(c);csArray.prototype.push.call(this.children,u)}nr(t)&<.setProperty(this,"SVG",!0),(to(t)||Tc(t))&&(this.disabledSheet=(n=(i=t.sheet)===null||i===void 0?void 0:i.disabled)!==null&&n!==void 0?n:!1)}static isElement(t){return t.nodeType===er.ELEMENT_NODE}static getAttribute(t,e){return Ps(t.attributes,i=>i.name===e)}static getAttributeValue(t,e){var i;return(i=this.getAttribute(t,e))===null||i===void 0?void 0:i.value}}return s})(),fy=(()=>{class s extends Pi{constructor(t){super(t),this.nodeType=4,this.data=t.data}}return s})(),gy=(()=>{class s extends Pi{constructor(t){super(t),this.nodeType=8,this.data=t.data}}return s})(),my=(()=>{class s extends Pi{constructor(t){super(t),this.nodeType=10,this.name=t.name,this.publicId=t.publicId,this.systemId=t.systemId}}return s})(),yy=(()=>{class s extends Pi{constructor(t){super(t),this.nodeType=9,this.baseURI=s.getBaseURI(t),this.children=[]}static getBaseURI(t){let e=t.baseURI;if(e==null){let i=t.getElementsByTagName("base");e=i.length!==0?i[0].href:t.URL}return e}}return s})(),Ey=(()=>{class s extends Pi{constructor(t){super(t),this.nodeType=11,this.mode=t.mode,this.children=[]}}return s})(),Sy=(()=>{class s{constructor(t,e,i){var n;typeof t=="string"?(this.name=t,this.value=e,this.namespaceURI=i!=null?i:""):(this.name=t.name,this.value=t.value,this.namespaceURI=(n=t.namespaceURI)!==null&&n!==void 0?n:"")}static create(t){let e=t.attributes,i=new csArray(e.length);for(let n=0;ne(_)),o=new zr,c=(_,w)=>{_.hasChildNodes()&&o.push({node:_,serializedNode:w});let A=_ instanceof Element&&csElementshadowRoot.apply(_);if(A){let V=w.shadowRoot=kr(A);s.async&&s.initialDOM&<.setProperty(A,Mr,!0),c(A,V)}},u,d=!0,E=8,f=si("work",()=>{var _;if(d)u=kr(t),s.async&&s.initialDOM&<.setProperty(t,Mr,!0),c(t,u),d=!1;else if(o.isEmpty)return;let w=Ty(100);for(;!o.isEmpty;){if(s.async&&w.elapsed()>=s.workTime){--E<=0&&csSetTimeout(f);return}let{node:A,serializedNode:V}=o.pop(),U=(_=V.children)!==null&&_!==void 0?_:[];if(so(A))continue;let P=0;for(let C=csNodefirstChild.apply(A);C;C=csNodenextSibling.apply(C)){if(xu(C))continue;let F=kr(C);s.async&&s.initialDOM&<.setProperty(C,Mr,!0),U[P++]=F,c(C,F)}}s.async?csSetTimeout(()=>n(u)):e(u)});if(!s.async)s.workTime=1/0,f();else for(let _=0;_= 1");let r=0,t=K.elapsed();return{started:t,elapsed(){return++r%s===0&&(t=K.elapsed()),t-this.started}}}function by(s){return so(s)?[]:Sy.create(s)}var Ay=(()=>{class s{constructor(t,e,i,n,o){this.lS=t,this.f=e,this.ce=i,this.nt=n,this.Bt=o}getPageContent(t){this.ce.setMaskedElementSettings(this.nt.getMaskedElementSettings()),this.ce.startIdentifier(),this.Bt.start(),Nu(),vy.serialize(document,e=>{let i=Ou(e),n=csArray.prototype.reduce.call(this.lS,(o,c)=>c.sanitize(o),i);this.Bt.stop(),t(csJSON.stringify(n),this.f.projectId)})}}return s})(),Ry=(()=>{class s{constructor(){}sanitize(t){return lt.traverse(t,e=>{if(e instanceof ti){let i=Y.getMaskedAttributeDetails(e);e.attributes=this.Lo(e,i);let n=Y.getMaskedElementDetails(e);n.state===Y.MaskedElementState.Parent&&this.$c(e,n)}}),t}Lo(t,e){return e.attributes.length===0?t.attributes:csArray.prototype.filter.call(t.attributes,i=>csArray.prototype.indexOf.call(e.attributes,i.name)===-1)}$c(t,e){let i=`width: ${e.width}px !important; height: ${e.height}px !important;`;t.children=[],t.shadowRoot=void 0,csArray.prototype.push.call(t.attributes,{name:"style",value:i,namespaceURI:""}),ti.getAttribute(t,"data-cs-mask")||csArray.prototype.push.call(t.attributes,{name:"data-cs-mask",value:"",namespaceURI:""})}}return s})(),Cy=/[\u4E00-\u9FFF]|[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]/g,Iy="\uFF41",Py=/[^a\s]/g,Oy="a";function fa(s){let r=csString.prototype.replace.call(s,Cy,Iy);return csString.prototype.replace.call(r,Py,Oy)}var Lu=(()=>{class s{constructor(t,e,i,n=null,o=!1){this.Ke=t,this.hS=e,this.M=i,this.Vo=n,this.uS=o,this.dS=ru(this.hS)}sanitize(t,e){return lt.traverse(t,(i,n)=>{if(i.anonymized=this.Ke,i.nodeType===er.TEXT_NODE){let o=i,{anonymizedValue:c,withAnonymization:u}=this.getAnonymizedValue(o.data,n?n==null?void 0:n.localName:e==null?void 0:e.targetLocalName,n?lt.getProperties(n):e==null?void 0:e.targetProps);i.anonymized=u,o.data=c;return}if(ti.isElement(i))return this.pS(i);if(i.nodeType===er.CDATA_SECTION_NODE){let o=i;o.data=this.Ke?fa(o.data):this.M.checkAndAnonymizePII(o.data,this.Vo);return}}),t}setAnonymization(t){this.Ke=t}getAnonymizedValue(t,e,i){if(e==="style")return{anonymizedValue:t,withAnonymization:!1};let n=(i==null?void 0:i[is.ANONYMIZED_TEXT_STATUS_PROP])===is.WHITELISTED_STATUS;return this.Ke&&!n?{anonymizedValue:fa(t),withAnonymization:!0}:{anonymizedValue:this.M.checkAndAnonymizePII(t,this.Vo),withAnonymization:!1}}pS(t){if(lt.getProperty(t,"SVG"))return;let e=Ps(t.attributes,n=>n.name==="type"),i=e==null?void 0:e.value;t.attributes=csArray.prototype.map.call(t.attributes,n=>(n.anonymized=this.Ke,n.value=this.getAnonymizedAttributeValue(t.localName,n.name,n.value,i),n))}getAnonymizedAttributeValue(t,e,i,n){if(this.fS(t,e,n))return i;if(dg(e))return pg(t,e,i)?this.M.anonymizePII(i):i;let o=this.uS&&e==="placeholder";return this.Ke&&(fg(t,e,n)||o)?fa(i):this.Ke?"":this.M.checkAndAnonymizePII(i,null)}fS(t,e,i){return ug(t,e,i)||this.dS.has(e)}}return s})(),Hc=(()=>{let s;return function(r){function t(){let i=navigator.userAgent+navigator.language+navigator.platform,n=csString.prototype.slice.call(e(i).toString(16),-4),o=new csDate().getTime(),c="xxxxxxxx-hhhh-axxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,u=>{let d=(o+Math.random()*16)%16|0;return o=Math.floor(o/16),(u==="x"?d:d&7|8).toString(16)});return csString.prototype.replace.call(c,"hhhh",n)}r.generate=t;function e(i){let n=0;for(let o=0;o{class s{constructor(t,e,i,n,o,c,u,d,E){this.E=t,this.we=e,this.f=i,this.N=n,this.wt=o,this.I=c,this.M=u,this.it=d,this.nt=E,this.Zd=new ny,this.gS=new cy(this.f,this.N,this.wt)}init(){this.E.register(Ny,t=>{this.Zd.triggerHotjarEvent(t)}),Gm({uuid:Hc.generate}),ly(this.gS,this.I,this.mS())}start(){this.yS(),this.Zd.start()}yS(){Ym(this.we).activate()}mS(){let t=new Vc(()=>{}),e=new Uc,i=this.it.shouldUseAnonymization(),n=new Ry,o=new Lu(i,this.f.whitelistedAttributes,this.M,this.f.anonymizeDigits);return new Ay([n,o],this.f,t,this.nt,e)}}return s})(),Ie={invitationDisplayed:"surveyInvitationDisplayed",displayed:"surveyDisplayed",submitted:"surveySubmitted",completed:"surveyCompleted",responseUrl:"surveyResponseUrl"},Rr={[Ie.invitationDisplayed]:"Survey Invitation Displayed",[Ie.displayed]:"Survey Displayed",[Ie.submitted]:"Survey Response Submitted",[Ie.completed]:"Survey Completed",[Ie.responseUrl]:"Survey Response URL"},In={[Ie.invitationDisplayed]:"survey_invitation_displayed",[Ie.displayed]:"survey_displayed",[Ie.submitted]:"survey_response_submitted",[Ie.completed]:"survey_completed"},ga="FB_HJ_",My=(()=>{class s{constructor(t){this.tp=[],this.we=t}Yr(t,e,i,n,o){let c=`${t}-${i}`,u=ga+e,d=o?t:`Survey ID : ${i}`,E=!1,f=`${window.location.pathname}?cs_hotjar=${n}`;csArray.prototype.includes.call(this.tp,c)||(csArray.prototype.push.call(this.tp,c),this.we.pushDynamicVariable(u,d)),E&&n&&this.we.pushPageView(f)}listen(){window.addEventListener("hotjar-survey-event",t=>{if(t&&t.detail&&t.detail.event){let{event:e,surveyId:i,question:n,questionIndex:o,response:c,insightsUrl:u}=t.detail;if(i)switch(e){case Ie.invitationDisplayed:this.Yr(e,Rr.surveyInvitationDisplayed,i,In.surveyInvitationDisplayed);break;case Ie.displayed:this.Yr(e,Rr.surveyDisplayed,i,In.surveyDisplayed);break;case Ie.completed:this.Yr(e,Rr.surveyCompleted,i,In.surveyCompleted);break;case Ie.submitted:{if(this.Yr(e,Rr.surveySubmitted,i,In.surveySubmitted),n){let d=c&&c[0]&&c[0].answer;n.type!="multiple-close-ended"&&n.text&&typeof d!="undefined"&&(isNaN(d)||(d=parseInt(d)),this.we.pushDynamicVariable(`${ga+i} : ${n.text}`,d),this.we.pushDynamicVariable(`${ga+i} : Question ${o+1}`,d))}u&&this.Yr(u,Rr.surveyResponseUrl,i,null,!0)}break}}})}}return s})(),Wl=["start:hotjar"],ky="static.hj.contentsquare.net",Dy=(()=>{class s{constructor(t,e,i,n,o){this.f=t,this.E=e,this.w=i,this.ep=n,this.we=o,this.yi=!1,this.Xr=!1}init(){var t,e;this.yi=this.f.isSMB,this.Xr=!!(!((t=this.f.voc)===null||t===void 0)&&t.enabled&&(!((e=this.f.voc)===null||e===void 0)&&e.siteId)),this.ht(),this.yi&&this.ep.start()}onAfterNaturalPageView(){this.startHotjar()}onAfterArtificialPageView(){if(this.Xr){let t=this.w.getUrl();hj.currentUrl=t,Ya(),Xa(t)}}startHotjar(){var t;if(this.yi&&window.hjSiteSettings&&(window._uxa.push([Wl,window.hjSiteSettings]),at.counters.trackedFeatures.count("legacy-csq-lite")),!this.yi&&this.Xr){let e=(t=this.f.voc)===null||t===void 0?void 0:t.siteId,i=window.document,n=i.head||i.getElementsByTagName("head")[0],o=i.createElement("script");o.async=!0,o.src=`https://${ky}/c/hotjar-${e}.js`,o.charset="utf-8",n.appendChild(o),at.counters.trackedFeatures.count("legacy-csq-ent-voc")}}ht(){this.E.register(Wl,t=>{if(t&&(hj.settings=t,zm(),new Tu(this.we).listen({vocEnabled:this.Xr,integrationsEnabled:this.yi}),this.yi?(hj.scriptLoaded=!0,qm(),bu(),window.hjBootstrapCalled=csArray.prototype.concat.call(window.hjBootstrapCalled||[],t.site_id),Wm("Contentsquare")):this.ep.start(),this.Xr)){let i=this.w.getUrl();hj.currentUrl=i,this.yi||new My(this.we).listen(),Ya(),Au(),Xa(i)}})}}return s})(),Yl=250,Za=class{constructor(r){this.X=r}pushPageView(r){window._uxa.push(["trackPageview",r])}pushDynamicVariable(r,t){window._uxa.push(["trackDynamicVariable",{key:r,value:t}])}pushInternalEvents(r){csArray.prototype.forEach.call(r,({key:t,val:e})=>this.pushDynamicVariable(t,e))}pushExternalEvents(r){var t;if(!this.X)return;let e=this.ES(r);for(let i=0;i-1&&qe.mayHaveEmail(r)||t&&qe.mayHaveIPAddress(r))}ES(r){let t=/^[a-zA-Z0-9 _\-.:/]*$/;return r?csArray.prototype.filter.call(r,e=>e?t.test(e.toString())?this.vS(e)?(hj.log.debug("Tag "+e+" has been removed due to possible PII information included"),!1):!0:(hj.log.debug("Tag "+e+" has been removed due to having invalid characters"),!1):!1):[]}SS(r){return typeof r=="string"?csString.prototype.replace.call(r,/^\s+|\s+$/gm,""):""}},Uu=Za,Bc=(()=>{class s{emit(t,e,i,n=document){let c=`${i!==void 0?`${i}`:`${s._S}`}${t}`,u=s.createEvent(c,{detail:e});u!==null&&n.dispatchEvent(u)}static createEvent(t,e={}){if(typeof CustomEvent=="function")return new CustomEvent(t,e);let i=this.wS();if(i===null)return null;let{bubbles:n=!1,cancelable:o=!1,detail:c}=e;return i.initCustomEvent(t,n,o,c),i}static wS(){try{return document.createEvent("CustomEvent")}catch{return null}}}return s._S="cs.tracking.",s})(),Fc=(()=>{class s{constructor(){}onLoad(t){this.qi=t}onLoadCallbackExecute(){this.qi()}start(){let t=this.onLoadCallbackExecute.bind(this);this.qS(t)}qS(t){document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll?csSetTimeout(t):(document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e));function e(){document.removeEventListener("DOMContentLoaded",e),window.removeEventListener("load",e),t()}}}return st([G("onLoad")],s.prototype,"onLoadCallbackExecute",null),s})(),xy=(()=>{class s{constructor(t){this.jo=t.performance}getRequestParameters(){if(this.WS())return{};let t=this.YS();return{str:t.startRender,di:t.domInteractive,dc:t.domComplete,fl:t.fullyLoaded}}YS(){let t=this.jo.timing;return{startRender:`${t.domLoading-t.requestStart}`,domInteractive:`${t.domInteractive-t.requestStart}`,domComplete:`${t.domComplete-t.requestStart}`,fullyLoaded:`${t.loadEventEnd-t.requestStart}`}}WS(){return!(this.jo&&this.jo.timing&&this.jo.timing.loadEventEnd>0)}}return s})(),Ee=(()=>{class s{static build(t,e,i){return csArray.prototype.reduce.call(i,(n,o)=>o.enhanceAnalysisEvent(t,n),e)}}return s})(),nt=(()=>{let s;return function(r){r[r.RESIZE=0]="RESIZE",r[r.SCROLL=1]="SCROLL",r[r.MOUSEMOVE=2]="MOUSEMOVE",r[r.MOUSEDOWN=3]="MOUSEDOWN",r[r.MOUSEUP=4]="MOUSEUP",r[r.CLICK=5]="CLICK",r[r.MOUSEOVER=6]="MOUSEOVER",r[r.MOUSEOUT=7]="MOUSEOUT",r[r.CHANGE=10]="CHANGE",r[r.FOCUSIN=11]="FOCUSIN",r[r.FOCUSOUT=12]="FOCUSOUT",r[r.TAP=14]="TAP",r[r.KEYDOWN=15]="KEYDOWN",r[r.KEYUP=16]="KEYUP",r[r.COMMAND=17]="COMMAND",r[r.SUBMIT_COMMAND=18]="SUBMIT_COMMAND",r[r.PERFORMANCE=19]="PERFORMANCE",r[r.DRAG=20]="DRAG",r[r.FLICK=21]="FLICK",r[r.KEYBOARD_NAVIGATION=22]="KEYBOARD_NAVIGATION",r[r.ZOOM=23]="ZOOM",r[r.VIEWPORT_SCALE=24]="VIEWPORT_SCALE",r[r.TEXT_HIGHLIGHT=25]="TEXT_HIGHLIGHT",r[r.DEAD_CLICK=30]="DEAD_CLICK",r[r.DEAD_ZOOM=31]="DEAD_ZOOM",r[r.PAGE_RELOAD=32]="PAGE_RELOAD",r[r.THRASHED_CURSOR=33]="THRASHED_CURSOR",r[r.BLANK_PAGE=34]="BLANK_PAGE",r[r.EXTERNAL_EVENT=35]="EXTERNAL_EVENT",r[r.SUBMIT=36]="SUBMIT",r[r.CUSTOM_EVENT=37]="CUSTOM_EVENT"}(s||(s={})),s})(),ma=(()=>{let s;return function(r){r.SUCCESS="success",r.FAILURE="failure",r.ATTEMPT="attempt"}(s||(s={})),s})(),Gi=(()=>{let s;return function(r){r.APPCUES="appcues",r.CHAMELEON="chameleon",r.CONTENTSQUARE="contentsquare",r.SEGMENT="segment",r.WEB="web"}(s||(s={})),s})();function Xl(s){return"text"in s}function ya(s){return"hrchy"in s}function Ly(s){return s.tgtHM!==void 0}function ju(s){return s.tgt!==void 0}function Vy(s){return s.tgtLk!==void 0}function Uy(s){return s.x!==void 0&&s.y!==void 0}function jy(s){return s===ma.SUCCESS||s===ma.FAILURE||s===ma.ATTEMPT}function Hy(s){return s===Gi.APPCUES||s===Gi.CHAMELEON||s===Gi.CONTENTSQUARE||s===Gi.SEGMENT||s===Gi.WEB}var Hu=(()=>{class s{constructor(t,e,i){this.Jt=t,this.xt=e,this.At=i}processGesture(t,e){switch(t.type){case Wt.TAP:this.XS(e);break;case Wt.FLICK:this.KS(t,e);break;case Wt.DRAG:this.JS(t,e);break;default:break}}XS(t){let e={type:nt.TAP,ts:0,x:0,y:0,tgt:""},i=Ee.build(t,e,this.Jt);i.tgt!==ns.INVALID_ELEMENT&&this.L(i)}JS(t,e){var i,n;let o={type:nt.DRAG,ts:0,fd:t.direction,tgt:""};!((i=this.At)===null||i===void 0)&&i.collectGestureDistance&&(o.distance=t.distance),!((n=this.At)===null||n===void 0)&&n.collectGestureVelocity&&(o.velocity=t.velocity);let c=Ee.build(e,o,this.Jt);c.tgt!==ns.INVALID_ELEMENT&&this.L(c)}KS(t,e){var i,n;let o={type:nt.FLICK,ts:0,fd:t.direction,tgt:""};!((i=this.At)===null||i===void 0)&&i.collectGestureDistance&&(o.distance=t.distance),!((n=this.At)===null||n===void 0)&&n.collectGestureVelocity&&(o.velocity=t.velocity);let c=Ee.build(e,o,this.Jt);c.tgt!==ns.INVALID_ELEMENT&&this.L(c)}onEvent(t){this.L=t}start(){this.xt.subscribe(s.op,(t,e)=>this.processGesture(t,e))}stop(){this.xt.unsubscribe(s.op)}}return s.op="AnalysisGestureTracker",st([Pt()],s.prototype,"processGesture",null),s})();function co(s,r){typeof r=="number"&&(r={wait:r});let t=r.wait,e=r.mode||"leading",i,n=[],o=null,c=0,u,d=()=>{c=K.now(),o=null,u=s.apply(i,n),n=[],i=null},E=function(...f){if(i=this!==null&&this!==void 0?this:_t,n=[...f],e==="trailing")return o||(o=_t.csSetTimeout(d,t)),u;let _=K.now(),w=t-(_-c);return w<=0||w>t?(c=_,u=s.apply(i,n),o?(_t.csClearTimeout(o),o=null):n=[]):o||(o=_t.csSetTimeout(d,w)),u};return E.cancel=()=>{o&&(_t.csClearTimeout(o),c=0,o=null,n=[])},E.flushPending=()=>{o&&(_t.csClearTimeout(o),d())},E}var ar=s=>(r,t,e)=>{e.value=co(e.value,s)},Kl="data-cs-scroll-container";function By(s){try{if(Ot(csEventtarget.apply(s)))return!0}catch{}return!1}var Yi=(()=>{let s;return function(r){function t(i){return!!(Ot(i)&&By(i)&&Ns(csEventtarget.apply(i))&&csEventtarget.apply(i).getAttribute(Kl)!==null)}r.isEventOnScrollContainer=t;function e(){return window.csquerySelector[document.nodeType].call(document,`[${Kl}]`)}r.getScrollContainer=e}(s||(s={})),s})(),Xi=(()=>{let s;return function(r){r[r.COPY=0]="COPY",r[r.CUT=1]="CUT",r[r.PASTE=2]="PASTE"}(s||(s={})),s})(),pt=(()=>{let s;return function(r){r[r.SPACE=0]="SPACE",r[r.ENTER=1]="ENTER",r[r.BACKSPACE=2]="BACKSPACE",r[r.DELETE=3]="DELETE",r[r.ARROWUP=4]="ARROWUP",r[r.ARROWDOWN=5]="ARROWDOWN",r[r.ARROWLEFT=6]="ARROWLEFT",r[r.ARROWRIGHT=7]="ARROWRIGHT",r[r.CAPSLOCK=8]="CAPSLOCK",r[r.SHIFT=9]="SHIFT",r[r.TAB=10]="TAB",r[r.ALPHANUMERICAL=11]="ALPHANUMERICAL",r[r.ESCAPE=12]="ESCAPE",r[r.END=13]="END",r[r.ALT=14]="ALT",r[r.CTRL=15]="CTRL",r[r.META=16]="META"}(s||(s={})),s})(),Bu=(()=>{class s{constructor(t,e,i,n=["submit"]){this.Jt=t,this.ft=e,this.Lt=i,this.QS=n,this.ap="select, select *, input, textarea",this.ZS="select, select *, input, textarea",this.cp="a, a *, button, button *, select, select *, input, textarea",this.Kr="input, select, textarea",this.sv="form",this.Ho=150,this.iv=400,this.lp=!1,this.Jr=jr((o,c)=>this.scrollListener(o,c),this.Ho),this.hp=jr(o=>this.resizeListener(o),this.Ho),this.rv=co(o=>this.mouseMoveListener(o),this.iv),this.nv=[{boundElement:window,type:"resize",listener:()=>this.hp()},{boundElement:document,type:"scroll",listener:o=>this.Jr(o)},{boundElement:window,type:"mousemove",listener:o=>{this.rv(Lm(o))}},{boundElement:document,type:"mousedown",listener:o=>this.mouseDownListener(o)},{boundElement:document,type:"mouseup",listener:o=>this.mouseUpListener(o)},{boundElement:document,type:"click",listener:o=>this.clickListener(o)}],this.up=[{type:"change",listener:this.Lt.on(this.ZS,o=>this.changeListener(o))},{type:"submit",listener:this.Lt.on(this.sv,o=>this.submitListener(o))}],this.ov=[{boundElement:document,type:"mouseover",listener:this.Lt.on(this.cp,o=>this.mouseOverListener(o))},{boundElement:document,type:"mouseout",listener:this.Lt.on(this.cp,o=>this.mouseOutListener(o))},{boundElement:document,type:"focusin",listener:this.Lt.on(this.ap,o=>this.focusInListener(o))},{boundElement:document,type:"focusout",listener:this.Lt.on(this.ap,o=>this.focusOutListener(o))},{boundElement:document,type:"keyup",listener:this.Lt.on(this.Kr,o=>this.keyUpListener(o))},{boundElement:document,type:"keydown",listener:this.Lt.on(this.Kr,o=>this.keyDownListener(o))},{boundElement:document,type:"copy",listener:this.Lt.on(this.Kr,o=>this.copyListener(o))},{boundElement:document,type:"cut",listener:this.Lt.on(this.Kr,o=>this.cutListener(o))},{boundElement:document,type:"paste",listener:this.Lt.on(this.Kr,o=>this.pasteListener(o))},...csArray.prototype.map.call(this.up,o=>({...o,boundElement:document}))],this.U={},this.Kc=(o,c)=>{switch(c){case"initial":case"added":this.Ei(o);break;case"removed":this.Si(o);break}},this.le=new or(this.Kc),this.Jc()}Ei(t){if(zn(t)){let e=this.dp();csArray.prototype.forEach.call(e,i=>Dt(i))}else{let e=this.pp();csArray.prototype.forEach.call(e,i=>{Dt({...i,boundElement:t})})}}Si(t){if(zn(t)){let e=this.dp();csArray.prototype.forEach.call(e,i=>xt(i))}else{let e=this.pp();csArray.prototype.forEach.call(e,i=>{xt({...i,boundElement:t})})}}onEvent(t){this.L=t}start(){this.le.observe(),this.Ei(document),this.resizeListener()}stop(){this.Si(document),this.le.disconnect()}flushPendingDebouncedListeners(){this.Jr.flushPending(),this.hp.flushPending()}fp(t){return csArray.prototype.some.call(this.QS,e=>e===t)}pp(){return this.Lt.isMatchesSelectorSupported()?csArray.prototype.filter.call(this.up,t=>!this.fp(t.type)):(W.warn("Element.matches is not implemented yet"),[])}dp(){let t=[];return csArray.prototype.push.call(t,...this.nv),this.Lt.isMatchesSelectorSupported()?csArray.prototype.push.call(t,...this.ov):W.warn("Element.matches is not implemented yet"),csArray.prototype.filter.call(t,e=>!this.fp(e.type))}resizeListener(t){let e=Yi.getScrollContainer(),i=Ns(e);i&&(this.lp=!0);let n={type:nt.RESIZE,ts:0,x:i?e.clientWidth:Yt.windowWidth(),y:i?e.clientHeight:Yt.windowHeight()};t!==void 0&&(n.d=t),this.L(n)}scrollListener(t,e){let i=Yi.isEventOnScrollContainer(e);!this.lp&&i&&this.resizeListener();let n={type:nt.SCROLL,ts:0,x:i?csEventtarget.apply(e).scrollLeft:Yt.windowOffsetX(),y:i?csEventtarget.apply(e).scrollTop:Yt.windowOffsetY(),d:t},o=Ee.build(e,n,this.Jt);this.L(o)}mouseMoveListener(t){let e={type:nt.MOUSEMOVE,ts:0,x:t.pageX,y:t.pageY},i=Ee.build(t,e,this.Jt);this.L(i)}mouseDownListener(t){let e={type:nt.MOUSEDOWN,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Ee.build(t,e,this.Jt);this.he(i)}mouseUpListener(t){let e={type:nt.MOUSEUP,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Ee.build(t,e,this.Jt);this.he(i)}clickListener(t){let e={type:nt.CLICK,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Ee.build(t,e,this.Jt);this.he(i)}mouseOverListener(t){let e={type:nt.MOUSEOVER,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Ee.build(t,e,this.Jt);this.he(i)}mouseOutListener(t){let e={type:nt.MOUSEOUT,ts:0,x:t.pageX,y:t.pageY,tgt:this.ft.getEventTargetPath(t)},i=Ee.build(t,e,this.Jt);this.he(i)}focusInListener(t){let e={type:nt.FOCUSIN,ts:0,tgt:this.ft.getEventTargetPath(t)},i=Ee.build(t,e,this.Jt);this.he(i)}focusOutListener(t){let e={type:nt.FOCUSOUT,ts:0,tgt:this.ft.getEventTargetPath(t)},i=Ee.build(t,e,this.Jt);this.he(i)}changeListener(t){let e={type:nt.CHANGE,ts:0,tgt:""},i=Ee.build(t,e,this.Jt);this.he(i)}submitListener(t){let e={type:nt.SUBMIT,ts:0,tgt:""},i=Ee.build(t,e,this.Jt);this.he(i)}copyListener(t){let e={type:nt.COMMAND,ts:0,tgt:this.ft.getEventTargetPath(t),key:Xi.COPY};this.he(e)}cutListener(t){let e={type:nt.COMMAND,ts:0,tgt:this.ft.getEventTargetPath(t),key:Xi.CUT};this.he(e)}pasteListener(t){let e={type:nt.COMMAND,ts:0,tgt:this.ft.getEventTargetPath(t),key:Xi.PASTE};this.he(e)}keyUpListener(t){let e={type:nt.KEYUP,ts:0,tgt:this.ft.getEventTargetPath(t),key:this.gp(t)};this.he(e)}keyDownListener(t){let e={type:nt.KEYDOWN,ts:0,tgt:this.ft.getEventTargetPath(t),key:this.gp(t)};this.he(e)}gp(t){let e=this.U[t.key];return e===void 0?pt.ALPHANUMERICAL:e}he(t){ju(t)&&t.tgt!==ns.INVALID_ELEMENT&&this.L(t)}Jc(){this.U[" "]=pt.SPACE,this.U.Spacebar=pt.SPACE,this.U.Enter=pt.ENTER,this.U.Backspace=pt.BACKSPACE,this.U.Delete=pt.DELETE,this.U.ArrowUp=pt.ARROWUP,this.U.ArrowDown=pt.ARROWDOWN,this.U.ArrowLeft=pt.ARROWLEFT,this.U.ArrowRight=pt.ARROWRIGHT,this.U.Up=pt.ARROWUP,this.U.Down=pt.ARROWDOWN,this.U.Left=pt.ARROWLEFT,this.U.Right=pt.ARROWRIGHT,this.U.CapsLock=pt.CAPSLOCK,this.U.Shift=pt.SHIFT,this.U.Tab=pt.TAB}}return st([G("Event handler type: resize")],s.prototype,"resizeListener",null),st([G("Event handler type: scroll")],s.prototype,"scrollListener",null),st([G("Event handler type: mouseMove"),Pt()],s.prototype,"mouseMoveListener",null),st([G("Event handler type: mouseDown"),Pt()],s.prototype,"mouseDownListener",null),st([G("Event handler type: mouseUp"),Pt()],s.prototype,"mouseUpListener",null),st([G("Event handler type: click"),Pt()],s.prototype,"clickListener",null),st([G("Event handler type: mouseOver"),Pt()],s.prototype,"mouseOverListener",null),st([G("Event handler type: mouseOut"),Pt()],s.prototype,"mouseOutListener",null),st([G("Event handler type: focusIn")],s.prototype,"focusInListener",null),st([G("Event handler type: focusOut")],s.prototype,"focusOutListener",null),st([G("Event handler type: change")],s.prototype,"changeListener",null),st([G("Event handler type: submit"),Pt()],s.prototype,"submitListener",null),st([G("Event handler type: copy")],s.prototype,"copyListener",null),st([G("Event handler type: cut")],s.prototype,"cutListener",null),st([G("Event handler type: paste")],s.prototype,"pasteListener",null),st([G("Event handler type: keyup")],s.prototype,"keyUpListener",null),st([G("Event handler type: keydown")],s.prototype,"keyDownListener",null),s})(),Fy=(()=>{class s{constructor(){this.mp=100,this.Qr=0,this.Zr=Yt.documentHeight(),this.yp={boundElement:document,type:"scroll",listener:t=>this.maxScrollRateListener(t)},this.Qr=this.Qc(Yi.getScrollContainer()).maxScrollRate}onEvent(t){this.L=t}start(){Dt(this.yp)}stop(){xt(this.yp)}reset(){let t=Yi.getScrollContainer(),{maxScrollRate:e,maxDocumentHeight:i}=this.Qc(t);this.Zr=i,this.Qr=e,this.L()}Qc(t){let e=0,i=0;if(t===null)i=Yt.documentHeight(),e=this.av(i);else{let n=this.cv(t);i=this.Ep(t,n),e=this.lv(t,n)}return{maxScrollRate:e,maxDocumentHeight:i}}maxScrollRateListener(t){let e=null;Yi.isEventOnScrollContainer(t)&&(e=csEventtarget.apply(t));let{maxScrollRate:i,maxDocumentHeight:n}=this.Qc(e);(i>this.Qr||n>this.Zr)&&(this.Qr=i,n>this.Zr&&(this.Zr=n),this.L())}av(t){let e=Math.round(this.hv()/t*100);return Math.min(e,this.mp)}hv(){let t=Yt.windowHeight();return Yt.windowOffsetY()+t}lv(t,e){let i=t.scrollTop+t.clientHeight+t.getBoundingClientRect().top+e,n=this.Ep(t,e),o=Math.round(i/n*100);return Math.min(o,this.mp)}cv(t){let e=window.getComputedStyle(t).paddingTop||"0px";return parseInt(e,10)}Ep(t,e){return t.scrollHeight+t.getBoundingClientRect().top+e}getRequestParameters(){return{sr:`${this.Qr}`,mdh:`${this.Zr}`}}}return st([G("MaxScrollRate handler")],s.prototype,"maxScrollRateListener",null),s})(),je=(()=>{let s;return function(r){r.Visible="visible",r.Hidden="hidden",r.Blur="blur",r.PagehideVisible="pagehideVisible",r.PagehideHidden="pagehideHidden",r.ExitPageByNavigate="exitPageByNavigate"}(s||(s={})),s})(),Fu=(()=>{class s{constructor(){this.V=!1,this.$s=t=>{try{switch(t.type){case"visibilitychange":return document.visibilityState==="hidden"?this.Qt(je.Hidden):this.Qt(je.Visible);case"pagehide":return document.visibilityState==="hidden"?this.Qt(je.PagehideHidden):this.Qt(je.PagehideVisible);case"blur":return this.Qt(je.Blur);case"navigate":return this.uv(t)?this.Qt(je.ExitPageByNavigate):void 0;default:return}}catch{}}}start(){this.V||(this.V=!0,this.Zc(),this.pv(),this.fv(),ml()&&this.gv())}stop(){this.V&&(this.V=!1,this.tl(),this.mv(),this.yv(),ml()&&this.Ev())}onEvent(t){this.Qt=t}gv(){window.navigation.addEventListener("navigate",this.$s)}Ev(){window.navigation.removeEventListener("navigate",this.$s)}Zc(){document.addEventListener("visibilitychange",this.$s)}tl(){document.removeEventListener("visibilitychange",this.$s)}pv(){window.addEventListener("pagehide",this.$s)}mv(){window.removeEventListener("pagehide",this.$s)}fv(){window.addEventListener("blur",this.$s)}yv(){window.removeEventListener("blur",this.$s)}uv(t){return t instanceof NavigateEvent?!t.hashChange&&!t.downloadRequest&&!t.formData:!1}}return s})(),$y=1024,zy=512,Ea=1024,Sa="||",Gy=(()=>{class s extends re{constructor(t,e,i,n,o,c,u,d,E,f,_,w,A,V,U,P,C,F,j,M,J){super(),this.f=t,this.zs=e,this.xt=i,this.er=n,this.sl=o,this.He=c,this.be=u,this.il=d,this.G=E,this.Kt=f,this.Q=_,this.rl=w,this.Be=A,this.W=V,this.Bo=U,this.gs=P,this.ms=C,this.nl=F,this.vi=j,this._i=M,this.wi=J,this.Fs=new Bc,this.Fo=!1,this.ol=[]}init(){var t,e,i,n,o,c,u;this.zs.onEvent(d=>this.Nt(d)),this.xt.onEvent(d=>this.Nt(d)),this.er.onEvent(()=>{let d=this.er.getRequestParameters();this.W.setQueryParams(d),this.be.setQueryParams(d)}),this.rl.onEvent(d=>this.Ae(d)),this.al(),(t=this.Bo)===null||t===void 0||t.onEvent(d=>this.Nt(d)),(e=this.vi)===null||e===void 0||e.onEvent(d=>this.Nt(d)),(i=this.gs)===null||i===void 0||i.onEvent(d=>this.Nt(d)),(n=this.ms)===null||n===void 0||n.onEvent(d=>this.Nt(d)),this.Sv(),(o=this.nl)===null||o===void 0||o.onEvent(d=>this.Ae(d)),(c=this._i)===null||c===void 0||c.onEvent(d=>this.Ae(d)),(u=this.wi)===null||u===void 0||u.onEvent(d=>this.Ae(d))}Sv(){this.be.onBeaconSuccess(()=>{this.He.clearEvents()}),this.be.onBeaconFailure(t=>{this.vv(t)})}initStates(){let t=this.il.getRequestParameters(),e=this.sl.getRequestParameters(),i=this.er.getRequestParameters();this.W.setQueryParams(t),this.W.setQueryParams(e),this.W.setQueryParams(i),this.be.setQueryParams(t),this.be.setQueryParams(e),this.be.setQueryParams(i),this.cl()}clearStates(t){var e,i;this.zs.flushPendingDebouncedListeners(),(e=this.gs)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(i=this.ms)===null||i===void 0||i.flushPendingTextHighlightEvent(),t?(this.ll(),this.sendLastMessageBeacon()):this.sendEvents(),this.er.reset(),this.W.removeQueryParams()}onStart(t){var e,i,n,o,c,u,d;t||(e=this.nl)===null||e===void 0||e.start(),this.Be.start(),this.zs.start(),this.er.start(),this.xt.start(),(i=this.Bo)===null||i===void 0||i.start(),(n=this.ms)===null||n===void 0||n.start(),t||this.rl.start(),(o=this.gs)===null||o===void 0||o.start(),(c=this.vi)===null||c===void 0||c.start(),(u=this._i)===null||u===void 0||u.start(),(d=this.wi)===null||d===void 0||d.start(),csArray.prototype.forEach.call(this.ol,E=>{this.Ae(E)}),this.ol=[]}collectInitialEvents(){var t;(t=this.Bo)===null||t===void 0||t.collectInitialEvents()}onIframeAnalysisBrowserEvent(t){this.Ae(t)}onIframeAnalysisUserEvent(t){this.Nt(t)}onExternalEvent(t){this.J(t)}Ae(t){this.G.isCurrentPageviewValid()&&this.J(t)}Nt(t){this.G.refreshSession(),this.G.isSessionValid()&&this.J(t)}J(t){this.He.addEvent(this._v(t)),this.He.isFull()&&this.sendEvents(),this.f.emitDebugEvents&&this.Fs.emit("analysisEvent",{...t,typeName:nt[t.type]})}_v(t){return t.ts=this.Ti(),t}ll(){this.be.setQueryParams({hlm:"true"}),this.Fo=!0}sendLastMessageBeacon(){this.be.removeQueryParams(["i"]),this.be.setQueryParams(this.il.getRequestParameters()),this.be.setQueryParams(this.sl.getRequestParameters()),this.be.send(this.He.stringifyEvents()),this.be.removeQueryParams(["hlm"]),this.Fo=!1}sendEvents(){this.He.isEmpty()||(this.be.removeQueryParams(["i"]),this.W.setQueryParams(this.il.getRequestParameters()),this.W.setQueryParams(this.sl.getRequestParameters()),this.W.send(this.He.getEvents()),this.He.clearEvents())}onStop(){var t,e,i,n,o,c,u;this.Be.stop(),this.zs.stop(),this.er.stop(),this.xt.stop(),this.rl.stop(),(t=this.Bo)===null||t===void 0||t.stop(),(e=this.gs)===null||e===void 0||e.stop(),(i=this.ms)===null||i===void 0||i.stop(),(n=this.vi)===null||n===void 0||n.stop(),this.He.empty(),(o=this.nl)===null||o===void 0||o.stop(),(c=this._i)===null||c===void 0||c.stop(),(u=this.wi)===null||u===void 0||u.stop()}cl(){this.Qe=K.now()}Ti(){return K.now()-this.Qe}al(){this.Be.onEvent(t=>{var e,i;t!==je.Visible&&((e=this.gs)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(i=this.ms)===null||i===void 0||i.flushPendingTextHighlightEvent(),t===je.PagehideVisible?this.ll():t===je.PagehideHidden?(this.ll(),this.sendLastMessageBeacon()):(!this.He.isEmpty()||this.Fo)&&this.sendLastMessageBeacon())})}vv(t){try{(!this.He.isEmpty()||this.Fo)&&this.Kt.save({requestParameters:t,events:this.He.getEvents()})}catch{}}pushSubmitCommandEvent(t,e){if(!jy(t)||!Ns(e))throw new Error(`Command misuse: ${Wc}`);let i={status:t,type:nt.SUBMIT_COMMAND,ts:0,tgt:this.Q.getElementPath(e)};i.tgt!==ns.INVALID_ELEMENT&&this.Ae(i)}pushCustomEvent(t,e,i){if(!(L(t)&&!Da(t))||i!==void 0&&!ft(i))throw new Error(`Command misuse: ${nc}`);let n=Hy(e)?e:Gi.WEB,o=this.wv(i),c={type:nt.CUSTOM_EVENT,ts:0,customEventName:ge.truncate(t,$y),sourceLibrary:n,...ka(o)?{}:{properties:o}};this.isStarted?this.Ae(c):csArray.prototype.push.call(this.ol,c)}wv(t){let e={};for(let i in t){if(i.length>zy)continue;let n=t[i];if(Lt(n)||Ur(n))e[i]=csString(n);else if(this.Sp(n))e[i]=ge.truncate(n,Ea);else if(this.Tv(n)){let o=this.bv(n);o!==""&&(e[i]=o)}}return e}bv(t){let e="";for(let i=0;i0}}return s})(),Fr=(()=>{class s{constructor(...t){this.vp=t}addProvider(t){csArray.prototype.push.call(this.vp,t)}getRequestParameters(){return csArray.prototype.reduce.call(this.vp,(t,e)=>({...e.getRequestParameters(),...t}),{})}}return s})(),qy=(()=>{class s{constructor(t,e){this.Kt=t,this.W=e,this._p=()=>{document.visibilityState==="visible"&&this.wp()}}start(){this.wp(),this.Zc()}stop(){this.tl()}getRecoveryStorage(){return this.Kt}wp(){let t=this.Kt.recover();if(t!==null){let{requestParameters:e,events:i}=t;this.W.send(i,e)}}Zc(){document.addEventListener("visibilitychange",this._p)}tl(){document.removeEventListener("visibilitychange",this._p)}}return s})(),$u=(()=>{class s{constructor(t){this.Tp=[],this.bp=[],this.Yt={},this.Xt=t}setQueryParams(t){csArray.prototype.forEach.call(Object.keys(t),e=>{this.Yt[e]=t[e]})}removeQueryParams(t){t?csArray.prototype.forEach.call(t,e=>{delete this.Yt[e]}):this.Yt={}}onBeaconSuccess(t){csArray.prototype.push.call(this.Tp,t)}onBeaconFailure(t){csArray.prototype.push.call(this.bp,t)}send(t){let e=Pc.toQuery({...this.Yt,ct:ro.UNCOMPRESSED}),i=this.Av(e,t);return i?csArray.prototype.forEach.call(this.Tp,n=>n()):csArray.prototype.forEach.call(this.bp,n=>n(this.Yt)),i}Av(t,e){try{if(typeof csNavigatorsendBeacon!="function")return!1;let i=csNavigatorsendBeacon(`${this.Xt}?${t}`,e||"");if(i)return i}catch{}return typeof navigator.sendBeacon!="function"?!1:navigator.sendBeacon(`${this.Xt}?${t}`,e||"")}}return s})(),Wy=(()=>{class s{constructor(t){this.ir=t}save(t){localStorage.setItem(this.ir,csJSON.stringify(t))}clear(){localStorage.removeItem(this.ir)}recover(){let t=localStorage.getItem(this.ir);if(t===null)return null;let e=null;try{e=csJSON.parse(t)}catch{W.error(`Invalid item in localStorage. (key:${this.ir}; value:${t})`)}finally{this.clear()}return e}}return s})(),Yy=(()=>{class s{constructor(t){this.tn=t,this.rn=e=>this.processMetric(e),this.V=!1}onEvent(t){this.L=t}start(){this.V||(this.V=!0,this.tn.onFCP(this.rn),this.tn.onCLS(this.rn),this.tn.onLCP(this.rn),this.tn.onTTFB(this.rn),this.tn.onINP(this.rn))}stop(){this.V=!1}processMetric(t){if(!this.V)return;let e={type:nt.PERFORMANCE,name:t.name,val:t.value,ts:0};this.L(e)}}return st([G("Performance metric handler")],s.prototype,"processMetric",null),s})(),zu=-1,cr=s=>{addEventListener("pageshow",r=>{r.persisted&&(zu=r.timeStamp,s(r))},!0)},cs=(s,r,t,e)=>{let i,n;return o=>{r.value>=0&&(o||e)&&(n=r.value-(i!=null?i:0),(n||i===void 0)&&(i=r.value,r.delta=n,r.rating=((c,u)=>c>u[1]?"poor":c>u[0]?"needs-improvement":"good")(r.value,t),s(r)))}},$c=s=>{requestAnimationFrame(()=>requestAnimationFrame(()=>s()))},zc=()=>{let s=performance.getEntriesByType("navigation")[0];if(s&&s.responseStart>0&&s.responseStart{var r;let s=zc();return(r=s==null?void 0:s.activationStart)!=null?r:0},ls=(s,r=-1)=>{let t=zc(),e="navigate";return zu>=0?e="back-forward-cache":t&&(document.prerendering||Yr()>0?e="prerender":document.wasDiscarded?e="restore":t.type&&(e=t.type.replace(/_/g,"-"))),{name:s,value:r,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:e}},va=new WeakMap;function Gc(s,r){return va.get(s)||va.set(s,new r),va.get(s)}var tc=class{constructor(){_s(this,"t");_s(this,"i",0);_s(this,"o",[])}h(r){var i;if(r.hadRecentInput)return;let t=this.o[0],e=this.o.at(-1);this.i&&t&&e&&r.startTime-e.startTime<1e3&&r.startTime-t.startTime<5e3?(this.i+=r.value,this.o.push(r)):(this.i=r.value,this.o=[r]),(i=this.t)==null||i.call(this,r)}},Xr=(s,r,t={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(s)){let e=new PerformanceObserver(i=>{Promise.resolve().then(()=>{r(i.getEntries())})});return e.observe({type:s,buffered:!0,...t}),e}}catch{}},qc=s=>{let r=!1;return()=>{r||(s(),r=!0)}},Wi=-1,Jl=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Kn=s=>{document.visibilityState==="hidden"&&Wi>-1&&(Wi=s.type==="visibilitychange"?s.timeStamp:0,Xy())},Ql=()=>{addEventListener("visibilitychange",Kn,!0),addEventListener("prerenderingchange",Kn,!0)},Xy=()=>{removeEventListener("visibilitychange",Kn,!0),removeEventListener("prerenderingchange",Kn,!0)},Gu=()=>{var s;if(Wi<0){let r=Yr(),t=document.prerendering||(s=globalThis.performance.getEntriesByType("visibility-state").filter(e=>e.name==="hidden"&&e.startTime>r)[0])==null?void 0:s.startTime;Wi=t!=null?t:Jl(),Ql(),cr(()=>{setTimeout(()=>{Wi=Jl(),Ql()})})}return{get firstHiddenTime(){return Wi}}},lo=s=>{document.prerendering?addEventListener("prerenderingchange",()=>s(),!0):s()},Zl=[1800,3e3],qu=(s,r={})=>{lo(()=>{let t=Gu(),e,i=ls("FCP"),n=Xr("paint",o=>{for(let c of o)c.name==="first-contentful-paint"&&(n.disconnect(),c.startTime{i=ls("FCP"),e=cs(s,i,Zl,r.reportAllChanges),$c(()=>{i.value=performance.now()-o.timeStamp,e(!0)})}))})},th=[.1,.25],Ky=(s,r={})=>{qu(qc(()=>{let t,e=ls("CLS",0),i=Gc(r,tc),n=c=>{for(let u of c)i.h(u);i.i>e.value&&(e.value=i.i,e.entries=i.o,t())},o=Xr("layout-shift",n);o&&(t=cs(s,e,th,r.reportAllChanges),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(n(o.takeRecords()),t(!0))}),cr(()=>{i.i=0,e=ls("CLS",0),t=cs(s,e,th,r.reportAllChanges),$c(()=>t())}),setTimeout(t))}))},Wu=0,_a=1/0,Pn=0,Jy=s=>{for(let r of s)r.interactionId&&(_a=Math.min(_a,r.interactionId),Pn=Math.max(Pn,r.interactionId),Wu=Pn?(Pn-_a)/7+1:0)},ec,eh=()=>{var s;return ec?Wu:(s=performance.interactionCount)!=null?s:0},Qy=()=>{"interactionCount"in performance||ec||(ec=Xr("event",Jy,{type:"event",buffered:!0,durationThreshold:0}))},sh=0,sc=class{constructor(){_s(this,"u",[]);_s(this,"l",new Map);_s(this,"m");_s(this,"p")}v(){sh=eh(),this.u.length=0,this.l.clear()}P(){let r=Math.min(this.u.length-1,Math.floor((eh()-sh)/50));return this.u[r]}h(r){var i,n;if((i=this.m)==null||i.call(this,r),!r.interactionId&&r.entryType!=="first-input")return;let t=this.u.at(-1),e=this.l.get(r.interactionId);if(e||this.u.length<10||r.duration>t.T){if(e?r.duration>e.T?(e.entries=[r],e.T=r.duration):r.duration===e.T&&r.startTime===e.entries[0].startTime&&e.entries.push(r):(e={id:r.interactionId,entries:[r],T:r.duration},this.l.set(e.id,e),this.u.push(e)),this.u.sort((o,c)=>c.T-o.T),this.u.length>10){let o=this.u.splice(10);for(let c of o)this.l.delete(c.id)}(n=this.p)==null||n.call(this,e)}}},Yu=s=>{let r=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?s():(r(s=qc(s)),document.addEventListener("visibilitychange",s,{once:!0}))},ih=[200,500],Zy=(s,r={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&lo(()=>{var c;Qy();let t,e=ls("INP"),i=Gc(r,sc),n=u=>{Yu(()=>{for(let E of u)i.h(E);let d=i.P();d&&d.T!==e.value&&(e.value=d.T,e.entries=d.entries,t())})},o=Xr("event",n,{durationThreshold:(c=r.durationThreshold)!=null?c:40});t=cs(s,e,ih,r.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(n(o.takeRecords()),t(!0))}),cr(()=>{i.v(),e=ls("INP"),t=cs(s,e,ih,r.reportAllChanges)}))})},ic=class{constructor(){_s(this,"m")}h(r){var t;(t=this.m)==null||t.call(this,r)}},rh=[2500,4e3],tE=(s,r={})=>{lo(()=>{let t=Gu(),e,i=ls("LCP"),n=Gc(r,ic),o=u=>{r.reportAllChanges||(u=u.slice(-1));for(let d of u)n.h(d),d.startTime{o(c.takeRecords()),c.disconnect(),e(!0)});for(let d of["keydown","click","visibilitychange"])addEventListener(d,()=>Yu(u),{capture:!0,once:!0});cr(d=>{i=ls("LCP"),e=cs(s,i,rh,r.reportAllChanges),$c(()=>{i.value=performance.now()-d.timeStamp,e(!0)})})}})},nh=[800,1800],rc=s=>{document.prerendering?lo(()=>rc(s)):document.readyState!=="complete"?addEventListener("load",()=>rc(s),!0):setTimeout(s)},eE=(s,r={})=>{let t=ls("TTFB"),e=cs(s,t,nh,r.reportAllChanges);rc(()=>{let i=zc();i&&(t.value=Math.max(i.responseStart-Yr(),0),t.entries=[i],e(!0),cr(()=>{t=ls("TTFB",0),e=cs(s,t,nh,r.reportAllChanges),e(!0)}))})},sE=(()=>{class s{onFCP(t){try{qu(t,{reportAllChanges:!0})}catch{at.counters.webVitalsErrors.count("FCP")}}onCLS(t){try{Ky(t,{reportAllChanges:!0})}catch{at.counters.webVitalsErrors.count("CLS")}}onLCP(t){try{tE(t,{reportAllChanges:!0})}catch{at.counters.webVitalsErrors.count("LCP")}}onTTFB(t){try{eE(t,{reportAllChanges:!0})}catch{at.counters.webVitalsErrors.count("TTFB")}}onINP(t){try{Zy(t,{reportAllChanges:!0})}catch{at.counters.webVitalsErrors.count("INP")}}}return s})(),Kr=(()=>{class s{isEventTypeSupported(t){return csArray.prototype.indexOf.call(this.supportedEventTypes,t)!==-1}enhanceAnalysisEvent(t,e){return this.isEventTypeSupported(e.type)?this.baseEnhanceAnalysisEvent(t,e):e}}return s})(),iE=(()=>{class s extends Kr{constructor(){super(...arguments),this.supportedEventTypes=[nt.CHANGE],this.Kv=["text","email","number","search","tel","url","password"]}baseEnhanceAnalysisEvent(t,e){let i=te(t);return eo(i)&&csArray.prototype.indexOf.call(this.Kv,i.type)>=0&&(e.isBlank=i.value===""),e}}return s})(),Xu=(()=>{class s extends Kr{constructor(t){super(),this.ft=t,this.supportedEventTypes=[nt.MOUSEDOWN,nt.MOUSEUP,nt.CLICK,nt.MOUSEOVER,nt.TAP,nt.DRAG,nt.FLICK,nt.SUBMIT,nt.CHANGE]}baseEnhanceAnalysisEvent(t,e){return e.tgt||(e.tgt=this.ft.getEventTargetPath(t)),e}}return s})(),oh=65535,rE=(()=>{let s;return function(r){function t(e){let i=te(e);if(!i||!Mt(i)||!we(i.getBoundingClientRect)||!Ot(e.pageX)||!Ot(e.pageY))return{xRel:-1,yRel:-1,valid:!1};let n=i.getBoundingClientRect(),o=e.pageX-n.left-Yt.windowOffsetX(),c=e.pageY-n.top-Yt.windowOffsetY();i!==document.documentElement&&(o+=i.scrollLeft,c+=i.scrollTop);let u=Math.max(i.scrollWidth,n.width),d=Math.max(i.scrollHeight,n.height),E=Math.round(o/u*oh),f=Math.round(c/d*oh);return{xRel:E,yRel:f,valid:!0}}r.getRelativePosition=t}(s||(s={})),s})(),nE=Math.pow(2,31);function oE(s,r=0){let u=r>>>0,d=s.length;for(let w=0;w>>0;A=Math.imul(A,3432918353),A=A<<15|A>>>17,A=Math.imul(A,461845907),u^=A,u=u<<13|u>>>19,u=Math.imul(u,5)+3864292196}let E=0,f=d&3,_=d-f;switch(f){case 3:E^=(csString.prototype.charCodeAt.call(s,_+2)&255)<<16;case 2:E^=(csString.prototype.charCodeAt.call(s,_+1)&255)<<8;case 1:E^=csString.prototype.charCodeAt.call(s,_)&255,E=Math.imul(E,3432918353),E=E<<15|E>>>17,E=Math.imul(E,461845907),u^=E}return u^=d,u^=u>>>16,u=Math.imul(u,2246822507),u^=u>>>13,u=Math.imul(u,3266489909),u^=u>>>16,u>>>0}function Ku(s){return oE(s)+nE>>>0}var aE=(()=>{class s extends Kr{constructor(t,e){super(),this.ls=t,this.ft=e,this.supportedEventTypes=[nt.MOUSEMOVE,nt.CLICK],this.vl=""}baseEnhanceAnalysisEvent(t,e){let{valid:i,xRel:n,yRel:o}=rE.getRelativePosition(t);if(i){let c=this.ft.getEventTargetPath(t);c!==ns.INVALID_ELEMENT&&(e.xRel=n,e.yRel=o,e.type===nt.MOUSEMOVE&&(c!==this.vl||this.ls.iframesTracking?(this.vl=c,e.tgtHM=c,this.ls.isChild||(e.tgtHMH=Ku(e.tgtHM))):e.tgtHM=""))}else e.type===nt.MOUSEMOVE&&(this.vl="");return e}}return s})(),fe=(()=>{let s;return function(r){r[r.ANONYMIZED=0]="ANONYMIZED",r[r.CAPTURED=1]="CAPTURED",r[r.MASKED=2]="MASKED",r[r.ENCRYPTED=3]="ENCRYPTED"}(s||(s={})),s})(),ah=100,Ju=(()=>{class s extends Kr{constructor(t,e,i){super(),this.f=t,this.ae=e,this.M=i,this.supportedEventTypes=[nt.TAP,nt.CLICK,nt.SUBMIT]}Jv(t){let e="",i=document.createTreeWalker(t,NodeFilter.SHOW_TEXT),n=i.nextNode();for(;n;){if(e+=n.textContent,Ac(n.parentElement)||bc(n.parentElement)||this.ae.getElementSensitiveStatus(n.parentElement)!==fe.CAPTURED)return!0;if(csString.prototype.trim.call(e).length>=ah)break;n=i.nextNode()}return!1}Qv(t){let e=tr(t,"button,a");return e||(this.f.collectTargetText===Ba.ButtonAndLinkOnly?null:t)}baseEnhanceAnalysisEvent(t,e){if(Ns(csEventtarget.apply(t))){let i=this.Qv(csEventtarget.apply(t));if(i&&L(i.textContent)&&!this.Jv(i)&&!this.M.hasPII(i.textContent,this.f.anonymizeDigits)){let n=ge.truncate(csString.prototype.trim.call(i.textContent),ah);n.length>0&&(e.text=n)}}return e}}return s})(),Qu=(()=>{class s extends Kr{constructor(t,e){super(),this.ft=t,this.ae=e,this.supportedEventTypes=[nt.CLICK,nt.SUBMIT,nt.CHANGE,nt.TAP]}baseEnhanceAnalysisEvent(t,e){let i=this.ae.getSensitiveStatus().useAnonymization,{path:n,hierarchy:o}=this.ft.getEventTargetPathAndHierarchy(t,i);return e.tgt=n,e.hrchy=o,e}}return s})();function Zu(s,r,t){let e=[];return s.mouseMoveHeatmapEnabled&&csArray.prototype.push.call(e,new aE(s,r)),s.isCollectTargetTextEnabled()&&csArray.prototype.push.call(e,new Ju(s,t,new Ci)),s.collectHierarchy&&csArray.prototype.push.call(e,new Qu(r,t)),csArray.prototype.push.call(e,new iE,new Xu(r)),e}function td(s,r,t){let e=[];return s.isCollectTargetTextEnabled()&&csArray.prototype.push.call(e,new Ju(s,t,new Ci)),s.collectHierarchy&&csArray.prototype.push.call(e,new Qu(r,t)),csArray.prototype.push.call(e,new Xu(r)),e}var cE=50,lE=(()=>{class s{constructor(t=[]){this.Vt=t}stringifyEvents(){return csJSON.stringify(this.Vt)}addEvent(t){csArray.prototype.push.call(this.Vt,t)}eventsCount(){return this.Vt.length}clearEvents(){this.Vt=[]}empty(){this.clearEvents()}isFull(){return this.eventsCount()>=cE}isEmpty(){return this.Vt.length===0}getEvents(){return this.Vt}}return s})(),hE="csAnalysisEventsPersisted",ch="v2/events",Wc=["submit"],nc=["trackEvent"],uE=(()=>{class s{constructor(t,e,i,n,o,c,u,d,E,f,_,w,A){this.f=t,this.yt=e,this.I=i,this.Q=n,this.Lt=o,this.E=c,this.G=u,this.xt=d,this.pt=E,this.ue=f,this.X=_,this.ae=w,this._l=A}init(){let t=new lE,e=this.ue.create(`${this.f.getTrackerUri()}/${ch}`,!0,"base64");this.qo=this.Zv(e),this.Re=this.t_(t,this.qo.getRecoveryStorage(),e),this.Re.init(),this.X.addListener(this.Re),this.pt.addListener(this.Re),this.E.register(Wc,(i,n)=>{this.Re.pushSubmitCommandEvent(i,n)}),this.E.register(nc,i=>{if(!ft(i))throw new Error(`Command misuse: ${nc}`);this.Re.pushCustomEvent(i.name,i.source,i.properties)})}onStartTracking(t){this.qo.start(),this.Re.start(t)}onAfterNaturalPageView(){this.Re.initStates()}onAfterArtificialPageView(){this.Re.initStates(),this.Re.collectInitialEvents()}onArtificialPageViewEnd(){this.Re.clearStates(!0)}onBeforeSessionRenewal(){this.Re.clearStates(),this.Re.stop(),this.qo.stop()}onOptout(){this.Re.stop(),this.qo.stop()}t_(t,e,i){var n;let o=new xy(window),c=new Fy,u=Zu(this.f,this.Q,this.ae),d=[];this.f.collectSubmit||csArray.prototype.push.call(d,"submit");let E=new Bu(u,this.Q,this.Lt,d),f=td(this.f,this.Q,this.ae),_=new Hu(f,this.xt),w=new Yy(new sE),A=new Fu,V,U,P,C=new $u(`${this.f.getTrackerUri()}/${ch}`),F=new Fr(this.yt,this.I),j,M,J,ct;return new Gy(this.f,E,_,c,o,t,C,F,this.G,e,this.Q,w,A,i,V,U,P,j,M,J,ct)}Zv(t){return new qy(new Wy(hE),t)}}return s})(),ed=["api-errors:maskUrl"],dE=(()=>{class s{constructor(t,e,i=!1){this.Tt=t,this.tt=e,this.hn=i}addUrlMaskingPattern(t){this.Tt.addUrlMaskingPattern(t)}anonymize(t){let e=this.tt.removeQueryString(t.url),i={maskingPatterns:this.Tt.getUrlMaskingPatterns(),partialMaskingPatterns:this.Tt.getPartialUrlMaskingPatterns(),maskNames:this.hn};return{...t,url:this.tt.anonymizeUrl(e,i),library:t.library?this.tt.anonymizeUrl(t.library,i):void 0}}}return s})(),pE=(()=>{let s;return function(r){function o(d,E,f=!1){let w={message:ge.truncate(d,300,ge.ELLIPSIS),errorType:"customError"};return(f||u(E))&&(c(E),w.attributes=E),w}r.buildCustomErrorEvent=o;function c(d){for(let E in d){let f=d[E];if(typeof f=="string"&&f.length>30&&(f=ge.truncate(f,30,ge.ELLIPSIS),d[E]=f),E.length>30){let _=ge.truncate(E,30,ge.ELLIPSIS);delete d[E],d[_]=f}}}function u(d){let E=Object.keys(d).length;return E>0&&E<=5}}(s||(s={})),s})(),sd=["trackError"],fE=/(\b["']?key["']?\s*[=:]\s*["'](?:first|last|user|profile|primary|primary[ _-]?last)[ _-]?name["']\s*,?\s*["']?value["']?\s*[=:]\s*["'])(.+?)(["']|…$)|(\b["']?(?:first|last|user|profile|primary|primary[ _-]?last)[\s_-]?name["']?\s*[=:]\s*["'])(.+?)(["']|…$)/gi,gE="$1$4CS_ANONYMIZED_NAME$3$6",mE=/(?:\(\d{3}\) \d{3}[- ]\d{4}\b)|(?:\b\d{3}([-\. ])\d{3}\1\d{4}\b)|(?:\b\d{2} \d{2} \d{2} \d{2} \d{2}\b)|(?:\b\d{4} \d{3} \d{3}\b)|(?:\b\d{2}([-\. ])\d{4}\2\d{4}\b)|(?:\b\d{3}([- ])\d{4}\3\d{4}\b)|(?:\+\d{1,3} \d{3} \d{3} \d{4}\b)|(?:\+\d{1,3} \(\d{3}\) \d{3}-\d{4}\b)|(?:\+\d{1,3}([- ])\d{4}\4\d{3}\4\d{3}\b)|(?:\+\d{1,3} \d \d{4} \d{4}\b)|(?:\+\d{1,3} \d \d{3} \d{3} \d{4}\b)|(?:\+\d{1,3} \d \d{2} \d{2} \d{2} \d{2}\b)|(?:\+\d{7,15}\b)|(?:\+\d{1,3} \d{6,12}\b)|(?:\+\d{1,3}([- ])\d{4}\5\d{3}\5\d{3}\b)/g,yE="CS_ANONYMIZED_PHONE",EE=(()=>{class s{constructor(t,e){this.M=t,this.tt=e}anonymize(t){return this.tt?csArray.prototype.join.call(csArray.prototype.map.call(cg(t),({content:e,isUrl:i})=>{var n;return i?(n=this.tt)===null||n===void 0?void 0:n.anonymizeUrl(e,{maskNames:!0}):this.Jp(e)}),""):this.Jp(t)}Jp(t){t=this.M.anonymizePII(t);let e=t;t=this.hn(t),t!==e&&(at.counters.redactedPII.count("name"),at.counters.redactedPII.count("name-in-custom-error"));let i=t;return t=this.A_(t),t!==i&&(at.counters.redactedPII.count("phone"),at.counters.redactedPII.count("phone-in-custom-error")),t}hn(t){return csString.prototype.replace.call(t,fE,gE)}A_(t){return csString.prototype.replace.call(t,mE,yE)}}return s})(),SE="CS_ANONYMIZED_VALUE",vE=(()=>{class s{constructor(t,e){this.M=t,this.w=e}anonymize(t){return L(t.message)&&(t.message=this.O_(t.message),t.message=this.M.anonymizePII(t.message)),L(t.filename)&&(t.filename=this.w.computeOverriddenUrl(t.filename)),t}O_(t){return csString.prototype.replace.call(t,/(value\s*=\s*".*"|value\s*=\s*'.*')/,`value='${SE}'`)}}return s})(),_E=512,wE=255,Dr=(()=>{class s{constructor(t,e){this.key=csString.prototype.slice.call(t,0,_E),this.value=L(e)?csString.prototype.slice.call(e,0,wE):e}static isKeyValid(t){return L(t)}static isValueValid(t){return L(t)||Os(t)}}return s})(),TE=(()=>{class s extends re{constructor(t,e){super(),this.zt=t,this.M=e,this.Dl=[]}onStart(){csArray.prototype.forEach.call(this.Dl,t=>this.Qp(t.key,t.value)),this.Dl=[]}onStop(){}Qp(t,e){let i=this.M.anonymizePII(t),n=Os(e)?e:this.M.anonymizePII(e);this.zt.add(new Dr(i,n))}trackDynamicVariable(t,e){if(Dr.isKeyValid(t)&&Dr.isValueValid(e)){if(!this.isStarted){csArray.prototype.push.call(this.Dl,{key:t,value:e});return}this.Qp(t,e)}else throw new Error(`Command misuse: ${Jr[0]}`)}}return s})(),bE=(()=>{class s{constructor(t){this.de=t,this.zt=[]}add(t){csArray.prototype.push.call(this.zt,t),this.setBatchReadyCall()}clear(){this.zt=[]}onBatchReady(t){this.N_=t}getRequestParameters(){let t={};for(let e of this.zt)t[e.key]=e.value;return{dv:this.de.compressSync(csJSON.stringify(t),"base64"),ct:this.de.algorithm}}setBatchReadyCall(){this.N_()}}return st([ar({wait:0,mode:"trailing"}),G("dynamicVariablesBatchReady")],s.prototype,"setBatchReadyCall",null),s})(),AE="dvar",Jr=["trackDynamicVariable"],RE=(()=>{class s{constructor(t,e,i,n,o,c){this.E=t,this.R=e,this.f=i,this.ze=n,this.de=o,this.M=c,this.hs=new Qi(this.f.getTrackerUri(),AE),this.zt=new bE(this.de),this.ki=new TE(this.zt,this.M)}init(){this.hs.setRequestParametersProviders(this.ze,this.zt),this.R.setDynamicVariablesService(this.ki),this.zt.onBatchReady(()=>this.hs.send()),this.hs.after(()=>this.zt.clear()),this.E.register(Jr,({key:t,value:e}={})=>{this.ki.trackDynamicVariable(t,e)})}onStartTracking(){this.ki.start()}}return s})(),oc=(()=>{class s{constructor(t,e){this.id=t,this.revenue=e}static from(t){let e=new s(t.id,parseFloat(t.revenue));return isNaN(parseFloat(t.tax))||(e.tax=parseFloat(t.tax)),isNaN(parseFloat(t.shipping))||(e.shipping=parseFloat(t.shipping)),L(t.currency)&&t.currency.length<=10&&(e.currency=t.currency),e}hasValidRevenue(){return!isNaN(this.revenue)&&this.revenue>=0}static isValid(t){return Ot(t)&&Lt(t.revenue)&&L(t.currency)&&t.currency.length<=10&&(!Ot(t.id)||L(t.id))}}return s})(),id=100,CE=100,IE=(()=>{class s{constructor(t,e,i,n){this.id=t,this.name=e,this.price=i,this.quantity=n}static from(t){if(!s.Fc(t))return null;let e=new s(t.id,t.name,parseFloat(t.price),parseInt(t.quantity,10));return mt(t.sku)&&(e.sku=t.sku),mt(t.category)&&(e.category=t.category),mt(t.merchant)&&t.merchant.length>0&&(e.merchant=t.merchant.slice(0,id)),e}static Fc(t){return Ot(t)&&L(t.id)&&L(t.name)&&Lt(parseFloat(t.price))&&Os(parseInt(t.quantity,10))&&(!mt(t.sku)||L(t.sku))&&(!mt(t.category)||L(t.category))&&(!mt(t.merchant)||L(t.merchant))}}return s})(),rd=(()=>{class s extends re{constructor(t,e,i){super(),this.M=t,this.Zp=e,this.G=i,this.xl=[],this.clear()}onStart(){csArray.prototype.forEach.call(this.xl,t=>{this.pe=t.transaction,this.En=t.transactionItems,this.sendTransaction()}),this.xl=[]}onStop(){}addTransaction(t){let e=this.M.anonymizeFields(t,["id"]);this.pe=oc.from(e)}getTransaction(){return this.pe}sendTransaction(){if(!this.isStarted){csArray.prototype.push.call(this.xl,{transaction:this.pe,transactionItems:[...this.En]}),this.clear();return}if(!(this.Zp===null||this.G===null)&&(this.G.refreshSession(),!!this.G.isSessionValid())){if(!this.pe.hasValidRevenue()){W.warn("Transaction Service: unable to send transaction with invalid parameters");return}this.Zp.send()}}addItem(t){if(we(t))throw new Error(`Command misuse: ${lr[1]}`);let e=this.M.anonymizeFields(t,["id","name","sku","category"]),i=IE.from(e);i!==null&&csArray.prototype.push.call(this.En,i)}getItems(){return this.En}clear(){this.pe=oc.from({revenue:NaN}),this.En=[]}getRequestParameters(){let t={id:this.pe.id?`${this.pe.id}`:"",revenue:`${this.pe.revenue}`};return mt(this.pe.tax)&&(t.tax=`${this.pe.tax}`),mt(this.pe.shipping)&&(t.shipping=`${this.pe.shipping}`),mt(this.pe.currency)&&(t.cu=`${this.pe.currency}`),t.items=window.csJSON.stringify(this.En),t}}return s})(),PE=(()=>{class s extends re{constructor(t,e){super(),this.M_=t,this.G=e,this.Ce=null,this.Ll=[]}onStart(){csArray.prototype.forEach.call(this.Ll,t=>{this.Ce=t,this.tf()}),this.Ll=[]}onStop(){}addToCart(t){let e={};L(t.sku)&&(e.sku=csString.prototype.slice.call(t.sku,0,CE)),L(t.merchant)&&(e.merchant=csString.prototype.slice.call(t.merchant,0,id)),(e.sku||e.merchant)&&(this.Ce=e,this.tf())}getCartItem(){return this.Ce}tf(){if(!this.isStarted&&this.Ce!==null){csArray.prototype.push.call(this.Ll,this.Ce),this.clear();return}this.G.refreshSession(),this.G.isSessionValid()&&this.M_.send()}clear(){this.Ce=null}getRequestParameters(){if(!this.Ce)return{};let t={};return L(this.Ce.sku)&&this.Ce.sku.length>0&&(t.sku=this.Ce.sku),L(this.Ce.merchant)&&this.Ce.merchant.length>0&&(t.me=this.Ce.merchant),t}}return s})(),nd=["ecommerce:addToCart","ec:cart:add"],Qr=["ecommerce:addTransaction","ec:transaction:create"],lr=["ecommerce:addItem","ec:transaction:items:add"],Zr=["ecommerce:send","ec:transaction:send"],OE=(()=>{class s{constructor(t,e,i,n,o,c,u){this.f=t,this.yt=e,this.I=i,this.E=n,this.M=o,this.G=c,this.w=u}init(){let t=new Qi(this.f.getTrackerUri(),"transaction"),e=new Qi(this.f.getTrackerUri(),"addtocart");this.es=new rd(this.M,t,this.G),this.ta=new PE(e,this.G);let i=new Fr(this.yt,this.I,this.w,this.es);t.setRequestParametersProviders(i),t.after(()=>{this.es.clear()});let n=new Fr(this.yt,this.I,this.w,this.ta);e.setRequestParametersProviders(n),e.after(()=>{this.ta.clear()}),this.E.register(Qr,o=>{this.es.addTransaction(o)}),this.E.register(lr,o=>this.es.addItem(o)),this.E.register(Zr,()=>this.es.sendTransaction()),this.E.register(nd,o=>{this.ta.addToCart(o)})}onStartTracking(){this.es.start(),this.ta.start()}}return s})(),NE=2,Yc=(()=>{class s{constructor(t){this.H_=t,this.sa=0}addString(t){this.sa+=t.length*NE}addArrayBuffer(t){this.sa+=t.byteLength}isThresholdReached(){return this.sa>this.H_}reset(){this.sa=0}}return s})(),lh=(()=>{class s{static create(t,e){if(!s.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=s.F_(t)),new csIntersectionObserver(t,e)}static isSupported(){return!!window.csIntersectionObserver&&!!window.IntersectionObserverEntry}static F_(t){return(e,i)=>t(Xe(e,ME),i)}}return s})();function ME(s){return s.isVisible||!Ct.isVisibleInViewportInForeground(s.target)?s:{boundingClientRect:s.boundingClientRect,intersectionRatio:s.intersectionRatio,intersectionRect:s.intersectionRect,isIntersecting:s.isIntersecting,rootBounds:s.rootBounds,target:s.target,time:s.time,isVisible:!0}}var ac=()=>(s,r,t)=>{t.value=kE(t.value)};function kE(s){let r=csSymbol("oncePerTickSymbol"),t=null,e={},i=function(){var n;let o=(n=this)!==null&&n!==void 0?n:e;if(t=arguments,o[r])return;o[r]=!0,vc(()=>{o[r]=!1,s.apply(o,t)})};return i.oncePerTickSymbol=r,i}ac.isScheduled=(s,r)=>{let t=r.oncePerTickSymbol;return s[t]};var DE=(()=>{class s{constructor(t){this.A=t,this.Js=new Map,this.nf=e=>{let i=e.target;if(this.Js.has(i))return!0;let n=!1;return this.Js.forEach((o,c)=>{n||!this.Js.get(c).subtree||(n=c.contains(i))}),n},Ht.general.nbOfMutationObservers.increase(),this.D=new csMutationObserver(e=>{ac.isScheduled(this,this.garbageCollect)&&(e=Fn(e,this.nf)),e.length&&ve(()=>t(e,this))})}disconnect(){Ht.general.nbOfMutationObservers.decrease(),this.D.disconnect(),this.Js=new Map}takeRecords(){return this.D.takeRecords()}observe(t,e){return Ht.mutations.elementMutationObserved.increase(),this.Js.set(t,e),this.D.observe(t,e)}unobserve(t){this.Js.has(t)&&(Ht.mutations.elementMutationObserved.decrease(),this.Js.delete(t),this.garbageCollect())}garbageCollect(){Ht.mutations.unobserveGarbageCollection.measure(()=>{let t=Fn(this.takeRecords(),this.nf);t.length&&this.A(t,this),this.D.disconnect(),this.Js.forEach((e,i)=>this.D.observe(i,e))})}}return St([ac()],s.prototype,"garbageCollect",null),s})(),xE=(()=>{class s{constructor(t){this.A=t,this.na=new Set}onMutations(t){if($h(t,e=>{var i;return!!(!((i=e.removedNodes)===null||i===void 0)&&i.length)}))for(let e of this.na.values())Ct.isConnected(e)||(this.na.delete(e),this.A(e))}observe(t){this.z||(this.z=new Je(e=>csSetTimeout(()=>this.onMutations(e))),this.z.observe()),this.na.add(t)}disconnect(){var t;(t=this.z)===null||t===void 0||t.disconnect(),this.na.clear(),this.z=void 0}}return St([G("NodeDisconnectedObserver.onMutations")],s.prototype,"onMutations",null),s})(),LE=300,Jn=(()=>{class s{constructor(t){this.oa=new Set,this.$_=new xE(e=>this.of(e)),this.F=!1,this.At=t?{...hh,...t}:hh}stop(){var t,e;this.F=!1,(t=this.Tn)===null||t===void 0||t.disconnect(),(e=this.D)===null||e===void 0||e.disconnect()}start(t){if(this.F)throw new Error("VisibilityObserver is already started");this.A=si("VisibilityObserver:callback",(i,n)=>t(i,n));let e={root:null,rootMargin:"0px",threshold:.5,trackVisibility:!0,delay:LE};this.Tn=lh.create(i=>this.handleIntersection(i),e),this.D=new DE(i=>csSetTimeout(()=>{ht(i,n=>this.of(n.target))})),this.Vl(),this.F=!0}observe(t){if(!this.F)throw new Error("Observer is stopped.");this.At.reobserve===!1&&t[this.Ul]||(Ht.visibilityObserver.nbElements.increase(),t[this.Ul]=!0,this.watchIntersection(t))}Vl(){this.aa=csSymbol("isVisible"),this.Ul=csSymbol("ObservedElement"),this.jl=csSymbol("LinkedElement"),this.af=csSymbol("Tracked")}of(t){this.oa.add(t);for(let e of this.z_(t))this.oa.add(e);this.recheckCssVisibilityAll()}recheckCssVisibilityAll(){ht(this.oa.keys(),t=>{!t.isConnected||Ct.areAncestorsHiddenByCSS(t)||t[this.Ul]&&this.watchIntersection(t)}),this.oa.clear()}watchIntersection(t){this.D.unobserve(t),this.Tn.unobserve(t);let e=Ct.getTopAncestorHiddenByCSS(t);e?(e!==t&&(this.cf(e,t),this.watchMutation(e)),this.watchMutation(t)):this.Tn.observe(t)}watchMutation(t,e=!0){e&&delete t[this.aa],this.Tn.unobserve(t);let i={attributeFilter:["style","class","hidden"]};this.D.observe(t,i)}handleIntersection(t){for(let e of t){let i=e.target;if(!e.isVisible){Ct.isVisibleInDocument(i)||this.G_(i);continue}let n=this.At.allowSameMatch||!e.target[this.aa];e.target[this.aa]=!0,n&&!this.At.delay&&this.onVisibilityChanged(e.target,xr.VisibleInViewPort)}this.At.delay&&csSetTimeout(()=>{for(let e of t){let i=e.isIntersecting&&e.isVisible;e.target[this.aa]&&i&&this.onVisibilityChanged(e.target,xr.VisibleInViewPort)}},this.At.delay)}G_(t){Ht.visibilityObserver.hiddenElements.increase();let e=Ct.getTopElement(t);this.watchMutation(t),e&&(this.$_.observe(e),this.cf(e,t),this.watchMutation(e,!1))}cf(t,e){var i;(t[this.jl]=(i=t[this.jl])!==null&&i!==void 0?i:new Set).add(e)}z_(t){var e,i;let n=[],o=(i=(e=t[this.jl])===null||e===void 0?void 0:e.values())!==null&&i!==void 0?i:[];return ht(o,c=>csArray.prototype.push.call(n,c)),n}onVisibilityChanged(t,e){if(e===xr.VisibleInViewPort&&this.At.trackOnce){if(this.Tn.unobserve(t),this.D.unobserve(t),t[this.af])return;t[this.af]=!0}this.A(t,e)}static isSupported(){return lh.isSupported()}}return St([G()],s.prototype,"observe",null),St([ar({wait:50}),G(),ie("recheckCssVisibilityAll")],s.prototype,"recheckCssVisibilityAll",null),St([G()],s.prototype,"watchIntersection",null),St([G()],s.prototype,"watchMutation",null),St([G(),ie("VisibilityObserver.handleIntersection")],s.prototype,"handleIntersection",null),St([G()],s.prototype,"onVisibilityChanged",null),s})(),xr=(()=>{let s;return function(r){r.VisibleInViewPort="VisibleInViewPort",r.HiddenByAnother="HiddenByAnother",r.Hidden="Hidden"}(s||(s={})),s})(),hh={delay:1e3,trackOnce:!0,reobserve:!1},Pr=(()=>{let s;return function(r){r[r.NOT_NEEDED=1]="NOT_NEEDED",r[r.NOT_EXPRESSED=2]="NOT_EXPRESSED",r[r.WITHDRAWN=3]="WITHDRAWN",r[r.GRANTED=4]="GRANTED"}(s||(s={})),s})(),Js=(()=>{let s;return function(r){function t(n){return n.replayConsentRequiredForSession}r.isReplayConsentNeeded=t;function e(n){return n.collectState===tt.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED||n.collectState===tt.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN}r.isRecordingBlockedByConsent=e;function i(n){return n.collectState===tt.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN}r.isRecordingWithDrawn=i}(s||(s={})),s})(),VE=(()=>{class s{constructor(t,e,i,n){this.I=t,this.R=e,this.f=i,this.ns=n,this.yf=!1}isNaturalPageViewSent(){return this.yf}setNaturalPageViewSent(t){this.yf=t}getTrackingContext(){let t=this.R.getSession();if(!t)return null;let e=this.getSessionKey();if(!e)return null;let i=this.f.projectId,n=this.f.uxaDomain,o=t.pageNumber,c=this.ns.getPageViewType(),u=this.R.isReplayRecorded(),d=this.Sw(t);return{projectId:i,sessionKey:e,pageNumber:o,pageViewType:c,isRecording:u,uxaDomain:n,recordingConsentState:d,...this.f.smbConfig}}getSessionKey(){let t=this.I.getVisitor();return t?`${t.id}.${t.visitsCount}`:null}Sw(t){return Js.isReplayConsentNeeded(this.f)?t.collectState===tt.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED?Pr.NOT_EXPRESSED:t.collectState===tt.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN?Pr.WITHDRAWN:Pr.GRANTED:Pr.NOT_NEEDED}}return s})(),UE=(()=>{class s{constructor(t){this.Rt=t,this.te=[]}handleCommand(t){if(we(t)&&(this.Rn(t),this.Rt.isNaturalPageViewSent())){let e=this.Rt.getTrackingContext();e!==null&&this.jt(t,e)}}Rn(t){csArray.prototype.push.call(this.te,t)}executeRegisteredCallbacks(){let t=this.Rt.getTrackingContext();t!==null&&csArray.prototype.map.call(this.te,e=>this.jt(e,t))}jt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),jE=(()=>{class s{constructor(t){this.Rt=t,this.Di=[]}handleCommand(t){if(this.Rt.isNaturalPageViewSent())return this.vw(t);this.Cn(t)}vw(t){let e=this.Rt.getSessionKey();return this.Ef(t)&&e!==null&&this.jt(t.callback,e),e}Cn(t){this.Ef(t)&&csArray.prototype.push.call(this.Di,t.callback)}flushPendingCallbacks(){let t=this.Rt.getSessionKey();t!==null&&csArray.prototype.forEach.call(this.Di,e=>{this.jt(e,t)}),this.Di=[]}Ef(t){return t&&typeof t.callback=="function"}jt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),HE=(()=>{class s{constructor(t,e){this.Z=t,this.Rt=e}onTrackingContextRequestCallback(t){let e=this.Rt.getTrackingContext();e!==null&&this.Z.sendToChildren($.TrackingContextResultMessage,{...t,trackingContext:e})}onIframeIntegrationCallback(t){if(!this.Rt.isNaturalPageViewSent())return;let e=this.Rt.getTrackingContext();e!==null&&(t.trackingContext=e,this.Z.sendToChildren($.IntegrationCallback,t))}sendAfterPageViewCallbackToChildren(){let t=this.Rt.getTrackingContext();if(t===null)return;let e={trackingContext:t,initiator:Zi.AfterPageView};this.Z.sendToChildren($.IntegrationCallback,e)}}return s})();function od(s,r){let{isRecording:t,pageNumber:e,projectId:i,siteId:n,uxaDomain:o,csLiteDomain:c}=s,u=/^(.+)\.(\d+)$/.exec(s.sessionKey),d;if(t&&u){let[,E,f]=u;n?d=`${c}/sites/${n}/player?uu=${E}&sn=${f}&pn=${e}`:d=`${o}/quick-playback/index.html?pid=${i}&uu=${E}&sn=${f}&pvid=${e}&recordingType=cs`,r.withTimestamp&&(d+=`&t=${K.now()-r.recordingStartTimestamp}`)}return{replayLink:d,isRecording:t}}var BE=(()=>{class s{constructor(t){this.Rt=t}handleCommand(t,e){He(t)&&we(e)&&this.jt(t,e)}jt(t,e){csSetTimeout(()=>{let i=this.Rt.getTrackingContext();if(i){let n=od(i,t);e(n)}})}}return s})(),ad=(()=>{class s{constructor(){this.te=new Set}handleCommand(t,e){return!we(t)||this.te.has(t)?null:(this.te.add(t),e&&(this.Pe=e,this.Sf(t,e)),()=>this.te.delete(t))}executeCallbacks(t){this._w(t)&&(this.Pe=t,this.te.forEach(e=>this.Sf(e,t)))}Sf(t,e){csSetTimeout(()=>{try{t(e)}catch{}})}_w(t){let{isRecording:e,recordingStartTimestamp:i,etrState:n,etrStatus:o,collectState:c}=t;return this.Pe&&(this.Pe.isRecording!==e||this.Pe.recordingStartTimestamp!==i||this.Pe.etrState!==n||this.Pe.etrStatus!==o||this.Pe.collectState!==c)}}return s})(),ho=["afterPageView"],cd=["getSessionKey"],ld=["onRecordingContextChange","onRecordingStateChange"],hd=["replay:link:generate"],FE=(()=>{class s{constructor(t,e,i,n,o,c,u,d){this.I=t,this.R=e,this.E=i,this.pt=n,this.Z=o,this.f=c,this.ns=u,this.js=d,this.ua=null}init(){this.Rt=new VE(this.I,this.R,this.f,this.ns),this.Bl=new UE(this.Rt),this.vf=new jE(this.Rt),this.In=new ad,this.Tw=new BE(this.Rt),this.ua=new HE(this.Z,this.Rt),this.pt.addListener(this.ua),this.E.register(cd,t=>this.vf.handleCommand(t)),this.E.register(ho,t=>this.Bl.handleCommand(t)),this.E.register(ld,t=>this.In.handleCommand(t,this.js.getRecordingContext())),this.E.register(hd,(t,e)=>{this.fr&&this.Tw.handleCommand({...t,recordingStartTimestamp:this.js.getRecordingContext().recordingStartTimestamp},e)})}onAfterNaturalPageView(){var t;this.Rt.setNaturalPageViewSent(!0),this.vf.flushPendingCallbacks(),this.Bl.executeRegisteredCallbacks(),(t=this.ua)===null||t===void 0||t.sendAfterPageViewCallbackToChildren()}onAfterArtificialPageView(){var t;this.Bl.executeRegisteredCallbacks(),(t=this.ua)===null||t===void 0||t.sendAfterPageViewCallbackToChildren()}onCollectStateChange(){this.executeRecordingContextChangeCallbacks()}onRecordingContextChange(){this.executeRecordingContextChangeCallbacks()}executeRecordingContextChangeCallbacks(){this.In.executeCallbacks(this.js.getRecordingContext())}setRecordingService(t){this.fr=t}}return st([ar({wait:0,mode:"trailing"})],s.prototype,"executeRecordingContextChangeCallbacks",null),s})(),$E=(()=>{class s{constructor(t){this.E=t}init(){this._f(s.bw,au),this._f(s.Aw,ou)}_f(t,e){this.E.register([t],(i,n)=>{!L(i)||!(L(n)||ei(n))||W.error(n,`${e}${i}`)})}}return s.Aw="logSnippetError",s.bw="logImplementationSnippetError",s})(),zE="@ETP@",uh="@user-identifier@",GE=(()=>{class s extends re{constructor(t,e,i,n){super(),this.f=t,this.Rw=e,this.de=i,this.X=n,this.Fl=[],this.xi=[]}onStart(){csArray.prototype.forEach.call(this.Fl,t=>this.wf(t)),this.Fl=[],csArray.prototype.forEach.call(this.xi,t=>this.Tf(t)),this.xi=[]}onStop(){}wf(t){this.Cw(t)?wi.isSupported()&&this.Iw(t):this.Pw(t)}trackPageEvent(t){if(!s.bf(t))throw new Error(`Command misuse: ${uo[0]}`);this.isStarted?this.wf(t):csArray.prototype.push.call(this.Fl,t)}Cw(t){return Fa(t,uh)}async Iw(t){if(!this.f.customHashIdEnabled)return;let e=csString.prototype.slice.call(t,uh.length);if(e.length>wi.MAX_DIGEST_INPUT_SIZE){W.warn("UserIdentifier event: invalid user identifier");return}let i=await wi.digest(e);i?(this.gr={eventName:i,isETR:!1,isCustomHashId:!0},this.da()):W.warn("Page event: unable to compute customHashId"),this.f.encryptionEnabled&&this.X.emitUserIdentifierEvent(e)}Pw(t){this.X.emitPageEvent(t),this.gr={eventName:t,isETR:!1,isCustomHashId:!1},this.da(),this.f.tagDeploymentMode===Ti.LoadClicktalePtc&&Bl.sendPageEvent(t)}Tf(t){this.f.malkaEtrEnabled?this.Ow(t):this.Nw(t)}trackEventTriggerRecording(t){if(!s.bf(t))throw new Error(`Command misuse: ${hr[0]}`);this.isStarted?this.Tf(t):csArray.prototype.push.call(this.xi,t)}Ow(t){Fa(t,zE)?this.X.emitEventTriggerRecording(t,Zs.ETR_PAGE):this.X.emitEventTriggerRecording(t,Zs.ETR_SESSION),this.gr={eventName:t,isETR:!0,isCustomHashId:!1},this.da()}Nw(t){Qm(this.f)&&(this.X.emitEventTriggerRecording(t,Zs.ETR_LEGACY),this.gr={eventName:t,isETR:!0,isCustomHashId:!1},this.da(),this.f.tagDeploymentMode===Ti.LoadClicktalePtc&&Bl.sendEventTriggerRecording(t))}getRequestParameters(){return{value:this.de.compressSync(this.gr.eventName,"base64"),ct:this.de.algorithm,isETR:`${this.gr.isETR}`,isCustomHashId:`${this.gr.isCustomHashId}`}}da(){this.Rw.send()}static bf(t){return L(t)&&!!csString.prototype.trim.call(t)}}return s})(),uo=["trackPageEvent"],hr=["trackEventTriggerRecording"],qE=(()=>{class s{constructor(t,e,i,n,o){this.f=t,this.E=e,this.de=i,this.ze=n,this.X=o}init(){let t=new Qi(this.f.getTrackerUri(),"pageEvent");this.pa=new GE(this.f,t,this.de,this.X),t.setRequestParametersProviders(this.pa,this.ze),this.E.register(uo,e=>{this.pa.trackPageEvent(e)}),this.E.register(hr,e=>{this.pa.trackEventTriggerRecording(e)})}onStartTracking(){this.pa.start()}}return s})(),Un=(()=>{let s;return function(r){r.Artificial="a",r.Renewal="r",r.Natural="n"}(s||(s={})),s})(),ud=(()=>{class s{constructor(){this.$l=Un.Natural}setPageViewType(t){this.$l=t}getPageViewType(){return this.$l}getRequestParameters(){return{pvt:this.$l}}}return s})(),WE=(()=>{class s extends ud{getRequestParameters(){return{}}}return s})(),dd=(()=>{class s extends re{constructor(t,e,i,n,o){super(),this.S=t,this.X=e,this.zl=i,this.w=n,this.ns=o}init(){this.Vw()}onStart(t){t?this.Uw():this.jw()}onStop(){}triggerArtificialPageView(t,e){this.isStarted?this.Rf(t,e):Ot(t)&&this.w.overridePath(t,e),this.isStarted||(this.X.emitTargetingRulesArtificialPageview(this.w.getUrl()),this.w.cleanupOverrideLifespan())}jw(){this.ns.setPageViewType(Un.Natural),this.S.emitBeforeNaturalPageView(this.w.getAnonymizedUrl()),this.zl.send(),this.w.cleanupOverrideLifespan(),this.S.emitAfterNaturalPageView()}Uw(){this.ns.setPageViewType(Un.Renewal),this.S.emitBeforeNaturalPageView(this.w.getAnonymizedUrl()),this.zl.send(),this.S.emitAfterNaturalPageView()}Rf(t,e){let i=this.w.getAnonymizedUrl();this.ns.setPageViewType(Un.Artificial),this.S.emitArtificialPageViewEnd(),Ot(t)&&this.w.overridePath(t,e),this.S.emitBeforeArtificialPageView(i,this.w.getAnonymizedUrl()),this.zl.send(),this.w.cleanupOverrideLifespan(),this.S.emitAfterArtificialPageView()}Vw(){window.addEventListener("pageshow",t=>{this.isStarted&&t.persisted&&this.Rf()})}}return s})(),YE=window.navigator.language||window.navigator.userLanguage||window.navigator.browserLanguage||window.navigator.systemLanguage||"unknown";function XE(){return{la:YE}}var KE=99999,JE=(()=>{class s{constructor(t){this.R=t,this.Hw=this.Bw()&&window.CSCurrentScript}Fw(){let t=window.CSCurrentScript;if(!t)return null;let e=window.performance.getEntriesByName(t.src,"resource")[0];return!e||this.$w(e)?null:Math.round(e.responseEnd-e.fetchStart)}$w(t){let e=t.transferSize;return e!==void 0?e===0||e===300||eHe(s)&&s!==null,pd=(s,r,t,e)=>{s.register(po,(i,n)=>{if(!L(i)){r.triggerArtificialPageView();return}wa(n)?r.triggerArtificialPageView(i,n):r.triggerArtificialPageView(i)}),s.register(Qn,(i,n)=>{if(!L(i))throw new Error(`Command misuse: ${Qn[0]}`);wa(n)?t.overridePath(i,n):t.overridePath(i)}),s.register(Zn,(i,n)=>{if(!L(i))throw new Error(`Command misuse: ${Zn[0]}`);wa(n)?t.overrideQuery(i,n):t.overrideQuery(i)}),e&&(s.register(dh,i=>{if(!L(i))throw new Error(`Command misuse: ${dh[0]}`);e.addUrlMaskingPattern(i)}),s.register(QE,()=>e.enableRemoveQueryString()),s.register(ZE,()=>e.disableRemoveQueryString()))},tS=(()=>{class s{constructor(t,e,i,n){this.E=t,this.S=e,this.X=i,this.w=n}init(){let t=new wg,e=new WE;this.Qs=new dd(this.S,this.X,t,this.w,e),this.Qs.init(),pd(this.E,this.Qs,this.w)}start(){this.Qs.start()}}return s})(),eS=(()=>{class s{constructor(t,e,i,n,o,c,u,d,E,f,_,w,A,V,U){this.f=t,this.E=e,this.S=i,this.ze=n,this.I=o,this.R=c,this.Li=u,this._t=d,this.vt=E,this.w=f,this.ee=_,this.ns=w,this.X=A,this.qe=V,this.Yi=U}init(){let t=new Qi(this.f.getTrackerUri(),"pageview");this.Qs=new dd(this.S,this.X,t,this.w,this.ns),this.Qs.init();let e=new Fr(this.ze,this.I,Yt,this.Li,this.w,this._t,yc,this.vt,this.ns,new JE(this.R),this.ee);this.qe&&e.addProvider(this.qe),this.Yi&&e.addProvider(this.Yi);let i=this.f.isCsCrosswritingHeap();if(i||this.f.isCsSideloadingHeap()||this.f.isHeapSideloadsCs()){let n=this.f.getHeapEnvId()||void 0;e.addProvider({getRequestParameters(){let o={cw:i?"1":"2"};return n&&(o.happid=n),o}})}t.setRequestParametersProviders(e),pd(this.E,this.Qs,this.w,this.Li)}start(t){this.Qs.start(t)}onBeforeSessionRenewal(){this.Qs.stop()}}return s})();function sS(s,r){let t=!1,e=function(){if(!t)return s.apply(r,arguments)};return e.cancel=()=>t=!0,e}var Is=csSymbol(),Xc=(()=>{class s{constructor(t){var e,i,n,o,c,u,d,E,f,_,w,A,V;this.A=t,this.Gl=null,this.ql=null,this.Wl=null,this.Yl=null,this.Xl=null,this.Gw=oo(U=>this.processUpdateRulesInATick(U)),this.Kl=null,this.Jl=null,this.Ql=null,this.A=U=>ve(()=>t(U)),typeof((i=(e=window.CSSStyleSheet)===null||e===void 0?void 0:e.prototype)===null||i===void 0?void 0:i.insertRule)=="function"&&(this.Gl=Rs({target:window.CSSStyleSheet.prototype,methodName:"insertRule",hook:({context:U,args:P})=>{this.processInsertRule(U,P)}})),typeof((o=(n=window.CSSStyleSheet)===null||n===void 0?void 0:n.prototype)===null||o===void 0?void 0:o.deleteRule)=="function"&&(this.ql=Rs({target:window.CSSStyleSheet.prototype,methodName:"deleteRule",hook:({context:U,args:P})=>{this.processDeleteRule(U,P)}})),typeof((u=(c=window.CSSGroupingRule)===null||c===void 0?void 0:c.prototype)===null||u===void 0?void 0:u.insertRule)=="function"&&(this.Wl=Rs({target:window.CSSGroupingRule.prototype,methodName:"insertRule",hook:({context:U})=>this.processUpdateRule(U)})),typeof((E=(d=window.CSSGroupingRule)===null||d===void 0?void 0:d.prototype)===null||E===void 0?void 0:E.deleteRule)=="function"&&(this.Yl=Rs({target:window.CSSGroupingRule.prototype,methodName:"deleteRule",hook:({context:U})=>this.processUpdateRule(U)})),!((f=window.StyleSheet)===null||f===void 0)&&f.prototype&&"disabled"in window.StyleSheet.prototype&&(this.Xl=Xn(window.StyleSheet.prototype,"disabled",(U,P,C)=>{P!==C&&this.qw(U,P)})),typeof((w=(_=window.CSSStyleDeclaration)===null||_===void 0?void 0:_.prototype)===null||w===void 0?void 0:w.setProperty)=="function"&&(this.Kl=Rs({target:window.CSSStyleDeclaration.prototype,methodName:"setProperty",hook:({context:U})=>{let P=U.parentRule;P instanceof CSSStyleRule&&this.processUpdateRule(P)}})),typeof((V=(A=window.CSSStyleDeclaration)===null||A===void 0?void 0:A.prototype)===null||V===void 0?void 0:V.removeProperty)=="function"&&(this.Jl=Rs({target:window.CSSStyleDeclaration.prototype,methodName:"removeProperty",hook:({context:U})=>{let P=U.parentRule;P instanceof CSSStyleRule&&this.processUpdateRule(P)}})),Object.getOwnPropertyDescriptor(window.CSSStyleRule.prototype,"style")&&(this.Ql=bm(window.CSSStyleRule.prototype,"style",U=>{this.processUpdateRule(U)}))}observe(){var t,e,i,n,o,c,u,d;(t=this.Gl)===null||t===void 0||t.activate(),(e=this.ql)===null||e===void 0||e.activate(),(i=this.Wl)===null||i===void 0||i.activate(),(n=this.Yl)===null||n===void 0||n.activate(),(o=this.Xl)===null||o===void 0||o.activate(),(c=this.Kl)===null||c===void 0||c.activate(),(u=this.Jl)===null||u===void 0||u.activate(),(d=this.Ql)===null||d===void 0||d.activate()}disconnect(){var t,e,i,n,o,c,u,d;(t=this.Gl)===null||t===void 0||t.deactivate(),(e=this.ql)===null||e===void 0||e.deactivate(),(i=this.Wl)===null||i===void 0||i.deactivate(),(n=this.Yl)===null||n===void 0||n.deactivate(),(o=this.Xl)===null||o===void 0||o.deactivate(),(c=this.Kl)===null||c===void 0||c.deactivate(),(u=this.Jl)===null||u===void 0||u.deactivate(),(d=this.Ql)===null||d===void 0||d.deactivate()}processInsertRule(t,[e,i]){if(t[Is]==null&&!t.ownerNode)return;let n={type:"cssRuleInserted",sheet:t,rule:e,index:i};this.A(n)}processUpdateRule(t){let e=t;for(;e.parentRule!==null;)e=e.parentRule;e.parentStyleSheet!==null&&this.Gw.push(e)}processUpdateRulesInATick(t){for(let e of t){if(e.parentStyleSheet===null)return;let i=e.parentStyleSheet,n=csArray.prototype.indexOf.call(Br(i.cssRules),e);if(n===-1)return;let o={type:"cssRuleUpdated",sheet:i,rule:e.cssText,index:n};this.A(o)}}processDeleteRule(t,[e]){if(t[Is]==null&&!t.ownerNode)return;let i={type:"cssRuleDeleted",sheet:t,index:e};this.A(i)}qw(t,e){if(t[Is]==null&&!t.ownerNode)return;let i={type:"cssStyleSheetDisabled",sheet:t,disabled:e};this.A(i)}}return St([G()],s.prototype,"observe",null),St([G()],s.prototype,"disconnect",null),St([G()],s.prototype,"processInsertRule",null),St([G()],s.prototype,"processUpdateRule",null),St([G()],s.prototype,"processUpdateRulesInATick",null),St([G()],s.prototype,"processDeleteRule",null),s})(),iS=(()=>{class s{constructor(t){this.Ww=1,this.ga=new Set,this.Zl=null,this.th=null,this.Kc=(e,i)=>{(i==="initial"||i==="added")&&this.setStyleSheets(e,e.adoptedStyleSheets)},this.Yw=e=>{let i=e.sheet;if(this.ga.has(i)){if(e.type==="cssRuleInserted"){let n={type:"adoptedStyleSheetRuleInserted",sheetId:i[Is],rule:e.rule,index:e.index};this.A(n)}else if(e.type==="cssRuleDeleted"){let n={type:"adoptedStyleSheetRuleDeleted",sheetId:i[Is],index:e.index};this.A(n)}else if(e.type==="cssRuleUpdated"){let n={type:"adoptedStyleSheetRuleUpdated",sheetId:i[Is],rule:e.rule,index:e.index};this.A(n)}else if(e.type==="cssStyleSheetDisabled"){let n={type:"adoptedStyleSheetDisabled",sheetId:i[Is],disabled:e.disabled};this.A(n)}}},this.A=e=>ve(async()=>{await Bh(2),t(e)}),this.le=new or(this.Kc),"adoptedStyleSheets"in Document.prototype&&(this.Zl=Xn(window.Document.prototype,"adoptedStyleSheets",(e,i)=>{this.setStyleSheets(e,i)})),"ShadowRoot"in window&&"adoptedStyleSheets"in window.ShadowRoot.prototype&&(this.th=Xn(window.ShadowRoot.prototype,"adoptedStyleSheets",(e,i)=>{this.setStyleSheets(e,i)})),this.Cf=new Xc(this.Yw)}observe(){var t,e;this.setStyleSheets(document,document.adoptedStyleSheets),this.le.observe(),(t=this.Zl)===null||t===void 0||t.activate(),(e=this.th)===null||e===void 0||e.activate(),this.Cf.observe()}disconnect(){var t,e;this.ga.clear(),this.le.disconnect(),(t=this.Zl)===null||t===void 0||t.deactivate(),(e=this.th)===null||e===void 0||e.deactivate(),this.Cf.disconnect()}setStyleSheets(t,e){if(!e.length)return;this.Xw(e);let i=Xe(e,o=>o[Is]),n={type:"adoptedStyleSheetsSet",target:t,sheetsIds:i};this.A(n)}Xw(t){ht(t,e=>{if(this.ga.has(e))return;let i=this.Ww++;e[Is]=i,this.ga.add(e);let n=this.Kw(e),o={type:"adoptedStyleSheetRegistered",sheetId:i,cssRules:n,disabled:e==null?void 0:e.disabled};this.A(o)})}Kw(t){let e=[];try{e=Xe(t.cssRules,i=>i.cssText)}catch{}return e}}return St([G()],s.prototype,"observe",null),St([G()],s.prototype,"disconnect",null),St([G()],s.prototype,"setStyleSheets",null),s})(),rS=Ri(cS,"optimizeMutations"),nS=csSymbol.for("ignoreNextSerialization");function oS(){let s=new Set,r=new Set,t=new Set,e=new Set,i=new Map,n=new Map,o=new Map,c=new Set,u=new Set,d=new Map,E=new Set;return{isMovedNode(f){return s.has(f)},markAsMovedNode(f){E.delete(f),s.add(f)},isDetachedMove(f){return!!Ct.findAncestor(f,_=>E.has(_),!0)},isAddedNode(f){let _=Ct.findAncestor(f,w=>r.has(w)||u.has(w)||s.has(w),!0);return!!_&&!s.has(_)},isMovedNodeIntoAddedNode(f){return s.has(f)&&!!Ct.findAncestor(f,_=>r.has(_)||u.has(_),!0)},markAsAddedNode(f){E.delete(f),u.delete(f),r.add(f)},markAsPendingInsert(f){u.add(f)},isPendingInsert(f){return u.has(f)},isRemovedNode(f){return!!Ct.findAncestor(f,_=>t.has(_),!0)},markAsRemovedNode(f){t.add(f)},isUselessNode(f){return e.has(f)},markAsUselessNode(f){e.add(f)},getPlaceholder(f,_){let w=_==="previous"?n:i;return f&&w.has(f)?w.get(f)||null:f},getSiblings(f){let _=f.addedNodes.length,w=this.getPlaceholder(f.previousSibling,"previous"),A=this.getPlaceholder(f.nextSibling,"next");if(_){let V=w,U=A,P=f.previousSibling!==w,C=f.nextSibling!==A;for(let F=0;F<_;F++){let j=f.addedNodes[F],M=f.addedNodes[_-F-1];this.isLatestNodeMutation(j,f)?(n.delete(j),f.previousSibling&&P&&(i.set(f.previousSibling,j),P=!1),V=j):n.set(j,V),this.isLatestNodeMutation(M,f)?(i.delete(M),f.nextSibling&&C&&(n.set(f.nextSibling,M),C=!1),U=M):i.set(M,U)}}else f.previousSibling&&f.previousSibling!==w&&i.set(f.previousSibling,A),f.nextSibling&&f.nextSibling!==A&&n.set(f.nextSibling,w);return{previousSibling:w,nextSibling:A}},setAttributeMutation(f,_){let w=o.get(f)||new Set;w.add(_),o.set(f,w)},isAttributeMutated(f,_){var w;return!!(!((w=o.get(f))===null||w===void 0)&&w.has(_))},setLatestNodeMutation(f,_){d.set(f,_)},isLatestNodeMutation(f,_){return d.get(f)===_},markAsFutureAddedNode(f){d.has(f)||E.add(f)},isTextMutated(f){return c.has(f)},setTextMutated(f){return c.add(f)}}}function aS(s,r){for(let t=0;t{if(d){let{childListType:w,movedNodes:A,...V}=d;csArray.prototype.push.call(t,w==="added"?V:{...V,movedNodes:A}),d=null}},f=w=>w===(d==null?void 0:d.childListType)?d:(E(),{childListType:w,type:"childList",target:s.target,addedNodes:[],removedNodes:[],movedNodes:[],previousSibling:u,nextSibling:c});if(e){for(let w=0;w{if(Ct.isConnected(w)){if(!i&&!r.isPendingInsert(w)){if(r.isDetachedMove(w))return!0;r.markAsMovedNode(w),r.isMovedNodeIntoAddedNode(w)&&(w[nS]=!0)}return!1}return r.isUselessNode(w)?!1:(r.markAsRemovedNode(w),!0)});return _.length&&csArray.prototype.push.call(t,{type:"childList",removedNodes:_,addedNodes:[],movedNodes:[],target:s.target,nextSibling:c,previousSibling:u}),t}var fS=(()=>{class s{constructor(t){this.A=t,this.eh=!1,this.Jw=e=>{e.sheet.ownerNode&&(e.type==="cssRuleInserted"?this.A({type:e.type,target:e.sheet.ownerNode,rule:e.rule,index:e.index}):e.type==="cssRuleDeleted"?this.A({type:e.type,target:e.sheet.ownerNode,index:e.index}):e.type==="cssRuleUpdated"?this.A({type:e.type,target:e.sheet.ownerNode,rule:e.rule,index:e.index}):e.type==="cssStyleSheetDisabled"&&this.A({type:e.type,target:e.sheet.ownerNode,disabled:e.disabled}))},this.A=e=>ve(()=>t(e)),this.If=new Xc(e=>ve(async()=>{await Bh(),this.Jw(e)})),"adoptedStyleSheets"in Document.prototype&&(this.Pf=new iS(t))}observe(){var t;this.eh=!1,this.D=new Je(e=>this.Qw(e),(e,i)=>{i==="added"&&this.Zw(e)}),this.D.observe(),this.If.observe(),(t=this.Pf)===null||t===void 0||t.observe()}disconnect(){var t,e;(t=this.D)===null||t===void 0||t.disconnect(),this.If.disconnect(),(e=this.Pf)===null||e===void 0||e.disconnect(),this.eh=!0}Qw(t){if(this.eh)return;let e=rS(t);for(let i=0;ic)};this.A(o)}}Zw(t){let e={type:"shadowRootAttached",target:t.host,shadowRoot:t};this.A(e)}}return St([G()],s.prototype,"processAttributeChanged",null),St([G()],s.prototype,"processCharacterDataChanged",null),St([G()],s.prototype,"processChildListChanged",null),s})(),Kc=(()=>{class s{constructor(t){this.type="asyncEvent",this.ih=!1,t&&t(e=>this.resolve(e))}resolve(t){if(this.ih)throw new Error("AsyncEvent already resolve.");t.timestamp==null&&(t={...t,timestamp:this.timestamp}),this.Gs=t,this.ih=!0,this.A&&this.A(this.Gs)}complete(t){this.ih&&t(this.Gs),this.A=t}wait(){return new Promise(t=>this.complete(t))}}return s})(),gS=jc(),fd=(()=>{class s extends ks{constructor(){super(...arguments),this.ma=!1}onStart(){this.ma=!0,this.A=sS(this.tT,this),this.z=new fS(this.A),this.z.observe();let t=Ht.mutations.initialDOM.asyncMeasure(),e=()=>{this.ma=!1,wy(),t()};this.produceEvent(new Kc(i=>gS(document,n=>{e(),i({type:"DomEvent",domEvent:"initialDOM",initialDOM:n})})))}onStop(){var t,e;this.ma=!1,(t=this.A)===null||t===void 0||t.cancel(),(e=this.z)===null||e===void 0||e.disconnect()}Gt(t,e){let i={type:"DomEvent",domEvent:e.type,target:0,targetProps:{}};return"target"in e&&(i.target=Rt(e.target),i.targetProps=lt.getProperties(e.target)),[e,i]}tT(t){if(!this.eT(t))switch(t.type){case"attributeChanged":{let[e,i]=this.Gt(t.type,t);i.attribute=e.attribute,i.isSvg=nr(e.target),i.namespace=e.namespace,i.newValue=e.newValue,i.oldValue=e.oldValue,i.localName=Ir(e.target),i.linkRel=Yh(e.target)?e.target.rel:null,i.parentLocalName=e.target.parentElement?Ir(e.target.parentElement):void 0,i.localName==="input"&&(i.inputType=e.target.getAttribute("type")),this.produceEvent(i)}break;case"characterDataChanged":{let[e,i]=this.Gt(t.type,t);i.newValue=e.newValue,i.oldValue=e.oldValue,i.targetNodeType=e.target.nodeType,i.parentLocalName=e.target.parentElement?Ir(e.target.parentElement):null,i.parentProps=e.target.parentElement?lt.getProperties(e.target.parentElement):void 0,this.produceEvent(i)}break;case"nodesAdded":{let[e,i]=this.Gt(t.type,t);i.targetLocalName=Mt(e.target)?Ir(e.target):null,i.nextSibling=e.nextSibling?Rt(e.nextSibling):null,i.previousSibling=e.previousSibling?Rt(e.previousSibling):null,Ht.mutations.serializedMutations.measure(()=>{i.nodes=Xe(e.nodes,Qa)}),this.produceEvent(i);break}case"nodesMoved":{let[e,i]=this.Gt(t.type,t);i.previousSibling=e.previousSibling?Rt(e.previousSibling):null,i.nextSibling=e.nextSibling?Rt(e.nextSibling):null,i.nodesIds=Xe(e.nodes,Rt),this.produceEvent(i);break}case"nodesRemoved":{let[e,i]=this.Gt(t.type,t);i.nodesIds=Xe(e.nodes,Rt),this.produceEvent(i);break}case"shadowRootAttached":{let[e,i]=this.Gt(t.type,t);i.shadowRoot=kr(e.shadowRoot),this.produceEvent(i);break}case"cssRuleInserted":{let[e,i]=this.Gt(t.type,t);i.index=e.index,i.rule=e.rule,this.produceEvent(i);break}case"cssRuleDeleted":{let[e,i]=this.Gt(t.type,t);i.index=e.index,this.produceEvent(i);break}case"cssRuleUpdated":{let[e,i]=this.Gt(t.type,t);i.rule=e.rule,i.index=e.index,this.produceEvent(i);break}case"cssStyleSheetDisabled":{let[e,i]=this.Gt(t.type,t);i.disabled=e.disabled,this.produceEvent(i);break}case"adoptedStyleSheetRegistered":{let[e,i]=this.Gt(t.type,t);i.sheetId=e.sheetId,i.cssRules=e.cssRules,i.disabled=e.disabled,this.produceEvent(i);break}case"adoptedStyleSheetsSet":{let[e,i]=this.Gt(t.type,t);i.sheetsIds=e.sheetsIds,this.produceEvent(i);break}case"adoptedStyleSheetRuleInserted":{let[e,i]=this.Gt(t.type,t);i.sheetId=e.sheetId,i.rule=e.rule,i.index=e.index,this.produceEvent(i);break}case"adoptedStyleSheetRuleDeleted":{let[e,i]=this.Gt(t.type,t);i.sheetId=e.sheetId,i.index=e.index,this.produceEvent(i);break}case"adoptedStyleSheetRuleUpdated":{let[e,i]=this.Gt(t.type,t);i.sheetId=e.sheetId,i.rule=e.rule,i.index=e.index,this.produceEvent(i);break}case"adoptedStyleSheetDisabled":{let[e,i]=this.Gt(t.type,t);i.sheetId=e.sheetId,i.disabled=e.disabled,this.produceEvent(i);break}}}ya(t){return this.ma&&!lt.getProperty(t,Mr)}eT(t){switch(t.type){case"nodesAdded":case"nodesMoved":case"nodesRemoved":case"shadowRootAttached":return this.ya(t.target)||Y.isMaskedElement(t.target)||Y.isMaskedElementChild(t.target);case"characterDataChanged":{let e=t.target.parentElement;return e!==null&&(this.ya(e)||Y.isMaskedElement(e)||Y.isMaskedElementChild(e))}case"attributeChanged":return this.ya(t.target)||Y.isMaskedElementChild(t.target)||Y.isMaskedAttribute(t.target,t.attribute);case"cssRuleInserted":case"cssRuleDeleted":case"cssRuleUpdated":case"cssStyleSheetDisabled":return this.ya(t.target)||Y.isMaskedElementChild(t.target);default:return!1}}}return s})(),tn=(()=>{let s;return function(r){function t(e){return e.type==="DomEvent"}r.isDOMEvent=t}(s||(s={})),s})(),en=(()=>{class s{constructor(){this.ne=[]}start(){}stop(){this.ne.length=0,this.ne=[]}pushEvent(t){if(s.pendingEvents++,this.isListening(t)){let e=this.ne;csSetTimeout(()=>{let n=si("Processor:processEvent",o=>this.processEvent(o))(t);n!=null&&csArray.prototype.forEach.call(e,o=>o(n)),s.pendingEvents--})}else csSetTimeout(()=>{csArray.prototype.forEach.call(this.ne,e=>e(t))})}subscribe(t){return csArray.prototype.push.call(this.ne,t),()=>{this.ne=csArray.prototype.filter.call(this.ne,e=>e!==t)}}emitEvent(t){ve(()=>csArray.prototype.forEach.call(this.ne,e=>e(t)))}}return s.pendingEvents=0,s})(),gd=(()=>{class s extends en{isListening(t){return tn.isDOMEvent(t)&&(t.domEvent==="initialDOM"||t.domEvent==="nodesAdded")}processEvent(t){let e=0,i=t.domEvent==="initialDOM"?[t.initialDOM]:t.nodes;for(let n of i){if(n instanceof ti){let c=Y.getMaskedAttributeDetails(n);n.attributes=this.Lo(n,c)}if(Y.getMaskedElementDetails(n).state===Y.MaskedElementState.Child){if(t.domEvent==="initialDOM")return null;t.nodes=csArray.prototype.filter.call(t.nodes,c=>c!==n);continue}lt.traverse(n,c=>{if(c instanceof ti){let u=Y.getMaskedAttributeDetails(c);c.attributes=this.Lo(c,u);let d=Y.getMaskedElementDetails(c);d.state===Y.MaskedElementState.Parent&&(this.$c(c,d),e++)}})}return e>0&&at.counters.sensitiveElements.count("masked-elements",e),t}Lo(t,e){return e.attributes.length===0?t.attributes:csArray.prototype.filter.call(t.attributes,i=>csArray.prototype.indexOf.call(e.attributes,i.name)===-1)}$c(t,e){let i=`width: ${e.width}px !important; height: ${e.height}px !important;`;t.children=[],t.shadowRoot=void 0,csArray.prototype.push.call(t.attributes,{name:"style",value:i,namespaceURI:""}),ti.getAttribute(t,"data-cs-mask")||csArray.prototype.push.call(t.attributes,{name:"data-cs-mask",value:"",namespaceURI:""})}}return Ms([ie("MaskedElementProcessor.processEvent")],s.prototype,"processEvent",null),s})(),ph=(()=>{let s;return function(r){function t(e){return e.type==="TextVisibility"}r.isTextVisibilityEvent=t}(s||(s={})),s})(),md=(()=>{class s extends en{constructor(t,e,i,n=null,o=!1){super(),this.M=i,this.Vo=n,this.captureAnonymizedPlaceholders=o,this.Ea=new Lu(t,e,i,n,o)}setAnonymization(t){this.Ea.setAnonymization(t)}isListening(t){return ph.isTextVisibilityEvent(t)||tn.isDOMEvent(t)&&(t.domEvent==="initialDOM"||t.domEvent==="nodesAdded"||t.domEvent==="attributeChanged"||t.domEvent==="characterDataChanged")}processEvent(t){if(ph.isTextVisibilityEvent(t))return t.text=this.M.checkAndAnonymizePII(t.text,this.Vo),t;switch(t.domEvent){case"initialDOM":case"nodesAdded":this.oh(t);break;case"attributeChanged":this.iT(t);break;case"characterDataChanged":this.rT(t);break}return t}oh(t){let e=t.domEvent==="initialDOM"?[t.initialDOM]:t.nodes,i;t.domEvent==="nodesAdded"&&(i={targetLocalName:t.targetLocalName,targetProps:t.targetProps});for(let n of e)this.Ea.sanitize(n,i)}iT(t){if(!t.isSvg&&t.newValue){if(t.localName===null){t.newValue="";return}t.newValue=this.Ea.getAnonymizedAttributeValue(t.localName,t.attribute,t.newValue,t.inputType)}}rT(t){t.newValue=this.Ea.getAnonymizedValue(t.newValue,t.parentLocalName,t.parentProps).anonymizedValue}}return Ms([ie("AnonymizedTextProcessor.processEvent")],s.prototype,"processEvent",null),s})();function Jc(s){let r=csString.prototype.trim.call(s);if(s==="")return[];let[t,e]=mS(r);return e?(rr(t,",")||(e=yS(e)),[fh(t),...Jc(e)]):[fh(t)]}function mS(s){return csString.prototype.split.call(s,/\s(.+)/)}function fh(s){return csString.prototype.split.call(s,/,$/)[0]}function yS(s){return csString.prototype.split.call(s,/,(.+)/)[1]||""}var ES=/(@import\s*("([^"]+)"|'([^']+)'))|(url\s*\(\s*((("([^"\]]+)"|'([^'\]]+)')\s*)|([^)\]]+))\)(?!\\))/g;function SS(s,r){return csString.prototype.replace.call(s,ES,(...e)=>{let i=e[3]||e[4],n=e[9]||e[10]||e[11],o=_S((i||n).trim()),c=i?"@import ":"",u=r(o)||o;return`${c}url(${vS(u)})`})}function vS(s){return csString.prototype.indexOf.call(s,'"')===-1?`"${s}"`:csString.prototype.indexOf.call(s,"'")===-1?`'${s}'`:s}function Lr(s){let r=new Set;return SS(s,t=>{var e,i;return r.add((i=(e=csString.prototype.match.call(t,/^["|'](.*)?["|']$/))===null||e===void 0?void 0:e[1])!==null&&i!==void 0?i:t),t}),ii(r)}function _S(s){let r=/(\\)*\\(?:([a-fA-F0-9]{1,6})|(.))[\n\t\x20]?/g;return csString.prototype.replace.call(s,r,(t,e,i,n)=>{if(e==="\\")return csString.prototype.slice.call(t,1);if(n)return n;let o=parseInt(i,16);return 55296<=o&&o<=57343||o===0||o>1114111?"\uFFFD":csString.fromCodePoint(o)})}var gh=(()=>{class s{static async toStaticResourceEvent(t,e,i){let n=await s.oT(t);if(!n)return null;let o=await s.Mf(n),c=Ye(t)?void 0:t,u={type:"StaticResourceManagerEvent",timestamp:i,resourceId:e,resource:{hash:o,data:n}};return c&&(u.originalResourceName=c),u}static async toCSSStaticResourceEvent(t,e,i,n){let o=await s.aT(t,n),c=Qs(t),u=o.get(c);if(!u)return null;let d={type:"StaticResourceManagerEvent",timestamp:i,resourceId:e,resource:{hash:u.hash,data:u.data}};return o.delete(c),o.size&&(d.nestedResources=[],o.forEach(E=>{E&&csArray.prototype.push.call(d.nestedResources,{hash:E.hash,data:E.data})})),d}static async Mf(t){let e=await t.arrayBuffer(),i=await crypto.subtle.digest(this.kf,e);return xa(i)}static async oT(t){let e;if(!Ye(t))e=await(await window.fetch(t)).blob();else{let i=pl(t);if(!i)return null;e=i}return e}static async aT(t,e){let i=new Map,n=Qs(t),c=[{resourceRawPath:t,resourceAbsolutePath:n}];for(;c.length>0;){let u=csArray.prototype.pop.call(c);if(!e&&u.resourceAbsolutePath!==null&&!Ye(u.resourceAbsolutePath)){i.set(u.resourceAbsolutePath,null);continue}if(i.get(u.resourceAbsolutePath)===void 0)try{if(u.resourceRawPath===null||csString.prototype.indexOf.call(u.resourceRawPath,".css")>0){if(!u.data){let w=await fetch(u.resourceAbsolutePath);u.data=await w.text()}u.nestedResources||(u.nestedResources=Lr(u.data));let f=!1,_=!1;for(let w of u.nestedResources){let A=Ye(w)?w:u.resourceAbsolutePath?cu(w,u.resourceAbsolutePath):Qs(w),V=i.get(A);if(V!==void 0){if(V!==null){let P=s.cT(V,w);u.data=ge.stringReplaceAll(u.data,w,P)}continue}Ps(c,P=>P.resourceAbsolutePath===A)!==void 0||(f=!0,_||(csArray.prototype.push.call(c,u),_=!0),csArray.prototype.push.call(c,{resourceRawPath:w,resourceAbsolutePath:A}))}if(!f){let w=await s.lT(u.data);i.set(u.resourceAbsolutePath,{hash:w.hash,data:w.data})}}else{let f;if(!Ye(u.resourceAbsolutePath))f=await(await fetch(u.resourceAbsolutePath)).blob();else{let w=pl(u.resourceAbsolutePath);if(!w){i.set(u.resourceAbsolutePath,null);continue}f=w}let _=await s.Mf(f);i.set(u.resourceAbsolutePath,{hash:_,data:f})}}catch{i.set(u.resourceAbsolutePath,null)}}return i}static cT(t,e){let i=`cs://resources/${t.hash}`;return Ye(e)||(i+=`?${s.ah}=${e}`),i}static async lT(t){let e=new Blob([t],{type:"text/css"}),i=await e.arrayBuffer(),n=await crypto.subtle.digest(s.kf,i);return{data:e,hash:xa(n)}}}return s.kf="SHA-256",s.ah="original-resource-name",s})(),yd=(()=>{class s extends en{constructor(){super(),this.Sa="cssrm://",this.ge=0,this.Ts=!1}isListening(t){return!s.isSupported()||!tn.isDOMEvent(t)?!1:t.domEvent==="initialDOM"||t.domEvent==="nodesAdded"||t.domEvent==="attributeChanged"||t.domEvent==="characterDataChanged"}processEvent(t){switch(t.domEvent){case"initialDOM":case"nodesAdded":this.hT(t);break;case"attributeChanged":this.uT(t);break;case"characterDataChanged":this.dT(t);break}return t}disableOnlineAssets(){this.Ts=!1}enableOnlineAssets(){this.Ts=!0}isOnlineAssetsActivated(){return this.Ts}hT(t){let e=t.domEvent==="initialDOM"?[t.initialDOM]:t.nodes;for(let i of e)lt.traverse(i,(n,o)=>{if(n.nodeType===er.TEXT_NODE&&o){this.pT(n,o.localName);return}if(!ti.isElement(n))return;let c=Ps(n.attributes,u=>u.name==="style");if(c&&(c.value=this.va(c.value)),this.fT(n)||this.gT(n,o)){let u=Ps(n.attributes,E=>E.name==="src");u&&u.value&&(u.value=this.Df(u.value));let d=Ps(n.attributes,E=>E.name==="srcset");if(d){d.value=this.xf(d.value);return}}if(this.mT(n)&&this.Ts){let u=Ps(n.attributes,d=>d.name==="href");if(!u||!u.value)return;this.ge++,this.mr(Qs(u.value),this.ge,!0),this.yT(n,u,this.ge)}})}yT(t,e,i){csArray.prototype.push.call(t.attributes,{name:"data-cs-original-href",namespaceURI:"",value:e.value}),e.value=this.Sa+i}pT(t,e){if(!t||e!=="style")return;let i=this.va(t.data);i!==null&&(t.data=i)}dT(t){if(t.parentLocalName!=="style"||!t.newValue)return;let e=this.va(t.newValue);e!==null&&(t.newValue=e)}uT(t){if(!t.newValue||t.newValue===t.oldValue)return;let e=t.attribute==="src",i=t.attribute==="srcset";if(t.attribute==="style"){t.newValue=this.va(t.newValue);return}if(!e&&!i)return;let o=t.localName==="img",c=t.localName==="source"&&t.parentLocalName&&t.parentLocalName==="picture";!o&&!c||(e&&(t.newValue=this.Df(t.newValue)),i&&(t.newValue=this.xf(t.newValue)))}Df(t){return Ye(t)||this.Ts?(this.ge++,this.mr(t,this.ge,!1,K.now()),this.Sa+this.ge):t}xf(t){if(!this.Ts)return t;let e=t,i=Jc(t),n=K.now();for(let o of i)this.ge++,this.mr(Qs(o),this.ge,!1,n),e=csString.prototype.replace.call(e,o,this.Sa+this.ge);return e}va(t){let e=Lr(t),i=t,n=K.now();for(let o of e){let c=Ye(o);if(!(c||this.Ts)||this.ET(o))continue;this.ge++,i=csString.prototype.replace.call(i,o,this.Sa+this.ge);let u=Wn(o);c?this.mr(o,this.ge,!1,n):this.Ts&&(u?this.mr(o,this.ge,!0,n):this.mr(Qs(o),this.ge,!1,n))}return i}mr(t,e,i,n=K.now()){let o=i?gh.toCSSStaticResourceEvent:gh.toStaticResourceEvent,c=new Kc(async u=>{try{let d=await o(t,e,n,this.Ts);u(d||{type:"warning",message:`Failed to process static resource: ${t}`})}catch(d){u({type:"warning",message:d})}});this.emitEvent(c)}fT(t){return t.localName==="img"}gT(t,e){return t.localName==="source"&&!!e&&e.localName==="picture"}mT(t){return t.localName==="link"&&csArray.prototype.some.call(t.attributes,e=>e.name==="rel"&&e.value==="stylesheet")}static isSupported(){return qp()&&Wp()&&!!csArray.from}ET(t){return csString.prototype.replace.call(t,/['"]+/g,"").length===0}}return Ms([ie("StaticResourceManagerProcessor.processEvent")],s.prototype,"processEvent",null),s})(),Ed=(()=>{class s extends en{constructor(t){super(),this.tt=t}isListening(t){return tn.isDOMEvent(t)&&t.domEvent==="initialDOM"}processEvent(t){return t.domEvent==="initialDOM"&&(t.initialDOM.baseURI=this.tt.anonymizeUrl(t.initialDOM.baseURI)),t}}return Ms([ie("UrlAnonymizationProcessor.processEvent")],s.prototype,"processEvent",null),s})(),Ta="textarea",Sd=(()=>{class s extends en{isListening(t){return tn.isDOMEvent(t)&&(t.domEvent==="initialDOM"||t.domEvent==="nodesAdded"||t.domEvent==="characterDataChanged")}processEvent(t){switch(t.domEvent){case"initialDOM":this.ST(t);break;case"nodesAdded":this.vT(t);break;case"characterDataChanged":this._T(t);break}return t}ST(t){lt.traverse(t.initialDOM,(e,i)=>{(this.Lf(e,i)||this.Vf(e))&&(e.data=this.ch(e.data))})}vT(t){for(let e of t.nodes)lt.traverse(e,(i,n)=>{(this.wT(i,n,t)||this.Vf(i))&&(i.data=this.ch(i.data))})}_T(t){var e;(t.parentLocalName===Ta||!((e=t.targetProps)===null||e===void 0)&&e.editableNode)&&(t.newValue=this.ch(t.newValue))}ch(t){return csString.prototype.replace.call(t,/\S/g,"\u2022")}wT(t,e,i){return this.TT(t,i)||this.Lf(t,e)}TT(t,e){return t.nodeType===3&&e.targetLocalName===Ta}Lf(t,e){return t.nodeType===3&&mt(e)&&e.localName===Ta}Vf(t){return t.nodeType===3&&Cs.isEditableNode(t)}}return Ms([ie("AnonymizedEditableTextProcessor.processEvent")],s.prototype,"processEvent",null),s})(),wS=(()=>{class s{constructor(t){this.A=t,this.$t={boundElement:window,type:"resize",listener:()=>this.resizeListener()},this.A=t}observe(){Dt(this.$t),this.lh()}lh(){this.resizeListener()}disconnect(){xt(this.$t)}resizeListener(){let t={width:Yt.windowWidth(),height:Yt.windowHeight()};this.A(t)}}return St([G("resize")],s.prototype,"resizeListener",null),s})(),Ys=(()=>{let s;return function(r){r.PORTRAIT="Portrait",r.LANDSCAPE="Landscape"}(s||(s={})),s})(),On=(()=>{let s;return function(r){r.PORTRAIT_PRIMARY="portrait-primary",r.PORTRAIT_SECONDARY="portrait-secondary",r.LANDSCAPE_PRIMARY="landscape-primary",r.LANDSCAPE_SECONDARY="landscape-secondary"}(s||(s={})),s})(),Nn=(()=>{let s;return function(r){r[r.PORTRAIT=0]="PORTRAIT",r[r.PORTRAIT_REVERSE=180]="PORTRAIT_REVERSE",r[r.LANDSCAPE=-90]="LANDSCAPE",r[r.LANDSCAPE_REVERSE=90]="LANDSCAPE_REVERSE"}(s||(s={})),s})(),TS=(()=>{let s;return function(r){let t=null;r.isScreenOrientationApiSupported=()=>{var c;return t!=null?t:t=!!(!((c=_t.screen)===null||c===void 0)&&c.orientation)},r.isDeprecatedScreenOrientationApiSupported=()=>"orientation"in _t;function e(){return Ys.LANDSCAPE}function i(){var c;switch((c=_t.screen.orientation)===null||c===void 0?void 0:c.type){case On.PORTRAIT_PRIMARY:case On.PORTRAIT_SECONDARY:return Ys.PORTRAIT;case On.LANDSCAPE_PRIMARY:case On.LANDSCAPE_SECONDARY:return Ys.LANDSCAPE;default:return Ys.PORTRAIT}}function n(){switch(window.orientation){case Nn.PORTRAIT:case Nn.PORTRAIT_REVERSE:return Ys.PORTRAIT;case Nn.LANDSCAPE:case Nn.LANDSCAPE_REVERSE:return Ys.LANDSCAPE;default:return Ys.PORTRAIT}}function o(){return r.isScreenOrientationApiSupported()?i():r.isDeprecatedScreenOrientationApiSupported()?n():e()}r.getCurrentOrientation=o}(s||(s={})),s})(),bS=(()=>{class s extends ks{constructor(){super(...arguments),this.hh=null,this.uh=null,this.xs=new wS(t=>{this.produceEvent({...t,type:"viewportResize"}),this.onScreenPotentiallyChanged()})}onScreenPotentiallyChanged(){let t=TS.getCurrentOrientation(),{screenWidth:e,screenHeight:i}=this.bT(t);if(e!==this.hh||i!==this.uh){this.hh=e,this.uh=i;let n={type:"screenResize",width:e,height:i};this.produceEvent(n)}}bT(t){let e,i,n=Yt.screenWidth(),o=Yt.screenHeight();return t===Ys.PORTRAIT?(e=n,i=o):(e=Math.max(n,o),i=Math.min(n,o)),{screenWidth:e,screenHeight:i}}onStart(){this.xs.observe()}onStop(){this.hh=null,this.uh=null,this.xs.disconnect()}}return s})();function AS(s){let r=csEventtarget.apply(s);return r&&Mt(r)&&csElementshadowRoot.apply(r)&&s.composedPath?s.__csOriginalTarget||s.composedPath()[0]:r}var RS=(()=>{class s extends ks{constructor(){super(),this.Uf=t=>{let e=AS(t);e&&this.ph(e,t.type)},this.le=new or((t,e)=>{switch(e){case"initial":case"added":this.jf(t);break;case"removed":this.Hf(t);break}}),this.j=new Ke((t,e)=>{(e==="initial"||e==="added")&&this.AT(t)})}static shouldProcessElement(t){return t.tagName==="VIDEO"&&Ct.isConnected(t)&&!Y.isMaskedElement(t)&&!Y.isMaskedElementChild(t)}static isPlaying(t){return!t.paused&&!t.ended}onStart(){this.jf(document),this.le.observe(),this.j.observe("video")}onStop(){this.Hf(document),this.le.disconnect(),this.j.disconnect()}ph(t,...e){if(this.isStarted&&s.shouldProcessElement(t))for(let i of e){let n=Rt(t),o={type:"VideoEvent",videoEventType:i,nodeId:n};i==="seeked"&&(o.newTimePositionInSec=t.currentTime),vc(()=>this.produceEvent(o))}}AT(t){for(let e of t)this.ph(e,"seeked"),s.isPlaying(e)&&this.ph(e,"play")}jf(t){for(let e of["play","pause","seeked"])Dt({type:e,listener:this.Uf,boundElement:t})}Hf(t){for(let e of["play","pause","seeked"])xt({type:e,listener:this.Uf,boundElement:t})}}return s})();function CS(s){return s.nodeName==="SELECT"}function Qc(s){return s.nodeName==="INPUT"}function IS(s){return s.nodeName==="TEXTAREA"||Qc(s)&&!vd(s)&&!_d(s)}function vd(s){return Qc(s)&&s.type==="number"}function _d(s){return Qc(s)&&(s.type==="checkbox"||s.type==="radio")}var wd=(()=>{class s extends ks{constructor(t){super(),this.lt=t,this.fh=new ym("low"),this.yr=e=>this.inputHandler(e),this.Ai=[],this.RT(),this.CT(),this.j=new Ke(e=>{for(let i of e)this.gh(i)&&ve(()=>{this.mh(i,Rt(i))},"low")}),this.le=new or((e,i)=>{switch(i){case"initial":case"added":Dt({type:"change",listener:this.yr,boundElement:e});break;case"removed":xt({type:"change",boundElement:e,listener:this.yr});break}})}onStart(){Dt({type:"keyup",boundElement:document,listener:this.yr}),Dt({type:"change",boundElement:document,listener:this.yr}),ht(this.Ai,t=>t.activate()),this.j.observe(csArray.prototype.join.call(s.IT,",")),this.le.observe()}onStop(){xt({type:"keyup",boundElement:document,listener:this.yr}),xt({type:"change",boundElement:document,listener:this.yr}),ht(this.Ai,t=>t.deactivate()),this.j.disconnect(),this.le.disconnect(),this.fh.clear()}mh(t,e){var i,n,o;if(this.fh.has(t))return;if(this.fh.add(t),CS(t)){let d={type:"InputEvent",inputType:"select",target:Rt(t),selectedIndex:t.selectedIndex,timestamp:K.now()};this.produceEvent(d);return}if(_d(t)){let d={type:"InputEvent",inputType:"checkable",target:Rt(t),checked:t.checked,timestamp:K.now()};this.produceEvent(d);return}let c=IS(t),u=vd(t);if(c||u){let d=(i=t.value)!==null&&i!==void 0?i:"";if(!((n=this.lt)===null||n===void 0)&&n.shouldEncrypt(t)){(o=this.lt)===null||o===void 0||o.registerInputNodeToEncrypt({targetId:e,targetValue:d,date:K.now()});return}let E=u?"0":"\u2022",f={type:"InputEvent",inputType:"text",target:Rt(t),value:csString.prototype.replace.call(d,/\S/g,E),timestamp:K.now()};this.produceEvent(f)}}inputHandler(t){if(!this.isStarted)return;let e=te(t),i=Rt(e);!i||!this.gh(e)||Ct.isConnected(e)&&ve(()=>{this.mh(e,i)},"low")}RT(){this.trackChanges(HTMLInputElement,"checked"),this.trackChanges(HTMLInputElement,"value"),this.trackChanges(HTMLTextAreaElement,"value")}CT(){this.trackChanges(HTMLSelectElement,"selectedIndex"),this.trackChanges(HTMLSelectElement,"value"),this.trackChanges(HTMLOptionElement,"selected",!0)}trackChanges(t,e,i=!1){let n=Xn(t.prototype,e,(o,c,u)=>{if(u!==c&&Ct.isConnected(o)){let d=i?o.parentElement:o;this.PT(d)}});n&&csArray.prototype.push.call(this.Ai,n)}gh(t){return!Y.isMaskedElement(t)&&!Y.isMaskedElementChild(t)&&(eo(t)||Ac(t)||bc(t))}PT(t){if(this.isStarted&&Ct.isConnected(t)){let e=Rt(t);e&&this.gh(t)&&ve(()=>{this.mh(t,e)},"low")}}}return s.IT=["textarea","input:not([type])",'input[type="text"]','input[type="email"]','input[type="search"]','input[type="tel"]','input[type="url"]','input[type="password"]','input[type="number"]','input[type="checkbox"]','input[type="radio"]',"select"],Ms([Pt()],s.prototype,"inputHandler",null),Ms([G()],s.prototype,"trackChanges",null),s})(),PS=(()=>{class s{constructor(t=Number.POSITIVE_INFINITY){this.ti=[],this.ot=[],this.OT=t}next(t){this.ot.length===this.OT&&csArray.prototype.shift.call(this.ot),csArray.prototype.push.call(this.ot,t),this.ot.length===1&&csSetTimeout(()=>this.clear());for(let e of this.ti)e(t)}subscribe(t){if(Ps(this.ti,i=>t===i))return()=>{this.ti=csArray.prototype.filter.call(this.ti,i=>i!==t)};csArray.prototype.push.call(this.ti,t);for(let i of this.ot)t(i);return()=>{this.ti=csArray.prototype.filter.call(this.ti,i=>i!==t)}}clear(){this.ot=[]}hasObservers(){return this.ti.length>0}}return s})(),Td=(()=>{var s;class r{constructor(e){this.A=e}observe(){this.NT=s.On.subscribe(e=>this.A(e)),s._a||(s._a=!0,s.Pn.observe(),_e(document,NodeFilter.SHOW_ELEMENT).visitAll(i=>{s.ws.add(i),s.On.next(i)}))}disconnect(){s._a&&(this.NT(),s.On.hasObservers()||(s._a=!1,s.Pn.disconnect(),s.On.clear(),s.ws.clear()))}}return s=r,r.ws=new no,r.On=new PS,r.MT=Ri(t=>{ve(()=>{for(let e of t)e.type==="childList"&&ht(e.addedNodes,i=>{_e(i,NodeFilter.SHOW_ELEMENT).visitAll(o=>{s.ws.has(o)||(s.ws.add(o),s.On.next(o))})})})},"ElementObserver.findAllElements"),r._a=!1,r.Pn=new Je(s.MT),St([G()],r.prototype,"observe",null),St([G()],r.prototype,"disconnect",null),r})(),bd=(()=>{class s extends ks{constructor(){super(),this.vs=typeof window.customElements=="object"&&typeof window.customElements.whenDefined=="function"&&typeof window.Promise=="function",this.kT=si("CustomElementRegistrationProducer:onElementsFound",e=>{for(let i of e)Y.isMaskedElement(i)||Y.isMaskedElementChild(i)||Rf(i)&&this.register(csString.prototype.toLowerCase.call(i.tagName))});let t=oo(this.kT);this.Nn=new Td(e=>t.push(e)),this.Zs=new Set}onStart(){this.vs&&this.Nn.observe()}onStop(){this.Zs.clear(),this.Nn.disconnect()}async register(t){this.Zs.has(t)||(this.Zs.add(t),await window.customElements.whenDefined(t),this.produceEvent({type:"CustomElementRegistration",tagName:csString.prototype.toLowerCase.call(t)}))}}return Ms([G()],s.prototype,"register",null),s})(),mh=(()=>{class s{static isNavigationTimingObserverSupported(){var t,e;return(((t=window.PerformanceObserver)===null||t===void 0?void 0:t.supportedEntryTypes)==null?void 0:csArray.prototype.indexOf.call((e=window.PerformanceObserver)===null||e===void 0?void 0:e.supportedEntryTypes,"navigation"))>=0}static getTimeOrigin(){return window.performance.timeOrigin}static Bf(){if(this.isNavigationTimingObserverSupported())return new window.PerformanceObserver(t=>s.DT(t))}static DT(t){let i=t.getEntriesByType("navigation")[0];i&&(this.Vi=i,s.Er(i))}static Ur(t){this.xT(t),this.Vi&&t(this.Vi),this.ke||this.LT()}static xT(t){this.Mt.add(t)}static VT(t){this.Mt.delete(t)}static LT(){if(this.Mn||(this.Mn=this.Bf()),!this.Mn){this.Vi||(this.Vi={requestStart:window.performance.timing.requestStart,domInteractive:window.performance.timing.domInteractive}),this.Er(this.Vi);return}this.Mn.observe({type:"navigation",buffered:!0}),this.ke=!0}static Er(t){this.Mt.forEach(e=>e(t))}static Hr(t){this.VT(t),this.Mt.size===0&&this.kn()}static kn(){var t;this.ke&&((t=this.Mn)===null||t===void 0||t.disconnect(),this.ke=!1,this.Vi=null,this.Mn=this.Bf())}constructor(t){this.A=t}observe(){s.Ur(this.A)}disconnect(){s.Hr(this.A)}}return s.ke=!1,s.Mt=new Set,s.Vi=null,s})(),Ad=(()=>{class s extends ks{constructor(){super(...arguments),this.wa=null,this.Ff=new mh(t=>{if(this.wa)return;let e=this.UT(t);e&&(this.wa=e,this.produceEvent(e))})}onStart(){if(this.wa){this.produceEvent(this.wa);return}this.Ff.observe()}onStop(){this.Ff.disconnect()}UT(t){let e=mh.getTimeOrigin();return{type:"PerformanceTiming",timings:{timeOrigin:e,requestStart:Math.floor(e+t.requestStart),domInteractive:Math.floor(e+t.domInteractive)},timestamp:K.now()}}}return s})(),OS="touchstart",NS="touchmove",MS="touchend",Rd=(()=>{class s{constructor(t){this.A=t}observe(){s.$f&&s.yh(this.A)}disconnect(){s.$f&&s.Eh(this.A)}static jT(t,e){csArray.prototype.forEach.call(ii(s.Mt),i=>i(t,e))}static yh(t){s.Mt.has(t)||(s.Mt.add(t),s.Mt.size===1&&(s.Dn.onGesture(s.jT),csArray.prototype.forEach.call(s.Us,e=>Dt(e))))}static Eh(t){s.Mt.delete(t),s.Mt.size===0&&csArray.prototype.forEach.call(s.Us,e=>xt(e))}static Sh(t){if(s.Dn.isValidTouchEvent(t))switch(t.type){case"touchstart":s.Dn.processActionDown(t);break;case"touchmove":s.Dn.processActionMove();break;case"touchend":s.Dn.processActionUp(t);break}}}return s.Us=[{boundElement:_t.document,type:OS,listener:r=>s.Sh(r)},{boundElement:_t.document,type:NS,listener:r=>s.Sh(r)},{boundElement:_t.document,type:MS,listener:r=>s.Sh(r)}],s.$f=qa.isGestureDetectionSupported(),s.Mt=new Set,s.Dn=new qa,s})(),Cd=(()=>{class s extends ks{constructor(){super(),this.xn=new Rd(this.xc.bind(this))}onStart(){this.xn.observe()}onStop(){this.xn.disconnect()}xc(t){let e=this.HT(t);e&&this.produceEvent(e)}HT(t){if(!this.BT(t))return null;let e=Nm(t.target);return e?{type:"Gesture",targetId:e,data:{type:t.type,direction:t.direction,distance:t.distance,velocity:t.velocity,pageX:t.pageX,pageY:t.pageY}}:null}BT(t){return t.target!==null&&!(Mt(t.target)&&Y.isMaskedElementChild(t.target))}}return s})(),qi=[],cc=!1,Id=Ri(DS,"executeTasks");function kS(s){if(csArray.prototype.push.call(qi,s),!cc){for(let r=0;r<3;r++)csSetTimeout(Id);cc=!0}}function DS(){let s=csDate.now();for(let r=0;r=35){qi=csArray.prototype.slice.call(qi,r+1),csSetTimeout(Id);return}qi=[],cc=!1}var Gs=(()=>{let s;return function(r){r[r.Started=0]="Started",r[r.Stopped=1]="Stopped",r[r.Processing=2]="Processing",r[r.Completed=3]="Completed"}(s||(s={})),s})(),Pd=(()=>{class s{constructor(){this.kt=new zr,this.Pt=Gs.Stopped,this.A=null,this.qf=t=>{this.Pt===Gs.Stopped||!t||(this.A(t),this.Wf())}}get queueLength(){return this.kt.length}start(t){if(this.A)throw new Error("callback already set");this.Pt=Gs.Started,this.A=t}push(t){this.kt.push(t),this.vh()}stop(){this.A=null,this.Pt=Gs.Stopped,this.kt.clear()}static pipe(t,e){let i=t,n=new csArray;for(let c of e){let u=new s;u.start(d=>{c.pushEvent(d)}),csArray.prototype.push.call(n,u),ht(i,d=>d.subscribe(E=>u.push(E))),i=[c]}let o=new xS(n);return ht(i,c=>c.subscribe(u=>o.push(u))),o}Yf(){return this.Pt===Gs.Stopped}rs(){return this.Pt===Gs.Processing}Wf(){if(!this.Yf()){if(this.kt.isEmpty){this.Pt=Gs.Completed;return}this.Pt=Gs.Processing,kS(()=>{let t=this.kt.pop();t instanceof Kc?t.complete(this.qf):this.qf(t)})}}vh(){this.Yf()||this.rs()||this.Wf()}}return s})(),xS=(()=>{class s extends Pd{constructor(t){super(),this.Xf=t}get queueLength(){return csArray.prototype.reduce.call(this.Xf,(t,e)=>t+e.queueLength,0)}stop(){super.stop(),ht(this.Xf,t=>t.stop())}}return s})(),Od=(()=>{class s{constructor(t,e=[]){this.producers=t,this.processors=e,this.F=!1,this.Mt=[]}get pendingEvents(){var t,e;return(e=(t=this.kt)===null||t===void 0?void 0:t.queueLength)!==null&&e!==void 0?e:0}start(){if(this.F)throw new Error("Recording is already started.");let t=this.Mt;this.kt=Pd.pipe(this.producers,this.processors),this.kt.start(e=>csArray.prototype.forEach.call(t,i=>i(e))),ht(this.producers,e=>e.start()),ht(this.processors,e=>e.start()),this.F=!0}stop(){this.kt.stop(),this.Mt.length=0;for(let t of this.producers)t.stop();for(let t of this.processors)t.stop();this.F=!1,this.Mt=[]}subscribe(t){if(this.F)throw new Error("Recording is already started.");return csArray.prototype.push.call(this.Mt,t),()=>this.Mt=csArray.prototype.filter.call(this.Mt,e=>e!==t)}}return s})(),LS=(()=>{class s{constructor(t){this.ba={},this.Oe=new Yc(t)}save({key:t,metadata:e,events:i}){this.Oe.isThresholdReached()||(this.Oe.addString(t),typeof i=="string"?this.Oe.addString(i):this.Oe.addArrayBuffer(i),!this.Oe.isThresholdReached()&&(this.ba[t]={metadata:e,events:i}))}recover(t){let e=[];csArray.prototype.forEach.call(this.qT(),i=>{let n=this.ba[i];n!==void 0&&(delete n.metadata.datatype,csArray.prototype.push.call(e,n),this.WT(i))}),e.length!==0&&(t(e),this.Oe.reset())}qT(){return Object.keys(this.ba)}WT(t){delete this.ba[t]}}return s})(),qs=(()=>{let s;return function(r){r[r.NOT_STARTED=0]="NOT_STARTED",r[r.OPEN_IN_PROGRESS=1]="OPEN_IN_PROGRESS",r[r.OPEN_FAILED=2]="OPEN_FAILED",r[r.READY=3]="READY"}(s||(s={})),s})(),VS=(()=>{class s{constructor(t,e,i){this.ir=t,this.YT=i,this.Ui=qs.NOT_STARTED,this.Aa=[],this._h=0,this.XT=self.origin,this.Pe=typeof window=="object"?"":"worker-",this.Oe=new Yc(e),this.Vl()}async Vl(){await this.Kf(),this.Ui===qs.READY?this.KT():this.YT(this.Aa)}KT(){csArray.prototype.forEach.call(this.Aa,t=>{this.save(t)}),this.Aa=[]}async save(t){try{if(this.Ui===qs.OPEN_IN_PROGRESS){csArray.prototype.push.call(this.Aa,t);return}if(this.Ui!==qs.READY||this.Oe.isThresholdReached())return;let{key:e,metadata:i,events:n}=t;if(this.Oe.addString(e),typeof n=="string"?this.Oe.addString(n):this.Oe.addArrayBuffer(n),this.Oe.isThresholdReached())return;await this.se.put(`${this.XT}/${e}`,new Response(n,{headers:i}))}catch{}}async recover(t){!this.se&&(await this.Kf(),this.Ui!==qs.READY)||this.JT(t)}async Kf(){try{this.Ui=qs.OPEN_IN_PROGRESS,this.se=await self.caches.open(`${this.Pe}${this.ir}`),this.Ui=qs.READY}catch{this.Ui=qs.OPEN_FAILED}}async JT(t){try{if(this._h++,this._h>1)return;let e=await this.se.keys();if(e.length===0)return;let i=await this.se.matchAll(),n=csArray.prototype.map.call(i,c=>{let u={};c.headers.forEach((E,f)=>{u[f]=E}),delete u["content-type"];let d=u.datatype;return delete u.datatype,d==="json"||d==="base64"?c.text().then(E=>({metadata:u,events:E})):c.arrayBuffer().then(E=>({metadata:u,events:E}))}),o=await Promise.all(n);await Promise.all(csArray.prototype.map.call(e,c=>this.se.delete(c))),t(o),this.Oe.reset()}catch{}finally{this._h--}}}return s})(),US=(()=>{class s{constructor(t){try{this.QT(t)}catch{this.Th()}}QT(t){self.caches?this.ZT(t):this.Th()}save(t){this.Ra.save(t)}recover(t){this.Ra.recover(t)}ZT(t){this.Ra=new VS(t,s.Jf,e=>{this.Th(e)})}Th(t){this.Ra=new LS(s.Jf),t&&csArray.prototype.forEach.call(t,e=>{this.Ra.save(e)})}}return s.Jf=1024*1024*16,s})(),jS=(()=>{class s{constructor(t,e){this.S=t,this.R=e,this.Ln=Ve.ETR_DISABLED,this.Ca=Ve.ETR_PENDING,this.bh=!0}getEtrStatus(t){t===void 0&&(t=this.R.getSession());let e=t==null?void 0:t.etrStatus;return this.Qf()&&e===Ve.ETR_SAVED_SESSION?e:this.Ln}onEventTriggerRecording(t,e){switch(e){case Zs.ETR_PAGE:this.Zf(Ve.ETR_SAVED_PAGE);break;case Zs.ETR_LEGACY:case Zs.ETR_SESSION:this.Zf(Ve.ETR_SAVED_SESSION);break}}onCollectStateChange(t,e){t===tt.RECORDING_TEMPORARILY?this.bh=!0:this.bh=!1,t===tt.ANALYTICS_ONLY&&e===Se.ETR_ON?this.tg(this.Ca):this.tg(Ve.ETR_DISABLED)}tg(t){this.Ln=t,this.Ca=Ve.ETR_PENDING,this.eg(t),this.S.emitRecordingContextChange()}Zf(t){this.bh?Number(t)>Number(this.Ca)&&(this.Ca=t):this.Qf()&&Number(t)>Number(this.Ln)&&(this.Ln=t,this.eg(t),this.S.emitRecordingContextChange())}eg(t){let e=this.R.getSession();e!==null&&e.etrStatus===Ve.ETR_NOT_SAVED_SESSION&&t===Ve.ETR_SAVED_SESSION&&(e.etrStatus=t,this.R.setSession(e))}Qf(){return this.Ln!==Ve.ETR_DISABLED}}return s})(),Z=(()=>{let s;return function(r){r[r.MUTATION_INSERT=1]="MUTATION_INSERT",r[r.MUTATION_REMOVE=2]="MUTATION_REMOVE",r[r.MUTATION_ATTRIBUTE=3]="MUTATION_ATTRIBUTE",r[r.MUTATION_CHARACTER_DATA=4]="MUTATION_CHARACTER_DATA",r[r.INITIAL_DOM=5]="INITIAL_DOM",r[r.SCROLL=6]="SCROLL",r[r.CLICK=8]="CLICK",r[r.RESIZE=9]="RESIZE",r[r.INPUT_CHECKABLE=10]="INPUT_CHECKABLE",r[r.INPUT_SELECT=11]="INPUT_SELECT",r[r.INPUT_TEXT=12]="INPUT_TEXT",r[r.HASH_CHANGE=13]="HASH_CHANGE",r[r.UNANONYMIZED_CONSENT_GRANTED=14]="UNANONYMIZED_CONSENT_GRANTED",r[r.UNANONYMIZED_CONSENT_WITHDRAWN=15]="UNANONYMIZED_CONSENT_WITHDRAWN",r[r.MOUSE_OVER=16]="MOUSE_OVER",r[r.VISIBILITY_CHANGE=17]="VISIBILITY_CHANGE",r[r.STYLESHEET_RULE_INSERT=18]="STYLESHEET_RULE_INSERT",r[r.STATIC_RESOURCE_URL=19]="STATIC_RESOURCE_URL",r[r.PERFORMANCE_TIMINGS=20]="PERFORMANCE_TIMINGS",r[r.ATTACH_SHADOW=22]="ATTACH_SHADOW",r[r.STYLESHEET_CSS_TEXT_UPDATE=23]="STYLESHEET_CSS_TEXT_UPDATE",r[r.JAVASCRIPT_ERROR=26]="JAVASCRIPT_ERROR",r[r.PAGE_EVENT=27]="PAGE_EVENT",r[r.API_ERROR=28]="API_ERROR",r[r.TEXT_VISIBILITY=29]="TEXT_VISIBILITY",r[r.MUTATION_ENCRYPTED_CHARACTER_DATA=30]="MUTATION_ENCRYPTED_CHARACTER_DATA",r[r.INPUT_ENCRYPTED_TEXT=31]="INPUT_ENCRYPTED_TEXT",r[r.KEY_DOWN=32]="KEY_DOWN",r[r.KEY_UP=33]="KEY_UP",r[r.CLIPBOARD_COMMAND=34]="CLIPBOARD_COMMAND",r[r.STYLESHEET_RULE_DELETE=37]="STYLESHEET_RULE_DELETE",r[r.USER_IDENTIFIER=38]="USER_IDENTIFIER",r[r.TOUCH_START=41]="TOUCH_START",r[r.TOUCH_MOVE=42]="TOUCH_MOVE",r[r.TOUCH_END=43]="TOUCH_END",r[r.GESTURE_RECOGNITION=44]="GESTURE_RECOGNITION",r[r.POINTER_DOWN=47]="POINTER_DOWN",r[r.POINTER_MOVE=48]="POINTER_MOVE",r[r.POINTER_UP=49]="POINTER_UP",r[r.CUSTOM_ERROR=50]="CUSTOM_ERROR",r[r.CUSTOM_ELEMENT_REGISTRATION=54]="CUSTOM_ELEMENT_REGISTRATION",r[r.REGISTER_ADOPTED_STYLE_SHEET=60]="REGISTER_ADOPTED_STYLE_SHEET",r[r.SET_ADOPTED_STYLE_SHEETS=61]="SET_ADOPTED_STYLE_SHEETS",r[r.ADOPTED_STYLESHEET_RULE_INSERT=62]="ADOPTED_STYLESHEET_RULE_INSERT",r[r.ADOPTED_STYLESHEET_RULE_DELETE=63]="ADOPTED_STYLESHEET_RULE_DELETE",r[r.SCREEN_RESIZE=65]="SCREEN_RESIZE",r[r.RESOURCE_HASHES=66]="RESOURCE_HASHES",r[r.PERFORMANCE_NAVIGATION_TIMING=67]="PERFORMANCE_NAVIGATION_TIMING",r[r.PERFORMANCE_RESOURCE_TIMING=68]="PERFORMANCE_RESOURCE_TIMING",r[r.RECORDING_INFO_EVENT=72]="RECORDING_INFO_EVENT",r[r.TEXT_REF=73]="TEXT_REF",r[r.TOUCH_CANCEL=74]="TOUCH_CANCEL",r[r.MUTATION_MOVE=75]="MUTATION_MOVE",r[r.STYLESHEET_RULE_UPDATE=76]="STYLESHEET_RULE_UPDATE",r[r.ADOPTED_STYLESHEET_RULE_UPDATE=77]="ADOPTED_STYLESHEET_RULE_UPDATE",r[r.VIDEO_PLAY=78]="VIDEO_PLAY",r[r.VIDEO_PAUSE=79]="VIDEO_PAUSE",r[r.VIDEO_SEEK=80]="VIDEO_SEEK",r[r.ADOPTED_STYLESHEET_DISABLED=98]="ADOPTED_STYLESHEET_DISABLED",r[r.STYLESHEET_DISABLED=99]="STYLESHEET_DISABLED",r[r.DEBUG=999]="DEBUG"}(s||(s={})),s})(),Cr=(()=>{let s;return function(r){r[r.SWIPE=0]="SWIPE",r[r.PINCH_IN=1]="PINCH_IN",r[r.PINCH_OUT=2]="PINCH_OUT",r[r.LONG_PRESS=3]="LONG_PRESS",r[r.TAP=4]="TAP",r[r.DOUBLE_TAP=5]="DOUBLE_TAP"}(s||(s={})),s})();function HS(s,r,t){let{timestamp:e}=s;switch(s.domEvent){case"initialDOM":{let{initialDOM:i}=s,n={type:Z.INITIAL_DOM,date:e,args:[i]};t.emitInitialDomDone(n);break}case"nodesAdded":{csArray.prototype.forEach.call(s.nodes,i=>{r({type:Z.MUTATION_INSERT,date:e,args:[s.target,s.nextSibling,i]})});break}case"nodesMoved":{for(let i of s.nodesIds)r({type:Z.MUTATION_MOVE,date:e,args:[i,s.nextSibling,s.target]});break}case"nodesRemoved":{csArray.prototype.forEach.call(s.nodesIds,i=>{r({type:Z.MUTATION_REMOVE,date:e,args:[i]})});break}case"attributeChanged":{let{target:i,namespace:n,attribute:o,newValue:c}=s;r({type:Z.MUTATION_ATTRIBUTE,date:e,args:[i,n,o,c]});break}case"characterDataChanged":{let{target:i,newValue:n}=s;r({type:Z.MUTATION_CHARACTER_DATA,date:e,args:[i,n]});break}case"cssRuleInserted":{let{target:i,rule:n,index:o}=s,c=mt(o)?[i,n,o]:[i,n];r({type:Z.STYLESHEET_RULE_INSERT,date:e,args:c});break}case"cssRuleDeleted":{let{target:i,index:n}=s;r({type:Z.STYLESHEET_RULE_DELETE,date:e,args:[i,n]});break}case"cssRuleUpdated":{let{target:i,rule:n,index:o}=s;r({type:Z.STYLESHEET_RULE_UPDATE,date:e,args:[i,n,o]});break}case"cssStyleSheetDisabled":{let{target:i,disabled:n}=s;r({type:Z.STYLESHEET_DISABLED,date:e,args:[i,n]});break}case"shadowRootAttached":{let{target:i,shadowRoot:n}=s;r({type:Z.ATTACH_SHADOW,date:e,args:[i,n]});break}case"adoptedStyleSheetRegistered":{let{sheetId:i,cssRules:n,disabled:o}=s;r({type:Z.REGISTER_ADOPTED_STYLE_SHEET,date:e,args:[i,{cssRules:n,disabled:o}]});break}case"adoptedStyleSheetsSet":{let{target:i,sheetsIds:n}=s;r({type:Z.SET_ADOPTED_STYLE_SHEETS,date:e,args:[i,n]});break}case"adoptedStyleSheetRuleInserted":{let{sheetId:i,rule:n,index:o}=s,c=mt(o)?[i,n,o]:[i,n];r({type:Z.ADOPTED_STYLESHEET_RULE_INSERT,date:e,args:c});break}case"adoptedStyleSheetRuleDeleted":{let{sheetId:i,index:n}=s;r({type:Z.ADOPTED_STYLESHEET_RULE_DELETE,date:e,args:[i,n]});break}case"adoptedStyleSheetRuleUpdated":{let{sheetId:i,rule:n,index:o}=s,c=[i,n,o];r({type:Z.ADOPTED_STYLESHEET_RULE_UPDATE,date:e,args:c});break}case"adoptedStyleSheetDisabled":{let{sheetId:i,disabled:n}=s,o=[i,n];r({type:Z.ADOPTED_STYLESHEET_DISABLED,date:e,args:o});break}default:W.error("translateDOMEvent: DOMEvent not supported");break}}function BS(s){let r=FS(s.data);return{type:Z.GESTURE_RECOGNITION,args:[s.targetId,r],date:s.timestamp}}function FS(s){let r={type:$S(s.type)};for(let t in s){let e=s[t];e!==void 0&&t!=="type"&&(r[t]=e)}return r}function $S(s){switch(s){case Wt.DRAG:case Wt.FLICK:return Cr.SWIPE;case Wt.LONG_PRESS:return Cr.LONG_PRESS;case Wt.TAP:return Cr.TAP;case Wt.PINCH_IN:return Cr.PINCH_IN;case Wt.PINCH_OUT:return Cr.PINCH_OUT}}function zS(s,r){let t=[],e=!1;return{push(i){if(csArray.prototype.push.call(t,i),t.length===r.batchSize){this.flush();return}r.autoFlushDelay&&r.autoFlushDelay>0&&!e&&(e=!0,csSetTimeout(()=>{e=!1,t.length>0&&this.flush()},r.autoFlushDelay))},flush(){if(!t.length)return;let i=t;t=[],s(i)}}}var GS=20;function qS(s){return zS(r=>{let t={visibleInViewPort:r},e={type:Z.TEXT_VISIBILITY,date:K.now(),args:[t]};s(e)},{batchSize:GS,autoFlushDelay:1e3})}var ba=(()=>{let s;return function(r){r.REQUEST_START="requestStart",r.DOM_INTERACTIVE="domInteractive",r.TIME_ORIGIN="timeOrigin"}(s||(s={})),s})();function WS(s){return{type:Z.PERFORMANCE_TIMINGS,args:[{performanceTiming:ba.REQUEST_START,timestamp:s.timings.requestStart},{performanceTiming:ba.DOM_INTERACTIVE,timestamp:s.timings.domInteractive},{performanceTiming:ba.TIME_ORIGIN,timestamp:s.timings.timeOrigin}],date:s.timestamp}}function YS(s){switch(s.inputType){case"text":return{type:Z.INPUT_TEXT,args:[s.target,s.value],date:s.timestamp};case"select":return{type:Z.INPUT_SELECT,args:[s.target,s.selectedIndex],date:s.timestamp};case"checkable":return{type:Z.INPUT_CHECKABLE,args:[s.target,s.checked],date:s.timestamp}}}var XS=500,Aa=0;function KS(){return{processEvent(s,r){if(s.originalEvent.type===Z.PERFORMANCE_RESOURCE_TIMING)return Aa>=XS?null:(Aa+=1,r({...s.originalEvent,date:s.timestamp}));r(s.originalEvent)},reset(){Aa=0}}}function JS(s){switch(s.videoEventType){case"play":return{type:Z.VIDEO_PLAY,args:[s.nodeId],date:s.timestamp};case"pause":return{type:Z.VIDEO_PAUSE,args:[s.nodeId],date:s.timestamp};case"seeked":{let r=s;return{type:Z.VIDEO_SEEK,args:[r.nodeId,r.newTimePositionInSec],date:s.timestamp}}default:return null}}var Nd=(()=>{class s{get pendingEvents(){return this.Pa.pendingEvents}constructor(t,e,i,n,o){this.Pa=t,this.S=e,this.bs=i,this.As=n,this.Rs=o,this.ie=()=>{},this.Oa=()=>{},this.ig=qS(c=>this.ie(c))}start(){var t,e;this.rg=KS(),this.Pa.subscribe(i=>{var n,o,c,u,d,E;let f=i,{timestamp:_}=f;switch(f.type){case"Legacy":{let w=f.eventType==="user"?(n=this.Oa)!==null&&n!==void 0?n:()=>{}:this.ie;this.rg.processEvent(f,w)}break;case"CustomElementRegistration":{this.ie({type:Z.CUSTOM_ELEMENT_REGISTRATION,date:_,args:[f.tagName]});break}case"DomEvent":{HS(f,this.ie,this.S);break}case"InputEvent":{let w=YS(f);(o=this.Oa)===null||o===void 0||o.call(this,w);break}case"encryptedCharacterDataChanged":{let{target:w,rawData:A,encryptedData:V,encryptionMetadata:U}=f;this.ie({type:Z.MUTATION_ENCRYPTED_CHARACTER_DATA,date:_,args:[w,A,V,U]});break}case"StaticResource":{let{url:w}=f;this.ie({type:Z.STATIC_RESOURCE_URL,date:_,args:[w]});break}case"ResizeMaskedElement":{let{target:w,width:A,height:V}=f;this.ie({type:Z.MUTATION_ATTRIBUTE,date:_,args:[w,"","style",`width:${A}px !important;height:${V}px !important;`]});break}case"Gesture":{let w=BS(i);(c=this.Oa)===null||c===void 0||c.call(this,w);break}case"TextVisibility":{this.ig.push(f.text);break}case"StaticResourceManagerEvent":{(u=this.bs)===null||u===void 0||u.processEvent(f);break}case"screenResize":{let{width:w,height:A}=f,V={type:Z.SCREEN_RESIZE,date:_,args:[w,A]};this.ie(V);break}case"viewportResize":{let{width:w,height:A}=f,V={type:Z.RESIZE,date:_,args:[w,A]};this.ie(V);break}case"PerformanceTiming":{this.ie(WS(f));break}case"CustomError":{let w=(d=this.Rs)===null||d===void 0?void 0:d.translate(f);w&&this.ie(w);break}case"JSError":{let w=(E=this.As)===null||E===void 0?void 0:E.translate(f);w&&this.ie(w);break}case"VideoEvent":{let w=JS(f);w&&this.ie(w);break}case"warning":{W.warn(f.message);break}default:W.error(`WebRecorderEventTranslator: Event not supported (${f.type})`);break}}),this.S.emitInitialDomStart(),(t=this.As)===null||t===void 0||t.start(),(e=this.Rs)===null||e===void 0||e.start(),this.Pa.start()}stop(){var t,e,i;this.reset(),this.flush(),this.Pa.stop(),(t=this.bs)===null||t===void 0||t.flushEvents(),(e=this.As)===null||e===void 0||e.stop(),(i=this.Rs)===null||i===void 0||i.stop()}flush(){this.ig.flush()}onEvent(t,e){var i;this.ie=t,this.Oa=e,(i=this.bs)===null||i===void 0||i.onEvent(n=>this.ie(n))}reset(){this.rg.reset()}}return s})(),Md=(()=>{class s extends ks{constructor(t){super(),this.De=t}subscribe(t){return super.subscribe(t)}onStart(){ht(this.De,t=>{t.onEvent(e=>{var i;return this.Sr(e,(i=t.eventType)!==null&&i!==void 0?i:"browser")})}),ht(this.De,t=>{var e;(e=t.start)===null||e===void 0||e.call(t)})}onStop(){ht(this.De,t=>{var e;return(e=t.stop)===null||e===void 0?void 0:e.call(t)})}Sr(t,e){this.produceEvent({timestamp:K.now(),type:"Legacy",originalEvent:t,eventType:e})}}return s})(),ce=(()=>{let s;return function(r){r[r.Active=0]="Active",r[r.Paused=1]="Paused",r[r.Stopped=2]="Stopped"}(s||(s={})),s})(),QS=(()=>{class s{constructor(t,e,i=[]){this.Sr=t,this.Ah=e,this.nb=i,this.Na=null,this.Pt=ce.Active,this.ot=[]}reset(){this.Na=null,this.ot=[],this.Pt=ce.Active}disconnect(){this.Pt=ce.Stopped}ob(){this.Ah(ce.Paused),this.Pt=ce.Paused,csSetTimeout(()=>{this.Pt===ce.Paused&&this.Rh()},s.STOP_TIMEOUT)}ab(){this.Ah(ce.Active),this.Pt=ce.Active,ht(this.ot,this.Sr),this.ot=[]}Rh(){this.ot=[],this.Ah(ce.Stopped),this.Pt=ce.Stopped}pushEvent(t,e){if(e.isUserEvent&&(this.Na=t.date,this.Pt!==ce.Active)){this.ab(),this.Sr(t);return}if(this.cb(t)){this.Sr(t);return}switch(this.Pt){case ce.Active:if(this.lb(t,e)){this.ob(),csArray.prototype.push.call(this.ot,t);return}this.Sr(t);break;case ce.Paused:csArray.prototype.push.call(this.ot,t);break;case ce.Stopped:break}}lb(t,e){return!e.isUserEvent&&this.Na!==null&&t.date-this.Na>s.INACTIVITY_TIMEOUT}cb(t){return csArray.prototype.indexOf.call(this.nb,t.type)>-1}}return s.INACTIVITY_TIMEOUT=5e3,s.STOP_TIMEOUT=5e3,s})(),ZS=2e3,tv=(()=>{class s extends re{constructor(t,e,i,n,o,c,u,d,E,f,_,w,A,V,U=[],P,C,F,j,M){super(),this.f=t,this.B=e,this.hb=i,this.We=n,this.G=o,this.R=c,this.$e=u,this.Et=d,this.Me=E,this.lt=f,this.W=_,this.Dt=w,this.Ct=A,this.xe=V,this.De=U,this.ng=P,this.Le=C,this.Un=F,this.As=j,this.Rs=M,this.Ws=0,this.Fs=new Bc,this.vr={allowFromQuotaService:!0,allowFromSerialization:!0},this.og=co(()=>{this.B.eventsCount()>0&&this.ag()},ZS),this.Cs=J=>this.processBrowserEvent(J),this.Hn=J=>this.Nt(J),this.cg=0,this.Ma=0,this.Be=new Fu,this.Ch=!1,this.lg=50*1024,this.ji=!1,this.Bn=!1,this.xi=[],this.ka=new QS(J=>this.J(J),J=>{switch(J){case ce.Active:this.db();break;case ce.Stopped:this.pb();break}},[Z.RESOURCE_HASHES,Z.TEXT_VISIBILITY,Z.API_ERROR,Z.JAVASCRIPT_ERROR]),this.hg=J=>{this.Dt.removeBatchInProgress(`${J.params.sn}.${J.params.pn}.${J.params.ri}`)}}init(){this.Ih(),this.W.onLoad(this.hg),this.W.onError(this.hg)}db(){csArray.prototype.forEach.call(this.ng,t=>t.start())}pb(){csArray.prototype.forEach.call(this.ng,t=>t.stopForInactivity())}Ih(){var t,e,i;this.xe.onEvent(this.Cs,this.Hn),(t=this.lt)===null||t===void 0||t.onInputNodeToEncrypt(this.Hn),(e=this.lt)===null||e===void 0||e.onApiErrorToEncrypt(n=>{this.ug(n)}),(i=this.lt)===null||i===void 0||i.onUserIdentifierToEncrypt(this.Cs),this.Be.onEvent(n=>{if(csSetTimeout(()=>this.Hi("page-state",n)),n!==je.Visible){if(n===je.Blur)return this.dg();if(!this.Ch)return this.Ch=!0,csSetTimeout(()=>{this.Ch=!1}),n===je.Hidden?this.dg():this.fb()}})}isRecording(){return this.R.hasValidSession()&&this.isStarted}dg(){if(!this.canSendEvents())return;this.xe.flush(),this.Dt.saveBatchesInProgress(),ht(this.De,o=>{var c,u;return ht((u=(c=o.getPendingEvents)===null||c===void 0?void 0:c.call(o))!==null&&u!==void 0?u:[],d=>this.B.addEvent(d))});let t=this.B.getEvents();if(t.length===0)return;this.Hi("pending-events",this.xe.pendingEvents);let e=this.W.getQueryParams();e.rst=this.getRecordingStartTimestamp(),e.let=this.getRecordingLastEventTimestamp();let i=this.We.getCurrentIndex();e.ri=i.toString(),this.Ct.removeQueryParams(),this.Ct.setQueryParams(e),this.Ma=t[t.length-1].date;let n=this.B.stringifyEvents();if(n.length>this.lg){let o=this.pg();if(o.length>0){let c=Ji(o);this.Ct.send(c)||this.Dt.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:c}),this.We.increment()}if(this.B.eventsCount()>0){e.ri=this.We.getCurrentIndex().toString();let c=this.B.stringifyEvents();this.Dt.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:c}),this.We.increment()}}else this.Ct.send(n)||this.Dt.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:n}),this.We.increment();this.Ct.removeQueryParams(),this.B.clearEvents()}fb(){if(!this.canSendEvents())return;this.xe.flush();let t=this.W.getQueryParams();this.Dt.saveBatchesInProgress(),t.rst=this.getRecordingStartTimestamp(),delete t.ri,t.hlm="true",this.Ct.removeQueryParams(),ht(this.De,n=>{var o,c;return ht((c=(o=n.getPendingEvents)===null||o===void 0?void 0:o.call(n))!==null&&c!==void 0?c:[],u=>this.B.addEvent(u))});let e=this.B.getEvents();if(e.length===0){delete t.let,delete t.rst,this.Ct.setQueryParams(t),this.Ct.send(),this.Ct.removeQueryParams();return}this.Hi("pending-events",this.xe.pendingEvents),this.Ma=e[e.length-1].date,t.let=this.getRecordingLastEventTimestamp(),this.Ct.setQueryParams(t);let i=this.B.stringifyEvents();if(i.length>this.lg){let n=this.pg();if(n.length>0){let o=Ji(n);this.Ct.send(o)||this.Dt.save({key:`${t.sn}.${t.pn}.last`,metadata:{...t,datatype:"json"},events:o})}else delete t.let,delete t.rst,delete t.ri,this.Ct.removeQueryParams(),this.Ct.setQueryParams(t),this.Ct.send(),this.Ct.removeQueryParams();if(this.B.eventsCount()>0){t.rst=this.getRecordingStartTimestamp(),t.let=this.getRecordingLastEventTimestamp();let o=this.We.getCurrentIndex();t.ri=o.toString();let c=this.B.stringifyEvents();this.Dt.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:c}),this.We.increment()}}else this.Ct.send(i)||(this.Dt.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:i}),this.We.increment());this.Ct.removeQueryParams(),this.B.clearEvents()}blockSendingEventsFromQuotaService(){this.vr.allowFromQuotaService=!1}allowSendingEventsFromQuotaService(){this.vr.allowFromQuotaService=!0}blockSendingEventsFromSerialization(){this.vr.allowFromSerialization=!1}allowSendingEventsFromSerialization(){this.vr.allowFromSerialization=!0}canSendEvents(){return this.vr.allowFromQuotaService&&this.vr.allowFromSerialization}onIframeJavascriptError(t){var e;if(this.$e&&this.As){(e=this.$e)===null||e===void 0||e.anonymize(t);let i=this.As.translate({message:t.message,colno:t.colno,lineno:t.lineno,filename:t.filename,timestamp:K.now(),type:"JSError"});i&&this.Cs(i)}}onIframeCustomError(t){if(this.Rs){let e=this.Rs.translate({...t,timestamp:K.now(),type:"CustomError"});e&&this.Cs(e)}}onIframeDetailedApiError(t){this.fg(t)}onIframeRecordingUserEvent(t){for(let e of t)this.Nt(e)}onIframeRecordingBrowserEvent(t){if(this.isStarted)for(let e of t)this.processBrowserEvent(e)}processBrowserEvent(t){this.G.isCurrentPageviewValid()&&this.ka.pushEvent(t,{isUserEvent:!1})}Nt(t){this.G.refreshSession(),this.G.isSessionValid()&&this.ka.pushEvent(t,{isUserEvent:!0})}J(t){Ht.general.nbEvents.increase(),this.B.addEvent(t),this.B.isThresholdReached()?this.pushEvents():this.B.isFull()&&this.og(),this.gg(t)}gg(t){this.f.emitDebugEvents&&this.Fs.emit("recordingEvent",{...t,typeName:Z[t.type]})}onStart(){var t;this.Hi("tag-version","15.134.1"),this.Hi("page-state",document.visibilityState),this.ka.reset(),this.Be.start(),this.initStates(),this.xe.start(),this.Et&&this.Me&&this.Et.subscribe(s.Ut,e=>this.fg(e),{detailedEvent:!0}),this.f.emitDebugEvents&&this.Fs.emit("replayRecordingStarted"),csArray.prototype.forEach.call(this.xi,e=>this.mg(e)),this.xi=[],this.ji&&((t=this.Le)===null||t===void 0||t.enableOnlineAssets(),this.ji=!1)}onStop(){var t;this.Be.stop(),this.Et&&this.Et.unsubscribe(s.Ut),this.xe.stop(),this.ka.disconnect(),(t=this.Le)===null||t===void 0||t.disableOnlineAssets()}clearStates(){this.xe.flush(),this.og.cancel(),this.pushEvents(),this.W.removeQueryParams()}initStates(){this.cg=K.now(),this.We.reset(),this.Ws=0,this.W.setQueryParams(this.hb.getRequestParameters())}pushEvents(){ht(this.De,t=>{var e;return(e=t.flushEvents)===null||e===void 0?void 0:e.call(t)}),this.B.eventsCount()>0&&(this.isStarted?this.ag():this.B.clearEvents())}ag(){if(!this.canSendEvents())return;let t=this.B.getEvents();this.Ma=t[t.length-1].date;let e=this.We.getCurrentIndex();this.W.setQueryParams({ri:e.toString(),rst:this.getRecordingStartTimestamp(),let:this.getRecordingLastEventTimestamp()});let i=this.W.getQueryParams();this.Dt.addBatchInProgress(`${i.sn}.${i.pn}.${e}`,this.W.getQueryParams(),t),this.W.send(t),this.We.increment(),this.B.clearEvents(),this.yg&&this.yg()}addInitialDom(t){this.B.addEventByTimestamp(t),this.gg(t)}fg(t){if(this.Un&&(t.plainCustomRequestHeaders||t.plainCustomResponseHeaders||t.requestBodyAttributes||t.responseBodyAttributes||t.customRequestHeaders||t.customResponseHeaders||t.queryParameters||t.requestBody||t.responseBody)){if(this.Un.truncate(t),this.lt){this.lt.registerApiErrorToEncrypt(t);return}t.customRequestHeaders="",t.customResponseHeaders="",t.requestBodyAttributes="",t.responseBodyAttributes="",t.queryParameters="",t.requestBody="",t.responseBody=""}this.ug(t)}ug(t){if(this.Ws{var e;return(e=t.releaseResources)===null||e===void 0?void 0:e.call(t)})}Hi(t,e){if(!this.f.emitRecordInfoEvents)return;let i={date:K.now(),type:Z.RECORDING_INFO_EVENT,args:e==null?[t]:[t,e]};this.B.addEvent(i)}pg(){return this.B.extractEvents(Z.API_ERROR,Z.JAVASCRIPT_ERROR,Z.CUSTOM_ERROR,Z.TEXT_VISIBILITY,Z.POINTER_DOWN)}}return s.Ut="RecordingService",s.Sb=255,s.gb=20,s.Eb="etrp",s.yb="etrs",s.Eg="1",st([ie("addInitialDom")],s.prototype,"addInitialDom",null),s})(),ev=(()=>{class s extends re{constructor(t,e,i){super(),this.Kt=t,this.Ct=e,this.W=i,this.Ph=!1,this.Fn={},this.vb=n=>{if(n.length!==0)for(let o of n){let{metadata:c,events:u}=o;this._b(c.rt)&&this.W.send(u,c)}},window.addEventListener("focus",()=>{this.recover()})}onStart(){this.Fn={}}onStop(){}recover(){this.Kt.recover(this.vb)}addBatchInProgress(t,e,i){this.Fn[t]={metadata:{...e},events:i}}removeBatchInProgress(t){delete this.Fn[t]}blockSendingLastMessage(){this.Ph=!1}allowSendingLastMessage(){this.Ph=!0}sendLastMessageBeacon(){if(this.Ph){let{ri:t,rst:e,let:i,...n}=this.W.getQueryParams();n.hlm="true",this.Ct.setQueryParams(n),this.Ct.send()}}_b(t){return!!t&&csString.prototype.indexOf.call(t,tt.RECORDING_TEMPORARILY)===-1}saveBatchesInProgress(){csArray.prototype.forEach.call(Object.keys(this.Fn),t=>{let{metadata:e,events:i}=this.Fn[t];this.Kt.save({key:`${e.sn}.${e.pn}.${e.ri}`,metadata:{...e,datatype:"json"},events:csJSON.stringify(i)})})}save(t){this.Kt.save(t)}}return st([G("RecordingRecovery")],s.prototype,"recover",null),s})(),sv=(()=>{class s{constructor(){this.Da=1}getCurrentIndex(){return this.Da}increment(){this.Da+=1}reset(){this.Da=1}getRequestParameters(){return{ri:`${this.Da}`}}}return s})(),iv=2*1e3*1024,rv=200,nv=(()=>{class s{constructor(t=[],e=iv){this.Vt=t,this.Nh=new Yc(e)}addEvent(t){this.Nh.addString(Ji(t)),csArray.prototype.push.call(this.Vt,t)}addEventByTimestamp(t){let e=0;for(;e=t.date);e+=1);csArray.prototype.splice.call(this.Vt,e,0,t)}eventsCount(){return this.Vt.length}clearEvents(){this.Nh.reset(),this.Vt=[]}isFull(){return this.eventsCount()>=rv}isThresholdReached(){return this.Nh.isThresholdReached()}getEvents(){return this.Vt}extractEvents(...t){let e=[],i=[];return csArray.prototype.forEach.call(this.Vt,n=>{csArray.prototype.indexOf.call(t,n.type)!==-1?csArray.prototype.push.call(e,n):csArray.prototype.push.call(i,n)}),this.Vt=i,e}stringifyEvents(){return Ji(this.Vt)}YC(t){t.type===Z.INITIAL_DOM&&(window.CSDomSerialized=window.CSDomSerialized?window.CSDomSerialized+1:1)}}return st([ie("RecordingBatch.addEvent")],s.prototype,"addEvent",null),s})();function ye(s,r=0){let t=Math.pow(10,r);return Math.round(s*t)/t}var kd=(()=>{class s{constructor(t,e){this.Ot=t,this.M=e,this.Us=[{boundElement:window,type:"hashchange",listener:()=>this.hashChangeListener()},{boundElement:document,type:"visibilitychange",listener:()=>this.visibilityChangeListener()}]}onEvent(t){this.L=t}start(){this.Ei(),this.triggerInitialEvents()}stop(){this.Si()}Ei(){csArray.prototype.forEach.call(this.Us,t=>Dt(t))}Si(){csArray.prototype.forEach.call(this.Us,t=>xt(t))}triggerInitialEvents(){this.hashChangeListener()}hashChangeListener(){let t={type:Z.HASH_CHANGE,args:[this.M.anonymizePII(this.Ot.href)],date:K.now()};this.L(t)}visibilityChangeListener(){let t={type:Z.VISIBILITY_CHANGE,args:[document.visibilityState],date:K.now()};this.L(t)}}return st([G("hashChange")],s.prototype,"hashChangeListener",null),st([G("visibilityChange")],s.prototype,"visibilityChangeListener",null),s})();function ov(s){if(!L(s))return null;let t=/iP(ad|hone|od).+Version\/(\d+)\..*Safari/i.exec(s);return t?Number(t[2]):null}var av=!!window.chrome,cv=33,Dd=(()=>{class s{constructor(){this.eventType="user",this.kh=[],this.xb=[{type:"pointerup",listener:e=>this.pointerUpListener(e),boundElement:document},{type:"pointermove",listener:e=>this.pointerMoveListener(e),boundElement:document},{type:"pointerdown",listener:e=>this.pointerDownListener(e),boundElement:document}],this.Lb=[{type:"touchstart",listener:e=>this.touchStartListener(e),boundElement:document},{type:"touchmove",listener:e=>this.touchMoveListener(e),boundElement:document},{type:"touchend",listener:e=>this.touchEndCancelListener(e),boundElement:document},{type:"touchcancel",listener:e=>this.touchEndCancelListener(e),boundElement:document}],this.La=[{type:"click",listener:e=>this.clickListener(e),boundElement:document},{type:"keyup",listener:e=>this.keyUpListener(e),boundElement:document},{type:"keydown",listener:e=>this.keyDownListener(e),boundElement:document},{type:"copy",listener:e=>this.copyListener(e),boundElement:document},{type:"cut",listener:e=>this.cutListener(e),boundElement:document},{type:"paste",listener:e=>this.pasteListener(e),boundElement:document},{type:"scroll",listener:e=>this.scrollListener(csEventtarget.apply(e)),boundElement:document},{type:"mouseover",listener:e=>this.mouseOverListener(e),boundElement:document}],this.Dh=[{type:"scroll",listener:e=>this.scrollListener(csEventtarget.apply(e))}];let t=ov(window.navigator.userAgent);(t===null||t&&t>=16)&&csArray.prototype.push.call(this.Dh,{type:"mouseover",listener:e=>this.mouseOverListener(e)}),this.le=new or((e,i)=>{switch(i){case"initial":case"added":this.Ei(e);break;case"removed":this.Si(e);break}})}init(){this.Vb(),this.Ub(),this.Jc()}onEvent(t){csArray.prototype.push.call(this.kh,t)}re(t,e=!1){csArray.prototype.forEach.call(this.kh,i=>i(t,e))}start(){this.lh(),this.Ei(document),this.le.observe()}stop(){this.Si(document),this.le.disconnect(),this.kh=[]}Ub(){this.jb()&&csArray.prototype.push.call(this.La,...this.xb)}Vb(){this.Hb()&&csArray.prototype.push.call(this.La,...this.Lb)}Ei(t){zn(t)?csArray.prototype.forEach.call(this.La,e=>Dt(e)):csArray.prototype.forEach.call(this.Dh,e=>{let i={type:e.type,listener:e.listener,boundElement:t};Dt(i)})}Si(t){zn(t)?csArray.prototype.forEach.call(this.La,e=>xt(e)):csArray.prototype.forEach.call(this.Dh,e=>{let i={type:e.type,listener:e.listener,boundElement:t};xt(i)})}jb(){return"PointerEvent"in window&&typeof window.PointerEvent=="function"}Hb(){return"TouchEvent"in window&&typeof window.TouchEvent=="function"}lh(){this.Bb()}Bb(){let t=Yi.getScrollContainer()||document,e=Rt(t),i=this.Ag(t);if(i.top!==0||i.left!==0){let n={type:Z.SCROLL,args:[e,i.left,i.top],date:K.now()};this.re(n,!0)}}Ag(t){return t===document?{top:window.pageYOffset,left:window.pageXOffset}:{top:t.scrollTop,left:t.scrollLeft}}scrollListener(t){if(Y.isMaskedElement(t)||Y.isMaskedElementChild(t))return;let e=Rt(t),i=this.Ag(t),n={type:Z.SCROLL,args:[e,i.left,i.top],date:K.now()};this.re(n)}mouseOverListener(t){if(Y.isMaskedElementChild(t.target))return;let e=Rt(t.target),i={type:Z.MOUSE_OVER,args:[e],date:K.now()};this.re(i)}clickListener(t){let e=te(t);if(Y.isMaskedElementChild(e))return;let i=Rt(e),n={type:Z.CLICK,args:[i],date:K.now()};this.re(n)}keyUpListener(t){let e=te(t);if(Y.isMaskedElementChild(e))return;let i=Rt(e),n=this.U[t.key];if(n===void 0)return;let o={type:Z.KEY_UP,args:[i,n],date:K.now()};this.re(o)}keyDownListener(t){let e=te(t);if(Y.isMaskedElementChild(e))return;let i=Rt(e),n=this.U[t.key];if(n===void 0)return;let o={type:Z.KEY_DOWN,args:[i,n],date:K.now()};this.re(o)}copyListener(t){let e=te(t);if(Y.isMaskedElementChild(e))return;let i=Rt(e),n={type:Z.CLIPBOARD_COMMAND,args:[i,Xi.COPY],date:K.now()};this.re(n)}cutListener(t){let e=te(t);if(Y.isMaskedElementChild(e))return;let i=Rt(e),n={type:Z.CLIPBOARD_COMMAND,args:[i,Xi.CUT],date:K.now()};this.re(n)}pasteListener(t){let e=te(t);if(Y.isMaskedElementChild(e))return;let i=Rt(e),n={type:Z.CLIPBOARD_COMMAND,args:[i,Xi.PASTE],date:K.now()};this.re(n)}pointerUpListener(t){let e=te(t);if(Y.isMaskedElementChild(e))return;let i=Rt(e),n={type:Z.POINTER_UP,args:[t.pointerId,t.pointerType,ye(t.clientX,1),ye(t.clientY,1),i,t.button],date:K.now()};this.re(n)}pointerMoveListener(t){let e={type:Z.POINTER_MOVE,args:[t.pointerId,t.pointerType,ye(t.clientX,1),ye(t.clientY,1)],date:K.now()};this.re(e)}pointerDownListener(t){let e=te(t);if(Y.isMaskedElementChild(e))return;let i=Rt(e),n={type:Z.POINTER_DOWN,args:[t.pointerId,t.pointerType,ye(t.clientX,1),ye(t.clientY,1),i,t.button,{pageX:ye(t.pageX,1),pageY:ye(t.pageY,1)}],date:K.now()};this.re(n)}touchStartListener(t){if(!t.changedTouches)return;let{changedTouches:e}=t;for(let i=0;i{class s{constructor(){}onScannedAsset(t){this.Va=t}scanCssString(t){this.xh(Lr(t))}scanElement(t,e){Y.getMaskedElementDetails(t).state!==Y.MaskedElementState.NotMasked||e&&Y.isMaskedAttribute(t,e)||(to(t)?this.Fb(t):Tc(t)?this.$b(t,e):(this.zb(t,e),this.Gb(t,e),this.qb(t,e)))}$b(t,e){var i;if((!e||e==="href")&&t.href){let o={assetId:((i=t.sheet)===null||i===void 0?void 0:i.href)||t.href,assetBasePath:window.location.href,assetRawPath:Mu(t)};this.Va({type:"stylesheet",asset:o})}}Fb(t){var e;let i=new Set;if(t.textContent)for(let o of Lr(t.textContent))i.add(o);let n;try{n=(e=t.sheet)===null||e===void 0?void 0:e.cssRules}catch(o){o.name==="SecurityError"||o.name==="InvalidAccessError"||W.error(o.message)}if(n)for(let o=0;othis.Lh(e)),e=>({rawUrl:e,absoluteUrl:Qs(e)})),e=>{let i={assetId:e.absoluteUrl,assetBasePath:window.location.href,assetRawPath:e.rawUrl};this.Va({type:"asset",asset:i})})}Wb(t){return/^https:\/\/\w+:\w+@/.test(t)}}return s})(),lv=30,hv=0,Ld=(()=>{class s{constructor(t,e=lv,i=hv){this.Xb=t,this.Kb=e,this.Jb=i,this.Ge=new zr,this.Ue=!1,this.Vh=0,this.Rg=()=>{for(this.Vh=0;this.Ge.length;){if(this.Vh>=this.Kb){csSetTimeout(this.Rg,this.Jb);return}let n=K.elapsed(),o=this.Ge.pop();if(!o)break;this.runTask(o);let c=K.elapsed()-n;this.Vh+=c}this.Ue=!1}}schedule(t,e=!1){if(!this.Xb||e){t();return}Ht.general.pendingTasks.increase(),this.Ge.push(t),this.Qb()}Qb(){this.Ue||(this.Ue=!0,csSetTimeout(()=>{this.Rg()}))}runTask(t){Ht.general.pendingTasks.decrease(),t()}runPendingTasks(){this.Ge.forEach(t=>{this.runTask(t)}),this.Ge.clear()}clearQueue(){Ht.general.pendingTasks.clear(),Ht.mutations.pendingMutations.clear(),this.Ge.clear()}isEmpty(){return this.Ge.length===0}}return st([G("TaskScheduler"),ie("runTask")],s.prototype,"runTask",null),st([ie("runPendingTasks")],s.prototype,"runPendingTasks",null),s})(),Vd=(()=>{class s{constructor(){this.F=!1,this.Cg=new Xc(t=>t.type==="cssRuleInserted"&&this.Zb(t)),this.tA=oo(t=>{this.F&&t.length>0&&this.O.schedule(()=>ht(t,e=>this.Gn.scanElement(e)))}),this.eA=({type:t,asset:e})=>{var i,n,o;t==="stylesheet"&&((i=this.sA)===null||i===void 0||i.call(this,e)),(n=this.iA)===null||n===void 0||n.call(this,e);let c={date:K.now(),type:Z.STATIC_RESOURCE_URL,args:[e.assetId]};(o=this.L)===null||o===void 0||o.call(this,c)},this.O=new Ld(!0,30,0),this.Nn=new Td(t=>this.rA(t)),this.D=new Je(t=>this.wo(t)),this.Gn=new xd,this.Gn.onScannedAsset(this.eA)}onEvent(t){this.L=t}onAsset(t){this.iA=t}onStyleSheetFound(t){this.sA=t}start(){this.F||(this.F=!0,this.Cg.observe(),this.Nn.observe(),this.D.observe())}stop(){this.F&&(this.Cg.disconnect(),this.Nn.disconnect(),this.D.disconnect(),this.F=!1)}Zb(t){!t.rule||!this.F||this.Gn.scanCssString(t.rule)}rA(t){this.F&&Y.getMaskedElementDetails(t).state===Y.MaskedElementState.NotMasked&&this.tA.push(t)}wo(t){csSetTimeout(()=>{for(let e of t)switch(e.type){case"attributes":this.Gn.scanElement(e.target,e.attributeName);break;case"characterData":this.nA(e.target);break;case"childList":}})}nA(t){$n(t)&&csNodeparentNode.apply(t)&&to(csNodeparentNode.apply(t))&&this.Gn.scanCssString(t.data)}}return s})(),uv="csPersisted",yh="v2/recording",Ud=["isRecording"],Zc=["replay:resourceManager:enableForOnlineResource:nextPageviewOnly","cssrm:onlineAssets:activateForNextPageview"],jd=["replay:resourceManager:getStatus","cssrm:getStatus"],dv=(()=>{class s{constructor(t,e,i,n,o,c,u,d,E,f,_,w,A,V,U,P,C,F,j,M,J,ct){this.js=t,this.R=e,this.f=i,this.ze=n,this.E=o,this.M=c,this.G=u,this.ce=d,this.$e=E,this.Et=f,this.Me=_,this.Tt=w,this.S=A,this.Ys=V,this.oA=U,this.ee=P,this.ue=C,this.tt=F,this.Un=j,this.it=M,this.XC=J,this.lt=ct}init(){var t,e;let i=[],n=[];csArray.prototype.push.call(n,new gd),this.qn=new md(this.it.shouldUseAnonymization(),this.f.whitelistedAttributes,this.M,this.f.anonymizeDigits),this.Bi();let o=new US(uv);this.aA(o);let c=new sv;this.B=new nv;let u=new Vd;csArray.prototype.push.call(i,u);let d=new Fr(c,this.ze,{getRequestParameters:()=>({let:this.recordingService.getRecordingLastEventTimestamp()})},{getRequestParameters:()=>({rst:this.recordingService.getRecordingStartTimestamp()})},{getRequestParameters:()=>({rt:csArray.prototype.join.call(this.R.getCollectStates(),",")})}),E=new $u(`${this.f.getRecordingUri()}/${yh}`);csArray.prototype.push.call(n,this.qn),csArray.prototype.push.call(n,new Ed(this.tt)),csArray.prototype.push.call(n,new Sd),this.Fi=new Dd,this.Fi.init(),csArray.prototype.push.call(i,this.Fi),this.Dt=new ev(o,E,this.W),csArray.prototype.push.call(i,new kd(window.location,this.M));let f=new fd,_=new bS,w=new RS,A=new wd(this.lt),V=new bd,U=[_,this.ce,f,new Md(csArray.prototype.filter.call(i,j=>j)),V,new Ad,new Cd,A,w],P=new Od(U,n),C=new Nd(P,this.S,this.bs,this.As,this.Rs),F=[f,_,w,A,V];this.recordingService=new tv(this.f,this.B,d,c,this.G,this.R,this.$e,this.Et,this.Me,this.lt,this.W,this.Dt,E,C,i,F,this.Le,this.Un,this.As,this.Rs),this.Ys.addListener(this.recordingService),this.oA.addListener(this.recordingService),this.recordingService.init(),this.E.register(Ud,()=>this.R.isReplayRecorded()&&!this.ee.isUrlExcludedForSessionReplay()),this.E.register(Zc,()=>{this.recordingService.activateOnlineAssetsOnNextPageview(),this.S.emitRecordingContextChange()}),this.E.register(jd,()=>this.recordingService.getStaticResourceManagerStatus()),this.Wn=new jS(this.S,this.R),this.Ys.addListener(this.Wn),this.js.enableRecordingContext(this.recordingService,this.R,this.Wn),this.Uh()}onAfterNaturalPageView(){var t;this.ee.isUrlExcludedForSessionReplay()?this.recordingService.resetOnlineAssetsOnPageview():this.recordingService.updateOnlineAssetsOnPageview(),(t=this.KC)===null||t===void 0||t.initState()}onStartTracking(){this.Dt.recover(),this.Bi(),this.R.isReplayRecorded()&&!this.ee.isUrlExcludedForSessionReplay()&&(this.R.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.jh())}onArtificialPageViewEnd(){this.R.isReplayRecorded()&&!this.ee.isUrlExcludedForSessionReplay()&&!this.R.isTemporarilyRecorded()&&this.Dt.sendLastMessageBeacon(),this.recordingService.clearStates()}onAfterArtificialPageView(){this.Bi(),this.R.isReplayRecorded()&&!this.ee.isUrlExcludedForSessionReplay()?(this.R.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.recordingService.updateOnlineAssetsOnPageview(),this.lA()):(this.recordingService.resetOnlineAssetsOnPageview(),this._r())}onBeforeSessionRenewal(){this.recordingService.clearStates(),this._r()}onOptout(){this._r(),this.recordingService.onOptOut()}onReplayUnanonymizationConsentGranted(){this.Bi(),this.recordingService.triggerUnanonymizationConsentGranted(),this.S.emitRecordingContextChange()}onReplayUnanonymizationConsentWithdrawn(){this.Bi(),this.recordingService.triggerUnanonymizationConsentWithdrawn(),this.S.emitRecordingContextChange()}onCollectStateChange(t,e){t===tt.QUOTA_REACHED||t===tt.ANALYTICS_ONLY&&e===Se.ETR_OFF?(this.recordingService.clearEvents(),this._r()):(this.W.setQueryParams({rt:csArray.prototype.join.call(this.R.getCollectStates(),",")}),this.recordingService.allowSendingEventsFromQuotaService(),this.recordingService.pushEvents(),this.Wn.onCollectStateChange(t,e))}onInitialDomStart(){this.recordingService.blockSendingEventsFromSerialization(),this.Dt.blockSendingLastMessage()}onInitialDomDone(t){this.recordingService.allowSendingEventsFromSerialization(),this.recordingService.addInitialDom(t),this.Dt.allowSendingLastMessage(),this.Fi.start(),this.recordingService.pushEvents(),at.counters.longTasks.count>0&&at.counters.longTasks.flush(),at.counters.tasks.count>0&&at.counters.tasks.flush()}onAfterReplayRecordingConsentGranted(){this.R.isReplayRecorded()&&!this.ee.isUrlExcludedForSessionReplay()&&(this.R.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.jh(),this.recordingService.triggerRecordingForSessionGranted())}onAfterReplayRecordingConsentWithdrawn(){this.recordingService.isRecording()&&(this.recordingService.triggerRecordingForSessionWithdrawn(),this.recordingService.clearStates(),this._r())}Uh(){var t,e,i,n;if(!((e=(t=this.f.experimental.sessionReplay)===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0)&&e.filterByHostSelector){let o=(n=(i=this.f.experimental.sessionReplay)===null||i===void 0?void 0:i.shadowRoot)===null||n===void 0?void 0:n.filterByHostSelector;ht(o,c=>{ee(c)&&Je.setShadowRootFilter(u=>{try{return Te.call(u.host,c)}catch{return!1}})})}}jh(){this.recordingService.start(),this.Dt.start(),this.S.emitRecordingContextChange()}_r(){Om(),this.recordingService.stop(),this.Dt.stop(),this.S.emitRecordingContextChange()}lA(){this._r(),this.jh()}aA(t){let e="byteArray";this.W=this.ue.create(`${this.f.getRecordingUri()}/${yh}`,!0,e,t,["rt","v","pid","pn","sn","uu"])}Bi(){var t;let e=this.it.shouldUseAnonymization();this.qn.setAnonymization(e),(t=this.cA)===null||t===void 0||t.setAnonymization(e)}}return st([ie("Recording.onStartTracking")],s.prototype,"onStartTracking",null),st([ie("onInitialDomDone")],s.prototype,"onInitialDomDone",null),s})(),pv=(()=>{class s{constructor(t,e){this.ae=t,this.f=e,this.Ig=!1}enableRecordingContext(t,e,i){this.Ig=!0,this.fr=t,this.R=e,this.Wn=i}getRecordingContext(){var t,e,i;if(!this.Ig)return{isRecording:!1,recordingStartTimestamp:0,etrState:Se.ETR_OFF,etrStatus:Ve.ETR_DISABLED,collectState:tt.ANALYTICS_ONLY};let n=this.R.getSession();return{isRecording:this.fr.isRecording(),useAnonymization:this.ae.getSensitiveStatus().useAnonymization,enableOnlineResources:(t=this.fr.getStaticResourceManagerStatus())===null||t===void 0?void 0:t.onlineAssets.activated,enableOnlineResourcesOnNextPageview:(e=this.fr.getStaticResourceManagerStatus())===null||e===void 0?void 0:e.onlineAssets.enabledOnNextPageview,recordingStartTimestamp:parseInt(this.fr.getRecordingStartTimestamp(),10),etrState:this.f.malkaEtrEnabled?Se.ETR_ON:Se.ETR_OFF,etrStatus:this.Wn.getEtrStatus(n),collectState:(i=n==null?void 0:n.collectState)!==null&&i!==void 0?i:tt.ANALYTICS_ONLY}}}return s})(),sr=(()=>{class s{static isRecordingSupported(){return"MutationObserver"in window&&"visibilityState"in document}static isAsyncSerializationSupported(){return"Promise"in window&&"findIndex"in csArray.prototype}}return s})(),fv=(()=>{let s;return function(r){r.COMPRESSION_DISABLED="compressionDisabled"}(s||(s={})),s})(),gv=(()=>{class s{constructor(){}static init(t){(!this.Hh||t!==void 0)&&this.initFlags(t)}static initFlags(t=document.cookie){var e;let i=(e=/_cs_debug=((\w|\.|\:|=)+)/g.exec(t))===null||e===void 0?void 0:e[1];if(this.Hh=new Map,i){let n=csString.prototype.split.call(i,".");for(let o=0;o{var o;let c=i.toString(),u=`${(o=e.constructor)===null||o===void 0?void 0:o.name}.${c}`,d=n.value;mv(s.getString("debugLog"),t)&&(n.value=function(...E){return console.log(u,...E),d.bind(this)(...E)})}}}return s})();function mv(s,r){var t;return s==null?!1:s===r||!!(!((t=csString.prototype.match.call(s,new csRegExp("(^|,)("+r+")(,|$)")))===null||t===void 0)&&t.length)}function Eh(){function i(a){let S=a.length;for(;--S>=0;)a[S]=0}let n=0,o=1,c=2,u=3,d=258,E=29,f=256,_=f+1+E,w=30,A=19,V=2*_+1,U=15,P=16,C=7,F=256,j=16,M=17,J=18,ct=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]),gt=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]),Xt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),$t=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),O=512,z=new Array((_+2)*2);i(z);let X=new Array(w*2);i(X);let it=new Array(O);i(it);let It=new Array(d-u+1);i(It);let Kt=new Array(E);i(Kt);let ne=new Array(w);i(ne);function Qe(a,S,v,T,g){this.static_tree=a,this.extra_bits=S,this.extra_base=v,this.elems=T,this.max_length=g,this.has_stree=a&&a.length}let Ds,le,Vt;function Oe(a,S){this.dyn_tree=a,this.max_code=0,this.stat_desc=S}let hs=a=>a<256?it[a]:it[256+(a>>>7)],Ne=(a,S)=>{a.pending_buf[a.pending++]=S&255,a.pending_buf[a.pending++]=S>>>8&255},At=(a,S,v)=>{a.bi_valid>P-v?(a.bi_buf|=S<>P-a.bi_valid,a.bi_valid+=v-P):(a.bi_buf|=S<{At(a,v[S*2],v[S*2+1])},B=(a,S)=>{let v=0;do v|=a&1,a>>>=1,v<<=1;while(--S>0);return v>>>1},rn=a=>{a.bi_valid===16?(Ne(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=a.bi_buf&255,a.bi_buf>>=8,a.bi_valid-=8)},Oi=(a,S)=>{let v=S.dyn_tree,T=S.max_code,g=S.stat_desc.static_tree,N=S.stat_desc.has_stree,I=S.stat_desc.extra_bits,k=S.stat_desc.extra_base,ot=S.stat_desc.max_length,et,Zt,de,Tt,vs,Bs,bn=0;for(Tt=0;Tt<=U;Tt++)a.bl_count[Tt]=0;for(v[a.heap[a.heap_max]*2+1]=0,et=a.heap_max+1;etot&&(Tt=ot,bn++),v[Zt*2+1]=Tt,!(Zt>T)&&(a.bl_count[Tt]++,vs=0,Zt>=k&&(vs=I[Zt-k]),Bs=v[Zt*2],a.opt_len+=Bs*(Tt+vs),N&&(a.static_len+=Bs*(g[Zt*2+1]+vs)));if(bn!==0){do{for(Tt=ot-1;a.bl_count[Tt]===0;)Tt--;a.bl_count[Tt]--,a.bl_count[Tt+1]+=2,a.bl_count[ot]--,bn-=2}while(bn>0);for(Tt=ot;Tt!==0;Tt--)for(Zt=a.bl_count[Tt];Zt!==0;)de=a.heap[--et],!(de>T)&&(v[de*2+1]!==Tt&&(a.opt_len+=(Tt-v[de*2+1])*v[de*2],v[de*2+1]=Tt),Zt--)}},ni=(a,S,v)=>{let T=new Array(U+1),g=0,N,I;for(N=1;N<=U;N++)T[N]=g=g+v[N-1]<<1;for(I=0;I<=S;I++){let k=a[I*2+1];k!==0&&(a[I*2]=B(T[k]++,k))}},nn=()=>{let a,S,v,T,g,N=new Array(U+1);for(v=0,T=0;T>=7;T{let S;for(S=0;S<_;S++)a.dyn_ltree[S*2]=0;for(S=0;S{a.bi_valid>8?Ne(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0},yo=(a,S,v,T)=>{an(a),T&&(Ne(a,v),Ne(a,~v)),a.pending_buf.set(a.window.subarray(S,S+v),a.pending),a.pending+=v},xs=(a,S,v,T)=>{let g=S*2,N=v*2;return a[g]{let T=a.heap[v],g=v<<1;for(;g<=a.heap_len&&(g{let T,g,N=0,I,k;if(a.last_lit!==0)do T=a.pending_buf[a.d_buf+N*2]<<8|a.pending_buf[a.d_buf+N*2+1],g=a.pending_buf[a.l_buf+N],N++,T===0?wt(a,g,S):(I=It[g],wt(a,I+f+1,S),k=ct[I],k!==0&&(g-=Kt[I],At(a,g,k)),T--,I=hs(T),wt(a,I,v),k=gt[I],k!==0&&(T-=ne[I],At(a,T,k)));while(N{let v=S.dyn_tree,T=S.stat_desc.static_tree,g=S.stat_desc.has_stree,N=S.stat_desc.elems,I,k,ot=-1,et;for(a.heap_len=0,a.heap_max=V,I=0;I>1;I>=1;I--)be(a,v,I);et=N;do I=a.heap[1],a.heap[1]=a.heap[a.heap_len--],be(a,v,1),k=a.heap[1],a.heap[--a.heap_max]=I,a.heap[--a.heap_max]=k,v[et*2]=v[I*2]+v[k*2],a.depth[et]=(a.depth[I]>=a.depth[k]?a.depth[I]:a.depth[k])+1,v[I*2+1]=v[k*2+1]=et,a.heap[1]=et++,be(a,v,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],Oi(a,S),ni(v,ot,a.bl_count)},zt=(a,S,v)=>{let T,g=-1,N,I=S[0*2+1],k=0,ot=7,et=4;for(I===0&&(ot=138,et=3),S[(v+1)*2+1]=65535,T=0;T<=v;T++)N=I,I=S[(T+1)*2+1],!(++k{let T,g=-1,N,I=S[0*2+1],k=0,ot=7,et=4;for(I===0&&(ot=138,et=3),T=0;T<=v;T++)if(N=I,I=S[(T+1)*2+1],!(++k{let S;for(zt(a,a.dyn_ltree,a.l_desc.max_code),zt(a,a.dyn_dtree,a.d_desc.max_code),Ls(a,a.bl_desc),S=A-1;S>=3&&a.bl_tree[$t[S]*2+1]===0;S--);return a.opt_len+=3*(S+1)+5+5+4,S},Qt=(a,S,v,T)=>{let g;for(At(a,S-257,5),At(a,v-1,5),At(a,T-4,4),g=0;g{let S=4093624447,v;for(v=0;v<=31;v++,S>>>=1)if(S&1&&a.dyn_ltree[v*2]!==0)return 0;if(a.dyn_ltree[9*2]!==0||a.dyn_ltree[10*2]!==0||a.dyn_ltree[13*2]!==0)return 1;for(v=32;v{dr||(nn(),dr=!0),a.l_desc=new Oe(a.dyn_ltree,Ds),a.d_desc=new Oe(a.dyn_dtree,le),a.bl_desc=new Oe(a.bl_tree,Vt),a.bi_buf=0,a.bi_valid=0,on(a)},pr=(a,S,v,T)=>{At(a,(n<<1)+(T?1:0),3),yo(a,S,v,!0)},vt=a=>{At(a,o<<1,3),wt(a,F,z),rn(a)},oi=(a,S,v,T)=>{let g,N,I=0;a.level>0?(a.strm.data_type===2&&(a.strm.data_type=Eo(a)),Ls(a,a.l_desc),Ls(a,a.d_desc),I=Jt(a),g=a.opt_len+3+7>>>3,N=a.static_len+3+7>>>3,N<=g&&(g=N)):g=N=v+5,v+4<=g&&S!==-1?pr(a,S,v,T):a.strategy===4||N===g?(At(a,(o<<1)+(T?1:0),3),Ni(a,z,X)):(At(a,(c<<1)+(T?1:0),3),Qt(a,a.l_desc.max_code+1,a.d_desc.max_code+1,I+1),Ni(a,a.dyn_ltree,a.dyn_dtree)),on(a),T&&an(a)},Mi=(a,S,v)=>(a.pending_buf[a.d_buf+a.last_lit*2]=S>>>8&255,a.pending_buf[a.d_buf+a.last_lit*2+1]=S&255,a.pending_buf[a.l_buf+a.last_lit]=v&255,a.last_lit++,S===0?a.dyn_ltree[v*2]++:(a.matches++,S--,a.dyn_ltree[(It[v]+f+1)*2]++,a.dyn_dtree[hs(S)*2]++),a.last_lit===a.lit_bufsize-1);var vo=So,cn=pr,_o=oi,wo=Mi,To=vt,bo={_tr_init:vo,_tr_stored_block:cn,_tr_flush_block:_o,_tr_tally:wo,_tr_align:To},ln=(a,S,v,T)=>{let g=a&65535|0,N=a>>>16&65535|0,I=0;for(;v!==0;){I=v>2e3?2e3:v,v-=I;do g=g+S[T++]|0,N=N+g|0;while(--I);g%=65521,N%=65521}return g|N<<16|0};let Ao=()=>{let a,S=[];for(var v=0;v<256;v++){a=v;for(var T=0;T<8;T++)a=a&1?3988292384^a>>>1:a>>>1;S[v]=a}return S},Ro=new Uint32Array(Ao());var Me=(a,S,v,T)=>{let g=Ro,N=T+v;a^=-1;for(let I=T;I>>8^g[(a^S[I])&255];return a^-1},us={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},un={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,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};let{_tr_init:fr,_tr_stored_block:gr,_tr_flush_block:ds,_tr_tally:he,_tr_align:dn}=bo,{Z_NO_FLUSH:ps,Z_PARTIAL_FLUSH:Vs,Z_FULL_FLUSH:pn,Z_FINISH:Et,Z_BLOCK:ai,Z_OK:qt,Z_STREAM_END:fs,Z_STREAM_ERROR:me,Z_DATA_ERROR:Co,Z_BUF_ERROR:mr,Z_DEFAULT_COMPRESSION:Io,Z_FILTERED:Po,Z_HUFFMAN_ONLY:ki,Z_RLE:fn,Z_FIXED:gn,Z_DEFAULT_STRATEGY:mn,Z_UNKNOWN:Oo,Z_DEFLATED:gs}=un,No=9,Mo=15,ko=8,yr=256+1+29,yn=30,Lo=19,Vo=2*yr+1,Uo=15,ut=3,Be=258,ue=Be+ut+1,Er=32,ms=42,Di=69,xi=73,ci=91,Li=103,ys=113,Fe=666,Ut=1,li=2,ke=3,Us=4,Sr=3,$e=(a,S)=>(a.msg=us[S],S),Vi=a=>(a<<1)-(a>4?9:0),ze=a=>{let S=a.length;for(;--S>=0;)a[S]=0},De=(a,S,v)=>(S<{let S=a.state,v=S.pending;v>a.avail_out&&(v=a.avail_out),v!==0&&(a.output.set(S.pending_buf.subarray(S.pending_out,S.pending_out+v),a.next_out),a.next_out+=v,S.pending_out+=v,a.total_out+=v,a.avail_out-=v,S.pending-=v,S.pending===0&&(S.pending_out=0))},jt=(a,S)=>{ds(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,S),a.block_start=a.strstart,Ae(a.strm)},dt=(a,S)=>{a.pending_buf[a.pending++]=S},xe=(a,S)=>{a.pending_buf[a.pending++]=S>>>8&255,a.pending_buf[a.pending++]=S&255},vr=(a,S,v,T)=>{let g=a.avail_in;return g>T&&(g=T),g===0?0:(a.avail_in-=g,S.set(a.input.subarray(a.next_in,a.next_in+g),v),a.state.wrap===1?a.adler=ln(a.adler,S,g,v):a.state.wrap===2&&(a.adler=Me(a.adler,S,g,v)),a.next_in+=g,a.total_in+=g,g)},_r=(a,S)=>{let v=a.max_chain_length,T=a.strstart,g,N,I=a.prev_length,k=a.nice_match,ot=a.strstart>a.w_size-ue?a.strstart-(a.w_size-ue):0,et=a.window,Zt=a.w_mask,de=a.prev,Tt=a.strstart+Be,vs=et[T+I-1],Bs=et[T+I];a.prev_length>=a.good_match&&(v>>=2),k>a.lookahead&&(k=a.lookahead);do if(g=S,!(et[g+I]!==Bs||et[g+I-1]!==vs||et[g]!==et[T]||et[++g]!==et[T+1])){T+=2,g++;do;while(et[++T]===et[++g]&&et[++T]===et[++g]&&et[++T]===et[++g]&&et[++T]===et[++g]&&et[++T]===et[++g]&&et[++T]===et[++g]&&et[++T]===et[++g]&&et[++T]===et[++g]&&TI){if(a.match_start=S,I=N,N>=k)break;vs=et[T+I-1],Bs=et[T+I]}}while((S=de[S&Zt])>ot&&--v!==0);return I<=a.lookahead?I:a.lookahead},Es=a=>{let S=a.w_size,v,T,g,N,I;do{if(N=a.window_size-a.lookahead-a.strstart,a.strstart>=S+(S-ue)){a.window.set(a.window.subarray(S,S+S),0),a.match_start-=S,a.strstart-=S,a.block_start-=S,T=a.hash_size,v=T;do g=a.head[--v],a.head[v]=g>=S?g-S:0;while(--T);T=S,v=T;do g=a.prev[--v],a.prev[v]=g>=S?g-S:0;while(--T);N+=S}if(a.strm.avail_in===0)break;if(T=vr(a.strm,a.window,a.strstart+a.lookahead,N),a.lookahead+=T,a.lookahead+a.insert>=ut)for(I=a.strstart-a.insert,a.ins_h=a.window[I],a.ins_h=De(a,a.ins_h,a.window[I+1]);a.insert&&(a.ins_h=De(a,a.ins_h,a.window[I+ut-1]),a.prev[I&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=I,I++,a.insert--,!(a.lookahead+a.insert{let v=65535;for(v>a.pending_buf_size-5&&(v=a.pending_buf_size-5);;){if(a.lookahead<=1){if(Es(a),a.lookahead===0&&S===ps)return Ut;if(a.lookahead===0)break}a.strstart+=a.lookahead,a.lookahead=0;let T=a.block_start+v;if((a.strstart===0||a.strstart>=T)&&(a.lookahead=a.strstart-T,a.strstart=T,jt(a,!1),a.strm.avail_out===0)||a.strstart-a.block_start>=a.w_size-ue&&(jt(a,!1),a.strm.avail_out===0))return Ut}return a.insert=0,S===Et?(jt(a,!0),a.strm.avail_out===0?ke:Us):(a.strstart>a.block_start&&(jt(a,!1),a.strm.avail_out===0),Ut)},Ui=(a,S)=>{let v,T;for(;;){if(a.lookahead=ut&&(a.ins_h=De(a,a.ins_h,a.window[a.strstart+ut-1]),v=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),v!==0&&a.strstart-v<=a.w_size-ue&&(a.match_length=_r(a,v)),a.match_length>=ut)if(T=he(a,a.strstart-a.match_start,a.match_length-ut),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=ut){a.match_length--;do a.strstart++,a.ins_h=De(a,a.ins_h,a.window[a.strstart+ut-1]),v=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(--a.match_length!==0);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=De(a,a.ins_h,a.window[a.strstart+1]);else T=he(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(T&&(jt(a,!1),a.strm.avail_out===0))return Ut}return a.insert=a.strstart{let v,T,g;for(;;){if(a.lookahead=ut&&(a.ins_h=De(a,a.ins_h,a.window[a.strstart+ut-1]),v=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=ut-1,v!==0&&a.prev_length4096)&&(a.match_length=ut-1)),a.prev_length>=ut&&a.match_length<=a.prev_length){g=a.strstart+a.lookahead-ut,T=he(a,a.strstart-1-a.prev_match,a.prev_length-ut),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=g&&(a.ins_h=De(a,a.ins_h,a.window[a.strstart+ut-1]),v=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(--a.prev_length!==0);if(a.match_available=0,a.match_length=ut-1,a.strstart++,T&&(jt(a,!1),a.strm.avail_out===0))return Ut}else if(a.match_available){if(T=he(a,0,a.window[a.strstart-1]),T&&jt(a,!1),a.strstart++,a.lookahead--,a.strm.avail_out===0)return Ut}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(T=he(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart{let v,T,g,N,I=a.window;for(;;){if(a.lookahead<=Be){if(Es(a),a.lookahead<=Be&&S===ps)return Ut;if(a.lookahead===0)break}if(a.match_length=0,a.lookahead>=ut&&a.strstart>0&&(g=a.strstart-1,T=I[g],T===I[++g]&&T===I[++g]&&T===I[++g])){N=a.strstart+Be;do;while(T===I[++g]&&T===I[++g]&&T===I[++g]&&T===I[++g]&&T===I[++g]&&T===I[++g]&&T===I[++g]&&T===I[++g]&&ga.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=ut?(v=he(a,1,a.match_length-ut),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(v=he(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),v&&(jt(a,!1),a.strm.avail_out===0))return Ut}return a.insert=0,S===Et?(jt(a,!0),a.strm.avail_out===0?ke:Us):a.last_lit&&(jt(a,!1),a.strm.avail_out===0)?Ut:li},jo=(a,S)=>{let v;for(;;){if(a.lookahead===0&&(Es(a),a.lookahead===0)){if(S===ps)return Ut;break}if(a.match_length=0,v=he(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,v&&(jt(a,!1),a.strm.avail_out===0))return Ut}return a.insert=0,S===Et?(jt(a,!0),a.strm.avail_out===0?ke:Us):a.last_lit&&(jt(a,!1),a.strm.avail_out===0)?Ut:li};function Re(a,S,v,T,g){this.good_length=a,this.max_lazy=S,this.nice_length=v,this.max_chain=T,this.func=g}let Hs=[new Re(0,0,0,0,js),new Re(4,4,8,4,Ui),new Re(4,5,16,8,Ui),new Re(4,6,32,32,Ui),new Re(4,4,16,16,Ze),new Re(8,16,32,32,Ze),new Re(8,16,128,128,Ze),new Re(8,32,128,256,Ze),new Re(32,128,258,1024,Ze),new Re(32,258,258,4096,Ze)],Sn=a=>{a.window_size=2*a.w_size,ze(a.head),a.max_lazy_match=Hs[a.level].max_lazy,a.good_match=Hs[a.level].good_length,a.nice_match=Hs[a.level].nice_length,a.max_chain_length=Hs[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=ut-1,a.match_available=0,a.ins_h=0};function Ho(){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=gs,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(Vo*2),this.dyn_dtree=new Uint16Array((2*yn+1)*2),this.bl_tree=new Uint16Array((2*Lo+1)*2),ze(this.dyn_ltree),ze(this.dyn_dtree),ze(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Uo+1),this.heap=new Uint16Array(2*yr+1),ze(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*yr+1),ze(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 wr=a=>{if(!a||!a.state)return $e(a,me);a.total_in=a.total_out=0,a.data_type=Oo;let S=a.state;return S.pending=0,S.pending_out=0,S.wrap<0&&(S.wrap=-S.wrap),S.status=S.wrap?ms:ys,a.adler=S.wrap===2?0:1,S.last_flush=ps,fr(S),qt},Tr=a=>{let S=wr(a);return S===qt&&Sn(a.state),S},Bo=(a,S)=>!a||!a.state||a.state.wrap!==2?me:(a.state.gzhead=S,qt),ji=(a,S,v,T,g,N)=>{if(!a)return me;let I=1;if(S===Io&&(S=6),T<0?(I=0,T=-T):T>15&&(I=2,T-=16),g<1||g>No||v!==gs||T<8||T>15||S<0||S>9||N<0||N>gn)return $e(a,me);T===8&&(T=9);let k=new Ho;return a.state=k,k.strm=a,k.wrap=I,k.gzhead=null,k.w_bits=T,k.w_size=1<ji(a,S,gs,Mo,ko,mn),br=(a,S)=>{let v,T;if(!a||!a.state||S>ai||S<0)return a?$e(a,me):me;let g=a.state;if(!a.output||!a.input&&a.avail_in!==0||g.status===Fe&&S!==Et)return $e(a,a.avail_out===0?mr:me);g.strm=a;let N=g.last_flush;if(g.last_flush=S,g.status===ms)if(g.wrap===2)a.adler=0,dt(g,31),dt(g,139),dt(g,8),g.gzhead?(dt(g,(g.gzhead.text?1:0)+(g.gzhead.hcrc?2:0)+(g.gzhead.extra?4:0)+(g.gzhead.name?8:0)+(g.gzhead.comment?16:0)),dt(g,g.gzhead.time&255),dt(g,g.gzhead.time>>8&255),dt(g,g.gzhead.time>>16&255),dt(g,g.gzhead.time>>24&255),dt(g,g.level===9?2:g.strategy>=ki||g.level<2?4:0),dt(g,g.gzhead.os&255),g.gzhead.extra&&g.gzhead.extra.length&&(dt(g,g.gzhead.extra.length&255),dt(g,g.gzhead.extra.length>>8&255)),g.gzhead.hcrc&&(a.adler=Me(a.adler,g.pending_buf,g.pending,0)),g.gzindex=0,g.status=Di):(dt(g,0),dt(g,0),dt(g,0),dt(g,0),dt(g,0),dt(g,g.level===9?2:g.strategy>=ki||g.level<2?4:0),dt(g,Sr),g.status=ys);else{let I=gs+(g.w_bits-8<<4)<<8,k=-1;g.strategy>=ki||g.level<2?k=0:g.level<6?k=1:g.level===6?k=2:k=3,I|=k<<6,g.strstart!==0&&(I|=Er),I+=31-I%31,g.status=ys,xe(g,I),g.strstart!==0&&(xe(g,a.adler>>>16),xe(g,a.adler&65535)),a.adler=1}if(g.status===Di)if(g.gzhead.extra){for(v=g.pending;g.gzindex<(g.gzhead.extra.length&65535)&&!(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>v&&(a.adler=Me(a.adler,g.pending_buf,g.pending-v,v)),Ae(a),v=g.pending,g.pending===g.pending_buf_size));)dt(g,g.gzhead.extra[g.gzindex]&255),g.gzindex++;g.gzhead.hcrc&&g.pending>v&&(a.adler=Me(a.adler,g.pending_buf,g.pending-v,v)),g.gzindex===g.gzhead.extra.length&&(g.gzindex=0,g.status=xi)}else g.status=xi;if(g.status===xi)if(g.gzhead.name){v=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>v&&(a.adler=Me(a.adler,g.pending_buf,g.pending-v,v)),Ae(a),v=g.pending,g.pending===g.pending_buf_size)){T=1;break}g.gzindexv&&(a.adler=Me(a.adler,g.pending_buf,g.pending-v,v)),T===0&&(g.gzindex=0,g.status=ci)}else g.status=ci;if(g.status===ci)if(g.gzhead.comment){v=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>v&&(a.adler=Me(a.adler,g.pending_buf,g.pending-v,v)),Ae(a),v=g.pending,g.pending===g.pending_buf_size)){T=1;break}g.gzindexv&&(a.adler=Me(a.adler,g.pending_buf,g.pending-v,v)),T===0&&(g.status=Li)}else g.status=Li;if(g.status===Li&&(g.gzhead.hcrc?(g.pending+2>g.pending_buf_size&&Ae(a),g.pending+2<=g.pending_buf_size&&(dt(g,a.adler&255),dt(g,a.adler>>8&255),a.adler=0,g.status=ys)):g.status=ys),g.pending!==0){if(Ae(a),a.avail_out===0)return g.last_flush=-1,qt}else if(a.avail_in===0&&Vi(S)<=Vi(N)&&S!==Et)return $e(a,mr);if(g.status===Fe&&a.avail_in!==0)return $e(a,mr);if(a.avail_in!==0||g.lookahead!==0||S!==ps&&g.status!==Fe){let I=g.strategy===ki?jo(g,S):g.strategy===fn?En(g,S):Hs[g.level].func(g,S);if((I===ke||I===Us)&&(g.status=Fe),I===Ut||I===ke)return a.avail_out===0&&(g.last_flush=-1),qt;if(I===li&&(S===Vs?dn(g):S!==ai&&(gr(g,0,0,!1),S===pn&&(ze(g.head),g.lookahead===0&&(g.strstart=0,g.block_start=0,g.insert=0))),Ae(a),a.avail_out===0))return g.last_flush=-1,qt}return S!==Et?qt:g.wrap<=0?fs:(g.wrap===2?(dt(g,a.adler&255),dt(g,a.adler>>8&255),dt(g,a.adler>>16&255),dt(g,a.adler>>24&255),dt(g,a.total_in&255),dt(g,a.total_in>>8&255),dt(g,a.total_in>>16&255),dt(g,a.total_in>>24&255)):(xe(g,a.adler>>>16),xe(g,a.adler&65535)),Ae(a),g.wrap>0&&(g.wrap=-g.wrap),g.pending!==0?qt:fs)},$o=a=>{if(!a||!a.state)return me;let S=a.state.status;return S!==ms&&S!==Di&&S!==xi&&S!==ci&&S!==Li&&S!==ys&&S!==Fe?$e(a,me):(a.state=null,S===ys?$e(a,Co):qt)},zo=(a,S)=>{let v=S.length;if(!a||!a.state)return me;let T=a.state,g=T.wrap;if(g===2||g===1&&T.status!==ms||T.lookahead)return me;if(g===1&&(a.adler=ln(a.adler,S,v,0)),T.wrap=0,v>=T.w_size){g===0&&(ze(T.head),T.strstart=0,T.block_start=0,T.insert=0);let ot=new Uint8Array(T.w_size);ot.set(S.subarray(v-T.w_size,v),0),S=ot,v=T.w_size}let N=a.avail_in,I=a.next_in,k=a.input;for(a.avail_in=v,a.next_in=0,a.input=S,Es(T);T.lookahead>=ut;){let ot=T.strstart,et=T.lookahead-(ut-1);do T.ins_h=De(T,T.ins_h,T.window[ot+ut-1]),T.prev[ot&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=ot,ot++;while(--et);T.strstart=ot,T.lookahead=ut-1,Es(T)}return T.strstart+=T.lookahead,T.block_start=T.strstart,T.insert=T.lookahead,T.lookahead=0,T.match_length=T.prev_length=ut-1,T.match_available=0,a.next_in=I,a.input=k,a.avail_in=N,T.wrap=g,qt};var Go=Fo,qo=ji,Ar=Tr,Wo=wr,Yo=Bo,Hi=br,Ss=$o,vn=zo,Xo="pako deflate (from Nodeca project)",ui={deflateInit:Go,deflateInit2:qo,deflateReset:Ar,deflateResetKeep:Wo,deflateSetHeader:Yo,deflate:Hi,deflateEnd:Ss,deflateSetDictionary:vn,deflateInfo:Xo};let Ko=(a,S)=>Object.prototype.hasOwnProperty.call(a,S);var _n=function(a){let S=Array.prototype.slice.call(arguments,1);for(;S.length;){let v=S.shift();if(v){if(typeof v!="object")throw new TypeError(v+"must be non-object");for(let T in v)Ko(v,T)&&(a[T]=v[T])}}return a},di=a=>{let S=0;for(let T=0,g=a.length;T=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;fi[254]=fi[254]=1;var Jo=a=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(a);let S,v,T,g,N,I=a.length,k=0;for(g=0;g>>6,S[N++]=128|v&63):v<65536?(S[N++]=224|v>>>12,S[N++]=128|v>>>6&63,S[N++]=128|v&63):(S[N++]=240|v>>>18,S[N++]=128|v>>>12&63,S[N++]=128|v>>>6&63,S[N++]=128|v&63);return S};let wn=(a,S=a.length)=>{if(S<65534&&a.subarray&&ts)return String.fromCharCode.apply(null,a.length===S?a:a.subarray(0,S));let v="";for(let T=0;T{let v=S||a.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(a.subarray(0,S));let T,g,N=new Array(v*2);for(g=0,T=0;T4){N[g++]=65533,T+=k-1;continue}for(I&=k===2?31:k===3?15:7;k>1&&T1){N[g++]=65533;continue}I<65536?N[g++]=I:(I-=65536,N[g++]=55296|I>>10&1023,N[g++]=56320|I&1023)}return wn(N,g)},Zo=(a,S)=>{S=S||a.length,S>a.length&&(S=a.length);let v=S-1;for(;v>=0&&(a[v]&192)===128;)v--;return v<0||v===0?S:v+fi[a[v]]>S?v:S},Tn={string2buf:Jo,buf2string:Qo,utf8border:Zo};function ta(){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 ea=ta;let h=Object.prototype.toString,{Z_NO_FLUSH:l,Z_SYNC_FLUSH:p,Z_FULL_FLUSH:m,Z_FINISH:y,Z_OK:b,Z_STREAM_END:x,Z_DEFAULT_COMPRESSION:D,Z_DEFAULT_STRATEGY:R,Z_DEFLATED:H}=un;function q(a){this.options=pi.assign({level:D,method:H,chunkSize:16384,windowBits:15,memLevel:8,strategy:R},a||{});let S=this.options;S.raw&&S.windowBits>0?S.windowBits=-S.windowBits:S.gzip&&S.windowBits>0&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ea,this.strm.avail_out=0;let v=ui.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(v!==b)throw new Error(us[v]);if(S.header&&ui.deflateSetHeader(this.strm,S.header),S.dictionary){let T;if(typeof S.dictionary=="string"?T=Tn.string2buf(S.dictionary):h.call(S.dictionary)==="[object ArrayBuffer]"?T=new Uint8Array(S.dictionary):T=S.dictionary,v=ui.deflateSetDictionary(this.strm,T),v!==b)throw new Error(us[v]);this._dict_set=!0}}q.prototype.push=function(a,S){let v=this.strm,T=this.options.chunkSize,g,N;if(this.ended)return!1;for(S===~~S?N=S:N=S===!0?y:l,typeof a=="string"?v.input=Tn.string2buf(a):h.call(a)==="[object ArrayBuffer]"?v.input=new Uint8Array(a):v.input=a,v.next_in=0,v.avail_in=v.input.length;;){if(v.avail_out===0&&(v.output=new Uint8Array(T),v.next_out=0,v.avail_out=T),(N===p||N===m)&&v.avail_out<=6){this.onData(v.output.subarray(0,v.next_out)),v.avail_out=0;continue}if(g=ui.deflate(v,N),g===x)return v.next_out>0&&this.onData(v.output.subarray(0,v.next_out)),g=ui.deflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===b;if(v.avail_out===0){this.onData(v.output);continue}if(N>0&&v.next_out>0){this.onData(v.output.subarray(0,v.next_out)),v.avail_out=0;continue}if(v.avail_in===0)break}return!0},q.prototype.onData=function(a){this.chunks.push(a)},q.prototype.onEnd=function(a){a===b&&(this.result=pi.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg};function Q(a,S){S=S||{};let v=new q(S);if(v.push(a,!0),v.err)throw v.msg||us[v.err];return v.result}function rt(a,S){return S=S||{},S.gzip=!0,Q(a,S)}return(a,S,v)=>{let T=rt(a);return S==="base64"?T=btoa(wn(T)):T=T.buffer,v&&v(T),T}}var yv=(()=>{class s extends hu{constructor(t){super(t),this.algorithm=ro.GZIP,this.Pg=Eh(),this.hA=(i,n,o)=>{let c=this.Pg(i,n);o(c)},this.compress=Sh(),typeof CompressionStream!="undefined"&&av||(this.compress=this.hA,this.getCompressorSourceCode=()=>Eh.toString())}compressSync(t,e){return this.Pg(t,e)}getCompressorSourceCode(){return Sh.toString()}}return s})();function Sh(){let s=r=>new Promise(t=>{let e=new FileReader;e.onload=i=>t(i.target.result.split(",")[1]),e.readAsDataURL(new Blob([r]))});return(r,t,e)=>{let i=new Response(r).body.pipeThrough(new CompressionStream("gzip")),n=new Response(i).arrayBuffer();if(t==="base64"){n.then(o=>s(o)).then(o=>e(o));return}n.then(o=>e(o))}}var Ev=(()=>{class s extends hu{constructor(){super(...arguments),this.algorithm=ro.UNCOMPRESSED}compress(t,e,i){i(this.compressSync(t,e))}compressSync(t,e){return t}getCompressorSourceCode(){return function(){return(t,e,i)=>i(t)}.toString()}}return s})(),Hd=(()=>{class s{static create(t,e=!0){return this.instance?this.instance:e&&!gv.isCompressionEnabled()?new Ev(t):this.instance=new yv(t)}}return s})(),tl=["setEncryptionSelectors"],ur=["setPIISelectors"],fo=["setCapturedElementsSelector"],Sv=(()=>{class s{constructor(t,e,i,n,o,c,u){this.S=t,this.E=e,this.nt=i,this.ye=n,this.Bt=o,this.lt=c,this.wr=u}init(){var t,e;this.wr&&this.lt&&((t=this.wr)===null||t===void 0||t.addSelector((e=this.lt)===null||e===void 0?void 0:e.getEncryptionSelectors())),this.ht()}onStartTracking(t){this.ye.start(),this.S.emitSensitiveStatusChange()}onBeforeArtificialPageView(){this.ye.stop(),this.S.emitSensitiveStatusChange()}onAfterArtificialPageView(){this.ye.start(),this.S.emitSensitiveStatusChange()}onBeforeSessionRenewal(){this.ye.stop(),this.S.emitSensitiveStatusChange()}onOptout(){this.ye.stop(),this.S.emitSensitiveStatusChange()}onReplayUnanonymizationConsentGranted(){this.S.emitSensitiveStatusChange()}onReplayUnanonymizationConsentWithdrawn(){this.S.emitSensitiveStatusChange()}ht(){this.E.register(ur,t=>{this.nt.setMaskedElementSettingsFromCommand(t),this.S.emitSensitiveStatusChange()}),this.E.register(fo,t=>{this.Bt.setWhitelistedElementsSelector(t),this.S.emitSensitiveStatusChange()}),this.E.register(tl,t=>{var e,i;(e=this.lt)===null||e===void 0||e.setEncryptionSelectors(t),(i=this.wr)===null||i===void 0||i.addSelector(t)})}}return s})(),el=(()=>{class s extends re{constructor(t,e,i,n,o,c){super(),this.ce=t,this.nt=e,this.Bt=i,this.wr=n,this.Tr=o,this.it=c}onStart(){var t,e,i;this.Bt.start(),this.ce.setMaskedElementSettings(this.nt.getMaskedElementSettings((t=this.it)===null||t===void 0?void 0:t.shouldMaskNonTextElements())),this.ce.startIdentifier(),(e=this.wr)===null||e===void 0||e.start(),(i=this.Tr)===null||i===void 0||i.start()}onStop(){var t,e;this.Bt.stop(),this.ce.stopIdentifier(),(t=this.wr)===null||t===void 0||t.stop(),(e=this.Tr)===null||e===void 0||e.stop()}}return s})(),vv=(()=>{class s{constructor(t,e,i,n,o){this.it=t,this.nt=e,this.ye=i,this.Bt=n,this.lt=o}getSensitiveStatus(){var t,e;return{started:this.ye.isStarted,useAnonymization:this.it.shouldUseAnonymization(),capturedElementSelector:this.Bt.getWhitelistedElementsSelector(),maskedElementSettings:this.nt.getMaskedElementSettings((t=this.it)===null||t===void 0?void 0:t.shouldMaskNonTextElements()),encryptionSelectors:(e=this.lt)===null||e===void 0?void 0:e.getEncryptionSelectors()}}getElementSensitiveStatus(t){let e=this.ye.isStarted,i=this.it.shouldUseAnonymization();return e?Y.isMaskedElement(t)||Y.isMaskedElementChild(t)?fe.MASKED:Su.shouldEncrypt(t)?fe.ENCRYPTED:Cs.isEditableNode(t)?fe.ANONYMIZED:i?is.isWhitelistedElement(t)?fe.CAPTURED:fe.ANONYMIZED:fe.CAPTURED:fe.ANONYMIZED}}return s})(),_v=(()=>{class s{constructor(t){this.G=t}onAfterVisitorRenewal(){this.G.renewSession()}}return s})(),vh=(()=>{let s;return function(r){function t(f,_){for(let w of f)if(i(w,_))return!0;return!1}r.isUrlMatching=t;function e(f,_){if(L(_)){for(let w of f)if(i(w,_))return!0}else if(Ur(_)){for(let w of f)if(i(w,csString(_)))return!0}return!1}r.isMatching=e;function i(f,_){let w=n(f,_);return f.negate?!w:w}function n(f,_){switch(f.rule_type==="date"&&(f.match_operation==="less_than"||f.match_operation==="greater_than")&&(_=(new csDate(_).valueOf()/1e3).toFixed(0)),f.match_operation){case"exact":switch(f.rule_type){case"string":return L(f.pattern)?csString.prototype.toLowerCase.call(_)===csString.prototype.toLowerCase.call(f.pattern):!1;case"boolean":return _===f.pattern||_===csString(f.pattern);case"number":return Ot(_)?Number(_)===Number(f.pattern):!1;default:return _===f.pattern}case"starts_with":return L(f.pattern)?csString.prototype.indexOf.call(_,f.pattern)===0:!1;case"ends_with":return L(f.pattern)?rr(_,f.pattern):!1;case"contains":return L(f.pattern)?csString.prototype.indexOf.call(_,f.pattern)!==-1:!1;case"regex":if(!L(f.pattern))return!1;try{return new csRegExp(f.pattern).test(_)}catch(w){return W.warn(`targeting.matchOperation.regex invalid ${w==null?void 0:w.message}`),!1}case"simple":return L(f.pattern)?E(_)===E(f.pattern):!1;case"greater_than":return Number(_)>Number(f.pattern);case"less_than":return Number(_)=V.getTime()}function d(f){return Ot(f)?L(f)?csString.prototype.trim.call(f)==="":Ur(f)?f===!0:Lt(f)?f!==0:!1:!0}function E(f){let _=se(f,"http://")||se(f,"https://")?f:`https://${f}`,w=Dc(_);return w!==null?csString.prototype.replace.call(w.host,/^www./,""):f}}(s||(s={})),s})(),wv=(()=>{class s{constructor(){this.Ng=[],this.Mg=[]}setTargetingRules(t){for(let e of t)e.component==="url"?csArray.prototype.push.call(this.Ng,e):e.component==="trigger"&&csArray.prototype.push.call(this.Mg,e)}matchUrl(t){return vh.isUrlMatching(this.Ng,t)}matchTrigger(t){return vh.isMatching(this.Mg,t)}}return s})(),Tv=(()=>{class s extends re{constructor(t,e,i){super(),this.Ua=t,this.Fh=e,this.w=i}init(){this.$h=new wv,this.Ua&&this.$h.setTargetingRules(this.Ua)}onStart(){}checkInitialUrlTargetingRules(){let t=this.w.getAnonymizedUrl();this.zh(t,"url")&&this.Fh()}onStop(){}onTargetingRulesArtificialPageview(t){this.isStarted&&this.zh(t,"url")&&this.Fh()}onExternalEvent(t){this.isStarted&&this.zh(t.name,"trigger")&&this.Fh()}zh(t,e){var i,n;return e==="url"&&L(t)&&(!((i=this.$h)===null||i===void 0)&&i.matchUrl(t))?!0:!!(e==="trigger"&&(!((n=this.$h)===null||n===void 0)&&n.matchTrigger(t)))}}return s})(),bv=(()=>{class s{constructor(t,e,i,n,o,c){this.Ua=t,this.mA=e,this.S=i,this.bt=n,this.X=o,this.w=c}init(){this.Xn=new Tv(this.Ua,this.mA,this.w),this.X.addListener(this.Xn),this.Xn.init()}start(){this.Xn.start()}stop(){this.Xn.stop()}checkInitialUrlTargetingRules(){this.Xn.checkInitialUrlTargetingRules()}emitTargetingCollectState(){let t=this.bt.getInitialCollectState();t===tt.ANALYTICS_ONLY?this.S.emitCollectStateChange(tt.ANALYTICS_ONLY_RULES_TARGETING,Se.ETR_OFF):t===tt.RECORDING_GLOBAL_SAMPLING&&this.S.emitCollectStateChange(tt.RECORDING_RULES_TARGETING,Se.ETR_OFF)}}return s})(),sl=["networkRequest:maskUrls"],Bd=["networkRequest:maskUrls:reset"],Fd=":";function _h(s){let r=[],t=Av(s),e=csString.prototype.split.call(t,"/");for(let i of e)se(i,Fd)?csArray.prototype.push.call(r,{key:i,value:`CS_ANONYMIZED_${csString.prototype.toUpperCase.call(csString.prototype.slice.call(i,1))}`}):csArray.prototype.push.call(r,{key:i,value:null});return r}function Av(s){let r=s;return se(s,"/")&&(r=csString.prototype.substring.call(r,1)),rr(s,"/")&&(r=csString.prototype.slice.call(r,0,-1)),r}var $d=(()=>{class s{constructor(){this.Dg=new Set,this.xg=[],this.Gh=new Set,this.qh=[]}addUrlMaskingPattern(t){if(this.Dg.has(t))return;this.Dg.add(t);let e=_h(t);csArray.prototype.push.call(this.xg,e)}getUrlMaskingPatterns(){return this.xg}resetPartialUrlMaskingPatterns(){this.Gh.clear(),this.qh=[]}addPartialUrlMaskingPattern(t){if(this.Gh.has(t))return;this.Gh.add(t);let e=_h(t);csArray.prototype.push.call(this.qh,e)}getPartialUrlMaskingPatterns(){return this.qh}}return s})(),Rv=(()=>{class s{constructor(t,e,i){this.f=t,this.I=e,this.R=i,this.Qe=K.now()}resetStartTime(){this.Qe=K.now()}getSessionData(){let{projectId:t}=this.f,e=this.I.getVisitor();e==null&&W.warn("Visitor is null. This happens when a snippet tries to get Session Data before the tag was initialized.");let{id:i,visitsCount:n}=e!=null?e:{},o=this.R.getSession();o===null&&W.warn("Session is null. This happens when a snippet tries to get Session Data before the tag was initialized.");let{pageNumber:c}=o!=null?o:{};return{projectId:t,userId:i,sessionNumber:n,pageNumber:c,relativeTimestamp:K.now()-this.Qe}}}return s})(),zd=["clearSession"],Gd=["extendSession"],Cv=["getSessionData"],qd=["session:start:newVisitor"],Iv=["session:clear:visitor"],Pv=(()=>{class s{constructor(t,e,i,n){this.f=t,this.I=e,this.R=i,this.E=n}init(){this.Wh=new Rv(this.f,this.I,this.R),this.E.register(zd,()=>this.R.removeSession()),this.E.register(Gd,()=>this.R.extendSessionPeriodically(),{disableApplyPending:!0}),this.E.register(Cv,()=>this.Wh.getSessionData(),{disableApplyPending:!0}),this.E.register(qd,()=>this.I.renewVisitor()),this.E.register(Iv,()=>{this.I.resetVisitor()},{disableApplyImmediate:!0})}onBeforeNaturalPageView(){this.I.createOrUpdateVisitor(),this.R.createOrUpdateSession()}onBeforeArtificialPageView(){this.I.createOrUpdateVisitor(),this.R.createOrUpdateSession()}onAfterNaturalPageView(){this.Wh.resetStartTime()}onAfterArtificialPageView(){this.Wh.resetStartTime()}onOptout(){this.I.removeVisitor(),this.R.removeSession()}onCollectStateChange(t){this.R.updateCollectState(t)}}return s})(),Ov=(()=>{class s{constructor(t,e,i,n,o,c,u,d,E,f,_,w,A,V,U,P,C,F,j,M,J,ct,gt,Xt,$t,O,z,X,it,It,Kt,ne,Qe,Ds){this.yt=t,this.ja=e,this.de=i,this.I=n,this.R=o,this.G=c,this.Li=u,this.S=d,this.E=E,this.Yh=f,this.f=_,this.Xh=w,this.ei=A,this.Kn=V,this._t=U,this.M=P,this.Q=C,this.tt=F,this.w=j,this.vA=M,this.X=J,this.pt=ct,this.vt=gt,this.Lg=Xt,this.ee=$t,this._A=O,this.O=z,this.ue=X,this.N=it,this.wt=It,this.bt=Kt,this.nt=ne,this.qe=Qe,this.fs=Ds,this.wA=(le=!1)=>{let Vt=this.R.getSession();Vt===null?(this.br=new bv(this.f.recordTargetingRules,this.Vg,this.S,this.bt,this.X,this.w),this.br.init(),this.br.start()):(Vt.collectState===tt.RECORDING_RULES_TARGETING||Vt.collectState===tt.ANALYTICS_ONLY_RULES_TARGETING)&&this.Vg(le)},this.Vg=(le=!1)=>{this.Ar.onLoad(()=>{var Vt,Oe;(Vt=this.br)===null||Vt===void 0||Vt.emitTargetingCollectState(),(Oe=this.br)===null||Oe===void 0||Oe.stop(),this.S.emitStartTracking(le)}),this.Ha(le)},this.Ha=(le=!1)=>{this.ei.isActive()||(this.nt.init(),this.Kh.start(le),this.Ar.start())},this.TA=()=>{this.S.emitBeforeSessionRenewal(),this.Rr(!0),this.S.emitAfterSessionRenewal()},this.bA=()=>{this.S.emitBeforeSessionRenewal(),this.bt.refreshQuota(le=>{le!==tt.QUOTA_REACHED&&(this.Rr(!0),this.S.emitAfterSessionRenewal())})}}start(){if(this.Xh.init(),this.ei.init(),this.ei.isActive())return;let t,e,i,n,o,c,u,d,E,f,_,w,A,V,U,P,C,F,j;this.O.schedule(()=>{U=new _v(this.G),w=new Iu(this.Q),A=new Vc(()=>{}),P=new Uc,j=new Eu;let M=new el(A,this.nt,P,F,j,this.Ba());V=new vv(this.Ba(),this.nt,M,P,C);let J=new Sv(this.S,this.E,this.nt,M,P,C,F);J.init(),this.S.addListener(J),t=new uE(this.f,this.ja,this.I,this.Q,w,this.E,this.G,new wu(W),this.pt,this.ue,this.X,V,this._l),e=new RE(this.E,this.R,this.f,this.yt,this.de,this.M),_=new pv(V,this.f);let ct=null;ct=new Ru(this.f),f=new Jm(this.f,ct,_,V,this.pt),f.init();let gt=new ud;i=new FE(this.I,this.R,this.E,this.pt,ct,this.f,gt,_),n=new OE(this.f,this.ja,this.I,this.E,this.M,this.G,this.w);let Xt;this.Kh=new eS(this.f,this.E,this.S,this.ja,this.I,this.R,this.Li,this._t,this.vt,this.w,this.ee,gt,this.X,this.qe,Xt),this.Ug=new Pv(this.f,this.I,this.R,this.E),u=new qE(this.f,this.E,this.de,this.ja,this.X),d=new $E(this.E),E=new ty,this.Ar=new Fc}),this.O.schedule(()=>{this.Kn.init()}),this.O.schedule(()=>{i.init()}),this.O.schedule(()=>{e.init()}),this.O.schedule(()=>{n.init()}),this.O.schedule(()=>{this.Lg.init()}),this.O.schedule(()=>{this.Kh.init()}),this.O.schedule(()=>{this.Ug.init()}),this.O.schedule(()=>{u.init()}),this.O.schedule(()=>{this.vA.init()}),this.O.schedule(()=>{d.init()}),this.O.schedule(()=>{E.init()}),this.O.schedule(()=>{this._A.init()}),this.O.schedule(()=>{this.S.addListener(this.Ug),this.S.addListener(this.Yh),this.S.addListener(t),this.S.addListener(this.Kn),this.S.addListener(i),this.S.addListener(n),this.S.addListener(this.Lg),this.S.addListener(this.Kh),this.S.addListener(u),this.S.addListener(e),this.S.addListener(f),this.S.addListener(E),this.S.addListener(U)}),sr.isRecordingSupported()&&this.O.schedule(()=>{let M=new dv(_,this.R,this.f,this.yt,this.E,this.M,this.G,A,this.$e,this.Et,this.Me,this.Tt,this.S,this.X,this.pt,this.ee,this.ue,this.tt,this.Un,this.Ba(),this.ar,C);M.init(),this.S.addListener(M),i.setRecordingService(M.recordingService)}),this.O.schedule(()=>{var M;let J,ct;if(ct=new Uu(this.X),J=new Vu(this.E,ct,this.f,this.N,this.wt,this.I,this.M,this.Ba(),this.nt),J.init(),(!((M=this.f.voc)===null||M===void 0)&&M.enabled||this.f.isSMB)&&!this.f.vocData){let gt=new Dy(this.f,this.E,this.w,J,ct);gt.init(),this.S.addListener(gt)}}),this.O.schedule(()=>{t.init()}),this.O.schedule(()=>{this.f.isQuotaEnabled()?this.G.onSessionExpired(()=>{this.bA()}):this.G.onSessionExpired(()=>{this.TA()}),this.Rr()})}Rr(t=!1){var e,i,n;if(this.f.hasTargetingRules()){this.wA(t),this.E.start(),(e=this._l)===null||e===void 0||e.start(),this.br&&this.br.checkInitialUrlTargetingRules();return}this.E.start(),(i=this._l)===null||i===void 0||i.start(),this.Ar.onLoad(()=>{this.S.emitStartTracking(t)}),(!Cu(this.f)||t)&&this.Ha(t)}Ba(){if(this.it)return this.it;let t=new Wr;return this.it=new ao(this.f,this.w,t,this._t),this.it.init(),this.it.shouldUseAnonymization()&&at.counters.pageAnonymisation.count("anonymized-on-start"),this.it}}return s})(),Nv=(()=>{class s{constructor(t,e,i,n,o,c,u,d){this.f=t,this.I=e,this.Xe=i,this.jg=n,this.AA=o,this.RA=c,this.CA=u,this.Jh=d}compute(t){var e,i;this.f.crossDomainTracking&&!this.f.cookielessTrackingEnabled?this.f.crossDomainSingleIframeTracking?(e=this.CA)===null||e===void 0||e.start(()=>this.Qh(t)):(i=this.RA)===null||i===void 0||i.applyUpToDate(()=>this.Qh(t)):this.Qh(t)}Qh(t){this.AA.handle(),this.jg.clear(),this.IA()?(this.jg.restoreClearedVisitor(),t(!0)):(this.Xe.exclude(this.f),t(!1))}IA(){let t=os.boolean(this.f.sampleRate);return this.Jh.isForceIncluded()||!this.Xe.isExcluded()&&this.I.doesVisitorExist()||!this.Xe.isExcluded()&&t}}return s})(),wh=(()=>{class s{constructor(t,e,i,n){this.f=t,this.ut=e,this.S=i,this.R=n,this.PA=10*1e3}createOrUpdateVisitor(){var t;let e=this.getVisitor();e===null&&(e=this.OA(),(t=this.R)===null||t===void 0||t.removeSession()),this.NA(e),this.setVisitor(e)}OA(){return{id:Hc.generate(),visitsCount:0,appliedTrackingDraw:this.f.lastTrackingDraw,creationTimestamp:gl(),lastVisitTimestamp:0,hitTimestamp:0,expires:K.now()+this.f.visitorCookieTimeout,allowSubdomains:this.f.allowSubdomains,identityPrint:null}}NA(t){let e=gl();this.R&&!this.R.doesSessionExist()&&(t.visitsCount+=1,t.lastVisitTimestamp=e),t.hitTimestamp=e,t.appliedTrackingDraw=this.f.lastTrackingDraw,this.Hg=t.visitsCount}getRequestParameters(){let t=this.getVisitor();return t?{uu:t.id,sn:`${t.visitsCount}`,hd:`${t.hitTimestamp}`}:{}}getVisitor(){return this.ut.get()}setVisitor(t){this.ut.set(t)}doesVisitorExist(){return this.ut.get()!==null}resetVisitor(){this.Bg(),this.S.emitAfterVisitorCleared()}removeVisitor(){this.ut.remove()}hasAllowSubdomainsChanged(){let t=this.getVisitor();return t?t.allowSubdomains!==this.f.allowSubdomains:!1}handleSubdomainChange(){this.ut.handleSubdomainChange()}isSessionRenewed(){let t=this.getVisitor();return t===null||this.Hg===void 0?!1:t.visitsCount!==this.Hg}MA(){return!mt(this.Fg)||K.now()-this.Fg>this.PA}renewVisitor(){this.MA()?(this.Fg=K.now(),this.Bg(),this.S.emitAfterVisitorRenewal()):W.warn("session:start:newVisitor is trying to renew visitor under time limit")}Bg(){this.S.emitBeforeVisitorRenewal(),this.removeVisitor()}}return s})(),Ge="_cs_s",lc=18e5,Ra=".",Mv=13,Mn=(()=>{let s;return function(r){r[r.NOT_FOUND=0]="NOT_FOUND",r[r.EXPIRED=1]="EXPIRED",r[r.FOUND=2]="FOUND"}(s||(s={})),s})(),kv=(()=>{class s{constructor(t,e,i){this.f=t,this.N=e,this.K=i,this.se=null,this.Zh=!1}get(t){let e=this.getRawSession(t);return this.isValid(e)?gu(e):null}getRawSession(t){if(t){let E=this.tu();return Ga(E)}let{sessionString:e,status:i}=this.kA(),n=Ga(e);if(i!==Mn.EXPIRED)return n;if(this.f.cookielessTrackingEnabled)return null;let o=this.tu();if(!o)return null;let c=csString.prototype.split.call(o,Ra);if(!s.$g(c))return o;let u=c[c.length-1],d=parseInt(u,10);return isNaN(d)||this.DA(d),n}onCookieToSet(t){this.gi=t}onCookieToRemove(t){this.mi=t}set(t,e=lc){var i;let n=K.now()+e,o=dm(t);o+=`${Ra}${n}`,this.xA(o,n),this.f.cookielessTrackingEnabled?this.K.setItem(Ge,o):(this.N.set(Ge,o,e),(i=this.gi)===null||i===void 0||i.call(this,Ge,o,e))}remove(){var t;this.f.cookielessTrackingEnabled?this.K.removeItem(Ge):(this.N.delete(Ge),(t=this.mi)===null||t===void 0||t.call(this,Ge)),this.LA()}handleSubdomainChange(){if(this.f.cookielessTrackingEnabled)return;let t=this.get(!0);t&&(this.f.allowSubdomains?this.N.delete(Ge,io.CURRENT_DOMAIN):this.N.delete(Ge,this.N.getRootDomain()),this.set(t))}isValid(t){return t!==null&&Lc(t)}xA(t,e){this.se={sessionString:t,expires:e}}kA(){return this.se?this.se&&K.now()<=this.se.expires?{sessionString:this.se.sessionString,status:Mn.FOUND}:{sessionString:this.se.sessionString,status:Mn.EXPIRED}:{sessionString:this.tu(),status:Mn.NOT_FOUND}}LA(){this.se=null}DA(t){this.se&&(this.se.expires=t,this.Zh=!0)}isCacheRefreshed(){return this.Zh}resetCacheRefreshed(){this.Zh=!1}tu(){if(this.f.cookielessTrackingEnabled){let e=this.K.getItem(Ge);return!e||this.zg(e)?null:e}let t=this.N.get(Ge);return!t||this.zg(t)?null:t}zg(t){let e=csString.prototype.split.call(t,Ra);if(!s.$g(e))return!1;let i=parseInt(e[e.length-1],10);return!isNaN(i)&&K.now()>i}static $g(t){return t[t.length-1].length===Mv}}return s})(),il=60*1e3,Dv=60*il,xv=4*Dv-il,zi=(()=>{let s;return function(r){r[r.NO=0]="NO",r[r.WITHDRAWN=1]="WITHDRAWN",r[r.GRANTED=2]="GRANTED"}(s||(s={})),s})(),Lv=(()=>{class s{constructor(t,e,i,n,o){this.Ne=t,this.bt=e,this.S=i,this.VA=n,this.UA=o,this.Jn=null,this.eu=0,this.Qn=zi.NO}setDynamicVariablesService(t){this.jA=t}createOrUpdateSession(){this.su(),this.HA=K.now(),this.eu=0;let t=this.Gg();t===null?(t=this.BA(),this.Fa(t),this.S.emitSessionCreated()):(t=this.bt.sanitizeSessionCollectState(t),this.FA(t),t.collectState=this.bt.getEligibleCollectState(t)),this.setSession(t)}grantReplayRecording(t){t.collectState=this.bt.getInitialCollectState(),t.collectState=this.bt.computeInitialCollectStateFromRecordingConsentGranted(t),this.setSession(t)}grantReplayRecordingBeforeSessionStart(){this.Qn=zi.GRANTED}withdrawnReplayRecording(t){t.collectState=this.bt.getRecordingConsentWithdrawn(),this.setSession(t)}withdrawnReplayRecordingBeforeSessionStart(){this.Qn=zi.WITHDRAWN}Fa(t){this.Qn===zi.WITHDRAWN?(t.collectState=this.bt.getRecordingConsentWithdrawn(),this.setSession(t)):this.Qn===zi.GRANTED?t.collectState=this.bt.computeInitialCollectStateFromRecordingConsentGranted(t):t.collectState=this.bt.computeInitialCollectState(t),this.Qn=zi.NO}BA(){return{pageNumber:1,collectState:this.bt.getInitialCollectState(),replayConsent:this.VA?za.NOT_EXPRESSED:za.UNNECESSARY,etrStatus:Ve.ETR_NOT_SAVED_SESSION}}FA(t){t.pageNumber+=1}isReplayRecorded(){let t=this.getSession();return!!t&&this.bt.isReplayRecorded(t)}isTemporarilyRecorded(){let t=this.getSession();return(t==null?void 0:t.collectState)===tt.RECORDING_TEMPORARILY}getRequestParameters(){let t={},e=this.getSession();return e!==null&&(t.pn=`${e.pageNumber}`),t}getSession(){return this.Ne.get()}Gg(){return this.Ne.get(!0)}doesSessionExist(){return this.Ne.get()!==null}setSession(t){this.Ne.set(t),this.S.emitSessionRefreshed()}refreshSession(){let t=this.Gg();t&&this.setSession(t)}removeSession(){this.Ne.remove(),this.S.emitSessionRemoved()}getCollectStates(){let t=this.getSession(),e=[];return t&&(t.collectState!==tt.ANALYTICS_ONLY&&csArray.prototype.push.call(e,t.collectState===tt.RECORDING_RULES_TARGETING?tt.RECORDING_GLOBAL_SAMPLING:t.collectState),this.UA&&csArray.prototype.push.call(e,tt.RECORDING_ETR_SAMPLING)),e}updateCollectState(t){let e=this.getSession();e!==null&&(e.collectState=t,this.setSession(e))}hasValidSession(){let t=this.Ne.getRawSession();return this.Ne.isValid(t)}handleSubdomainChange(){this.Ne.handleSubdomainChange()}pollCacheRefreshEvent(t=!0){let e=this.Ne.isCacheRefreshed();return e&&t&&this.Ne.resetCacheRefreshed(),e}extendSessionPeriodically(){this.Jn||this.qg()}extendSession(){let t=this.getSession();return t===null?(W.warn("extendSession is trying to extend an expired session"),this.su(),!1):(this.setSession(t),!0)}qg(){if(this.$A()){this.su();return}this.extendSession()&&(this.zA(),this.GA())}GA(){this.Jn=window.csSetTimeout(()=>{this.qg()},lc-il)}$A(){return xv-(K.now()+lc-this.HA)<0}su(){this.Jn&&(window.csClearTimeout(this.Jn),this.Jn=null)}zA(){this.eu+=1,this.jA.trackDynamicVariable("session_expiry_update",this.eu)}}return s})(),Vv=(()=>{class s{constructor(t,e,i){this.f=t,this.I=e,this.Xe=i}clear(){this.qA()&&(this.Wg=this.I.getVisitor(),this.I.removeVisitor()),this.WA()&&this.Xe.removeExclusion()}qA(){return this.I.doesVisitorExist()&&this.I.getVisitor().appliedTrackingDraw!==this.f.lastTrackingDraw}WA(){return this.Xe.getAppliedTrackingDraw()!==this.f.lastTrackingDraw}restoreClearedVisitor(){this.Wg&&this.I.setVisitor(this.Wg)}}return s})(),Uv=(()=>{class s{constructor(t,e,i){this.I=t,this.R=e,this.YA=i}handle(){this.I.hasAllowSubdomainsChanged()&&(this.I.handleSubdomainChange(),this.R.handleSubdomainChange(),this.YA.handleSubdomainChange())}}return s})(),Ws="_cs_c",Ei=(()=>{let s;return function(r){r[r.NOT_REQUIRED=0]="NOT_REQUIRED",r[r.NOT_EXPRESSED=1]="NOT_EXPRESSED",r[r.GRANTED=2]="GRANTED",r[r.WITHDRAWN=3]="WITHDRAWN"}(s||(s={})),s})(),jv=(()=>{class s{constructor(t,e,i){this.f=t,this.N=e,this.wt=i}get(){let t;return this.f.cookielessTrackingEnabled?t=this.wt.getItem(Ws):t=this.N.get(Ws),t===null?t:Number(t)}set(t){this.f.cookielessTrackingEnabled?this.wt.setItem(Ws,csString(t)):this.N.set(Ws,csString(t),Sc)}remove(){this.f.cookielessTrackingEnabled?this.wt.removeItem(Ws):this.N.delete(Ws)}handleSubdomainChange(){this.f.cookielessTrackingEnabled||(this.f.allowSubdomains?this.N.delete(Ws,io.CURRENT_DOMAIN):this.N.delete(Ws,this.N.getRootDomain()))}}return s})(),Hv=(()=>{class s{constructor(t,e,i){this.f=t,this.R=e,this.S=i}grantReplayConsent(){if(!Js.isReplayConsentNeeded(this.f))return;let t=this.R.getSession();if(!t){this.R.grantReplayRecordingBeforeSessionStart();return}Js.isRecordingBlockedByConsent(t)&&(this.R.grantReplayRecording(t),this.S.emitAfterReplayRecordingConsentGranted())}withdrawReplayConsent(){if(!Js.isReplayConsentNeeded(this.f))return;let t=this.R.getSession();if(!t){this.R.withdrawnReplayRecordingBeforeSessionStart();return}Js.isRecordingWithDrawn(t)||(this.R.withdrawnReplayRecording(t),this.S.emitAfterReplayRecordingConsentWithdrawn())}}return s})(),Wd=["replay:consent:unanonymized:granted","trackConsentGranted"],Yd=["replay:consent:unanonymized:withdrawn","trackConsentWithdrawn"],Xd=["replay:consent:startForSession:granted"],Kd=["replay:consent:startForSession:withdrawn"],Bv=(()=>{class s{constructor(t,e,i,n,o){this.f=t,this.E=e,this._t=i,this.R=n,this.S=o}init(){this.Yg=new Hv(this.f,this.R,this.S),this._t.setInitialConsent(),this.ht()}ht(){this.E.register(Wd,()=>{this._t.grantReplayAnonymizationConsent()}),this.E.register(Yd,()=>{this._t.withdrawReplayAnonymizationConsent()}),this.E.register(Xd,()=>{this.Yg.grantReplayConsent()}),this.E.register(Kd,()=>{this.Yg.withdrawReplayConsent()})}onOptout(){this._t.removeAllConsents()}onBeforeVisitorRenewal(){this._t.removeAllConsents()}onAfterVisitorRenewal(){this._t.setInitialConsent()}onAfterVisitorCleared(){this._t.setInitialConsent()}}return s})(),Fv=(()=>{class s{constructor(t,e,i){this.f=t,this.ut=e,this.S=i}setInitialConsent(){let t=this.ut.get();(t===null||this.hasConsentRequiredChanged(t))&&this.setDefaultReplayAnonymization()}hasConsentRequiredChanged(t){let e=this.f.consentRequired;return e&&t===Ei.NOT_REQUIRED||!e&&t!==Ei.NOT_REQUIRED}handleSubdomainChange(){this.ut.handleSubdomainChange()}setDefaultReplayAnonymization(){let t=this.f.consentRequired?Ei.NOT_EXPRESSED:Ei.NOT_REQUIRED;this.ut.set(t)}grantReplayAnonymizationConsent(){this.f.consentRequired&&(this.ut.set(Ei.GRANTED),this.S.emitReplayUnanonymizationConsentGranted())}withdrawReplayAnonymizationConsent(){this.f.consentRequired&&(this.ut.set(Ei.WITHDRAWN),this.S.emitReplayUnanonymizationConsentWithdrawn())}removeAllConsents(){this.ut.remove()}isReplayUnanonymizedAllowedByConsent(){return!this.f.consentRequired||this.ut.get()===Ei.GRANTED}getRequestParameters(){return{uc:`${this.ut.get()}`}}}return s})(),$v=(()=>{class s{constructor(t,e,i,n,o,c,u){this.S=t,this.E=e,this.Yh=i,this.Xh=n,this.ei=o,this.KA=c,this.Kn=u}start(){this.S.addListener(this.KA),this.S.addListener(this.Kn),this.S.addListener(this.Yh),this.Kn.init(),this.Xh.init(),this.ei.init(),!this.ei.isActive()&&this.E.start()}}return s})(),zv=(()=>{class s{constructor(t,e){this.Ot=t,this.ut=e}exclude(t){this.ut.set(csString(t.lastTrackingDraw))}removeExclusion(){this.ut.remove()}isExcluded(){return this.JA()||this.QA()}JA(){return this.getAppliedTrackingDraw()!==0}getAppliedTrackingDraw(){return this.ut.get()}QA(){return csString.prototype.indexOf.call(this.Ot.href,As)>0}}return s})(),Gv=(()=>{class s{constructor(t){this.ki=t}onOptout(){this.ki.removeExclusion()}}return s})(),Ca=(()=>{let s;return function(r){r.SessionReplay="SR",r.None=""}(s||(s={})),s})(),qv=".^",Jd=".*",Qd=(()=>{class s{constructor(t){this.w=t,this.iu=new csRegExp(`${qv}`)}setExcludeUrlForSessionReplay(t){try{this.iu=new csRegExp(t)}catch{W.warn(`excludeURLforReplay - invalid regex '${t}'`),this.iu=new csRegExp(`${Jd}`)}}Xg(){return this.iu.test(this.w.getAnonymizedUrl())?Ca.SessionReplay:Ca.None}isUrlExcludedForSessionReplay(){return this.Xg()===Ca.SessionReplay}getRequestParameters(){return{ex:this.Xg()}}}return s})(),Zd=["excludeURLforReplay"],tp=(()=>{class s{constructor(t,e){this.ki=t,this.E=e}init(){this.E.register(Zd,t=>{if(L(t))this.ki.setExcludeUrlForSessionReplay(t);else throw new Error("Command misuse: excludeURLforReplay")})}}return s})(),Ia="_cs_inc",Wv=(()=>{class s{constructor(t,e){this.Ot=t,this.N=e}isForceIncluded(){return this.ZA()||this.tR()}isForceReplayRecorded(){return this.eR(tt.RECORDING_GLOBAL_SAMPLING)}ZA(){return this.N.get(Ia)!==null}eR(t){return this.N.get(Ia)===t}tR(){return csString.prototype.indexOf.call(this.Ot.href,Ia)>0}}return s})(),Or="_cs_optout",Yv=(()=>{class s{constructor(t,e,i){this.f=t,this.N=e,this.wt=i}get(){return this.f.cookielessTrackingEnabled?this.wt.getItem(Or):this.N.get(Or)}set(t){this.f.cookielessTrackingEnabled?this.wt.setItem(Or,t):this.N.set(Or,t,Sc)}}return s})(),Th="1",Xv=(()=>{class s{constructor(t,e,i){this.S=t,this.Ot=e,this.ut=i}init(){!this.isActive()&&this.sR()&&this.activate()}isActive(){return this.ut.get()===Th}activate(){this.S.emitOptout(),this.ut.set(Th)}sR(){return csString.prototype.indexOf.call(this.Ot.href,Or)>0}}return s})(),rl=["optout"],ep=["optin"],Kv=(()=>{class s{constructor(t,e){this.E=t,this.ei=e}init(){this.E.register(rl,()=>{this.ei.activate()})}}return s})(),Jv=(()=>{class s{constructor(t,e){this.E=t,this.pt=e}init(){this.pt.addListener(this.E)}onOptout(){this.E.stop()}onBeforeSessionRenewal(){this.E.stop()}}return s})(),hc=(()=>{let s;return function(r){r.UXA="_uxa",r.WVT="cs_wvt"}(s||(s={})),s})(),sp=(()=>{class s extends re{constructor(t){super(),this.ru=t,this.as={}}register(t,e,i){for(let n of t){let o=(...c)=>{try{let u=e(...c);return at.counters.commandApplied.count(n),u}catch(u){at.counters.commandMisuse.count(n),W.warn(`Misused Command: ${n}; Args: ${csJSON.stringify(c)}; Error: ${ei(u)?u.stack:u}`)}};this.as[n]={callback:o,configuration:i},this.as}}onStart(){this.rR(),this.nR()}onStop(){for(let t of this.ru)window[t]=[]}applyFromIntegration(t,e,i){this.Kg(t,e,`Commands.apply.from.integration: ${i}`),at.counters.commandsFromIntegrations.count(t)}applyFromImplementation(t,e,i){this.Kg(t,e,`Commands.apply.from.implementation: ${i}`),at.counters.commandsFromCSTC.count(t)}onIframeCommands(t){for(let e of t.commands)this.oR(e.name,e.params,t.iframePath),at.counters.commandsFromIframe.count(e.name)}Kg(t,e,i){if(!this.isStarted){window._uxa.push([t,...e]);return}W.tryToExecute(i,()=>{if(this.as[t])return this.as[t].callback(...e)})()}oR(t,e,i){W.tryToExecute(`Commands.apply.from.iframe: ${i}`,()=>{if(this.as[t])return this.as[t].callback(...e)})()}rR(){for(let t of this.ru)window[t].forEach(([e,...i])=>this.Jg(e,i,!1))}nR(){for(let t of this.ru)window[t]={push:([e,...i])=>this.Jg(e,i,!0)}}Jg(t,e,i){var n,o;if(this.as[t]){if(((n=this.as[t].configuration)===null||n===void 0?void 0:n.disableApplyPending)&&!i||((o=this.as[t].configuration)===null||o===void 0?void 0:o.disableApplyImmediate)&&i)return;try{return this.as[t].callback(...e)}catch(u){at.counters.commandError.count(t),W.error(`Command ${t} failed - params: ${csJSON.stringify(e)}`,u)}}}}return s})(),bh=(()=>{class s{constructor(t,e,i,n,o){this.f=t,this.I=e,this.R=i,this.am=n,this.ni=o}getRequestParameters(){var t;let e={...Mc(),...this.f.getRequestParameters()},i=this.R.getSession();i&&(e.pn=`${i.pageNumber}`);let n=this.I.getVisitor();if(n&&(e.sn=`${n.visitsCount}`,e.uu=`${n.id}`),!((t=this.am)===null||t===void 0)&&t.hasSubProjectId()&&(e.subProjectID=`${this.am.getSubProjectId()}`),this.dR(e),window.heap&&!this.f.isCsCrosswritingHeap())try{e.happid=window.heap.appid,window.heap.getSessionId&&(e.hsid=window.heap.getSessionId()),window.heap.getUserId?e.huu=window.heap.getUserId():window.heap.userId&&(e.huu=window.heap.userId),window.heap.getPageviewMetadata&&(e.hpvid=window.heap.getPageviewMetadata().pageviewId)}catch{delete e.happid,delete e.hsid,delete e.huu,delete e.hpvid}return e}dR(t){if(!this.ni)return;let e=this.ni.getSharedContext();e&&(t.happid=e.happid,t.t=e.pageTitle,t.fvt=csString(e.firstViewTime),t.fvurl=e.firstViewUrl,e.previousViewUrl&&(t.pvurl=e.previousViewUrl),t.url=e.currentViewUrl,e.sessionReferrer&&(t.fpvurl=e.sessionReferrer),t.sw=csString(e.screenWidth),t.sh=csString(e.screenHeight),t.cvt=csString(e.currentViewTime),e.encryptedIdentity&&(t.i=e.encryptedIdentity),e.cvarp&&(t.cvarp=e.cvarp))}}return s})(),Qv=(()=>{class s{constructor(t,e){this.E=t,this.ls=e}init(){this.E.register(["debugEvents"],t=>{typeof t=="boolean"&&this.ls.updateDynamicFields("emitDebugEvents",t)})}}return s})();function Ah(s,r,t){if(!mt(r)&&!mt(t))return s.href;let e=mt(r)?ip(r):s.pathname,i=mt(t)?rp(t):s.search;return`${s.protocol}//${s.host}${e}${i}`}function ip(s){return se(s,"/")?s:`/${s}`}function rp(s){return se(s,"?")||s===""?s:`?${s}`}var Pa=(()=>{let s;return function(r){r[r.page=1]="page",r[r.onNextPageviewOnly=2]="onNextPageviewOnly"}(s||(s={})),s})(),np=(()=>{class s{constructor(t,e){this.Ot=t,this.tt=e,this.pR=10}overridePath(t,e){if(t===""){this.Cr=void 0;return}let i=this.cm(e);i&&(this.au=i),this.Cr=e?this.lm(t,e):t}overrideQuery(t,e){let i=this.cm(e);i&&(this.lu=i),this.to=e?this.lm(t,e):t}computeOverriddenUrl(t){return this.fR(t)?this.getAnonymizedUrl():t}gR(t){return(typeof t=="string"||typeof t=="number")&&t in Pa}fR(t){let e=this.Ao(this.Ot.href);return this.Ao(t)===e}Ao(t){return vg(t,"/")?csString.prototype.slice.call(t,0,-1):t}cm(t){return mt(t==null?void 0:t.lifespan)&&this.gR(t==null?void 0:t.lifespan)?t==null?void 0:t.lifespan:null}mR(){return this.au&&this.au in Pa}yR(){return this.lu&&this.lu in Pa}cleanupOverrideLifespan(){this.mR()&&(this.Cr=void 0,this.au=void 0),this.yR()&&(this.to=void 0,this.lu=void 0)}getAnonymizedUrl(){let t=Ah(this.Ot,this.Cr,this.to);return this.tt.anonymizeUrl(t)}getUrl(){return Ah(this.Ot,this.Cr,this.to)}getAnonymizedPathAndQuery(){let t=mt(this.Cr)?ip(this.Cr):this.Ot.pathname,e=mt(this.to)?rp(this.to):this.Ot.search;return this.tt.anonymizeUrl(t+e)}getUrlProtocol(){return this.Ot.protocol}getRequestParameters(){return{url:this.getAnonymizedUrl()}}lm(t,e){return this.ER(e)?this.SR(t):this.vR(e)?this._R(t):t}vR(t){return!!t.decodeURI}_R(t){return this.hm(t,1,!1)}ER(t){return!!t.decodeURIDeep}SR(t){return this.hm(t,this.pR,!0)}hm(t,e,i){let n=t;for(let o=0;o{class s{constructor(){this.listeners=[]}addListener(t){csArray.prototype.push.call(this.listeners,t)}}return s})(),Zv=(()=>{class s extends go{emitPageEvent(t){for(let e of this.listeners)e.onPageEvent&&e.onPageEvent(t)}emitEventTriggerRecording(t,e){for(let i of this.listeners)i.onEventTriggerRecording&&i.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:nt.EXTERNAL_EVENT,name:t,ts:0})}emitTargetingRulesArtificialPageview(t){for(let e of this.listeners)e.onTargetingRulesArtificialPageview&&e.onTargetingRulesArtificialPageview(t)}}return s})(),Vr="|iframe|",op=(()=>{class s extends go{constructor(t,e,i,n){super(),this.wR=t,this.TR=e,this.bR=i,this.AR=n}emitIframeEvent(t,e,i){if(this.RR(e)&&t===null){W.error(`iframeEventEmitter received event ${e} with null iframe, content:${csJSON.stringify(i)}`);return}switch(e){case $.ChildLogMessage:this.CR(i);break;case $.AnalysisEvent:{let n=i,o=this.wR.transformEvent(t,n);o.isUserEvent?this.IR(o.event):this.PR(o.event);break}case $.RecordingEvent:{let n=i,o=this.AR.transformEvents(t,n);if(o.events.length===0)return;o.containsUserEvent?this.NR(o.events):this.MR(o.events);break}case $.JavascriptError:this.kR(i);break;case $.ApiError:this.DR(i);break;case $.DetailedApiError:this.xR(i);break;case $.CustomError:this.LR(i);break;case $.EmerchandisingMessage:{let n=this.bR.transformEvent(t,i);this.VR(n);break}case $.Commands:{let n=this.TR.transformEvent(t,i);this.UR(n);break}case $.IntegrationCallback:this.jR(i);break;case $.StaticResource:this.HR(i);break;case $.TrackingContextRequestMessage:this.BR(i);break;default:W.error(`Parent received unknown data type from iframe : ${csJSON.stringify(i)}`)}}RR(t){let e=[$.AnalysisEvent,$.RecordingEvent,$.EmerchandisingMessage,$.Commands];return csArray.prototype.indexOf.call(e,t)!==-1}CR(t){let{message:e,errorCode:i,level:n}=t;switch(n){case yt.debug:W.debug(e,i);break;case yt.warn:W.warn(e,!0,i);break;case yt.implementation:W.implementation(e,i);break;case yt.error:W.error(e,i);break;case yt.critical:W.critical(e,i);break}}IR(t){for(let e of this.listeners)e.onIframeAnalysisUserEvent&&e.onIframeAnalysisUserEvent(t)}PR(t){for(let e of this.listeners)e.onIframeAnalysisBrowserEvent&&e.onIframeAnalysisBrowserEvent(t)}NR(t){for(let e of this.listeners)e.onIframeRecordingUserEvent&&e.onIframeRecordingUserEvent(t)}MR(t){for(let e of this.listeners)e.onIframeRecordingBrowserEvent&&e.onIframeRecordingBrowserEvent(t)}kR(t){for(let e of this.listeners)e.onIframeJavascriptError&&e.onIframeJavascriptError(t)}DR(t){for(let e of this.listeners)e.onIframeApiError&&e.onIframeApiError(t)}xR(t){for(let e of this.listeners)e.onIframeDetailedApiError&&e.onIframeDetailedApiError(t)}VR(t){for(let e of this.listeners)e.onIframeEmerchandisingMessage&&e.onIframeEmerchandisingMessage(t)}UR(t){for(let e of this.listeners)e.onIframeCommands&&e.onIframeCommands(t)}jR(t){for(let e of this.listeners)e.onIframeIntegrationCallback&&e.onIframeIntegrationCallback(t)}HR(t){for(let e of this.listeners)e.onIframeStaticResource&&e.onIframeStaticResource(t)}BR(t){for(let e of this.listeners)e.onTrackingContextRequestCallback&&e.onTrackingContextRequestCallback(t)}LR(t){for(let e of this.listeners)e.onIframeCustomError&&e.onIframeCustomError(t)}}return s})(),t_=(()=>{class s{setItem(t,e){window.localStorage.setItem(t,e)}getItem(t){return window.localStorage.getItem(t)}removeItem(t){window.localStorage.removeItem(t)}}return s})(),mo=["setCustomVariable"],e_=(()=>{class s{constructor(t,e){this.E=t,this.vt=e}init(){this.E.register(mo,(t,e,i,n)=>{this.vt.set(t,e,i,n)})}onAfterArtificialPageView(){this.vt.deleteNextPageOnlyCustomVariables()}onAfterNaturalPageView(){this.vt.deleteNextPageOnlyCustomVariables()}onOptout(){this.vt.removeCustomVariablesSession()}onBeforeVisitorRenewal(){this.vt.removeCustomVariablesSession(),this.vt.removeCustomVariablesPage()}}return s})(),Rh=512,Ch=255,Oa={SESSION:["visit",2],PAGE:["page",3],NEXT_PAGE_ONLY:["nextPageOnly",4]},s_=(()=>{class s{constructor(t,e){this.M=t,this.ut=e,this.qt={},this.Ve={}}set(t,e,i,n){let o,c;if((Lt(t)||L(t))&&Number(t)>0&&Ot(e)&&Ot(i)&&!we(e)&&!we(i)&&this.FR(n)){let u=this.M.anonymizePII(csString(e)),d=this.M.anonymizePII(csString(i));if(o=[csString.prototype.slice.call(u,0,Rh),csString.prototype.slice.call(d,0,Ch)],c=i!=="",!mt(n)||csArray.prototype.indexOf.call(Oa.SESSION,n)>=0){let E=this.getCustomVariablesSession();c?E[t]=o:delete E[t],this.setCustomVariableSession(E)}(!mt(n)||csArray.prototype.indexOf.call(Oa.PAGE,n)>=0)&&(c?this.qt[t]=o:delete this.qt[t]),mt(n)&&csArray.prototype.indexOf.call(Oa.NEXT_PAGE_ONLY,n)>=0&&(c?this.Ve[t]=o:delete this.Ve[t])}else throw new Error(`Command misuse: ${mo[0]}`)}getCustomVariablesSession(){let t=this.ut.get();if(!t)return{};let e=window.csJSON.parse(t);return e!==null&&He(e)?e:{}}setCustomVariableSession(t){this.ut.set(window.csJSON.stringify(t))}removeCustomVariablesSession(){this.ut.remove()}removeCustomVariablesPage(){this.qt={}}getRequestParameters(){let t=this.getCustomVariablesSession();for(let i in this.Ve)this.Ve.hasOwnProperty(i)&&(this.qt[i]=this.Ve[i]);for(let i in this.qt)this.qt.hasOwnProperty(i)&&(t[i]=this.qt[i]);if(window.csJSON.stringify(t).length<=2)return{};let e={cvars:this.um(t)};return this.hasCustomVariablesPage()&&(e.cvarp=this.getCustomVariablesPage()),e}deleteNextPageOnlyCustomVariables(){if(Object.keys(this.Ve).length>0)for(let t in this.Ve)this.Ve[t]===this.qt[t]&&(delete this.qt[t],delete this.Ve[t])}hasCustomVariablesPage(){return this.qt&&!ka(this.qt)}getCustomVariablesPage(){return this.um(this.qt)}dm(t){for(let e in t)if(t.hasOwnProperty(e)){let i=parseInt(e,10),n=t[e],o=n[0],c=n[1];(!Fp(i,1,20)||o.length>Rh||c.length>Ch)&&delete t[e]}}um(t){this.dm(t);let e=ka(t)?[]:t;return window.csJSON.stringify(e)}FR(t){return!mt(t)||L(t)||Lt(t)}getAllValidCustomVars(){let t=this.getCustomVariablesSession();for(let e in this.Ve)this.Ve.hasOwnProperty(e)&&(this.qt[e]=this.Ve[e]);for(let e in this.qt)this.qt.hasOwnProperty(e)&&(t[e]=this.qt[e]);return this.dm(t),t}}return s})(),es="_cs_id",Ih=(()=>{class s{constructor(t,e,i){this.f=t,this.N=e,this.K=i}onCookieToSet(t){this.gi=t}onCookieToRemove(t){this.mi=t}get(){let t;return this.f.cookielessTrackingEnabled?t=this.K.getItem(es):t=this.N.get(es),t?(am(t)||W.warn(`Invalid visitor string: ${t}`),nm(t)):null}set(t){var e;let i=om(t);if(this.f.cookielessTrackingEnabled)this.K.setItem(es,i);else{let n=new csDate(t.expires);this.N.set(es,i,n),(e=this.gi)===null||e===void 0||e.call(this,es,i,n)}}remove(){var t;this.f.cookielessTrackingEnabled?this.K.removeItem(es):(this.N.delete(es),(t=this.mi)===null||t===void 0||t.call(this,es))}handleSubdomainChange(){if(this.f.cookielessTrackingEnabled)return;let t=this.get();t&&(t.allowSubdomains=this.f.allowSubdomains,this.f.allowSubdomains?this.N.delete(es,io.CURRENT_DOMAIN):this.N.delete(es,this.N.getRootDomain()),this.set(t))}}return s})(),i_=["class","data-com.agilebits.onepassword.initial-value","data-com.onepassword.iv","data-ember-action","data-initial-value","data-previous-value","data-react-checksum","data-reactid","id","maxlength","onclick","onsubmit","style"],r_=1024,n_=1024,ap=(()=>{class s{constructor(t,e){this.ft=t,this.f=e}getEventTargetPathAndHierarchy(t,e){let i=te(t),n={isNodeSensitive(o){return Y.isMaskedElement(o)||Y.isMaskedElementChild(o)},isAttributeSensitive(o,c){return Y.isMaskedAttribute(o,c)},allWhitelistedAttributes:ru(this.f.whitelistedAttributes),attributeIgnoreTokens:i_,useAnonymization:e,attrMaxLength:n_,hierarchyMaxLength:r_};return this.ft.getElementPathAndHierarchy(i,n,{dynamicIdRegex:this.f.dynamicIdRegex,...this.f.pathComputationRules})}getEventTargetPath(t){let e=te(t);return this.ft.getElementPath(e,{dynamicIdRegex:this.f.dynamicIdRegex,...this.f.pathComputationRules})}getEventTargetPathAndTargetLink(t){let e=te(t),{path:i,firstAnchorParent:n}=this.ft.getElementPathAndFirstAnchorParent(e,{dynamicIdRegex:this.f.dynamicIdRegex,...this.f.pathComputationRules}),o=this.$R(n)?n.href:"";return{path:i,targetLink:o}}hasValidEventTarget(t){let e=te(t);return this.ft.isValidElement(e)}getElementPath(t){return this.ft.getElementPath(t,{dynamicIdRegex:this.f.dynamicIdRegex,...this.f.pathComputationRules})}$R(t){var e;return t!==null&&t.hasAttribute("href")&&!Fa((e=t.getAttribute("href"))!==null&&e!==void 0?e:"","#")}}return s})(),cp=(()=>{class s{constructor(t,e){this.Q=t,this.zR=e}transformEvent(t,e){this.GR(t,e.event);let i=this.Q.getElementPath(t);return this.qR(i,e.event),e}GR(t,e){if(Uy(e)){let i=t.getBoundingClientRect();e.x=Math.round(i.left+e.x+Yt.windowOffsetX()),e.y=Math.round(i.top+e.y+Yt.windowOffsetY())}}qR(t,e){ju(e)&&(e.tgt=`${t}${Vr}${e.tgt}`),Ly(e)&&(e.tgtHM=`${t}${Vr}${e.tgtHM}`,this.zR||(e.tgtHMH=Ku(e.tgtHM))),Vy(e)&&(e.tgtLk=`${t}${Vr}${e.tgtLk}`)}}return s})(),lp=(()=>{class s{constructor(t){this.Q=t}transformEvent(t,e){let i=this.Q.getElementPath(t);return{iframePath:e.iframePath?`${i}${Vr}${e.iframePath}`:i,commands:e.commands}}}return s})(),hp=(()=>{class s{constructor(t){this.Q=t}transformEvent(t,e){if(e.products.length===0)return e;let i=this.Q.getElementPath(t),n=csArray.prototype.map.call(e.products,o=>({...o,targetPath:`${i}${Vr}${o.targetPath}`}));return{...e,products:n}}}return s})(),up=(()=>{class s{constructor(){this.WR={clientX:2,clientY:3},this.YR={clientX:1,clientY:2},this.XR=[Z.POINTER_DOWN,Z.POINTER_MOVE,Z.POINTER_UP],this.KR=[Z.TOUCH_START,Z.TOUCH_MOVE,Z.TOUCH_END]}transformEvents(t,e){if(!Ct.isConnected(t))return e.events=csArray.prototype.filter.call(e.events,c=>c.type!==Z.VISIBILITY_CHANGE),e.events.length===0||(W.warn(`IframeRecordingEventsTransformer received event ${$.RecordingEvent} from disconnected iframe, content:${csJSON.stringify(e.events)}`),e.events=[]),e;let i=Rt(t),n=null;csArray.prototype.some.call(e.events,c=>this.pm(c)||this.fm(c))&&(n=t.getBoundingClientRect());for(let c of e.events)this.pm(c)?this.JR(n,c):this.fm(c)&&this.QR(n,c),c.context=c.context&&c.context.length>0?`${i}/${c.context}`:`${i}`;return e}QR(t,e){this.gm(this.YR,t,e)}JR(t,e){this.gm(this.WR,t,e)}gm(t,e,i){i.args&&(i.args[t.clientX]=Math.round(e.left+i.args[t.clientX]),i.args[t.clientY]=Math.round(e.top+i.args[t.clientY]))}pm(t){return csArray.prototype.indexOf.call(this.XR,t.type)!==-1}fm(t){return csArray.prototype.indexOf.call(this.KR,t.type)!==-1}}return s})(),o_=(()=>{class s{constructor(t){this.hu=t}start(){this.hu.onEvent(t=>this.J(t)),this.hu.start()}stop(){this.hu.stop()}J(t){let e=`Content Security Policy error. Violated directive: ${t.violatedDirective} - Source file: ${t.sourceFile}`;W.warn(e)}}return s})(),a_=(()=>{class s{constructor(){this.$t={boundElement:document,type:"securitypolicyviolation",listener:t=>this.securityPolicyViolationListener(t)}}start(){Dt(this.$t)}stop(){xt(this.$t)}onEvent(t){this.L=t}ZR(t){if(!t)return!1;let e=t.disposition;return L(t.sourceFile)&&csArray.prototype.some.call(s.t0,i=>csString.prototype.indexOf.call(t.sourceFile,i)>0)&&e!=="report"}securityPolicyViolationListener(t){this.ZR(t)&&this.L({violatedDirective:t.violatedDirective,sourceFile:t.sourceFile})}}return s.t0=["contentsquare","cdnssl.clicktale.net"],st([G("Event handler type: securitypolicyviolation")],s.prototype,"securityPolicyViolationListener",null),s})(),c_=(()=>{class s{init(){this.mm=new o_(new a_),this.mm.start()}onOptout(){this.mm.stop()}}return s})(),Ph=1/0,{toString:l_}=Object.prototype;function h_(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":l_.call(s)}var nl=s=>typeof s=="symbol"||typeof s=="object"&&s!=null&&h_(s)==="[object Symbol]";function dp(s){if(typeof s=="string"||nl(s))return s;let r=`${s}`;return typeof s=="number"?r==="0"&&1/s===-Ph?"-0":r:s instanceof Number&&r==="0"&&1/s.valueOf()===-Ph?"-0":r}var u_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d_=/^\w*$/;function p_(s,r){return csArray.isArray(s)?!1:typeof s=="number"||typeof s=="boolean"||s==null||nl(s)?!0:d_.test(s)||!u_.test(s)||r!=null&&s in Object(r)}function ol(s,r){if(typeof s!="function"||r!=null&&typeof r!="function")throw new TypeError("Expected a function");let t=function(...e){let i=r?r.apply(this,e):e[0],{cache:n}=t;if(n.has(i))return n.get(i);let o=s.apply(this,e);return t.cache=n.set(i,o)||n,o};return t.cache=new(ol.Cache||Map),t}ol.Cache=Map;var f_=500;function g_(s){let r=ol(s,t=>{let{cache:e}=r;return e.size===f_&&e.clear(),t});return r}var m_=46,y_=/\\(\\)?/g,E_=csRegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),pp=g_(s=>{let r=[];return csString.prototype.charCodeAt.call(s,0)===m_&&csArray.prototype.push.call(r,""),csString.prototype.replace.call(s,E_,(t,e,i,n)=>{let o=t;return i?o=csString.prototype.replace.call(n,y_,"$1"):e&&(o=csString.prototype.trim.call(e)),csArray.prototype.push.call(r,o),t}),r});function S_(s,r){return csArray.isArray(s)?s:p_(s,r)?[s]:pp(s)}function v_(s,r){let t=S_(r,s),e=s,i=0,{length:n}=t;for(;e!=null&&i"']/g,R_=csRegExp(mp.source),C_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kn=/($^)/,I_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},P_=/[()=,{}[\]/\s]/,O_=/<%-([\s\S]+?)%>/g,N_=/<%([\s\S]+?)%>/g,yp=/<%=([\s\S]+?)%>/g,{hasOwnProperty:Oh}=Object.prototype,M_="Invalid `variable` option passed into `_.template`";function k_(s){return`\\${I_[s]}`}var D_={"&":"&","<":"<",">":">",'"':""","'":"'"},x_={escape:O_,evaluate:N_,interpolate:yp,variable:"",imports:{_:{template:jn,escape(s){return s&&R_.test(s)?csString.prototype.replace.call(s,mp,r=>D_[r]):s!=null?s:""}}}};function jn(s,r){let t={...x_,...r},e=Object.keys(t.imports||{}),i=csArray.prototype.map.call(e,A=>t==null?void 0:t.imports[A]),n,o,c=0,u=t.interpolate||kn,d="__p += '",E=csRegExp(`${(t.escape||kn).source}|${u.source}|${(u===yp?C_:kn).source}|${(t.evaluate||kn).source}|$`,"g"),f=`//# sourceURL=${Oh.call(t,"sourceURL")?csString.prototype.replace.call(`${t.sourceURL}`,/\s/g," "):void 0} `;s==null||csString.prototype.replace.call(s,E,(A,V,U,P,C,F)=>{let j=U||P;return d+=csString.prototype.replace.call(csString.prototype.slice.call(s,c,F),A_,k_),V&&(n=!0,d+=`' + __e(${V}) + '`),C&&(o=!0,d+=`'; ${C}; __p += '`),j&&(d+=`' + ((__t = (${j})) == null ? '' : __t) + '`),c=F+A.length,A}),d+=`'; `;let _=Oh.call(t,"variable")&&t.variable;if(!_)d=`with (obj) { ${d} } `;else if(P_.test(_))throw new Error(M_);d=csString.prototype.replace.call(csString.prototype.replace.call(o?csString.prototype.replace.call(d,w_,""):d,T_,"$1"),b_,"$1;"),d=`function(${_||"obj"}) { ${_?"":`obj || (obj = {}); `}var __t, __p = ''${n?", __e = _.escape":""}${o?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `}${d}return __p }`;let w;try{w=Function(...e,`${f}return ${d}`)(...i)}catch(A){w=A}if(w.source=d,w instanceof Error)throw w;return w}var L_=/^(\s*("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')\s*,?)+$/,V_=/<%[\s\S]+?%>|<%-[\s\S]+?%>|<%=[\s\S]+?%>|\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/,U_=/^document\.querySelector\(("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')\)\.(textContent|value)$/;function Nh(s){if(!L_.test(s)||V_.test(s))throw new Error("whitelisted function is wrongly used")}var Mh={"window.location.hash.replace(":(s,r)=>{let t=csString.prototype.substring.call(s,29,s.length-1);return Nh(t),jn(`\${${s}}`)(r)},"window.sessionStorage.getItem(":(s,r)=>{let t=csString.prototype.substring.call(s,30,s.length-1);return Nh(t),jn(`\${${s}}`)(r)},"document.querySelector(":(s,r)=>{if(U_.test(s))return jn(`\${${s}}`)(r)},"new Date().getTime()":(s,r)=>new csDate().getTime().toString()};function j_(s){let r=Ps(Object.keys(Mh),t=>se(s,t));if(r)return Mh[r]}function H_(s){return se(s,"'")&&rr(s,"'")}var B_=/\$\{([\s\S]+?)\}/g,F_=s=>(r,t,e)=>{let i="";return csArray.prototype.forEach.call(csString.prototype.split.call(t,"+"),n=>{let o=csString.prototype.trim.call(n),c=gp(s,o);if(c===void 0)if(H_(o))c=csString.prototype.substring.call(o,1,o.length-1);else{let u=j_(o);if(u&&(c=u(o,s)),c===void 0)throw new Error("undefined not allowed")}i+=c}),i};function ir(s,r){try{return csString.prototype.replace.call(s,B_,F_(r))}catch{return null}}function uc(s,r){let t={};for(let e of Object.keys(s)){let i=s[e];if(L(i)){let n=ir(i,r);if(n===null)return null;t[e]=n}else t[e]=i}return t}function dc(s,r){let t=csArray.prototype.join.call(csArray.prototype.filter.call(csArray.prototype.map.call(csString.prototype.split.call(s,","),e=>ir(e,r)),e=>e!==null&&ee(e)),",");return ee(t)?t:null}function $_(s){return csArray.isArray(s)?csArray.prototype.map.call(s,dp):nl(s)?[s]:csArray.from(pp(s))}function z_(s,r){try{let e=/^values\(([a-zA-Z0-9_$[\].]+)\)\[\?([a-zA-Z0-9_$]+)\]$/.exec(s);if(!e)return null;let i=e[1],n=e[2],o=gp(r,$_(i));if(typeof o!="object"||o===null)return null;let c=[];return csArray.prototype.forEach.call(Object.keys(o),u=>{let d=o[u];typeof d=="object"&&d!==null&&!csArray.isArray(d)&&n in d&&csArray.prototype.push.call(c,d)}),c}catch{return null}}function G_(s,r){let e=/^\[([0-9]+):([0-9+])\]$/.exec(s);if(!e)return null;let i=parseInt(e[1],10),n=parseInt(e[2],10);return n<=i||n>r.length?null:csArray.prototype.slice.call(r,i,n)}function q_(s,r){let t=csString.prototype.split.call(s,"|");if(t.length>2)return null;let e=z_(csString.prototype.trim.call(t[0]),r);return t.length===2?e===null?null:G_(csString.prototype.trim.call(t[1]),e):e}var Na=(()=>{let s;return function(r){r.AND="AND",r.OR="OR"}(s||(s={})),s})(),We=(()=>{let s;return function(r){r.STARTS_WITH="startsWith",r.EQUALS="equals",r.NOT_EQUALS="notEquals",r.CONTAINS="contains",r.NOT_CONTAINS="notContains",r.MATCHES="matches",r.NOT_MATCHES="notMatches",r.EXIST="exist",r.NOT_EXIST="notExist"}(s||(s={})),s})();function Ep(s,r){return W_(s.operator,J_(s.args,r))}function W_(s,r){switch(s){case We.EXIST:case We.NOT_EXIST:return Y_(s,r);default:return X_(s,r)}}function Y_(s,r){let[t]=r;if(!ee(t))return!1;switch(s){case We.EXIST:return window.csquerySelector[document.nodeType].call(document,t)!==null;case We.NOT_EXIST:return window.csquerySelector[document.nodeType].call(document,t)===null;default:return!1}}function X_(s,r){let[t,e]=r;if(!(s in Na)&&!(L(t)&&L(e)))return!1;switch(s){case Na.AND:return!!csArray.prototype.reduce.call(r,(n,o)=>n&&o);case Na.OR:return!!csArray.prototype.reduce.call(r,(n,o)=>n||o);case We.STARTS_WITH:return se(t,e);case We.EQUALS:return t===e;case We.NOT_EQUALS:return t!==e;case We.CONTAINS:return csString.prototype.indexOf.call(t,e)>-1;case We.NOT_CONTAINS:return csString.prototype.indexOf.call(t,e)===-1;case We.MATCHES:{let n=kh(e);return n!==null&&n.test(t)}case We.NOT_MATCHES:{let n=kh(e);return n!==null&&!n.test(t)}default:return!1}}function K_(s){return!!(s&&s.operator&&s.args)}function J_(s,r){return csArray.prototype.map.call(s,t=>K_(t)?Ep(t,r):L(t)?ir(t,r):t)}function kh(s){let r=/^\/(.*)\/([gimy]*)$/.exec(s),t=null;if(r){let[,e,i]=r;try{t=new csRegExp(e,i)}catch{}}else try{t=new csRegExp(s)}catch{}return t}function al(s){switch(s){case"no decoding":return null;case"decode once":return{decodeURI:!0};case"decode multiple times":return{decodeURIDeep:!0};default:return null}}function cl(s){switch(s==null?void 0:s[0]){case"on next pageview only":return{lifespan:"onNextPageviewOnly"};default:return null}}var Ft=(()=>{class s{constructor(t,e){this.commandsService=t,this.args=e}}return s})(),sn=(()=>{class s extends Ft{}return s})(),Sp=(()=>{class s extends Ft{validateArgs(t){if(ft(t)){let e=mt(t.path)?L(t.path):!0,i=mt(t.decodeURI)?L(t.decodeURI):!0,n=mt(t.lifespan)?csArray.isArray(t.lifespan):!0;return e&&i&&n}return!1}execute(t){if(!t.path)this.eo([]);else{let e=[t.path],i=al(t.decodeURI),n=cl(t.lifespan),o={...i,...n};Object.keys(o).length&&e.push(o),this.eo(e)}}eo(t){this.commandsService.applyFromImplementation(po[0],t,"ArtificialPageviewTemplate")}}return s})(),Q_=(()=>{class s extends sn{validateArgs(t){return ft(t)?L(t.message)&&csArray.isArray(t.attributes):!1}execute(t,e){let i=ir(t.message,e);if(!i)return;let n={};for(let o of t.attributes){let c=ir(o.value,e);c!==null&&(n[o.key]=c)}this.commandsService.applyFromImplementation(sd[0],[i,n],"CustomErrorTemplate")}}return s})(),Z_=(()=>{class s extends Ft{validateArgs(t){if(ft(t)){let e=fp(t),i=csArray.isArray(t.scope)?zh(t.scope,n=>L(n)):!0;return e&&i&&Lt(t.index)&&L(t.name)&&L(t.value)}return!1}execute(t){this.commandsService.applyFromImplementation(mo[0],[t.index,t.name,t.value,t.scope[0]],"CustomVariableTemplate")}}return s})(),tw=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.selector):!1}execute(t){this.commandsService.applyFromImplementation(tl[0],[t.selector],"DataCsEncryptTemplate")}}return s})(),ew="data-cs-override-id",sw=(()=>{class s extends Ft{validateArgs(t){if(ft(t)){let e=Ot(t.value)?L(t.value):!0;return L(t.selector)&&e}return!1}execute(t){var e;if(!ee(t.selector))return;let i=window.csquerySelector[document.nodeType].call(document,t.selector);i&&i.setAttribute(ew,(e=t.value)!==null&&e!==void 0?e:"")}}return s})(),iw=20,rw=(()=>{class s extends sn{validateArgs(t){return ft(t)?fp(t)&&L(t.key)&&L(t.value)&&L(t.type):!1}execute(t,e){let i=uc(t,e);i!==null?this.eo(i):this.s0(t,e)()}s0(t,e){return()=>{let i=0,n=window.csSetInterval(()=>{i+=1;let o=uc(t,e);if(o!==null){window.csClearInterval(n),n=void 0,i=0,this.eo(o);return}i>=iw&&(window.csClearInterval(n),n=void 0,i=0)},100)}}eo(t){let e=t.value;if(t.type==="Integer"){let i=Number.parseInt(t.value,10);Number.isNaN(i)||(e=i)}this.commandsService.applyFromImplementation(Jr[0],[{key:t.key,value:e}],"DynamicVariableTemplate")}}return s})(),nw=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.transactionId)&&Lt(t.revenue)&&L(t.currency)&&L(t.name)&&L(t.sku)&&L(t.category)&&Lt(t.price)&&Lt(t.quantity):!1}execute(t){this.i0({id:t.transactionId,revenue:t.revenue,currency:t.currency}),this.r0({id:t.transactionId,name:t.name,sku:t.sku,category:t.category,price:t.price,quantity:t.quantity}),this.za()}i0(t){this.commandsService.applyFromImplementation(Qr[0],[t],"EcTransactionAllTemplate")}r0(t){this.commandsService.applyFromImplementation(lr[0],[t],"EcTransactionAllTemplate")}za(){this.commandsService.applyFromImplementation(Zr[0],[],"EcTransactionAllTemplate")}}return s})(),ow=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.id)&&Lt(t.revenue)&&L(t.currency):!1}execute(t){this.commandsService.applyFromImplementation(Qr[0],[t],"EcTransactionCreateTemplate")}}return s})(),aw=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.id)&&L(t.name)&&L(t.sku)&&L(t.category)&&Lt(t.price)&&Lt(t.quantity):!1}execute(t){this.commandsService.applyFromImplementation(lr[0],[t],"EcTransactionItemsAddTemplate")}}return s})(),cw=(()=>{class s extends Ft{validateArgs(t){return!!ft(t)}execute(){this.commandsService.applyFromImplementation(Zr[0],[],"EcTransactionSendTemplate")}}return s})(),lw=(()=>{class s extends sn{validateArgs(t){return ft(t)?Ot(t)&&L(t.selector):!1}execute(t,e){if(!Ot(t)||!L(t==null?void 0:t.selector))return;let i=dc(t.selector,e);i!==null&&this.commandsService.applyFromImplementation(fo[0],[i],"ElementUnmaskingTemplate")}}return s})(),hw=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(hr[0],[`@ETP@${t.eventName}`],"EventTriggerRecordingPageTemplate")}}return s})(),uw=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(hr[0],[`@ETS@${t.eventName}`],"EventTriggerRecordingSessionTemplate")}}return s})(),dw=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(uo[0],[t.eventName],"PageEventTemplate")}}return s})(),pw=(()=>{class s extends sn{validateArgs(t){if(ft(t)){let e=csArray.isArray(t.cssSelectors),i=csArray.isArray(t.attributes);return e&&i}return!1}execute(t,e){let i=csArray.prototype.filter.call(csArray.prototype.map.call(t.cssSelectors,c=>dc(c,e)),c=>!!c),n=csArray.prototype.filter.call(csArray.prototype.map.call(t.attributes,c=>{let u=ir(c.attrName,e),d=dc(c.selector,e);return{attrName:u,selector:d}}),c=>!!c.attrName&&!!c.selector),o={PIISelectors:[...i],Attributes:[...n]};this.commandsService.applyFromImplementation(ur[0],[o],"PIIMaskingTemplate")}}return s})(),fw=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(hr[0],[`${t.eventName}`],"RecordingEventTriggerTemplate")}}return s})(),gw=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.path):!1}execute(t){let e=[t.path],i=al(t.decodeURI),n=cl(t.lifespan),o={...i,...n};Object.keys(o).length&&e.push(o),this.commandsService.applyFromImplementation(Qn[0],e,"SetPathTemplate")}}return s})(),mw=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.query):!1}execute(t){let e=[t.query],i=al(t.decodeURI),n=cl(t.lifespan),o={...i,...n};Object.keys(o).length&&e.push(o),this.commandsService.applyFromImplementation(Zn[0],e,"SetQueryTemplate")}}return s})(),yw=(()=>{class s extends Ft{validateArgs(t){return!!ft(t)}execute(){this.commandsService.applyFromImplementation(Zc[0],[],"SrmOnlineAssetsTemplate")}}return s})(),Ew=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.status)&&L(t.selector):!1}execute(t){if(!ee(t.selector))return;let e=window.csquerySelector[document.nodeType].call(document,t.selector);e&&this.commandsService.applyFromImplementation(Wc[0],[t.status,e],"SubmitTemplate")}}return s})(),Pe=(()=>{class s{onEvent(t){this.onEventCallback=t}constructor(t,e,i){this.commandsService=t,this.condition=i,this.isStarted=!1,this.ym=!1,this.args=e}start(){this.ym||(this.onInit(),this.ym=!0),this.isStarted||(this.onStart(),this.isStarted=!0)}stop(){this.isStarted&&(this.onStop(),this.isStarted=!1)}}return st([G()],s.prototype,"start",null),st([G()],s.prototype,"stop",null),s})(),Dh="once per pageview",Sw="always",vw=(()=>{class s extends Pe{constructor(){super(...arguments),this.St=!0}validateArgs(t){if(ft(t)){let e=L(t.selector),i=t.frequency?t.frequency===Dh||t.frequency===Sw:!0;return e&&i}return!1}onInit(){if(!ee(this.args.selector)){this.St=!1;return}this.so=this.args.frequency?this.args.frequency===Dh:!0,this.z=new Ke((t,e)=>this.A(t,e))}onStart(){this.St&&this.z.observe(this.args.selector)}onStop(){this.St&&(this.z.processPendingMutations(),this.z.disconnect())}A(t,e){e==="added"&&(this.so?(this.stop(),this.onEventCallback({element:t[0]})):new Set(t).forEach(i=>this.onEventCallback({element:i})))}}return s})(),_w=(()=>{class s extends Pe{constructor(){super(...arguments),this.St=!0,this.Em=!1}validateArgs(t){return ft(t)?L(t.selector):!1}onInit(){if(!ee(this.args.selector)){this.St=!1;return}this.z=new Ke((t,e)=>{this.A(t,e)})}onStart(){this.St&&(this.z.observe(this.args.selector),this.Em=!0)}onStop(){this.St&&(this.z.processPendingMutations(),this.z.disconnect())}A(t,e){this.Em?e==="added"&&new Set(t).forEach(i=>this.onEventCallback({element:i})):this.onEventCallback({element:t[0]})}}return s})(),ww=(()=>{class s extends Pe{constructor(){super(...arguments),this.St=!0}validateArgs(t){return ft(t)?L(t.selector):!1}onInit(){if(!ee(this.args.selector)){this.St=!1;return}this.j=new Ke(t=>this.n0(t)),this.D=new Je(t=>this.o0(t))}onStart(){this.St&&(this.Ga=csSymbol("MatchingElement"),this.j.observe(this.args.selector),this.D.observe())}onStop(){this.St&&(this.j.processPendingMutations(),this.j.disconnect(),this.D.disconnect())}n0(t){new Set(t).forEach(e=>this.a0(e))}o0(t){let e=_c(t,n=>n.removedNodes),i=[];for(let n of e)csArray.prototype.push.call(i,...this.c0(n));new Set(i).forEach(n=>this.onEventCallback({element:n}))}a0(t){t[this.Ga]=!0}c0(t){let e=[];return _e(t,NodeFilter.SHOW_ELEMENT).visitAll(i=>{i[this.Ga]&&(Ct.isConnected(i)?Te.call(i,this.args.selector)||delete i[this.Ga]:delete i[this.Ga],csArray.prototype.push.call(e,i))}),e}}return s})(),Tw=(()=>{class s{static readyStateChangeListener(t){csArray.prototype.forEach.call(ii(s.callbacks),e=>e(t))}static yh(t){s.callbacks.has(t)||(s.callbacks.add(t),s.callbacks.size===1&&Dt(s.eventHandler,!1))}static Eh(t){s.callbacks.delete(t),s.callbacks.size===0&&xt(s.eventHandler,!1)}constructor(t){this.A=t}observe(){s.yh(this.A)}disconnect(){s.Eh(this.A)}}return s.callbacks=new Set,s.eventHandler={boundElement:_t.document,type:"readystatechange",listener:s.readyStateChangeListener},St([G("readyStateChangeListener"),Pt()],s,"readyStateChangeListener",null),s})(),bw=(()=>{class s extends Pe{constructor(){super(...arguments),this.pu={state:"Any"}}validateArgs(t){var e;return ft(t)&&L(t.state)||(W.implementation(`PageStateTrigger has wrong argument: ${(e=this.args)===null||e===void 0?void 0:e.state}, fallback to default config.`),this.args=this.pu),!0}onInit(){this.Pt=this.args.state.toLowerCase(),this.z=new Tw(()=>{this.Sm(this.Pt,document.readyState)&&(this.onEventCallback(),this.z.disconnect())})}onStart(){this.Sm(this.Pt,document.readyState)?this.onEventCallback():this.z.observe()}onStop(){this.z.disconnect()}Sm(t,e){let i=s.vm[e];return s.vm[t]<=i}}return s.vm={complete:3,interactive:2,loading:1,any:0},s})(),Aw=(()=>{class s extends Pe{validateArgs(t){return!!ft(t)}l0(){this.isStarted&&this.onEventCallback()}onInit(){this.commandsService.applyFromImplementation(ho[0],[()=>this.l0()],"AfterPageViewTrigger")}onStart(){}onStop(){}}return s})(),Rw=(()=>{class s extends Pe{constructor(){super(...arguments),this.fu=!1,this.St=!0,this.Xs=!0,this.oi={boundElement:document,type:"click",listener:t=>{if(this.fu){this.fu=!1;return}this.onClickOrTap(t)}},this.h0=(t,e)=>{t.type===Wt.TAP&&(this.fu=!0,this.onClickOrTap(e))}}validateArgs(t){return ft(t)?L(t.selector):!1}onClickOrTap({target:t}){if(Ot(t)&&Ns(t)){let e=tr(t,this.args.selector);e&&this.onEventCallback({element:e})}}onInit(){if(!ee(this.args.selector)){this.St=!1;return}this.xn=new Rd(this.h0)}onStart(){var t;this.St&&(Dt(this.oi,this.Xs),(t=this.xn)===null||t===void 0||t.observe())}onStop(){var t;this.St&&(xt(this.oi,this.Xs),(t=this.xn)===null||t===void 0||t.disconnect())}}return st([G("onClickOrTap"),Pt()],s.prototype,"onClickOrTap",null),s})(),Cw=(()=>{class s{static u0(){var t,e,i,n;if("history"in window){let o=Object.getOwnPropertyDescriptors(history);if(!((t=o.pushState)===null||t===void 0)&&t.writable&&(!((e=o.replaceState)===null||e===void 0)&&e.writable))return history}if(History.prototype){let o=Object.getOwnPropertyDescriptors(History.prototype);if(!((i=o.pushState)===null||i===void 0)&&i.writable&&(!((n=o.replaceState)===null||n===void 0)&&n.writable))return History.prototype}Nt.warn("Unable to override pushState, replaceState",!0,"HistoryChangeObserver")}static Xc(){let t=s.u0();s.io===null&&we(t==null?void 0:t.pushState)&&(s.io=Rs({target:t,methodName:"pushState",hook:({args:e})=>{s._m("pushstate",e)}})),s.ro===null&&we(t==null?void 0:t.replaceState)&&(s.ro=Rs({target:t,methodName:"replaceState",hook:({args:e})=>{s._m("replacestate",e)}}))}static Ur(t){var e,i;s.ve.add(t),s.ve.size===1&&((s.io===null||s.ro===null)&&s.Xc(),(e=s.io)===null||e===void 0||e.activate(),(i=s.ro)===null||i===void 0||i.activate(),Dt(s.wm),Dt(s.Tm))}static Hr(t){var e,i;s.ve.delete(t),s.ve.size===0&&((e=s.io)===null||e===void 0||e.deactivate(),(i=s.ro)===null||i===void 0||i.deactivate(),xt(s.wm),xt(s.Tm))}static _m(t,e){let i={type:t,state:e[0]};L(e[2])&&(i.url=e[2]),s.Er(i)}static popstateListener(t){s.Er({type:"popstate",state:t.state})}static hashchangeListener(t){s.Er({type:"hashchange",state:null,url:t.newURL})}static Er(t){csArray.prototype.forEach.call(ii(s.ve),e=>{e(t)})}constructor(t){this.A=t}observe(){s.Ur(this.A)}disconnect(){s.Hr(this.A)}}return s.io=null,s.ro=null,s.wm={boundElement:_t,type:"popstate",listener:r=>s.popstateListener(r)},s.Tm={boundElement:_t,type:"hashchange",listener:r=>s.hashchangeListener(r)},s.ve=new Set,St([G("popstateListener"),Pt()],s,"popstateListener",null),St([G("hashchangeListener"),Pt()],s,"hashchangeListener",null),s})(),Iw=(()=>{class s extends Pe{validateArgs(t){if(ft(t)){let e=L(t.useDebounce),i=t.useDebounce==="yes"?Lt(t==null?void 0:t.window):!0,n=L(t.listeners);return e&&i&&n}return!1}onInit(){this.args.useDebounce==="yes"?this.Qt=jr(()=>{this.onEventCallback()},this.args.window):this.Qt=this.onEventCallback,this.z=new Cw(t=>this.d0(t))}bm(){return window.location.href}d0(t){let e=t.type==="replacestate"&&this.args.listeners.indexOf("replaceState")===-1,i=t.type==="hashchange"&&this.args.listeners.indexOf("hashchange")===-1;if(e||i)return;let n=this.bm();this.Am!==n&&(this.Am=n,this.Qt())}onStart(){this.Am=this.bm(),this.z.observe()}onStop(){this.z.disconnect()}}return s})(),Pw=(()=>{class s extends Pe{constructor(){super(...arguments),this.St=!0,this.Xs=!0,this.oi={boundElement:document,type:"submit",listener:t=>this.submitListener(t)}}validateArgs(t){return ft(t)?L(t.selector):!1}submitListener({target:t}){Ot(t)&&Ns(t)&&Te.call(t,this.args.selector)&&this.onEventCallback({element:t})}onInit(){ee(this.args.selector)||(this.St=!1)}onStart(){this.St&&Dt(this.oi,this.Xs)}onStop(){this.St&&xt(this.oi,this.Xs)}}return st([G("submitListener"),Pt()],s.prototype,"submitListener",null),s})(),Ow=(()=>{class s extends Pe{constructor(){super(...arguments),this.St=!0,this.Rm={boundElement:document,type:"mouseover",listener:t=>this.mouseoverListener(t)},this.Cm={boundElement:document,type:"mouseleave",listener:t=>this.mouseleaveListener(t)}}validateArgs(t){return ft(t)?L(t.selector):!1}onInit(){ee(this.args.selector)||(this.St=!1)}mouseleaveListener({target:t}){Ot(t)&&Ns(t)&&t[this.qa]&&delete t[this.qa]}mouseoverListener({target:t}){if(Ot(t)&&Ns(t)){let e=tr(t,this.args.selector);e!==null&&!e[this.qa]&&(e[this.qa]=!0,this.onEventCallback({element:e}))}}onStart(){this.St&&(this.qa=csSymbol("Hovered"),Dt(this.Cm,!0),Dt(this.Rm,!0))}onStop(){this.St&&(xt(this.Rm),xt(this.Cm))}}return st([G("mouseleaveListener"),Pt()],s.prototype,"mouseleaveListener",null),st([G("mouseoverListener"),Pt()],s.prototype,"mouseoverListener",null),s})(),Nw=(()=>{class s extends Pe{constructor(){super(...arguments),this.oi={boundElement:window,type:"hashchange",listener:t=>this.hashChangedListener(t)}}validateArgs(t){return!!ft(t)}hashChangedListener(t){t.newURL&&t.newURL===t.oldURL||this.onEventCallback()}onInit(){}onStart(){Dt(this.oi)}onStop(){xt(this.oi)}}return st([G("hashChangedListener"),Pt()],s.prototype,"hashChangedListener",null),s})(),Mw=(()=>{class s extends Pe{constructor(){super(...arguments),this.Wa=!0}validateArgs(t){return ft(t)?L(t.selector):!1}onInit(){if(!ee(this.args.selector)||!Jn.isSupported()){this.Wa=!1;return}this.It=new Jn({delay:0,trackOnce:!0,reobserve:!0}),this.j=new Ke(t=>this.gu(t),{closest:!0})}gu(t){for(let e of t)this.It.observe(e)}mu(t,e){if(this.isStarted&&e===xr.VisibleInViewPort){let i=tr(t,this.args.selector);i&&(this.onEventCallback({element:i}),this.stop(),this.Wa=!1)}}onStart(){this.Wa&&(this.It.start((t,e)=>this.mu(t,e)),this.j.observe(this.args.selector))}onStop(){this.Wa&&(this.It.stop(),this.j.disconnect())}}return s})(),kw=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.url):!1}execute(t){this.commandsService.applyFromImplementation(ed[0],[t.url],"ApiErrorsMaskUrlTemplate")}}return s})(),Dw=(()=>{class s extends Ft{validateArgs(t){return ft(t)?L(t.maskingPattern):!1}execute(t){this.commandsService.applyFromImplementation(sl[0],[t.maskingPattern],"NetworkRequestMaskUrlTemplate")}}return s})(),xh="once per pageview",xw="always",Lw=(()=>{class s extends Pe{constructor(){super(...arguments),this.yu=!1,this.Fe=!1,this.so=!0}validateArgs(t){if(ft(t)){let e=L(t.selector),i=t.frequency?t.frequency===xh||t.frequency===xw:!0;return e&&i}return!1}onInit(){Jn.isSupported()&&(this.Fe=!0,this.so=this.args.frequency?this.args.frequency===xh:!0,this.j=new Ke((t,e)=>{if(e==="initial")for(let i of t)Ct.isVisibleInViewportInForeground(i)&&(i[this.Eu]=!0);this.gu(t)},{closest:!0}),this.It=new Jn({delay:0,trackOnce:!1,reobserve:!0,allowSameMatch:!0}))}onStart(){!this.Fe||this.isStarted||(this.Eu=csSymbol("skipElement"),this.yu=!1,this.It.start((t,e)=>this.mu(t,e)),this.j.observe(this.args.selector))}onStop(){!this.Fe||!this.isStarted||(this.j.disconnect(),this.It.stop())}mu(t,e){if(this.isStarted&&e===xr.VisibleInViewPort){let i=t.closest(this.args.selector);if(i){if(i[this.Eu]){delete i[this.Eu];return}this.so&&this.stop(),(!this.so||!this.yu)&&(this.yu=!0,this.onEventCallback({element:i}))}}}gu(t){for(let e of t)this.It.observe(e)}}return s})(),pc=(()=>{class s extends Pe{constructor(){super(...arguments),this.pu={pageviewTypes:["natural","artificial"]}}validateArgs(t){var e;return ft(t)&&He(t)&&csArray.isArray(t.pageviewTypes)&&zh(t.pageviewTypes,n=>L(n))||(W.implementation(`BeforePageViewTrigger has wrong argument: ${(e=this.args)===null||e===void 0?void 0:e.pageviewTypes}, fallback to default config.`),this.args=this.pu),!0}onInit(){this.p0=this.args.pageviewTypes}onPageView(t){this.isStarted&&csArray.prototype.indexOf.call(this.p0,t)!==-1&&this.onEventCallback()}onStart(){}onStop(){}}return s})(),Vw=(()=>{class s extends Ft{constructor(){super(...arguments),this.Su=!1}validateArgs(t){return ft(t)&&L(t.type)&&L(t.urls)&&(t.type==="allow"||t.type==="block")&&csString.prototype.trim.call(t.urls).length>0?(this.Su=!1,!0):(W.implementation(`BlockAllowListForSRTemplate has wrong argument: ${t}, fallback to default config.`),this.Su=!0,!0)}execute(t){let e="";this.Su?e=Jd:e=this.f0(t.urls,t.type),this.commandsService.applyFromImplementation(Zd[0],[e],"BlockAllowListForSRTemplate")}f0(t,e){let i=e==="allow"?"?!":"";return i+=csArray.prototype.join.call(csArray.prototype.map.call(csString.prototype.split.call(t,","),n=>`.*${csString.prototype.trim.call(n)}`),"|"),`^(${i}).*?`}}return s})(),Uw=(()=>{class s{constructor(t){this.E=t,this.g0={ApiErrorsMaskUrl:kw,NetworkRequestMaskUrls:Dw,ArtificialPageview:Sp,BlockAllowListForSr:Vw,CustomError:Q_,CustomVariable:Z_,DataCsEncrypt:tw,DataCsOverride:sw,DynamicVariable:rw,EcTransactionAll:nw,EcTransactionCreate:ow,EcTransactionItemsAdd:aw,EcTransactionSend:cw,ElementUnmasking:lw,EventTriggerRecordingPage:hw,EventTriggerRecordingSession:uw,PageEvent:dw,PiiMasking:pw,RecordingEventTrigger:fw,SetPath:gw,SetQuery:mw,SrmOnlineAssets:yw,Submit:Ew},this.Ir={AfterPageView:Aw,ElementAdded:vw,ElementBecomesVisible:Lw,ElementExist:_w,ElementRemoved:ww,ElementVisibility:Mw,ElementClick:Rw,FormSubmit:Pw,HashChange:Nw,HistoryChange:Iw,Mouseover:Ow,PageState:bw,BeforePageView:pc}}m0(t){let e=this.g0[t.name];return e?new e(this.E,t.args):(W.error(`Implementations: template ${t.name} does not exist`),null)}y0(t){let e=this.Ir[t.name];return e?new e(this.E,t.args,t.condition):(W.error(`Implementations: trigger ${t.name} does not exist`),null)}parse(t){let e=[];for(let{triggers:i,template:n}of t){let o=this.m0(n);if(!o)continue;if(!o.validateArgs(o.args)){W.implementation(`${n.name} has wrong argument.`);continue}for(let u of i){let d=this.y0(u);if(!d)continue;if(!d.validateArgs(d.args)){W.implementation(`${u.name} has wrong argument.`);continue}csArray.prototype.push.call(e,{name:`${u.name}_${n.name}`,trigger:d,template:o})}}return e}}return s})(),jw=(()=>{class s{constructor(t,e,i){this.E0=t,this.O=i,this.Pe={window,document,location,cookies:{}},this.Ir=new Set,this.S0=new Uw(e)}init(){Object.defineProperty(this.Pe,"cookies",{get:()=>this.v0()});let t=this.S0.parse(this.E0);for(let{name:e,trigger:i,template:n}of t)i instanceof pc&&n instanceof Sp||(this.Ir.add(i),i.onEvent(o=>{this.onTriggerEvent(o,n),at.counters.CSTCSnippetUsed.count(e)}))}start(t=!1){this.Ir.forEach(e=>{e.condition&&!Ep(e.condition,this.Pe)||(t?this.O.schedule(()=>{e.start()}):e.start())})}stop(){this.Ir.forEach(t=>{t.stop()})}onBeforePageView(t){this.Ir.forEach(e=>{if(e instanceof pc){e.onPageView(t);return}})}onTriggerEvent(t,e){let i=this._0(t),n={...this.Pe,...i},o=[];if(__(e.args)&&L(e.args.iterable)&&e.args.iterable.length>0){let c=q_(e.args.iterable,n);if(Ot(c)){let u=csArray.prototype.map.call(c,d=>({...n,$:d}));csArray.prototype.push.call(o,...u)}}else csArray.prototype.push.call(o,n);if(e instanceof sn){for(let c of o)e.execute(e.args,c);return}for(let c of o){let u=uc(e.args,c);u&&e.execute(u)}}v0(){let t;try{t=document.cookie}catch{t=""}return csArray.prototype.reduce.call(csString.prototype.split.call(t,"; "),(e,i)=>{let[n,o]=csString.prototype.split.call(i,"=");return o!==void 0&&(e[n]=o),e},{})}_0(t){let e={...t};for(let i in e)Mt(e[i])&&(Y.isMaskedElement(e[i])||Y.isMaskedElementChild(e[i]))&&delete e[i];return e}}return st([ie("implementationsService.start")],s.prototype,"start",null),st([G()],s.prototype,"onTriggerEvent",null),s})(),vp=(()=>{class s{constructor(t,e,i){this.Is=new jw(t,e,i)}init(){this.Is.init()}onInitTracking(){this.Is.start(!0)}onOptout(){this.Is.stop()}onBeforeSessionRenewal(){this.Is.stop(),this.Is.start()}onBeforeArtificialPageView(){this.Is.stop(),this.Is.start(),this.Is.onBeforePageView("artificial")}onBeforeNaturalPageView(){this.Is.onBeforePageView("natural")}}return s})(),_p=(()=>{class s{constructor(t){this.configuration=t}}return s})(),Hw=(()=>{class s extends _p{constructor(t,e,i){super(t),this.configuration=t,this.no=e,this.S=i,this.w0=tt.RECORDING_GLOBAL_SAMPLING}refreshQuota(t){this.Im=t,this.oo=void 0,this.T0()}init(t){this.b0();let e=Bt.get(Ge);e!==null&&Lc(e)?t(this.canCollect(pm(e))):this.refreshQuota(i=>{t(i!==tt.QUOTA_REACHED)})}sanitizeSessionCollectState(t){return t}canCollect(t){return t!==null&&t.collectState!==tt.QUOTA_REACHED}computeInitialCollectState(t){return this.oo?(this.S.emitCollectStateChange(this.oo,this.configuration.malkaEtrEnabled?Se.ETR_ON:Se.ETR_OFF),this.oo):(W.warn("Quota file error computeInitialCollectState() called before quota answered"),tt.QUOTA_REACHED)}getEligibleCollectState(t){return t.collectState===tt.QUOTA_REACHED?tt.QUOTA_REACHED:!sr.isRecordingSupported()&&this.isReplayRecorded(t)?tt.ANALYTICS_ONLY:t.collectState===tt.RECORDING_RULES_TARGETING?tt.RECORDING_RULES_TARGETING:t.collectState===tt.ANALYTICS_ONLY_RULES_TARGETING?tt.ANALYTICS_ONLY_RULES_TARGETING:t.collectState===tt.RECORDING_GLOBAL_SAMPLING?tt.RECORDING_GLOBAL_SAMPLING:tt.ANALYTICS_ONLY}isReplayRecorded(t){return t.collectState===tt.RECORDING_GLOBAL_SAMPLING||t.collectState===tt.RECORDING_RULES_TARGETING}getInitialCollectState(){return this.oo||tt.QUOTA_REACHED}computeInitialCollectStateFromRecordingConsentGranted(t){return tt.ANALYTICS_ONLY}ao(t){this.oo=t,this.Im&&this.Im(t)}b0(){this.no.onError(t=>this.quotaServiceErrorHandler(`HTTP:${t.status} - fetching quota file for pid: ${this.configuration.projectId}`)),this.no.onTimeout(()=>this.quotaServiceErrorHandler("timeout")),this.no.onLoad(t=>this.quotaFileHandler(t))}T0(){this.no.isInProgress()||this.no.send()}quotaFileHandler(t){var e;if(!(!((e=t==null?void 0:t.quotas)===null||e===void 0)&&e.length)){this.quotaServiceErrorHandler("Quota types missing from config file");return}this.A0(t)}quotaServiceErrorHandler(t){let e=`Quota error - ${t}`;W.warn(e),this.ao(this.w0)}A0(t){let e=!1,i=!1;for(let n of t.quotas)n.quotaType==="ANALYTICS"&&n.value?e=!0:n.quotaType==="RECORDING"&&n.value&&os.boolean(Math.round(n.value*100))&&(i=!0);!e&&i?this.quotaServiceErrorHandler(`Quota types impossible: replay without analytics - ${csJSON.stringify(t)}`):e&&i?sr.isRecordingSupported()?this.ao(tt.RECORDING_GLOBAL_SAMPLING):this.ao(tt.ANALYTICS_ONLY):e&&!i?this.ao(tt.ANALYTICS_ONLY):this.ao(tt.QUOTA_REACHED)}getRecordingConsentWithdrawn(){return tt.ANALYTICS_ONLY}}return st([G("Quota File: quotaFileHandler")],s.prototype,"quotaFileHandler",null),st([G("Quota File: onerror")],s.prototype,"quotaServiceErrorHandler",null),s})(),Bw=(()=>{class s extends _p{constructor(t,e,i,n,o){super(t),this.configuration=t,this.S=e,this.Jh=i,this.w=n,this.vu=o,this._u=!1}refreshQuota(){}canCollect(t){return!0}init(){this.configuration.malkaUrlEnabled&&this.configuration.hasRecordingUrlRules()&&(this._u=!0,this.vu.setRegexRules(this.configuration.recordingUrlRules))}sanitizeSessionCollectState(t){return(t.collectState===tt.QUOTA_REACHED||t.collectState===tt.RECORDING_RULES_TARGETING||t.collectState===tt.RECORDING_TEMPORARILY)&&(t.collectState=tt.ANALYTICS_ONLY),t}computeInitialCollectState(){return Js.isReplayConsentNeeded(this.configuration)?tt.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED:this.Fa()}computeInitialCollectStateFromRecordingConsentGranted(){return this.Fa()}Fa(){if(!sr.isRecordingSupported())return tt.ANALYTICS_ONLY;let t=tt.ANALYTICS_ONLY,e=Se.ETR_OFF;return os.percentage(){class s{constructor(){this.R0={PIISelectors:["picture","img","video","audio"],Attributes:[]},this.ps={elementSelector:"",attrSelector:"",attrSelectors:[]};let t={PIISelectors:Fw(),Attributes:$w()};this.ps=Y.getComputedSelectorSettings(t,this.ps)}init(){this.C0()}setMaskedElementSettingsFromCommand(t){if(t=Y.sanitizeSelectorUserInput(t),!Y.isSelectorUserInput(t))throw new Error(`Command misuse: ${ur[0]}`);this.wu(t)}setMaskedElementSettingsFromParent(t){let e={PIISelectors:csString.prototype.split.call(t.elementSelector,","),Attributes:t.attrSelectors};this.wu(e)}getMaskedElementSettings(t){return t?this.Pm(this.R0):this.ps}C0(){var t,e,i,n,o,c;let u={PIISelectors:[],Attributes:[]};((i=(e=(t=window==null?void 0:window.ClickTaleSettings)===null||t===void 0?void 0:t.DOM)===null||e===void 0?void 0:e.PII)===null||i===void 0?void 0:i.Text)instanceof Array&&u.PIISelectors.push(...window.ClickTaleSettings.DOM.PII.Text),((c=(o=(n=window==null?void 0:window.ClickTaleSettings)===null||n===void 0?void 0:n.DOM)===null||o===void 0?void 0:o.PII)===null||c===void 0?void 0:c.Attributes)instanceof Array&&window.ClickTaleSettings.DOM.PII.Attributes.forEach(d=>{L(d.attr)&&L(d.rule)&&u.Attributes.push({selector:d.rule,attrName:d.attr})}),this.wu(u)}wu(t){this.ps=this.Pm(t)}Pm(t){return Y.getComputedSelectorSettings(t,this.ps)}}return s})(),zw=(()=>{class s{constructor(t,e){this.tt=t,this.Tt=e,this.Tu=!1}getRequestParameters(){return{dr:this.get()}}addUrlMaskingPattern(t){this.Tt.addUrlMaskingPattern(t)}enableRemoveQueryString(){this.Tu=!0}disableRemoveQueryString(){this.Tu=!1}get(){let t=this.Tu?this.tt.removeQueryString(this.Om()):this.Om();return this.tt.anonymizeUrl(t,{maskingPatterns:this.Tt.getUrlMaskingPatterns()})}Om(){let t="";try{t=window.top.document.referrer}catch{if(window.parent)try{t=window.parent.document.referrer}catch{t=""}}return t===""&&(t=document.referrer),typeof t!="string"&&(t=""),t}}return s})(),Gw=60*1e3,qw=30*1e3,Ww=(()=>{class s{constructor(t,e){this.R=t,this.I=e,this.bu=!1,this.I0=co(()=>this.R.refreshSession(),qw)}onSessionExpired(t){this.P0=t}isSessionValid(){return this.bu?!0:!(!this.R.hasValidSession()||this.R.pollCacheRefreshEvent()&&this.I.isSessionRenewed())}isCurrentPageviewValid(){let t=this.R.hasValidSession();return this.R.pollCacheRefreshEvent(!1)?!this.I.isSessionRenewed():t}refreshSession(){this.isSessionValid()?this.I0():this.O0()&&(this.Nm=K.now(),this.renewSession())}renewSession(){this.bu=!0,this.P0(),this.bu=!1}O0(){return!mt(this.Nm)||K.now()-this.Nm>Gw}}return s})(),Yw=(()=>{class s{constructor(t,e,i,n,o,c,u,d,E,f,_){this.f=t,this.S=e,this.E=i,this.I=n,this.w=o,this.X=c,this.M=u,this.nt=d,this.N=E,this.wt=f,this._t=_}start(){if(this.H0()){this.ht(),this.nt.init(),this.xm=new tS(this.E,this.S,this.X,this.w),this.xm.init();let t=new Wr;this.it=new ao(this.f,this.w,t,this._t),this.it.init();let e=new Uu(this.X),i=new Vu(this.E,e,this.f,this.N,this.wt,this.I,this.M,this.it,this.nt);i.init(),i.start(),this.Lm=new Km(this.f,this.I,this.w,e),this.Lm.init(),this.S.addListener(this.Lm);let n=new Fc;n.onLoad(()=>{this.S.emitStartNoTrackingMode(),this.E.start(),this.xm.start()}),n.start()}}H0(){var t;return((t=this.f.voc)===null||t===void 0?void 0:t.enabled)||this.f.vocData}ht(){this.E.register(ur,t=>{this.nt.setMaskedElementSettingsFromCommand(t)})}}return s})(),Xw=/\b((?:profile|user|last|first|primary|primary(?:[/_+-]|%20)?last)(?:[/_+-]|%20)?(?:name)[/=])[^#;?&/]+/gi,Kw="$1CS_ANONYMIZED_NAME",Tp=(()=>{class s{constructor(t){this.M=t}anonymizeUrl(t,e={}){let i=e.maskingPatterns||[],n=e.partialMaskingPatterns||[],o=this.M.anonymizePII(t);if(o=this.M.anonymizeJwt(o),e.maskNames){let d=o;o=this.hn(o),o!==d&&(at.counters.redactedPII.count("name"),at.counters.redactedPII.count("name-in-url"))}let c=this.B0(o,i);if(c!==o)return at.counters.redactedPII.count("url"),c;let u=this.F0(o,n);return u!==o&&at.counters.redactedPII.count("url"),u}removeQueryString(t){let{path:e,queryString:i}=this.ku(t);return i!==""?`${e}?`:e}ku(t){let e=csString.prototype.indexOf.call(t,"?"),i,n="";return e!==-1?(i=csString.prototype.slice.call(t,0,e),n=csString.prototype.slice.call(t,e,t.length)):i=t,{path:i,queryString:n}}B0(t,e){if(e.length===0)return t;let{path:i,queryString:n}=this.ku(t),o=csString.prototype.split.call(i,"/");for(let c of e){let u=this.$0(o,c);if(u!==null)return`${u}${n}`}return t}$0(t,e){if(t.length=e.length){csArray.prototype.push.call(i,o);continue}let c=e[n].key;if(this.Vm(c)){let u=e[n].value;csArray.prototype.push.call(i,u);continue}if(o===c){csArray.prototype.push.call(i,o);continue}return null}return csArray.prototype.join.call(i,"/")}F0(t,e){if(e.length===0)return t;let{path:i,queryString:n}=this.ku(t),o=csString.prototype.split.call(i,"/");for(let c of e)o=this.z0(o,c);return`${csArray.prototype.join.call(o,"/")}${n}`}z0(t,e){let i=[],n=0,c=t[0]==="http:"||t[0]==="https:"?2:0;for(let u=0;u=c){let f=e[n].value;csArray.prototype.push.call(i,d.length>0?f:""),n++,n===e.length&&(n=0);continue}if(d===E){csArray.prototype.push.call(i,d),n++,n===e.length&&(n=0);continue}for(let f=0;f{class s{constructor(t,e,i,n,o,c){this.f=t,this.pi=e,this.us=i,this.O=n,this.S=o,this.K=c}initWithQuota(){if(!this.f.collectionEnabled){this.Um();return}let t=new ry(this.f.getSettingsFileUri(),"",{type:"json",cacheMinutes:15});this.bt=new Hw(this.f,t,this.S),this.bt.init(e=>{e?this.init():this.Um()})}jm(){this.O.schedule(()=>{this.M=new Ci,this.tt=new Tp(this.M),this.w=new np(window.location,this.tt),this.N=new io(this.f,this.w,this.pi),this.N.init(),this.wt=new t_,this.E=new sp([hc.UXA]),this.X=new Zv,this.nt=new wp,this._t=new Fv(this.f,new jv(this.f,this.N,this.wt),this.S)})}Um(){this.jm(),this.O.schedule(()=>{let t=new Ih(this.f,this.N,this.K),e=new wh(this.f,t,this.S);new Yw(this.f,this.S,this.E,e,this.w,this.X,this.M,this.nt,this.N,this.wt,this._t).start()})}init(){wi.isSupported()&&wi.setDigestSalt(this.f.projectId.toString());let t,e,i,n,o,c,u,d,E,f,_,w,A,V,U,P,C,F,j,M,J,ct,gt,Xt,$t,O,z;this.jm(),this.O.schedule(()=>{_=new Wv(window.location,this.N),new c_().init(),w=Hd.create(W.warn),f=new uu(w),this.bt===void 0&&(this.bt=new Bw(this.f,this.S,_,this.w,new Wr),this.bt.init())}),this.O.schedule(()=>{t=new kv(this.f,this.N,this.K),e=new Lv(t,this.bt,this.S,this.f.replayConsentRequiredForSession,this.f.malkaEtrEnabled),i=new Ih(this.f,this.N,this.K),n=new wh(this.f,i,this.S,e),this.us.setContext(n,e)}),this.O.schedule(()=>{c=new Uv(n,e,this._t),u=new gm(this.f,this.N,this.K),d=new zv(window.location,u),E=new Gv(d),U=new Vv(this.f,n,d),$t=new ap(ns,this.f),M=new cp($t,this.f.isChild),J=new lp($t),ct=new hp($t),gt=new up,Xt=new op(M,J,ct,gt),P=new Jv(this.E,Xt),C=new Qd(this.w),F=new tp(C,this.E);let X=new mm(this.f,this.N,this.K);O=new s_(this.M,X),j=new e_(this.E,O);let it=new im(n,e,d,O,this.f)}),this.O.schedule(()=>{let X=new Nv(this.f,n,d,U,c,A,o,_);this.f.implementations&&(z=new vp(this.f.implementations,this.E,this.O),z.init(),this.S.addListener(z)),X.compute(it=>{this.O.schedule(()=>{P.init();let It=new Bv(this.f,this.E,this._t,e,this.S),Kt=new Yv(this.f,this.N,this.wt),ne=new Xv(this.S,window.location,Kt),Qe=new Kv(this.E,ne),Ds=new Qv(this.E,this.f),le=new zw(this.tt,new $d),Vt=new Ww(e,n),Oe,hs,Ne,At=new bh(this.f,n,e,V),wt=new bh(this.f,n,e,V,hs);it?(this.S.emitInitTracking(),new Ov(At,wt,w,n,e,Vt,le,this.S,this.E,P,this.f,Qe,ne,It,this._t,this.M,$t,this.tt,this.w,Ds,this.X,Xt,O,j,C,F,this.O,f,this.N,this.wt,this.bt,this.nt,Ne,Oe).start()):new $v(this.S,this.E,P,Qe,ne,E,It).start()})})})}}return s})(),vi=(()=>{let s;return function(r){let t="{domain}/tag/tag.bundle.js?v={version}",e,i={loadBundle(C){let F=C.source,j=C.data;if(c(j)){let M=()=>{let J=n(t,j);_(J,()=>F.postMessage("csBundleLoaded",C.origin))};e=j.token,P(i.loadBundle),u(C.origin)&&M()}}};function n(C,F){return csString.prototype.replace.call(csString.prototype.replace.call(csString.prototype.replace.call(C,"{version}",F.version),"{token}",F.token),"{domain}",F.domain)}function o(){return e}r.getToken=o;function c(C){return C&&C.type==="csBundleInjection"&&u(C.domain)&&E(C.version)&&d(C.token)}r.isAuthorizedIncomingMessage=c,r.hjDomainRegex=/^https?:\/\/[a-zA-Z0-9\.\-]+\.hotjar\.com$/;function u(C){return/^https?:\/\/[a-zA-Z0-9\.\-]+\.(content-square\.fr|contentsquare\.com|csq\.io)$/.test(C)||r.hjDomainRegex.test(C)}r.isAuthorizedDomain=u;function d(C){return/^[a-zA-Z0-9]+$/.test(C)}r.isAuthorizedToken=d;function E(C){return/^[a-zA-Z0-9\.]+$/.test(C)}r.isAuthorizedTagVersion=E;function f(){let C=window.opener||window.parent;return window!==C&&window.addEventListener}r.isActivable=f;function _(C,F){let j=document.createElement("script");j.type="text/javascript",j.async=!0,j.src=C,j.onload=F,j.charset="utf-8",document.head.appendChild(j)}r.addScript=_;function w(C){let F=document.createElement("link");F.rel="stylesheet",F.href=C,document.head.appendChild(F)}r.addStyle=w;function A(C){return`${C}?cb=${new csDate().getTime()}`}r.addCacheBusting=A;function V(){U(i.loadBundle)}r.waitForBundleInjection=V;function U(C){window.addEventListener("message",C,!1)}r.listen=U;function P(C){window.removeEventListener("message",C,!1)}r.removeListener=P}(s||(s={})),s})(),Lh="_hp_ved",Qw=18e5,Zw="/js/ved.js",tT="/css/ved.css",eT="/js/ved.css",sT=(()=>{let s;return function(r){r.StatusUpdate="status"}(s||(s={})),s})(),iT=(()=>{let s;return function(r){r.ReceivedInitMessage="received_init_message"}(s||(s={})),s})(),Ma=(()=>{let s;return function(r){let t=!1,e;function i(_){return e+_}function n(){let _=[i(tT),i(eT)];csArray.prototype.forEach.call(_,w=>{vi.addStyle(w)})}function o(_){let w=new csRegExp("(^|;)[ ]*"+_+"=([^;]*)"),A=w.exec(document.cookie);return A?decodeURIComponent(A[2]):null}function c(_,w,A){let V=encodeURIComponent(_)+"="+encodeURIComponent(w),U=new csDate;U.setTime(U.getTime()+A);let P=V+"; expires="+U.toUTCString()+"; path=/";document.cookie=P}function u(){c(Lh,"on",Qw)}function d(){return o(Lh)==="on"}r.isVLCookieEnabled=d;function E(_){window.heapV=Object.assign({},window.heap,{source:_==null?void 0:_.source,uri:e,loadArgs:_==null?void 0:_.data.args,identify:()=>{},track:()=>{}})}r.initializeHeapV=E;function f(_,w){var A;if(e=_,w){let V={type:sT.StatusUpdate,value:iT.ReceivedInitMessage},U={targetOrigin:w==null?void 0:w.origin};(A=w==null?void 0:w.source)===null||A===void 0||A.postMessage(V,U)}t||(t=!0,u(),E(w),window.heapV&&(vi.addScript(i(Zw)),n()))}r.init=f}(s||(s={})),s})(),rT=(()=>{let s;return function(r){let t=window.opener||window.parent,e="tag",i="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$/,vi.hjDomainRegex],o,c,u,d={initHeapVisualLabeler(M){var J;M.origin===u&&((J=M.data)===null||J===void 0?void 0:J.message)==="init"&&M.source&&(Ma.init(u,M),C(d.initHeapVisualLabeler))},ping(M){typeof M.data=="string"&&M.data==="ping"&&_(M.origin)&&(c=M.origin,o=vi.hjDomainRegex.test(M.origin)?i:M.origin,C(d.ping),P(d.insertMessageScript),w(vi.addCacheBusting("utils.js")))},insertMessageScript:F(M=>{typeof M.data=="string"&&M.data!=="ping"&&(C(d.insertMessageScript),w(M.data))})};function E(){return vi.getToken()}r.getToken=E;function f(){return window!==t&&window.addEventListener}r.isActivable=f;function _(M){return csArray.prototype.some.call(n,J=>J.test(M))}r.isAuthorizedDomain=_;function w(M,J){let ct=document.createElement("script");ct.type="text/javascript",ct.async=!0;let gt=o==null?void 0:csString.prototype.replace.call(o,/^https?:/,"");ct.src=`${gt}/${e}/${M}`,ct.onload=J,ct.charset="utf-8",document.getElementsByTagName("head")[0].appendChild(ct),A(M)}function A(M){csString.prototype.includes.call(M,"&mode=")&&sessionStorage.setItem("_hjRetakerMode",csString.prototype.split.call(M,"&mode=")[1])}function V(){P(d.ping),vi.waitForBundleInjection()}r.waitForConnection=V;function U(M){u=M,P(d.initHeapVisualLabeler),Ma.isVLCookieEnabled()&&Ma.init(u)}r.waitForHeapVisualLabeler=U;function P(M){window.addEventListener("message",M,!1)}r.listen=P;function C(M){window.removeEventListener("message",M,!1)}r.removeListener=C;function F(M){return function(J){J.origin===c&&M(J)}}r.secureListener=F;function j(M){c&&t.postMessage(M,c)}r.post=j}(s||(s={})),s})(),Dn=window.CSFrameCommunication||rT,nT=(()=>{class s extends go{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()}}return s})(),bp=(()=>{class s extends go{constructor(t){super(),this.O=t}emitBeforeNaturalPageView(t){for(let e of this.listeners)e.onBeforeNaturalPageView&&e.onBeforeNaturalPageView(t)}emitAfterNaturalPageView(){for(let t of this.listeners)t.onAfterNaturalPageView&&t.onAfterNaturalPageView()}emitInitTracking(){for(let t of this.listeners)t.onInitTracking&&t.onInitTracking()}emitStartTracking(t){for(let e of this.listeners)e.onStartTracking&&this.O.schedule(()=>e.onStartTracking(t))}emitStartNoTrackingMode(){for(let t of this.listeners)t.onStartNoTrackingMode&&this.O.schedule(()=>t.onStartNoTrackingMode())}emitArtificialPageViewEnd(){for(let t of this.listeners)if(t.onArtificialPageViewEnd)try{t.onArtificialPageViewEnd()}catch(e){W.error(e)}}emitBeforeArtificialPageView(t,e){for(let i of this.listeners)i.onBeforeArtificialPageView&&i.onBeforeArtificialPageView(t,e)}emitAfterArtificialPageView(){for(let t of this.listeners)t.onAfterArtificialPageView&&t.onAfterArtificialPageView()}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 i of this.listeners)i.onCollectStateChange&&i.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(){for(let t of this.listeners)t.onRecordingContextChange&&t.onRecordingContextChange()}emitSensitiveStatusChange(){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()}}return st([ie("emitStartTracking")],s.prototype,"emitStartTracking",null),s})(),Ap=["trackTransaction"],oT=(()=>{class s{constructor(t){this.Y=t}init(){this.Y.register(Jr),this.Y.register(mo),this.Y.register(Qn),this.Y.register(Zn),this.Y.register(po),this.Y.register(nd),this.Y.register(Qr),this.Y.register(lr),this.Y.register(Zr),this.Y.register(Ap),this.Y.register(zd),this.Y.register(Gd),this.Y.register(rl),this.Y.register(ep),this.Y.register(qd),this.Y.register(uo),this.Y.register(hr),this.Y.register(Zc),this.Y.register(Wd),this.Y.register(Yd),this.Y.register(Xd),this.Y.register(Kd),this.Y.register(sl),this.Y.register(Bd),this.Y.register(Ja),this.Y.register(Ka),this.Y.register(ey),this.Y.register(Pu)}onStartTracking(){this.Y.start()}onOptout(){this.Y.stop()}}return s})(),aT=(()=>{class s extends re{constructor(t,e){super(),this.E=t,this.C=e,this.zt=[]}onStart(){this.commandsBatchReady()}onStop(){this.zt=[]}register(t){for(let e of t)this.E.register([e],(...i)=>this.send(e,i))}send(t,e){csArray.prototype.push.call(this.zt,{name:t,params:e}),this.isStarted&&this.commandsBatchReady()}commandsBatchReady(){if(this.zt.length===0)return;let t={commands:this.zt};this.C.sendToParent($.Commands,t),this.zt=[]}}return st([G("Commands.iframe.commandsBatch.send")],s.prototype,"send",null),st([ar({wait:0,mode:"trailing"}),G("send iframe commands batch")],s.prototype,"commandsBatchReady",null),s})(),cT="Buffer is full, events might be missing.",lT=(()=>{class s{constructor(t=25){this.Hm=t,this.Pr=[]}reset(){this.Pr=[]}getMessages(){return this.Pr}addMessage(t){this.Pr.length{class s extends re{constructor(t){super(),this.buffer=new lT(t)}}return s})(),hT=25,uT=(()=>{class s extends Rp{constructor(t,e,i,n,o){super(hT),this.f=t,this.S=e,this.Os=i,this.Wt=n,this.ai=o,this.Ye=null,this.Bm={boundElement:window,type:"message",listener:c=>this.Vc(c)}}onStart(){Dt(this.Bm,!1),this.q0()}onStop(){xt(this.Bm,!1),this.Ye&&(bt.closeChannelPort(this.Ye),this.Ye=null)}sendToParent(t,e){let i=this.buildChildBaseMessage(t,e);this.$a(i)}q0(){let t=this.buildChildBaseMessage($.Discovery);bt.sendPostMessage(window.parent,"*",t)}buildChildBaseMessage(t,e){let i=bt.buildBaseMessage(t,Ce.Child,this.f.projectId);return e&&(i.content=e),i}$a(t){this.Ye!==null?bt.sendChannelMessage(this.Ye,t):this.buffer.addMessage(t)}W0(t,e){let i=bt.getNewChannelMessage();this.Ye=i.port1,this.Ye.onmessage=o=>{this.jc(o)};let n=this.buildChildBaseMessage($.Discovery);n.id=e,bt.sendPostMessage(window.parent,t,n,[i.port2]),this.sendAllMessagesFromBuffer()}jc(t){switch(t.data.type){case $.TrackingContextResultMessage:this.ai.emitTrackingContextResultMessage(t.data.content);break;case $.IntegrationCallback:{let e=t.data.content;e.initiator===Zi.AfterPageView?this.ai.emitAfterPageViewCallback(e):e.initiator===Zi.GetSessionKey?this.ai.emitIntegrationSessionKeyCallback(e):W.warn(`Iframe child received unknown IntegrationCallback type from parent : ${csJSON.stringify(t.data)}`);break}case $.Stop:this.S.emitOptout();break;case $.RecordingContext:{let e=t.data.content;this.Os.setRecordingContext(e),this.ai.emitParentRecordingContextChange(e);break}case $.SensitiveStatus:{let e=t.data.content;this.Wt.setSensitiveStatus(e),this.ai.emitParentSensitiveStatusChange(e);break}default:W.warn(`Iframe child received unknown channelMessage type from parent : ${csJSON.stringify(t.data)}`)}}Vc(t){if(this.Ye===null&&bt.isMessageValid(t,Ce.Parent,this.f.projectId,this.f.hostnames))switch(t.data.type){case $.Stop:this.S.emitOptout();break;case $.Discovery:if(!Os(t.data.id)||t.data.id<0){W.warn(`Iframe child received discovery without valid id from parent (${t.origin}) : ${csJSON.stringify(t.data)}`);return}this.W0(t.origin,t.data.id);break;default:W.warn(`Iframe child received unknown postMessage type from parent (${t.origin}) : ${csJSON.stringify(t.data)}`)}}sendAllMessagesFromBuffer(){if(this.Ye===null)return;let t=this.buffer.getMessages();for(let e of t)bt.sendChannelMessage(this.Ye,e);this.Y0(),this.buffer.reset()}Y0(){let t=bt.buildBaseMessage($.EndOfBufferedMessages,Ce.Child,this.f.projectId);bt.sendChannelMessage(this.Ye,t)}}return s})(),dT=(()=>{class s{constructor(t){this.C=t}onStartTracking(){this.C.start()}onOptout(){this.C.stop()}}return s})(),pT=(()=>{class s{constructor(t,e,i,n,o){this.Z=t,this.pt=e,this.C=i,this.Os=n,this.Wt=o}init(){this.Z.onChildMessage((t,e,i)=>this.pt.emitIframeEvent(t,e,i)),this.Z.setSentiveStatusCallback(()=>this.Wt.getSensitiveStatus()),this.Z.setRecordingContextCallback(()=>this.Os.getRecordingContext())}onStartTracking(){this.Z.start()}onOptout(){this.Z.stop()}onIframeRecordingUserEvent(t){let e={events:t,containsUserEvent:!0};this.C.sendToParent($.RecordingEvent,e)}onIframeRecordingBrowserEvent(t){let e={events:t,containsUserEvent:!1};this.C.sendToParent($.RecordingEvent,e)}onIframeAnalysisUserEvent(t){let e={event:t,isUserEvent:!0};this.C.sendToParent($.AnalysisEvent,e)}onIframeAnalysisBrowserEvent(t){let e={event:t,isUserEvent:!1};this.C.sendToParent($.AnalysisEvent,e)}onIframeJavascriptError(t){this.C.sendToParent($.JavascriptError,t)}onIframeApiError(t){this.C.sendToParent($.ApiError,t)}onIframeDetailedApiError(t){this.C.sendToParent($.DetailedApiError,t)}onIframeEmerchandisingMessage(t){this.C.sendToParent($.EmerchandisingMessage,t)}onIframeCommands(t){this.C.sendToParent($.Commands,t)}onIframeIntegrationCallback(t){this.C.sendToParent($.IntegrationCallback,t)}onTrackingContextRequestCallback(t){this.C.sendToParent($.TrackingContextRequestMessage,t)}onIframeStaticResource(t){this.C.sendToParent($.StaticResource,t)}onIframeCustomError(t){this.C.sendToParent($.CustomError,t)}onTrackingContextResultCallback(t){this.Z.sendToChildren($.TrackingContextResultMessage,t)}onAfterPageViewCallback(t){this.Z.sendToChildren($.IntegrationCallback,t)}onIntegrationSessionKeyCallback(t){this.Z.sendToChildren($.IntegrationCallback,t)}onParentRecordingContextChange(t){this.Z.sendToChildren($.RecordingContext,t)}onParentSensitiveStatusChange(t){this.Z.sendToChildren($.SensitiveStatus,t)}}return s})(),fT=(()=>{class s extends re{constructor(t,e,i,n,o,c,u,d){super(),this.zs=t,this.xt=e,this.C=i,this.gs=n,this.ms=o,this.vi=c,this._i=u,this.wi=d}init(){var t,e,i,n,o;this.zs.onEvent(c=>this.Nt(c)),this.xt.onEvent(c=>this.Nt(c)),(t=this.gs)===null||t===void 0||t.onEvent(c=>this.Nt(c)),(e=this.ms)===null||e===void 0||e.onEvent(c=>this.Nt(c)),(i=this.vi)===null||i===void 0||i.onEvent(c=>this.Nt(c)),(n=this._i)===null||n===void 0||n.onEvent(c=>this.Ae(c)),(o=this.wi)===null||o===void 0||o.onEvent(c=>this.Ae(c))}onStart(){var t,e,i,n,o;this.zs.start(),this.xt.start(),(t=this.gs)===null||t===void 0||t.start(),(e=this.ms)===null||e===void 0||e.start(),(i=this.vi)===null||i===void 0||i.start(),(n=this._i)===null||n===void 0||n.start(),(o=this.wi)===null||o===void 0||o.start()}onStop(){var t,e,i,n,o;this.zs.stop(),this.xt.stop(),(t=this.gs)===null||t===void 0||t.stop(),(e=this.ms)===null||e===void 0||e.stop(),(i=this.vi)===null||i===void 0||i.stop(),(n=this._i)===null||n===void 0||n.stop(),(o=this.wi)===null||o===void 0||o.stop()}Nt(t){let e={isUserEvent:!0,event:t};this.J(e)}Ae(t){let e={isUserEvent:!1,event:t};this.J(e)}J(t){!this.isStarted||t.event.type===nt.RESIZE||this.C.sendToParent($.AnalysisEvent,t)}}return s})(),gT=["webview:analytics:start"],mT=["webview:analytics:stop"],yT=(()=>{class s{constructor(t,e,i,n,o,c,u,d,E){this.f=t,this.Q=e,this.Lt=i,this.C=n,this.mt=o,this.gt=c,this.E=u,this.xt=d,this.ae=E}init(){let t,e,i=Zu(this.f,this.Q,this.ae),n=[];this.f.collectSubmit||csArray.prototype.push.call(n,"submit");let o=new Bu(i,this.Q,this.Lt,n),c=this.mt.isInWebViewContext()?{collectGestureVelocity:!0,collectGestureDistance:!0}:{collectGestureVelocity:!1,collectGestureDistance:!1},u=td(this.f,this.Q,this.ae),d=new Hu(u,this.xt,c),E,f,_;this.co=new fT(o,d,this.C,t,e,f,_,E),this.co.init(),this.mt.isInWebViewContext()&&this.X0()}onStartTracking(){this.co.start()}onOptout(){this.co.stop()}onStartAnalytics(){this.co.start()}onStopAnalytics(){this.co.stop()}X0(){this.E.register(gT,()=>this.gt.emitStartAnalytics(),{disableApplyPending:!0}),this.E.register(mT,()=>{this.gt.emitStopRecording(),this.gt.emitStopAnalytics()},{disableApplyPending:!0})}}return s})(),ET=(()=>{class s extends re{constructor(t,e,i,n,o=[],c){super(),this.f=t,this.lt=e,this.C=i,this.xe=n,this.De=o,this.Le=c,this.Du=!1,this.ji=!1,this.Fs=new Bc,this.B=[],this.Ka=!1,this.Cs=u=>this.Ae(u),this.Hn=u=>this.Nt(u)}init(){this.Ih()}Ih(){var t;this.xe.onEvent(this.Cs,this.Hn),(t=this.lt)===null||t===void 0||t.onInputNodeToEncrypt(this.Hn)}setEnableOnlineAssets(t){this.Du=t!=null?t:!1}setOnlineAssetsEnabledOnNextStart(t){this.ji=t}getStaticResourceManagerStatus(){return this.Le?{supported:yd.isSupported(),onlineAssets:{activated:this.Du,enableOnNextStart:this.ji}}:null}Ae(t){this.Z0(t),this.Ja()}Nt(t){this.Fm(t),this.Ja()}Fm(t){csArray.prototype.push.call(this.B,t),this.Ka=!0}Z0(t){csArray.prototype.push.call(this.B,t)}Ja(){ht(this.De,e=>{var i;return(i=e.flushEvents)===null||i===void 0?void 0:i.call(e)});let t={containsUserEvent:this.Ka,events:this.B};this.C.sendToParent($.RecordingEvent,t),this.B=[],this.Ka=!1}onStart(){this.Le&&this.Du&&this.Le.enableOnlineAssets(),this.xe.start(),this.f.emitDebugEvents&&this.Fs.emit("replayRecordingStarted"),ht(this.De,t=>{t.start&&t.start()})}onStop(){var t;this.xe.stop(),(t=this.Le)===null||t===void 0||t.disableOnlineAssets(),ht(this.De,e=>{e.stop&&e.stop()})}addInitialDom(t){for(let e=0;e=t.date){csArray.prototype.splice.call(this.B,e,0,t),this.Ka=!0,this.Ja();return}this.Fm(t),this.Ja()}}return s})(),Cp=(()=>{class s{constructor(t){this.f=t}isReplayUnanonymizedAllowedByConsent(){return!this.f.consentRequired}}return s})(),fc=(()=>{class s{static isWebViewLocalAssetsSupported(){return"URL"in window}}return s})(),ST=["webview:replay:start"],vT=["webview:replay:stop"],_T=(()=>{class s{constructor(t,e,i,n,o,c,u,d){this.f=t,this.gt=e,this.$m=i,this.ci=n,this.xu=o,this.E=c,this.w=u,this.Wt=d,this.Lu=!1}init(){let t=new Cp(this.f),e=new Wr;if(this.ee=new Qd(this.w),new tp(this.ee,this.E).init(),this.it=new ao(this.f,this.w,e,t),this.it.init(),fc.isWebViewLocalAssetsSupported()){let n=E=>{this.lo(E)},o=E=>W.error("An error occurred while fetching a styleSheet: "+E),c=new Set,u=E=>!c.has(E),d=E=>{c.add(E.assetId),this.lo([E])};this.$m.onAsset(E=>{this.tC(E)}),this.$m.onStyleSheetFound(E=>{this.xu.getStyleSheetAssets(E.assetId,n,o,u,d)})}this.eC()}onStartRecording(){if(this.Lu=!0,!this.ee.isUrlExcludedForSessionReplay()){let t=this.Wt.getSensitiveStatus();this.gt.emitParentRecordingContextChange({isRecording:!0,useAnonymization:t.useAnonymization})}}onStopRecording(){this.Lu=!1,this.gt.emitParentRecordingContextChange({isRecording:!1})}onArtificialPageViewEnd(){this.gt.emitParentRecordingContextChange({isRecording:!1})}onAfterArtificialPageView(){if(this.V()&&!this.ee.isUrlExcludedForSessionReplay()){let t=this.Wt.getSensitiveStatus();this.gt.emitParentRecordingContextChange({isRecording:!0,useAnonymization:t.useAnonymization})}}V(){return this.Lu}eC(){this.E.register(ST,()=>{this.gt.emitStartAnalytics(),this.gt.emitStartRecording()},{disableApplyPending:!0}),this.E.register(vT,()=>this.gt.emitStopRecording(),{disableApplyPending:!0})}tC(t){this.ci.sendToParent($.Assets,{assets:[t]})}lo(t){t.length!==0&&this.ci.sendToParent($.Assets,{assets:t})}}return s})();function wT(s){var r=/(\\)*\\(?:([a-fA-F0-9]{1,6})|(.))[\n\t\x20]?/g;return s.replace(r,function(t,e,i,n){if(e==="\\")return t.slice(1);if(n)return n;var o=parseInt(i,16),c=55296<=o&&o<=57343;return c||o===0||o>1114111?"\uFFFD":String.fromCodePoint(o)})}var TT=/(@import\s*("([^"]+)"|'([^']+)'))|(url\s*\(\s*((("([^"\]]+)"|'([^'\]]+)')\s*)|([^)\]]+))\))/g;function bT(s,r){var t=s.replace(TT,function(){for(var e=[],i=0;i{class s{constructor(t){this.sC=t}getStyleSheetAssets(t,e,i,n,o){let c=[];if(!Wn(t)){i(`Not a recognized valid css file path ${t}`);return}let u=(d,E)=>{let f=this.iC(d,E);csArray.prototype.forEach.call(f,_=>{csArray.prototype.push.call(c,_),Wn(_.assetId)&&n(_.assetId)&&(o==null||o(_),this.getStyleSheetAssets(_.assetId,e,i,n,o))}),e(c)};this.sC.getResourceContentText(t,u,i)}iC(t,e){return this.rC(t,RT(e))}rC(t,e){return csArray.prototype.map.call(csArray.prototype.filter.call(csArray.prototype.filter.call(e,i=>!Ye(i)),i=>!iu(i)),i=>({assetId:cu(i,t),assetBasePath:t,assetRawPath:i}))}}return s})(),Pp=(()=>{class s{getResourceContentText(t,e,i){let n=c=>{e(t,c.responseText)},o=this.nC(n,i);o.open("GET",t),o.send()}nC(t,e){let i=new XMLHttpRequest;return i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&(i.status===200?t(i):e(i.statusText))},i}}return s})(),CT=(()=>{class s{constructor(t,e,i,n,o,c,u,d,E,f,_,w,A){this.f=t,this.M=e,this.ce=i,this.S=n,this.C=o,this.Os=c,this.E=u,this.ai=d,this.mt=E,this.w=f,this.Wt=_,this.tt=w,this.lt=A}init(){let t=[],e=this.Os.getRecordingContext();this.qn=new md(!!e.useAnonymization,this.f.whitelistedAttributes,this.M,this.f.anonymizeDigits);let i=[];csArray.prototype.push.call(i,new gd,this.qn,new Ed(this.tt)),csArray.prototype.push.call(i,new Sd);let n=new Vd;csArray.prototype.push.call(t,n),this.mt.isInWebViewContext(),this.Fi=new Dd,this.Fi.init(),csArray.prototype.push.call(t,this.Fi),csArray.prototype.push.call(t,new kd(window.location,this.M));let o=[this.ce,new fd,new Md(csArray.prototype.filter.call(t,d=>d)),new bd,new Ad,new Cd,new wd(this.lt)],c=new Od(o,i),u=new Nd(c,this.S,this.bs);if(this.li=new ET(this.f,this.lt,this.C,u,t,this.Le),this.E.register(Ud,()=>this.Os.getRecordingContext().isRecording),this.E.register(jd,()=>this.li.getStaticResourceManagerStatus()),this.li.init(),this.mt.isInWebViewContext()){let d=new Ip(new Pp);this.Vu=new _T(this.f,this.ai,n,this.C,d,this.E,this.w,this.Wt),this.ai.addListener(this.Vu),this.S.addListener(this.Vu),this.Vu.init()}}onParentRecordingContextChange(t){var e,i;t.useAnonymization!==void 0&&this.Bi(t.useAnonymization),t.enableOnlineResourcesOnNextPageview!==void 0&&this.li.setOnlineAssetsEnabledOnNextStart(t.enableOnlineResourcesOnNextPageview),t.isRecording?(this.Uh(),this.li.setEnableOnlineAssets(t.enableOnlineResources),this.li.start(),(e=this.oC)===null||e===void 0||e.start()):(this.li.stop(),(i=this.oC)===null||i===void 0||i.stop())}onInitialDomStart(){}onInitialDomDone(t){this.Fi.start(),this.li.addInitialDom(t)}Bi(t){var e;this.qn.setAnonymization(t),(e=this.cA)===null||e===void 0||e.setAnonymization(t)}onOptout(){this.li.stop()}Uh(){var t,e,i,n;if(!((e=(t=this.f.experimental.sessionReplay)===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0)&&e.filterByHostSelector){let o=(n=(i=this.f.experimental.sessionReplay)===null||i===void 0?void 0:i.shadowRoot)===null||n===void 0?void 0:n.filterByHostSelector;ht(o,c=>{ee(c)&&Je.setShadowRootFilter(u=>{try{return Te.call(u.host,c)}catch{return!1}})})}}}return s})(),IT=(()=>{class s{constructor(t,e){this.ci=t,this.zm=e}init(){this.ci.onWebViewEvent((t,e)=>{this.zm.emitWebviewEventToBridge(t,e)})}onStartTracking(){this.ci.start()}onOptout(){this.ci.stop()}onStartAnalytics(){this.ci.setAnalyticsStatus(!0)}onStopAnalytics(){this.ci.setAnalyticsStatus(!1)}onParentRecordingContextChange(t){this.zm.setSessionReplayStatus(t.isRecording)}}return s})(),Ue=(()=>{let s;return function(r){r[r.PAGE_VIEW=4]="PAGE_VIEW",r[r.TAP=6]="TAP",r[r.LONG_PRESS=8]="LONG_PRESS",r[r.DRAG=9]="DRAG",r[r.FLICK=10]="FLICK",r[r.DETAILED_API_ERROR=13]="DETAILED_API_ERROR",r[r.JAVASCRIPT_ERROR_SR=19]="JAVASCRIPT_ERROR_SR",r[r.CUSTOM_ERROR_SR=20]="CUSTOM_ERROR_SR",r[r.API_ERROR=21]="API_ERROR",r[r.CUSTOM_ERROR_AN=25]="CUSTOM_ERROR_AN",r[r.JAVASCRIPT_ERROR_AN=26]="JAVASCRIPT_ERROR_AN",r[r.SUBMIT=27]="SUBMIT",r[r.CHANGE=28]="CHANGE"}(s||(s={})),s})(),PT=(()=>{class s{constructor(){this.Ns=1}transformEvent(t){switch(t.type){case nt.CHANGE:{let e={version:this.Ns,type:Ue.CHANGE,data:{path:t.tgt}};return ya(t)&&(e.data.hrchy=t.hrchy),e}case nt.SUBMIT:{let e={version:this.Ns,type:Ue.SUBMIT,data:{path:t.tgt}};return ya(t)&&(e.data.hrchy=t.hrchy),Xl(t)&&(e.data.text=t.text),e}case nt.TAP:{let e={version:this.Ns,type:Ue.TAP,data:{path:t.tgt}};return ya(t)&&(e.data.hrchy=t.hrchy),Xl(t)&&(e.data.text=t.text),e}case nt.DRAG:{let e=t;return{version:this.Ns,type:Ue.DRAG,data:{path:e.tgt,direction:e.fd,distance:e.distance,velocity:e.velocity}}}case nt.FLICK:{let e=t;return{version:this.Ns,type:Ue.FLICK,data:{path:e.tgt,direction:e.fd,distance:e.distance,velocity:e.velocity}}}default:return null}}}return s})(),OT=(()=>{class s{constructor(t,e,i,n){this.w=t,this.$e=e,this.Me=i,this.ar=n,this.Ns=1}transformEvent(t,e){switch(t){case $.ApiError:case $.DetailedApiError:{let i=this.Me.anonymize(e);return{version:this.Ns,data:i}}case $.JavascriptError:{let i={...e,pageUrl:this.w.getAnonymizedUrl()},n=this.$e.anonymize(i);return{version:this.Ns,data:{...n,date:K.now()}}}case $.CustomError:{let i=e;return i.message=this.ar.anonymize(i.message),{version:this.Ns,data:{...i,date:K.now()}}}default:return null}}}return s})(),NT=2,kt=(()=>{let s;return function(r){function t(){return typeof window.CSJavascriptBridge=="object"&&typeof window.CSJavascriptBridge.optIn=="function"&&typeof window.CSJavascriptBridge.optOut=="function"&&typeof window.CSJavascriptBridge.sendEvent=="function"&&typeof window.CSJavascriptBridge.sendDynamicVar=="function"&&typeof window.CSJavascriptBridge.sendTransaction=="function"}r.isCSJavascriptBridgeDefined=t;function e(){if(typeof window.CSJavascriptBridge.getVersion=="function")try{let P=window.CSJavascriptBridge.getVersion();if(Lt(P))return P}catch{W.warn("an error occurred when calling getVersion")}return null}r.getBridgeVersion=e;function i(){typeof window.CSJavascriptBridge.onWebviewTrackingReady=="function"&&window.CSJavascriptBridge.onWebviewTrackingReady()}r.notifyIsReadyForTracking=i;function n(P,C){window.CSJavascriptBridge.identify&&window.CSJavascriptBridge.identify(P,csJSON.stringify(C))}r.identify=n;function o(){window.CSJavascriptBridge.resetIdentity&&window.CSJavascriptBridge.resetIdentity()}r.resetIdentity=o;function c(P){window.CSJavascriptBridge.addUserProperties&&window.CSJavascriptBridge.addUserProperties(csJSON.stringify(P))}r.addUserProperties=c;function u(P){window.CSJavascriptBridge.sendEvent(csJSON.stringify(P))}r.sendAnalysisEvent=u;function d(P){if(window.CSJavascriptBridge.sendSREvent)for(let C of P.events)window.CSJavascriptBridge.sendSREvent(csJSON.stringify(C))}r.sendSREvent=d;function E(P){window.CSJavascriptBridge&&window.CSJavascriptBridge.sendLog&&window.CSJavascriptBridge.sendLog(csJSON.stringify(P))}r.sendLog=E;function f(){window.CSJavascriptBridge.optIn()}r.sendOptIn=f;function _(){window.CSJavascriptBridge.optOut()}r.sendOptOut=_;function w(P,C){window.CSJavascriptBridge.sendDynamicVar(P,C)}r.sendDynamicVariable=w;function A(P,C,F){window.CSJavascriptBridge.sendTransaction(P,C,F)}r.sendTransaction=A;function V(P,C){if(window.CSJavascriptBridge.sendAssets){let F=csJSON.stringify(P);window.CSJavascriptBridge.sendAssets(F,C||null)}else window.CSJavascriptBridge.sendSRAssets&&window.CSJavascriptBridge.sendSRAssets(csArray.prototype.map.call(P,F=>F.assetId))}r.sendAssets=V;function U(P){window.CSJavascriptBridge&&window.CSJavascriptBridge.sendNativeSREvent&&window.CSJavascriptBridge.sendNativeSREvent(csJSON.stringify(P))}r.sendNativeSREvent=U}(s||(s={})),s})(),MT=(()=>{class s{constructor(t,e,i,n,o,c,u,d){this.Gm=t,this.es=e,this.aC=i,this.Qa=n,this.Or=o,this.S=c,this.w=u,this.Tt=d,this.Uu=!1}async emitWebviewEventToBridge(t,e){switch(t){case $.AnalysisEvent:{let i=this.aC.transformEvent(e.event);i&&kt.sendAnalysisEvent(i);break}case $.RecordingEvent:kt.sendSREvent(e);break;case $.ChildLogMessage:kt.sendLog(e);break;case $.Commands:W.tryToExecute(`SDKMessageUtils.sendMessage.sendCommandMessage: ${e}`,()=>{this.cC(e)})();break;case $.Assets:{let{assets:i,serializationId:n}=e,o=await this.Or.getTransformedAssets(i,n);kt.sendAssets(o,n);break}case $.JavascriptError:{let i=this.Qa.transformEvent($.JavascriptError,e);i&&(this.Uu&&kt.sendNativeSREvent({...i,type:Ue.JAVASCRIPT_ERROR_SR}),kt.sendAnalysisEvent({...i,type:Ue.JAVASCRIPT_ERROR_AN}));break}case $.ApiError:{let i=this.Qa.transformEvent($.ApiError,e);i&&(kt.sendAnalysisEvent({...i,type:Ue.API_ERROR}),at.counters.networkRequests.count("collected"));break}case $.DetailedApiError:{let i=this.Qa.transformEvent($.DetailedApiError,e);i&&(kt.sendNativeSREvent({...i,type:Ue.DETAILED_API_ERROR}),at.counters.networkRequests.count("collected"));break}default:break}}setSessionReplayStatus(t){this.Uu=t}cC(t){let e=t.commands;for(let i of e)switch(!0){case csArray.prototype.indexOf.call(ep,i.name)>=0:kt.sendOptIn();break;case csArray.prototype.indexOf.call(rl,i.name)>=0:this.S.emitOptout(),kt.sendOptOut();break;case csArray.prototype.indexOf.call(Jr,i.name)>=0:this.lC(i);break;case csArray.prototype.indexOf.call(po,i.name)>=0:this.hC(i);break;case csArray.prototype.indexOf.call(Qr,i.name)>=0:this.qm(i);break;case csArray.prototype.indexOf.call(lr,i.name)>=0:break;case csArray.prototype.indexOf.call(Zr,i.name)>=0:this.za();break;case csArray.prototype.indexOf.call(Ap,i.name)>=0:this.qm(i),this.za();break;case csArray.prototype.indexOf.call(ed,i.name)>=0:this.Tt.addUrlMaskingPattern(i.params[0]);break;case csArray.prototype.indexOf.call(sl,i.name)>=0:this.Tt.addPartialUrlMaskingPattern(i.params[0]);break;case csArray.prototype.indexOf.call(Bd,i.name)>=0:this.Tt.resetPartialUrlMaskingPatterns();break;case csArray.prototype.indexOf.call(sd,i.name)>=0:this.uC(i);break;case csArray.prototype.indexOf.call(Ka,i.name)>=0:this.dC(i);break;case csArray.prototype.indexOf.call(Pu,i.name)>=0:this.pC();break;case csArray.prototype.indexOf.call(Ja,i.name)>=0:this.fC(i);break;default:W.warn(`WebviewBridgeEventEmitter received an unknown command: ${csJSON.stringify(i)}`);break}}dC(t){if(t.params.length<1||t.params.length>2)return;let e=t.params[0],i=t.params[1];if(!Fl.isValidIdentity(e)){W.error(`Command misuse: ${Ka[0]}`);return}let n=Fl.parseIdentityOptionsHash(i);kt.identify(e.toString(),{hash:n})}pC(){kt.resetIdentity()}fC(t){if(t.params.length!==1)return;let e=t.params[0];if(!$l.isValidProperties(e)){W.error(`Command misuse: ${Ja[0]}`);return}let i=$l.sanitizeProperties(e);kt.addUserProperties(i)}lC(t){if(t.params.length!==1)return;let e=t.params[0];if(!(!He(e)||!("key"in e)||!("value"in e))&&Dr.isKeyValid(e.key)&&Dr.isValueValid(e.value)){let i=this.Gm.anonymizePII(e.key),n=Os(e.value)?e.value:this.Gm.anonymizePII(e.value);kt.sendDynamicVariable(i,n)}}hC(t){if(t.params.length!==1)return;let e=t.params[0];if(L(e)){let i={type:Ue.PAGE_VIEW,version:1,data:{url:e}};this.w.overridePath(e),this.S.emitArtificialPageViewEnd(),kt.sendAnalysisEvent(i),this.S.emitAfterArtificialPageView()}}qm(t){if(t.params.length!==1)return;let[e]=t.params;e.value&&(e.revenue=e.value),this.es.addTransaction(e)}za(){let t=this.es.getTransaction();oc.isValid(t)&&(kt.sendTransaction(t.id?t.id:null,t.revenue,t.currency?t.currency:""),this.es.clear())}uC(t){if(t.params.length<1)return;let e=t.params[0],i=t.params[1]||{};if(!(L(e)&&He(i)))return;let n=pE.buildCustomErrorEvent(e,i),o=this.Qa.transformEvent($.CustomError,n);o&&(this.Uu&&kt.sendNativeSREvent({...o,type:Ue.CUSTOM_ERROR_SR}),kt.sendAnalysisEvent({...o,type:Ue.CUSTOM_ERROR_AN}))}}return s})(),kT="REMOTE_ASSET",Vh="LOCAL_ASSET",DT="UNKNOWN_ASSET_TYPE",gc="NONE",Op="ONLY_LOCAL_ASSETS",mc="ALL",xT=(()=>{class s{constructor(t){var e,i;this.gC=t,this.ju=new Set,this.Za=gc;try{let n=(i=(e=window.CSJavascriptBridge)===null||e===void 0?void 0:e.getAssetTransformerMode)===null||i===void 0?void 0:i.call(e);(n===Op||n===mc)&&(this.Za=n)}catch{}}setAssetProcessingMode(t){this.Za=t}async getTransformedAssets(t,e){if(this.Za===gc)return t;let i=[];for(let n of t){let o=n.assetId,c=this.mC(o);if(this.Za===mc||c===Vh){let u=o;if(this.yC(o,e)&&(u=this.EC(o,e)),this.ju.has(u)){csArray.prototype.push.call(i,n);continue}try{let d=await this.gC.getAssetContent(o);if(this.ju.has(u)){csArray.prototype.push.call(i,n);continue}csArray.prototype.push.call(i,{...n,retrievedAssetContent:d}),this.ju.add(n.assetId)}catch(d){W.error(`an error occurred while getting data for asset: ${u}: ${d}`),csArray.prototype.push.call(i,n)}}else csArray.prototype.push.call(i,n)}return i}mC(t){let e=window.WEBVIEW_SERVER_URL||null;try{let{protocol:i}=new csURL(t);return i==="file:"||e&&csString.prototype.startsWith.call(t,e)?Vh:kT}catch(i){W.error(`Error constructing URL (${t}"): ${i.message}`)}return DT}yC(t,e){return e&&Wn(t)||!1}EC(t,e){return`${t}#${e}`}}return s})(),LT=(()=>{class s{constructor(){this.SC=50*1024*1024,this.vC=30*1024*1024,this.Hu=0,this.Bu=!1,this.tc=new Map,this.kt=[]}async getAssetContent(t){let e=this.tc.get(t);return e||new Promise((i,n)=>{csArray.prototype.push.call(this.kt,{assetUrl:t,successCallback:i,errorCallback:n}),this.Bu||this._C()})}async _C(){for(this.Bu=!0;this.kt.length>0;){let{assetUrl:t,successCallback:e,errorCallback:i}=csArray.prototype.shift.call(this.kt),n=this.tc.get(t);if(n){e(n);continue}try{let c=(await this.wC("GET",t,"blob")).target;if(c.status===200){let u=c.getResponseHeader("Content-Type"),d=Number(c.getResponseHeader("Content-Length"));if(d&&Number(d)>this.vC){let f=`asset is too big, size = ${d} bytes`;i(f);continue}let E=new csFileReader;E.onload=()=>{let _={data:csString.prototype.split.call(E.result,"base64,")[1],mimeType:u!=null?u:""};this.Hu+=d,this.Hu>this.SC&&(this.Hu=0,this.tc.clear()),this.tc.set(t,_),e(_)},E.onerror=()=>{i("Error converting XHR response to base64")},E.readAsDataURL(c.response)}else i(`error downloading ${t}: ${c.statusText}`)}catch(o){let c=`Error downloading resource ${t}: ${o.message}`;i(c)}}this.Bu=!1}wC(t,e,i){return new Promise(function(n,o){let c=new XMLHttpRequest;c.open(t,e),c.responseType=i,c.onload=n,c.onerror=o,c.send()})}}return s})();function VT(s,r){let t=jc({...r,async:!1}),e;return t(s,i=>e=i),e}var UT=(()=>{class s{constructor(t,e){this.C=t,this.xu=e,this.Wm=new xd}TC(){let t=new Set;_e(document,NodeFilter.SHOW_ELEMENT).visitAll(i=>{t.has(i)||(this.Wm.scanElement(i),t.add(i))})}handleCommand(t){let e=t&&t.withAssets,i=[],n=new Set,o=new Set,c=[];e&&fc.isWebViewLocalAssetsSupported()?(this.Wm.onScannedAsset(({type:E,asset:f})=>{E==="stylesheet"&&!o.has(f.assetId)&&(o.add(f.assetId),csArray.prototype.push.call(c,f)),n.has(f.assetId)||(n.add(f.assetId),csArray.prototype.push.call(i,f))}),this.TC()):fc.isWebViewLocalAssetsSupported()||W.warn("Local asset is not supported on this browser");let u=jT(),d=csJSON.stringify(u);if(e){let E=Hc.generate();return this.bC(i,c,E),csJSON.stringify({serializedDom:d,serializationId:E})}return d}bC(t,e,i){e.length===0?this.lo(t,i):this.AC(t,e,i,(n,o)=>this.lo(n,o))}AC(t,e,i,n){let o=0,c=0,u=new Set(csArray.prototype.map.call(t,w=>w.assetId)),d=w=>!u.has(w),E=w=>{u.has(w.assetId)||(u.add(w.assetId),csArray.prototype.push.call(e,w),csArray.prototype.push.call(t,w))},f=w=>{for(let A of w)u.has(A.assetId)||(u.add(A.assetId),csArray.prototype.push.call(t,A));o++,o+c===e.length&&n(t,i)},_=w=>{c++,W.error("An error occurred while fetching a styleSheet: "+w),o+c===e.length&&n(t,i)};csArray.prototype.forEach.call(e,w=>{this.xu.getStyleSheetAssets(w.assetId,f,_,d,E)})}lo(t,e){this.C.sendToParent($.Assets,{assets:t,serializationId:e})}}return s})();function jT(){return Nu(),Ou(VT(document))}var HT=(()=>{class s{constructor(t){this.f=t,this.Fu=null}isSdkTrackingContext(t){return Ot(t)&&He(t)&&L(t.sessionKey)&&Os(t.pageNumber)&&L(t.pageViewType)&&Ur(t.isRecording)}update(t){if(!this.isSdkTrackingContext(t)){W.warn(`webViewTrackingContext.service received wrong sdkTrackingContext, content:${csJSON.stringify(t)}`),this.Fu=null;return}this.Fu={...t,recordingConsentState:Pr.NOT_NEEDED,projectId:this.f.projectId,uxaDomain:this.f.uxaDomain,...this.f.smbConfig}}getTrackingContext(){return this.Fu}}return s})(),BT=(()=>{class s{constructor(t){this.hi=t,this.te=[]}handleCommand(t){if(!we(t))return;this.Rn(t);let e=this.hi.getTrackingContext();e!==null&&this.jt(t,e)}executeRegisteredCallbacks(t){let e=t.trackingContext;e&&csArray.prototype.map.call(this.te,i=>this.jt(i,e))}Rn(t){csArray.prototype.push.call(this.te,t)}jt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),FT=(()=>{class s{constructor(t,e){this.Z=t,this.hi=e}onIframeIntegrationCallback(t){let e=this.hi.getTrackingContext();e!==null&&(t.trackingContext=e,this.Z.sendToChildren($.IntegrationCallback,t))}}return s})(),Np=(()=>{class s{constructor(t){this.commandsService=t,this.In=new ad}registerChildCommands(){this.commandsService.register(ld,t=>this.In.handleCommand(t,this.Nr))}onParentRecordingContextChange(t){this.Nr={isRecording:t.isRecording,recordingStartTimestamp:t.recordingStartTimestamp||0,etrState:t.etrState||Se.ETR_OFF},this.In.executeCallbacks(this.Nr)}}return st([ar({wait:0,mode:"trailing"})],s.prototype,"onParentRecordingContextChange",null),s})(),$T=["serializeWebView","webview:serializeWebView"],zT=["setAssetTransformerMode","webview:setAssetTransformerMode"],GT=["webview:onAfterScreenView"],qT=(()=>{class s extends Np{constructor(t,e,i,n,o,c,u){super(t),this.commandsService=t,this.C=e,this.Z=i,this.Or=n,this.RC=o,this.pt=c,this.f=u}init(){this.hi=new HT(this.f),this.CC=new FT(this.Z,this.hi),this.pt.addListener(this.CC),this.Ym=new BT(this.hi);let t=new Ip(new Pp);this.IC=new UT(this.C,t),this.ht()}onAfterPageViewCallback(t){this.Ym.executeRegisteredCallbacks(t)}ht(){super.registerChildCommands(),this.commandsService.register(ho,t=>{this.Ym.handleCommand(t)}),this.commandsService.register(GT,t=>{this.hi.update(t);let e=this.hi.getTrackingContext();e!==null&&this.RC.emitAfterPageViewCallback({initiator:Zi.AfterPageView,trackingContext:e})}),this.commandsService.register($T,t=>this.IC.handleCommand(t)),this.commandsService.register(zT,t=>{(t===gc||t===Op||t===mc)&&this.Or.setAssetProcessingMode(t)})}}return s})(),WT=(()=>{class s{constructor(t){this.C=t,this.te={}}handleCommand(t){we(t)&&this.Rn(t)}executeRegisteredCallbacks(t){let e=t.trackingContext;if(e)if(t.callbackId){let i=this.te[t.callbackId];i&&this.jt(i,e)}else for(let i in this.te)this.jt(this.te[i],e)}Rn(t){let e=os.integer(),i={callbackId:e,initiator:Zi.AfterPageView};this.te[e]=t,this.C.sendToParent($.IntegrationCallback,i)}jt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),YT=(()=>{class s{constructor(t){this.C=t,this.Di={}}handleCommand(t){He(t)&&we(t.callback)&&this.Cn(t.callback)}executePendingCallbacks(t){let{trackingContext:e,callbackId:i}=t;if(!i||!e)return;let n=this.Di[i];n&&(delete this.Di[i],this.jt(n,e.sessionKey))}Cn(t){let e=os.integer(),i={callbackId:e,initiator:Zi.GetSessionKey};this.Di[e]=t,this.C.sendToParent($.IntegrationCallback,i)}jt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),XT=(()=>{class s{constructor(t,e){this.C=t,this.Z=e,this.sc={}}handleCommand(t,e){He(t)&&we(e)&&this.Cn(t,e)}executePendingCommand(t){let{trackingContext:e,callbackId:i}=t;if(!(!i||!e))if(this.sc[i]){let[n,o]=this.sc[i];n&&(delete this.sc[i],this.jt(e,n,o))}else this.Z.sendToChildren($.TrackingContextResultMessage,t)}Cn(t,e){let i=os.integer();this.sc[i]=[t,e],this.C.sendToParent($.TrackingContextRequestMessage,{callbackId:i})}jt(t,e,i){csSetTimeout(()=>{let n=od(t,e);i(n)})}}return s})(),KT=(()=>{class s extends Np{constructor(t,e,i){super(t),this.commandsService=t,this.C=e,this.Z=i}init(){this.Xm=new WT(this.C),this.Km=new YT(this.C),this.Jm=new XT(this.C,this.Z),this.ht()}onAfterPageViewCallback(t){this.Xm.executeRegisteredCallbacks(t)}onIntegrationSessionKeyCallback(t){this.Km.executePendingCallbacks(t)}onTrackingContextResultCallback(t){this.Jm.executePendingCommand(t)}ht(){super.registerChildCommands(),this.commandsService.register(ho,t=>{this.Xm.handleCommand(t)}),this.commandsService.register(cd,t=>this.Km.handleCommand(t)),this.commandsService.register(hd,(t,e)=>{this.Jm.handleCommand(t,e)})}}return s})(),JT=(()=>{class s{constructor(t,e,i,n,o,c,u){this.E=t,this.nt=e,this.ce=i,this.Bt=n,this.lt=o,this.ho=c,this.Tr=u}init(){var t,e;this.ho&&this.lt&&((t=this.ho)===null||t===void 0||t.addSelector((e=this.lt)===null||e===void 0?void 0:e.getEncryptionSelectors())),this.ht(),this.ye=new el(this.ce,this.nt,this.Bt,this.ho,this.Tr)}Po(){this.ye.start()}Rh(){this.ye.stop()}onParentSensitiveStatusChange(t){var e,i;t.maskedElementSettings&&this.nt.setMaskedElementSettingsFromParent(t.maskedElementSettings),t.capturedElementSelector&&this.Bt.setWhitelistedElementsSelector(t.capturedElementSelector,!1),t.encryptionSelectors&&((e=this.ho)===null||e===void 0||e.addSelector(t.encryptionSelectors),(i=this.lt)===null||i===void 0||i.setEncryptionSelectors(t.encryptionSelectors,!1)),t.started?this.Po():this.Rh()}ht(){this.E.register(fo,t=>{this.Bt.setWhitelistedElementsSelector(t)}),this.E.register(ur,t=>{this.nt.setMaskedElementSettingsFromCommand(t)}),this.E.register(tl,t=>{var e,i;(e=this.lt)===null||e===void 0||e.setEncryptionSelectors(t),(i=this.ho)===null||i===void 0||i.addSelector(t)})}}return s})(),QT=(()=>{class s{constructor(t,e,i,n,o,c,u,d){this.S=t,this.E=e,this.nt=i,this.ce=n,this.it=o,this.Bt=c,this.Wt=u,this.Tr=d,this.ye=new el(this.ce,this.nt,this.Bt,void 0,this.Tr,this.it)}init(){this.it.init(),this.ht()}onStartAnalytics(){this.Rr()}onAfterArtificialPageView(){this.Qm(),this.Rr()}onStopAnalytics(){this.Qm()}Rr(){this.ye.start(),this.Wt.setSensitiveStatus({started:!0,useAnonymization:this.it.shouldUseAnonymization()}),this.S.emitSensitiveStatusChange()}Qm(){this.ye.stop(),this.Wt.setSensitiveStatus({started:!1,useAnonymization:this.it.shouldUseAnonymization()}),this.S.emitSensitiveStatusChange()}ht(){this.E.register(fo,t=>{this.Bt.setWhitelistedElementsSelector(t),this.S.emitSensitiveStatusChange()}),this.E.register(ur,t=>{this.nt.setMaskedElementSettingsFromCommand(t),this.S.emitSensitiveStatusChange()})}}return s})(),ZT=(()=>{class s{constructor(t,e,i,n,o,c,u,d,E){this.gt=t,this.S=e,this.f=i,this.C=n,this.Os=o,this.E=c,this.mt=u,this.O=d,this.Wt=E,this.Ha=()=>{this.E.start(),this.Ar.start()}}start(){let t,e,i,n,o,c,u,d,E,f,_,w,A,V,U,P;this.O.schedule(()=>{if(o=new wp,c=new Vc(()=>{}),A=new Uc,P=new Eu,this.mt.isInIframeContext()){let C=new JT(this.E,o,c,A,V,U,P);C.init(),this.gt.addListener(C)}if(i=new Ci,f=new Tp(i),_=new np(window.location,f),this.mt.isInWebViewContext()){let C=new Cp(this.f),F=new Wr,j=new ao(this.f,_,F,C),M=new QT(this.S,this.E,o,c,j,A,this.Wt);M.init(),this.gt.addListener(M),this.S.addListener(M)}}),this.O.schedule(()=>{t=new ap(ns,this.f),e=new Iu(t),n=new yT(this.f,t,e,this.C,this.mt,this.gt,this.E,new wu(W),this.Wt),this.gt.addListener(n)}),sr.isRecordingSupported()&&this.O.schedule(()=>{let C=new CT(this.f,i,c,this.S,this.C,this.Os,this.E,this.gt,this.mt,_,this.Wt,f,V);this.S.addListener(C),this.gt.addListener(C),C.init()}),this.O.schedule(()=>{E=new Ru(this.f);let C=new cp(t,this.f.isChild),F=new lp(t),j=new hp(t),M=new up;d=new op(C,F,j,M),u=new pT(E,d,this.C,this.Os,this.Wt)}),this.O.schedule(()=>{d.addListener(u),this.gt.addListener(u),this.S.addListener(u),this.S.addListener(n)}),this.O.schedule(()=>{let C;if(this.mt.isInWebViewContext()){let F=new LT;this.Or=new xT(F),C=new qT(this.E,this.C,E,this.Or,this.gt,d,this.f)}else C=new KT(this.E,this.C,E);this.gt.addListener(C),C.init()}),this.O.schedule(()=>{u.init(),n.init()}),this.O.schedule(()=>{var C,F,j,M;if(this.mt.isInWebViewContext()){let J=new PT,ct=new vE(i,_),gt=new $d,Xt=new dE(gt,f,!!(!((F=(C=this.f)===null||C===void 0?void 0:C.experimental)===null||F===void 0)&&F.anonymizeNameInUrls)),$t=new EE(i,!((M=(j=this.f)===null||j===void 0?void 0:j.experimental)===null||M===void 0)&&M.anonymizeNameInUrls?f:void 0),O=new OT(_,ct,Xt,$t),z=new MT(i,new rd(i,null,null),J,O,this.Or,this.S,_,gt),X=new IT(this.C,z);X.init(),this.S.addListener(X),this.gt.addListener(X)}else{let J=new dT(this.C);this.S.addListener(J)}}),this.Ar=new Fc,this.O.schedule(()=>{this.Ar.onLoad(()=>{this.S.emitStartTracking()}),this.Ha()})}}return s})(),tb=2500,eb=500,sb=(()=>{class s extends Rp{constructor(t,e,i=eb){super(tb),this.gt=t,this.f=e,this.PC=i,this.zi=!1,this.ic=void 0,this.$u=!0}onStart(){this.OC()}onStop(){this.buffer.reset(),this.zu&&window.csClearInterval(this.zu)}sendToParent(t,e){var i;if(this.NC()){(i=this.Gu)===null||i===void 0||i.call(this,t,e);return}if(this.MC(t)){let n=this.buildChildBaseMessage(t,e);this.buffer.addMessage(n)}}NC(){return this.zi&&this.$u}MC(t){return!this.zi||t===$.Commands}onWebViewEvent(t){this.Gu=t}setAnalyticsStatus(t){this.$u=t,this.$u&&this.kC()}sendAllMessagesFromBuffer(){var t;let e=this.buffer.getMessages();for(let i of e)(t=this.Gu)===null||t===void 0||t.call(this,i.type,i.content);this.buffer.reset()}kC(){var t;if(!this.zi)return;let e=this.buffer.getMessages();for(let i of e)i.type===$.Commands&&((t=this.Gu)===null||t===void 0||t.call(this,i.type,i.content));this.buffer.reset()}buildChildBaseMessage(t,e){return{type:t,content:e}}OC(){this.zi=kt.isCSJavascriptBridgeDefined(),this.zi?this.Zm():this.zu=window.csSetInterval(()=>{this.zi=kt.isCSJavascriptBridgeDefined(),this.zi&&(this.Zm(),window.csClearInterval(this.zu))},this.PC)}Zm(){this.DC(),this.ic=kt.getBridgeVersion(),this.ic===null?this.sendAllMessagesFromBuffer():this.ic>=NT?(this.xC(),kt.notifyIsReadyForTracking()):W.warn(`bridge version ${this.ic} is not supported`)}DC(){let t={message:csJSON.stringify(this.f),errorCode:"TAG_CONFIGURATION",level:yt.critical};kt.sendLog(t)}xC(){this.gt.emitStopAnalytics()}}return s})(),ib=(()=>{class s{constructor(){this.Nr=null}getRecordingContext(){return this.Nr===null?{isRecording:!1}:this.Nr}setRecordingContext(t){this.Nr=t}}return s})(),rb=(()=>{class s{constructor(){this.oc={started:!1,useAnonymization:!0}}getSensitiveStatus(){return this.oc}setSensitiveStatus(t){this.oc=t}getElementSensitiveStatus(t){return this.oc.started?Y.isMaskedElement(t)||Y.isMaskedElementChild(t)?fe.MASKED:Su.shouldEncrypt(t)?fe.ENCRYPTED:Cs.isEditableNode(t)?fe.ANONYMIZED:this.oc.useAnonymization?is.isWhitelistedElement(t)?fe.CAPTURED:fe.ANONYMIZED:fe.CAPTURED:fe.ANONYMIZED}}return s})(),nb=(()=>{class s{constructor(t,e,i){this.f=t,this.mt=e,this.O=i}init(){this.f.isChild=!0,wi.isSupported()&&wi.setDigestSalt(this.f.projectId.toString());let t,e,i,n,o,c,u,d,E;this.O.schedule(()=>{t=new bp(this.O),e=new nT,i=new ib,n=new rb;let f=[hc.UXA];this.mt.isInWebViewContext()?(window.cs_wvt=window.cs_wvt||[],csArray.prototype.push.call(f,hc.WVT),o=new sb(e,this.f)):o=new uT(this.f,t,i,n,e),c=new sp(f)}),this.O.schedule(()=>{u=new aT(c,o),d=new oT(u)}),this.O.schedule(()=>{d.init()}),this.O.schedule(()=>{this.f.implementations&&(E=new vp(this.f.implementations,c,this.O),E.init(),t.addListener(E))}),this.O.schedule(()=>{}),this.O.schedule(()=>{t.addListener(d)}),this.O.schedule(()=>{t.emitInitTracking()}),this.O.schedule(()=>{new ZT(e,t,this.f,o,i,c,this.mt,this.O,n).start()})}}return s})(),ob=(()=>{class s{setItem(t,e){window.sessionStorage.setItem(t,e)}getItem(t){return window.sessionStorage.getItem(t)}removeItem(t){window.sessionStorage.removeItem(t)}}return s})(),ab=(()=>{class s{constructor(t,e,i){this.f=t,this.mt=e,this.us=i}start(){var t,e,i,n,o;if(window.CSQ_TAGS=csArray.prototype.concat.call(window.CSQ_TAGS||[],this.f.projectId),window.UXAnalytics)return;window.UXAnalytics={};let c=new ob,u=new Ld(!!(!((t=this.f.taskSchedulerOptions)===null||t===void 0)&&t.enabled),(e=this.f.taskSchedulerOptions)===null||e===void 0?void 0:e.maxProcessingTime,(i=this.f.taskSchedulerOptions)===null||i===void 0?void 0:i.waitDuration),d=new Jg(this.mt,this.f);d.init();let E=new Zg(this.f,d);if(this.mt.isTopWindowTracker()&&E.canTrack()){if(!((n=window.CSProtectnativeFunctionsLogs)===null||n===void 0)&&n.Warning&&W.warn(`protectNativeFunctions failed: ${window.CSProtectnativeFunctionsLogs.Warning}`),!((o=window.CSProtectnativeFunctionsLogs)===null||o===void 0)&&o.Critical){W.error(`protectNativeFunctions failed: ${window.CSProtectnativeFunctionsLogs.Critical}`);return}Xg();let _=new bp(u),w=new Jw(this.f,d,this.us,u,_,c);this.f.isQuotaEnabled()?w.initWithQuota():w.init()}else!this.mt.isTopWindowTracker()&&E.canTrackInChild()&&new nb(this.f,this.mt,u).init();let f=csString.prototype.indexOf.call(window.location.href,"csDebug=1")>-1;window.UXAnalytics={Sensitive:{isNodeSensitive(_){return Y.isMaskedElement(_)||Y.isMaskedElementChild(_)},isAttributeSensitive(_,w){return Y.isMaskedAttribute(_,w)},getSensitiveAttributes(_){return Fn(_.attributes,w=>Y.isMaskedAttribute(_,w.name))}},Console:{warn(_){f&&console.warn("cs.tracking.warning",_)},error(_){f&&console.error("cs.tracking.error",_)}},Version:Nc},window.CSFrameCommunication||(window.CSFrameCommunication=Dn,Dn.isActivable()&&Dn.waitForConnection(),this.f.isCsCrosswritingHeap()&&Dn.waitForHeapVisualLabeler(this.f.getHeapWebAppUri()))}}return st([ie("main.start"),G("main.start")],s.prototype,"start",null),s})(),cb=(()=>{class s{constructor(){}send(t,e,i=yt.warn){let n={message:t,errorCode:e,level:i};kt.sendLog(n)}}return s})(),lb=(()=>{class s{constructor(t,e,i){this.BC=t,this.Yu=e,this.ac=i,this.Xu=!1,this.Ku=!1,this.Ju=[],this.push=n=>{try{if(!this.Xu)return csArray.prototype.push.call(this.Ju,n),this.FC();this.po&&this.Qu&&(this.po.setLevel(n.level),this.Qu.captureException(n.error,void 0,this.po))}catch{}},this.$C=()=>{var n;try{this.Xu=!0,this.cc(),this.po=this.Yu(),this.Qu=(n=this.po)===null||n===void 0?void 0:n.getClient(),this.vh()}catch{}},this.Ta=()=>{try{this.cc(),this.ac&&this.ac()}catch{}},this.cc=()=>{try{this.Ku=!1,this.Ms&&(this.Ms.removeEventListener("abort",this.cc),this.Ms.removeEventListener("error",this.cc))}catch{}},this.vh=()=>{var n;for(let o=0;o{var n;this.Xu||this.Ku||(this.Ku=!0,this.Ms=document.createElement("script"),this.Ms.src=this.BC,this.Ms.crossOrigin="anonymous",this.Ms.addEventListener("load",this.$C,{once:!0,passive:!0}),this.Ms.addEventListener("abort",this.Ta),this.Ms.addEventListener("error",this.Ta),(n=document.getElementsByTagName("head")[0])===null||n===void 0||n.appendChild(this.Ms))}}}return s})(),hb={[yt.debug]:"debug",[yt.warn]:"warning",[yt.implementation]:"log",[yt.error]:"error",[yt.critical]:"fatal"},ub=5,db=(()=>{class s{constructor(t,e,i){this.f=t,this.us=e,this.Zu=i,this.M=new Ci,this.ey=0,this.Yu=()=>{if(window.UXAnalytics.Sentry)try{let n=this.f.environment,o=window.UXAnalytics.Sentry.init({dsn:this.f.getSentryDSNUri(),environment:n,sampleRate:1,release:`csq-lite-tag-${Nc}${n==="production"?"":`-${n}`}`,dist:n,beforeSend:u=>({...u,message:this.M.anonymizePII(u.message||"")})}),c=this.Dr();return o.setContext("Session Data",this.Dr()),o.setTags({projectId:c.projectId}),o.setUser({id:c.projectId}),o}catch(n){this.Zu.send(`Error initializing Sentry: ${n}`,"",yt.error);return}},this.ac=()=>{this.Zu.send("Sentry failed to load","",yt.error)},this.zC=new lb(this.f.getSentryFileUri(),this.Yu,this.ac)}Dr(){let t=this.us.getVisitorService(),e=t==null?void 0:t.getVisitor(),i=this.us.getSessionService(),n=i==null?void 0:i.getSession();return{projectId:this.f.projectId,sessionNumber:e==null?void 0:e.visitsCount,pageNumber:n==null?void 0:n.pageNumber}}GC(t){return this.ey-1}send(t,e="",i=yt.warn){if(this.GC(i))return this.ey++,this.zC.push({error:typeof t=="string"?new Error(t):t,level:hb[i],code:e});this.Zu.send(t,e,i)}}return s})(),pb=(()=>{class s{constructor(t,e,i){this.W=t,this.M=e,this.qC=i,this.kt=[],this.WC=Mc().v}flush(){this.kt.length!==0&&(this.W.send({m:csArray.prototype.map.call(this.kt,t=>({n:t.name,p:t.parameter,v:t.value})),p:this.M.anonymizePII(window.location.pathname),pid:this.qC,v:this.WC}),this.kt=[])}push(t){csArray.prototype.push.call(this.kt,...t),this.flush()}}return s.DEBOUNCE_INTERVAL=5e3,st([Xp(s.DEBOUNCE_INTERVAL)],s.prototype,"flush",null),s})();function fb(s,r){let t=s.validationRate/10,e=os.boolean(t);if((s.environment==="staging"||!1||e)&&!r.isInWebViewContext())try{let o=Hd.create(W.warn,r.isTopWindowTracker()),u=new uu(o).create(s.getMetricsUri(),!0),d=new Ci,E=new pb(u,d,s.projectId);at.setService(E)}catch(o){W.warn(`Error initializing metrics: ${o.message}`)}}function gb(){var s;nf();let r=new Eg(window.CS_CONF);window._uxa=window._uxa||[],r.processOptionOverrides(window._uxa);let t=new Sg(window,r);t.init();let e=new zg;if(zp(W),Gg(),W.computeIsActive(r.validationRate),t.isTopWindowTracker()){let n=new Hg(r,e),o=r.useSentry?new db(r,e,n):n;W.setStrategy(o)}else if(t.isInIframeContext()){let n=new $g(r);W.setStrategy(n)}else if(t.isInWebViewContext()){let n=new cb;W.setStrategy(n)}!((s=r==null?void 0:r.experimental)===null||s===void 0)&&s.disableMutationObserverProtection&&window.csMutationObserver&&(window.csMutationObserver=bi(window,"MutationObserver")),Gf(),fb(r,t),new ab(r,t,e).start()}window.CSCurrentScript=document.currentScript;csSetTimeout(()=>{try{qg(gb)}catch{}})});var ri={};Bp(ri,{default:()=>mb});mi();mi();try{let s=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},r=new s.Error().stack;r&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[r]="004550dd-6cf5-48fc-9ee2-6ccc4198500e",s._sentryDebugIdIdentifier="sentry-dbid-004550dd-6cf5-48fc-9ee2-6ccc4198500e")}catch{}var Mp=ul(ll());gi(ri,ul(ll()));var mb=Mp.default;})(); // signature-f95d055967936fbb6c92a9af6414fc2c5eac8756e4cd9289b261931cc1f53fcf