var CS_CONF={"useLambdaBuild":false,"collectionEnabled":true,"useSentry":false,"isSMB":false,"projectId":32960,"status":1,"hostnames":["ecosa.com.au"],"crossDomainTracking":0,"crossDomainSingleIframeTracking":0,"consentRequired":0,"allowSubdomains":1,"visitorCookieTimeout":34164000000,"sampleRate":100,"replayRecordingRate":13,"validationRate":10,"lastTrackingDraw":1748433440,"trackerDomain":"c.az.contentsquare.net","recordingDomain":"r.contentsquare.net","useMalkaPipeline":1,"ed":"l.contentsquare.net/log/web","eMerchandisingEnabled":0,"mouseMoveHeatmapEnabled":1,"autoInsightsEnabled":0,"jsErrorsEnabled":0,"customErrorsEnabled":0,"jsCustomErrorsEnabled":0,"apiErrorsEnabled":0,"customHashIdEnabled":0,"recordingEncryptionEnabled":0,"recordingEncryptionPublicKey":null,"recordingEncryptionPublicKeyId":0,"secureCookiesEnabled":0,"triggerSessionReplayEnabled":0,"triggerSessionReplayRegex":null,"dynamicIdRegex":null,"whitelistedAttributes":null,"replayRecordingUnmaskedUrlRegex":null,"replayRecordingUnmaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegex":null,"anonymisationMethod":null,"tagDeploymentMode":"CONTENTSQUARE","experimental":null,"iframesTracking":0,"textVisibilityEnabled":0,"cookielessTrackingEnabled":0,"malkaUrlEnabled":0,"malkaEtrEnabled":0,"pathComputationRules":{},"asyncSerializerEnabled":1,"pendingInactivityTimeout":5000,"accessibilityEnabled":0,"uxaDomain":"app.contentsquare.com","webviewsTrackingEnabled":0,"useStaticResourceManager":1,"performanceTimingOptions":{"withResource":false,"withNavigation":false},"replayConsentRequiredForSession":0,"eventsApiEnabled":0,"clickedElementTextEnabled":0,"collectHierarchy":1,"collectSubmit":1,"collectTargetText":0,"displayAdOptions":null,"taskSchedulerOptions":{"enabled":1},"malkaQuotaServiceDomain":"q-us1.az.contentsquare.net","malkaRecordingDomain":"k-us1.az.contentsquare.net","staticResourceManagerDomain":"srm.af.contentsquare.net","paProxyDomainUri":"api.hp.contentsquare.net","voc":{"siteId":null,"enabled":0},"heapEnvironment":{"env_id":"1372878013","heap_tag_status":"cs_crosswrites_heap"}}; var CS_INTEGRATIONS_CONF = {"ab-tasty":{}}; /* integration-ab-tasty 3.6.1 */ !function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e){e.exports=JSON.parse('{"displayName":"AB Tasty","dvarPrefix":"AB_ABT_","eventPrefix":"ABT_"}')},function(e){e.exports=JSON.parse('{"name":"@contentsquare/integration-ab-tasty-contentsquare","version":"3.6.1","scripts":{"build:snippet":"webpack"}}')},function(e,t,n){"use strict";function a(e,t){try{e()}catch(e){window._uxa=window._uxa||[],window._uxa.push(["logSnippetError",t,e.message]),(window.csqDebuggerEnabled||document.location.href.indexOf("csqDebuggerEnabled=true")>-1)&&(console.log(`%cCSQ INTEGRATION ERROR: [${t}] : ${e.message}`,"color:rgb(228, 25, 45); font-weight: bold"),console.log(e))}}function o(e){window._uxa=window._uxa||[],window._uxa.push(["event",e])}n.r(t);function i(e,t,n){if((n=n||window)&&t&&e){let a=!1,o=n[e];o?t():Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){return o},set:function(e){o=e,a||(a=!0,t())}})}}function r(e,t,n){!!(window.csqDebuggerEnabled||document.location.href.indexOf("csqDebuggerEnabled=true")>-1)&&(n?"warn"===n&&console.log(`%cCSQ INTEGRATION: [${e}] : ${t}`,"color:rgb(255, 86, 2); font-weight: bold"):console.log(`%cCSQ INTEGRATION: [${e}] : ${t}`,"color: #2a9d8f; font-weight: bold"))}var c=n(0);const u=function(e){let t,n,o,i;if(a((function(){const a=e.name;t=e.version;const r=a.replace("@contentsquare/integration-","");n=r+"-"+t;let c="-contentsquare";i=new RegExp(c+"$").test(r),o=r.replace(/-contentsquare([^-contentsquare]*)$/,"$1"),i||(c="-cap",i=new RegExp(c+"$").test(r),o=r.replace(/-cap([^-cap]*)$/,"$1"))}),"Shared-Function-readPackageJSON"),i)return{snippetBuildName:n,parameterName:o,snippetVersion:t}}(n(1)),s=(u.parameterName,u.snippetBuildName),l=u.snippetVersion;a((function(){const e=c.displayName,t=c.dvarPrefix,n=c.eventPrefix;var u,f;function d(e,a){!function(e,t){window._uxa=window._uxa||[],window._uxa.push(["trackDynamicVariable",{key:e,value:t}])}(e=t+e,a);const i=`${c=e.replace(t,""),c&&"string"==typeof c?c.replace(/[\W_]+/g,"-"):""}-${a}`;var c,u,l;o(i),o(n+i),r(s,(u=e,l=a,document.getElementById("csKey")&&document.getElementById("csValue")&&(document.getElementById("csKey").textContent=u,document.getElementById("csValue").textContent=l),`Dynamic variable with ${u} and value ${l} sent`))}u=e,f=l,CS_CONF.integrations=CS_CONF.integrations||[],CS_CONF.integrations.push(u+" - v"+f);const p=[];function g(e){const t=e.campaignId,n=(e.variationId,function(e,t,n){if(window.ABTasty&&ABTasty.results&&ABTasty.results[e]){const t=ABTasty.results[e],a=t.name||null;let o=t.variationName||null,i=null;if("mpt"===n&&ABTasty.accountData&&ABTasty.accountData.tests){const t=ABTasty.accountData.tests[e];if(t){const e=t.parentID;if(0!==e){const t=ABTasty.accountData.tests[e];if(t){const e=t.name;e&&(i={parentName:e})}}}}return o||(o="Variation 1"),{campaignName:a,variationName:o,parentInfo:i}}return""}(t,0,e.type)),a=n.variationName;if(n.campaignName){const e=n.campaignName;-1===p.indexOf(e+"~~~~"+a)&&(p.push(e+"~~~~"+a),d(e,a))}if(n.parentInfo){const e=n.parentInfo.parentName;-1===p.indexOf(e+"~~~~"+a)&&(p.push(e+"~~~~"+a),d(e,a))}}window.addEventListener("abtasty_executedCampaign",(function(e){a((function(){g(e.detail)}),s)})),function(e,t,n){n=n||window;const a=e.split(".");if(1==a.length)i(e,t,n);else{let e=n,o=0;const r=function(){e=o>0?e[a[o-1]]:window,o++,o>=a.length?i(a[o-1],t,e):i(a[o-1],r,e)};r()}}("ABTasty",(function(){setTimeout((function(){a((function(){if(ABTasty.eventState&&ABTasty.eventState.executedCampaign&&"complete"===ABTasty.eventState.executedCampaign.status){const t=ABTasty.eventState.executedCampaign.detail;if(e=t,Array.isArray(e))for(const e of t)g(e)}var e}),s)}),500)}))}),s)}]);; (()=>{var ie={};ie.d=(s,r)=>{for(var t in r)ie.o(r,t)&&!ie.o(s,t)&&Object.defineProperty(s,t,{enumerable:!0,get:r[t]})};ie.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();ie.o=(s,r)=>Object.prototype.hasOwnProperty.call(s,r);ie.r=s=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var sn={};ie.r(sn);ie.d(sn,{getRequestParameters:()=>am});function Ge(s,r){let t;return window.Zone&&typeof window.Zone.__symbol__=="function"&&(t=s[window.Zone.__symbol__(r)]),t||(t=s[r]),t}var ci=typeof window=="undefined";function dh(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof ie.g!="undefined"?ie.g:typeof process!="undefined"?process:Function("return this")()}var bt=dh();var fa="cs-native-frame",Ae={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"}};window.csSetTimeout=Ge(window,"setTimeout");window.csQueueMicrotask=Ge(window,"queueMicrotask");window.csClearTimeout=Ge(window,"clearTimeout");window.csSetInterval=Ge(window,"setInterval");window.csClearInterval=Ge(window,"clearInterval");window.csFileReader=Ge(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 ph(){let s=document.createElement("iframe");s.id=fa,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 fh(s,r){let t,e=s;for(;e&&!(t=Object.getOwnPropertyDescriptor(e,r));)e=Object.getPrototypeOf(e);return t}function gh(s,r,t){let e=fh(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 ga(s){var r,t;Object.keys(Ae.constructors).forEach(e=>{window[Ae.constructors[e]]=s[e]instanceof Function&&s[e].prototype==null?s[e].bind(window):s[e]}),Eh(s),("Prototype"in window||yh())&&(window.csMutationObserver=(t=(r=Ge(window,"MutationObserver"))!==null&&r!==void 0?r:window.WebKitMutationObserver)!==null&&t!==void 0?t:window.MutationObserver),ms("csNode",Ae.nodeProperties,s.Node.prototype,"get"),ms("csElement",Ae.elementProperties,s.Element.prototype,"get"),ms("csElement",Ae.elementPropertiesValues,s.Element.prototype,"value",!1),ms("csHTMLImageElement",Ae.imageProperties,s.HTMLImageElement.prototype,"set"),ms("csEvent",Ae.eventProperties,s.Event.prototype,"get"),ms("csNavigator",Ae.navigatorProperties,s.navigator,"value")}function ms(s,r,t,e,i=!0){r.forEach(n=>{let a=typeof n!="string"&&"binding"in n,c=a?n.propertyName:n;(i||c in t)&&(window[`${s+c}`]=gh(t,c,e),a&&(window[`${s+c}`]=window[`${s+c}`].bind(n.binding)))})}function ma(s,r){window.CSProtectnativeFunctionsLogs=window.CSProtectnativeFunctionsLogs||{},window.CSProtectnativeFunctionsLogs[s]=r}function mh(){try{let s=ph();return s?(window.CSPureWindow=s,ga(window.CSPureWindow),!0):!1}catch(s){return ma("Warning",`failed to copy references from pure iframe: ${s.message}`),!1}}if(!mh())try{ga(bt)}catch(s){ma("Critical",`failed to copy references from window: ${s.message}`)}function yh(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Eh(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}}var He=(()=>{let s;return function(r){r.ELLIPSIS="\u2026";function t(a){return csString.prototype.replace.call(a,/[.*+?^${}()|[\]\\]/g,"\\$&")}function e(a){return csString.prototype.replace.call(a,/([#;&,.+*~':"!^$[\]()<=>|/%?@`{}\\ ])/g,"\\$1")}r.escapeInvalidCharacters=e;function i(a,c,l){if("replaceAll"in csString.prototype)return csString.prototype.replaceAll.call(a,c,l);let d=new csRegExp(t(c),"g");return csString.prototype.replace.call(a,d,l)}r.stringReplaceAll=i;function n(a,c,l=""){return a.length<=c?a:csString.prototype.slice.call(a,0,c-l.length)+l}r.truncate=n}(s||(s={})),s})();function Hr(s){return He.escapeInvalidCharacters(csString.prototype.toLowerCase.call(s.localName))}function Sh(s){let r=s.getAttribute("id");return r&&He.escapeInvalidCharacters(r)}function Bt(s){return Z(s)&&(typeof s=="number"||s instanceof Number)&&!isNaN(s)}function bs(s){return s===parseInt(s,10)}function $(s){return Z(s)&&(typeof s=="string"||s instanceof csString)}function Qn(s){return typeof s=="boolean"}function as(s){return typeof s=="object"}function Z(s){return typeof s!="undefined"}function Tt(s){return Z(s)&&s!==null}function vh(s,r,t){return bs(s)&&s>=r&&s<=t}function _h(s){for(let r in s)return!1;return!0}function Be(s){return typeof s=="function"}function li(s){return s instanceof Element}function Fe(s){return s instanceof Error}function wh(s){let r=s.length;for(let t=0;t0&&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(Dh,csString.prototype.toLocaleLowerCase.call(s.tagName))<0}var hi="detached";function _a(s){let r=s,t=[r];for(;csNodeparentNode.apply(r)!==null;)r=csNodeparentNode.apply(r),csArray.prototype.push.call(t,r);return $i(r)&&csArray.prototype.push.call(t,hi),{ancestors:t,selectionRoot:r}}function xh(s){let r=s,t=[r],e=null;for(;csNodeparentNode.apply(r)!==null;)e===null&&Ea(r)&&(e=r),csArray.prototype.push.call(t,csNodeparentNode.apply(r)),r=csNodeparentNode.apply(r);return $i(r)&&csArray.prototype.push.call(t,hi),{firstAnchorParent:e,ancestors:t,selectionRoot:r}}function $i(s){return le.isValidElement(s)}var ss=(()=>{var s,r;return(r=(s=bt.Element)===null||s===void 0?void 0:s.prototype)!==null&&r!==void 0?r:{}})(),Yt=ss.matches||ss.matchesSelector||ss.mozMatchesSelector||ss.msMatchesSelector||ss.oMatchesSelector||ss.webkitMatchesSelector,Zn=ss.closest,wa=9;function Vh(s,r){return r?csArray.prototype.some.call(r,t=>Yt.call(s,t)):!1}function Uh(s,r,t){if(s===hi||s.nodeType===wa)return 0;let e=t.dynamicElementNameRegex,i=!!(e!=null&&e.test(r.localName)),n=Hr(r),a=0,c=r.previousElementSibling;for(;c;)(Hr(c)===n||i&&(e!=null&&e.test(c.localName)))&&!Vh(c,t.reliableSelectors)&&(a+=1),c=c.previousElementSibling;return a}function jh(s,r,t){if(s===hi||s.nodeType===wa)return 0;let e=0,i=r.previousElementSibling;for(;i;)Yt.call(i,t)&&(e+=1),i=i.previousElementSibling;return e}var Hh=[/\d{4}/,/^ember\d+$/],Bh="@",an="data-cs-override-id",Fh="data-cs-dynamic-id";function Aa(s,r,t,e){let i=e.dynamicIdRegex||null,n=e.dynamicElementNameRegex,a=Hr(s);if(n&&n.test(s.localName)&&(a=csString.prototype.replace.call(a,n,`$1${Bh}`)),qh(s,t)){let y=cn(s);return{hasUniqueIdentifier:!0,elementSelector:`${a}[${an}="${y}"]`}}let c=Qh(s,t,e);if(c.success)return{hasUniqueIdentifier:!0,elementSelector:`${a}#UA[${c.attributeName}="${c.attributeValue}"]`};let l=zh(s,t,e);if(l)return{hasUniqueIdentifier:!0,elementSelector:`${a}#UCS[${l}]`};let d=Sh(s);if(Wh(s,d,t,i))return{hasUniqueIdentifier:!0,elementSelector:`${a}#${d}`};let g=$h(s,e);if(g){let y=jh(r,s,g);return{hasUniqueIdentifier:!1,elementSelector:`${a}[${g}](${y})`}}let u=Uh(r,s,e);return{hasUniqueIdentifier:!1,elementSelector:`${a}:eq(${u})`}}function zh(s,r,t){if(t.uniqueCssSelectors){for(let e of t.uniqueCssSelectors)if(Yt.call(s,e)&&Jh(e,r))return e}}function $h(s,r){if(r.reliableSelectors){for(let t of r.reliableSelectors)if(Yt.call(s,t))return t}}function qh(s,r){let t=cn(s);return t&&csString.prototype.match.call(t,/^[\w-]+$/)&&ln(an,t,r)}function Gh(s){return cn(s)!==null}function cn(s){return s.getAttribute(an)}function Wh(s,r,t,e){return r&&!Gh(s)&&!Yh(s,r,e)&&Kh(r,t)}function Yh(s,r,t){return s.hasAttribute(Fh)||Xh(r,t)}function Xh(s,r){let t=!1;return s&&r&&(t=r.test(s)),s&&(csArray.prototype.some.call(Hh,e=>e.test(s))||t)}function Kh(s,r){return s&&ln("id",s,r)}function ln(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 Jh(s,r){try{return window.csquerySelectorAll[r.nodeType].call(r,s).length===1}catch(t){if(t.name!=="SyntaxError")throw t}return!1}function Qh(s,r,t){if(!t.uniqueAttributes)return{success:!1};for(let e of t.uniqueAttributes){let i=s.getAttribute(e);if(i!==null&&ln(e,i,r))return{attributeName:e,attributeValue:i,success:!0}}return{success:!1}}var Br=11;function qi(s,r,t){let e=csArray.prototype.shift.call(s);if(s.length===0)return to(e,t);let i=e,n=s[0],{elementSelector:a,hasUniqueIdentifier:c}=Aa(i,n,r,t);if(!t.fullPath&&c){let d=s[s.length-1];return`${to(d,t)}${a}`}let l=qi(s,r,t);return`${l?`${l}>`:""}${a}`}function to(s,r){if(s===hi)return"|detached|";if(s.host){let{ancestors:t,selectionRoot:e}=_a(s.host);return`${qi(t,e,r)}|shadow-root|`}return s.nodeType===Br?"|fragment|":""}var ba=(()=>{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})(),Zh=(()=>{class s extends ba{constructor(){super(...arguments),this.oo=!1,this.ao=!1,this.Qa=!1}Bm(t,e){return this.oo&&!(e===null&&$i(t))&&t.nodeType!==Br&&!t.host}Fm(t){return!t.localName}serializeElement(t,e,i){var n;if((n=this.path)!==null&&n!==void 0||(this.path=""),this.Bm(t,e))return;let a=!1;e===null&&$i(t)&&(a=!0,this.done=!0);let c=this.ao&&!this.options.fullPath?"":">",l=!!t.host;if(l&&this.path&&(this.path="|shadow-root|"+c+this.path,this.Qa=!0,this.oo=!1,this.ao=!1),!l&&e===null&&t.nodeType===Br){this.path="|fragment|"+c+this.path,this.done=!0;return}if(this.Fm(t))return;let d=e!=null?e:"detached",{elementSelector:g,hasUniqueIdentifier:u}=Aa(t,d,i,this.options);u&&(this.ao=!0,this.oo=!this.options.fullPath);let y=`${a?`|detached|${c}`:""}${this.oo&&!u?"":g}`,v=!u&&this.ao&&!this.options.fullPath?"":this.path&&!this.Qa?">":"";this.Qa=!1,this.path=`${y}${v}${this.path}`}}return s})();function Wt(s,r=Ct.SHOW_ALL){let t=r|Ct.SHOW_ELEMENT,e=[document.createTreeWalker(s,t,null,!1)],i=eo(s);i&&csArray.prototype.push.call(e,document.createTreeWalker(i,t,null,!1));let n=null;return{root:s,nextNode(){if(i){let a=i;return i=null,a}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 l=eo(c);if(r&Ct.SHOW_DOCUMENT_FRAGMENT&&l&&(n=l),l&&csArray.prototype.push.call(e,document.createTreeWalker(l,t,null,!1)),(mr[c.nodeType]&r)!==0)return c}return null},visitAll(a){mr[s.nodeType]&r&&a(s);let c=this.nextNode();for(;c;){if((mr[c.nodeType]&r)===0){c=this.nextNode();continue}a(c),c=this.nextNode()}},collectAll(a){let c=[];return this.visitAll(l=>csArray.prototype.push.call(c,a?a(l):l)),c}}}function eo(s){return s&&va(s)?s.shadowRoot:null}var gr=(()=>{var s;return(s=bt.Node)!==null&&s!==void 0?s:{}})(),Ct=(()=>{var s;return(s=bt.NodeFilter)!==null&&s!==void 0?s:{}})(),mr={2:Ct.SHOW_ATTRIBUTE,4:Ct.SHOW_CDATA_SECTION,8:Ct.SHOW_COMMENT,11:Ct.SHOW_DOCUMENT_FRAGMENT,9:Ct.SHOW_DOCUMENT,10:Ct.SHOW_DOCUMENT_TYPE,1:Ct.SHOW_ELEMENT,[gr.ENTITY_NODE]:Ct.SHOW_ENTITY,[gr.ENTITY_REFERENCE_NODE]:Ct.SHOW_ENTITY_REFERENCE,[gr.NOTATION_NODE]:Ct.SHOW_NOTATION,7:Ct.SHOW_PROCESSING_INSTRUCTION,3:Ct.SHOW_TEXT},st={debug(...s){},warn(...s){},implementation(...s){},error(...s){},critical(...s){},isPerfLoggingActive(){return!1}};function tu(s){st=s}var L=s=>(r,t,e)=>{let i=(t==null?void 0:t.toString())||"",n=s||`${r.constructor&&r.constructor.name}.${i}`;if(e){let a=e.value;e.value=function(...c){return ze(n,a.bind(this))(...c)}}};function ze(s,r){return function(...t){try{let e=r.apply(this,t);return Z(window.Promise)&&e instanceof window.Promise?e.then(i=>i,i=>st.error(Fe(i)?i:new Error(i),s)):e}catch(e){try{st.error(Fe(e)?e:new Error(e),s)}catch{}}}}var Os=(()=>{class s{constructor(){this.co=0}get length(){return this.co}get isEmpty(){return!this.Is}pushAll(t){for(let e=0;e=Ra&&csArray.prototype.push.call(yr,{mName:s,mDuration:+t.toFixed(2)}),csArray.prototype.pop.call(Fr),Fr.length===0&&(t>Ta&&Vi.push(yr),yr=[])}function ls(s,r){return function(...t){if(!Gi)return s.apply(this,t);Ca(r);let e=s.apply(this,t);return Ia(r),e}}var Nt=function(s){return function(r,t,e){let i=e.value;e.value=function(){if(!Gi)return e.value=i,i.apply(this,arguments);Ca(s);let n=i.apply(this,arguments);return Ia(s),n}}};var os=(()=>{let s;return function(r){function t(){return!!Element.prototype.attachShadow}r.isSupported=t;function e(n){return n&&va(n)?n.shadowRoot:null}r.getShadowRoot=e;function i(n){return Wt(n,NodeFilter.SHOW_DOCUMENT_FRAGMENT).collectAll(a=>a.host)}r.getAllShadowHosts=ls(i,"getAllShadowHosts")}(s||(s={})),s})(),ft=(()=>{let s;return function(r){function t(){let u=[i()];return document.documentElement&&csArray.prototype.push.call(u,document.documentElement.scrollHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight),document.body&&csArray.prototype.push.call(u,document.body.scrollHeight,document.body.offsetHeight),Math.max(...u)}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 a(){let u=window.csScreen.width;return bs(u)&&u>0?u:window.screen.width}r.screenWidth=a;function c(){let u=window.csScreen.height;return bs(u)&&u>0?u:window.screen.height}r.screenHeight=c;function l(){return window.pageXOffset}r.windowOffsetX=l;function d(){return window.pageYOffset}r.windowOffsetY=d;function g(){return{dw:`${e()}`,dh:`${t()}`,ww:`${n()}`,wh:`${i()}`,sw:`${a()}`,sh:`${c()}`}}r.getRequestParameters=g}(s||(s={})),s})();function ri(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 K(s,r){if(ru(s)){let t=s.length;for(let e=0;e=0}function Le(s,r){let t=s.length;for(let e=0;ecsArray.prototype.push.call(t,r?[i,e]:e)),t}var Er=(()=>{var s;return(s=bt.Node)!==null&&s!==void 0?s:Object})(),ut=(()=>{let s;return function(r){let t="isConnected"in Er.prototype?S=>S.isConnected:S=>!S.ownerDocument||!(S.ownerDocument.compareDocumentPosition(S)&S.DOCUMENT_POSITION_DISCONNECTED);function e(S,P){for(let V=S;V;V=csNodenextSibling.apply(V))P(S)}r.forEachChild=e;function i(S){return t(S)}r.isConnected=i;function n(S,P){let V=[];for(let H of l(S,P))csArray.prototype.push.call(V,H);return V}r.getAncestors=n;let a=(S,P)=>{var V;return(V=csNodeparentNode.apply(S))!==null&&V!==void 0?V:P&&ii(S)?S.host:null};function c(S,P,V=!1){let H=S;for(;H;){if(P(H))return H;let tt=a(H,V);if(tt&&tt!==H)H=tt;else break}return null}r.findAncestor=c;function*l(S,P=!1){let V=S;for(;V;){yield V;let H=a(V,P);if(H&&H!==V)V=H;else break}}r.walkUp=l;function d(S,P){if(S===P||P.contains(S))return!0;let V=r.getParentElement(S);return V&&V!==S?d(V,P):!1}r.isDescendantOf=d;function g(S){var P;return S.parentElement?S.parentElement:r.getRootNode(S)?(P=r.getRootNode(S))===null||P===void 0?void 0:P.host:null}r.getParentElement=g;function u(S,P=document){let V=ri(window.csquerySelectorAll[P.nodeType].call(P,S)),H=os.getAllShadowHosts(P);for(let tt of H){let at=os.getShadowRoot(tt);if(!at)continue;let wt=ri(window.csquerySelectorAll[at.nodeType].call(at,S));csArray.prototype.push.call(V,...wt)}return V}r.findAllElements=u,r.getRootNode=(()=>{if("getRootNode"in Er.prototype)return(V,H)=>V.getRootNode(H);function S(V){let H=P(V);return ii(H)?S(H.host):H}function P(V){return csNodeparentNode.apply(V)!=null?P(csNodeparentNode.apply(V)):V}return(V,H)=>typeof H=="object"&&!!H.composed?S(V):P(V)})();function y(S){return S==="transparent"||/^(rgba|hsla)\(\d+, \d+%?, \d+%?, 0\)$/.test(S)}function E(S){let P=S.getBoundingClientRect();return P.right+ft.windowOffsetX()<0||P.bottom+ft.windowOffsetY()<0}function v(S){var P,V;if(((P=S.checkVisibility)===null||P===void 0?void 0:P.call(S,{checkOpacity:!0,checkVisibilityCSS:!0}))===!1)return!0;if(!S.offsetParent){if(!S.getBoundingClientRect)return st.warn(`SUP-11432: Element doesn't have getBoundingClientRect. Node: ${S instanceof Er} Ctor: ${(V=S==null?void 0:S.constructor)===null||V===void 0?void 0:V.name}`),!1;let at=S.getBoundingClientRect();if(at.width==0&&at.height==0)return!0}let H=window.getComputedStyle(S);return H?H.display==="none"||H.visibility==="hidden"||H.visibility==="collapse"||H.opacity==="0"||H.filter==="opacity(0)"||H.width==="0px"&&H.height==="0px"||y(H.color):!0}r.isHiddenByCSS=v;function b(S){if(v(S))return!0;let V=g(S);return V!=null&&b(V)}r.areAncestorsHiddenByCSS=b;function k(S){let P=null,V=S;do if(v(V))P=V;else break;while(V=g(V));return P}r.getTopAncestorHiddenByCSS=k;function R(S){let P=w(S);return P!==null&&!S.contains(P)&&!P.contains(S)}function w(S){let P=S.getBoundingClientRect(),V=P.left+.5*P.width,H=P.top+.5*P.height;return A(document,V,H)}r.getTopElement=w;function x(S){if(!S.getBoundingClientRect)return null;let P=S.getBoundingClientRect(),V=P.x+P.width/2,H=P.y+P.height/2;return r.getTopElementFromPoint(document,V,H)}r.getElementOnTop=x;function A(S,P,V){let H=S.elementFromPoint(P,V);if(!H)return null;let tt=os.getShadowRoot(H);return tt&&tt!=r.getRootNode(document.body)&&tt!==S?A(tt,P,V):H}r.getTopElementFromPoint=A;function M(S){return!E(S)&&!v(S)&&!R(S)}r.isVisibleInDocument=M;function U(S){return v(S)?!1:J(S)}r.isVisibleInViewportInForeground=U;function J(S){let P=w(S);return P===null?!1:S===P?!0:_t(S)?S.textContent!==""&&P.contains(S):S.contains(P)}r.isInViewPort=J;function ct(S,P,V){let H=S.getAttributeNS(P,V);return H===""?S.hasAttributeNS(P,V)?H:null:H}r.getAttributeNS=ct;function kt(S){return!!(S.hasAttribute("tabIndex")||S.getAttribute("contentEditable")==="true"||Ea(S)&&S.hasAttribute("href")||(on(S)||nn(S)||Ki(S)||Rh(S))&&!S.hasAttribute("disabled")||Ch(S)||Ih(S))}r.isElementFocusable=kt;function _t(S){return S.localName==="span"||S.localName==="a"||S.localName==="b"||S.localName==="i"||S.localName==="button"||S.localName==="input"||S.localName==="label"||S.localName==="cite"||S.localName==="small"||S.localName==="strong"||S.localName==="code"||S.localName==="abbr"||S.localName==="em"||S.localName==="dfn"||S.localName==="time"||S.localName==="output"||S.localName==="object"||S.localName==="sub"}r.isInlineElement=_t}(s||(s={})),s})(),au=(()=>{class s{constructor(t){this.zm=t}run(t){let e=[...this.zm],i=ut.getAncestors(t,!1),n=i[i.length-1];for(;e.length>0&&i.length>0;){let a=csArray.prototype.shift.call(i),c=i[0]||null;if(this.$m(e,a,c,n),this.qm(e),e.length===0)break;i.length===0&&a.host&&(i=ut.getAncestors(a.host,!1),n=i[i.length-1])}}$m(t,e,i,n){for(let a of t)a.serializeElement(e,i,n)}qm(t){for(let e=0;e{class s extends ba{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.Gm(t);if(i+=i.length>0?"|":"",this.path.length+i.length>this.options.hierarchyMaxLength){this.done=!0;return}this.path=i+this.path}Gm(t){if(!t.localName)return"";let e=`@${t.localName};`;return e+=this.Wm(t.id),t.classList&&(e+=this.Ym(csArray.from(t.classList))),t.attributes&&(e+=this.Xm(t)),e}Wm(t){return t?`#${t};`:""}Ym(t){return t.length>0?`.${csArray.prototype.join.call(csArray.prototype.sort.call(t),";.")};`:""}Km(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||Ps(t)&&csString.prototype.indexOf.call(e,"data-")===-1&&e!=="aria-label"||Ki(t)&&e==="value"}Jm(t,e){return this.options.useAnonymization&&!this.options.allWhitelistedAttributes.has(t)||e.length>this.options.attrMaxLength}Qm(t){let e={};for(let i of csArray.from(t.attributes))this.Km(t,i.name)||(e[i.name]=i.value);return e}Xm(t){var e,i;if(!((i=(e=this.options).isNodeSensitive)===null||i===void 0)&&i.call(e,t))return"";let n=Object.entries(this.Qm(t));return csArray.prototype.join.call(csArray.prototype.sort.call(csArray.prototype.map.call(csArray.prototype.filter.call(n,([a])=>a.lengththis.Jm(a,c)?`[${a}]`:`[${a}=${c}]`)),";")+(n.length>0?";":"")}}return s})(),le=(()=>{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,l,d={fullPath:!1,dynamicIdRegex:null}){let g=a(c);if(g===document)return{path:"",hierarchy:""};if(!t(g))return{path:r.INVALID_ELEMENT,hierarchy:r.INVALID_ELEMENT};let u=new Zh(d),y=new cu(l);return new au([u,y]).run(g),{path:u.getPath(),hierarchy:y.getPath()}}r.getElementPathAndHierarchy=e;function i(c,l={fullPath:!1,dynamicIdRegex:null}){let d=a(c);if(d===document)return"";if(!t(d))return r.INVALID_ELEMENT;let{ancestors:g,selectionRoot:u}=_a(d);return qi(g,u,l)}r.getElementPath=i;function n(c,l={fullPath:!1,dynamicIdRegex:null}){let d=a(c);if(d===document)return{path:"",firstAnchorParent:null};if(!t(d))return{path:r.INVALID_ELEMENT,firstAnchorParent:null};let{firstAnchorParent:g,ancestors:u,selectionRoot:y}=xh(d);return{path:qi(u,y,l),firstAnchorParent:g}}r.getElementPathAndFirstAnchorParent=n;function a(c){return c&&"jquery"in c&&c.length===1?c[0]:c}}(s||(s={})),s})();window.CSPathComputation=window.CSPathComputation||le;var lu=Number.MAX_SAFE_INTEGER||9007199254740991;function io(){}function $e(s,r){return csString.prototype.lastIndexOf.call(s,r,0)===0}function hu(s,r){return csString.prototype.indexOf.call(s,r,s.length-r.length)!==-1}var hn=34164e6,Ts={percentage(){return Math.floor(Math.random()*1e4)/100},boolean(s){return this.percentage(){let s;return function(r){r.debug="debug",r.warn="warn",r.implementation="implementation",r.error="error",r.critical="critical"}(s||(s={})),s})(),Na=["t.contentsquare.net","clicktale"],du=s=>{var r;if(typeof s.filename=="string"&&csArray.prototype.some.call(Na,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,j.critical(t)}};window.addEventListener("error",du);var j=(()=>{class s{constructor(){}static whiteListFilename(t){csArray.prototype.push.call(Na,t)}static setStrategy(t){s.Vi=t}static computeIsActive(t){s.De=Ts.boolean(t),s.De?s.Za=Ts.boolean(10):s.Za=!1}static isLoggingActive(){return s.De}static getStrategy(){return s.Vi}static debug(t,e=""){s.De&&this.Vi.send(t,e,rt.debug)}static warn(t,e=!0,i=""){var n;s.De&&e&&this.Vi.send(t,i,rt.warn),(n=window.UXAnalytics.Console)===null||n===void 0||n.warn(t)}static implementation(t,e=""){s.De&&this.Vi.send(t,e,rt.implementation)}static error(t,e=""){var i;s.De&&this.Vi.send(t,e,rt.error),(i=window.UXAnalytics.Console)===null||i===void 0||i.error(t)}static critical(t,e=""){this.Vi.send(t,e,rt.critical)}static tryToExecute(t,e){return function(...i){try{let n=e.apply(this,i);return Z(window.Promise)&&n instanceof window.Promise?n.then(a=>a,a=>s.error(Fe(a)?a:new Error(a),t)):n}catch(n){try{s.error(Fe(n)?n:new Error(n),t)}catch{}}}}static isPerfLoggingActive(){return s.Za}}return s.De=!1,s.Za=!1,s})();var pu=/^\d+\.\d+(?:\.\d+)?$/,fu=s=>{if(!pu.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}},gu=(s,r)=>s.major!==r.major?s.major-r.major:s.minor!==r.minor?s.minor-r.minor:s.patch-r.patch,mu=(s,r)=>gu(s,r)>=0,yu=1,Eu="f553e78fb58e051e51fe8074c4c6e73e",zr=(()=>{let s;return function(r){r[r.Disabled=0]="Disabled",r[r.ButtonAndLinkOnly=1]="ButtonAndLinkOnly",r[r.Enabled=2]="Enabled"}(s||(s={})),s})(),Su=(()=>{class s{constructor(t){var e,i,n,a,c,l,d,g,u,y,E,v;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||hn,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=!!(!((a=(i=t.collectionEnabled)!==null&&i!==void 0?i:(n=t.smbConfig)===null||n===void 0?void 0:n.record)!==null&&a!==void 0)||a),this.useSentry=!!((c=t.useSentry)!==null&&c!==void 0?c:!((l=t.smbConfig)===null||l===void 0)&&l.useSentry),this.apiErrors={enabled:(d=t.apiErrorsEnabled)!==null&&d!==void 0?d:0,...t.apiErrors},this.customErrors={enabled:(g=t.customErrorsEnabled)!==null&&g!==void 0?g:0,...t.customErrors},this.jsCustomErrorsEnabled=t.jsCustomErrorsEnabled,this.triggerSessionReplayEnabled=t.triggerSessionReplayEnabled,this.triggerSessionReplayRegex=this.tc(t.triggerSessionReplayRegex),this.dynamicIdRegex=t.dynamicIdRegex?new csRegExp(t.dynamicIdRegex):null,this.whitelistedAttributes=t.whitelistedAttributes||[],this.replayRecordingUnmaskedUrlRegex=this.tc(t.replayRecordingUnmaskedUrlRegex),this.replayRecordingMaskedUrlRegex=this.tc(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.malkaQuotaServiceDomain=t.malkaQuotaServiceDomain||null,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.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=((u=t.uxaDomain)===null||u===void 0?void 0:u.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}),t.heapEnvironment&&(this.heapEnvironment=t.heapEnvironment),t.implementations&&t.implementations.length&&(this.implementations=t.implementations),this.eventsApiEnabled=!!t.eventsApiEnabled,this.anonymizeDigits=(y=t.anonymizeDigits)!==null&&y!==void 0?y:null,this.isHeapPresent=window.heap!==void 0,this.recordTargetingRules=(E=t.recordTargetingRules)!==null&&E!==void 0?E:[],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:zr.Disabled}getTrackerUri(){return`${this.cs()}://${this.trackerDomain}`}getSentryFileUri(){return`${this.cs()}://${this.tagDomain}/uxa/smb/errors.js`}getSentryDSNUri(){return`https://${Eu}@${this.loggerDomain}/4508608369131520`}getRecordingUri(){return`${this.cs()}://${this.malkaRecordingDomain}`}getLegacyQuotaUri(){return`${this.cs()}://${this.malkaQuotaServiceDomain}`}getLoggerUri(){return`${this.cs()}://${this.loggerDomain}`}getMetricsUri(){return`${this.cs()}://${this.loggerDomain}/metrics`}getStaticResourceManagerUri(){return`${this.cs()}://${this.staticResourceManagerDomain}`}getSettingsFileUri(){return this.settingsFileUri?this.settingsFileUri:`${this.cs()}://${this.dynamicConfDomain}/${this.projectId}.json`}isQuotaEnabled(){return this.isSMB&&!!this.dynamicConfDomain}getPaProxyDomainUri(){return`${this.cs()}://${this.paProxyDomainUri}`}cs(){return this.useHttps?"https":"http"}isProjectActive(){return this.status===yu}processOptionOverrides(t){t&&t.forEach&&t.forEach(([e,...i])=>{if(e==="setOption"){let[n,a]=i;this.Zm(n,a)}})}Zm(t,e){t==="trackerDomain"&&(this.trackerDomain=e),t==="loggerDomain"&&(this.loggerDomain=e),t==="malkaRecordingDomain"&&(this.malkaRecordingDomain=e),t==="malkaQuotaServiceDomain"&&(this.malkaQuotaServiceDomain=e),t==="staticResourceManagerDomain"&&(this.staticResourceManagerDomain=e),t==="minLogLevel"&&(this.minLogLevel=e),t==="useHttps"&&(this.useHttps=!!e),t==="isWebView"&&(this.isWebView=e)}tc(t){return t?this.ty(t):null}getRequestParameters(){return{pid:`${this.projectId}`}}updateDynamicFields(t,e){t==="emitDebugEvents"&&(this.emitDebugEvents=e),t==="minLogLevel"&&(this.minLogLevel=e)}ty(t){try{let e=/^\/(.*)\/([gim]*)$/.exec(t);if(e){let[,i,n]=e;return new csRegExp(`^${i}$`,n)}return new csRegExp(`^${t}$`)}catch{return null}}isHeaderCollectionActive(){var t,e;return this.apiErrors.collectStandardHeaders||!!(!((t=this.apiErrors.validCustomHeaders)===null||t===void 0)&&t.length)||!!(!((e=this.apiErrors.plainCustomHeaders)===null||e===void 0)&&e.length)}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.ju()}isHeapSideloadsStartDataCollection(){if(this.isHeapSideloadsCs()){if(this.ju())return!0;let t=fu(this.getHeapVersion()||"");if(t&&t.major===4&&mu(t,{major:4,minor:23,patch:5}))return!0}return!1}ju(){var t;return typeof((t=window.heap)===null||t===void 0?void 0:t.getUserId)=="function"}getHeapVersion(){var t,e,i,n,a,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=(a=window.heap)===null||a===void 0?void 0:a.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"}isCollectTargetTextEnabled(){return this.isSMB||this.collectTargetText!==zr.Disabled}isNetworkDetailsEnabled(){return this.performanceTimingOptions?this.performanceTimingOptions.withResource||this.performanceTimingOptions.withNavigation:!1}hasTargetingRules(){var t;return!!(!((t=this.recordTargetingRules)===null||t===void 0)&&t.length)}}return s})(),vu=(()=>{class s{constructor(t,e){this.lo=t,this.Hu=e}init(){this.Bu=this.lo!==this.lo.top,this.Fu=this.Hu.isWebView&&this.lo===this.lo.top,this.Hu.iframesTracking&&this.Bu||this.Fu?this.zu=!1:this.zu=!0}isInIframeContext(){return this.Bu}isTopWindowTracker(){return this.zu}isInWebViewContext(){return this.Fu}}return s})(),ni=(()=>{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})(),Ma=(()=>{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})(),Cs=(()=>{class s extends Ma{constructor(t,e){super(t,e)}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,i=>i());let t=this.retrieveParameters();this.sc(t);let e=ni.toQuery(t);this.ey(e),csArray.prototype.forEach.call(this.afterRequestCallbacks,i=>i())}ey(t){let e=new window.Image(1,1);e.onload=io,e.onerror=io,csHTMLImageElementsrc.call(e,`${this.domainUri}${this.path?`/${this.path}`:""}?${t}`)}sc(t){t.r=csString.prototype.slice.call(`${Math.random()}`,2,8)}}return s})(),_u=(()=>{class s{constructor(t,e){this.Ps=t,this.sy=e}init(){this.ls=new Cs(this.Ps.getLoggerUri()),this.ls.setRequestParametersProviders(this,this.sy)}send(t){this.ho=t,this.ls.send()}getRequestParameters(){return{a:this.ho.app,l:this.ho.level,m:this.ho.message,s:this.ho.stacktrace}}}return s})();function ot(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,a;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--)(a=s[c])&&(n=(i<3?a(n):i>3?a(r,t,n):a(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}var $r=(()=>{class s{static setGlobalService(t){s.globalService=t}constructor(t){this.name=t}_get(){return this._values}_reset(){this._values={}}aggregate(){if(!s.globalService)return;let t=this._get(),e=Object.keys(t);e.length&&(s.globalService.push(csArray.prototype.map.call(e,i=>({name:this.name,parameter:i,value:t[i]}))),this._reset())}}return s.globalService=null,ot([L("Metric.aggregate")],s.prototype,"aggregate",null),s})(),Lt=(()=>{class s extends $r{constructor(t,e=100){super(t),this.iy=e,this.Re=null,this._values={}}count(t,e=1){this._values[t]=(this._values[t]||0)+e,this._debounce()}_debounce(){$r.globalService&&(this.Re&&window.csClearTimeout(this.Re),this.Re=window.csSetTimeout(()=>{this.aggregate(),this.Re=null},this.iy))}}return s})();var ht={counters:{commandsFromIntegrations:new Lt("commands-from-integrations"),commandsFromCSTC:new Lt("commands-from-cstc"),commandsFromIframe:new Lt("commands-from-iframe"),commandApplied:new Lt("command-applied"),commandError:new Lt("command-error"),commandMisuse:new Lt("command-misuse"),CSTCSnippetUsed:new Lt("cstc-snippet-used"),redactedPII:new Lt("redacted-pii"),pageAnonymisation:new Lt("page-anonymisation"),patchedNativeFunctions:new Lt("patched-native-functions"),pureWindowState:new Lt("pure-window-state"),sensitiveElements:new Lt("sensitive-elements"),cspErrors:new Lt("csp-errors"),networkRequests:new Lt("network-requests")},setService(s){$r.setGlobalService(s)}},wu=/[a-zA-Z0-9._%+-]+(?:@|%40|%2540)[a-zA-Z0-9.%-_]+((?:\.|%2[eE])[a-zA-Z0-9-]+)+/g,Au=/[a-zA-Z0-9+_-](?:@|%40|%2540)/,bu="CS_ANONYMIZED_EMAIL",vr="([-A-Za-z0-9+/=_]|=[^=]|={3,})+",Tu=new csRegExp(`(ey${vr}\\.ey${vr}\\.${vr})`,"g"),Ru="CS_ANONYMIZED_JWT",Cu=/[0-9]{4}/,Iu=/(^|[^a-zA-Z0-9*.,-])([45*][0-9*]{3}([ -]?)[0-9*]{4}\3[0-9*]{4}\3[0-9*]{4})($|[^a-zA-Z0-9*.,-])/g,Pu="CS_ANONYMIZED_PII",Ou="\u2022",Nu=/\d/g,Mu=/([+(]{0,2}\d[-_ ()/]{0,4}){9,}/,ku=/(?:\d{1,3}\.){3}\d{1,3}/,Du=/(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}/,be=(()=>{let s;return function(r){function t(g){return csString.prototype.replace.call(g,wu,bu)}r.replaceEmail=t;function e(g){return csString.prototype.replace.call(g,Tu,Ru)}r.replaceJWT=e;function i(g,u){return csString.prototype.replace.call(g,Iu,u)}r.replaceCreditCardNumber=i;function n(g){return csString.prototype.replace.call(g,Nu,Ou)}r.replaceDigits=n;function a(g){return ku.test(g)||Du.test(g)}r.mayHaveIPAddress=a;function c(g){return Mu.test(g)}r.mayHaveNumberSequence=c;function l(g){return Cu.test(g)}r.mayHaveCreditCardNumber=l;function d(g){return Au.test(g)}r.mayHaveEmail=d}(s||(s={})),s})(),ui=(()=>{class s{hasPII(t,e){let i=this.checkAndAnonymizePII(t,e);return t!==i}checkAndAnonymizePII(t,e=null){let i=this.ry(this.ic(t));return e===!0?i=this.ny(i):e===!1&&(i=this.oy(i)),i}anonymizePII(t){return this.ic(t)}anonymizeJwt(t){return be.replaceJWT(t)}anonymizeFields(t,e){return csArray.prototype.forEach.call(e,i=>{t[i]=this.ic(t[i])}),t}ic(t){if(be.mayHaveEmail(t)){let e=be.replaceEmail(t);return e!==t&&ht.counters.redactedPII.count("email"),e}return t}ny(t){return be.replaceDigits(t)}oy(t){return be.mayHaveNumberSequence(t)?be.replaceDigits(t):t}ry(t){return be.mayHaveCreditCardNumber(t)?be.replaceCreditCardNumber(t,(e,i,n,a,c)=>{if(csString.prototype.indexOf.call(n,"*")===-1){let d=a.length?csArray.prototype.join.call(csString.prototype.split.call(n,a),""):n;if(!this.ay(d))return e;ht.counters.redactedPII.count("cc")}else ht.counters.redactedPII.count("cc-partial");return`${i}${Pu}${c}`}):t}ay(t){let e=parseInt(t[t.length-1]),i=0;for(let n=t.length-2;n>=0;n--){let a=parseInt(t[n]);n%2===0&&(a*=2),i+=Math.floor(a/10)+a%10}return 10-i%10===e}}return s})(),ka="15.107.2";function un(){return{v:ka}}function dn(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 no(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(a){st.warn(`${a}, calling decodeURIComponent on: ${e[1]}`)}let n=r?Da(e[1]):dn(e[1]);return new Blob([n],{type:csString.prototype.replace.call(e[0],"data:","")})}var La=typeof performance!="undefined"&&!!performance.now,oo=La?()=>performance.now():csDate.now,Lu=(()=>{var s,r;return La?(r=(s=performance.timing)===null||s===void 0?void 0:s.navigationStart)!==null&&r!==void 0?r:Math.floor(performance.timeOrigin):0})(),N={now(){return Math.round(oo()+Lu)},elapsed(){return oo()}};function ao(){return Math.floor(N.now()/1e3)}function xa(){return typeof window.Promise=="function"}function pn(){var s;return typeof crypto!="undefined"&&Be((s=crypto.subtle)===null||s===void 0?void 0:s.digest)}function co(){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 qe(s,r){return csString.prototype.lastIndexOf.call(s,r,0)===0}function di(s,r){return csString.prototype.indexOf.call(s,r,s.length-r.length)!==-1}async function lo(s,r){return Wi(await window.crypto.subtle.digest(s,r))}var Va=(()=>{class s{constructor(t,e){this.h=t,this.I=e}getRequestParameters(){return{d:`${N.now()}`,p:this.I.anonymizePII(window.location.href),...this.h.getRequestParameters(),...un()}}}return s})(),xu="uxa",ho=5,Vu="No stacktrace",Ua="snippet-",ja="implementation-snippet-",uo=(()=>{let s;return function(r){r.IMPLEMENTATION="implementation",r.DYNAMIC="dynamic"}(s||(s={})),s})(),_r={[rt.debug]:0,[rt.warn]:1,[rt.implementation]:1,[rt.error]:2,[rt.critical]:3},Uu=(()=>{class s{constructor(t,e,i){this.hs=e,this.I=new ui,this.$u=_r[rt.warn],this.$u=_r[t.minLogLevel||rt.warn],this.ls=i||new _u(t,new Va(t,this.I)),this.qu={[rt.debug]:[],[rt.warn]:[],[rt.implementation]:[],[rt.error]:[],[rt.critical]:[]},this.uo={implementation:{},dynamic:{}},this.ls.init()}send(t,e="",i=rt.warn){if(!this.cy(i,e))return;csArray.prototype.push.call(this.qu[i],e||"");let n={message:this.ly(t,e),stacktrace:this.hy(t),app:xu,level:i};this.ls.send(n)}ly(t,e){let i=Fe(t)?this.I.anonymizePII(t.message||t.toString()):t;return e&&(i+=` ErrorCode: ${e}`),i}hy(t){return Fe(t)?`${t.stack||Vu} ${this.po()}`:this.po()}po(){let t=this.hs.getVisitorService(),e=t==null?void 0:t.getVisitor();if(!e)return"No context";let i=this.hs.getSessionService(),n=i&&i.getSession(),a={userId:e.id,sessionNumber:e.visitsCount,pageNumber:n&&n.pageNumber};return csJSON.stringify(a)}cy(t,e){if(_r[t]=ho||e&&csArray.prototype.some.call(i,n=>n===e))}Gu(t,e){return t in this.uo[e]?this.uo[e][t]>=ho?!1:(this.uo[e][t]+=1,!0):(this.uo[e][t]=1,!0)}}return s})(),St=!ci&&document.createElement("a"),ju=/(:443|:80)$/;function Ue(s){return St?(St.href=s,St.href):""}function Hu(s,r){return new csURL(s,r).href}function Ha(s){let r=gn(s);return r===null?"":decodeURIComponent(r.hostname)}function fn(s,r){return csArray.prototype.some.call(r,t=>di(s,`.${t}`)||s===t||t==="")}function Bu(s){return s[0]==="/"?s:`/${s}`}function po(s){return csString.prototype.replace.call(s,ju,"")}function gn(s){return!St||!qe(s,"http://")&&!qe(s,"https://")?null:(St.href=s,{hash:St.hash,host:po(St.host),hostname:St.hostname,href:St.href,origin:St.origin?St.origin:po(`${St.protocol}//${St.host}`),pathname:Bu(St.pathname),port:St.port,protocol:St.protocol,search:St.search})}var fo="CS_IFRAME_MESSAGE",Fu=(()=>{let s;return function(r){r.AfterPageView="afterPageView",r.GetSessionKey="getSessionKey"}(s||(s={})),s})(),Qt=(()=>{let s;return function(r){r.Parent="parent",r.Child="child"}(s||(s={})),s})(),X=(()=>{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})(),pt=(()=>{let s;return function(r){function t(l,d,g,u){let y={type:l,from:d,pid:g,signature:fo};return u!==void 0&&u>=0&&(y.id=u),y}r.buildBaseMessage=t;function e(l,d,g,u){let y=Ha(l.origin);return!!l.data&&!!l.data.type&&l.data.signature===fo&&l.data.from===d&&l.data.pid===g&&fn(y,u)}r.isMessageValid=e;function i(l,d,g,u){u?l.postMessage(g,d,u):l.postMessage(g,d)}r.sendPostMessage=i;function n(){return new MessageChannel}r.getNewChannelMessage=n;function a(l,d){l.postMessage(d)}r.sendChannelMessage=a;function c(l){l.close()}r.closeChannelPort=c}(s||(s={})),s})(),zu=(()=>{class s{constructor(t){this.h=t}send(t,e="",i=rt.warn){let n={message:t,errorCode:e,level:i},a=pt.buildBaseMessage(X.ChildLogMessage,Qt.Child,this.h.projectId);a.content=n,pt.sendPostMessage(window.parent,"*",a)}}return s})(),$u=(()=>{class s{setContext(t,e){this.T=t,this.w=e}getVisitorService(){return this.T}getSessionService(){return this.w}}return s})();function qu(s){if(document!=null&&document.prerendering){document.addEventListener("prerenderingchange",s,{once:!0});return}s()}function F(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,a;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--)(a=s[c])&&(n=(i<3?a(n):i>3?a(r,t,n):a(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}function Gu(){let s=new MutationObserver(r=>{r.forEach(t=>{K(t.removedNodes,e=>{e instanceof HTMLElement&&e.tagName==="CS-NATIVE-FRAME-HOLDER"&&(ht.counters.pureWindowState.count("iframe-deletion"),st.warn(" deleted"),s.disconnect())})})});s.observe(document.body,{childList:!0})}function go(s){return typeof s!="function"?!1:s.toString().indexOf("[native code]")!==-1}function Wu(){(!go(MutationObserver)||!go(MutationObserver.prototype.observe))&&ht.counters.patchedNativeFunctions.count("MutationObserver")}function Yu(){try{window.CSPureWindow&&Gu(),Wu()}catch{}}var lt=(()=>{let s;return function(r){r.CURRENT_DOMAIN="CURRENT_DOMAIN";function t(l){let g=new csRegExp(`(^|;)[ ]*${l}=([^;]*)`).exec(document.cookie);return g?decodeURIComponent(g[2]):null}r.get=t;function e(l,d,g,u,y,E){let v=encodeURIComponent(`${d}`),b=g===r.CURRENT_DOMAIN?void 0:g,k=i(u),R=k?`;expires=${k.toUTCString()}`:"",w=";path=/",x=Tt(b)?`;domain=${b}`:"",A=`${l}=${v}${R}${w}${x}`;return Z(y)&&y!==Me.NotSet&&(A=`${A};SameSite=${y}`),Z(E)&&E===ae.Yes&&(A=`${A};Secure`),document.cookie=A,!0}r.set=e;function i(l){return Bt(l)?new csDate(N.now()+l):l}r.toExpireDate=i;function n(l,d){t(l)&&e(l,"",d,new csDate(0)),t(l)&&e(l,"",d,new csDate(0),Me.None,ae.Yes)}r.remove=n;function a(){return document.cookie.length>0}r.isCookiePresent=a;function c(l,d){let g="_cs_root-domain",u=t(g);if(u!==null&&u!=="1")return u;let y=csString.prototype.split.call(window.location.hostname,"."),E=csArray.prototype.pop.call(y);for(;y.length&&(u===null||u==="1");)E=csArray.prototype.join.call([csArray.prototype.pop.call(y),E],"."),e(g,E,E,void 0,l,d),u=t(g);return n(g,E),E}r.getRootDomain=c}(s||(s={})),s})(),Xu=(()=>{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})(),Me=(()=>{let s;return function(r){r.None="None",r.Lax="Lax",r.NotSet="X"}(s||(s={})),s})(),ae=(()=>{let s;return function(r){r[r.Yes=1]="Yes",r[r.No=0]="No"}(s||(s={})),s})(),Qi=(()=>{class s{constructor(t,e,i){this.h=t,this.A=e,this.ii=i,this.rc=!1,this.Wu=Me.NotSet,this.nc=ae.No}getSameSiteFlag(){return this.Wu}getSecureFlag(){return this.nc}getDomain(){return this.oc}getRootDomain(){return this.Yu}init(){if(this.h.cookielessTrackingEnabled)return;let t=this.uy(),e=this.dy();this.rc=this.py(t,e),this.rc?(this.Wu=t,this.nc=e):this.h.secureCookiesEnabled&&this.A.getUrlProtocol()==="https:"&&(this.nc=ae.Yes),this.Yu=this.fy(),this.oc=this.gy(this.Yu)}py(t,e){return Xu.browserIsSafariV12()?!1:(lt.set(s.COOKIE_TEST_FOR_SAME_SITE,"Test same site",s.CURRENT_DOMAIN,void 0,t,e),lt.get(s.COOKIE_TEST_FOR_SAME_SITE)?(lt.remove(s.COOKIE_TEST_FOR_SAME_SITE,s.CURRENT_DOMAIN),!0):!1)}uy(){return this.A.getUrlProtocol()==="http:"?Me.Lax:this.ii.isSameSiteNoneSecureNeeded()||this.h.crossDomainTracking?Me.None:Me.Lax}dy(){return this.A.getUrlProtocol()==="http:"?ae.No:this.h.secureCookiesEnabled||this.h.crossDomainTracking||this.ii.isSameSiteNoneSecureNeeded()?ae.Yes:ae.No}isSameSiteSupported(){return this.rc}set(t,e,i){let n=lt.toExpireDate(i);lt.set(t,e,this.oc,n,this.getSameSiteFlag(),this.getSecureFlag())}get(t){let i=new csRegExp(`(^|;)[ ]*${t}=([^;]*)`).exec(document.cookie);return i?decodeURIComponent(i[2]):null}delete(t,e){let i=e||this.oc;lt.remove(t,i)}fy(){let t=this.ii.isSameSiteNoneSecureNeeded()&&this.isSameSiteSupported(),e=t?Me.None:void 0,i=t?ae.Yes:void 0;return lt.getRootDomain(e,i)}gy(t){return this.h.allowSubdomains?t:lt.CURRENT_DOMAIN}}return s.CURRENT_DOMAIN="CURRENT_DOMAIN",s.COOKIE_TEST_FOR_SAME_SITE="_cs_same_site",s})(),ys="_cs_t",mo="1",Ku=(()=>{class s{constructor(t,e){this.mt=t,this.h=e,this.fo=!1,this.go=!1}init(){if(!this.h.cookielessTrackingEnabled&&this.mt.isTopWindowTracker()&&"cookie"in document){if(!this.mt.isInIframeContext()&<.isCookiePresent()){this.fo=!0,this.go=!1;return}if(lt.set(ys,mo,lt.CURRENT_DOMAIN),lt.get(ys)!==null){this.fo=!0,this.go=!1,lt.remove(ys,lt.CURRENT_DOMAIN);return}lt.set(ys,mo,lt.CURRENT_DOMAIN,void 0,Me.None,ae.Yes),lt.get(ys)!==null&&(this.fo=!0,this.go=!0,lt.remove(ys,lt.CURRENT_DOMAIN))}}areCookiesEnabled(){return this.fo}isSameSiteNoneSecureNeeded(){return this.go}}return s})();function Ju(){let s="CSSessionStorageTest";try{return sessionStorage.setItem(s,s),sessionStorage.getItem(s)!==s?!1:(sessionStorage.removeItem(s),!0)}catch{return!1}}var Qu=(()=>{class s{constructor(t,e){this.h=t,this.ii=e}canTrack(){return this.h.isProjectActive()&&this.my()&&this.Xu()&&this.yy()}canTrackInChild(){return this.h.isProjectActive()&&this.Ey()&&(this.Xu()||this.Sy())}yy(){return this.h.cookielessTrackingEnabled?Ju():this.ii.areCookiesEnabled()}Xu(){return fn(window.location.hostname,this.h.hostnames)}my(){return!this.Ku()&&this.vy()}Ey(){return!this.Ku()&&this._y()}Sy(){return window.location.protocol==="about:"&&window.location.hostname===""}Ku(){return"visibilityState"in document&&document.visibilityState==="prerender"}vy(){return this.Ju()&&this.wy()}_y(){return this.Ju()}wy(){try{return!!window.localStorage}catch{return!1}}Ju(){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})(),Zu=(()=>{class s{constructor(t,e){this.ac=!1,this.Qu=new Map,this.Zu=new Map,this.td=new Map,this.sd="CS_WORKER_SIGNATURE";let i=` const algorithm = ${t.algorithm}; const compressor = (${t.getCompressorSourceCode()})(); (()=>{"use strict";var e;!function(e){e.UNCOMPRESSED="0",e.GZIP="2"}(e||(e={}));let t={debug(...e){},warn(...e){},implementation(...e){},error(...e){},critical(...e){},isPerfLoggingActive:()=>!1};class s{constructor(e){var t;this.queryParams={},this.headers={},this.handleRecoveredRequests=e=>{for(const t of e){const{metadata:e,events:s}=t;this.send(s,e)}},this.endpoint=e.endpoint,this.compressionOpts=e.compressionOpts,this.recoveryStorage=e.recoveryStorage,this.mandatoryParameters=null!==(t=e.mandatoryParameters)&&void 0!==t?t:[],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(s,r){const a=r||{...this.queryParams},o=!("ct"in a),i="string"!=typeof s&&!this.isArrayBuffer(s);"ct"in a||(this.compressionOpts&&o?a.ct=this.compressionOpts.compressionType:a.ct=e.UNCOMPRESSED);const n=i?JSON.stringify(s):s,h=Object.keys(a).map(e=>\`\${encodeURIComponent(e)}=\${encodeURIComponent(a[e])}\`).join("&"),c=\`\${this.endpoint}?\${h}\`;!function(e,t){const s=e.length;for(let r=0;rnull==a[e])?this.compressionOpts&&o&&"string"==typeof n?this.compressionOpts.compressor(n,this.compressionOpts.compressionOutputType,e=>this.doSend(c,a,e)):this.doSend(c,a,n):t.warn(\`[\${this.worker?"WORKER":"MAIN"}] All mandatory parameters are not present on \${c}\`)}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,s){const r=new XMLHttpRequest,a=Object.keys(t).map(e=>\`\${encodeURIComponent(e)}=\${encodeURIComponent(t[e])}\`).join("&");r.open("POST",e),r.onload=()=>{if(this.recoveryStorage&&this.recoveryStorage.recover(this.handleRecoveredRequests),this.onLoadCallback){const e={params:t,responseText:r.responseText,status:r.status};this.onLoadCallback(e)}},r.onerror=()=>{this.recoveryStorage&&this.recoveryStorage.save({key:a,metadata:t,events:s}),this.onErrorCallback&&this.onErrorCallback({params:t})},this.timeout&&this.onTimeoutCallback&&(r.timeout=this.timeout,r.ontimeout=()=>{this.onTimeoutCallback()}),this.abortCurrentXhrCall=()=>r.abort(),Object.keys(this.headers).forEach(e=>{r.setRequestHeader(e,this.headers[e])}),r.send(s)}}class r{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 a{constructor(e){this.ramStorage={},this.byteSizeCounter=new r(e)}save({key:e,metadata:t,events:s}){this.byteSizeCounter.isThresholdReached()||(this.byteSizeCounter.addString(e),"string"==typeof s?this.byteSizeCounter.addString(s):this.byteSizeCounter.addArrayBuffer(s),this.byteSizeCounter.isThresholdReached()||(this.ramStorage[e]={metadata:t,events:s}))}recover(e){const t=[];this.getStorageKeys().forEach(e=>{const s=this.ramStorage[e];void 0!==s&&(delete s.metadata.datatype,t.push(s),this.removeItem(e))}),0!==t.length&&(e(t),this.byteSizeCounter.reset())}getStorageKeys(){return Object.keys(this.ramStorage)}removeItem(e){delete this.ramStorage[e]}}var o;!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"}(o||(o={}));class i{constructor(e,t,s){this.storageName=e,this.onOpenError=s,this.cacheState=o.NOT_STARTED,this.toBeSavedBuffer=[],this.recoveryInProgress=0,this.origin=self.origin,this.context="object"==typeof window?"":"worker-",this.byteSizeCounter=new r(t),this.init()}async init(){await this.openCache(),this.cacheState===o.READY?this.flushToBeSavedBuffer():this.onOpenError(this.toBeSavedBuffer)}flushToBeSavedBuffer(){this.toBeSavedBuffer.forEach(e=>{this.save(e)}),this.toBeSavedBuffer=[]}async save(e){try{if(this.cacheState===o.OPEN_IN_PROGRESS)return void this.toBeSavedBuffer.push(e);if(this.cacheState!==o.READY)return;if(this.byteSizeCounter.isThresholdReached())return;const{key:t,metadata:s,events:r}=e;if(this.byteSizeCounter.addString(t),"string"==typeof r?this.byteSizeCounter.addString(r):this.byteSizeCounter.addArrayBuffer(r),this.byteSizeCounter.isThresholdReached())return;await this.cache.put(\`\${this.origin}/\${t}\`,new Response(r,{headers:s}))}catch{}}async recover(e){(this.cache||(await this.openCache(),this.cacheState===o.READY))&&this.doRecover(e)}async openCache(){try{this.cacheState=o.OPEN_IN_PROGRESS,this.cache=await self.caches.open(\`\${this.context}\${this.storageName}\`),this.cacheState=o.READY}catch{this.cacheState=o.OPEN_FAILED}}async doRecover(e){try{if(this.recoveryInProgress++,this.recoveryInProgress>1)return;const t=await this.cache.keys();if(0===t.length)return;const s=(await this.cache.matchAll()).map(e=>{const t={};e.headers.forEach((e,s)=>{t[s]=e}),delete t["content-type"];const s=t.datatype;return delete t.datatype,"json"===s||"base64"===s?e.text().then(e=>({metadata:t,events:e})):e.arrayBuffer().then(e=>({metadata:t,events:e}))}),r=await Promise.all(s);await Promise.all(t.map(e=>this.cache.delete(e))),e(r),this.byteSizeCounter.reset()}catch{}finally{this.recoveryInProgress--}}}class n{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 i(e,n.MAX_SIZE,e=>{this.setRamStorageStrategy(e)})}setRamStorageStrategy(e){this.storageStrategy=new a(n.MAX_SIZE),e&&e.forEach(e=>{this.storageStrategy.save(e)})}}n.MAX_SIZE=16777216,function(){const e="CS_WORKER_SIGNATURE",t=new Map,r=new n("csPersisted");function a(a){var o;if((o=a)&&o.WORKER_SIGNATURE===e)switch(a.type){case"CreatePostRequest":{const{endpoint:o,compressionOutputType:i,useRetry:n,mandatoryParameters:h}=a,c={endpoint:o,mandatoryParameters:h,worker:!0};i&&(c.compressionOpts={compressor,compressionOutputType:i,compressionType:algorithm}),n&&(c.recoveryStorage=r);const d=new s(c);t.set(o,d),d.onLoad(t=>{const s={type:"onLoad",endpoint:o,response:t,WORKER_SIGNATURE:e};self.postMessage(s)}),d.onError(t=>{const s={type:"onError",endpoint:o,response:t,WORKER_SIGNATURE:e};self.postMessage(s)})}break;case"SetQueryParams":{const{endpoint:e,queryParams:s}=a,r=t.get(e);r&&r.setQueryParams(s)}break;case"RemoveQueryParams":{const{endpoint:e,queryParams:s}=a,r=t.get(e);r&&r.removeQueryParams(s)}break;case"Send":{const{endpoint:e,payload:s,queryParams:r}=a,o=t.get(e);o&&o.send(s,r)}break;case"Abort":{const{endpoint:e}=a,s=t.get(e);s&&s.abort()}break;case"SetHeader":{const{endpoint:e,headerName:s,headerValue:r}=a,o=t.get(e);o&&o.setRequestHeader(s,r)}break;case"SetTimeout":{const{endpoint:s,timeout:r}=a,o=t.get(s);o&&o.onTimeout(()=>{const t={type:"onTimeout",endpoint:s,WORKER_SIGNATURE:e};self.postMessage(t)},r)}break;default:throw new Error(JSON.stringify(a))}}self.addEventListener("message",function(e){e.data.getReader?async function(e,t){const s=e.getReader();for(;;){const{done:e,value:r}=await s.read();if(e)break;t(r)}}(e.data,a):a(e.data)})}()})();`;try{this.us=this.Ay(e||i),this.ac=!0,s.isTransferableStreamSupported()&&(this.rd=new ReadableStream({start:n=>{this.cc=n},cancel:()=>{this.cc=null}}),this.us.postMessage(this.rd,[this.rd]))}catch(n){n.name==="SecurityError"&&ht.counters.cspErrors.count("network-worker"),this.ac=!1}}postMessage(t){t.WORKER_SIGNATURE=this.sd,this.cc?this.cc.enqueue(t):this.us.postMessage(t)}Ay(t){let e=window.csURL||window.webkitURL,i=window.Blob,n=window.Worker,a=new i([t],{type:"application/javascript"}),c=e.createObjectURL(a);j.whiteListFilename(c);let l=new n(c);return l.onmessage=d=>{let{type:g,endpoint:u,WORKER_SIGNATURE:y}=d.data;if(y===this.sd){if(g==="onLoad"){let{response:E}=d.data,v=this.Qu.get(u);v&&v(E)}else if(g==="onError"){let{response:E}=d.data,v=this.Zu.get(u);v&&v(E)}else if(g==="onTimeout"){let E=this.td.get(u);E&&E()}}},l}registerOnLoadCallback(t,e){this.Qu.set(t,e)}registerOnErrorCallback(t,e){this.Zu.set(t,e)}registerOnTimeoutCallback(t,e){this.td.set(t,e)}isSupported(){return this.ac}static isTransferableStreamSupported(){try{let t=new ReadableStream;return structuredClone(t,{transfer:[t]}),!0}catch{return!1}}}return s})(),td=(()=>{class s{constructor(t){var e;this.qt={},this.Gt=t.endpoint,this.ge=t.networkWorker,this.by=t.compressionOutputType,this.Ty=t.useRetry,this.ge.postMessage({type:"CreatePostRequest",endpoint:this.Gt,compressionOutputType:this.by,useRetry:this.Ty,mandatoryParameters:(e=t.mandatoryParameters)!==null&&e!==void 0?e:[]})}setQueryParams(t){this.ge.postMessage({type:"SetQueryParams",endpoint:this.Gt,queryParams:t}),csArray.prototype.forEach.call(Object.keys(t),e=>{this.qt[e]=t[e]})}getQueryParams(){return this.qt}removeQueryParams(t){this.ge.postMessage({type:"RemoveQueryParams",endpoint:this.Gt,queryParams:t}),t&&csArray.prototype.forEach.call(t,e=>{delete this.qt[e]})}send(t,e){this.ge.postMessage({type:"Send",endpoint:this.Gt,payload:t,queryParams:e})}abort(){this.ge.postMessage({type:"Abort",endpoint:this.Gt})}onLoad(t){this.ge.registerOnLoadCallback(this.Gt,t)}onError(t){this.ge.registerOnErrorCallback(this.Gt,t)}setRequestHeader(t,e){this.ge.postMessage({type:"SetHeader",endpoint:this.Gt,headerName:t,headerValue:e})}onTimeout(t,e){this.ge.registerOnTimeoutCallback(this.Gt,t),this.ge.postMessage({type:"SetTimeout",endpoint:this.Gt,timeout:e})}}return s})(),Zi=(()=>{let s;return function(r){r.UNCOMPRESSED="0",r.GZIP="2"}(s||(s={})),s})(),Ba=(()=>{class s{constructor(t){this.onError=t}}return s})(),ed=(()=>{class s{constructor(t){var e;this.qt={},this.lc={},this.nd=i=>{for(let n of i){let{metadata:a,events:c}=n;this.send(c,a)}},this.Gt=t.endpoint,this.Or=t.compressionOpts,this.Wt=t.recoveryStorage,this.mandatoryParameters=(e=t.mandatoryParameters)!==null&&e!==void 0?e:[],this.worker=!!t.worker,this.Wt&&this.Wt.recover(this.nd)}setQueryParams(t){Object.keys(t).forEach(e=>{this.qt[e]=t[e]})}removeQueryParams(t){t?t.forEach(e=>{delete this.qt[e]}):this.qt={}}send(t,e){let i=e||{...this.qt},n=!("ct"in i),a=typeof t!="string"&&!this.Ry(t);"ct"in i||(!this.Or||!n?i.ct=Zi.UNCOMPRESSED:i.ct=this.Or.compressionType);let c=a?JSON.stringify(t):t,l=Object.keys(i).map(g=>`${encodeURIComponent(g)}=${encodeURIComponent(i[g])}`).join("&"),d=`${this.Gt}?${l}`;if(nu(this.mandatoryParameters,g=>i[g]==null)){st.warn(`[${this.worker?"WORKER":"MAIN"}] All mandatory parameters are not present on ${d}`);return}this.Or&&n&&typeof c=="string"?this.Or.compressor(c,this.Or.compressionOutputType,g=>this.od(d,i,g)):this.od(d,i,c)}onLoad(t){this.Ui=t}onError(t){this.Nr=t}onTimeout(t,e){this.ni=t,this.Mr=e}abort(){this.ad&&this.ad()}setRequestHeader(t,e){this.lc[t]=e}getQueryParams(){return this.qt}Ry(t){return t&&t.byteLength!==void 0}od(t,e,i){let n=new XMLHttpRequest,a=Object.keys(e).map(c=>`${encodeURIComponent(c)}=${encodeURIComponent(e[c])}`).join("&");n.open("POST",t),n.onload=()=>{if(this.Wt&&this.Wt.recover(this.nd),this.Ui){let c={params:e,responseText:n.responseText,status:n.status};this.Ui(c)}},n.onerror=()=>{this.Wt&&this.Wt.save({key:a,metadata:e,events:i}),this.Nr&&this.Nr({params:e})},this.Mr&&this.ni&&(n.timeout=this.Mr,n.ontimeout=()=>{this.ni()}),this.ad=()=>n.abort(),Object.keys(this.lc).forEach(c=>{n.setRequestHeader(c,this.lc[c])}),n.send(i)}}return s})(),Fa=(()=>{class s{constructor(t){this.hc=t,this.ge=new Zu(this.hc)}create(t,e,i,n,a=[]){if(this.ge.isSupported()&&e)return new td({networkWorker:this.ge,endpoint:t,compressionOutputType:i,useRetry:!!n,mandatoryParameters:a});{let c=i?{compressor:this.hc.compress,compressionOutputType:i,compressionType:this.hc.algorithm}:void 0;return new ed({endpoint:t,compressionOpts:c,recoveryStorage:n})}}}return s})(),sd=(()=>{class s{constructor(t,e,i,n,a){this.T=t,this.w=e,this.Ge=i,this.vt=n,this.h=a}get(){return{exclusion:this.Ge.getAppliedTrackingDraw(),visitor:this.T.getVisitor(),session:this.w.getSession(),cvars:this.vt.getCustomVariablesSession()}}apply(t){t&&(t.exclusion?this.exclude():this.include(t))}exclude(){this.Ge.exclude(this.h),this.T.removeVisitor(),this.w.removeSession(),this.vt.removeCustomVariablesSession()}include(t){this.Ge.removeExclusion(),this.T.setVisitor(t.visitor),t.session?this.w.setSession(t.session):this.w.removeSession(),t.cvars?this.vt.setCustomVariableSession(t.cvars):this.vt.removeCustomVariablesSession()}}return s})(),za=".";var $a="x";function id(s){let[r,t,e,i,n,a,c,l,d]=csString.prototype.split.call(s,za);return{id:r,creationTimestamp:Number(t),visitsCount:Number(e),hitTimestamp:Number(i),lastVisitTimestamp:Number(n),appliedTrackingDraw:Number(a),expires:Number(c),allowSubdomains:l===void 0?void 0:!!Number(l),identityPrint:d===void 0||d===$a?null:d}}function rd(s){var r;return csArray.prototype.join.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:$a],za)}var nd=(()=>{let s;return function(r){r.ETR_OFF="0",r.ETR_ON="1"}(s||(s={})),s})();var od=(()=>{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})(),qa=/^(\d+\.[01356789TBWX](\.[01UNWG])?(\.[39])?)(\.\d+)?$/,Ga=".";function ad(s){return csArray.prototype.join.call([s.pageNumber,s.collectState,s.etrState,s.etrStatus],Ga)}function cd(s){let r=qr(s);return r!==null?Wa(r):null}function Wa(s){var r,t;let[e,i,n,a]=csString.prototype.split.call(s,Ga);return{collectState:i,etrState:(r=n)!==null&&r!==void 0?r:nd.ETR_OFF,etrStatus:(t=a)!==null&&t!==void 0?t:od.ETR_NOT_SAVED_SESSION,pageNumber:parseInt(e,10)}}function Ya(s){return qa.test(s)}function qr(s){if(!s)return null;let r=(()=>{var t;return(t=csString.prototype.match.call(s,qa))===null||t===void 0?void 0:t[1]})();return r!=null?r:null}var ne="_cs_ex",yo=2592e6,ld=/^[0-9]+$/,hd=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Yt=i}onCookieToSet(t){this.oi=t}onCookieToRemove(t){this.ai=t}get(){return this.h.cookielessTrackingEnabled?Number(this.Yt.getItem(ne)):Number(this.M.get(ne))}set(t){var e;this.h.cookielessTrackingEnabled?this.Yt.setItem(ne,t):(this.M.set(ne,t,yo),(e=this.oi)===null||e===void 0||e.call(this,ne,t,yo))}remove(){var t;this.h.cookielessTrackingEnabled?this.Yt.removeItem(ne):(this.M.delete(ne),(t=this.ai)===null||t===void 0||t.call(this,ne))}static isValidExclusionString(t){return ld.test(t)}}return s})(),Te="_cs_cvars",ud=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Yt=i}onCookieToSet(t){this.oi=t}onCookieToRemove(t){this.ai=t}get(){return this.h.cookielessTrackingEnabled?this.Yt.getItem(Te):this.M.get(Te)}set(t){var e;this.h.cookielessTrackingEnabled?this.Yt.setItem(Te,t):(this.M.set(Te,t),(e=this.oi)===null||e===void 0||e.call(this,Te,t))}remove(){var t;this.h.cookielessTrackingEnabled?this.Yt.removeItem(Te):(this.M.delete(Te),(t=this.ai)===null||t===void 0||t.call(this,Te))}static isValidCustomVarString(t){return typeof t=="string"}}return s})();var dd="spki",Eo="RSA-OAEP",pd="SHA-256",So="AES-CTR",fd="SHA-1",vo=190,Xs=(()=>{let s;return function(r){var t;let e=!1,i=null,n,a=typeof TextEncoder!="undefined"?new TextEncoder:null,c;r.crypto=(t=bt.crypto)===null||t===void 0?void 0:t.subtle,r.MAX_DIGEST_INPUT_SIZE=100;function l(){return!e}r.isKeyImported=l;function d(){return i}r.getCryptoKey=d;function g(){var A,M;return((M=(A=bt.self.crypto)===null||A===void 0?void 0:A.subtle)===null||M===void 0?void 0:M.encrypt)!=null&&bt.self.CryptoKey!=null}r.isSupported=g;async function u(A){n=r.crypto.importKey(dd,Da(A),{name:Eo,hash:pd},!1,["encrypt"]).catch(()=>(e=!0,null)),i=await n,n=void 0,i||st.warn(`Fail to import public key '${A}'`)}r.importKey=u;async function y(A){if(!g()||e)return null;await n;let M=dn(A);M.byteLength>vo&&(M=M.slice(0,vo));try{let U=await r.crypto.encrypt({name:Eo},i,M);return ro(U)}catch{return null}}r.asymmetricEncrypt=y;async function E(A,M){if(!g()||e)return null;let U={counter:M.initializationVector,name:So,length:64},J=a.encode(A);try{let ct=await r.crypto.encrypt(U,M.cryptoKey,J);return ro(ct)}catch{return null}}r.symmetricEncrypt=E;async function v(A){let M=await b(A);if(!M)throw new Error("Export secret failed");let U=await y(M);if(!U)throw new Error("Encrypt secret failed");return U}r.encryptSecret=v;async function b(A){var M;if(!g())return null;try{return(M=(await r.crypto.exportKey("jwk",A)).k)!==null&&M!==void 0?M:null}catch{return null}}async function k(){if(!g()||e)return null;try{return{cryptoKey:await r.crypto.generateKey({name:So,length:128},!0,["encrypt","decrypt"]),initializationVector:bt.crypto.getRandomValues(new Uint8Array(16))}}catch{return null}}r.generateSymmetricKey=k;function R(A){c=A}r.setDigestSalt=R;async function w(A){A=csString.prototype.toLocaleLowerCase.call(csString.prototype.trim.call(A)),c&&(A=`${A}:${c}`);let M=a.encode(A);try{let U=await r.crypto.digest(fd,M);return Wi(U)}catch{return null}}r.digest=w;function x(){return bt.crypto.subtle.generateKey({name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},!0,["encrypt","decrypt"])}r.generateKeyPair=x}(s||(s={})),s})();function gd(){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=yd(r);return t===""||(r=Ed(r,t),r.length===0)?"":Xa(r[0])}function md(s){return csString.prototype.indexOf.call(s,"@")!==-1}function yd(s){return s.length>0?Xa(s[0]):""}function Ed(s,r){return csArray.prototype.filter.call(s,t=>csString.prototype.indexOf.call(t,r)===-1)}function Xa(s){let r="",t;md(s)?t=new csRegExp("@(.+):(\\d+):(\\d+)$"):t=new csRegExp("\\((.+):(\\d+):(\\d+)\\)");let e=t.exec(s);return e&&(r=e[1]),r}var Sd=s=>s;function vd(s,r,t,e){let i=csSymbol.for("propertyProxy");Object.defineProperty(s,r,{get(){var n;if(this[i])return this[i];let a=(n=t.get)===null||n===void 0?void 0:n.apply(this);return typeof a!="object"?a:(typeof Proxy=="function"?this[i]=new Proxy(a,{get(c,l){let d=Reflect.get(c,l);return typeof d=="function"?d.bind(c):d},set:(c,l,d)=>{let g=c[l],u=Reflect.set(c,l,d);return e.forEach(y=>y(this,d,g,"subproperty")),u}}):this[i]=a,this[i])},set(){var n;let a=arguments,c=this[r],l=(n=t.set)===null||n===void 0?void 0:n.apply(this,a);delete this[i];try{e.forEach(d=>d(this,a[0],c,"property"))}catch(d){st.error(d)}return l}})}function _d(s,r,t){let e=wd(s,r);if(!e)return null;let i=(n,a,c,l)=>t(n,a,c,l);return{activate:()=>{e.add(i)},deactivate:()=>{e.delete(i)}}}function wd(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,vd(s,r,i,e),e):(st.warn(`Cannot intercept non configurable property '${csString(r)}' of object '${s}'`),null):(st.warn(`Cannot intercept property '${csString(r)}' because it does not exist directly on the target object '${s}'`),null)}function Ad(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 st.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 a=function(){let c=arguments,l=[];try{l=csArray.prototype.map.call(Ns(i),g=>g(c))}catch(g){st.error(g)}let d=n.apply(this,c);try{for(let g=0;g{let l=e(c),d=i!=null&&i.withCallerName?{callerName:gd()}:{};return g=>t({...g,...d,args:l})};return{activate:()=>{n.add(a)},deactivate:()=>{n.delete(a)}}}function bd(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 a=arguments,c=this[r],l=(n=i.set)===null||n===void 0?void 0:n.apply(this,a);try{e.forEach(d=>d(this,a[0],c,"property"))}catch(d){st.error(d)}return l}}),e):(st.warn(`Cannot intercept read only property '${csString(r)}' of object '${s}'`),null):e}function Gr(s,r,t){let e=bd(s,r);if(!e)return null;let i=(n,a,c)=>t(n,a,c,"property");return{activate:()=>{e.add(i)},deactivate:()=>{e.delete(i)}}}function Td(s,r){s.prototype=r.prototype,Object.defineProperty(s,"toString",{value:()=>r.toString()})}var Ms=(()=>{var s;class r{static Oy(e){this.Os.forEach(i=>{e(i,"initial")})}static kr(e){if(this.P||(this.P=new csMutationObserver(i=>{for(let n of i)n.target.isConnected&&K(n.addedNodes,this.Ny),K(n.removedNodes,this.My)})),csArray.prototype.push.call(this.Ee,e),!this.B){this.B=!0,this.P.observe(document,this.Dr);for(let i of os.getAllShadowHosts(document)){let n=csElementshadowRoot.apply(i);this.Os.add(n),this.P.observe(n,this.Dr)}this.yc||(this.yc=is({target:Element.prototype,methodName:"attachShadow",hook:i=>i.result.isConnected&&this.ud(i.result)})),this.yc.activate()}this.Oy(e)}static Lr(e){var i,n;this.Ee=csArray.prototype.filter.call(this.Ee,a=>a!==e),this.Ee.length===0&&(this.Ee=[],this.B=!1,(i=this.P)===null||i===void 0||i.disconnect(),(n=this.yc)===null||n===void 0||n.deactivate(),this.Os.clear())}constructor(e){this.S=e,this.S=ze("DocumentShadowRootObserver:callback",(i,n)=>e(i,n))}get shadowRoots(){return Ns(s.Os)}takeRecords(){var e,i;return(i=(e=s.P)===null||e===void 0?void 0:e.takeRecords())!==null&&i!==void 0?i:[]}observe(){os.isSupported()&&s.kr(this.S)}disconnect(){os.isSupported()&&s.Lr(this.S)}}return s=r,r.Ee=[],r.Os=new Set,r.B=!1,r.Dr={childList:!0,subtree:!0},r.ud=t=>{s.Os.has(t)||(s.P.observe(t,s.Dr),s.Os.add(t),K(s.Ee,e=>e(t,"added")))},r.Ny=t=>{Wt(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(s.ud)},r.My=t=>{t.isConnected||Wt(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(e=>{s.Os.has(e)&&(s.Os.delete(e),K(s.Ee,i=>i(e,"removed")))})},ot([L()],r.prototype,"observe",null),ot([L()],r.prototype,"disconnect",null),r})(),Ka=!0;function Pt(s,r=Ka){s.boundElement.addEventListener(s.type,s.listener,r)}function Ot(s,r=Ka){s.boundElement.removeEventListener(s.type,s.listener,r)}function xt(s,r=0){let t=Math.pow(10,r);return Math.round(s*t)/t}var _o=!1;function vt(){return(s,r,t)=>{if(t){let e=t.value;t.value=function(i,n){(i==null?void 0:i.isTrusted)===!1&&_o||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&&_o||e.call(this,i,n)}}}}function tr(s,r){typeof r=="number"&&(r={wait:r});let t=r.wait,e=r.mode||"leading",i,n=[],a=null,c=0,l,d=()=>{c=N.now(),a=null,l=s.apply(i,n),n=[],i=null},g=function(...u){if(i=this!==null&&this!==void 0?this:window,n=[...u],e==="trailing")return a||(a=window.csSetTimeout(d,t)),l;let y=N.now(),E=t-(y-c);return E<=0||E>t?(c=y,l=s.apply(i,n),a?(window.csClearTimeout(a),a=null):n=[]):a||(a=window.csSetTimeout(d,E)),l};return g.cancel=()=>{a&&(window.csClearTimeout(a),c=0,a=null,n=[])},g.flushPending=()=>{a&&(window.csClearTimeout(a),d())},g}var mn=s=>(r,t,e)=>{e.value=tr(e.value,s)};function Rd(s){return s.nodeType===1}function gt(s){let r=csEventtarget.apply(s);return r&&Rd(r)&&csElementshadowRoot.apply(r)&&s.composedPath?s.__csOriginalTarget||s.composedPath()[0]:r}function Cd(s){return s.composedPath&&Object.defineProperty(s,"__csOriginalTarget",{value:s.composedPath()[0],writable:!1,enumerable:!1}),s}function Id(){return(s,r,t)=>{let e=t.value;return e&&(t.value=function(i){if(gt(i)===csEventtarget.apply(i))return e.call(this,i)}),t}}function Pd(s){if(!$(s))return null;let t=/iP(ad|hone|od).+Version\/(\d+)\..*Safari/i.exec(s);return t?Number(t[2]):null}var Od=!!window.chrome,wo="data-cs-scroll-container";function Nd(s){try{if(Tt(csEventtarget.apply(s)))return!0}catch{}return!1}var _s=(()=>{let s;return function(r){function t(i){return!!(Tt(i)&&Nd(i)&&li(csEventtarget.apply(i))&&csEventtarget.apply(i).getAttribute(wo)!==null)}r.isEventOnScrollContainer=t;function e(){return window.csquerySelector[document.nodeType].call(document,`[${wo}]`)}r.getScrollContainer=e}(s||(s={})),s})();function Md(){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 Ui=Md(),G=(()=>{let s;return function(r){function t(l,d,g){var u;l instanceof Node?Ui.set(l,d,g):((u=l.props)!==null&&u!==void 0||(l.props={}),l.props[d]=g)}r.setProperty=t;function e(l,d){var g;return l instanceof Node?Ui.get(l,d):(g=l.props)===null||g===void 0?void 0:g[d]}r.getProperty=e;function i(l){return l instanceof Node?Ui.getStore(l):l.props}r.getProperties=i;function n(l,d){let g=null;return a(l,(u,y,E)=>d(u)&&(g=u)&&!!E()),g}r.findDescendant=n;function a(l,d){c(l,void 0,d)}r.traverse=a;function c(l,d,g){let u=!1;if(g(l,d,()=>u=!0),u)return;let E=l.shadowRoot;E&&c(E,l,g);let v=l.children;if(v!=null&&v.length){for(let b of v)if(b&&(c(b,l,g),u))break}}}(s||(s={})),s})(),Ja=1,Ks=csSymbol("nodeIdentifier");function kd(s=!1){s&&(Ja=1),Ks=csSymbol("nodeIdentifier")}function Dd(s){return G.getProperty(s,Ks)}function et(s){let r=G.getProperty(s,Ks);return r!=null?r:(G.setProperty(s,Ks,Ja++),G.getProperty(s,Ks))}var wr;function Js(s){if(wr||(wr=document.createElement("div")),!(!!s&&$(s)))return st.warn(`isValidSelector: invalid selector provided '${s}'`),!1;try{return Yt.call(wr,s),!0}catch{return st.warn(`isValidSelector: invalid selector provided '${s}'`),!1}}function Wr(s,r){if(Zn)return Zn.call(s,r);let t=s;do{if(Yt.call(t,r))return t;t=t==null?void 0:t.parentElement}while(t!==null&&t.nodeType===1);return null}var O=(()=>{let s;return function(r){let t;(function(R){R[R.NotMasked=0]="NotMasked",R[R.Parent=1]="Parent",R[R.Child=2]="Child"})(t=r.MaskedElementState||(r.MaskedElementState={})),r.maskedProp="masked",r.maskedAttributeProp="maskedAttribute";function e(R){return as(R)&&"Attributes"in R&&"PIISelectors"in R?R.Attributes instanceof Array&&R.PIISelectors instanceof Array:!1}r.isSelectorUserInput=e;function i(R){if(!as(R)||R===null)throw new Error("Command misuse: setPIISelectors");return"Attributes"in R||(R.Attributes=[]),"PIISelectors"in R||(R.PIISelectors=[]),R}r.sanitizeSelectorUserInput=i;function n(R){var w;return(w=G.getProperty(R,r.maskedProp))!==null&&w!==void 0?w:{state:t.NotMasked}}r.getMaskedElementDetails=n;function a(R){var w;return(w=G.getProperty(R,r.maskedAttributeProp))!==null&&w!==void 0?w:{attributes:[]}}r.getMaskedAttributeDetails=a;function c(R){let w=G.getProperty(R,r.maskedProp);return(w==null?void 0:w.state)===t.Parent}r.isMaskedElement=c;function l(R){let w=G.getProperty(R,r.maskedProp);return(w==null?void 0:w.state)===t.Child}r.isMaskedElementChild=l;function d(R,w){let x=G.getProperty(R,r.maskedAttributeProp);return((x==null?void 0:x.attributes)==null?void 0:csArray.prototype.indexOf.call(x==null?void 0:x.attributes,w))>-1}r.isMaskedAttribute=d;function g(R,w){G.setProperty(R,r.maskedProp,w)}r.setMaskedElementProperty=g;function u(R){G.setProperty(R,r.maskedProp,void 0)}r.unsetMaskedElementProperty=u;function y(R,w){G.setProperty(R,r.maskedAttributeProp,w)}r.setMaskedAttributeProperty=y;function E(R,w){let x=csArray.prototype.filter.call(R.PIISelectors,U=>Js(U));w.elementSelector.length>0&&csArray.prototype.push.call(x,...csString.prototype.split.call(w.elementSelector,","));let A=k([...x]),M={elementSelector:csArray.prototype.join.call(A,","),attrSelector:w.attrSelector,attrSelectors:w.attrSelectors};return csArray.prototype.forEach.call(R.Attributes,U=>{U!=null&&U.attrName&&(U!=null&&U.selector)&&Js(U.selector)&&!v(M.attrSelectors,U)&&csArray.prototype.push.call(M.attrSelectors,U)}),M.attrSelector=b(M.attrSelectors),M}r.getComputedSelectorSettings=E;function v(R,w){return csArray.prototype.some.call(R,x=>x.selector===w.selector&&x.attrName===w.attrName)}function b(R){let w="";return csArray.prototype.forEach.call(R,x=>{let A=csString.prototype.split.call(x.selector,",");csArray.prototype.forEach.call(A,M=>{Js(M)&&(w&&(w+=","),w+=M)})}),w}function k(R){if(R.length<=1)return R;let w=[];for(let x of R){let A=csString.prototype.split.call(x,",");for(let M of A)csArray.prototype.indexOf.call(w,M)===-1&&csArray.prototype.push.call(w,M)}return w}}(s||(s={})),s})(),D=(()=>{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.DEBUG=999]="DEBUG"}(s||(s={})),s})();var zs=(()=>{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})(),ws=(()=>{let s;return function(r){r[r.COPY=0]="COPY",r[r.CUT=1]="CUT",r[r.PASTE=2]="PASTE"}(s||(s={})),s})(),q=(()=>{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})(),Ld=33,xd=(()=>{class s{constructor(){this.eventType="user",this.Ec=[],this.ky=[{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.Dy=[{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.mo=[{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.Sc=[{type:"scroll",listener:e=>this.scrollListener(csEventtarget.apply(e))}];let t=Pd(window.navigator.userAgent);(t===null||t&&t>=16)&&csArray.prototype.push.call(this.Sc,{type:"mouseover",listener:e=>this.mouseOverListener(e)}),this.ie=new Ms((e,i)=>{switch(i){case"initial":case"added":this.ci(e);break;case"removed":this.li(e);break}})}init(){this.Ly(),this.xy(),this.vc()}onEvent(t){csArray.prototype.push.call(this.Ec,t)}Xt(t,e=!1){csArray.prototype.forEach.call(this.Ec,i=>i(t,e))}start(){this._c(),this.ci(document),this.ie.observe()}stop(){this.li(document),this.ie.disconnect(),this.Ec=[]}xy(){this.Vy()&&csArray.prototype.push.call(this.mo,...this.ky)}Ly(){this.Uy()&&csArray.prototype.push.call(this.mo,...this.Dy)}ci(t){zi(t)?csArray.prototype.forEach.call(this.mo,e=>Pt(e)):csArray.prototype.forEach.call(this.Sc,e=>{let i={type:e.type,listener:e.listener,boundElement:t};Pt(i)})}li(t){zi(t)?csArray.prototype.forEach.call(this.mo,e=>Ot(e)):csArray.prototype.forEach.call(this.Sc,e=>{let i={type:e.type,listener:e.listener,boundElement:t};Ot(i)})}Vy(){return"PointerEvent"in window&&typeof window.PointerEvent=="function"}Uy(){return"TouchEvent"in window&&typeof window.TouchEvent=="function"}_c(){this.jy()}jy(){let t=_s.getScrollContainer()||document,e=et(t),i=this.dd(t);if(i.top!==0||i.left!==0){let n={type:D.SCROLL,args:[e,i.left,i.top],date:N.now()};this.Xt(n,!0)}}dd(t){return t===document?{top:window.pageYOffset,left:window.pageXOffset}:{top:t.scrollTop,left:t.scrollLeft}}scrollListener(t){if(O.isMaskedElement(t)||O.isMaskedElementChild(t))return;let e=et(t),i=this.dd(t),n={type:D.SCROLL,args:[e,i.left,i.top],date:N.now()};this.Xt(n)}mouseOverListener(t){if(O.isMaskedElementChild(t.target))return;let e=et(t.target),i={type:D.MOUSE_OVER,args:[e],date:N.now()};this.Xt(i)}clickListener(t){let e=gt(t);if(O.isMaskedElementChild(e))return;let i=et(e),n={type:D.CLICK,args:[i],date:N.now()};this.Xt(n)}keyUpListener(t){let e=gt(t);if(O.isMaskedElementChild(e))return;let i=et(e),n=this.D[t.key];if(n===void 0)return;let a={type:D.KEY_UP,args:[i,n],date:N.now()};this.Xt(a)}keyDownListener(t){let e=gt(t);if(O.isMaskedElementChild(e))return;let i=et(e),n=this.D[t.key];if(n===void 0)return;let a={type:D.KEY_DOWN,args:[i,n],date:N.now()};this.Xt(a)}copyListener(t){let e=gt(t);if(O.isMaskedElementChild(e))return;let i=et(e),n={type:D.CLIPBOARD_COMMAND,args:[i,ws.COPY],date:N.now()};this.Xt(n)}cutListener(t){let e=gt(t);if(O.isMaskedElementChild(e))return;let i=et(e),n={type:D.CLIPBOARD_COMMAND,args:[i,ws.CUT],date:N.now()};this.Xt(n)}pasteListener(t){let e=gt(t);if(O.isMaskedElementChild(e))return;let i=et(e),n={type:D.CLIPBOARD_COMMAND,args:[i,ws.PASTE],date:N.now()};this.Xt(n)}pointerUpListener(t){let e=gt(t);if(O.isMaskedElementChild(e))return;let i=et(e),n={type:D.POINTER_UP,args:[t.pointerId,t.pointerType,xt(t.clientX,1),xt(t.clientY,1),i,t.button],date:N.now()};this.Xt(n)}pointerMoveListener(t){let e={type:D.POINTER_MOVE,args:[t.pointerId,t.pointerType,xt(t.clientX,1),xt(t.clientY,1)],date:N.now()};this.Xt(e)}pointerDownListener(t){let e=gt(t);if(O.isMaskedElementChild(e))return;let i=et(e),n={type:D.POINTER_DOWN,args:[t.pointerId,t.pointerType,xt(t.clientX,1),xt(t.clientY,1),i,t.button,{pageX:xt(t.pageX,1),pageY:xt(t.pageY,1)}],date:N.now()};this.Xt(n)}touchStartListener(t){if(!t.changedTouches)return;let{changedTouches:e}=t;for(let i=0;i{class s{constructor(t){this.Hy=t,this.yo=0}addString(t){this.yo+=t.length*Vd}addArrayBuffer(t){this.yo+=t.byteLength}isThresholdReached(){return this.yo>this.Hy}reset(){this.yo=0}}return s})(),Ud=2*1e3*1024,jd=200,Hd=(()=>{class s{constructor(t=[],e=Ud){this.Ot=t,this.wc=new yn(e)}addEvent(t){this.wc.addString(Rs(t)),csArray.prototype.push.call(this.Ot,t)}addEventByTimestamp(t){let e=0;for(;e=t.date);e+=1);csArray.prototype.splice.call(this.Ot,e,0,t)}eventsCount(){return this.Ot.length}clearEvents(){this.wc.reset(),this.Ot=[]}isFull(){return this.eventsCount()>=jd}isThresholdReached(){return this.wc.isThresholdReached()}getEvents(){return this.Ot}extractEvents(...t){let e=[],i=[];return csArray.prototype.forEach.call(this.Ot,n=>{csArray.prototype.indexOf.call(t,n.type)!==-1?csArray.prototype.push.call(e,n):csArray.prototype.push.call(i,n)}),this.Ot=i,e}stringifyEvents(){return Rs(this.Ot)}hC(t){t.type===D.INITIAL_DOM&&(window.CSDomSerialized=window.CSDomSerialized?window.CSDomSerialized+1:1)}}return F([Nt("RecordingBatch.addEvent")],s.prototype,"addEvent",null),s})(),Bd=(()=>{class s{constructor(){this.Eo=1}getCurrentIndex(){return this.Eo}increment(){this.Eo+=1}reset(){this.Eo=1}getRequestParameters(){return{ri:`${this.Eo}`}}}return s})(),Qa=(()=>{class s{emit(t,e,i,n=document){let c=`${i!==void 0?`${i}`:`${s.By}`}${t}`,l=s.createEvent(c,{detail:e});l!==null&&n.dispatchEvent(l)}static createEvent(t,e={}){if(typeof CustomEvent=="function")return new CustomEvent(t,e);let i=this.Fy();if(i===null)return null;let{bubbles:n=!1,cancelable:a=!1,detail:c}=e;return i.initCustomEvent(t,n,a,c),i}static Fy(){try{return document.createEvent("CustomEvent")}catch{return null}}}return s.By="cs.tracking.",s})(),Mt=(()=>{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})(),ji="null",ke=null,Za=[],Fd=()=>{var s;return ci||!!(!((s=document.body)===null||s===void 0)&&s.getAttribute("data-cs-tag-extension"))};!ci&&Fd()&&(window._uxa?_uxa.push(["debugEvents",!0]):window._uxa=[["debugEvents",!0]],ke=new BroadcastChannel("cs-tag"),document.addEventListener("cs.tracking.recordingEvent",s=>{Yr({type:"UXA_EVENT",event:s.detail})}),ke.addEventListener("message",s=>{if(s.data.type==="CONNECT"){if(s.data.sessionId===ji)return;ji=s.data.sessionId,csArray.prototype.forEach.call(Za,r=>r()),ke==null||ke.postMessage({type:"CONNECTED",sessionId:ji})}}));function zd(s){ci||(ji!==null&&csSetTimeout(s),csSetTimeout(()=>csArray.prototype.push.call(Za,s)))}function Yr(s){ke==null||ke.postMessage(s)}var er=(()=>{class s{constructor(t,e=""){this.name=t,this.format=e}}return s})(),ts=(()=>{class s extends er{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})();var Ao=(()=>{class s extends er{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})(),Ar=(()=>{class s extends er{constructor(t){super(t,"Count: {count}
Average: {average}ms
Total: {total}ms"),this.total=0,this.count=0}get average(){return this.count?this.total/this.count:0}measure(t){let e=N.elapsed();t(),this.count++,this.total+=N.elapsed()-e}asyncMeasure(){let t=N.elapsed();return()=>{this.count++,this.total+=N.elapsed()-t}}getData(){return{total:this.total,count:this.count,average:this.average}}}return s})(),se={general:{category:"General",nbEvents:new ts("Nb of Events"),pendingTasks:new ts("Pending Tasks"),pendingEvents:new ts("Pending Tasks"),nbOfMutationObservers:new Ao("Nb of Mutation Observers")},mutations:{category:"Mutations",initialDOM:new Ar("Initial DOM"),pendingMutations:new ts("Nb of Mutations scheduled"),serializedMutations:new Ar("Serialized Mutations"),count:new ts("Mutation Count"),elementMutationObserved:new Ao("Nb of Elements Observed by MutationObserver"),unobserveGarbageCollection:new Ar("Unobserve GC")},visibilityObserver:{category:"Visibility Observer",hiddenElements:new ts("Nb of Hidden Elements "),nbElements:new ts("Nb of Elements")}},bo=null;zd(()=>{let s=i=>Object.keys(i),r=csArray.prototype.map.call(s(se),i=>se[i]),t=csArray.prototype.map.call(r,i=>csArray.prototype.filter.call(csArray.prototype.map.call(s(i),n=>i[n]),n=>n instanceof er));Yr({type:"UXA_PERFORMANCE_COUNTER_SCHEMA",event:csArray.prototype.map.call(r,(i,n)=>({category:i.category,performanceCounters:csArray.prototype.map.call(t[n],a=>({name:a.name,format:a.format}))}))}),!bo&&(bo=csSetInterval(()=>{let i=Pa(Ve(t,n=>Ve(n,a=>a.getData())),n=>n);Yr({type:"UXA_PERFORMANCE_COUNTER",event:i})},1e3))});var I=(()=>{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})(),It=(()=>{let s;return function(r){r.ETR_OFF="0",r.ETR_ON="1"}(s||(s={})),s})(),je=(()=>{let s;return function(r){r.ETR_LEGACY="0",r.ETR_SESSION="1",r.ETR_PAGE="2"}(s||(s={})),s})(),Rt=(()=>{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})();function he(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,a;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--)(a=s[c])&&(n=(i<3?a(n):i>3?a(r,t,n):a(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}function te(s){return qe(s,"data:")}function $d(s){return qe(s,"#")}function qd(s){return!!s&&(di(s,".css")||qe(s,"https://fonts.googleapis.com/css"))}function En(s){let r=csString.prototype.trim.call(s);if(s==="")return[];let[t,e]=Gd(r);return e?(di(t,",")||(e=Wd(e)),[To(t),...En(e)]):[To(t)]}function Gd(s){return csString.prototype.split.call(s,/\s(.+)/)}function To(s){return csString.prototype.split.call(s,/,$/)[0]}function Wd(s){return csString.prototype.split.call(s,/,(.+)/)[1]||""}var Yd=/(@import\s*("([^"]+)"|'([^']+)'))|(url\s*\(\s*((("([^"\]]+)"|'([^'\]]+)')\s*)|([^)\]]+))\))/g;function Xd(s,r){return csString.prototype.replace.call(s,Yd,(...e)=>{let i=e[3]||e[4],n=e[9]||e[10]||e[11],a=Jd((i||n).trim()),c=i?"@import ":"",l=r(a)||a;return`${c}url(${Kd(l)})`})}function Kd(s){return csString.prototype.indexOf.call(s,'"')===-1?`"${s}"`:csString.prototype.indexOf.call(s,"'")===-1?`'${s}'`:s}function Qs(s){let r=new Set;return Xd(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}),Ns(r)}function Jd(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 a=parseInt(i,16);return 55296<=a&&a<=57343||a===0||a>1114111?"\uFFFD":csString.fromCodePoint(a)})}var Ro=new Map,br=!ci&&document.implementation.createHTMLDocument("");function tc(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 Qd(s){if(!rn(s))return null;let r=ec(s);if(r===null||r.length===0)return null;let t="";if(wh(s.textContent))K(r,e=>t+=e.cssText);else{let e=Zd(s);if(e===r.length||e>r.length)return null;let i=new csArray(r.length-e);for(let n=e,a=0;nt+=n.cssText)}return t}function Zd(s){if(!br)return 0;let r=Ro.get(s.textContent);if(r)return r;let t=s.cloneNode(!0);t.textContent=s.textContent,br.head.appendChild(t);let e=ec(t);return r=e?e.length:0,Ro.set(s.textContent,r),br.head.removeChild(t),r}function ec(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 Gs=s=>s instanceof HTMLFormElement?"form":s.localName;var hs=(()=>{class s{constructor(t){this.csId=et(t),this.props=Ui.getStore(t)}}return s})(),sc=(()=>{class s extends hs{constructor(t){super(t),this.nodeType=3,this.data=t.data}}return s})(),As=(()=>{class s extends hs{constructor(t){var e;super(t),this.attributes=[],this.nodeType=1,this.localName=Gs(t),this.namespaceURI=(e=t.namespaceURI)!==null&&e!==void 0?e:void 0,this.children=[];let i=Qd(t);if(i){this.children=new csArray(csNodechildNodes.apply(t).length);let n=document.createTextNode(i),a=new sc(n);csArray.prototype.push.call(this.children,a)}Ps(t)&&G.setProperty(this,"SVG",!0)}static isElement(t){return t.nodeType===1}static getAttribute(t,e){return Le(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})(),Sn=(()=>{class s{constructor(t){this.type="asyncEvent",this.Ac=!1,t&&t(e=>this.resolve(e))}resolve(t){if(this.Ac)throw new Error("AsyncEvent already resolve.");t.timestamp==null&&(t={...t,timestamp:this.timestamp}),this.Ns=t,this.Ac=!0,this.S&&this.S(this.Ns)}complete(t){this.Ac&&t(this.Ns),this.S=t}wait(){return new Promise(t=>this.complete(t))}}return s})();function tp(s,r){let t=!1,e=function(){if(!t)return s.apply(r,arguments)};return e.cancel=()=>t=!0,e}var Xr=csQueueMicrotask||csSetTimeout,Ii=new Os,$s=new Os,Co=1;function Ft(s,r="high"){let t=Co;Ii.isEmpty&&$s.isEmpty&&ic(()=>{if(Co!==t)return;let n=ls(()=>{for(;!$s.isEmpty;)$s.pop()();for(;!Ii.isEmpty;)Ii.pop()();$s.isEmpty||n()},"groupMicrotask.run");n()});let e=s.name||s.toString(),i=ze(`groupMicrotask:${r}:${e}`,s);r==="high"?$s.push(i):Ii.push(i)}function ic(s,r=10){Xr(r===0?s:()=>ic(s,r-1))}async function rc(s=1){for(let r=0;rFt(t))}function sr(){let s=new Set;return{add(r){s.add(r),s.size===1&&csSetTimeout(()=>{s.clear()})},has(r){return s.has(r)},del(r){s.delete(r)},clear(){s.clear()},values(){return Ns(s)},get count(){return s.size}}}function ir(s,r=!1){let t=sr();return{push(e){t.count===0&&(r?Ft:csSetTimeout)(()=>{s(t.values()),t.clear()}),t.add(e)}}}var rs=csSymbol(),vn=(()=>{class s{constructor(t){var e,i,n,a,c,l,d,g,u,y,E,v;this.S=t,this.bc=null,this.Tc=null,this.Rc=null,this.Cc=null,this.zy=ir(b=>this.processUpdateRulesInATick(b)),this.Ic=null,this.Pc=null,this.Oc=null,this.S=b=>Ft(()=>t(b)),typeof((i=(e=window.CSSStyleSheet)===null||e===void 0?void 0:e.prototype)===null||i===void 0?void 0:i.insertRule)=="function"&&(this.bc=is({target:window.CSSStyleSheet.prototype,methodName:"insertRule",hook:({context:b,args:k})=>{this.processInsertRule(b,k)}})),typeof((a=(n=window.CSSStyleSheet)===null||n===void 0?void 0:n.prototype)===null||a===void 0?void 0:a.deleteRule)=="function"&&(this.Tc=is({target:window.CSSStyleSheet.prototype,methodName:"deleteRule",hook:({context:b,args:k})=>{this.processDeleteRule(b,k)}})),typeof((l=(c=window.CSSGroupingRule)===null||c===void 0?void 0:c.prototype)===null||l===void 0?void 0:l.insertRule)=="function"&&(this.Rc=is({target:window.CSSGroupingRule.prototype,methodName:"insertRule",hook:({context:b})=>this.processUpdateRule(b)})),typeof((g=(d=window.CSSGroupingRule)===null||d===void 0?void 0:d.prototype)===null||g===void 0?void 0:g.deleteRule)=="function"&&(this.Cc=is({target:window.CSSGroupingRule.prototype,methodName:"deleteRule",hook:({context:b})=>this.processUpdateRule(b)})),typeof((y=(u=window.CSSStyleDeclaration)===null||u===void 0?void 0:u.prototype)===null||y===void 0?void 0:y.setProperty)=="function"&&(this.Ic=is({target:window.CSSStyleDeclaration.prototype,methodName:"setProperty",hook:({context:b})=>{let k=b.parentRule;k instanceof CSSStyleRule&&this.processUpdateRule(k)}})),typeof((v=(E=window.CSSStyleDeclaration)===null||E===void 0?void 0:E.prototype)===null||v===void 0?void 0:v.removeProperty)=="function"&&(this.Pc=is({target:window.CSSStyleDeclaration.prototype,methodName:"removeProperty",hook:({context:b})=>{let k=b.parentRule;k instanceof CSSStyleRule&&this.processUpdateRule(k)}})),Object.getOwnPropertyDescriptor(window.CSSStyleRule.prototype,"style")&&(this.Oc=_d(window.CSSStyleRule.prototype,"style",b=>{this.processUpdateRule(b)}))}observe(){var t,e,i,n,a,c,l;(t=this.bc)===null||t===void 0||t.activate(),(e=this.Tc)===null||e===void 0||e.activate(),(i=this.Rc)===null||i===void 0||i.activate(),(n=this.Cc)===null||n===void 0||n.activate(),(a=this.Ic)===null||a===void 0||a.activate(),(c=this.Pc)===null||c===void 0||c.activate(),(l=this.Oc)===null||l===void 0||l.activate()}disconnect(){var t,e,i,n,a,c,l;(t=this.bc)===null||t===void 0||t.deactivate(),(e=this.Tc)===null||e===void 0||e.deactivate(),(i=this.Rc)===null||i===void 0||i.deactivate(),(n=this.Cc)===null||n===void 0||n.deactivate(),(a=this.Ic)===null||a===void 0||a.deactivate(),(c=this.Pc)===null||c===void 0||c.deactivate(),(l=this.Oc)===null||l===void 0||l.deactivate()}processInsertRule(t,[e,i]){if(t[rs]==null&&!t.ownerNode)return;let n={type:"cssRuleInserted",sheet:t,rule:e,index:i};this.S(n)}processUpdateRule(t){let e=t;for(;e.parentRule!==null;)e=e.parentRule;e.parentStyleSheet!==null&&this.zy.push(e)}processUpdateRulesInATick(t){for(let e of t){if(e.parentStyleSheet===null)return;let i=e.parentStyleSheet,n=csArray.prototype.indexOf.call(ri(i.cssRules),e);if(n===-1)return;let a={type:"cssRuleUpdated",sheet:i,rule:e.cssText,index:n};this.S(a)}}processDeleteRule(t,[e]){if(t[rs]==null&&!t.ownerNode)return;let i={type:"cssRuleDeleted",sheet:t,index:e};this.S(i)}}return ot([L()],s.prototype,"observe",null),ot([L()],s.prototype,"disconnect",null),ot([L()],s.prototype,"processInsertRule",null),ot([L()],s.prototype,"processUpdateRule",null),ot([L()],s.prototype,"processUpdateRulesInATick",null),ot([L()],s.prototype,"processDeleteRule",null),s})(),ep=(()=>{class s{constructor(t){this.$y=1,this.So=new Set,this.Nc=null,this.Mc=null,this.kc=(e,i)=>{(i==="initial"||i==="added")&&this.setStyleSheets(e,e.adoptedStyleSheets)},this.qy=e=>{let i=e.sheet;if(this.So.has(i)){if(e.type==="cssRuleInserted"){let n={type:"adoptedStyleSheetRuleInserted",sheetId:i[rs],rule:e.rule,index:e.index};this.S(n)}else if(e.type==="cssRuleDeleted"){let n={type:"adoptedStyleSheetRuleDeleted",sheetId:i[rs],index:e.index};this.S(n)}else if(e.type==="cssRuleUpdated"){let n={type:"adoptedStyleSheetRuleUpdated",sheetId:i[rs],rule:e.rule,index:e.index};this.S(n)}}},this.S=e=>Ft(async()=>{await rc(2),t(e)}),this.ie=new Ms(this.kc),"adoptedStyleSheets"in Document.prototype&&(this.Nc=Gr(window.Document.prototype,"adoptedStyleSheets",(e,i)=>{this.setStyleSheets(e,i)})),"ShadowRoot"in window&&"adoptedStyleSheets"in window.ShadowRoot.prototype&&(this.Mc=Gr(window.ShadowRoot.prototype,"adoptedStyleSheets",(e,i)=>{this.setStyleSheets(e,i)})),this.pd=new vn(this.qy)}observe(){var t,e;this.setStyleSheets(document,document.adoptedStyleSheets),this.ie.observe(),(t=this.Nc)===null||t===void 0||t.activate(),(e=this.Mc)===null||e===void 0||e.activate(),this.pd.observe()}disconnect(){var t,e;this.So.clear(),this.ie.disconnect(),(t=this.Nc)===null||t===void 0||t.deactivate(),(e=this.Mc)===null||e===void 0||e.deactivate(),this.pd.disconnect()}setStyleSheets(t,e){if(!e.length)return;this.Gy(e);let i=Ve(e,a=>a[rs]),n={type:"adoptedStyleSheetsSet",target:t,sheetsIds:i};this.S(n)}Gy(t){K(t,e=>{if(this.So.has(e))return;let i=this.$y++;e[rs]=i,this.So.add(e);let n=this.Wy(e),a={type:"adoptedStyleSheetRegistered",sheetId:i,cssRules:n};this.S(a)})}Wy(t){let e=[];try{e=Ve(t.cssRules,i=>i.cssText)}catch{}return e}}return ot([L()],s.prototype,"observe",null),ot([L()],s.prototype,"disconnect",null),ot([L()],s.prototype,"setStyleSheets",null),s})(),sp=ls(op,"optimizeMutations"),ip=csSymbol.for("ignoreNextSerialization");function rp(){let s=new Set,r=new Set,t=new Set,e=new Set,i=new Map,n=new Map,a=new Map,c=new Set,l=new Set,d=new Map,g=new Set;return{isMovedNode(u){return s.has(u)},markAsMovedNode(u){g.delete(u),s.add(u)},isDetachedMove(u){return!!ut.findAncestor(u,y=>g.has(y),!0)},isAddedNode(u){let y=ut.findAncestor(u,E=>r.has(E)||l.has(E)||s.has(E),!0);return!!y&&!s.has(y)},isMovedNodeIntoAddedNode(u){return s.has(u)&&!!ut.findAncestor(u,y=>r.has(y)||l.has(y),!0)},markAsAddedNode(u){g.delete(u),l.delete(u),r.add(u)},markAsPendingInsert(u){l.add(u)},isPendingInsert(u){return l.has(u)},isRemovedNode(u){return!!ut.findAncestor(u,y=>t.has(y),!0)},markAsRemovedNode(u){t.add(u)},isUselessNode(u){return e.has(u)},markAsUselessNode(u){e.add(u)},getPlaceholder(u,y){let E=y==="previous"?n:i;return u&&E.has(u)?E.get(u)||null:u},getSiblings(u){let y=u.addedNodes.length,E=this.getPlaceholder(u.previousSibling,"previous"),v=this.getPlaceholder(u.nextSibling,"next");if(y){let b=E,k=v,R=u.previousSibling!==E,w=u.nextSibling!==v;for(let x=0;x{if(d){let{childListType:E,movedNodes:v,...b}=d;csArray.prototype.push.call(t,E==="added"?b:{...b,movedNodes:v}),d=null}},u=E=>E===(d==null?void 0:d.childListType)?d:(g(),{childListType:E,type:"childList",target:s.target,addedNodes:[],removedNodes:[],movedNodes:[],previousSibling:l,nextSibling:c});if(e){for(let E=0;E{if(ut.isConnected(E)){if(!i&&!r.isPendingInsert(E)){if(r.isDetachedMove(E))return!0;r.markAsMovedNode(E),r.isMovedNodeIntoAddedNode(E)&&(E[ip]=!0)}return!1}return r.isUselessNode(E)?!1:(r.markAsRemovedNode(E),!0)});return y.length&&csArray.prototype.push.call(t,{type:"childList",removedNodes:y,addedNodes:[],movedNodes:[],target:s.target,nextSibling:c,previousSibling:l}),t}var Io={childList:!0,subtree:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,attributeOldValue:!0},We=(()=>{var s;class r{static setShadowRootFilter(e){csArray.prototype.push.call(s.shadowRootFilters,e)}static Dc(e){if(s.shadowRootFilters.length>0&&ii(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,Io)})})))}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(os.getAllShadowHosts(document),n=>i(csElementshadowRoot.apply(n),"initial")):(this.mutationObserver=new csMutationObserver(this.mutationCallback),this.Dc(document),this.shadowRootObserver=new Ms(this.onShadowRoot),this.shadowRootObserver.observe(),this.started=!0,K(this.shadowRootObserver.shadowRoots,n=>{this.Dc(n)}))}static disconnect(e,i){var n,a;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(),(a=this.mutationObserver)===null||a===void 0||a.disconnect(),this.observedTargets.clear(),this.started=!1)}constructor(e,i){this.S=e,this.gd=i;let n=ir(a=>e(a,this),!0);this.S=ze("DocumentMutationObserver:callback",a=>{K(a,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?ou(i,n):i!=null?i:n}observe(){s.observe(this.S,this.gd)}disconnect(){s.disconnect(this.S,this.gd)}}return s=r,r.callbacks=[],r.shadowRootCallbacks=[],r.started=!1,r.observedTargets=new Set,r.shadowRootFilters=[],r.mutationCallback=t=>{se.mutations.count.increase(t.length),csArray.prototype.forEach.call(s.callbacks,e=>e(t,s.mutationObserver))},r.onShadowRoot=(t,e)=>{K(s.shadowRootCallbacks,i=>i(t,e)),e!=="removed"?s.Dc(t):s.disconnectShadowRoot(t)},r.isRefreshing=!1,ot([L()],r.prototype,"observe",null),ot([L()],r.prototype,"disconnect",null),r})(),dp=(()=>{class s{constructor(t){this.S=t,this.Yy=e=>{e.sheet.ownerNode&&(e.type==="cssRuleInserted"?this.S({type:e.type,target:e.sheet.ownerNode,rule:e.rule,index:e.index}):e.type==="cssRuleDeleted"?this.S({type:e.type,target:e.sheet.ownerNode,index:e.index}):e.type==="cssRuleUpdated"&&this.S({type:e.type,target:e.sheet.ownerNode,rule:e.rule,index:e.index}))},this.S=e=>Ft(()=>t(e)),this.md=new vn(e=>Ft(async()=>{await rc(),this.Yy(e)})),"adoptedStyleSheets"in Document.prototype&&(this.yd=new ep(t))}observe(){var t;this.P=new We(e=>this.Xy(e),(e,i)=>{i==="added"&&this.Ky(e)}),this.P.observe(),this.md.observe(),(t=this.yd)===null||t===void 0||t.observe()}disconnect(){var t,e;(t=this.P)===null||t===void 0||t.disconnect(),this.md.disconnect(),(e=this.yd)===null||e===void 0||e.disconnect()}Xy(t){let e=sp(t);for(let i=0;ic)};this.S(a)}}Ky(t){let e={type:"shadowRootAttached",target:t.host,shadowRoot:t};this.S(e)}}return ot([L()],s.prototype,"processAttributeChanged",null),ot([L()],s.prototype,"processCharacterDataChanged",null),ot([L()],s.prototype,"processChildListChanged",null),s})(),pp=(()=>{class s extends hs{constructor(t){super(t),this.nodeType=4,this.data=t.data}}return s})(),fp=(()=>{class s extends hs{constructor(t){super(t),this.nodeType=8,this.data=t.data}}return s})(),gp=(()=>{class s extends hs{constructor(t){super(t),this.nodeType=10,this.name=t.name,this.publicId=t.publicId,this.systemId=t.systemId}}return s})(),mp=(()=>{class s extends hs{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})(),yp=(()=>{class s extends hs{constructor(t){super(t),this.nodeType=11,this.mode=t.mode,this.children=[]}}return s})(),Ep=(()=>{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(y)),a=new Os,c=(y,E)=>{y.hasChildNodes()&&a.push({node:y,serializedNode:E});let v=y instanceof Element&&csElementshadowRoot.apply(y);if(v){let b=E.shadowRoot=ti(v);s.async&&s.initialDOM&&G.setProperty(v,Zs,!0),c(v,b)}},l,d=!0,g=8,u=ze("work",()=>{var y;if(d)l=ti(t),s.async&&s.initialDOM&&G.setProperty(t,Zs,!0),c(t,l),d=!1;else if(a.isEmpty)return;let E=wp(100);for(;!a.isEmpty;){if(s.async&&E.elapsed()>=s.workTime){--g<=0&&csSetTimeout(u);return}let{node:v,serializedNode:b}=a.pop(),k=(y=b.children)!==null&&y!==void 0?y:[];if(Ji(v))continue;let R=0;for(let w=csNodefirstChild.apply(v);w;w=csNodenextSibling.apply(w)){if(nc(w))continue;let x=ti(w);s.async&&s.initialDOM&&G.setProperty(w,Zs,!0),k[R++]=x,c(w,x)}}s.async?csSetTimeout(()=>n(l)):e(l)});if(!s.async)s.workTime=1/0,u();else for(let y=0;y= 1");let r=0,t=performance.now();return{started:t,elapsed(){return++r%s===0&&(t=performance.now()),t-this.started}}}function Ap(s){return Ji(s)?[]:Ep.create(s)}var ue=(()=>{class s{constructor(){this.re=[],this.isStarted=!1}produceEvent(t){var e;this.isStarted&&(t.timestamp=(e=t.timestamp)!==null&&e!==void 0?e:N.now(),t.timestamp==null&&(t.timestamp=N.now()),csArray.prototype.forEach.call(this.re,i=>i(t)))}onStop(){}start(){this.isStarted||(this.isStarted=!0,this.onStart())}stop(){this.isStarted&&(this.isStarted=!1,this.onStop(),this.re=[])}stopForInactivity(){this.isStarted&&(this.isStarted=!1,this.onStop())}subscribe(t){return csArray.prototype.push.call(this.re,t),()=>{let e=csArray.prototype.indexOf.call(this.re,t);csArray.prototype.splice.call(this.re,e,1)}}}return s})(),bp=Sp(),Tp=(()=>{class s extends ue{constructor(){super(...arguments),this.vo=!1}onStart(){this.vo=!0,this.S=tp(this.Jy,this),this.F=new dp(this.S),this.F.observe();let t=se.mutations.initialDOM.asyncMeasure(),e=()=>{this.vo=!1,_p(),t()};this.produceEvent(new Sn(i=>bp(document,n=>{e(),i({type:"DomEvent",domEvent:"initialDOM",initialDOM:n})})))}onStop(){var t,e;this.vo=!1,(t=this.S)===null||t===void 0||t.cancel(),(e=this.F)===null||e===void 0||e.disconnect()}ne(t,e){let i={type:"DomEvent",domEvent:e.type,target:0,targetProps:{}};return"target"in e&&(i.target=et(e.target),i.targetProps=G.getProperties(e.target)),[e,i]}Jy(t){if(!this.Qy(t))switch(t.type){case"attributeChanged":{let[e,i]=this.ne(t.type,t);i.attribute=e.attribute,i.isSvg=Ps(e.target),i.namespace=e.namespace,i.newValue=e.newValue,i.oldValue=e.oldValue,i.localName=Gs(e.target),i.linkRel=ya(e.target)?e.target.rel:null,i.parentLocalName=e.target.parentElement?Gs(e.target.parentElement):void 0,i.localName==="input"&&(i.inputType=e.target.getAttribute("type")),this.produceEvent(i)}break;case"characterDataChanged":{let[e,i]=this.ne(t.type,t);i.newValue=e.newValue,i.oldValue=e.oldValue,i.targetNodeType=e.target.nodeType,i.parentLocalName=e.target.parentElement?Gs(e.target.parentElement):null,i.parentProps=e.target.parentElement?G.getProperties(e.target.parentElement):void 0,this.produceEvent(i)}break;case"nodesAdded":{let[e,i]=this.ne(t.type,t);i.targetLocalName=nt(e.target)?Gs(e.target):null,i.nextSibling=e.nextSibling?et(e.nextSibling):null,i.previousSibling=e.previousSibling?et(e.previousSibling):null,se.mutations.serializedMutations.measure(()=>{i.nodes=Ve(e.nodes,Kr)}),this.produceEvent(i);break}case"nodesMoved":{let[e,i]=this.ne(t.type,t);i.previousSibling=e.previousSibling?et(e.previousSibling):null,i.nextSibling=e.nextSibling?et(e.nextSibling):null,i.nodesIds=Ve(e.nodes,et),this.produceEvent(i);break}case"nodesRemoved":{let[e,i]=this.ne(t.type,t);i.nodesIds=Ve(e.nodes,et),this.produceEvent(i);break}case"shadowRootAttached":{let[e,i]=this.ne(t.type,t);i.shadowRoot=ti(e.shadowRoot),this.produceEvent(i);break}case"cssRuleInserted":{let[e,i]=this.ne(t.type,t);i.index=e.index,i.rule=e.rule,this.produceEvent(i);break}case"cssRuleDeleted":{let[e,i]=this.ne(t.type,t);i.index=e.index,this.produceEvent(i);break}case"cssRuleUpdated":{let[e,i]=this.ne(t.type,t);i.rule=e.rule,i.index=e.index,this.produceEvent(i);break}case"adoptedStyleSheetRegistered":{let[e,i]=this.ne(t.type,t);i.sheetId=e.sheetId,i.cssRules=e.cssRules,this.produceEvent(i);break}case"adoptedStyleSheetsSet":{let[e,i]=this.ne(t.type,t);i.sheetsIds=e.sheetsIds,this.produceEvent(i);break}case"adoptedStyleSheetRuleInserted":{let[e,i]=this.ne(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.ne(t.type,t);i.sheetId=e.sheetId,i.index=e.index,this.produceEvent(i);break}case"adoptedStyleSheetRuleUpdated":{let[e,i]=this.ne(t.type,t);i.sheetId=e.sheetId,i.rule=e.rule,i.index=e.index,this.produceEvent(i);break}}}_o(t){return this.vo&&!G.getProperty(t,Zs)}Qy(t){switch(t.type){case"nodesAdded":case"nodesMoved":case"nodesRemoved":case"shadowRootAttached":return this._o(t.target)||O.isMaskedElement(t.target)||O.isMaskedElementChild(t.target);case"characterDataChanged":{let e=t.target.parentElement;return e!==null&&(this._o(e)||O.isMaskedElement(e)||O.isMaskedElementChild(e))}case"attributeChanged":return this._o(t.target)||O.isMaskedElementChild(t.target)||O.isMaskedAttribute(t.target,t.attribute);case"cssRuleInserted":case"cssRuleDeleted":case"cssRuleUpdated":return this._o(t.target)||O.isMaskedElementChild(t.target);default:return!1}}}return s})(),pi=(()=>{let s;return function(r){function t(e){return e.type==="DomEvent"}r.isDOMEvent=t}(s||(s={})),s})(),fi=(()=>{class s{constructor(){this.re=[]}start(){}stop(){this.re.length=0,this.re=[]}pushEvent(t){if(s.pendingEvents++,this.isListening(t)){let e=this.re;csSetTimeout(()=>{let n=ze("Processor:processEvent",a=>this.processEvent(a))(t);n!=null&&csArray.prototype.forEach.call(e,a=>a(n)),s.pendingEvents--})}else csSetTimeout(()=>{csArray.prototype.forEach.call(this.re,e=>e(t))})}subscribe(t){return csArray.prototype.push.call(this.re,t),()=>{this.re=csArray.prototype.filter.call(this.re,e=>e!==t)}}emitEvent(t){Ft(()=>csArray.prototype.forEach.call(this.re,e=>e(t)))}}return s.pendingEvents=0,s})(),No=(()=>{class s{static async toStaticResourceEvent(t,e,i){let n=await s.Zy(t);if(!n)return null;let a=await s.Ed(n),c=te(t)?void 0:t,l={type:"StaticResourceManagerEvent",timestamp:i,resourceId:e,resource:{hash:a,data:n}};return c&&(l.originalResourceName=c),l}static async toCSSStaticResourceEvent(t,e,i,n){let a=await s.tE(t,n),c=Ue(t),l=a.get(c);if(!l)return null;let d={type:"StaticResourceManagerEvent",timestamp:i,resourceId:e,resource:{hash:l.hash,data:l.data}};return a.delete(c),a.size&&(d.nestedResources=[],a.forEach(g=>{g&&csArray.prototype.push.call(d.nestedResources,{hash:g.hash,data:g.data})})),d}static async Ed(t){let e=await t.arrayBuffer(),i=await crypto.subtle.digest(this.xr,e);return Wi(i)}static async Zy(t){let e;if(!te(t))e=await(await window.fetch(t)).blob();else{let i=no(t);if(!i)return null;e=i}return e}static async tE(t,e){let i=new Map,n=Ue(t),c=[{resourceRawPath:t,resourceAbsolutePath:n}];for(;c.length>0;){let l=csArray.prototype.pop.call(c);if(!e&&l.resourceAbsolutePath!==null&&!te(l.resourceAbsolutePath)){i.set(l.resourceAbsolutePath,null);continue}if(i.get(l.resourceAbsolutePath)===void 0)try{if(l.resourceRawPath===null||csString.prototype.indexOf.call(l.resourceRawPath,".css")>0){if(!l.data){let E=await fetch(l.resourceAbsolutePath);l.data=await E.text()}l.nestedResources||(l.nestedResources=Qs(l.data));let u=!1,y=!1;for(let E of l.nestedResources){let v=te(E)?E:l.resourceAbsolutePath?Hu(E,l.resourceAbsolutePath):Ue(E),b=i.get(v);if(b!==void 0){if(b!==null){let R=s.eE(b,E);l.data=He.stringReplaceAll(l.data,E,R)}continue}Le(c,R=>R.resourceAbsolutePath===v)!==void 0||(u=!0,y||(csArray.prototype.push.call(c,l),y=!0),csArray.prototype.push.call(c,{resourceRawPath:E,resourceAbsolutePath:v}))}if(!u){let E=await s.sE(l.data);i.set(l.resourceAbsolutePath,{hash:E.hash,data:E.data})}}else{let u;if(!te(l.resourceAbsolutePath))u=await(await fetch(l.resourceAbsolutePath)).blob();else{let E=no(l.resourceAbsolutePath);if(!E){i.set(l.resourceAbsolutePath,null);continue}u=E}let y=await s.Ed(u);i.set(l.resourceAbsolutePath,{hash:y,data:u})}}catch{i.set(l.resourceAbsolutePath,null)}}return i}static eE(t,e){let i=`cs://resources/${t.hash}`;return te(e)||(i+=`?${s.Lc}=${e}`),i}static async sE(t){let e=new Blob([t],{type:"text/css"}),i=await e.arrayBuffer(),n=await crypto.subtle.digest(s.xr,i);return{data:e,hash:Wi(n)}}}return s.xr="SHA-256",s.Lc="original-resource-name",s})(),Jr=(()=>{class s extends fi{constructor(){super(),this.wo="cssrm://",this.oe=0,this.ds=!1}isListening(t){return!s.isSupported()||!pi.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.iE(t);break;case"attributeChanged":this.rE(t);break;case"characterDataChanged":this.nE(t);break}return t}disableOnlineAssets(){this.ds=!1}enableOnlineAssets(){this.ds=!0}isOnlineAssetsActivated(){return this.ds}iE(t){let e=t.domEvent==="initialDOM"?[t.initialDOM]:t.nodes;for(let i of e)G.traverse(i,(n,a)=>{if(n.nodeType===3&&a){this.oE(n,a.localName);return}if(!As.isElement(n))return;let c=Le(n.attributes,l=>l.name==="style");if(c&&(c.value=this.Ao(c.value)),this.aE(n)||this.cE(n,a)){let l=Le(n.attributes,g=>g.name==="src");l&&l.value&&(l.value=this.Sd(l.value));let d=Le(n.attributes,g=>g.name==="srcset");if(d){d.value=this.vd(d.value);return}}if(this.lE(n)&&this.ds){let l=Le(n.attributes,d=>d.name==="href");if(!l||!l.value)return;this.oe++,this.ji(Ue(l.value),this.oe,!0),this.hE(n,l,this.oe)}})}hE(t,e,i){csArray.prototype.push.call(t.attributes,{name:"data-cs-original-href",namespaceURI:"",value:e.value}),e.value=this.wo+i}oE(t,e){if(!t||e!=="style")return;let i=this.Ao(t.data);i!==null&&(t.data=i)}nE(t){if(t.parentLocalName!=="style"||!t.newValue)return;let e=this.Ao(t.newValue);e!==null&&(t.newValue=e)}rE(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.Ao(t.newValue);return}if(!e&&!i)return;let a=t.localName==="img",c=t.localName==="source"&&t.parentLocalName&&t.parentLocalName==="picture";!a&&!c||(e&&(t.newValue=this.Sd(t.newValue)),i&&(t.newValue=this.vd(t.newValue)))}Sd(t){return te(t)||this.ds?(this.oe++,this.ji(t,this.oe,!1,N.now()),this.wo+this.oe):t}vd(t){if(!this.ds)return t;let e=t,i=En(t),n=N.now();for(let a of i)this.oe++,this.ji(Ue(a),this.oe,!1,n),e=csString.prototype.replace.call(e,a,this.wo+this.oe);return e}Ao(t){let e=Qs(t),i=t,n=N.now();for(let a of e){let c=te(a);if(!(c||this.ds)||this.uE(a))continue;this.oe++,i=csString.prototype.replace.call(i,a,this.wo+this.oe);let l=qd(a);c?this.ji(a,this.oe,!1,n):this.ds&&(l?this.ji(a,this.oe,!0,n):this.ji(Ue(a),this.oe,!1,n))}return i}ji(t,e,i,n=N.now()){let a=i?No.toCSSStaticResourceEvent:No.toStaticResourceEvent,c=new Sn(async l=>{try{let d=await a(t,e,n,this.ds);l(d||{type:"warning",message:`Failed to process static resource: ${t}`})}catch(d){l({type:"warning",message:d})}});this.emitEvent(c)}aE(t){return t.localName==="img"}cE(t,e){return t.localName==="source"&&!!e&&e.localName==="picture"}lE(t){return t.localName==="link"&&csArray.prototype.some.call(t.attributes,e=>e.name==="rel"&&e.value==="stylesheet")}static isSupported(){return xa()&&pn()&&!!csArray.from}uE(t){return csString.prototype.replace.call(t,/['"]+/g,"").length===0}}return he([Nt("StaticResourceManagerProcessor.processEvent")],s.prototype,"processEvent",null),s})(),Ht=(()=>{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})(),oc=(()=>{class s{constructor(){this.N=!1,this.Ms=t=>{try{switch(t.type){case"visibilitychange":return document.visibilityState==="hidden"?this.Kt(Ht.Hidden):this.Kt(Ht.Visible);case"pagehide":return document.visibilityState==="hidden"?this.Kt(Ht.PagehideHidden):this.Kt(Ht.PagehideVisible);case"blur":return this.Kt(Ht.Blur);case"navigate":return this.dE(t)?this.Kt(Ht.ExitPageByNavigate):void 0;default:return}}catch{}}}start(){this.N||(this.N=!0,this.xc(),this.pE(),this.fE(),co()&&this.gE())}stop(){this.N&&(this.N=!1,this.Vc(),this.mE(),this.yE(),co()&&this.EE())}onEvent(t){this.Kt=t}gE(){window.navigation.addEventListener("navigate",this.Ms)}EE(){window.navigation.removeEventListener("navigate",this.Ms)}xc(){document.addEventListener("visibilitychange",this.Ms)}Vc(){document.removeEventListener("visibilitychange",this.Ms)}pE(){window.addEventListener("pagehide",this.Ms)}mE(){window.removeEventListener("pagehide",this.Ms)}fE(){window.addEventListener("blur",this.Ms)}yE(){window.removeEventListener("blur",this.Ms)}dE(t){return t instanceof NavigateEvent?!t.downloadRequest&&!t.formData:!1}}return s})(),At=(()=>{let s;return function(r){r[r.Active=0]="Active",r[r.Paused=1]="Paused",r[r.Stopped=2]="Stopped"}(s||(s={})),s})(),Rp=(()=>{class s{constructor(t,e,i=[]){this.Hi=t,this.Uc=e,this.SE=i,this.bo=null,this._t=At.Active,this.K=[]}reset(){this.bo=null,this.K=[],this._t=At.Active}disconnect(){this._t=At.Stopped}vE(){this.Uc(At.Paused),this._t=At.Paused,csSetTimeout(()=>{this._t===At.Paused&&this.jc()},s.STOP_TIMEOUT)}_E(){this.Uc(At.Active),this._t=At.Active,K(this.K,this.Hi),this.K=[]}jc(){this.K=[],this.Uc(At.Stopped),this._t=At.Stopped}pushEvent(t,e){if(e.isUserEvent&&(this.bo=t.date,this._t!==At.Active)){this._E(),this.Hi(t);return}if(this.wE(t)){this.Hi(t);return}switch(this._t){case At.Active:if(this.AE(t,e)){this.vE(),csArray.prototype.push.call(this.K,t);return}this.Hi(t);break;case At.Paused:csArray.prototype.push.call(this.K,t);break;case At.Stopped:break}}AE(t,e){return!e.isUserEvent&&this.bo!==null&&t.date-this.bo>s.INACTIVITY_TIMEOUT}wE(t){return csArray.prototype.indexOf.call(this.SE,t.type)>-1}}return s.INACTIVITY_TIMEOUT=5e3,s.STOP_TIMEOUT=5e3,s})(),Cp=2e3,Ip=(()=>{class s extends Mt{constructor(t,e,i,n,a,c,l,d,g,u,y,E,v,b,k=[],R,w,x,A,M){super(),this.h=t,this.j=e,this.bE=i,this.Le=n,this.X=a,this.w=c,this.xe=l,this.ut=d,this.Ce=g,this.Q=u,this.V=y,this.Rt=E,this.yt=v,this.Ie=b,this.Pe=k,this._d=R,this.xt=w,this.Vr=x,this.ps=A,this.fs=M,this.ks=0,this.Ds=new Qa,this.Bi={allowFromQuotaService:!0,allowFromSerialization:!0},this.wd=tr(()=>{this.j.eventsCount()>0&&this.Ad()},Cp),this.gs=U=>this.processBrowserEvent(U),this.Ur=U=>this.Ct(U),this.bd=0,this.To=0,this.Ve=new oc,this.Hc=!1,this.Td=50*1024,this.hi=!1,this.jr=!1,this.pi=[],this.Ro=new Rp(U=>this.G(U),U=>{switch(U){case At.Active:this.TE();break;case At.Stopped:this.RE();break}},[D.RESOURCE_HASHES,D.TEXT_VISIBILITY]),this.Rd=U=>{this.Rt.removeBatchInProgress(`${U.params.sn}.${U.params.pn}.${U.params.ri}`)}}init(){this.Bc(),this.V.onLoad(this.Rd),this.V.onError(this.Rd)}TE(){csArray.prototype.forEach.call(this._d,t=>t.start())}RE(){csArray.prototype.forEach.call(this._d,t=>t.stopForInactivity())}Bc(){var t,e,i;this.Ie.onEvent(this.gs,this.Ur),(t=this.Q)===null||t===void 0||t.onInputNodeToEncrypt(this.Ur),(e=this.Q)===null||e===void 0||e.onApiErrorToEncrypt(n=>{this.Cd(n)}),(i=this.Q)===null||i===void 0||i.onUserIdentifierToEncrypt(this.gs),this.Ve.onEvent(n=>{if(csSetTimeout(()=>this.fi("page-state",n)),n!==Ht.Visible){if(n===Ht.Blur)return this.Id();if(!this.Hc)return this.Hc=!0,csSetTimeout(()=>{this.Hc=!1}),n===Ht.Hidden?this.Id():this.CE()}})}isRecording(){return this.w.hasValidSession()&&this.isStarted}Id(){if(!this.canSendEvents())return;this.Ie.flush(),this.Rt.saveBatchesInProgress(),K(this.Pe,a=>{var c,l;return K((l=(c=a.getPendingEvents)===null||c===void 0?void 0:c.call(a))!==null&&l!==void 0?l:[],d=>this.j.addEvent(d))});let t=this.j.getEvents();if(t.length===0)return;this.fi("pending-events",this.Ie.pendingEvents);let e=this.V.getQueryParams();e.rst=this.getRecordingStartTimestamp(),e.let=this.getRecordingLastEventTimestamp();let i=this.Le.getCurrentIndex();e.ri=i.toString(),this.yt.removeQueryParams(),this.yt.setQueryParams(e),this.To=t[t.length-1].date;let n=this.j.stringifyEvents();if(n.length>this.Td){let a=this.Pd();if(a.length>0){let c=Rs(a);this.yt.send(c)||this.Rt.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:c}),this.Le.increment()}if(this.j.eventsCount()>0){e.ri=this.Le.getCurrentIndex().toString();let c=this.j.stringifyEvents();this.Rt.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:c}),this.Le.increment()}}else this.yt.send(n)||this.Rt.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:n}),this.Le.increment();this.yt.removeQueryParams(),this.j.clearEvents()}CE(){if(!this.canSendEvents())return;this.Ie.flush();let t=this.V.getQueryParams();this.Rt.saveBatchesInProgress(),t.rst=this.getRecordingStartTimestamp(),delete t.ri,t.hlm="true",this.yt.removeQueryParams(),K(this.Pe,n=>{var a,c;return K((c=(a=n.getPendingEvents)===null||a===void 0?void 0:a.call(n))!==null&&c!==void 0?c:[],l=>this.j.addEvent(l))});let e=this.j.getEvents();if(e.length===0){delete t.let,delete t.rst,this.yt.setQueryParams(t),this.yt.send(),this.yt.removeQueryParams();return}this.fi("pending-events",this.Ie.pendingEvents),this.To=e[e.length-1].date,t.let=this.getRecordingLastEventTimestamp(),this.yt.setQueryParams(t);let i=this.j.stringifyEvents();if(i.length>this.Td){let n=this.Pd();if(n.length>0){let a=Rs(n);this.yt.send(a)||this.Rt.save({key:`${t.sn}.${t.pn}.last`,metadata:{...t,datatype:"json"},events:a})}else delete t.let,delete t.rst,delete t.ri,this.yt.removeQueryParams(),this.yt.setQueryParams(t),this.yt.send(),this.yt.removeQueryParams();if(this.j.eventsCount()>0){t.rst=this.getRecordingStartTimestamp(),t.let=this.getRecordingLastEventTimestamp();let a=this.Le.getCurrentIndex();t.ri=a.toString();let c=this.j.stringifyEvents();this.Rt.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:c}),this.Le.increment()}}else this.yt.send(i)||(this.Rt.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:i}),this.Le.increment());this.yt.removeQueryParams(),this.j.clearEvents()}blockSendingEventsFromQuotaService(){this.Bi.allowFromQuotaService=!1}allowSendingEventsFromQuotaService(){this.Bi.allowFromQuotaService=!0}blockSendingEventsFromSerialization(){this.Bi.allowFromSerialization=!1}allowSendingEventsFromSerialization(){this.Bi.allowFromSerialization=!0}canSendEvents(){return this.Bi.allowFromQuotaService&&this.Bi.allowFromSerialization}onIframeJavascriptError(t){var e;if(this.xe&&this.ps){(e=this.xe)===null||e===void 0||e.anonymize(t);let i=this.ps.translate({message:t.message,colno:t.colno,lineno:t.lineno,filename:t.filename,timestamp:N.now(),type:"JSError"});i&&this.gs(i)}}onIframeCustomError(t){if(this.fs){let e=this.fs.translate({...t,timestamp:N.now(),type:"CustomError"});e&&this.gs(e)}}onIframeDetailedApiError(t){this.Od(t)}onIframeRecordingUserEvent(t){for(let e of t)this.Ct(e)}onIframeRecordingBrowserEvent(t){if(this.isStarted)for(let e of t)this.processBrowserEvent(e)}processBrowserEvent(t){this.X.isCurrentPageviewValid()&&this.Ro.pushEvent(t,{isUserEvent:!1})}Ct(t){this.X.refreshSession(),this.X.isSessionValid()&&this.Ro.pushEvent(t,{isUserEvent:!0})}G(t){se.general.nbEvents.increase(),this.j.addEvent(t),this.j.isThresholdReached()?this.pushEvents():this.j.isFull()&&this.wd(),this.Nd(t)}Nd(t){this.h.emitDebugEvents&&this.Ds.emit("recordingEvent",{...t,typeName:D[t.type]})}onStart(){var t;this.fi("tag-version","15.107.2"),this.fi("page-state",document.visibilityState),this.Ro.reset(),this.Ve.start(),this.initStates(),this.Ie.start(),this.ut&&this.Ce&&this.ut.subscribe(s.Nt,e=>this.Od(e),{detailedEvent:!0}),this.h.emitDebugEvents&&this.Ds.emit("replayRecordingStarted"),csArray.prototype.forEach.call(this.pi,e=>this.Md(e)),this.pi=[],this.hi&&((t=this.xt)===null||t===void 0||t.enableOnlineAssets(),this.hi=!1)}onStop(){var t;this.Ve.stop(),this.ut&&this.ut.unsubscribe(s.Nt),this.Ie.stop(),this.Ro.disconnect(),(t=this.xt)===null||t===void 0||t.disableOnlineAssets()}clearStates(){this.Ie.flush(),this.wd.cancel(),this.pushEvents(),this.V.removeQueryParams()}initStates(){this.bd=N.now(),this.Le.reset(),this.ks=0,this.V.setQueryParams(this.bE.getRequestParameters())}pushEvents(){K(this.Pe,t=>{var e;return(e=t.flushEvents)===null||e===void 0?void 0:e.call(t)}),this.j.eventsCount()>0&&(this.isStarted?this.Ad():this.j.clearEvents())}Ad(){if(!this.canSendEvents())return;let t=this.j.getEvents();this.To=t[t.length-1].date;let e=this.Le.getCurrentIndex();this.V.setQueryParams({ri:e.toString(),rst:this.getRecordingStartTimestamp(),let:this.getRecordingLastEventTimestamp()});let i=this.V.getQueryParams();this.Rt.addBatchInProgress(`${i.sn}.${i.pn}.${e}`,this.V.getQueryParams(),t),this.V.send(t),this.Le.increment(),this.j.clearEvents(),this.kd&&this.kd()}addInitialDom(t){this.j.addEventByTimestamp(t),this.Nd(t)}Od(t){if(this.Vr&&(t.plainCustomRequestHeaders||t.plainCustomResponseHeaders||t.requestBodyAttributes||t.responseBodyAttributes||t.customRequestHeaders||t.customResponseHeaders||t.queryParameters||t.requestBody||t.responseBody)){if(this.Vr.truncate(t),this.Q){this.Q.registerApiErrorToEncrypt(t);return}t.customRequestHeaders="",t.customResponseHeaders="",t.requestBodyAttributes="",t.responseBodyAttributes="",t.queryParameters="",t.requestBody="",t.responseBody=""}this.Cd(t)}Cd(t){if(this.ks{var e;return(e=t.releaseResources)===null||e===void 0?void 0:e.call(t)})}fi(t,e){if(!this.h.emitRecordInfoEvents)return;let i={date:N.now(),type:D.RECORDING_INFO_EVENT,args:e==null?[t]:[t,e]};this.j.addEvent(i)}Pd(){return this.j.extractEvents(D.API_ERROR,D.JAVASCRIPT_ERROR,D.CUSTOM_ERROR,D.TEXT_VISIBILITY,D.POINTER_DOWN)}}return s.Nt="RecordingService",s.ME=255,s.IE=20,s.NE="etrp",s.OE="etrs",s.Dd="1",F([Nt("addInitialDom")],s.prototype,"addInitialDom",null),s})(),Pp=(()=>{class s extends Mt{constructor(t,e,i){super(),this.Wt=t,this.yt=e,this.V=i,this.Fc=!1,this.Hr={},this.kE=n=>{if(n.length!==0)for(let a of n){let{metadata:c,events:l}=a;this.DE(c.rt)&&this.V.send(l,c)}},window.addEventListener("focus",()=>{this.recover()})}onStart(){this.Hr={}}onStop(){}recover(){this.Wt.recover(this.kE)}addBatchInProgress(t,e,i){this.Hr[t]={metadata:{...e},events:i}}removeBatchInProgress(t){delete this.Hr[t]}blockSendingLastMessage(){this.Fc=!1}allowSendingLastMessage(){this.Fc=!0}sendLastMessageBeacon(){if(this.Fc){let{ri:t,rst:e,let:i,...n}=this.V.getQueryParams();n.hlm="true",this.yt.setQueryParams(n),this.yt.send()}}DE(t){return!!t&&csString.prototype.indexOf.call(t,I.RECORDING_TEMPORARILY)===-1}saveBatchesInProgress(){csArray.prototype.forEach.call(Object.keys(this.Hr),t=>{let{metadata:e,events:i}=this.Hr[t];this.Wt.save({key:`${e.sn}.${e.pn}.${e.ri}`,metadata:{...e,datatype:"json"},events:csJSON.stringify(i)})})}save(t){this.Wt.save(t)}}return F([L("RecordingRecovery")],s.prototype,"recover",null),s})(),oi=(()=>{class s{constructor(...t){this.xd=t}addProvider(t){csArray.prototype.push.call(this.xd,t)}getRequestParameters(){return csArray.prototype.reduce.call(this.xd,(t,e)=>({...e.getRequestParameters(),...t}),{})}}return s})(),Op=(()=>{class s{constructor(t,e){this.Tt=t,this.I=e,this.Ls=[{boundElement:window,type:"hashchange",listener:()=>this.hashChangeListener()},{boundElement:document,type:"visibilitychange",listener:()=>this.visibilityChangeListener()}]}onEvent(t){this.O=t}start(){this.ci(),this.triggerInitialEvents()}stop(){this.li()}ci(){csArray.prototype.forEach.call(this.Ls,t=>Pt(t))}li(){csArray.prototype.forEach.call(this.Ls,t=>Ot(t))}triggerInitialEvents(){this.hashChangeListener()}hashChangeListener(){let t={type:D.HASH_CHANGE,args:[this.I.anonymizePII(this.Tt.href)],date:N.now()};this.O(t)}visibilityChangeListener(){let t={type:D.VISIBILITY_CHANGE,args:[document.visibilityState],date:N.now()};this.O(t)}}return F([L("hashChange")],s.prototype,"hashChangeListener",null),F([L("visibilityChange")],s.prototype,"visibilityChangeListener",null),s})(),Np=(()=>{class s{constructor(){}onScannedAsset(t){this.Co=t}scanCssString(t){this.zc(Qs(t))}scanElement(t,e){O.getMaskedElementDetails(t).state!==O.MaskedElementState.NotMasked||e&&O.isMaskedAttribute(t,e)||(rn(t)?this.LE(t):Sa(t)?this.xE(t,e):(this.VE(t,e),this.UE(t,e),this.jE(t,e)))}xE(t,e){var i;if((!e||e==="href")&&t.href){let a={assetId:((i=t.sheet)===null||i===void 0?void 0:i.href)||t.href,assetBasePath:window.location.href,assetRawPath:tc(t)};this.Co({type:"stylesheet",asset:a})}}LE(t){var e;let i=new Set;if(t.textContent)for(let a of Qs(t.textContent))i.add(a);let n;try{n=(e=t.sheet)===null||e===void 0?void 0:e.cssRules}catch(a){a.name==="SecurityError"||a.name==="InvalidAccessError"||j.error(a.message)}if(n)for(let a=0;athis.$c(e)),e=>({rawUrl:e,absoluteUrl:Ue(e)})),e=>{let i={assetId:e.absoluteUrl,assetBasePath:window.location.href,assetRawPath:e.rawUrl};this.Co({type:"asset",asset:i})})}HE(t){return/^https:\/\/\w+:\w+@/.test(t)}}return s})(),Mp=(()=>{class s{constructor(t=Number.POSITIVE_INFINITY){this.xs=[],this.K=[],this.FE=t}next(t){this.K.length===this.FE&&csArray.prototype.shift.call(this.K),csArray.prototype.push.call(this.K,t),this.K.length===1&&csSetTimeout(()=>this.clear());for(let e of this.xs)e(t)}subscribe(t){if(Le(this.xs,i=>t===i))return()=>{this.xs=csArray.prototype.filter.call(this.xs,i=>i!==t)};csArray.prototype.push.call(this.xs,t);for(let i of this.K)t(i);return()=>{this.xs=csArray.prototype.filter.call(this.xs,i=>i!==t)}}clear(){this.K=[]}hasObservers(){return this.xs.length>0}}return s})(),ac=(()=>{var s;class r{constructor(e){this.S=e}observe(){this.zE=s.Br.subscribe(e=>this.S(e)),s.Io||(s.Io=!0,s.Fr.observe(),Wt(document,NodeFilter.SHOW_ELEMENT).visitAll(i=>{s.ms.add(i),s.Br.next(i)}))}disconnect(){s.Io&&(this.zE(),s.Br.hasObservers()||(s.Io=!1,s.Fr.disconnect(),s.Br.clear(),s.ms.clear()))}}return s=r,r.ms=sr(),r.Br=new Mp,r.$E=ls(t=>{Ft(()=>{for(let e of t)e.type==="childList"&&K(e.addedNodes,i=>{Wt(i,NodeFilter.SHOW_ELEMENT).visitAll(a=>{s.ms.has(a)||(s.ms.add(a),s.Br.next(a))})})})},"ElementObserver.findAllElements"),r.Io=!1,r.Fr=new We(s.$E),ot([L()],r.prototype,"observe",null),ot([L()],r.prototype,"disconnect",null),r})(),kp=1,Dp=0,cc=(()=>{class s{constructor(t,e=kp,i=Dp){this.qE=t,this.GE=e,this.WE=i,this.Ue=new Os,this.De=!1,this.qc=0,this.Vd=()=>{for(this.qc=0;this.Ue.length;){if(this.qc>=this.GE){csSetTimeout(this.Vd,this.WE);return}let n=N.elapsed(),a=this.Ue.pop();if(!a)break;this.runTask(a);let c=N.elapsed()-n;this.qc+=c}this.De=!1}}schedule(t,e=!1){if(!this.qE||e){t();return}se.general.pendingTasks.increase(),this.Ue.push(t),this.YE()}YE(){this.De||(this.De=!0,csSetTimeout(()=>{this.Vd()}))}runTask(t){se.general.pendingTasks.decrease(),t()}runPendingTasks(){this.Ue.forEach(t=>{this.runTask(t)}),this.Ue.clear()}clearQueue(){se.general.pendingTasks.clear(),se.mutations.pendingMutations.clear(),this.Ue.clear()}isEmpty(){return this.Ue.length===0}}return F([L("TaskScheduler"),Nt("runTask")],s.prototype,"runTask",null),F([Nt("runPendingTasks")],s.prototype,"runPendingTasks",null),s})(),Lp=(()=>{class s{constructor(){this.B=!1,this.Ud=new vn(t=>t.type==="cssRuleInserted"&&this.XE(t)),this.KE=ir(t=>{this.B&&t.length>0&&this.C.schedule(()=>K(t,e=>this.zr.scanElement(e)))}),this.JE=({type:t,asset:e})=>{var i,n,a;t==="stylesheet"&&((i=this.QE)===null||i===void 0||i.call(this,e)),(n=this.ZE)===null||n===void 0||n.call(this,e);let c={date:N.now(),type:D.STATIC_RESOURCE_URL,args:[e.assetId]};(a=this.O)===null||a===void 0||a.call(this,c)},this.C=new cc(!0,30,0),this.$r=new ac(t=>this.tS(t)),this.P=new We(t=>this.Po(t)),this.zr=new Np,this.zr.onScannedAsset(this.JE)}onEvent(t){this.O=t}onAsset(t){this.ZE=t}onStyleSheetFound(t){this.QE=t}start(){this.B||(this.B=!0,this.Ud.observe(),this.$r.observe(),this.P.observe())}stop(){this.B&&(this.Ud.disconnect(),this.$r.disconnect(),this.P.disconnect(),this.B=!1)}XE(t){!t.rule||!this.B||this.zr.scanCssString(t.rule)}tS(t){this.B&&O.getMaskedElementDetails(t).state===O.MaskedElementState.NotMasked&&this.KE.push(t)}Po(t){csSetTimeout(()=>{for(let e of t)switch(e.type){case"attributes":this.zr.scanElement(e.target,e.attributeName);break;case"characterData":this.eS(e.target);break;case"childList":}})}eS(t){Fi(t)&&csNodeparentNode.apply(t)&&rn(csNodeparentNode.apply(t))&&this.zr.scanCssString(t.data)}}return s})(),lc=(()=>{class s{constructor(t){this.jd=[],this.Hd=[],this.qt={},this.Gt=t}setQueryParams(t){csArray.prototype.forEach.call(Object.keys(t),e=>{this.qt[e]=t[e]})}removeQueryParams(t){t?csArray.prototype.forEach.call(t,e=>{delete this.qt[e]}):this.qt={}}onBeaconSuccess(t){csArray.prototype.push.call(this.jd,t)}onBeaconFailure(t){csArray.prototype.push.call(this.Hd,t)}send(t){let e=ni.toQuery({...this.qt,ct:Zi.UNCOMPRESSED}),i=this.sS(e,t);return i?csArray.prototype.forEach.call(this.jd,n=>n()):csArray.prototype.forEach.call(this.Hd,n=>n(this.qt)),i}sS(t,e){try{if(typeof csNavigatorsendBeacon!="function")return!1;let i=csNavigatorsendBeacon(`${this.Gt}?${t}`,e||"");if(i)return i}catch{}return typeof navigator.sendBeacon!="function"?!1:navigator.sendBeacon(`${this.Gt}?${t}`,e||"")}}return s})(),xp=(()=>{class s{constructor(t){this.Oo={},this.Se=new yn(t)}save({key:t,metadata:e,events:i}){this.Se.isThresholdReached()||(this.Se.addString(t),typeof i=="string"?this.Se.addString(i):this.Se.addArrayBuffer(i),!this.Se.isThresholdReached()&&(this.Oo[t]={metadata:e,events:i}))}recover(t){let e=[];csArray.prototype.forEach.call(this.iS(),i=>{let n=this.Oo[i];n!==void 0&&(delete n.metadata.datatype,csArray.prototype.push.call(e,n),this.rS(i))}),e.length!==0&&(t(e),this.Se.reset())}iS(){return Object.keys(this.Oo)}rS(t){delete this.Oo[t]}}return s})(),Re=(()=>{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})(),Vp=(()=>{class s{constructor(t,e,i){this.Fi=t,this.nS=i,this.gi=Re.NOT_STARTED,this.Mo=[],this.Gc=0,this.oS=self.origin,this.ve=typeof window=="object"?"":"worker-",this.Se=new yn(e),this.Wc()}async Wc(){await this.Bd(),this.gi===Re.READY?this.aS():this.nS(this.Mo)}aS(){csArray.prototype.forEach.call(this.Mo,t=>{this.save(t)}),this.Mo=[]}async save(t){try{if(this.gi===Re.OPEN_IN_PROGRESS){csArray.prototype.push.call(this.Mo,t);return}if(this.gi!==Re.READY||this.Se.isThresholdReached())return;let{key:e,metadata:i,events:n}=t;if(this.Se.addString(e),typeof n=="string"?this.Se.addString(n):this.Se.addArrayBuffer(n),this.Se.isThresholdReached())return;await this.Jt.put(`${this.oS}/${e}`,new Response(n,{headers:i}))}catch{}}async recover(t){!this.Jt&&(await this.Bd(),this.gi!==Re.READY)||this.cS(t)}async Bd(){try{this.gi=Re.OPEN_IN_PROGRESS,this.Jt=await self.caches.open(`${this.ve}${this.Fi}`),this.gi=Re.READY}catch{this.gi=Re.OPEN_FAILED}}async cS(t){try{if(this.Gc++,this.Gc>1)return;let e=await this.Jt.keys();if(e.length===0)return;let i=await this.Jt.matchAll(),n=csArray.prototype.map.call(i,c=>{let l={};c.headers.forEach((g,u)=>{l[u]=g}),delete l["content-type"];let d=l.datatype;return delete l.datatype,d==="json"||d==="base64"?c.text().then(g=>({metadata:l,events:g})):c.arrayBuffer().then(g=>({metadata:l,events:g}))}),a=await Promise.all(n);await Promise.all(csArray.prototype.map.call(e,c=>this.Jt.delete(c))),t(a),this.Se.reset()}catch{}finally{this.Gc--}}}return s})(),Up=(()=>{class s{constructor(t){try{this.lS(t)}catch{this.Yc()}}lS(t){self.caches?this.hS(t):this.Yc()}save(t){this.ko.save(t)}recover(t){this.ko.recover(t)}hS(t){this.ko=new Vp(t,s.Fd,e=>{this.Yc(e)})}Yc(t){this.ko=new xp(s.Fd),t&&csArray.prototype.forEach.call(t,e=>{this.ko.save(e)})}}return s.Fd=1024*1024*16,s})(),Tr=(()=>{let s;return function(r){r.REQUEST_START="requestStart",r.DOM_INTERACTIVE="domInteractive",r.TIME_ORIGIN="timeOrigin"}(s||(s={})),s})();var jp=(()=>{class s extends fi{isListening(t){return pi.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 As){let c=O.getMaskedAttributeDetails(n);n.attributes=this.Lo(n,c)}if(O.getMaskedElementDetails(n).state===O.MaskedElementState.Child){if(t.domEvent==="initialDOM")return null;t.nodes=csArray.prototype.filter.call(t.nodes,c=>c!==n);continue}G.traverse(n,c=>{if(c instanceof As){let l=O.getMaskedAttributeDetails(c);c.attributes=this.Lo(c,l);let d=O.getMaskedElementDetails(c);d.state===O.MaskedElementState.Parent&&(this.Kc(c,d),e++)}})}return e>0&&ht.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)}Kc(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:""}),As.getAttribute(t,"data-cs-mask")||csArray.prototype.push.call(t.attributes,{name:"data-cs-mask",value:"",namespaceURI:""})}}return he([Nt("MaskedElementProcessor.processEvent")],s.prototype,"processEvent",null),s})(),ce=(()=>{let s;return function(r){r.ANONYMIZED_TEXT_STATUS_PROP="anonymizationStatus",r.WHITELISTED_STATUS="whitelisted";function t(n){return G.getProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP)===r.WHITELISTED_STATUS}r.isWhitelistedElement=t;function e(n){G.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,r.WHITELISTED_STATUS)}r.whitelistElement=e;function i(n){G.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,void 0)}r.removeWhitelistElement=i}(s||(s={})),s})(),Hp=/[\u4E00-\u9FFF]|[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]/g,Bp="\uFF41",Fp=/[^a\s]/g,zp="a";function Rr(s){let r=csString.prototype.replace.call(s,Hp,Bp);return csString.prototype.replace.call(r,Fp,zp)}var $p=["id","class","style","srcset","sizes","rel","type","width","height","media","align","dir","bgcolor","color","border","colspan","rowspan","cols","rows","size","start","slot","data-cs-override-id"],hc=s=>{let r=new Set($p);return csArray.prototype.forEach.call(s,t=>{r.add(t)}),r},qp=["svg","slot"],Gp=(s,r,t)=>t==="radio"&&s==="input"&&r==="name"||csArray.prototype.indexOf.call(qp,s)>-1,uc={href:new Set(["a"]),src:new Set(["iframe"])},Wp=s=>uc.hasOwnProperty(s),Yp=(s,r,t)=>{var e;return((e=uc[r])===null||e===void 0?void 0:e.has(s))&&!te(t)},Xp=(s,r,t)=>(t==="submit"||t==="button")&&s==="input"&&r==="value",Kp=(()=>{class s{constructor(t,e,i,n=null){this.We=t,this.ES=e,this.I=i,this.xo=n,this.SS=hc(this.ES)}sanitize(t,e){return G.traverse(t,(i,n)=>{if(i.anonymized=this.We,i.nodeType===3){let{anonymizedValue:a,withAnonymization:c}=this.getAnonymizedValue(i.data,n?n==null?void 0:n.localName:e==null?void 0:e.targetLocalName,n?G.getProperties(n):e==null?void 0:e.targetProps);i.anonymized=c,i.data=a;return}if(As.isElement(i))return this.vS(i);if(i.nodeType===4){i.data=this.We?Rr(i.data):this.I.checkAndAnonymizePII(i.data,this.xo);return}}),t}setAnonymization(t){this.We=t}getAnonymizedValue(t,e,i){if(e==="style")return{anonymizedValue:t,withAnonymization:!1};let n=(i==null?void 0:i[ce.ANONYMIZED_TEXT_STATUS_PROP])===ce.WHITELISTED_STATUS;return this.We&&!n?{anonymizedValue:Rr(t),withAnonymization:!0}:{anonymizedValue:this.I.checkAndAnonymizePII(t,this.xo),withAnonymization:!1}}vS(t){if(G.getProperty(t,"SVG"))return;let e=Le(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.We,n.value=this.getAnonymizedAttributeValue(t.localName,n.name,n.value,i),n))}getAnonymizedAttributeValue(t,e,i,n){return this._S(t,e,n)?i:Wp(e)?Yp(t,e,i)?this.I.anonymizePII(i):i:this.We&&Xp(t,e,n)?Rr(i):this.We?"":this.I.checkAndAnonymizePII(i,null)}_S(t,e,i){return Gp(t,e,i)||this.SS.has(e)}}return s})();var Jp=()=>(s,r,t)=>{t.value=Zp(t.value)},Qp=csQueueMicrotask||csSetTimeout;function Zp(s){let r=csSymbol("oncePerTickSymbol"),t=null,e={},i=function(){var n;let a=(n=this)!==null&&n!==void 0?n:e;if(t=arguments,a[r])return;a[r]=!0,Qp(()=>{a[r]=!1,s.apply(a,t)})};return i.oncePerTickSymbol=r,i}Jp.isScheduled=(s,r)=>{let t=r.oncePerTickSymbol;return s[t]};var tf=(()=>{let s;return function(r){r.ENCRYPTED_NODE_PROP="toEncrypt";function t(n){return G.getProperty(n,r.ENCRYPTED_NODE_PROP)===!0}r.shouldEncrypt=t;function e(n){G.setProperty(n,r.ENCRYPTED_NODE_PROP,!0)}r.markEncryptedNode=e;function i(n){G.setProperty(n,r.ENCRYPTED_NODE_PROP,void 0)}r.unmarkEncryptedNode=i}(s||(s={})),s})(),Ne=(()=>{let s;return function(r){r.EDITABLE_NODE_PROP="editableNode";function t(n){return G.getProperty(n,r.EDITABLE_NODE_PROP)===!0}r.isEditableNode=t;function e(n){G.setProperty(n,r.EDITABLE_NODE_PROP,!0)}r.markEditableNode=e;function i(n){G.setProperty(n,r.EDITABLE_NODE_PROP,void 0)}r.unmarkEditableNode=i}(s||(s={})),s})();var Mo=(()=>{let s;return function(r){function t(e){return e.type==="TextVisibility"}r.isTextVisibilityEvent=t}(s||(s={})),s})(),ef=(()=>{class s extends fi{constructor(t,e,i,n=null){super(),this.I=i,this.xo=n,this.Ho=new Kp(t,e,i,n)}setAnonymization(t){this.Ho.setAnonymization(t)}isListening(t){return Mo.isTextVisibilityEvent(t)||pi.isDOMEvent(t)&&(t.domEvent==="initialDOM"||t.domEvent==="nodesAdded"||t.domEvent==="attributeChanged"||t.domEvent==="characterDataChanged")}processEvent(t){if(Mo.isTextVisibilityEvent(t))return t.text=this.I.checkAndAnonymizePII(t.text,this.xo),t;switch(t.domEvent){case"initialDOM":case"nodesAdded":this.sl(t);break;case"attributeChanged":this.CS(t);break;case"characterDataChanged":this.IS(t);break}return t}sl(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.Ho.sanitize(n,i)}CS(t){if(!t.isSvg&&t.newValue){if(t.localName===null){t.newValue="";return}t.newValue=this.Ho.getAnonymizedAttributeValue(t.localName,t.attribute,t.newValue,t.inputType)}}IS(t){t.newValue=this.Ho.getAnonymizedValue(t.newValue,t.parentLocalName,t.parentProps).anonymizedValue}}return he([Nt("AnonymizedTextProcessor.processEvent")],s.prototype,"processEvent",null),s})();var sf=(()=>{class s extends fi{constructor(t){super(),this.J=t}isListening(t){return pi.isDOMEvent(t)&&t.domEvent==="initialDOM"}processEvent(t){return t.domEvent==="initialDOM"&&(t.initialDOM.baseURI=this.J.anonymizeUrl(t.initialDOM.baseURI)),t}}return he([Nt("UrlAnonymizationProcessor.processEvent")],s.prototype,"processEvent",null),s})(),Cr="textarea",rf=(()=>{class s extends fi{isListening(t){return pi.isDOMEvent(t)&&(t.domEvent==="initialDOM"||t.domEvent==="nodesAdded"||t.domEvent==="characterDataChanged")}processEvent(t){switch(t.domEvent){case"initialDOM":this.OS(t);break;case"nodesAdded":this.NS(t);break;case"characterDataChanged":this.MS(t);break}return t}OS(t){G.traverse(t.initialDOM,(e,i)=>{(this.Xd(e,i)||this.Kd(e))&&(e.data=this.il(e.data))})}NS(t){for(let e of t.nodes)G.traverse(e,(i,n)=>{(this.kS(i,n,t)||this.Kd(i))&&(i.data=this.il(i.data))})}MS(t){var e;(t.parentLocalName===Cr||!((e=t.targetProps)===null||e===void 0)&&e.editableNode)&&(t.newValue=this.il(t.newValue))}il(t){return csString.prototype.replace.call(t,/\S/g,"\u2022")}kS(t,e,i){return this.DS(t,i)||this.Xd(t,e)}DS(t,e){return t.nodeType===3&&e.targetLocalName===Cr}Xd(t,e){return t.nodeType===3&&Z(e)&&e.localName===Cr}Kd(t){return t.nodeType===3&&Ne.isEditableNode(t)}}return he([Nt("AnonymizedEditableTextProcessor.processEvent")],s.prototype,"processEvent",null),s})(),nf=(()=>{class s{constructor(t){this.S=t,this.Vt={boundElement:window,type:"resize",listener:()=>this.resizeListener()},this.S=t}observe(){Pt(this.Vt),this._c()}_c(){this.resizeListener()}disconnect(){Ot(this.Vt)}resizeListener(){let t={width:ft.windowWidth(),height:ft.windowHeight()};this.S(t)}}return ot([L("resize")],s.prototype,"resizeListener",null),s})(),Pe=(()=>{let s;return function(r){r.PORTRAIT="Portrait",r.LANDSCAPE="Landscape"}(s||(s={})),s})(),Pi=(()=>{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})(),Oi=(()=>{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})(),of=(()=>{let s;return function(r){let t=null;r.isScreenOrientationApiSupported=()=>{var c;return t!=null?t:t=!!(!((c=bt.screen)===null||c===void 0)&&c.orientation)},r.isDeprecatedScreenOrientationApiSupported=()=>"orientation"in bt;function e(){return Pe.LANDSCAPE}function i(){var c;switch((c=bt.screen.orientation)===null||c===void 0?void 0:c.type){case Pi.PORTRAIT_PRIMARY:case Pi.PORTRAIT_SECONDARY:return Pe.PORTRAIT;case Pi.LANDSCAPE_PRIMARY:case Pi.LANDSCAPE_SECONDARY:return Pe.LANDSCAPE;default:return Pe.PORTRAIT}}function n(){switch(window.orientation){case Oi.PORTRAIT:case Oi.PORTRAIT_REVERSE:return Pe.PORTRAIT;case Oi.LANDSCAPE:case Oi.LANDSCAPE_REVERSE:return Pe.LANDSCAPE;default:return Pe.PORTRAIT}}function a(){return r.isScreenOrientationApiSupported()?i():r.isDeprecatedScreenOrientationApiSupported()?n():e()}r.getCurrentOrientation=a}(s||(s={})),s})(),af=(()=>{class s extends ue{constructor(){super(...arguments),this.rl=null,this.nl=null,this.js=new nf(t=>{this.produceEvent({...t,type:"viewportResize"}),this.onScreenPotentiallyChanged()})}onScreenPotentiallyChanged(){let t=of.getCurrentOrientation(),{screenWidth:e,screenHeight:i}=this.LS(t);if(e!==this.rl||i!==this.nl){this.rl=e,this.nl=i;let n={type:"screenResize",width:e,height:i};this.produceEvent(n)}}LS(t){let e,i,n=ft.screenWidth(),a=ft.screenHeight();return t===Pe.PORTRAIT?(e=n,i=a):(e=Math.max(n,a),i=Math.min(n,a)),{screenWidth:e,screenHeight:i}}onStart(){this.js.observe()}onStop(){this.rl=null,this.nl=null,this.js.disconnect()}}return s})();function cf(s){let r=csEventtarget.apply(s);return r&&nt(r)&&csElementshadowRoot.apply(r)&&s.composedPath?s.__csOriginalTarget||s.composedPath()[0]:r}var Is=(()=>{class s{get selectors(){return this.He===""?null:this.He}constructor(t,e={closest:!1}){this.S=t,this.Et=e,this.He="",this.Xr=sr(),this.Po=ls(i=>{if(this.He==="")return;let n=[];for(let a of Pa(i,c=>c.addedNodes)){if(!(kh(a)||this.Et.closest&&Fi(a)))continue;let c=this.Et.closest?this.xS(a,this.He):this.findMatchingElements(a,this.He);so(c,n)}n.length&&this.S(n,"added")},"SelectorObserver.processMutations"),this.VS=(i,n)=>{if(this.He===""||n!=="added")return;let a=this.findMatchingElements(i,this.He);a.length&&this.S(a,"added")},this.F=new We(this.Po,this.VS)}observe(t){this.He===""?this.F.observe():this.He+=",",this.He+=t;let e=this.findMatchingElements(document,t);for(let i of this.F.shadowRoots){let n=this.findMatchingElements(i,t);so(n,e)}e.length&&(K(e,i=>{this.Xr.add(i)}),this.S(e,"initial"))}processPendingMutations(){this.Po(this.F.takeRecords())}disconnect(){this.F.disconnect(),this.Xr.clear(),this.He=""}xS(t,e){let i=[];if(Fi(t)){if(t.parentElement){let n=Wr(t.parentElement,e);n&&csArray.prototype.push.call(i,n)}return csArray.prototype.filter.call(i,n=>this.Xr.has(n)===!1)}else{if(li(t)){let n=Wr(t,e);if(n)return csArray.prototype.push.call(i,n),csArray.prototype.filter.call(i,a=>this.Xr.has(a)===!1)}return this.findMatchingElements(t,e)}}findMatchingElements(t,e){let i=ri(window.csquerySelectorAll[t.nodeType].call(t,e));return nt(t)&&Yt.call(t,e)&&csArray.prototype.push.call(i,t),csArray.prototype.filter.call(i,n=>this.Xr.has(n)===!1)}}return ot([L()],s.prototype,"observe",null),ot([L()],s.prototype,"disconnect",null),ot([Nt("SelectorObserver.findMatchingElements")],s.prototype,"findMatchingElements",null),s})(),lf=(()=>{class s extends ue{constructor(){super(),this.Jd=t=>{let e=cf(t);e&&this.ol(e,t.type)},this.ie=new Ms((t,e)=>{switch(e){case"initial":case"added":this.Qd(t);break;case"removed":this.Zd(t);break}}),this.U=new Is((t,e)=>{(e==="initial"||e==="added")&&this.US(t)})}static shouldProcessElement(t){return t.tagName==="VIDEO"&&ut.isConnected(t)&&!O.isMaskedElement(t)&&!O.isMaskedElementChild(t)}static isPlaying(t){return!t.paused&&!t.ended}onStart(){this.Qd(document),this.ie.observe(),this.U.observe("video")}onStop(){this.Zd(document),this.ie.disconnect(),this.U.disconnect()}ol(t,...e){if(this.isStarted&&s.shouldProcessElement(t))for(let i of e){let n=et(t),a={type:"VideoEvent",videoEventType:i,nodeId:n};i==="seeked"&&(a.newTimePositionInSec=t.currentTime),Xr(()=>this.produceEvent(a))}}US(t){for(let e of t)this.ol(e,"seeked"),s.isPlaying(e)&&this.ol(e,"play")}Qd(t){for(let e of["play","pause","seeked"])Pt({type:e,listener:this.Jd,boundElement:t})}Zd(t){for(let e of["play","pause","seeked"])Ot({type:e,listener:this.Jd,boundElement:t})}}return s})();function hf(s){return s.nodeName==="SELECT"}function _n(s){return s.nodeName==="INPUT"}function uf(s){return s.nodeName==="TEXTAREA"||_n(s)&&!dc(s)&&!pc(s)}function dc(s){return _n(s)&&s.type==="number"}function pc(s){return _n(s)&&(s.type==="checkbox"||s.type==="radio")}var df=(()=>{class s extends ue{constructor(t){super(),this.Q=t,this.al=sr(),this.zi=e=>this.inputHandler(e),this.mi=[],this.jS(),this.HS(),this.U=new Is(e=>{for(let i of e)this.cl(i)&&Ft(()=>{this.ll(i,et(i))},"low")}),this.ie=new Ms((e,i)=>{switch(i){case"initial":case"added":Pt({type:"change",listener:this.zi,boundElement:e});break;case"removed":Ot({type:"change",boundElement:e,listener:this.zi});break}})}onStart(){Pt({type:"keyup",boundElement:document,listener:this.zi}),Pt({type:"change",boundElement:document,listener:this.zi}),K(this.mi,t=>t.activate()),this.U.observe(csArray.prototype.join.call(s.BS,",")),this.ie.observe()}onStop(){Ot({type:"keyup",boundElement:document,listener:this.zi}),Ot({type:"change",boundElement:document,listener:this.zi}),K(this.mi,t=>t.deactivate()),this.U.disconnect(),this.ie.disconnect(),this.al.clear()}ll(t,e){var i,n,a;if(this.al.has(t))return;if(this.al.add(t),hf(t)){let d={type:"InputEvent",inputType:"select",target:et(t),selectedIndex:t.selectedIndex,timestamp:N.now()};this.produceEvent(d);return}if(pc(t)){let d={type:"InputEvent",inputType:"checkable",target:et(t),checked:t.checked,timestamp:N.now()};this.produceEvent(d);return}let c=uf(t),l=dc(t);if(c||l){let d=(i=t.value)!==null&&i!==void 0?i:"";if(!((n=this.Q)===null||n===void 0)&&n.shouldEncrypt(t)){(a=this.Q)===null||a===void 0||a.registerInputNodeToEncrypt({targetId:e,targetValue:d,date:N.now()});return}let g=l?"0":"\u2022",u={type:"InputEvent",inputType:"text",target:et(t),value:csString.prototype.replace.call(d,/\S/g,g),timestamp:N.now()};this.produceEvent(u)}}inputHandler(t){if(!this.isStarted)return;let e=gt(t),i=et(e);!i||!this.cl(e)||ut.isConnected(e)&&Ft(()=>{this.ll(e,i)},"low")}jS(){this.trackChanges(HTMLInputElement,"checked"),this.trackChanges(HTMLInputElement,"value"),this.trackChanges(HTMLTextAreaElement,"value")}HS(){this.trackChanges(HTMLSelectElement,"selectedIndex"),this.trackChanges(HTMLSelectElement,"value"),this.trackChanges(HTMLOptionElement,"selected",!0)}trackChanges(t,e,i=!1){let n=Gr(t.prototype,e,(a,c,l)=>{if(l!==c&&ut.isConnected(a)){let d=i?a.parentElement:a;this.FS(d)}});n&&csArray.prototype.push.call(this.mi,n)}cl(t){return!O.isMaskedElement(t)&&!O.isMaskedElementChild(t)&&(Ki(t)||on(t)||nn(t))}FS(t){if(this.isStarted&&ut.isConnected(t)){let e=et(t);e&&this.cl(t)&&Ft(()=>{this.ll(t,e)},"low")}}}return s.BS=["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"],he([vt()],s.prototype,"inputHandler",null),he([L()],s.prototype,"trackChanges",null),s})();var pf=(()=>{class s extends ue{constructor(){super(),this.ys=typeof window.customElements=="object"&&typeof window.customElements.whenDefined=="function"&&typeof window.Promise=="function",this.zS=ze("CustomElementRegistrationProducer:onElementsFound",e=>{for(let i of e)O.isMaskedElement(i)||O.isMaskedElementChild(i)||Lh(i)&&this.register(csString.prototype.toLowerCase.call(i.tagName))});let t=ir(this.zS);this.$r=new ac(e=>t.push(e)),this.Us=new Set}onStart(){this.ys&&this.$r.observe()}onStop(){this.Us.clear(),this.$r.disconnect()}async register(t){this.Us.has(t)||(this.Us.add(t),await window.customElements.whenDefined(t),this.produceEvent({type:"CustomElementRegistration",tagName:csString.prototype.toLowerCase.call(t)}))}}return he([L()],s.prototype,"register",null),s})(),ko=(()=>{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 tp(){if(this.isNavigationTimingObserverSupported())return new window.PerformanceObserver(t=>s.$S(t))}static $S(t){let i=t.getEntriesByType("navigation")[0];i&&(this.yi=i,s.$i(i))}static kr(t){this.qS(t),this.yi&&t(this.yi),this.Oe||this.GS()}static qS(t){this.It.add(t)}static WS(t){this.It.delete(t)}static GS(){if(this.Kr||(this.Kr=this.tp()),!this.Kr){this.yi||(this.yi={requestStart:window.performance.timing.requestStart,domInteractive:window.performance.timing.domInteractive}),this.$i(this.yi);return}this.Kr.observe({type:"navigation",buffered:!0}),this.Oe=!0}static $i(t){this.It.forEach(e=>e(t))}static Lr(t){this.WS(t),this.It.size===0&&this.Gr()}static Gr(){var t;this.Oe&&((t=this.Kr)===null||t===void 0||t.disconnect(),this.Oe=!1,this.yi=null,this.Kr=this.tp())}constructor(t){this.S=t}observe(){s.kr(this.S)}disconnect(){s.Lr(this.S)}}return s.Oe=!1,s.It=new Set,s.yi=null,s})(),ff=(()=>{class s extends ue{constructor(){super(...arguments),this.Bo=null,this.ep=new ko(t=>{if(this.Bo)return;let e=this.YS(t);e&&(this.Bo=e,this.produceEvent(e))})}onStart(){if(this.Bo){this.produceEvent(this.Bo);return}this.ep.observe()}onStop(){this.ep.disconnect()}YS(t){let e=ko.getTimeOrigin();return{type:"PerformanceTiming",timings:{timeOrigin:e,requestStart:Math.floor(e+t.requestStart),domInteractive:Math.floor(e+t.domInteractive)},timestamp:N.now()}}}return s})(),mt=(()=>{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})(),Ni=(()=>{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})(),gf=(()=>{class s{compute(t,e){let i=this.Hs(e.x)-this.Hs(t.x),n=this.Hs(e.y)-this.Hs(t.y),a=e.time-t.time;return{duration:a,distance:this.sp(i,n),direction:this.XS(i,n),velocity:this.KS(i,n,a)}}computePinchMetrics(t,e){let i=this.Hs(e.x)-this.Hs(t.x),n=this.Hs(e.y)-this.Hs(t.y);return{duration:e.time-t.time,distance:this.sp(i,n)}}getScale(t,e){return Math.abs(e/t-1)}Hs(t){return t/window.devicePixelRatio}sp(t,e){return Math.round(Math.sqrt(t*t+e*e))}KS(t,e,i){let n=i/1e3,a=t/n,c=e/n;return Math.round(Math.abs(a)+Math.abs(c))}XS(t,e){return Math.abs(t)>Math.abs(e)?t>0?Ni.RIGHT:Ni.LEFT:e>0?Ni.DOWN:Ni.UP}}return s})(),fc=typeof performance!="undefined"&&!!performance.now,Do=fc?()=>performance.now():csDate.now,mf=(()=>{var s;return fc?(s=performance.timing)===null||s===void 0?void 0:s.navigationStart:0})(),Mi={now(){return Math.round(Do()+mf)},elapsed(){return Do()}};function Lo(s,r=0){let t=Math.pow(10,r);return Math.round(s*t)/t}var yf=1e3,Ef=100,Sf=.1,Qr=(()=>{class s{constructor(){this.Ut={},this.ul=()=>{},this.Fo=new gf,this._e()}static isGestureDetectionSupported(){return typeof devicePixelRatio!="undefined"}onGesture(t){this.ul=t}isValidTouchEvent(t){return"touches"in t&&"changedTouches"in t}processActionDown(t){if(!this.JS(t))return;this.QS(t)&&this._e();let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:Mi.now()};if(t.touches.length===1)this.Ut.startPinchTime=e.time,this.Ut.firstTouch=e;else if(t.touches.length===2&&(this.Ut.secondTouch={x:t.touches[1].clientX,y:t.touches[1].clientY,time:Mi.now()},this.Ut.firstTouch&&this.Ut.secondTouch)){let i=this.Fo.computePinchMetrics(this.Ut.firstTouch,this.Ut.secondTouch);this.qi=i.distance}csArray.prototype.push.call(this.Jr,e),this.zo=gt(t)}processActionMove(){this.dl=!0}processActionUp(t){if(this.ZS(t)){if(csArray.prototype.push.call(this.Jr,{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:Mi.now()}),this.sv(t)&&this.Ut.startPinchTime){let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:this.Ut.startPinchTime},i={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:Mi.now()};this.Ut.firstTouch&&(this.Ut.firstTouch=e,this.Ut.secondTouch=i),this.iv(t)}this.qi||this.rv()&&this.nv(t)}}_e(){this.Jr=[],this.zo=null,this.dl=!1,this.qi=null,this.Qr=!0}nv(t){let e=this.Fo.compute(this.Jr[0],this.Jr[1]);this.Qr=t.isTrusted;let i=this.dl?this.ov(e):this.av(e);if(this.cv(i.type,t.changedTouches)){let n=t.changedTouches[0];i.pageX=Lo(n.pageX,1),i.pageY=Lo(n.pageY,1)}this.ul(i,t)}iv(t){if(!(this.Ut.firstTouch&&this.Ut.secondTouch))return;let e=this.Fo.computePinchMetrics(this.Ut.firstTouch,this.Ut.secondTouch);this.Qr=t.isTrusted;let i=this.lv(e);i&&this.ul(i,t)}lv(t){return!this.qi||this.Fo.getScale(this.qi,t.distance)t.distance?mt.PINCH_IN:mt.PINCH_OUT,target:this.zo,distance:t.distance,isTrusted:this.Qr}}ov(t){return{type:t.velocity0}ZS(t){return t.changedTouches.length>0}sv(t){return this.dl&&!!this.qi&&t.changedTouches.length===1&&t.touches.length===1}}return s})(),vf="touchstart",_f="touchmove",wf="touchend",Af=(()=>{class s{constructor(t){this.S=t}observe(){s.ip&&s.pl(this.S)}disconnect(){s.ip&&s.gl(this.S)}static hv(t,e){csArray.prototype.forEach.call(Ns(s.It),i=>i(t,e))}static pl(t){s.It.has(t)||(s.It.add(t),s.It.size===1&&(s.Zr.onGesture(s.hv),csArray.prototype.forEach.call(s.Ls,e=>Pt(e))))}static gl(t){s.It.delete(t),s.It.size===0&&csArray.prototype.forEach.call(s.Ls,e=>Ot(e))}static ml(t){if(s.Zr.isValidTouchEvent(t))switch(t.type){case"touchstart":s.Zr.processActionDown(t);break;case"touchmove":s.Zr.processActionMove();break;case"touchend":s.Zr.processActionUp(t);break}}}return s.Ls=[{boundElement:bt.document,type:vf,listener:r=>s.ml(r)},{boundElement:bt.document,type:_f,listener:r=>s.ml(r)},{boundElement:bt.document,type:wf,listener:r=>s.ml(r)}],s.ip=Qr.isGestureDetectionSupported(),s.It=new Set,s.Zr=new Qr,s})(),bf=(()=>{class s extends ue{constructor(){super(),this.tn=new Af(this.yl.bind(this))}onStart(){this.tn.observe()}onStop(){this.tn.disconnect()}yl(t){let e=this.uv(t);e&&this.produceEvent(e)}uv(t){if(!this.pv(t))return null;let e=Dd(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}pv(t){return t.target!==null&&!(nt(t.target)&&O.isMaskedElementChild(t.target))}}return s})();var Ss=[],Zr=!1,gc=ls(Rf,"executeTasks");function Tf(s){if(csArray.prototype.push.call(Ss,s),!Zr){for(let r=0;r<3;r++)csSetTimeout(gc);Zr=!0}}function Rf(){let s=csDate.now();for(let r=0;r=35){Ss=csArray.prototype.slice.call(Ss,r+1),csSetTimeout(gc);return}Ss=[],Zr=!1}var Ce=(()=>{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})(),mc=(()=>{class s{constructor(){this.At=new Os,this._t=Ce.Stopped,this.S=null,this.op=t=>{this._t===Ce.Stopped||!t||(this.S(t),this.ap())}}get queueLength(){return this.At.length}start(t){if(this.S)throw new Error("callback already set");this._t=Ce.Started,this.S=t}push(t){this.At.push(t),this.Al()}stop(){this.S=null,this._t=Ce.Stopped,this.At.clear()}static pipe(t,e){let i=t,n=new csArray;for(let c of e){let l=new s;l.start(d=>{c.pushEvent(d)}),csArray.prototype.push.call(n,l),K(i,d=>d.subscribe(g=>l.push(g))),i=[c]}let a=new Cf(n);return K(i,c=>c.subscribe(l=>a.push(l))),a}cp(){return this._t===Ce.Stopped}Ye(){return this._t===Ce.Processing}ap(){if(!this.cp()){if(this.At.isEmpty){this._t=Ce.Completed;return}this._t=Ce.Processing,Tf(()=>{let t=this.At.pop();t instanceof Sn?t.complete(this.op):this.op(t)})}}Al(){this.cp()||this.Ye()||this.ap()}}return s})(),Cf=(()=>{class s extends mc{constructor(t){super(),this.lp=t}get queueLength(){return csArray.prototype.reduce.call(this.lp,(t,e)=>t+e.queueLength,0)}stop(){super.stop(),K(this.lp,t=>t.stop())}}return s})(),If=(()=>{class s{constructor(t,e=[]){this.producers=t,this.processors=e,this.B=!1,this.It=[]}get pendingEvents(){var t,e;return(e=(t=this.At)===null||t===void 0?void 0:t.queueLength)!==null&&e!==void 0?e:0}start(){if(this.B)throw new Error("Recording is already started.");let t=this.It;this.At=mc.pipe(this.producers,this.processors),this.At.start(e=>csArray.prototype.forEach.call(t,i=>i(e))),K(this.producers,e=>e.start()),K(this.processors,e=>e.start()),this.B=!0}stop(){this.At.stop(),this.It.length=0;for(let t of this.producers)t.stop();for(let t of this.processors)t.stop();this.B=!1,this.It=[]}subscribe(t){if(this.B)throw new Error("Recording is already started.");return csArray.prototype.push.call(this.It,t),()=>this.It=csArray.prototype.filter.call(this.It,e=>e!==t)}}return s})(),Pf=(()=>{class s extends ue{constructor(t){super(),this.Pe=t}subscribe(t){return super.subscribe(t)}onStart(){K(this.Pe,t=>{t.onEvent(e=>{var i;return this.Hi(e,(i=t.eventType)!==null&&i!==void 0?i:"browser")})}),K(this.Pe,t=>{var e;(e=t.start)===null||e===void 0||e.call(t)})}onStop(){K(this.Pe,t=>{var e;return(e=t.stop)===null||e===void 0?void 0:e.call(t)})}Hi(t,e){this.produceEvent({timestamp:N.now(),type:"Legacy",originalEvent:t,eventType:e})}}return s})();function Of(s,r,t){let{timestamp:e}=s;switch(s.domEvent){case"initialDOM":{let{initialDOM:i}=s,n={type:D.INITIAL_DOM,date:e,args:[i]};t.emitInitialDomDone(n);break}case"nodesAdded":{csArray.prototype.forEach.call(s.nodes,i=>{r({type:D.MUTATION_INSERT,date:e,args:[s.target,s.nextSibling,i]})});break}case"nodesMoved":{for(let i of s.nodesIds)r({type:D.MUTATION_MOVE,date:e,args:[i,s.nextSibling,s.target]});break}case"nodesRemoved":{csArray.prototype.forEach.call(s.nodesIds,i=>{r({type:D.MUTATION_REMOVE,date:e,args:[i]})});break}case"attributeChanged":{let{target:i,namespace:n,attribute:a,newValue:c}=s;r({type:D.MUTATION_ATTRIBUTE,date:e,args:[i,n,a,c]});break}case"characterDataChanged":{let{target:i,newValue:n}=s;r({type:D.MUTATION_CHARACTER_DATA,date:e,args:[i,n]});break}case"cssRuleInserted":{let{target:i,rule:n,index:a}=s,c=Z(a)?[i,n,a]:[i,n];r({type:D.STYLESHEET_RULE_INSERT,date:e,args:c});break}case"cssRuleDeleted":{let{target:i,index:n}=s;r({type:D.STYLESHEET_RULE_DELETE,date:e,args:[i,n]});break}case"cssRuleUpdated":{let{target:i,rule:n,index:a}=s;r({type:D.STYLESHEET_RULE_UPDATE,date:e,args:[i,n,a]});break}case"shadowRootAttached":{let{target:i,shadowRoot:n}=s;r({type:D.ATTACH_SHADOW,date:e,args:[i,n]});break}case"adoptedStyleSheetRegistered":{let{sheetId:i,cssRules:n}=s;r({type:D.REGISTER_ADOPTED_STYLE_SHEET,date:e,args:[i,{cssRules:n}]});break}case"adoptedStyleSheetsSet":{let{target:i,sheetsIds:n}=s;r({type:D.SET_ADOPTED_STYLE_SHEETS,date:e,args:[i,n]});break}case"adoptedStyleSheetRuleInserted":{let{sheetId:i,rule:n,index:a}=s,c=Z(a)?[i,n,a]:[i,n];r({type:D.ADOPTED_STYLESHEET_RULE_INSERT,date:e,args:c});break}case"adoptedStyleSheetRuleDeleted":{let{sheetId:i,index:n}=s;r({type:D.ADOPTED_STYLESHEET_RULE_DELETE,date:e,args:[i,n]});break}case"adoptedStyleSheetRuleUpdated":{let{sheetId:i,rule:n,index:a}=s,c=[i,n,a];r({type:D.ADOPTED_STYLESHEET_RULE_UPDATE,date:e,args:c});break}default:j.error("translateDOMEvent: DOMEvent not supported");break}}function Nf(s){let r=Mf(s.data);return{type:D.GESTURE_RECOGNITION,args:[s.targetId,r],date:s.timestamp}}function Mf(s){let r={type:kf(s.type)};for(let t in s){let e=s[t];e!==void 0&&t!=="type"&&(r[t]=e)}return r}function kf(s){switch(s){case mt.DRAG:case mt.FLICK:return zs.SWIPE;case mt.LONG_PRESS:return zs.LONG_PRESS;case mt.TAP:return zs.TAP;case mt.PINCH_IN:return zs.PINCH_IN;case mt.PINCH_OUT:return zs.PINCH_OUT}}function Df(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 Lf=20;function xf(s){return Df(r=>{let t={visibleInViewPort:r},e={type:D.TEXT_VISIBILITY,date:N.now(),args:[t]};s(e)},{batchSize:Lf,autoFlushDelay:1e3})}function Vf(s){return{type:D.PERFORMANCE_TIMINGS,args:[{performanceTiming:Tr.REQUEST_START,timestamp:s.timings.requestStart},{performanceTiming:Tr.DOM_INTERACTIVE,timestamp:s.timings.domInteractive},{performanceTiming:Tr.TIME_ORIGIN,timestamp:s.timings.timeOrigin}],date:s.timestamp}}function Uf(s){switch(s.inputType){case"text":return{type:D.INPUT_TEXT,args:[s.target,s.value],date:s.timestamp};case"select":return{type:D.INPUT_SELECT,args:[s.target,s.selectedIndex],date:s.timestamp};case"checkable":return{type:D.INPUT_CHECKABLE,args:[s.target,s.checked],date:s.timestamp}}}var jf=500,Ir=0;function Hf(){return{processEvent(s,r){if(s.originalEvent.type===D.PERFORMANCE_RESOURCE_TIMING)return Ir>=jf?null:(Ir+=1,r({...s.originalEvent,date:s.timestamp}));r(s.originalEvent)},reset(){Ir=0}}}function Bf(s){switch(s.videoEventType){case"play":return{type:D.VIDEO_PLAY,args:[s.nodeId],date:s.timestamp};case"pause":return{type:D.VIDEO_PAUSE,args:[s.nodeId],date:s.timestamp};case"seeked":{let r=s;return{type:D.VIDEO_SEEK,args:[r.nodeId,r.newTimePositionInSec],date:s.timestamp}}default:return null}}var Ff=(()=>{class s{get pendingEvents(){return this.qo.pendingEvents}constructor(t,e,i,n,a){this.qo=t,this.E=e,this.we=i,this.ps=n,this.fs=a,this.Qt=()=>{},this.Go=()=>{},this.hp=xf(c=>this.Qt(c))}start(){var t,e;this.up=Hf(),this.qo.subscribe(i=>{var n,a,c,l,d,g;let u=i,{timestamp:y}=u;switch(u.type){case"Legacy":{let E=u.eventType==="user"?(n=this.Go)!==null&&n!==void 0?n:()=>{}:this.Qt;this.up.processEvent(u,E)}break;case"CustomElementRegistration":{this.Qt({type:D.CUSTOM_ELEMENT_REGISTRATION,date:y,args:[u.tagName]});break}case"DomEvent":{Of(u,this.Qt,this.E);break}case"InputEvent":{let E=Uf(u);(a=this.Go)===null||a===void 0||a.call(this,E);break}case"encryptedCharacterDataChanged":{let{target:E,rawData:v,encryptedData:b,encryptionMetadata:k}=u;this.Qt({type:D.MUTATION_ENCRYPTED_CHARACTER_DATA,date:y,args:[E,v,b,k]});break}case"StaticResource":{let{url:E}=u;this.Qt({type:D.STATIC_RESOURCE_URL,date:y,args:[E]});break}case"ResizeMaskedElement":{let{target:E,width:v,height:b}=u;this.Qt({type:D.MUTATION_ATTRIBUTE,date:y,args:[E,"","style",`width:${v}px !important;height:${b}px !important;`]});break}case"Gesture":{let E=Nf(i);(c=this.Go)===null||c===void 0||c.call(this,E);break}case"TextVisibility":{this.hp.push(u.text);break}case"StaticResourceManagerEvent":{(l=this.we)===null||l===void 0||l.processEvent(u);break}case"screenResize":{let{width:E,height:v}=u,b={type:D.SCREEN_RESIZE,date:y,args:[E,v]};this.Qt(b);break}case"viewportResize":{let{width:E,height:v}=u,b={type:D.RESIZE,date:y,args:[E,v]};this.Qt(b);break}case"PerformanceTiming":{this.Qt(Vf(u));break}case"CustomError":{let E=(d=this.fs)===null||d===void 0?void 0:d.translate(u);E&&this.Qt(E);break}case"JSError":{let E=(g=this.ps)===null||g===void 0?void 0:g.translate(u);E&&this.Qt(E);break}case"VideoEvent":{let E=Bf(u);E&&this.Qt(E);break}case"warning":{j.warn(u.message);break}default:j.error(`WebRecorderEventTranslator: Event not supported (${u.type})`);break}}),this.E.emitInitialDomStart(),(t=this.ps)===null||t===void 0||t.start(),(e=this.fs)===null||e===void 0||e.start(),this.qo.start()}stop(){var t,e,i;this.reset(),this.flush(),this.qo.stop(),(t=this.we)===null||t===void 0||t.flushEvents(),(e=this.ps)===null||e===void 0||e.stop(),(i=this.fs)===null||i===void 0||i.stop()}flush(){this.hp.flush()}onEvent(t,e){var i;this.Qt=t,this.Go=e,(i=this.we)===null||i===void 0||i.onEvent(n=>this.Qt(n))}reset(){this.up.reset()}}return s})(),zf=(()=>{class s{constructor(t=100){this.Sv=t,this.Wo={},this.rn=null,this.Lc="original-resource-name"}onEvent(t){this.vv=t}processEvent(t){this._v(t.resourceId,t.resource.hash,t.originalResourceName),this.wv(t)}flushEvents(){this.rn&&csClearTimeout(this.rn),this.dp()}onSendStaticResource(t){this.wv=t}dp(){if(!Object.keys(this.Wo).length)return;let t={type:D.RESOURCE_HASHES,date:N.now(),args:[this.Wo]};this.rn=null,this.Wo={},this.vv(t)}_v(t,e,i){let n=e;i&&(n+=`?${this.Lc}=${i}`),this.Wo[t]=n,!this.rn&&(this.rn=window.csSetTimeout(()=>this.dp(),this.Sv))}}return s})(),$f=(()=>{class s{constructor(t,e,i){this.E=t,this.w=e,this.Av=i,this.nn=Rt.ETR_DISABLED,this.Yo=Rt.ETR_PENDING,this.Xo=!0}getEtrStatus(t){t===void 0&&(t=this.w.getSession());let e=t==null?void 0:t.etrStatus;return this.bl()&&e===Rt.ETR_SAVED_SESSION?e:this.nn}onEventTriggerRecording(t,e){switch(e){case je.ETR_PAGE:this.pp(Rt.ETR_SAVED_PAGE);break;case je.ETR_LEGACY:case je.ETR_SESSION:this.pp(Rt.ETR_SAVED_SESSION);break}}handleCollectStateChange(t){this.Xo=!1,t?this.an(this.Yo):this.an(Rt.ETR_DISABLED)}handleArtificialPageview(){this.Av?(this.Xo=!0,this.an(Rt.ETR_DISABLED)):this.bl()&&this.an(Rt.ETR_PENDING)}handleSessionRenewal(){this.Xo=!0,this.an(Rt.ETR_DISABLED)}an(t){this.nn=t,this.Yo=Rt.ETR_PENDING,this.fp(t),this.E.emitRecordingContextChange()}pp(t){this.Xo?Number(t)>Number(this.Yo)&&(this.Yo=t):this.bl()&&Number(t)>Number(this.nn)&&(this.nn=t,this.fp(t),this.E.emitRecordingContextChange())}fp(t){let e=this.w.getSession();e!==null&&e.etrStatus===Rt.ETR_NOT_SAVED_SESSION&&t===Rt.ETR_SAVED_SESSION&&(e.etrStatus=t,this.w.setSession(e))}bl(){return this.nn!==Rt.ETR_DISABLED}}return s})();function tn(s,r){let t,e,i,n,a=null,c=d=>{let g=N.elapsed();if(!d&&a!==null){let y=r-(g-a);if(y>0){e=window.csSetTimeout(c,y);return}}let u=g-i;e=null,a=null,i=null,n=s(u,...t)},l=(...d)=>{if(t=[...d],i){a=N.elapsed();return}return i=N.elapsed(),e=window.csSetTimeout(c,r),n};return l.flushPending=()=>{e&&(window.csClearTimeout(e),c(!0))},l.cancel=()=>{a=null,i=null,e&&(window.csClearTimeout(e),e=null)},l}var qf=(()=>{let s;return function(r){r[r.NOT_EXIST=2]="NOT_EXIST"}(s||(s={})),s})(),Gf=8*1024*1024,Wf=(()=>{class s extends Mt{constructor(t,e,i){super(),this.we=t,this.gp=e,this.et=i,this.Tl={},this.mp=new Set,this.Ye=!1}initState(){xa()&&(this.Ne=this.et.getRequestParameters(),this.bv=`${this.gp}/exist?${ni.toQuery(this.Ne)}`,this.Tv=`${this.gp}/putTag?${ni.toQuery(this.Ne)}`,this.yp=tn(async()=>{if(this.Ye){this.yp();return}this.Ye=!0;try{await this.Rv()}finally{this.Ye=!1}},300),this.we.onSendStaticResource(t=>{this.Ep(t)}))}onStart(){}onStop(){}onIframeStaticResource(t){this.Ep(t)}Ep(t){this.Sp(t.resource.hash,t.resource.data),t.nestedResources&&t.nestedResources.length>0&&csArray.prototype.forEach.call(t.nestedResources,e=>{this.Sp(e.hash,e.data)})}Sp(t,e){this.mp.has(t)||(this.mp.add(t),this.Tl[t]=e,this.yp())}async Rv(){let t=this.Tl;this.Tl={};let e=await this.Cv(t);if(!e.length)return;let i=this.Iv(e);await Promise.all(csArray.prototype.map.call(i,n=>window.fetch(this.Tv,{method:"POST",body:n})))}async Pv(t){try{let e=Object.keys(t);if(!e.length)return[];let i={projectId:this.Ne.pid,filter:qf.NOT_EXIST,hashes:e,touch:!0};return await(await window.fetch(this.bv,{method:"POST",body:csJSON.stringify(i)})).json()}catch{return[]}}async Cv(t){let e=[],i=await this.Pv(t);return csArray.prototype.forEach.call(i,n=>{let a=t[n];a?csArray.prototype.push.call(e,{hash:n,data:a}):j.warn("SRM: received unknown hash: "+n)}),e}Iv(t){let e=0,i=[new FormData];for(let n of t){let{data:a,hash:c}=n,l=i.length-1;if(e=e+a.size,e{class s{constructor(t,e,i,n,a,c,l,d,g,u,y,E,v,b,k,R,w,x,A,M,U,J){this.Fs=t,this.w=e,this.h=i,this.Ne=n,this.f=a,this.I=c,this.X=l,this.jt=d,this.xe=g,this.ut=u,this.Ce=y,this.ft=E,this.E=v,this.zs=b,this.vp=k,this.Zt=R,this.Mt=w,this.J=x,this.Vr=A,this.nt=M,this.uC=U,this.Q=J}init(){var t,e;let i=[],n=[];csArray.prototype.push.call(n,new jp),this.yn=new ef(this.nt.shouldUseAnonymization(),this.h.whitelistedAttributes,this.I,this.h.anonymizeDigits),this.vi();let a=new Up(Yf);this.Nv(a);let c=new Bd;this.j=new Hd;let l=new Lp;csArray.prototype.push.call(i,l),this.h.useStaticResourceManager&&Jr.isSupported()&&(this.xt=new Jr,this.we=new zf,this._p=new Wf(this.we,this.h.getStaticResourceManagerUri(),this.Ne),this.vp.addListener(this._p),csArray.prototype.push.call(n,this.xt));let d=new oi(c,this.Ne,{getRequestParameters:()=>({let:this.recordingService.getRecordingLastEventTimestamp()})},{getRequestParameters:()=>({rst:this.recordingService.getRecordingStartTimestamp()})},{getRequestParameters:()=>({rt:csArray.prototype.join.call(this.w.getCollectStates(),",")})}),g=new lc(`${this.h.getRecordingUri()}/${xo}`);csArray.prototype.push.call(n,this.yn),csArray.prototype.push.call(n,new sf(this.J)),csArray.prototype.push.call(n,new rf),this._i=new xd,this._i.init(),csArray.prototype.push.call(i,this._i),this.Rt=new Pp(a,g,this.V),csArray.prototype.push.call(i,new Op(window.location,this.I));let u=new Tp,y=new af,E=new lf,v=new df(this.Q),b=new pf,k=[y,this.jt,u,new Pf(csArray.prototype.filter.call(i,A=>A)),b,new ff,new bf,v,E],R=new If(k,n),w=new Ff(R,this.E,this.we,this.ps,this.fs),x=[u,y,E,v,b];this.recordingService=new Ip(this.h,this.j,d,c,this.X,this.w,this.xe,this.ut,this.Ce,this.Q,this.V,this.Rt,g,w,i,x,this.xt,this.Vr,this.ps,this.fs),this.zs.addListener(this.recordingService),this.vp.addListener(this.recordingService),this.recordingService.init(),this.f.register(Xf,()=>this.w.isReplayRecorded()&&!this.Zt.isUrlExcludedForSessionReplay()),this.f.register(Kf,()=>{this.recordingService.activateOnlineAssetsOnNextPageview(),this.E.emitRecordingContextChange()}),this.f.register(Jf,()=>this.recordingService.getStaticResourceManagerStatus()),this.wi=new $f(this.E,this.w,this.h.malkaUrlEnabled),this.zs.addListener(this.wi),this.Fs.enableRecordingContext(this.recordingService,this.w,this.wi),this.Rl()}onAfterNaturalPageView(){var t;this.Zt.isUrlExcludedForSessionReplay()?this.recordingService.resetOnlineAssetsOnPageview():this.recordingService.updateOnlineAssetsOnPageview(),(t=this._p)===null||t===void 0||t.initState()}onStartTracking(){this.Rt.recover(),this.vi(),this.w.isReplayRecorded()&&!this.Zt.isUrlExcludedForSessionReplay()&&(this.w.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.Cl())}onArtificialPageViewEnd(){this.w.isReplayRecorded()&&!this.Zt.isUrlExcludedForSessionReplay()&&!this.w.isTemporarilyRecorded()&&this.Rt.sendLastMessageBeacon(),this.recordingService.clearStates()}onBeforeArtificialPageView(){this.wi.handleArtificialPageview()}onAfterArtificialPageView(){this.vi(),this.w.isReplayRecorded()&&!this.Zt.isUrlExcludedForSessionReplay()?(this.w.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.recordingService.updateOnlineAssetsOnPageview(),this.kv()):(this.recordingService.resetOnlineAssetsOnPageview(),this.Gi())}onBeforeSessionRenewal(){this.wi.handleSessionRenewal(),this.recordingService.clearStates(),this.Gi()}onOptout(){this.Gi(),this.recordingService.onOptOut()}onReplayUnanonymizationConsentGranted(){this.vi(),this.recordingService.triggerUnanonymizationConsentGranted(),this.E.emitRecordingContextChange()}onReplayUnanonymizationConsentWithdrawn(){this.vi(),this.recordingService.triggerUnanonymizationConsentWithdrawn(),this.E.emitRecordingContextChange()}onCollectStateChange(t,e){if(t===I.QUOTA_REACHED||t===I.ANALYTICS_ONLY&&e===It.ETR_OFF)this.recordingService.clearEvents(),this.Gi();else{this.V.setQueryParams({rt:csArray.prototype.join.call(this.w.getCollectStates(),",")}),this.recordingService.allowSendingEventsFromQuotaService(),this.recordingService.pushEvents();let i=t===I.ANALYTICS_ONLY&&e===It.ETR_ON;this.wi.handleCollectStateChange(i)}}onInitialDomStart(){this.recordingService.blockSendingEventsFromSerialization(),this.Rt.blockSendingLastMessage()}onInitialDomDone(t){this.recordingService.allowSendingEventsFromSerialization(),this.recordingService.addInitialDom(t),this.Rt.allowSendingLastMessage(),this._i.start(),this.recordingService.pushEvents()}onAfterReplayRecordingConsentGranted(){this.w.isReplayRecorded()&&!this.Zt.isUrlExcludedForSessionReplay()&&(this.w.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.Cl(),this.recordingService.triggerRecordingForSessionGranted())}onAfterReplayRecordingConsentWithdrawn(){this.recordingService.isRecording()&&(this.recordingService.triggerRecordingForSessionWithdrawn(),this.recordingService.clearStates(),this.Gi())}Rl(){var t,e,i,n;if(!((e=(t=this.h.experimental.sessionReplay)===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0)&&e.filterByHostSelector){let a=(n=(i=this.h.experimental.sessionReplay)===null||i===void 0?void 0:i.shadowRoot)===null||n===void 0?void 0:n.filterByHostSelector;K(a,c=>{Js(c)&&We.setShadowRootFilter(l=>{try{return Yt.call(l.host,c)}catch{return!1}})})}}Cl(){this.recordingService.start(),this.Rt.start(),this.E.emitRecordingContextChange()}Gi(){kd(),this.recordingService.stop(),this.Rt.stop(),this.E.emitRecordingContextChange()}kv(){this.Gi(),this.Cl()}Nv(t){let e="byteArray";this.V=this.Mt.create(`${this.h.getRecordingUri()}/${xo}`,!0,e,t,["rt","v","pid","pn","sn","uu"])}vi(){var t;let e=this.nt.shouldUseAnonymization();this.yn.setAnonymization(e),(t=this.Mv)===null||t===void 0||t.setAnonymization(e)}}return F([Nt("Recording.onStartTracking")],s.prototype,"onStartTracking",null),F([Nt("onInitialDomDone")],s.prototype,"onInitialDomDone",null),s})(),ki=(()=>{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})(),xe=(()=>{let s;return function(r){function t(n){return n.replayConsentRequiredForSession}r.isReplayConsentNeeded=t;function e(n){return n.collectState===I.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED||n.collectState===I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN}r.isRecordingBlockedByConsent=e;function i(n){return n.collectState===I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN}r.isRecordingWithDrawn=i}(s||(s={})),s})(),Zf=(()=>{class s{constructor(t,e,i,n){this.T=t,this.w=e,this.h=i,this.Xe=n,this.wp=!1}isNaturalPageViewSent(){return this.wp}setNaturalPageViewSent(t){this.wp=t}getTrackingContext(){let t=this.w.getSession();if(!t)return null;let e=this.getSessionKey();if(!e)return null;let i=this.h.projectId,n=this.h.uxaDomain,a=t.pageNumber,c=this.Xe.getPageViewType(),l=this.w.isReplayRecorded(),d=this.Dv(t);return{projectId:i,sessionKey:e,pageNumber:a,pageViewType:c,isRecording:l,uxaDomain:n,recordingConsentState:d,...this.h.smbConfig}}getSessionKey(){let t=this.T.getVisitor();return t?`${t.id}.${t.visitsCount}`:null}Dv(t){return xe.isReplayConsentNeeded(this.h)?t.collectState===I.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED?ki.NOT_EXPRESSED:t.collectState===I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN?ki.WITHDRAWN:ki.GRANTED:ki.NOT_NEEDED}}return s})(),tg=(()=>{class s{constructor(t){this.St=t,this.te=[]}handleCommand(t){if(Be(t)&&(this.En(t),this.St.isNaturalPageViewSent())){let e=this.St.getTrackingContext();e!==null&&this.kt(t,e)}}En(t){csArray.prototype.push.call(this.te,t)}executeRegisteredCallbacks(){let t=this.St.getTrackingContext();t!==null&&csArray.prototype.map.call(this.te,e=>this.kt(e,t))}kt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),eg=(()=>{class s{constructor(t){this.St=t,this.Ai=[]}handleCommand(t){if(this.St.isNaturalPageViewSent())return this.Lv(t);this.Sn(t)}Lv(t){let e=this.St.getSessionKey();return this.Ap(t)&&e!==null&&this.kt(t.callback,e),e}Sn(t){this.Ap(t)&&csArray.prototype.push.call(this.Ai,t.callback)}flushPendingCallbacks(){let t=this.St.getSessionKey();t!==null&&csArray.prototype.forEach.call(this.Ai,e=>{this.kt(e,t)}),this.Ai=[]}Ap(t){return t&&typeof t.callback=="function"}kt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),sg=(()=>{class s{constructor(t,e){this.Y=t,this.St=e}onTrackingContextRequestCallback(t){let e=this.St.getTrackingContext();e!==null&&this.Y.sendToChildren(X.TrackingContextResultMessage,{...t,trackingContext:e})}onIframeIntegrationCallback(t){if(!this.St.isNaturalPageViewSent())return;let e=this.St.getTrackingContext();e!==null&&(t.trackingContext=e,this.Y.sendToChildren(X.IntegrationCallback,t))}sendAfterPageViewCallbackToChildren(){let t=this.St.getTrackingContext();if(t===null)return;let e={trackingContext:t,initiator:Fu.AfterPageView};this.Y.sendToChildren(X.IntegrationCallback,e)}}return s})();function ig(s,r){let{isRecording:t,pageNumber:e,projectId:i,siteId:n,uxaDomain:a,csLiteDomain:c}=s,l=/^(.+)\.(\d+)$/.exec(s.sessionKey),d;if(t&&l){let[,g,u]=l;n?d=`${c}/sites/${n}/player?uu=${g}&sn=${u}&pn=${e}`:d=`${a}/quick-playback/index.html?pid=${i}&uu=${g}&sn=${u}&pvid=${e}&recordingType=cs`,r.withTimestamp&&(d+=`&t=${N.now()-r.recordingStartTimestamp}`)}return{replayLink:d,isRecording:t}}var rg=(()=>{class s{constructor(t){this.St=t}handleCommand(t,e){as(t)&&Be(e)&&this.kt(t,e)}kt(t,e){csSetTimeout(()=>{let i=this.St.getTrackingContext();if(i){let n=ig(i,t);e(n)}})}}return s})(),ng=(()=>{class s{constructor(){this.te=new Set}handleCommand(t,e){return!Be(t)||this.te.has(t)?null:(this.te.add(t),e&&(this.ve=e,this.bp(t,e)),()=>this.te.delete(t))}executeCallbacks(t){this.xv(t)&&(this.ve=t,this.te.forEach(e=>this.bp(e,t)))}bp(t,e){csSetTimeout(()=>{try{t(e)}catch{}})}xv(t){let{isRecording:e,recordingStartTimestamp:i,etrState:n,etrStatus:a,collectState:c}=t;return this.ve&&(this.ve.isRecording!==e||this.ve.recordingStartTimestamp!==i||this.ve.etrState!==n||this.ve.etrStatus!==a||this.ve.collectState!==c)}}return s})(),og=["afterPageView"],ag=["getSessionKey"],cg=["onRecordingContextChange","onRecordingStateChange"],lg=["replay:link:generate"],hg=(()=>{class s{constructor(t,e,i,n,a,c,l,d){this.T=t,this.w=e,this.f=i,this.at=n,this.Y=a,this.h=c,this.Xe=l,this.Fs=d}init(){this.St=new Zf(this.T,this.w,this.h,this.Xe),this.Il=new tg(this.St),this.Tp=new eg(this.St),this.vn=new ng,this.Uv=new rg(this.St),this.Pl=new sg(this.Y,this.St),this.at.addListener(this.Pl),this.f.register(ag,t=>this.Tp.handleCommand(t)),this.f.register(og,t=>this.Il.handleCommand(t)),this.f.register(cg,t=>this.vn.handleCommand(t,this.Fs.getRecordingContext())),this.f.register(lg,(t,e)=>{this.Wi&&this.Uv.handleCommand({...t,recordingStartTimestamp:this.Fs.getRecordingContext().recordingStartTimestamp},e)})}onAfterNaturalPageView(){this.St.setNaturalPageViewSent(!0),this.Tp.flushPendingCallbacks(),this.Il.executeRegisteredCallbacks(),this.Pl.sendAfterPageViewCallbackToChildren()}onAfterArtificialPageView(){this.Il.executeRegisteredCallbacks(),this.Pl.sendAfterPageViewCallbackToChildren()}onCollectStateChange(){this.executeRecordingContextChangeCallbacks()}onRecordingContextChange(){this.executeRecordingContextChangeCallbacks()}executeRecordingContextChangeCallbacks(){this.vn.executeCallbacks(this.Fs.getRecordingContext())}setRecordingService(t){this.Wi=t}}return F([mn({wait:0,mode:"trailing"})],s.prototype,"executeRecordingContextChangeCallbacks",null),s})(),ug=512,dg=255,Pr=(()=>{class s{constructor(t,e){this.key=csString.prototype.slice.call(t,0,ug),this.value=$(e)?csString.prototype.slice.call(e,0,dg):e}static isKeyValid(t){return $(t)}static isValueValid(t){return $(t)||bs(t)}}return s})(),pg=(()=>{class s extends Mt{constructor(t,e){super(),this.Ht=t,this.I=e,this.Ol=[]}onStart(){csArray.prototype.forEach.call(this.Ol,t=>this.Rp(t.key,t.value)),this.Ol=[]}onStop(){}Rp(t,e){let i=this.I.anonymizePII(t),n=bs(e)?e:this.I.anonymizePII(e);this.Ht.add(new Pr(i,n))}trackDynamicVariable(t,e){if(Pr.isKeyValid(t)&&Pr.isValueValid(e)){if(!this.isStarted){csArray.prototype.push.call(this.Ol,{key:t,value:e});return}this.Rp(t,e)}else throw new Error(`Command misuse: ${yc[0]}`)}}return s})(),fg=(()=>{class s{constructor(t){this.ae=t,this.Ht=[]}add(t){csArray.prototype.push.call(this.Ht,t),this.setBatchReadyCall()}clear(){this.Ht=[]}onBatchReady(t){this.jv=t}getRequestParameters(){let t={};for(let e of this.Ht)t[e.key]=e.value;return{dv:this.ae.compressSync(csJSON.stringify(t),"base64"),ct:this.ae.algorithm}}setBatchReadyCall(){this.jv()}}return F([mn({wait:0,mode:"trailing"}),L("dynamicVariablesBatchReady")],s.prototype,"setBatchReadyCall",null),s})(),gg="dvar",yc=["trackDynamicVariable"],mg=(()=>{class s{constructor(t,e,i,n,a,c){this.f=t,this.w=e,this.h=i,this.Ne=n,this.ae=a,this.I=c,this.ls=new Cs(this.h.getTrackerUri(),gg),this.Ht=new fg(this.ae),this.Ke=new pg(this.Ht,this.I)}init(){this.ls.setRequestParametersProviders(this.Ne,this.Ht),this.w.setDynamicVariablesService(this.Ke),this.Ht.onBatchReady(()=>this.ls.send()),this.ls.after(()=>this.Ht.clear()),this.f.register(yc,({key:t,value:e}={})=>{this.Ke.trackDynamicVariable(t,e)})}onStartTracking(){this.Ke.start()}}return s})(),Vo=(()=>{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)),$(t.currency)&&t.currency.length<=10&&(e.currency=t.currency),e}hasValidRevenue(){return!isNaN(this.revenue)&&this.revenue>=0}static isValid(t){return Tt(t)&&Bt(t.revenue)&&$(t.currency)&&t.currency.length<=10&&(!Tt(t.id)||$(t.id))}}return s})(),Ec=100,yg=100,Eg=(()=>{class s{constructor(t,e,i,n){this.id=t,this.name=e,this.price=i,this.quantity=n}static from(t){if(!s.Nl(t))return null;let e=new s(t.id,t.name,parseFloat(t.price),parseInt(t.quantity,10));return Z(t.sku)&&(e.sku=t.sku),Z(t.category)&&(e.category=t.category),Z(t.merchant)&&t.merchant.length>0&&(e.merchant=t.merchant.slice(0,Ec)),e}static Nl(t){return Tt(t)&&$(t.id)&&$(t.name)&&Bt(parseFloat(t.price))&&bs(parseInt(t.quantity,10))&&(!Z(t.sku)||$(t.sku))&&(!Z(t.category)||$(t.category))&&(!Z(t.merchant)||$(t.merchant))}}return s})(),Sg=(()=>{class s extends Mt{constructor(t,e,i){super(),this.I=t,this.Cp=e,this.X=i,this.Ml=[],this.clear()}onStart(){csArray.prototype.forEach.call(this.Ml,t=>{this.ce=t.transaction,this._n=t.transactionItems,this.sendTransaction()}),this.Ml=[]}onStop(){}addTransaction(t){let e=this.I.anonymizeFields(t,["id"]);this.ce=Vo.from(e)}getTransaction(){return this.ce}sendTransaction(){if(!this.isStarted){csArray.prototype.push.call(this.Ml,{transaction:this.ce,transactionItems:[...this._n]}),this.clear();return}if(!(this.Cp===null||this.X===null)&&(this.X.refreshSession(),!!this.X.isSessionValid())){if(!this.ce.hasValidRevenue()){j.warn("Transaction Service: unable to send transaction with invalid parameters");return}this.Cp.send()}}addItem(t){if(Be(t))throw new Error(`Command misuse: ${Sc[1]}`);let e=this.I.anonymizeFields(t,["id","name","sku","category"]),i=Eg.from(e);i!==null&&csArray.prototype.push.call(this._n,i)}getItems(){return this._n}clear(){this.ce=Vo.from({revenue:NaN}),this._n=[]}getRequestParameters(){let t={id:this.ce.id?`${this.ce.id}`:"",revenue:`${this.ce.revenue}`};return Z(this.ce.tax)&&(t.tax=`${this.ce.tax}`),Z(this.ce.shipping)&&(t.shipping=`${this.ce.shipping}`),Z(this.ce.currency)&&(t.cu=`${this.ce.currency}`),t.items=window.csJSON.stringify(this._n),t}}return s})(),vg=(()=>{class s extends Mt{constructor(t,e){super(),this.Hv=t,this.X=e,this.Ae=null,this.kl=[]}onStart(){csArray.prototype.forEach.call(this.kl,t=>{this.Ae=t,this.Ip()}),this.kl=[]}onStop(){}addToCart(t){let e={};$(t.sku)&&(e.sku=csString.prototype.slice.call(t.sku,0,yg)),$(t.merchant)&&(e.merchant=csString.prototype.slice.call(t.merchant,0,Ec)),(e.sku||e.merchant)&&(this.Ae=e,this.Ip())}getCartItem(){return this.Ae}Ip(){if(!this.isStarted&&this.Ae!==null){csArray.prototype.push.call(this.kl,this.Ae),this.clear();return}this.X.refreshSession(),this.X.isSessionValid()&&this.Hv.send()}clear(){this.Ae=null}getRequestParameters(){if(!this.Ae)return{};let t={};return $(this.Ae.sku)&&this.Ae.sku.length>0&&(t.sku=this.Ae.sku),$(this.Ae.merchant)&&this.Ae.merchant.length>0&&(t.me=this.Ae.merchant),t}}return s})(),_g=["ecommerce:addToCart","ec:cart:add"],wg=["ecommerce:addTransaction","ec:transaction:create"],Sc=["ecommerce:addItem","ec:transaction:items:add"],Ag=["ecommerce:send","ec:transaction:send"],bg=(()=>{class s{constructor(t,e,i,n,a,c,l){this.h=t,this.et=e,this.T=i,this.f=n,this.I=a,this.X=c,this.A=l}init(){let t=new Cs(this.h.getTrackerUri(),"transaction"),e=new Cs(this.h.getTrackerUri(),"addtocart");this.Je=new Sg(this.I,t,this.X),this.Ko=new vg(e,this.X);let i=new oi(this.et,this.T,this.A,this.Je);t.setRequestParametersProviders(i),t.after(()=>{this.Je.clear()});let n=new oi(this.et,this.T,this.A,this.Ko);e.setRequestParametersProviders(n),e.after(()=>{this.Ko.clear()}),this.f.register(wg,a=>{this.Je.addTransaction(a)}),this.f.register(Sc,a=>this.Je.addItem(a)),this.f.register(Ag,()=>this.Je.sendTransaction()),this.f.register(_g,a=>{this.Ko.addToCart(a)})}onStartTracking(){this.Je.start(),this.Ko.start()}}return s})(),Tg=(()=>{class s{constructor(t){this.Jo=t.performance}getRequestParameters(){if(this.Bv())return{};let t=this.Fv();return{str:t.startRender,di:t.domInteractive,dc:t.domComplete,fl:t.fullyLoaded}}Fv(){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}`}}Bv(){return!(this.Jo&&this.Jo.timing&&this.Jo.timing.loadEventEnd>0)}}return s})(),Vt=(()=>{class s{static build(t,e,i){return csArray.prototype.reduce.call(i,(n,a)=>a.enhanceAnalysisEvent(t,n),e)}}return s})(),z=(()=>{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"}(s||(s={})),s})(),Or=(()=>{let s;return function(r){r.SUCCESS="success",r.FAILURE="failure",r.ATTEMPT="attempt"}(s||(s={})),s})();function Rg(s){return s.tgtHM!==void 0}function vc(s){return s.tgt!==void 0}function Cg(s){return s.tgtLk!==void 0}function Ig(s){return s.x!==void 0&&s.y!==void 0}function Pg(s){return s===Or.SUCCESS||s===Or.FAILURE||s===Or.ATTEMPT}var Og=(()=>{class s{constructor(t,e,i){this.ee=t,this.Dt=e,this.Et=i}processGesture(t,e){switch(t.type){case mt.TAP:this.zv(e);break;case mt.FLICK:this.$v(t,e);break;case mt.DRAG:this.qv(t,e);break;default:break}}zv(t){let e={type:z.TAP,ts:0,x:0,y:0,tgt:""},i=Vt.build(t,e,this.ee);i.tgt!==le.INVALID_ELEMENT&&this.O(i)}qv(t,e){var i,n;let a={type:z.DRAG,ts:0,fd:t.direction,tgt:""};!((i=this.Et)===null||i===void 0)&&i.collectGestureDistance&&(a.distance=t.distance),!((n=this.Et)===null||n===void 0)&&n.collectGestureVelocity&&(a.velocity=t.velocity);let c=Vt.build(e,a,this.ee);c.tgt!==le.INVALID_ELEMENT&&this.O(c)}$v(t,e){var i,n;let a={type:z.FLICK,ts:0,fd:t.direction,tgt:""};!((i=this.Et)===null||i===void 0)&&i.collectGestureDistance&&(a.distance=t.distance),!((n=this.Et)===null||n===void 0)&&n.collectGestureVelocity&&(a.velocity=t.velocity);let c=Vt.build(e,a,this.ee);c.tgt!==le.INVALID_ELEMENT&&this.O(c)}onEvent(t){this.O=t}start(){this.Dt.subscribe(s.Pp,(t,e)=>this.processGesture(t,e))}stop(){this.Dt.unsubscribe(s.Pp)}}return s.Pp="AnalysisGestureTracker",F([vt()],s.prototype,"processGesture",null),s})(),Ng=(()=>{class s{constructor(t,e,i,n=["submit"]){this.ee=t,this.lt=e,this.Lt=i,this.Gv=n,this.Op="select, select *, input, textarea",this.Wv="select, select *, input, textarea",this.Np="a, a *, button, button *, select, select *, input, textarea",this.wn="input, select, textarea",this.Yv="form",this.Qo=150,this.Xv=400,this.Mp=!1,this.An=tn((a,c)=>this.scrollListener(a,c),this.Qo),this.kp=tn(a=>this.resizeListener(a),this.Qo),this.Kv=tr(a=>this.mouseMoveListener(a),this.Xv),this.Jv=[{boundElement:window,type:"resize",listener:()=>this.kp()},{boundElement:document,type:"scroll",listener:a=>this.An(a)},{boundElement:window,type:"mousemove",listener:a=>{this.Kv(Cd(a))}},{boundElement:document,type:"mousedown",listener:a=>this.mouseDownListener(a)},{boundElement:document,type:"mouseup",listener:a=>this.mouseUpListener(a)},{boundElement:document,type:"click",listener:a=>this.clickListener(a)}],this.Dp=[{type:"change",listener:this.Lt.on(this.Wv,a=>this.changeListener(a))},{type:"submit",listener:this.Lt.on(this.Yv,a=>this.submitListener(a))}],this.Qv=[{boundElement:document,type:"mouseover",listener:this.Lt.on(this.Np,a=>this.mouseOverListener(a))},{boundElement:document,type:"mouseout",listener:this.Lt.on(this.Np,a=>this.mouseOutListener(a))},{boundElement:document,type:"focusin",listener:this.Lt.on(this.Op,a=>this.focusInListener(a))},{boundElement:document,type:"focusout",listener:this.Lt.on(this.Op,a=>this.focusOutListener(a))},{boundElement:document,type:"keyup",listener:this.Lt.on(this.wn,a=>this.keyUpListener(a))},{boundElement:document,type:"keydown",listener:this.Lt.on(this.wn,a=>this.keyDownListener(a))},{boundElement:document,type:"copy",listener:this.Lt.on(this.wn,a=>this.copyListener(a))},{boundElement:document,type:"cut",listener:this.Lt.on(this.wn,a=>this.cutListener(a))},{boundElement:document,type:"paste",listener:this.Lt.on(this.wn,a=>this.pasteListener(a))},...csArray.prototype.map.call(this.Dp,a=>({...a,boundElement:document}))],this.D={},this.kc=(a,c)=>{switch(c){case"initial":case"added":this.ci(a);break;case"removed":this.li(a);break}},this.ie=new Ms(this.kc),this.vc()}ci(t){if(zi(t)){let e=this.Lp();csArray.prototype.forEach.call(e,i=>Pt(i))}else{let e=this.xp();csArray.prototype.forEach.call(e,i=>{Pt({...i,boundElement:t})})}}li(t){if(zi(t)){let e=this.Lp();csArray.prototype.forEach.call(e,i=>Ot(i))}else{let e=this.xp();csArray.prototype.forEach.call(e,i=>{Ot({...i,boundElement:t})})}}onEvent(t){this.O=t}start(){this.ie.observe(),this.ci(document),this.resizeListener()}stop(){this.li(document),this.ie.disconnect()}flushPendingDebouncedListeners(){this.An.flushPending(),this.kp.flushPending()}Vp(t){return csArray.prototype.some.call(this.Gv,e=>e===t)}xp(){return this.Lt.isMatchesSelectorSupported()?csArray.prototype.filter.call(this.Dp,t=>!this.Vp(t.type)):(j.warn("Element.matches is not implemented yet"),[])}Lp(){let t=[];return csArray.prototype.push.call(t,...this.Jv),this.Lt.isMatchesSelectorSupported()?csArray.prototype.push.call(t,...this.Qv):j.warn("Element.matches is not implemented yet"),csArray.prototype.filter.call(t,e=>!this.Vp(e.type))}resizeListener(t){let e=_s.getScrollContainer(),i=li(e);i&&(this.Mp=!0);let n={type:z.RESIZE,ts:0,x:i?e.clientWidth:ft.windowWidth(),y:i?e.clientHeight:ft.windowHeight()};t!==void 0&&(n.d=t),this.O(n)}scrollListener(t,e){let i=_s.isEventOnScrollContainer(e);!this.Mp&&i&&this.resizeListener();let n={type:z.SCROLL,ts:0,x:i?csEventtarget.apply(e).scrollLeft:ft.windowOffsetX(),y:i?csEventtarget.apply(e).scrollTop:ft.windowOffsetY(),d:t},a=Vt.build(e,n,this.ee);this.O(a)}mouseMoveListener(t){let e={type:z.MOUSEMOVE,ts:0,x:t.pageX,y:t.pageY},i=Vt.build(t,e,this.ee);this.O(i)}mouseDownListener(t){let e={type:z.MOUSEDOWN,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Vt.build(t,e,this.ee);this.le(i)}mouseUpListener(t){let e={type:z.MOUSEUP,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Vt.build(t,e,this.ee);this.le(i)}clickListener(t){let e={type:z.CLICK,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Vt.build(t,e,this.ee);this.le(i)}mouseOverListener(t){let e={type:z.MOUSEOVER,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Vt.build(t,e,this.ee);this.le(i)}mouseOutListener(t){let e={type:z.MOUSEOUT,ts:0,x:t.pageX,y:t.pageY,tgt:this.lt.getEventTargetPath(t)},i=Vt.build(t,e,this.ee);this.le(i)}focusInListener(t){let e={type:z.FOCUSIN,ts:0,tgt:this.lt.getEventTargetPath(t)},i=Vt.build(t,e,this.ee);this.le(i)}focusOutListener(t){let e={type:z.FOCUSOUT,ts:0,tgt:this.lt.getEventTargetPath(t)},i=Vt.build(t,e,this.ee);this.le(i)}changeListener(t){let e={type:z.CHANGE,ts:0,tgt:""},i=Vt.build(t,e,this.ee);this.le(i)}submitListener(t){let e={type:z.SUBMIT,ts:0,tgt:""},i=Vt.build(t,e,this.ee);this.le(i)}copyListener(t){let e={type:z.COMMAND,ts:0,tgt:this.lt.getEventTargetPath(t),key:ws.COPY};this.le(e)}cutListener(t){let e={type:z.COMMAND,ts:0,tgt:this.lt.getEventTargetPath(t),key:ws.CUT};this.le(e)}pasteListener(t){let e={type:z.COMMAND,ts:0,tgt:this.lt.getEventTargetPath(t),key:ws.PASTE};this.le(e)}keyUpListener(t){let e={type:z.KEYUP,ts:0,tgt:this.lt.getEventTargetPath(t),key:this.Up(t)};this.le(e)}keyDownListener(t){let e={type:z.KEYDOWN,ts:0,tgt:this.lt.getEventTargetPath(t),key:this.Up(t)};this.le(e)}Up(t){let e=this.D[t.key];return e===void 0?q.ALPHANUMERICAL:e}le(t){vc(t)&&t.tgt!==le.INVALID_ELEMENT&&this.O(t)}vc(){this.D[" "]=q.SPACE,this.D.Spacebar=q.SPACE,this.D.Enter=q.ENTER,this.D.Backspace=q.BACKSPACE,this.D.Delete=q.DELETE,this.D.ArrowUp=q.ARROWUP,this.D.ArrowDown=q.ARROWDOWN,this.D.ArrowLeft=q.ARROWLEFT,this.D.ArrowRight=q.ARROWRIGHT,this.D.Up=q.ARROWUP,this.D.Down=q.ARROWDOWN,this.D.Left=q.ARROWLEFT,this.D.Right=q.ARROWRIGHT,this.D.CapsLock=q.CAPSLOCK,this.D.Shift=q.SHIFT,this.D.Tab=q.TAB}}return F([L("Event handler type: resize")],s.prototype,"resizeListener",null),F([L("Event handler type: scroll")],s.prototype,"scrollListener",null),F([L("Event handler type: mouseMove"),vt()],s.prototype,"mouseMoveListener",null),F([L("Event handler type: mouseDown"),vt()],s.prototype,"mouseDownListener",null),F([L("Event handler type: mouseUp"),vt()],s.prototype,"mouseUpListener",null),F([L("Event handler type: click"),vt()],s.prototype,"clickListener",null),F([L("Event handler type: mouseOver"),vt()],s.prototype,"mouseOverListener",null),F([L("Event handler type: mouseOut"),vt()],s.prototype,"mouseOutListener",null),F([L("Event handler type: focusIn")],s.prototype,"focusInListener",null),F([L("Event handler type: focusOut")],s.prototype,"focusOutListener",null),F([L("Event handler type: change")],s.prototype,"changeListener",null),F([L("Event handler type: submit"),vt()],s.prototype,"submitListener",null),F([L("Event handler type: copy")],s.prototype,"copyListener",null),F([L("Event handler type: cut")],s.prototype,"cutListener",null),F([L("Event handler type: paste")],s.prototype,"pasteListener",null),F([L("Event handler type: keyup")],s.prototype,"keyUpListener",null),F([L("Event handler type: keydown")],s.prototype,"keyDownListener",null),s})(),Mg=(()=>{class s{constructor(){this.jp=100,this.bn=0,this.Tn=ft.documentHeight(),this.Hp={boundElement:document,type:"scroll",listener:t=>this.maxScrollRateListener(t)},this.bn=this.Dl(_s.getScrollContainer()).maxScrollRate}onEvent(t){this.O=t}start(){Pt(this.Hp)}stop(){Ot(this.Hp)}reset(){let t=_s.getScrollContainer(),{maxScrollRate:e,maxDocumentHeight:i}=this.Dl(t);this.Tn=i,this.bn=e,this.O()}Dl(t){let e=0,i=0;if(t===null)i=ft.documentHeight(),e=this.Zv(i);else{let n=this.t_(t);i=this.Bp(t,n),e=this.e_(t,n)}return{maxScrollRate:e,maxDocumentHeight:i}}maxScrollRateListener(t){let e=null;_s.isEventOnScrollContainer(t)&&(e=csEventtarget.apply(t));let{maxScrollRate:i,maxDocumentHeight:n}=this.Dl(e);(i>this.bn||n>this.Tn)&&(this.bn=i,n>this.Tn&&(this.Tn=n),this.O())}Zv(t){let e=Math.round(this.s_()/t*100);return Math.min(e,this.jp)}s_(){let t=ft.windowHeight();return ft.windowOffsetY()+t}e_(t,e){let i=t.scrollTop+t.clientHeight+t.getBoundingClientRect().top+e,n=this.Bp(t,e),a=Math.round(i/n*100);return Math.min(a,this.jp)}t_(t){let e=window.getComputedStyle(t).paddingTop||"0px";return parseInt(e,10)}Bp(t,e){return t.scrollHeight+t.getBoundingClientRect().top+e}getRequestParameters(){return{sr:`${this.bn}`,mdh:`${this.Tn}`}}}return F([L("MaxScrollRate handler")],s.prototype,"maxScrollRateListener",null),s})();var kg=(()=>{class s{constructor(t,e,i,n,a,c,l,d,g,u,y,E,v,b,k,R,w,x,A,M,U){this.h=t,this.$s=e,this.Dt=i,this.Yi=n,this.Ll=a,this.Be=c,this.Qe=l,this.Fp=d,this.X=g,this.Wt=u,this.W=y,this.xl=E,this.Ve=v,this.V=b,this.Zo=k,this.Es=R,this.Ss=w,this.Vl=x,this.bi=A,this.Ti=M,this.Ri=U,this.Ds=new Qa,this.ta=!1}init(){var t,e,i,n,a,c,l;this.$s.onEvent(d=>this.Ct(d)),this.Dt.onEvent(d=>this.Ct(d)),this.Yi.onEvent(()=>{let d=this.Yi.getRequestParameters();this.V.setQueryParams(d),this.Qe.setQueryParams(d)}),this.xl.onEvent(d=>this.Fe(d)),this.Ul(),(t=this.Zo)===null||t===void 0||t.onEvent(d=>this.Ct(d)),(e=this.bi)===null||e===void 0||e.onEvent(d=>this.Ct(d)),(i=this.Es)===null||i===void 0||i.onEvent(d=>this.Ct(d)),(n=this.Ss)===null||n===void 0||n.onEvent(d=>this.Ct(d)),this.i_(),(a=this.Vl)===null||a===void 0||a.onEvent(d=>this.Fe(d)),(c=this.Ti)===null||c===void 0||c.onEvent(d=>this.Fe(d)),(l=this.Ri)===null||l===void 0||l.onEvent(d=>this.Fe(d))}i_(){this.Qe.onBeaconSuccess(()=>{this.Be.clearEvents()}),this.Qe.onBeaconFailure(t=>{this.r_(t)})}initStates(){let t=this.Fp.getRequestParameters(),e=this.Ll.getRequestParameters(),i=this.Yi.getRequestParameters();this.V.setQueryParams(t),this.V.setQueryParams(e),this.V.setQueryParams(i),this.Qe.setQueryParams(t),this.Qe.setQueryParams(e),this.Qe.setQueryParams(i),this.jl()}clearStates(t){var e,i;this.$s.flushPendingDebouncedListeners(),(e=this.Es)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(i=this.Ss)===null||i===void 0||i.flushPendingTextHighlightEvent(),t?(this.Hl(),this.sendLastMessageBeacon()):this.sendEvents(),this.Yi.reset(),this.V.removeQueryParams()}start(t){var e,i,n,a,c,l,d;t||(e=this.Vl)===null||e===void 0||e.start(),this.Ve.start(),this.$s.start(),this.Yi.start(),this.Dt.start(),(i=this.Zo)===null||i===void 0||i.start(),(n=this.Ss)===null||n===void 0||n.start(),t||this.xl.start(),(a=this.Es)===null||a===void 0||a.start(),(c=this.bi)===null||c===void 0||c.start(),(l=this.Ti)===null||l===void 0||l.start(),(d=this.Ri)===null||d===void 0||d.start()}collectInitialEvents(){var t;(t=this.Zo)===null||t===void 0||t.collectInitialEvents()}onIframeAnalysisBrowserEvent(t){this.Fe(t)}onIframeAnalysisUserEvent(t){this.Ct(t)}onExternalEvent(t){this.G(t)}Fe(t){this.X.isCurrentPageviewValid()&&this.G(t)}Ct(t){this.X.refreshSession(),this.X.isSessionValid()&&this.G(t)}G(t){this.Be.addEvent(this.n_(t)),this.Be.isFull()&&this.sendEvents(),this.h.emitDebugEvents&&this.Ds.emit("analysisEvent",{...t,typeName:z[t.type]})}n_(t){return t.ts=this.Ci(),t}Hl(){this.Qe.setQueryParams({hlm:"true"}),this.ta=!0}sendLastMessageBeacon(){this.Qe.setQueryParams(this.Ll.getRequestParameters()),this.Qe.send(this.Be.stringifyEvents()),this.Qe.removeQueryParams(["hlm"]),this.ta=!1}sendEvents(){this.Be.isEmpty()||(this.V.setQueryParams(this.Fp.getRequestParameters()),this.V.setQueryParams(this.Ll.getRequestParameters()),this.V.send(this.Be.getEvents()),this.Be.clearEvents())}stop(){var t,e,i,n,a,c,l;this.Ve.stop(),this.$s.stop(),this.Yi.stop(),this.Dt.stop(),this.xl.stop(),(t=this.Zo)===null||t===void 0||t.stop(),(e=this.Es)===null||e===void 0||e.stop(),(i=this.Ss)===null||i===void 0||i.stop(),(n=this.bi)===null||n===void 0||n.stop(),this.Be.empty(),(a=this.Vl)===null||a===void 0||a.stop(),(c=this.Ti)===null||c===void 0||c.stop(),(l=this.Ri)===null||l===void 0||l.stop()}jl(){this.Ze=N.now()}Ci(){return N.now()-this.Ze}Ul(){this.Ve.onEvent(t=>{var e,i;t!==Ht.Visible&&((e=this.Es)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(i=this.Ss)===null||i===void 0||i.flushPendingTextHighlightEvent(),t===Ht.PagehideVisible?this.Hl():t===Ht.PagehideHidden?(this.Hl(),this.sendLastMessageBeacon()):(!this.Be.isEmpty()||this.ta)&&this.sendLastMessageBeacon())})}r_(t){try{(!this.Be.isEmpty()||this.ta)&&this.Wt.save({requestParameters:t,events:this.Be.getEvents()})}catch{}}pushSubmitCommandEvent(t,e){if(!Pg(t)||!li(e))throw new Error(`Command misuse: ${Nc}`);let i={status:t,type:z.SUBMIT_COMMAND,ts:0,tgt:this.W.getElementPath(e)};i.tgt!==le.INVALID_ELEMENT&&this.Fe(i)}}return s})(),Dg=(()=>{class s{constructor(t,e){this.Wt=t,this.V=e,this.zp=()=>{document.visibilityState==="visible"&&this.$p()}}start(){this.$p(),this.xc()}stop(){this.Vc()}getRecoveryStorage(){return this.Wt}$p(){let t=this.Wt.recover();if(t!==null){let{requestParameters:e,events:i}=t;this.V.send(i,e)}}xc(){document.addEventListener("visibilitychange",this.zp)}Vc(){document.removeEventListener("visibilitychange",this.zp)}}return s})(),Lg=(()=>{class s{constructor(t){this.Fi=t}save(t){localStorage.setItem(this.Fi,csJSON.stringify(t))}clear(){localStorage.removeItem(this.Fi)}recover(){let t=localStorage.getItem(this.Fi);if(t===null)return null;let e=null;try{e=csJSON.parse(t)}catch{j.error(`Invalid item in localStorage. (key:${this.Fi}; value:${t})`)}finally{this.clear()}return e}}return s})(),xg=(()=>{class s{constructor(t){this.Xi=t,this.Ki=e=>this.processMetric(e),this.N=!1}onEvent(t){this.O=t}start(){this.N||(this.N=!0,this.Xi.onFCP(this.Ki),this.Xi.onCLS(this.Ki),this.Xi.onFID(this.Ki),this.Xi.onLCP(this.Ki),this.Xi.onTTFB(this.Ki),this.Xi.onINP(this.Ki))}stop(){this.N=!1}processMetric(t){if(!this.N)return;let e={type:z.PERFORMANCE,name:t.name,val:t.value,ts:0};this.O(e)}}return F([L("Performance metric handler")],s.prototype,"processMetric",null),s})(),De,ei,_c,Yi,en,wc=-1,us=function(s){addEventListener("pageshow",function(r){r.persisted&&(wc=r.timeStamp,s(r))},!0)},wn=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},rr=function(){var s=wn();return s&&s.activationStart||0},zt=function(s,r){var t=wn(),e="navigate";return wc>=0?e="back-forward-cache":t&&(document.prerendering||rr()>0?e="prerender":document.wasDiscarded?e="restore":t.type&&(e=t.type.replace(/_/g,"-"))),{name:s,value:r===void 0?-1:r,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:e}},ks=function(s,r,t){try{if(PerformanceObserver.supportedEntryTypes.includes(s)){var e=new PerformanceObserver(function(i){Promise.resolve().then(function(){r(i.getEntries())})});return e.observe(Object.assign({type:s,buffered:!0},t||{})),e}}catch{}},$t=function(s,r,t,e){var i,n;return function(a){r.value>=0&&(a||e)&&((n=r.value-(i||0))||i===void 0)&&(i=r.value,r.delta=n,r.rating=function(c,l){return c>l[1]?"poor":c>l[0]?"needs-improvement":"good"}(r.value,t),s(r))}},An=function(s){requestAnimationFrame(function(){return requestAnimationFrame(function(){return s()})})},nr=function(s){var r=function(t){t.type!=="pagehide"&&document.visibilityState!=="hidden"||s(t)};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},bn=function(s){var r=!1;return function(t){r||(s(t),r=!0)}},vs=-1,Uo=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Xi=function(s){document.visibilityState==="hidden"&&vs>-1&&(vs=s.type==="visibilitychange"?s.timeStamp:0,Vg())},jo=function(){addEventListener("visibilitychange",Xi,!0),addEventListener("prerenderingchange",Xi,!0)},Vg=function(){removeEventListener("visibilitychange",Xi,!0),removeEventListener("prerenderingchange",Xi,!0)},Tn=function(){return vs<0&&(vs=Uo(),jo(),us(function(){setTimeout(function(){vs=Uo(),jo()},0)})),{get firstHiddenTime(){return vs}}},gi=function(s){document.prerendering?addEventListener("prerenderingchange",function(){return s()},!0):s()},Ho=[1800,3e3],Ac=function(s,r){r=r||{},gi(function(){var t,e=Tn(),i=zt("FCP"),n=ks("paint",function(a){a.forEach(function(c){c.name==="first-contentful-paint"&&(n.disconnect(),c.startTimee.value&&(e.value=i,e.entries=n,t())},c=ks("layout-shift",a);c&&(t=$t(s,e,Bo,r.reportAllChanges),nr(function(){a(c.takeRecords()),t(!0)}),us(function(){i=0,e=zt("CLS",0),t=$t(s,e,Bo,r.reportAllChanges),An(function(){return t()})}),setTimeout(t,0))}))},Ws={passive:!0,capture:!0},jg=new Date,Fo=function(s,r){De||(De=r,ei=s,_c=new Date,Tc(removeEventListener),bc())},bc=function(){if(ei>=0&&ei<_c-jg){var s={entryType:"first-input",name:De.type,target:De.target,cancelable:De.cancelable,startTime:De.timeStamp,processingStart:De.timeStamp+ei};Yi.forEach(function(r){r(s)}),Yi=[]}},Hg=function(s){if(s.cancelable){var r=(s.timeStamp>1e12?new Date:performance.now())-s.timeStamp;s.type=="pointerdown"?function(t,e){var i=function(){Fo(t,e),a()},n=function(){a()},a=function(){removeEventListener("pointerup",i,Ws),removeEventListener("pointercancel",n,Ws)};addEventListener("pointerup",i,Ws),addEventListener("pointercancel",n,Ws)}(r,s):Fo(r,s)}},Tc=function(s){["mousedown","keydown","touchstart","pointerdown"].forEach(function(r){return s(r,Hg,Ws)})},zo=[100,300],Bg=function(s,r){r=r||{},gi(function(){var t,e=Tn(),i=zt("FID"),n=function(l){l.startTimer.latency){if(t)t.entries.push(s),t.latency=Math.max(t.latency,s.duration);else{var e={id:s.interactionId,latency:s.duration,entries:[s]};Mr[e.id]=e,ee.push(e)}ee.sort(function(i,n){return n.latency-i.latency}),ee.splice(10).forEach(function(i){delete Mr[i.id]})}},$g=function(s,r){r=r||{},gi(function(){var t;zg();var e,i=zt("INP"),n=function(c){c.forEach(function(g){g.interactionId&&Go(g),g.entryType==="first-input"&&!ee.some(function(u){return u.entries.some(function(y){return g.duration===y.duration&&g.startTime===y.startTime})})&&Go(g)});var l,d=(l=Math.min(ee.length-1,Math.floor(qo()/50)),ee[l]);d&&d.latency!==i.value&&(i.value=d.latency,i.entries=d.entries,e())},a=ks("event",n,{durationThreshold:(t=r.durationThreshold)!==null&&t!==void 0?t:40});e=$t(s,i,$o,r.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),nr(function(){n(a.takeRecords()),i.value<0&&qo()>0&&(i.value=0,i.entries=[]),e(!0)}),us(function(){ee=[],Ic=Cc(),i=zt("INP"),e=$t(s,i,$o,r.reportAllChanges)}))})},Wo=[2500,4e3],kr={},qg=function(s,r){r=r||{},gi(function(){var t,e=Tn(),i=zt("LCP"),n=function(l){var d=l[l.length-1];d&&d.startTimeperformance.now())return;t.value=Math.max(n-rr(),0),t.entries=[i],e(!0),us(function(){t=zt("TTFB",0),(e=$t(s,t,Yo,r.reportAllChanges))(!0)})}})},Yg=(()=>{class s{onFCP(t){Ac(t,{reportAllChanges:!0})}onCLS(t){Ug(t,{reportAllChanges:!0})}onFID(t){Bg(t,{reportAllChanges:!0})}onLCP(t){qg(t,{reportAllChanges:!0})}onTTFB(t){Wg(t,{reportAllChanges:!0})}onINP(t){$g(t,{reportAllChanges:!0})}}return s})();var mi=(()=>{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})(),Xg=(()=>{class s extends mi{constructor(){super(...arguments),this.supportedEventTypes=[z.CHANGE],this.P_=["text","email","number","search","tel","url","password"]}baseEnhanceAnalysisEvent(t,e){let i=gt(t);return Ki(i)&&csArray.prototype.indexOf.call(this.P_,i.type)>=0&&(e.isBlank=i.value===""),e}}return s})();var Pc=(()=>{class s extends mi{constructor(t){super(),this.lt=t,this.supportedEventTypes=[z.MOUSEDOWN,z.MOUSEUP,z.CLICK,z.MOUSEOVER,z.TAP,z.DRAG,z.FLICK,z.SUBMIT,z.CHANGE]}baseEnhanceAnalysisEvent(t,e){return e.tgt||(e.tgt=this.lt.getEventTargetPath(t)),e}}return s})(),Xo=65535,Kg=(()=>{let s;return function(r){function t(e){let i=gt(e);if(!i||!nt(i)||!Be(i.getBoundingClientRect)||!Tt(e.pageX)||!Tt(e.pageY))return{xRel:-1,yRel:-1,valid:!1};let n=i.getBoundingClientRect(),a=e.pageX-n.left-ft.windowOffsetX(),c=e.pageY-n.top-ft.windowOffsetY();i!==document.documentElement&&(a+=i.scrollLeft,c+=i.scrollTop);let l=Math.max(i.scrollWidth,n.width),d=Math.max(i.scrollHeight,n.height),g=Math.round(a/l*Xo),u=Math.round(c/d*Xo);return{xRel:g,yRel:u,valid:!0}}r.getRelativePosition=t}(s||(s={})),s})(),Jg=(()=>{class s extends mi{constructor(t,e){super(),this.Ps=t,this.lt=e,this.supportedEventTypes=[z.MOUSEMOVE,z.CLICK],this.Xl=""}baseEnhanceAnalysisEvent(t,e){let{valid:i,xRel:n,yRel:a}=Kg.getRelativePosition(t);if(i){let c=this.lt.getEventTargetPath(t);c!==le.INVALID_ELEMENT&&(e.xRel=n,e.yRel=a,e.type===z.MOUSEMOVE&&(c!==this.Xl||this.Ps.iframesTracking?(this.Xl=c,e.tgtHM=c):e.tgtHM=""))}else e.type===z.MOUSEMOVE&&(this.Xl="");return e}}return s})(),Oe=(()=>{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})(),Ko=100,Oc=(()=>{class s extends mi{constructor(t,e,i){super(),this.h=t,this.he=e,this.I=i,this.supportedEventTypes=[z.TAP,z.CLICK,z.SUBMIT]}O_(t){let e="",i=document.createTreeWalker(t,NodeFilter.SHOW_TEXT),n=i.nextNode();for(;n;){if(e+=n.textContent,on(n.parentElement)||nn(n.parentElement)||this.he.getElementSensitiveStatus(n.parentElement)!==Oe.CAPTURED)return!0;if(csString.prototype.trim.call(e).length>=Ko)break;n=i.nextNode()}return!1}N_(t){let e=Wr(t,"button,a");return e||(this.h.collectTargetText===zr.ButtonAndLinkOnly?null:t)}baseEnhanceAnalysisEvent(t,e){if(li(csEventtarget.apply(t))){let i=this.N_(csEventtarget.apply(t));if(i&&$(i.textContent)&&!this.O_(i)&&!this.I.hasPII(i.textContent,this.h.anonymizeDigits)){let n=He.truncate(csString.prototype.trim.call(i.textContent),Ko);n.length>0&&(e.text=n)}}return e}}return s})(),Qg=(()=>{class s extends mi{constructor(t,e){super(),this.lt=t,this.he=e,this.supportedEventTypes=[z.CLICK,z.SUBMIT,z.CHANGE]}baseEnhanceAnalysisEvent(t,e){let i=this.he.getSensitiveStatus().useAnonymization,{path:n,hierarchy:a}=this.lt.getEventTargetPathAndHierarchy(t,i);return e.tgt=n,e.hrchy=a,e}}return s})();function Zg(s,r,t){let e=[];return s.mouseMoveHeatmapEnabled&&csArray.prototype.push.call(e,new Jg(s,r)),s.isCollectTargetTextEnabled()&&csArray.prototype.push.call(e,new Oc(s,t,new ui)),s.collectHierarchy&&csArray.prototype.push.call(e,new Qg(r,t)),csArray.prototype.push.call(e,new Xg,new Pc(r)),e}function tm(s,r,t){let e=[];return s.isCollectTargetTextEnabled()&&csArray.prototype.push.call(e,new Oc(s,t,new ui)),csArray.prototype.push.call(e,new Pc(r)),e}var em=50,sm=(()=>{class s{constructor(t=[]){this.Ot=t}stringifyEvents(){return csJSON.stringify(this.Ot)}addEvent(t){csArray.prototype.push.call(this.Ot,t)}eventsCount(){return this.Ot.length}clearEvents(){this.Ot=[]}empty(){this.clearEvents()}isFull(){return this.eventsCount()>=em}isEmpty(){return this.Ot.length===0}getEvents(){return this.Ot}}return s})(),im="csAnalysisEventsPersisted",Jo="v2/events",Nc=["submit"],rm=(()=>{class s{constructor(t,e,i,n,a,c,l,d,g,u,y,E){this.h=t,this.et=e,this.T=i,this.W=n,this.Lt=a,this.f=c,this.X=l,this.Dt=d,this.at=g,this.Mt=u,this.Z=y,this.he=E}init(){let t=new sm,e=this.Mt.create(`${this.h.getTrackerUri()}/${Jo}`,!0,"base64");this.na=this.M_(e),this.Me=this.k_(t,this.na.getRecoveryStorage(),e),this.Me.init(),this.Z.addListener(this.Me),this.at.addListener(this.Me),this.f.register(Nc,(i,n)=>{this.Me.pushSubmitCommandEvent(i,n)})}onStartTracking(t){this.na.start(),this.Me.start(t)}onAfterNaturalPageView(){this.Me.initStates()}onAfterArtificialPageView(){this.Me.initStates(),this.Me.collectInitialEvents()}onArtificialPageViewEnd(){this.Me.clearStates(!0)}onBeforeSessionRenewal(){this.Me.clearStates(),this.Me.stop(),this.na.stop()}onOptout(){this.Me.stop(),this.na.stop()}k_(t,e,i){var n;let a=new Tg(window),c=new Mg,l=Zg(this.h,this.W,this.he),d=[];this.h.collectSubmit||csArray.prototype.push.call(d,"submit");let g=new Ng(l,this.W,this.Lt,d),u=tm(this.h,this.W,this.he),y=new Og(u,this.Dt),E=new xg(new Yg),v=new oc,b,k,R,w=new lc(`${this.h.getTrackerUri()}/${Jo}`),x=new oi(this.et,this.T),A,M,U,J;return new kg(this.h,g,y,c,a,t,w,x,this.X,e,this.W,E,v,i,b,k,R,A,M,U,J)}M_(t){return new Dg(new Lg(im),t)}}return s})(),Hi=(()=>{let s;return function(r){r.Artificial="a",r.Renewal="r",r.Natural="n"}(s||(s={})),s})(),nm=(()=>{class s extends Mt{constructor(t,e,i,n,a){super(),this.E=t,this.Z=e,this.Kl=i,this.A=n,this.Xe=a}init(){this.D_()}onStart(t){t?this.L_():this.x_()}onStop(){}triggerArtificialPageView(t,e){this.isStarted?this.pf(t,e):Tt(t)&&this.A.overridePath(t,e),this.isStarted||(this.Z.emitTargetingRulesArtificialPageview(this.A.getUrl()),this.A.cleanupOverrideLifespan())}x_(){this.Xe.setPageViewType(Hi.Natural),this.E.emitBeforeNaturalPageView(),this.Kl.send(),this.A.cleanupOverrideLifespan(),this.E.emitAfterNaturalPageView()}L_(){this.Xe.setPageViewType(Hi.Renewal),this.E.emitBeforeNaturalPageView(),this.Kl.send(),this.E.emitAfterNaturalPageView()}pf(t,e){this.Xe.setPageViewType(Hi.Artificial),this.E.emitArtificialPageViewEnd(),Tt(t)&&this.A.overridePath(t,e),this.E.emitBeforeArtificialPageView(),this.Kl.send(),this.A.cleanupOverrideLifespan(),this.E.emitAfterArtificialPageView()}D_(){window.addEventListener("pageshow",t=>{this.isStarted&&t.persisted&&this.pf()})}}return s})(),om=window.navigator.language||window.navigator.userLanguage||window.navigator.browserLanguage||window.navigator.systemLanguage||"unknown";function am(){return{la:om}}var cm=(()=>{class s{constructor(t,e){this.J=t,this.ft=e,this.Jl=!1}getRequestParameters(){return{dr:this.Ql()}}addUrlMaskingPattern(t){this.ft.addUrlMaskingPattern(t)}enableRemoveQueryString(){this.Jl=!0}disableRemoveQueryString(){this.Jl=!1}Ql(){let t=this.Jl?this.J.removeQueryString(this.ff()):this.ff();return this.J.anonymizeUrl(t,{maskingPatterns:this.ft.getUrlMaskingPatterns()})}ff(){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})(),lm=99999,hm=(()=>{class s{constructor(t){this.w=t,this.V_=this.U_()&&window.CSCurrentScript}j_(){let t=window.CSCurrentScript;if(!t)return null;let e=window.performance.getEntriesByName(t.src,"resource")[0];return!e||this.H_(e)?null:Math.round(e.responseEnd-e.fetchStart)}H_(t){let e=t.transferSize;return e!==void 0?e===0||e===300||e{class s{constructor(){this.gf=new Set,this.mf=[],this.Zl=new Set,this.th=[]}addUrlMaskingPattern(t){if(this.gf.has(t))return;this.gf.add(t);let e=Qo(t);csArray.prototype.push.call(this.mf,e)}getUrlMaskingPatterns(){return this.mf}resetPartialUrlMaskingPatterns(){this.Zl.clear(),this.th=[]}addPartialUrlMaskingPattern(t){if(this.Zl.has(t))return;this.Zl.add(t);let e=Qo(t);csArray.prototype.push.call(this.th,e)}getPartialUrlMaskingPatterns(){return this.th}}return s})(),pm=["trackPageview"],Zo=["setPath"],ta=["setQuery"],ea=["referrer:maskUrl"],fm=["referrer:removeQueryString"],gm=["referrer:keepQueryString"],mm=(()=>{class s{constructor(t,e,i,n,a,c,l,d,g,u,y,E,v,b,k){this.h=t,this.f=e,this.E=i,this.Ne=n,this.T=a,this.w=c,this.ue=l,this.vt=d,this.J=g,this.A=u,this.Zt=y,this.Xe=E,this.Z=v,this.ss=b,this.tr=k}init(){var t;let e=new Cs(this.h.getTrackerUri(),"pageview");this.er=new nm(this.E,this.Z,e,this.A,this.Xe);let i=new cm(this.J,new dm);this.er.init();let n=new oi(this.Ne,this.T,ft,i,this.A,this.ue,sn,this.vt,this.Xe,new hm(this.w),this.Zt);this.ss&&n.addProvider(this.ss),this.tr&&n.addProvider(this.tr);let a=this.h.isCsCrosswritingHeap();if(a||this.h.isCsSideloadingHeap()||this.h.isHeapSideloadsCs()){let c=(t=this.h.heapEnvironment)===null||t===void 0?void 0:t.env_id;n.addProvider({getRequestParameters(){let l={cw:a?"1":"2"};return c&&(l.happid=c),l}})}e.setRequestParametersProviders(n),this.f.register(pm,(c,l)=>{if(!$(c)){this.er.triggerArtificialPageView();return}this.eh(l)?this.er.triggerArtificialPageView(c,l):this.er.triggerArtificialPageView(c)}),this.f.register(Zo,(c,l)=>{if(!$(c))throw new Error(`Command misuse: ${Zo[0]}`);this.eh(l)?this.A.overridePath(c,l):this.A.overridePath(c)}),this.f.register(ta,(c,l)=>{if(!$(c))throw new Error(`Command misuse: ${ta[0]}`);this.eh(l)?this.A.overrideQuery(c,l):this.A.overrideQuery(c)}),this.f.register(ea,c=>{if(!$(c))throw new Error(`Command misuse: ${ea[0]}`);i.addUrlMaskingPattern(c)}),this.f.register(fm,()=>i.enableRemoveQueryString()),this.f.register(gm,()=>i.disableRemoveQueryString())}start(t){this.er.start(t)}onBeforeSessionRenewal(){this.er.stop()}eh(t){return as(t)&&t!==null}}return s})(),ym=(()=>{class s{constructor(t){this.lt=t}on(t,e){return i=>{this.lt.hasValidEventTarget(i)&&this.F_(i,t)&&e(i)}}F_(t,e){let i=gt(t);return Yt.call(i,e)}isMatchesSelectorSupported(){return!!Yt}}return s})(),Em=(()=>{class s{constructor(){}onLoad(t){this.Ui=t}onLoadCallbackExecute(){this.Ui()}start(){let t=this.onLoadCallbackExecute.bind(this);this.z_(t)}z_(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 F([L("onLoad")],s.prototype,"onLoadCallbackExecute",null),s})(),Sm=(()=>{class s{constructor(t,e,i){this.h=t,this.T=e,this.w=i,this.Ze=N.now()}resetStartTime(){this.Ze=N.now()}getSessionData(){let{projectId:t}=this.h,e=this.T.getVisitor();e==null&&j.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:{},a=this.w.getSession();a===null&&j.warn("Session is null. This happens when a snippet tries to get Session Data before the tag was initialized.");let{pageNumber:c}=a!=null?a:{};return{projectId:t,userId:i,sessionNumber:n,pageNumber:c,relativeTimestamp:N.now()-this.Ze}}}return s})(),vm=["clearSession"],_m=["extendSession"];var wm=["getSessionData"],Am=["session:start:newVisitor"],bm=["session:clear:visitor"],Tm=(()=>{class s{constructor(t,e,i,n){this.h=t,this.T=e,this.w=i,this.f=n}init(){this.ih=new Sm(this.h,this.T,this.w),this.f.register(vm,()=>this.w.removeSession()),this.f.register(_m,()=>this.w.extendSessionPeriodically(),{disableApplyPending:!0}),this.f.register(wm,()=>this.ih.getSessionData(),{disableApplyPending:!0}),this.f.register(Am,()=>this.T.renewVisitor()),this.f.register(bm,()=>{this.T.resetVisitor()},{disableApplyImmediate:!0})}onBeforeNaturalPageView(){this.T.createOrUpdateVisitor(),this.w.createOrUpdateSession()}onBeforeArtificialPageView(){this.w.abortQuotaServiceRequest(),this.T.createOrUpdateVisitor(),this.w.createOrUpdateSession()}onAfterNaturalPageView(){this.ih.resetStartTime()}onAfterArtificialPageView(){this.ih.resetStartTime()}onOptout(){this.T.removeVisitor(),this.w.removeSession()}onCollectStateChange(t,e){this.w.updateCollectState(t,e)}}return s})(),Rm=60*1e3,Cm=30*1e3,Im=(()=>{class s{constructor(t,e){this.w=t,this.T=e,this.rh=!1,this.$_=tr(()=>this.w.refreshSession(),Cm)}onSessionExpired(t){this.q_=t}isSessionValid(){return this.rh?!0:!(!this.w.hasValidSession()||this.w.pollCacheRefreshEvent()&&this.T.isSessionRenewed())}isCurrentPageviewValid(){let t=this.w.hasValidSession();return this.w.pollCacheRefreshEvent(!1)?!this.T.isSessionRenewed():t}refreshSession(){this.isSessionValid()?this.$_():this.G_()&&(this.yf=N.now(),this.renewSession())}renewSession(){this.rh=!0,this.q_(),this.rh=!1}G_(){return!Z(this.yf)||N.now()-this.yf>Rm}}return s})();var cs;(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"})(cs||(cs={}));function kc(s){return s.tagDeploymentMode===cs.DualCollectionReview||s.tagDeploymentMode===cs.DualCollection}function Pm(s){return kc(s)||s.tagDeploymentMode===cs.LoadClicktalePtc}var sa=(()=>{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 a(c){window.ClickTaleEventTrigger&&window.ClickTaleEventTrigger(c)}r.sendEventTriggerRecording=a}(s||(s={})),s})();var Om="@ETP@",ia="@user-identifier@",Nm=(()=>{class s extends Mt{constructor(t,e,i,n){super(),this.h=t,this.Dw=e,this.ae=i,this.Z=n,this.oh=[],this.pi=[]}onStart(){csArray.prototype.forEach.call(this.oh,t=>this.Nf(t)),this.oh=[],csArray.prototype.forEach.call(this.pi,t=>this.Mf(t)),this.pi=[]}onStop(){}Nf(t){this.Lw(t)?Xs.isSupported()&&this.xw(t):this.Vw(t)}trackPageEvent(t){if(!s.kf(t))throw new Error(`Command misuse: ${Dc[0]}`);this.isStarted?this.Nf(t):csArray.prototype.push.call(this.oh,t)}Lw(t){return $e(t,ia)}async xw(t){if(!this.h.customHashIdEnabled)return;let e=csString.prototype.slice.call(t,ia.length);if(e.length>Xs.MAX_DIGEST_INPUT_SIZE){j.warn("UserIdentifier event: invalid user identifier");return}let i=await Xs.digest(e);i?(this.ar={eventName:i,isETR:!1,isCustomHashId:!0},this.da()):j.warn("Page event: unable to compute customHashId"),this.h.encryptionEnabled&&this.Z.emitUserIdentifierEvent(e)}Vw(t){this.Z.emitPageEvent(t),this.ar={eventName:t,isETR:!1,isCustomHashId:!1},this.da(),this.h.tagDeploymentMode===cs.LoadClicktalePtc&&sa.sendPageEvent(t)}Mf(t){this.h.malkaEtrEnabled?this.Uw(t):this.jw(t)}trackEventTriggerRecording(t){if(!s.kf(t))throw new Error(`Command misuse: ${Lc[0]}`);this.isStarted?this.Mf(t):csArray.prototype.push.call(this.pi,t)}Uw(t){$e(t,Om)?this.Z.emitEventTriggerRecording(t,je.ETR_PAGE):this.Z.emitEventTriggerRecording(t,je.ETR_SESSION),this.ar={eventName:t,isETR:!0,isCustomHashId:!1},this.da()}jw(t){Pm(this.h)&&(this.Z.emitEventTriggerRecording(t,je.ETR_LEGACY),this.ar={eventName:t,isETR:!0,isCustomHashId:!1},this.da(),this.h.tagDeploymentMode===cs.LoadClicktalePtc&&sa.sendEventTriggerRecording(t))}getRequestParameters(){return{value:this.ae.compressSync(this.ar.eventName,"base64"),ct:this.ae.algorithm,isETR:`${this.ar.isETR}`,isCustomHashId:`${this.ar.isCustomHashId}`}}da(){this.Dw.send()}static kf(t){return $(t)&&!!csString.prototype.trim.call(t)}}return s})(),Dc=["trackPageEvent"],Lc=["trackEventTriggerRecording"],Mm=(()=>{class s{constructor(t,e,i,n,a){this.h=t,this.f=e,this.ae=i,this.Ne=n,this.Z=a}init(){let t=new Cs(this.h.getTrackerUri(),"pageEvent");this.pa=new Nm(this.h,t,this.ae,this.Z),t.setRequestParametersProviders(this.pa,this.Ne),this.f.register(Dc,e=>{this.pa.trackPageEvent(e)}),this.f.register(Lc,e=>{this.pa.trackEventTriggerRecording(e)})}onStartTracking(){this.pa.start()}}return s})(),km=(()=>{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})();var Dm=(()=>{class s{constructor(t){this.f=t}init(){this.Df(s.zw,ja),this.Df(s.$w,Ua)}Df(t,e){this.f.register([t],(i,n)=>{!$(i)||!($(n)||Fe(n))||j.error(n,`${e}${i}`)})}}return s.$w="logSnippetError",s.zw="logImplementationSnippetError",s})(),Lm=(()=>{class s{constructor(t,e,i,n,a){this.h=t,this.Y=e,this.Fs=i,this.he=n,this.at=a}init(){this.Y.onChildMessage((t,e,i)=>this.at.emitIframeEvent(t,e,i)),this.Y.setSentiveStatusCallback(()=>this.he.getSensitiveStatus()),this.Y.setRecordingContextCallback(()=>this.Fs.getRecordingContext())}onStartTracking(){this.h.iframesTracking&&this.Y.start()}onOptout(){this.h.iframesTracking&&this.Y.stop()}onSensitiveStatusChange(){if(this.h.iframesTracking){let t=this.he.getSensitiveStatus();this.Y.onSensitiveStatusChange(t)}}onRecordingContextChange(){if(this.h.iframesTracking){let t=this.Fs.getRecordingContext();this.Y.onRecordingContextChange(t)}}}return s})(),xm=(()=>{class s extends Mt{constructor(t){super(),this.h=t,this.ah=0,this.Te=new Map,this.Lf={boundElement:window,type:"message",listener:e=>this.ch(e)}}onChildMessage(t){this.xf=t}setRecordingContextCallback(t){this.qw=t}setSentiveStatusCallback(t){this.Gw=t}onSensitiveStatusChange(t){let e=pt.buildBaseMessage(X.SensitiveStatus,Qt.Parent,this.h.projectId);e.content=t;let i=pt.buildBaseMessage(X.SensitiveStatus,Qt.Parent,this.h.projectId);i.content={...t,started:!1,useAnonymization:!0,capturedElementSelector:""},this.Te.forEach(n=>{if(n.port){let a=this.fa(n)?i:e;this.lh(n,a)}})}onRecordingContextChange(t){let e=pt.buildBaseMessage(X.RecordingContext,Qt.Parent,this.h.projectId);e.content=t,this.Te.forEach(i=>{!this.fa(i)&&i.port&&this.lh(i,e)})}sendToChildren(t,e){let i=pt.buildBaseMessage(t,Qt.Parent,this.h.projectId);i.content=e,this.Ww(i)}onStart(){Pt(this.Lf,!1),this.Vf()}onStop(){this.Yw(),Ot(this.Lf,!1),this.Xw()}Vf(){let t=this.Kw();this.Jw(t),csArray.prototype.forEach.call(t,e=>{if(this.Qw(e)===null){let n={iframe:e};this.Te.set(this.ah,n),this.ah+=1}}),this.Zw()}Kw(){return csArray.prototype.filter.call(ut.findAllElements("iframe"),t=>this.tA(t))}Jw(t){this.Te.forEach((e,i)=>{e.iframe&&csArray.prototype.indexOf.call(t,e.iframe)===-1&&this.eA(i,e)})}eA(t,e){e.port&&pt.closeChannelPort(e.port),this.Te.delete(t)}Xw(){this.Te.forEach(t=>{t.port&&pt.closeChannelPort(t.port)}),this.Te.clear()}Qw(t){let e=null;return this.Te.forEach((i,n)=>{e===null&&i.iframe===t&&(e=n)}),e}tA(t){return t.id!==fa&&(!t.src||qe(t.src,"about:")||fn(Ha(t.src),this.h.hostnames))}Ww(t){this.Te.forEach(e=>{this.lh(e,t)})}lh(t,e){let i=e.type===X.SensitiveStatus||e.type===X.RecordingContext;t.port&&(!i||t.initialStatusSent)&&pt.sendChannelMessage(t.port,e)}Zw(){this.Te.forEach((t,e)=>{if(t.iframe.contentWindow){let i=this.sA(e);pt.sendPostMessage(t.iframe.contentWindow,"*",i)}})}Yw(){let t=this.iA();this.Te.forEach(e=>{e.port?pt.sendChannelMessage(e.port,t):e.iframe.contentWindow&&pt.sendPostMessage(e.iframe.contentWindow,"*",t)})}sA(t){return pt.buildBaseMessage(X.Discovery,Qt.Parent,this.h.projectId,t)}iA(){return pt.buildBaseMessage(X.Stop,Qt.Parent,this.h.projectId)}rA(t,e){let i=this.Te.get(t);if(i===void 0){j.error(`Parent received channel messaging initialization from unknow child id : ${t} (${this.ah})`);return}i.port=e,i.port.onmessage=n=>{this.hh(n,i)}}nA(t){if(!t.port)return;let e=pt.buildBaseMessage(X.SensitiveStatus,Qt.Parent,this.h.projectId),i=this.Gw();this.fa(t)&&(i.started=!1,i.capturedElementSelector="",i.useAnonymization=!0),e.content=i,pt.sendChannelMessage(t.port,e)}oA(t){if(!t.port)return;let e=pt.buildBaseMessage(X.RecordingContext,Qt.Parent,this.h.projectId),i=this.qw();this.fa(t)&&(i.isRecording=!1),e.content=i,pt.sendChannelMessage(t.port,e)}hh(t,e){if(e===void 0){j.error(`Parent received channelMessage from unknown child : ${csJSON.stringify(t.data)}`);return}let i=t.data.type,n=t.data.content;i===X.EndOfBufferedMessages?(this.nA(e),this.oA(e),e.initialStatusSent=!0):this.xf(e.iframe,i,n)}ch(t){if(pt.isMessageValid(t,Qt.Child,this.h.projectId,this.h.hostnames))switch(t.data.type){case X.Discovery:if(t.data.id===void 0){this.Vf();return}if(t.ports&&t.ports.length===1&&this.Te.has(t.data.id)){this.rA(t.data.id,t.ports[0]);return}j.error(`Parent received wrong channelMessage initialization : (${t.origin}) : ${csJSON.stringify(t.data)}`);break;case X.ChildLogMessage:this.xf(null,X.ChildLogMessage,t.data.content);break;default:j.warn(`Parent received unexpected postMessage type from child (${t.origin}) : ${csJSON.stringify(t.data)}`)}}fa(t){return O.isMaskedElement(t.iframe)||O.isMaskedElementChild(t.iframe)}}return s})();var Vm=(()=>{class s extends km{constructor(t){super(),this.pA=t,this.Ls=[{boundElement:document,type:"touchstart",listener:e=>this.G(e)},{boundElement:document,type:"touchmove",listener:e=>this.G(e)},{boundElement:document,type:"touchend",listener:e=>this.G(e)}],this.Ln=new Qr,this.Ln.onGesture((e,i)=>this.yl(e,i))}yl(t,e){for(let i in this.subscriptions){let n=this.subscriptions[i];n(t,e)}}onStartTracking(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.Ls,t=>Pt(t))}onStopTracking(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.Ls,t=>Ot(t))}canDetectGesture(){return typeof devicePixelRatio!="undefined"}G(t){this.pA.tryToExecute("process gesture event",()=>{if(this.Ln.isValidTouchEvent(t))switch(t.type){case"touchstart":this.Ln.processActionDown(t);break;case"touchmove":this.Ln.processActionMove();break;case"touchend":this.Ln.processActionUp(t);break}})()}static isSwipe(t){return t.type===mt.FLICK||t.type===mt.DRAG}}return s})(),Um=(()=>{class s extends Mt{constructor(t,e){super(),this.V=t,this.ph=e,this.Hf=0}onStart(){j.isPerfLoggingActive()&&(this.Nn=window.csSetInterval(()=>this.Bf(),s.fA))}onStop(){j.isPerfLoggingActive()&&(this.Bf(),csClearInterval(this.Nn))}Bf(){if(Vi.isEmpty||this.Hf>=s.gA)return;this.Hf++;let t={a:s.mA,l:s.yA,...this.ph.getRequestParameters()},e=[];Vi.forEach(i=>{csArray.prototype.forEach.call(i,n=>{csArray.prototype.push.call(e,{...n,...t})})}),this.V.send(e),Vi.clear()}}return s.mA="uxa",s.yA="perf",s.fA=5e3,s.gA=5,s})(),jm=(()=>{class s{constructor(t,e,i){this.h=t,this.ph=e,this.Mt=i}init(){this.Ff=new Um(this.Mt.create(this.h.getLoggerUri(),!0),this.ph)}onStartTracking(){this.Ff.start()}onOptout(){this.Ff.stop()}}return s})(),Hm=(()=>{class s{constructor(t){this.he=t,this.zf=!1}enableRecordingContext(t,e,i){this.zf=!0,this.Wi=t,this.w=e,this.wi=i}getRecordingContext(){var t,e,i,n;if(!this.zf)return{isRecording:!1,recordingStartTimestamp:0,etrState:It.ETR_OFF,etrStatus:Rt.ETR_DISABLED,collectState:I.ANALYTICS_ONLY};let a=this.w.getSession();return{isRecording:this.Wi.isRecording(),useAnonymization:this.he.getSensitiveStatus().useAnonymization,enableOnlineResources:(t=this.Wi.getStaticResourceManagerStatus())===null||t===void 0?void 0:t.onlineAssets.activated,enableOnlineResourcesOnNextPageview:(e=this.Wi.getStaticResourceManagerStatus())===null||e===void 0?void 0:e.onlineAssets.enabledOnNextPageview,recordingStartTimestamp:parseInt(this.Wi.getRecordingStartTimestamp(),10),etrState:(i=a==null?void 0:a.etrState)!==null&&i!==void 0?i:It.ETR_OFF,etrStatus:this.wi.getEtrStatus(a),collectState:(n=a==null?void 0:a.collectState)!==null&&n!==void 0?n:I.ANALYTICS_ONLY}}}return s})(),ai=(()=>{class s{static isRecordingSupported(){return"MutationObserver"in window&&"visibilityState"in document}static isAsyncSerializationSupported(){return"Promise"in window&&"findIndex"in csArray.prototype}}return s})();var Bm=(()=>{class s{constructor(){this.Sh=Hi.Natural}setPageViewType(t){this.Sh=t}getPageViewType(){return this.Sh}getRequestParameters(){return{pvt:this.Sh}}}return s})(),Fm=(()=>{class s{constructor(t){this.X=t}onAfterVisitorRenewal(){this.X.renewSession()}}return s})();var zm=(()=>{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),a=new csDate().getTime(),c="xxxxxxxx-hhhh-axxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,l=>{let d=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(l==="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 a=0;a{class s{constructor(t,e,i,n){this.ue=t,this.h=e,this.A=i,this.Hn=n}init(){this.LA()}shouldMaskNonTextElements(){if(this.h.anonymisationMethod!==oe.replayRecordingMaskedUrlRegexRules)return!1;if(this.h.isSMB)return this.shouldUseAnonymization();let t=this.Hn.getMatchingRules(this.A.getAnonymizedUrl());return csArray.prototype.some.call(t,e=>e.maskMedia)}shouldUseAnonymization(){if(this.ue.isReplayUnanonymizedAllowedByConsent()){switch(this.h.anonymisationMethod){case null:case oe.replayRecordingMaskedUrlRegex:return!!(this.h.replayRecordingMaskedUrlRegex&&this.h.replayRecordingMaskedUrlRegex.test(this.A.getAnonymizedUrl()));case oe.replayRecordingMaskedUrlRegexRules:return this.Hn.evaluateUrl(this.A.getAnonymizedUrl())}return!1}else{switch(this.h.anonymisationMethod){case null:case oe.replayRecordingUnmaskedUrlRegex:return!(this.h.replayRecordingUnmaskedUrlRegex&&this.h.replayRecordingUnmaskedUrlRegex.test(this.A.getAnonymizedUrl()));case oe.replayRecordingUnmaskedUrlRegexRules:return!this.Hn.evaluateUrl(this.A.getAnonymizedUrl())}return!0}}LA(){this.h.anonymisationMethod===oe.replayRecordingMaskedUrlRegexRules&&this.h.replayRecordingMaskedUrlRegexRules?this.Hn.setRegexRules(this.h.replayRecordingMaskedUrlRegexRules):this.h.anonymisationMethod===oe.replayRecordingUnmaskedUrlRegexRules&&this.h.replayRecordingUnmaskedUrlRegexRules&&this.Hn.setRegexRules(this.h.replayRecordingUnmaskedUrlRegexRules)}}return s})(),qm=(()=>{class s{constructor(){this.Th=[]}setRegexRules(t){this.Th=csArray.prototype.map.call(t,e=>this.xA(e))}evaluateUrl(t){return csArray.prototype.some.call(this.Th,e=>this.Xf(t,e))}getMatchingRules(t){return csArray.prototype.filter.call(this.Th,e=>this.Xf(t,e))}Xf(t,e){var i,n;let a=this.VA(t,e);return!!(e!=null&&e.notOperator?!(!((i=e.regex)===null||i===void 0)&&i.test(a)):!((n=e.regex)===null||n===void 0)&&n.test(a))}VA(t,e){let i=gn(t);return i?e.ignoreQueryParams&&e.ignoreURIFragments?`${i.origin}${i.pathname}`:e.ignoreQueryParams?`${i.origin}${i.pathname}${i.hash}`:e.ignoreURIFragments?`${i.origin}${i.pathname}${i.search}`:t:t}va(t){return t.ignoreCaseSensitivity?"i":""}xA(t){switch(t.operator){case Zt.NOT_START:t.notOperator=!0;case Zt.START:t.regex=new csRegExp(`^${t.value}`,this.va(t));break;case Zt.NOT_END:t.notOperator=!0;case Zt.END:t.regex=new csRegExp(`${t.value}$`,this.va(t));break;case Zt.NOT_CONTAIN:t.notOperator=!0;case Zt.CONTAIN:t.regex=new csRegExp(`${t.value}`,this.va(t));break;case Zt.NOT_EXACT:t.notOperator=!0;case Zt.EXACT:t.regex=new csRegExp(`^${t.value}$`,this.va(t));break;default:j.warn(`buildRegexWithRule, unknown type: ${t.operator}`)}return t}}return s})();var Gm=(()=>{class s extends ue{constructor(t){super(),this.U=null,this.Aa=null,this.P=null,this.js=null,this.sg=["value","checked","src","data","alt"],this.ba={state:O.MaskedElementState.Child},this.bb=e=>{for(let i of e){if(O.isMaskedElement(i.target)||O.isMaskedElementChild(i.target))for(let n=0;ng==="added"&&this.Pb(d))),this.P.observe(),csSetTimeout(this.Tb)}onStop(){var t,e,i;this.U&&(this.rg(document),this.U.disconnect()),(t=this.Aa)===null||t===void 0||t.disconnect(),(e=this.P)===null||e===void 0||e.disconnect(),(i=this.js)===null||i===void 0||i.disconnect()}Rb(){return window.ResizeObserver?new ResizeObserver(t=>{csArray.prototype.forEach.call(t,e=>{this.resizeObserverCallback(e)})}):null}Cb(){return new Is(t=>{csArray.prototype.forEach.call(t,e=>{this.Ob(e)?this.ig(e):(this.Nb(e),this.Mb(e))})})}Ib(t){return new Is(e=>{csArray.prototype.forEach.call(e,i=>this.kb(i,t))})}resizeObserverCallback(t){let e=t.target.getBoundingClientRect(),i=O.getMaskedElementDetails(t.target);if(i.state!==O.MaskedElementState.Parent||e.width===i.width&&e.height===i.height)return;let n={state:O.MaskedElementState.Parent,width:e.width,height:e.height};O.setMaskedElementProperty(t.target,n),this.produceEvent({type:"ResizeMaskedElement",target:et(t.target),width:e.width,height:e.height})}Mb(t){!this.js||!nt(t)||Ji(t)||this.js.observe(t)}Ob(t){let e=csNodeparentNode.apply(t);return e?O.isMaskedElement(e)||O.isMaskedElementChild(e):ii(t)?O.isMaskedElement(t.host)||O.isMaskedElementChild(t.host):!1}Pb(t){(O.isMaskedElement(t.host)||O.isMaskedElementChild(t.host))&&O.setMaskedElementProperty(t,this.ba)}rg(t){Wt(t,NodeFilter.SHOW_ELEMENT).visitAll(i=>{O.unsetMaskedElementProperty(i)})}Nb(t){let e=t.getBoundingClientRect(),i={state:O.MaskedElementState.Parent,width:e.width,height:e.height};O.setMaskedElementProperty(t,i),this.Db(t),Wt(t).visitAll(n=>n!=t&&O.setMaskedElementProperty(n,this.ba))}ig(t){O.setMaskedElementProperty(t,this.ba),Wt(t).visitAll(e=>e!=t&&O.setMaskedElementProperty(e,this.ba))}Db(t){var e;let i=(e=G.getProperty(t,O.maskedAttributeProp))!==null&&e!==void 0?e:{attributes:[]};for(let n=0;ncsString.prototype.indexOf.call(l.attrName,c)>-1&&Yt.call(t,l.selector))&&csArray.prototype.push.call(n.attributes,c)}n.attributes.length!==0&&O.setMaskedAttributeProperty(t,n)}}return he([L()],s.prototype,"resizeObserverCallback",null),s})(),Wm=(()=>{class s{constructor(){this.Ph=0,this.N=!1,this.ng="data-cs-capture",this.Ws=t=>{for(let e of t){if(ce.isWhitelistedElement(e.target))for(let i=0;iK(e,i=>this.og(i))));let t=this.Oh?`[${this.ng}], ${this.Oh}`:`[${this.ng}]`;this.U.observe(t),this.P||(this.P=new We(this.Ws,(e,i)=>i==="added"&&this.xb(e))),this.P.observe()}stop(){this.N&&(this.Ph--,this.Ph===0&&(this.N=!1,this.Vb()))}Vb(){this.U&&(this.ag(document),this.U.disconnect()),this.P&&this.P.disconnect()}setWhitelistedElementsSelector(t,e=!0){if(Js(t))this.Oh=t;else if(e)throw new Error("Command misuse: setCapturedElementsSelector")}getWhitelistedElementsSelector(){return this.Oh}og(t){Wt(t).visitAll(e=>{ce.whitelistElement(e)})}xb(t){ce.isWhitelistedElement(t.host)&&ce.whitelistElement(t)}ag(t){Wt(t,NodeFilter.SHOW_ELEMENT).visitAll(i=>{ce.removeWhitelistElement(i)})}}return s})(),Ym=(()=>{class s{constructor(){this.U=null,this.P=null,this.N=!1,this.Ws=t=>{for(let e of t)if(Ne.isEditableNode(e.target))for(let i=0;iK(t,e=>{this.cg(e)})),this.U.observe("[contenteditable]"),this.P=new We(this.Ws,(t,e)=>e==="added"&&this.Ub(t)),this.P.observe())}stop(){var t,e;this.N&&(this.N=!1,(t=this.U)===null||t===void 0||t.disconnect(),this.U=null,(e=this.P)===null||e===void 0||e.disconnect(),this.P=null)}cg(t){Wt(t).visitAll(e=>{Ne.markEditableNode(e)})}Ub(t){Ne.isEditableNode(t.host)&&Ne.markEditableNode(t)}}return s})();var Xm=s=>{let r=s*60*1e3;return`${Math.floor(csDate.now()/r)}`},Km=5e3,Rn=(()=>{class s extends Ma{constructor(t,e,i){super(t,e),this.mr=null,this.Hb=(i==null?void 0:i.type)||"json",this.hg=i==null?void 0:i.cacheMinutes,this.Mr=i==null?void 0:i.timeout}onLoad(t){this.Ui=t}onError(t){this.Nr=t}onTimeout(t,e){this.ni=t,this.Mr=e}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,n=>n());let t=this.retrieveParameters();this.sc(t);let e=ni.toQuery(t),i=`${this.domainUri}${this.path?`/${this.path}`:""}?${e}`;this.Ql(i,this.Hb)}abort(){this.mr&&(this.mr.abort(),this.mr=null)}isInProgress(){return this.mr!==null}Ql(t,e){var i;let n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType=e,n.onerror=()=>{var a;return(a=this.Nr)===null||a===void 0?void 0:a.call(this,n)},n.ontimeout=()=>{var a;return(a=this.ni)===null||a===void 0?void 0:a.call(this,n)},n.onload=()=>{var a,c;n.status>=200&&n.status<400?((a=this.Ui)===null||a===void 0||a.call(this,this.Bb(n,e)?n.response:n.responseText),csArray.prototype.forEach.call(this.afterRequestCallbacks,l=>l())):(c=this.Nr)===null||c===void 0||c.call(this,n)},n.onloadend=()=>{this.mr=null},n.timeout=(i=this.Mr)!==null&&i!==void 0?i:Km,this.mr=n,n.send()}Bb(t,e){let i=t.getResponseHeader("Content-Type");return i===null?e==="json":csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(i),"json")>0}sc(t){let e;this.hg?e=`${Xm(this.hg)}`:e=csString.prototype.slice.call(`${Math.random()}`,2,8),t.r=e}}return s})(),Jm=Math.pow(2,52),qs=null;async function xc(s){if((qs==null?void 0:qs.visitorId)===s)return qs.heapUserId;let r=await Qm(s),t=Number(r%BigInt(Jm));return qs={visitorId:s,heapUserId:t},t}async function Qm(s){let r=await crypto.subtle.digest("SHA-256",Zm(s)),t=new Uint8Array(r.slice(0,8));return t=ey(t),ty(t)}function Zm(s){let r=new ArrayBuffer(s.length),t=new Uint8Array(r);for(let e=0;e{class s extends Mt{constructor(t,e,i,n){super(),this.yr=t,this.kh=e,this.T=i,this.X=n,this.Fb=255,this.xr="SHA-256",this.K=null,this.Dh=null,this.ug=!1,this.Lh=null,this.xh=null,pn()&&(this.ug=!0,this.Lh=new TextEncoder,e.setRequestParametersProviders({getRequestParameters:()=>{var a;return(a=this.xh)!==null&&a!==void 0?a:{}}}),e.after(()=>{this.xh=null}))}onStart(){if(this.K!==null){let{identity:t,sendHashedIdentity:e}=this.K;this.K=null,this.identify(t,e)}}onStop(){}async identify(t,e){if(!this.ug)return;if(!this.yr){st.error("missing heap env id","identify");return}if(!this.isStarted){this.K={identity:t,sendHashedIdentity:e};return}if(this.zb(t))return;let i=He.truncate(t,this.Fb),n=this.T.getVisitor();if(!n){st.warn("identify: visitor not found",!0,"identify");return}if(await this.$b(i,n.identityPrint)){if(this.T.renewVisitor(),n=this.T.getVisitor(),!n){st.warn("identify: visitor not found",!0,"identify");return}}else this.X.refreshSession();await Promise.all([this.qb(i,e,this.yr,n.id),this.Gb(i,n)])}resetIdentity(){this.K!==null&&(this.K=null),this.getIdentity()&&this.T.renewVisitor()}getIdentity(){let t=this.T.getVisitor();return!t||!t.identityPrint?null:t.identityPrint}async $b(t,e){return e?await this.dg(t)!==e:!1}async Gb(t,e){e.identityPrint=await this.dg(t),this.T.setVisitor(e)}async dg(t){var e;if(((e=this.Dh)===null||e===void 0?void 0:e.identity)===t)return this.Dh.identityPrint;let i=await lo(this.xr,this.Lh.encode(ry+t)),n=He.truncate(i,12);return this.Dh={identity:t,identityPrint:n},n}async qb(t,e,i,n){let a=e?await lo(this.xr,this.Lh.encode(t)):t,c=csString(await xc(n));this.xh={a:i,u:c,st:N.now().toString(),b:"web",i:a,v:"1",s:"1"},this.kh.send()}zb(t){for(let e of sy)if(t===e)return!0;for(let e of iy)if(e.test(t))return!0;return!1}}return s})(),ra=["identify"],oy=["getIdentity"],ay=["resetIdentity"],cy="api/identify_v3",ly=(()=>{class s{constructor(t,e,i,n){this.f=t,this.h=e,this.T=i,this.X=n}init(){var t;let e=new Rn(this.h.getPaProxyDomainUri(),cy);this.Er=new ny((t=this.h.heapEnvironment)===null||t===void 0?void 0:t.env_id,e,this.T,this.X),this.f.register(ra,(i,n)=>{if(!($(i)||Bt(i)))throw new Error(`Command misuse: ${ra[0]}`);let a=!1;this.Wb(n)&&(a=!!n.hash),this.Er.identify(i.toString(),a)}),this.f.register(ay,()=>this.Er.resetIdentity()),this.f.register(oy,()=>this.Er.getIdentity())}onStartTracking(){this.Er.start()}onBeforeSessionRenewal(){this.Er.stop()}onOptout(){this.Er.stop()}Wb(t){return Tt(t)&&as(t)&&"hash"in t}}return s})(),hy=["hidePageTitle"],uy=["resetHidePageTitle"],dy="onNextPageviewOnly",py=(()=>{class s{constructor(t,e){this.ss=t,this.f=e}init(){this.f.register(hy,t=>{let e=t===dy;this.ss.setHidePageTitle(e)}),this.f.register(uy,()=>this.ss.resetHidePageTitle())}onAfterNaturalPageView(){this.ss.updateStateOnAfterPageview()}onAfterArtificialPageView(){this.ss.updateStateOnAfterPageview()}}return s})(),fy=(()=>{class s{constructor(){this.pg=255,this.Yb="****",this.Xb="data-cs-hide-title",this.Kb="data-heap-redact-text",this.Ta={value:!1,onNextPageviewOnly:!1}}getRequestParameters(){return{t:this.Ta.value||this.Jb()?this.Yb:this.Qb(window.document.title)}}setHidePageTitle(t){this.Ta={value:!0,onNextPageviewOnly:t}}resetHidePageTitle(){this.Ta={value:!1,onNextPageviewOnly:!1}}updateStateOnAfterPageview(){this.Ta.onNextPageviewOnly&&this.resetHidePageTitle()}Jb(){let t=window.csquerySelector[document.nodeType].call(document,"head > title");return t===null?!1:t.getAttribute(this.Xb)!==null||t.getAttribute(this.Kb)!==null}Qb(t){return t.length>this.pg?csString.prototype.substring.call(t,0,this.pg):t}}return s})(),gy=(()=>{class s{constructor(t,e,i,n,a){this.nt=t,this.gt=e,this.pe=i,this.Pt=n,this.Q=a}getSensitiveStatus(){var t,e;return{started:this.pe.isStarted,useAnonymization:this.nt.shouldUseAnonymization(),capturedElementSelector:this.Pt.getWhitelistedElementsSelector(),maskedElementSettings:this.gt.getMaskedElementSettings((t=this.nt)===null||t===void 0?void 0:t.shouldMaskNonTextElements()),encryptionSelectors:(e=this.Q)===null||e===void 0?void 0:e.getEncryptionSelectors()}}getElementSensitiveStatus(t){let e=this.pe.isStarted,i=this.nt.shouldUseAnonymization();return e?O.isMaskedElement(t)||O.isMaskedElementChild(t)?Oe.MASKED:tf.shouldEncrypt(t)?Oe.ENCRYPTED:Ne.isEditableNode(t)?Oe.ANONYMIZED:i?ce.isWhitelistedElement(t)?Oe.CAPTURED:Oe.ANONYMIZED:Oe.CAPTURED:Oe.ANONYMIZED}}return s})(),my=["setEncryptionSelectors"],Vc=["setPIISelectors"],yy=["setCapturedElementsSelector"],Ey=(()=>{class s{constructor(t,e,i,n,a,c,l){this.E=t,this.f=e,this.gt=i,this.pe=n,this.Pt=a,this.Q=c,this.Sr=l}init(){var t,e;this.Sr&&this.Q&&((t=this.Sr)===null||t===void 0||t.addSelector((e=this.Q)===null||e===void 0?void 0:e.getEncryptionSelectors())),this.ot()}onStartTracking(t){this.pe.start(),this.E.emitSensitiveStatusChange()}onBeforeArtificialPageView(){this.pe.stop(),this.E.emitSensitiveStatusChange()}onAfterArtificialPageView(){this.pe.start(),this.E.emitSensitiveStatusChange()}onBeforeSessionRenewal(){this.pe.stop(),this.E.emitSensitiveStatusChange()}onOptout(){this.pe.stop(),this.E.emitSensitiveStatusChange()}onReplayUnanonymizationConsentGranted(){this.E.emitSensitiveStatusChange()}onReplayUnanonymizationConsentWithdrawn(){this.E.emitSensitiveStatusChange()}ot(){this.f.register(Vc,t=>{this.gt.setMaskedElementSettingsFromCommand(t),this.E.emitSensitiveStatusChange()}),this.f.register(yy,t=>{this.Pt.setWhitelistedElementsSelector(t),this.E.emitSensitiveStatusChange()}),this.f.register(my,t=>{var e,i;(e=this.Q)===null||e===void 0||e.setEncryptionSelectors(t),(i=this.Sr)===null||i===void 0||i.addSelector(t)})}}return s})(),Sy=(()=>{class s extends Mt{constructor(t,e,i,n,a,c){super(),this.jt=t,this.gt=e,this.Pt=i,this.Sr=n,this.vr=a,this.nt=c}onStart(){var t,e,i;this.Pt.start(),this.jt.setMaskedElementSettings(this.gt.getMaskedElementSettings((t=this.nt)===null||t===void 0?void 0:t.shouldMaskNonTextElements())),this.jt.startIdentifier(),(e=this.Sr)===null||e===void 0||e.start(),(i=this.vr)===null||i===void 0||i.start()}onStop(){var t,e;this.Pt.stop(),this.jt.stopIdentifier(),(t=this.Sr)===null||t===void 0||t.stop(),(e=this.vr)===null||e===void 0||e.stop()}}return s})();var na=(()=>{let s;return function(r){function t(u,y){for(let E of u)if(i(E,y))return!0;return!1}r.isUrlMatching=t;function e(u,y){if($(y)){for(let E of u)if(i(E,y))return!0}else if(Qn(y)){for(let E of u)if(i(E,csString(y)))return!0}return!1}r.isMatching=e;function i(u,y){let E=n(u,y);return u.negate?!E:E}function n(u,y){switch(u.rule_type==="date"&&(u.match_operation==="less_than"||u.match_operation==="greater_than")&&(y=(new csDate(y).valueOf()/1e3).toFixed(0)),u.match_operation){case"exact":switch(u.rule_type){case"string":return $(u.pattern)?csString.prototype.toLowerCase.call(y)===csString.prototype.toLowerCase.call(u.pattern):!1;case"boolean":return y===u.pattern||y===csString(u.pattern);case"number":return Tt(y)?Number(y)===Number(u.pattern):!1;default:return y===u.pattern}case"starts_with":return $(u.pattern)?csString.prototype.indexOf.call(y,u.pattern)===0:!1;case"ends_with":return $(u.pattern)?di(y,u.pattern):!1;case"contains":return $(u.pattern)?csString.prototype.indexOf.call(y,u.pattern)!==-1:!1;case"regex":if(!$(u.pattern))return!1;try{return new csRegExp(u.pattern).test(y)}catch(E){return j.warn(`targeting.matchOperation.regex invalid ${E==null?void 0:E.message}`),!1}case"simple":return $(u.pattern)?g(y)===g(u.pattern):!1;case"greater_than":return Number(y)>Number(u.pattern);case"less_than":return Number(y)=b.getTime()}function d(u){return Tt(u)?$(u)?csString.prototype.trim.call(u)==="":Qn(u)?u===!0:Bt(u)?u!==0:!1:!0}function g(u){let y=qe(u,"http://")||qe(u,"https://")?u:`https://${u}`,E=gn(y);return E!==null?csString.prototype.replace.call(E.host,/^www./,""):u}}(s||(s={})),s})(),vy=(()=>{class s{constructor(){this.mg=[],this.yg=[]}setTargetingRules(t){for(let e of t)e.component==="url"?csArray.prototype.push.call(this.mg,e):e.component==="trigger"&&csArray.prototype.push.call(this.yg,e)}matchUrl(t){return na.isUrlMatching(this.mg,t)}matchTrigger(t){return na.isMatching(this.yg,t)}}return s})(),_y=(()=>{class s extends Mt{constructor(t,e,i){super(),this.Ra=t,this.Vh=e,this.A=i}init(){this.Uh=new vy,this.Ra&&this.Uh.setTargetingRules(this.Ra)}onStart(){}checkInitialUrlTargetingRules(){let t=this.A.getAnonymizedUrl();this.jh(t,"url")&&this.Vh()}onStop(){}onTargetingRulesArtificialPageview(t){this.isStarted&&this.jh(t,"url")&&this.Vh()}onExternalEvent(t){this.isStarted&&this.jh(t.name,"trigger")&&this.Vh()}jh(t,e){var i,n;return e==="url"&&$(t)&&(!((i=this.Uh)===null||i===void 0)&&i.matchUrl(t))?!0:!!(e==="trigger"&&(!((n=this.Uh)===null||n===void 0)&&n.matchTrigger(t)))}}return s})(),wy=(()=>{class s{constructor(t,e,i,n,a,c){this.Ra=t,this.tT=e,this.E=i,this.tt=n,this.Z=a,this.A=c}init(){this.Fn=new _y(this.Ra,this.tT,this.A),this.Z.addListener(this.Fn),this.Fn.init()}start(){this.Fn.start()}stop(){this.Fn.stop()}checkInitialUrlTargetingRules(){this.Fn.checkInitialUrlTargetingRules()}emitTargetingCollectState(){let t=this.tt.getInitialCollectState();t===I.ANALYTICS_ONLY?this.E.emitCollectStateChange(I.ANALYTICS_ONLY_RULES_TARGETING,It.ETR_OFF):t===I.RECORDING_GLOBAL_SAMPLING&&this.E.emitCollectStateChange(I.RECORDING_RULES_TARGETING,It.ETR_OFF)}}return s})(),Ay=(()=>{class s extends Mt{constructor(t,e,i,n){super(),this.yr=t,this.kh=e,this.T=i,this.X=n,this.Ca=null,this.Eg=!1,this.Ia=null,pn()&&(this.Eg=!0,e.setRequestParametersProviders({getRequestParameters:()=>{var a;return(a=this.Ia)!==null&&a!==void 0?a:{}}}),e.after(()=>{this.Ia=null}))}async addUserProperties(t){if(!this.Eg)return;if(!this.yr){st.error("missing heap env id","UserPropertiesService");return}let e={};for(let i of Object.keys(t)){let n=t[i];if($(n)||Bt(n)){let a=He.truncate(csString(i),255);e[a]=He.truncate(csString(n),255)}}Object.keys(e).length>0&&(this.isStarted?await this.Sg(e,this.yr):this.Ca=e)}async Sg(t,e){let i=this.T.getVisitor();if(!i){st.warn("could not get current visitor",!0,"UserPropertiesService");return}let n=csString(await xc(i.id));this.Ia={a:e,u:n,st:N.now().toString(),b:"web",v:"1",s:"1",tv:"4.0"};for(let a of Object.keys(t))this.Ia[`_${a}`]=t[a];this.kh.send(),this.X.refreshSession()}onStart(){this.Ca!==null&&(this.Sg(this.Ca,this.yr),this.Ca=null)}onStop(){}}return s})(),oa=["addUserProperties"],by="api/add_user_properties_v3",Ty=(()=>{class s{constructor(t,e,i,n){this.f=t,this.h=e,this.T=i,this.X=n}init(){let t=new Rn(this.h.getPaProxyDomainUri(),by);this.Pa=new Ay(this.h.heapEnvironment.env_id,t,this.T,this.X),this.f.register(oa,e=>{if(!as(e)||e===null)throw new Error(`Command misuse: ${oa[0]}`);this.Pa.addUserProperties(e)})}onStartTracking(){this.Pa.start()}onBeforeSessionRenewal(){this.Pa.stop()}onOptout(){this.Pa.stop()}}return s})();var Ry=(()=>{let s;return function(r){r.COMPRESSION_DISABLED="compressionDisabled"}(s||(s={})),s})(),Cy=(()=>{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 a=0;a{var a;let c=i.toString(),l=`${(a=e.constructor)===null||a===void 0?void 0:a.name}.${c}`,d=n.value;Iy(s.getString("debugLog"),t)&&(n.value=function(...g){return console.log(l,...g),d.bind(this)(...g)})}}}return s})();function Iy(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 aa(){function i(o){let p=o.length;for(;--p>=0;)o[p]=0}let n=0,a=1,c=2,l=3,d=258,g=29,u=256,y=u+1+g,E=30,v=19,b=2*y+1,k=15,R=16,w=7,x=256,A=16,M=17,U=18,J=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]),ct=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]),kt=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]),S=512,P=new Array((y+2)*2);i(P);let V=new Array(E*2);i(V);let H=new Array(S);i(H);let tt=new Array(d-l+1);i(tt);let at=new Array(g);i(at);let wt=new Array(E);i(wt);function de(o,p,f,m,h){this.static_tree=o,this.extra_bits=p,this.extra_base=f,this.elems=m,this.max_length=h,this.has_stree=o&&o.length}let Ye,or,ds;function pe(o,p){this.dyn_tree=o,this.max_code=0,this.stat_desc=p}let Ds=o=>o<256?H[o]:H[256+(o>>>7)],re=(o,p)=>{o.pending_buf[o.pending++]=p&255,o.pending_buf[o.pending++]=p>>>8&255},yt=(o,p,f)=>{o.bi_valid>R-f?(o.bi_buf|=p<>R-o.bi_valid,o.bi_valid+=f-R):(o.bi_buf|=p<{yt(o,f[p*2],f[p*2+1])},Ls=(o,p)=>{let f=0;do f|=o&1,o>>>=1,f<<=1;while(--p>0);return f>>>1},ar=o=>{o.bi_valid===16?(re(o,o.bi_buf),o.bi_buf=0,o.bi_valid=0):o.bi_valid>=8&&(o.pending_buf[o.pending++]=o.bi_buf&255,o.bi_buf>>=8,o.bi_valid-=8)},cr=(o,p)=>{let f=p.dyn_tree,m=p.max_code,h=p.stat_desc.static_tree,T=p.stat_desc.has_stree,_=p.stat_desc.extra_bits,C=p.stat_desc.extra_base,Y=p.stat_desc.max_length,B,Ut,we,it,Ze,gs,Ci=0;for(it=0;it<=k;it++)o.bl_count[it]=0;for(f[o.heap[o.heap_max]*2+1]=0,B=o.heap_max+1;BY&&(it=Y,Ci++),f[Ut*2+1]=it,!(Ut>m)&&(o.bl_count[it]++,Ze=0,Ut>=C&&(Ze=_[Ut-C]),gs=f[Ut*2],o.opt_len+=gs*(it+Ze),T&&(o.static_len+=gs*(h[Ut*2+1]+Ze)));if(Ci!==0){do{for(it=Y-1;o.bl_count[it]===0;)it--;o.bl_count[it]--,o.bl_count[it+1]+=2,o.bl_count[Y]--,Ci-=2}while(Ci>0);for(it=Y;it!==0;it--)for(Ut=o.bl_count[it];Ut!==0;)we=o.heap[--B],!(we>m)&&(f[we*2+1]!==it&&(o.opt_len+=(it-f[we*2+1])*f[we*2],f[we*2+1]=it),Ut--)}},xs=(o,p,f)=>{let m=new Array(k+1),h=0,T,_;for(T=1;T<=k;T++)m[T]=h=h+f[T-1]<<1;for(_=0;_<=p;_++){let C=o[_*2+1];C!==0&&(o[_*2]=Ls(m[C]++,C))}},Pn=()=>{let o,p,f,m,h,T=new Array(k+1);for(f=0,m=0;m>=7;m{let p;for(p=0;p{o.bi_valid>8?re(o,o.bi_buf):o.bi_valid>0&&(o.pending_buf[o.pending++]=o.bi_buf),o.bi_buf=0,o.bi_valid=0},$c=(o,p,f,m)=>{Nn(o),m&&(re(o,f),re(o,~f)),o.pending_buf.set(o.window.subarray(p,p+f),o.pending),o.pending+=f},Mn=(o,p,f,m)=>{let h=p*2,T=f*2;return o[h]{let m=o.heap[f],h=f<<1;for(;h<=o.heap_len&&(h{let m,h,T=0,_,C;if(o.last_lit!==0)do m=o.pending_buf[o.d_buf+T*2]<<8|o.pending_buf[o.d_buf+T*2+1],h=o.pending_buf[o.l_buf+T],T++,m===0?Dt(o,h,p):(_=tt[h],Dt(o,_+u+1,p),C=J[_],C!==0&&(h-=at[_],yt(o,h,C)),m--,_=Ds(m),Dt(o,_,f),C=ct[_],C!==0&&(m-=wt[_],yt(o,m,C)));while(T{let f=p.dyn_tree,m=p.stat_desc.static_tree,h=p.stat_desc.has_stree,T=p.stat_desc.elems,_,C,Y=-1,B;for(o.heap_len=0,o.heap_max=b,_=0;_>1;_>=1;_--)lr(o,f,_);B=T;do _=o.heap[1],o.heap[1]=o.heap[o.heap_len--],lr(o,f,1),C=o.heap[1],o.heap[--o.heap_max]=_,o.heap[--o.heap_max]=C,f[B*2]=f[_*2]+f[C*2],o.depth[B]=(o.depth[_]>=o.depth[C]?o.depth[_]:o.depth[C])+1,f[_*2+1]=f[C*2+1]=B,o.heap[1]=B++,lr(o,f,1);while(o.heap_len>=2);o.heap[--o.heap_max]=o.heap[1],cr(o,p),xs(f,Y,o.bl_count)},Dn=(o,p,f)=>{let m,h=-1,T,_=p[0*2+1],C=0,Y=7,B=4;for(_===0&&(Y=138,B=3),p[(f+1)*2+1]=65535,m=0;m<=f;m++)T=_,_=p[(m+1)*2+1],!(++C{let m,h=-1,T,_=p[0*2+1],C=0,Y=7,B=4;for(_===0&&(Y=138,B=3),m=0;m<=f;m++)if(T=_,_=p[(m+1)*2+1],!(++C{let p;for(Dn(o,o.dyn_ltree,o.l_desc.max_code),Dn(o,o.dyn_dtree,o.d_desc.max_code),hr(o,o.bl_desc),p=v-1;p>=3&&o.bl_tree[_t[p]*2+1]===0;p--);return o.opt_len+=3*(p+1)+5+5+4,p},Gc=(o,p,f,m)=>{let h;for(yt(o,p-257,5),yt(o,f-1,5),yt(o,m-4,4),h=0;h{let p=4093624447,f;for(f=0;f<=31;f++,p>>>=1)if(p&1&&o.dyn_ltree[f*2]!==0)return 0;if(o.dyn_ltree[9*2]!==0||o.dyn_ltree[10*2]!==0||o.dyn_ltree[13*2]!==0)return 1;for(f=32;f{xn||(Pn(),xn=!0),o.l_desc=new pe(o.dyn_ltree,Ye),o.d_desc=new pe(o.dyn_dtree,or),o.bl_desc=new pe(o.bl_tree,ds),o.bi_buf=0,o.bi_valid=0,On(o)},Vn=(o,p,f,m)=>{yt(o,(n<<1)+(m?1:0),3),$c(o,p,f,!0)},Xc=o=>{yt(o,a<<1,3),Dt(o,x,P),ar(o)},Kc=(o,p,f,m)=>{let h,T,_=0;o.level>0?(o.strm.data_type===2&&(o.strm.data_type=Wc(o)),hr(o,o.l_desc),hr(o,o.d_desc),_=qc(o),h=o.opt_len+3+7>>>3,T=o.static_len+3+7>>>3,T<=h&&(h=T)):h=T=f+5,f+4<=h&&p!==-1?Vn(o,p,f,m):o.strategy===4||T===h?(yt(o,(a<<1)+(m?1:0),3),kn(o,P,V)):(yt(o,(c<<1)+(m?1:0),3),Gc(o,o.l_desc.max_code+1,o.d_desc.max_code+1,_+1),kn(o,o.dyn_ltree,o.dyn_dtree)),On(o),m&&Nn(o)},Jc=(o,p,f)=>(o.pending_buf[o.d_buf+o.last_lit*2]=p>>>8&255,o.pending_buf[o.d_buf+o.last_lit*2+1]=p&255,o.pending_buf[o.l_buf+o.last_lit]=f&255,o.last_lit++,p===0?o.dyn_ltree[f*2]++:(o.matches++,p--,o.dyn_ltree[(tt[f]+u+1)*2]++,o.dyn_dtree[Ds(p)*2]++),o.last_lit===o.lit_bufsize-1);var Qc=Yc,Zc=Vn,tl=Kc,el=Jc,sl=Xc,il={_tr_init:Qc,_tr_stored_block:Zc,_tr_flush_block:tl,_tr_tally:el,_tr_align:sl},Un=(o,p,f,m)=>{let h=o&65535|0,T=o>>>16&65535|0,_=0;for(;f!==0;){_=f>2e3?2e3:f,f-=_;do h=h+p[m++]|0,T=T+h|0;while(--_);h%=65521,T%=65521}return h|T<<16|0};let rl=()=>{let o,p=[];for(var f=0;f<256;f++){o=f;for(var m=0;m<8;m++)o=o&1?3988292384^o>>>1:o>>>1;p[f]=o}return p},nl=new Uint32Array(rl());var fe=(o,p,f,m)=>{let h=nl,T=m+f;o^=-1;for(let _=m;_>>8^h[(o^p[_])&255];return o^-1},Ei={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"},jn={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:ol,_tr_stored_block:al,_tr_flush_block:cl,_tr_tally:ge,_tr_align:ll}=il,{Z_NO_FLUSH:Xe,Z_PARTIAL_FLUSH:hl,Z_FULL_FLUSH:ul,Z_FINISH:me,Z_BLOCK:Hn,Z_OK:Xt,Z_STREAM_END:Bn,Z_STREAM_ERROR:jt,Z_DATA_ERROR:dl,Z_BUF_ERROR:ur,Z_DEFAULT_COMPRESSION:pl,Z_FILTERED:fl,Z_HUFFMAN_ONLY:Si,Z_RLE:gl,Z_FIXED:ml,Z_DEFAULT_STRATEGY:yl,Z_UNKNOWN:El,Z_DEFLATED:vi}=jn,Sl=9,vl=15,_l=8,dr=256+1+29,wl=30,Al=19,bl=2*dr+1,Tl=15,W=3,ye=258,qt=ye+W+1,Rl=32,_i=42,pr=69,wi=73,Ai=91,bi=103,Ke=113,Vs=666,dt=1,Us=2,Je=3,ps=4,Cl=3,Ee=(o,p)=>(o.msg=Ei[p],p),Fn=o=>(o<<1)-(o>4?9:0),Se=o=>{let p=o.length;for(;--p>=0;)o[p]=0},ve=(o,p,f)=>(p<{let p=o.state,f=p.pending;f>o.avail_out&&(f=o.avail_out),f!==0&&(o.output.set(p.pending_buf.subarray(p.pending_out,p.pending_out+f),o.next_out),o.next_out+=f,p.pending_out+=f,o.total_out+=f,o.avail_out-=f,p.pending-=f,p.pending===0&&(p.pending_out=0))},Et=(o,p)=>{cl(o,o.block_start>=0?o.block_start:-1,o.strstart-o.block_start,p),o.block_start=o.strstart,_e(o.strm)},Q=(o,p)=>{o.pending_buf[o.pending++]=p},js=(o,p)=>{o.pending_buf[o.pending++]=p>>>8&255,o.pending_buf[o.pending++]=p&255},Il=(o,p,f,m)=>{let h=o.avail_in;return h>m&&(h=m),h===0?0:(o.avail_in-=h,p.set(o.input.subarray(o.next_in,o.next_in+h),f),o.state.wrap===1?o.adler=Un(o.adler,p,h,f):o.state.wrap===2&&(o.adler=fe(o.adler,p,h,f)),o.next_in+=h,o.total_in+=h,h)},zn=(o,p)=>{let f=o.max_chain_length,m=o.strstart,h,T,_=o.prev_length,C=o.nice_match,Y=o.strstart>o.w_size-qt?o.strstart-(o.w_size-qt):0,B=o.window,Ut=o.w_mask,we=o.prev,it=o.strstart+ye,Ze=B[m+_-1],gs=B[m+_];o.prev_length>=o.good_match&&(f>>=2),C>o.lookahead&&(C=o.lookahead);do if(h=p,!(B[h+_]!==gs||B[h+_-1]!==Ze||B[h]!==B[m]||B[++h]!==B[m+1])){m+=2,h++;do;while(B[++m]===B[++h]&&B[++m]===B[++h]&&B[++m]===B[++h]&&B[++m]===B[++h]&&B[++m]===B[++h]&&B[++m]===B[++h]&&B[++m]===B[++h]&&B[++m]===B[++h]&&m_){if(o.match_start=p,_=T,T>=C)break;Ze=B[m+_-1],gs=B[m+_]}}while((p=we[p&Ut])>Y&&--f!==0);return _<=o.lookahead?_:o.lookahead},Qe=o=>{let p=o.w_size,f,m,h,T,_;do{if(T=o.window_size-o.lookahead-o.strstart,o.strstart>=p+(p-qt)){o.window.set(o.window.subarray(p,p+p),0),o.match_start-=p,o.strstart-=p,o.block_start-=p,m=o.hash_size,f=m;do h=o.head[--f],o.head[f]=h>=p?h-p:0;while(--m);m=p,f=m;do h=o.prev[--f],o.prev[f]=h>=p?h-p:0;while(--m);T+=p}if(o.strm.avail_in===0)break;if(m=Il(o.strm,o.window,o.strstart+o.lookahead,T),o.lookahead+=m,o.lookahead+o.insert>=W)for(_=o.strstart-o.insert,o.ins_h=o.window[_],o.ins_h=ve(o,o.ins_h,o.window[_+1]);o.insert&&(o.ins_h=ve(o,o.ins_h,o.window[_+W-1]),o.prev[_&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=_,_++,o.insert--,!(o.lookahead+o.insert{let f=65535;for(f>o.pending_buf_size-5&&(f=o.pending_buf_size-5);;){if(o.lookahead<=1){if(Qe(o),o.lookahead===0&&p===Xe)return dt;if(o.lookahead===0)break}o.strstart+=o.lookahead,o.lookahead=0;let m=o.block_start+f;if((o.strstart===0||o.strstart>=m)&&(o.lookahead=o.strstart-m,o.strstart=m,Et(o,!1),o.strm.avail_out===0)||o.strstart-o.block_start>=o.w_size-qt&&(Et(o,!1),o.strm.avail_out===0))return dt}return o.insert=0,p===me?(Et(o,!0),o.strm.avail_out===0?Je:ps):(o.strstart>o.block_start&&(Et(o,!1),o.strm.avail_out===0),dt)},fr=(o,p)=>{let f,m;for(;;){if(o.lookahead=W&&(o.ins_h=ve(o,o.ins_h,o.window[o.strstart+W-1]),f=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart),f!==0&&o.strstart-f<=o.w_size-qt&&(o.match_length=zn(o,f)),o.match_length>=W)if(m=ge(o,o.strstart-o.match_start,o.match_length-W),o.lookahead-=o.match_length,o.match_length<=o.max_lazy_match&&o.lookahead>=W){o.match_length--;do o.strstart++,o.ins_h=ve(o,o.ins_h,o.window[o.strstart+W-1]),f=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart;while(--o.match_length!==0);o.strstart++}else o.strstart+=o.match_length,o.match_length=0,o.ins_h=o.window[o.strstart],o.ins_h=ve(o,o.ins_h,o.window[o.strstart+1]);else m=ge(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++;if(m&&(Et(o,!1),o.strm.avail_out===0))return dt}return o.insert=o.strstart{let f,m,h;for(;;){if(o.lookahead=W&&(o.ins_h=ve(o,o.ins_h,o.window[o.strstart+W-1]),f=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart),o.prev_length=o.match_length,o.prev_match=o.match_start,o.match_length=W-1,f!==0&&o.prev_length4096)&&(o.match_length=W-1)),o.prev_length>=W&&o.match_length<=o.prev_length){h=o.strstart+o.lookahead-W,m=ge(o,o.strstart-1-o.prev_match,o.prev_length-W),o.lookahead-=o.prev_length-1,o.prev_length-=2;do++o.strstart<=h&&(o.ins_h=ve(o,o.ins_h,o.window[o.strstart+W-1]),f=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart);while(--o.prev_length!==0);if(o.match_available=0,o.match_length=W-1,o.strstart++,m&&(Et(o,!1),o.strm.avail_out===0))return dt}else if(o.match_available){if(m=ge(o,0,o.window[o.strstart-1]),m&&Et(o,!1),o.strstart++,o.lookahead--,o.strm.avail_out===0)return dt}else o.match_available=1,o.strstart++,o.lookahead--}return o.match_available&&(m=ge(o,0,o.window[o.strstart-1]),o.match_available=0),o.insert=o.strstart{let f,m,h,T,_=o.window;for(;;){if(o.lookahead<=ye){if(Qe(o),o.lookahead<=ye&&p===Xe)return dt;if(o.lookahead===0)break}if(o.match_length=0,o.lookahead>=W&&o.strstart>0&&(h=o.strstart-1,m=_[h],m===_[++h]&&m===_[++h]&&m===_[++h])){T=o.strstart+ye;do;while(m===_[++h]&&m===_[++h]&&m===_[++h]&&m===_[++h]&&m===_[++h]&&m===_[++h]&&m===_[++h]&&m===_[++h]&&ho.lookahead&&(o.match_length=o.lookahead)}if(o.match_length>=W?(f=ge(o,1,o.match_length-W),o.lookahead-=o.match_length,o.strstart+=o.match_length,o.match_length=0):(f=ge(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++),f&&(Et(o,!1),o.strm.avail_out===0))return dt}return o.insert=0,p===me?(Et(o,!0),o.strm.avail_out===0?Je:ps):o.last_lit&&(Et(o,!1),o.strm.avail_out===0)?dt:Us},Nl=(o,p)=>{let f;for(;;){if(o.lookahead===0&&(Qe(o),o.lookahead===0)){if(p===Xe)return dt;break}if(o.match_length=0,f=ge(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++,f&&(Et(o,!1),o.strm.avail_out===0))return dt}return o.insert=0,p===me?(Et(o,!0),o.strm.avail_out===0?Je:ps):o.last_lit&&(Et(o,!1),o.strm.avail_out===0)?dt:Us};function Kt(o,p,f,m,h){this.good_length=o,this.max_lazy=p,this.nice_length=f,this.max_chain=m,this.func=h}let Hs=[new Kt(0,0,0,0,Pl),new Kt(4,4,8,4,fr),new Kt(4,5,16,8,fr),new Kt(4,6,32,32,fr),new Kt(4,4,16,16,fs),new Kt(8,16,32,32,fs),new Kt(8,16,128,128,fs),new Kt(8,32,128,256,fs),new Kt(32,128,258,1024,fs),new Kt(32,258,258,4096,fs)],Ml=o=>{o.window_size=2*o.w_size,Se(o.head),o.max_lazy_match=Hs[o.level].max_lazy,o.good_match=Hs[o.level].good_length,o.nice_match=Hs[o.level].nice_length,o.max_chain_length=Hs[o.level].max_chain,o.strstart=0,o.block_start=0,o.lookahead=0,o.insert=0,o.match_length=o.prev_length=W-1,o.match_available=0,o.ins_h=0};function kl(){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=vi,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(bl*2),this.dyn_dtree=new Uint16Array((2*wl+1)*2),this.bl_tree=new Uint16Array((2*Al+1)*2),Se(this.dyn_ltree),Se(this.dyn_dtree),Se(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Tl+1),this.heap=new Uint16Array(2*dr+1),Se(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*dr+1),Se(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 $n=o=>{if(!o||!o.state)return Ee(o,jt);o.total_in=o.total_out=0,o.data_type=El;let p=o.state;return p.pending=0,p.pending_out=0,p.wrap<0&&(p.wrap=-p.wrap),p.status=p.wrap?_i:Ke,o.adler=p.wrap===2?0:1,p.last_flush=Xe,ol(p),Xt},qn=o=>{let p=$n(o);return p===Xt&&Ml(o.state),p},Dl=(o,p)=>!o||!o.state||o.state.wrap!==2?jt:(o.state.gzhead=p,Xt),Gn=(o,p,f,m,h,T)=>{if(!o)return jt;let _=1;if(p===pl&&(p=6),m<0?(_=0,m=-m):m>15&&(_=2,m-=16),h<1||h>Sl||f!==vi||m<8||m>15||p<0||p>9||T<0||T>ml)return Ee(o,jt);m===8&&(m=9);let C=new kl;return o.state=C,C.strm=o,C.wrap=_,C.gzhead=null,C.w_bits=m,C.w_size=1<Gn(o,p,vi,vl,_l,yl),xl=(o,p)=>{let f,m;if(!o||!o.state||p>Hn||p<0)return o?Ee(o,jt):jt;let h=o.state;if(!o.output||!o.input&&o.avail_in!==0||h.status===Vs&&p!==me)return Ee(o,o.avail_out===0?ur:jt);h.strm=o;let T=h.last_flush;if(h.last_flush=p,h.status===_i)if(h.wrap===2)o.adler=0,Q(h,31),Q(h,139),Q(h,8),h.gzhead?(Q(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),Q(h,h.gzhead.time&255),Q(h,h.gzhead.time>>8&255),Q(h,h.gzhead.time>>16&255),Q(h,h.gzhead.time>>24&255),Q(h,h.level===9?2:h.strategy>=Si||h.level<2?4:0),Q(h,h.gzhead.os&255),h.gzhead.extra&&h.gzhead.extra.length&&(Q(h,h.gzhead.extra.length&255),Q(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(o.adler=fe(o.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=pr):(Q(h,0),Q(h,0),Q(h,0),Q(h,0),Q(h,0),Q(h,h.level===9?2:h.strategy>=Si||h.level<2?4:0),Q(h,Cl),h.status=Ke);else{let _=vi+(h.w_bits-8<<4)<<8,C=-1;h.strategy>=Si||h.level<2?C=0:h.level<6?C=1:h.level===6?C=2:C=3,_|=C<<6,h.strstart!==0&&(_|=Rl),_+=31-_%31,h.status=Ke,js(h,_),h.strstart!==0&&(js(h,o.adler>>>16),js(h,o.adler&65535)),o.adler=1}if(h.status===pr)if(h.gzhead.extra){for(f=h.pending;h.gzindex<(h.gzhead.extra.length&65535)&&!(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>f&&(o.adler=fe(o.adler,h.pending_buf,h.pending-f,f)),_e(o),f=h.pending,h.pending===h.pending_buf_size));)Q(h,h.gzhead.extra[h.gzindex]&255),h.gzindex++;h.gzhead.hcrc&&h.pending>f&&(o.adler=fe(o.adler,h.pending_buf,h.pending-f,f)),h.gzindex===h.gzhead.extra.length&&(h.gzindex=0,h.status=wi)}else h.status=wi;if(h.status===wi)if(h.gzhead.name){f=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>f&&(o.adler=fe(o.adler,h.pending_buf,h.pending-f,f)),_e(o),f=h.pending,h.pending===h.pending_buf_size)){m=1;break}h.gzindexf&&(o.adler=fe(o.adler,h.pending_buf,h.pending-f,f)),m===0&&(h.gzindex=0,h.status=Ai)}else h.status=Ai;if(h.status===Ai)if(h.gzhead.comment){f=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>f&&(o.adler=fe(o.adler,h.pending_buf,h.pending-f,f)),_e(o),f=h.pending,h.pending===h.pending_buf_size)){m=1;break}h.gzindexf&&(o.adler=fe(o.adler,h.pending_buf,h.pending-f,f)),m===0&&(h.status=bi)}else h.status=bi;if(h.status===bi&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&_e(o),h.pending+2<=h.pending_buf_size&&(Q(h,o.adler&255),Q(h,o.adler>>8&255),o.adler=0,h.status=Ke)):h.status=Ke),h.pending!==0){if(_e(o),o.avail_out===0)return h.last_flush=-1,Xt}else if(o.avail_in===0&&Fn(p)<=Fn(T)&&p!==me)return Ee(o,ur);if(h.status===Vs&&o.avail_in!==0)return Ee(o,ur);if(o.avail_in!==0||h.lookahead!==0||p!==Xe&&h.status!==Vs){let _=h.strategy===Si?Nl(h,p):h.strategy===gl?Ol(h,p):Hs[h.level].func(h,p);if((_===Je||_===ps)&&(h.status=Vs),_===dt||_===Je)return o.avail_out===0&&(h.last_flush=-1),Xt;if(_===Us&&(p===hl?ll(h):p!==Hn&&(al(h,0,0,!1),p===ul&&(Se(h.head),h.lookahead===0&&(h.strstart=0,h.block_start=0,h.insert=0))),_e(o),o.avail_out===0))return h.last_flush=-1,Xt}return p!==me?Xt:h.wrap<=0?Bn:(h.wrap===2?(Q(h,o.adler&255),Q(h,o.adler>>8&255),Q(h,o.adler>>16&255),Q(h,o.adler>>24&255),Q(h,o.total_in&255),Q(h,o.total_in>>8&255),Q(h,o.total_in>>16&255),Q(h,o.total_in>>24&255)):(js(h,o.adler>>>16),js(h,o.adler&65535)),_e(o),h.wrap>0&&(h.wrap=-h.wrap),h.pending!==0?Xt:Bn)},Vl=o=>{if(!o||!o.state)return jt;let p=o.state.status;return p!==_i&&p!==pr&&p!==wi&&p!==Ai&&p!==bi&&p!==Ke&&p!==Vs?Ee(o,jt):(o.state=null,p===Ke?Ee(o,dl):Xt)},Ul=(o,p)=>{let f=p.length;if(!o||!o.state)return jt;let m=o.state,h=m.wrap;if(h===2||h===1&&m.status!==_i||m.lookahead)return jt;if(h===1&&(o.adler=Un(o.adler,p,f,0)),m.wrap=0,f>=m.w_size){h===0&&(Se(m.head),m.strstart=0,m.block_start=0,m.insert=0);let Y=new Uint8Array(m.w_size);Y.set(p.subarray(f-m.w_size,f),0),p=Y,f=m.w_size}let T=o.avail_in,_=o.next_in,C=o.input;for(o.avail_in=f,o.next_in=0,o.input=p,Qe(m);m.lookahead>=W;){let Y=m.strstart,B=m.lookahead-(W-1);do m.ins_h=ve(m,m.ins_h,m.window[Y+W-1]),m.prev[Y&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=Y,Y++;while(--B);m.strstart=Y,m.lookahead=W-1,Qe(m)}return m.strstart+=m.lookahead,m.block_start=m.strstart,m.insert=m.lookahead,m.lookahead=0,m.match_length=m.prev_length=W-1,m.match_available=0,o.next_in=_,o.input=C,o.avail_in=T,m.wrap=h,Xt};var jl=Ll,Hl=Gn,Bl=qn,Fl=$n,zl=Dl,$l=xl,ql=Vl,Gl=Ul,Wl="pako deflate (from Nodeca project)",Bs={deflateInit:jl,deflateInit2:Hl,deflateReset:Bl,deflateResetKeep:Fl,deflateSetHeader:zl,deflate:$l,deflateEnd:ql,deflateSetDictionary:Gl,deflateInfo:Wl};let Yl=(o,p)=>Object.prototype.hasOwnProperty.call(o,p);var Xl=function(o){let p=Array.prototype.slice.call(arguments,1);for(;p.length;){let f=p.shift();if(f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(let m in f)Yl(f,m)&&(o[m]=f[m])}}return o},Kl=o=>{let p=0;for(let m=0,h=o.length;m=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;Fs[254]=Fs[254]=1;var Jl=o=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(o);let p,f,m,h,T,_=o.length,C=0;for(h=0;h<_;h++)f=o.charCodeAt(h),(f&64512)===55296&&h+1<_&&(m=o.charCodeAt(h+1),(m&64512)===56320&&(f=65536+(f-55296<<10)+(m-56320),h++)),C+=f<128?1:f<2048?2:f<65536?3:4;for(p=new Uint8Array(C),T=0,h=0;T>>6,p[T++]=128|f&63):f<65536?(p[T++]=224|f>>>12,p[T++]=128|f>>>6&63,p[T++]=128|f&63):(p[T++]=240|f>>>18,p[T++]=128|f>>>12&63,p[T++]=128|f>>>6&63,p[T++]=128|f&63);return p};let Xn=(o,p=o.length)=>{if(p<65534&&o.subarray&&Yn)return String.fromCharCode.apply(null,o.length===p?o:o.subarray(0,p));let f="";for(let m=0;m{let f=p||o.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(o.subarray(0,p));let m,h,T=new Array(f*2);for(h=0,m=0;m4){T[h++]=65533,m+=C-1;continue}for(_&=C===2?31:C===3?15:7;C>1&&m1){T[h++]=65533;continue}_<65536?T[h++]=_:(_-=65536,T[h++]=55296|_>>10&1023,T[h++]=56320|_&1023)}return Xn(T,h)},Zl=(o,p)=>{p=p||o.length,p>o.length&&(p=o.length);let f=p-1;for(;f>=0&&(o[f]&192)===128;)f--;return f<0||f===0?p:f+Fs[o[f]]>p?f:p},Kn={string2buf:Jl,buf2string:Ql,utf8border:Zl};function th(){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 eh=th;let Jn=Object.prototype.toString,{Z_NO_FLUSH:sh,Z_SYNC_FLUSH:ih,Z_FULL_FLUSH:rh,Z_FINISH:nh,Z_OK:Ti,Z_STREAM_END:oh,Z_DEFAULT_COMPRESSION:ah,Z_DEFAULT_STRATEGY:ch,Z_DEFLATED:lh}=jn;function Ri(o){this.options=Wn.assign({level:ah,method:lh,chunkSize:16384,windowBits:15,memLevel:8,strategy:ch},o||{});let p=this.options;p.raw&&p.windowBits>0?p.windowBits=-p.windowBits:p.gzip&&p.windowBits>0&&p.windowBits<16&&(p.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eh,this.strm.avail_out=0;let f=Bs.deflateInit2(this.strm,p.level,p.method,p.windowBits,p.memLevel,p.strategy);if(f!==Ti)throw new Error(Ei[f]);if(p.header&&Bs.deflateSetHeader(this.strm,p.header),p.dictionary){let m;if(typeof p.dictionary=="string"?m=Kn.string2buf(p.dictionary):Jn.call(p.dictionary)==="[object ArrayBuffer]"?m=new Uint8Array(p.dictionary):m=p.dictionary,f=Bs.deflateSetDictionary(this.strm,m),f!==Ti)throw new Error(Ei[f]);this._dict_set=!0}}Ri.prototype.push=function(o,p){let f=this.strm,m=this.options.chunkSize,h,T;if(this.ended)return!1;for(p===~~p?T=p:T=p===!0?nh:sh,typeof o=="string"?f.input=Kn.string2buf(o):Jn.call(o)==="[object ArrayBuffer]"?f.input=new Uint8Array(o):f.input=o,f.next_in=0,f.avail_in=f.input.length;;){if(f.avail_out===0&&(f.output=new Uint8Array(m),f.next_out=0,f.avail_out=m),(T===ih||T===rh)&&f.avail_out<=6){this.onData(f.output.subarray(0,f.next_out)),f.avail_out=0;continue}if(h=Bs.deflate(f,T),h===oh)return f.next_out>0&&this.onData(f.output.subarray(0,f.next_out)),h=Bs.deflateEnd(this.strm),this.onEnd(h),this.ended=!0,h===Ti;if(f.avail_out===0){this.onData(f.output);continue}if(T>0&&f.next_out>0){this.onData(f.output.subarray(0,f.next_out)),f.avail_out=0;continue}if(f.avail_in===0)break}return!0},Ri.prototype.onData=function(o){this.chunks.push(o)},Ri.prototype.onEnd=function(o){o===Ti&&(this.result=Wn.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg};function hh(o,p){p=p||{};let f=new Ri(p);if(f.push(o,!0),f.err)throw f.msg||Ei[f.err];return f.result}function uh(o,p){return p=p||{},p.gzip=!0,hh(o,p)}return(o,p,f)=>{let m=uh(o);return p==="base64"?m=btoa(Xn(m)):m=m.buffer,f&&f(m),m}}var Py=(()=>{class s extends Ba{constructor(t){super(t),this.algorithm=Zi.GZIP,this.vg=aa(),this.sT=(i,n,a)=>{let c=this.vg(i,n);a(c)},this.compress=ca(),typeof CompressionStream!="undefined"&&Od||(this.compress=this.sT,this.getCompressorSourceCode=()=>aa.toString())}compressSync(t,e){return this.vg(t,e)}getCompressorSourceCode(){return ca.toString()}}return s})();function ca(){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(a=>s(a)).then(a=>e(a));return}n.then(a=>e(a))}}var Oy=(()=>{class s extends Ba{constructor(){super(...arguments),this.algorithm=Zi.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})(),Uc=(()=>{class s{static create(t,e=!0){return this.instance?this.instance:e&&!Cy.isCompressionEnabled()?new Oy(t):this.instance=new Py(t)}}return s})();var Ny=(()=>{class s{constructor(t,e,i,n,a,c,l,d,g,u,y,E,v,b,k,R,w,x,A,M,U,J,ct,kt,_t,S,P,V,H){this.et=t,this.ae=e,this.T=i,this.w=n,this.E=a,this.f=c,this.Fh=l,this.h=d,this.zh=g,this.Xs=u,this.$n=y,this.ue=E,this.I=v,this.W=b,this.J=k,this.A=R,this.cT=w,this.Z=x,this.at=A,this.vt=M,this.wg=U,this.Zt=J,this.lT=ct,this.C=kt,this.Mt=_t,this.M=S,this.Bt=P,this.tt=V,this.gt=H,this.hT=(tt=!1)=>{let at=this.w.getSession();at===null?(this._r=new wy(this.h.recordTargetingRules,this.Ag,this.E,this.tt,this.Z,this.A),this._r.init(),this._r.start()):(at.collectState===I.RECORDING_RULES_TARGETING||at.collectState===I.ANALYTICS_ONLY_RULES_TARGETING)&&this.Ag(tt)},this.Ag=(tt=!1)=>{this.wr.onLoad(()=>{var at,wt;(at=this._r)===null||at===void 0||at.emitTargetingCollectState(),(wt=this._r)===null||wt===void 0||wt.stop(),this.E.emitStartTracking(tt)}),this.Oa(tt)},this.Oa=(tt=!1)=>{this.Xs.isActive()||(this.gt.init(),this.$h.start(tt),this.wr.start())},this.uT=()=>{this.E.emitBeforeSessionRenewal(),this.Ar(!0),this.E.emitAfterSessionRenewal()},this.dT=()=>{this.E.emitBeforeSessionRenewal(),this.tt.refreshQuota(),this.tt.onQuotaReady(tt=>{tt!==I.QUOTA_REACHED&&(this.Ar(!0),this.E.emitAfterSessionRenewal())})}}start(){var t;if(this.zh.init(),this.Xs.init(),this.Xs.isActive())return;let e,i,n,a,c,l,d,g,u,y,E,v,b,k,R,w,x,A,M,U;this.C.schedule(()=>{b=new Im(this.w,this.T),w=new Fm(b),v=new ym(this.W),k=new Gm(()=>{}),x=new Wm,U=new Ym;let J=new Sy(k,this.gt,x,M,U,this.qh());R=new gy(this.qh(),this.gt,J,x,A);let ct=new Ey(this.E,this.f,this.gt,J,x,A,M);ct.init(),this.E.addListener(ct),e=new rm(this.h,this.et,this.T,this.W,v,this.f,b,new Vm(j),this.at,this.Mt,this.Z,R),i=new mg(this.f,this.w,this.h,this.et,this.ae,this.I),E=new Hm(R);let kt=new xm(this.h);y=new Lm(this.h,kt,E,R,this.at),y.init();let _t=new Bm;n=new hg(this.T,this.w,this.f,this.at,kt,this.h,_t,E),a=new bg(this.h,this.et,this.T,this.f,this.I,b,this.A),this.h.isCsCrosswritingHeap()&&(this.ss=new fy,this.bg=new py(this.ss,this.f),this.E.addListener(this.bg),this.bg.init());let S;this.h.isCsCrosswritingHeap()&&(this.Tg=new ly(this.f,this.h,this.T,b),this.E.addListener(this.Tg),this.Tg.init(),this.Rg=new Ty(this.f,this.h,this.T,b),this.E.addListener(this.Rg),this.Rg.init()),this.$h=new mm(this.h,this.f,this.E,this.et,this.T,this.w,this.ue,this.vt,this.J,this.A,this.Zt,_t,this.Z,this.ss,S),this.Cg=new Tm(this.h,this.T,this.w,this.f),d=new Mm(this.h,this.f,this.ae,this.et,this.Z),g=new Dm(this.f),u=new jm(this.h,new Va(this.h,this.I),this.Mt),this.wr=new Em}),this.C.schedule(()=>{this.$n.init()}),this.C.schedule(()=>{n.init()}),this.C.schedule(()=>{i.init()}),this.C.schedule(()=>{a.init()}),this.C.schedule(()=>{this.wg.init()}),this.C.schedule(()=>{this.$h.init()}),this.C.schedule(()=>{this.Cg.init()}),this.C.schedule(()=>{d.init()}),this.C.schedule(()=>{this.cT.init()}),this.C.schedule(()=>{g.init()}),this.C.schedule(()=>{u.init()}),this.C.schedule(()=>{this.lT.init()}),this.C.schedule(()=>{this.E.addListener(this.Cg),this.E.addListener(this.Fh),this.E.addListener(e),this.E.addListener(this.$n),this.E.addListener(n),this.E.addListener(a),this.E.addListener(this.wg),this.E.addListener(this.$h),this.E.addListener(d),this.E.addListener(i),this.E.addListener(y),this.E.addListener(u),this.E.addListener(w)}),ai.isRecordingSupported()&&this.C.schedule(()=>{let J=new Qf(E,this.w,this.h,this.et,this.f,this.I,b,k,this.xe,this.ut,this.Ce,this.ft,this.E,this.Z,this.at,this.Zt,this.Mt,this.J,this.Vr,this.qh(),this.cr,A);J.init(),this.E.addListener(J),n.setRecordingService(J.recordingService)}),this.C.schedule(()=>{e.init()}),this.C.schedule(()=>{this.h.isQuotaEnabled()?b.onSessionExpired(()=>{this.dT()}):b.onSessionExpired(()=>{this.uT()}),this.Ar()})}Ar(t=!1){var e;if(this.h.hasTargetingRules()){this.hT(t),this.f.start(),this._r&&this._r.checkInitialUrlTargetingRules();return}this.f.start(),this.wr.onLoad(()=>{this.E.emitStartTracking(t)}),(!kc(this.h)||t)&&this.Oa(t)}qh(){if(this.nt)return this.nt;let t=new qm;return this.nt=new $m(this.ue,this.h,this.A,t),this.nt.init(),this.nt.shouldUseAnonymization()&&ht.counters.pageAnonymisation.count("anonymized-on-start"),this.nt}}return s})(),My=(()=>{class s{constructor(t,e,i,n,a,c,l,d){this.h=t,this.T=e,this.Ge=i,this.Ig=n,this.pT=a,this.fT=c,this.gT=l,this.Gh=d}compute(t){var e,i;this.h.crossDomainTracking&&!this.h.cookielessTrackingEnabled?this.h.crossDomainSingleIframeTracking?(e=this.gT)===null||e===void 0||e.start(()=>this.Wh(t)):(i=this.fT)===null||i===void 0||i.applyUpToDate(()=>this.Wh(t)):this.Wh(t)}Wh(t){this.pT.handle(),this.Ig.clear(),this.mT()?(this.Ig.restoreClearedVisitor(),t(!0)):(this.Ge.exclude(this.h),t(!1))}mT(){let t=Ts.boolean(this.h.sampleRate);return this.Gh.isForceIncluded()||!this.Ge.isExcluded()&&this.T.doesVisitorExist()||!this.Ge.isExcluded()&&t}}return s})(),ky=(()=>{class s{constructor(t,e,i,n){this.h=t,this.it=e,this.E=i,this.w=n,this.yT=10*1e3}createOrUpdateVisitor(){var t;let e=this.getVisitor();e===null&&(e=this.ET(),(t=this.w)===null||t===void 0||t.removeSession()),this.ST(e),this.setVisitor(e)}ET(){return{id:zm.generate(),visitsCount:0,appliedTrackingDraw:this.h.lastTrackingDraw,creationTimestamp:ao(),lastVisitTimestamp:0,hitTimestamp:0,expires:N.now()+this.h.visitorCookieTimeout,allowSubdomains:this.h.allowSubdomains,identityPrint:null}}ST(t){let e=ao();this.w&&!this.w.doesSessionExist()&&(t.visitsCount+=1,t.lastVisitTimestamp=e),t.hitTimestamp=e,t.appliedTrackingDraw=this.h.lastTrackingDraw,this.Pg=t.visitsCount}getRequestParameters(){let t=this.getVisitor();return t?{uu:t.id,sn:`${t.visitsCount}`,hd:`${t.hitTimestamp}`}:{}}getVisitor(){return this.it.get()}setVisitor(t){this.it.set(t)}doesVisitorExist(){return this.it.get()!==null}resetVisitor(){this.Og(),this.E.emitAfterVisitorCleared()}removeVisitor(){this.it.remove()}hasAllowSubdomainsChanged(){let t=this.getVisitor();return t?t.allowSubdomains!==this.h.allowSubdomains:!1}handleSubdomainChange(){this.it.handleSubdomainChange()}isSessionRenewed(){let t=this.getVisitor();return t===null||this.Pg===void 0?!1:t.visitsCount!==this.Pg}vT(){return!Z(this.Ng)||N.now()-this.Ng>this.yT}renewVisitor(){this.vT()?(this.Ng=N.now(),this.Og(),this.E.emitAfterVisitorRenewal()):j.warn("session:start:newVisitor is trying to renew visitor under time limit")}Og(){this.E.emitBeforeVisitorRenewal(),this.removeVisitor()}}return s})(),Gt="_cs_s",Bi=18e5,Dr=".",Dy=13,Li=(()=>{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})(),Ly=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Yt=i,this.Jt=null,this.Yh=!1}get(t){let e=this.getRawSession(t);return this.isValid(e)?Wa(e):null}getRawSession(t){if(t){let g=this.Xh();return qr(g)}let{sessionString:e,status:i}=this._T(),n=qr(e);if(i!==Li.EXPIRED)return n;if(this.h.cookielessTrackingEnabled)return null;let a=this.Xh();if(!a)return null;let c=csString.prototype.split.call(a,Dr);if(!s.Mg(c))return a;let l=c[c.length-1],d=parseInt(l,10);return isNaN(d)||this.wT(d),n}onCookieToSet(t){this.oi=t}onCookieToRemove(t){this.ai=t}set(t,e=Bi){var i;let n=N.now()+e,a=ad(t);a+=`${Dr}${n}`,this.AT(a,n),this.h.cookielessTrackingEnabled?this.Yt.setItem(Gt,a):(this.M.set(Gt,a,e),(i=this.oi)===null||i===void 0||i.call(this,Gt,a,e))}remove(){var t;this.h.cookielessTrackingEnabled?this.Yt.removeItem(Gt):(this.M.delete(Gt),(t=this.ai)===null||t===void 0||t.call(this,Gt)),this.bT()}handleSubdomainChange(){if(this.h.cookielessTrackingEnabled)return;let t=this.get(!0);t&&(this.h.allowSubdomains?this.M.delete(Gt,Qi.CURRENT_DOMAIN):this.M.delete(Gt,this.M.getRootDomain()),this.set(t))}isValid(t){return t!==null&&Ya(t)}AT(t,e){this.Jt={sessionString:t,expires:e}}_T(){return this.Jt?this.Jt&&N.now()<=this.Jt.expires?{sessionString:this.Jt.sessionString,status:Li.FOUND}:{sessionString:this.Jt.sessionString,status:Li.EXPIRED}:{sessionString:this.Xh(),status:Li.NOT_FOUND}}bT(){this.Jt=null}wT(t){this.Jt&&(this.Jt.expires=t,this.Yh=!0)}isCacheRefreshed(){return this.Yh}resetCacheRefreshed(){this.Yh=!1}Xh(){if(this.h.cookielessTrackingEnabled){let e=this.Yt.getItem(Gt);return!e||this.kg(e)?null:e}let t=this.M.get(Gt);return!t||this.kg(t)?null:t}kg(t){let e=csString.prototype.split.call(t,Dr);if(!s.Mg(e))return!1;let i=parseInt(e[e.length-1],10);return!isNaN(i)&&N.now()>i}static Mg(t){return t[t.length-1].length===Dy}}return s})(),Cn=60*1e3,xy=60*Cn,Vy=4*xy-Cn,Es=(()=>{let s;return function(r){r[r.NO=0]="NO",r[r.WITHDRAWN=1]="WITHDRAWN",r[r.GRANTED=2]="GRANTED"}(s||(s={})),s})(),Uy=(()=>{class s{constructor(t,e){this.fe=t,this.tt=e,this.qn=null,this.Kh=0,this.Gn=Es.NO}setDynamicVariablesService(t){this.TT=t}createOrUpdateSession(){this.Jh(),this.RT=N.now(),this.Kh=0;let t=this.Dg();t===null?(t=this.CT(),this.Lg(t),this.Na(t)):(t=this.tt.sanitizeSessionCollectState(t),this.Lg(t),t.collectState=this.tt.getEligibleCollectState(t)),this.setSession(t)}grantReplayRecording(t){t.collectState=this.tt.getInitialCollectState(),t.collectState=this.tt.computeInitialCollectStateFromRecordingConsentGranted(t),this.setSession(t)}grantReplayRecordingBeforeSessionStart(){this.Gn=Es.GRANTED}withdrawnReplayRecording(t){t.collectState=this.tt.getRecordingConsentWithdrawn(),this.setSession(t)}withdrawnReplayRecordingBeforeSessionStart(){this.Gn=Es.WITHDRAWN}Na(t){this.Gn===Es.WITHDRAWN?(t.collectState=this.tt.getRecordingConsentWithdrawn(),this.setSession(t)):this.Gn===Es.GRANTED?t.collectState=this.tt.computeInitialCollectStateFromRecordingConsentGranted(t):t.collectState=this.tt.computeInitialCollectState(t),this.Gn=Es.NO}CT(){return{pageNumber:0,collectState:this.tt.getInitialCollectState(),etrState:It.ETR_OFF,etrStatus:Rt.ETR_NOT_SAVED_SESSION}}Lg(t){t.pageNumber+=1}isReplayRecorded(){let t=this.getSession();return!!t&&this.tt.isReplayRecorded(t)}isTemporarilyRecorded(){let t=this.getSession();return(t==null?void 0:t.collectState)===I.RECORDING_TEMPORARILY}abortQuotaServiceRequest(){this.tt.abortQuotaServiceRequest()}getRequestParameters(){let t={},e=this.getSession();return e!==null&&(t.pn=`${e.pageNumber}`),t}getSession(){return this.fe.get()}Dg(){return this.fe.get(!0)}doesSessionExist(){return this.fe.get()!==null}setSession(t){this.fe.set(t)}refreshSession(){let t=this.Dg();t&&this.setSession(t)}removeSession(){this.fe.remove()}getCollectStates(){let t=this.getSession(),e=[];return t&&(t.collectState!==I.ANALYTICS_ONLY&&csArray.prototype.push.call(e,t.collectState===I.RECORDING_RULES_TARGETING?I.RECORDING_GLOBAL_SAMPLING:t.collectState),t.etrState===It.ETR_ON&&csArray.prototype.push.call(e,I.RECORDING_ETR_SAMPLING)),e}updateCollectState(t,e){let i=this.getSession();i!==null&&(i.collectState=t,i.etrState=e,this.setSession(i))}hasValidSession(){let t=this.fe.getRawSession();return this.fe.isValid(t)}handleSubdomainChange(){this.fe.handleSubdomainChange()}pollCacheRefreshEvent(t=!0){let e=this.fe.isCacheRefreshed();return e&&t&&this.fe.resetCacheRefreshed(),e}extendSessionPeriodically(){this.qn||this.xg()}extendSession(){let t=this.getSession();return t===null?(j.warn("extendSession is trying to extend an expired session"),this.Jh(),!1):(this.fe.set(t,Bi),!0)}xg(){if(this.IT()){this.Jh();return}this.extendSession()&&(this.PT(),this.OT())}OT(){this.qn=window.csSetTimeout(()=>{this.xg()},Bi-Cn)}IT(){return Vy-(N.now()+Bi-this.RT)<0}Jh(){this.qn&&(window.csClearTimeout(this.qn),this.qn=null)}PT(){this.Kh+=1,this.TT.trackDynamicVariable("session_expiry_update",this.Kh)}}return s})(),jy=(()=>{class s{constructor(t,e,i){this.h=t,this.T=e,this.Ge=i}clear(){this.NT()&&(this.Vg=this.T.getVisitor(),this.T.removeVisitor()),this.MT()&&this.Ge.removeExclusion()}NT(){return this.T.doesVisitorExist()&&this.T.getVisitor().appliedTrackingDraw!==this.h.lastTrackingDraw}MT(){return this.Ge.getAppliedTrackingDraw()!==this.h.lastTrackingDraw}restoreClearedVisitor(){this.Vg&&this.T.setVisitor(this.Vg)}}return s})(),Hy=(()=>{class s{constructor(t,e,i){this.T=t,this.w=e,this.kT=i}handle(){this.T.hasAllowSubdomainsChanged()&&(this.T.handleSubdomainChange(),this.w.handleSubdomainChange(),this.kT.handleSubdomainChange())}}return s})(),Ie="_cs_c",es=(()=>{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})(),By=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Bt=i}get(){let t;return this.h.cookielessTrackingEnabled?t=this.Bt.getItem(Ie):t=this.M.get(Ie),t===null?t:Number(t)}set(t){this.h.cookielessTrackingEnabled?this.Bt.setItem(Ie,csString(t)):this.M.set(Ie,csString(t),hn)}remove(){this.h.cookielessTrackingEnabled?this.Bt.removeItem(Ie):this.M.delete(Ie)}handleSubdomainChange(){this.h.cookielessTrackingEnabled||(this.h.allowSubdomains?this.M.delete(Ie,Qi.CURRENT_DOMAIN):this.M.delete(Ie,this.M.getRootDomain()))}}return s})(),Fy=(()=>{class s{constructor(t,e,i){this.h=t,this.w=e,this.E=i}grantReplayConsent(){if(!xe.isReplayConsentNeeded(this.h))return;let t=this.w.getSession();if(!t){this.w.grantReplayRecordingBeforeSessionStart();return}xe.isRecordingBlockedByConsent(t)&&(this.w.grantReplayRecording(t),this.E.emitAfterReplayRecordingConsentGranted())}withdrawReplayConsent(){if(!xe.isReplayConsentNeeded(this.h))return;let t=this.w.getSession();if(!t){this.w.withdrawnReplayRecordingBeforeSessionStart();return}xe.isRecordingWithDrawn(t)||(this.w.withdrawnReplayRecording(t),this.E.emitAfterReplayRecordingConsentWithdrawn())}}return s})(),zy=["replay:consent:unanonymized:granted","trackConsentGranted"],$y=["replay:consent:unanonymized:withdrawn","trackConsentWithdrawn"],qy=["replay:consent:startForSession:granted"],Gy=["replay:consent:startForSession:withdrawn"],Wy=(()=>{class s{constructor(t,e,i,n,a){this.h=t,this.f=e,this.ue=i,this.w=n,this.E=a}init(){this.Ug=new Fy(this.h,this.w,this.E),this.ue.setInitialConsent(),this.ot()}ot(){this.f.register(zy,()=>{this.ue.grantReplayAnonymizationConsent()}),this.f.register($y,()=>{this.ue.withdrawReplayAnonymizationConsent()}),this.f.register(qy,()=>{this.Ug.grantReplayConsent()}),this.f.register(Gy,()=>{this.Ug.withdrawReplayConsent()})}onOptout(){this.ue.removeAllConsents()}onBeforeVisitorRenewal(){this.ue.removeAllConsents()}onAfterVisitorRenewal(){this.ue.setInitialConsent()}onAfterVisitorCleared(){this.ue.setInitialConsent()}}return s})(),Yy=(()=>{class s{constructor(t,e,i){this.h=t,this.it=e,this.E=i}setInitialConsent(){let t=this.it.get();(t===null||this.hasConsentRequiredChanged(t))&&this.setDefaultReplayAnonymization()}hasConsentRequiredChanged(t){let e=this.h.consentRequired;return e&&t===es.NOT_REQUIRED||!e&&t!==es.NOT_REQUIRED}handleSubdomainChange(){this.it.handleSubdomainChange()}setDefaultReplayAnonymization(){let t=this.h.consentRequired?es.NOT_EXPRESSED:es.NOT_REQUIRED;this.it.set(t)}grantReplayAnonymizationConsent(){this.h.consentRequired&&(this.it.set(es.GRANTED),this.E.emitReplayUnanonymizationConsentGranted())}withdrawReplayAnonymizationConsent(){this.h.consentRequired&&(this.it.set(es.WITHDRAWN),this.E.emitReplayUnanonymizationConsentWithdrawn())}removeAllConsents(){this.it.remove()}isReplayUnanonymizedAllowedByConsent(){return!this.h.consentRequired||this.it.get()===es.GRANTED}getRequestParameters(){return{uc:`${this.it.get()}`}}}return s})(),Xy=(()=>{class s{constructor(t,e,i,n,a,c,l){this.E=t,this.f=e,this.Fh=i,this.zh=n,this.Xs=a,this.DT=c,this.$n=l}start(){this.E.addListener(this.DT),this.E.addListener(this.$n),this.E.addListener(this.Fh),this.$n.init(),this.zh.init(),this.Xs.init(),!this.Xs.isActive()&&this.f.start()}}return s})(),Ky=(()=>{class s{constructor(t,e){this.Tt=t,this.it=e}exclude(t){this.it.set(csString(t.lastTrackingDraw))}removeExclusion(){this.it.remove()}isExcluded(){return this.LT()||this.xT()}LT(){return this.getAppliedTrackingDraw()!==0}getAppliedTrackingDraw(){return this.it.get()}xT(){return csString.prototype.indexOf.call(this.Tt.href,ne)>0}}return s})(),Jy=(()=>{class s{constructor(t){this.Ke=t}onOptout(){this.Ke.removeExclusion()}}return s})(),Lr=(()=>{let s;return function(r){r.SessionReplay="SR",r.None=""}(s||(s={})),s})(),Qy=".^",Zy=".*",tE=(()=>{class s{constructor(t){this.A=t,this.Qh=new csRegExp(`${Qy}`)}setExcludeUrlForSessionReplay(t){try{this.Qh=new csRegExp(t)}catch{j.warn(`excludeURLforReplay - invalid regex '${t}'`),this.Qh=new csRegExp(`${Zy}`)}}jg(){return this.Qh.test(this.A.getAnonymizedUrl())?Lr.SessionReplay:Lr.None}isUrlExcludedForSessionReplay(){return this.jg()===Lr.SessionReplay}getRequestParameters(){return{ex:this.jg()}}}return s})(),eE=["excludeURLforReplay"],sE=(()=>{class s{constructor(t,e){this.Ke=t,this.f=e}init(){this.f.register(eE,t=>{if($(t))this.Ke.setExcludeUrlForSessionReplay(t);else throw new Error("Command misuse: excludeURLforReplay")})}}return s})(),xr="_cs_inc",iE=(()=>{class s{constructor(t,e){this.Tt=t,this.M=e}isForceIncluded(){return this.VT()||this.UT()}isForceReplayRecorded(){return this.jT(I.RECORDING_GLOBAL_SAMPLING)}VT(){return this.M.get(xr)!==null}jT(t){return this.M.get(xr)===t}UT(){return csString.prototype.indexOf.call(this.Tt.href,xr)>0}}return s})(),Ys="_cs_optout",rE=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Bt=i}get(){return this.h.cookielessTrackingEnabled?this.Bt.getItem(Ys):this.M.get(Ys)}set(t){this.h.cookielessTrackingEnabled?this.Bt.setItem(Ys,t):this.M.set(Ys,t,hn)}}return s})(),la="1",nE=(()=>{class s{constructor(t,e,i){this.E=t,this.Tt=e,this.it=i}init(){!this.isActive()&&this.HT()&&this.activate()}isActive(){return this.it.get()===la}activate(){this.E.emitOptout(),this.it.set(la)}HT(){return csString.prototype.indexOf.call(this.Tt.href,Ys)>0}}return s})(),oE=["optout"];var aE=(()=>{class s{constructor(t,e){this.f=t,this.Xs=e}init(){this.f.register(oE,()=>{this.Xs.activate()})}}return s})();var cE=(()=>{class s{constructor(t,e){this.f=t,this.at=e}init(){this.at.addListener(this.f)}onOptout(){this.f.stop()}onBeforeSessionRenewal(){this.f.stop()}}return s})();var lE=(()=>{let s;return function(r){r.UXA="_uxa",r.WVT="cs_wvt"}(s||(s={})),s})(),hE=(()=>{class s extends Mt{constructor(t){super(),this.Zh=t,this.as={}}register(t,e,i){for(let n of t){let a=(...c)=>{try{let l=e(...c);return ht.counters.commandApplied.count(n),l}catch(l){ht.counters.commandMisuse.count(n),j.warn(`Misused Command: ${n}; Args: ${csJSON.stringify(c)}; Error: ${Fe(l)?l.stack:l}`)}};this.as[n]={callback:a,configuration:i},this.as}}onStart(){this.FT(),this.zT()}onStop(){for(let t of this.Zh)window[t]=[]}applyFromIntegration(t,e,i){this.Hg(t,e,`Commands.apply.from.integration: ${i}`),ht.counters.commandsFromIntegrations.count(t)}applyFromImplementation(t,e,i){this.Hg(t,e,`Commands.apply.from.implementation: ${i}`),ht.counters.commandsFromCSTC.count(t)}onIframeCommands(t){for(let e of t.commands)this.$T(e.name,e.params,t.iframePath),ht.counters.commandsFromIframe.count(e.name)}Hg(t,e,i){if(!this.isStarted){window._uxa.push([t,...e]);return}j.tryToExecute(i,()=>{if(this.as[t])return this.as[t].callback(...e)})()}$T(t,e,i){j.tryToExecute(`Commands.apply.from.iframe: ${i}`,()=>{if(this.as[t])return this.as[t].callback(...e)})()}FT(){for(let t of this.Zh)window[t].forEach(([e,...i])=>this.Bg(e,i,!1))}zT(){for(let t of this.Zh)window[t]={push:([e,...i])=>this.Bg(e,i,!0)}}Bg(t,e,i){var n,a;if(this.as[t]){if(((n=this.as[t].configuration)===null||n===void 0?void 0:n.disableApplyPending)&&!i||((a=this.as[t].configuration)===null||a===void 0?void 0:a.disableApplyImmediate)&&i)return;try{return this.as[t].callback(...e)}catch(l){ht.counters.commandError.count(t),j.error(`Command ${t} failed - params: ${csJSON.stringify(e)}`,l)}}}}return s})();var uE=(()=>{class s{constructor(t,e,i,n){this.h=t,this.T=e,this.w=i,this.Jg=n}getRequestParameters(){var t;let e={...un(),...this.h.getRequestParameters()},i=this.w.getSession();i&&(e.pn=`${i.pageNumber}`);let n=this.T.getVisitor();if(n&&(e.sn=`${n.visitsCount}`,e.uu=`${n.id}`),!((t=this.Jg)===null||t===void 0)&&t.hasSubProjectId()&&(e.subProjectID=`${this.Jg.getSubProjectId()}`),window.heap)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}}return s})(),dE=(()=>{class s{constructor(t,e){this.f=t,this.Ps=e}init(){this.f.register(["debugEvents"],t=>{typeof t=="boolean"&&this.Ps.updateDynamicFields("emitDebugEvents",t)})}}return s})();function ha(s,r,t){if(!Z(r)&&!Z(t))return s.href;let e=Z(r)?jc(r):s.pathname,i=Z(t)?Hc(t):s.search;return`${s.protocol}//${s.host}${e}${i}`}function jc(s){return $e(s,"/")?s:`/${s}`}function Hc(s){return $e(s,"?")||s===""?s:`?${s}`}var Vr=(()=>{let s;return function(r){r[r.page=1]="page",r[r.onNextPageviewOnly=2]="onNextPageviewOnly"}(s||(s={})),s})(),pE=(()=>{class s{constructor(t,e){this.Tt=t,this.J=e,this.KT=10}overridePath(t,e){if(t===""){this.br=void 0;return}let i=this.Qg(e);i&&(this.su=i),this.br=e?this.Zg(t,e):t}overrideQuery(t,e){let i=this.Qg(e);i&&(this.iu=i),this.Yn=e?this.Zg(t,e):t}computeOverriddenUrl(t){return this.JT(t)?this.getAnonymizedUrl():t}QT(t){return(typeof t=="string"||typeof t=="number")&&t in Vr}JT(t){let e=this.tm(this.Tt.href);return this.tm(t)===e}tm(t){return hu(t,"/")?csString.prototype.slice.call(t,0,-1):t}Qg(t){return Z(t==null?void 0:t.lifespan)&&this.QT(t==null?void 0:t.lifespan)?t==null?void 0:t.lifespan:null}ZT(){return this.su&&this.su in Vr}tR(){return this.iu&&this.iu in Vr}cleanupOverrideLifespan(){this.ZT()&&(this.br=void 0,this.su=void 0),this.tR()&&(this.Yn=void 0,this.iu=void 0)}getAnonymizedUrl(){let t=ha(this.Tt,this.br,this.Yn);return this.J.anonymizeUrl(t)}getUrl(){return ha(this.Tt,this.br,this.Yn)}getAnonymizedPathAndQuery(){let t=Z(this.br)?jc(this.br):this.Tt.pathname,e=Z(this.Yn)?Hc(this.Yn):this.Tt.search;return this.J.anonymizeUrl(t+e)}getUrlProtocol(){return this.Tt.protocol}getRequestParameters(){return{url:this.getAnonymizedUrl()}}Zg(t,e){return this.eR(e)?this.sR(t):this.iR(e)?this.rR(t):t}iR(t){return!!t.decodeURI}rR(t){return this.em(t,1,!1)}eR(t){return!!t.decodeURIDeep}sR(t){return this.em(t,this.KT,!0)}em(t,e,i){let n=t;for(let a=0;a{class s{constructor(){this.listeners=[]}addListener(t){csArray.prototype.push.call(this.listeners,t)}}return s})(),fE=(()=>{class s extends In{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:z.EXTERNAL_EVENT,name:t,ts:0})}emitTargetingRulesArtificialPageview(t){for(let e of this.listeners)e.onTargetingRulesArtificialPageview&&e.onTargetingRulesArtificialPageview(t)}}return s})(),si="|iframe|",gE=(()=>{class s extends In{constructor(t,e,i,n){super(),this.nR=t,this.oR=e,this.aR=i,this.cR=n}emitIframeEvent(t,e,i){if(this.lR(e)&&t===null){j.error(`iframeEventEmitter received event ${e} with null iframe, content:${csJSON.stringify(i)}`);return}switch(e){case X.ChildLogMessage:this.hR(i);break;case X.AnalysisEvent:{let n=i,a=this.nR.transformEvent(t,n);a.isUserEvent?this.uR(a.event):this.dR(a.event);break}case X.RecordingEvent:{let n=i,a=this.cR.transformEvents(t,n);if(a.events.length===0)return;a.containsUserEvent?this.pR(a.events):this.fR(a.events);break}case X.JavascriptError:this.gR(i);break;case X.ApiError:this.mR(i);break;case X.DetailedApiError:this.yR(i);break;case X.CustomError:this.ER(i);break;case X.EmerchandisingMessage:{let n=this.aR.transformEvent(t,i);this.SR(n);break}case X.Commands:{let n=this.oR.transformEvent(t,i);this.vR(n);break}case X.IntegrationCallback:this._R(i);break;case X.StaticResource:this.wR(i);break;case X.TrackingContextRequestMessage:this.AR(i);break;default:j.error(`Parent received unknown data type from iframe : ${csJSON.stringify(i)}`)}}lR(t){let e=[X.AnalysisEvent,X.RecordingEvent,X.EmerchandisingMessage,X.Commands];return csArray.prototype.indexOf.call(e,t)!==-1}hR(t){let{message:e,errorCode:i,level:n}=t;switch(n){case rt.debug:j.debug(e,i);break;case rt.warn:j.warn(e,!0,i);break;case rt.implementation:j.implementation(e,i);break;case rt.error:j.error(e,i);break;case rt.critical:j.critical(e,i);break}}uR(t){for(let e of this.listeners)e.onIframeAnalysisUserEvent&&e.onIframeAnalysisUserEvent(t)}dR(t){for(let e of this.listeners)e.onIframeAnalysisBrowserEvent&&e.onIframeAnalysisBrowserEvent(t)}pR(t){for(let e of this.listeners)e.onIframeRecordingUserEvent&&e.onIframeRecordingUserEvent(t)}fR(t){for(let e of this.listeners)e.onIframeRecordingBrowserEvent&&e.onIframeRecordingBrowserEvent(t)}gR(t){for(let e of this.listeners)e.onIframeJavascriptError&&e.onIframeJavascriptError(t)}mR(t){for(let e of this.listeners)e.onIframeApiError&&e.onIframeApiError(t)}yR(t){for(let e of this.listeners)e.onIframeDetailedApiError&&e.onIframeDetailedApiError(t)}SR(t){for(let e of this.listeners)e.onIframeEmerchandisingMessage&&e.onIframeEmerchandisingMessage(t)}vR(t){for(let e of this.listeners)e.onIframeCommands&&e.onIframeCommands(t)}_R(t){for(let e of this.listeners)e.onIframeIntegrationCallback&&e.onIframeIntegrationCallback(t)}wR(t){for(let e of this.listeners)e.onIframeStaticResource&&e.onIframeStaticResource(t)}AR(t){for(let e of this.listeners)e.onTrackingContextRequestCallback&&e.onTrackingContextRequestCallback(t)}ER(t){for(let e of this.listeners)e.onIframeCustomError&&e.onIframeCustomError(t)}}return s})(),mE=(()=>{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})(),yE=(()=>{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})(),Bc=["setCustomVariable"],EE=(()=>{class s{constructor(t,e){this.f=t,this.vt=e}init(){this.f.register(Bc,(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})(),ua=512,da=255,Ur={SESSION:["visit",2],PAGE:["page",3],NEXT_PAGE_ONLY:["nextPageOnly",4]},SE=(()=>{class s{constructor(t,e){this.I=t,this.it=e,this.zt={},this.ke={}}set(t,e,i,n){let a,c;if((Bt(t)||$(t))&&Number(t)>0&&Tt(e)&&Tt(i)&&!Be(e)&&!Be(i)&&this.bR(n)){let l=this.I.anonymizePII(csString(e)),d=this.I.anonymizePII(csString(i));if(a=[csString.prototype.slice.call(l,0,ua),csString.prototype.slice.call(d,0,da)],c=i!=="",!Z(n)||csArray.prototype.indexOf.call(Ur.SESSION,n)>=0){let g=this.getCustomVariablesSession();c?g[t]=a:delete g[t],this.setCustomVariableSession(g)}(!Z(n)||csArray.prototype.indexOf.call(Ur.PAGE,n)>=0)&&(c?this.zt[t]=a:delete this.zt[t]),Z(n)&&csArray.prototype.indexOf.call(Ur.NEXT_PAGE_ONLY,n)>=0&&(c?this.ke[t]=a:delete this.ke[t])}else throw new Error(`Command misuse: ${Bc[0]}`)}getCustomVariablesSession(){let t=this.it.get();if(!t)return{};let e=window.csJSON.parse(t);return e!==null&&as(e)?e:{}}setCustomVariableSession(t){this.it.set(window.csJSON.stringify(t))}removeCustomVariablesSession(){this.it.remove()}removeCustomVariablesPage(){this.zt={}}getRequestParameters(){let t=this.getCustomVariablesSession();for(let i in this.ke)this.ke.hasOwnProperty(i)&&(this.zt[i]=this.ke[i]);for(let i in this.zt)this.zt.hasOwnProperty(i)&&(t[i]=this.zt[i]);if(window.csJSON.stringify(t).length<=2)return{};let e={cvars:this.sm(t)};return this.zt&&window.csJSON.stringify(this.zt).length>2&&(e.cvarp=this.sm(this.zt)),e}deleteNextPageOnlyCustomVariables(){if(Object.keys(this.ke).length>0)for(let t in this.ke)this.ke[t]===this.zt[t]&&(delete this.zt[t],delete this.ke[t])}im(t){for(let e in t)if(t.hasOwnProperty(e)){let i=parseInt(e,10),n=t[e],a=n[0],c=n[1];(!vh(i,1,20)||a.length>ua||c.length>da)&&delete t[e]}}sm(t){this.im(t);let e=_h(t)?[]:t;return window.csJSON.stringify(e)}bR(t){return!Z(t)||$(t)||Bt(t)}getAllValidCustomVars(){let t=this.getCustomVariablesSession();for(let e in this.ke)this.ke.hasOwnProperty(e)&&(this.zt[e]=this.ke[e]);for(let e in this.zt)this.zt.hasOwnProperty(e)&&(t[e]=this.zt[e]);return this.im(t),t}}return s})(),Jt="_cs_id",vE=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Yt=i}onCookieToSet(t){this.oi=t}onCookieToRemove(t){this.ai=t}get(){let t;return this.h.cookielessTrackingEnabled?t=this.Yt.getItem(Jt):t=this.M.get(Jt),t?id(t):null}set(t){var e;let i=rd(t);if(this.h.cookielessTrackingEnabled)this.Yt.setItem(Jt,i);else{let n=new csDate(t.expires);this.M.set(Jt,i,n),(e=this.oi)===null||e===void 0||e.call(this,Jt,i,n)}}remove(){var t;this.h.cookielessTrackingEnabled?this.Yt.removeItem(Jt):(this.M.delete(Jt),(t=this.ai)===null||t===void 0||t.call(this,Jt))}handleSubdomainChange(){if(this.h.cookielessTrackingEnabled)return;let t=this.get();t&&(t.allowSubdomains=this.h.allowSubdomains,this.h.allowSubdomains?this.M.delete(Jt,Qi.CURRENT_DOMAIN):this.M.delete(Jt,this.M.getRootDomain()),this.set(t))}}return s})(),_E=/\b((?:profile|user|last|first|primary|primary(?:[/_+-]|%20)?last)(?:[/_+-]|%20)?(?:name)[/=])[^#;?&/]+/gi,wE="$1CS_ANONYMIZED_NAME",AE=(()=>{class s{constructor(t){this.I=t}anonymizeUrl(t,e={}){let i=e.maskingPatterns||[],n=e.partialMaskingPatterns||[],a=this.I.anonymizePII(t);if(a=this.I.anonymizeJwt(a),e.maskNames){let d=a;a=this.Dn(a),a!==d&&(ht.counters.redactedPII.count("name"),ht.counters.redactedPII.count("name-in-url"))}let c=this.TR(a,i);if(c!==a)return ht.counters.redactedPII.count("url"),c;let l=this.RR(a,n);return l!==a&&ht.counters.redactedPII.count("url"),l}removeQueryString(t){let{path:e,queryString:i}=this.ru(t);return i!==""?`${e}?`:e}ru(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}}TR(t,e){if(e.length===0)return t;let{path:i,queryString:n}=this.ru(t),a=csString.prototype.split.call(i,"/");for(let c of e){let l=this.CR(a,c);if(l!==null)return`${l}${n}`}return t}CR(t,e){if(t.length=e.length){csArray.prototype.push.call(i,a);continue}let c=e[n].key;if(this.rm(c)){let l=e[n].value;csArray.prototype.push.call(i,l);continue}if(a===c){csArray.prototype.push.call(i,a);continue}return null}return csArray.prototype.join.call(i,"/")}RR(t,e){if(e.length===0)return t;let{path:i,queryString:n}=this.ru(t),a=csString.prototype.split.call(i,"/");for(let c of e)a=this.IR(a,c);return`${csArray.prototype.join.call(a,"/")}${n}`}IR(t,e){let i=[],n=0,c=t[0]==="http:"||t[0]==="https:"?2:0;for(let l=0;l=c){let u=e[n].value;csArray.prototype.push.call(i,d.length>0?u:""),n++,n===e.length&&(n=0);continue}if(d===g){csArray.prototype.push.call(i,d),n++,n===e.length&&(n=0);continue}for(let u=0;u{class s{constructor(t,e){this.lt=t,this.h=e}getEventTargetPathAndHierarchy(t,e){let i=gt(t),n={isNodeSensitive(a){return O.isMaskedElement(a)||O.isMaskedElementChild(a)},isAttributeSensitive(a,c){return O.isMaskedAttribute(a,c)},allWhitelistedAttributes:hc(this.h.whitelistedAttributes),attributeIgnoreTokens:bE,useAnonymization:e,attrMaxLength:RE,hierarchyMaxLength:TE};return this.lt.getElementPathAndHierarchy(i,n,{dynamicIdRegex:this.h.dynamicIdRegex,...this.h.pathComputationRules})}getEventTargetPath(t){let e=gt(t);return this.lt.getElementPath(e,{dynamicIdRegex:this.h.dynamicIdRegex,...this.h.pathComputationRules})}getEventTargetPathAndTargetLink(t){let e=gt(t),{path:i,firstAnchorParent:n}=this.lt.getElementPathAndFirstAnchorParent(e,{dynamicIdRegex:this.h.dynamicIdRegex,...this.h.pathComputationRules}),a=this.PR(n)?n.href:"";return{path:i,targetLink:a}}hasValidEventTarget(t){let e=gt(t);return this.lt.isValidElement(e)}getElementPath(t){return this.lt.getElementPath(t,{dynamicIdRegex:this.h.dynamicIdRegex,...this.h.pathComputationRules})}PR(t){var e;return t!==null&&t.hasAttribute("href")&&!$e((e=t.getAttribute("href"))!==null&&e!==void 0?e:"","#")}}return s})(),IE=(()=>{class s{constructor(t){this.W=t}transformEvent(t,e){this.NR(t,e.event);let i=this.W.getElementPath(t);return this.MR(i,e.event),e}NR(t,e){if(Ig(e)){let i=t.getBoundingClientRect();e.x=Math.round(i.left+e.x+ft.windowOffsetX()),e.y=Math.round(i.top+e.y+ft.windowOffsetY())}}MR(t,e){vc(e)&&(e.tgt=`${t}${si}${e.tgt}`),Rg(e)&&(e.tgtHM=`${t}${si}${e.tgtHM}`),Cg(e)&&(e.tgtLk=`${t}${si}${e.tgtLk}`)}}return s})(),PE=(()=>{class s{constructor(t){this.W=t}transformEvent(t,e){let i=this.W.getElementPath(t);return{iframePath:e.iframePath?`${i}${si}${e.iframePath}`:i,commands:e.commands}}}return s})(),OE=(()=>{class s{constructor(t){this.W=t}transformEvent(t,e){if(e.products.length===0)return e;let i=this.W.getElementPath(t),n=csArray.prototype.map.call(e.products,a=>({...a,targetPath:`${i}${si}${a.targetPath}`}));return{...e,products:n}}}return s})(),NE=(()=>{class s{constructor(){this.kR={clientX:2,clientY:3},this.DR={clientX:1,clientY:2},this.LR=[D.POINTER_DOWN,D.POINTER_MOVE,D.POINTER_UP],this.xR=[D.TOUCH_START,D.TOUCH_MOVE,D.TOUCH_END]}transformEvents(t,e){if(!ut.isConnected(t))return e.events=csArray.prototype.filter.call(e.events,c=>c.type!==D.VISIBILITY_CHANGE),e.events.length===0||(j.warn(`IframeRecordingEventsTransformer received event ${X.RecordingEvent} from disconnected iframe, content:${csJSON.stringify(e.events)}`),e.events=[]),e;let i=et(t),n=null;csArray.prototype.some.call(e.events,c=>this.nm(c)||this.om(c))&&(n=t.getBoundingClientRect());for(let c of e.events)this.nm(c)?this.VR(n,c):this.om(c)&&this.UR(n,c),c.context=c.context&&c.context.length>0?`${i}/${c.context}`:`${i}`;return e}UR(t,e){this.am(this.DR,t,e)}VR(t,e){this.am(this.kR,t,e)}am(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]))}nm(t){return csArray.prototype.indexOf.call(this.LR,t.type)!==-1}om(t){return csArray.prototype.indexOf.call(this.xR,t.type)!==-1}}return s})(),ME=(()=>{class s{constructor(t){this.nu=t}start(){this.nu.onEvent(t=>this.G(t)),this.nu.start()}stop(){this.nu.stop()}G(t){let e=`Content Security Policy error. Violated directive: ${t.violatedDirective} - Source file: ${t.sourceFile}`;j.warn(e)}}return s})(),kE=(()=>{class s{constructor(){this.Vt={boundElement:document,type:"securitypolicyviolation",listener:t=>this.securityPolicyViolationListener(t)},csArray.prototype.push.call(s.ou,"localhost"),csArray.prototype.push.call(s.ou,"fake-tracker.content-square.fr")}start(){Pt(this.Vt)}stop(){Ot(this.Vt)}onEvent(t){this.O=t}jR(t){if(!t)return!1;let e=t.disposition;return $(t.sourceFile)&&csArray.prototype.some.call(s.ou,i=>csString.prototype.indexOf.call(t.sourceFile,i)>0)&&e!=="report"}securityPolicyViolationListener(t){this.jR(t)&&this.O({violatedDirective:t.violatedDirective,sourceFile:t.sourceFile})}}return s.ou=["contentsquare","cdnssl.clicktale.net"],F([L("Event handler type: securitypolicyviolation")],s.prototype,"securityPolicyViolationListener",null),s})(),DE=(()=>{class s{init(){this.cm=new ME(new kE),this.cm.start()}onOptout(){this.cm.stop()}}return s})();var{toString:aS}=Object.prototype;function Fc(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 a=s.apply(this,e);return t.cache=n.set(i,a)||n,a};return t.cache=new(Fc.Cache||Map),t}Fc.Cache=Map;var{hasOwnProperty:cS}=Object.prototype;var zc=(()=>{class s{constructor(t){this.configuration=t}}return s})(),LE=(()=>{class s extends zc{constructor(t,e,i){super(t),this.configuration=t,this.Zn=e,this.E=i,this.o0=I.RECORDING_GLOBAL_SAMPLING}refreshQuota(){this.to=void 0,this.Va()}onQuotaReady(t){this.vm=t}init(){this.a0()}sanitizeSessionCollectState(t){return t}canCollect(t){return t!==null&&t.collectState!==I.QUOTA_REACHED}computeInitialCollectState(t){return this.to?(this.E.emitCollectStateChange(this.to,It.ETR_OFF),this.to):(j.warn("Quota file error computeInitialCollectState() called before quota answered"),I.QUOTA_REACHED)}getEligibleCollectState(t){return t.collectState===I.QUOTA_REACHED?I.QUOTA_REACHED:!ai.isRecordingSupported()&&this.isReplayRecorded(t)?I.ANALYTICS_ONLY:t.collectState===I.RECORDING_RULES_TARGETING?I.RECORDING_RULES_TARGETING:t.collectState===I.ANALYTICS_ONLY_RULES_TARGETING?I.ANALYTICS_ONLY_RULES_TARGETING:t.collectState===I.RECORDING_GLOBAL_SAMPLING?I.RECORDING_GLOBAL_SAMPLING:I.ANALYTICS_ONLY}abortQuotaServiceRequest(){}isReplayRecorded(t){return t.collectState===I.RECORDING_GLOBAL_SAMPLING||t.collectState===I.RECORDING_RULES_TARGETING}getInitialCollectState(){return this.to||I.QUOTA_REACHED}setVisitorService(t){}computeInitialCollectStateFromRecordingConsentGranted(t){return I.ANALYTICS_ONLY}eo(t){this.to=t,this.vm&&this.vm(t)}a0(){this.Zn.onError(t=>this.quotaServiceErrorHandler(`HTTP:${t.status} - fetching quota file for pid: ${this.configuration.projectId}`)),this.Zn.onTimeout(()=>this.quotaServiceErrorHandler("timeout")),this.Zn.onLoad(t=>this.quotaFileHandler(t))}Va(){this.Zn.isInProgress()||this.Zn.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.c0(t)}quotaServiceErrorHandler(t){let e=`Quota error - ${t}`;j.warn(e),this.eo(this.o0)}c0(t){let e=!1,i=!1;for(let n of t.quotas)n.quotaType==="ANALYTICS"&&n.value?e=!0:n.quotaType==="RECORDING"&&n.value&&Ts.boolean(Math.round(n.value*100))&&(i=!0);!e&&i?this.quotaServiceErrorHandler(`Quota types impossible: replay without analytics - ${csJSON.stringify(t)}`):e&&i?ai.isRecordingSupported()?this.eo(I.RECORDING_GLOBAL_SAMPLING):this.eo(I.ANALYTICS_ONLY):e&&!i?this.eo(I.ANALYTICS_ONLY):this.eo(I.QUOTA_REACHED)}getRecordingConsentWithdrawn(){return I.ANALYTICS_ONLY}}return F([L("Quota File: quotaFileHandler")],s.prototype,"quotaFileHandler",null),F([L("Quota File: onerror")],s.prototype,"quotaServiceErrorHandler",null),s})(),xE=3e3,VE=(()=>{class s extends zc{constructor(t,e,i,n,a){super(t),this.configuration=t,this.so=e,this.E=i,this.Gh=n,this.A=a,this.$e=[]}refreshQuota(){}onQuotaReady(t){}canCollect(t){return!0}init(){this.l0()}sanitizeSessionCollectState(t){return(t.collectState===I.QUOTA_REACHED||t.collectState===I.RECORDING_RULES_TARGETING||t.collectState===I.RECORDING_TEMPORARILY)&&(t.collectState=I.ANALYTICS_ONLY),t}computeInitialCollectState(t){return xe.isReplayConsentNeeded(this.configuration)?I.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED:this.Na(t)}computeInitialCollectStateFromRecordingConsentGranted(t){return this.Na(t)}Na(t){return ai.isRecordingSupported()?(this.$e=[],Ts.percentage()0?(this.Va(t),I.RECORDING_TEMPORARILY):I.ANALYTICS_ONLY):I.ANALYTICS_ONLY}getEligibleCollectState(t){return ai.isRecordingSupported()?xe.isRecordingBlockedByConsent(t)?t.collectState===I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN?I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN:I.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED:t.collectState===I.RECORDING_GLOBAL_SAMPLING?I.RECORDING_GLOBAL_SAMPLING:(this.$e=[],this.configuration.malkaUrlEnabled&&(csArray.prototype.push.call(this.$e,I.RECORDING_URL_SAMPLING),this.configuration.malkaEtrEnabled&&csArray.prototype.push.call(this.$e,I.RECORDING_ETR_SAMPLING)),this.$e.length>0?(this.Va(t),I.RECORDING_TEMPORARILY):(t.etrState===It.ETR_ON&&this.E.emitCollectStateChange(I.ANALYTICS_ONLY,It.ETR_ON),I.ANALYTICS_ONLY)):I.ANALYTICS_ONLY}Va(t){var e;let i=(e=this.T)===null||e===void 0?void 0:e.getVisitor();this.so.send({recordingTypes:csArray.prototype.map.call(this.$e,Number),url:this.A.getAnonymizedUrl(),projectId:this.configuration.projectId,uu:(i==null?void 0:i.id)||"",sn:(i==null?void 0:i.visitsCount)||"",pn:(t==null?void 0:t.pageNumber)||""})}abortQuotaServiceRequest(){this.so.abort()}isReplayRecorded(t){return xe.isRecordingBlockedByConsent(t)?!1:t.collectState===I.RECORDING_TEMPORARILY||t.collectState===I.RECORDING_GLOBAL_SAMPLING||t.collectState===I.RECORDING_URL_SAMPLING||t.etrState===It.ETR_ON}l0(){this.so.onError(()=>this.quotaServiceErrorHandler("NetworkError")),this.so.onTimeout(()=>this.quotaServiceTimeoutHandler(),xE),this.so.onLoad(t=>this.quotaServiceLoadHandler(t))}quotaServiceErrorHandler(t){this._m(`error - ${t}`)}quotaServiceTimeoutHandler(){this._m("timeout")}_m(t){let e=I.ANALYTICS_ONLY;this.wm(this.$e)?(e=I.RECORDING_GLOBAL_SAMPLING,j.warn(`Quota Service: request ${t} - bypassed by GLOBAL_SAMPLING`)):j.warn(`Quota Service: request ${t}`),this.E.emitCollectStateChange(e,It.ETR_OFF)}quotaServiceLoadHandler(t){if(t.status!==200){this.quotaServiceErrorHandler(`Status code: ${t.status}`);return}let e;try{e=csJSON.parse(t.responseText)}catch{this.quotaServiceErrorHandler(`Unable to parse the quota service response: ${t.responseText}`);return}let i=e.allowedRecordingTypes==null?void 0:csArray.prototype.map.call(e.allowedRecordingTypes,csString);if(!i){this.quotaServiceErrorHandler("recording types missing from quota service response");return}let n=It.ETR_OFF,a=I.ANALYTICS_ONLY;this.wm(i)?a=I.RECORDING_GLOBAL_SAMPLING:this.h0(i)&&(a=I.RECORDING_URL_SAMPLING),this.u0(i)&&(n=It.ETR_ON),this.E.emitCollectStateChange(a,n)}wm(t){return csArray.prototype.some.call(t,e=>e===I.RECORDING_GLOBAL_SAMPLING)}h0(t){return csArray.prototype.some.call(t,e=>e===I.RECORDING_URL_SAMPLING)}u0(t){return csArray.prototype.some.call(t,e=>e===I.RECORDING_ETR_SAMPLING)}setVisitorService(t){this.T=t}getInitialCollectState(){return I.ANALYTICS_ONLY}getRecordingConsentWithdrawn(){return I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN}}return F([L("Quota Service: onerror")],s.prototype,"quotaServiceErrorHandler",null),F([L("Quota Service: ontimeout")],s.prototype,"quotaServiceTimeoutHandler",null),F([L("Quota Service: onload")],s.prototype,"quotaServiceLoadHandler",null),s})();function UE(){let s="[data-cs-mask]",r="#c1_card_info_id",t=".ctHidden",e=["[data-heap-redact-text]","[heap-ignore]","[data-heap-ignore]","[data-heap-redact-attributes]"],i=["[data-hj-suppress]",".data-hj-suppress","[data-hj-masked]"];return[s,r,t,...e,...i]}function jE(){return[{selector:".ctHidden,input:not([type=button]):not([type=submit])",attrName:"value"}]}var HE=(()=>{class s{constructor(){this.d0={PIISelectors:["picture","img","video","audio"],Attributes:[]},this.bs={elementSelector:"",attrSelector:"",attrSelectors:[]};let t={PIISelectors:UE(),Attributes:jE()};this.bs=O.getComputedSelectorSettings(t,this.bs)}init(){this.p0()}setMaskedElementSettingsFromCommand(t){if(t=O.sanitizeSelectorUserInput(t),!O.isSelectorUserInput(t))throw new Error(`Command misuse: ${Vc[0]}`);this.Eu(t)}setMaskedElementSettingsFromParent(t){let e={PIISelectors:csString.prototype.split.call(t.elementSelector,","),Attributes:t.attrSelectors};this.Eu(e)}getMaskedElementSettings(t){return t?this.Am(this.d0):this.bs}p0(){var t,e,i,n,a,c;let l={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&&l.PIISelectors.push(...window.ClickTaleSettings.DOM.PII.Text),((c=(a=(n=window==null?void 0:window.ClickTaleSettings)===null||n===void 0?void 0:n.DOM)===null||a===void 0?void 0:a.PII)===null||c===void 0?void 0:c.Attributes)instanceof Array&&window.ClickTaleSettings.DOM.PII.Attributes.forEach(d=>{$(d.attr)&&$(d.rule)&&l.Attributes.push({selector:d.rule,attrName:d.attr})}),this.Eu(l)}Eu(t){this.bs=this.Am(t)}Am(t){return O.getComputedSelectorSettings(t,this.bs)}}return s})();var BE=(()=>{class s{constructor(t,e,i,n,a){this.h=t,this.ii=e,this.hs=i,this.C=n,this.E=a,this.f0=()=>{var c;let l=lt.get(Gt);l!==null&&Ya(l)?this.tt.canCollect(cd(l))?this.init():!((c=this.h.voc)===null||c===void 0)&&c.enabled:(this.tt.onQuotaReady(d=>{var g;d!==I.QUOTA_REACHED?this.init():!((g=this.h.voc)===null||g===void 0)&&g.enabled}),this.tt.refreshQuota())}}initWithQuota(){var t;if(!this.h.collectionEnabled){!((t=this.h.voc)===null||t===void 0)&&t.enabled;return}let e=new Rn(this.h.getSettingsFileUri(),"",{type:"json",cacheMinutes:15});this.tt=new LE(this.h,e,this.E),this.tt.init(),this.f0()}init(){Xs.isSupported()&&Xs.setDigestSalt(this.h.projectId.toString());let t,e,i,n,a,c,l,d,g,u,y,E,v,b,k,R,w,x,A,M,U,J,ct,kt,_t,S,P,V,H,tt,at,wt,de,Ye,or;this.C.schedule(()=>{t=new ui,e=new AE(t),n=new pE(window.location,e),i=new Qi(this.h,n,this.ii),i.init()}),this.C.schedule(()=>{a=new mE,c=new yE,w=new iE(window.location,i),new DE().init(),x=Uc.create(j.warn),R=new Fa(x);let pe=R.create(`${this.h.getLegacyQuotaUri()}/quota`,!0);this.tt===void 0&&(this.tt=new VE(this.h,pe,this.E,w,n),this.tt.init())}),this.C.schedule(()=>{l=new Ly(this.h,i,a),g=new Uy(l,this.tt)}),this.C.schedule(()=>{u=new vE(this.h,i,a),y=new ky(this.h,u,this.E,g),this.hs.setContext(y,g),this.tt.setVisitorService(y)}),this.C.schedule(()=>{Ye=new Yy(this.h,new By(this.h,i,c),this.E),E=new Hy(y,g,Ye),v=new hd(this.h,i,a),b=new Ky(window.location,v),k=new Jy(b),U=new jy(this.h,y,b),wt=new CE(le,this.h),P=new IE(wt),V=new PE(wt),H=new OE(wt),tt=new NE,at=new gE(P,V,H,tt),S=new hE([lE.UXA]),J=new cE(S,at),ct=new tE(n),kt=new sE(ct,S);let ds=new ud(this.h,i,a);de=new SE(t,ds),_t=new EE(S,de);let pe=new sd(y,g,b,de,this.h)}),this.C.schedule(()=>{new My(this.h,y,b,U,E,A,d,w).compute(pe=>{this.C.schedule(()=>{J.init();let Ds=new fE,re=new Wy(this.h,S,Ye,g,this.E),yt=new rE(this.h,i,c),Dt=new nE(this.E,window.location,yt),Ls=new aE(S,Dt),ar=new dE(S,this.h),cr=new uE(this.h,y,g,M);if(pe){this.E.emitInitTracking();let xs=new HE;new Ny(cr,x,y,g,this.E,S,J,this.h,Ls,Dt,re,Ye,t,wt,e,n,ar,Ds,at,de,_t,ct,kt,this.C,R,i,c,this.tt,xs).start()}else new Xy(this.E,S,J,Ls,Dt,k,re).start()})})})}}return s})(),ns=(()=>{let s;return function(r){let t="{domain}/tag/tag.bundle.js?v={version}",e,i={loadBundle(w){let x=w.source,A=w.data;if(c(A)){let M=()=>{let U=n(t,A);y(U,()=>x.postMessage("csBundleLoaded",w.origin))};e=A.token,R(i.loadBundle),l(w.origin)&&M()}}};function n(w,x){return csString.prototype.replace.call(csString.prototype.replace.call(csString.prototype.replace.call(w,"{version}",x.version),"{token}",x.token),"{domain}",x.domain)}function a(){return e}r.getToken=a;function c(w){return w&&w.type==="csBundleInjection"&&l(w.domain)&&g(w.version)&&d(w.token)}r.isAuthorizedIncomingMessage=c,r.hjDomainRegex=/^https?:\/\/[a-zA-Z0-9\.\-]+\.hotjar\.com$/;function l(w){return/^https?:\/\/[a-zA-Z0-9\.\-]+\.(content-square\.fr|contentsquare\.com|csq\.io)$/.test(w)||r.hjDomainRegex.test(w)}r.isAuthorizedDomain=l;function d(w){return/^[a-zA-Z0-9]+$/.test(w)}r.isAuthorizedToken=d;function g(w){return/^[a-zA-Z0-9\.]+$/.test(w)}r.isAuthorizedTagVersion=g;function u(){let w=window.opener||window.parent;return window!==w&&window.addEventListener}r.isActivable=u;function y(w,x){let A=document.createElement("script");A.type="text/javascript",A.async=!0,A.src=w,A.onload=x,A.charset="utf-8",document.head.appendChild(A)}r.addScript=y;function E(w){let x=document.createElement("link");x.rel="stylesheet",x.href=w,document.head.appendChild(x)}r.addStyle=E;function v(w){return`${w}?cb=${new csDate().getTime()}`}r.addCacheBusting=v;function b(){k(i.loadBundle)}r.waitForBundleInjection=b;function k(w){window.addEventListener("message",w,!1)}r.listen=k;function R(w){window.removeEventListener("message",w,!1)}r.removeListener=R}(s||(s={})),s})(),pa="_hp_ved",FE=18e5,yi="https://heapanalytics.com",zE=`${yi}/js/ved.js`,$E=`${yi}/css/ved.css`,qE=`${yi}/js/ved.css`,GE=(()=>{let s;return function(r){r.StatusUpdate="status"}(s||(s={})),s})(),WE=(()=>{let s;return function(r){r.ReceivedInitMessage="received_init_message"}(s||(s={})),s})();var jr=(()=>{let s;return function(r){let t=!1;function e(){let g=[$E,qE];csArray.prototype.forEach.call(g,u=>{ns.addStyle(u)})}function i(g){let u=new csRegExp("(^|;)[ ]*"+g+"=([^;]*)"),y=u.exec(document.cookie);return y?decodeURIComponent(y[2]):null}function n(g,u,y){let E=encodeURIComponent(g)+"="+encodeURIComponent(u),v=new csDate;v.setTime(v.getTime()+y);let b=E+"; expires="+v.toUTCString()+"; path=/";document.cookie=b}function a(){n(pa,"on",FE)}function c(){return i(pa)==="on"}r.isVLCookieEnabled=c;function l(g){window.heapV=Object.assign({},window.heap,{source:g==null?void 0:g.source,uri:yi,loadArgs:g==null?void 0:g.data.args,identify:()=>{},track:()=>{}})}r.initializeHeapV=l;function d(g){var u;if(g){let y={type:GE.StatusUpdate,value:WE.ReceivedInitMessage},E={targetOrigin:g==null?void 0:g.origin};(u=g==null?void 0:g.source)===null||u===void 0||u.postMessage(y,E)}t||(t=!0,a(),l(g),window.heapV&&(ns.addScript(zE),e()))}r.init=d}(s||(s={})),s})(),YE=(()=>{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$/,ns.hjDomainRegex],a,c,l={initHeapVisualLabeler(A){var M;A.origin===yi&&((M=A.data)===null||M===void 0?void 0:M.message)==="init"&&A.source&&(jr.init(A),R(l.initHeapVisualLabeler))},ping(A){typeof A.data=="string"&&A.data==="ping"&&u(A.origin)&&(c=A.origin,a=ns.hjDomainRegex.test(A.origin)?i:A.origin,R(l.ping),k(l.insertMessageScript),y(ns.addCacheBusting("utils.js")))},insertMessageScript:w(A=>{typeof A.data=="string"&&A.data!=="ping"&&(R(l.insertMessageScript),y(A.data))})};function d(){return ns.getToken()}r.getToken=d;function g(){return window!==t&&window.addEventListener}r.isActivable=g;function u(A){return csArray.prototype.some.call(n,M=>M.test(A))}r.isAuthorizedDomain=u;function y(A,M){let U=document.createElement("script");U.type="text/javascript",U.async=!0;let J=a==null?void 0:csString.prototype.replace.call(a,/^https?:/,"");U.src=`${J}/${e}/${A}`,U.onload=M,U.charset="utf-8",document.getElementsByTagName("head")[0].appendChild(U),E(A)}function E(A){csString.prototype.includes.call(A,"&mode=")&&sessionStorage.setItem("_hjRetakerMode",csString.prototype.split.call(A,"&mode=")[1])}function v(){k(l.ping),ns.waitForBundleInjection()}r.waitForConnection=v;function b(){k(l.initHeapVisualLabeler),jr.isVLCookieEnabled()&&jr.init()}r.waitForHeapVisualLabeler=b;function k(A){window.addEventListener("message",A,!1)}r.listen=k;function R(A){window.removeEventListener("message",A,!1)}r.removeListener=R;function w(A){return function(M){M.origin===c&&A(M)}}r.secureListener=w;function x(A){c&&t.postMessage(A,c)}r.post=x}(s||(s={})),s})();var xi=window.CSFrameCommunication||YE;var XE=(()=>{class s extends In{constructor(t){super(),this.C=t}emitBeforeNaturalPageView(){for(let t of this.listeners)t.onBeforeNaturalPageView&&t.onBeforeNaturalPageView()}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.C.schedule(()=>e.onStartTracking(t))}emitArtificialPageViewEnd(){for(let t of this.listeners)if(t.onArtificialPageViewEnd)try{t.onArtificialPageViewEnd()}catch(e){j.error(e)}}emitBeforeArtificialPageView(){for(let t of this.listeners)t.onBeforeArtificialPageView&&t.onBeforeArtificialPageView()}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()}}return F([Nt("emitStartTracking")],s.prototype,"emitStartTracking",null),s})();var KE=(()=>{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 v=window.CSJavascriptBridge.getVersion();if(Bt(v))return v}catch{j.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(v){window.CSJavascriptBridge.sendEvent(csJSON.stringify(v))}r.sendAnalysisEvent=n;function a(v){if(window.CSJavascriptBridge.sendSREvent)for(let b of v.events)window.CSJavascriptBridge.sendSREvent(csJSON.stringify(b))}r.sendSREvent=a;function c(v){window.CSJavascriptBridge&&window.CSJavascriptBridge.sendLog&&window.CSJavascriptBridge.sendLog(csJSON.stringify(v))}r.sendLog=c;function l(){window.CSJavascriptBridge.optIn()}r.sendOptIn=l;function d(){window.CSJavascriptBridge.optOut()}r.sendOptOut=d;function g(v,b){window.CSJavascriptBridge.sendDynamicVar(v,b)}r.sendDynamicVariable=g;function u(v,b,k){window.CSJavascriptBridge.sendTransaction(v,b,k)}r.sendTransaction=u;function y(v,b){if(window.CSJavascriptBridge.sendAssets){let k=csJSON.stringify(v);window.CSJavascriptBridge.sendAssets(k,b||null)}else window.CSJavascriptBridge.sendSRAssets&&window.CSJavascriptBridge.sendSRAssets(csArray.prototype.map.call(v,k=>k.assetId))}r.sendAssets=y;function E(v){window.CSJavascriptBridge&&window.CSJavascriptBridge.sendNativeSREvent&&window.CSJavascriptBridge.sendNativeSREvent(csJSON.stringify(v))}r.sendNativeSREvent=E}(s||(s={})),s})();var JE=(()=>{class s{constructor(t,e,i){this.h=t,this.mt=e,this.hs=i}start(){var t,e,i,n,a;if(window.UXAnalytics)return;window.UXAnalytics={};let c=new cc(!!(!((t=this.h.taskSchedulerOptions)===null||t===void 0)&&t.enabled),(e=this.h.taskSchedulerOptions)===null||e===void 0?void 0:e.maxProcessingTime,(i=this.h.taskSchedulerOptions)===null||i===void 0?void 0:i.waitDuration),l=new Ku(this.mt,this.h);l.init();let d=new Qu(this.h,l);if(this.mt.isTopWindowTracker()&&d.canTrack()){if(!((n=window.CSProtectnativeFunctionsLogs)===null||n===void 0)&&n.Warning&&j.warn(`protectNativeFunctions failed: ${window.CSProtectnativeFunctionsLogs.Warning}`),!((a=window.CSProtectnativeFunctionsLogs)===null||a===void 0)&&a.Critical){j.error(`protectNativeFunctions failed: ${window.CSProtectnativeFunctionsLogs.Critical}`);return}Yu();let u=new XE(c),y=new BE(this.h,l,this.hs,c,u);this.h.isQuotaEnabled()?y.initWithQuota():y.init()}let g=csString.prototype.indexOf.call(window.location.href,"csDebug=1")>-1;window.UXAnalytics={Sensitive:{isNodeSensitive(u){return O.isMaskedElement(u)||O.isMaskedElementChild(u)},isAttributeSensitive(u,y){return O.isMaskedAttribute(u,y)},getSensitiveAttributes(u){return Oa(u.attributes,y=>O.isMaskedAttribute(u,y.name))}},Console:{warn(u){g&&console.warn("cs.tracking.warning",u)},error(u){g&&console.error("cs.tracking.error",u)}},Version:ka},window.CSFrameCommunication||(window.CSFrameCommunication=xi,xi.isActivable()&&xi.waitForConnection(),this.h.isCsCrosswritingHeap()&&xi.waitForHeapVisualLabeler())}}return F([Nt("main.start"),L("main.start")],s.prototype,"start",null),s})(),QE=(()=>{class s{constructor(){}send(t,e,i=rt.warn){let n={message:t,errorCode:e,level:i};KE.sendLog(n)}}return s})();var ZE=(()=>{class s{constructor(t,e,i){this.V=t,this.I=e,this.cC=i,this.At=[],this.Re=null,this.lC=un().v}Hm(){this.At.length!==0&&(this.V.send({m:csArray.prototype.map.call(this.At,t=>({n:t.name,p:t.parameter,v:t.value})),p:this.I.anonymizePII(window.location.pathname),pid:this.cC,v:this.lC}),this.At=[])}push(t){if(csArray.prototype.push.call(this.At,...t),this.Re&&(csClearTimeout(this.Re),this.Re=null),this.At.length>=s.MAX_QUEUE_SIZE){this.Hm();return}this.Re=window.csSetTimeout(()=>{this.Hm(),this.Re=null},s.DEBOUNCE_INTERVAL)}}return s.DEBOUNCE_INTERVAL=5e3,s.MAX_QUEUE_SIZE=100,s})();function tS(s,r){let t=s.validationRate/10,e=Ts.boolean(t);if((s.environment==="staging"||!1||e)&&!r.isInWebViewContext())try{let a=Uc.create(j.warn,r.isTopWindowTracker()),l=new Fa(a).create(s.getMetricsUri(),!0),d=new ui,g=new ZE(l,d,s.projectId);ht.setService(g)}catch(a){j.warn(`Error initializing metrics: ${a.message}`)}}function eS(){var s;let r=new Su(window.CS_CONF);window._uxa=window._uxa||[],r.processOptionOverrides(window._uxa);let t=new vu(window,r);t.init();let e=new $u;if(tu(j),j.computeIsActive(r.validationRate),t.isTopWindowTracker()){let a=new Uu(r,e);j.setStrategy(a)}else if(t.isInIframeContext()){let n=new zu(r);j.setStrategy(n)}else if(t.isInWebViewContext()){let n=new QE;j.setStrategy(n)}!((s=r==null?void 0:r.experimental)===null||s===void 0)&&s.disableMutationObserverProtection&&window.csMutationObserver&&(window.csMutationObserver=Ge(window,"MutationObserver")),su(),tS(r,t),new JE(r,t,e).start()}window.CSCurrentScript=document.currentScript;csSetTimeout(()=>{try{qu(eS)}catch{}});})();