//15.115.0-es2019 2025-08-06T15:25:32.124Z (617585dbd4173) var CS_CONF={"isSMB":true,"status":1,"visitorCookieTimeout":33164000000,"sampleRate":100,"replayRecordingRate":100,"validationRate":10,"trackerDomain":"c.ba.contentsquare.net","recordingDomain":"r.contentsquare.net","useMalkaPipeline":1,"ed":"l.contentsquare.net/log/web","eMerchandisingEnabled":0,"mouseMoveHeatmapEnabled":1,"autoInsightsEnabled":0,"customHashIdEnabled":0,"recordingEncryptionEnabled":0,"recordingEncryptionPublicKey":null,"recordingEncryptionPublicKeyId":0,"secureCookiesEnabled":1,"triggerSessionReplayEnabled":0,"dynamicIdRegex":"","replayRecordingUnmaskedUrlRegex":"","replayRecordingMaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegex":null,"tagDeploymentMode":"CONTENTSQUARE","iframesTracking":1,"textVisibilityEnabled":0,"cookielessTrackingEnabled":0,"malkaUrlEnabled":0,"malkaEtrEnabled":0,"pathComputationRules":{"reliableSelectors":[],"uniqueAttributes":[],"uniqueCssSelectors":[]},"asyncSerializerEnabled":1,"pendingInactivityTimeout":5000,"accessibilityEnabled":null,"uxaDomain":"app.contentsquare.com","webviewsTrackingEnabled":0,"useStaticResourceManager":0,"performanceTimingOptions":{"withResource":false,"withNavigation":false},"replayConsentRequiredForSession":0,"eventsApiEnabled":1,"smbConfig":{"useCSTC":true,"useSentry":true},"malkaQuotaServiceDomain":"q.ba.contentsquare.net","malkaRecordingDomain":"k.ba.contentsquare.net","voc":{"siteId":0,"enabled":1},"dynamicConfDomain":"t.contentsquare.net/settings","tagDomain":"t.contentsquare.net"}; if(window.CS_CONF_BASE) for(let p in CS_CONF_BASE) CS_CONF[p] = CS_CONF_BASE[p]; (()=>{var ap=Object.defineProperty;var cp=(s,r,t)=>r in s?ap(s,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[r]=t;var bs=(s,r,t)=>cp(s,typeof r!="symbol"?r+"":r,t);var ls={};ls.d=(s,r)=>{for(var t in r)ls.o(r,t)&&!ls.o(s,t)&&Object.defineProperty(s,t,{enumerable:!0,get:r[t]})};ls.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();ls.o=(s,r)=>Object.prototype.hasOwnProperty.call(s,r);ls.r=s=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var Ka={};ls.r(Ka);ls.d(Ka,{getRequestParameters:()=>IE});function ni(s,r){let t;return window.Zone&&typeof window.Zone.__symbol__=="function"&&(t=s[window.Zone.__symbol__(r)]),t||(t=s[r]),t}var Hr=typeof window=="undefined";function lp(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof ls.g!="undefined"?ls.g:typeof process!="undefined"?process:Function("return this")()}var Mt=lp();var ph="cs-native-frame",Gs={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=ni(window,"setTimeout");window.csQueueMicrotask=ni(window,"queueMicrotask");window.csClearTimeout=ni(window,"clearTimeout");window.csSetInterval=ni(window,"setInterval");window.csClearInterval=ni(window,"clearInterval");window.csFileReader=ni(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 hp(){let s=document.createElement("iframe");s.id=ph,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 up(s,r){let t,e=s;for(;e&&!(t=Object.getOwnPropertyDescriptor(e,r));)e=Object.getPrototypeOf(e);return t}function dp(s,r,t){let e=up(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 fh(s){var r,t;Object.keys(Gs.constructors).forEach(e=>{window[Gs.constructors[e]]=s[e]instanceof Function&&s[e].prototype==null?s[e].bind(window):s[e]}),gp(s),("Prototype"in window||fp())&&(window.csMutationObserver=(t=(r=ni(window,"MutationObserver"))!==null&&r!==void 0?r:window.WebKitMutationObserver)!==null&&t!==void 0?t:window.MutationObserver),zi("csNode",Gs.nodeProperties,s.Node.prototype,"get"),zi("csElement",Gs.elementProperties,s.Element.prototype,"get"),zi("csElement",Gs.elementPropertiesValues,s.Element.prototype,"value",!1),zi("csHTMLImageElement",Gs.imageProperties,s.HTMLImageElement.prototype,"set"),zi("csEvent",Gs.eventProperties,s.Event.prototype,"get"),zi("csNavigator",Gs.navigatorProperties,s.navigator,"value")}function zi(s,r,t,e,i=!0){r.forEach(n=>{let o=typeof n!="string"&&"binding"in n,c=o?n.propertyName:n;(i||c in t)&&(window[`${s+c}`]=dp(t,c,e),o&&(window[`${s+c}`]=window[`${s+c}`].bind(n.binding)))})}function gh(s,r){window.CSProtectnativeFunctionsLogs=window.CSProtectnativeFunctionsLogs||{},window.CSProtectnativeFunctionsLogs[s]=r}function pp(){try{let s=hp();return s?(window.CSPureWindow=s,fh(window.CSPureWindow),!0):!1}catch(s){return gh("Warning",`failed to copy references from pure iframe: ${s.message}`),!1}}if(!pp())try{fh(Mt)}catch(s){gh("Critical",`failed to copy references from window: ${s.message}`)}function fp(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function gp(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 as=(()=>{let s;return function(r){r.ELLIPSIS="\u2026";function t(o){return csString.prototype.replace.call(o,/[.*+?^${}()|[\]\\]/g,"\\$&")}function e(o){return csString.prototype.replace.call(o,/([#;&,.+*~':"!^$[\]()<=>|/%?@`{}\\ ])/g,"\\$1")}r.escapeInvalidCharacters=e;function i(o,c,u){if("replaceAll"in csString.prototype)return csString.prototype.replaceAll.call(o,c,u);let d=new csRegExp(t(c),"g");return csString.prototype.replace.call(o,d,u)}r.stringReplaceAll=i;function n(o,c,u=""){return o.length<=c?o:csString.prototype.slice.call(o,0,c-u.length)+u}r.truncate=n}(s||(s={})),s})();function Ea(s){return as.escapeInvalidCharacters(csString.prototype.toLowerCase.call(s.localName))}function mp(s){let r=s.getAttribute("id");return r&&as.escapeInvalidCharacters(r)}function te(s){return mt(s)&&(typeof s=="number"||s instanceof Number)&&!isNaN(s)}function Ns(s){return s===parseInt(s,10)}function V(s){return mt(s)&&(typeof s=="string"||s instanceof csString)}function Sa(s){return typeof s=="boolean"}function Xe(s){return typeof s=="object"}function mt(s){return typeof s!="undefined"}function Vt(s){return mt(s)&&s!==null}function yt(s){return typeof s=="object"&&s!==null}function yp(s,r,t){return Ns(s)&&s>=r&&s<=t}function Ep(s){for(let r in s)return!1;return!0}function be(s){return typeof s=="function"}function Ms(s){return s instanceof Element}function ii(s){return s instanceof Error}function Sp(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(Np,csString.prototype.toLocaleLowerCase.call(s.tagName))<0}var Br="detached";function Sh(s){let r=s,t=[r];for(;csNodeparentNode.apply(r)!==null;)r=csNodeparentNode.apply(r),csArray.prototype.push.call(t,r);return Hn(r)&&csArray.prototype.push.call(t,Br),{ancestors:t,selectionRoot:r}}function kp(s){let r=s,t=[r],e=null;for(;csNodeparentNode.apply(r)!==null;)e===null&&yh(r)&&(e=r),csArray.prototype.push.call(t,csNodeparentNode.apply(r)),r=csNodeparentNode.apply(r);return Hn(r)&&csArray.prototype.push.call(t,Br),{firstAnchorParent:e,ancestors:t,selectionRoot:r}}function Hn(s){return hs.isValidElement(s)}var Si=(()=>{var s,r;return(r=(s=Mt.Element)===null||s===void 0?void 0:s.prototype)!==null&&r!==void 0?r:{}})(),Ae=Si.matches||Si.matchesSelector||Si.mozMatchesSelector||Si.msMatchesSelector||Si.oMatchesSelector||Si.webkitMatchesSelector,qc=Si.closest,vh=9;function Dp(s,r){return r?csArray.prototype.some.call(r,t=>Ae.call(s,t)):!1}function Lp(s,r,t){if(s===Br||s.nodeType===vh)return 0;let e=t.dynamicElementNameRegex,i=!!(e!=null&&e.test(r.localName)),n=Ea(r),o=0,c=r.previousElementSibling;for(;c;)(Ea(c)===n||i&&(e!=null&&e.test(c.localName)))&&!Dp(c,t.reliableSelectors)&&(o+=1),c=c.previousElementSibling;return o}function xp(s,r,t){if(s===Br||s.nodeType===vh)return 0;let e=0,i=r.previousElementSibling;for(;i;)Ae.call(i,t)&&(e+=1),i=i.previousElementSibling;return e}var Vp=[/\d{4}/,/^ember\d+$/],Up="@",tc="data-cs-override-id",jp="data-cs-dynamic-id";function _h(s,r,t,e){let i=e.dynamicIdRegex||null,n=e.dynamicElementNameRegex,o=Ea(s);if(n&&n.test(s.localName)&&(o=csString.prototype.replace.call(o,n,`$1${Up}`)),Fp(s,t)){let _=ec(s);return{hasUniqueIdentifier:!0,elementSelector:`${o}[${tc}="${_}"]`}}let c=Xp(s,t,e);if(c.success)return{hasUniqueIdentifier:!0,elementSelector:`${o}#UA[${c.attributeName}="${c.attributeValue}"]`};let u=Hp(s,t,e);if(u)return{hasUniqueIdentifier:!0,elementSelector:`${o}#UCS[${u}]`};let d=mp(s);if($p(s,d,t,i))return{hasUniqueIdentifier:!0,elementSelector:`${o}#${d}`};let S=Bp(s,e);if(S){let _=xp(r,s,S);return{hasUniqueIdentifier:!1,elementSelector:`${o}[${S}](${_})`}}let f=Lp(r,s,e);return{hasUniqueIdentifier:!1,elementSelector:`${o}:eq(${f})`}}function Hp(s,r,t){if(t.uniqueCssSelectors){for(let e of t.uniqueCssSelectors)if(Ae.call(s,e)&&Yp(e,r))return e}}function Bp(s,r){if(r.reliableSelectors){for(let t of r.reliableSelectors)if(Ae.call(s,t))return t}}function Fp(s,r){let t=ec(s);return t&&csString.prototype.match.call(t,/^[\w-]+$/)&&sc(tc,t,r)}function zp(s){return ec(s)!==null}function ec(s){return s.getAttribute(tc)}function $p(s,r,t,e){return r&&!zp(s)&&!Gp(s,r,e)&&Wp(r,t)}function Gp(s,r,t){return s.hasAttribute(jp)||qp(r,t)}function qp(s,r){let t=!1;return s&&r&&(t=r.test(s)),s&&(csArray.prototype.some.call(Vp,e=>e.test(s))||t)}function Wp(s,r){return s&&sc("id",s,r)}function sc(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 Yp(s,r){try{return window.csquerySelectorAll[r.nodeType].call(r,s).length===1}catch(t){if(t.name!=="SyntaxError")throw t}return!1}function Xp(s,r,t){if(!t.uniqueAttributes)return{success:!1};for(let e of t.uniqueAttributes){let i=s.getAttribute(e);if(i!==null&&sc(e,i,r))return{attributeName:e,attributeValue:i,success:!0}}return{success:!1}}var va=11;function Bn(s,r,t){let e=csArray.prototype.shift.call(s);if(s.length===0)return Wc(e,t);let i=e,n=s[0],{elementSelector:o,hasUniqueIdentifier:c}=_h(i,n,r,t);if(!t.fullPath&&c){let d=s[s.length-1];return`${Wc(d,t)}${o}`}let u=Bn(s,r,t);return`${u?`${u}>`:""}${o}`}function Wc(s,r){if(s===Br)return"|detached|";if(s.host){let{ancestors:t,selectionRoot:e}=Sh(s.host);return`${Bn(t,e,r)}|shadow-root|`}return s.nodeType===va?"|fragment|":""}var wh=(()=>{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})(),Kp=(()=>{class s extends wh{constructor(){super(...arguments),this.lo=!1,this.ho=!1,this.Za=!1}jm(t,e){return this.lo&&!(e===null&&Hn(t))&&t.nodeType!==va&&!t.host}Hm(t){return!t.localName}serializeElement(t,e,i){var n;if((n=this.path)!==null&&n!==void 0||(this.path=""),this.jm(t,e))return;let o=!1;e===null&&Hn(t)&&(o=!0,this.done=!0);let c=this.ho&&!this.options.fullPath?"":">",u=!!t.host;if(u&&this.path&&(this.path="|shadow-root|"+c+this.path,this.Za=!0,this.lo=!1,this.ho=!1),!u&&e===null&&t.nodeType===va){this.path="|fragment|"+c+this.path,this.done=!0;return}if(this.Hm(t))return;let d=e!=null?e:"detached",{elementSelector:S,hasUniqueIdentifier:f}=_h(t,d,i,this.options);f&&(this.ho=!0,this.lo=!this.options.fullPath);let _=`${o?`|detached|${c}`:""}${this.lo&&!f?"":S}`,T=!f&&this.ho&&!this.options.fullPath?"":this.path&&!this.Za?">":"";this.Za=!1,this.path=`${_}${T}${this.path}`}}return s})();function _e(s,r=pe.SHOW_ALL){let t=r|pe.SHOW_ELEMENT,e=[document.createTreeWalker(s,t,null,!1)],i=Yc(s);i&&csArray.prototype.push.call(e,document.createTreeWalker(i,t,null,!1));let n=null;return{root:s,nextNode(){if(i){let o=i;return i=null,o}for(;e.length>0;){if(n){let d=n;return n=null,d}let c=e[e.length-1].nextNode();if(!c){csArray.prototype.pop.call(e);continue}let u=Yc(c);if(r&pe.SHOW_DOCUMENT_FRAGMENT&&u&&(n=u),u&&csArray.prototype.push.call(e,document.createTreeWalker(u,t,null,!1)),(qo[c.nodeType]&r)!==0)return c}return null},visitAll(o){qo[s.nodeType]&r&&o(s);let c=this.nextNode();for(;c;){if((qo[c.nodeType]&r)===0){c=this.nextNode();continue}o(c),c=this.nextNode()}},collectAll(o){let c=[];return this.visitAll(u=>csArray.prototype.push.call(c,o?o(u):u)),c}}}function Yc(s){return s&&Eh(s)?s.shadowRoot:null}var Go=(()=>{var s;return(s=Mt.Node)!==null&&s!==void 0?s:{}})(),pe=(()=>{var s;return(s=Mt.NodeFilter)!==null&&s!==void 0?s:{}})(),qo={2:pe.SHOW_ATTRIBUTE,4:pe.SHOW_CDATA_SECTION,8:pe.SHOW_COMMENT,11:pe.SHOW_DOCUMENT_FRAGMENT,9:pe.SHOW_DOCUMENT,10:pe.SHOW_DOCUMENT_TYPE,1:pe.SHOW_ELEMENT,[Go.ENTITY_NODE]:pe.SHOW_ENTITY,[Go.ENTITY_REFERENCE_NODE]:pe.SHOW_ENTITY_REFERENCE,[Go.NOTATION_NODE]:pe.SHOW_NOTATION,7:pe.SHOW_PROCESSING_INSTRUCTION,3:pe.SHOW_TEXT},Dt={debug(...s){},warn(...s){},implementation(...s){},error(...s){},critical(...s){},isPerfLoggingActive(){return!1}};function Jp(s){Dt=s}var G=s=>(r,t,e)=>{let i=(t==null?void 0:t.toString())||"",n=s||`${r.constructor&&r.constructor.name}.${i}`;if(e){let o=e.value;e.value=function(...c){return ks(n,o.bind(this))(...c)}}};function ks(s,r){return function(...t){try{let e=r.apply(this,t);return mt(window.Promise)&&e instanceof window.Promise?e.then(i=>i,i=>Dt.error(ii(i)?i:new Error(i),s)):e}catch(e){try{Dt.error(ii(e)?e:new Error(e),s)}catch{}}}}var nr=(()=>{class s{constructor(){this.uo=0}get length(){return this.uo}get isEmpty(){return!this.Os}pushAll(t){for(let e=0;e=Ah&&csArray.prototype.push.call(Wo,{mName:s,mDuration:+t.toFixed(2)}),csArray.prototype.pop.call(_a),_a.length===0&&(t>bh&&Mn.push(Wo),Wo=[])}function Ai(s,r){return function(...t){if(!Fn)return s.apply(this,t);Th(r);let e=s.apply(this,t);return Rh(r),e}}var se=function(s){return function(r,t,e){let i=e.value;e.value=function(){if(!Fn)return e.value=i,i.apply(this,arguments);Th(s);let n=i.apply(this,arguments);return Rh(s),n}}};var _i=(()=>{let s;return function(r){function t(){return!!Element.prototype.attachShadow}r.isSupported=t;function e(n){return n&&Eh(n)?n.shadowRoot:null}r.getShadowRoot=e;function i(n){return _e(n,NodeFilter.SHOW_DOCUMENT_FRAGMENT).collectAll(o=>o.host)}r.getAllShadowHosts=Ai(i,"getAllShadowHosts")}(s||(s={})),s})(),Kt=(()=>{let s;return function(r){function t(){let f=[i()];return document.documentElement&&csArray.prototype.push.call(f,document.documentElement.scrollHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight),document.body&&csArray.prototype.push.call(f,document.body.scrollHeight,document.body.offsetHeight),Math.max(...f)}r.documentHeight=t;function e(){return document.documentElement.scrollWidth}r.documentWidth=e;function i(){return window.innerHeight}r.windowHeight=i;function n(){return window.innerWidth}r.windowWidth=n;function o(){let f=window.csScreen.width;return Ns(f)&&f>0?f:window.screen.width}r.screenWidth=o;function c(){let f=window.csScreen.height;return Ns(f)&&f>0?f:window.screen.height}r.screenHeight=c;function u(){return window.pageXOffset}r.windowOffsetX=u;function d(){return window.pageYOffset}r.windowOffsetY=d;function S(){return{dw:`${e()}`,dh:`${t()}`,ww:`${n()}`,wh:`${i()}`,sw:`${o()}`,sh:`${c()}`}}r.getRequestParameters=S}(s||(s={})),s})();function Ur(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 ct(s,r){if(ef(s)){let t=s.length;for(let e=0;e=0}function Os(s,r){let t=s.length;for(let e=0;ecsArray.prototype.push.call(t,r?[i,e]:e)),t}var Yo=(()=>{var s;return(s=Mt.Node)!==null&&s!==void 0?s:Object})(),Ct=(()=>{let s;return function(r){let t="isConnected"in Yo.prototype?I=>I.isConnected:I=>!I.ownerDocument||!(I.ownerDocument.compareDocumentPosition(I)&I.DOCUMENT_POSITION_DISCONNECTED);function e(I,B){for(let X=I;X;X=csNodenextSibling.apply(X))B(I)}r.forEachChild=e;function i(I){return t(I)}r.isConnected=i;function n(I,B){let X=[];for(let it of u(I,B))csArray.prototype.push.call(X,it);return X}r.getAncestors=n;let o=(I,B)=>{var X;return(X=csNodeparentNode.apply(I))!==null&&X!==void 0?X:B&&Ji(I)?I.host:null};function c(I,B,X=!1){let it=I;for(;it;){if(B(it))return it;let _t=o(it,X);if(_t&&_t!==it)it=_t;else break}return null}r.findAncestor=c;function*u(I,B=!1){let X=I;for(;X;){yield X;let it=o(X,B);if(it&&it!==X)X=it;else break}}r.walkUp=u;function d(I,B){if(I===B||B.contains(I))return!0;let X=r.getParentElement(I);return X&&X!==I?d(X,B):!1}r.isDescendantOf=d;function S(I){var B;return I.parentElement?I.parentElement:r.getRootNode(I)?(B=r.getRootNode(I))===null||B===void 0?void 0:B.host:null}r.getParentElement=S;function f(I,B=document){let X=Ur(window.csquerySelectorAll[B.nodeType].call(B,I)),it=_i.getAllShadowHosts(B);for(let _t of it){let Ot=_i.getShadowRoot(_t);if(!Ot)continue;let Ft=Ur(window.csquerySelectorAll[Ot.nodeType].call(Ot,I));csArray.prototype.push.call(X,...Ft)}return X}r.findAllElements=f,r.getRootNode=(()=>{if("getRootNode"in Yo.prototype)return(X,it)=>X.getRootNode(it);function I(X){let it=B(X);return Ji(it)?I(it.host):it}function B(X){return csNodeparentNode.apply(X)!=null?B(csNodeparentNode.apply(X)):X}return(X,it)=>typeof it=="object"&&!!it.composed?I(X):B(X)})();function _(I){return I==="transparent"||/^(rgba|hsla)\(\d+, \d+%?, \d+%?, 0\)$/.test(I)}function w(I){let B=I.getBoundingClientRect();return B.right+Kt.windowOffsetX()<0||B.bottom+Kt.windowOffsetY()<0}function T(I){var B,X;if(((B=I.checkVisibility)===null||B===void 0?void 0:B.call(I,{checkOpacity:!0,checkVisibilityCSS:!0}))===!1)return!0;if(!I.offsetParent){if(!I.getBoundingClientRect)return Dt.warn(`SUP-11432: Element doesn't have getBoundingClientRect. Node: ${I instanceof Yo} Ctor: ${(X=I==null?void 0:I.constructor)===null||X===void 0?void 0:X.name}`),!1;let Ot=I.getBoundingClientRect();if(Ot.width==0&&Ot.height==0)return!0}let it=window.getComputedStyle(I);return it?it.display==="none"||it.visibility==="hidden"||it.visibility==="collapse"||it.opacity==="0"||it.filter==="opacity(0)"||it.width==="0px"&&it.height==="0px"||_(it.color):!0}r.isHiddenByCSS=T;function N(I){if(T(I))return!0;let X=S(I);return X!=null&&N(X)}r.areAncestorsHiddenByCSS=N;function x(I){let B=null,X=I;do if(T(X))B=X;else break;while(X=S(X));return B}r.getTopAncestorHiddenByCSS=x;function O(I){let B=C(I);return B!==null&&!I.contains(B)&&!B.contains(I)}function C(I){let B=I.getBoundingClientRect(),X=B.left+.5*B.width,it=B.top+.5*B.height;return U(document,X,it)}r.getTopElement=C;function $(I){if(!I.getBoundingClientRect)return null;let B=I.getBoundingClientRect(),X=B.x+B.width/2,it=B.y+B.height/2;return r.getTopElementFromPoint(document,X,it)}r.getElementOnTop=$;function U(I,B,X){let it=I.elementFromPoint(B,X);if(!it)return null;let _t=_i.getShadowRoot(it);return _t&&_t!=r.getRootNode(document.body)&&_t!==I?U(_t,B,X):it}r.getTopElementFromPoint=U;function L(I){return!w(I)&&!T(I)&&!O(I)}r.isVisibleInDocument=L;function Z(I){return T(I)?!1:nt(I)}r.isVisibleInViewportInForeground=Z;function nt(I){let B=C(I);return B===null?!1:I===B?!0:Ht(I)?I.textContent!==""&&B.contains(I):I.contains(B)}r.isInViewPort=nt;function pt(I,B,X){let it=I.getAttributeNS(B,X);return it===""?I.hasAttributeNS(B,X)?it:null:it}r.getAttributeNS=pt;function jt(I){return!!(I.hasAttribute("tabIndex")||I.getAttribute("contentEditable")==="true"||yh(I)&&I.hasAttribute("href")||(Za(I)||Qa(I)||Zn(I)||bp(I))&&!I.hasAttribute("disabled")||Ap(I)||Tp(I))}r.isElementFocusable=jt;function Ht(I){return I.localName==="span"||I.localName==="a"||I.localName==="b"||I.localName==="i"||I.localName==="button"||I.localName==="input"||I.localName==="label"||I.localName==="cite"||I.localName==="small"||I.localName==="strong"||I.localName==="code"||I.localName==="abbr"||I.localName==="em"||I.localName==="dfn"||I.localName==="time"||I.localName==="output"||I.localName==="object"||I.localName==="sub"}r.isInlineElement=Ht}(s||(s={})),s})(),rf=(()=>{class s{constructor(t){this.Bm=t}run(t){let e=[...this.Bm],i=Ct.getAncestors(t,!1),n=i[i.length-1];for(;e.length>0&&i.length>0;){let o=csArray.prototype.shift.call(i),c=i[0]||null;if(this.Fm(e,o,c,n),this.zm(e),e.length===0)break;i.length===0&&o.host&&(i=Ct.getAncestors(o.host,!1),n=i[i.length-1])}}Fm(t,e,i,n){for(let o of t)o.serializeElement(e,i,n)}zm(t){for(let e=0;e{class s extends wh{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.$m(t);if(i+=i.length>0?"|":"",this.path.length+i.length>this.options.hierarchyMaxLength){this.done=!0;return}this.path=i+this.path}$m(t){if(!t.localName)return"";let e=`@${t.localName};`;return e+=this.Gm(t.id),t.classList&&(e+=this.qm(csArray.from(t.classList))),t.attributes&&(e+=this.Wm(t)),e}Gm(t){return t?`#${t};`:""}qm(t){return t.length>0?`.${csArray.prototype.join.call(csArray.prototype.sort.call(t),";.")};`:""}Ym(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||rr(t)&&csString.prototype.indexOf.call(e,"data-")===-1&&e!=="aria-label"||Zn(t)&&e==="value"}Xm(t,e){return this.options.useAnonymization&&!this.options.allWhitelistedAttributes.has(t)||e.length>this.options.attrMaxLength}Km(t){let e={};for(let i of csArray.from(t.attributes))this.Ym(t,i.name)||(e[i.name]=i.value);return e}Wm(t){var e,i;if(!((i=(e=this.options).isNodeSensitive)===null||i===void 0)&&i.call(e,t))return"";let n=Object.entries(this.Km(t));return csArray.prototype.join.call(csArray.prototype.sort.call(csArray.prototype.map.call(csArray.prototype.filter.call(n,([o])=>o.lengththis.Xm(o,c)?`[${o}]`:`[${o}=${c}]`)),";")+(n.length>0?";":"")}}return s})(),hs=(()=>{let s;return function(r){r.INVALID_ELEMENT="INVALID_ELEMENT";function t(c){return!!c&&"localName"in c&&"getAttribute"in c&&"hasAttribute"in c&&"parentNode"in c}r.isValidElement=t;function e(c,u,d={fullPath:!1,dynamicIdRegex:null}){let S=o(c);if(S===document)return{path:"",hierarchy:""};if(!t(S))return{path:r.INVALID_ELEMENT,hierarchy:r.INVALID_ELEMENT};let f=new Kp(d),_=new nf(u);return new rf([f,_]).run(S),{path:f.getPath(),hierarchy:_.getPath()}}r.getElementPathAndHierarchy=e;function i(c,u={fullPath:!1,dynamicIdRegex:null}){let d=o(c);if(d===document)return"";if(!t(d))return r.INVALID_ELEMENT;let{ancestors:S,selectionRoot:f}=Sh(d);return Bn(S,f,u)}r.getElementPath=i;function n(c,u={fullPath:!1,dynamicIdRegex:null}){let d=o(c);if(d===document)return{path:"",firstAnchorParent:null};if(!t(d))return{path:r.INVALID_ELEMENT,firstAnchorParent:null};let{firstAnchorParent:S,ancestors:f,selectionRoot:_}=kp(d);return{path:Bn(f,_,u),firstAnchorParent:S}}r.getElementPathAndFirstAnchorParent=n;function o(c){return c&&"jquery"in c&&c.length===1?c[0]:c}}(s||(s={})),s})();window.CSPathComputation=window.CSPathComputation||hs;var of=Number.MAX_SAFE_INTEGER||9007199254740991;function Kc(){}function ri(s,r){return csString.prototype.lastIndexOf.call(s,r,0)===0}function af(s,r){return csString.prototype.indexOf.call(s,r,s.length-r.length)!==-1}var rc=34164e6,us={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})(),Ph=["t.contentsquare.net","clicktale"],lf=s=>{var r;if(typeof s.filename=="string"&&csArray.prototype.some.call(Ph,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,Y.critical(t)}};window.addEventListener("error",lf);var Y=(()=>{class s{constructor(){}static whiteListFilename(t){csArray.prototype.push.call(Ph,t)}static setStrategy(t){s.ji=t}static computeIsActive(t){s.xe=us.boolean(t),s.xe?s.tc=us.boolean(10):s.tc=!1}static isLoggingActive(){return s.xe}static getStrategy(){return s.ji}static debug(t,e=""){s.xe&&this.ji.send(t,e,Et.debug)}static warn(t,e=!0,i=""){var n;s.xe&&e&&this.ji.send(t,i,Et.warn),(n=window.UXAnalytics.Console)===null||n===void 0||n.warn(t)}static implementation(t,e=""){s.xe&&this.ji.send(t,e,Et.implementation)}static error(t,e=""){var i;s.xe&&this.ji.send(t,e,Et.error),(i=window.UXAnalytics.Console)===null||i===void 0||i.error(t)}static critical(t,e=""){this.ji.send(t,e,Et.critical)}static tryToExecute(t,e){return function(...i){try{let n=e.apply(this,i);return mt(window.Promise)&&n instanceof window.Promise?n.then(o=>o,o=>s.error(ii(o)?o:new Error(o),t)):n}catch(n){try{s.error(ii(n)?n:new Error(n),t)}catch{}}}}static isPerfLoggingActive(){return s.tc}}return s.xe=!1,s.tc=!1,s})(),hf=function(){"use strict";var s={d:function(i,n){for(var o in n)s.o(n,o)&&!s.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:n[o]})},o:function(i,n){return Object.prototype.hasOwnProperty.call(i,n)}},r={};s.d(r,{H:function(){return t}});var t=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.tryCatch,o=i.exception,c=i.scriptDomain,u=i.hjHost,d=i.askUrl,S=i.surveysHost,f=i.surveyImagesHost,_=i.surveyImpressionsEndpoint;window.hj=window.hj||function(){(window.hj.q=window.hj.q||[]).push(arguments)},hj.q=window.hj.q||[],window._hjSettings=window._hjSettings||{},hj.isPreview=!!_hjSettings.preview,hj.settings=hj.isPreview||!window.hjSiteSettings?{}:window.hjSiteSettings,hj.scriptDomain=window.hj.scriptDomain||c||"https://script.hotjar.com/",hj.defaults={environment:"live",host:"in.hotjar.com",insightsHost:"insights.hotjar.com",identifyEndpoint:"https://identify.hotjar.com",surveysHost:"surveys.hotjar.com",surveyImagesHost:"survey-images.hotjar.com",surveyImpressionsEndpoint:"https://surveystats.hotjar.io/hit",askUrl:"https://ask.hotjar.io/"},hj.environment=_hjSettings.environment||hj.defaults.environment,hj.host=u||_hjSettings.host||hj.defaults.host,hj.insightsHost=_hjSettings.insightsHost||hj.defaults.insightsHost,hj.surveysHost=S||_hjSettings.surveysHost||hj.defaults.surveysHost,hj.surveyImagesHost=f||hj.defaults.surveyImagesHost,hj.apiUrlBase="https://"+hj.host+"/api/v1",hj.insightsHost=_hjSettings.insightsHost||hj.defaults.insightsHost,hj.identifyEndpoint=_hjSettings.identifyEndpoint||hj.defaults.identifyEndpoint,hj.askUrl=_hjSettings.askUrl||d||hj.defaults.askUrl,hj.surveyImpressionsEndpoint=_||_hjSettings.surveyImpressionsEndpoint||hj.defaults.surveyImpressionsEndpoint,hj.userDeviceType=null,hj.tryCatch=n||window.hj.tryCatch;var w=o&&{log:o};hj.exceptions=w||window.hj.exceptions},e=r.H;return{n:e}}(),uf=hf.n,df="https://script.hj.contentsquare.net/",pf="https://ask.hj.contentsquare.net/",ff="in.hj.contentsquare.net",gf="surveystats.hj.contentsquare.net",mf="survey-images.hj.contentsquare.net",yf="https://surveystats.hj.contentsquare.net/hit",Ef={tryCatch:(s,r)=>Y.tryToExecute(r,s),exception:(s,r)=>Y.error(s,r),scriptDomain:df,hjHost:ff,askUrl:pf,surveysHost:gf,surveyImagesHost:mf,surveyImpressionsEndpoint:yf};uf(Ef);var Sf=/^\d+\.\d+(?:\.\d+)?$/,vf=s=>{if(!Sf.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}},_f=(s,r)=>s.major!==r.major?s.major-r.major:s.minor!==r.minor?s.minor-r.minor:s.patch-r.patch,wf=(s,r)=>_f(s,r)>=0,bf=1,Af="f553e78fb58e051e51fe8074c4c6e73e",wa=(()=>{let s;return function(r){r[r.Disabled=0]="Disabled",r[r.ButtonAndLinkOnly=1]="ButtonAndLinkOnly",r[r.Enabled=2]="Enabled"}(s||(s={})),s})(),Tf=(()=>{class s{constructor(t){var e,i,n,o,c,u,d,S,f,_,w,T,N;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||rc,this.sampleRate=t.sampleRate,this.replayRecordingRate=t.replayRecordingRate,this.validationRate=t.validationRate,this.lastTrackingDraw=t.lastTrackingDraw||1,this.useHttps=!0,this.eMerchandisingEnabled=t.eMerchandisingEnabled,this.mouseMoveHeatmapEnabled=t.mouseMoveHeatmapEnabled,this.jsErrorsEnabled=t.jsErrorsEnabled,this.collectionEnabled=!!(!((o=(i=t.collectionEnabled)!==null&&i!==void 0?i:(n=t.smbConfig)===null||n===void 0?void 0:n.record)!==null&&o!==void 0)||o),this.useSentry=!!((c=t.useSentry)!==null&&c!==void 0?c:!((u=t.smbConfig)===null||u===void 0)&&u.useSentry),this.apiErrors={enabled:(d=t.apiErrorsEnabled)!==null&&d!==void 0?d:0,...t.apiErrors},this.customErrors={enabled:(S=t.customErrorsEnabled)!==null&&S!==void 0?S:0,...t.customErrors},this.jsCustomErrorsEnabled=t.jsCustomErrorsEnabled,this.triggerSessionReplayEnabled=t.triggerSessionReplayEnabled,this.triggerSessionReplayRegex=this.sc(t.triggerSessionReplayRegex),this.dynamicIdRegex=t.dynamicIdRegex?new csRegExp(t.dynamicIdRegex):null,this.whitelistedAttributes=t.whitelistedAttributes||[],this.replayRecordingUnmaskedUrlRegex=this.sc(t.replayRecordingUnmaskedUrlRegex),this.replayRecordingMaskedUrlRegex=this.sc(t.replayRecordingMaskedUrlRegex),this.replayRecordingMaskedUrlRegexRules=t.replayRecordingMaskedUrlRegexRules||null,this.replayRecordingUnmaskedUrlRegexRules=t.replayRecordingUnmaskedUrlRegexRules||null,this.anonymisationMethod=t.anonymisationMethod||null,this.tagDeploymentMode=t.tagDeploymentMode,this.dualCollectionTagDomain=t.dualCollectionTagDomain||null,this.ptcDomain=t.ptcDomain||null,this.ptcGuid=t.ptcGuid||null,this.secureCookiesEnabled=!!t.secureCookiesEnabled,this.ptcSha512=t.ptcSha512||null,this.ptcSnapshotPath=t.ptcSnapshotPath||null,this.emitDebugEvents=!1,this.staticResourceManagerDomain=t.staticResourceManagerDomain||null,this.malkaRecordingDomain=t.malkaRecordingDomain||null,this.textVisibilityEnabled=t.textVisibilityEnabled,this.experimental=t.experimental||{},this.malkaEtrEnabled=!!t.malkaEtrEnabled,this.malkaUrlEnabled=!!t.malkaUrlEnabled,this.recordingUrlRules=(f=t.recordingUrlRules)!==null&&f!==void 0?f:[],this.cookielessTrackingEnabled=t.cookielessTrackingEnabled,this.customHashIdEnabled=!!t.customHashIdEnabled,this.encryptionEnabled=!!t.recordingEncryptionEnabled,this.encryptionPublicKey=t.recordingEncryptionPublicKey||null,this.pathComputationRules=t.pathComputationRules||{},t.pathComputationRules&&t.pathComputationRules.dynamicElementNameRegex===""&&(this.pathComputationRules.dynamicElementNameRegex=null),t.pathComputationRules&&t.pathComputationRules.dynamicElementNameRegex&&(this.pathComputationRules.dynamicElementNameRegex=new csRegExp(t.pathComputationRules.dynamicElementNameRegex)),this.asyncSerializerEnabled=!!t.asyncSerializerEnabled,this.encryptionPublicKeyId=t.recordingEncryptionPublicKeyId,this.pendingInactivityTimeout=t.pendingInactivityTimeout||5e3,this.accessibilityEnabled=!!t.accessibilityEnabled,this.useStaticResourceManager=!!t.useStaticResourceManager,t.taskSchedulerOptions&&(this.taskSchedulerOptions={...t.taskSchedulerOptions,enabled:!!t.taskSchedulerOptions.enabled}),this.uxaDomain=t.uxaDomain,this.environment=((_=t.uxaDomain)===null||_===void 0?void 0:_.indexOf("staging"))>-1?"staging":"production",this.performanceTimingOptions=t.performanceTimingOptions,this.replayConsentRequiredForSession=!!t.replayConsentRequiredForSession,this.isWebView=!1,t.displayAdOptions&&t.displayAdOptions.length&&(this.displayAdOptions=t.displayAdOptions),t.voc&&(this.voc={...t.voc,enabled:!!t.voc.enabled}),this.vocData=t.vocData,t.heapEnvironment&&(this.heapEnvironment=t.heapEnvironment),t.implementations&&t.implementations.length&&(this.implementations=t.implementations),this.eventsApiEnabled=!!t.eventsApiEnabled,this.anonymizeDigits=(w=t.anonymizeDigits)!==null&&w!==void 0?w:null,this.isHeapPresent=window.heap!==void 0,this.recordTargetingRules=(T=t.recordTargetingRules)!==null&&T!==void 0?T:[],this.paProxyDomainUri=t.paProxyDomainUri||null,this.emitRecordInfoEvents=t.emitRecordInfoEvents!=!1,this.collectHierarchy=!!t.collectHierarchy,this.collectSubmit=!!t.collectSubmit,this.collectTargetText=(N=t.collectTargetText)!==null&&N!==void 0?N:wa.Disabled}getTrackerUri(){return`${this.Ns()}://${this.trackerDomain}`}getSentryFileUri(){return`${this.Ns()}://${this.tagDomain}/uxa/smb/errors.js`}getSentryDSNUri(){return`https://${Af}@${this.loggerDomain}/4508608369131520`}getRecordingUri(){return`${this.Ns()}://${this.malkaRecordingDomain}`}getLoggerUri(){return`${this.Ns()}://${this.loggerDomain}`}getMetricsUri(){return`${this.Ns()}://${this.loggerDomain}/metrics`}getStaticResourceManagerUri(){return`${this.Ns()}://${this.staticResourceManagerDomain}`}getSettingsFileUri(){return this.settingsFileUri?this.settingsFileUri:`${this.Ns()}://${this.dynamicConfDomain}/${this.projectId}.json`}isQuotaEnabled(){return this.isSMB&&!!this.dynamicConfDomain}getPaProxyDomainUri(){return`${this.Ns()}://${this.paProxyDomainUri}`}Ns(){return this.useHttps?"https":"http"}isProjectActive(){return this.status===bf}processOptionOverrides(t){t&&t.forEach&&t.forEach(([e,...i])=>{if(e==="setOption"){let[n,o]=i;this.Jm(n,o)}})}Jm(t,e){t==="trackerDomain"&&(this.trackerDomain=e),t==="loggerDomain"&&(this.loggerDomain=e),t==="malkaRecordingDomain"&&(this.malkaRecordingDomain=e),t==="staticResourceManagerDomain"&&(this.staticResourceManagerDomain=e),t==="minLogLevel"&&(this.minLogLevel=e),t==="useHttps"&&(this.useHttps=!!e),t==="isWebView"&&(this.isWebView=e),t==="dynamicConfDomain"&&(this.dynamicConfDomain=e),t==="paProxyDomainUri"&&(this.paProxyDomainUri=e)}sc(t){return t?this.Qm(t):null}getRequestParameters(){return{pid:`${this.projectId}`}}updateDynamicFields(t,e){t==="emitDebugEvents"&&(this.emitDebugEvents=e),t==="minLogLevel"&&(this.minLogLevel=e)}Qm(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.Fu()}isHeapSideloadsStartDataCollection(){if(this.isHeapSideloadsCs()){if(this.Fu())return!0;let t=vf(this.getHeapVersion()||"");if(t&&t.major===4&&wf(t,{major:4,minor:23,patch:5}))return!0}return!1}Fu(){var t;return typeof((t=window.heap)===null||t===void 0?void 0:t.getUserId)=="function"}getHeapVersion(){var t,e,i,n,o,c;return typeof((t=window.heap)===null||t===void 0?void 0:t.getConfig)=="function"&&((n=(i=(e=window.heap)===null||e===void 0?void 0:e.getConfig())===null||i===void 0?void 0:i.sdk)===null||n===void 0?void 0:n.version)||((c=(o=window.heap)===null||o===void 0?void 0:o.version)===null||c===void 0?void 0:c.heapJsVersion)||void 0}isCsCrosswritingHeap(){var t;return((t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_tag_status)==="cs_crosswrites_heap"}getHeapStorageLocation(){var t,e;return(e=(t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_storage_location)!==null&&e!==void 0?e:null}getHeapWebAppUri(){return this.getHeapStorageLocation()==="eu-west-1"?"https://eu.heapanalytics.com":"https://heapanalytics.com"}isCollectTargetTextEnabled(){return this.isSMB||this.collectTargetText!==wa.Disabled}isNetworkDetailsEnabled(){return this.performanceTimingOptions?this.performanceTimingOptions.withResource||this.performanceTimingOptions.withNavigation:!1}hasRecordingUrlRules(){var t;return!!(!((t=this.recordingUrlRules)===null||t===void 0)&&t.length)}hasTargetingRules(){var t;return!!(!((t=this.recordTargetingRules)===null||t===void 0)&&t.length)}}return s})(),Rf=(()=>{class s{constructor(t,e){this.po=t,this.zu=e}init(){this.$u=this.po!==this.po.top,this.Gu=this.zu.isWebView&&this.po===this.po.top,this.zu.iframesTracking&&this.$u||this.Gu?this.qu=!1:this.qu=!0}isInIframeContext(){return this.$u}isTopWindowTracker(){return this.qu}isInWebViewContext(){return this.Gu}}return s})(),nc=(()=>{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})(),Oh=(()=>{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})(),Zi=(()=>{class s extends Oh{constructor(t,e){super(t,e)}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,i=>i());let t=this.retrieveParameters();this.ic(t);let e=nc.toQuery(t);this.Zm(e),csArray.prototype.forEach.call(this.afterRequestCallbacks,i=>i())}Zm(t){let e=new window.Image(1,1);e.onload=Kc,e.onerror=Kc,csHTMLImageElementsrc.call(e,`${this.domainUri}${this.path?`/${this.path}`:""}?${t}`)}ic(t){t.r=csString.prototype.slice.call(`${Math.random()}`,2,8)}}return s})(),Cf=(()=>{class s{constructor(t,e){this.Ms=t,this.ty=e}init(){this.hs=new Zi(this.Ms.getLoggerUri()),this.hs.setRequestParametersProviders(this,this.ty)}send(t){this.fo=t,this.hs.send()}getRequestParameters(){return{a:this.fo.app,l:this.fo.level,m:this.fo.message,s:this.fo.stacktrace}}}return s})();function St(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,r,t,e);else for(var c=s.length-1;c>=0;c--)(o=s[c])&&(n=(i<3?o(n):i>3?o(r,t,n):o(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}var ba=(()=>{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,St([G("Metric.aggregate")],s.prototype,"aggregate",null),s})(),de=(()=>{class s extends ba{constructor(t,e=100){super(t),this.ey=e,this.Ie=null,this._values={}}count(t,e=1){this._values[t]=(this._values[t]||0)+e,this._debounce()}_debounce(){ba.globalService&&(this.Ie&&window.csClearTimeout(this.Ie),this.Ie=window.csSetTimeout(()=>{this.aggregate(),this.Ie=null},this.ey))}}return s})();var bt={counters:{commandsFromIntegrations:new de("commands-from-integrations"),commandsFromCSTC:new de("commands-from-cstc"),commandsFromIframe:new de("commands-from-iframe"),commandApplied:new de("command-applied"),commandError:new de("command-error"),commandMisuse:new de("command-misuse"),CSTCSnippetUsed:new de("cstc-snippet-used"),redactedPII:new de("redacted-pii"),pageAnonymisation:new de("page-anonymisation"),patchedNativeFunctions:new de("patched-native-functions"),pureWindowState:new de("pure-window-state"),sensitiveElements:new de("sensitive-elements"),cspErrors:new de("csp-errors"),networkRequests:new de("network-requests"),webVitalsErrors:new de("web-vitals-errors")},setService(s){ba.setGlobalService(s)}},If=/[a-zA-Z0-9._%+-]+(?:@|%40|%2540)[a-zA-Z0-9.%-_]+((?:\.|%2[eE])[a-zA-Z0-9-]+)+/g,Pf=/[a-zA-Z0-9+_-](?:@|%40|%2540)/,Of="CS_ANONYMIZED_EMAIL",Ko="([-A-Za-z0-9+/=_]|=[^=]|={3,})+",Nf=new csRegExp(`(ey${Ko}\\.ey${Ko}\\.${Ko})`,"g"),Mf="CS_ANONYMIZED_JWT",kf=/[0-9]{4}/,Df=/(^|[^a-zA-Z0-9*.,-])([45*][0-9*]{3}([ -]?)[0-9*]{4}\3[0-9*]{4}\3[0-9*]{4})($|[^a-zA-Z0-9*.,-])/g,Lf="CS_ANONYMIZED_PII",xf="\u2022",Vf=/\d/g,Uf=/([+(]{0,2}\d[-_ ()/]{0,4}){9,}/,jf=/(?:\d{1,3}\.){3}\d{1,3}/,Hf=/(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}/,Ge=(()=>{let s;return function(r){function t(S){return csString.prototype.replace.call(S,If,Of)}r.replaceEmail=t;function e(S){return csString.prototype.replace.call(S,Nf,Mf)}r.replaceJWT=e;function i(S,f){return csString.prototype.replace.call(S,Df,f)}r.replaceCreditCardNumber=i;function n(S){return csString.prototype.replace.call(S,Vf,xf)}r.replaceDigits=n;function o(S){return jf.test(S)||Hf.test(S)}r.mayHaveIPAddress=o;function c(S){return Uf.test(S)}r.mayHaveNumberSequence=c;function u(S){return kf.test(S)}r.mayHaveCreditCardNumber=u;function d(S){return Pf.test(S)}r.mayHaveEmail=d}(s||(s={})),s})(),ai=(()=>{class s{hasPII(t,e){let i=this.checkAndAnonymizePII(t,e);return t!==i}checkAndAnonymizePII(t,e=null){let i=this.sy(this.rc(t));return e===!0?i=this.iy(i):e===!1&&(i=this.ry(i)),i}anonymizePII(t){return this.rc(t)}anonymizeJwt(t){return Ge.replaceJWT(t)}anonymizeFields(t,e){return csArray.prototype.forEach.call(e,i=>{t[i]=this.rc(t[i])}),t}rc(t){if(Ge.mayHaveEmail(t)){let e=Ge.replaceEmail(t);return e!==t&&bt.counters.redactedPII.count("email"),e}return t}iy(t){return Ge.replaceDigits(t)}ry(t){return Ge.mayHaveNumberSequence(t)?Ge.replaceDigits(t):t}sy(t){return Ge.mayHaveCreditCardNumber(t)?Ge.replaceCreditCardNumber(t,(e,i,n,o,c)=>{if(csString.prototype.indexOf.call(n,"*")===-1){let d=o.length?csArray.prototype.join.call(csString.prototype.split.call(n,o),""):n;if(!this.ny(d))return e;bt.counters.redactedPII.count("cc")}else bt.counters.redactedPII.count("cc-partial");return`${i}${Lf}${c}`}):t}ny(t){let e=parseInt(t[t.length-1]),i=0;for(let n=t.length-2;n>=0;n--){let o=parseInt(t[n]);n%2===0&&(o*=2),i+=Math.floor(o/10)+o%10}return 10-i%10===e}}return s})(),oc="15.115.0";function ac(){return{v:oc}}function cc(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 Qc(s){let r=csString.prototype.indexOf.call(s,";base64,")!==-1,t=csString.prototype.indexOf.call(s,","),e=r?[csString.prototype.substring.call(s,0,t-7),csString.prototype.substring.call(s,t+1)]:[csString.prototype.substring.call(s,0,t),csString.prototype.substring.call(s,t+1)];if(!r&&/^%3Csvg/i.test(e[1]))try{e[1]=decodeURIComponent(e[1])}catch(o){Dt.warn(`${o}, calling decodeURIComponent on: ${e[1]}`)}let n=r?Nh(e[1]):cc(e[1]);return new Blob([n],{type:csString.prototype.replace.call(e[0],"data:","")})}var Mh=typeof performance!="undefined"&&!!performance.now,Zc=Mh?()=>performance.now():csDate.now,Bf=(()=>{var s,r;return Mh?(r=(s=performance.timing)===null||s===void 0?void 0:s.navigationStart)!==null&&r!==void 0?r:Math.floor(performance.timeOrigin):0})(),Q={now(){return Math.round(Zc()+Bf)},elapsed(){return Zc()}};function tl(){return Math.floor(Q.now()/1e3)}function Ff(){return typeof window.Promise=="function"}function zf(){var s;return typeof crypto!="undefined"&&be((s=crypto.subtle)===null||s===void 0?void 0:s.digest)}function el(){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 Me(s,r){return csString.prototype.lastIndexOf.call(s,r,0)===0}function or(s,r){return csString.prototype.indexOf.call(s,r,s.length-r.length)!==-1}var kh=(()=>{class s{constructor(t,e){this.f=t,this.N=e}getRequestParameters(){return{d:`${Q.now()}`,p:this.N.anonymizePII(window.location.href),...this.f.getRequestParameters(),...ac()}}}return s})(),$f="uxa",sl=5,Gf="No stacktrace",Dh="snippet-",Lh="implementation-snippet-",il=(()=>{let s;return function(r){r.IMPLEMENTATION="implementation",r.DYNAMIC="dynamic"}(s||(s={})),s})(),Jo={[Et.debug]:0,[Et.warn]:1,[Et.implementation]:1,[Et.error]:2,[Et.critical]:3},qf=(()=>{class s{constructor(t,e,i){this.us=e,this.N=new ai,this.Wu=Jo[Et.warn],this.Wu=Jo[t.minLogLevel||Et.warn],this.hs=i||new Cf(t,new kh(t,this.N)),this.Yu={[Et.debug]:[],[Et.warn]:[],[Et.implementation]:[],[Et.error]:[],[Et.critical]:[]},this.go={implementation:{},dynamic:{}},this.hs.init()}send(t,e="",i=Et.warn){if(!this.oy(i,e))return;csArray.prototype.push.call(this.Yu[i],e||"");let n={message:this.ay(t,e),stacktrace:this.cy(t),app:$f,level:i};this.hs.send(n)}ay(t,e){let i=ii(t)?this.N.anonymizePII(t.message||t.toString()):t;return e&&(i+=` ErrorCode: ${e}`),i}cy(t){return ii(t)?`${t.stack||Gf} ${this.Or()}`:this.Or()}Or(){let t=this.us.getVisitorService(),e=t==null?void 0:t.getVisitor();if(!e)return"No context";let i=this.us.getSessionService(),n=i&&i.getSession(),o={userId:e.id,sessionNumber:e.visitsCount,pageNumber:n&&n.pageNumber};return csJSON.stringify(o)}oy(t,e){if(Jo[t]=sl||e&&csArray.prototype.some.call(i,n=>n===e))}Xu(t,e){return t in this.go[e]?this.go[e][t]>=sl?!1:(this.go[e][t]+=1,!0):(this.go[e][t]=1,!0)}}return s})(),ne=!Hr&&document.createElement("a"),Wf=/(:443|:80)$/;function ti(s){return ne?(ne.href=s,ne.href):""}function xh(s,r){return new csURL(s,r).href}function Vh(s){let r=hc(s);return r===null?"":decodeURIComponent(r.hostname)}function lc(s,r){return csArray.prototype.some.call(r,t=>or(s,`.${t}`)||s===t||t==="")}function Yf(s){return s[0]==="/"?s:`/${s}`}function rl(s){return csString.prototype.replace.call(s,Wf,"")}function hc(s){return!ne||!Me(s,"http://")&&!Me(s,"https://")?null:(ne.href=s,{hash:ne.hash,host:rl(ne.host),hostname:ne.hostname,href:ne.href,origin:ne.origin?ne.origin:rl(`${ne.protocol}//${ne.host}`),pathname:Yf(ne.pathname),port:ne.port,protocol:ne.protocol,search:ne.search})}var nl="CS_IFRAME_MESSAGE",tr=(()=>{let s;return function(r){r.AfterPageView="afterPageView",r.GetSessionKey="getSessionKey"}(s||(s={})),s})(),Oe=(()=>{let s;return function(r){r.Parent="parent",r.Child="child"}(s||(s={})),s})(),z=(()=>{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})(),Tt=(()=>{let s;return function(r){function t(u,d,S,f){let _={type:u,from:d,pid:S,signature:nl};return f!==void 0&&f>=0&&(_.id=f),_}r.buildBaseMessage=t;function e(u,d,S,f){let _=Vh(u.origin);return!!u.data&&!!u.data.type&&u.data.signature===nl&&u.data.from===d&&u.data.pid===S&&lc(_,f)}r.isMessageValid=e;function i(u,d,S,f){f?u.postMessage(S,d,f):u.postMessage(S,d)}r.sendPostMessage=i;function n(){return new MessageChannel}r.getNewChannelMessage=n;function o(u,d){u.postMessage(d)}r.sendChannelMessage=o;function c(u){u.close()}r.closeChannelPort=c}(s||(s={})),s})(),Xf=(()=>{class s{constructor(t){this.f=t}send(t,e="",i=Et.warn){let n={message:t,errorCode:e,level:i},o=Tt.buildBaseMessage(z.ChildLogMessage,Oe.Child,this.f.projectId);o.content=n,Tt.sendPostMessage(window.parent,"*",o)}}return s})(),Kf=(()=>{class s{setContext(t,e){this.I=t,this.A=e}getVisitorService(){return this.I}getSessionService(){return this.A}}return s})();function Jf(s){if(document!=null&&document.prerendering){document.addEventListener("prerenderingchange",s,{once:!0});return}s()}function st(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,r,t,e);else for(var c=s.length-1;c>=0;c--)(o=s[c])&&(n=(i<3?o(n):i>3?o(r,t,n):o(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}function Qf(){let s=new MutationObserver(r=>{r.forEach(t=>{ct(t.removedNodes,e=>{e instanceof HTMLElement&&e.tagName==="CS-NATIVE-FRAME-HOLDER"&&(bt.counters.pureWindowState.count("iframe-deletion"),Dt.warn(" deleted"),s.disconnect())})})});s.observe(document.body,{childList:!0})}function ol(s){return typeof s!="function"?!1:s.toString().indexOf("[native code]")!==-1}function Zf(){(!ol(MutationObserver)||!ol(MutationObserver.prototype.observe))&&bt.counters.patchedNativeFunctions.count("MutationObserver")}function tg(){try{window.CSPureWindow&&Qf(),Zf()}catch{}}var zt=(()=>{let s;return function(r){r.CURRENT_DOMAIN="CURRENT_DOMAIN";function t(u){let S=new csRegExp(`(^|;)[ ]*${u}=([^;]*)`).exec(document.cookie);return S?decodeURIComponent(S[2]):null}r.get=t;function e(u,d,S,f,_,w){let T=encodeURIComponent(`${d}`),N=S===r.CURRENT_DOMAIN?void 0:S,x=i(f),O=x?`;expires=${x.toUTCString()}`:"",C=";path=/",$=Vt(N)?`;domain=${N}`:"",U=`${u}=${T}${O}${C}${$}`;return mt(_)&&_!==Js.NotSet&&(U=`${U};SameSite=${_}`),mt(w)&&w===Rs.Yes&&(U=`${U};Secure`),document.cookie=U,!0}r.set=e;function i(u){return te(u)?new csDate(Q.now()+u):u}r.toExpireDate=i;function n(u,d){t(u)&&e(u,"",d,new csDate(0)),t(u)&&e(u,"",d,new csDate(0),Js.None,Rs.Yes)}r.remove=n;function o(){return document.cookie.length>0}r.isCookiePresent=o;function c(u,d){let S="_cs_root-domain",f=t(S);if(f!==null&&f!=="1")return f;let _=csString.prototype.split.call(window.location.hostname,"."),w=csArray.prototype.pop.call(_);for(;_.length&&(f===null||f==="1");)w=csArray.prototype.join.call([csArray.prototype.pop.call(_),w],"."),e(S,w,w,void 0,u,d),f=t(S);return n(S,w),w}r.getRootDomain=c}(s||(s={})),s})(),eg=(()=>{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})(),Js=(()=>{let s;return function(r){r.None="None",r.Lax="Lax",r.NotSet="X"}(s||(s={})),s})(),Rs=(()=>{let s;return function(r){r[r.Yes=1]="Yes",r[r.No=0]="No"}(s||(s={})),s})(),Fr=(()=>{class s{constructor(t,e,i){this.f=t,this.R=e,this.Ye=i,this.nc=!1,this.Ku=Js.NotSet,this.oc=Rs.No}getSameSiteFlag(){return this.Ku}getSecureFlag(){return this.oc}getDomain(){return this.ac}getRootDomain(){return this.Ju}init(){if(this.f.cookielessTrackingEnabled)return;let t=this.ly(),e=this.hy();this.nc=this.uy(t,e),this.nc?(this.Ku=t,this.oc=e):this.f.secureCookiesEnabled&&this.R.getUrlProtocol()==="https:"&&(this.oc=Rs.Yes),this.Ju=this.dy(),this.ac=this.py(this.Ju)}uy(t,e){return eg.browserIsSafariV12()?!1:(zt.set(s.COOKIE_TEST_FOR_SAME_SITE,"Test same site",s.CURRENT_DOMAIN,void 0,t,e),zt.get(s.COOKIE_TEST_FOR_SAME_SITE)?(zt.remove(s.COOKIE_TEST_FOR_SAME_SITE,s.CURRENT_DOMAIN),!0):!1)}ly(){return this.R.getUrlProtocol()==="http:"?Js.Lax:this.Ye.isSameSiteNoneSecureNeeded()||this.f.crossDomainTracking?Js.None:Js.Lax}hy(){return this.R.getUrlProtocol()==="http:"?Rs.No:this.f.secureCookiesEnabled||this.f.crossDomainTracking||this.Ye.isSameSiteNoneSecureNeeded()?Rs.Yes:Rs.No}isSameSiteSupported(){return this.nc}set(t,e,i){let n=zt.toExpireDate(i);zt.set(t,e,this.ac,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.ac;zt.remove(t,i)}dy(){let t=this.Ye.isSameSiteNoneSecureNeeded()&&this.isSameSiteSupported(),e=t?Js.None:void 0,i=t?Rs.Yes:void 0;return zt.getRootDomain(e,i)}py(t){return this.f.allowSubdomains?t:zt.CURRENT_DOMAIN}}return s.CURRENT_DOMAIN="CURRENT_DOMAIN",s.COOKIE_TEST_FOR_SAME_SITE="_cs_same_site",s})(),$i="_cs_t",al="1",sg=(()=>{class s{constructor(t,e){this.mt=t,this.f=e,this.mo=!1,this.yo=!1}init(){if(!this.f.cookielessTrackingEnabled&&this.mt.isTopWindowTracker()&&"cookie"in document){if(!this.mt.isInIframeContext()&&zt.isCookiePresent()){this.mo=!0,this.yo=!1;return}if(zt.set($i,al,zt.CURRENT_DOMAIN),zt.get($i)!==null){this.mo=!0,this.yo=!1,zt.remove($i,zt.CURRENT_DOMAIN);return}zt.set($i,al,zt.CURRENT_DOMAIN,void 0,Js.None,Rs.Yes),zt.get($i)!==null&&(this.mo=!0,this.yo=!0,zt.remove($i,zt.CURRENT_DOMAIN))}}areCookiesEnabled(){return this.mo}isSameSiteNoneSecureNeeded(){return this.yo}}return s})();function ig(){let s="CSSessionStorageTest";try{return sessionStorage.setItem(s,s),sessionStorage.getItem(s)!==s?!1:(sessionStorage.removeItem(s),!0)}catch{return!1}}var rg=(()=>{class s{constructor(t,e){this.f=t,this.Ye=e}canTrack(){return this.f.isProjectActive()&&this.fy()&&this.Qu()&&this.gy()}canTrackInChild(){return this.f.isProjectActive()&&this.my()&&(this.Qu()||this.yy())}gy(){return this.f.cookielessTrackingEnabled?ig():this.Ye.areCookiesEnabled()}Qu(){return lc(window.location.hostname,this.f.hostnames)}fy(){return!this.Zu()&&this.Ey()}my(){return!this.Zu()&&this.Sy()}yy(){return window.location.protocol==="about:"&&window.location.hostname===""}Zu(){return"visibilityState"in document&&document.visibilityState==="prerender"}Ey(){return this.td()&&this.vy()}Sy(){return this.td()}vy(){try{return!!window.localStorage}catch{return!1}}td(){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})(),ng=(()=>{class s{constructor(t,e){this.cc=!1,this.sd=new Map,this.rd=new Map,this.nd=new Map,this.od="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.ds=this._y(e||i),this.cc=!0,s.isTransferableStreamSupported()&&(this.ad=new ReadableStream({start:n=>{this.lc=n},cancel:()=>{this.lc=null}}),this.ds.postMessage(this.ad,[this.ad]))}catch(n){n.name==="SecurityError"&&bt.counters.cspErrors.count("network-worker"),this.cc=!1}}postMessage(t){t.WORKER_SIGNATURE=this.od,this.lc?this.lc.enqueue(t):this.ds.postMessage(t)}_y(t){let e=window.csURL||window.webkitURL,i=window.Blob,n=window.Worker,o=new i([t],{type:"application/javascript"}),c=e.createObjectURL(o);Y.whiteListFilename(c);let u=new n(c);return u.onmessage=d=>{let{type:S,endpoint:f,WORKER_SIGNATURE:_}=d.data;if(_===this.od){if(S==="onLoad"){let{response:w}=d.data,T=this.sd.get(f);T&&T(w)}else if(S==="onError"){let{response:w}=d.data,T=this.rd.get(f);T&&T(w)}else if(S==="onTimeout"){let w=this.nd.get(f);w&&w()}}},u}registerOnLoadCallback(t,e){this.sd.set(t,e)}registerOnErrorCallback(t,e){this.rd.set(t,e)}registerOnTimeoutCallback(t,e){this.nd.set(t,e)}isSupported(){return this.cc}static isTransferableStreamSupported(){try{let t=new ReadableStream;return structuredClone(t,{transfer:[t]}),!0}catch{return!1}}}return s})(),og=(()=>{class s{constructor(t){var e;this.Xt={},this.Kt=t.endpoint,this.Se=t.networkWorker,this.wy=t.compressionOutputType,this.by=t.useRetry,this.Se.postMessage({type:"CreatePostRequest",endpoint:this.Kt,compressionOutputType:this.wy,useRetry:this.by,mandatoryParameters:(e=t.mandatoryParameters)!==null&&e!==void 0?e:[]})}setQueryParams(t){this.Se.postMessage({type:"SetQueryParams",endpoint:this.Kt,queryParams:t}),csArray.prototype.forEach.call(Object.keys(t),e=>{this.Xt[e]=t[e]})}getQueryParams(){return this.Xt}removeQueryParams(t){this.Se.postMessage({type:"RemoveQueryParams",endpoint:this.Kt,queryParams:t}),t&&csArray.prototype.forEach.call(t,e=>{delete this.Xt[e]})}send(t,e){this.Se.postMessage({type:"Send",endpoint:this.Kt,payload:t,queryParams:e})}abort(){this.Se.postMessage({type:"Abort",endpoint:this.Kt})}onLoad(t){this.Se.registerOnLoadCallback(this.Kt,t)}onError(t){this.Se.registerOnErrorCallback(this.Kt,t)}setRequestHeader(t,e){this.Se.postMessage({type:"SetHeader",endpoint:this.Kt,headerName:t,headerValue:e})}onTimeout(t,e){this.Se.registerOnTimeoutCallback(this.Kt,t),this.Se.postMessage({type:"SetTimeout",endpoint:this.Kt,timeout:e})}}return s})(),eo=(()=>{let s;return function(r){r.UNCOMPRESSED="0",r.GZIP="2"}(s||(s={})),s})(),Uh=(()=>{class s{constructor(t){this.onError=t}}return s})(),ag=(()=>{class s{constructor(t){var e;this.Xt={},this.hc={},this.cd=i=>{for(let n of i){let{metadata:o,events:c}=n;this.send(c,o)}},this.Kt=t.endpoint,this.Nr=t.compressionOpts,this.Jt=t.recoveryStorage,this.mandatoryParameters=(e=t.mandatoryParameters)!==null&&e!==void 0?e:[],this.worker=!!t.worker,this.Jt&&this.Jt.recover(this.cd)}setQueryParams(t){Object.keys(t).forEach(e=>{this.Xt[e]=t[e]})}removeQueryParams(t){t?t.forEach(e=>{delete this.Xt[e]}):this.Xt={}}send(t,e){let i=e||{...this.Xt},n=!("ct"in i),o=typeof t!="string"&&!this.Ay(t);"ct"in i||(!this.Nr||!n?i.ct=eo.UNCOMPRESSED:i.ct=this.Nr.compressionType);let c=o?JSON.stringify(t):t,u=Object.keys(i).map(S=>`${encodeURIComponent(S)}=${encodeURIComponent(i[S])}`).join("&"),d=`${this.Kt}?${u}`;if(Ch(this.mandatoryParameters,S=>i[S]==null)){Dt.warn(`[${this.worker?"WORKER":"MAIN"}] All mandatory parameters are not present on ${d}`);return}this.Nr&&n&&typeof c=="string"?this.Nr.compressor(c,this.Nr.compressionOutputType,S=>this.ld(d,i,S)):this.ld(d,i,c)}onLoad(t){this.Hi=t}onError(t){this.Mr=t}onTimeout(t,e){this.ci=t,this.kr=e}abort(){this.ud&&this.ud()}setRequestHeader(t,e){this.hc[t]=e}getQueryParams(){return this.Xt}Ay(t){return t&&t.byteLength!==void 0}ld(t,e,i){let n=new XMLHttpRequest,o=Object.keys(e).map(c=>`${encodeURIComponent(c)}=${encodeURIComponent(e[c])}`).join("&");n.open("POST",t),n.onload=()=>{if(this.Jt&&this.Jt.recover(this.cd),this.Hi){let c={params:e,responseText:n.responseText,status:n.status};this.Hi(c)}},n.onerror=()=>{this.Jt&&this.Jt.save({key:o,metadata:e,events:i}),this.Mr&&this.Mr({params:e})},this.kr&&this.ci&&(n.timeout=this.kr,n.ontimeout=()=>{this.ci()}),this.ud=()=>n.abort(),Object.keys(this.hc).forEach(c=>{n.setRequestHeader(c,this.hc[c])}),n.send(i)}}return s})(),jh=(()=>{class s{constructor(t){this.pc=t,this.Se=new ng(this.pc)}create(t,e,i,n,o=[]){if(this.Se.isSupported()&&e)return new og({networkWorker:this.Se,endpoint:t,compressionOutputType:i,useRetry:!!n,mandatoryParameters:o});{let c=i?{compressor:this.pc.compress,compressionOutputType:i,compressionType:this.pc.algorithm}:void 0;return new ag({endpoint:t,compressionOpts:c,recoveryStorage:n})}}}return s})(),cg=(()=>{class s{constructor(t,e,i,n,o){this.I=t,this.A=e,this.Xe=i,this.At=n,this.f=o}get(){return{exclusion:this.Xe.getAppliedTrackingDraw(),visitor:this.I.getVisitor(),session:this.A.getSession(),cvars:this.At.getCustomVariablesSession()}}apply(t){t&&(t.exclusion?this.exclude():this.include(t))}exclude(){this.Xe.exclude(this.f),this.I.removeVisitor(),this.A.removeSession(),this.At.removeCustomVariablesSession()}include(t){this.Xe.removeExclusion(),this.I.setVisitor(t.visitor),t.session?this.A.setSession(t.session):this.A.removeSession(),t.cvars?this.At.setCustomVariableSession(t.cvars):this.At.removeCustomVariablesSession()}}return s})(),$n=".",uc="__DOT__",lg=/^(([a-z0-9\-])+(\.[0-9]+){6})(\.[0-1])?(\.\b(x|[0-9a-fA-F]{12})\b)?$/,Hh="x";function hg(s){let[r,t,e,i,n,o,c,u,d]=gg(s);return{id:r,creationTimestamp:Number(t),visitsCount:Number(e),hitTimestamp:Number(i),lastVisitTimestamp:Number(n),appliedTrackingDraw:Number(o),expires:Number(c),allowSubdomains:u===void 0?void 0:!!Number(u),identityPrint:d===void 0||d===Hh?null:d}}function ug(s){var r;return csArray.prototype.join.call(csArray.prototype.map.call(csArray.prototype.map.call([s.id,s.creationTimestamp,s.visitsCount,s.hitTimestamp,s.lastVisitTimestamp,s.appliedTrackingDraw,s.expires,s.allowSubdomains?1:0,(r=s.identityPrint)!==null&&r!==void 0?r:Hh],csString),pg),$n)}function dg(s){return lg.test(s)}function pg(s){return csString.prototype.replace.call(s,/\./g,uc)}function fg(s){return csString.prototype.replace.call(s,new csRegExp(uc,"g"),$n)}function gg(s){return csString.prototype.indexOf.call(s,uc)!==-1?csArray.prototype.map.call(csString.prototype.split.call(s,$n),fg):csString.prototype.split.call(s,$n)}var tt=(()=>{let s;return function(r){r.QUOTA_REACHED="X",r.RECORDING_RULES_TARGETING="8",r.ANALYTICS_ONLY_RULES_TARGETING="9",r.ANALYTICS_ONLY="0",r.RECORDING_GLOBAL_SAMPLING="5",r.RECORDING_TEMPORARILY="T",r.RECORDING_URL_SAMPLING="6",r.RECORDING_ETR_SAMPLING="7",r.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED="B",r.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN="W"}(s||(s={})),s})(),ve=(()=>{let s;return function(r){r.ETR_OFF="0",r.ETR_ON="1"}(s||(s={})),s})(),ei=(()=>{let s;return function(r){r.ETR_LEGACY="0",r.ETR_SESSION="1",r.ETR_PAGE="2"}(s||(s={})),s})(),Ue=(()=>{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})(),Ta=(()=>{let s;return function(r){r.UNNECESSARY="U",r.NOT_EXPRESSED="N",r.WITHDRAWN="W",r.GRANTED="G"}(s||(s={})),s})();var mg=(()=>{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})(),Bh=/^(\d+\.[01356789TBWX](\.[01UNWG])?(\.[39])?)(\.\d+)?$/,Fh=".";function yg(s){return csArray.prototype.join.call([s.pageNumber,s.collectState,s.replayConsent,s.etrStatus],Fh)}function Eg(s){if(!dc(s))return null;let r=Ra(s);return r!==null?zh(r):null}function zh(s){var r,t;let[e,i,n,o]=csString.prototype.split.call(s,Fh);return{collectState:i,replayConsent:(r=n)!==null&&r!==void 0?r:Ta.UNNECESSARY,etrStatus:(t=o)!==null&&t!==void 0?t:mg.ETR_NOT_SAVED_SESSION,pageNumber:parseInt(e,10)}}function dc(s){return Bh.test(s)}function Ra(s){if(!s)return null;let r=(()=>{var t;return(t=csString.prototype.match.call(s,Bh))===null||t===void 0?void 0:t[1]})();return r!=null?r:null}var As="_cs_ex",cl=2592e6,Sg=/^[0-9]+$/,vg=(()=>{class s{constructor(t,e,i){this.f=t,this.V=e,this.Qt=i}onCookieToSet(t){this.li=t}onCookieToRemove(t){this.hi=t}get(){return this.f.cookielessTrackingEnabled?Number(this.Qt.getItem(As)):Number(this.V.get(As))}set(t){var e;this.f.cookielessTrackingEnabled?this.Qt.setItem(As,t):(this.V.set(As,t,cl),(e=this.li)===null||e===void 0||e.call(this,As,t,cl))}remove(){var t;this.f.cookielessTrackingEnabled?this.Qt.removeItem(As):(this.V.delete(As),(t=this.hi)===null||t===void 0||t.call(this,As))}static isValidExclusionString(t){return Sg.test(t)}}return s})(),qs="_cs_cvars",_g=(()=>{class s{constructor(t,e,i){this.f=t,this.V=e,this.Qt=i}onCookieToSet(t){this.li=t}onCookieToRemove(t){this.hi=t}get(){return this.f.cookielessTrackingEnabled?this.Qt.getItem(qs):this.V.get(qs)}set(t){var e;this.f.cookielessTrackingEnabled?this.Qt.setItem(qs,t):(this.V.set(qs,t),(e=this.li)===null||e===void 0||e.call(this,qs,t))}remove(){var t;this.f.cookielessTrackingEnabled?this.Qt.removeItem(qs):(this.V.delete(qs),(t=this.hi)===null||t===void 0||t.call(this,qs))}static isValidCustomVarString(t){return typeof t=="string"}}return s})();var wg="spki",ll="RSA-OAEP",bg="SHA-256",hl="AES-CTR",Ag="SHA-1",ul=190,wi=(()=>{let s;return function(r){var t;let e=!1,i=null,n,o=typeof TextEncoder!="undefined"?new TextEncoder:null,c;r.crypto=(t=Mt.crypto)===null||t===void 0?void 0:t.subtle,r.MAX_DIGEST_INPUT_SIZE=100;function u(){return!e}r.isKeyImported=u;function d(){return i}r.getCryptoKey=d;function S(){var U,L;return((L=(U=Mt.self.crypto)===null||U===void 0?void 0:U.subtle)===null||L===void 0?void 0:L.encrypt)!=null&&Mt.self.CryptoKey!=null}r.isSupported=S;async function f(U){n=r.crypto.importKey(wg,Nh(U),{name:ll,hash:bg},!1,["encrypt"]).catch(()=>(e=!0,null)),i=await n,n=void 0,i||Dt.warn(`Fail to import public key '${U}'`)}r.importKey=f;async function _(U){if(!S()||e)return null;await n;let L=cc(U);L.byteLength>ul&&(L=L.slice(0,ul));try{let Z=await r.crypto.encrypt({name:ll},i,L);return Jc(Z)}catch{return null}}r.asymmetricEncrypt=_;async function w(U,L){if(!S()||e)return null;let Z={counter:L.initializationVector,name:hl,length:64},nt=o.encode(U);try{let pt=await r.crypto.encrypt(Z,L.cryptoKey,nt);return Jc(pt)}catch{return null}}r.symmetricEncrypt=w;async function T(U){let L=await N(U);if(!L)throw new Error("Export secret failed");let Z=await _(L);if(!Z)throw new Error("Encrypt secret failed");return Z}r.encryptSecret=T;async function N(U){var L;if(!S())return null;try{return(L=(await r.crypto.exportKey("jwk",U)).k)!==null&&L!==void 0?L:null}catch{return null}}async function x(){if(!S()||e)return null;try{return{cryptoKey:await r.crypto.generateKey({name:hl,length:128},!0,["encrypt","decrypt"]),initializationVector:Mt.crypto.getRandomValues(new Uint8Array(16))}}catch{return null}}r.generateSymmetricKey=x;function O(U){c=U}r.setDigestSalt=O;async function C(U){U=csString.prototype.toLocaleLowerCase.call(csString.prototype.trim.call(U)),c&&(U=`${U}:${c}`);let L=o.encode(U);try{let Z=await r.crypto.digest(Ag,L);return Aa(Z)}catch{return null}}r.digest=C;function $(){return Mt.crypto.subtle.generateKey({name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},!0,["encrypt","decrypt"])}r.generateKeyPair=$}(s||(s={})),s})();function Tg(){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=Cg(r);return t===""||(r=Ig(r,t),r.length===0)?"":$h(r[0])}function Rg(s){return csString.prototype.indexOf.call(s,"@")!==-1}function Cg(s){return s.length>0?$h(s[0]):""}function Ig(s,r){return csArray.prototype.filter.call(s,t=>csString.prototype.indexOf.call(t,r)===-1)}function $h(s){let r="",t;Rg(s)?t=new csRegExp("@(.+):(\\d+):(\\d+)$"):t=new csRegExp("\\((.+):(\\d+):(\\d+)\\)");let e=t.exec(s);return e&&(r=e[1]),r}var Pg=s=>s;function Og(s,r,t,e){let i=csSymbol.for("propertyProxy");Object.defineProperty(s,r,{get(){var n;if(this[i])return this[i];let o=(n=t.get)===null||n===void 0?void 0:n.apply(this);return typeof o!="object"?o:(typeof Proxy=="function"?this[i]=new Proxy(o,{get(c,u){let d=Reflect.get(c,u);return typeof d=="function"?d.bind(c):d},set:(c,u,d)=>{let S=c[u],f=Reflect.set(c,u,d);return e.forEach(_=>_(this,d,S,"subproperty")),f}}):this[i]=o,this[i])},set(){var n;let o=arguments,c=this[r],u=(n=t.set)===null||n===void 0?void 0:n.apply(this,o);delete this[i];try{e.forEach(d=>d(this,o[0],c,"property"))}catch(d){Dt.error(d)}return u}})}function Ng(s,r,t){let e=Mg(s,r);if(!e)return null;let i=(n,o,c,u)=>t(n,o,c,u);return{activate:()=>{e.add(i)},deactivate:()=>{e.delete(i)}}}function Mg(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,Og(s,r,i,e),e):(Dt.warn(`Cannot intercept non configurable property '${csString(r)}' of object '${s}'`),null):(Dt.warn(`Cannot intercept property '${csString(r)}' because it does not exist directly on the target object '${s}'`),null)}function kg(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 Dt.warn(`Cannot intercept read only function '${csString(r)}' of object '${s}'`),null;let i=new Set;s[t]=i;let n=s[r];if(typeof n=="function"){let o=function(){let c=arguments,u=[];try{u=csArray.prototype.map.call(oi(i),S=>S(c))}catch(S){Dt.error(S)}let d=n.apply(this,c);try{for(let S=0;S{let u=e(c),d=i!=null&&i.withCallerName?{callerName:Tg()}:{};return S=>t({...S,...d,args:u})};return{activate:()=>{n.add(o)},deactivate:()=>{n.delete(o)}}}function Dg(s,r){let t=csSymbol.for(r);if(s[t])return s[t];let e=new Set,i=Object.getOwnPropertyDescriptor(s,r);return i?i.configurable?(s[t]=e,Object.defineProperty(s,r,{set(){var n;let o=arguments,c=this[r],u=(n=i.set)===null||n===void 0?void 0:n.apply(this,o);try{e.forEach(d=>d(this,o[0],c,"property"))}catch(d){Dt.error(d)}return u}}),e):(Dt.warn(`Cannot intercept read only property '${csString(r)}' of object '${s}'`),null):e}function Gn(s,r,t){let e=Dg(s,r);if(!e)return null;let i=(n,o,c)=>t(n,o,c,"property");return{activate:()=>{e.add(i)},deactivate:()=>{e.delete(i)}}}function Lg(s,r){s.prototype=r.prototype,Object.defineProperty(s,"toString",{value:()=>r.toString()})}var ar=(()=>{var s;class r{static Iy(e){this.ks.forEach(i=>{e(i,"initial")})}static Dr(e){if(this.M||(this.M=new csMutationObserver(i=>{for(let n of i)n.target.isConnected&&ct(n.addedNodes,this.Py),ct(n.removedNodes,this.Oy)})),csArray.prototype.push.call(this._e,e),!this.G){this.G=!0,this.M.observe(document,this.Lr);for(let i of _i.getAllShadowHosts(document)){let n=csElementshadowRoot.apply(i);this.ks.add(n),this.M.observe(n,this.Lr)}this.Ec||(this.Ec=Cs({target:Element.prototype,methodName:"attachShadow",hook:i=>i.result.isConnected&&this.gd(i.result)})),this.Ec.activate()}this.Iy(e)}static xr(e){var i,n;this._e=csArray.prototype.filter.call(this._e,o=>o!==e),this._e.length===0&&(this._e=[],this.G=!1,(i=this.M)===null||i===void 0||i.disconnect(),(n=this.Ec)===null||n===void 0||n.deactivate(),this.ks.clear())}constructor(e){this.w=e,this.w=ks("DocumentShadowRootObserver:callback",(i,n)=>e(i,n))}get shadowRoots(){return oi(s.ks)}takeRecords(){var e,i;return(i=(e=s.M)===null||e===void 0?void 0:e.takeRecords())!==null&&i!==void 0?i:[]}observe(){_i.isSupported()&&s.Dr(this.w)}disconnect(){_i.isSupported()&&s.xr(this.w)}}return s=r,r._e=[],r.ks=new Set,r.G=!1,r.Lr={childList:!0,subtree:!0},r.gd=t=>{s.ks.has(t)||(s.M.observe(t,s.Lr),s.ks.add(t),ct(s._e,e=>e(t,"added")))},r.Py=t=>{_e(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(s.gd)},r.Oy=t=>{t.isConnected||_e(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(e=>{s.ks.has(e)&&(s.ks.delete(e),ct(s._e,i=>i(e,"removed")))})},St([G()],r.prototype,"observe",null),St([G()],r.prototype,"disconnect",null),r})(),Gh=!0;function Lt(s,r=Gh){s.boundElement.addEventListener(s.type,s.listener,r)}function xt(s,r=Gh){s.boundElement.removeEventListener(s.type,s.listener,r)}function Ee(s,r=0){let t=Math.pow(10,r);return Math.round(s*t)/t}var dl=!1;function Nt(){return(s,r,t)=>{if(t){let e=t.value;t.value=function(i,n){(i==null?void 0:i.isTrusted)===!1&&dl||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&&dl||e.call(this,i,n)}}}}function so(s,r){typeof r=="number"&&(r={wait:r});let t=r.wait,e=r.mode||"leading",i,n=[],o=null,c=0,u,d=()=>{c=Q.now(),o=null,u=s.apply(i,n),n=[],i=null},S=function(...f){if(i=this!==null&&this!==void 0?this:Mt,n=[...f],e==="trailing")return o||(o=Mt.csSetTimeout(d,t)),u;let _=Q.now(),w=t-(_-c);return w<=0||w>t?(c=_,u=s.apply(i,n),o?(Mt.csClearTimeout(o),o=null):n=[]):o||(o=Mt.csSetTimeout(d,w)),u};return S.cancel=()=>{o&&(Mt.csClearTimeout(o),c=0,o=null,n=[])},S.flushPending=()=>{o&&(Mt.csClearTimeout(o),d())},S}var cr=s=>(r,t,e)=>{e.value=so(e.value,s)};function xg(s){return s.nodeType===1}function Zt(s){let r=csEventtarget.apply(s);return r&&xg(r)&&csElementshadowRoot.apply(r)&&s.composedPath?s.__csOriginalTarget||s.composedPath()[0]:r}function Vg(s){return s.composedPath&&Object.defineProperty(s,"__csOriginalTarget",{value:s.composedPath()[0],writable:!1,enumerable:!1}),s}function Ug(){return(s,r,t)=>{let e=t.value;return e&&(t.value=function(i){if(Zt(i)===csEventtarget.apply(i))return e.call(this,i)}),t}}function jg(s){if(!V(s))return null;let t=/iP(ad|hone|od).+Version\/(\d+)\..*Safari/i.exec(s);return t?Number(t[2]):null}var Hg=!!window.chrome,pl="data-cs-scroll-container";function Bg(s){try{if(Vt(csEventtarget.apply(s)))return!0}catch{}return!1}var Xi=(()=>{let s;return function(r){function t(i){return!!(Vt(i)&&Bg(i)&&Ms(csEventtarget.apply(i))&&csEventtarget.apply(i).getAttribute(pl)!==null)}r.isEventOnScrollContainer=t;function e(){return window.csquerySelector[document.nodeType].call(document,`[${pl}]`)}r.getScrollContainer=e}(s||(s={})),s})();function Fg(){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 kn=Fg(),at=(()=>{let s;return function(r){function t(u,d,S){var f;u instanceof Node?kn.set(u,d,S):((f=u.props)!==null&&f!==void 0||(u.props={}),u.props[d]=S)}r.setProperty=t;function e(u,d){var S;return u instanceof Node?kn.get(u,d):(S=u.props)===null||S===void 0?void 0:S[d]}r.getProperty=e;function i(u){return u instanceof Node?kn.getStore(u):u.props}r.getProperties=i;function n(u,d){let S=null;return o(u,(f,_,w)=>d(f)&&(S=f)&&!!w()),S}r.findDescendant=n;function o(u,d){c(u,void 0,d)}r.traverse=o;function c(u,d,S){let f=!1;if(S(u,d,()=>f=!0),f)return;let w=u.shadowRoot;w&&c(w,u,S);let T=u.children;if(T!=null&&T.length){for(let N of T)if(N&&(c(N,u,S),f))break}}}(s||(s={})),s})(),qh=1,Nr=csSymbol("nodeIdentifier");function zg(s=!1){s&&(qh=1),Nr=csSymbol("nodeIdentifier")}function $g(s){return at.getProperty(s,Nr)}function Rt(s){let r=at.getProperty(s,Nr);return r!=null?r:(at.setProperty(s,Nr,qh++),at.getProperty(s,Nr))}var Qo;function ee(s){if(Qo||(Qo=document.createElement("div")),!(!!s&&V(s)))return Dt.warn(`isValidSelector: invalid selector provided '${s}'`),!1;try{return Ae.call(Qo,s),!0}catch{return Dt.warn(`isValidSelector: invalid selector provided '${s}'`),!1}}function er(s,r){if(qc)return qc.call(s,r);let t=s;do{if(Ae.call(t,r))return t;t=t==null?void 0:t.parentElement}while(t!==null&&t.nodeType===1);return null}var W=(()=>{let s;return function(r){let t;(function(O){O[O.NotMasked=0]="NotMasked",O[O.Parent=1]="Parent",O[O.Child=2]="Child"})(t=r.MaskedElementState||(r.MaskedElementState={})),r.maskedProp="masked",r.maskedAttributeProp="maskedAttribute";function e(O){return Xe(O)&&"Attributes"in O&&"PIISelectors"in O?O.Attributes instanceof Array&&O.PIISelectors instanceof Array:!1}r.isSelectorUserInput=e;function i(O){if(!Xe(O)||O===null)throw new Error("Command misuse: setPIISelectors");return"Attributes"in O||(O.Attributes=[]),"PIISelectors"in O||(O.PIISelectors=[]),O}r.sanitizeSelectorUserInput=i;function n(O){var C;return(C=at.getProperty(O,r.maskedProp))!==null&&C!==void 0?C:{state:t.NotMasked}}r.getMaskedElementDetails=n;function o(O){var C;return(C=at.getProperty(O,r.maskedAttributeProp))!==null&&C!==void 0?C:{attributes:[]}}r.getMaskedAttributeDetails=o;function c(O){let C=at.getProperty(O,r.maskedProp);return(C==null?void 0:C.state)===t.Parent}r.isMaskedElement=c;function u(O){let C=at.getProperty(O,r.maskedProp);return(C==null?void 0:C.state)===t.Child}r.isMaskedElementChild=u;function d(O,C){let $=at.getProperty(O,r.maskedAttributeProp);return(($==null?void 0:$.attributes)==null?void 0:csArray.prototype.indexOf.call($==null?void 0:$.attributes,C))>-1}r.isMaskedAttribute=d;function S(O,C){at.setProperty(O,r.maskedProp,C)}r.setMaskedElementProperty=S;function f(O){at.setProperty(O,r.maskedProp,void 0)}r.unsetMaskedElementProperty=f;function _(O,C){at.setProperty(O,r.maskedAttributeProp,C)}r.setMaskedAttributeProperty=_;function w(O,C){let $=csArray.prototype.filter.call(O.PIISelectors,Z=>ee(Z));C.elementSelector.length>0&&csArray.prototype.push.call($,...csString.prototype.split.call(C.elementSelector,","));let U=x([...$]),L={elementSelector:csArray.prototype.join.call(U,","),attrSelector:C.attrSelector,attrSelectors:C.attrSelectors};return csArray.prototype.forEach.call(O.Attributes,Z=>{Z!=null&&Z.attrName&&(Z!=null&&Z.selector)&&ee(Z.selector)&&!T(L.attrSelectors,Z)&&csArray.prototype.push.call(L.attrSelectors,Z)}),L.attrSelector=N(L.attrSelectors),L}r.getComputedSelectorSettings=w;function T(O,C){return csArray.prototype.some.call(O,$=>$.selector===C.selector&&$.attrName===C.attrName)}function N(O){let C="";return csArray.prototype.forEach.call(O,$=>{let U=csString.prototype.split.call($.selector,",");csArray.prototype.forEach.call(U,L=>{ee(L)&&(C&&(C+=","),C+=L)})}),C}function x(O){if(O.length<=1)return O;let C=[];for(let $ of O){let U=csString.prototype.split.call($,",");for(let L of U)csArray.prototype.indexOf.call(C,L)===-1&&csArray.prototype.push.call(C,L)}return C}}(s||(s={})),s})(),J=(()=>{let s;return function(r){r[r.MUTATION_INSERT=1]="MUTATION_INSERT",r[r.MUTATION_REMOVE=2]="MUTATION_REMOVE",r[r.MUTATION_ATTRIBUTE=3]="MUTATION_ATTRIBUTE",r[r.MUTATION_CHARACTER_DATA=4]="MUTATION_CHARACTER_DATA",r[r.INITIAL_DOM=5]="INITIAL_DOM",r[r.SCROLL=6]="SCROLL",r[r.CLICK=8]="CLICK",r[r.RESIZE=9]="RESIZE",r[r.INPUT_CHECKABLE=10]="INPUT_CHECKABLE",r[r.INPUT_SELECT=11]="INPUT_SELECT",r[r.INPUT_TEXT=12]="INPUT_TEXT",r[r.HASH_CHANGE=13]="HASH_CHANGE",r[r.UNANONYMIZED_CONSENT_GRANTED=14]="UNANONYMIZED_CONSENT_GRANTED",r[r.UNANONYMIZED_CONSENT_WITHDRAWN=15]="UNANONYMIZED_CONSENT_WITHDRAWN",r[r.MOUSE_OVER=16]="MOUSE_OVER",r[r.VISIBILITY_CHANGE=17]="VISIBILITY_CHANGE",r[r.STYLESHEET_RULE_INSERT=18]="STYLESHEET_RULE_INSERT",r[r.STATIC_RESOURCE_URL=19]="STATIC_RESOURCE_URL",r[r.PERFORMANCE_TIMINGS=20]="PERFORMANCE_TIMINGS",r[r.ATTACH_SHADOW=22]="ATTACH_SHADOW",r[r.STYLESHEET_CSS_TEXT_UPDATE=23]="STYLESHEET_CSS_TEXT_UPDATE",r[r.JAVASCRIPT_ERROR=26]="JAVASCRIPT_ERROR",r[r.PAGE_EVENT=27]="PAGE_EVENT",r[r.API_ERROR=28]="API_ERROR",r[r.TEXT_VISIBILITY=29]="TEXT_VISIBILITY",r[r.MUTATION_ENCRYPTED_CHARACTER_DATA=30]="MUTATION_ENCRYPTED_CHARACTER_DATA",r[r.INPUT_ENCRYPTED_TEXT=31]="INPUT_ENCRYPTED_TEXT",r[r.KEY_DOWN=32]="KEY_DOWN",r[r.KEY_UP=33]="KEY_UP",r[r.CLIPBOARD_COMMAND=34]="CLIPBOARD_COMMAND",r[r.STYLESHEET_RULE_DELETE=37]="STYLESHEET_RULE_DELETE",r[r.USER_IDENTIFIER=38]="USER_IDENTIFIER",r[r.TOUCH_START=41]="TOUCH_START",r[r.TOUCH_MOVE=42]="TOUCH_MOVE",r[r.TOUCH_END=43]="TOUCH_END",r[r.GESTURE_RECOGNITION=44]="GESTURE_RECOGNITION",r[r.POINTER_DOWN=47]="POINTER_DOWN",r[r.POINTER_MOVE=48]="POINTER_MOVE",r[r.POINTER_UP=49]="POINTER_UP",r[r.CUSTOM_ERROR=50]="CUSTOM_ERROR",r[r.CUSTOM_ELEMENT_REGISTRATION=54]="CUSTOM_ELEMENT_REGISTRATION",r[r.REGISTER_ADOPTED_STYLE_SHEET=60]="REGISTER_ADOPTED_STYLE_SHEET",r[r.SET_ADOPTED_STYLE_SHEETS=61]="SET_ADOPTED_STYLE_SHEETS",r[r.ADOPTED_STYLESHEET_RULE_INSERT=62]="ADOPTED_STYLESHEET_RULE_INSERT",r[r.ADOPTED_STYLESHEET_RULE_DELETE=63]="ADOPTED_STYLESHEET_RULE_DELETE",r[r.SCREEN_RESIZE=65]="SCREEN_RESIZE",r[r.RESOURCE_HASHES=66]="RESOURCE_HASHES",r[r.PERFORMANCE_NAVIGATION_TIMING=67]="PERFORMANCE_NAVIGATION_TIMING",r[r.PERFORMANCE_RESOURCE_TIMING=68]="PERFORMANCE_RESOURCE_TIMING",r[r.RECORDING_INFO_EVENT=72]="RECORDING_INFO_EVENT",r[r.TEXT_REF=73]="TEXT_REF",r[r.TOUCH_CANCEL=74]="TOUCH_CANCEL",r[r.MUTATION_MOVE=75]="MUTATION_MOVE",r[r.STYLESHEET_RULE_UPDATE=76]="STYLESHEET_RULE_UPDATE",r[r.ADOPTED_STYLESHEET_RULE_UPDATE=77]="ADOPTED_STYLESHEET_RULE_UPDATE",r[r.VIDEO_PLAY=78]="VIDEO_PLAY",r[r.VIDEO_PAUSE=79]="VIDEO_PAUSE",r[r.VIDEO_SEEK=80]="VIDEO_SEEK",r[r.ADOPTED_STYLESHEET_DISABLED=98]="ADOPTED_STYLESHEET_DISABLED",r[r.STYLESHEET_DISABLED=99]="STYLESHEET_DISABLED",r[r.DEBUG=999]="DEBUG"}(s||(s={})),s})();var Tr=(()=>{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})(),Ki=(()=>{let s;return function(r){r[r.COPY=0]="COPY",r[r.CUT=1]="CUT",r[r.PASTE=2]="PASTE"}(s||(s={})),s})(),dt=(()=>{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})(),Gg=33,Wh=(()=>{class s{constructor(){this.eventType="user",this.Sc=[],this.Ny=[{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.My=[{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.Eo=[{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.vc=[{type:"scroll",listener:e=>this.scrollListener(csEventtarget.apply(e))}];let t=jg(window.navigator.userAgent);(t===null||t&&t>=16)&&csArray.prototype.push.call(this.vc,{type:"mouseover",listener:e=>this.mouseOverListener(e)}),this.ae=new ar((e,i)=>{switch(i){case"initial":case"added":this.pi(e);break;case"removed":this.fi(e);break}})}init(){this.ky(),this.Dy(),this._c()}onEvent(t){csArray.prototype.push.call(this.Sc,t)}Zt(t,e=!1){csArray.prototype.forEach.call(this.Sc,i=>i(t,e))}start(){this.wc(),this.pi(document),this.ae.observe()}stop(){this.fi(document),this.ae.disconnect(),this.Sc=[]}Dy(){this.Ly()&&csArray.prototype.push.call(this.Eo,...this.Ny)}ky(){this.xy()&&csArray.prototype.push.call(this.Eo,...this.My)}pi(t){jn(t)?csArray.prototype.forEach.call(this.Eo,e=>Lt(e)):csArray.prototype.forEach.call(this.vc,e=>{let i={type:e.type,listener:e.listener,boundElement:t};Lt(i)})}fi(t){jn(t)?csArray.prototype.forEach.call(this.Eo,e=>xt(e)):csArray.prototype.forEach.call(this.vc,e=>{let i={type:e.type,listener:e.listener,boundElement:t};xt(i)})}Ly(){return"PointerEvent"in window&&typeof window.PointerEvent=="function"}xy(){return"TouchEvent"in window&&typeof window.TouchEvent=="function"}wc(){this.Vy()}Vy(){let t=Xi.getScrollContainer()||document,e=Rt(t),i=this.md(t);if(i.top!==0||i.left!==0){let n={type:J.SCROLL,args:[e,i.left,i.top],date:Q.now()};this.Zt(n,!0)}}md(t){return t===document?{top:window.pageYOffset,left:window.pageXOffset}:{top:t.scrollTop,left:t.scrollLeft}}scrollListener(t){if(W.isMaskedElement(t)||W.isMaskedElementChild(t))return;let e=Rt(t),i=this.md(t),n={type:J.SCROLL,args:[e,i.left,i.top],date:Q.now()};this.Zt(n)}mouseOverListener(t){if(W.isMaskedElementChild(t.target))return;let e=Rt(t.target),i={type:J.MOUSE_OVER,args:[e],date:Q.now()};this.Zt(i)}clickListener(t){let e=Zt(t);if(W.isMaskedElementChild(e))return;let i=Rt(e),n={type:J.CLICK,args:[i],date:Q.now()};this.Zt(n)}keyUpListener(t){let e=Zt(t);if(W.isMaskedElementChild(e))return;let i=Rt(e),n=this.U[t.key];if(n===void 0)return;let o={type:J.KEY_UP,args:[i,n],date:Q.now()};this.Zt(o)}keyDownListener(t){let e=Zt(t);if(W.isMaskedElementChild(e))return;let i=Rt(e),n=this.U[t.key];if(n===void 0)return;let o={type:J.KEY_DOWN,args:[i,n],date:Q.now()};this.Zt(o)}copyListener(t){let e=Zt(t);if(W.isMaskedElementChild(e))return;let i=Rt(e),n={type:J.CLIPBOARD_COMMAND,args:[i,Ki.COPY],date:Q.now()};this.Zt(n)}cutListener(t){let e=Zt(t);if(W.isMaskedElementChild(e))return;let i=Rt(e),n={type:J.CLIPBOARD_COMMAND,args:[i,Ki.CUT],date:Q.now()};this.Zt(n)}pasteListener(t){let e=Zt(t);if(W.isMaskedElementChild(e))return;let i=Rt(e),n={type:J.CLIPBOARD_COMMAND,args:[i,Ki.PASTE],date:Q.now()};this.Zt(n)}pointerUpListener(t){let e=Zt(t);if(W.isMaskedElementChild(e))return;let i=Rt(e),n={type:J.POINTER_UP,args:[t.pointerId,t.pointerType,Ee(t.clientX,1),Ee(t.clientY,1),i,t.button],date:Q.now()};this.Zt(n)}pointerMoveListener(t){let e={type:J.POINTER_MOVE,args:[t.pointerId,t.pointerType,Ee(t.clientX,1),Ee(t.clientY,1)],date:Q.now()};this.Zt(e)}pointerDownListener(t){let e=Zt(t);if(W.isMaskedElementChild(e))return;let i=Rt(e),n={type:J.POINTER_DOWN,args:[t.pointerId,t.pointerType,Ee(t.clientX,1),Ee(t.clientY,1),i,t.button,{pageX:Ee(t.pageX,1),pageY:Ee(t.pageY,1)}],date:Q.now()};this.Zt(n)}touchStartListener(t){if(!t.changedTouches)return;let{changedTouches:e}=t;for(let i=0;i{class s{constructor(t){this.Uy=t,this.So=0}addString(t){this.So+=t.length*qg}addArrayBuffer(t){this.So+=t.byteLength}isThresholdReached(){return this.So>this.Uy}reset(){this.So=0}}return s})(),Wg=2*1e3*1024,Yg=200,Xg=(()=>{class s{constructor(t=[],e=Wg){this.Dt=t,this.bc=new pc(e)}addEvent(t){this.bc.addString(Qi(t)),csArray.prototype.push.call(this.Dt,t)}addEventByTimestamp(t){let e=0;for(;e=t.date);e+=1);csArray.prototype.splice.call(this.Dt,e,0,t)}eventsCount(){return this.Dt.length}clearEvents(){this.bc.reset(),this.Dt=[]}isFull(){return this.eventsCount()>=Yg}isThresholdReached(){return this.bc.isThresholdReached()}getEvents(){return this.Dt}extractEvents(...t){let e=[],i=[];return csArray.prototype.forEach.call(this.Dt,n=>{csArray.prototype.indexOf.call(t,n.type)!==-1?csArray.prototype.push.call(e,n):csArray.prototype.push.call(i,n)}),this.Dt=i,e}stringifyEvents(){return Qi(this.Dt)}pC(t){t.type===J.INITIAL_DOM&&(window.CSDomSerialized=window.CSDomSerialized?window.CSDomSerialized+1:1)}}return st([se("RecordingBatch.addEvent")],s.prototype,"addEvent",null),s})(),Kg=(()=>{class s{constructor(){this.vo=1}getCurrentIndex(){return this.vo}increment(){this.vo+=1}reset(){this.vo=1}getRequestParameters(){return{ri:`${this.vo}`}}}return s})(),fc=(()=>{class s{emit(t,e,i,n=document){let c=`${i!==void 0?`${i}`:`${s.jy}`}${t}`,u=s.createEvent(c,{detail:e});u!==null&&n.dispatchEvent(u)}static createEvent(t,e={}){if(typeof CustomEvent=="function")return new CustomEvent(t,e);let i=this.Hy();if(i===null)return null;let{bubbles:n=!1,cancelable:o=!1,detail:c}=e;return i.initCustomEvent(t,n,o,c),i}static Hy(){try{return document.createEvent("CustomEvent")}catch{return null}}}return s.jy="cs.tracking.",s})(),ae=(()=>{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})(),Dn="null",Qs=null,Yh=[],Jg=()=>{var s;return Hr||!!(!((s=document.body)===null||s===void 0)&&s.getAttribute("data-cs-tag-extension"))};!Hr&&Jg()&&(window._uxa?_uxa.push(["debugEvents",!0]):window._uxa=[["debugEvents",!0]],Qs=new BroadcastChannel("cs-tag"),document.addEventListener("cs.tracking.recordingEvent",s=>{Ca({type:"UXA_EVENT",event:s.detail})}),Qs.addEventListener("message",s=>{if(s.data.type==="CONNECT"){if(s.data.sessionId===Dn)return;Dn=s.data.sessionId,csArray.prototype.forEach.call(Yh,r=>r()),Qs==null||Qs.postMessage({type:"CONNECTED",sessionId:Dn})}}));function Qg(s){Hr||(Dn!==null&&csSetTimeout(s),csSetTimeout(()=>csArray.prototype.push.call(Yh,s)))}function Ca(s){Qs==null||Qs.postMessage(s)}var io=(()=>{class s{constructor(t,e=""){this.name=t,this.format=e}}return s})(),yi=(()=>{class s extends io{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 fl=(()=>{class s extends io{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})(),Zo=(()=>{class s extends io{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=Q.elapsed();t(),this.count++,this.total+=Q.elapsed()-e}asyncMeasure(){let t=Q.elapsed();return()=>{this.count++,this.total+=Q.elapsed()-t}}getData(){return{total:this.total,count:this.count,average:this.average}}}return s})(),oe={general:{category:"General",nbEvents:new yi("Nb of Events"),pendingTasks:new yi("Pending Tasks"),pendingEvents:new yi("Pending Tasks"),nbOfMutationObservers:new fl("Nb of Mutation Observers")},mutations:{category:"Mutations",initialDOM:new Zo("Initial DOM"),pendingMutations:new yi("Nb of Mutations scheduled"),serializedMutations:new Zo("Serialized Mutations"),count:new yi("Mutation Count"),elementMutationObserved:new fl("Nb of Elements Observed by MutationObserver"),unobserveGarbageCollection:new Zo("Unobserve GC")},visibilityObserver:{category:"Visibility Observer",hiddenElements:new yi("Nb of Hidden Elements "),nbElements:new yi("Nb of Elements")}},gl=null;Qg(()=>{let s=i=>Object.keys(i),r=csArray.prototype.map.call(s(oe),i=>oe[i]),t=csArray.prototype.map.call(r,i=>csArray.prototype.filter.call(csArray.prototype.map.call(s(i),n=>i[n]),n=>n instanceof io));Ca({type:"UXA_PERFORMANCE_COUNTER_SCHEMA",event:csArray.prototype.map.call(r,(i,n)=>({category:i.category,performanceCounters:csArray.prototype.map.call(t[n],o=>({name:o.name,format:o.format}))}))}),!gl&&(gl=csSetInterval(()=>{let i=ic(Ye(t,n=>Ye(n,o=>o.getData())),n=>n);Ca({type:"UXA_PERFORMANCE_COUNTER",event:i})},1e3))});function Ds(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,r,t,e);else for(var c=s.length-1;c>=0;c--)(o=s[c])&&(n=(i<3?o(n):i>3?o(r,t,n):o(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}function We(s){return Me(s,"data:")}function Xh(s){return Me(s,"#")}function qn(s){return!!s&&(or(s,".css")||Me(s,"https://fonts.googleapis.com/css"))}var ml=/\bhttps?:\/\/[^\s<>"')\]]*[^\s<>"'),.;:…\])]/gi;function Zg(s){ml.lastIndex=0;let r,t=0,e=[];for(;(r=ml.exec(s))!==null;){let i=r.index,n=r.index+r[0].length;if(i>t){let c=csString.prototype.slice.call(s,t,i);csArray.prototype.push.call(e,{content:c,isUrl:!1})}let o=csString.prototype.slice.call(s,i,n);csArray.prototype.push.call(e,{content:o,isUrl:!0}),t=n}if(t{let i=e[3]||e[4],n=e[9]||e[10]||e[11],o=nm((i||n).trim()),c=i?"@import ":"",u=r(o)||o;return`${c}url(${rm(u)})`})}function rm(s){return csString.prototype.indexOf.call(s,'"')===-1?`"${s}"`:csString.prototype.indexOf.call(s,"'")===-1?`'${s}'`:s}function Mr(s){let r=new Set;return im(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}),oi(r)}function nm(s){let r=/(\\)*\\(?:([a-fA-F0-9]{1,6})|(.))[\n\t\x20]?/g;return csString.prototype.replace.call(s,r,(t,e,i,n)=>{if(e==="\\")return csString.prototype.slice.call(t,1);if(n)return n;let o=parseInt(i,16);return 55296<=o&&o<=57343||o===0||o>1114111?"\uFFFD":csString.fromCodePoint(o)})}var El=new Map,ta=!Hr&&document.implementation.createHTMLDocument("");function Kh(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 om(s){if(!Qn(s))return null;let r=Jh(s);if(r===null||r.length===0)return null;let t="";if(Sp(s.textContent))ct(r,e=>t+=e.cssText);else{let e=am(s);if(e===r.length||e>r.length)return null;let i=new csArray(r.length-e);for(let n=e,o=0;nt+=n.cssText)}return t}function am(s){if(!ta)return 0;let r=El.get(s.textContent);if(r)return r;let t=s.cloneNode(!0);t.textContent=s.textContent,ta.head.appendChild(t);let e=Jh(t);return r=e?e.length:0,El.set(s.textContent,r),ta.head.removeChild(t),r}function Jh(s){try{if(s.disabled)return null;let r=s.sheet;return r?r.cssRules||r.rules:null}catch(r){if(r.name!=="SecurityError"&&r.name!=="InvalidAccessError")throw r;return null}}var Ir=s=>s instanceof HTMLFormElement?"form":s.localName;var Ti=(()=>{class s{constructor(t){this.csId=Rt(t),this.props=kn.getStore(t)}}return s})(),Qh=(()=>{class s extends Ti{constructor(t){super(t),this.nodeType=3,this.data=t.data}}return s})(),si=(()=>{class s extends Ti{constructor(t){var e,i,n;super(t),this.attributes=[],this.nodeType=1,this.localName=Ir(t),this.namespaceURI=(e=t.namespaceURI)!==null&&e!==void 0?e:void 0,this.children=[];let o=om(t);if(o){this.children=new csArray(csNodechildNodes.apply(t).length);let c=document.createTextNode(o),u=new Qh(c);csArray.prototype.push.call(this.children,u)}rr(t)&&at.setProperty(this,"SVG",!0),(Qn(t)||Ja(t))&&(this.disabledSheet=(n=(i=t.sheet)===null||i===void 0?void 0:i.disabled)!==null&&n!==void 0?n:!1)}static isElement(t){return t.nodeType===1}static getAttribute(t,e){return Os(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})(),mc=(()=>{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.Ds=t,this.Ac=!0,this.w&&this.w(this.Ds)}complete(t){this.Ac&&t(this.Ds),this.w=t}wait(){return new Promise(t=>this.complete(t))}}return s})();function cm(s,r){let t=!1,e=function(){if(!t)return s.apply(r,arguments)};return e.cancel=()=>t=!0,e}var Ia=csQueueMicrotask||csSetTimeout,wn=new nr,Rr=new nr,Sl=1;function we(s,r="high"){let t=Sl;wn.isEmpty&&Rr.isEmpty&&Zh(()=>{if(Sl!==t)return;let n=Ai(()=>{for(;!Rr.isEmpty;)Rr.pop()();for(;!wn.isEmpty;)wn.pop()();Rr.isEmpty||n()},"groupMicrotask.run");n()});let e=s.name||s.toString(),i=ks(`groupMicrotask:${r}:${e}`,s);r==="high"?Rr.push(i):wn.push(i)}function Zh(s,r=10){Ia(r===0?s:()=>Zh(s,r-1))}async function tu(s=1){for(let r=0;rwe(t))}var ro=(()=>{class s{constructor(){this.set=new Set}add(t){this.set.add(t),this.set.size===1&&csSetTimeout(()=>{this.set.clear()})}has(t){return this.set.has(t)}del(t){this.set.delete(t)}clear(){this.set.clear()}values(){return oi(this.set)}get count(){return this.set.size}}return s})(),lm=(()=>{class s extends ro{constructor(t="high"){super(),this.By=t}add(t){this.set.add(t),this.set.size===1&&we(()=>{this.set.clear()},this.By)}}return s})();function no(s,r=!1){let t=new ro;return{push(e){t.count===0&&(r?we:csSetTimeout)(()=>{s(t.values()),t.clear()}),t.add(e)}}}var Is=csSymbol(),yc=(()=>{class s{constructor(t){var e,i,n,o,c,u,d,S,f,_,w,T,N;this.w=t,this.Tc=null,this.Rc=null,this.Cc=null,this.Ic=null,this.Pc=null,this.Fy=no(x=>this.processUpdateRulesInATick(x)),this.Oc=null,this.Nc=null,this.Mc=null,this.w=x=>we(()=>t(x)),typeof((i=(e=window.CSSStyleSheet)===null||e===void 0?void 0:e.prototype)===null||i===void 0?void 0:i.insertRule)=="function"&&(this.Tc=Cs({target:window.CSSStyleSheet.prototype,methodName:"insertRule",hook:({context:x,args:O})=>{this.processInsertRule(x,O)}})),typeof((o=(n=window.CSSStyleSheet)===null||n===void 0?void 0:n.prototype)===null||o===void 0?void 0:o.deleteRule)=="function"&&(this.Rc=Cs({target:window.CSSStyleSheet.prototype,methodName:"deleteRule",hook:({context:x,args:O})=>{this.processDeleteRule(x,O)}})),typeof((u=(c=window.CSSGroupingRule)===null||c===void 0?void 0:c.prototype)===null||u===void 0?void 0:u.insertRule)=="function"&&(this.Cc=Cs({target:window.CSSGroupingRule.prototype,methodName:"insertRule",hook:({context:x})=>this.processUpdateRule(x)})),typeof((S=(d=window.CSSGroupingRule)===null||d===void 0?void 0:d.prototype)===null||S===void 0?void 0:S.deleteRule)=="function"&&(this.Ic=Cs({target:window.CSSGroupingRule.prototype,methodName:"deleteRule",hook:({context:x})=>this.processUpdateRule(x)})),!((f=window.StyleSheet)===null||f===void 0)&&f.prototype&&"disabled"in window.StyleSheet.prototype&&(this.Pc=Gn(window.StyleSheet.prototype,"disabled",(x,O,C)=>{O!==C&&this.zy(x,O)})),typeof((w=(_=window.CSSStyleDeclaration)===null||_===void 0?void 0:_.prototype)===null||w===void 0?void 0:w.setProperty)=="function"&&(this.Oc=Cs({target:window.CSSStyleDeclaration.prototype,methodName:"setProperty",hook:({context:x})=>{let O=x.parentRule;O instanceof CSSStyleRule&&this.processUpdateRule(O)}})),typeof((N=(T=window.CSSStyleDeclaration)===null||T===void 0?void 0:T.prototype)===null||N===void 0?void 0:N.removeProperty)=="function"&&(this.Nc=Cs({target:window.CSSStyleDeclaration.prototype,methodName:"removeProperty",hook:({context:x})=>{let O=x.parentRule;O instanceof CSSStyleRule&&this.processUpdateRule(O)}})),Object.getOwnPropertyDescriptor(window.CSSStyleRule.prototype,"style")&&(this.Mc=Ng(window.CSSStyleRule.prototype,"style",x=>{this.processUpdateRule(x)}))}observe(){var t,e,i,n,o,c,u,d;(t=this.Tc)===null||t===void 0||t.activate(),(e=this.Rc)===null||e===void 0||e.activate(),(i=this.Cc)===null||i===void 0||i.activate(),(n=this.Ic)===null||n===void 0||n.activate(),(o=this.Pc)===null||o===void 0||o.activate(),(c=this.Oc)===null||c===void 0||c.activate(),(u=this.Nc)===null||u===void 0||u.activate(),(d=this.Mc)===null||d===void 0||d.activate()}disconnect(){var t,e,i,n,o,c,u,d;(t=this.Tc)===null||t===void 0||t.deactivate(),(e=this.Rc)===null||e===void 0||e.deactivate(),(i=this.Cc)===null||i===void 0||i.deactivate(),(n=this.Ic)===null||n===void 0||n.deactivate(),(o=this.Pc)===null||o===void 0||o.deactivate(),(c=this.Oc)===null||c===void 0||c.deactivate(),(u=this.Nc)===null||u===void 0||u.deactivate(),(d=this.Mc)===null||d===void 0||d.deactivate()}processInsertRule(t,[e,i]){if(t[Is]==null&&!t.ownerNode)return;let n={type:"cssRuleInserted",sheet:t,rule:e,index:i};this.w(n)}processUpdateRule(t){let e=t;for(;e.parentRule!==null;)e=e.parentRule;e.parentStyleSheet!==null&&this.Fy.push(e)}processUpdateRulesInATick(t){for(let e of t){if(e.parentStyleSheet===null)return;let i=e.parentStyleSheet,n=csArray.prototype.indexOf.call(Ur(i.cssRules),e);if(n===-1)return;let o={type:"cssRuleUpdated",sheet:i,rule:e.cssText,index:n};this.w(o)}}processDeleteRule(t,[e]){if(t[Is]==null&&!t.ownerNode)return;let i={type:"cssRuleDeleted",sheet:t,index:e};this.w(i)}zy(t,e){if(t[Is]==null&&!t.ownerNode)return;let i={type:"cssStyleSheetDisabled",sheet:t,disabled:e};this.w(i)}}return St([G()],s.prototype,"observe",null),St([G()],s.prototype,"disconnect",null),St([G()],s.prototype,"processInsertRule",null),St([G()],s.prototype,"processUpdateRule",null),St([G()],s.prototype,"processUpdateRulesInATick",null),St([G()],s.prototype,"processDeleteRule",null),s})(),hm=(()=>{class s{constructor(t){this.$y=1,this._o=new Set,this.kc=null,this.Dc=null,this.Lc=(e,i)=>{(i==="initial"||i==="added")&&this.setStyleSheets(e,e.adoptedStyleSheets)},this.Gy=e=>{let i=e.sheet;if(this._o.has(i)){if(e.type==="cssRuleInserted"){let n={type:"adoptedStyleSheetRuleInserted",sheetId:i[Is],rule:e.rule,index:e.index};this.w(n)}else if(e.type==="cssRuleDeleted"){let n={type:"adoptedStyleSheetRuleDeleted",sheetId:i[Is],index:e.index};this.w(n)}else if(e.type==="cssRuleUpdated"){let n={type:"adoptedStyleSheetRuleUpdated",sheetId:i[Is],rule:e.rule,index:e.index};this.w(n)}else if(e.type==="cssStyleSheetDisabled"){let n={type:"adoptedStyleSheetDisabled",sheetId:i[Is],disabled:e.disabled};this.w(n)}}},this.w=e=>we(async()=>{await tu(2),t(e)}),this.ae=new ar(this.Lc),"adoptedStyleSheets"in Document.prototype&&(this.kc=Gn(window.Document.prototype,"adoptedStyleSheets",(e,i)=>{this.setStyleSheets(e,i)})),"ShadowRoot"in window&&"adoptedStyleSheets"in window.ShadowRoot.prototype&&(this.Dc=Gn(window.ShadowRoot.prototype,"adoptedStyleSheets",(e,i)=>{this.setStyleSheets(e,i)})),this.yd=new yc(this.Gy)}observe(){var t,e;this.setStyleSheets(document,document.adoptedStyleSheets),this.ae.observe(),(t=this.kc)===null||t===void 0||t.activate(),(e=this.Dc)===null||e===void 0||e.activate(),this.yd.observe()}disconnect(){var t,e;this._o.clear(),this.ae.disconnect(),(t=this.kc)===null||t===void 0||t.deactivate(),(e=this.Dc)===null||e===void 0||e.deactivate(),this.yd.disconnect()}setStyleSheets(t,e){if(!e.length)return;this.qy(e);let i=Ye(e,o=>o[Is]),n={type:"adoptedStyleSheetsSet",target:t,sheetsIds:i};this.w(n)}qy(t){ct(t,e=>{if(this._o.has(e))return;let i=this.$y++;e[Is]=i,this._o.add(e);let n=this.Wy(e),o={type:"adoptedStyleSheetRegistered",sheetId:i,cssRules:n,disabled:e==null?void 0:e.disabled};this.w(o)})}Wy(t){let e=[];try{e=Ye(t.cssRules,i=>i.cssText)}catch{}return e}}return St([G()],s.prototype,"observe",null),St([G()],s.prototype,"disconnect",null),St([G()],s.prototype,"setStyleSheets",null),s})(),um=Ai(gm,"optimizeMutations"),dm=csSymbol.for("ignoreNextSerialization");function pm(){let s=new Set,r=new Set,t=new Set,e=new Set,i=new Map,n=new Map,o=new Map,c=new Set,u=new Set,d=new Map,S=new Set;return{isMovedNode(f){return s.has(f)},markAsMovedNode(f){S.delete(f),s.add(f)},isDetachedMove(f){return!!Ct.findAncestor(f,_=>S.has(_),!0)},isAddedNode(f){let _=Ct.findAncestor(f,w=>r.has(w)||u.has(w)||s.has(w),!0);return!!_&&!s.has(_)},isMovedNodeIntoAddedNode(f){return s.has(f)&&!!Ct.findAncestor(f,_=>r.has(_)||u.has(_),!0)},markAsAddedNode(f){S.delete(f),u.delete(f),r.add(f)},markAsPendingInsert(f){u.add(f)},isPendingInsert(f){return u.has(f)},isRemovedNode(f){return!!Ct.findAncestor(f,_=>t.has(_),!0)},markAsRemovedNode(f){t.add(f)},isUselessNode(f){return e.has(f)},markAsUselessNode(f){e.add(f)},getPlaceholder(f,_){let w=_==="previous"?n:i;return f&&w.has(f)?w.get(f)||null:f},getSiblings(f){let _=f.addedNodes.length,w=this.getPlaceholder(f.previousSibling,"previous"),T=this.getPlaceholder(f.nextSibling,"next");if(_){let N=w,x=T,O=f.previousSibling!==w,C=f.nextSibling!==T;for(let $=0;$<_;$++){let U=f.addedNodes[$],L=f.addedNodes[_-$-1];this.isLatestNodeMutation(U,f)?(n.delete(U),f.previousSibling&&O&&(i.set(f.previousSibling,U),O=!1),N=U):n.set(U,N),this.isLatestNodeMutation(L,f)?(i.delete(L),f.nextSibling&&C&&(n.set(f.nextSibling,L),C=!1),x=L):i.set(L,x)}}else f.previousSibling&&f.previousSibling!==w&&i.set(f.previousSibling,T),f.nextSibling&&f.nextSibling!==T&&n.set(f.nextSibling,w);return{previousSibling:w,nextSibling:T}},setAttributeMutation(f,_){let w=o.get(f)||new Set;w.add(_),o.set(f,w)},isAttributeMutated(f,_){var w;return!!(!((w=o.get(f))===null||w===void 0)&&w.has(_))},setLatestNodeMutation(f,_){d.set(f,_)},isLatestNodeMutation(f,_){return d.get(f)===_},markAsFutureAddedNode(f){d.has(f)||S.add(f)},isTextMutated(f){return c.has(f)},setTextMutated(f){return c.add(f)}}}function fm(s,r){for(let t=0;t{if(d){let{childListType:w,movedNodes:T,...N}=d;csArray.prototype.push.call(t,w==="added"?N:{...N,movedNodes:T}),d=null}},f=w=>w===(d==null?void 0:d.childListType)?d:(S(),{childListType:w,type:"childList",target:s.target,addedNodes:[],removedNodes:[],movedNodes:[],previousSibling:u,nextSibling:c});if(e){for(let w=0;w{if(Ct.isConnected(w)){if(!i&&!r.isPendingInsert(w)){if(r.isDetachedMove(w))return!0;r.markAsMovedNode(w),r.isMovedNodeIntoAddedNode(w)&&(w[dm]=!0)}return!1}return r.isUselessNode(w)?!1:(r.markAsRemovedNode(w),!0)});return _.length&&csArray.prototype.push.call(t,{type:"childList",removedNodes:_,addedNodes:[],movedNodes:[],target:s.target,nextSibling:c,previousSibling:u}),t}var vl={childList:!0,subtree:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,attributeOldValue:!0},Je=(()=>{var s;class r{static setShadowRootFilter(e){csArray.prototype.push.call(s.shadowRootFilters,e)}static xc(e){if(s.shadowRootFilters.length>0&&Ji(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,vl)})})))}static observe(e,i){csArray.prototype.push.call(this.callbacks,e),i&&csArray.prototype.push.call(this.shadowRootCallbacks,i),this.started?i&&csArray.prototype.forEach.call(_i.getAllShadowHosts(document),n=>i(csElementshadowRoot.apply(n),"initial")):(this.mutationObserver=new csMutationObserver(this.mutationCallback),this.xc(document),this.shadowRootObserver=new ar(this.onShadowRoot),this.shadowRootObserver.observe(),this.started=!0,ct(this.shadowRootObserver.shadowRoots,n=>{this.xc(n)}))}static disconnect(e,i){var n,o;this.callbacks=csArray.prototype.filter.call(this.callbacks,c=>c!==e),i&&(this.shadowRootCallbacks=csArray.prototype.filter.call(this.shadowRootCallbacks,c=>c!==i)),this.callbacks.length===0&&(this.callbacks=[],this.shadowRootCallbacks=[],s.shadowRootFilters=[],(n=this.shadowRootObserver)===null||n===void 0||n.disconnect(),(o=this.mutationObserver)===null||o===void 0||o.disconnect(),this.observedTargets.clear(),this.started=!1)}constructor(e,i){this.w=e,this.Ed=i;let n=no(o=>e(o,this),!0);this.w=ks("DocumentMutationObserver:callback",o=>{ct(o,c=>n.push(c))})}get shadowRoots(){var e,i;return(i=(e=s.shadowRootObserver)===null||e===void 0?void 0:e.shadowRoots)!==null&&i!==void 0?i:[]}takeRecords(){var e;let i=(e=s.mutationObserver)===null||e===void 0?void 0:e.takeRecords(),n=s.shadowRootObserver.takeRecords();return i!=null&&i.length&&n.length?sf(i,n):i!=null?i:n}observe(){s.observe(this.w,this.Ed)}disconnect(){s.disconnect(this.w,this.Ed)}}return s=r,r.callbacks=[],r.shadowRootCallbacks=[],r.started=!1,r.observedTargets=new Set,r.shadowRootFilters=[],r.mutationCallback=t=>{oe.mutations.count.increase(t.length),csArray.prototype.forEach.call(s.callbacks,e=>e(t,s.mutationObserver))},r.onShadowRoot=(t,e)=>{ct(s.shadowRootCallbacks,i=>i(t,e)),e!=="removed"?s.xc(t):s.disconnectShadowRoot(t)},r.isRefreshing=!1,St([G()],r.prototype,"observe",null),St([G()],r.prototype,"disconnect",null),r})(),_m=(()=>{class s{constructor(t){this.w=t,this.Yy=e=>{e.sheet.ownerNode&&(e.type==="cssRuleInserted"?this.w({type:e.type,target:e.sheet.ownerNode,rule:e.rule,index:e.index}):e.type==="cssRuleDeleted"?this.w({type:e.type,target:e.sheet.ownerNode,index:e.index}):e.type==="cssRuleUpdated"?this.w({type:e.type,target:e.sheet.ownerNode,rule:e.rule,index:e.index}):e.type==="cssStyleSheetDisabled"&&this.w({type:e.type,target:e.sheet.ownerNode,disabled:e.disabled}))},this.w=e=>we(()=>t(e)),this.Sd=new yc(e=>we(async()=>{await tu(),this.Yy(e)})),"adoptedStyleSheets"in Document.prototype&&(this.vd=new hm(t))}observe(){var t;this.M=new Je(e=>this.Xy(e),(e,i)=>{i==="added"&&this.Ky(e)}),this.M.observe(),this.Sd.observe(),(t=this.vd)===null||t===void 0||t.observe()}disconnect(){var t,e;(t=this.M)===null||t===void 0||t.disconnect(),this.Sd.disconnect(),(e=this.vd)===null||e===void 0||e.disconnect()}Xy(t){let e=um(t);for(let i=0;ic)};this.w(o)}}Ky(t){let e={type:"shadowRootAttached",target:t.host,shadowRoot:t};this.w(e)}}return St([G()],s.prototype,"processAttributeChanged",null),St([G()],s.prototype,"processCharacterDataChanged",null),St([G()],s.prototype,"processChildListChanged",null),s})(),wm=(()=>{class s extends Ti{constructor(t){super(t),this.nodeType=4,this.data=t.data}}return s})(),bm=(()=>{class s extends Ti{constructor(t){super(t),this.nodeType=8,this.data=t.data}}return s})(),Am=(()=>{class s extends Ti{constructor(t){super(t),this.nodeType=10,this.name=t.name,this.publicId=t.publicId,this.systemId=t.systemId}}return s})(),Tm=(()=>{class s extends Ti{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})(),Rm=(()=>{class s extends Ti{constructor(t){super(t),this.nodeType=11,this.mode=t.mode,this.children=[]}}return s})(),Cm=(()=>{class s{constructor(t,e,i){var n;typeof t=="string"?(this.name=t,this.value=e,this.namespaceURI=i!=null?i:""):(this.name=t.name,this.value=t.value,this.namespaceURI=(n=t.namespaceURI)!==null&&n!==void 0?n:"")}static create(t){let e=t.attributes,i=new csArray(e.length);for(let n=0;ne(_)),o=new nr,c=(_,w)=>{_.hasChildNodes()&&o.push({node:_,serializedNode:w});let T=_ instanceof Element&&csElementshadowRoot.apply(_);if(T){let N=w.shadowRoot=Dr(T);s.async&&s.initialDOM&&at.setProperty(T,kr,!0),c(T,N)}},u,d=!0,S=8,f=ks("work",()=>{var _;if(d)u=Dr(t),s.async&&s.initialDOM&&at.setProperty(t,kr,!0),c(t,u),d=!1;else if(o.isEmpty)return;let w=Nm(100);for(;!o.isEmpty;){if(s.async&&w.elapsed()>=s.workTime){--S<=0&&csSetTimeout(f);return}let{node:T,serializedNode:N}=o.pop(),x=(_=N.children)!==null&&_!==void 0?_:[];if(to(T))continue;let O=0;for(let C=csNodefirstChild.apply(T);C;C=csNodenextSibling.apply(C)){if(eu(C))continue;let $=Dr(C);s.async&&s.initialDOM&&at.setProperty(C,kr,!0),x[O++]=$,c(C,$)}}s.async?csSetTimeout(()=>n(u)):e(u)});if(!s.async)s.workTime=1/0,f();else for(let _=0;_= 1");let r=0,t=performance.now();return{started:t,elapsed(){return++r%s===0&&(t=performance.now()),t-this.started}}}function Mm(s){return to(s)?[]:Cm.create(s)}var Ls=(()=>{class s{constructor(){this.ce=[],this.isStarted=!1}produceEvent(t){var e;this.isStarted&&(t.timestamp=(e=t.timestamp)!==null&&e!==void 0?e:Q.now(),t.timestamp==null&&(t.timestamp=Q.now()),csArray.prototype.forEach.call(this.ce,i=>i(t)))}onStop(){}start(){this.isStarted||(this.isStarted=!0,this.onStart())}stop(){this.isStarted&&(this.isStarted=!1,this.onStop(),this.ce=[])}stopForInactivity(){this.isStarted&&(this.isStarted=!1,this.onStop())}subscribe(t){return csArray.prototype.push.call(this.ce,t),()=>{let e=csArray.prototype.indexOf.call(this.ce,t);csArray.prototype.splice.call(this.ce,e,1)}}}return s})(),km=Ec(),su=(()=>{class s extends Ls{constructor(){super(...arguments),this.wo=!1}onStart(){this.wo=!0,this.w=cm(this.Jy,this),this.W=new _m(this.w),this.W.observe();let t=oe.mutations.initialDOM.asyncMeasure(),e=()=>{this.wo=!1,Om(),t()};this.produceEvent(new mc(i=>km(document,n=>{e(),i({type:"DomEvent",domEvent:"initialDOM",initialDOM:n})})))}onStop(){var t,e;this.wo=!1,(t=this.w)===null||t===void 0||t.cancel(),(e=this.W)===null||e===void 0||e.disconnect()}Bt(t,e){let i={type:"DomEvent",domEvent:e.type,target:0,targetProps:{}};return"target"in e&&(i.target=Rt(e.target),i.targetProps=at.getProperties(e.target)),[e,i]}Jy(t){if(!this.Qy(t))switch(t.type){case"attributeChanged":{let[e,i]=this.Bt(t.type,t);i.attribute=e.attribute,i.isSvg=rr(e.target),i.namespace=e.namespace,i.newValue=e.newValue,i.oldValue=e.oldValue,i.localName=Ir(e.target),i.linkRel=mh(e.target)?e.target.rel:null,i.parentLocalName=e.target.parentElement?Ir(e.target.parentElement):void 0,i.localName==="input"&&(i.inputType=e.target.getAttribute("type")),this.produceEvent(i)}break;case"characterDataChanged":{let[e,i]=this.Bt(t.type,t);i.newValue=e.newValue,i.oldValue=e.oldValue,i.targetNodeType=e.target.nodeType,i.parentLocalName=e.target.parentElement?Ir(e.target.parentElement):null,i.parentProps=e.target.parentElement?at.getProperties(e.target.parentElement):void 0,this.produceEvent(i)}break;case"nodesAdded":{let[e,i]=this.Bt(t.type,t);i.targetLocalName=kt(e.target)?Ir(e.target):null,i.nextSibling=e.nextSibling?Rt(e.nextSibling):null,i.previousSibling=e.previousSibling?Rt(e.previousSibling):null,oe.mutations.serializedMutations.measure(()=>{i.nodes=Ye(e.nodes,Pa)}),this.produceEvent(i);break}case"nodesMoved":{let[e,i]=this.Bt(t.type,t);i.previousSibling=e.previousSibling?Rt(e.previousSibling):null,i.nextSibling=e.nextSibling?Rt(e.nextSibling):null,i.nodesIds=Ye(e.nodes,Rt),this.produceEvent(i);break}case"nodesRemoved":{let[e,i]=this.Bt(t.type,t);i.nodesIds=Ye(e.nodes,Rt),this.produceEvent(i);break}case"shadowRootAttached":{let[e,i]=this.Bt(t.type,t);i.shadowRoot=Dr(e.shadowRoot),this.produceEvent(i);break}case"cssRuleInserted":{let[e,i]=this.Bt(t.type,t);i.index=e.index,i.rule=e.rule,this.produceEvent(i);break}case"cssRuleDeleted":{let[e,i]=this.Bt(t.type,t);i.index=e.index,this.produceEvent(i);break}case"cssRuleUpdated":{let[e,i]=this.Bt(t.type,t);i.rule=e.rule,i.index=e.index,this.produceEvent(i);break}case"cssStyleSheetDisabled":{let[e,i]=this.Bt(t.type,t);i.disabled=e.disabled,this.produceEvent(i);break}case"adoptedStyleSheetRegistered":{let[e,i]=this.Bt(t.type,t);i.sheetId=e.sheetId,i.cssRules=e.cssRules,i.disabled=e.disabled,this.produceEvent(i);break}case"adoptedStyleSheetsSet":{let[e,i]=this.Bt(t.type,t);i.sheetsIds=e.sheetsIds,this.produceEvent(i);break}case"adoptedStyleSheetRuleInserted":{let[e,i]=this.Bt(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.Bt(t.type,t);i.sheetId=e.sheetId,i.index=e.index,this.produceEvent(i);break}case"adoptedStyleSheetRuleUpdated":{let[e,i]=this.Bt(t.type,t);i.sheetId=e.sheetId,i.rule=e.rule,i.index=e.index,this.produceEvent(i);break}case"adoptedStyleSheetDisabled":{let[e,i]=this.Bt(t.type,t);i.sheetId=e.sheetId,i.disabled=e.disabled,this.produceEvent(i);break}}}bo(t){return this.wo&&!at.getProperty(t,kr)}Qy(t){switch(t.type){case"nodesAdded":case"nodesMoved":case"nodesRemoved":case"shadowRootAttached":return this.bo(t.target)||W.isMaskedElement(t.target)||W.isMaskedElementChild(t.target);case"characterDataChanged":{let e=t.target.parentElement;return e!==null&&(this.bo(e)||W.isMaskedElement(e)||W.isMaskedElementChild(e))}case"attributeChanged":return this.bo(t.target)||W.isMaskedElementChild(t.target)||W.isMaskedAttribute(t.target,t.attribute);case"cssRuleInserted":case"cssRuleDeleted":case"cssRuleUpdated":case"cssStyleSheetDisabled":return this.bo(t.target)||W.isMaskedElementChild(t.target);default:return!1}}}return s})(),zr=(()=>{let s;return function(r){function t(e){return e.type==="DomEvent"}r.isDOMEvent=t}(s||(s={})),s})(),$r=(()=>{class s{constructor(){this.ce=[]}start(){}stop(){this.ce.length=0,this.ce=[]}pushEvent(t){if(s.pendingEvents++,this.isListening(t)){let e=this.ce;csSetTimeout(()=>{let n=ks("Processor:processEvent",o=>this.processEvent(o))(t);n!=null&&csArray.prototype.forEach.call(e,o=>o(n)),s.pendingEvents--})}else csSetTimeout(()=>{csArray.prototype.forEach.call(this.ce,e=>e(t))})}subscribe(t){return csArray.prototype.push.call(this.ce,t),()=>{this.ce=csArray.prototype.filter.call(this.ce,e=>e!==t)}}emitEvent(t){we(()=>csArray.prototype.forEach.call(this.ce,e=>e(t)))}}return s.pendingEvents=0,s})(),bl=(()=>{class s{static async toStaticResourceEvent(t,e,i){let n=await s.Zy(t);if(!n)return null;let o=await s._d(n),c=We(t)?void 0:t,u={type:"StaticResourceManagerEvent",timestamp:i,resourceId:e,resource:{hash:o,data:n}};return c&&(u.originalResourceName=c),u}static async toCSSStaticResourceEvent(t,e,i,n){let o=await s.tE(t,n),c=ti(t),u=o.get(c);if(!u)return null;let d={type:"StaticResourceManagerEvent",timestamp:i,resourceId:e,resource:{hash:u.hash,data:u.data}};return o.delete(c),o.size&&(d.nestedResources=[],o.forEach(S=>{S&&csArray.prototype.push.call(d.nestedResources,{hash:S.hash,data:S.data})})),d}static async _d(t){let e=await t.arrayBuffer(),i=await crypto.subtle.digest(this.Vr,e);return Aa(i)}static async Zy(t){let e;if(!We(t))e=await(await window.fetch(t)).blob();else{let i=Qc(t);if(!i)return null;e=i}return e}static async tE(t,e){let i=new Map,n=ti(t),c=[{resourceRawPath:t,resourceAbsolutePath:n}];for(;c.length>0;){let u=csArray.prototype.pop.call(c);if(!e&&u.resourceAbsolutePath!==null&&!We(u.resourceAbsolutePath)){i.set(u.resourceAbsolutePath,null);continue}if(i.get(u.resourceAbsolutePath)===void 0)try{if(u.resourceRawPath===null||csString.prototype.indexOf.call(u.resourceRawPath,".css")>0){if(!u.data){let w=await fetch(u.resourceAbsolutePath);u.data=await w.text()}u.nestedResources||(u.nestedResources=Mr(u.data));let f=!1,_=!1;for(let w of u.nestedResources){let T=We(w)?w:u.resourceAbsolutePath?xh(w,u.resourceAbsolutePath):ti(w),N=i.get(T);if(N!==void 0){if(N!==null){let O=s.eE(N,w);u.data=as.stringReplaceAll(u.data,w,O)}continue}Os(c,O=>O.resourceAbsolutePath===T)!==void 0||(f=!0,_||(csArray.prototype.push.call(c,u),_=!0),csArray.prototype.push.call(c,{resourceRawPath:w,resourceAbsolutePath:T}))}if(!f){let w=await s.sE(u.data);i.set(u.resourceAbsolutePath,{hash:w.hash,data:w.data})}}else{let f;if(!We(u.resourceAbsolutePath))f=await(await fetch(u.resourceAbsolutePath)).blob();else{let w=Qc(u.resourceAbsolutePath);if(!w){i.set(u.resourceAbsolutePath,null);continue}f=w}let _=await s._d(f);i.set(u.resourceAbsolutePath,{hash:_,data:f})}}catch{i.set(u.resourceAbsolutePath,null)}}return i}static eE(t,e){let i=`cs://resources/${t.hash}`;return We(e)||(i+=`?${s.Vc}=${e}`),i}static async sE(t){let e=new Blob([t],{type:"text/css"}),i=await e.arrayBuffer(),n=await crypto.subtle.digest(s.Vr,i);return{data:e,hash:Aa(n)}}}return s.Vr="SHA-256",s.Vc="original-resource-name",s})(),iu=(()=>{class s extends $r{constructor(){super(),this.Ao="cssrm://",this.le=0,this.ps=!1}isListening(t){return!s.isSupported()||!zr.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.ps=!1}enableOnlineAssets(){this.ps=!0}isOnlineAssetsActivated(){return this.ps}iE(t){let e=t.domEvent==="initialDOM"?[t.initialDOM]:t.nodes;for(let i of e)at.traverse(i,(n,o)=>{if(n.nodeType===3&&o){this.oE(n,o.localName);return}if(!si.isElement(n))return;let c=Os(n.attributes,u=>u.name==="style");if(c&&(c.value=this.To(c.value)),this.aE(n)||this.cE(n,o)){let u=Os(n.attributes,S=>S.name==="src");u&&u.value&&(u.value=this.wd(u.value));let d=Os(n.attributes,S=>S.name==="srcset");if(d){d.value=this.bd(d.value);return}}if(this.lE(n)&&this.ps){let u=Os(n.attributes,d=>d.name==="href");if(!u||!u.value)return;this.le++,this.Bi(ti(u.value),this.le,!0),this.hE(n,u,this.le)}})}hE(t,e,i){csArray.prototype.push.call(t.attributes,{name:"data-cs-original-href",namespaceURI:"",value:e.value}),e.value=this.Ao+i}oE(t,e){if(!t||e!=="style")return;let i=this.To(t.data);i!==null&&(t.data=i)}nE(t){if(t.parentLocalName!=="style"||!t.newValue)return;let e=this.To(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.To(t.newValue);return}if(!e&&!i)return;let o=t.localName==="img",c=t.localName==="source"&&t.parentLocalName&&t.parentLocalName==="picture";!o&&!c||(e&&(t.newValue=this.wd(t.newValue)),i&&(t.newValue=this.bd(t.newValue)))}wd(t){return We(t)||this.ps?(this.le++,this.Bi(t,this.le,!1,Q.now()),this.Ao+this.le):t}bd(t){if(!this.ps)return t;let e=t,i=gc(t),n=Q.now();for(let o of i)this.le++,this.Bi(ti(o),this.le,!1,n),e=csString.prototype.replace.call(e,o,this.Ao+this.le);return e}To(t){let e=Mr(t),i=t,n=Q.now();for(let o of e){let c=We(o);if(!(c||this.ps)||this.uE(o))continue;this.le++,i=csString.prototype.replace.call(i,o,this.Ao+this.le);let u=qn(o);c?this.Bi(o,this.le,!1,n):this.ps&&(u?this.Bi(o,this.le,!0,n):this.Bi(ti(o),this.le,!1,n))}return i}Bi(t,e,i,n=Q.now()){let o=i?bl.toCSSStaticResourceEvent:bl.toStaticResourceEvent,c=new mc(async u=>{try{let d=await o(t,e,n,this.ps);u(d||{type:"warning",message:`Failed to process static resource: ${t}`})}catch(d){u({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 Ff()&&zf()&&!!csArray.from}uE(t){return csString.prototype.replace.call(t,/['"]+/g,"").length===0}}return Ds([se("StaticResourceManagerProcessor.processEvent")],s.prototype,"processEvent",null),s})(),je=(()=>{let s;return function(r){r.Visible="visible",r.Hidden="hidden",r.Blur="blur",r.PagehideVisible="pagehideVisible",r.PagehideHidden="pagehideHidden",r.ExitPageByNavigate="exitPageByNavigate"}(s||(s={})),s})(),ru=(()=>{class s{constructor(){this.L=!1,this.Ls=t=>{try{switch(t.type){case"visibilitychange":return document.visibilityState==="hidden"?this.te(je.Hidden):this.te(je.Visible);case"pagehide":return document.visibilityState==="hidden"?this.te(je.PagehideHidden):this.te(je.PagehideVisible);case"blur":return this.te(je.Blur);case"navigate":return this.dE(t)?this.te(je.ExitPageByNavigate):void 0;default:return}}catch{}}}start(){this.L||(this.L=!0,this.Uc(),this.pE(),this.fE(),el()&&this.gE())}stop(){this.L&&(this.L=!1,this.jc(),this.mE(),this.yE(),el()&&this.EE())}onEvent(t){this.te=t}gE(){window.navigation.addEventListener("navigate",this.Ls)}EE(){window.navigation.removeEventListener("navigate",this.Ls)}Uc(){document.addEventListener("visibilitychange",this.Ls)}jc(){document.removeEventListener("visibilitychange",this.Ls)}pE(){window.addEventListener("pagehide",this.Ls)}mE(){window.removeEventListener("pagehide",this.Ls)}fE(){window.addEventListener("blur",this.Ls)}yE(){window.removeEventListener("blur",this.Ls)}dE(t){return t instanceof NavigateEvent?!t.downloadRequest&&!t.formData:!1}}return s})(),le=(()=>{let s;return function(r){r[r.Active=0]="Active",r[r.Paused=1]="Paused",r[r.Stopped=2]="Stopped"}(s||(s={})),s})(),Dm=(()=>{class s{constructor(t,e,i=[]){this.Fi=t,this.Hc=e,this.SE=i,this.Ro=null,this.Tt=le.Active,this.Z=[]}reset(){this.Ro=null,this.Z=[],this.Tt=le.Active}disconnect(){this.Tt=le.Stopped}vE(){this.Hc(le.Paused),this.Tt=le.Paused,csSetTimeout(()=>{this.Tt===le.Paused&&this.Bc()},s.STOP_TIMEOUT)}_E(){this.Hc(le.Active),this.Tt=le.Active,ct(this.Z,this.Fi),this.Z=[]}Bc(){this.Z=[],this.Hc(le.Stopped),this.Tt=le.Stopped}pushEvent(t,e){if(e.isUserEvent&&(this.Ro=t.date,this.Tt!==le.Active)){this._E(),this.Fi(t);return}if(this.wE(t)){this.Fi(t);return}switch(this.Tt){case le.Active:if(this.bE(t,e)){this.vE(),csArray.prototype.push.call(this.Z,t);return}this.Fi(t);break;case le.Paused:csArray.prototype.push.call(this.Z,t);break;case le.Stopped:break}}bE(t,e){return!e.isUserEvent&&this.Ro!==null&&t.date-this.Ro>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})(),Lm=2e3,xm=(()=>{class s extends ae{constructor(t,e,i,n,o,c,u,d,S,f,_,w,T,N,x=[],O,C,$,U,L){super(),this.f=t,this.z=e,this.AE=i,this.Ve=n,this.Q=o,this.A=c,this.Ue=u,this.yt=d,this.Pe=S,this.it=f,this.B=_,this.Ot=w,this._t=T,this.Oe=N,this.Ne=x,this.Ad=O,this.Me=C,this.Ur=$,this.fs=U,this.gs=L,this.xs=0,this.Vs=new fc,this.zi={allowFromQuotaService:!0,allowFromSerialization:!0},this.Td=so(()=>{this.z.eventsCount()>0&&this.Rd()},Lm),this.ms=Z=>this.processBrowserEvent(Z),this.jr=Z=>this.Nt(Z),this.Cd=0,this.Co=0,this.je=new ru,this.Fc=!1,this.Id=50*1024,this.gi=!1,this.Hr=!1,this.mi=[],this.Io=new Dm(Z=>this.X(Z),Z=>{switch(Z){case le.Active:this.TE();break;case le.Stopped:this.RE();break}},[J.RESOURCE_HASHES,J.TEXT_VISIBILITY,J.API_ERROR,J.JAVASCRIPT_ERROR]),this.Pd=Z=>{this.Ot.removeBatchInProgress(`${Z.params.sn}.${Z.params.pn}.${Z.params.ri}`)}}init(){this.zc(),this.B.onLoad(this.Pd),this.B.onError(this.Pd)}TE(){csArray.prototype.forEach.call(this.Ad,t=>t.start())}RE(){csArray.prototype.forEach.call(this.Ad,t=>t.stopForInactivity())}zc(){var t,e,i;this.Oe.onEvent(this.ms,this.jr),(t=this.it)===null||t===void 0||t.onInputNodeToEncrypt(this.jr),(e=this.it)===null||e===void 0||e.onApiErrorToEncrypt(n=>{this.Od(n)}),(i=this.it)===null||i===void 0||i.onUserIdentifierToEncrypt(this.ms),this.je.onEvent(n=>{if(csSetTimeout(()=>this.yi("page-state",n)),n!==je.Visible){if(n===je.Blur)return this.Nd();if(!this.Fc)return this.Fc=!0,csSetTimeout(()=>{this.Fc=!1}),n===je.Hidden?this.Nd():this.CE()}})}isRecording(){return this.A.hasValidSession()&&this.isStarted}Nd(){if(!this.canSendEvents())return;this.Oe.flush(),this.Ot.saveBatchesInProgress(),ct(this.Ne,o=>{var c,u;return ct((u=(c=o.getPendingEvents)===null||c===void 0?void 0:c.call(o))!==null&&u!==void 0?u:[],d=>this.z.addEvent(d))});let t=this.z.getEvents();if(t.length===0)return;this.yi("pending-events",this.Oe.pendingEvents);let e=this.B.getQueryParams();e.rst=this.getRecordingStartTimestamp(),e.let=this.getRecordingLastEventTimestamp();let i=this.Ve.getCurrentIndex();e.ri=i.toString(),this._t.removeQueryParams(),this._t.setQueryParams(e),this.Co=t[t.length-1].date;let n=this.z.stringifyEvents();if(n.length>this.Id){let o=this.Md();if(o.length>0){let c=Qi(o);this._t.send(c)||this.Ot.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:c}),this.Ve.increment()}if(this.z.eventsCount()>0){e.ri=this.Ve.getCurrentIndex().toString();let c=this.z.stringifyEvents();this.Ot.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:c}),this.Ve.increment()}}else this._t.send(n)||this.Ot.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:n}),this.Ve.increment();this._t.removeQueryParams(),this.z.clearEvents()}CE(){if(!this.canSendEvents())return;this.Oe.flush();let t=this.B.getQueryParams();this.Ot.saveBatchesInProgress(),t.rst=this.getRecordingStartTimestamp(),delete t.ri,t.hlm="true",this._t.removeQueryParams(),ct(this.Ne,n=>{var o,c;return ct((c=(o=n.getPendingEvents)===null||o===void 0?void 0:o.call(n))!==null&&c!==void 0?c:[],u=>this.z.addEvent(u))});let e=this.z.getEvents();if(e.length===0){delete t.let,delete t.rst,this._t.setQueryParams(t),this._t.send(),this._t.removeQueryParams();return}this.yi("pending-events",this.Oe.pendingEvents),this.Co=e[e.length-1].date,t.let=this.getRecordingLastEventTimestamp(),this._t.setQueryParams(t);let i=this.z.stringifyEvents();if(i.length>this.Id){let n=this.Md();if(n.length>0){let o=Qi(n);this._t.send(o)||this.Ot.save({key:`${t.sn}.${t.pn}.last`,metadata:{...t,datatype:"json"},events:o})}else delete t.let,delete t.rst,delete t.ri,this._t.removeQueryParams(),this._t.setQueryParams(t),this._t.send(),this._t.removeQueryParams();if(this.z.eventsCount()>0){t.rst=this.getRecordingStartTimestamp(),t.let=this.getRecordingLastEventTimestamp();let o=this.Ve.getCurrentIndex();t.ri=o.toString();let c=this.z.stringifyEvents();this.Ot.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:c}),this.Ve.increment()}}else this._t.send(i)||(this.Ot.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:i}),this.Ve.increment());this._t.removeQueryParams(),this.z.clearEvents()}blockSendingEventsFromQuotaService(){this.zi.allowFromQuotaService=!1}allowSendingEventsFromQuotaService(){this.zi.allowFromQuotaService=!0}blockSendingEventsFromSerialization(){this.zi.allowFromSerialization=!1}allowSendingEventsFromSerialization(){this.zi.allowFromSerialization=!0}canSendEvents(){return this.zi.allowFromQuotaService&&this.zi.allowFromSerialization}onIframeJavascriptError(t){var e;if(this.Ue&&this.fs){(e=this.Ue)===null||e===void 0||e.anonymize(t);let i=this.fs.translate({message:t.message,colno:t.colno,lineno:t.lineno,filename:t.filename,timestamp:Q.now(),type:"JSError"});i&&this.ms(i)}}onIframeCustomError(t){if(this.gs){let e=this.gs.translate({...t,timestamp:Q.now(),type:"CustomError"});e&&this.ms(e)}}onIframeDetailedApiError(t){this.kd(t)}onIframeRecordingUserEvent(t){for(let e of t)this.Nt(e)}onIframeRecordingBrowserEvent(t){if(this.isStarted)for(let e of t)this.processBrowserEvent(e)}processBrowserEvent(t){this.Q.isCurrentPageviewValid()&&this.Io.pushEvent(t,{isUserEvent:!1})}Nt(t){this.Q.refreshSession(),this.Q.isSessionValid()&&this.Io.pushEvent(t,{isUserEvent:!0})}X(t){oe.general.nbEvents.increase(),this.z.addEvent(t),this.z.isThresholdReached()?this.pushEvents():this.z.isFull()&&this.Td(),this.Dd(t)}Dd(t){this.f.emitDebugEvents&&this.Vs.emit("recordingEvent",{...t,typeName:J[t.type]})}onStart(){var t;this.yi("tag-version","15.115.0"),this.yi("page-state",document.visibilityState),this.Io.reset(),this.je.start(),this.initStates(),this.Oe.start(),this.yt&&this.Pe&&this.yt.subscribe(s.Lt,e=>this.kd(e),{detailedEvent:!0}),this.f.emitDebugEvents&&this.Vs.emit("replayRecordingStarted"),csArray.prototype.forEach.call(this.mi,e=>this.Ld(e)),this.mi=[],this.gi&&((t=this.Me)===null||t===void 0||t.enableOnlineAssets(),this.gi=!1)}onStop(){var t;this.je.stop(),this.yt&&this.yt.unsubscribe(s.Lt),this.Oe.stop(),this.Io.disconnect(),(t=this.Me)===null||t===void 0||t.disableOnlineAssets()}clearStates(){this.Oe.flush(),this.Td.cancel(),this.pushEvents(),this.B.removeQueryParams()}initStates(){this.Cd=Q.now(),this.Ve.reset(),this.xs=0,this.B.setQueryParams(this.AE.getRequestParameters())}pushEvents(){ct(this.Ne,t=>{var e;return(e=t.flushEvents)===null||e===void 0?void 0:e.call(t)}),this.z.eventsCount()>0&&(this.isStarted?this.Rd():this.z.clearEvents())}Rd(){if(!this.canSendEvents())return;let t=this.z.getEvents();this.Co=t[t.length-1].date;let e=this.Ve.getCurrentIndex();this.B.setQueryParams({ri:e.toString(),rst:this.getRecordingStartTimestamp(),let:this.getRecordingLastEventTimestamp()});let i=this.B.getQueryParams();this.Ot.addBatchInProgress(`${i.sn}.${i.pn}.${e}`,this.B.getQueryParams(),t),this.B.send(t),this.Ve.increment(),this.z.clearEvents(),this.xd&&this.xd()}addInitialDom(t){this.z.addEventByTimestamp(t),this.Dd(t)}kd(t){if(this.Ur&&(t.plainCustomRequestHeaders||t.plainCustomResponseHeaders||t.requestBodyAttributes||t.responseBodyAttributes||t.customRequestHeaders||t.customResponseHeaders||t.queryParameters||t.requestBody||t.responseBody)){if(this.Ur.truncate(t),this.it){this.it.registerApiErrorToEncrypt(t);return}t.customRequestHeaders="",t.customResponseHeaders="",t.requestBodyAttributes="",t.responseBodyAttributes="",t.queryParameters="",t.requestBody="",t.responseBody=""}this.Od(t)}Od(t){if(this.xs{var e;return(e=t.releaseResources)===null||e===void 0?void 0:e.call(t)})}yi(t,e){if(!this.f.emitRecordInfoEvents)return;let i={date:Q.now(),type:J.RECORDING_INFO_EVENT,args:e==null?[t]:[t,e]};this.z.addEvent(i)}Md(){return this.z.extractEvents(J.API_ERROR,J.JAVASCRIPT_ERROR,J.CUSTOM_ERROR,J.TEXT_VISIBILITY,J.POINTER_DOWN)}}return s.Lt="RecordingService",s.ME=255,s.IE=20,s.NE="etrp",s.OE="etrs",s.Vd="1",st([se("addInitialDom")],s.prototype,"addInitialDom",null),s})(),Vm=(()=>{class s extends ae{constructor(t,e,i){super(),this.Jt=t,this._t=e,this.B=i,this.$c=!1,this.Br={},this.kE=n=>{if(n.length!==0)for(let o of n){let{metadata:c,events:u}=o;this.DE(c.rt)&&this.B.send(u,c)}},window.addEventListener("focus",()=>{this.recover()})}onStart(){this.Br={}}onStop(){}recover(){this.Jt.recover(this.kE)}addBatchInProgress(t,e,i){this.Br[t]={metadata:{...e},events:i}}removeBatchInProgress(t){delete this.Br[t]}blockSendingLastMessage(){this.$c=!1}allowSendingLastMessage(){this.$c=!0}sendLastMessageBeacon(){if(this.$c){let{ri:t,rst:e,let:i,...n}=this.B.getQueryParams();n.hlm="true",this._t.setQueryParams(n),this._t.send()}}DE(t){return!!t&&csString.prototype.indexOf.call(t,tt.RECORDING_TEMPORARILY)===-1}saveBatchesInProgress(){csArray.prototype.forEach.call(Object.keys(this.Br),t=>{let{metadata:e,events:i}=this.Br[t];this.Jt.save({key:`${e.sn}.${e.pn}.${e.ri}`,metadata:{...e,datatype:"json"},events:csJSON.stringify(i)})})}save(t){this.Jt.save(t)}}return st([G("RecordingRecovery")],s.prototype,"recover",null),s})(),jr=(()=>{class s{constructor(...t){this.jd=t}addProvider(t){csArray.prototype.push.call(this.jd,t)}getRequestParameters(){return csArray.prototype.reduce.call(this.jd,(t,e)=>({...e.getRequestParameters(),...t}),{})}}return s})(),nu=(()=>{class s{constructor(t,e){this.Pt=t,this.N=e,this.Us=[{boundElement:window,type:"hashchange",listener:()=>this.hashChangeListener()},{boundElement:document,type:"visibilitychange",listener:()=>this.visibilityChangeListener()}]}onEvent(t){this.D=t}start(){this.pi(),this.triggerInitialEvents()}stop(){this.fi()}pi(){csArray.prototype.forEach.call(this.Us,t=>Lt(t))}fi(){csArray.prototype.forEach.call(this.Us,t=>xt(t))}triggerInitialEvents(){this.hashChangeListener()}hashChangeListener(){let t={type:J.HASH_CHANGE,args:[this.N.anonymizePII(this.Pt.href)],date:Q.now()};this.D(t)}visibilityChangeListener(){let t={type:J.VISIBILITY_CHANGE,args:[document.visibilityState],date:Q.now()};this.D(t)}}return st([G("hashChange")],s.prototype,"hashChangeListener",null),st([G("visibilityChange")],s.prototype,"visibilityChangeListener",null),s})(),ou=(()=>{class s{constructor(){}onScannedAsset(t){this.Po=t}scanCssString(t){this.Gc(Mr(t))}scanElement(t,e){W.getMaskedElementDetails(t).state!==W.MaskedElementState.NotMasked||e&&W.isMaskedAttribute(t,e)||(Qn(t)?this.LE(t):Ja(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 o={assetId:((i=t.sheet)===null||i===void 0?void 0:i.href)||t.href,assetBasePath:window.location.href,assetRawPath:Kh(t)};this.Po({type:"stylesheet",asset:o})}}LE(t){var e;let i=new Set;if(t.textContent)for(let o of Mr(t.textContent))i.add(o);let n;try{n=(e=t.sheet)===null||e===void 0?void 0:e.cssRules}catch(o){o.name==="SecurityError"||o.name==="InvalidAccessError"||Y.error(o.message)}if(n)for(let o=0;othis.qc(e)),e=>({rawUrl:e,absoluteUrl:ti(e)})),e=>{let i={assetId:e.absoluteUrl,assetBasePath:window.location.href,assetRawPath:e.rawUrl};this.Po({type:"asset",asset:i})})}HE(t){return/^https:\/\/\w+:\w+@/.test(t)}}return s})(),Um=(()=>{class s{constructor(t=Number.POSITIVE_INFINITY){this.js=[],this.Z=[],this.FE=t}next(t){this.Z.length===this.FE&&csArray.prototype.shift.call(this.Z),csArray.prototype.push.call(this.Z,t),this.Z.length===1&&csSetTimeout(()=>this.clear());for(let e of this.js)e(t)}subscribe(t){if(Os(this.js,i=>t===i))return()=>{this.js=csArray.prototype.filter.call(this.js,i=>i!==t)};csArray.prototype.push.call(this.js,t);for(let i of this.Z)t(i);return()=>{this.js=csArray.prototype.filter.call(this.js,i=>i!==t)}}clear(){this.Z=[]}hasObservers(){return this.js.length>0}}return s})(),au=(()=>{var s;class r{constructor(e){this.w=e}observe(){this.zE=s.Fr.subscribe(e=>this.w(e)),s.Oo||(s.Oo=!0,s.zr.observe(),_e(document,NodeFilter.SHOW_ELEMENT).visitAll(i=>{s.ys.add(i),s.Fr.next(i)}))}disconnect(){s.Oo&&(this.zE(),s.Fr.hasObservers()||(s.Oo=!1,s.zr.disconnect(),s.Fr.clear(),s.ys.clear()))}}return s=r,r.ys=new ro,r.Fr=new Um,r.$E=Ai(t=>{we(()=>{for(let e of t)e.type==="childList"&&ct(e.addedNodes,i=>{_e(i,NodeFilter.SHOW_ELEMENT).visitAll(o=>{s.ys.has(o)||(s.ys.add(o),s.Fr.next(o))})})})},"ElementObserver.findAllElements"),r.Oo=!1,r.zr=new Je(s.$E),St([G()],r.prototype,"observe",null),St([G()],r.prototype,"disconnect",null),r})(),jm=1,Hm=0,cu=(()=>{class s{constructor(t,e=jm,i=Hm){this.GE=t,this.qE=e,this.WE=i,this.He=new nr,this.xe=!1,this.Wc=0,this.Hd=()=>{for(this.Wc=0;this.He.length;){if(this.Wc>=this.qE){csSetTimeout(this.Hd,this.WE);return}let n=Q.elapsed(),o=this.He.pop();if(!o)break;this.runTask(o);let c=Q.elapsed()-n;this.Wc+=c}this.xe=!1}}schedule(t,e=!1){if(!this.GE||e){t();return}oe.general.pendingTasks.increase(),this.He.push(t),this.YE()}YE(){this.xe||(this.xe=!0,csSetTimeout(()=>{this.Hd()}))}runTask(t){oe.general.pendingTasks.decrease(),t()}runPendingTasks(){this.He.forEach(t=>{this.runTask(t)}),this.He.clear()}clearQueue(){oe.general.pendingTasks.clear(),oe.mutations.pendingMutations.clear(),this.He.clear()}isEmpty(){return this.He.length===0}}return st([G("TaskScheduler"),se("runTask")],s.prototype,"runTask",null),st([se("runPendingTasks")],s.prototype,"runPendingTasks",null),s})(),lu=(()=>{class s{constructor(){this.G=!1,this.Bd=new yc(t=>t.type==="cssRuleInserted"&&this.XE(t)),this.KE=no(t=>{this.G&&t.length>0&&this.O.schedule(()=>ct(t,e=>this.$r.scanElement(e)))}),this.JE=({type:t,asset:e})=>{var i,n,o;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:Q.now(),type:J.STATIC_RESOURCE_URL,args:[e.assetId]};(o=this.D)===null||o===void 0||o.call(this,c)},this.O=new cu(!0,30,0),this.Gr=new au(t=>this.tS(t)),this.M=new Je(t=>this.Mo(t)),this.$r=new ou,this.$r.onScannedAsset(this.JE)}onEvent(t){this.D=t}onAsset(t){this.ZE=t}onStyleSheetFound(t){this.QE=t}start(){this.G||(this.G=!0,this.Bd.observe(),this.Gr.observe(),this.M.observe())}stop(){this.G&&(this.Bd.disconnect(),this.Gr.disconnect(),this.M.disconnect(),this.G=!1)}XE(t){!t.rule||!this.G||this.$r.scanCssString(t.rule)}tS(t){this.G&&W.getMaskedElementDetails(t).state===W.MaskedElementState.NotMasked&&this.KE.push(t)}Mo(t){csSetTimeout(()=>{for(let e of t)switch(e.type){case"attributes":this.$r.scanElement(e.target,e.attributeName);break;case"characterData":this.eS(e.target);break;case"childList":}})}eS(t){Un(t)&&csNodeparentNode.apply(t)&&Qn(csNodeparentNode.apply(t))&&this.$r.scanCssString(t.data)}}return s})(),hu=(()=>{class s{constructor(t){this.Fd=[],this.zd=[],this.Xt={},this.Kt=t}setQueryParams(t){csArray.prototype.forEach.call(Object.keys(t),e=>{this.Xt[e]=t[e]})}removeQueryParams(t){t?csArray.prototype.forEach.call(t,e=>{delete this.Xt[e]}):this.Xt={}}onBeaconSuccess(t){csArray.prototype.push.call(this.Fd,t)}onBeaconFailure(t){csArray.prototype.push.call(this.zd,t)}send(t){let e=nc.toQuery({...this.Xt,ct:eo.UNCOMPRESSED}),i=this.sS(e,t);return i?csArray.prototype.forEach.call(this.Fd,n=>n()):csArray.prototype.forEach.call(this.zd,n=>n(this.Xt)),i}sS(t,e){try{if(typeof csNavigatorsendBeacon!="function")return!1;let i=csNavigatorsendBeacon(`${this.Kt}?${t}`,e||"");if(i)return i}catch{}return typeof navigator.sendBeacon!="function"?!1:navigator.sendBeacon(`${this.Kt}?${t}`,e||"")}}return s})(),Bm=(()=>{class s{constructor(t){this.ko={},this.we=new pc(t)}save({key:t,metadata:e,events:i}){this.we.isThresholdReached()||(this.we.addString(t),typeof i=="string"?this.we.addString(i):this.we.addArrayBuffer(i),!this.we.isThresholdReached()&&(this.ko[t]={metadata:e,events:i}))}recover(t){let e=[];csArray.prototype.forEach.call(this.iS(),i=>{let n=this.ko[i];n!==void 0&&(delete n.metadata.datatype,csArray.prototype.push.call(e,n),this.rS(i))}),e.length!==0&&(t(e),this.we.reset())}iS(){return Object.keys(this.ko)}rS(t){delete this.ko[t]}}return s})(),Ws=(()=>{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})(),Fm=(()=>{class s{constructor(t,e,i){this.$i=t,this.nS=i,this.Ei=Ws.NOT_STARTED,this.Do=[],this.Yc=0,this.oS=self.origin,this.be=typeof window=="object"?"":"worker-",this.we=new pc(e),this.Xc()}async Xc(){await this.$d(),this.Ei===Ws.READY?this.aS():this.nS(this.Do)}aS(){csArray.prototype.forEach.call(this.Do,t=>{this.save(t)}),this.Do=[]}async save(t){try{if(this.Ei===Ws.OPEN_IN_PROGRESS){csArray.prototype.push.call(this.Do,t);return}if(this.Ei!==Ws.READY||this.we.isThresholdReached())return;let{key:e,metadata:i,events:n}=t;if(this.we.addString(e),typeof n=="string"?this.we.addString(n):this.we.addArrayBuffer(n),this.we.isThresholdReached())return;await this.ee.put(`${this.oS}/${e}`,new Response(n,{headers:i}))}catch{}}async recover(t){!this.ee&&(await this.$d(),this.Ei!==Ws.READY)||this.cS(t)}async $d(){try{this.Ei=Ws.OPEN_IN_PROGRESS,this.ee=await self.caches.open(`${this.be}${this.$i}`),this.Ei=Ws.READY}catch{this.Ei=Ws.OPEN_FAILED}}async cS(t){try{if(this.Yc++,this.Yc>1)return;let e=await this.ee.keys();if(e.length===0)return;let i=await this.ee.matchAll(),n=csArray.prototype.map.call(i,c=>{let u={};c.headers.forEach((S,f)=>{u[f]=S}),delete u["content-type"];let d=u.datatype;return delete u.datatype,d==="json"||d==="base64"?c.text().then(S=>({metadata:u,events:S})):c.arrayBuffer().then(S=>({metadata:u,events:S}))}),o=await Promise.all(n);await Promise.all(csArray.prototype.map.call(e,c=>this.ee.delete(c))),t(o),this.we.reset()}catch{}finally{this.Yc--}}}return s})(),zm=(()=>{class s{constructor(t){try{this.lS(t)}catch{this.Kc()}}lS(t){self.caches?this.hS(t):this.Kc()}save(t){this.Lo.save(t)}recover(t){this.Lo.recover(t)}hS(t){this.Lo=new Fm(t,s.Gd,e=>{this.Kc(e)})}Kc(t){this.Lo=new Bm(s.Gd),t&&csArray.prototype.forEach.call(t,e=>{this.Lo.save(e)})}}return s.Gd=1024*1024*16,s})(),ea=(()=>{let s;return function(r){r.REQUEST_START="requestStart",r.DOM_INTERACTIVE="domInteractive",r.TIME_ORIGIN="timeOrigin"}(s||(s={})),s})();var uu=(()=>{class s extends $r{isListening(t){return zr.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 si){let c=W.getMaskedAttributeDetails(n);n.attributes=this.Vo(n,c)}if(W.getMaskedElementDetails(n).state===W.MaskedElementState.Child){if(t.domEvent==="initialDOM")return null;t.nodes=csArray.prototype.filter.call(t.nodes,c=>c!==n);continue}at.traverse(n,c=>{if(c instanceof si){let u=W.getMaskedAttributeDetails(c);c.attributes=this.Vo(c,u);let d=W.getMaskedElementDetails(c);d.state===W.MaskedElementState.Parent&&(this.Qc(c,d),e++)}})}return e>0&&bt.counters.sensitiveElements.count("masked-elements",e),t}Vo(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)}Qc(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:""}),si.getAttribute(t,"data-cs-mask")||csArray.prototype.push.call(t.attributes,{name:"data-cs-mask",value:"",namespaceURI:""})}}return Ds([se("MaskedElementProcessor.processEvent")],s.prototype,"processEvent",null),s})(),cs=(()=>{let s;return function(r){r.ANONYMIZED_TEXT_STATUS_PROP="anonymizationStatus",r.WHITELISTED_STATUS="whitelisted";function t(n){return at.getProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP)===r.WHITELISTED_STATUS}r.isWhitelistedElement=t;function e(n){at.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,r.WHITELISTED_STATUS)}r.whitelistElement=e;function i(n){at.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,void 0)}r.removeWhitelistElement=i}(s||(s={})),s})(),$m=/[\u4E00-\u9FFF]|[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]/g,Gm="\uFF41",qm=/[^a\s]/g,Wm="a";function sa(s){let r=csString.prototype.replace.call(s,$m,Gm);return csString.prototype.replace.call(r,qm,Wm)}var Ym=["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"],du=s=>{let r=new Set(Ym);return csArray.prototype.forEach.call(s,t=>{r.add(t)}),r},Xm=["svg","slot"],Km=(s,r,t)=>t==="radio"&&s==="input"&&r==="name"||csArray.prototype.indexOf.call(Xm,s)>-1,pu={href:new Set(["a"]),src:new Set(["iframe"])},Jm=s=>pu.hasOwnProperty(s),Qm=(s,r,t)=>{var e;return((e=pu[r])===null||e===void 0?void 0:e.has(s))&&!We(t)},Zm=(s,r,t)=>(t==="submit"||t==="button")&&s==="input"&&r==="value",Sc=(()=>{class s{constructor(t,e,i,n=null){this.Ke=t,this.ES=e,this.N=i,this.Uo=n,this.SS=du(this.ES)}sanitize(t,e){return at.traverse(t,(i,n)=>{if(i.anonymized=this.Ke,i.nodeType===3){let{anonymizedValue:o,withAnonymization:c}=this.getAnonymizedValue(i.data,n?n==null?void 0:n.localName:e==null?void 0:e.targetLocalName,n?at.getProperties(n):e==null?void 0:e.targetProps);i.anonymized=c,i.data=o;return}if(si.isElement(i))return this.vS(i);if(i.nodeType===4){i.data=this.Ke?sa(i.data):this.N.checkAndAnonymizePII(i.data,this.Uo);return}}),t}setAnonymization(t){this.Ke=t}getAnonymizedValue(t,e,i){if(e==="style")return{anonymizedValue:t,withAnonymization:!1};let n=(i==null?void 0:i[cs.ANONYMIZED_TEXT_STATUS_PROP])===cs.WHITELISTED_STATUS;return this.Ke&&!n?{anonymizedValue:sa(t),withAnonymization:!0}:{anonymizedValue:this.N.checkAndAnonymizePII(t,this.Uo),withAnonymization:!1}}vS(t){if(at.getProperty(t,"SVG"))return;let e=Os(t.attributes,n=>n.name==="type"),i=e==null?void 0:e.value;t.attributes=csArray.prototype.map.call(t.attributes,n=>(n.anonymized=this.Ke,n.value=this.getAnonymizedAttributeValue(t.localName,n.name,n.value,i),n))}getAnonymizedAttributeValue(t,e,i,n){return this._S(t,e,n)?i:Jm(e)?Qm(t,e,i)?this.N.anonymizePII(i):i:this.Ke&&Zm(t,e,n)?sa(i):this.Ke?"":this.N.checkAndAnonymizePII(i,null)}_S(t,e,i){return Km(t,e,i)||this.SS.has(e)}}return s})(),Al=(()=>{class s{static create(t,e){if(!s.isSupported())throw new Error("IntersectionObserver is not supported");if(e&&e.delay&&e.delay<100)throw new Error("Visibility delay should be > 100ms");return e!=null&&e.trackVisibility&&(t=s.wS(t)),new IntersectionObserver(t,e)}static isSupported(){return!!window.IntersectionObserver&&!!window.IntersectionObserverEntry}static wS(t){return(e,i)=>t(Ye(e,ty),i)}}return s})();function ty(s){return s.isVisible||!Ct.isVisibleInViewportInForeground(s.target)?s:{boundingClientRect:s.boundingClientRect,intersectionRatio:s.intersectionRatio,intersectionRect:s.intersectionRect,isIntersecting:s.isIntersecting,rootBounds:s.rootBounds,target:s.target,time:s.time,isVisible:!0}}var Oa=()=>(s,r,t)=>{t.value=sy(t.value)},ey=csQueueMicrotask||csSetTimeout;function sy(s){let r=csSymbol("oncePerTickSymbol"),t=null,e={},i=function(){var n;let o=(n=this)!==null&&n!==void 0?n:e;if(t=arguments,o[r])return;o[r]=!0,ey(()=>{o[r]=!1,s.apply(o,t)})};return i.oncePerTickSymbol=r,i}Oa.isScheduled=(s,r)=>{let t=r.oncePerTickSymbol;return s[t]};var iy=(()=>{class s{constructor(t){this.w=t,this.Hs=new Map,this.qd=e=>{let i=e.target;if(this.Hs.has(i))return!0;let n=!1;return this.Hs.forEach((o,c)=>{n||!this.Hs.get(c).subtree||(n=c.contains(i))}),n},oe.general.nbOfMutationObservers.increase(),this.M=new csMutationObserver(e=>{Oa.isScheduled(this,this.garbageCollect)&&(e=zn(e,this.qd)),e.length&&we(()=>t(e,this))})}disconnect(){oe.general.nbOfMutationObservers.decrease(),this.M.disconnect(),this.Hs=new Map}takeRecords(){return this.M.takeRecords()}observe(t,e){return oe.mutations.elementMutationObserved.increase(),this.Hs.set(t,e),this.M.observe(t,e)}unobserve(t){this.Hs.has(t)&&(oe.mutations.elementMutationObserved.decrease(),this.Hs.delete(t),this.garbageCollect())}garbageCollect(){oe.mutations.unobserveGarbageCollection.measure(()=>{let t=zn(this.takeRecords(),this.qd);t.length&&this.w(t,this),this.M.disconnect(),this.Hs.forEach((e,i)=>this.M.observe(i,e))})}}return St([Oa()],s.prototype,"garbageCollect",null),s})(),ry=(()=>{class s{constructor(t){this.w=t,this.jo=new Set}onMutations(t){if(Ch(t,e=>{var i;return!!(!((i=e.removedNodes)===null||i===void 0)&&i.length)}))for(let e of this.jo.values())Ct.isConnected(e)||(this.jo.delete(e),this.w(e))}observe(t){this.W||(this.W=new Je(e=>csSetTimeout(()=>this.onMutations(e))),this.W.observe()),this.jo.add(t)}disconnect(){var t;(t=this.W)===null||t===void 0||t.disconnect(),this.jo.clear(),this.W=void 0}}return St([G("NodeDisconnectedObserver.onMutations")],s.prototype,"onMutations",null),s})(),ny=300,Wn=(()=>{class s{constructor(t){this.Ho=new Set,this.bS=new ry(e=>this.Wd(e)),this.G=!1,this.wt=t?{...Tl,...t}:Tl}stop(){var t,e;this.G=!1,(t=this.Xr)===null||t===void 0||t.disconnect(),(e=this.M)===null||e===void 0||e.disconnect()}start(t){if(this.G)throw new Error("VisibilityObserver is already started");this.w=ks("VisibilityObserver:callback",(i,n)=>t(i,n));let e={root:null,rootMargin:"0px",threshold:.5,trackVisibility:!0,delay:ny};this.Xr=Al.create(i=>this.handleIntersection(i),e),this.M=new iy(i=>csSetTimeout(()=>{ct(i,n=>this.Wd(n.target))})),this.Xc(),this.G=!0}observe(t){if(!this.G)throw new Error("Observer is stopped.");this.wt.reobserve===!1&&t[this.Zc]||(oe.visibilityObserver.nbElements.increase(),t[this.Zc]=!0,this.watchIntersection(t))}Xc(){this.Bo=csSymbol("isVisible"),this.Zc=csSymbol("ObservedElement"),this.tl=csSymbol("LinkedElement"),this.Yd=csSymbol("Tracked")}Wd(t){this.Ho.add(t);for(let e of this.AS(t))this.Ho.add(e);this.recheckCssVisibilityAll()}recheckCssVisibilityAll(){ct(this.Ho.keys(),t=>{!t.isConnected||Ct.areAncestorsHiddenByCSS(t)||t[this.Zc]&&this.watchIntersection(t)}),this.Ho.clear()}watchIntersection(t){this.M.unobserve(t),this.Xr.unobserve(t);let e=Ct.getTopAncestorHiddenByCSS(t);e?(e!==t&&(this.Xd(e,t),this.watchMutation(e)),this.watchMutation(t)):this.Xr.observe(t)}watchMutation(t,e=!0){e&&delete t[this.Bo],this.Xr.unobserve(t);let i={attributeFilter:["style","class","hidden"]};this.M.observe(t,i)}handleIntersection(t){for(let e of t){let i=e.target;if(!e.isVisible){Ct.isVisibleInDocument(i)||this.TS(i);continue}let n=this.wt.allowSameMatch||!e.target[this.Bo];e.target[this.Bo]=!0,n&&!this.wt.delay&&this.onVisibilityChanged(e.target,Lr.VisibleInViewPort)}this.wt.delay&&csSetTimeout(()=>{for(let e of t){let i=e.isIntersecting&&e.isVisible;e.target[this.Bo]&&i&&this.onVisibilityChanged(e.target,Lr.VisibleInViewPort)}},this.wt.delay)}TS(t){oe.visibilityObserver.hiddenElements.increase();let e=Ct.getTopElement(t);this.watchMutation(t),e&&(this.bS.observe(e),this.Xd(e,t),this.watchMutation(e,!1))}Xd(t,e){var i;(t[this.tl]=(i=t[this.tl])!==null&&i!==void 0?i:new Set).add(e)}AS(t){var e,i;let n=[],o=(i=(e=t[this.tl])===null||e===void 0?void 0:e.values())!==null&&i!==void 0?i:[];return ct(o,c=>csArray.prototype.push.call(n,c)),n}onVisibilityChanged(t,e){if(e===Lr.VisibleInViewPort&&this.wt.trackOnce){if(this.Xr.unobserve(t),this.M.unobserve(t),t[this.Yd])return;t[this.Yd]=!0}this.w(t,e)}static isSupported(){return Al.isSupported()}}return St([G()],s.prototype,"observe",null),St([cr({wait:50}),G(),se("recheckCssVisibilityAll")],s.prototype,"recheckCssVisibilityAll",null),St([G()],s.prototype,"watchIntersection",null),St([G()],s.prototype,"watchMutation",null),St([G(),se("VisibilityObserver.handleIntersection")],s.prototype,"handleIntersection",null),St([G()],s.prototype,"onVisibilityChanged",null),s})(),Lr=(()=>{let s;return function(r){r.VisibleInViewPort="VisibleInViewPort",r.HiddenByAnother="HiddenByAnother",r.Hidden="Hidden"}(s||(s={})),s})(),Tl={delay:1e3,trackOnce:!0,reobserve:!1};var fu=(()=>{let s;return function(r){r.ENCRYPTED_NODE_PROP="toEncrypt";function t(n){return at.getProperty(n,r.ENCRYPTED_NODE_PROP)===!0}r.shouldEncrypt=t;function e(n){at.setProperty(n,r.ENCRYPTED_NODE_PROP,!0)}r.markEncryptedNode=e;function i(n){at.setProperty(n,r.ENCRYPTED_NODE_PROP,void 0)}r.unmarkEncryptedNode=i}(s||(s={})),s})(),Ps=(()=>{let s;return function(r){r.EDITABLE_NODE_PROP="editableNode";function t(n){return at.getProperty(n,r.EDITABLE_NODE_PROP)===!0}r.isEditableNode=t;function e(n){at.setProperty(n,r.EDITABLE_NODE_PROP,!0)}r.markEditableNode=e;function i(n){at.setProperty(n,r.EDITABLE_NODE_PROP,void 0)}r.unmarkEditableNode=i}(s||(s={})),s})();var Rl=(()=>{let s;return function(r){function t(e){return e.type==="TextVisibility"}r.isTextVisibilityEvent=t}(s||(s={})),s})(),gu=(()=>{class s extends $r{constructor(t,e,i,n=null){super(),this.N=i,this.Uo=n,this.Fo=new Sc(t,e,i,n)}setAnonymization(t){this.Fo.setAnonymization(t)}isListening(t){return Rl.isTextVisibilityEvent(t)||zr.isDOMEvent(t)&&(t.domEvent==="initialDOM"||t.domEvent==="nodesAdded"||t.domEvent==="attributeChanged"||t.domEvent==="characterDataChanged")}processEvent(t){if(Rl.isTextVisibilityEvent(t))return t.text=this.N.checkAndAnonymizePII(t.text,this.Uo),t;switch(t.domEvent){case"initialDOM":case"nodesAdded":this.rl(t);break;case"attributeChanged":this.CS(t);break;case"characterDataChanged":this.IS(t);break}return t}rl(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.Fo.sanitize(n,i)}CS(t){if(!t.isSvg&&t.newValue){if(t.localName===null){t.newValue="";return}t.newValue=this.Fo.getAnonymizedAttributeValue(t.localName,t.attribute,t.newValue,t.inputType)}}IS(t){t.newValue=this.Fo.getAnonymizedValue(t.newValue,t.parentLocalName,t.parentProps).anonymizedValue}}return Ds([se("AnonymizedTextProcessor.processEvent")],s.prototype,"processEvent",null),s})();var mu=(()=>{class s extends $r{constructor(t){super(),this.tt=t}isListening(t){return zr.isDOMEvent(t)&&t.domEvent==="initialDOM"}processEvent(t){return t.domEvent==="initialDOM"&&(t.initialDOM.baseURI=this.tt.anonymizeUrl(t.initialDOM.baseURI)),t}}return Ds([se("UrlAnonymizationProcessor.processEvent")],s.prototype,"processEvent",null),s})(),ia="textarea",yu=(()=>{class s extends $r{isListening(t){return zr.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){at.traverse(t.initialDOM,(e,i)=>{(this.Qd(e,i)||this.Zd(e))&&(e.data=this.nl(e.data))})}NS(t){for(let e of t.nodes)at.traverse(e,(i,n)=>{(this.kS(i,n,t)||this.Zd(i))&&(i.data=this.nl(i.data))})}MS(t){var e;(t.parentLocalName===ia||!((e=t.targetProps)===null||e===void 0)&&e.editableNode)&&(t.newValue=this.nl(t.newValue))}nl(t){return csString.prototype.replace.call(t,/\S/g,"\u2022")}kS(t,e,i){return this.DS(t,i)||this.Qd(t,e)}DS(t,e){return t.nodeType===3&&e.targetLocalName===ia}Qd(t,e){return t.nodeType===3&&mt(e)&&e.localName===ia}Zd(t){return t.nodeType===3&&Ps.isEditableNode(t)}}return Ds([se("AnonymizedEditableTextProcessor.processEvent")],s.prototype,"processEvent",null),s})(),oy=(()=>{class s{constructor(t){this.w=t,this.Ft={boundElement:window,type:"resize",listener:()=>this.resizeListener()},this.w=t}observe(){Lt(this.Ft),this.wc()}wc(){this.resizeListener()}disconnect(){xt(this.Ft)}resizeListener(){let t={width:Kt.windowWidth(),height:Kt.windowHeight()};this.w(t)}}return St([G("resize")],s.prototype,"resizeListener",null),s})(),Ks=(()=>{let s;return function(r){r.PORTRAIT="Portrait",r.LANDSCAPE="Landscape"}(s||(s={})),s})(),bn=(()=>{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})(),An=(()=>{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})(),ay=(()=>{let s;return function(r){let t=null;r.isScreenOrientationApiSupported=()=>{var c;return t!=null?t:t=!!(!((c=Mt.screen)===null||c===void 0)&&c.orientation)},r.isDeprecatedScreenOrientationApiSupported=()=>"orientation"in Mt;function e(){return Ks.LANDSCAPE}function i(){var c;switch((c=Mt.screen.orientation)===null||c===void 0?void 0:c.type){case bn.PORTRAIT_PRIMARY:case bn.PORTRAIT_SECONDARY:return Ks.PORTRAIT;case bn.LANDSCAPE_PRIMARY:case bn.LANDSCAPE_SECONDARY:return Ks.LANDSCAPE;default:return Ks.PORTRAIT}}function n(){switch(window.orientation){case An.PORTRAIT:case An.PORTRAIT_REVERSE:return Ks.PORTRAIT;case An.LANDSCAPE:case An.LANDSCAPE_REVERSE:return Ks.LANDSCAPE;default:return Ks.PORTRAIT}}function o(){return r.isScreenOrientationApiSupported()?i():r.isDeprecatedScreenOrientationApiSupported()?n():e()}r.getCurrentOrientation=o}(s||(s={})),s})(),cy=(()=>{class s extends Ls{constructor(){super(...arguments),this.ol=null,this.al=null,this.Fs=new oy(t=>{this.produceEvent({...t,type:"viewportResize"}),this.onScreenPotentiallyChanged()})}onScreenPotentiallyChanged(){let t=ay.getCurrentOrientation(),{screenWidth:e,screenHeight:i}=this.LS(t);if(e!==this.ol||i!==this.al){this.ol=e,this.al=i;let n={type:"screenResize",width:e,height:i};this.produceEvent(n)}}LS(t){let e,i,n=Kt.screenWidth(),o=Kt.screenHeight();return t===Ks.PORTRAIT?(e=n,i=o):(e=Math.max(n,o),i=Math.min(n,o)),{screenWidth:e,screenHeight:i}}onStart(){this.Fs.observe()}onStop(){this.ol=null,this.al=null,this.Fs.disconnect()}}return s})();function ly(s){let r=csEventtarget.apply(s);return r&&kt(r)&&csElementshadowRoot.apply(r)&&s.composedPath?s.__csOriginalTarget||s.composedPath()[0]:r}var Ke=(()=>{class s{get selectors(){return this.Fe===""?null:this.Fe}constructor(t,e={closest:!1}){this.w=t,this.wt=e,this.Fe="",this.Kr=new ro,this.Mo=Ai(i=>{if(this.Fe==="")return;let n=[];for(let o of ic(i,c=>c.addedNodes)){if(!(Op(o)||this.wt.closest&&Un(o)))continue;let c=this.wt.closest?this.xS(o,this.Fe):this.findMatchingElements(o,this.Fe);Xc(c,n)}n.length&&this.w(n,"added")},"SelectorObserver.processMutations"),this.VS=(i,n)=>{if(this.Fe===""||n!=="added")return;let o=this.findMatchingElements(i,this.Fe);o.length&&this.w(o,"added")},this.W=new Je(this.Mo,this.VS)}observe(t){this.Fe===""?this.W.observe():this.Fe+=",",this.Fe+=t;let e=this.findMatchingElements(document,t);for(let i of this.W.shadowRoots){let n=this.findMatchingElements(i,t);Xc(n,e)}e.length&&(ct(e,i=>{this.Kr.add(i)}),this.w(e,"initial"))}processPendingMutations(){this.Mo(this.W.takeRecords())}disconnect(){this.W.disconnect(),this.Kr.clear(),this.Fe=""}xS(t,e){let i=[];if(Un(t)){if(t.parentElement){let n=er(t.parentElement,e);n&&csArray.prototype.push.call(i,n)}return csArray.prototype.filter.call(i,n=>this.Kr.has(n)===!1)}else{if(Ms(t)){let n=er(t,e);if(n)return csArray.prototype.push.call(i,n),csArray.prototype.filter.call(i,o=>this.Kr.has(o)===!1)}return this.findMatchingElements(t,e)}}findMatchingElements(t,e){let i=Ur(window.csquerySelectorAll[t.nodeType].call(t,e));return kt(t)&&Ae.call(t,e)&&csArray.prototype.push.call(i,t),csArray.prototype.filter.call(i,n=>this.Kr.has(n)===!1)}}return St([G()],s.prototype,"observe",null),St([G()],s.prototype,"disconnect",null),St([se("SelectorObserver.findMatchingElements")],s.prototype,"findMatchingElements",null),s})(),hy=(()=>{class s extends Ls{constructor(){super(),this.tp=t=>{let e=ly(t);e&&this.cl(e,t.type)},this.ae=new ar((t,e)=>{switch(e){case"initial":case"added":this.ep(t);break;case"removed":this.sp(t);break}}),this.F=new Ke((t,e)=>{(e==="initial"||e==="added")&&this.US(t)})}static shouldProcessElement(t){return t.tagName==="VIDEO"&&Ct.isConnected(t)&&!W.isMaskedElement(t)&&!W.isMaskedElementChild(t)}static isPlaying(t){return!t.paused&&!t.ended}onStart(){this.ep(document),this.ae.observe(),this.F.observe("video")}onStop(){this.sp(document),this.ae.disconnect(),this.F.disconnect()}cl(t,...e){if(this.isStarted&&s.shouldProcessElement(t))for(let i of e){let n=Rt(t),o={type:"VideoEvent",videoEventType:i,nodeId:n};i==="seeked"&&(o.newTimePositionInSec=t.currentTime),Ia(()=>this.produceEvent(o))}}US(t){for(let e of t)this.cl(e,"seeked"),s.isPlaying(e)&&this.cl(e,"play")}ep(t){for(let e of["play","pause","seeked"])Lt({type:e,listener:this.tp,boundElement:t})}sp(t){for(let e of["play","pause","seeked"])xt({type:e,listener:this.tp,boundElement:t})}}return s})();function uy(s){return s.nodeName==="SELECT"}function vc(s){return s.nodeName==="INPUT"}function dy(s){return s.nodeName==="TEXTAREA"||vc(s)&&!Eu(s)&&!Su(s)}function Eu(s){return vc(s)&&s.type==="number"}function Su(s){return vc(s)&&(s.type==="checkbox"||s.type==="radio")}var vu=(()=>{class s extends Ls{constructor(t){super(),this.it=t,this.ll=new lm("low"),this.Gi=e=>this.inputHandler(e),this.Si=[],this.jS(),this.HS(),this.F=new Ke(e=>{for(let i of e)this.ul(i)&&we(()=>{this.dl(i,Rt(i))},"low")}),this.ae=new ar((e,i)=>{switch(i){case"initial":case"added":Lt({type:"change",listener:this.Gi,boundElement:e});break;case"removed":xt({type:"change",boundElement:e,listener:this.Gi});break}})}onStart(){Lt({type:"keyup",boundElement:document,listener:this.Gi}),Lt({type:"change",boundElement:document,listener:this.Gi}),ct(this.Si,t=>t.activate()),this.F.observe(csArray.prototype.join.call(s.BS,",")),this.ae.observe()}onStop(){xt({type:"keyup",boundElement:document,listener:this.Gi}),xt({type:"change",boundElement:document,listener:this.Gi}),ct(this.Si,t=>t.deactivate()),this.F.disconnect(),this.ae.disconnect(),this.ll.clear()}dl(t,e){var i,n,o;if(this.ll.has(t))return;if(this.ll.add(t),uy(t)){let d={type:"InputEvent",inputType:"select",target:Rt(t),selectedIndex:t.selectedIndex,timestamp:Q.now()};this.produceEvent(d);return}if(Su(t)){let d={type:"InputEvent",inputType:"checkable",target:Rt(t),checked:t.checked,timestamp:Q.now()};this.produceEvent(d);return}let c=dy(t),u=Eu(t);if(c||u){let d=(i=t.value)!==null&&i!==void 0?i:"";if(!((n=this.it)===null||n===void 0)&&n.shouldEncrypt(t)){(o=this.it)===null||o===void 0||o.registerInputNodeToEncrypt({targetId:e,targetValue:d,date:Q.now()});return}let S=u?"0":"\u2022",f={type:"InputEvent",inputType:"text",target:Rt(t),value:csString.prototype.replace.call(d,/\S/g,S),timestamp:Q.now()};this.produceEvent(f)}}inputHandler(t){if(!this.isStarted)return;let e=Zt(t),i=Rt(e);!i||!this.ul(e)||Ct.isConnected(e)&&we(()=>{this.dl(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=Gn(t.prototype,e,(o,c,u)=>{if(u!==c&&Ct.isConnected(o)){let d=i?o.parentElement:o;this.FS(d)}});n&&csArray.prototype.push.call(this.Si,n)}ul(t){return!W.isMaskedElement(t)&&!W.isMaskedElementChild(t)&&(Zn(t)||Za(t)||Qa(t))}FS(t){if(this.isStarted&&Ct.isConnected(t)){let e=Rt(t);e&&this.ul(t)&&we(()=>{this.dl(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"],Ds([Nt()],s.prototype,"inputHandler",null),Ds([G()],s.prototype,"trackChanges",null),s})();var _u=(()=>{class s extends Ls{constructor(){super(),this.Es=typeof window.customElements=="object"&&typeof window.customElements.whenDefined=="function"&&typeof window.Promise=="function",this.zS=ks("CustomElementRegistrationProducer:onElementsFound",e=>{for(let i of e)W.isMaskedElement(i)||W.isMaskedElementChild(i)||Mp(i)&&this.register(csString.prototype.toLowerCase.call(i.tagName))});let t=no(this.zS);this.Gr=new au(e=>t.push(e)),this.Bs=new Set}onStart(){this.Es&&this.Gr.observe()}onStop(){this.Bs.clear(),this.Gr.disconnect()}async register(t){this.Bs.has(t)||(this.Bs.add(t),await window.customElements.whenDefined(t),this.produceEvent({type:"CustomElementRegistration",tagName:csString.prototype.toLowerCase.call(t)}))}}return Ds([G()],s.prototype,"register",null),s})(),Cl=(()=>{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 ip(){if(this.isNavigationTimingObserverSupported())return new window.PerformanceObserver(t=>s.$S(t))}static $S(t){let i=t.getEntriesByType("navigation")[0];i&&(this.vi=i,s.qi(i))}static Dr(t){this.GS(t),this.vi&&t(this.vi),this.ke||this.qS()}static GS(t){this.Mt.add(t)}static WS(t){this.Mt.delete(t)}static qS(){if(this.Jr||(this.Jr=this.ip()),!this.Jr){this.vi||(this.vi={requestStart:window.performance.timing.requestStart,domInteractive:window.performance.timing.domInteractive}),this.qi(this.vi);return}this.Jr.observe({type:"navigation",buffered:!0}),this.ke=!0}static qi(t){this.Mt.forEach(e=>e(t))}static xr(t){this.WS(t),this.Mt.size===0&&this.Wr()}static Wr(){var t;this.ke&&((t=this.Jr)===null||t===void 0||t.disconnect(),this.ke=!1,this.vi=null,this.Jr=this.ip())}constructor(t){this.w=t}observe(){s.Dr(this.w)}disconnect(){s.xr(this.w)}}return s.ke=!1,s.Mt=new Set,s.vi=null,s})(),wu=(()=>{class s extends Ls{constructor(){super(...arguments),this.zo=null,this.rp=new Cl(t=>{if(this.zo)return;let e=this.YS(t);e&&(this.zo=e,this.produceEvent(e))})}onStart(){if(this.zo){this.produceEvent(this.zo);return}this.rp.observe()}onStop(){this.rp.disconnect()}YS(t){let e=Cl.getTimeOrigin();return{type:"PerformanceTiming",timings:{timeOrigin:e,requestStart:Math.floor(e+t.requestStart),domInteractive:Math.floor(e+t.domInteractive)},timestamp:Q.now()}}}return s})(),Xt=(()=>{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})(),Tn=(()=>{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})(),py=(()=>{class s{compute(t,e){let i=this.zs(e.x)-this.zs(t.x),n=this.zs(e.y)-this.zs(t.y),o=e.time-t.time;return{duration:o,distance:this.np(i,n),direction:this.XS(i,n),velocity:this.KS(i,n,o)}}computePinchMetrics(t,e){let i=this.zs(e.x)-this.zs(t.x),n=this.zs(e.y)-this.zs(t.y);return{duration:e.time-t.time,distance:this.np(i,n)}}getScale(t,e){return Math.abs(e/t-1)}zs(t){return t/window.devicePixelRatio}np(t,e){return Math.round(Math.sqrt(t*t+e*e))}KS(t,e,i){let n=i/1e3,o=t/n,c=e/n;return Math.round(Math.abs(o)+Math.abs(c))}XS(t,e){return Math.abs(t)>Math.abs(e)?t>0?Tn.RIGHT:Tn.LEFT:e>0?Tn.DOWN:Tn.UP}}return s})(),bu=typeof performance!="undefined"&&!!performance.now,Il=bu?()=>performance.now():csDate.now,fy=(()=>{var s;return bu?(s=performance.timing)===null||s===void 0?void 0:s.navigationStart:0})(),Rn={now(){return Math.round(Il()+fy)},elapsed(){return Il()}};function Pl(s,r=0){let t=Math.pow(10,r);return Math.round(s*t)/t}var gy=1e3,my=100,yy=.1,Na=(()=>{class s{constructor(){this.zt={},this.pl=()=>{},this.$o=new py,this.Ae()}static isGestureDetectionSupported(){return typeof devicePixelRatio!="undefined"}onGesture(t){this.pl=t}isValidTouchEvent(t){return"touches"in t&&"changedTouches"in t}processActionDown(t){if(!this.JS(t))return;this.QS(t)&&this.Ae();let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:Rn.now()};if(t.touches.length===1)this.zt.startPinchTime=e.time,this.zt.firstTouch=e;else if(t.touches.length===2&&(this.zt.secondTouch={x:t.touches[1].clientX,y:t.touches[1].clientY,time:Rn.now()},this.zt.firstTouch&&this.zt.secondTouch)){let i=this.$o.computePinchMetrics(this.zt.firstTouch,this.zt.secondTouch);this.Wi=i.distance}csArray.prototype.push.call(this.Qr,e),this.Go=Zt(t)}processActionMove(){this.gl=!0}processActionUp(t){if(this.ZS(t)){if(csArray.prototype.push.call(this.Qr,{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:Rn.now()}),this.sv(t)&&this.zt.startPinchTime){let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:this.zt.startPinchTime},i={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:Rn.now()};this.zt.firstTouch&&(this.zt.firstTouch=e,this.zt.secondTouch=i),this.iv(t)}this.Wi||this.rv()&&this.nv(t)}}Ae(){this.Qr=[],this.Go=null,this.gl=!1,this.Wi=null,this.Zr=!0}nv(t){let e=this.$o.compute(this.Qr[0],this.Qr[1]);this.Zr=t.isTrusted;let i=this.gl?this.ov(e):this.av(e);if(this.cv(i.type,t.changedTouches)){let n=t.changedTouches[0];i.pageX=Pl(n.pageX,1),i.pageY=Pl(n.pageY,1)}this.pl(i,t)}iv(t){if(!(this.zt.firstTouch&&this.zt.secondTouch))return;let e=this.$o.computePinchMetrics(this.zt.firstTouch,this.zt.secondTouch);this.Zr=t.isTrusted;let i=this.lv(e);i&&this.pl(i,t)}lv(t){return!this.Wi||this.$o.getScale(this.Wi,t.distance)t.distance?Xt.PINCH_IN:Xt.PINCH_OUT,target:this.Go,distance:t.distance,isTrusted:this.Zr}}ov(t){return{type:t.velocity0}ZS(t){return t.changedTouches.length>0}sv(t){return this.gl&&!!this.Wi&&t.changedTouches.length===1&&t.touches.length===1}}return s})(),Ey="touchstart",Sy="touchmove",vy="touchend",Au=(()=>{class s{constructor(t){this.w=t}observe(){s.op&&s.ml(this.w)}disconnect(){s.op&&s.yl(this.w)}static hv(t,e){csArray.prototype.forEach.call(oi(s.Mt),i=>i(t,e))}static ml(t){s.Mt.has(t)||(s.Mt.add(t),s.Mt.size===1&&(s.tn.onGesture(s.hv),csArray.prototype.forEach.call(s.Us,e=>Lt(e))))}static yl(t){s.Mt.delete(t),s.Mt.size===0&&csArray.prototype.forEach.call(s.Us,e=>xt(e))}static El(t){if(s.tn.isValidTouchEvent(t))switch(t.type){case"touchstart":s.tn.processActionDown(t);break;case"touchmove":s.tn.processActionMove();break;case"touchend":s.tn.processActionUp(t);break}}}return s.Us=[{boundElement:Mt.document,type:Ey,listener:r=>s.El(r)},{boundElement:Mt.document,type:Sy,listener:r=>s.El(r)},{boundElement:Mt.document,type:vy,listener:r=>s.El(r)}],s.op=Na.isGestureDetectionSupported(),s.Mt=new Set,s.tn=new Na,s})(),Tu=(()=>{class s extends Ls{constructor(){super(),this.rn=new Au(this.Sl.bind(this))}onStart(){this.rn.observe()}onStop(){this.rn.disconnect()}Sl(t){let e=this.uv(t);e&&this.produceEvent(e)}uv(t){if(!this.pv(t))return null;let e=$g(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&&!(kt(t.target)&&W.isMaskedElementChild(t.target))}}return s})();var Wi=[],Ma=!1,Ru=Ai(wy,"executeTasks");function _y(s){if(csArray.prototype.push.call(Wi,s),!Ma){for(let r=0;r<3;r++)csSetTimeout(Ru);Ma=!0}}function wy(){let s=csDate.now();for(let r=0;r=35){Wi=csArray.prototype.slice.call(Wi,r+1),csSetTimeout(Ru);return}Wi=[],Ma=!1}var Ys=(()=>{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})(),Cu=(()=>{class s{constructor(){this.Ct=new nr,this.Tt=Ys.Stopped,this.w=null,this.lp=t=>{this.Tt===Ys.Stopped||!t||(this.w(t),this.hp())}}get queueLength(){return this.Ct.length}start(t){if(this.w)throw new Error("callback already set");this.Tt=Ys.Started,this.w=t}push(t){this.Ct.push(t),this.Tl()}stop(){this.w=null,this.Tt=Ys.Stopped,this.Ct.clear()}static pipe(t,e){let i=t,n=new csArray;for(let c of e){let u=new s;u.start(d=>{c.pushEvent(d)}),csArray.prototype.push.call(n,u),ct(i,d=>d.subscribe(S=>u.push(S))),i=[c]}let o=new by(n);return ct(i,c=>c.subscribe(u=>o.push(u))),o}up(){return this.Tt===Ys.Stopped}Je(){return this.Tt===Ys.Processing}hp(){if(!this.up()){if(this.Ct.isEmpty){this.Tt=Ys.Completed;return}this.Tt=Ys.Processing,_y(()=>{let t=this.Ct.pop();t instanceof mc?t.complete(this.lp):this.lp(t)})}}Tl(){this.up()||this.Je()||this.hp()}}return s})(),by=(()=>{class s extends Cu{constructor(t){super(),this.dp=t}get queueLength(){return csArray.prototype.reduce.call(this.dp,(t,e)=>t+e.queueLength,0)}stop(){super.stop(),ct(this.dp,t=>t.stop())}}return s})(),Iu=(()=>{class s{constructor(t,e=[]){this.producers=t,this.processors=e,this.G=!1,this.Mt=[]}get pendingEvents(){var t,e;return(e=(t=this.Ct)===null||t===void 0?void 0:t.queueLength)!==null&&e!==void 0?e:0}start(){if(this.G)throw new Error("Recording is already started.");let t=this.Mt;this.Ct=Cu.pipe(this.producers,this.processors),this.Ct.start(e=>csArray.prototype.forEach.call(t,i=>i(e))),ct(this.producers,e=>e.start()),ct(this.processors,e=>e.start()),this.G=!0}stop(){this.Ct.stop(),this.Mt.length=0;for(let t of this.producers)t.stop();for(let t of this.processors)t.stop();this.G=!1,this.Mt=[]}subscribe(t){if(this.G)throw new Error("Recording is already started.");return csArray.prototype.push.call(this.Mt,t),()=>this.Mt=csArray.prototype.filter.call(this.Mt,e=>e!==t)}}return s})(),Pu=(()=>{class s extends Ls{constructor(t){super(),this.Ne=t}subscribe(t){return super.subscribe(t)}onStart(){ct(this.Ne,t=>{t.onEvent(e=>{var i;return this.Fi(e,(i=t.eventType)!==null&&i!==void 0?i:"browser")})}),ct(this.Ne,t=>{var e;(e=t.start)===null||e===void 0||e.call(t)})}onStop(){ct(this.Ne,t=>{var e;return(e=t.stop)===null||e===void 0?void 0:e.call(t)})}Fi(t,e){this.produceEvent({timestamp:Q.now(),type:"Legacy",originalEvent:t,eventType:e})}}return s})();function Ay(s,r,t){let{timestamp:e}=s;switch(s.domEvent){case"initialDOM":{let{initialDOM:i}=s,n={type:J.INITIAL_DOM,date:e,args:[i]};t.emitInitialDomDone(n);break}case"nodesAdded":{csArray.prototype.forEach.call(s.nodes,i=>{r({type:J.MUTATION_INSERT,date:e,args:[s.target,s.nextSibling,i]})});break}case"nodesMoved":{for(let i of s.nodesIds)r({type:J.MUTATION_MOVE,date:e,args:[i,s.nextSibling,s.target]});break}case"nodesRemoved":{csArray.prototype.forEach.call(s.nodesIds,i=>{r({type:J.MUTATION_REMOVE,date:e,args:[i]})});break}case"attributeChanged":{let{target:i,namespace:n,attribute:o,newValue:c}=s;r({type:J.MUTATION_ATTRIBUTE,date:e,args:[i,n,o,c]});break}case"characterDataChanged":{let{target:i,newValue:n}=s;r({type:J.MUTATION_CHARACTER_DATA,date:e,args:[i,n]});break}case"cssRuleInserted":{let{target:i,rule:n,index:o}=s,c=mt(o)?[i,n,o]:[i,n];r({type:J.STYLESHEET_RULE_INSERT,date:e,args:c});break}case"cssRuleDeleted":{let{target:i,index:n}=s;r({type:J.STYLESHEET_RULE_DELETE,date:e,args:[i,n]});break}case"cssRuleUpdated":{let{target:i,rule:n,index:o}=s;r({type:J.STYLESHEET_RULE_UPDATE,date:e,args:[i,n,o]});break}case"cssStyleSheetDisabled":{let{target:i,disabled:n}=s;r({type:J.STYLESHEET_DISABLED,date:e,args:[i,n]});break}case"shadowRootAttached":{let{target:i,shadowRoot:n}=s;r({type:J.ATTACH_SHADOW,date:e,args:[i,n]});break}case"adoptedStyleSheetRegistered":{let{sheetId:i,cssRules:n,disabled:o}=s;r({type:J.REGISTER_ADOPTED_STYLE_SHEET,date:e,args:[i,{cssRules:n,disabled:o}]});break}case"adoptedStyleSheetsSet":{let{target:i,sheetsIds:n}=s;r({type:J.SET_ADOPTED_STYLE_SHEETS,date:e,args:[i,n]});break}case"adoptedStyleSheetRuleInserted":{let{sheetId:i,rule:n,index:o}=s,c=mt(o)?[i,n,o]:[i,n];r({type:J.ADOPTED_STYLESHEET_RULE_INSERT,date:e,args:c});break}case"adoptedStyleSheetRuleDeleted":{let{sheetId:i,index:n}=s;r({type:J.ADOPTED_STYLESHEET_RULE_DELETE,date:e,args:[i,n]});break}case"adoptedStyleSheetRuleUpdated":{let{sheetId:i,rule:n,index:o}=s,c=[i,n,o];r({type:J.ADOPTED_STYLESHEET_RULE_UPDATE,date:e,args:c});break}case"adoptedStyleSheetDisabled":{let{sheetId:i,disabled:n}=s,o=[i,n];r({type:J.ADOPTED_STYLESHEET_DISABLED,date:e,args:o});break}default:Y.error("translateDOMEvent: DOMEvent not supported");break}}function Ty(s){let r=Ry(s.data);return{type:J.GESTURE_RECOGNITION,args:[s.targetId,r],date:s.timestamp}}function Ry(s){let r={type:Cy(s.type)};for(let t in s){let e=s[t];e!==void 0&&t!=="type"&&(r[t]=e)}return r}function Cy(s){switch(s){case Xt.DRAG:case Xt.FLICK:return Tr.SWIPE;case Xt.LONG_PRESS:return Tr.LONG_PRESS;case Xt.TAP:return Tr.TAP;case Xt.PINCH_IN:return Tr.PINCH_IN;case Xt.PINCH_OUT:return Tr.PINCH_OUT}}function Iy(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 Py=20;function Oy(s){return Iy(r=>{let t={visibleInViewPort:r},e={type:J.TEXT_VISIBILITY,date:Q.now(),args:[t]};s(e)},{batchSize:Py,autoFlushDelay:1e3})}function Ny(s){return{type:J.PERFORMANCE_TIMINGS,args:[{performanceTiming:ea.REQUEST_START,timestamp:s.timings.requestStart},{performanceTiming:ea.DOM_INTERACTIVE,timestamp:s.timings.domInteractive},{performanceTiming:ea.TIME_ORIGIN,timestamp:s.timings.timeOrigin}],date:s.timestamp}}function My(s){switch(s.inputType){case"text":return{type:J.INPUT_TEXT,args:[s.target,s.value],date:s.timestamp};case"select":return{type:J.INPUT_SELECT,args:[s.target,s.selectedIndex],date:s.timestamp};case"checkable":return{type:J.INPUT_CHECKABLE,args:[s.target,s.checked],date:s.timestamp}}}var ky=500,ra=0;function Dy(){return{processEvent(s,r){if(s.originalEvent.type===J.PERFORMANCE_RESOURCE_TIMING)return ra>=ky?null:(ra+=1,r({...s.originalEvent,date:s.timestamp}));r(s.originalEvent)},reset(){ra=0}}}function Ly(s){switch(s.videoEventType){case"play":return{type:J.VIDEO_PLAY,args:[s.nodeId],date:s.timestamp};case"pause":return{type:J.VIDEO_PAUSE,args:[s.nodeId],date:s.timestamp};case"seeked":{let r=s;return{type:J.VIDEO_SEEK,args:[r.nodeId,r.newTimePositionInSec],date:s.timestamp}}default:return null}}var Ou=(()=>{class s{get pendingEvents(){return this.Wo.pendingEvents}constructor(t,e,i,n,o){this.Wo=t,this.S=e,this.Ss=i,this.fs=n,this.gs=o,this.se=()=>{},this.Yo=()=>{},this.pp=Oy(c=>this.se(c))}start(){var t,e;this.fp=Dy(),this.Wo.subscribe(i=>{var n,o,c,u,d,S;let f=i,{timestamp:_}=f;switch(f.type){case"Legacy":{let w=f.eventType==="user"?(n=this.Yo)!==null&&n!==void 0?n:()=>{}:this.se;this.fp.processEvent(f,w)}break;case"CustomElementRegistration":{this.se({type:J.CUSTOM_ELEMENT_REGISTRATION,date:_,args:[f.tagName]});break}case"DomEvent":{Ay(f,this.se,this.S);break}case"InputEvent":{let w=My(f);(o=this.Yo)===null||o===void 0||o.call(this,w);break}case"encryptedCharacterDataChanged":{let{target:w,rawData:T,encryptedData:N,encryptionMetadata:x}=f;this.se({type:J.MUTATION_ENCRYPTED_CHARACTER_DATA,date:_,args:[w,T,N,x]});break}case"StaticResource":{let{url:w}=f;this.se({type:J.STATIC_RESOURCE_URL,date:_,args:[w]});break}case"ResizeMaskedElement":{let{target:w,width:T,height:N}=f;this.se({type:J.MUTATION_ATTRIBUTE,date:_,args:[w,"","style",`width:${T}px !important;height:${N}px !important;`]});break}case"Gesture":{let w=Ty(i);(c=this.Yo)===null||c===void 0||c.call(this,w);break}case"TextVisibility":{this.pp.push(f.text);break}case"StaticResourceManagerEvent":{(u=this.Ss)===null||u===void 0||u.processEvent(f);break}case"screenResize":{let{width:w,height:T}=f,N={type:J.SCREEN_RESIZE,date:_,args:[w,T]};this.se(N);break}case"viewportResize":{let{width:w,height:T}=f,N={type:J.RESIZE,date:_,args:[w,T]};this.se(N);break}case"PerformanceTiming":{this.se(Ny(f));break}case"CustomError":{let w=(d=this.gs)===null||d===void 0?void 0:d.translate(f);w&&this.se(w);break}case"JSError":{let w=(S=this.fs)===null||S===void 0?void 0:S.translate(f);w&&this.se(w);break}case"VideoEvent":{let w=Ly(f);w&&this.se(w);break}case"warning":{Y.warn(f.message);break}default:Y.error(`WebRecorderEventTranslator: Event not supported (${f.type})`);break}}),this.S.emitInitialDomStart(),(t=this.fs)===null||t===void 0||t.start(),(e=this.gs)===null||e===void 0||e.start(),this.Wo.start()}stop(){var t,e,i;this.reset(),this.flush(),this.Wo.stop(),(t=this.Ss)===null||t===void 0||t.flushEvents(),(e=this.fs)===null||e===void 0||e.stop(),(i=this.gs)===null||i===void 0||i.stop()}flush(){this.pp.flush()}onEvent(t,e){var i;this.se=t,this.Yo=e,(i=this.Ss)===null||i===void 0||i.onEvent(n=>this.se(n))}reset(){this.fp.reset()}}return s})();var xy=(()=>{class s{constructor(t,e){this.S=t,this.A=e,this.an=Ue.ETR_DISABLED,this.Ko=Ue.ETR_PENDING,this.Rl=!0}getEtrStatus(t){t===void 0&&(t=this.A.getSession());let e=t==null?void 0:t.etrStatus;return this.mp()&&e===Ue.ETR_SAVED_SESSION?e:this.an}onEventTriggerRecording(t,e){switch(e){case ei.ETR_PAGE:this.yp(Ue.ETR_SAVED_PAGE);break;case ei.ETR_LEGACY:case ei.ETR_SESSION:this.yp(Ue.ETR_SAVED_SESSION);break}}onCollectStateChange(t,e){t===tt.RECORDING_TEMPORARILY?this.Rl=!0:this.Rl=!1,t===tt.ANALYTICS_ONLY&&e===ve.ETR_ON?this.Ep(this.Ko):this.Ep(Ue.ETR_DISABLED)}Ep(t){this.an=t,this.Ko=Ue.ETR_PENDING,this.Sp(t),this.S.emitRecordingContextChange()}yp(t){this.Rl?Number(t)>Number(this.Ko)&&(this.Ko=t):this.mp()&&Number(t)>Number(this.an)&&(this.an=t,this.Sp(t),this.S.emitRecordingContextChange())}Sp(t){let e=this.A.getSession();e!==null&&e.etrStatus===Ue.ETR_NOT_SAVED_SESSION&&t===Ue.ETR_SAVED_SESSION&&(e.etrStatus=t,this.A.setSession(e))}mp(){return this.an!==Ue.ETR_DISABLED}}return s})();function ka(s,r){let t,e,i,n,o=null,c=d=>{let S=Q.elapsed();if(!d&&o!==null){let _=r-(S-o);if(_>0){e=window.csSetTimeout(c,_);return}}let f=S-i;e=null,o=null,i=null,n=s(f,...t)},u=(...d)=>{if(t=[...d],i){o=Q.elapsed();return}return i=Q.elapsed(),e=window.csSetTimeout(c,r),n};return u.flushPending=()=>{e&&(window.csClearTimeout(e),c(!0))},u.cancel=()=>{o=null,i=null,e&&(window.csClearTimeout(e),e=null)},u}var Vy="csPersisted",Ol="v2/recording",Nu=["isRecording"],_c=["replay:resourceManager:enableForOnlineResource:nextPageviewOnly","cssrm:onlineAssets:activateForNextPageview"],Mu=["replay:resourceManager:getStatus","cssrm:getStatus"],Uy=(()=>{class s{constructor(t,e,i,n,o,c,u,d,S,f,_,w,T,N,x,O,C,$,U,L,Z,nt){this.Gs=t,this.A=e,this.f=i,this.ze=n,this.E=o,this.N=c,this.Q=u,this.$t=d,this.Ue=S,this.yt=f,this.Pe=_,this.vt=w,this.S=T,this.qs=N,this.Ov=x,this.ie=O,this.xt=C,this.tt=$,this.Ur=U,this.lt=L,this.fC=Z,this.it=nt}init(){var t,e;let i=[],n=[];csArray.prototype.push.call(n,new uu),this.yn=new gu(this.lt.shouldUseAnonymization(),this.f.whitelistedAttributes,this.N,this.f.anonymizeDigits),this.bi();let o=new zm(Vy);this.Nv(o);let c=new Kg;this.z=new Xg;let u=new lu;csArray.prototype.push.call(i,u);let d=new jr(c,this.ze,{getRequestParameters:()=>({let:this.recordingService.getRecordingLastEventTimestamp()})},{getRequestParameters:()=>({rst:this.recordingService.getRecordingStartTimestamp()})},{getRequestParameters:()=>({rt:csArray.prototype.join.call(this.A.getCollectStates(),",")})}),S=new hu(`${this.f.getRecordingUri()}/${Ol}`);csArray.prototype.push.call(n,this.yn),csArray.prototype.push.call(n,new mu(this.tt)),csArray.prototype.push.call(n,new yu),this.Ai=new Wh,this.Ai.init(),csArray.prototype.push.call(i,this.Ai),this.Ot=new Vm(o,S,this.B),csArray.prototype.push.call(i,new nu(window.location,this.N));let f=new su,_=new cy,w=new hy,T=new vu(this.it),N=new _u,x=[_,this.$t,f,new Pu(csArray.prototype.filter.call(i,U=>U)),N,new wu,new Tu,T,w],O=new Iu(x,n),C=new Ou(O,this.S,this.Ss,this.fs,this.gs),$=[f,_,w,T,N];this.recordingService=new xm(this.f,this.z,d,c,this.Q,this.A,this.Ue,this.yt,this.Pe,this.it,this.B,this.Ot,S,C,i,$,this.Me,this.Ur,this.fs,this.gs),this.qs.addListener(this.recordingService),this.Ov.addListener(this.recordingService),this.recordingService.init(),this.E.register(Nu,()=>this.A.isReplayRecorded()&&!this.ie.isUrlExcludedForSessionReplay()),this.E.register(_c,()=>{this.recordingService.activateOnlineAssetsOnNextPageview(),this.S.emitRecordingContextChange()}),this.E.register(Mu,()=>this.recordingService.getStaticResourceManagerStatus()),this.En=new xy(this.S,this.A),this.qs.addListener(this.En),this.Gs.enableRecordingContext(this.recordingService,this.A,this.En),this.Il()}onAfterNaturalPageView(){var t;this.ie.isUrlExcludedForSessionReplay()?this.recordingService.resetOnlineAssetsOnPageview():this.recordingService.updateOnlineAssetsOnPageview(),(t=this.gC)===null||t===void 0||t.initState()}onStartTracking(){this.Ot.recover(),this.bi(),this.A.isReplayRecorded()&&!this.ie.isUrlExcludedForSessionReplay()&&(this.A.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.Pl())}onArtificialPageViewEnd(){this.A.isReplayRecorded()&&!this.ie.isUrlExcludedForSessionReplay()&&!this.A.isTemporarilyRecorded()&&this.Ot.sendLastMessageBeacon(),this.recordingService.clearStates()}onAfterArtificialPageView(){this.bi(),this.A.isReplayRecorded()&&!this.ie.isUrlExcludedForSessionReplay()?(this.A.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.recordingService.updateOnlineAssetsOnPageview(),this.kv()):(this.recordingService.resetOnlineAssetsOnPageview(),this.Yi())}onBeforeSessionRenewal(){this.recordingService.clearStates(),this.Yi()}onOptout(){this.Yi(),this.recordingService.onOptOut()}onReplayUnanonymizationConsentGranted(){this.bi(),this.recordingService.triggerUnanonymizationConsentGranted(),this.S.emitRecordingContextChange()}onReplayUnanonymizationConsentWithdrawn(){this.bi(),this.recordingService.triggerUnanonymizationConsentWithdrawn(),this.S.emitRecordingContextChange()}onCollectStateChange(t,e){t===tt.QUOTA_REACHED||t===tt.ANALYTICS_ONLY&&e===ve.ETR_OFF?(this.recordingService.clearEvents(),this.Yi()):(this.B.setQueryParams({rt:csArray.prototype.join.call(this.A.getCollectStates(),",")}),this.recordingService.allowSendingEventsFromQuotaService(),this.recordingService.pushEvents(),this.En.onCollectStateChange(t,e))}onInitialDomStart(){this.recordingService.blockSendingEventsFromSerialization(),this.Ot.blockSendingLastMessage()}onInitialDomDone(t){this.recordingService.allowSendingEventsFromSerialization(),this.recordingService.addInitialDom(t),this.Ot.allowSendingLastMessage(),this.Ai.start(),this.recordingService.pushEvents()}onAfterReplayRecordingConsentGranted(){this.A.isReplayRecorded()&&!this.ie.isUrlExcludedForSessionReplay()&&(this.A.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.Pl(),this.recordingService.triggerRecordingForSessionGranted())}onAfterReplayRecordingConsentWithdrawn(){this.recordingService.isRecording()&&(this.recordingService.triggerRecordingForSessionWithdrawn(),this.recordingService.clearStates(),this.Yi())}Il(){var t,e,i,n;if(!((e=(t=this.f.experimental.sessionReplay)===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0)&&e.filterByHostSelector){let o=(n=(i=this.f.experimental.sessionReplay)===null||i===void 0?void 0:i.shadowRoot)===null||n===void 0?void 0:n.filterByHostSelector;ct(o,c=>{ee(c)&&Je.setShadowRootFilter(u=>{try{return Ae.call(u.host,c)}catch{return!1}})})}}Pl(){this.recordingService.start(),this.Ot.start(),this.S.emitRecordingContextChange()}Yi(){zg(),this.recordingService.stop(),this.Ot.stop(),this.S.emitRecordingContextChange()}kv(){this.Yi(),this.Pl()}Nv(t){let e="byteArray";this.B=this.xt.create(`${this.f.getRecordingUri()}/${Ol}`,!0,e,t,["rt","v","pid","pn","sn","uu"])}bi(){var t;let e=this.lt.shouldUseAnonymization();this.yn.setAnonymization(e),(t=this.Mv)===null||t===void 0||t.setAnonymization(e)}}return st([se("Recording.onStartTracking")],s.prototype,"onStartTracking",null),st([se("onInitialDomDone")],s.prototype,"onInitialDomDone",null),s})(),Pr=(()=>{let s;return function(r){r[r.NOT_NEEDED=1]="NOT_NEEDED",r[r.NOT_EXPRESSED=2]="NOT_EXPRESSED",r[r.WITHDRAWN=3]="WITHDRAWN",r[r.GRANTED=4]="GRANTED"}(s||(s={})),s})(),Zs=(()=>{let s;return function(r){function t(n){return n.replayConsentRequiredForSession}r.isReplayConsentNeeded=t;function e(n){return n.collectState===tt.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED||n.collectState===tt.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN}r.isRecordingBlockedByConsent=e;function i(n){return n.collectState===tt.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN}r.isRecordingWithDrawn=i}(s||(s={})),s})(),jy=(()=>{class s{constructor(t,e,i,n){this.I=t,this.A=e,this.f=i,this.Qe=n,this.Tp=!1}isNaturalPageViewSent(){return this.Tp}setNaturalPageViewSent(t){this.Tp=t}getTrackingContext(){let t=this.A.getSession();if(!t)return null;let e=this.getSessionKey();if(!e)return null;let i=this.f.projectId,n=this.f.uxaDomain,o=t.pageNumber,c=this.Qe.getPageViewType(),u=this.A.isReplayRecorded(),d=this.Dv(t);return{projectId:i,sessionKey:e,pageNumber:o,pageViewType:c,isRecording:u,uxaDomain:n,recordingConsentState:d,...this.f.smbConfig}}getSessionKey(){let t=this.I.getVisitor();return t?`${t.id}.${t.visitsCount}`:null}Dv(t){return Zs.isReplayConsentNeeded(this.f)?t.collectState===tt.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED?Pr.NOT_EXPRESSED:t.collectState===tt.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN?Pr.WITHDRAWN:Pr.GRANTED:Pr.NOT_NEEDED}}return s})(),Hy=(()=>{class s{constructor(t){this.bt=t,this.re=[]}handleCommand(t){if(be(t)&&(this.Sn(t),this.bt.isNaturalPageViewSent())){let e=this.bt.getTrackingContext();e!==null&&this.Vt(t,e)}}Sn(t){csArray.prototype.push.call(this.re,t)}executeRegisteredCallbacks(){let t=this.bt.getTrackingContext();t!==null&&csArray.prototype.map.call(this.re,e=>this.Vt(e,t))}Vt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),By=(()=>{class s{constructor(t){this.bt=t,this.Ti=[]}handleCommand(t){if(this.bt.isNaturalPageViewSent())return this.Lv(t);this.vn(t)}Lv(t){let e=this.bt.getSessionKey();return this.Rp(t)&&e!==null&&this.Vt(t.callback,e),e}vn(t){this.Rp(t)&&csArray.prototype.push.call(this.Ti,t.callback)}flushPendingCallbacks(){let t=this.bt.getSessionKey();t!==null&&csArray.prototype.forEach.call(this.Ti,e=>{this.Vt(e,t)}),this.Ti=[]}Rp(t){return t&&typeof t.callback=="function"}Vt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),Fy=(()=>{class s{constructor(t,e){this.J=t,this.bt=e}onTrackingContextRequestCallback(t){let e=this.bt.getTrackingContext();e!==null&&this.J.sendToChildren(z.TrackingContextResultMessage,{...t,trackingContext:e})}onIframeIntegrationCallback(t){if(!this.bt.isNaturalPageViewSent())return;let e=this.bt.getTrackingContext();e!==null&&(t.trackingContext=e,this.J.sendToChildren(z.IntegrationCallback,t))}sendAfterPageViewCallbackToChildren(){let t=this.bt.getTrackingContext();if(t===null)return;let e={trackingContext:t,initiator:tr.AfterPageView};this.J.sendToChildren(z.IntegrationCallback,e)}}return s})();function ku(s,r){let{isRecording:t,pageNumber:e,projectId:i,siteId:n,uxaDomain:o,csLiteDomain:c}=s,u=/^(.+)\.(\d+)$/.exec(s.sessionKey),d;if(t&&u){let[,S,f]=u;n?d=`${c}/sites/${n}/player?uu=${S}&sn=${f}&pn=${e}`:d=`${o}/quick-playback/index.html?pid=${i}&uu=${S}&sn=${f}&pvid=${e}&recordingType=cs`,r.withTimestamp&&(d+=`&t=${Q.now()-r.recordingStartTimestamp}`)}return{replayLink:d,isRecording:t}}var zy=(()=>{class s{constructor(t){this.bt=t}handleCommand(t,e){Xe(t)&&be(e)&&this.Vt(t,e)}Vt(t,e){csSetTimeout(()=>{let i=this.bt.getTrackingContext();if(i){let n=ku(i,t);e(n)}})}}return s})(),Du=(()=>{class s{constructor(){this.re=new Set}handleCommand(t,e){return!be(t)||this.re.has(t)?null:(this.re.add(t),e&&(this.be=e,this.Cp(t,e)),()=>this.re.delete(t))}executeCallbacks(t){this.xv(t)&&(this.be=t,this.re.forEach(e=>this.Cp(e,t)))}Cp(t,e){csSetTimeout(()=>{try{t(e)}catch{}})}xv(t){let{isRecording:e,recordingStartTimestamp:i,etrState:n,etrStatus:o,collectState:c}=t;return this.be&&(this.be.isRecording!==e||this.be.recordingStartTimestamp!==i||this.be.etrState!==n||this.be.etrStatus!==o||this.be.collectState!==c)}}return s})(),oo=["afterPageView"],Lu=["getSessionKey"],xu=["onRecordingContextChange","onRecordingStateChange"],Vu=["replay:link:generate"],$y=(()=>{class s{constructor(t,e,i,n,o,c,u,d){this.I=t,this.A=e,this.E=i,this.pt=n,this.J=o,this.f=c,this.Qe=u,this.Gs=d}init(){this.bt=new jy(this.I,this.A,this.f,this.Qe),this.Ol=new Hy(this.bt),this.Ip=new By(this.bt),this._n=new Du,this.Uv=new zy(this.bt),this.Nl=new Fy(this.J,this.bt),this.pt.addListener(this.Nl),this.E.register(Lu,t=>this.Ip.handleCommand(t)),this.E.register(oo,t=>this.Ol.handleCommand(t)),this.E.register(xu,t=>this._n.handleCommand(t,this.Gs.getRecordingContext())),this.E.register(Vu,(t,e)=>{this.Xi&&this.Uv.handleCommand({...t,recordingStartTimestamp:this.Gs.getRecordingContext().recordingStartTimestamp},e)})}onAfterNaturalPageView(){this.bt.setNaturalPageViewSent(!0),this.Ip.flushPendingCallbacks(),this.Ol.executeRegisteredCallbacks(),this.Nl.sendAfterPageViewCallbackToChildren()}onAfterArtificialPageView(){this.Ol.executeRegisteredCallbacks(),this.Nl.sendAfterPageViewCallbackToChildren()}onCollectStateChange(){this.executeRecordingContextChangeCallbacks()}onRecordingContextChange(){this.executeRecordingContextChangeCallbacks()}executeRecordingContextChangeCallbacks(){this._n.executeCallbacks(this.Gs.getRecordingContext())}setRecordingService(t){this.Xi=t}}return st([cr({wait:0,mode:"trailing"})],s.prototype,"executeRecordingContextChangeCallbacks",null),s})(),Gy=512,qy=255,xr=(()=>{class s{constructor(t,e){this.key=csString.prototype.slice.call(t,0,Gy),this.value=V(e)?csString.prototype.slice.call(e,0,qy):e}static isKeyValid(t){return V(t)}static isValueValid(t){return V(t)||Ns(t)}}return s})(),Wy=(()=>{class s extends ae{constructor(t,e){super(),this.Gt=t,this.N=e,this.Ml=[]}onStart(){csArray.prototype.forEach.call(this.Ml,t=>this.Pp(t.key,t.value)),this.Ml=[]}onStop(){}Pp(t,e){let i=this.N.anonymizePII(t),n=Ns(e)?e:this.N.anonymizePII(e);this.Gt.add(new xr(i,n))}trackDynamicVariable(t,e){if(xr.isKeyValid(t)&&xr.isValueValid(e)){if(!this.isStarted){csArray.prototype.push.call(this.Ml,{key:t,value:e});return}this.Pp(t,e)}else throw new Error(`Command misuse: ${Gr[0]}`)}}return s})(),Yy=(()=>{class s{constructor(t){this.he=t,this.Gt=[]}add(t){csArray.prototype.push.call(this.Gt,t),this.setBatchReadyCall()}clear(){this.Gt=[]}onBatchReady(t){this.jv=t}getRequestParameters(){let t={};for(let e of this.Gt)t[e.key]=e.value;return{dv:this.he.compressSync(csJSON.stringify(t),"base64"),ct:this.he.algorithm}}setBatchReadyCall(){this.jv()}}return st([cr({wait:0,mode:"trailing"}),G("dynamicVariablesBatchReady")],s.prototype,"setBatchReadyCall",null),s})(),Xy="dvar",Gr=["trackDynamicVariable"],Ky=(()=>{class s{constructor(t,e,i,n,o,c){this.E=t,this.A=e,this.f=i,this.ze=n,this.he=o,this.N=c,this.hs=new Zi(this.f.getTrackerUri(),Xy),this.Gt=new Yy(this.he),this.Ze=new Wy(this.Gt,this.N)}init(){this.hs.setRequestParametersProviders(this.ze,this.Gt),this.A.setDynamicVariablesService(this.Ze),this.Gt.onBatchReady(()=>this.hs.send()),this.hs.after(()=>this.Gt.clear()),this.E.register(Gr,({key:t,value:e}={})=>{this.Ze.trackDynamicVariable(t,e)})}onStartTracking(){this.Ze.start()}}return s})(),Da=(()=>{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)),V(t.currency)&&t.currency.length<=10&&(e.currency=t.currency),e}hasValidRevenue(){return!isNaN(this.revenue)&&this.revenue>=0}static isValid(t){return Vt(t)&&te(t.revenue)&&V(t.currency)&&t.currency.length<=10&&(!Vt(t.id)||V(t.id))}}return s})(),Uu=100,Jy=100,Qy=(()=>{class s{constructor(t,e,i,n){this.id=t,this.name=e,this.price=i,this.quantity=n}static from(t){if(!s.kl(t))return null;let e=new s(t.id,t.name,parseFloat(t.price),parseInt(t.quantity,10));return mt(t.sku)&&(e.sku=t.sku),mt(t.category)&&(e.category=t.category),mt(t.merchant)&&t.merchant.length>0&&(e.merchant=t.merchant.slice(0,Uu)),e}static kl(t){return Vt(t)&&V(t.id)&&V(t.name)&&te(parseFloat(t.price))&&Ns(parseInt(t.quantity,10))&&(!mt(t.sku)||V(t.sku))&&(!mt(t.category)||V(t.category))&&(!mt(t.merchant)||V(t.merchant))}}return s})(),ju=(()=>{class s extends ae{constructor(t,e,i){super(),this.N=t,this.Op=e,this.Q=i,this.Dl=[],this.clear()}onStart(){csArray.prototype.forEach.call(this.Dl,t=>{this.ue=t.transaction,this.wn=t.transactionItems,this.sendTransaction()}),this.Dl=[]}onStop(){}addTransaction(t){let e=this.N.anonymizeFields(t,["id"]);this.ue=Da.from(e)}getTransaction(){return this.ue}sendTransaction(){if(!this.isStarted){csArray.prototype.push.call(this.Dl,{transaction:this.ue,transactionItems:[...this.wn]}),this.clear();return}if(!(this.Op===null||this.Q===null)&&(this.Q.refreshSession(),!!this.Q.isSessionValid())){if(!this.ue.hasValidRevenue()){Y.warn("Transaction Service: unable to send transaction with invalid parameters");return}this.Op.send()}}addItem(t){if(be(t))throw new Error(`Command misuse: ${lr[1]}`);let e=this.N.anonymizeFields(t,["id","name","sku","category"]),i=Qy.from(e);i!==null&&csArray.prototype.push.call(this.wn,i)}getItems(){return this.wn}clear(){this.ue=Da.from({revenue:NaN}),this.wn=[]}getRequestParameters(){let t={id:this.ue.id?`${this.ue.id}`:"",revenue:`${this.ue.revenue}`};return mt(this.ue.tax)&&(t.tax=`${this.ue.tax}`),mt(this.ue.shipping)&&(t.shipping=`${this.ue.shipping}`),mt(this.ue.currency)&&(t.cu=`${this.ue.currency}`),t.items=window.csJSON.stringify(this.wn),t}}return s})(),Zy=(()=>{class s extends ae{constructor(t,e){super(),this.Hv=t,this.Q=e,this.Te=null,this.Ll=[]}onStart(){csArray.prototype.forEach.call(this.Ll,t=>{this.Te=t,this.Np()}),this.Ll=[]}onStop(){}addToCart(t){let e={};V(t.sku)&&(e.sku=csString.prototype.slice.call(t.sku,0,Jy)),V(t.merchant)&&(e.merchant=csString.prototype.slice.call(t.merchant,0,Uu)),(e.sku||e.merchant)&&(this.Te=e,this.Np())}getCartItem(){return this.Te}Np(){if(!this.isStarted&&this.Te!==null){csArray.prototype.push.call(this.Ll,this.Te),this.clear();return}this.Q.refreshSession(),this.Q.isSessionValid()&&this.Hv.send()}clear(){this.Te=null}getRequestParameters(){if(!this.Te)return{};let t={};return V(this.Te.sku)&&this.Te.sku.length>0&&(t.sku=this.Te.sku),V(this.Te.merchant)&&this.Te.merchant.length>0&&(t.me=this.Te.merchant),t}}return s})(),Hu=["ecommerce:addToCart","ec:cart:add"],qr=["ecommerce:addTransaction","ec:transaction:create"],lr=["ecommerce:addItem","ec:transaction:items:add"],Wr=["ecommerce:send","ec:transaction:send"],tE=(()=>{class s{constructor(t,e,i,n,o,c,u){this.f=t,this.nt=e,this.I=i,this.E=n,this.N=o,this.Q=c,this.R=u}init(){let t=new Zi(this.f.getTrackerUri(),"transaction"),e=new Zi(this.f.getTrackerUri(),"addtocart");this.es=new ju(this.N,t,this.Q),this.Jo=new Zy(e,this.Q);let i=new jr(this.nt,this.I,this.R,this.es);t.setRequestParametersProviders(i),t.after(()=>{this.es.clear()});let n=new jr(this.nt,this.I,this.R,this.Jo);e.setRequestParametersProviders(n),e.after(()=>{this.Jo.clear()}),this.E.register(qr,o=>{this.es.addTransaction(o)}),this.E.register(lr,o=>this.es.addItem(o)),this.E.register(Wr,()=>this.es.sendTransaction()),this.E.register(Hu,o=>{this.Jo.addToCart(o)})}onStartTracking(){this.es.start(),this.Jo.start()}}return s})(),eE=(()=>{class s{constructor(t){this.Qo=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.Qo.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.Qo&&this.Qo.timing&&this.Qo.timing.loadEventEnd>0)}}return s})(),Se=(()=>{class s{static build(t,e,i){return csArray.prototype.reduce.call(i,(n,o)=>o.enhanceAnalysisEvent(t,n),e)}}return s})(),ot=(()=>{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})(),na=(()=>{let s;return function(r){r.SUCCESS="success",r.FAILURE="failure",r.ATTEMPT="attempt"}(s||(s={})),s})();function sE(s){return s.tgtHM!==void 0}function Bu(s){return s.tgt!==void 0}function iE(s){return s.tgtLk!==void 0}function rE(s){return s.x!==void 0&&s.y!==void 0}function nE(s){return s===na.SUCCESS||s===na.FAILURE||s===na.ATTEMPT}var Fu=(()=>{class s{constructor(t,e,i){this.ne=t,this.Ut=e,this.wt=i}processGesture(t,e){switch(t.type){case Xt.TAP:this.zv(e);break;case Xt.FLICK:this.$v(t,e);break;case Xt.DRAG:this.Gv(t,e);break;default:break}}zv(t){let e={type:ot.TAP,ts:0,x:0,y:0,tgt:""},i=Se.build(t,e,this.ne);i.tgt!==hs.INVALID_ELEMENT&&this.D(i)}Gv(t,e){var i,n;let o={type:ot.DRAG,ts:0,fd:t.direction,tgt:""};!((i=this.wt)===null||i===void 0)&&i.collectGestureDistance&&(o.distance=t.distance),!((n=this.wt)===null||n===void 0)&&n.collectGestureVelocity&&(o.velocity=t.velocity);let c=Se.build(e,o,this.ne);c.tgt!==hs.INVALID_ELEMENT&&this.D(c)}$v(t,e){var i,n;let o={type:ot.FLICK,ts:0,fd:t.direction,tgt:""};!((i=this.wt)===null||i===void 0)&&i.collectGestureDistance&&(o.distance=t.distance),!((n=this.wt)===null||n===void 0)&&n.collectGestureVelocity&&(o.velocity=t.velocity);let c=Se.build(e,o,this.ne);c.tgt!==hs.INVALID_ELEMENT&&this.D(c)}onEvent(t){this.D=t}start(){this.Ut.subscribe(s.Mp,(t,e)=>this.processGesture(t,e))}stop(){this.Ut.unsubscribe(s.Mp)}}return s.Mp="AnalysisGestureTracker",st([Nt()],s.prototype,"processGesture",null),s})(),zu=(()=>{class s{constructor(t,e,i,n=["submit"]){this.ne=t,this.ft=e,this.jt=i,this.qv=n,this.kp="select, select *, input, textarea",this.Wv="select, select *, input, textarea",this.Dp="a, a *, button, button *, select, select *, input, textarea",this.bn="input, select, textarea",this.Yv="form",this.Zo=150,this.Xv=400,this.Lp=!1,this.An=ka((o,c)=>this.scrollListener(o,c),this.Zo),this.xp=ka(o=>this.resizeListener(o),this.Zo),this.Kv=so(o=>this.mouseMoveListener(o),this.Xv),this.Jv=[{boundElement:window,type:"resize",listener:()=>this.xp()},{boundElement:document,type:"scroll",listener:o=>this.An(o)},{boundElement:window,type:"mousemove",listener:o=>{this.Kv(Vg(o))}},{boundElement:document,type:"mousedown",listener:o=>this.mouseDownListener(o)},{boundElement:document,type:"mouseup",listener:o=>this.mouseUpListener(o)},{boundElement:document,type:"click",listener:o=>this.clickListener(o)}],this.Vp=[{type:"change",listener:this.jt.on(this.Wv,o=>this.changeListener(o))},{type:"submit",listener:this.jt.on(this.Yv,o=>this.submitListener(o))}],this.Qv=[{boundElement:document,type:"mouseover",listener:this.jt.on(this.Dp,o=>this.mouseOverListener(o))},{boundElement:document,type:"mouseout",listener:this.jt.on(this.Dp,o=>this.mouseOutListener(o))},{boundElement:document,type:"focusin",listener:this.jt.on(this.kp,o=>this.focusInListener(o))},{boundElement:document,type:"focusout",listener:this.jt.on(this.kp,o=>this.focusOutListener(o))},{boundElement:document,type:"keyup",listener:this.jt.on(this.bn,o=>this.keyUpListener(o))},{boundElement:document,type:"keydown",listener:this.jt.on(this.bn,o=>this.keyDownListener(o))},{boundElement:document,type:"copy",listener:this.jt.on(this.bn,o=>this.copyListener(o))},{boundElement:document,type:"cut",listener:this.jt.on(this.bn,o=>this.cutListener(o))},{boundElement:document,type:"paste",listener:this.jt.on(this.bn,o=>this.pasteListener(o))},...csArray.prototype.map.call(this.Vp,o=>({...o,boundElement:document}))],this.U={},this.Lc=(o,c)=>{switch(c){case"initial":case"added":this.pi(o);break;case"removed":this.fi(o);break}},this.ae=new ar(this.Lc),this._c()}pi(t){if(jn(t)){let e=this.Up();csArray.prototype.forEach.call(e,i=>Lt(i))}else{let e=this.jp();csArray.prototype.forEach.call(e,i=>{Lt({...i,boundElement:t})})}}fi(t){if(jn(t)){let e=this.Up();csArray.prototype.forEach.call(e,i=>xt(i))}else{let e=this.jp();csArray.prototype.forEach.call(e,i=>{xt({...i,boundElement:t})})}}onEvent(t){this.D=t}start(){this.ae.observe(),this.pi(document),this.resizeListener()}stop(){this.fi(document),this.ae.disconnect()}flushPendingDebouncedListeners(){this.An.flushPending(),this.xp.flushPending()}Hp(t){return csArray.prototype.some.call(this.qv,e=>e===t)}jp(){return this.jt.isMatchesSelectorSupported()?csArray.prototype.filter.call(this.Vp,t=>!this.Hp(t.type)):(Y.warn("Element.matches is not implemented yet"),[])}Up(){let t=[];return csArray.prototype.push.call(t,...this.Jv),this.jt.isMatchesSelectorSupported()?csArray.prototype.push.call(t,...this.Qv):Y.warn("Element.matches is not implemented yet"),csArray.prototype.filter.call(t,e=>!this.Hp(e.type))}resizeListener(t){let e=Xi.getScrollContainer(),i=Ms(e);i&&(this.Lp=!0);let n={type:ot.RESIZE,ts:0,x:i?e.clientWidth:Kt.windowWidth(),y:i?e.clientHeight:Kt.windowHeight()};t!==void 0&&(n.d=t),this.D(n)}scrollListener(t,e){let i=Xi.isEventOnScrollContainer(e);!this.Lp&&i&&this.resizeListener();let n={type:ot.SCROLL,ts:0,x:i?csEventtarget.apply(e).scrollLeft:Kt.windowOffsetX(),y:i?csEventtarget.apply(e).scrollTop:Kt.windowOffsetY(),d:t},o=Se.build(e,n,this.ne);this.D(o)}mouseMoveListener(t){let e={type:ot.MOUSEMOVE,ts:0,x:t.pageX,y:t.pageY},i=Se.build(t,e,this.ne);this.D(i)}mouseDownListener(t){let e={type:ot.MOUSEDOWN,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Se.build(t,e,this.ne);this.de(i)}mouseUpListener(t){let e={type:ot.MOUSEUP,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Se.build(t,e,this.ne);this.de(i)}clickListener(t){let e={type:ot.CLICK,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Se.build(t,e,this.ne);this.de(i)}mouseOverListener(t){let e={type:ot.MOUSEOVER,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Se.build(t,e,this.ne);this.de(i)}mouseOutListener(t){let e={type:ot.MOUSEOUT,ts:0,x:t.pageX,y:t.pageY,tgt:this.ft.getEventTargetPath(t)},i=Se.build(t,e,this.ne);this.de(i)}focusInListener(t){let e={type:ot.FOCUSIN,ts:0,tgt:this.ft.getEventTargetPath(t)},i=Se.build(t,e,this.ne);this.de(i)}focusOutListener(t){let e={type:ot.FOCUSOUT,ts:0,tgt:this.ft.getEventTargetPath(t)},i=Se.build(t,e,this.ne);this.de(i)}changeListener(t){let e={type:ot.CHANGE,ts:0,tgt:""},i=Se.build(t,e,this.ne);this.de(i)}submitListener(t){let e={type:ot.SUBMIT,ts:0,tgt:""},i=Se.build(t,e,this.ne);this.de(i)}copyListener(t){let e={type:ot.COMMAND,ts:0,tgt:this.ft.getEventTargetPath(t),key:Ki.COPY};this.de(e)}cutListener(t){let e={type:ot.COMMAND,ts:0,tgt:this.ft.getEventTargetPath(t),key:Ki.CUT};this.de(e)}pasteListener(t){let e={type:ot.COMMAND,ts:0,tgt:this.ft.getEventTargetPath(t),key:Ki.PASTE};this.de(e)}keyUpListener(t){let e={type:ot.KEYUP,ts:0,tgt:this.ft.getEventTargetPath(t),key:this.Bp(t)};this.de(e)}keyDownListener(t){let e={type:ot.KEYDOWN,ts:0,tgt:this.ft.getEventTargetPath(t),key:this.Bp(t)};this.de(e)}Bp(t){let e=this.U[t.key];return e===void 0?dt.ALPHANUMERICAL:e}de(t){Bu(t)&&t.tgt!==hs.INVALID_ELEMENT&&this.D(t)}_c(){this.U[" "]=dt.SPACE,this.U.Spacebar=dt.SPACE,this.U.Enter=dt.ENTER,this.U.Backspace=dt.BACKSPACE,this.U.Delete=dt.DELETE,this.U.ArrowUp=dt.ARROWUP,this.U.ArrowDown=dt.ARROWDOWN,this.U.ArrowLeft=dt.ARROWLEFT,this.U.ArrowRight=dt.ARROWRIGHT,this.U.Up=dt.ARROWUP,this.U.Down=dt.ARROWDOWN,this.U.Left=dt.ARROWLEFT,this.U.Right=dt.ARROWRIGHT,this.U.CapsLock=dt.CAPSLOCK,this.U.Shift=dt.SHIFT,this.U.Tab=dt.TAB}}return st([G("Event handler type: resize")],s.prototype,"resizeListener",null),st([G("Event handler type: scroll")],s.prototype,"scrollListener",null),st([G("Event handler type: mouseMove"),Nt()],s.prototype,"mouseMoveListener",null),st([G("Event handler type: mouseDown"),Nt()],s.prototype,"mouseDownListener",null),st([G("Event handler type: mouseUp"),Nt()],s.prototype,"mouseUpListener",null),st([G("Event handler type: click"),Nt()],s.prototype,"clickListener",null),st([G("Event handler type: mouseOver"),Nt()],s.prototype,"mouseOverListener",null),st([G("Event handler type: mouseOut"),Nt()],s.prototype,"mouseOutListener",null),st([G("Event handler type: focusIn")],s.prototype,"focusInListener",null),st([G("Event handler type: focusOut")],s.prototype,"focusOutListener",null),st([G("Event handler type: change")],s.prototype,"changeListener",null),st([G("Event handler type: submit"),Nt()],s.prototype,"submitListener",null),st([G("Event handler type: copy")],s.prototype,"copyListener",null),st([G("Event handler type: cut")],s.prototype,"cutListener",null),st([G("Event handler type: paste")],s.prototype,"pasteListener",null),st([G("Event handler type: keyup")],s.prototype,"keyUpListener",null),st([G("Event handler type: keydown")],s.prototype,"keyDownListener",null),s})(),oE=(()=>{class s{constructor(){this.Fp=100,this.Tn=0,this.Rn=Kt.documentHeight(),this.zp={boundElement:document,type:"scroll",listener:t=>this.maxScrollRateListener(t)},this.Tn=this.xl(Xi.getScrollContainer()).maxScrollRate}onEvent(t){this.D=t}start(){Lt(this.zp)}stop(){xt(this.zp)}reset(){let t=Xi.getScrollContainer(),{maxScrollRate:e,maxDocumentHeight:i}=this.xl(t);this.Rn=i,this.Tn=e,this.D()}xl(t){let e=0,i=0;if(t===null)i=Kt.documentHeight(),e=this.Zv(i);else{let n=this.t_(t);i=this.$p(t,n),e=this.e_(t,n)}return{maxScrollRate:e,maxDocumentHeight:i}}maxScrollRateListener(t){let e=null;Xi.isEventOnScrollContainer(t)&&(e=csEventtarget.apply(t));let{maxScrollRate:i,maxDocumentHeight:n}=this.xl(e);(i>this.Tn||n>this.Rn)&&(this.Tn=i,n>this.Rn&&(this.Rn=n),this.D())}Zv(t){let e=Math.round(this.s_()/t*100);return Math.min(e,this.Fp)}s_(){let t=Kt.windowHeight();return Kt.windowOffsetY()+t}e_(t,e){let i=t.scrollTop+t.clientHeight+t.getBoundingClientRect().top+e,n=this.$p(t,e),o=Math.round(i/n*100);return Math.min(o,this.Fp)}t_(t){let e=window.getComputedStyle(t).paddingTop||"0px";return parseInt(e,10)}$p(t,e){return t.scrollHeight+t.getBoundingClientRect().top+e}getRequestParameters(){return{sr:`${this.Tn}`,mdh:`${this.Rn}`}}}return st([G("MaxScrollRate handler")],s.prototype,"maxScrollRateListener",null),s})();var aE=(()=>{class s{constructor(t,e,i,n,o,c,u,d,S,f,_,w,T,N,x,O,C,$,U,L,Z){this.f=t,this.Ws=e,this.Ut=i,this.Ki=n,this.Vl=o,this.$e=c,this.ss=u,this.Gp=d,this.Q=S,this.Jt=f,this.K=_,this.Ul=w,this.je=T,this.B=N,this.ta=x,this.vs=O,this._s=C,this.jl=$,this.Ri=U,this.Ci=L,this.Ii=Z,this.Vs=new fc,this.sa=!1}init(){var t,e,i,n,o,c,u;this.Ws.onEvent(d=>this.Nt(d)),this.Ut.onEvent(d=>this.Nt(d)),this.Ki.onEvent(()=>{let d=this.Ki.getRequestParameters();this.B.setQueryParams(d),this.ss.setQueryParams(d)}),this.Ul.onEvent(d=>this.Ge(d)),this.Hl(),(t=this.ta)===null||t===void 0||t.onEvent(d=>this.Nt(d)),(e=this.Ri)===null||e===void 0||e.onEvent(d=>this.Nt(d)),(i=this.vs)===null||i===void 0||i.onEvent(d=>this.Nt(d)),(n=this._s)===null||n===void 0||n.onEvent(d=>this.Nt(d)),this.i_(),(o=this.jl)===null||o===void 0||o.onEvent(d=>this.Ge(d)),(c=this.Ci)===null||c===void 0||c.onEvent(d=>this.Ge(d)),(u=this.Ii)===null||u===void 0||u.onEvent(d=>this.Ge(d))}i_(){this.ss.onBeaconSuccess(()=>{this.$e.clearEvents()}),this.ss.onBeaconFailure(t=>{this.r_(t)})}initStates(){let t=this.Gp.getRequestParameters(),e=this.Vl.getRequestParameters(),i=this.Ki.getRequestParameters();this.B.setQueryParams(t),this.B.setQueryParams(e),this.B.setQueryParams(i),this.ss.setQueryParams(t),this.ss.setQueryParams(e),this.ss.setQueryParams(i),this.Bl()}clearStates(t){var e,i;this.Ws.flushPendingDebouncedListeners(),(e=this.vs)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(i=this._s)===null||i===void 0||i.flushPendingTextHighlightEvent(),t?(this.Fl(),this.sendLastMessageBeacon()):this.sendEvents(),this.Ki.reset(),this.B.removeQueryParams()}start(t){var e,i,n,o,c,u,d;t||(e=this.jl)===null||e===void 0||e.start(),this.je.start(),this.Ws.start(),this.Ki.start(),this.Ut.start(),(i=this.ta)===null||i===void 0||i.start(),(n=this._s)===null||n===void 0||n.start(),t||this.Ul.start(),(o=this.vs)===null||o===void 0||o.start(),(c=this.Ri)===null||c===void 0||c.start(),(u=this.Ci)===null||u===void 0||u.start(),(d=this.Ii)===null||d===void 0||d.start()}collectInitialEvents(){var t;(t=this.ta)===null||t===void 0||t.collectInitialEvents()}onIframeAnalysisBrowserEvent(t){this.Ge(t)}onIframeAnalysisUserEvent(t){this.Nt(t)}onExternalEvent(t){this.X(t)}Ge(t){this.Q.isCurrentPageviewValid()&&this.X(t)}Nt(t){this.Q.refreshSession(),this.Q.isSessionValid()&&this.X(t)}X(t){this.$e.addEvent(this.n_(t)),this.$e.isFull()&&this.sendEvents(),this.f.emitDebugEvents&&this.Vs.emit("analysisEvent",{...t,typeName:ot[t.type]})}n_(t){return t.ts=this.Pi(),t}Fl(){this.ss.setQueryParams({hlm:"true"}),this.sa=!0}sendLastMessageBeacon(){this.ss.setQueryParams(this.Vl.getRequestParameters()),this.ss.send(this.$e.stringifyEvents()),this.ss.removeQueryParams(["hlm"]),this.sa=!1}sendEvents(){this.$e.isEmpty()||(this.B.setQueryParams(this.Gp.getRequestParameters()),this.B.setQueryParams(this.Vl.getRequestParameters()),this.B.send(this.$e.getEvents()),this.$e.clearEvents())}stop(){var t,e,i,n,o,c,u;this.je.stop(),this.Ws.stop(),this.Ki.stop(),this.Ut.stop(),this.Ul.stop(),(t=this.ta)===null||t===void 0||t.stop(),(e=this.vs)===null||e===void 0||e.stop(),(i=this._s)===null||i===void 0||i.stop(),(n=this.Ri)===null||n===void 0||n.stop(),this.$e.empty(),(o=this.jl)===null||o===void 0||o.stop(),(c=this.Ci)===null||c===void 0||c.stop(),(u=this.Ii)===null||u===void 0||u.stop()}Bl(){this.is=Q.now()}Pi(){return Q.now()-this.is}Hl(){this.je.onEvent(t=>{var e,i;t!==je.Visible&&((e=this.vs)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(i=this._s)===null||i===void 0||i.flushPendingTextHighlightEvent(),t===je.PagehideVisible?this.Fl():t===je.PagehideHidden?(this.Fl(),this.sendLastMessageBeacon()):(!this.$e.isEmpty()||this.sa)&&this.sendLastMessageBeacon())})}r_(t){try{(!this.$e.isEmpty()||this.sa)&&this.Jt.save({requestParameters:t,events:this.$e.getEvents()})}catch{}}pushSubmitCommandEvent(t,e){if(!nE(t)||!Ms(e))throw new Error(`Command misuse: ${Rc}`);let i={status:t,type:ot.SUBMIT_COMMAND,ts:0,tgt:this.K.getElementPath(e)};i.tgt!==hs.INVALID_ELEMENT&&this.Ge(i)}}return s})(),cE=(()=>{class s{constructor(t,e){this.Jt=t,this.B=e,this.qp=()=>{document.visibilityState==="visible"&&this.Wp()}}start(){this.Wp(),this.Uc()}stop(){this.jc()}getRecoveryStorage(){return this.Jt}Wp(){let t=this.Jt.recover();if(t!==null){let{requestParameters:e,events:i}=t;this.B.send(i,e)}}Uc(){document.addEventListener("visibilitychange",this.qp)}jc(){document.removeEventListener("visibilitychange",this.qp)}}return s})(),lE=(()=>{class s{constructor(t){this.$i=t}save(t){localStorage.setItem(this.$i,csJSON.stringify(t))}clear(){localStorage.removeItem(this.$i)}recover(){let t=localStorage.getItem(this.$i);if(t===null)return null;let e=null;try{e=csJSON.parse(t)}catch{Y.error(`Invalid item in localStorage. (key:${this.$i}; value:${t})`)}finally{this.clear()}return e}}return s})(),hE=(()=>{class s{constructor(t){this.Cn=t,this.In=e=>this.processMetric(e),this.L=!1}onEvent(t){this.D=t}start(){this.L||(this.L=!0,this.Cn.onFCP(this.In),this.Cn.onCLS(this.In),this.Cn.onLCP(this.In),this.Cn.onTTFB(this.In),this.Cn.onINP(this.In))}stop(){this.L=!1}processMetric(t){if(!this.L)return;let e={type:ot.PERFORMANCE,name:t.name,val:t.value,ts:0};this.D(e)}}return st([G("Performance metric handler")],s.prototype,"processMetric",null),s})(),$u=-1,hr=s=>{addEventListener("pageshow",r=>{r.persisted&&($u=r.timeStamp,s(r))},!0)},ds=(s,r,t,e)=>{let i,n;return o=>{r.value>=0&&(o||e)&&(n=r.value-(i!=null?i:0),(n||i===void 0)&&(i=r.value,r.delta=n,r.rating=((c,u)=>c>u[1]?"poor":c>u[0]?"needs-improvement":"good")(r.value,t),s(r)))}},wc=s=>{requestAnimationFrame(()=>requestAnimationFrame(()=>s()))},bc=()=>{let s=performance.getEntriesByType("navigation")[0];if(s&&s.responseStart>0&&s.responseStart{var r;let s=bc();return(r=s==null?void 0:s.activationStart)!=null?r:0},ps=(s,r=-1)=>{let t=bc(),e="navigate";return $u>=0?e="back-forward-cache":t&&(document.prerendering||Yr()>0?e="prerender":document.wasDiscarded?e="restore":t.type&&(e=t.type.replace(/_/g,"-"))),{name:s,value:r,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:e}},oa=new WeakMap;function Ac(s,r){return oa.get(s)||oa.set(s,new r),oa.get(s)}var La=class{constructor(){bs(this,"t");bs(this,"i",0);bs(this,"o",[])}h(r){var i;if(r.hadRecentInput)return;let t=this.o[0],e=this.o.at(-1);this.i&&t&&e&&r.startTime-e.startTime<1e3&&r.startTime-t.startTime<5e3?(this.i+=r.value,this.o.push(r)):(this.i=r.value,this.o=[r]),(i=this.t)==null||i.call(this,r)}},Xr=(s,r,t={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(s)){let e=new PerformanceObserver(i=>{Promise.resolve().then(()=>{r(i.getEntries())})});return e.observe({type:s,buffered:!0,...t}),e}}catch{}},Tc=s=>{let r=!1;return()=>{r||(s(),r=!0)}},Yi=-1,Nl=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Yn=s=>{document.visibilityState==="hidden"&&Yi>-1&&(Yi=s.type==="visibilitychange"?s.timeStamp:0,uE())},Ml=()=>{addEventListener("visibilitychange",Yn,!0),addEventListener("prerenderingchange",Yn,!0)},uE=()=>{removeEventListener("visibilitychange",Yn,!0),removeEventListener("prerenderingchange",Yn,!0)},Gu=()=>{var s;if(Yi<0){let r=Yr(),t=document.prerendering||(s=globalThis.performance.getEntriesByType("visibility-state").filter(e=>e.name==="hidden"&&e.startTime>r)[0])==null?void 0:s.startTime;Yi=t!=null?t:Nl(),Ml(),hr(()=>{setTimeout(()=>{Yi=Nl(),Ml()})})}return{get firstHiddenTime(){return Yi}}},ao=s=>{document.prerendering?addEventListener("prerenderingchange",()=>s(),!0):s()},kl=[1800,3e3],qu=(s,r={})=>{ao(()=>{let t=Gu(),e,i=ps("FCP"),n=Xr("paint",o=>{for(let c of o)c.name==="first-contentful-paint"&&(n.disconnect(),c.startTime{i=ps("FCP"),e=ds(s,i,kl,r.reportAllChanges),wc(()=>{i.value=performance.now()-o.timeStamp,e(!0)})}))})},Dl=[.1,.25],dE=(s,r={})=>{qu(Tc(()=>{let t,e=ps("CLS",0),i=Ac(r,La),n=c=>{for(let u of c)i.h(u);i.i>e.value&&(e.value=i.i,e.entries=i.o,t())},o=Xr("layout-shift",n);o&&(t=ds(s,e,Dl,r.reportAllChanges),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(n(o.takeRecords()),t(!0))}),hr(()=>{i.i=0,e=ps("CLS",0),t=ds(s,e,Dl,r.reportAllChanges),wc(()=>t())}),setTimeout(t))}))},Wu=0,aa=1/0,Cn=0,pE=s=>{for(let r of s)r.interactionId&&(aa=Math.min(aa,r.interactionId),Cn=Math.max(Cn,r.interactionId),Wu=Cn?(Cn-aa)/7+1:0)},xa,Ll=()=>{var s;return xa?Wu:(s=performance.interactionCount)!=null?s:0},fE=()=>{"interactionCount"in performance||xa||(xa=Xr("event",pE,{type:"event",buffered:!0,durationThreshold:0}))},xl=0,Va=class{constructor(){bs(this,"u",[]);bs(this,"l",new Map);bs(this,"m");bs(this,"p")}v(){xl=Ll(),this.u.length=0,this.l.clear()}P(){let r=Math.min(this.u.length-1,Math.floor((Ll()-xl)/50));return this.u[r]}h(r){var i,n;if((i=this.m)==null||i.call(this,r),!r.interactionId&&r.entryType!=="first-input")return;let t=this.u.at(-1),e=this.l.get(r.interactionId);if(e||this.u.length<10||r.duration>t.T){if(e?r.duration>e.T?(e.entries=[r],e.T=r.duration):r.duration===e.T&&r.startTime===e.entries[0].startTime&&e.entries.push(r):(e={id:r.interactionId,entries:[r],T:r.duration},this.l.set(e.id,e),this.u.push(e)),this.u.sort((o,c)=>c.T-o.T),this.u.length>10){let o=this.u.splice(10);for(let c of o)this.l.delete(c.id)}(n=this.p)==null||n.call(this,e)}}},Yu=s=>{let r=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?s():(r(s=Tc(s)),document.addEventListener("visibilitychange",s,{once:!0}))},Vl=[200,500],gE=(s,r={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&ao(()=>{var c;fE();let t,e=ps("INP"),i=Ac(r,Va),n=u=>{Yu(()=>{for(let S of u)i.h(S);let d=i.P();d&&d.T!==e.value&&(e.value=d.T,e.entries=d.entries,t())})},o=Xr("event",n,{durationThreshold:(c=r.durationThreshold)!=null?c:40});t=ds(s,e,Vl,r.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(n(o.takeRecords()),t(!0))}),hr(()=>{i.v(),e=ps("INP"),t=ds(s,e,Vl,r.reportAllChanges)}))})},Ua=class{constructor(){bs(this,"m")}h(r){var t;(t=this.m)==null||t.call(this,r)}},Ul=[2500,4e3],mE=(s,r={})=>{ao(()=>{let t=Gu(),e,i=ps("LCP"),n=Ac(r,Ua),o=u=>{r.reportAllChanges||(u=u.slice(-1));for(let d of u)n.h(d),d.startTime{o(c.takeRecords()),c.disconnect(),e(!0)});for(let d of["keydown","click","visibilitychange"])addEventListener(d,()=>Yu(u),{capture:!0,once:!0});hr(d=>{i=ps("LCP"),e=ds(s,i,Ul,r.reportAllChanges),wc(()=>{i.value=performance.now()-d.timeStamp,e(!0)})})}})},jl=[800,1800],ja=s=>{document.prerendering?ao(()=>ja(s)):document.readyState!=="complete"?addEventListener("load",()=>ja(s),!0):setTimeout(s)},yE=(s,r={})=>{let t=ps("TTFB"),e=ds(s,t,jl,r.reportAllChanges);ja(()=>{let i=bc();i&&(t.value=Math.max(i.responseStart-Yr(),0),t.entries=[i],e(!0),hr(()=>{t=ps("TTFB",0),e=ds(s,t,jl,r.reportAllChanges),e(!0)}))})},EE=(()=>{class s{onFCP(t){try{qu(t,{reportAllChanges:!0})}catch{bt.counters.webVitalsErrors.count("FCP")}}onCLS(t){try{dE(t,{reportAllChanges:!0})}catch{bt.counters.webVitalsErrors.count("CLS")}}onLCP(t){try{mE(t,{reportAllChanges:!0})}catch{bt.counters.webVitalsErrors.count("LCP")}}onTTFB(t){try{yE(t,{reportAllChanges:!0})}catch{bt.counters.webVitalsErrors.count("TTFB")}}onINP(t){try{gE(t,{reportAllChanges:!0})}catch{bt.counters.webVitalsErrors.count("INP")}}}return s})();var co=(()=>{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})(),SE=(()=>{class s extends co{constructor(){super(...arguments),this.supportedEventTypes=[ot.CHANGE],this.P_=["text","email","number","search","tel","url","password"]}baseEnhanceAnalysisEvent(t,e){let i=Zt(t);return Zn(i)&&csArray.prototype.indexOf.call(this.P_,i.type)>=0&&(e.isBlank=i.value===""),e}}return s})();var Xu=(()=>{class s extends co{constructor(t){super(),this.ft=t,this.supportedEventTypes=[ot.MOUSEDOWN,ot.MOUSEUP,ot.CLICK,ot.MOUSEOVER,ot.TAP,ot.DRAG,ot.FLICK,ot.SUBMIT,ot.CHANGE]}baseEnhanceAnalysisEvent(t,e){return e.tgt||(e.tgt=this.ft.getEventTargetPath(t)),e}}return s})(),Hl=65535,vE=(()=>{let s;return function(r){function t(e){let i=Zt(e);if(!i||!kt(i)||!be(i.getBoundingClientRect)||!Vt(e.pageX)||!Vt(e.pageY))return{xRel:-1,yRel:-1,valid:!1};let n=i.getBoundingClientRect(),o=e.pageX-n.left-Kt.windowOffsetX(),c=e.pageY-n.top-Kt.windowOffsetY();i!==document.documentElement&&(o+=i.scrollLeft,c+=i.scrollTop);let u=Math.max(i.scrollWidth,n.width),d=Math.max(i.scrollHeight,n.height),S=Math.round(o/u*Hl),f=Math.round(c/d*Hl);return{xRel:S,yRel:f,valid:!0}}r.getRelativePosition=t}(s||(s={})),s})(),_E=(()=>{class s extends co{constructor(t,e){super(),this.Ms=t,this.ft=e,this.supportedEventTypes=[ot.MOUSEMOVE,ot.CLICK],this.Jl=""}baseEnhanceAnalysisEvent(t,e){let{valid:i,xRel:n,yRel:o}=vE.getRelativePosition(t);if(i){let c=this.ft.getEventTargetPath(t);c!==hs.INVALID_ELEMENT&&(e.xRel=n,e.yRel=o,e.type===ot.MOUSEMOVE&&(c!==this.Jl||this.Ms.iframesTracking?(this.Jl=c,e.tgtHM=c):e.tgtHM=""))}else e.type===ot.MOUSEMOVE&&(this.Jl="");return e}}return s})(),fe=(()=>{let s;return function(r){r[r.ANONYMIZED=0]="ANONYMIZED",r[r.CAPTURED=1]="CAPTURED",r[r.MASKED=2]="MASKED",r[r.ENCRYPTED=3]="ENCRYPTED"}(s||(s={})),s})(),Bl=100,Ku=(()=>{class s extends co{constructor(t,e,i){super(),this.f=t,this.pe=e,this.N=i,this.supportedEventTypes=[ot.TAP,ot.CLICK,ot.SUBMIT]}O_(t){let e="",i=document.createTreeWalker(t,NodeFilter.SHOW_TEXT),n=i.nextNode();for(;n;){if(e+=n.textContent,Za(n.parentElement)||Qa(n.parentElement)||this.pe.getElementSensitiveStatus(n.parentElement)!==fe.CAPTURED)return!0;if(csString.prototype.trim.call(e).length>=Bl)break;n=i.nextNode()}return!1}N_(t){let e=er(t,"button,a");return e||(this.f.collectTargetText===wa.ButtonAndLinkOnly?null:t)}baseEnhanceAnalysisEvent(t,e){if(Ms(csEventtarget.apply(t))){let i=this.N_(csEventtarget.apply(t));if(i&&V(i.textContent)&&!this.O_(i)&&!this.N.hasPII(i.textContent,this.f.anonymizeDigits)){let n=as.truncate(csString.prototype.trim.call(i.textContent),Bl);n.length>0&&(e.text=n)}}return e}}return s})();function Ju(s,r,t){let e=[];return s.mouseMoveHeatmapEnabled&&csArray.prototype.push.call(e,new _E(s,r)),s.isCollectTargetTextEnabled()&&csArray.prototype.push.call(e,new Ku(s,t,new ai)),csArray.prototype.push.call(e,new SE,new Xu(r)),e}function Qu(s,r,t){let e=[];return s.isCollectTargetTextEnabled()&&csArray.prototype.push.call(e,new Ku(s,t,new ai)),csArray.prototype.push.call(e,new Xu(r)),e}var wE=50,bE=(()=>{class s{constructor(t=[]){this.Dt=t}stringifyEvents(){return csJSON.stringify(this.Dt)}addEvent(t){csArray.prototype.push.call(this.Dt,t)}eventsCount(){return this.Dt.length}clearEvents(){this.Dt=[]}empty(){this.clearEvents()}isFull(){return this.eventsCount()>=wE}isEmpty(){return this.Dt.length===0}getEvents(){return this.Dt}}return s})(),AE="csAnalysisEventsPersisted",Fl="v2/events",Rc=["submit"],TE=(()=>{class s{constructor(t,e,i,n,o,c,u,d,S,f,_,w){this.f=t,this.nt=e,this.I=i,this.K=n,this.jt=o,this.E=c,this.Q=u,this.Ut=d,this.pt=S,this.xt=f,this.et=_,this.pe=w}init(){let t=new bE,e=this.xt.create(`${this.f.getTrackerUri()}/${Fl}`,!0,"base64");this.oa=this.M_(e),this.De=this.k_(t,this.oa.getRecoveryStorage(),e),this.De.init(),this.et.addListener(this.De),this.pt.addListener(this.De),this.E.register(Rc,(i,n)=>{this.De.pushSubmitCommandEvent(i,n)})}onStartTracking(t){this.oa.start(),this.De.start(t)}onAfterNaturalPageView(){this.De.initStates()}onAfterArtificialPageView(){this.De.initStates(),this.De.collectInitialEvents()}onArtificialPageViewEnd(){this.De.clearStates(!0)}onBeforeSessionRenewal(){this.De.clearStates(),this.De.stop(),this.oa.stop()}onOptout(){this.De.stop(),this.oa.stop()}k_(t,e,i){var n;let o=new eE(window),c=new oE,u=Ju(this.f,this.K,this.pe),d=[];this.f.collectSubmit||csArray.prototype.push.call(d,"submit");let S=new zu(u,this.K,this.jt,d),f=Qu(this.f,this.K,this.pe),_=new Fu(f,this.Ut),w=new hE(new EE),T=new ru,N,x,O,C=new hu(`${this.f.getTrackerUri()}/${Fl}`),$=new jr(this.nt,this.I),U,L,Z,nt;return new aE(this.f,S,_,c,o,t,C,$,this.Q,e,this.K,w,T,i,N,x,O,U,L,Z,nt)}M_(t){return new cE(new lE(AE),t)}}return s})(),Ln=(()=>{let s;return function(r){r.Artificial="a",r.Renewal="r",r.Natural="n"}(s||(s={})),s})(),RE=(()=>{class s extends ae{constructor(t,e,i,n,o){super(),this.S=t,this.et=e,this.Ql=i,this.R=n,this.Qe=o}init(){this.D_()}onStart(t){t?this.L_():this.x_()}onStop(){}triggerArtificialPageView(t,e){this.isStarted?this.mf(t,e):Vt(t)&&this.R.overridePath(t,e),this.isStarted||(this.et.emitTargetingRulesArtificialPageview(this.R.getUrl()),this.R.cleanupOverrideLifespan())}x_(){this.Qe.setPageViewType(Ln.Natural),this.S.emitBeforeNaturalPageView(),this.Ql.send(),this.R.cleanupOverrideLifespan(),this.S.emitAfterNaturalPageView()}L_(){this.Qe.setPageViewType(Ln.Renewal),this.S.emitBeforeNaturalPageView(),this.Ql.send(),this.S.emitAfterNaturalPageView()}mf(t,e){this.Qe.setPageViewType(Ln.Artificial),this.S.emitArtificialPageViewEnd(),Vt(t)&&this.R.overridePath(t,e),this.S.emitBeforeArtificialPageView(),this.Ql.send(),this.R.cleanupOverrideLifespan(),this.S.emitAfterArtificialPageView()}D_(){window.addEventListener("pageshow",t=>{this.isStarted&&t.persisted&&this.mf()})}}return s})(),CE=window.navigator.language||window.navigator.userLanguage||window.navigator.browserLanguage||window.navigator.systemLanguage||"unknown";function IE(){return{la:CE}}var PE=(()=>{class s{constructor(t,e){this.tt=t,this.vt=e,this.Zl=!1}getRequestParameters(){return{dr:this.th()}}addUrlMaskingPattern(t){this.vt.addUrlMaskingPattern(t)}enableRemoveQueryString(){this.Zl=!0}disableRemoveQueryString(){this.Zl=!1}th(){let t=this.Zl?this.tt.removeQueryString(this.yf()):this.yf();return this.tt.anonymizeUrl(t,{maskingPatterns:this.vt.getUrlMaskingPatterns()})}yf(){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})(),OE=99999,NE=(()=>{class s{constructor(t){this.A=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.Ef=new Set,this.Sf=[],this.eh=new Set,this.ih=[]}addUrlMaskingPattern(t){if(this.Ef.has(t))return;this.Ef.add(t);let e=zl(t);csArray.prototype.push.call(this.Sf,e)}getUrlMaskingPatterns(){return this.Sf}resetPartialUrlMaskingPatterns(){this.eh.clear(),this.ih=[]}addPartialUrlMaskingPattern(t){if(this.eh.has(t))return;this.eh.add(t);let e=zl(t);csArray.prototype.push.call(this.ih,e)}getPartialUrlMaskingPatterns(){return this.ih}}return s})(),lo=["trackPageview"],Xn=["setPath"],Kn=["setQuery"],$l=["referrer:maskUrl"],kE=["referrer:removeQueryString"],DE=["referrer:keepQueryString"],LE=(()=>{class s{constructor(t,e,i,n,o,c,u,d,S,f,_,w,T,N,x){this.f=t,this.E=e,this.S=i,this.ze=n,this.I=o,this.A=c,this.fe=u,this.At=d,this.tt=S,this.R=f,this.ie=_,this.Qe=w,this.et=T,this.Xs=N,this.tr=x}init(){var t;let e=new Zi(this.f.getTrackerUri(),"pageview");this.er=new RE(this.S,this.et,e,this.R,this.Qe);let i=new PE(this.tt,new td);this.er.init();let n=new jr(this.ze,this.I,Kt,i,this.R,this.fe,Ka,this.At,this.Qe,new NE(this.A),this.ie);this.Xs&&n.addProvider(this.Xs),this.tr&&n.addProvider(this.tr);let o=this.f.isCsCrosswritingHeap();if(o||this.f.isCsSideloadingHeap()||this.f.isHeapSideloadsCs()){let c=(t=this.f.heapEnvironment)===null||t===void 0?void 0:t.env_id;n.addProvider({getRequestParameters(){let u={cw:o?"1":"2"};return c&&(u.happid=c),u}})}e.setRequestParametersProviders(n),this.E.register(lo,(c,u)=>{if(!V(c)){this.er.triggerArtificialPageView();return}this.rh(u)?this.er.triggerArtificialPageView(c,u):this.er.triggerArtificialPageView(c)}),this.E.register(Xn,(c,u)=>{if(!V(c))throw new Error(`Command misuse: ${Xn[0]}`);this.rh(u)?this.R.overridePath(c,u):this.R.overridePath(c)}),this.E.register(Kn,(c,u)=>{if(!V(c))throw new Error(`Command misuse: ${Kn[0]}`);this.rh(u)?this.R.overrideQuery(c,u):this.R.overrideQuery(c)}),this.E.register($l,c=>{if(!V(c))throw new Error(`Command misuse: ${$l[0]}`);i.addUrlMaskingPattern(c)}),this.E.register(kE,()=>i.enableRemoveQueryString()),this.E.register(DE,()=>i.disableRemoveQueryString())}start(t){this.er.start(t)}onBeforeSessionRenewal(){this.er.stop()}rh(t){return Xe(t)&&t!==null}}return s})(),ed=(()=>{class s{constructor(t){this.ft=t}on(t,e){return i=>{this.ft.hasValidEventTarget(i)&&this.F_(i,t)&&e(i)}}F_(t,e){let i=Zt(t);return Ae.call(i,e)}isMatchesSelectorSupported(){return!!Ae}}return s})(),sd=(()=>{class s{constructor(){}onLoad(t){this.Hi=t}onLoadCallbackExecute(){this.Hi()}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 st([G("onLoad")],s.prototype,"onLoadCallbackExecute",null),s})(),xE=(()=>{class s{constructor(t,e,i){this.f=t,this.I=e,this.A=i,this.is=Q.now()}resetStartTime(){this.is=Q.now()}getSessionData(){let{projectId:t}=this.f,e=this.I.getVisitor();e==null&&Y.warn("Visitor is null. This happens when a snippet tries to get Session Data before the tag was initialized.");let{id:i,visitsCount:n}=e!=null?e:{},o=this.A.getSession();o===null&&Y.warn("Session is null. This happens when a snippet tries to get Session Data before the tag was initialized.");let{pageNumber:c}=o!=null?o:{};return{projectId:t,userId:i,sessionNumber:n,pageNumber:c,relativeTimestamp:Q.now()-this.is}}}return s})(),id=["clearSession"],rd=["extendSession"];var VE=["getSessionData"],nd=["session:start:newVisitor"],UE=["session:clear:visitor"],jE=(()=>{class s{constructor(t,e,i,n){this.f=t,this.I=e,this.A=i,this.E=n}init(){this.nh=new xE(this.f,this.I,this.A),this.E.register(id,()=>this.A.removeSession()),this.E.register(rd,()=>this.A.extendSessionPeriodically(),{disableApplyPending:!0}),this.E.register(VE,()=>this.nh.getSessionData(),{disableApplyPending:!0}),this.E.register(nd,()=>this.I.renewVisitor()),this.E.register(UE,()=>{this.I.resetVisitor()},{disableApplyImmediate:!0})}onBeforeNaturalPageView(){this.I.createOrUpdateVisitor(),this.A.createOrUpdateSession()}onBeforeArtificialPageView(){this.I.createOrUpdateVisitor(),this.A.createOrUpdateSession()}onAfterNaturalPageView(){this.nh.resetStartTime()}onAfterArtificialPageView(){this.nh.resetStartTime()}onOptout(){this.I.removeVisitor(),this.A.removeSession()}onCollectStateChange(t){this.A.updateCollectState(t)}}return s})(),HE=60*1e3,BE=30*1e3,FE=(()=>{class s{constructor(t,e){this.A=t,this.I=e,this.oh=!1,this.$_=so(()=>this.A.refreshSession(),BE)}onSessionExpired(t){this.G_=t}isSessionValid(){return this.oh?!0:!(!this.A.hasValidSession()||this.A.pollCacheRefreshEvent()&&this.I.isSessionRenewed())}isCurrentPageviewValid(){let t=this.A.hasValidSession();return this.A.pollCacheRefreshEvent(!1)?!this.I.isSessionRenewed():t}refreshSession(){this.isSessionValid()?this.$_():this.q_()&&(this.vf=Q.now(),this.renewSession())}renewSession(){this.oh=!0,this.G_(),this.oh=!1}q_(){return!mt(this.vf)||Q.now()-this.vf>HE}}return s})();var bi;(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"})(bi||(bi={}));function od(s){return s.tagDeploymentMode===bi.DualCollectionReview||s.tagDeploymentMode===bi.DualCollection}function zE(s){return od(s)||s.tagDeploymentMode===bi.LoadClicktalePtc}var Gl=(()=>{let s;return function(r){function t(){return window.ClickTaleIsRecording&&window.ClickTaleIsRecording()}r.isRecording=t;function e(){window.ClickTaleStop&&window.ClickTaleStop()}r.stopRecording=e;function i(c){window.ClickTaleLogicalWithUploadPage&&window.ClickTaleLogicalWithUploadPage(c)}r.triggerLogicalPageView=i;function n(c){window.ClickTaleEvent&&window.ClickTaleEvent(c)}r.sendPageEvent=n;function o(c){window.ClickTaleEventTrigger&&window.ClickTaleEventTrigger(c)}r.sendEventTriggerRecording=o}(s||(s={})),s})();var $E="@ETP@",ql="@user-identifier@",GE=(()=>{class s extends ae{constructor(t,e,i,n){super(),this.f=t,this.Dw=e,this.he=i,this.et=n,this.ch=[],this.mi=[]}onStart(){csArray.prototype.forEach.call(this.ch,t=>this.Df(t)),this.ch=[],csArray.prototype.forEach.call(this.mi,t=>this.Lf(t)),this.mi=[]}onStop(){}Df(t){this.Lw(t)?wi.isSupported()&&this.xw(t):this.Vw(t)}trackPageEvent(t){if(!s.xf(t))throw new Error(`Command misuse: ${ho[0]}`);this.isStarted?this.Df(t):csArray.prototype.push.call(this.ch,t)}Lw(t){return ri(t,ql)}async xw(t){if(!this.f.customHashIdEnabled)return;let e=csString.prototype.slice.call(t,ql.length);if(e.length>wi.MAX_DIGEST_INPUT_SIZE){Y.warn("UserIdentifier event: invalid user identifier");return}let i=await wi.digest(e);i?(this.ar={eventName:i,isETR:!1,isCustomHashId:!0},this.pa()):Y.warn("Page event: unable to compute customHashId"),this.f.encryptionEnabled&&this.et.emitUserIdentifierEvent(e)}Vw(t){this.et.emitPageEvent(t),this.ar={eventName:t,isETR:!1,isCustomHashId:!1},this.pa(),this.f.tagDeploymentMode===bi.LoadClicktalePtc&&Gl.sendPageEvent(t)}Lf(t){this.f.malkaEtrEnabled?this.Uw(t):this.jw(t)}trackEventTriggerRecording(t){if(!s.xf(t))throw new Error(`Command misuse: ${ur[0]}`);this.isStarted?this.Lf(t):csArray.prototype.push.call(this.mi,t)}Uw(t){ri(t,$E)?this.et.emitEventTriggerRecording(t,ei.ETR_PAGE):this.et.emitEventTriggerRecording(t,ei.ETR_SESSION),this.ar={eventName:t,isETR:!0,isCustomHashId:!1},this.pa()}jw(t){zE(this.f)&&(this.et.emitEventTriggerRecording(t,ei.ETR_LEGACY),this.ar={eventName:t,isETR:!0,isCustomHashId:!1},this.pa(),this.f.tagDeploymentMode===bi.LoadClicktalePtc&&Gl.sendEventTriggerRecording(t))}getRequestParameters(){return{value:this.he.compressSync(this.ar.eventName,"base64"),ct:this.he.algorithm,isETR:`${this.ar.isETR}`,isCustomHashId:`${this.ar.isCustomHashId}`}}pa(){this.Dw.send()}static xf(t){return V(t)&&!!csString.prototype.trim.call(t)}}return s})(),ho=["trackPageEvent"],ur=["trackEventTriggerRecording"],qE=(()=>{class s{constructor(t,e,i,n,o){this.f=t,this.E=e,this.he=i,this.ze=n,this.et=o}init(){let t=new Zi(this.f.getTrackerUri(),"pageEvent");this.fa=new GE(this.f,t,this.he,this.et),t.setRequestParametersProviders(this.fa,this.ze),this.E.register(ho,e=>{this.fa.trackPageEvent(e)}),this.E.register(ur,e=>{this.fa.trackEventTriggerRecording(e)})}onStartTracking(){this.fa.start()}}return s})(),WE=(()=>{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 YE=(()=>{class s{constructor(t){this.E=t}init(){this.Vf(s.zw,Lh),this.Vf(s.$w,Dh)}Vf(t,e){this.E.register([t],(i,n)=>{!V(i)||!(V(n)||ii(n))||Y.error(n,`${e}${i}`)})}}return s.$w="logSnippetError",s.zw="logImplementationSnippetError",s})(),XE=(()=>{class s{constructor(t,e,i,n,o){this.f=t,this.J=e,this.Gs=i,this.pe=n,this.pt=o}init(){this.J.onChildMessage((t,e,i)=>this.pt.emitIframeEvent(t,e,i)),this.J.setSentiveStatusCallback(()=>this.pe.getSensitiveStatus()),this.J.setRecordingContextCallback(()=>this.Gs.getRecordingContext())}onStartTracking(){this.f.iframesTracking&&this.J.start()}onOptout(){this.f.iframesTracking&&this.J.stop()}onSensitiveStatusChange(){if(this.f.iframesTracking){let t=this.pe.getSensitiveStatus();this.J.onSensitiveStatusChange(t)}}onRecordingContextChange(){if(this.f.iframesTracking){let t=this.Gs.getRecordingContext();this.J.onRecordingContextChange(t)}}}return s})(),ad=(()=>{class s extends ae{constructor(t){super(),this.f=t,this.lh=0,this.Ce=new Map,this.Uf={boundElement:window,type:"message",listener:e=>this.hh(e)}}onChildMessage(t){this.jf=t}setRecordingContextCallback(t){this.Gw=t}setSentiveStatusCallback(t){this.qw=t}onSensitiveStatusChange(t){let e=Tt.buildBaseMessage(z.SensitiveStatus,Oe.Parent,this.f.projectId);e.content=t;let i=Tt.buildBaseMessage(z.SensitiveStatus,Oe.Parent,this.f.projectId);i.content={...t,started:!1,useAnonymization:!0,capturedElementSelector:""},this.Ce.forEach(n=>{if(n.port){let o=this.ga(n)?i:e;this.uh(n,o)}})}onRecordingContextChange(t){let e=Tt.buildBaseMessage(z.RecordingContext,Oe.Parent,this.f.projectId);e.content=t,this.Ce.forEach(i=>{!this.ga(i)&&i.port&&this.uh(i,e)})}sendToChildren(t,e){let i=Tt.buildBaseMessage(t,Oe.Parent,this.f.projectId);i.content=e,this.Ww(i)}onStart(){Lt(this.Uf,!1),this.Hf()}onStop(){this.Yw(),xt(this.Uf,!1),this.Xw()}Hf(){let t=this.Kw();this.Jw(t),csArray.prototype.forEach.call(t,e=>{if(this.Qw(e)===null){let n={iframe:e};this.Ce.set(this.lh,n),this.lh+=1}}),this.Zw()}Kw(){return csArray.prototype.filter.call(Ct.findAllElements("iframe"),t=>this.tb(t))}Jw(t){this.Ce.forEach((e,i)=>{e.iframe&&csArray.prototype.indexOf.call(t,e.iframe)===-1&&this.eb(i,e)})}eb(t,e){e.port&&Tt.closeChannelPort(e.port),this.Ce.delete(t)}Xw(){this.Ce.forEach(t=>{t.port&&Tt.closeChannelPort(t.port)}),this.Ce.clear()}Qw(t){let e=null;return this.Ce.forEach((i,n)=>{e===null&&i.iframe===t&&(e=n)}),e}tb(t){return t.id!==ph&&(!t.src||Me(t.src,"about:")||lc(Vh(t.src),this.f.hostnames))}Ww(t){this.Ce.forEach(e=>{this.uh(e,t)})}uh(t,e){let i=e.type===z.SensitiveStatus||e.type===z.RecordingContext;t.port&&(!i||t.initialStatusSent)&&Tt.sendChannelMessage(t.port,e)}Zw(){this.Ce.forEach((t,e)=>{if(t.iframe.contentWindow){let i=this.sb(e);Tt.sendPostMessage(t.iframe.contentWindow,"*",i)}})}Yw(){let t=this.ib();this.Ce.forEach(e=>{e.port?Tt.sendChannelMessage(e.port,t):e.iframe.contentWindow&&Tt.sendPostMessage(e.iframe.contentWindow,"*",t)})}sb(t){return Tt.buildBaseMessage(z.Discovery,Oe.Parent,this.f.projectId,t)}ib(){return Tt.buildBaseMessage(z.Stop,Oe.Parent,this.f.projectId)}rb(t,e){let i=this.Ce.get(t);if(i===void 0){Y.error(`Parent received channel messaging initialization from unknow child id : ${t} (${this.lh})`);return}i.port=e,i.port.onmessage=n=>{this.ph(n,i)}}nb(t){if(!t.port)return;let e=Tt.buildBaseMessage(z.SensitiveStatus,Oe.Parent,this.f.projectId),i=this.qw();this.ga(t)&&(i.started=!1,i.capturedElementSelector="",i.useAnonymization=!0),e.content=i,Tt.sendChannelMessage(t.port,e)}ob(t){if(!t.port)return;let e=Tt.buildBaseMessage(z.RecordingContext,Oe.Parent,this.f.projectId),i=this.Gw();this.ga(t)&&(i.isRecording=!1),e.content=i,Tt.sendChannelMessage(t.port,e)}ph(t,e){if(e===void 0){Y.error(`Parent received channelMessage from unknown child : ${csJSON.stringify(t.data)}`);return}let i=t.data.type,n=t.data.content;i===z.EndOfBufferedMessages?(this.nb(e),this.ob(e),e.initialStatusSent=!0):this.jf(e.iframe,i,n)}hh(t){if(Tt.isMessageValid(t,Oe.Child,this.f.projectId,this.f.hostnames))switch(t.data.type){case z.Discovery:if(t.data.id===void 0){this.Hf();return}if(t.ports&&t.ports.length===1&&this.Ce.has(t.data.id)){this.rb(t.data.id,t.ports[0]);return}Y.error(`Parent received wrong channelMessage initialization : (${t.origin}) : ${csJSON.stringify(t.data)}`);break;case z.ChildLogMessage:this.jf(null,z.ChildLogMessage,t.data.content);break;default:Y.warn(`Parent received unexpected postMessage type from child (${t.origin}) : ${csJSON.stringify(t.data)}`)}}ga(t){return W.isMaskedElement(t.iframe)||W.isMaskedElementChild(t.iframe)}}return s})();var KE=(()=>{class s{constructor(t,e,i=!1){this.vt=t,this.tt=e,this.Vn=i}addUrlMaskingPattern(t){this.vt.addUrlMaskingPattern(t)}anonymize(t){let e=this.tt.removeQueryString(t.url),i={maskingPatterns:this.vt.getUrlMaskingPatterns(),partialMaskingPatterns:this.vt.getPartialUrlMaskingPatterns(),maskNames:this.Vn};return{...t,url:this.tt.anonymizeUrl(e,i),library:t.library?this.tt.anonymizeUrl(t.library,i):void 0}}}return s})(),JE="CS_ANONYMIZED_VALUE",QE=(()=>{class s{constructor(t,e){this.N=t,this.R=e}anonymize(t){return V(t.message)&&(t.message=this.pb(t.message),t.message=this.N.anonymizePII(t.message)),V(t.filename)&&(t.filename=this.R.computeOverriddenUrl(t.filename)),t}pb(t){return csString.prototype.replace.call(t,/(value\s*=\s*".*"|value\s*=\s*'.*')/,`value='${JE}'`)}}return s})(),cd=(()=>{class s extends WE{constructor(t){super(),this.fb=t,this.Us=[{boundElement:document,type:"touchstart",listener:e=>this.X(e)},{boundElement:document,type:"touchmove",listener:e=>this.X(e)},{boundElement:document,type:"touchend",listener:e=>this.X(e)}],this.Un=new Na,this.Un.onGesture((e,i)=>this.Sl(e,i))}Sl(t,e){for(let i in this.subscriptions){let n=this.subscriptions[i];n(t,e)}}onStartTracking(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.Us,t=>Lt(t))}onStopTracking(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.Us,t=>xt(t))}canDetectGesture(){return typeof devicePixelRatio!="undefined"}X(t){this.fb.tryToExecute("process gesture event",()=>{if(this.Un.isValidTouchEvent(t))switch(t.type){case"touchstart":this.Un.processActionDown(t);break;case"touchmove":this.Un.processActionMove();break;case"touchend":this.Un.processActionUp(t);break}})()}static isSwipe(t){return t.type===Xt.FLICK||t.type===Xt.DRAG}}return s})(),ZE=(()=>{class s extends ae{constructor(t,e){super(),this.B=t,this.gh=e,this.zf=0}onStart(){Y.isPerfLoggingActive()&&(this.Dn=window.csSetInterval(()=>this.$f(),s.gb))}onStop(){Y.isPerfLoggingActive()&&(this.$f(),csClearInterval(this.Dn))}$f(){if(Mn.isEmpty||this.zf>=s.mb)return;this.zf++;let t={a:s.yb,l:s.Eb,...this.gh.getRequestParameters()},e=[];Mn.forEach(i=>{csArray.prototype.forEach.call(i,n=>{csArray.prototype.push.call(e,{...n,...t})})}),this.B.send(e),Mn.clear()}}return s.yb="uxa",s.Eb="perf",s.gb=5e3,s.mb=5,s})(),tS=(()=>{class s{constructor(t,e,i){this.f=t,this.gh=e,this.xt=i}init(){this.Gf=new ZE(this.xt.create(this.f.getLoggerUri(),!0),this.gh)}onStartTracking(){this.Gf.start()}onOptout(){this.Gf.stop()}}return s})(),eS=(()=>{class s{constructor(t,e){this.pe=t,this.f=e,this.qf=!1}enableRecordingContext(t,e,i){this.qf=!0,this.Xi=t,this.A=e,this.En=i}getRecordingContext(){var t,e,i;if(!this.qf)return{isRecording:!1,recordingStartTimestamp:0,etrState:ve.ETR_OFF,etrStatus:Ue.ETR_DISABLED,collectState:tt.ANALYTICS_ONLY};let n=this.A.getSession();return{isRecording:this.Xi.isRecording(),useAnonymization:this.pe.getSensitiveStatus().useAnonymization,enableOnlineResources:(t=this.Xi.getStaticResourceManagerStatus())===null||t===void 0?void 0:t.onlineAssets.activated,enableOnlineResourcesOnNextPageview:(e=this.Xi.getStaticResourceManagerStatus())===null||e===void 0?void 0:e.onlineAssets.enabledOnNextPageview,recordingStartTimestamp:parseInt(this.Xi.getRecordingStartTimestamp(),10),etrState:this.f.malkaEtrEnabled?ve.ETR_ON:ve.ETR_OFF,etrStatus:this.En.getEtrStatus(n),collectState:(i=n==null?void 0:n.collectState)!==null&&i!==void 0?i:tt.ANALYTICS_ONLY}}}return s})(),sr=(()=>{class s{static isRecordingSupported(){return"MutationObserver"in window&&"visibilityState"in document}static isAsyncSerializationSupported(){return"Promise"in window&&"findIndex"in csArray.prototype}}return s})();var ld=["api-errors:maskUrl"];var hd=["trackError"];var sS=(()=>{let s;return function(r){function o(d,S,f=!1){let w={message:as.truncate(d,300,as.ELLIPSIS),errorType:"customError"};return(f||u(S))&&(c(S),w.attributes=S),w}r.buildCustomErrorEvent=o;function c(d){for(let S in d){let f=d[S];if(typeof f=="string"&&f.length>30&&(f=as.truncate(f,30,as.ELLIPSIS),d[S]=f),S.length>30){let _=as.truncate(S,30,as.ELLIPSIS);delete d[S],d[_]=f}}}function u(d){let S=Object.keys(d).length;return S>0&&S<=5}}(s||(s={})),s})();var iS=(()=>{class s{constructor(){this._h=Ln.Natural}setPageViewType(t){this._h=t}getPageViewType(){return this._h}getRequestParameters(){return{pvt:this._h}}}return s})(),rS=(()=>{class s{constructor(t){this.Q=t}onAfterVisitorRenewal(){this.Q.renewSession()}}return s})();var Cc=(()=>{let s;return function(r){function t(){let i=navigator.userAgent+navigator.language+navigator.platform,n=csString.prototype.slice.call(e(i).toString(16),-4),o=new csDate().getTime(),c="xxxxxxxx-hhhh-axxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,u=>{let d=(o+Math.random()*16)%16|0;return o=Math.floor(o/16),(u==="x"?d:d&7|8).toString(16)});return csString.prototype.replace.call(c,"hhhh",n)}r.generate=t;function e(i){let n=0;for(let o=0;o0;l-=1)p=Math.floor(Math.random()*(l+1)),y=h[l],h[l]=h[p],h[p]=y;return h},"utils.shuffle"),L=(hj.tryCatch(function(h){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(h)},"utils.validateEmail"),hj.tryCatch(function(){return hj.userDeviceType||(hj.userDeviceType=C(),hj.userDeviceType==="mobile"&&(hj.userDeviceType="phone")),hj.userDeviceType},"utils.deviceType")),Z=hj.tryCatch(function(){var h=function(){try{return window.self!==window.top}catch{return!0}}(),l={width:!h&&window.screen?window.screen.width:document.body.clientWidth,height:!h&&window.screen?window.screen.height:document.body.clientHeight};return{width:window.innerWidth||document.documentElement.clientWidth||l.width,height:window.innerHeight||document.documentElement.clientHeight||l.height}},"utils.getWindowSize"),nt=function(h,l,p,y,m){var A=1;if(m!==void 0&&hj.log.debug("Retry iteration ".concat(A," of ").concat(m)),h())return l(!0);var D=setInterval(function(){return A++,h()?(clearInterval(D),l(!0)):A>=y?(clearInterval(D),l(!1)):void 0},p)},pt=function(h,l){return function(p,y){hj.log.debug("[".concat(h,"] ").concat(p),l,y)}},jt=function(h){return h&&typeof h=="string"?h.replace(/[\W_]+/g,"-"):""};function Ht(h){try{return decodeURIComponent(h)}catch{return h}}function I(h){for(var l,p=[],y=new RegExp("[^?&]?"+h.replace(/\[/,"\\[").replace(/]/,"\\]")+"=([^&]+)","g");l=y.exec(location.search);)p.push(Ht(l[1]));switch(p.length){case 0:return"";case 1:return p[0];default:return p}}var B={},X={};function it(h,l){var p;if(!B.matchOperations[h.match_operation])return hj.exceptions.log(new Error('Targeting error - "'.concat(h.match_operation,'" match operation does not exist.')),"hj.targeting.matchPatternWithRule"),!1;h.rule_type=h.rule_type||h.component;var y=function(m,A){return!A||m.rule_type!=="date"||m.match_operation!=="less_than"&&m.match_operation!=="greater_than"?A:(new Date(A).valueOf()/1e3).toFixed(0)}(h,l);return(p=B.matchOperations[h.match_operation](h,y)).error?(hj.exceptions.log(new Error("Targeting error - ".concat(h.match_operation," - ").concat(p.error)),"hj.targeting.matchPatternWithRule"),!1):(h.component!=="url"&&h.negate&&(p=!p),function(m,A,D){var M=D?"Match ":"No Match ";!D||m.component!=="url"&&m.component!=="device"||(M+=m.component+"|"+m.match_operation+"|"+m.pattern+(m.negate?" [NEGATE]":""),hj.log.debug(M,"targeting")),m.component!=="attribute"&&m.component!=="event"||(M+=m.component+"|"+m.name+" ("+m.rule_type+")|"+m.match_operation+"|"+m.pattern+"|compared with: "+A+(m.negate?" [NEGATE]":""),hj.log.debug(M,"targeting"))}(h,l,p),p)}function _t(h){var l,p=L();return(l=h.length===0||h.length===3||h.some(function(y){return it(y,p)}))?hj.log.debug("Device match found","targeting"):hj.log.debug("No device match found","targeting"),l}var Ot=function(h){var l,p,y;return h==null||(l=h.toLowerCase())===null||l===void 0||(p=l.split("#")[0])===null||p===void 0||(y=p.split("?")[0])===null||y===void 0?void 0:y.replace("http://www.","").replace("https://www.","").replace("http://","").replace("https://","").replace(/\/$/,"")},Ft=function(h,l,p){return function(){return h.apply(null,arguments)?l.apply(null,arguments):p.apply(null,arguments)}},Qe=function(h,l){return h!==void 0&&l!==void 0&&h!==null&&l!==null},fs=function(h,l){return!isNaN(h.pattern)&&!isNaN(l)&&l!==""&&typeof l!="boolean"},xs=function(h,l){if(!l||l.toString()===parseInt(l,10).toString())return!1;var p=new Date(l);return p!=="Invalid Date"&&!isNaN(p)},ce=function(h){return Ft(Qe,h,function(){return!1})},gs=function(h){return ce(Ft(fs,h,function(l,p){return{error:p?"Cannot compare non-numeric values (rule: { name: '".concat(l.name,`' }, pattern: '`).concat(p,"')."):void 0}}))},Ze=function(h){return ce(Ft(xs,h,function(l,p){return{error:"Cannot compare dates. Given pattern is not a date (rule: { name: '".concat(l.name,"' }, pattern: '").concat(p,"').")}}))};B.matchUrl=function(h,l){var p,y=!1,m=!1,A=!1;if(h.length===0)return hj.log.debug("No URL targeting rules set","targeting"),!1;for(var D=0;DNumber(h.pattern)}),less_than:gs(function(h,l){return Number(l)=p})};var ge={getFeatures:hj.tryCatch(function(){return hj.settings.features||[]},"hj.features.getFeatures"),hasFeature:hj.tryCatch(function(h){var l;try{var p=window.localStorage.getItem("HJ_OVERRIDE_FEATURE:".concat(h));l=p==="true"||p==="1"}catch{l=!1}return ge.getFeatures().indexOf(h)>-1||l},"hj.features.hasFeature")};function At(h){return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},At(h)}var wt=function(h){var l,p,y,m=window._hjDocument||document;if(F.selector=h,F.isWindow(h))return this[0]=window,this.length=1,this;if(F.isDocument(h,m))return this[0]=m,this.length=1,this;if(At(h)==="object")return this[0]=h,this.length=1,this;if(typeof h=="string"&&h.charAt(0)==="<"&&h.charAt(h.length-1)===">"&&h.length>=3)return(l=m.createElement("div")).innerHTML=h,this[0]=l.childNodes[0],this.length=1,this;if(typeof h=="string"){isNaN(h.charAt(1))||h.charAt(0)!=="."&&h.charAt(0)!=="#"||(h=h.charAt(0)+"\\3"+h.charAt(1)+" "+h.slice(2));try{p=m.querySelectorAll(h)}catch{return this.length=0,this}for(y=0;y0&&(this[0].value=h),this[0]===void 0?void 0:this[0]?this[0].value:""},wt.prototype.each=function(h,l){Array.prototype.forEach.call(this,function(p,y,m){l(y,p,m)})},wt.prototype.hasClass=function(h){return this[0].classList?this[0].classList.contains(h):new RegExp("(^| )"+h+"( |$)","gi").test(this[0].className)},wt.prototype.remove=function(){var h;for(h=0;h-1&&p.call(H,ft)}},Array.isArray(F.eventHandlers[D])||(F.eventHandlers[D]=[]),F.eventHandlers[D].push(M),document.addEventListener(et[A].split(".")[0],M,!0)):(typeof l=="boolean"&&l===!1&&(l=function(ft){return ft.preventDefault(),!1}),Array.isArray(F.eventHandlers.document)||(F.eventHandlers.document=[]),F.eventHandlers.document.push(l),this[0].addEventListener(et[A].split(".")[0],l,y));else if(F.isDocument(this[0]))for(A=0;A=200&&l.status<400?F.isFunction(h.success)&&h.success(l.responseText&&JSON.parse(l.responseText),l):F.isFunction(h.error)&&h.error(l)},l.onerror=function(){F.isFunction(h.error)&&h.error(l)},l.ontimeout=function(){F.isFunction(h.timeout)&&h.timeout(l)},F.isFunction(h.requestAnnotator)&&h.requestAnnotator(l),h.type!=="POST"&&h.type!=="PUT"||!h.data?l.send():l.send(h.data)},F.eventHandlers={},F.selector="";var pr={get:function(h,l,p){l=l||F.noop,p=p||F.noop,F.ajax({url:h,success:hj.tryCatch(l,"Data"),error:hj.tryCatch(p,"Data")})},post:function(h,l,p,y){var m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{contentType:"json"};p=p||F.noop,y=y||F.noop;var A=m!=null&&m.query?"".concat(h,"?").concat(m.query):h;return F.ajax({url:A,type:"POST",data:(m==null?void 0:m.contentType)==="json"?F.stringify(l):l,contentType:"text/plain; charset=UTF-8",success:hj.tryCatch(p,"Data"),error:hj.tryCatch(y,"Data")})},putAsJSON:function(h,l,p,y){p=p||F.noop,y=y||F.noop,F.ajax({url:h,type:"PUT",data:F.stringify(l),contentType:"text/plain; charset=UTF-8",success:hj.tryCatch(p,"Data"),error:hj.tryCatch(y,"Data")})},postAsJSON:function(h,l,p,y){return p=p||F.noop,y=y||F.noop,F.ajax({url:h,type:"POST",data:F.stringify(l),contentType:"application/json; charset=UTF-8",success:hj.tryCatch(p,"Data"),error:hj.tryCatch(y,"Data")})}},ci=[],ms=[];function Qr(h,l){hj.tryCatch(l,"Rendering")(h)}function Zr(h,l){hj.widgetDelay.set(function(){hj.tryCatch(l,"Rendering")(h)},1e3*h.display_delay)}function tn(h,l,p){var y=hj.hq(document),m=hj.hq(window),A=[];function D(){hj.tryCatch(l,"Rendering")(h),y.off("mousemove."+p),y.off("mouseout."+p)}ci.push(p),y.off("mousemove."+p),y.off("mouseout."+p),y.on("mousemove."+p,hj.tryCatch(function(M){var R,H,q,K;A.push({x:M.clientX,y:M.clientY}),A.length>2&&(((R=A[1])===null||R===void 0?void 0:R.x)===((H=A[2])===null||H===void 0?void 0:H.x)&&((q=A[1])===null||q===void 0?void 0:q.y)===((K=A[2])===null||K===void 0?void 0:K.y)?A.pop():A.shift())},"Rendering")),y.on("mouseout."+p,hj.tryCatch(function(M){var R=this;M.relatedTarget&&(!R||M.relatedTarget===R||R.compareDocumentPosition(M.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||function(H){var q=A[1],K=A[0];if(H|=0,q!==void 0&&!(K&&q.y>=K.y||H>0)){if(K&&K.x===q.x)D();else if(K){var et=K.y-q.y/K.x-q.x,ft=-(K.y-et*K.x)/et;ft>0&&ft=.5&&(m.off("scroll."+p),l(h))},"Rendering"))}var Vs={clearAllAbandonEvents:hj.tryCatch(function(){ci.forEach(function(h){hj.log.debug("Removing abandon events for "+h,"rendering"),hj.hq(document).off("mousemove."+h),hj.hq(document).off("mouseout."+h)}),ci=[]},"hj.rendering.clearAllAbandonEvents"),clearAllScrollEvents:hj.tryCatch(function(){ms.forEach(function(h){hj.log.debug("Removing scroll events for "+h,"rendering"),hj.hq(window).off("scroll."+h)}),ms=[]},"hj.rendering.clearAllScrollEvents"),callAccordingToCondition:hj.tryCatch(function(h,l,p){var y={immediate:Qr,delay:Zr,abandon:tn,scroll:mo}[h.display_type==="inline"?"immediate":h.display_condition];if(hj.log.debug("Calling active item ("+l+"): "+h.display_condition,"rendering"),!y)throw new Error('Unhandled display condition: "'+h.display_condition+'"');hj.tryCatch(y,"Rendering")(h,p,l)},"hj.rendering.callAccordingToCondition")},Te=function(h,l){return h+l&4294967295};function Ci(h,l){var p=Gt(p=h[0],A=h[1],m=h[2],y=h[3],l[0],7,-680876936),y=Gt(y,p,A,m,l[1],12,-389564586),m=Gt(m,y,p,A,l[2],17,606105819),A=Gt(A,m,y,p,l[3],22,-1044525330);p=Gt(p,A,m,y,l[4],7,-176418897),y=Gt(y,p,A,m,l[5],12,1200080426),m=Gt(m,y,p,A,l[6],17,-1473231341),A=Gt(A,m,y,p,l[7],22,-45705983),p=Gt(p,A,m,y,l[8],7,1770035416),y=Gt(y,p,A,m,l[9],12,-1958414417),m=Gt(m,y,p,A,l[10],17,-42063),A=Gt(A,m,y,p,l[11],22,-1990404162),p=Gt(p,A,m,y,l[12],7,1804603682),y=Gt(y,p,A,m,l[13],12,-40341101),m=Gt(m,y,p,A,l[14],17,-1502002290),p=qt(p,A=Gt(A,m,y,p,l[15],22,1236535329),m,y,l[1],5,-165796510),y=qt(y,p,A,m,l[6],9,-1069501632),m=qt(m,y,p,A,l[11],14,643717713),A=qt(A,m,y,p,l[0],20,-373897302),p=qt(p,A,m,y,l[5],5,-701558691),y=qt(y,p,A,m,l[10],9,38016083),m=qt(m,y,p,A,l[15],14,-660478335),A=qt(A,m,y,p,l[4],20,-405537848),p=qt(p,A,m,y,l[9],5,568446438),y=qt(y,p,A,m,l[14],9,-1019803690),m=qt(m,y,p,A,l[3],14,-187363961),A=qt(A,m,y,p,l[8],20,1163531501),p=qt(p,A,m,y,l[13],5,-1444681467),y=qt(y,p,A,m,l[2],9,-51403784),m=qt(m,y,p,A,l[7],14,1735328473),p=Jt(p,A=qt(A,m,y,p,l[12],20,-1926607734),m,y,l[5],4,-378558),y=Jt(y,p,A,m,l[8],11,-2022574463),m=Jt(m,y,p,A,l[11],16,1839030562),A=Jt(A,m,y,p,l[14],23,-35309556),p=Jt(p,A,m,y,l[1],4,-1530992060),y=Jt(y,p,A,m,l[4],11,1272893353),m=Jt(m,y,p,A,l[7],16,-155497632),A=Jt(A,m,y,p,l[10],23,-1094730640),p=Jt(p,A,m,y,l[13],4,681279174),y=Jt(y,p,A,m,l[0],11,-358537222),m=Jt(m,y,p,A,l[3],16,-722521979),A=Jt(A,m,y,p,l[6],23,76029189),p=Jt(p,A,m,y,l[9],4,-640364487),y=Jt(y,p,A,m,l[12],11,-421815835),m=Jt(m,y,p,A,l[15],16,530742520),p=Qt(p,A=Jt(A,m,y,p,l[2],23,-995338651),m,y,l[0],6,-198630844),y=Qt(y,p,A,m,l[7],10,1126891415),m=Qt(m,y,p,A,l[14],15,-1416354905),A=Qt(A,m,y,p,l[5],21,-57434055),p=Qt(p,A,m,y,l[12],6,1700485571),y=Qt(y,p,A,m,l[3],10,-1894986606),m=Qt(m,y,p,A,l[10],15,-1051523),A=Qt(A,m,y,p,l[1],21,-2054922799),p=Qt(p,A,m,y,l[8],6,1873313359),y=Qt(y,p,A,m,l[15],10,-30611744),m=Qt(m,y,p,A,l[6],15,-1560198380),A=Qt(A,m,y,p,l[13],21,1309151649),p=Qt(p,A,m,y,l[4],6,-145523070),y=Qt(y,p,A,m,l[11],10,-1120210379),m=Qt(m,y,p,A,l[2],15,718787259),A=Qt(A,m,y,p,l[9],21,-343485551),h[0]=Te(p,h[0]),h[1]=Te(A,h[1]),h[2]=Te(m,h[2]),h[3]=Te(y,h[3])}function Us(h,l,p,y,m,A){return l=Te(Te(l,h),Te(y,A)),Te(l<>>32-m,p)}function Gt(h,l,p,y,m,A,D){return Us(l&p|~l&y,h,l,m,A,D)}function qt(h,l,p,y,m,A,D){return Us(l&y|p&~y,h,l,m,A,D)}function Jt(h,l,p,y,m,A,D){return Us(l^p^y,h,l,m,A,D)}function Qt(h,l,p,y,m,A,D){return Us(p^(l|~y),h,l,m,A,D)}function yo(h){var l,p=[];for(l=0;64>l;l+=4)p[l>>2]=h.charCodeAt(l)+(h.charCodeAt(l+1)<<8)+(h.charCodeAt(l+2)<<16)+(h.charCodeAt(l+3)<<24);return p}var fr="0123456789abcdef".split("");function Eo(h){for(var l="",p=0;4>p;p++)l+=fr[h>>8*p+4&15]+fr[h>>8*p&15];return l}var gr=function(h,l){var p="";try{p=function(y){for(var m=0;m>2]|=y.charCodeAt(m)<<(m%4<<3);if(M[m>>2]|=128<<(m%4<<3),55m;m++)M[m]=0;return M[14]=8*A,Ci(D,M),D}(e(h)))}catch(y){l?p="":hj.exceptions.log(y,"md5")}return p};gr("hello")!="5d41402abc4b2a76b9719d911017c592"&&(Te=function(h,l){var p=(65535&h)+(65535&l);return(h>>16)+(l>>16)+(p>>16)<<16|65535&p});var vt={id:void 0,attributes:{},init:hj.tryCatch(function(){if(hj.settings.user_attributes_enabled){var h=function(){var l=hj.bridge.storage.items.HAS_CACHED_USER_ATTRIBUTES.get()==="true"?hj.bridge.storage.localStorage.USER_ATTRIBUTES.get():void 0;if(l)try{var p=function(y){try{var m=JSON.parse(y);if(m&&$(m)==="object")return!0}catch{}return!1}(l)?l:hj.b64DecodeUnicode(l);return JSON.parse(p)}catch{return}}();h&&(vt.id=h.userId,vt.attributes=h.attributes,delete vt.attributes.contentsquare_replay_link)}},"userAttributes.init"),reset:hj.tryCatch(function(){vt.id=void 0,vt.attributes={},hj.bridge.storage.items.HAS_CACHED_USER_ATTRIBUTES.clear(),hj.bridge.storage.localStorage.USER_ATTRIBUTES.clear()},"userAttributes.reset"),set:hj.tryCatch(function(h,l){var p,y,m,A,D;l&&l.contentsquare_replay_link&&(hj.log.debug("Storing contentsquare_replay_link user attribute: ".concat(l.contentsquare_replay_link),"userAttributes"),vt.attributes.contentsquare_replay_link=l.contentsquare_replay_link),hj.settings.user_attributes_enabled?(vt.id!==void 0&&vt.id!==null&&vt.id!==h&&(hj.log.debug("User ID changed, resetting all attributes before continuing.","userAttributes"),vt.reset()),vt.id=h,vt.attributes=(p=vt.attributes,y={},m={},[p,l].forEach(function(M){if(M)for(var R in M)Object.prototype.hasOwnProperty.call(M,R)&&R!=="length"&&(y[R]=M[R])}),Object.keys(y).sort().forEach(function(M){m[M]=y[M]}),m),A={attributes:vt.attributes,userId:vt.id},D=hj.b64EncodeUnicode(JSON.stringify(A)),hj.bridge.storage.localStorage.USER_ATTRIBUTES.set(D),hj.bridge.storage.items.HAS_CACHED_USER_ATTRIBUTES.set("true",!0),hj.event.signal("user-attributes-set"),hj.bridge.isRecordingEnabled()?vt.flush():hj.log.debug("No recording in progress. Not sending.","userAttributes")):hj.log.debug("User attributes not enabled. Doing nothing.","userAttributes")},"userAttributes.set"),flush:hj.tryCatch(function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hj.hq.noop;if(vt.id!==void 0||Object.keys(vt.attributes).length){var l=hj.bridge.storage.items.USER_ATTRIBUTES_HASH.get({resetExpiry:!0}),p=hj.md5(JSON.stringify({allAttributes:vt.attributes,userId:vt.id}));if(l===p)return h(null,vt.id,vt.attributes),void hj.log.debug("No changed user attributes. Not sending.","userAttributes");hj.bridge.storage.items.USER_ATTRIBUTES_HASH.set(p),hj.debug.isOn()&&function(y,m){hj.ajax.post("".concat(hj.identifyEndpoint,"/sites/").concat(hj.settings.site_id,"/users/").concat(hj.bridge.getSessionUserId(!0),"/validate"),{user_id:y,attributes:m},hj.tryCatch(function(A){A.errors&&Object.keys(A.errors).length>0?hj.log.debug("User validation API call PARTIALLY successful (some errors).","userAttributes",A):hj.log.debug("User validation API call successful.","userAttributes",A)},"userAttributes"),hj.tryCatch(function(A){hj.log.debug("User Attributes validation API call failed.","userAttributes",A.responseText&&JSON.parse(A.responseText)||"unknown_failure")},"userAttributes"))}(vt.id,vt.attributes),hj.bridge.flushUserAttributes(vt.id,vt.attributes),h(null,vt.id,vt.attributes)}else h(Error("no_user"))},"userAttributes.flush"),get:hj.tryCatch(function(h){return h==="user_id"?vt.id:h&&vt.attributes[h]},"userAttributes.get")},li={},Ii={"user.id":void 0},So={get:function(h){return Ii[h]},set:function(h,l){Ii[h]=l;var p=li[h];typeof p=="function"&&l&&(p(l),delete li[h])},on:function(h,l){li[h]=l;var p=Ii[h];p&&(l(p),delete li[h])},reset:function(){li={},Ii={"user.id":void 0}}},en=hj.tryCatch(function(){var h=function(){try{return window.self!==window.top}catch{return!0}}(),l={width:!h&&window.screen?window.screen.width:document.body.clientWidth,height:!h&&window.screen?window.screen.height:document.body.clientHeight};return{width:window.innerWidth||document.documentElement.clientWidth||l.width,height:window.innerHeight||document.documentElement.clientHeight||l.height}},"common"),vo=hj.tryCatch(function(){var h,l;if(document&&document.documentElement&&document.documentElement.clientWidth)h=document.documentElement.clientWidth,l=document.documentElement.clientHeight;else{var p=en();h=p.width,l=p.height}return{width:h,height:l}},"common"),_o=hj.tryCatch(function(h){return h=h||window,{left:hj.hq(h).scrollLeft(),top:hj.hq(h).scrollTop()}},"common"),wo=hj.tryCatch(function(){var h=parseInt(1e3*(hj.hq(window).scrollTop()+hj.ui.getWindowSize().height)/hj.hq(document).height(),10);return Math.min(1e3,h)},"common"),bo=hj.tryCatch(function(h){var l=hj.ui.getScrollPosition();hj.hq(document).on("scroll.hotjarDisable resize.hotjarDisable mousewheel.hotjarDisable DOMMouseScroll.hotjarDisable touchmove.hotjarDisable",hj.tryCatch(function(p){p.preventDefault(),window.scrollTo(l.left,l.top),h&&h()},"common"))},"common"),zc=hj.tryCatch(function(){hj.hq(document).off("scroll.hotjarDisable"),hj.hq(document).off("resize.hotjarDisable"),hj.hq(document).off("mousewheel.hotjarDisable"),hj.hq(document).off("DOMMouseScroll.hotjarDisable"),hj.hq(document).off("touchmove.hotjarDisable")},"common"),sn={getWindowSize:en,getDocumentSize:vo,getScrollPosition:_o,getBottomAsPercentage:wo,disableScrolling:bo,enableScrolling:zc},Ao=function(){var h=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).uuid;hj.debug=o,hj.log=f,hj.hq=F,hj.ajax=pr,hj.uuid=h||window.hj.uuid,hj.encodeAsUtf8=e,hj.b64EncodeUnicode=i,hj.b64DecodeUnicode=n,hj.md5=gr,hj.event=_,hj.userAttributes=vt,hj.targeting=B,hj.features=ge,hj.rendering=Vs,hj.ui=sn,hj.store={session:So}},To=hj.tryCatch(function(){var h=I("hjDebug");h&&(h==="1"||h==="true"?hj.debug.on(!0):hj.debug.off())},"init"),rn={storage:{},set:hj.tryCatch(function(h){rn.storage.events=h},"sessionEvents.set"),get:hj.tryCatch(function(){return rn.storage.events},"sessionEvents.get")};function ts(h,l){return function(p){if(Array.isArray(p))return p}(h)||function(p,y){var m=p==null?null:typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(m!=null){var A,D,M,R,H=[],q=!0,K=!1;try{if(M=(m=m.call(p)).next,y===0){if(Object(m)!==m)return;q=!1}else for(;!(q=(A=M.call(m)).done)&&(H.push(A.value),H.length!==y);q=!0);}catch(et){K=!0,D=et}finally{try{if(!q&&m.return!=null&&(R=m.return(),Object(R)!==R))return}finally{if(K)throw D}}return H}}(h,l)||function(p,y){if(p){if(typeof p=="string")return js(p,y);var m=Object.prototype.toString.call(p).slice(8,-1);return m==="Object"&&p.constructor&&(m=p.constructor.name),m==="Map"||m==="Set"?Array.from(p):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?js(p,y):void 0}}(h,l)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function js(h,l){(l==null||l>h.length)&&(l=h.length);for(var p=0,y=new Array(l);p0&&(hj.log.debug("Removing previously shown widget from DOM","widgets"),hj.hq(R).remove())},"widgets"),l.emptyMatchingWidgets=function(){y=[],m=[],A.forEach(function(R){R.disconnect()}),A=[],M=!1},l.isPhoneOrTablet=hj.tryCatch(function(){return hj.widget.isVeryNarrowScreen()||L()==="phone"||L()==="tablet"},"common"),l.isVeryNarrowScreen=hj.tryCatch(function(){return hj.hq(window).width()<=450},"common"),l.removeActiveWidget=function(R){hj.widgetDelay.clear(),Vs.clearAllAbandonEvents(),Vs.clearAllScrollEvents(),R=R||function(){},l.activeWidget?(l.activeWidget.removeCallback&&l.activeWidget.removeCallback(R),delete l.activeWidget):R()},l.runLatestMatchingWidget=function(){var R,H;y.forEach(function(q){var K=function(et){return et.type==="incoming"||et.displayType==="button"||et.displayType==="bubble"?0:1}(q);(!R||K>H||K===H&&q.created>R.created)&&(R=q,H=K)}),R?l.setActiveWidget(R):l.removeActiveWidget(),M=!0},l.runInlineEmbeddedWidgets=function(){D=D.filter(function(R){var H=hj.targeting.matchUrl(R.targetingRules,location.href);return H||R.removeCallback(),H}),m.forEach(function(R){R.runCallback()})},l.setActiveWidget=function(R){l.activeWidget&&R.type===l.activeWidget.type&&R.id===l.activeWidget.id||l.removeActiveWidget(function(){R.runCallback(),l.activeWidget=R})},l.setLanguage=hj.tryCatch(function(R){var H=(R||"en").replace("-","_");if(!es.includes(H))throw new Error('Invalid language "'+R+'"');h=H,hj.widget.activeLanguageDirection=p.indexOf(H)>-1?"rtl":"ltr",hj.widget.isActiveLanguageDirectionRtl=hj.widget.activeLanguageDirection==="rtl"},"common"),l.registerObserverForInlineWidget=function(R){A.push(R)},l}(),hj.widgetDelay=function(){var h={},l=null;return h.clear=hj.tryCatch(function(){clearTimeout(l),l=null},"hj.widgetDelay.clear"),h.set=hj.tryCatch(function(p,y){h.clear(),l=setTimeout(p,y)},"hj.widgetDelay.set"),h}()},"widgets"),It=Object.freeze({LIVE:"LIVE",REVIEW_WEBAPP:"REVIEW_WEBAPP",REVIEW:"REVIEW",STAGING:"STAGING",DEV:"DEV",DEV_OLD:"DEV_OLD"}),Oi=(Pi=(Hs=document.location.host.match(/^(insights-webapp|surveys-webapp|insights|surveys)-(.*?)((?:\.[^.]+)?(?:\.hotjarians\.net)|(?:\.[^.]+)?(?:\.eks\.hotjar\.com))$/))&&{component:Hs[1],reviewId:Hs[2],domain:Hs[3],reviewUrlSuffix:Hs[2]+Hs[3]})===null||Pi===void 0?void 0:Pi.reviewUrlSuffix,ie=Object.freeze(((ys={})[It.LIVE]={INSIGHTS:"insights.hotjar.com",SURVEYS:"surveys.hotjar.com"},ys[It.REVIEW]={INSIGHTS:"insights-".concat(Oi),SURVEYS:"surveys-".concat(Oi)},ys[It.REVIEW_WEBAPP]={INSIGHTS:"insights-webapp-".concat(Oi),SURVEYS:"surveys-webapp-".concat(Oi)},ys[It.STAGING]={INSIGHTS:"insights-staging.hotjar.com",SURVEYS:"surveys-staging.hotjar.com"},ys[It.DEV]={INSIGHTS:"local.hotjar.com:8443",SURVEYS:"surveys.local.hotjar.com:8443"},ys[It.DEV_OLD]={INSIGHTS:"local.hotjar.com",SURVEYS:"surveys.local.hotjar.com"},ys)),Es=function(h){return function(l,p){return l===ie[h][p]}},De=Es(It.DEV),on=Es(It.DEV_OLD),me=Es(It.LIVE),Ro=Es(It.REVIEW_WEBAPP),mr=Es(It.REVIEW),Co=Es(It.STAGING),an=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.location.href,l=[ie[It.LIVE].SURVEYS,ie[It.REVIEW_WEBAPP].SURVEYS,ie[It.REVIEW].SURVEYS,ie[It.STAGING].SURVEYS,ie[It.DEV].SURVEYS,ie[It.DEV_OLD].SURVEYS],p=document.createElement("a");return p.href=h,l.indexOf(p.hostname)>=0},Ni=(Object.freeze({LAST_RECORDING_ACTIVITY_STORE_DEBOUNCE:5e3,MAX_TIME_SINCE_LAST_RECORDING_ACTIVITY_IN_SESSION:12e4}),window.hjLazyModules,"js"),Mi=(Object.freeze({id:null,selector_version:2}),function(h){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Po,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oo,y=0,m=!1;function A(){--y!=0||m||l.bind(this)()}function D(){m=!0,p.bind(this)()}Object.keys(h).forEach(function(M){var R=h[M];typeof R=="string"&&(R=[R]),y+=R.length,R.forEach(function(H){Io(H,M,A,D)})})}),Io=function(h,l,p,y){var m;l===Ni?(m=document.createElement("script")).src="".concat(hj.scriptDomain).concat(h):l==="css"&&((m=document.createElement("link")).href="".concat(hj.scriptDomain).concat(h),m.rel="stylesheet"),m.onload=p,m.onerror=y,document.getElementsByTagName("head")[0].appendChild(m)};function Po(){}function Oo(){var h=this.src||this.href;hj.exceptions.log(new Error("Failed to load module: ".concat(h,".")),"loader")}var hi=function(h,l){var p,y,m,A,D=(p=window.CS_CONF)===null||p===void 0||(y=p.voc)===null||y===void 0?void 0:y.enabled;if(hj.isPreview||D&&hj.settings.state_change_listen_mode==="manual")return!1;var M=((m=h.targeting)===null||m===void 0?void 0:m.filter(function(et){return et.component==="url"}))||[],R=(A=h.targeting)===null||A===void 0?void 0:A.some(function(et){return et.component==="trigger"}),H=h.display_type===he.EXTERNAL||h.display_type===he.MOBILE_POPOVER,q=D?location.href:hj.currentUrl,K=R||H||hj.targeting.matchUrl(M,q)===!0;return hj.tryCatch(function(){if(!K)throw new Error("Rendered survey out of URL targeting in ".concat(l," with ID: ").concat(h.id))},"render-out-of-targeting")(),!K};function cn(h,l){for(var p=h.querySelectorAll(l),y=0;y0&&re?ut.uuid===q&&(hj.log.debug("Offsite poll #"+ut.id+" has matched with the embedded UUID "+q,"poll"),et=!0,l.addEmbedded(ut,H)):!K&&Yt&&hj.targeting.matchRules({rules:ut.targeting,userAttributeMatchLogic:ut.targeting_user_attribute_match_logic},R,hj.tryCatch(function(){hj.log.debug("Poll #"+ut.id+" has matched.","poll"),hj.bridge.storage.items.POLL_DONE.exists(ut.id)&&ut.persist_condition!=="always"?hj.log.debug("Poll was already submitted.","poll"):hj.widget.addMatchingWidget("poll",ut.id,ut.created_epoch_time,ut.targeting_percentage,function(){return l.add(ut)},function(ye){return l.remove(ye,ut.id)},ut.display_type,ut.targeting)},"polls.run.matchRules-callback"))}),K&&!et&&(hj.hq(document).trigger("hj-embedded-survey-mismatch"),hj.widgetDelay.clear(),hj.widget.emptyMatchingWidgets(),hj.log.debug("Could not match the embedded UUID.","poll"))},"polls"),l.enablePreview=function(){window._hjPollReload=M},hj.isPreview&&l.enablePreview(),l}()},"polls"),ln=Object.freeze({MODAL:"_hj-modal",FOOTER:"_hj-footer",SURVEY_INVITES:"_hj_survey_invite_container",HEATMAP_RETAKER:"_hj-heatmap-retaker",ADMIN_WIDGET:"_hj_admin_widget",NOTICATION:"_hj-notification"}),$c=(Object.freeze({RETAKER:"_hjRetakerTrsToken",TARGETING:"_hjRetakerTargeting"}),function(h){if(h){if(h.startsWith("data:image")||h.startsWith("blob:")||h.startsWith("http"))return h;var l=hj.environment==="live"?hj.surveyImagesHost:"d23waydkwbngmu.cloudfront.net";return"https://".concat(l,"/").concat(h)}}),Gc=function(){var h={},l=window.hjLazyModules;function p(y){return y.display_type===he.EXTERNAL?function(m,A){if(A)return"https://".concat(A,"/").concat(m);var D=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"INSIGHTS",H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.location.host;return me(H,R)?It.LIVE:De(H,R)?It.DEV:on(H,R)?It.DEV_OLD:Ro(H,R)?It.REVIEW_WEBAPP:mr(H,R)?It.REVIEW:Co(H,R)?It.STAGING:It.LIVE}(),M=ie[D].SURVEYS;return"https://".concat(M,"/").concat(m)}(y.uuid,hj.surveysHost):y.public_url}return h.run=hj.tryCatch(function(y){if(!an(y)){var m=(hj.settings.polls||[]).filter(function(D){return D.invite_enabled&&D.display_type===he.EXTERNAL}),A=(hj.settings.surveys||[]).concat(m);hj.hq.each(A||[],function(D,M){B.matchRules({rules:M.targeting,userAttributeMatchLogic:M.targeting_user_attribute_match_logic},y,hj.tryCatch(function(){hj.log.debug("Survey #"+M.id+" has matched.","survey"),hj.bridge.storage.items.SURVEY_INVITES_CLOSED.exists(M.id)?hj.log.debug("Survey was already viewed.","survey"):hj.widget.addMatchingWidget("survey",M.id,M.created_epoch_time,M.targeting_percentage,function(){hj.survey.data=M,Vs.callAccordingToCondition(hj.survey.data,"survey",hj.tryCatch(function(){var R;R=hj.survey.data,hj.widget.surveyInvitationData={id:R.id,title:R.invite.title,description:R.invite.description,button:R.invite.button,close:R.invite.close,url:p(R),logoUrl:$c(R.logo_path||R.logo_url)},Mi(l.SURVEY_INVITATION)},"polls"))},h.remove)},"surveys.run.matchRules-callback"))})}},"surveys"),h.remove=hj.tryCatch(function(y){hj.survey.data?(hj.hq(".".concat(ln.SURVEY_INVITES)).length>0&&hj.hq(".".concat(ln.SURVEY_INVITES)).remove(),delete hj.survey.data,y&&setTimeout(function(){y()},1)):y&&y()}),h},yr=hj.tryCatch(function(){hj.survey={invites:Gc(),ctrl:void 0,data:void 0,model:{},activeLanguageDirection:"ltr"}},"surveys");function ki(){return ki=Object.assign?Object.assign.bind():function(h){for(var l=1;lh.length)&&(l=h.length);for(var p=0,y=new Array(l);p-1}).reduce(function(R,H){var q;return Le(Le({},R),{},((q={})[H[0]]=H[1],q))},{});return M.t?{event:M.t,category:M.ec||"",action:M.ea||"",label:M.el||"",value:M.ev||""}:{}}(m.get("hitPayload"));A.event==="event"&&Ss("ga",A)})}),ue("gaClientSent")||(hj.metrics.count("ga-version",{tag:{version:"ga"}}),di("gaClientSent",!0)))}},"ga.forward_events")},ht=pt("ga.send_hjuid"),zs=60,_r=!0,wr=!1,vs=hj.tryCatch(function(){wr||(wr=!0,hj.store.session.on("user.id",function(h){typeof h!="string"||h.length<8?ht("invalid userid: '".concat(h,"'")):(ht("got userId"),xe=h.substring(0,8),_s())}),dn())},"integrations.googleAnalytics"),dn=hj.tryCatch(function(){if(!Fs){if(Bs()){ue("gaClientSent")||(hj.metrics.count("ga-version",{tag:{version:"ga"}}),di("gaClientSent",!0));var h=window[window.GoogleAnalyticsObject||"ga"];return ht("`ga` variable is available, waiting for tracker."),void h(function(l){Ui(l,!0)})}zs<=0?ht("given up looking for GA module"):(zs-=1,setTimeout(dn,500))}},"integrations"),Ui=hj.tryCatch(function(h,l){h&&(Fs&&l||(Fs!==h&&(ht("got fresh tracker"),_r=!0),Fs=h,_s()))},"integrations"),_s=hj.tryCatch(function(){_r&&xe&&Fs&&(_r=!1,Fs.send("event","Hotjar","detect_user",xe,{nonInteraction:1}),ht("successfully sent detect_user event"))},"integrations"),Mo={setup:vs,setTracker:hj.tryCatch(function(h){Ui(h,!1)},"integrations.googleAnalytics")},pn=pt("ga.send_hjuid_gtag"),Ce=!1,pi=hj.tryCatch(function(){if(!Ce){Ce=!0;var h=window.dataLayer;h!==void 0?(ue("datalayerSent")||(hj.metrics.count("ga-version",{tag:{version:"datalayer"}}),di("datalayerSent",!0)),ue("gtagClientSent")||(hj.metrics.count("ga-version",{tag:{version:"gtag"}}),di("gtagClientSent",!0)),hj.store.session.on("user.id",function(p){if(p&&typeof p=="string"&&!(p.length<8)){var y=p.substring(0,8);l("set","user_properties",{hjuid:y}),l("event","detect_user",{event_category:"Hotjar",event_label:y,non_interaction:!0})}})):pn("`dataLayer` is undefined")}function l(){var p;pn("calling gtag(".concat((p=arguments,Array.from(p).map(function(y){return JSON.stringify(y)})),")")),h.push(arguments)}},"ga.send_hjuid_gtag"),br={forwardEvents:Wt,sendHotjarUserId:Mo,sendHotjarUserIdGtag:{setup:pi}},ko=function(){return hj.bridge.storage.items.HUBSPOT_UTK.get()!==null},ji=pt("hubspot","integrations"),fn={setup:hj.tryCatch(function(){ji("HubSpot setup started"),nt(ko,function(h){if(h){var l=hj.bridge.storage.items.HUBSPOT_UTK.get();ji("HubSpot UTK found: ".concat(l)),hj.event.signal("int.hubspot",{utk:l})}else ji("HubSpot UTK cookie not found")},5e3,5)},"hubspot.setup")},Do=pt("kissmetrics","integration"),gn=function(){return window.KM!==void 0&&window.KM.i!==void 0},Lo={setup:hj.tryCatch(function(){nt(gn,function(h){if(h){var l=window.KM.i();Do("Kissmetrics User ID found: ".concat(l)),hj("identify",null,{kissmetrics_id:l})}},5e3,5)},"kissmetrics.setup")},Ar=pt("mixpanel.send_events"),xo=function(){return window.mixpanel!==void 0&&window.mixpanel.set_config!==void 0},Vo={setup:hj.tryCatch(function(){nt(xo,function(h){h?(Ar("Registering mixpanel hook"),window.mixpanel.set_config({hooks:{before_send_events:function(l){var p=jt(l.event);return Ar("sending mixpanel payload: ".concat(l.event)),hj("event","MP_".concat(p)),hj.event.signal("int.mp",{event:p}),l}}})):Ar("mixpanel global object not found or set_config not ready")},3e3,5)},"mixpanel.setup")},Hi=pt("optimizely","integration"),ws=window.optimizely;function mn(){Hi("looking for tags.");var h=ws.get("state").getExperimentStates({isActive:!0});for(var l in h){var p=h[l],y=(p.isInExperimentHoldback?"HB_":"")+p.experimentName,m=p.variation.name||p.variation.id;hj.event.signal("exp.opt",{experimentId:y,variantId:m}),hj("event",y+"/"+m)}}var Uo={setup:hj.tryCatch(function(){ws!==void 0&&typeof ws.push=="function"&&typeof ws.get=="function"&&ws.get("state")!==void 0&&ws.get("data")!==void 0?(Hi("listening for campaignDecided event."),(ws=window.optimizely||[]).push({type:"addListener",filter:{name:"campaignDecided"},handler:function(h){h.name==="applied"&&(Hi("campaign decided; ready to tag experiments."),mn())}}),mn()):Hi("`window.optimizely` is not ready")},"optimizely.setup")},jo={setup:hj.tryCatch(function(){window.ub!==void 0&&window.ub.page!==void 0&&window.ub.page.variantId!==void 0?(hj.log.debug("Unbounce experiment in page '".concat(window.ub.page.name,"' is on variant '").concat(window.ub.page.variantId,"'"),"integration",window.ub),hj.event.signal("exp.ub",{experimentId:window.ub.page.name,variantId:window.ub.page.variantId}),hj("event","".concat(jt(window.ub.page.name),"-variant-").concat(window.ub.page.variantId))):hj.log.debug("Unbounce experiment not found","integration")},"unbounce.setup")},Ho=hj.tryCatch(function(){var h=hj.settings.integrations;if(h){var l=hj.bridge.getSessionUserId();hj.store.session.set("user.id",l),h.optimizely&&h.optimizely.tag_recordings&&Uo.setup(),h.google_analytics&&(h.google_analytics.tag_sessions&&br.forwardEvents.setup(),h.google_analytics.send_hotjar_id&&(br.sendHotjarUserId.setup(),br.sendHotjarUserIdGtag.setup())),h.unbounce&&h.unbounce.tag_recordings&&jo.setup(),h.mixpanel&&h.mixpanel.send_events&&Vo.setup(),h.hubspot&&h.hubspot.enabled&&h.hubspot.send_recordings&&fn.setup(),h.abtasty&&h.abtasty.tag_recordings&&xi.setup(),h.kissmetrics&&h.kissmetrics.send_user_id&&Lo.setup()}},"integrations"),yn=!1,fi=function(h){var l=h.title,p=h.message,y=h.status,m=window.hjLazyModules;yn?hj.widget.renderNotificationWidget({title:l,message:p,status:y}):Mi(m.NOTIFICATION,function(){yn=!0,hj.widget.renderNotificationWidget({title:l,message:p,status:y})})};function Bi(){return Bi=Object.assign?Object.assign.bind():function(h){for(var l=1;l0&&arguments[0]!==void 0?arguments[0]:"Hotjar",p=I("hjVerifyInstall"),y=I("hjVerifyUUID"),m=function(){fi({title:"".concat(l," installation invalid"),message:"The tracking code you are trying to verify does not match the one installed on this page. Please make sure you install the correct tracking code provided for this site.",status:"bad"}),Ie._reportVerificationResults(y,"wrong_code",{expected:String(hj.verifyInstall),actual:String(hjSiteSettings.site_id)});var K="Passed Site ID: ".concat(hj.verifyInstall," != Configured Site ").concat(hj.settings.site_id);hj.exceptions.log(new Error(K),"init._verifyInstallation")};try{h=sessionStorage.getItem("hjVerifyInstall")}catch{}if(p||h){hj.verifyInstall=parseInt(p||h);try{sessionStorage.setItem("hjVerifyInstall",p||h)}catch{}if(window.hjBootstrapCalled&&window.hjBootstrapCalled.length>1){var A,D=window.hjBootstrapCalled.filter(function(K,et){return window.hjBootstrapCalled.indexOf(K)===et}),M="You have "+window.hjBootstrapCalled.length+" tracking scripts installed on your site. ",R=window.hjBootstrapCalled.length===2?"script as this":"scripts as these",H=!!window.dataLayer;D.length>1?(A=M+"Please remove the duplicate "+R+" will cause issues.",fi({title:"Multiple different ".concat(l," scripts detected"),message:A,status:"bad"}),Ie._reportVerificationResults(y,"multiple_codes",{expected:String(hj.verifyInstall),actual:D,gtm:!1})):H?(A=M+"If you've installed ".concat(l," through GTM - please remove the duplicate ")+R+" will cause issues.",Ie._reportVerificationResults(y,"multiple_codes",{expected:String(hj.verifyInstall),actual:D,gtm:!0}),fi({title:"Multiple ".concat(l," scripts detected"),message:A,status:"bad"})):hj.verifyInstall===hj.settings.site_id?(A=M+"This will not affect data collection, but we do suggest removing redundant scripts.",Ie._reportVerificationResults(y,"warning",{expected:String(hj.verifyInstall),reason:"multiple scripts"}),fi({title:"Multiple ".concat(l," scripts detected"),message:A,status:"warning"})):m();var q="Passed Site ID: "+hj.verifyInstall+" contains multiple scripts "+window.hjBootstrapCalled.join(", ");hj.exceptions.log(new Error(q),"init._verifyInstallation")}else hj.verifyInstall===hj.settings.site_id?(Ie._sendVerifyInstallation(function(K){K.success||hj.exceptions.log(new Error("Verify installation endpoint failed"),"init._verifyInstallation")}),fi({title:"".concat(l," installation verified"),message:"The ".concat(l," tracking code has been properly installed on this page. ")+"Browse your site in this window if you wish to verify installation on any other pages.",status:"good"}),Ie._reportVerificationResults(y,"ok")):m()}}}).verifyInstallation,Fo=r.u6,zo=r.b2,En=r.Vv,Sn=r.pF,gi=r.XA,$o=r.fd,vn=r.ec;return{cn:Fo,un:zo,ln:En,dn:Sn,hn:gi,gn:$o,fn:vn}}(),nS=Ri.cn,oS=Ri.un,aS=Ri.ln,Ha=Ri.dn,cS=Ri.hn,Ba=Ri.gn,lS=Ri.fn,hS=60*60*24*1e3,uS=hS*365,ca=(s,r,t=uS)=>({add:e=>{let i=r.get(s),n=i?`${i},${e}`:e;r.set({key:s,value:n,duration:t})},exists:e=>{let i=(r.get(s)==null?void 0:csString.prototype.split.call(r.get(s),","))||[];for(let n=0;n{let i=(r.get(s)==null?void 0:csString.prototype.split.call(r.get(s),","))||[],n=csArray.prototype.join.call(csArray.prototype.filter.call(i,o=>o!==csString(e)),",");r.set({key:s,value:n,duration:t})}}),Gi=(s,r,t=!1)=>({set:e=>r.set({key:s,value:e,useLocalStorage:t}),get:()=>r.get(s,t),clear:()=>r.clear(s,t)}),dS=(()=>{class s{constructor(t,e,i){this.f=t,this.V=e,this.Ht=i}get(t,e){return this.f.cookielessTrackingEnabled||e?this.Ht.getItem(t):this.V.get(t)||this.Ht.getItem(t)}set(t){this.f.cookielessTrackingEnabled||t.useLocalStorage?this.Ht.setItem(t.key,t.value):this.V.set(t.key,t.value,t.duration)}clear(t,e){this.f.cookielessTrackingEnabled||e?this.Ht.removeItem(t):this.V.delete(t)}}return s})(),pS=(s,r,t)=>{hj.bridge={storage:{items:{POLL_DONE:ca("_hjDonePolls",s),POLL_MINIMIZED:ca("_hjMinimizedPolls",s),SURVEY_INVITES_CLOSED:ca("_hjClosedSurveyInvites",s),DEBUG_FLAG:Gi("hjDebug",s),FEEDBACK_SHOW_MESSAGE:Gi("_hjShownFeedbackMessage",s),HUBSPOT_UTK:Gi("hubspotutk",s),HAS_CACHED_USER_ATTRIBUTES:Gi("_hjHasCachedUserAttributes",s),USER_ATTRIBUTES_HASH:Gi("_hjUserAttributesHash",s)},localStorage:{USER_ATTRIBUTES:Gi("_hjUserAttributes",s,!0)}},getSessionUserId:()=>{let e=r.getVisitor();return e==null?void 0:e.id},getSessionFirstSeen:()=>{},getPageContent:e=>t==null?void 0:t.getPageContent(e),isRecordingEnabled:()=>!1,flushUserAttributes:()=>null}};function fS(){window._uxa.push(["replay:link:generate",{},({isRecording:s,replayLink:r})=>{typeof hj=="function"&&s&&r&&hj("identify",null,{contentsquare_replay_link:`https://${r}&vd=hotjar`})}])}function Wl(s){let r=!1,t,e={},i=["event","trigger","identify"];function n(f){return!hj.optOut&&csArray.prototype.indexOf.call(i,f)>=0}function o(){Object.defineProperty(t,"push",{writable:!0,value:function(){for(let f=0;f0&&Y.tryToExecute("hj-queue-command",c)()}function u(f){f[0]&&hj.event.signal("trigger:"+f[0])}function d(f){let _=f[0];if(f[1]){let w;!_&&_!==0||_==="null"||_==="undefined"?w=null:w=csString(_),hj.userAttributes.set(w,f[1])}else _!=null&&typeof _=="object"&&hj.userAttributes.set(null,_)}return e.event=function(f){if(u(f),f&&f.length>0){let _=f[0];s.pushExternalEvents([_])}},e.identify=function(f){d(f)},e.trigger=function(f){u(f)},{activate:function(){!r&&hj&&(t=hj.q,r=!0,o(),t.length>0&&c())},isActive:()=>r}}var Ne={invitationDisplayed:"surveyInvitationDisplayed",displayed:"surveyDisplayed",submitted:"surveySubmitted",completed:"surveyCompleted",responseUrl:"surveyResponseUrl"},Cr={[Ne.invitationDisplayed]:"Survey Invitation Displayed",[Ne.displayed]:"Survey Displayed",[Ne.submitted]:"Survey Response Submitted",[Ne.completed]:"Survey Completed",[Ne.responseUrl]:"Survey Response URL"},In={[Ne.invitationDisplayed]:"survey_invitation_displayed",[Ne.displayed]:"survey_displayed",[Ne.submitted]:"survey_response_submitted",[Ne.completed]:"survey_completed"},la="FB_HJ_",gS=(()=>{class s{constructor(t){this.Xf=[],this.qe=t}Bn(t,e,i,n,o){let c=`${t}-${i}`,u=la+e,d=o?t:`Survey ID : ${i}`,S=!1,f=`${window.location.pathname}?cs_hotjar=${n}`;csArray.prototype.includes.call(this.Xf,c)||(csArray.prototype.push.call(this.Xf,c),this.qe.pushDynamicVariable(u,d)),S&&n&&this.qe.pushPageView(f)}listen(){window.addEventListener("hotjar-survey-event",t=>{if(t&&t.detail&&t.detail.event){let{event:e,surveyId:i,question:n,questionIndex:o,response:c,insightsUrl:u}=t.detail;if(i)switch(e){case Ne.invitationDisplayed:this.Bn(e,Cr.surveyInvitationDisplayed,i,In.surveyInvitationDisplayed);break;case Ne.displayed:this.Bn(e,Cr.surveyDisplayed,i,In.surveyDisplayed);break;case Ne.completed:this.Bn(e,Cr.surveyCompleted,i,In.surveyCompleted);break;case Ne.submitted:{if(this.Bn(e,Cr.surveySubmitted,i,In.surveySubmitted),n){let d=c&&c[0]&&c[0].answer;n.type!="multiple-close-ended"&&n.text&&typeof d!="undefined"&&(isNaN(d)||(d=parseInt(d)),this.qe.pushDynamicVariable(`${la+i} : ${n.text}`,d),this.qe.pushDynamicVariable(`${la+i} : Question ${o+1}`,d))}u&&this.Bn(u,Cr.surveyResponseUrl,i,null,!0)}break}}})}}return s})(),Yl=250,Fa=class{constructor(r){this.et=r}pushPageView(r){window._uxa.push(["trackPageview",r])}pushDynamicVariable(r,t){window._uxa.push(["trackDynamicVariable",{key:r,value:t}])}pushInternalEvents(r){csArray.prototype.forEach.call(r,({key:t,val:e})=>this.pushDynamicVariable(t,e))}pushExternalEvents(r){var t;if(!this.et)return;let e=this.Ib(r);for(let i=0;i-1&&Ge.mayHaveEmail(r)||t&&Ge.mayHaveIPAddress(r))}Ib(r){let t=/^[a-zA-Z0-9 _\-.:/]*$/;return r?csArray.prototype.filter.call(r,e=>e?t.test(e.toString())?this.Ob(e)?(hj.log.debug("Tag "+e+" has been removed due to possible PII information included"),!1):!0:(hj.log.debug("Tag "+e+" has been removed due to having invalid characters"),!1):!1):[]}Pb(r){return typeof r=="string"?csString.prototype.replace.call(r,/^\s+|\s+$/gm,""):""}},mS=Fa,za=class{constructor(r){this.qe=r}send(r){hj.log.debug(`Sending tags: ${csJSON.stringify(r)}`),this.qe.pushInternalEvents(r)}tag(r,t,e,i,n){let o=this;return function(c){if(c){let u=csArray.prototype.reduce.call(e,function(d,S){let f=r,_="",w=Object.keys(S);return csArray.prototype.forEach.call(w,function(T){let N=S[T],x=c[N];x==null&&(x=""),i&&(x=i(N,x)),N===t&&(_=x),N===t&&!n?f+=`.${T}`:x!==""&&(f+=`.${T}:${x}`)}),csArray.prototype.push.call(d,{key:f,val:_}),d},[]);o.send(u)}}}setup({vocEnabled:r,integrationsEnabled:t}){let e=function(d,S){return typeof S=="string"?csString.prototype.replace.call(S,/\.|:/g,"_"):S},i=function(d,S){return csString.prototype.replace.call(csString.prototype.replace.call(csString.prototype.replace.call(csString.prototype.toString.call(S),".e:",".E:"),".v:",".V:"),".c:",".C:")},n=function(d,S){if(d==="answer"){let _=parseInt(S);return isNaN(_)?(Y.warn(`Poll question answer should be a number type, received ${S} instead`),S):_}return d!=="type"?S:{"rating-scale-5":"rating5","rating-scale-7":"rating7","net-promoter-score":"nps","single-close-ended":"singleClose","multiple-close-ended":"multiClose","single-open-ended-multiple-line":"singleOpenMulti","single-open-ended-single-line":"singleOpenSingle"}[S]||S},o={"poll.show":this.tag("poll.show","id",[{id:"id"}]),"poll.send":this.tag("poll.send","response_id",[{id:"id",r_id:"response_id"}]),"poll.question":this.tag("poll.q","answer",[{t:"type",a:"answer",id:"id",qid:"questionUuid"}],n),"feedback.show":this.tag("feedback.show","id",[{id:"id"}]),"feedback.send":this.tag("feedback.send","id",[{id:"id"}]),"feedback.sentiment":this.tag("feedback.sentiment","emotion",[{e:"emotion",id:"id",r_id:"response_id"}]),"survey.show":this.tag("survey.show","id",[{id:"id"}]),"survey.open":this.tag("survey.open","id",[{id:"id"}])},c={"exp.opt":this.tag("exp.opt","variantId",[{e:"experimentId",v:"variantId"}],i),"exp.ub":this.tag("exp.ub","variantId",[{e:"experimentId",v:"variantId"}],i),"exp.abt":this.tag("exp.abt","variantId",[{e:"experimentId",v:"variantId"}],i),"exp.go":this.tag("exp.go","variantId",[{e:"experimentId",v:"variantId",c:"containerId"}],i),"int.ga":this.tag("int.ga","action",[{a:"action"}],e,!0),"int.mp":this.tag("int.mp","event",[{event:"event"}],e,!0),"int.hubspot":this.tag("int.hubspot","utk",[{utk:"utk"}])};return Object.assign({},r?o:{},t?c:{})}listen(r){let t=this.setup(r);csArray.prototype.forEach.call(Object.keys(t),function(e){hj.event.listen(e,t[e])})}},yS=za,Xl=["start:hotjar"],ES="static.hj.contentsquare.net",ud=(()=>{class s{constructor(t,e,i,n,o,c,u,d,S){this.f=t,this.E=e,this.V=i,this.Ht=n,this.I=o,this.R=c,this.Nb=u,this.et=d,this.Mb=S,this.xi=!1,this.Fn=!1,this.ot=new dS(this.f,this.V,this.Ht),this.qe=new mS(this.et)}init(){var t,e,i;this.xi=this.f.isSMB,this.Fn=!!(!((t=this.f.voc)===null||t===void 0)&&t.enabled&&(!((e=this.f.voc)===null||e===void 0)&&e.siteId)),this.ut(),oS({uuid:Cc.generate}),pS(this.ot,this.I,this.Nb),this.xi&&Wl(this.qe).activate(),(i=this.Mb)===null||i===void 0||i.start()}onAfterNaturalPageView(){this.startHotjar()}onAfterArtificialPageView(){if(this.Fn){let t=this.R.getUrl();hj.currentUrl=t,Ha(),Ba(t)}}startHotjar(){var t;if(this.xi&&window.hjSiteSettings&&window._uxa.push([Xl,window.hjSiteSettings]),!this.xi&&this.Fn){let e=(t=this.f.voc)===null||t===void 0?void 0:t.siteId,i=window.document,n=i.head||i.getElementsByTagName("head")[0],o=i.createElement("script");o.async=!0,o.src=`https://${ES}/c/hotjar-${e}.js`,o.charset="utf-8",n.appendChild(o)}}ut(){this.E.register(Xl,t=>{if(t&&(hj.settings=t,nS(),new yS(this.qe).listen({vocEnabled:this.Fn,integrationsEnabled:this.xi}),this.xi?(hj.scriptLoaded=!0,aS(),cS(),window.hjBootstrapCalled=csArray.prototype.concat.call(window.hjBootstrapCalled||[],t.site_id),lS("Contentsquare")):Wl(this.qe).activate(),this.Fn)){let i=this.R.getUrl();hj.currentUrl=i,this.xi||new gS(this.qe).listen(),Ha(),fS(),Ba(i)}})}}return s})();var Ts;(function(s){s.replayRecordingUnmaskedUrlRegex="replayRecordingUnmaskedUrlRegex",s.replayRecordingMaskedUrlRegex="replayRecordingMaskedUrlRegex",s.replayRecordingUnmaskedUrlRegexRules="replayRecordingUnmaskedUrlRegexRules",s.replayRecordingMaskedUrlRegexRules="replayRecordingMaskedUrlRegexRules"})(Ts||(Ts={}));var ns;(function(s){s.START="start",s.NOT_START="not-start",s.END="end",s.NOT_END="not-end",s.CONTAIN="contain",s.NOT_CONTAIN="not-contain",s.EXACT="exact",s.NOT_EXACT="not-exact"})(ns||(ns={}));var uo=(()=>{class s{constructor(t,e,i,n){this.fe=t,this.f=e,this.R=i,this.zn=n}init(){this.xb()}shouldMaskNonTextElements(){if(this.f.anonymisationMethod!==Ts.replayRecordingMaskedUrlRegexRules)return!1;if(this.f.isSMB)return this.shouldUseAnonymization();let t=this.zn.getMatchingRules(this.R.getAnonymizedUrl());return csArray.prototype.some.call(t,e=>e.maskMedia)}shouldUseAnonymization(){if(this.fe.isReplayUnanonymizedAllowedByConsent()){switch(this.f.anonymisationMethod){case null:case Ts.replayRecordingMaskedUrlRegex:return!!(this.f.replayRecordingMaskedUrlRegex&&this.f.replayRecordingMaskedUrlRegex.test(this.R.getAnonymizedUrl()));case Ts.replayRecordingMaskedUrlRegexRules:return this.zn.evaluateUrl(this.R.getAnonymizedUrl())}return!1}else{switch(this.f.anonymisationMethod){case null:case Ts.replayRecordingUnmaskedUrlRegex:return!(this.f.replayRecordingUnmaskedUrlRegex&&this.f.replayRecordingUnmaskedUrlRegex.test(this.R.getAnonymizedUrl()));case Ts.replayRecordingUnmaskedUrlRegexRules:return!this.zn.evaluateUrl(this.R.getAnonymizedUrl())}return!0}}xb(){this.f.anonymisationMethod===Ts.replayRecordingMaskedUrlRegexRules&&this.f.replayRecordingMaskedUrlRegexRules?this.zn.setRegexRules(this.f.replayRecordingMaskedUrlRegexRules):this.f.anonymisationMethod===Ts.replayRecordingUnmaskedUrlRegexRules&&this.f.replayRecordingUnmaskedUrlRegexRules&&this.zn.setRegexRules(this.f.replayRecordingUnmaskedUrlRegexRules)}}return s})(),$e;(function(s){s.REGEX="regex",s.START="start",s.NOT_START="not-start",s.END="end",s.NOT_END="not-end",s.CONTAIN="contain",s.NOT_CONTAIN="not-contain",s.EXACT="exact",s.NOT_EXACT="not-exact"})($e||($e={}));var Kl;(function(s){s.REGEX="regex",s.OPERATOR="operator",s.TURN_OFF="turn-off"})(Kl||(Kl={}));var Kr=(()=>{class s{constructor(){this.Ch=[]}setRegexRules(t){this.Ch=csArray.prototype.filter.call(csArray.prototype.map.call(t,e=>this.Vb(e)),e=>e!==null)}evaluateUrl(t){return csArray.prototype.some.call(this.Ch,e=>this.Qf(t,e))}getMatchingRules(t){return csArray.prototype.filter.call(this.Ch,e=>this.Qf(t,e))}Qf(t,e){var i,n;let o=this.Ub(t,e);return!this.jb(e)||!this.Hb(e)?!1:!!(e!=null&&e.notOperator?!(!((i=e.regex)===null||i===void 0)&&i.test(o)):!((n=e.regex)===null||n===void 0)&&n.test(o))}jb(t){let e=new csDate,i=t.startDate&&t.startDate>e,n=t.endDate&&t.endDate{if(r.nodeType===11){let t=at.getProperty(r,"styles");t&&(r.adoptedStyleSheets=t)}}),s}function SS(s){if(s!=null&&s.length)return Ye(s,r=>vS(r))}function pd(){_e(document).visitAll(s=>{var r;if(Ji(s)&&((r=s.adoptedStyleSheets)===null||r===void 0?void 0:r.length)>0){let t=SS(s.adoptedStyleSheets);at.setProperty(s,"styles",t)}})}function vS(s){let r=[];try{r=Ye(s.cssRules,t=>t.cssText)}catch{}return{cssRules:r,disabled:s.disabled}}var fd=(()=>{class s{constructor(t,e,i,n,o){this.AA=t,this.f=e,this.$t=i,this.Et=n,this.kt=o}getPageContent(t){this.$t.setMaskedElementSettings(this.Et.getMaskedElementSettings()),this.$t.startIdentifier(),this.kt.start(),pd(),Im.serialize(document,e=>{let i=dd(e),n=csArray.prototype.reduce.call(this.AA,(o,c)=>c.sanitize(o),i);this.kt.stop(),t(csJSON.stringify(n),this.f.projectId)})}}return s})(),Ic=(()=>{class s extends Ls{constructor(t){super(),this.F=null,this.Ta=null,this.M=null,this.Fs=null,this.og=["value","checked","src","data","alt"],this.Ra={state:W.MaskedElementState.Child},this.TA=e=>{for(let i of e){if(W.isMaskedElement(i.target)||W.isMaskedElementChild(i.target))for(let n=0;nS==="added"&&this.OA(d))),this.M.observe(),csSetTimeout(this.RA)}onStop(){var t,e,i;this.F&&(this.cg(document),this.F.disconnect()),(t=this.Ta)===null||t===void 0||t.disconnect(),(e=this.M)===null||e===void 0||e.disconnect(),(i=this.Fs)===null||i===void 0||i.disconnect()}CA(){return window.ResizeObserver?new ResizeObserver(t=>{csArray.prototype.forEach.call(t,e=>{this.resizeObserverCallback(e)})}):null}IA(){return new Ke(t=>{csArray.prototype.forEach.call(t,e=>{this.NA(e)?this.ag(e):(this.MA(e),this.kA(e))})})}PA(t){return new Ke(e=>{csArray.prototype.forEach.call(e,i=>this.DA(i,t))})}resizeObserverCallback(t){let e=t.target.getBoundingClientRect(),i=W.getMaskedElementDetails(t.target);if(i.state!==W.MaskedElementState.Parent||e.width===i.width&&e.height===i.height)return;let n={state:W.MaskedElementState.Parent,width:e.width,height:e.height};W.setMaskedElementProperty(t.target,n),this.produceEvent({type:"ResizeMaskedElement",target:Rt(t.target),width:e.width,height:e.height})}kA(t){!this.Fs||!kt(t)||to(t)||this.Fs.observe(t)}NA(t){let e=csNodeparentNode.apply(t);return e?W.isMaskedElement(e)||W.isMaskedElementChild(e):Ji(t)?W.isMaskedElement(t.host)||W.isMaskedElementChild(t.host):!1}OA(t){(W.isMaskedElement(t.host)||W.isMaskedElementChild(t.host))&&W.setMaskedElementProperty(t,this.Ra)}cg(t){_e(t,NodeFilter.SHOW_ELEMENT).visitAll(i=>{W.unsetMaskedElementProperty(i)})}MA(t){let e=t.getBoundingClientRect(),i={state:W.MaskedElementState.Parent,width:e.width,height:e.height};W.setMaskedElementProperty(t,i),this.LA(t),_e(t).visitAll(n=>n!=t&&W.setMaskedElementProperty(n,this.Ra))}ag(t){W.setMaskedElementProperty(t,this.Ra),_e(t).visitAll(e=>e!=t&&W.setMaskedElementProperty(e,this.Ra))}LA(t){var e;let i=(e=at.getProperty(t,W.maskedAttributeProp))!==null&&e!==void 0?e:{attributes:[]};for(let n=0;ncsString.prototype.indexOf.call(u.attrName,c)>-1&&Ae.call(t,u.selector))&&csArray.prototype.push.call(n.attributes,c)}n.attributes.length!==0&&W.setMaskedAttributeProperty(t,n)}}return Ds([G()],s.prototype,"resizeObserverCallback",null),s})(),Pc=(()=>{class s{constructor(){this.Nh=0,this.L=!1,this.lg="data-cs-capture",this.Js=t=>{for(let e of t){if(cs.isWhitelistedElement(e.target))for(let i=0;ict(e,i=>this.hg(i))));let t=this.Mh?`[${this.lg}], ${this.Mh}`:`[${this.lg}]`;this.F.observe(t),this.M||(this.M=new Je(this.Js,(e,i)=>i==="added"&&this.VA(e))),this.M.observe()}stop(){this.L&&(this.Nh--,this.Nh===0&&(this.L=!1,this.UA()))}UA(){this.F&&(this.ug(document),this.F.disconnect()),this.M&&this.M.disconnect()}setWhitelistedElementsSelector(t,e=!0){if(ee(t))this.Mh=t;else if(e)throw new Error("Command misuse: setCapturedElementsSelector")}getWhitelistedElementsSelector(){return this.Mh}hg(t){_e(t).visitAll(e=>{cs.whitelistElement(e)})}VA(t){cs.isWhitelistedElement(t.host)&&cs.whitelistElement(t)}ug(t){_e(t,NodeFilter.SHOW_ELEMENT).visitAll(i=>{cs.removeWhitelistElement(i)})}}return s})(),gd=(()=>{class s{constructor(){this.F=null,this.M=null,this.L=!1,this.Js=t=>{for(let e of t)if(Ps.isEditableNode(e.target))for(let i=0;ict(t,e=>{this.dg(e)})),this.F.observe("[contenteditable]"),this.M=new Je(this.Js,(t,e)=>e==="added"&&this.jA(t)),this.M.observe())}stop(){var t,e;this.L&&(this.L=!1,(t=this.F)===null||t===void 0||t.disconnect(),this.F=null,(e=this.M)===null||e===void 0||e.disconnect(),this.M=null)}dg(t){_e(t).visitAll(e=>{Ps.markEditableNode(e)})}jA(t){Ps.isEditableNode(t.host)&&Ps.markEditableNode(t)}}return s})();var md=(()=>{class s{constructor(){}sanitize(t){return at.traverse(t,e=>{if(e instanceof si){let i=W.getMaskedAttributeDetails(e);e.attributes=this.Vo(e,i);let n=W.getMaskedElementDetails(e);n.state===W.MaskedElementState.Parent&&this.Qc(e,n)}}),t}Vo(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)}Qc(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:""}),si.getAttribute(t,"data-cs-mask")||csArray.prototype.push.call(t.attributes,{name:"data-cs-mask",value:"",namespaceURI:""})}}return s})(),_S=(()=>{class s extends ae{constructor(){super(),this.Dh=[]}onStart(){csArray.prototype.forEach.call(this.Dh,t=>this.triggerHotjarEvent(t)),this.Dh=[]}onStop(){}triggerHotjarEvent(t){if(!this.isStarted){csArray.prototype.push.call(this.Dh,t);return}this.kl(t)&&hj("event",t)}kl(t){return V(t)}}return s})(),wS=["event"],bS=(()=>{class s{constructor(t){this.E=t,this.Ze=new _S}init(){this.E.register(wS,t=>{this.Ze.triggerHotjarEvent(t)})}start(){this.Ze.start()}}return s})(),AS=s=>{let r=s*60*1e3;return`${Math.floor(csDate.now()/r)}`},TS=5e3,RS=(()=>{class s extends Oh{constructor(t,e,i){super(t,e),this.mr=null,this.BA=(i==null?void 0:i.type)||"json",this.fg=i==null?void 0:i.cacheMinutes,this.kr=i==null?void 0:i.timeout}onLoad(t){this.Hi=t}onError(t){this.Mr=t}onTimeout(t,e){this.ci=t,this.kr=e}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,n=>n());let t=this.retrieveParameters();this.ic(t);let e=nc.toQuery(t),i=`${this.domainUri}${this.path?`/${this.path}`:""}?${e}`;this.th(i,this.BA)}abort(){this.mr&&(this.mr.abort(),this.mr=null)}isInProgress(){return this.mr!==null}th(t,e){var i;let n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType=e,n.onerror=()=>{var o;return(o=this.Mr)===null||o===void 0?void 0:o.call(this,n)},n.ontimeout=()=>{var o;return(o=this.ci)===null||o===void 0?void 0:o.call(this,n)},n.onload=()=>{var o,c;n.status>=200&&n.status<400?((o=this.Hi)===null||o===void 0||o.call(this,this.FA(n,e)?n.response:n.responseText),csArray.prototype.forEach.call(this.afterRequestCallbacks,u=>u())):(c=this.Mr)===null||c===void 0||c.call(this,n)},n.onloadend=()=>{this.mr=null},n.timeout=(i=this.kr)!==null&&i!==void 0?i:TS,this.mr=n,n.send()}FA(t,e){let i=t.getResponseHeader("Content-Type");return i===null?e==="json":csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(i),"json")>0}ic(t){let e;this.fg?e=`${AS(this.fg)}`:e=csString.prototype.slice.call(`${Math.random()}`,2,8),t.r=e}}return s})();var CS=["identify"],IS=["getIdentity"],PS=["resetIdentity"];var OS=(()=>{class s{constructor(t,e,i,n,o){this.lt=t,this.Et=e,this.ye=i,this.kt=n,this.it=o}getSensitiveStatus(){var t,e;return{started:this.ye.isStarted,useAnonymization:this.lt.shouldUseAnonymization(),capturedElementSelector:this.kt.getWhitelistedElementsSelector(),maskedElementSettings:this.Et.getMaskedElementSettings((t=this.lt)===null||t===void 0?void 0:t.shouldMaskNonTextElements()),encryptionSelectors:(e=this.it)===null||e===void 0?void 0:e.getEncryptionSelectors()}}getElementSensitiveStatus(t){let e=this.ye.isStarted,i=this.lt.shouldUseAnonymization();return e?W.isMaskedElement(t)||W.isMaskedElementChild(t)?fe.MASKED:fu.shouldEncrypt(t)?fe.ENCRYPTED:Ps.isEditableNode(t)?fe.ANONYMIZED:i?cs.isWhitelistedElement(t)?fe.CAPTURED:fe.ANONYMIZED:fe.CAPTURED:fe.ANONYMIZED}}return s})(),Oc=["setEncryptionSelectors"],dr=["setPIISelectors"],po=["setCapturedElementsSelector"],NS=(()=>{class s{constructor(t,e,i,n,o,c,u){this.S=t,this.E=e,this.Et=i,this.ye=n,this.kt=o,this.it=c,this.Sr=u}init(){var t,e;this.Sr&&this.it&&((t=this.Sr)===null||t===void 0||t.addSelector((e=this.it)===null||e===void 0?void 0:e.getEncryptionSelectors())),this.ut()}onStartTracking(t){this.ye.start(),this.S.emitSensitiveStatusChange()}onBeforeArtificialPageView(){this.ye.stop(),this.S.emitSensitiveStatusChange()}onAfterArtificialPageView(){this.ye.start(),this.S.emitSensitiveStatusChange()}onBeforeSessionRenewal(){this.ye.stop(),this.S.emitSensitiveStatusChange()}onOptout(){this.ye.stop(),this.S.emitSensitiveStatusChange()}onReplayUnanonymizationConsentGranted(){this.S.emitSensitiveStatusChange()}onReplayUnanonymizationConsentWithdrawn(){this.S.emitSensitiveStatusChange()}ut(){this.E.register(dr,t=>{this.Et.setMaskedElementSettingsFromCommand(t),this.S.emitSensitiveStatusChange()}),this.E.register(po,t=>{this.kt.setWhitelistedElementsSelector(t),this.S.emitSensitiveStatusChange()}),this.E.register(Oc,t=>{var e,i;(e=this.it)===null||e===void 0||e.setEncryptionSelectors(t),(i=this.Sr)===null||i===void 0||i.addSelector(t)})}}return s})(),Nc=(()=>{class s extends ae{constructor(t,e,i,n,o,c){super(),this.$t=t,this.Et=e,this.kt=i,this.Sr=n,this.vr=o,this.lt=c}onStart(){var t,e,i;this.kt.start(),this.$t.setMaskedElementSettings(this.Et.getMaskedElementSettings((t=this.lt)===null||t===void 0?void 0:t.shouldMaskNonTextElements())),this.$t.startIdentifier(),(e=this.Sr)===null||e===void 0||e.start(),(i=this.vr)===null||i===void 0||i.start()}onStop(){var t,e;this.kt.stop(),this.$t.stopIdentifier(),(t=this.Sr)===null||t===void 0||t.stop(),(e=this.vr)===null||e===void 0||e.stop()}}return s})(),Mc=["networkRequest:maskUrls"],yd=["networkRequest:maskUrls:reset"];var MS=/(\b["']?key["']?\s*[=:]\s*["'](?:first|last|user|profile|primary|primary[ _-]?last)[ _-]?name["']\s*,?\s*["']?value["']?\s*[=:]\s*["'])(.+?)(["']|…$)|(\b["']?(?:first|last|user|profile|primary|primary[ _-]?last)[\s_-]?name["']?\s*[=:]\s*["'])(.+?)(["']|…$)/gi,kS="$1$4CS_ANONYMIZED_NAME$3$6",DS=/(?:\(\d{3}\) \d{3}[- ]\d{4}\b)|(?:\b\d{3}([-\. ])\d{3}\1\d{4}\b)|(?:\b\d{2} \d{2} \d{2} \d{2} \d{2}\b)|(?:\b\d{4} \d{3} \d{3}\b)|(?:\b\d{2}([-\. ])\d{4}\2\d{4}\b)|(?:\b\d{3}([- ])\d{4}\3\d{4}\b)|(?:\+\d{1,3} \d{3} \d{3} \d{4}\b)|(?:\+\d{1,3} \(\d{3}\) \d{3}-\d{4}\b)|(?:\+\d{1,3}([- ])\d{4}\4\d{3}\4\d{3}\b)|(?:\+\d{1,3} \d \d{4} \d{4}\b)|(?:\+\d{1,3} \d \d{3} \d{3} \d{4}\b)|(?:\+\d{1,3} \d \d{2} \d{2} \d{2} \d{2}\b)|(?:\+\d{7,15}\b)|(?:\+\d{1,3} \d{6,12}\b)|(?:\+\d{1,3}([- ])\d{4}\5\d{3}\5\d{3}\b)/g,LS="CS_ANONYMIZED_PHONE",xS=(()=>{class s{constructor(t,e){this.N=t,this.tt=e}anonymize(t){return this.tt?csArray.prototype.join.call(csArray.prototype.map.call(Zg(t),({content:e,isUrl:i})=>{var n;return i?(n=this.tt)===null||n===void 0?void 0:n.anonymizeUrl(e,{maskNames:!0}):this.Sg(e)}),""):this.Sg(t)}Sg(t){t=this.N.anonymizePII(t);let e=t;t=this.Vn(t),t!==e&&(bt.counters.redactedPII.count("name"),bt.counters.redactedPII.count("name-in-custom-error"));let i=t;return t=this.eT(t),t!==i&&(bt.counters.redactedPII.count("phone"),bt.counters.redactedPII.count("phone-in-custom-error")),t}Vn(t){return csString.prototype.replace.call(t,MS,kS)}eT(t){return csString.prototype.replace.call(t,DS,LS)}}return s})(),Jl=(()=>{let s;return function(r){function t(f,_){for(let w of f)if(i(w,_))return!0;return!1}r.isUrlMatching=t;function e(f,_){if(V(_)){for(let w of f)if(i(w,_))return!0}else if(Sa(_)){for(let w of f)if(i(w,csString(_)))return!0}return!1}r.isMatching=e;function i(f,_){let w=n(f,_);return f.negate?!w:w}function n(f,_){switch(f.rule_type==="date"&&(f.match_operation==="less_than"||f.match_operation==="greater_than")&&(_=(new csDate(_).valueOf()/1e3).toFixed(0)),f.match_operation){case"exact":switch(f.rule_type){case"string":return V(f.pattern)?csString.prototype.toLowerCase.call(_)===csString.prototype.toLowerCase.call(f.pattern):!1;case"boolean":return _===f.pattern||_===csString(f.pattern);case"number":return Vt(_)?Number(_)===Number(f.pattern):!1;default:return _===f.pattern}case"starts_with":return V(f.pattern)?csString.prototype.indexOf.call(_,f.pattern)===0:!1;case"ends_with":return V(f.pattern)?or(_,f.pattern):!1;case"contains":return V(f.pattern)?csString.prototype.indexOf.call(_,f.pattern)!==-1:!1;case"regex":if(!V(f.pattern))return!1;try{return new csRegExp(f.pattern).test(_)}catch(w){return Y.warn(`targeting.matchOperation.regex invalid ${w==null?void 0:w.message}`),!1}case"simple":return V(f.pattern)?S(_)===S(f.pattern):!1;case"greater_than":return Number(_)>Number(f.pattern);case"less_than":return Number(_)=N.getTime()}function d(f){return Vt(f)?V(f)?csString.prototype.trim.call(f)==="":Sa(f)?f===!0:te(f)?f!==0:!1:!0}function S(f){let _=Me(f,"http://")||Me(f,"https://")?f:`https://${f}`,w=hc(_);return w!==null?csString.prototype.replace.call(w.host,/^www./,""):f}}(s||(s={})),s})(),VS=(()=>{class s{constructor(){this.vg=[],this._g=[]}setTargetingRules(t){for(let e of t)e.component==="url"?csArray.prototype.push.call(this.vg,e):e.component==="trigger"&&csArray.prototype.push.call(this._g,e)}matchUrl(t){return Jl.isUrlMatching(this.vg,t)}matchTrigger(t){return Jl.isMatching(this._g,t)}}return s})(),US=(()=>{class s extends ae{constructor(t,e,i){super(),this.Ia=t,this.jh=e,this.R=i}init(){this.Hh=new VS,this.Ia&&this.Hh.setTargetingRules(this.Ia)}onStart(){}checkInitialUrlTargetingRules(){let t=this.R.getAnonymizedUrl();this.Bh(t,"url")&&this.jh()}onStop(){}onTargetingRulesArtificialPageview(t){this.isStarted&&this.Bh(t,"url")&&this.jh()}onExternalEvent(t){this.isStarted&&this.Bh(t.name,"trigger")&&this.jh()}Bh(t,e){var i,n;return e==="url"&&V(t)&&(!((i=this.Hh)===null||i===void 0)&&i.matchUrl(t))?!0:!!(e==="trigger"&&(!((n=this.Hh)===null||n===void 0)&&n.matchTrigger(t)))}}return s})(),jS=(()=>{class s{constructor(t,e,i,n,o,c){this.Ia=t,this.sT=e,this.S=i,this.ht=n,this.et=o,this.R=c}init(){this.Gn=new US(this.Ia,this.sT,this.R),this.et.addListener(this.Gn),this.Gn.init()}start(){this.Gn.start()}stop(){this.Gn.stop()}checkInitialUrlTargetingRules(){this.Gn.checkInitialUrlTargetingRules()}emitTargetingCollectState(){let t=this.ht.getInitialCollectState();t===tt.ANALYTICS_ONLY?this.S.emitCollectStateChange(tt.ANALYTICS_ONLY_RULES_TARGETING,ve.ETR_OFF):t===tt.RECORDING_GLOBAL_SAMPLING&&this.S.emitCollectStateChange(tt.RECORDING_RULES_TARGETING,ve.ETR_OFF)}}return s})();var HS=["addUserProperties"];var BS=(()=>{let s;return function(r){r.COMPRESSION_DISABLED="compressionDisabled"}(s||(s={})),s})(),FS=(()=>{class s{constructor(){}static init(t){(!this.Fh||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.Fh=new Map,i){let n=csString.prototype.split.call(i,".");for(let o=0;o{var o;let c=i.toString(),u=`${(o=e.constructor)===null||o===void 0?void 0:o.name}.${c}`,d=n.value;zS(s.getString("debugLog"),t)&&(n.value=function(...S){return console.log(u,...S),d.bind(this)(...S)})}}}return s})();function zS(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 Ql(){function i(a){let E=a.length;for(;--E>=0;)a[E]=0}let n=0,o=1,c=2,u=3,d=258,S=29,f=256,_=f+1+S,w=30,T=19,N=2*_+1,x=15,O=16,C=7,$=256,U=16,L=17,Z=18,nt=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]),pt=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]),jt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Ht=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),I=512,B=new Array((_+2)*2);i(B);let X=new Array(w*2);i(X);let it=new Array(I);i(it);let _t=new Array(d-u+1);i(_t);let Ot=new Array(S);i(Ot);let Ft=new Array(w);i(Ft);function Qe(a,E,v,b,g){this.static_tree=a,this.extra_bits=E,this.extra_base=v,this.elems=b,this.max_length=g,this.has_stree=a&&a.length}let fs,xs,ce;function gs(a,E){this.dyn_tree=a,this.max_code=0,this.stat_desc=E}let Ze=a=>a<256?it[a]:it[256+(a>>>7)],ge=(a,E)=>{a.pending_buf[a.pending++]=E&255,a.pending_buf[a.pending++]=E>>>8&255},At=(a,E,v)=>{a.bi_valid>O-v?(a.bi_buf|=E<>O-a.bi_valid,a.bi_valid+=v-O):(a.bi_buf|=E<{At(a,v[E*2],v[E*2+1])},F=(a,E)=>{let v=0;do v|=a&1,a>>>=1,v<<=1;while(--E>0);return v>>>1},pr=a=>{a.bi_valid===16?(ge(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=a.bi_buf&255,a.bi_buf>>=8,a.bi_valid-=8)},ci=(a,E)=>{let v=E.dyn_tree,b=E.max_code,g=E.stat_desc.static_tree,k=E.stat_desc.has_stree,P=E.stat_desc.extra_bits,j=E.stat_desc.extra_base,gt=E.stat_desc.max_length,rt,Pe,$s,Pt,mi,Fi,_n=0;for(Pt=0;Pt<=x;Pt++)a.bl_count[Pt]=0;for(v[a.heap[a.heap_max]*2+1]=0,rt=a.heap_max+1;rtgt&&(Pt=gt,_n++),v[Pe*2+1]=Pt,!(Pe>b)&&(a.bl_count[Pt]++,mi=0,Pe>=j&&(mi=P[Pe-j]),Fi=v[Pe*2],a.opt_len+=Fi*(Pt+mi),k&&(a.static_len+=Fi*(g[Pe*2+1]+mi)));if(_n!==0){do{for(Pt=gt-1;a.bl_count[Pt]===0;)Pt--;a.bl_count[Pt]--,a.bl_count[Pt+1]+=2,a.bl_count[gt]--,_n-=2}while(_n>0);for(Pt=gt;Pt!==0;Pt--)for(Pe=a.bl_count[Pt];Pe!==0;)$s=a.heap[--rt],!($s>b)&&(v[$s*2+1]!==Pt&&(a.opt_len+=(Pt-v[$s*2+1])*v[$s*2],v[$s*2+1]=Pt),Pe--)}},ms=(a,E,v)=>{let b=new Array(x+1),g=0,k,P;for(k=1;k<=x;k++)b[k]=g=g+v[k-1]<<1;for(P=0;P<=E;P++){let j=a[P*2+1];j!==0&&(a[P*2]=F(b[j]++,j))}},Qr=()=>{let a,E,v,b,g,k=new Array(x+1);for(v=0,b=0;b>=7;b{let E;for(E=0;E<_;E++)a.dyn_ltree[E*2]=0;for(E=0;E{a.bi_valid>8?ge(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0},mo=(a,E,v,b)=>{tn(a),b&&(ge(a,v),ge(a,~v)),a.pending_buf.set(a.window.subarray(E,E+v),a.pending),a.pending+=v},Vs=(a,E,v,b)=>{let g=E*2,k=v*2;return a[g]{let b=a.heap[v],g=v<<1;for(;g<=a.heap_len&&(g{let b,g,k=0,P,j;if(a.last_lit!==0)do b=a.pending_buf[a.d_buf+k*2]<<8|a.pending_buf[a.d_buf+k*2+1],g=a.pending_buf[a.l_buf+k],k++,b===0?wt(a,g,E):(P=_t[g],wt(a,P+f+1,E),j=nt[P],j!==0&&(g-=Ot[P],At(a,g,j)),b--,P=Ze(b),wt(a,P,v),j=pt[P],j!==0&&(b-=Ft[P],At(a,b,j)));while(k{let v=E.dyn_tree,b=E.stat_desc.static_tree,g=E.stat_desc.has_stree,k=E.stat_desc.elems,P,j,gt=-1,rt;for(a.heap_len=0,a.heap_max=N,P=0;P>1;P>=1;P--)Te(a,v,P);rt=k;do P=a.heap[1],a.heap[1]=a.heap[a.heap_len--],Te(a,v,1),j=a.heap[1],a.heap[--a.heap_max]=P,a.heap[--a.heap_max]=j,v[rt*2]=v[P*2]+v[j*2],a.depth[rt]=(a.depth[P]>=a.depth[j]?a.depth[P]:a.depth[j])+1,v[P*2+1]=v[j*2+1]=rt,a.heap[1]=rt++,Te(a,v,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],ci(a,E),ms(v,gt,a.bl_count)},Gt=(a,E,v)=>{let b,g=-1,k,P=E[0*2+1],j=0,gt=7,rt=4;for(P===0&&(gt=138,rt=3),E[(v+1)*2+1]=65535,b=0;b<=v;b++)k=P,P=E[(b+1)*2+1],!(++j{let b,g=-1,k,P=E[0*2+1],j=0,gt=7,rt=4;for(P===0&&(gt=138,rt=3),b=0;b<=v;b++)if(k=P,P=E[(b+1)*2+1],!(++j{let E;for(Gt(a,a.dyn_ltree,a.l_desc.max_code),Gt(a,a.dyn_dtree,a.d_desc.max_code),Us(a,a.bl_desc),E=T-1;E>=3&&a.bl_tree[Ht[E]*2+1]===0;E--);return a.opt_len+=3*(E+1)+5+5+4,E},Qt=(a,E,v,b)=>{let g;for(At(a,E-257,5),At(a,v-1,5),At(a,b-4,4),g=0;g{let E=4093624447,v;for(v=0;v<=31;v++,E>>>=1)if(E&1&&a.dyn_ltree[v*2]!==0)return 0;if(a.dyn_ltree[9*2]!==0||a.dyn_ltree[10*2]!==0||a.dyn_ltree[13*2]!==0)return 1;for(v=32;v{fr||(Qr(),fr=!0),a.l_desc=new gs(a.dyn_ltree,fs),a.d_desc=new gs(a.dyn_dtree,xs),a.bl_desc=new gs(a.bl_tree,ce),a.bi_buf=0,a.bi_valid=0,Zr(a)},gr=(a,E,v,b)=>{At(a,(n<<1)+(b?1:0),3),mo(a,E,v,!0)},vt=a=>{At(a,o<<1,3),wt(a,$,B),pr(a)},li=(a,E,v,b)=>{let g,k,P=0;a.level>0?(a.strm.data_type===2&&(a.strm.data_type=yo(a)),Us(a,a.l_desc),Us(a,a.d_desc),P=Jt(a),g=a.opt_len+3+7>>>3,k=a.static_len+3+7>>>3,k<=g&&(g=k)):g=k=v+5,v+4<=g&&E!==-1?gr(a,E,v,b):a.strategy===4||k===g?(At(a,(o<<1)+(b?1:0),3),Ci(a,B,X)):(At(a,(c<<1)+(b?1:0),3),Qt(a,a.l_desc.max_code+1,a.d_desc.max_code+1,P+1),Ci(a,a.dyn_ltree,a.dyn_dtree)),Zr(a),b&&tn(a)},Ii=(a,E,v)=>(a.pending_buf[a.d_buf+a.last_lit*2]=E>>>8&255,a.pending_buf[a.d_buf+a.last_lit*2+1]=E&255,a.pending_buf[a.l_buf+a.last_lit]=v&255,a.last_lit++,E===0?a.dyn_ltree[v*2]++:(a.matches++,E--,a.dyn_ltree[(_t[v]+f+1)*2]++,a.dyn_dtree[Ze(E)*2]++),a.last_lit===a.lit_bufsize-1);var So=Eo,en=gr,vo=li,_o=Ii,wo=vt,bo={_tr_init:So,_tr_stored_block:en,_tr_flush_block:vo,_tr_tally:_o,_tr_align:wo},sn=(a,E,v,b)=>{let g=a&65535|0,k=a>>>16&65535|0,P=0;for(;v!==0;){P=v>2e3?2e3:v,v-=P;do g=g+E[b++]|0,k=k+g|0;while(--P);g%=65521,k%=65521}return g|k<<16|0};let Ao=()=>{let a,E=[];for(var v=0;v<256;v++){a=v;for(var b=0;b<8;b++)a=a&1?3988292384^a>>>1:a>>>1;E[v]=a}return E},To=new Uint32Array(Ao());var ts=(a,E,v,b)=>{let g=To,k=b+v;a^=-1;for(let P=b;P>>8^g[(a^E[P])&255];return a^-1},js={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"},Pi={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:ys,_tr_stored_block:Hs,_tr_flush_block:nn,_tr_tally:es,_tr_align:he}=bo,{Z_NO_FLUSH:ss,Z_PARTIAL_FLUSH:It,Z_FULL_FLUSH:Oi,Z_FINISH:ie,Z_BLOCK:Es,Z_OK:De,Z_STREAM_END:on,Z_STREAM_ERROR:me,Z_DATA_ERROR:Ro,Z_BUF_ERROR:mr,Z_DEFAULT_COMPRESSION:Co,Z_FILTERED:an,Z_HUFFMAN_ONLY:Ni,Z_RLE:Mi,Z_FIXED:Io,Z_DEFAULT_STRATEGY:Po,Z_UNKNOWN:Oo,Z_DEFLATED:hi}=Pi,cn=9,No=15,ln=8,yr=256+1+29,ki=30,hn=19,Er=2*yr+1,Sr=15,lt=3,He=258,Re=He+lt+1,un=32,Di=42,vr=69,is=73,Li=91,xi=103,Le=113,ui=666,Ut=1,Bs=2,Be=3,Ss=4,Fs=3,xe=(a,E)=>(a.msg=js[E],E),Vi=a=>(a<<1)-(a>4?9:0),ue=a=>{let E=a.length;for(;--E>=0;)a[E]=0},Ve=(a,E,v)=>(E<{let E=a.state,v=E.pending;v>a.avail_out&&(v=a.avail_out),v!==0&&(a.output.set(E.pending_buf.subarray(E.pending_out,E.pending_out+v),a.next_out),a.next_out+=v,E.pending_out+=v,a.total_out+=v,a.avail_out-=v,E.pending-=v,E.pending===0&&(E.pending_out=0))},Wt=(a,E)=>{nn(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,E),a.block_start=a.strstart,Fe(a.strm)},ht=(a,E)=>{a.pending_buf[a.pending++]=E},zs=(a,E)=>{a.pending_buf[a.pending++]=E>>>8&255,a.pending_buf[a.pending++]=E&255},_r=(a,E,v,b)=>{let g=a.avail_in;return g>b&&(g=b),g===0?0:(a.avail_in-=g,E.set(a.input.subarray(a.next_in,a.next_in+g),v),a.state.wrap===1?a.adler=sn(a.adler,E,g,v):a.state.wrap===2&&(a.adler=ts(a.adler,E,g,v)),a.next_in+=g,a.total_in+=g,g)},wr=(a,E)=>{let v=a.max_chain_length,b=a.strstart,g,k,P=a.prev_length,j=a.nice_match,gt=a.strstart>a.w_size-Re?a.strstart-(a.w_size-Re):0,rt=a.window,Pe=a.w_mask,$s=a.prev,Pt=a.strstart+He,mi=rt[b+P-1],Fi=rt[b+P];a.prev_length>=a.good_match&&(v>>=2),j>a.lookahead&&(j=a.lookahead);do if(g=E,!(rt[g+P]!==Fi||rt[g+P-1]!==mi||rt[g]!==rt[b]||rt[++g]!==rt[b+1])){b+=2,g++;do;while(rt[++b]===rt[++g]&&rt[++b]===rt[++g]&&rt[++b]===rt[++g]&&rt[++b]===rt[++g]&&rt[++b]===rt[++g]&&rt[++b]===rt[++g]&&rt[++b]===rt[++g]&&rt[++b]===rt[++g]&&bP){if(a.match_start=E,P=k,k>=j)break;mi=rt[b+P-1],Fi=rt[b+P]}}while((E=$s[E&Pe])>gt&&--v!==0);return P<=a.lookahead?P:a.lookahead},vs=a=>{let E=a.w_size,v,b,g,k,P;do{if(k=a.window_size-a.lookahead-a.strstart,a.strstart>=E+(E-Re)){a.window.set(a.window.subarray(E,E+E),0),a.match_start-=E,a.strstart-=E,a.block_start-=E,b=a.hash_size,v=b;do g=a.head[--v],a.head[v]=g>=E?g-E:0;while(--b);b=E,v=b;do g=a.prev[--v],a.prev[v]=g>=E?g-E:0;while(--b);k+=E}if(a.strm.avail_in===0)break;if(b=_r(a.strm,a.window,a.strstart+a.lookahead,k),a.lookahead+=b,a.lookahead+a.insert>=lt)for(P=a.strstart-a.insert,a.ins_h=a.window[P],a.ins_h=Ve(a,a.ins_h,a.window[P+1]);a.insert&&(a.ins_h=Ve(a,a.ins_h,a.window[P+lt-1]),a.prev[P&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=P,P++,a.insert--,!(a.lookahead+a.insert{let v=65535;for(v>a.pending_buf_size-5&&(v=a.pending_buf_size-5);;){if(a.lookahead<=1){if(vs(a),a.lookahead===0&&E===ss)return Ut;if(a.lookahead===0)break}a.strstart+=a.lookahead,a.lookahead=0;let b=a.block_start+v;if((a.strstart===0||a.strstart>=b)&&(a.lookahead=a.strstart-b,a.strstart=b,Wt(a,!1),a.strm.avail_out===0)||a.strstart-a.block_start>=a.w_size-Re&&(Wt(a,!1),a.strm.avail_out===0))return Ut}return a.insert=0,E===ie?(Wt(a,!0),a.strm.avail_out===0?Be:Ss):(a.strstart>a.block_start&&(Wt(a,!1),a.strm.avail_out===0),Ut)},Ui=(a,E)=>{let v,b;for(;;){if(a.lookahead=lt&&(a.ins_h=Ve(a,a.ins_h,a.window[a.strstart+lt-1]),v=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),v!==0&&a.strstart-v<=a.w_size-Re&&(a.match_length=wr(a,v)),a.match_length>=lt)if(b=es(a,a.strstart-a.match_start,a.match_length-lt),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=lt){a.match_length--;do a.strstart++,a.ins_h=Ve(a,a.ins_h,a.window[a.strstart+lt-1]),v=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(--a.match_length!==0);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=Ve(a,a.ins_h,a.window[a.strstart+1]);else b=es(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(b&&(Wt(a,!1),a.strm.avail_out===0))return Ut}return a.insert=a.strstart{let v,b,g;for(;;){if(a.lookahead=lt&&(a.ins_h=Ve(a,a.ins_h,a.window[a.strstart+lt-1]),v=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=lt-1,v!==0&&a.prev_length4096)&&(a.match_length=lt-1)),a.prev_length>=lt&&a.match_length<=a.prev_length){g=a.strstart+a.lookahead-lt,b=es(a,a.strstart-1-a.prev_match,a.prev_length-lt),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=g&&(a.ins_h=Ve(a,a.ins_h,a.window[a.strstart+lt-1]),v=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(--a.prev_length!==0);if(a.match_available=0,a.match_length=lt-1,a.strstart++,b&&(Wt(a,!1),a.strm.avail_out===0))return Ut}else if(a.match_available){if(b=es(a,0,a.window[a.strstart-1]),b&&Wt(a,!1),a.strstart++,a.lookahead--,a.strm.avail_out===0)return Ut}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(b=es(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart{let v,b,g,k,P=a.window;for(;;){if(a.lookahead<=He){if(vs(a),a.lookahead<=He&&E===ss)return Ut;if(a.lookahead===0)break}if(a.match_length=0,a.lookahead>=lt&&a.strstart>0&&(g=a.strstart-1,b=P[g],b===P[++g]&&b===P[++g]&&b===P[++g])){k=a.strstart+He;do;while(b===P[++g]&&b===P[++g]&&b===P[++g]&&b===P[++g]&&b===P[++g]&&b===P[++g]&&b===P[++g]&&b===P[++g]&&ga.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=lt?(v=es(a,1,a.match_length-lt),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(v=es(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),v&&(Wt(a,!1),a.strm.avail_out===0))return Ut}return a.insert=0,E===ie?(Wt(a,!0),a.strm.avail_out===0?Be:Ss):a.last_lit&&(Wt(a,!1),a.strm.avail_out===0)?Ut:Bs},pn=(a,E)=>{let v;for(;;){if(a.lookahead===0&&(vs(a),a.lookahead===0)){if(E===ss)return Ut;break}if(a.match_length=0,v=es(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,v&&(Wt(a,!1),a.strm.avail_out===0))return Ut}return a.insert=0,E===ie?(Wt(a,!0),a.strm.avail_out===0?Be:Ss):a.last_lit&&(Wt(a,!1),a.strm.avail_out===0)?Ut:Bs};function Ce(a,E,v,b,g){this.good_length=a,this.max_lazy=E,this.nice_length=v,this.max_chain=b,this.func=g}let pi=[new Ce(0,0,0,0,dn),new Ce(4,4,8,4,Ui),new Ce(4,5,16,8,Ui),new Ce(4,6,32,32,Ui),new Ce(4,4,16,16,_s),new Ce(8,16,32,32,_s),new Ce(8,16,128,128,_s),new Ce(8,32,128,256,_s),new Ce(32,128,258,1024,_s),new Ce(32,258,258,4096,_s)],br=a=>{a.window_size=2*a.w_size,ue(a.head),a.max_lazy_match=pi[a.level].max_lazy,a.good_match=pi[a.level].good_length,a.nice_match=pi[a.level].nice_length,a.max_chain_length=pi[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=lt-1,a.match_available=0,a.ins_h=0};function ko(){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=hi,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(Er*2),this.dyn_dtree=new Uint16Array((2*ki+1)*2),this.bl_tree=new Uint16Array((2*hn+1)*2),ue(this.dyn_ltree),ue(this.dyn_dtree),ue(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Sr+1),this.heap=new Uint16Array(2*yr+1),ue(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*yr+1),ue(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 ji=a=>{if(!a||!a.state)return xe(a,me);a.total_in=a.total_out=0,a.data_type=Oo;let E=a.state;return E.pending=0,E.pending_out=0,E.wrap<0&&(E.wrap=-E.wrap),E.status=E.wrap?Di:Le,a.adler=E.wrap===2?0:1,E.last_flush=ss,ys(E),De},fn=a=>{let E=ji(a);return E===De&&br(a.state),E},Do=(a,E)=>!a||!a.state||a.state.wrap!==2?me:(a.state.gzhead=E,De),gn=(a,E,v,b,g,k)=>{if(!a)return me;let P=1;if(E===Co&&(E=6),b<0?(P=0,b=-b):b>15&&(P=2,b-=16),g<1||g>cn||v!==hi||b<8||b>15||E<0||E>9||k<0||k>Io)return xe(a,me);b===8&&(b=9);let j=new ko;return a.state=j,j.strm=a,j.wrap=P,j.gzhead=null,j.w_bits=b,j.w_size=1<gn(a,E,hi,No,ln,Po),Ar=(a,E)=>{let v,b;if(!a||!a.state||E>Es||E<0)return a?xe(a,me):me;let g=a.state;if(!a.output||!a.input&&a.avail_in!==0||g.status===ui&&E!==ie)return xe(a,a.avail_out===0?mr:me);g.strm=a;let k=g.last_flush;if(g.last_flush=E,g.status===Di)if(g.wrap===2)a.adler=0,ht(g,31),ht(g,139),ht(g,8),g.gzhead?(ht(g,(g.gzhead.text?1:0)+(g.gzhead.hcrc?2:0)+(g.gzhead.extra?4:0)+(g.gzhead.name?8:0)+(g.gzhead.comment?16:0)),ht(g,g.gzhead.time&255),ht(g,g.gzhead.time>>8&255),ht(g,g.gzhead.time>>16&255),ht(g,g.gzhead.time>>24&255),ht(g,g.level===9?2:g.strategy>=Ni||g.level<2?4:0),ht(g,g.gzhead.os&255),g.gzhead.extra&&g.gzhead.extra.length&&(ht(g,g.gzhead.extra.length&255),ht(g,g.gzhead.extra.length>>8&255)),g.gzhead.hcrc&&(a.adler=ts(a.adler,g.pending_buf,g.pending,0)),g.gzindex=0,g.status=vr):(ht(g,0),ht(g,0),ht(g,0),ht(g,0),ht(g,0),ht(g,g.level===9?2:g.strategy>=Ni||g.level<2?4:0),ht(g,Fs),g.status=Le);else{let P=hi+(g.w_bits-8<<4)<<8,j=-1;g.strategy>=Ni||g.level<2?j=0:g.level<6?j=1:g.level===6?j=2:j=3,P|=j<<6,g.strstart!==0&&(P|=un),P+=31-P%31,g.status=Le,zs(g,P),g.strstart!==0&&(zs(g,a.adler>>>16),zs(g,a.adler&65535)),a.adler=1}if(g.status===vr)if(g.gzhead.extra){for(v=g.pending;g.gzindex<(g.gzhead.extra.length&65535)&&!(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>v&&(a.adler=ts(a.adler,g.pending_buf,g.pending-v,v)),Fe(a),v=g.pending,g.pending===g.pending_buf_size));)ht(g,g.gzhead.extra[g.gzindex]&255),g.gzindex++;g.gzhead.hcrc&&g.pending>v&&(a.adler=ts(a.adler,g.pending_buf,g.pending-v,v)),g.gzindex===g.gzhead.extra.length&&(g.gzindex=0,g.status=is)}else g.status=is;if(g.status===is)if(g.gzhead.name){v=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>v&&(a.adler=ts(a.adler,g.pending_buf,g.pending-v,v)),Fe(a),v=g.pending,g.pending===g.pending_buf_size)){b=1;break}g.gzindexv&&(a.adler=ts(a.adler,g.pending_buf,g.pending-v,v)),b===0&&(g.gzindex=0,g.status=Li)}else g.status=Li;if(g.status===Li)if(g.gzhead.comment){v=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>v&&(a.adler=ts(a.adler,g.pending_buf,g.pending-v,v)),Fe(a),v=g.pending,g.pending===g.pending_buf_size)){b=1;break}g.gzindexv&&(a.adler=ts(a.adler,g.pending_buf,g.pending-v,v)),b===0&&(g.status=xi)}else g.status=xi;if(g.status===xi&&(g.gzhead.hcrc?(g.pending+2>g.pending_buf_size&&Fe(a),g.pending+2<=g.pending_buf_size&&(ht(g,a.adler&255),ht(g,a.adler>>8&255),a.adler=0,g.status=Le)):g.status=Le),g.pending!==0){if(Fe(a),a.avail_out===0)return g.last_flush=-1,De}else if(a.avail_in===0&&Vi(E)<=Vi(k)&&E!==ie)return xe(a,mr);if(g.status===ui&&a.avail_in!==0)return xe(a,mr);if(a.avail_in!==0||g.lookahead!==0||E!==ss&&g.status!==ui){let P=g.strategy===Ni?pn(g,E):g.strategy===Mi?Mo(g,E):pi[g.level].func(g,E);if((P===Be||P===Ss)&&(g.status=ui),P===Ut||P===Be)return a.avail_out===0&&(g.last_flush=-1),De;if(P===Bs&&(E===It?he(g):E!==Es&&(Hs(g,0,0,!1),E===Oi&&(ue(g.head),g.lookahead===0&&(g.strstart=0,g.block_start=0,g.insert=0))),Fe(a),a.avail_out===0))return g.last_flush=-1,De}return E!==ie?De:g.wrap<=0?on:(g.wrap===2?(ht(g,a.adler&255),ht(g,a.adler>>8&255),ht(g,a.adler>>16&255),ht(g,a.adler>>24&255),ht(g,a.total_in&255),ht(g,a.total_in>>8&255),ht(g,a.total_in>>16&255),ht(g,a.total_in>>24&255)):(zs(g,a.adler>>>16),zs(g,a.adler&65535)),Fe(a),g.wrap>0&&(g.wrap=-g.wrap),g.pending!==0?De:on)},xo=a=>{if(!a||!a.state)return me;let E=a.state.status;return E!==Di&&E!==vr&&E!==is&&E!==Li&&E!==xi&&E!==Le&&E!==ui?xe(a,me):(a.state=null,E===Le?xe(a,Ro):De)},Vo=(a,E)=>{let v=E.length;if(!a||!a.state)return me;let b=a.state,g=b.wrap;if(g===2||g===1&&b.status!==Di||b.lookahead)return me;if(g===1&&(a.adler=sn(a.adler,E,v,0)),b.wrap=0,v>=b.w_size){g===0&&(ue(b.head),b.strstart=0,b.block_start=0,b.insert=0);let gt=new Uint8Array(b.w_size);gt.set(E.subarray(v-b.w_size,v),0),E=gt,v=b.w_size}let k=a.avail_in,P=a.next_in,j=a.input;for(a.avail_in=v,a.next_in=0,a.input=E,vs(b);b.lookahead>=lt;){let gt=b.strstart,rt=b.lookahead-(lt-1);do b.ins_h=Ve(b,b.ins_h,b.window[gt+lt-1]),b.prev[gt&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=gt,gt++;while(--rt);b.strstart=gt,b.lookahead=lt-1,vs(b)}return b.strstart+=b.lookahead,b.block_start=b.strstart,b.insert=b.lookahead,b.lookahead=0,b.match_length=b.prev_length=lt-1,b.match_available=0,a.next_in=P,a.input=j,a.avail_in=k,b.wrap=g,De};var Hi=Lo,ws=gn,mn=fn,Uo=ji,jo=Do,Ho=Ar,yn=xo,fi=Vo,Bi="pako deflate (from Nodeca project)",Ie={deflateInit:Hi,deflateInit2:ws,deflateReset:mn,deflateResetKeep:Uo,deflateSetHeader:jo,deflate:Ho,deflateEnd:yn,deflateSetDictionary:fi,deflateInfo:Bi};let Bo=(a,E)=>Object.prototype.hasOwnProperty.call(a,E);var Fo=function(a){let E=Array.prototype.slice.call(arguments,1);for(;E.length;){let v=E.shift();if(v){if(typeof v!="object")throw new TypeError(v+"must be non-object");for(let b in v)Bo(v,b)&&(a[b]=v[b])}}return a},zo=a=>{let E=0;for(let b=0,g=a.length;b=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;gi[254]=gi[254]=1;var $o=a=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(a);let E,v,b,g,k,P=a.length,j=0;for(g=0;g>>6,E[k++]=128|v&63):v<65536?(E[k++]=224|v>>>12,E[k++]=128|v>>>6&63,E[k++]=128|v&63):(E[k++]=240|v>>>18,E[k++]=128|v>>>12&63,E[k++]=128|v>>>6&63,E[k++]=128|v&63);return E};let vn=(a,E=a.length)=>{if(E<65534&&a.subarray&&Sn)return String.fromCharCode.apply(null,a.length===E?a:a.subarray(0,E));let v="";for(let b=0;b{let v=E||a.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(a.subarray(0,E));let b,g,k=new Array(v*2);for(g=0,b=0;b4){k[g++]=65533,b+=j-1;continue}for(P&=j===2?31:j===3?15:7;j>1&&b1){k[g++]=65533;continue}P<65536?k[g++]=P:(P-=65536,k[g++]=55296|P>>10&1023,k[g++]=56320|P&1023)}return vn(k,g)},l=(a,E)=>{E=E||a.length,E>a.length&&(E=a.length);let v=E-1;for(;v>=0&&(a[v]&192)===128;)v--;return v<0||v===0?E:v+gi[a[v]]>E?v:E},p={string2buf:$o,buf2string:h,utf8border:l};function y(){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 m=y;let A=Object.prototype.toString,{Z_NO_FLUSH:D,Z_SYNC_FLUSH:M,Z_FULL_FLUSH:R,Z_FINISH:H,Z_OK:q,Z_STREAM_END:K,Z_DEFAULT_COMPRESSION:et,Z_DEFAULT_STRATEGY:ft,Z_DEFLATED:ut}=Pi;function re(a){this.options=En.assign({level:et,method:ut,chunkSize:16384,windowBits:15,memLevel:8,strategy:ft},a||{});let E=this.options;E.raw&&E.windowBits>0?E.windowBits=-E.windowBits:E.gzip&&E.windowBits>0&&E.windowBits<16&&(E.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;let v=Ie.deflateInit2(this.strm,E.level,E.method,E.windowBits,E.memLevel,E.strategy);if(v!==q)throw new Error(js[v]);if(E.header&&Ie.deflateSetHeader(this.strm,E.header),E.dictionary){let b;if(typeof E.dictionary=="string"?b=p.string2buf(E.dictionary):A.call(E.dictionary)==="[object ArrayBuffer]"?b=new Uint8Array(E.dictionary):b=E.dictionary,v=Ie.deflateSetDictionary(this.strm,b),v!==q)throw new Error(js[v]);this._dict_set=!0}}re.prototype.push=function(a,E){let v=this.strm,b=this.options.chunkSize,g,k;if(this.ended)return!1;for(E===~~E?k=E:k=E===!0?H:D,typeof a=="string"?v.input=p.string2buf(a):A.call(a)==="[object ArrayBuffer]"?v.input=new Uint8Array(a):v.input=a,v.next_in=0,v.avail_in=v.input.length;;){if(v.avail_out===0&&(v.output=new Uint8Array(b),v.next_out=0,v.avail_out=b),(k===M||k===R)&&v.avail_out<=6){this.onData(v.output.subarray(0,v.next_out)),v.avail_out=0;continue}if(g=Ie.deflate(v,k),g===K)return v.next_out>0&&this.onData(v.output.subarray(0,v.next_out)),g=Ie.deflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===q;if(v.avail_out===0){this.onData(v.output);continue}if(k>0&&v.next_out>0){this.onData(v.output.subarray(0,v.next_out)),v.avail_out=0;continue}if(v.avail_in===0)break}return!0},re.prototype.onData=function(a){this.chunks.push(a)},re.prototype.onEnd=function(a){a===q&&(this.result=En.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg};function Yt(a,E){E=E||{};let v=new re(E);if(v.push(a,!0),v.err)throw v.msg||js[v.err];return v.result}function ye(a,E){return E=E||{},E.gzip=!0,Yt(a,E)}return(a,E,v)=>{let b=ye(a);return E==="base64"?b=btoa(vn(b)):b=b.buffer,v&&v(b),b}}var $S=(()=>{class s extends Uh{constructor(t){super(t),this.algorithm=eo.GZIP,this.Ag=Ql(),this.rT=(i,n,o)=>{let c=this.Ag(i,n);o(c)},this.compress=Zl(),typeof CompressionStream!="undefined"&&Hg||(this.compress=this.rT,this.getCompressorSourceCode=()=>Ql.toString())}compressSync(t,e){return this.Ag(t,e)}getCompressorSourceCode(){return Zl.toString()}}return s})();function Zl(){let s=r=>new Promise(t=>{let e=new FileReader;e.onload=i=>t(i.target.result.split(",")[1]),e.readAsDataURL(new Blob([r]))});return(r,t,e)=>{let i=new Response(r).body.pipeThrough(new CompressionStream("gzip")),n=new Response(i).arrayBuffer();if(t==="base64"){n.then(o=>s(o)).then(o=>e(o));return}n.then(o=>e(o))}}var GS=(()=>{class s extends Uh{constructor(){super(...arguments),this.algorithm=eo.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})(),Ed=(()=>{class s{static create(t,e=!0){return this.instance?this.instance:e&&!FS.isCompressionEnabled()?new GS(t):this.instance=new $S(t)}}return s})();var qS=(()=>{class s{constructor(t,e,i,n,o,c,u,d,S,f,_,w,T,N,x,O,C,$,U,L,Z,nt,pt,jt,Ht,I,B,X,it){this.nt=t,this.he=e,this.I=i,this.A=n,this.S=o,this.E=c,this.$h=u,this.f=d,this.Gh=S,this.Zs=f,this.Wn=_,this.fe=w,this.N=T,this.K=N,this.tt=x,this.R=O,this.hT=C,this.et=$,this.pt=U,this.At=L,this.Rg=Z,this.ie=nt,this.uT=pt,this.O=jt,this.xt=Ht,this.V=I,this.Ht=B,this.ht=X,this.Et=it,this.dT=(_t=!1)=>{let Ot=this.A.getSession();Ot===null?(this._r=new jS(this.f.recordTargetingRules,this.Cg,this.S,this.ht,this.et,this.R),this._r.init(),this._r.start()):(Ot.collectState===tt.RECORDING_RULES_TARGETING||Ot.collectState===tt.ANALYTICS_ONLY_RULES_TARGETING)&&this.Cg(_t)},this.Cg=(_t=!1)=>{this.wr.onLoad(()=>{var Ot,Ft;(Ot=this._r)===null||Ot===void 0||Ot.emitTargetingCollectState(),(Ft=this._r)===null||Ft===void 0||Ft.stop(),this.S.emitStartTracking(_t)}),this.Ma(_t)},this.Ma=(_t=!1)=>{this.Zs.isActive()||(this.Et.init(),this.qh.start(_t),this.wr.start())},this.pT=()=>{this.S.emitBeforeSessionRenewal(),this.br(!0),this.S.emitAfterSessionRenewal()},this.fT=()=>{this.S.emitBeforeSessionRenewal(),this.ht.refreshQuota(),this.ht.onQuotaReady(_t=>{_t!==tt.QUOTA_REACHED&&(this.br(!0),this.S.emitAfterSessionRenewal())})}}start(){var t;if(this.Gh.init(),this.Zs.init(),this.Zs.isActive())return;let e,i,n,o,c,u,d,S,f,_,w,T,N,x,O,C,$,U,L,Z;if(this.O.schedule(()=>{N=new FE(this.A,this.I),C=new rS(N),T=new ed(this.K),x=new Ic(()=>{}),$=new Pc,Z=new gd;let nt=new Nc(x,this.Et,$,L,Z,this.ka());O=new OS(this.ka(),this.Et,nt,$,U);let pt=new NS(this.S,this.E,this.Et,nt,$,U,L);pt.init(),this.S.addListener(pt),e=new TE(this.f,this.nt,this.I,this.K,T,this.E,N,new cd(Y),this.pt,this.xt,this.et,O),i=new Ky(this.E,this.A,this.f,this.nt,this.he,this.N),w=new eS(O,this.f);let jt=new ad(this.f);_=new XE(this.f,jt,w,O,this.pt),_.init();let Ht=new iS;n=new $y(this.I,this.A,this.E,this.pt,jt,this.f,Ht,w),o=new tE(this.f,this.nt,this.I,this.E,this.N,N,this.R);let I;this.qh=new LE(this.f,this.E,this.S,this.nt,this.I,this.A,this.fe,this.At,this.tt,this.R,this.ie,Ht,this.et,this.Xs,I),this.Ig=new jE(this.f,this.I,this.A,this.E),d=new qE(this.f,this.E,this.he,this.nt,this.et),S=new YE(this.E),f=new tS(this.f,new kh(this.f,this.N),this.xt),this.wr=new sd}),this.O.schedule(()=>{this.Wn.init()}),this.O.schedule(()=>{n.init()}),this.O.schedule(()=>{i.init()}),this.O.schedule(()=>{o.init()}),this.O.schedule(()=>{this.Rg.init()}),this.O.schedule(()=>{this.qh.init()}),this.O.schedule(()=>{this.Ig.init()}),this.O.schedule(()=>{d.init()}),this.O.schedule(()=>{this.hT.init()}),this.O.schedule(()=>{S.init()}),this.O.schedule(()=>{f.init()}),this.O.schedule(()=>{this.uT.init()}),this.O.schedule(()=>{this.S.addListener(this.Ig),this.S.addListener(this.$h),this.S.addListener(e),this.S.addListener(this.Wn),this.S.addListener(n),this.S.addListener(o),this.S.addListener(this.Rg),this.S.addListener(this.qh),this.S.addListener(d),this.S.addListener(i),this.S.addListener(_),this.S.addListener(f),this.S.addListener(C)}),sr.isRecordingSupported()&&this.O.schedule(()=>{let nt=new Uy(w,this.A,this.f,this.nt,this.E,this.N,N,x,this.Ue,this.yt,this.Pe,this.vt,this.S,this.et,this.pt,this.ie,this.xt,this.tt,this.Ur,this.ka(),this.cr,U);nt.init(),this.S.addListener(nt),n.setRecordingService(nt.recordingService)}),!((t=this.f.voc)===null||t===void 0)&&t.enabled||this.f.isSMB){let nt;this.O.schedule(()=>{var pt;if(!((pt=this.f.voc)===null||pt===void 0)&&pt.enabled){let I=this.ka().shouldUseAnonymization(),B=[],X=new md,it=new Sc(I,this.f.whitelistedAttributes,this.N,this.f.anonymizeDigits);csArray.prototype.push.call(B,X,it),nt=new fd(B,this.f,x,this.Et,$)}let jt=new bS(this.E);jt.init();let Ht=new ud(this.f,this.E,this.V,this.Ht,this.I,this.R,nt,this.et,jt);Ht.init(),this.S.addListener(Ht)})}this.O.schedule(()=>{e.init()}),this.O.schedule(()=>{this.f.isQuotaEnabled()?N.onSessionExpired(()=>{this.fT()}):N.onSessionExpired(()=>{this.pT()}),this.br()})}br(t=!1){var e;if(this.f.hasTargetingRules()){this.dT(t),this.E.start(),this._r&&this._r.checkInitialUrlTargetingRules();return}this.E.start(),this.wr.onLoad(()=>{this.S.emitStartTracking(t)}),(!od(this.f)||t)&&this.Ma(t)}ka(){if(this.lt)return this.lt;let t=new Kr;return this.lt=new uo(this.fe,this.f,this.R,t),this.lt.init(),this.lt.shouldUseAnonymization()&&bt.counters.pageAnonymisation.count("anonymized-on-start"),this.lt}}return s})(),WS=(()=>{class s{constructor(t,e,i,n,o,c,u,d){this.f=t,this.I=e,this.Xe=i,this.Pg=n,this.gT=o,this.mT=c,this.yT=u,this.Wh=d}compute(t){var e,i;this.f.crossDomainTracking&&!this.f.cookielessTrackingEnabled?this.f.crossDomainSingleIframeTracking?(e=this.yT)===null||e===void 0||e.start(()=>this.Yh(t)):(i=this.mT)===null||i===void 0||i.applyUpToDate(()=>this.Yh(t)):this.Yh(t)}Yh(t){this.gT.handle(),this.Pg.clear(),this.ET()?(this.Pg.restoreClearedVisitor(),t(!0)):(this.Xe.exclude(this.f),t(!1))}ET(){let t=us.boolean(this.f.sampleRate);return this.Wh.isForceIncluded()||!this.Xe.isExcluded()&&this.I.doesVisitorExist()||!this.Xe.isExcluded()&&t}}return s})(),Sd=(()=>{class s{constructor(t,e,i,n){this.f=t,this.ot=e,this.S=i,this.A=n,this.ST=10*1e3}createOrUpdateVisitor(){var t;let e=this.getVisitor();e===null&&(e=this.vT(),(t=this.A)===null||t===void 0||t.removeSession()),this._T(e),this.setVisitor(e)}vT(){return{id:Cc.generate(),visitsCount:0,appliedTrackingDraw:this.f.lastTrackingDraw,creationTimestamp:tl(),lastVisitTimestamp:0,hitTimestamp:0,expires:Q.now()+this.f.visitorCookieTimeout,allowSubdomains:this.f.allowSubdomains,identityPrint:null}}_T(t){let e=tl();this.A&&!this.A.doesSessionExist()&&(t.visitsCount+=1,t.lastVisitTimestamp=e),t.hitTimestamp=e,t.appliedTrackingDraw=this.f.lastTrackingDraw,this.Og=t.visitsCount}getRequestParameters(){let t=this.getVisitor();return t?{uu:t.id,sn:`${t.visitsCount}`,hd:`${t.hitTimestamp}`}:{}}getVisitor(){return this.ot.get()}setVisitor(t){this.ot.set(t)}doesVisitorExist(){return this.ot.get()!==null}resetVisitor(){this.Ng(),this.S.emitAfterVisitorCleared()}removeVisitor(){this.ot.remove()}hasAllowSubdomainsChanged(){let t=this.getVisitor();return t?t.allowSubdomains!==this.f.allowSubdomains:!1}handleSubdomainChange(){this.ot.handleSubdomainChange()}isSessionRenewed(){let t=this.getVisitor();return t===null||this.Og===void 0?!1:t.visitsCount!==this.Og}wT(){return!mt(this.Mg)||Q.now()-this.Mg>this.ST}renewVisitor(){this.wT()?(this.Mg=Q.now(),this.Ng(),this.S.emitAfterVisitorRenewal()):Y.warn("session:start:newVisitor is trying to renew visitor under time limit")}Ng(){this.S.emitBeforeVisitorRenewal(),this.removeVisitor()}}return s})(),ze="_cs_s",xn=18e5,ha=".",YS=13,Pn=(()=>{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})(),XS=(()=>{class s{constructor(t,e,i){this.f=t,this.V=e,this.Qt=i,this.ee=null,this.Xh=!1}get(t){let e=this.getRawSession(t);return this.isValid(e)?zh(e):null}getRawSession(t){if(t){let S=this.Kh();return Ra(S)}let{sessionString:e,status:i}=this.bT(),n=Ra(e);if(i!==Pn.EXPIRED)return n;if(this.f.cookielessTrackingEnabled)return null;let o=this.Kh();if(!o)return null;let c=csString.prototype.split.call(o,ha);if(!s.kg(c))return o;let u=c[c.length-1],d=parseInt(u,10);return isNaN(d)||this.AT(d),n}onCookieToSet(t){this.li=t}onCookieToRemove(t){this.hi=t}set(t,e=xn){var i;let n=Q.now()+e,o=yg(t);o+=`${ha}${n}`,this.TT(o,n),this.f.cookielessTrackingEnabled?this.Qt.setItem(ze,o):(this.V.set(ze,o,e),(i=this.li)===null||i===void 0||i.call(this,ze,o,e))}remove(){var t;this.f.cookielessTrackingEnabled?this.Qt.removeItem(ze):(this.V.delete(ze),(t=this.hi)===null||t===void 0||t.call(this,ze)),this.RT()}handleSubdomainChange(){if(this.f.cookielessTrackingEnabled)return;let t=this.get(!0);t&&(this.f.allowSubdomains?this.V.delete(ze,Fr.CURRENT_DOMAIN):this.V.delete(ze,this.V.getRootDomain()),this.set(t))}isValid(t){return t!==null&&dc(t)}TT(t,e){this.ee={sessionString:t,expires:e}}bT(){return this.ee?this.ee&&Q.now()<=this.ee.expires?{sessionString:this.ee.sessionString,status:Pn.FOUND}:{sessionString:this.ee.sessionString,status:Pn.EXPIRED}:{sessionString:this.Kh(),status:Pn.NOT_FOUND}}RT(){this.ee=null}AT(t){this.ee&&(this.ee.expires=t,this.Xh=!0)}isCacheRefreshed(){return this.Xh}resetCacheRefreshed(){this.Xh=!1}Kh(){if(this.f.cookielessTrackingEnabled){let e=this.Qt.getItem(ze);return!e||this.Dg(e)?null:e}let t=this.V.get(ze);return!t||this.Dg(t)?null:t}Dg(t){let e=csString.prototype.split.call(t,ha);if(!s.kg(e))return!1;let i=parseInt(e[e.length-1],10);return!isNaN(i)&&Q.now()>i}static kg(t){return t[t.length-1].length===YS}}return s})(),kc=60*1e3,KS=60*kc,JS=4*KS-kc,qi=(()=>{let s;return function(r){r[r.NO=0]="NO",r[r.WITHDRAWN=1]="WITHDRAWN",r[r.GRANTED=2]="GRANTED"}(s||(s={})),s})(),QS=(()=>{class s{constructor(t,e,i,n){this.Ee=t,this.ht=e,this.CT=i,this.IT=n,this.Yn=null,this.Jh=0,this.Xn=qi.NO}setDynamicVariablesService(t){this.PT=t}createOrUpdateSession(){this.Qh(),this.OT=Q.now(),this.Jh=0;let t=this.Lg();t===null?(t=this.NT(),this.xg(t),this.Da(t)):(t=this.ht.sanitizeSessionCollectState(t),this.xg(t),t.collectState=this.ht.getEligibleCollectState(t)),this.setSession(t)}grantReplayRecording(t){t.collectState=this.ht.getInitialCollectState(),t.collectState=this.ht.computeInitialCollectStateFromRecordingConsentGranted(t),this.setSession(t)}grantReplayRecordingBeforeSessionStart(){this.Xn=qi.GRANTED}withdrawnReplayRecording(t){t.collectState=this.ht.getRecordingConsentWithdrawn(),this.setSession(t)}withdrawnReplayRecordingBeforeSessionStart(){this.Xn=qi.WITHDRAWN}Da(t){this.Xn===qi.WITHDRAWN?(t.collectState=this.ht.getRecordingConsentWithdrawn(),this.setSession(t)):this.Xn===qi.GRANTED?t.collectState=this.ht.computeInitialCollectStateFromRecordingConsentGranted(t):t.collectState=this.ht.computeInitialCollectState(t),this.Xn=qi.NO}NT(){return{pageNumber:0,collectState:this.ht.getInitialCollectState(),replayConsent:this.CT?Ta.NOT_EXPRESSED:Ta.UNNECESSARY,etrStatus:Ue.ETR_NOT_SAVED_SESSION}}xg(t){t.pageNumber+=1}isReplayRecorded(){let t=this.getSession();return!!t&&this.ht.isReplayRecorded(t)}isTemporarilyRecorded(){let t=this.getSession();return(t==null?void 0:t.collectState)===tt.RECORDING_TEMPORARILY}getRequestParameters(){let t={},e=this.getSession();return e!==null&&(t.pn=`${e.pageNumber}`),t}getSession(){return this.Ee.get()}Lg(){return this.Ee.get(!0)}doesSessionExist(){return this.Ee.get()!==null}setSession(t){this.Ee.set(t)}refreshSession(){let t=this.Lg();t&&this.setSession(t)}removeSession(){this.Ee.remove()}getCollectStates(){let t=this.getSession(),e=[];return t&&(t.collectState!==tt.ANALYTICS_ONLY&&csArray.prototype.push.call(e,t.collectState===tt.RECORDING_RULES_TARGETING?tt.RECORDING_GLOBAL_SAMPLING:t.collectState),this.IT&&csArray.prototype.push.call(e,tt.RECORDING_ETR_SAMPLING)),e}updateCollectState(t){let e=this.getSession();e!==null&&(e.collectState=t,this.setSession(e))}hasValidSession(){let t=this.Ee.getRawSession();return this.Ee.isValid(t)}handleSubdomainChange(){this.Ee.handleSubdomainChange()}pollCacheRefreshEvent(t=!0){let e=this.Ee.isCacheRefreshed();return e&&t&&this.Ee.resetCacheRefreshed(),e}extendSessionPeriodically(){this.Yn||this.Vg()}extendSession(){let t=this.getSession();return t===null?(Y.warn("extendSession is trying to extend an expired session"),this.Qh(),!1):(this.Ee.set(t,xn),!0)}Vg(){if(this.MT()){this.Qh();return}this.extendSession()&&(this.kT(),this.DT())}DT(){this.Yn=window.csSetTimeout(()=>{this.Vg()},xn-kc)}MT(){return JS-(Q.now()+xn-this.OT)<0}Qh(){this.Yn&&(window.csClearTimeout(this.Yn),this.Yn=null)}kT(){this.Jh+=1,this.PT.trackDynamicVariable("session_expiry_update",this.Jh)}}return s})(),ZS=(()=>{class s{constructor(t,e,i){this.f=t,this.I=e,this.Xe=i}clear(){this.LT()&&(this.Ug=this.I.getVisitor(),this.I.removeVisitor()),this.xT()&&this.Xe.removeExclusion()}LT(){return this.I.doesVisitorExist()&&this.I.getVisitor().appliedTrackingDraw!==this.f.lastTrackingDraw}xT(){return this.Xe.getAppliedTrackingDraw()!==this.f.lastTrackingDraw}restoreClearedVisitor(){this.Ug&&this.I.setVisitor(this.Ug)}}return s})(),tv=(()=>{class s{constructor(t,e,i){this.I=t,this.A=e,this.VT=i}handle(){this.I.hasAllowSubdomainsChanged()&&(this.I.handleSubdomainChange(),this.A.handleSubdomainChange(),this.VT.handleSubdomainChange())}}return s})(),Xs="_cs_c",Ei=(()=>{let s;return function(r){r[r.NOT_REQUIRED=0]="NOT_REQUIRED",r[r.NOT_EXPRESSED=1]="NOT_EXPRESSED",r[r.GRANTED=2]="GRANTED",r[r.WITHDRAWN=3]="WITHDRAWN"}(s||(s={})),s})(),vd=(()=>{class s{constructor(t,e,i){this.f=t,this.V=e,this.Ht=i}get(){let t;return this.f.cookielessTrackingEnabled?t=this.Ht.getItem(Xs):t=this.V.get(Xs),t===null?t:Number(t)}set(t){this.f.cookielessTrackingEnabled?this.Ht.setItem(Xs,csString(t)):this.V.set(Xs,csString(t),rc)}remove(){this.f.cookielessTrackingEnabled?this.Ht.removeItem(Xs):this.V.delete(Xs)}handleSubdomainChange(){this.f.cookielessTrackingEnabled||(this.f.allowSubdomains?this.V.delete(Xs,Fr.CURRENT_DOMAIN):this.V.delete(Xs,this.V.getRootDomain()))}}return s})(),ev=(()=>{class s{constructor(t,e,i){this.f=t,this.A=e,this.S=i}grantReplayConsent(){if(!Zs.isReplayConsentNeeded(this.f))return;let t=this.A.getSession();if(!t){this.A.grantReplayRecordingBeforeSessionStart();return}Zs.isRecordingBlockedByConsent(t)&&(this.A.grantReplayRecording(t),this.S.emitAfterReplayRecordingConsentGranted())}withdrawReplayConsent(){if(!Zs.isReplayConsentNeeded(this.f))return;let t=this.A.getSession();if(!t){this.A.withdrawnReplayRecordingBeforeSessionStart();return}Zs.isRecordingWithDrawn(t)||(this.A.withdrawnReplayRecording(t),this.S.emitAfterReplayRecordingConsentWithdrawn())}}return s})(),_d=["replay:consent:unanonymized:granted","trackConsentGranted"],wd=["replay:consent:unanonymized:withdrawn","trackConsentWithdrawn"],bd=["replay:consent:startForSession:granted"],Ad=["replay:consent:startForSession:withdrawn"],sv=(()=>{class s{constructor(t,e,i,n,o){this.f=t,this.E=e,this.fe=i,this.A=n,this.S=o}init(){this.jg=new ev(this.f,this.A,this.S),this.fe.setInitialConsent(),this.ut()}ut(){this.E.register(_d,()=>{this.fe.grantReplayAnonymizationConsent()}),this.E.register(wd,()=>{this.fe.withdrawReplayAnonymizationConsent()}),this.E.register(bd,()=>{this.jg.grantReplayConsent()}),this.E.register(Ad,()=>{this.jg.withdrawReplayConsent()})}onOptout(){this.fe.removeAllConsents()}onBeforeVisitorRenewal(){this.fe.removeAllConsents()}onAfterVisitorRenewal(){this.fe.setInitialConsent()}onAfterVisitorCleared(){this.fe.setInitialConsent()}}return s})(),Td=(()=>{class s{constructor(t,e,i){this.f=t,this.ot=e,this.S=i}setInitialConsent(){let t=this.ot.get();(t===null||this.hasConsentRequiredChanged(t))&&this.setDefaultReplayAnonymization()}hasConsentRequiredChanged(t){let e=this.f.consentRequired;return e&&t===Ei.NOT_REQUIRED||!e&&t!==Ei.NOT_REQUIRED}handleSubdomainChange(){this.ot.handleSubdomainChange()}setDefaultReplayAnonymization(){let t=this.f.consentRequired?Ei.NOT_EXPRESSED:Ei.NOT_REQUIRED;this.ot.set(t)}grantReplayAnonymizationConsent(){this.f.consentRequired&&(this.ot.set(Ei.GRANTED),this.S.emitReplayUnanonymizationConsentGranted())}withdrawReplayAnonymizationConsent(){this.f.consentRequired&&(this.ot.set(Ei.WITHDRAWN),this.S.emitReplayUnanonymizationConsentWithdrawn())}removeAllConsents(){this.ot.remove()}isReplayUnanonymizedAllowedByConsent(){return!this.f.consentRequired||this.ot.get()===Ei.GRANTED}getRequestParameters(){return{uc:`${this.ot.get()}`}}}return s})(),iv=(()=>{class s{constructor(t,e,i,n,o,c,u){this.S=t,this.E=e,this.$h=i,this.Gh=n,this.Zs=o,this.UT=c,this.Wn=u}start(){this.S.addListener(this.UT),this.S.addListener(this.Wn),this.S.addListener(this.$h),this.Wn.init(),this.Gh.init(),this.Zs.init(),!this.Zs.isActive()&&this.E.start()}}return s})(),rv=(()=>{class s{constructor(t,e){this.Pt=t,this.ot=e}exclude(t){this.ot.set(csString(t.lastTrackingDraw))}removeExclusion(){this.ot.remove()}isExcluded(){return this.jT()||this.HT()}jT(){return this.getAppliedTrackingDraw()!==0}getAppliedTrackingDraw(){return this.ot.get()}HT(){return csString.prototype.indexOf.call(this.Pt.href,As)>0}}return s})(),nv=(()=>{class s{constructor(t){this.Ze=t}onOptout(){this.Ze.removeExclusion()}}return s})(),ua=(()=>{let s;return function(r){r.SessionReplay="SR",r.None=""}(s||(s={})),s})(),ov=".^",Rd=".*",Cd=(()=>{class s{constructor(t){this.R=t,this.Zh=new csRegExp(`${ov}`)}setExcludeUrlForSessionReplay(t){try{this.Zh=new csRegExp(t)}catch{Y.warn(`excludeURLforReplay - invalid regex '${t}'`),this.Zh=new csRegExp(`${Rd}`)}}Hg(){return this.Zh.test(this.R.getAnonymizedUrl())?ua.SessionReplay:ua.None}isUrlExcludedForSessionReplay(){return this.Hg()===ua.SessionReplay}getRequestParameters(){return{ex:this.Hg()}}}return s})(),Id=["excludeURLforReplay"],Pd=(()=>{class s{constructor(t,e){this.Ze=t,this.E=e}init(){this.E.register(Id,t=>{if(V(t))this.Ze.setExcludeUrlForSessionReplay(t);else throw new Error("Command misuse: excludeURLforReplay")})}}return s})(),da="_cs_inc",av=(()=>{class s{constructor(t,e){this.Pt=t,this.V=e}isForceIncluded(){return this.BT()||this.FT()}isForceReplayRecorded(){return this.zT(tt.RECORDING_GLOBAL_SAMPLING)}BT(){return this.V.get(da)!==null}zT(t){return this.V.get(da)===t}FT(){return csString.prototype.indexOf.call(this.Pt.href,da)>0}}return s})(),Or="_cs_optout",cv=(()=>{class s{constructor(t,e,i){this.f=t,this.V=e,this.Ht=i}get(){return this.f.cookielessTrackingEnabled?this.Ht.getItem(Or):this.V.get(Or)}set(t){this.f.cookielessTrackingEnabled?this.Ht.setItem(Or,t):this.V.set(Or,t,rc)}}return s})(),th="1",lv=(()=>{class s{constructor(t,e,i){this.S=t,this.Pt=e,this.ot=i}init(){!this.isActive()&&this.$T()&&this.activate()}isActive(){return this.ot.get()===th}activate(){this.S.emitOptout(),this.ot.set(th)}$T(){return csString.prototype.indexOf.call(this.Pt.href,Or)>0}}return s})(),Dc=["optout"],Od=["optin"],hv=(()=>{class s{constructor(t,e){this.E=t,this.Zs=e}init(){this.E.register(Dc,()=>{this.Zs.activate()})}}return s})();var uv=(()=>{class s{constructor(t,e){this.E=t,this.pt=e}init(){this.pt.addListener(this.E)}onOptout(){this.E.stop()}onBeforeSessionRenewal(){this.E.stop()}}return s})();var Jn=(()=>{let s;return function(r){r.UXA="_uxa",r.WVT="cs_wvt"}(s||(s={})),s})(),Lc=(()=>{class s extends ae{constructor(t){super(),this.tu=t,this.ls={}}register(t,e,i){for(let n of t){let o=(...c)=>{try{let u=e(...c);return bt.counters.commandApplied.count(n),u}catch(u){bt.counters.commandMisuse.count(n),Y.warn(`Misused Command: ${n}; Args: ${csJSON.stringify(c)}; Error: ${ii(u)?u.stack:u}`)}};this.ls[n]={callback:o,configuration:i},this.ls}}onStart(){this.qT(),this.WT()}onStop(){for(let t of this.tu)window[t]=[]}applyFromIntegration(t,e,i){this.Bg(t,e,`Commands.apply.from.integration: ${i}`),bt.counters.commandsFromIntegrations.count(t)}applyFromImplementation(t,e,i){this.Bg(t,e,`Commands.apply.from.implementation: ${i}`),bt.counters.commandsFromCSTC.count(t)}onIframeCommands(t){for(let e of t.commands)this.YT(e.name,e.params,t.iframePath),bt.counters.commandsFromIframe.count(e.name)}Bg(t,e,i){if(!this.isStarted){window._uxa.push([t,...e]);return}Y.tryToExecute(i,()=>{if(this.ls[t])return this.ls[t].callback(...e)})()}YT(t,e,i){Y.tryToExecute(`Commands.apply.from.iframe: ${i}`,()=>{if(this.ls[t])return this.ls[t].callback(...e)})()}qT(){for(let t of this.tu)window[t].forEach(([e,...i])=>this.Fg(e,i,!1))}WT(){for(let t of this.tu)window[t]={push:([e,...i])=>this.Fg(e,i,!0)}}Fg(t,e,i){var n,o;if(this.ls[t]){if(((n=this.ls[t].configuration)===null||n===void 0?void 0:n.disableApplyPending)&&!i||((o=this.ls[t].configuration)===null||o===void 0?void 0:o.disableApplyImmediate)&&i)return;try{return this.ls[t].callback(...e)}catch(u){bt.counters.commandError.count(t),Y.error(`Command ${t} failed - params: ${csJSON.stringify(e)}`,u)}}}}return s})();var dv=(()=>{class s{constructor(t,e,i,n){this.f=t,this.I=e,this.A=i,this.Qg=n}getRequestParameters(){var t;let e={...ac(),...this.f.getRequestParameters()},i=this.A.getSession();i&&(e.pn=`${i.pageNumber}`);let n=this.I.getVisitor();if(n&&(e.sn=`${n.visitsCount}`,e.uu=`${n.id}`),!((t=this.Qg)===null||t===void 0)&&t.hasSubProjectId()&&(e.subProjectID=`${this.Qg.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})(),pv=(()=>{class s{constructor(t,e){this.E=t,this.Ms=e}init(){this.E.register(["debugEvents"],t=>{typeof t=="boolean"&&this.Ms.updateDynamicFields("emitDebugEvents",t)})}}return s})();function eh(s,r,t){if(!mt(r)&&!mt(t))return s.href;let e=mt(r)?Nd(r):s.pathname,i=mt(t)?Md(t):s.search;return`${s.protocol}//${s.host}${e}${i}`}function Nd(s){return ri(s,"/")?s:`/${s}`}function Md(s){return ri(s,"?")||s===""?s:`?${s}`}var pa=(()=>{let s;return function(r){r[r.page=1]="page",r[r.onNextPageviewOnly=2]="onNextPageviewOnly"}(s||(s={})),s})(),xc=(()=>{class s{constructor(t,e){this.Pt=t,this.tt=e,this.tR=10}overridePath(t,e){if(t===""){this.Ar=void 0;return}let i=this.Zg(e);i&&(this.iu=i),this.Ar=e?this.tm(t,e):t}overrideQuery(t,e){let i=this.Zg(e);i&&(this.ru=i),this.Jn=e?this.tm(t,e):t}computeOverriddenUrl(t){return this.eR(t)?this.getAnonymizedUrl():t}sR(t){return(typeof t=="string"||typeof t=="number")&&t in pa}eR(t){let e=this._a(this.Pt.href);return this._a(t)===e}_a(t){return af(t,"/")?csString.prototype.slice.call(t,0,-1):t}Zg(t){return mt(t==null?void 0:t.lifespan)&&this.sR(t==null?void 0:t.lifespan)?t==null?void 0:t.lifespan:null}iR(){return this.iu&&this.iu in pa}rR(){return this.ru&&this.ru in pa}cleanupOverrideLifespan(){this.iR()&&(this.Ar=void 0,this.iu=void 0),this.rR()&&(this.Jn=void 0,this.ru=void 0)}getAnonymizedUrl(){let t=eh(this.Pt,this.Ar,this.Jn);return this.tt.anonymizeUrl(t)}getUrl(){return eh(this.Pt,this.Ar,this.Jn)}getAnonymizedPathAndQuery(){let t=mt(this.Ar)?Nd(this.Ar):this.Pt.pathname,e=mt(this.Jn)?Md(this.Jn):this.Pt.search;return this.tt.anonymizeUrl(t+e)}getUrlProtocol(){return this.Pt.protocol}getRequestParameters(){return{url:this.getAnonymizedUrl()}}tm(t,e){return this.nR(e)?this.oR(t):this.aR(e)?this.cR(t):t}aR(t){return!!t.decodeURI}cR(t){return this.em(t,1,!1)}nR(t){return!!t.decodeURIDeep}oR(t){return this.em(t,this.tR,!0)}em(t,e,i){let n=t;for(let o=0;o{class s{constructor(){this.listeners=[]}addListener(t){csArray.prototype.push.call(this.listeners,t)}}return s})(),fv=(()=>{class s extends fo{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:ot.EXTERNAL_EVENT,name:t,ts:0})}emitTargetingRulesArtificialPageview(t){for(let e of this.listeners)e.onTargetingRulesArtificialPageview&&e.onTargetingRulesArtificialPageview(t)}}return s})(),Vr="|iframe|",kd=(()=>{class s extends fo{constructor(t,e,i,n){super(),this.lR=t,this.hR=e,this.uR=i,this.dR=n}emitIframeEvent(t,e,i){if(this.pR(e)&&t===null){Y.error(`iframeEventEmitter received event ${e} with null iframe, content:${csJSON.stringify(i)}`);return}switch(e){case z.ChildLogMessage:this.fR(i);break;case z.AnalysisEvent:{let n=i,o=this.lR.transformEvent(t,n);o.isUserEvent?this.gR(o.event):this.mR(o.event);break}case z.RecordingEvent:{let n=i,o=this.dR.transformEvents(t,n);if(o.events.length===0)return;o.containsUserEvent?this.yR(o.events):this.ER(o.events);break}case z.JavascriptError:this.SR(i);break;case z.ApiError:this.vR(i);break;case z.DetailedApiError:this._R(i);break;case z.CustomError:this.wR(i);break;case z.EmerchandisingMessage:{let n=this.uR.transformEvent(t,i);this.bR(n);break}case z.Commands:{let n=this.hR.transformEvent(t,i);this.AR(n);break}case z.IntegrationCallback:this.TR(i);break;case z.StaticResource:this.RR(i);break;case z.TrackingContextRequestMessage:this.CR(i);break;default:Y.error(`Parent received unknown data type from iframe : ${csJSON.stringify(i)}`)}}pR(t){let e=[z.AnalysisEvent,z.RecordingEvent,z.EmerchandisingMessage,z.Commands];return csArray.prototype.indexOf.call(e,t)!==-1}fR(t){let{message:e,errorCode:i,level:n}=t;switch(n){case Et.debug:Y.debug(e,i);break;case Et.warn:Y.warn(e,!0,i);break;case Et.implementation:Y.implementation(e,i);break;case Et.error:Y.error(e,i);break;case Et.critical:Y.critical(e,i);break}}gR(t){for(let e of this.listeners)e.onIframeAnalysisUserEvent&&e.onIframeAnalysisUserEvent(t)}mR(t){for(let e of this.listeners)e.onIframeAnalysisBrowserEvent&&e.onIframeAnalysisBrowserEvent(t)}yR(t){for(let e of this.listeners)e.onIframeRecordingUserEvent&&e.onIframeRecordingUserEvent(t)}ER(t){for(let e of this.listeners)e.onIframeRecordingBrowserEvent&&e.onIframeRecordingBrowserEvent(t)}SR(t){for(let e of this.listeners)e.onIframeJavascriptError&&e.onIframeJavascriptError(t)}vR(t){for(let e of this.listeners)e.onIframeApiError&&e.onIframeApiError(t)}_R(t){for(let e of this.listeners)e.onIframeDetailedApiError&&e.onIframeDetailedApiError(t)}bR(t){for(let e of this.listeners)e.onIframeEmerchandisingMessage&&e.onIframeEmerchandisingMessage(t)}AR(t){for(let e of this.listeners)e.onIframeCommands&&e.onIframeCommands(t)}TR(t){for(let e of this.listeners)e.onIframeIntegrationCallback&&e.onIframeIntegrationCallback(t)}RR(t){for(let e of this.listeners)e.onIframeStaticResource&&e.onIframeStaticResource(t)}CR(t){for(let e of this.listeners)e.onTrackingContextRequestCallback&&e.onTrackingContextRequestCallback(t)}wR(t){for(let e of this.listeners)e.onIframeCustomError&&e.onIframeCustomError(t)}}return s})(),Dd=(()=>{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})(),Ld=(()=>{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})(),go=["setCustomVariable"],gv=(()=>{class s{constructor(t,e){this.E=t,this.At=e}init(){this.E.register(go,(t,e,i,n)=>{this.At.set(t,e,i,n)})}onAfterArtificialPageView(){this.At.deleteNextPageOnlyCustomVariables()}onAfterNaturalPageView(){this.At.deleteNextPageOnlyCustomVariables()}onOptout(){this.At.removeCustomVariablesSession()}onBeforeVisitorRenewal(){this.At.removeCustomVariablesSession(),this.At.removeCustomVariablesPage()}}return s})(),sh=512,ih=255,fa={SESSION:["visit",2],PAGE:["page",3],NEXT_PAGE_ONLY:["nextPageOnly",4]},mv=(()=>{class s{constructor(t,e){this.N=t,this.ot=e,this.Wt={},this.Le={}}set(t,e,i,n){let o,c;if((te(t)||V(t))&&Number(t)>0&&Vt(e)&&Vt(i)&&!be(e)&&!be(i)&&this.IR(n)){let u=this.N.anonymizePII(csString(e)),d=this.N.anonymizePII(csString(i));if(o=[csString.prototype.slice.call(u,0,sh),csString.prototype.slice.call(d,0,ih)],c=i!=="",!mt(n)||csArray.prototype.indexOf.call(fa.SESSION,n)>=0){let S=this.getCustomVariablesSession();c?S[t]=o:delete S[t],this.setCustomVariableSession(S)}(!mt(n)||csArray.prototype.indexOf.call(fa.PAGE,n)>=0)&&(c?this.Wt[t]=o:delete this.Wt[t]),mt(n)&&csArray.prototype.indexOf.call(fa.NEXT_PAGE_ONLY,n)>=0&&(c?this.Le[t]=o:delete this.Le[t])}else throw new Error(`Command misuse: ${go[0]}`)}getCustomVariablesSession(){let t=this.ot.get();if(!t)return{};let e=window.csJSON.parse(t);return e!==null&&Xe(e)?e:{}}setCustomVariableSession(t){this.ot.set(window.csJSON.stringify(t))}removeCustomVariablesSession(){this.ot.remove()}removeCustomVariablesPage(){this.Wt={}}getRequestParameters(){let t=this.getCustomVariablesSession();for(let i in this.Le)this.Le.hasOwnProperty(i)&&(this.Wt[i]=this.Le[i]);for(let i in this.Wt)this.Wt.hasOwnProperty(i)&&(t[i]=this.Wt[i]);if(window.csJSON.stringify(t).length<=2)return{};let e={cvars:this.sm(t)};return this.Wt&&window.csJSON.stringify(this.Wt).length>2&&(e.cvarp=this.sm(this.Wt)),e}deleteNextPageOnlyCustomVariables(){if(Object.keys(this.Le).length>0)for(let t in this.Le)this.Le[t]===this.Wt[t]&&(delete this.Wt[t],delete this.Le[t])}im(t){for(let e in t)if(t.hasOwnProperty(e)){let i=parseInt(e,10),n=t[e],o=n[0],c=n[1];(!yp(i,1,20)||o.length>sh||c.length>ih)&&delete t[e]}}sm(t){this.im(t);let e=Ep(t)?[]:t;return window.csJSON.stringify(e)}IR(t){return!mt(t)||V(t)||te(t)}getAllValidCustomVars(){let t=this.getCustomVariablesSession();for(let e in this.Le)this.Le.hasOwnProperty(e)&&(this.Wt[e]=this.Le[e]);for(let e in this.Wt)this.Wt.hasOwnProperty(e)&&(t[e]=this.Wt[e]);return this.im(t),t}}return s})(),rs="_cs_id",xd=(()=>{class s{constructor(t,e,i){this.f=t,this.V=e,this.Qt=i}onCookieToSet(t){this.li=t}onCookieToRemove(t){this.hi=t}get(){let t;return this.f.cookielessTrackingEnabled?t=this.Qt.getItem(rs):t=this.V.get(rs),t?(dg(t)||Y.warn(`Invalid visitor string: ${t}`),hg(t)):null}set(t){var e;let i=ug(t);if(this.f.cookielessTrackingEnabled)this.Qt.setItem(rs,i);else{let n=new csDate(t.expires);this.V.set(rs,i,n),(e=this.li)===null||e===void 0||e.call(this,rs,i,n)}}remove(){var t;this.f.cookielessTrackingEnabled?this.Qt.removeItem(rs):(this.V.delete(rs),(t=this.hi)===null||t===void 0||t.call(this,rs))}handleSubdomainChange(){if(this.f.cookielessTrackingEnabled)return;let t=this.get();t&&(t.allowSubdomains=this.f.allowSubdomains,this.f.allowSubdomains?this.V.delete(rs,Fr.CURRENT_DOMAIN):this.V.delete(rs,this.V.getRootDomain()),this.set(t))}}return s})(),yv=/\b((?:profile|user|last|first|primary|primary(?:[/_+-]|%20)?last)(?:[/_+-]|%20)?(?:name)[/=])[^#;?&/]+/gi,Ev="$1CS_ANONYMIZED_NAME",Vc=(()=>{class s{constructor(t){this.N=t}anonymizeUrl(t,e={}){let i=e.maskingPatterns||[],n=e.partialMaskingPatterns||[],o=this.N.anonymizePII(t);if(o=this.N.anonymizeJwt(o),e.maskNames){let d=o;o=this.Vn(o),o!==d&&(bt.counters.redactedPII.count("name"),bt.counters.redactedPII.count("name-in-url"))}let c=this.PR(o,i);if(c!==o)return bt.counters.redactedPII.count("url"),c;let u=this.NR(o,n);return u!==o&&bt.counters.redactedPII.count("url"),u}removeQueryString(t){let{path:e,queryString:i}=this.nu(t);return i!==""?`${e}?`:e}nu(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}}PR(t,e){if(e.length===0)return t;let{path:i,queryString:n}=this.nu(t),o=csString.prototype.split.call(i,"/");for(let c of e){let u=this.MR(o,c);if(u!==null)return`${u}${n}`}return t}MR(t,e){if(t.length=e.length){csArray.prototype.push.call(i,o);continue}let c=e[n].key;if(this.rm(c)){let u=e[n].value;csArray.prototype.push.call(i,u);continue}if(o===c){csArray.prototype.push.call(i,o);continue}return null}return csArray.prototype.join.call(i,"/")}NR(t,e){if(e.length===0)return t;let{path:i,queryString:n}=this.nu(t),o=csString.prototype.split.call(i,"/");for(let c of e)o=this.kR(o,c);return`${csArray.prototype.join.call(o,"/")}${n}`}kR(t,e){let i=[],n=0,c=t[0]==="http:"||t[0]==="https:"?2:0;for(let u=0;u=c){let f=e[n].value;csArray.prototype.push.call(i,d.length>0?f:""),n++,n===e.length&&(n=0);continue}if(d===S){csArray.prototype.push.call(i,d),n++,n===e.length&&(n=0);continue}for(let f=0;f{class s{constructor(t,e){this.ft=t,this.f=e}getEventTargetPathAndHierarchy(t,e){let i=Zt(t),n={isNodeSensitive(o){return W.isMaskedElement(o)||W.isMaskedElementChild(o)},isAttributeSensitive(o,c){return W.isMaskedAttribute(o,c)},allWhitelistedAttributes:du(this.f.whitelistedAttributes),attributeIgnoreTokens:Sv,useAnonymization:e,attrMaxLength:_v,hierarchyMaxLength:vv};return this.ft.getElementPathAndHierarchy(i,n,{dynamicIdRegex:this.f.dynamicIdRegex,...this.f.pathComputationRules})}getEventTargetPath(t){let e=Zt(t);return this.ft.getElementPath(e,{dynamicIdRegex:this.f.dynamicIdRegex,...this.f.pathComputationRules})}getEventTargetPathAndTargetLink(t){let e=Zt(t),{path:i,firstAnchorParent:n}=this.ft.getElementPathAndFirstAnchorParent(e,{dynamicIdRegex:this.f.dynamicIdRegex,...this.f.pathComputationRules}),o=this.DR(n)?n.href:"";return{path:i,targetLink:o}}hasValidEventTarget(t){let e=Zt(t);return this.ft.isValidElement(e)}getElementPath(t){return this.ft.getElementPath(t,{dynamicIdRegex:this.f.dynamicIdRegex,...this.f.pathComputationRules})}DR(t){var e;return t!==null&&t.hasAttribute("href")&&!ri((e=t.getAttribute("href"))!==null&&e!==void 0?e:"","#")}}return s})(),Ud=(()=>{class s{constructor(t){this.K=t}transformEvent(t,e){this.LR(t,e.event);let i=this.K.getElementPath(t);return this.xR(i,e.event),e}LR(t,e){if(rE(e)){let i=t.getBoundingClientRect();e.x=Math.round(i.left+e.x+Kt.windowOffsetX()),e.y=Math.round(i.top+e.y+Kt.windowOffsetY())}}xR(t,e){Bu(e)&&(e.tgt=`${t}${Vr}${e.tgt}`),sE(e)&&(e.tgtHM=`${t}${Vr}${e.tgtHM}`),iE(e)&&(e.tgtLk=`${t}${Vr}${e.tgtLk}`)}}return s})(),jd=(()=>{class s{constructor(t){this.K=t}transformEvent(t,e){let i=this.K.getElementPath(t);return{iframePath:e.iframePath?`${i}${Vr}${e.iframePath}`:i,commands:e.commands}}}return s})(),Hd=(()=>{class s{constructor(t){this.K=t}transformEvent(t,e){if(e.products.length===0)return e;let i=this.K.getElementPath(t),n=csArray.prototype.map.call(e.products,o=>({...o,targetPath:`${i}${Vr}${o.targetPath}`}));return{...e,products:n}}}return s})(),Bd=(()=>{class s{constructor(){this.VR={clientX:2,clientY:3},this.UR={clientX:1,clientY:2},this.jR=[J.POINTER_DOWN,J.POINTER_MOVE,J.POINTER_UP],this.HR=[J.TOUCH_START,J.TOUCH_MOVE,J.TOUCH_END]}transformEvents(t,e){if(!Ct.isConnected(t))return e.events=csArray.prototype.filter.call(e.events,c=>c.type!==J.VISIBILITY_CHANGE),e.events.length===0||(Y.warn(`IframeRecordingEventsTransformer received event ${z.RecordingEvent} from disconnected iframe, content:${csJSON.stringify(e.events)}`),e.events=[]),e;let i=Rt(t),n=null;csArray.prototype.some.call(e.events,c=>this.nm(c)||this.om(c))&&(n=t.getBoundingClientRect());for(let c of e.events)this.nm(c)?this.BR(n,c):this.om(c)&&this.FR(n,c),c.context=c.context&&c.context.length>0?`${i}/${c.context}`:`${i}`;return e}FR(t,e){this.am(this.UR,t,e)}BR(t,e){this.am(this.VR,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.jR,t.type)!==-1}om(t){return csArray.prototype.indexOf.call(this.HR,t.type)!==-1}}return s})(),wv=(()=>{class s{constructor(t){this.ou=t}start(){this.ou.onEvent(t=>this.X(t)),this.ou.start()}stop(){this.ou.stop()}X(t){let e=`Content Security Policy error. Violated directive: ${t.violatedDirective} - Source file: ${t.sourceFile}`;Y.warn(e)}}return s})(),bv=(()=>{class s{constructor(){this.Ft={boundElement:document,type:"securitypolicyviolation",listener:t=>this.securityPolicyViolationListener(t)},csArray.prototype.push.call(s.au,"localhost"),csArray.prototype.push.call(s.au,"fake-tracker.content-square.fr")}start(){Lt(this.Ft)}stop(){xt(this.Ft)}onEvent(t){this.D=t}zR(t){if(!t)return!1;let e=t.disposition;return V(t.sourceFile)&&csArray.prototype.some.call(s.au,i=>csString.prototype.indexOf.call(t.sourceFile,i)>0)&&e!=="report"}securityPolicyViolationListener(t){this.zR(t)&&this.D({violatedDirective:t.violatedDirective,sourceFile:t.sourceFile})}}return s.au=["contentsquare","cdnssl.clicktale.net"],st([G("Event handler type: securitypolicyviolation")],s.prototype,"securityPolicyViolationListener",null),s})(),Av=(()=>{class s{init(){this.cm=new wv(new bv),this.cm.start()}onOptout(){this.cm.stop()}}return s})();var rh=1/0,{toString:Tv}=Object.prototype;function Rv(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":Tv.call(s)}var Uc=s=>typeof s=="symbol"||typeof s=="object"&&s!=null&&Rv(s)==="[object Symbol]";function Fd(s){if(typeof s=="string"||Uc(s))return s;let r=`${s}`;return typeof s=="number"?r==="0"&&1/s===-rh?"-0":r:s instanceof Number&&r==="0"&&1/s.valueOf()===-rh?"-0":r}var Cv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Iv=/^\w*$/;function Pv(s,r){return csArray.isArray(s)?!1:typeof s=="number"||typeof s=="boolean"||s==null||Uc(s)?!0:Iv.test(s)||!Cv.test(s)||r!=null&&s in Object(r)}function jc(s,r){if(typeof s!="function"||r!=null&&typeof r!="function")throw new TypeError("Expected a function");let t=function(...e){let i=r?r.apply(this,e):e[0],{cache:n}=t;if(n.has(i))return n.get(i);let o=s.apply(this,e);return t.cache=n.set(i,o)||n,o};return t.cache=new(jc.Cache||Map),t}jc.Cache=Map;var Ov=500;function Nv(s){let r=jc(s,t=>{let{cache:e}=r;return e.size===Ov&&e.clear(),t});return r}var Mv=46,kv=/\\(\\)?/g,Dv=csRegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),zd=Nv(s=>{let r=[];return csString.prototype.charCodeAt.call(s,0)===Mv&&csArray.prototype.push.call(r,""),csString.prototype.replace.call(s,Dv,(t,e,i,n)=>{let o=t;return i?o=csString.prototype.replace.call(n,kv,"$1"):e&&(o=csString.prototype.trim.call(e)),csArray.prototype.push.call(r,o),t}),r});function Lv(s,r){return csArray.isArray(s)?s:Pv(s,r)?[s]:zd(s)}function xv(s,r){let t=Lv(r,s),e=s,i=0,{length:n}=t;for(;e!=null&&i"']/g,Fv=csRegExp(qd.source),zv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,On=/($^)/,$v={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gv=/[()=,{}[\]/\s]/,qv=/<%-([\s\S]+?)%>/g,Wv=/<%([\s\S]+?)%>/g,Wd=/<%=([\s\S]+?)%>/g,{hasOwnProperty:nh}=Object.prototype,Yv="Invalid `variable` option passed into `_.template`";function Xv(s){return`\\${$v[s]}`}var Kv={"&":"&","<":"<",">":">",'"':""","'":"'"},Jv={escape:qv,evaluate:Wv,interpolate:Wd,variable:"",imports:{_:{template:Vn,escape(s){return s&&Fv.test(s)?csString.prototype.replace.call(s,qd,r=>Kv[r]):s!=null?s:""}}}};function Vn(s,r){let t={...Jv,...r},e=Object.keys(t.imports||{}),i=csArray.prototype.map.call(e,T=>t==null?void 0:t.imports[T]),n,o,c=0,u=t.interpolate||On,d="__p += '",S=csRegExp(`${(t.escape||On).source}|${u.source}|${(u===Wd?zv:On).source}|${(t.evaluate||On).source}|$`,"g"),f=`//# sourceURL=${nh.call(t,"sourceURL")?csString.prototype.replace.call(`${t.sourceURL}`,/\s/g," "):void 0} `;s==null||csString.prototype.replace.call(s,S,(T,N,x,O,C,$)=>{let U=x||O;return d+=csString.prototype.replace.call(csString.prototype.slice.call(s,c,$),Bv,Xv),N&&(n=!0,d+=`' + __e(${N}) + '`),C&&(o=!0,d+=`'; ${C}; __p += '`),U&&(d+=`' + ((__t = (${U})) == null ? '' : __t) + '`),c=$+T.length,T}),d+=`'; `;let _=nh.call(t,"variable")&&t.variable;if(!_)d=`with (obj) { ${d} } `;else if(Gv.test(_))throw new Error(Yv);d=csString.prototype.replace.call(csString.prototype.replace.call(o?csString.prototype.replace.call(d,Uv,""):d,jv,"$1"),Hv,"$1;"),d=`function(${_||"obj"}) { ${_?"":`obj || (obj = {}); `}var __t, __p = ''${n?", __e = _.escape":""}${o?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `}${d}return __p }`;let w;try{w=Function(...e,`${f}return ${d}`)(...i)}catch(T){w=T}if(w.source=d,w instanceof Error)throw w;return w}var Qv=/^(\s*("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')\s*,?)+$/,Zv=/<%[\s\S]+?%>|<%-[\s\S]+?%>|<%=[\s\S]+?%>|\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/,t_=/^document\.querySelector\(("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')\)\.(textContent|value)$/;function oh(s){if(!Qv.test(s)||Zv.test(s))throw new Error("whitelisted function is wrongly used")}var ah={"window.location.hash.replace(":(s,r)=>{let t=csString.prototype.substring.call(s,29,s.length-1);return oh(t),Vn(`\${${s}}`)(r)},"window.sessionStorage.getItem(":(s,r)=>{let t=csString.prototype.substring.call(s,30,s.length-1);return oh(t),Vn(`\${${s}}`)(r)},"document.querySelector(":(s,r)=>{if(t_.test(s))return Vn(`\${${s}}`)(r)},"new Date().getTime()":(s,r)=>new csDate().getTime().toString()};function e_(s){let r=Os(Object.keys(ah),t=>Me(s,t));if(r)return ah[r]}function s_(s){return Me(s,"'")&&or(s,"'")}var i_=/\$\{([\s\S]+?)\}/g,r_=s=>(r,t,e)=>{let i="";return csArray.prototype.forEach.call(csString.prototype.split.call(t,"+"),n=>{let o=csString.prototype.trim.call(n),c=Gd(s,o);if(c===void 0)if(s_(o))c=csString.prototype.substring.call(o,1,o.length-1);else{let u=e_(o);if(u&&(c=u(o,s)),c===void 0)throw new Error("undefined not allowed")}i+=c}),i};function ir(s,r){try{return csString.prototype.replace.call(s,i_,r_(r))}catch{return null}}function $a(s,r){let t={};for(let e of Object.keys(s)){let i=s[e];if(V(i)){let n=ir(i,r);if(n===null)return null;t[e]=n}else t[e]=i}return t}function Ga(s,r){let t=csArray.prototype.join.call(csArray.prototype.filter.call(csArray.prototype.map.call(csString.prototype.split.call(s,","),e=>ir(e,r)),e=>e!==null&&ee(e)),",");return ee(t)?t:null}function n_(s){return csArray.isArray(s)?csArray.prototype.map.call(s,Fd):Uc(s)?[s]:csArray.from(zd(s))}function o_(s,r){try{let e=/^values\(([a-zA-Z0-9_$[\].]+)\)\[\?([a-zA-Z0-9_$]+)\]$/.exec(s);if(!e)return null;let i=e[1],n=e[2],o=Gd(r,n_(i));if(typeof o!="object"||o===null)return null;let c=[];return csArray.prototype.forEach.call(Object.keys(o),u=>{let d=o[u];typeof d=="object"&&d!==null&&!csArray.isArray(d)&&n in d&&csArray.prototype.push.call(c,d)}),c}catch{return null}}function a_(s,r){let e=/^\[([0-9]+):([0-9+])\]$/.exec(s);if(!e)return null;let i=parseInt(e[1],10),n=parseInt(e[2],10);return n<=i||n>r.length?null:csArray.prototype.slice.call(r,i,n)}function c_(s,r){let t=csString.prototype.split.call(s,"|");if(t.length>2)return null;let e=o_(csString.prototype.trim.call(t[0]),r);return t.length===2?e===null?null:a_(csString.prototype.trim.call(t[1]),e):e}var ga=(()=>{let s;return function(r){r.AND="AND",r.OR="OR"}(s||(s={})),s})(),qe=(()=>{let s;return function(r){r.STARTS_WITH="startsWith",r.EQUALS="equals",r.NOT_EQUALS="notEquals",r.CONTAINS="contains",r.NOT_CONTAINS="notContains",r.MATCHES="matches",r.NOT_MATCHES="notMatches",r.EXIST="exist",r.NOT_EXIST="notExist"}(s||(s={})),s})();function Yd(s,r){return l_(s.operator,p_(s.args,r))}function l_(s,r){switch(s){case qe.EXIST:case qe.NOT_EXIST:return h_(s,r);default:return u_(s,r)}}function h_(s,r){let[t]=r;if(!ee(t))return!1;switch(s){case qe.EXIST:return window.csquerySelector[document.nodeType].call(document,t)!==null;case qe.NOT_EXIST:return window.csquerySelector[document.nodeType].call(document,t)===null;default:return!1}}function u_(s,r){let[t,e]=r;if(!(s in ga)&&!(V(t)&&V(e)))return!1;switch(s){case ga.AND:return!!csArray.prototype.reduce.call(r,(n,o)=>n&&o);case ga.OR:return!!csArray.prototype.reduce.call(r,(n,o)=>n||o);case qe.STARTS_WITH:return Me(t,e);case qe.EQUALS:return t===e;case qe.NOT_EQUALS:return t!==e;case qe.CONTAINS:return csString.prototype.indexOf.call(t,e)>-1;case qe.NOT_CONTAINS:return csString.prototype.indexOf.call(t,e)===-1;case qe.MATCHES:{let n=ch(e);return n!==null&&n.test(t)}case qe.NOT_MATCHES:{let n=ch(e);return n!==null&&!n.test(t)}default:return!1}}function d_(s){return!!(s&&s.operator&&s.args)}function p_(s,r){return csArray.prototype.map.call(s,t=>d_(t)?Yd(t,r):V(t)?ir(t,r):t)}function ch(s){let r=/^\/(.*)\/([gimy]*)$/.exec(s),t=null;if(r){let[,e,i]=r;try{t=new csRegExp(e,i)}catch{}}else try{t=new csRegExp(s)}catch{}return t}function Hc(s){switch(s){case"no decoding":return null;case"decode once":return{decodeURI:!0};case"decode multiple times":return{decodeURIDeep:!0};default:return null}}function Bc(s){switch(s==null?void 0:s[0]){case"on next pageview only":return{lifespan:"onNextPageviewOnly"};default:return null}}var $t=(()=>{class s{constructor(t,e){this.commandsService=t,this.args=e}}return s})(),Jr=(()=>{class s extends $t{}return s})(),Xd=(()=>{class s extends $t{validateArgs(t){if(yt(t)){let e=mt(t.path)?V(t.path):!0,i=mt(t.decodeURI)?V(t.decodeURI):!0,n=mt(t.lifespan)?csArray.isArray(t.lifespan):!0;return e&&i&&n}return!1}execute(t){if(!t.path)this.Qn([]);else{let e=[t.path],i=Hc(t.decodeURI),n=Bc(t.lifespan),o={...i,...n};Object.keys(o).length&&e.push(o),this.Qn(e)}}Qn(t){this.commandsService.applyFromImplementation(lo[0],t,"ArtificialPageviewTemplate")}}return s})(),f_=(()=>{class s extends Jr{validateArgs(t){return yt(t)?V(t.message)&&csArray.isArray(t.attributes):!1}execute(t,e){let i=ir(t.message,e);if(!i)return;let n={};for(let o of t.attributes){let c=ir(o.value,e);c!==null&&(n[o.key]=c)}this.commandsService.applyFromImplementation(hd[0],[i,n],"CustomErrorTemplate")}}return s})(),g_=(()=>{class s extends $t{validateArgs(t){if(yt(t)){let e=$d(t),i=csArray.isArray(t.scope)?Ih(t.scope,n=>V(n)):!0;return e&&i&&te(t.index)&&V(t.name)&&V(t.value)}return!1}execute(t){this.commandsService.applyFromImplementation(go[0],[t.index,t.name,t.value,t.scope[0]],"CustomVariableTemplate")}}return s})(),m_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.selector):!1}execute(t){this.commandsService.applyFromImplementation(Oc[0],[t.selector],"DataCsEncryptTemplate")}}return s})(),y_="data-cs-override-id",E_=(()=>{class s extends $t{validateArgs(t){if(yt(t)){let e=Vt(t.value)?V(t.value):!0;return V(t.selector)&&e}return!1}execute(t){var e;if(!ee(t.selector))return;let i=window.csquerySelector[document.nodeType].call(document,t.selector);i&&i.setAttribute(y_,(e=t.value)!==null&&e!==void 0?e:"")}}return s})(),S_=20,v_=(()=>{class s extends Jr{validateArgs(t){return yt(t)?$d(t)&&V(t.key)&&V(t.value)&&V(t.type):!1}execute(t,e){let i=$a(t,e);i!==null?this.Qn(i):this.GR(t,e)()}GR(t,e){return()=>{let i=0,n=window.csSetInterval(()=>{i+=1;let o=$a(t,e);if(o!==null){window.csClearInterval(n),n=void 0,i=0,this.Qn(o);return}i>=S_&&(window.csClearInterval(n),n=void 0,i=0)},100)}}Qn(t){let e=t.value;if(t.type==="Integer"){let i=Number.parseInt(t.value,10);Number.isNaN(i)||(e=i)}this.commandsService.applyFromImplementation(Gr[0],[{key:t.key,value:e}],"DynamicVariableTemplate")}}return s})(),__=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.transactionId)&&te(t.revenue)&&V(t.currency)&&V(t.name)&&V(t.sku)&&V(t.category)&&te(t.price)&&te(t.quantity):!1}execute(t){this.qR({id:t.transactionId,revenue:t.revenue,currency:t.currency}),this.WR({id:t.transactionId,name:t.name,sku:t.sku,category:t.category,price:t.price,quantity:t.quantity}),this.xa()}qR(t){this.commandsService.applyFromImplementation(qr[0],[t],"EcTransactionAllTemplate")}WR(t){this.commandsService.applyFromImplementation(lr[0],[t],"EcTransactionAllTemplate")}xa(){this.commandsService.applyFromImplementation(Wr[0],[],"EcTransactionAllTemplate")}}return s})(),w_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.id)&&te(t.revenue)&&V(t.currency):!1}execute(t){this.commandsService.applyFromImplementation(qr[0],[t],"EcTransactionCreateTemplate")}}return s})(),b_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.id)&&V(t.name)&&V(t.sku)&&V(t.category)&&te(t.price)&&te(t.quantity):!1}execute(t){this.commandsService.applyFromImplementation(lr[0],[t],"EcTransactionItemsAddTemplate")}}return s})(),A_=(()=>{class s extends $t{validateArgs(t){return!!yt(t)}execute(){this.commandsService.applyFromImplementation(Wr[0],[],"EcTransactionSendTemplate")}}return s})(),T_=(()=>{class s extends Jr{validateArgs(t){return yt(t)?Vt(t)&&V(t.selector):!1}execute(t,e){if(!Vt(t)||!V(t==null?void 0:t.selector))return;let i=Ga(t.selector,e);i!==null&&this.commandsService.applyFromImplementation(po[0],[i],"ElementUnmaskingTemplate")}}return s})(),R_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(ur[0],[`@ETP@${t.eventName}`],"EventTriggerRecordingPageTemplate")}}return s})(),C_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(ur[0],[`@ETS@${t.eventName}`],"EventTriggerRecordingSessionTemplate")}}return s})(),I_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(ho[0],[t.eventName],"PageEventTemplate")}}return s})(),P_=(()=>{class s extends Jr{validateArgs(t){if(yt(t)){let e=csArray.isArray(t.cssSelectors),i=csArray.isArray(t.attributes);return e&&i}return!1}execute(t,e){let i=csArray.prototype.filter.call(csArray.prototype.map.call(t.cssSelectors,c=>Ga(c,e)),c=>!!c),n=csArray.prototype.filter.call(csArray.prototype.map.call(t.attributes,c=>{let u=ir(c.attrName,e),d=Ga(c.selector,e);return{attrName:u,selector:d}}),c=>!!c.attrName&&!!c.selector),o={PIISelectors:[...i],Attributes:[...n]};this.commandsService.applyFromImplementation(dr[0],[o],"PIIMaskingTemplate")}}return s})(),O_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(ur[0],[`${t.eventName}`],"RecordingEventTriggerTemplate")}}return s})(),N_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.path):!1}execute(t){let e=[t.path],i=Hc(t.decodeURI),n=Bc(t.lifespan),o={...i,...n};Object.keys(o).length&&e.push(o),this.commandsService.applyFromImplementation(Xn[0],e,"SetPathTemplate")}}return s})(),M_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.query):!1}execute(t){let e=[t.query],i=Hc(t.decodeURI),n=Bc(t.lifespan),o={...i,...n};Object.keys(o).length&&e.push(o),this.commandsService.applyFromImplementation(Kn[0],e,"SetQueryTemplate")}}return s})(),k_=(()=>{class s extends $t{validateArgs(t){return!!yt(t)}execute(){this.commandsService.applyFromImplementation(_c[0],[],"SrmOnlineAssetsTemplate")}}return s})(),D_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.status)&&V(t.selector):!1}execute(t){if(!ee(t.selector))return;let e=window.csquerySelector[document.nodeType].call(document,t.selector);e&&this.commandsService.applyFromImplementation(Rc[0],[t.status,e],"SubmitTemplate")}}return s})(),ke=(()=>{class s{onEvent(t){this.onEventCallback=t}constructor(t,e,i){this.commandsService=t,this.condition=i,this.isStarted=!1,this.lm=!1,this.args=e}start(){this.lm||(this.onInit(),this.lm=!0),this.isStarted||(this.onStart(),this.isStarted=!0)}stop(){this.isStarted&&(this.onStop(),this.isStarted=!1)}}return st([G()],s.prototype,"start",null),st([G()],s.prototype,"stop",null),s})(),lh="once per pageview",L_="always",x_=(()=>{class s extends ke{constructor(){super(...arguments),this.St=!0}validateArgs(t){if(yt(t)){let e=V(t.selector),i=t.frequency?t.frequency===lh||t.frequency===L_:!0;return e&&i}return!1}onInit(){if(!ee(this.args.selector)){this.St=!1;return}this.Zn=this.args.frequency?this.args.frequency===lh:!0,this.W=new Ke((t,e)=>this.w(t,e))}onStart(){this.St&&this.W.observe(this.args.selector)}onStop(){this.St&&(this.W.processPendingMutations(),this.W.disconnect())}w(t,e){e==="added"&&(this.Zn?(this.stop(),this.onEventCallback({element:t[0]})):new Set(t).forEach(i=>this.onEventCallback({element:i})))}}return s})(),V_=(()=>{class s extends ke{constructor(){super(...arguments),this.St=!0,this.hm=!1}validateArgs(t){return yt(t)?V(t.selector):!1}onInit(){if(!ee(this.args.selector)){this.St=!1;return}this.W=new Ke((t,e)=>{this.w(t,e)})}onStart(){this.St&&(this.W.observe(this.args.selector),this.hm=!0)}onStop(){this.St&&(this.W.processPendingMutations(),this.W.disconnect())}w(t,e){this.hm?e==="added"&&new Set(t).forEach(i=>this.onEventCallback({element:i})):this.onEventCallback({element:t[0]})}}return s})(),U_=(()=>{class s extends ke{constructor(){super(...arguments),this.St=!0}validateArgs(t){return yt(t)?V(t.selector):!1}onInit(){if(!ee(this.args.selector)){this.St=!1;return}this.F=new Ke(t=>this.YR(t)),this.M=new Je(t=>this.XR(t))}onStart(){this.St&&(this.Va=csSymbol("MatchingElement"),this.F.observe(this.args.selector),this.M.observe())}onStop(){this.St&&(this.F.processPendingMutations(),this.F.disconnect(),this.M.disconnect())}YR(t){new Set(t).forEach(e=>this.KR(e))}XR(t){let e=ic(t,n=>n.removedNodes),i=[];for(let n of e)csArray.prototype.push.call(i,...this.JR(n));new Set(i).forEach(n=>this.onEventCallback({element:n}))}KR(t){t[this.Va]=!0}JR(t){let e=[];return _e(t,NodeFilter.SHOW_ELEMENT).visitAll(i=>{i[this.Va]&&(Ct.isConnected(i)?Ae.call(i,this.args.selector)||delete i[this.Va]:delete i[this.Va],csArray.prototype.push.call(e,i))}),e}}return s})(),j_=(()=>{class s{static readyStateChangeListener(t){csArray.prototype.forEach.call(oi(s.callbacks),e=>e(t))}static ml(t){s.callbacks.has(t)||(s.callbacks.add(t),s.callbacks.size===1&&Lt(s.eventHandler,!1))}static yl(t){s.callbacks.delete(t),s.callbacks.size===0&&xt(s.eventHandler,!1)}constructor(t){this.w=t}observe(){s.ml(this.w)}disconnect(){s.yl(this.w)}}return s.callbacks=new Set,s.eventHandler={boundElement:Mt.document,type:"readystatechange",listener:s.readyStateChangeListener},St([G("readyStateChangeListener"),Nt()],s,"readyStateChangeListener",null),s})(),H_=(()=>{class s extends ke{constructor(){super(...arguments),this.hu={state:"Any"}}validateArgs(t){var e;return yt(t)&&V(t.state)||(Y.implementation(`PageStateTrigger has wrong argument: ${(e=this.args)===null||e===void 0?void 0:e.state}, fallback to default config.`),this.args=this.hu),!0}onInit(){this.Tt=this.args.state.toLowerCase(),this.W=new j_(()=>{this.um(this.Tt,document.readyState)&&(this.onEventCallback(),this.W.disconnect())})}onStart(){this.um(this.Tt,document.readyState)?this.onEventCallback():this.W.observe()}onStop(){this.W.disconnect()}um(t,e){let i=s.dm[e];return s.dm[t]<=i}}return s.dm={complete:3,interactive:2,loading:1,any:0},s})(),B_=(()=>{class s extends ke{validateArgs(t){return!!yt(t)}QR(){this.isStarted&&this.onEventCallback()}onInit(){this.commandsService.applyFromImplementation(oo[0],[()=>this.QR()],"AfterPageViewTrigger")}onStart(){}onStop(){}}return s})(),F_=(()=>{class s extends ke{constructor(){super(...arguments),this.du=!1,this.St=!0,this.$s=!0,this.si={boundElement:document,type:"click",listener:t=>{if(this.du){this.du=!1;return}this.onClickOrTap(t)}},this.ZR=(t,e)=>{t.type===Xt.TAP&&(this.du=!0,this.onClickOrTap(e))}}validateArgs(t){return yt(t)?V(t.selector):!1}onClickOrTap({target:t}){if(Vt(t)&&Ms(t)){let e=er(t,this.args.selector);e&&this.onEventCallback({element:e})}}onInit(){if(!ee(this.args.selector)){this.St=!1;return}this.rn=new Au(this.ZR)}onStart(){var t;this.St&&(Lt(this.si,this.$s),(t=this.rn)===null||t===void 0||t.observe())}onStop(){var t;this.St&&(xt(this.si,this.$s),(t=this.rn)===null||t===void 0||t.disconnect())}}return st([G("onClickOrTap"),Nt()],s.prototype,"onClickOrTap",null),s})(),Kd=(()=>{class s{static t0(){var t,e,i,n;if("history"in window){let o=Object.getOwnPropertyDescriptors(history);if(!((t=o.pushState)===null||t===void 0)&&t.writable&&(!((e=o.replaceState)===null||e===void 0)&&e.writable))return history}if(History.prototype){let o=Object.getOwnPropertyDescriptors(History.prototype);if(!((i=o.pushState)===null||i===void 0)&&i.writable&&(!((n=o.replaceState)===null||n===void 0)&&n.writable))return History.prototype}Dt.warn("Unable to override pushState, replaceState",!0,"HistoryChangeObserver")}static Oh(){let t=s.t0();s.to===null&&be(t==null?void 0:t.pushState)&&(s.to=Cs({target:t,methodName:"pushState",hook:({args:e})=>{s.pm("pushstate",e)}})),s.eo===null&&be(t==null?void 0:t.replaceState)&&(s.eo=Cs({target:t,methodName:"replaceState",hook:({args:e})=>{s.pm("replacestate",e)}}))}static Dr(t){var e,i;s._e.add(t),s._e.size===1&&((s.to===null||s.eo===null)&&s.Oh(),(e=s.to)===null||e===void 0||e.activate(),(i=s.eo)===null||i===void 0||i.activate(),Lt(s.fm),Lt(s.gm))}static xr(t){var e,i;s._e.delete(t),s._e.size===0&&((e=s.to)===null||e===void 0||e.deactivate(),(i=s.eo)===null||i===void 0||i.deactivate(),xt(s.fm),xt(s.gm))}static pm(t,e){let i={type:t,state:e[0]};V(e[2])&&(i.url=e[2]),s.qi(i)}static popstateListener(t){s.qi({type:"popstate",state:t.state})}static hashchangeListener(t){s.qi({type:"hashchange",state:null,url:t.newURL})}static qi(t){csArray.prototype.forEach.call(oi(s._e),e=>{e(t)})}constructor(t){this.w=t}observe(){s.Dr(this.w)}disconnect(){s.xr(this.w)}}return s.to=null,s.eo=null,s.fm={boundElement:Mt,type:"popstate",listener:r=>s.popstateListener(r)},s.gm={boundElement:Mt,type:"hashchange",listener:r=>s.hashchangeListener(r)},s._e=new Set,St([G("popstateListener"),Nt()],s,"popstateListener",null),St([G("hashchangeListener"),Nt()],s,"hashchangeListener",null),s})(),z_=(()=>{class s extends ke{validateArgs(t){if(yt(t)){let e=V(t.useDebounce),i=t.useDebounce==="yes"?te(t==null?void 0:t.window):!0,n=V(t.listeners);return e&&i&&n}return!1}onInit(){this.args.useDebounce==="yes"?this.te=ka(()=>{this.onEventCallback()},this.args.window):this.te=this.onEventCallback,this.W=new Kd(t=>this.pu(t))}mm(){return window.location.href}pu(t){let e=t.type==="replacestate"&&this.args.listeners.indexOf("replaceState")===-1,i=t.type==="hashchange"&&this.args.listeners.indexOf("hashchange")===-1;if(e||i)return;let n=this.mm();this.ym!==n&&(this.ym=n,this.te())}onStart(){this.ym=this.mm(),this.W.observe()}onStop(){this.W.disconnect()}}return s})(),$_=(()=>{class s extends ke{constructor(){super(...arguments),this.St=!0,this.$s=!0,this.si={boundElement:document,type:"submit",listener:t=>this.submitListener(t)}}validateArgs(t){return yt(t)?V(t.selector):!1}submitListener({target:t}){Vt(t)&&Ms(t)&&Ae.call(t,this.args.selector)&&this.onEventCallback({element:t})}onInit(){ee(this.args.selector)||(this.St=!1)}onStart(){this.St&&Lt(this.si,this.$s)}onStop(){this.St&&xt(this.si,this.$s)}}return st([G("submitListener"),Nt()],s.prototype,"submitListener",null),s})(),G_=(()=>{class s extends ke{constructor(){super(...arguments),this.St=!0,this.Em={boundElement:document,type:"mouseover",listener:t=>this.mouseoverListener(t)},this.Sm={boundElement:document,type:"mouseleave",listener:t=>this.mouseleaveListener(t)}}validateArgs(t){return yt(t)?V(t.selector):!1}onInit(){ee(this.args.selector)||(this.St=!1)}mouseleaveListener({target:t}){Vt(t)&&Ms(t)&&t[this.Ua]&&delete t[this.Ua]}mouseoverListener({target:t}){if(Vt(t)&&Ms(t)){let e=er(t,this.args.selector);e!==null&&!e[this.Ua]&&(e[this.Ua]=!0,this.onEventCallback({element:e}))}}onStart(){this.St&&(this.Ua=csSymbol("Hovered"),Lt(this.Sm,!0),Lt(this.Em,!0))}onStop(){this.St&&(xt(this.Em),xt(this.Sm))}}return st([G("mouseleaveListener"),Nt()],s.prototype,"mouseleaveListener",null),st([G("mouseoverListener"),Nt()],s.prototype,"mouseoverListener",null),s})(),q_=(()=>{class s extends ke{constructor(){super(...arguments),this.si={boundElement:window,type:"hashchange",listener:t=>this.hashChangedListener(t)}}validateArgs(t){return!!yt(t)}hashChangedListener(t){t.newURL&&t.newURL===t.oldURL||this.onEventCallback()}onInit(){}onStart(){Lt(this.si)}onStop(){xt(this.si)}}return st([G("hashChangedListener"),Nt()],s.prototype,"hashChangedListener",null),s})(),W_=(()=>{class s extends ke{constructor(){super(...arguments),this.ja=!0}validateArgs(t){return yt(t)?V(t.selector):!1}onInit(){if(!ee(this.args.selector)||!Wn.isSupported()){this.ja=!1;return}this.Rt=new Wn({delay:0,trackOnce:!0,reobserve:!0}),this.F=new Ke(t=>this.fu(t),{closest:!0})}fu(t){for(let e of t)this.Rt.observe(e)}gu(t,e){if(this.isStarted&&e===Lr.VisibleInViewPort){let i=er(t,this.args.selector);i&&(this.onEventCallback({element:i}),this.stop(),this.ja=!1)}}onStart(){this.ja&&(this.Rt.start((t,e)=>this.gu(t,e)),this.F.observe(this.args.selector))}onStop(){this.ja&&(this.Rt.stop(),this.F.disconnect())}}return s})(),Y_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.url):!1}execute(t){this.commandsService.applyFromImplementation(ld[0],[t.url],"ApiErrorsMaskUrlTemplate")}}return s})(),X_=(()=>{class s extends $t{validateArgs(t){return yt(t)?V(t.maskingPattern):!1}execute(t){this.commandsService.applyFromImplementation(Mc[0],[t.maskingPattern],"NetworkRequestMaskUrlTemplate")}}return s})(),hh="once per pageview",K_="always",J_=(()=>{class s extends ke{constructor(){super(...arguments),this.mu=!1,this.Be=!1,this.Zn=!0}validateArgs(t){if(yt(t)){let e=V(t.selector),i=t.frequency?t.frequency===hh||t.frequency===K_:!0;return e&&i}return!1}onInit(){Wn.isSupported()&&(this.Be=!0,this.Zn=this.args.frequency?this.args.frequency===hh:!0,this.F=new Ke((t,e)=>{if(e==="initial")for(let i of t)Ct.isVisibleInViewportInForeground(i)&&(i[this.yu]=!0);this.fu(t)},{closest:!0}),this.Rt=new Wn({delay:0,trackOnce:!1,reobserve:!0,allowSameMatch:!0}))}onStart(){!this.Be||this.isStarted||(this.yu=csSymbol("skipElement"),this.mu=!1,this.Rt.start((t,e)=>this.gu(t,e)),this.F.observe(this.args.selector))}onStop(){!this.Be||!this.isStarted||(this.F.disconnect(),this.Rt.stop())}gu(t,e){if(this.isStarted&&e===Lr.VisibleInViewPort){let i=t.closest(this.args.selector);if(i){if(i[this.yu]){delete i[this.yu];return}this.Zn&&this.stop(),(!this.Zn||!this.mu)&&(this.mu=!0,this.onEventCallback({element:i}))}}}fu(t){for(let e of t)this.Rt.observe(e)}}return s})(),qa=(()=>{class s extends ke{constructor(){super(...arguments),this.hu={pageviewTypes:["natural","artificial"]}}validateArgs(t){var e;return yt(t)&&Xe(t)&&csArray.isArray(t.pageviewTypes)&&Ih(t.pageviewTypes,n=>V(n))||(Y.implementation(`BeforePageViewTrigger has wrong argument: ${(e=this.args)===null||e===void 0?void 0:e.pageviewTypes}, fallback to default config.`),this.args=this.hu),!0}onInit(){this.e0=this.args.pageviewTypes}onPageView(t){this.isStarted&&csArray.prototype.indexOf.call(this.e0,t)!==-1&&this.onEventCallback()}onStart(){}onStop(){}}return s})(),Q_=(()=>{class s extends $t{constructor(){super(...arguments),this.Eu=!1}validateArgs(t){return yt(t)&&V(t.type)&&V(t.urls)&&(t.type==="allow"||t.type==="block")&&csString.prototype.trim.call(t.urls).length>0?(this.Eu=!1,!0):(Y.implementation(`BlockAllowListForSRTemplate has wrong argument: ${t}, fallback to default config.`),this.Eu=!0,!0)}execute(t){let e="";this.Eu?e=Rd:e=this.s0(t.urls,t.type),this.commandsService.applyFromImplementation(Id[0],[e],"BlockAllowListForSRTemplate")}s0(t,e){let i=e==="allow"?"?!":"";return i+=csArray.prototype.join.call(csArray.prototype.map.call(csString.prototype.split.call(t,","),n=>`.*${csString.prototype.trim.call(n)}`),"|"),`^(${i}).*?`}}return s})(),Z_=(()=>{class s{constructor(t){this.E=t,this.i0={ApiErrorsMaskUrl:Y_,NetworkRequestMaskUrls:X_,ArtificialPageview:Xd,BlockAllowListForSr:Q_,CustomError:f_,CustomVariable:g_,DataCsEncrypt:m_,DataCsOverride:E_,DynamicVariable:v_,EcTransactionAll:__,EcTransactionCreate:w_,EcTransactionItemsAdd:b_,EcTransactionSend:A_,ElementUnmasking:T_,EventTriggerRecordingPage:R_,EventTriggerRecordingSession:C_,PageEvent:I_,PiiMasking:P_,RecordingEventTrigger:O_,SetPath:N_,SetQuery:M_,SrmOnlineAssets:k_,Submit:D_},this.Tr={AfterPageView:B_,ElementAdded:x_,ElementBecomesVisible:J_,ElementExist:V_,ElementRemoved:U_,ElementVisibility:W_,ElementClick:F_,FormSubmit:$_,HashChange:q_,HistoryChange:z_,Mouseover:G_,PageState:H_,BeforePageView:qa}}r0(t){let e=this.i0[t.name];return e?new e(this.E,t.args):(Y.error(`Implementations: template ${t.name} does not exist`),null)}n0(t){let e=this.Tr[t.name];return e?new e(this.E,t.args,t.condition):(Y.error(`Implementations: trigger ${t.name} does not exist`),null)}parse(t){let e=[];for(let{triggers:i,template:n}of t){let o=this.r0(n);if(!o)continue;if(!o.validateArgs(o.args)){Y.implementation(`${n.name} has wrong argument.`);continue}for(let u of i){let d=this.n0(u);if(!d)continue;if(!d.validateArgs(d.args)){Y.implementation(`${u.name} has wrong argument.`);continue}csArray.prototype.push.call(e,{name:`${u.name}_${n.name}`,trigger:d,template:o})}}return e}}return s})(),tw=(()=>{class s{constructor(t,e,i){this.o0=t,this.O=i,this.be={window,document,location,cookies:{}},this.Tr=new Set,this.a0=new Z_(e)}init(){Object.defineProperty(this.be,"cookies",{get:()=>this.c0()});let t=this.a0.parse(this.o0);for(let{name:e,trigger:i,template:n}of t)i instanceof qa&&n instanceof Xd||(this.Tr.add(i),i.onEvent(o=>{this.onTriggerEvent(o,n),bt.counters.CSTCSnippetUsed.count(e)}))}start(t=!1){this.Tr.forEach(e=>{e.condition&&!Yd(e.condition,this.be)||(t?this.O.schedule(()=>{e.start()}):e.start())})}stop(){this.Tr.forEach(t=>{t.stop()})}onBeforePageView(t){this.Tr.forEach(e=>{if(e instanceof qa){e.onPageView(t);return}})}onTriggerEvent(t,e){let i=this.l0(t),n={...this.be,...i},o=[];if(Vv(e.args)&&V(e.args.iterable)&&e.args.iterable.length>0){let c=c_(e.args.iterable,n);if(Vt(c)){let u=csArray.prototype.map.call(c,d=>({...n,$:d}));csArray.prototype.push.call(o,...u)}}else csArray.prototype.push.call(o,n);if(e instanceof Jr){for(let c of o)e.execute(e.args,c);return}for(let c of o){let u=$a(e.args,c);u&&e.execute(u)}}c0(){let t;try{t=document.cookie}catch{t=""}return csArray.prototype.reduce.call(csString.prototype.split.call(t,"; "),(e,i)=>{let[n,o]=csString.prototype.split.call(i,"=");return o!==void 0&&(e[n]=o),e},{})}l0(t){let e={...t};for(let i in e)kt(e[i])&&(W.isMaskedElement(e[i])||W.isMaskedElementChild(e[i]))&&delete e[i];return e}}return st([se("implementationsService.start")],s.prototype,"start",null),st([G()],s.prototype,"onTriggerEvent",null),s})(),Jd=(()=>{class s{constructor(t,e,i){this.Cs=new tw(t,e,i)}init(){this.Cs.init()}onInitTracking(){this.Cs.start(!0)}onOptout(){this.Cs.stop()}onBeforeSessionRenewal(){this.Cs.stop(),this.Cs.start()}onBeforeArtificialPageView(){this.Cs.stop(),this.Cs.start(),this.Cs.onBeforePageView("artificial")}onBeforeNaturalPageView(){this.Cs.onBeforePageView("natural")}}return s})(),Qd=(()=>{class s{constructor(t){this.configuration=t}}return s})(),ew=(()=>{class s extends Qd{constructor(t,e,i){super(t),this.configuration=t,this.so=e,this.S=i,this.h0=tt.RECORDING_GLOBAL_SAMPLING}refreshQuota(){this.io=void 0,this.u0()}onQuotaReady(t){this.vm=t}init(){this.d0()}sanitizeSessionCollectState(t){return t}canCollect(t){return t!==null&&t.collectState!==tt.QUOTA_REACHED}computeInitialCollectState(t){return this.io?(this.S.emitCollectStateChange(this.io,this.configuration.malkaEtrEnabled?ve.ETR_ON:ve.ETR_OFF),this.io):(Y.warn("Quota file error computeInitialCollectState() called before quota answered"),tt.QUOTA_REACHED)}getEligibleCollectState(t){return t.collectState===tt.QUOTA_REACHED?tt.QUOTA_REACHED:!sr.isRecordingSupported()&&this.isReplayRecorded(t)?tt.ANALYTICS_ONLY:t.collectState===tt.RECORDING_RULES_TARGETING?tt.RECORDING_RULES_TARGETING:t.collectState===tt.ANALYTICS_ONLY_RULES_TARGETING?tt.ANALYTICS_ONLY_RULES_TARGETING:t.collectState===tt.RECORDING_GLOBAL_SAMPLING?tt.RECORDING_GLOBAL_SAMPLING:tt.ANALYTICS_ONLY}isReplayRecorded(t){return t.collectState===tt.RECORDING_GLOBAL_SAMPLING||t.collectState===tt.RECORDING_RULES_TARGETING}getInitialCollectState(){return this.io||tt.QUOTA_REACHED}computeInitialCollectStateFromRecordingConsentGranted(t){return tt.ANALYTICS_ONLY}ro(t){this.io=t,this.vm&&this.vm(t)}d0(){this.so.onError(t=>this.quotaServiceErrorHandler(`HTTP:${t.status} - fetching quota file for pid: ${this.configuration.projectId}`)),this.so.onTimeout(()=>this.quotaServiceErrorHandler("timeout")),this.so.onLoad(t=>this.quotaFileHandler(t))}u0(){this.so.isInProgress()||this.so.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.p0(t)}quotaServiceErrorHandler(t){let e=`Quota error - ${t}`;Y.warn(e),this.ro(this.h0)}p0(t){let e=!1,i=!1;for(let n of t.quotas)n.quotaType==="ANALYTICS"&&n.value?e=!0:n.quotaType==="RECORDING"&&n.value&&us.boolean(Math.round(n.value*100))&&(i=!0);!e&&i?this.quotaServiceErrorHandler(`Quota types impossible: replay without analytics - ${csJSON.stringify(t)}`):e&&i?sr.isRecordingSupported()?this.ro(tt.RECORDING_GLOBAL_SAMPLING):this.ro(tt.ANALYTICS_ONLY):e&&!i?this.ro(tt.ANALYTICS_ONLY):this.ro(tt.QUOTA_REACHED)}getRecordingConsentWithdrawn(){return tt.ANALYTICS_ONLY}}return st([G("Quota File: quotaFileHandler")],s.prototype,"quotaFileHandler",null),st([G("Quota File: onerror")],s.prototype,"quotaServiceErrorHandler",null),s})(),sw=(()=>{class s extends Qd{constructor(t,e,i,n,o){super(t),this.configuration=t,this.S=e,this.Wh=i,this.R=n,this.Su=o,this.vu=!1}refreshQuota(){}onQuotaReady(t){}canCollect(t){return!0}init(){this.configuration.malkaUrlEnabled&&this.configuration.hasRecordingUrlRules()&&(this.vu=!0,this.Su.setRegexRules(this.configuration.recordingUrlRules))}sanitizeSessionCollectState(t){return(t.collectState===tt.QUOTA_REACHED||t.collectState===tt.RECORDING_RULES_TARGETING||t.collectState===tt.RECORDING_TEMPORARILY)&&(t.collectState=tt.ANALYTICS_ONLY),t}computeInitialCollectState(){return Zs.isReplayConsentNeeded(this.configuration)?tt.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED:this.Da()}computeInitialCollectStateFromRecordingConsentGranted(){return this.Da()}Da(){if(!sr.isRecordingSupported())return tt.ANALYTICS_ONLY;let t=tt.ANALYTICS_ONLY,e=ve.ETR_OFF;return us.percentage(){class s{constructor(){this.f0={PIISelectors:["picture","img","video","audio"],Attributes:[]},this.Rs={elementSelector:"",attrSelector:"",attrSelectors:[]};let t={PIISelectors:iw(),Attributes:rw()};this.Rs=W.getComputedSelectorSettings(t,this.Rs)}init(){this.g0()}setMaskedElementSettingsFromCommand(t){if(t=W.sanitizeSelectorUserInput(t),!W.isSelectorUserInput(t))throw new Error(`Command misuse: ${dr[0]}`);this._u(t)}setMaskedElementSettingsFromParent(t){let e={PIISelectors:csString.prototype.split.call(t.elementSelector,","),Attributes:t.attrSelectors};this._u(e)}getMaskedElementSettings(t){return t?this._m(this.f0):this.Rs}g0(){var t,e,i,n,o,c;let u={PIISelectors:[],Attributes:[]};((i=(e=(t=window==null?void 0:window.ClickTaleSettings)===null||t===void 0?void 0:t.DOM)===null||e===void 0?void 0:e.PII)===null||i===void 0?void 0:i.Text)instanceof Array&&u.PIISelectors.push(...window.ClickTaleSettings.DOM.PII.Text),((c=(o=(n=window==null?void 0:window.ClickTaleSettings)===null||n===void 0?void 0:n.DOM)===null||o===void 0?void 0:o.PII)===null||c===void 0?void 0:c.Attributes)instanceof Array&&window.ClickTaleSettings.DOM.PII.Attributes.forEach(d=>{V(d.attr)&&V(d.rule)&&u.Attributes.push({selector:d.rule,attrName:d.attr})}),this._u(u)}_u(t){this.Rs=this._m(t)}_m(t){return W.getComputedSelectorSettings(t,this.Rs)}}return s})(),nw=(()=>{class s{constructor(t,e,i,n,o,c,u,d,S,f,_){this.f=t,this.$t=e,this.Et=i,this.kt=n,this.E=o,this.V=c,this.Ht=u,this.N=d,this.lt=S,this.I=f,this.R=_}init(){var t,e;let i=[],n=new md,o=new Sc(this.lt.shouldUseAnonymization(),this.f.whitelistedAttributes,this.N,this.f.anonymizeDigits);csArray.prototype.push.call(i,n,o);let c=new fd(i,this.f,this.$t,this.Et,this.kt),u=new ud(this.f,this.E,this.V,this.Ht,this.I,this.R,c);this.I.createOrUpdateVisitor(),this.E.register(dr,S=>{this.Et.setMaskedElementSettingsFromCommand(S)}),u.init(),this.E.start(),u.startHotjar();let d=(e=(t=window.hjSiteSettings)===null||t===void 0?void 0:t.state_change_listen_mode)!==null&&e!==void 0?e:"manual";d!=="manual"&&(this.wm=new Kd(S=>{S.type==="hashchange"&&d!=="automatic_with_fragments"||this.pu()}),this.wm.observe())}stop(){var t;(t=this.wm)===null||t===void 0||t.disconnect()}pu(){let t=this.R.getUrl();hj.currentUrl=t,Ha(),Ba(t)}}return s})(),ma=(s,r,t)=>{let e=new ai,i=new Vc(e),n=new xc(window.location,i),o=new Fr(s,n,r);o.init();let c=new Ld,u=new Dd,d=new Lc([Jn.UXA]),S=new Ic(()=>{}),f=new Pc,_=new Fc;_.init();let w=new Kr,T=new Td(s,new vd(s,o,c),t),N=new uo(T,s,n,w),x=new xd(s,o,u),O=new Sd(s,x,t);new nw(s,S,_,f,d,o,c,e,N,O,n).init()};var ow=(()=>{class s{constructor(t,e,i,n,o){this.f=t,this.Ye=e,this.us=i,this.O=n,this.S=o,this.m0=()=>{var c;let u=zt.get(ze);u!==null&&dc(u)?this.ht.canCollect(Eg(u))?this.init():!((c=this.f.voc)===null||c===void 0)&&c.enabled&&ma(this.f,this.Ye,this.S):(this.ht.onQuotaReady(d=>{var S;d!==tt.QUOTA_REACHED?this.init():!((S=this.f.voc)===null||S===void 0)&&S.enabled&&ma(this.f,this.Ye,this.S)}),this.ht.refreshQuota())}}initWithQuota(){var t;if(!this.f.collectionEnabled){!((t=this.f.voc)===null||t===void 0)&&t.enabled&&ma(this.f,this.Ye,this.S);return}let e=new RS(this.f.getSettingsFileUri(),"",{type:"json",cacheMinutes:15});this.ht=new ew(this.f,e,this.S),this.ht.init(),this.m0()}init(){wi.isSupported()&&wi.setDigestSalt(this.f.projectId.toString());let t,e,i,n,o,c,u,d,S,f,_,w,T,N,x,O,C,$,U,L,Z,nt,pt,jt,Ht,I,B,X,it,_t,Ot,Ft,Qe,fs,xs;this.O.schedule(()=>{t=new ai,e=new Vc(t),n=new xc(window.location,e),i=new Fr(this.f,n,this.Ye),i.init()}),this.O.schedule(()=>{o=new Dd,c=new Ld,C=new av(window.location,i),new Av().init(),$=Ed.create(Y.warn),O=new jh($),this.ht===void 0&&(this.ht=new sw(this.f,this.S,C,n,new Kr),this.ht.init())}),this.O.schedule(()=>{u=new XS(this.f,i,o),S=new QS(u,this.ht,this.f.replayConsentRequiredForSession,this.f.malkaEtrEnabled)}),this.O.schedule(()=>{f=new xd(this.f,i,o),_=new Sd(this.f,f,this.S,S),this.us.setContext(_,S)}),this.O.schedule(()=>{fs=new Td(this.f,new vd(this.f,i,c),this.S),w=new tv(_,S,fs),T=new vg(this.f,i,o),N=new rv(window.location,T),x=new nv(N),Z=new ZS(this.f,_,N),Ft=new Vd(hs,this.f),B=new Ud(Ft),X=new jd(Ft),it=new Hd(Ft),_t=new Bd,Ot=new kd(B,X,it,_t),I=new Lc([Jn.UXA]),nt=new uv(I,Ot),pt=new Cd(n),jt=new Pd(pt,I);let ce=new _g(this.f,i,o);Qe=new mv(t,ce),Ht=new gv(I,Qe);let gs=new cg(_,S,N,Qe,this.f)}),this.O.schedule(()=>{let ce=new WS(this.f,_,N,Z,w,U,d,C);this.f.implementations&&(xs=new Jd(this.f.implementations,I,this.O),xs.init(),this.S.addListener(xs)),ce.compute(gs=>{this.O.schedule(()=>{nt.init();let Ze=new fv,ge=new sv(this.f,I,fs,S,this.S),At=new cv(this.f,i,c),wt=new lv(this.S,window.location,At),F=new hv(I,wt),pr=new pv(I,this.f),ci=new dv(this.f,_,S,L);if(gs){this.S.emitInitTracking();let ms=new Fc;new qS(ci,$,_,S,this.S,I,nt,this.f,F,wt,ge,fs,t,Ft,e,n,pr,Ze,Ot,Qe,Ht,pt,jt,this.O,O,i,c,this.ht,ms).start()}else new iv(this.S,I,nt,F,wt,x,ge).start()})})})}}return s})(),vi=(()=>{let s;return function(r){let t="{domain}/tag/tag.bundle.js?v={version}",e,i={loadBundle(C){let $=C.source,U=C.data;if(c(U)){let L=()=>{let Z=n(t,U);_(Z,()=>$.postMessage("csBundleLoaded",C.origin))};e=U.token,O(i.loadBundle),u(C.origin)&&L()}}};function n(C,$){return csString.prototype.replace.call(csString.prototype.replace.call(csString.prototype.replace.call(C,"{version}",$.version),"{token}",$.token),"{domain}",$.domain)}function o(){return e}r.getToken=o;function c(C){return C&&C.type==="csBundleInjection"&&u(C.domain)&&S(C.version)&&d(C.token)}r.isAuthorizedIncomingMessage=c,r.hjDomainRegex=/^https?:\/\/[a-zA-Z0-9\.\-]+\.hotjar\.com$/;function u(C){return/^https?:\/\/[a-zA-Z0-9\.\-]+\.(content-square\.fr|contentsquare\.com|csq\.io)$/.test(C)||r.hjDomainRegex.test(C)}r.isAuthorizedDomain=u;function d(C){return/^[a-zA-Z0-9]+$/.test(C)}r.isAuthorizedToken=d;function S(C){return/^[a-zA-Z0-9\.]+$/.test(C)}r.isAuthorizedTagVersion=S;function f(){let C=window.opener||window.parent;return window!==C&&window.addEventListener}r.isActivable=f;function _(C,$){let U=document.createElement("script");U.type="text/javascript",U.async=!0,U.src=C,U.onload=$,U.charset="utf-8",document.head.appendChild(U)}r.addScript=_;function w(C){let $=document.createElement("link");$.rel="stylesheet",$.href=C,document.head.appendChild($)}r.addStyle=w;function T(C){return`${C}?cb=${new csDate().getTime()}`}r.addCacheBusting=T;function N(){x(i.loadBundle)}r.waitForBundleInjection=N;function x(C){window.addEventListener("message",C,!1)}r.listen=x;function O(C){window.removeEventListener("message",C,!1)}r.removeListener=O}(s||(s={})),s})(),uh="_hp_ved",aw=18e5,cw="/js/ved.js",lw="/css/ved.css",hw="/js/ved.css",uw=(()=>{let s;return function(r){r.StatusUpdate="status"}(s||(s={})),s})(),dw=(()=>{let s;return function(r){r.ReceivedInitMessage="received_init_message"}(s||(s={})),s})();var ya=(()=>{let s;return function(r){let t=!1,e;function i(_){return e+_}function n(){let _=[i(lw),i(hw)];csArray.prototype.forEach.call(_,w=>{vi.addStyle(w)})}function o(_){let w=new csRegExp("(^|;)[ ]*"+_+"=([^;]*)"),T=w.exec(document.cookie);return T?decodeURIComponent(T[2]):null}function c(_,w,T){let N=encodeURIComponent(_)+"="+encodeURIComponent(w),x=new csDate;x.setTime(x.getTime()+T);let O=N+"; expires="+x.toUTCString()+"; path=/";document.cookie=O}function u(){c(uh,"on",aw)}function d(){return o(uh)==="on"}r.isVLCookieEnabled=d;function S(_){window.heapV=Object.assign({},window.heap,{source:_==null?void 0:_.source,uri:e,loadArgs:_==null?void 0:_.data.args,identify:()=>{},track:()=>{}})}r.initializeHeapV=S;function f(_,w){var T;if(e=_,w){let N={type:uw.StatusUpdate,value:dw.ReceivedInitMessage},x={targetOrigin:w==null?void 0:w.origin};(T=w==null?void 0:w.source)===null||T===void 0||T.postMessage(N,x)}t||(t=!0,u(),S(w),window.heapV&&(vi.addScript(i(cw)),n()))}r.init=f}(s||(s={})),s})(),pw=(()=>{let s;return function(r){let t=window.opener||window.parent,e="tag",i="https://app.contentsquare.com",n=[/^https:\/\/app\.contentsquare\.com$/,/^https:\/\/dev-app\.contentsquare\.com$/,/^https:\/\/staging-app\.contentsquare\.com$/,/^https:\/\/.*\.test\.contentsquare\.com$/,/^https:\/\/app\.[a-z0-9-]+\.csiab\.[a-z0-9-]+\.csq\.io$/,vi.hjDomainRegex],o,c,u,d={initHeapVisualLabeler(L){var Z;L.origin===u&&((Z=L.data)===null||Z===void 0?void 0:Z.message)==="init"&&L.source&&(ya.init(u,L),C(d.initHeapVisualLabeler))},ping(L){typeof L.data=="string"&&L.data==="ping"&&_(L.origin)&&(c=L.origin,o=vi.hjDomainRegex.test(L.origin)?i:L.origin,C(d.ping),O(d.insertMessageScript),w(vi.addCacheBusting("utils.js")))},insertMessageScript:$(L=>{typeof L.data=="string"&&L.data!=="ping"&&(C(d.insertMessageScript),w(L.data))})};function S(){return vi.getToken()}r.getToken=S;function f(){return window!==t&&window.addEventListener}r.isActivable=f;function _(L){return csArray.prototype.some.call(n,Z=>Z.test(L))}r.isAuthorizedDomain=_;function w(L,Z){let nt=document.createElement("script");nt.type="text/javascript",nt.async=!0;let pt=o==null?void 0:csString.prototype.replace.call(o,/^https?:/,"");nt.src=`${pt}/${e}/${L}`,nt.onload=Z,nt.charset="utf-8",document.getElementsByTagName("head")[0].appendChild(nt),T(L)}function T(L){csString.prototype.includes.call(L,"&mode=")&&sessionStorage.setItem("_hjRetakerMode",csString.prototype.split.call(L,"&mode=")[1])}function N(){O(d.ping),vi.waitForBundleInjection()}r.waitForConnection=N;function x(L){u=L,O(d.initHeapVisualLabeler),ya.isVLCookieEnabled()&&ya.init(u)}r.waitForHeapVisualLabeler=x;function O(L){window.addEventListener("message",L,!1)}r.listen=O;function C(L){window.removeEventListener("message",L,!1)}r.removeListener=C;function $(L){return function(Z){Z.origin===c&&L(Z)}}r.secureListener=$;function U(L){c&&t.postMessage(L,c)}r.post=U}(s||(s={})),s})();var Nn=window.CSFrameCommunication||pw,fw=(()=>{class s extends fo{emitTrackingContextResultMessage(t){for(let e of this.listeners)e.onTrackingContextResultCallback&&e.onTrackingContextResultCallback(t)}emitAfterPageViewCallback(t){for(let e of this.listeners)e.onAfterPageViewCallback&&e.onAfterPageViewCallback(t)}emitIntegrationSessionKeyCallback(t){for(let e of this.listeners)e.onIntegrationSessionKeyCallback&&e.onIntegrationSessionKeyCallback(t)}emitParentRecordingContextChange(t){for(let e of this.listeners)e.onParentRecordingContextChange&&e.onParentRecordingContextChange(t)}emitParentSensitiveStatusChange(t){for(let e of this.listeners)e.onParentSensitiveStatusChange&&e.onParentSensitiveStatusChange(t)}emitStartAnalytics(){for(let t of this.listeners)t.onStartAnalytics&&t.onStartAnalytics()}emitStopAnalytics(){for(let t of this.listeners)t.onStopAnalytics&&t.onStopAnalytics()}emitStartRecording(){for(let t of this.listeners)t.onStartRecording&&t.onStartRecording()}emitStopRecording(){for(let t of this.listeners)t.onStopRecording&&t.onStopRecording()}}return s})(),Zd=(()=>{class s extends fo{constructor(t){super(),this.O=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.O.schedule(()=>e.onStartTracking(t))}emitArtificialPageViewEnd(){for(let t of this.listeners)if(t.onArtificialPageViewEnd)try{t.onArtificialPageViewEnd()}catch(e){Y.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 st([se("emitStartTracking")],s.prototype,"emitStartTracking",null),s})(),tp=["trackTransaction"],gw=(()=>{class s{constructor(t){this.Y=t}init(){this.Y.register(Gr),this.Y.register(go),this.Y.register(Xn),this.Y.register(Kn),this.Y.register(lo),this.Y.register(Hu),this.Y.register(qr),this.Y.register(lr),this.Y.register(Wr),this.Y.register(tp),this.Y.register(id),this.Y.register(rd),this.Y.register(Dc),this.Y.register(Od),this.Y.register(nd),this.Y.register(ho),this.Y.register(ur),this.Y.register(_c),this.Y.register(_d),this.Y.register(wd),this.Y.register(bd),this.Y.register(Ad),this.Y.register(Mc),this.Y.register(yd),this.Y.register(HS),this.Y.register(CS),this.Y.register(IS),this.Y.register(PS)}onStartTracking(){this.Y.start()}onOptout(){this.Y.stop()}}return s})(),mw=(()=>{class s extends ae{constructor(t,e){super(),this.E=t,this.C=e,this.Gt=[]}onStart(){this.commandsBatchReady()}onStop(){this.Gt=[]}register(t){for(let e of t)this.E.register([e],(...i)=>this.send(e,i))}send(t,e){csArray.prototype.push.call(this.Gt,{name:t,params:e}),this.isStarted&&this.commandsBatchReady()}commandsBatchReady(){if(this.Gt.length===0)return;let t={commands:this.Gt};this.C.sendToParent(z.Commands,t),this.Gt=[]}}return st([G("Commands.iframe.commandsBatch.send")],s.prototype,"send",null),st([cr({wait:0,mode:"trailing"}),G("send iframe commands batch")],s.prototype,"commandsBatchReady",null),s})(),yw="Buffer is full, events might be missing.",Ew=(()=>{class s{constructor(t=25){this.bm=t,this.Rr=[]}reset(){this.Rr=[]}getMessages(){return this.Rr}addMessage(t){this.Rr.length{class s extends ae{constructor(t){super(),this.buffer=new Ew(t)}}return s})(),Sw=25,vw=(()=>{class s extends ep{constructor(t,e,i,n,o){super(Sw),this.f=t,this.S=e,this.Is=i,this.Yt=n,this.ii=o,this.We=null,this.Am={boundElement:window,type:"message",listener:c=>this.hh(c)}}onStart(){Lt(this.Am,!1),this.E0()}onStop(){xt(this.Am,!1),this.We&&(Tt.closeChannelPort(this.We),this.We=null)}sendToParent(t,e){let i=this.buildChildBaseMessage(t,e);this.La(i)}E0(){let t=this.buildChildBaseMessage(z.Discovery);Tt.sendPostMessage(window.parent,"*",t)}buildChildBaseMessage(t,e){let i=Tt.buildBaseMessage(t,Oe.Child,this.f.projectId);return e&&(i.content=e),i}La(t){this.We!==null?Tt.sendChannelMessage(this.We,t):this.buffer.addMessage(t)}S0(t,e){let i=Tt.getNewChannelMessage();this.We=i.port1,this.We.onmessage=o=>{this.ph(o)};let n=this.buildChildBaseMessage(z.Discovery);n.id=e,Tt.sendPostMessage(window.parent,t,n,[i.port2]),this.sendAllMessagesFromBuffer()}ph(t){switch(t.data.type){case z.TrackingContextResultMessage:this.ii.emitTrackingContextResultMessage(t.data.content);break;case z.IntegrationCallback:{let e=t.data.content;e.initiator===tr.AfterPageView?this.ii.emitAfterPageViewCallback(e):e.initiator===tr.GetSessionKey?this.ii.emitIntegrationSessionKeyCallback(e):Y.warn(`Iframe child received unknown IntegrationCallback type from parent : ${csJSON.stringify(t.data)}`);break}case z.Stop:this.S.emitOptout();break;case z.RecordingContext:{let e=t.data.content;this.Is.setRecordingContext(e),this.ii.emitParentRecordingContextChange(e);break}case z.SensitiveStatus:{let e=t.data.content;this.Yt.setSensitiveStatus(e),this.ii.emitParentSensitiveStatusChange(e);break}default:Y.warn(`Iframe child received unknown channelMessage type from parent : ${csJSON.stringify(t.data)}`)}}hh(t){if(this.We===null&&Tt.isMessageValid(t,Oe.Parent,this.f.projectId,this.f.hostnames))switch(t.data.type){case z.Stop:this.S.emitOptout();break;case z.Discovery:if(!Ns(t.data.id)||t.data.id<0){Y.warn(`Iframe child received discovery without valid id from parent (${t.origin}) : ${csJSON.stringify(t.data)}`);return}this.S0(t.origin,t.data.id);break;default:Y.warn(`Iframe child received unknown postMessage type from parent (${t.origin}) : ${csJSON.stringify(t.data)}`)}}sendAllMessagesFromBuffer(){if(this.We===null)return;let t=this.buffer.getMessages();for(let e of t)Tt.sendChannelMessage(this.We,e);this.v0(),this.buffer.reset()}v0(){let t=Tt.buildBaseMessage(z.EndOfBufferedMessages,Oe.Child,this.f.projectId);Tt.sendChannelMessage(this.We,t)}}return s})(),_w=(()=>{class s{constructor(t){this.C=t}onStartTracking(){this.C.start()}onOptout(){this.C.stop()}}return s})(),ww=(()=>{class s{constructor(t,e,i,n,o){this.J=t,this.pt=e,this.C=i,this.Is=n,this.Yt=o}init(){this.J.onChildMessage((t,e,i)=>this.pt.emitIframeEvent(t,e,i)),this.J.setSentiveStatusCallback(()=>this.Yt.getSensitiveStatus()),this.J.setRecordingContextCallback(()=>this.Is.getRecordingContext())}onStartTracking(){this.J.start()}onOptout(){this.J.stop()}onIframeRecordingUserEvent(t){let e={events:t,containsUserEvent:!0};this.C.sendToParent(z.RecordingEvent,e)}onIframeRecordingBrowserEvent(t){let e={events:t,containsUserEvent:!1};this.C.sendToParent(z.RecordingEvent,e)}onIframeAnalysisUserEvent(t){let e={event:t,isUserEvent:!0};this.C.sendToParent(z.AnalysisEvent,e)}onIframeAnalysisBrowserEvent(t){let e={event:t,isUserEvent:!1};this.C.sendToParent(z.AnalysisEvent,e)}onIframeJavascriptError(t){this.C.sendToParent(z.JavascriptError,t)}onIframeApiError(t){this.C.sendToParent(z.ApiError,t)}onIframeDetailedApiError(t){this.C.sendToParent(z.DetailedApiError,t)}onIframeEmerchandisingMessage(t){this.C.sendToParent(z.EmerchandisingMessage,t)}onIframeCommands(t){this.C.sendToParent(z.Commands,t)}onIframeIntegrationCallback(t){this.C.sendToParent(z.IntegrationCallback,t)}onTrackingContextRequestCallback(t){this.C.sendToParent(z.TrackingContextRequestMessage,t)}onIframeStaticResource(t){this.C.sendToParent(z.StaticResource,t)}onIframeCustomError(t){this.C.sendToParent(z.CustomError,t)}onTrackingContextResultCallback(t){this.J.sendToChildren(z.TrackingContextResultMessage,t)}onAfterPageViewCallback(t){this.J.sendToChildren(z.IntegrationCallback,t)}onIntegrationSessionKeyCallback(t){this.J.sendToChildren(z.IntegrationCallback,t)}onParentRecordingContextChange(t){this.J.sendToChildren(z.RecordingContext,t)}onParentSensitiveStatusChange(t){this.J.sendToChildren(z.SensitiveStatus,t)}}return s})(),bw=(()=>{class s extends ae{constructor(t,e,i,n,o,c,u,d){super(),this.Ws=t,this.Ut=e,this.C=i,this.vs=n,this._s=o,this.Ri=c,this.Ci=u,this.Ii=d}init(){var t,e,i,n,o;this.Ws.onEvent(c=>this.Nt(c)),this.Ut.onEvent(c=>this.Nt(c)),(t=this.vs)===null||t===void 0||t.onEvent(c=>this.Nt(c)),(e=this._s)===null||e===void 0||e.onEvent(c=>this.Nt(c)),(i=this.Ri)===null||i===void 0||i.onEvent(c=>this.Nt(c)),(n=this.Ci)===null||n===void 0||n.onEvent(c=>this.Ge(c)),(o=this.Ii)===null||o===void 0||o.onEvent(c=>this.Ge(c))}onStart(){var t,e,i,n,o;this.Ws.start(),this.Ut.start(),(t=this.vs)===null||t===void 0||t.start(),(e=this._s)===null||e===void 0||e.start(),(i=this.Ri)===null||i===void 0||i.start(),(n=this.Ci)===null||n===void 0||n.start(),(o=this.Ii)===null||o===void 0||o.start()}onStop(){var t,e,i,n,o;this.Ws.stop(),this.Ut.stop(),(t=this.vs)===null||t===void 0||t.stop(),(e=this._s)===null||e===void 0||e.stop(),(i=this.Ri)===null||i===void 0||i.stop(),(n=this.Ci)===null||n===void 0||n.stop(),(o=this.Ii)===null||o===void 0||o.stop()}Nt(t){let e={isUserEvent:!0,event:t};this.X(e)}Ge(t){let e={isUserEvent:!1,event:t};this.X(e)}X(t){!this.isStarted||t.event.type===ot.RESIZE||this.C.sendToParent(z.AnalysisEvent,t)}}return s})(),Aw=["webview:analytics:start"],Tw=["webview:analytics:stop"],Rw=(()=>{class s{constructor(t,e,i,n,o,c,u,d,S){this.f=t,this.K=e,this.jt=i,this.C=n,this.mt=o,this.gt=c,this.E=u,this.Ut=d,this.pe=S}init(){let t,e,i=Ju(this.f,this.K,this.pe),n=[];this.f.collectSubmit||csArray.prototype.push.call(n,"submit");let o=new zu(i,this.K,this.jt,n),c=this.mt.isInWebViewContext()?{collectGestureVelocity:!0,collectGestureDistance:!0}:{collectGestureVelocity:!1,collectGestureDistance:!1},u=Qu(this.f,this.K,this.pe),d=new Fu(u,this.Ut,c),S,f,_;this.no=new bw(o,d,this.C,t,e,f,_,S),this.no.init(),this.mt.isInWebViewContext()&&this._0()}onStartTracking(){this.no.start()}onOptout(){this.no.stop()}onStartAnalytics(){this.no.start()}onStopAnalytics(){this.no.stop()}_0(){this.E.register(Aw,()=>this.gt.emitStartAnalytics(),{disableApplyPending:!0}),this.E.register(Tw,()=>{this.gt.emitStopRecording(),this.gt.emitStopAnalytics()},{disableApplyPending:!0})}}return s})();var Cw=(()=>{class s extends ae{constructor(t,e,i,n,o=[],c){super(),this.f=t,this.it=e,this.C=i,this.Oe=n,this.Ne=o,this.Me=c,this.wu=!1,this.gi=!1,this.Vs=new fc,this.z=[],this.Ba=!1,this.ms=u=>this.Ge(u),this.jr=u=>this.Nt(u)}init(){this.zc()}zc(){var t;this.Oe.onEvent(this.ms,this.jr),(t=this.it)===null||t===void 0||t.onInputNodeToEncrypt(this.jr)}setEnableOnlineAssets(t){this.wu=t!=null?t:!1}setOnlineAssetsEnabledOnNextStart(t){this.gi=t}getStaticResourceManagerStatus(){return this.Me?{supported:iu.isSupported(),onlineAssets:{activated:this.wu,enableOnNextStart:this.gi}}:null}Ge(t){this.T0(t),this.Fa()}Nt(t){this.Tm(t),this.Fa()}Tm(t){csArray.prototype.push.call(this.z,t),this.Ba=!0}T0(t){csArray.prototype.push.call(this.z,t)}Fa(){ct(this.Ne,e=>{var i;return(i=e.flushEvents)===null||i===void 0?void 0:i.call(e)});let t={containsUserEvent:this.Ba,events:this.z};this.C.sendToParent(z.RecordingEvent,t),this.z=[],this.Ba=!1}onStart(){this.Me&&this.wu&&this.Me.enableOnlineAssets(),this.Oe.start(),this.f.emitDebugEvents&&this.Vs.emit("replayRecordingStarted"),ct(this.Ne,t=>{t.start&&t.start()})}onStop(){var t;this.Oe.stop(),(t=this.Me)===null||t===void 0||t.disableOnlineAssets(),ct(this.Ne,e=>{e.stop&&e.stop()})}addInitialDom(t){for(let e=0;e=t.date){csArray.prototype.splice.call(this.z,e,0,t),this.Ba=!0,this.Fa();return}this.Tm(t),this.Fa()}}return s})(),sp=(()=>{class s{constructor(t){this.f=t}isReplayUnanonymizedAllowedByConsent(){return!this.f.consentRequired}}return s})(),Wa=(()=>{class s{static isWebViewLocalAssetsSupported(){return"URL"in window}}return s})(),Iw=["webview:replay:start"],Pw=["webview:replay:stop"],Ow=(()=>{class s{constructor(t,e,i,n,o,c,u,d){this.f=t,this.gt=e,this.Rm=i,this.ni=n,this.bu=o,this.E=c,this.R=u,this.Yt=d,this.Au=!1}init(){let t=new sp(this.f),e=new Kr;if(this.ie=new Cd(this.R),new Pd(this.ie,this.E).init(),this.lt=new uo(t,this.f,this.R,e),this.lt.init(),Wa.isWebViewLocalAssetsSupported()){let n=S=>{this.oo(S)},o=S=>Y.error("An error occurred while fetching a styleSheet: "+S),c=new Set,u=S=>!c.has(S),d=S=>{c.add(S.assetId),this.oo([S])};this.Rm.onAsset(S=>{this.R0(S)}),this.Rm.onStyleSheetFound(S=>{this.bu.getStyleSheetAssets(S.assetId,n,o,u,d)})}this.C0()}onStartRecording(){if(this.Au=!0,!this.ie.isUrlExcludedForSessionReplay()){let t=this.Yt.getSensitiveStatus();this.gt.emitParentRecordingContextChange({isRecording:!0,useAnonymization:t.useAnonymization})}}onStopRecording(){this.Au=!1,this.gt.emitParentRecordingContextChange({isRecording:!1})}onArtificialPageViewEnd(){this.gt.emitParentRecordingContextChange({isRecording:!1})}onAfterArtificialPageView(){if(this.L()&&!this.ie.isUrlExcludedForSessionReplay()){let t=this.Yt.getSensitiveStatus();this.gt.emitParentRecordingContextChange({isRecording:!0,useAnonymization:t.useAnonymization})}}L(){return this.Au}C0(){this.E.register(Iw,()=>{this.gt.emitStartAnalytics(),this.gt.emitStartRecording()},{disableApplyPending:!0}),this.E.register(Pw,()=>this.gt.emitStopRecording(),{disableApplyPending:!0})}R0(t){this.ni.sendToParent(z.Assets,{assets:[t]})}oo(t){t.length!==0&&this.ni.sendToParent(z.Assets,{assets:t})}}return s})();function Nw(s){var r=/(\\)*\\(?:([a-fA-F0-9]{1,6})|(.))[\n\t\x20]?/g;return s.replace(r,function(t,e,i,n){if(e==="\\")return t.slice(1);if(n)return n;var o=parseInt(i,16),c=55296<=o&&o<=57343;return c||o===0||o>1114111?"\uFFFD":String.fromCodePoint(o)})}var Mw=/(@import\s*("([^"]+)"|'([^']+)'))|(url\s*\(\s*((("([^"\]]+)"|'([^'\]]+)')\s*)|([^)\]]+))\))/g;function kw(s,r){var t=s.replace(Mw,function(){for(var e=[],i=0;i{class s{constructor(t){this.I0=t}getStyleSheetAssets(t,e,i,n,o){let c=[];if(!qn(t)){i(`Not a recognized valid css file path ${t}`);return}let u=(d,S)=>{let f=this.P0(d,S);csArray.prototype.forEach.call(f,_=>{csArray.prototype.push.call(c,_),qn(_.assetId)&&n(_.assetId)&&(o==null||o(_),this.getStyleSheetAssets(_.assetId,e,i,n,o))}),e(c)};this.I0.getResourceContentText(t,u,i)}P0(t,e){return this.O0(t,Lw(e))}O0(t,e){return csArray.prototype.map.call(csArray.prototype.filter.call(csArray.prototype.filter.call(e,i=>!We(i)),i=>!Xh(i)),i=>({assetId:xh(i,t),assetBasePath:t,assetRawPath:i}))}}return s})(),rp=(()=>{class s{getResourceContentText(t,e,i){let n=c=>{e(t,c.responseText)},o=this.N0(n,i);o.open("GET",t),o.send()}N0(t,e){let i=new XMLHttpRequest;return i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&(i.status===200?t(i):e(i.statusText))},i}}return s})();var xw=(()=>{class s{constructor(t,e,i,n,o,c,u,d,S,f,_,w,T){this.f=t,this.N=e,this.$t=i,this.S=n,this.C=o,this.Is=c,this.E=u,this.ii=d,this.mt=S,this.R=f,this.Yt=_,this.tt=w,this.it=T}init(){let t=[],e=this.Is.getRecordingContext();this.yn=new gu(!!e.useAnonymization,this.f.whitelistedAttributes,this.N,this.f.anonymizeDigits);let i=[];csArray.prototype.push.call(i,new uu,this.yn,new mu(this.tt)),csArray.prototype.push.call(i,new yu);let n=new lu;csArray.prototype.push.call(t,n),this.mt.isInWebViewContext(),this.Ai=new Wh,this.Ai.init(),csArray.prototype.push.call(t,this.Ai),csArray.prototype.push.call(t,new nu(window.location,this.N));let o=[this.$t,new su,new Pu(csArray.prototype.filter.call(t,d=>d)),new _u,new wu,new Tu,new vu(this.it)],c=new Iu(o,i),u=new Ou(c,this.S,this.Ss);if(this.oi=new Cw(this.f,this.it,this.C,u,t,this.Me),this.E.register(Nu,()=>this.Is.getRecordingContext().isRecording),this.E.register(Mu,()=>this.oi.getStaticResourceManagerStatus()),this.oi.init(),this.mt.isInWebViewContext()){let d=new ip(new rp);this.Tu=new Ow(this.f,this.ii,n,this.C,d,this.E,this.R,this.Yt),this.ii.addListener(this.Tu),this.S.addListener(this.Tu),this.Tu.init()}}onParentRecordingContextChange(t){var e,i;t.useAnonymization!==void 0&&this.bi(t.useAnonymization),t.enableOnlineResourcesOnNextPageview!==void 0&&this.oi.setOnlineAssetsEnabledOnNextStart(t.enableOnlineResourcesOnNextPageview),t.isRecording?(this.Il(),this.oi.setEnableOnlineAssets(t.enableOnlineResources),this.oi.start(),(e=this.M0)===null||e===void 0||e.start()):(this.oi.stop(),(i=this.M0)===null||i===void 0||i.stop())}onInitialDomStart(){}onInitialDomDone(t){this.Ai.start(),this.oi.addInitialDom(t)}bi(t){var e;this.yn.setAnonymization(t),(e=this.Mv)===null||e===void 0||e.setAnonymization(t)}onOptout(){this.oi.stop()}Il(){var t,e,i,n;if(!((e=(t=this.f.experimental.sessionReplay)===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0)&&e.filterByHostSelector){let o=(n=(i=this.f.experimental.sessionReplay)===null||i===void 0?void 0:i.shadowRoot)===null||n===void 0?void 0:n.filterByHostSelector;ct(o,c=>{ee(c)&&Je.setShadowRootFilter(u=>{try{return Ae.call(u.host,c)}catch{return!1}})})}}}return s})(),Vw=(()=>{class s{constructor(t,e){this.ni=t,this.Cm=e}init(){this.ni.onWebViewEvent((t,e)=>{this.Cm.emitWebviewEventToBridge(t,e)})}onStartTracking(){this.ni.start()}onOptout(){this.ni.stop()}onStartAnalytics(){this.ni.setAnalyticsStatus(!0)}onStopAnalytics(){this.ni.setAnalyticsStatus(!1)}onParentRecordingContextChange(t){this.Cm.setSessionReplayStatus(t.isRecording)}}return s})(),os=(()=>{let s;return function(r){r[r.PAGE_VIEW=4]="PAGE_VIEW",r[r.TAP=6]="TAP",r[r.LONG_PRESS=8]="LONG_PRESS",r[r.DRAG=9]="DRAG",r[r.FLICK=10]="FLICK",r[r.DETAILED_API_ERROR=13]="DETAILED_API_ERROR",r[r.JAVASCRIPT_ERROR_SR=19]="JAVASCRIPT_ERROR_SR",r[r.CUSTOM_ERROR_SR=20]="CUSTOM_ERROR_SR",r[r.API_ERROR=21]="API_ERROR",r[r.CUSTOM_ERROR_AN=25]="CUSTOM_ERROR_AN",r[r.JAVASCRIPT_ERROR_AN=26]="JAVASCRIPT_ERROR_AN"}(s||(s={})),s})(),Uw=(()=>{class s{constructor(){this.Vi=1}transformEvent(t){switch(t.type){case ot.TAP:return{version:this.Vi,type:os.TAP,data:{path:t.tgt}};case ot.DRAG:{let e=t;return{version:this.Vi,type:os.DRAG,data:{path:e.tgt,direction:e.fd,distance:e.distance,velocity:e.velocity}}}case ot.FLICK:{let e=t;return{version:this.Vi,type:os.FLICK,data:{path:e.tgt,direction:e.fd,distance:e.distance,velocity:e.velocity}}}default:return null}}}return s})(),jw=(()=>{class s{constructor(t,e,i,n){this.R=t,this.Ue=e,this.Pe=i,this.cr=n,this.Vi=1}transformEvent(t,e){switch(t){case z.ApiError:case z.DetailedApiError:{let i=this.Pe.anonymize(e);return{version:this.Vi,data:i}}case z.JavascriptError:{let i={...e,pageUrl:this.R.getAnonymizedUrl()},n=this.Ue.anonymize(i);return{version:this.Vi,data:{...n,date:Q.now()}}}case z.CustomError:{let i=e;return i.message=this.cr.anonymize(i.message),{version:this.Vi,data:{...i,date:Q.now()}}}default:return null}}}return s})(),Hw=2,Bt=(()=>{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 T=window.CSJavascriptBridge.getVersion();if(te(T))return T}catch{Y.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(T){window.CSJavascriptBridge.sendEvent(csJSON.stringify(T))}r.sendAnalysisEvent=n;function o(T){if(window.CSJavascriptBridge.sendSREvent)for(let N of T.events)window.CSJavascriptBridge.sendSREvent(csJSON.stringify(N))}r.sendSREvent=o;function c(T){window.CSJavascriptBridge&&window.CSJavascriptBridge.sendLog&&window.CSJavascriptBridge.sendLog(csJSON.stringify(T))}r.sendLog=c;function u(){window.CSJavascriptBridge.optIn()}r.sendOptIn=u;function d(){window.CSJavascriptBridge.optOut()}r.sendOptOut=d;function S(T,N){window.CSJavascriptBridge.sendDynamicVar(T,N)}r.sendDynamicVariable=S;function f(T,N,x){window.CSJavascriptBridge.sendTransaction(T,N,x)}r.sendTransaction=f;function _(T,N){if(window.CSJavascriptBridge.sendAssets){let x=csJSON.stringify(T);window.CSJavascriptBridge.sendAssets(x,N||null)}else window.CSJavascriptBridge.sendSRAssets&&window.CSJavascriptBridge.sendSRAssets(csArray.prototype.map.call(T,x=>x.assetId))}r.sendAssets=_;function w(T){window.CSJavascriptBridge&&window.CSJavascriptBridge.sendNativeSREvent&&window.CSJavascriptBridge.sendNativeSREvent(csJSON.stringify(T))}r.sendNativeSREvent=w}(s||(s={})),s})(),Bw=(()=>{class s{constructor(t,e,i,n,o,c,u,d){this.Im=t,this.es=e,this.k0=i,this.za=n,this.Cr=o,this.S=c,this.R=u,this.vt=d,this.Ru=!1}async emitWebviewEventToBridge(t,e){switch(t){case z.AnalysisEvent:{let i=this.k0.transformEvent(e.event);i&&Bt.sendAnalysisEvent(i);break}case z.RecordingEvent:Bt.sendSREvent(e);break;case z.ChildLogMessage:Bt.sendLog(e);break;case z.Commands:Y.tryToExecute(`SDKMessageUtils.sendMessage.sendCommandMessage: ${e}`,()=>{this.D0(e)})();break;case z.Assets:{let{assets:i,serializationId:n}=e,o=await this.Cr.getTransformedAssets(i,n);Bt.sendAssets(o,n);break}case z.JavascriptError:{let i=this.za.transformEvent(z.JavascriptError,e);i&&(this.Ru&&Bt.sendNativeSREvent({...i,type:os.JAVASCRIPT_ERROR_SR}),Bt.sendAnalysisEvent({...i,type:os.JAVASCRIPT_ERROR_AN}));break}case z.ApiError:{let i=this.za.transformEvent(z.ApiError,e);i&&(Bt.sendAnalysisEvent({...i,type:os.API_ERROR}),bt.counters.networkRequests.count("collected"));break}case z.DetailedApiError:{let i=this.za.transformEvent(z.DetailedApiError,e);i&&(Bt.sendNativeSREvent({...i,type:os.DETAILED_API_ERROR}),bt.counters.networkRequests.count("collected"));break}default:break}}setSessionReplayStatus(t){this.Ru=t}D0(t){let e=t.commands;for(let i of e)switch(!0){case csArray.prototype.indexOf.call(Od,i.name)>=0:Bt.sendOptIn();break;case csArray.prototype.indexOf.call(Dc,i.name)>=0:this.S.emitOptout(),Bt.sendOptOut();break;case csArray.prototype.indexOf.call(Gr,i.name)>=0:this.L0(i);break;case csArray.prototype.indexOf.call(lo,i.name)>=0:this.x0(i);break;case csArray.prototype.indexOf.call(qr,i.name)>=0:this.Pm(i);break;case csArray.prototype.indexOf.call(lr,i.name)>=0:break;case csArray.prototype.indexOf.call(Wr,i.name)>=0:this.xa();break;case csArray.prototype.indexOf.call(tp,i.name)>=0:this.Pm(i),this.xa();break;case csArray.prototype.indexOf.call(ld,i.name)>=0:this.vt.addUrlMaskingPattern(i.params[0]);break;case csArray.prototype.indexOf.call(Mc,i.name)>=0:this.vt.addPartialUrlMaskingPattern(i.params[0]);break;case csArray.prototype.indexOf.call(yd,i.name)>=0:this.vt.resetPartialUrlMaskingPatterns();break;case csArray.prototype.indexOf.call(hd,i.name)>=0:this.V0(i);break;default:Y.warn(`WebviewBridgeEventEmitter received an unknown command: ${csJSON.stringify(i)}`);break}}L0(t){if(t.params.length!==1)return;let e=t.params[0];if(!(!Xe(e)||!("key"in e)||!("value"in e))&&xr.isKeyValid(e.key)&&xr.isValueValid(e.value)){let i=this.Im.anonymizePII(e.key),n=Ns(e.value)?e.value:this.Im.anonymizePII(e.value);Bt.sendDynamicVariable(i,n)}}x0(t){if(t.params.length!==1)return;let e=t.params[0];if(V(e)){let i={type:os.PAGE_VIEW,version:1,data:{url:e}};this.R.overridePath(e),this.S.emitArtificialPageViewEnd(),Bt.sendAnalysisEvent(i),this.S.emitAfterArtificialPageView()}}Pm(t){if(t.params.length!==1)return;let[e]=t.params;e.value&&(e.revenue=e.value),this.es.addTransaction(e)}xa(){let t=this.es.getTransaction();Da.isValid(t)&&(Bt.sendTransaction(t.id?t.id:null,t.revenue,t.currency?t.currency:""),this.es.clear())}V0(t){if(t.params.length<1)return;let e=t.params[0],i=t.params[1]||{};if(!(V(e)&&Xe(i)))return;let n=sS.buildCustomErrorEvent(e,i),o=this.za.transformEvent(z.CustomError,n);o&&(this.Ru&&Bt.sendNativeSREvent({...o,type:os.CUSTOM_ERROR_SR}),Bt.sendAnalysisEvent({...o,type:os.CUSTOM_ERROR_AN}))}}return s})();var Fw="REMOTE_ASSET",dh="LOCAL_ASSET",zw="UNKNOWN_ASSET_TYPE",Ya="NONE",np="ONLY_LOCAL_ASSETS",Xa="ALL",$w=(()=>{class s{constructor(t){var e,i;this.U0=t,this.Cu=new Set,this.$a=Ya;try{let n=(i=(e=window.CSJavascriptBridge)===null||e===void 0?void 0:e.getAssetTransformerMode)===null||i===void 0?void 0:i.call(e);(n===np||n===Xa)&&(this.$a=n)}catch{}}setAssetProcessingMode(t){this.$a=t}async getTransformedAssets(t,e){if(this.$a===Ya)return t;let i=[];for(let n of t){let o=n.assetId,c=this.j0(o);if(this.$a===Xa||c===dh){let u=o;if(this.H0(o,e)&&(u=this.B0(o,e)),this.Cu.has(u)){csArray.prototype.push.call(i,n);continue}try{let d=await this.U0.getAssetContent(o);if(this.Cu.has(u)){csArray.prototype.push.call(i,n);continue}csArray.prototype.push.call(i,{...n,retrievedAssetContent:d}),this.Cu.add(n.assetId)}catch(d){Y.error(`an error occurred while getting data for asset: ${u}: ${d}`),csArray.prototype.push.call(i,n)}}else csArray.prototype.push.call(i,n)}return i}j0(t){let e=window.WEBVIEW_SERVER_URL||null;try{let{protocol:i}=new csURL(t);return i==="file:"||e&&csString.prototype.startsWith.call(t,e)?dh:Fw}catch(i){Y.error(`Error constructing URL (${t}"): ${i.message}`)}return zw}H0(t,e){return e&&qn(t)||!1}B0(t,e){return`${t}#${e}`}}return s})(),Gw=(()=>{class s{constructor(){this.F0=50*1024*1024,this.z0=30*1024*1024,this.Iu=0,this.Pu=!1,this.Ga=new Map,this.Ct=[]}async getAssetContent(t){let e=this.Ga.get(t);return e||new Promise((i,n)=>{csArray.prototype.push.call(this.Ct,{assetUrl:t,successCallback:i,errorCallback:n}),this.Pu||this.$0()})}async $0(){for(this.Pu=!0;this.Ct.length>0;){let{assetUrl:t,successCallback:e,errorCallback:i}=csArray.prototype.shift.call(this.Ct),n=this.Ga.get(t);if(n){e(n);continue}try{let c=(await this.G0("GET",t,"blob")).target;if(c.status===200){let u=c.getResponseHeader("Content-Type"),d=Number(c.getResponseHeader("Content-Length"));if(d&&Number(d)>this.z0){let f=`asset is too big, size = ${d} bytes`;i(f);continue}let S=new csFileReader;S.onload=()=>{let _={data:csString.prototype.split.call(S.result,"base64,")[1],mimeType:u!=null?u:""};this.Iu+=d,this.Iu>this.F0&&(this.Iu=0,this.Ga.clear()),this.Ga.set(t,_),e(_)},S.onerror=()=>{i("Error converting XHR response to base64")},S.readAsDataURL(c.response)}else i(`error downloading ${t}: ${c.statusText}`)}catch(o){let c=`Error downloading resource ${t}: ${o.message}`;i(c)}}this.Pu=!1}G0(t,e,i){return new Promise(function(n,o){let c=new XMLHttpRequest;c.open(t,e),c.responseType=i,c.onload=n,c.onerror=o,c.send()})}}return s})();function qw(s,r){let t=Ec({...r,async:!1}),e;return t(s,i=>e=i),e}var Ww=(()=>{class s{constructor(t,e){this.C=t,this.bu=e,this.Om=new ou}q0(){let t=new Set;_e(document,NodeFilter.SHOW_ELEMENT).visitAll(i=>{t.has(i)||(this.Om.scanElement(i),t.add(i))})}handleCommand(t){let e=t&&t.withAssets,i=[],n=new Set,o=new Set,c=[];e&&Wa.isWebViewLocalAssetsSupported()?(this.Om.onScannedAsset(({type:S,asset:f})=>{S==="stylesheet"&&!o.has(f.assetId)&&(o.add(f.assetId),csArray.prototype.push.call(c,f)),n.has(f.assetId)||(n.add(f.assetId),csArray.prototype.push.call(i,f))}),this.q0()):Wa.isWebViewLocalAssetsSupported()||Y.warn("Local asset is not supported on this browser");let u=Yw(),d=csJSON.stringify(u);if(e){let S=Cc.generate();return this.W0(i,c,S),csJSON.stringify({serializedDom:d,serializationId:S})}return d}W0(t,e,i){e.length===0?this.oo(t,i):this.Y0(t,e,i,(n,o)=>this.oo(n,o))}Y0(t,e,i,n){let o=0,c=0,u=new Set(csArray.prototype.map.call(t,w=>w.assetId)),d=w=>!u.has(w),S=w=>{u.has(w.assetId)||(u.add(w.assetId),csArray.prototype.push.call(e,w),csArray.prototype.push.call(t,w))},f=w=>{for(let T of w)u.has(T.assetId)||(u.add(T.assetId),csArray.prototype.push.call(t,T));o++,o+c===e.length&&n(t,i)},_=w=>{c++,Y.error("An error occurred while fetching a styleSheet: "+w),o+c===e.length&&n(t,i)};csArray.prototype.forEach.call(e,w=>{this.bu.getStyleSheetAssets(w.assetId,f,_,d,S)})}oo(t,e){this.C.sendToParent(z.Assets,{assets:t,serializationId:e})}}return s})();function Yw(){return pd(),dd(qw(document))}var Xw=(()=>{class s{constructor(t){this.f=t,this.Ou=null}isSdkTrackingContext(t){return Vt(t)&&Xe(t)&&V(t.sessionKey)&&Ns(t.pageNumber)&&V(t.pageViewType)&&Sa(t.isRecording)}update(t){if(!this.isSdkTrackingContext(t)){Y.warn(`webViewTrackingContext.service received wrong sdkTrackingContext, content:${csJSON.stringify(t)}`),this.Ou=null;return}this.Ou={...t,recordingConsentState:Pr.NOT_NEEDED,projectId:this.f.projectId,uxaDomain:this.f.uxaDomain,...this.f.smbConfig}}getTrackingContext(){return this.Ou}}return s})(),Kw=(()=>{class s{constructor(t){this.ai=t,this.re=[]}handleCommand(t){if(!be(t))return;this.Sn(t);let e=this.ai.getTrackingContext();e!==null&&this.Vt(t,e)}executeRegisteredCallbacks(t){let e=t.trackingContext;e&&csArray.prototype.map.call(this.re,i=>this.Vt(i,e))}Sn(t){csArray.prototype.push.call(this.re,t)}Vt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),Jw=(()=>{class s{constructor(t,e){this.J=t,this.ai=e}onIframeIntegrationCallback(t){let e=this.ai.getTrackingContext();e!==null&&(t.trackingContext=e,this.J.sendToChildren(z.IntegrationCallback,t))}}return s})(),op=(()=>{class s{constructor(t){this.commandsService=t,this._n=new Du}registerChildCommands(){this.commandsService.register(xu,t=>this._n.handleCommand(t,this.Ir))}onParentRecordingContextChange(t){this.Ir={isRecording:t.isRecording,recordingStartTimestamp:t.recordingStartTimestamp||0,etrState:t.etrState||ve.ETR_OFF},this._n.executeCallbacks(this.Ir)}}return st([cr({wait:0,mode:"trailing"})],s.prototype,"onParentRecordingContextChange",null),s})(),Qw=["serializeWebView","webview:serializeWebView"],Zw=["setAssetTransformerMode","webview:setAssetTransformerMode"],tb=["webview:onAfterScreenView"],eb=(()=>{class s extends op{constructor(t,e,i,n,o,c,u){super(t),this.commandsService=t,this.C=e,this.J=i,this.Cr=n,this.X0=o,this.pt=c,this.f=u}init(){this.ai=new Xw(this.f),this.K0=new Jw(this.J,this.ai),this.pt.addListener(this.K0),this.Nm=new Kw(this.ai);let t=new ip(new rp);this.J0=new Ww(this.C,t),this.ut()}onAfterPageViewCallback(t){this.Nm.executeRegisteredCallbacks(t)}ut(){super.registerChildCommands(),this.commandsService.register(oo,t=>{this.Nm.handleCommand(t)}),this.commandsService.register(tb,t=>{this.ai.update(t);let e=this.ai.getTrackingContext();e!==null&&this.X0.emitAfterPageViewCallback({initiator:tr.AfterPageView,trackingContext:e})}),this.commandsService.register(Qw,t=>this.J0.handleCommand(t)),this.commandsService.register(Zw,t=>{(t===Ya||t===np||t===Xa)&&this.Cr.setAssetProcessingMode(t)})}}return s})(),sb=(()=>{class s{constructor(t){this.C=t,this.re={}}handleCommand(t){be(t)&&this.Sn(t)}executeRegisteredCallbacks(t){let e=t.trackingContext;if(e)if(t.callbackId){let i=this.re[t.callbackId];i&&this.Vt(i,e)}else for(let i in this.re)this.Vt(this.re[i],e)}Sn(t){let e=us.integer(),i={callbackId:e,initiator:tr.AfterPageView};this.re[e]=t,this.C.sendToParent(z.IntegrationCallback,i)}Vt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),ib=(()=>{class s{constructor(t){this.C=t,this.Ti={}}handleCommand(t){Xe(t)&&be(t.callback)&&this.vn(t.callback)}executePendingCallbacks(t){let{trackingContext:e,callbackId:i}=t;if(!i||!e)return;let n=this.Ti[i];n&&(delete this.Ti[i],this.Vt(n,e.sessionKey))}vn(t){let e=us.integer(),i={callbackId:e,initiator:tr.GetSessionKey};this.Ti[e]=t,this.C.sendToParent(z.IntegrationCallback,i)}Vt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),rb=(()=>{class s{constructor(t,e){this.C=t,this.J=e,this.qa={}}handleCommand(t,e){Xe(t)&&be(e)&&this.vn(t,e)}executePendingCommand(t){let{trackingContext:e,callbackId:i}=t;if(!(!i||!e))if(this.qa[i]){let[n,o]=this.qa[i];n&&(delete this.qa[i],this.Vt(e,n,o))}else this.J.sendToChildren(z.TrackingContextResultMessage,t)}vn(t,e){let i=us.integer();this.qa[i]=[t,e],this.C.sendToParent(z.TrackingContextRequestMessage,{callbackId:i})}Vt(t,e,i){csSetTimeout(()=>{let n=ku(t,e);i(n)})}}return s})(),nb=(()=>{class s extends op{constructor(t,e,i){super(t),this.commandsService=t,this.C=e,this.J=i}init(){this.Mm=new sb(this.C),this.km=new ib(this.C),this.Dm=new rb(this.C,this.J),this.ut()}onAfterPageViewCallback(t){this.Mm.executeRegisteredCallbacks(t)}onIntegrationSessionKeyCallback(t){this.km.executePendingCallbacks(t)}onTrackingContextResultCallback(t){this.Dm.executePendingCommand(t)}ut(){super.registerChildCommands(),this.commandsService.register(oo,t=>{this.Mm.handleCommand(t)}),this.commandsService.register(Lu,t=>this.km.handleCommand(t)),this.commandsService.register(Vu,(t,e)=>{this.Dm.handleCommand(t,e)})}}return s})(),ob=(()=>{class s{constructor(t,e,i,n,o,c,u){this.E=t,this.Et=e,this.$t=i,this.kt=n,this.it=o,this.ao=c,this.vr=u}init(){var t,e;this.ao&&this.it&&((t=this.ao)===null||t===void 0||t.addSelector((e=this.it)===null||e===void 0?void 0:e.getEncryptionSelectors())),this.ut(),this.ye=new Nc(this.$t,this.Et,this.kt,this.ao,this.vr)}Q0(){this.ye.start()}Bc(){this.ye.stop()}onParentSensitiveStatusChange(t){var e,i;t.maskedElementSettings&&this.Et.setMaskedElementSettingsFromParent(t.maskedElementSettings),t.capturedElementSelector&&this.kt.setWhitelistedElementsSelector(t.capturedElementSelector,!1),t.encryptionSelectors&&((e=this.ao)===null||e===void 0||e.addSelector(t.encryptionSelectors),(i=this.it)===null||i===void 0||i.setEncryptionSelectors(t.encryptionSelectors,!1)),t.started?this.Q0():this.Bc()}ut(){this.E.register(po,t=>{this.kt.setWhitelistedElementsSelector(t)}),this.E.register(dr,t=>{this.Et.setMaskedElementSettingsFromCommand(t)}),this.E.register(Oc,t=>{var e,i;(e=this.it)===null||e===void 0||e.setEncryptionSelectors(t),(i=this.ao)===null||i===void 0||i.addSelector(t)})}}return s})(),ab=(()=>{class s{constructor(t,e,i,n,o,c,u,d){this.S=t,this.E=e,this.Et=i,this.$t=n,this.lt=o,this.kt=c,this.Yt=u,this.vr=d,this.ye=new Nc(this.$t,this.Et,this.kt,void 0,this.vr,this.lt)}init(){this.lt.init(),this.ut()}onStartAnalytics(){this.br()}onAfterArtificialPageView(){this.Lm(),this.br()}onStopAnalytics(){this.Lm()}br(){this.ye.start(),this.Yt.setSensitiveStatus({started:!0,useAnonymization:this.lt.shouldUseAnonymization()}),this.S.emitSensitiveStatusChange()}Lm(){this.ye.stop(),this.Yt.setSensitiveStatus({started:!1,useAnonymization:this.lt.shouldUseAnonymization()}),this.S.emitSensitiveStatusChange()}ut(){this.E.register(po,t=>{this.kt.setWhitelistedElementsSelector(t),this.S.emitSensitiveStatusChange()}),this.E.register(dr,t=>{this.Et.setMaskedElementSettingsFromCommand(t),this.S.emitSensitiveStatusChange()})}}return s})(),cb=(()=>{class s{constructor(t,e,i,n,o,c,u,d,S){this.gt=t,this.S=e,this.f=i,this.C=n,this.Is=o,this.E=c,this.mt=u,this.O=d,this.Yt=S,this.Ma=()=>{this.E.start(),this.wr.start()}}start(){let t,e,i,n,o,c,u,d,S,f,_,w,T,N,x,O;this.O.schedule(()=>{if(o=new Fc,c=new Ic(()=>{}),T=new Pc,O=new gd,this.mt.isInIframeContext()){let C=new ob(this.E,o,c,T,N,x,O);C.init(),this.gt.addListener(C)}if(i=new ai,f=new Vc(i),_=new xc(window.location,f),this.mt.isInWebViewContext()){let C=new sp(this.f),$=new Kr,U=new uo(C,this.f,_,$),L=new ab(this.S,this.E,o,c,U,T,this.Yt);L.init(),this.gt.addListener(L),this.S.addListener(L)}}),this.O.schedule(()=>{t=new Vd(hs,this.f),e=new ed(t),n=new Rw(this.f,t,e,this.C,this.mt,this.gt,this.E,new cd(Y),this.Yt),this.gt.addListener(n)}),sr.isRecordingSupported()&&this.O.schedule(()=>{let C=new xw(this.f,i,c,this.S,this.C,this.Is,this.E,this.gt,this.mt,_,this.Yt,f,N);this.S.addListener(C),this.gt.addListener(C),C.init()}),this.O.schedule(()=>{S=new ad(this.f);let C=new Ud(t),$=new jd(t),U=new Hd(t),L=new Bd;d=new kd(C,$,U,L),u=new ww(S,d,this.C,this.Is,this.Yt)}),this.O.schedule(()=>{d.addListener(u),this.gt.addListener(u),this.S.addListener(u),this.S.addListener(n)}),this.O.schedule(()=>{let C;if(this.mt.isInWebViewContext()){let $=new Gw;this.Cr=new $w($),C=new eb(this.E,this.C,S,this.Cr,this.gt,d,this.f)}else C=new nb(this.E,this.C,S);this.gt.addListener(C),C.init()}),this.O.schedule(()=>{u.init(),n.init()}),this.O.schedule(()=>{var C,$,U,L;if(this.mt.isInWebViewContext()){let Z=new Uw,nt=new QE(i,_),pt=new td,jt=new KE(pt,f,!!(!(($=(C=this.f)===null||C===void 0?void 0:C.experimental)===null||$===void 0)&&$.anonymizeNameInUrls)),Ht=new xS(i,!((L=(U=this.f)===null||U===void 0?void 0:U.experimental)===null||L===void 0)&&L.anonymizeNameInUrls?f:void 0),I=new jw(_,nt,jt,Ht),B=new Bw(i,new ju(i,null,null),Z,I,this.Cr,this.S,_,pt),X=new Vw(this.C,B);X.init(),this.S.addListener(X),this.gt.addListener(X)}else{let Z=new _w(this.C);this.S.addListener(Z)}}),this.wr=new sd,this.O.schedule(()=>{this.wr.onLoad(()=>{this.S.emitStartTracking()}),this.Ma()})}}return s})(),lb=2500,hb=500,ub=(()=>{class s extends ep{constructor(t,e,i=hb){super(lb),this.gt=t,this.f=e,this.Z0=i,this.Ui=!1,this.Wa=void 0,this.Nu=!0}onStart(){this.tC()}onStop(){this.buffer.reset(),this.Mu&&window.csClearInterval(this.Mu)}sendToParent(t,e){var i;if(this.eC()){(i=this.ku)===null||i===void 0||i.call(this,t,e);return}if(this.sC(t)){let n=this.buildChildBaseMessage(t,e);this.buffer.addMessage(n)}}eC(){return this.Ui&&this.Nu}sC(t){return!this.Ui||t===z.Commands}onWebViewEvent(t){this.ku=t}setAnalyticsStatus(t){this.Nu=t,this.Nu&&this.iC()}sendAllMessagesFromBuffer(){var t;let e=this.buffer.getMessages();for(let i of e)(t=this.ku)===null||t===void 0||t.call(this,i.type,i.content);this.buffer.reset()}iC(){var t;if(!this.Ui)return;let e=this.buffer.getMessages();for(let i of e)i.type===z.Commands&&((t=this.ku)===null||t===void 0||t.call(this,i.type,i.content));this.buffer.reset()}buildChildBaseMessage(t,e){return{type:t,content:e}}tC(){this.Ui=Bt.isCSJavascriptBridgeDefined(),this.Ui?this.xm():this.Mu=window.csSetInterval(()=>{this.Ui=Bt.isCSJavascriptBridgeDefined(),this.Ui&&(this.xm(),window.csClearInterval(this.Mu))},this.Z0)}xm(){this.rC(),this.Wa=Bt.getBridgeVersion(),this.Wa===null?this.sendAllMessagesFromBuffer():this.Wa>=Hw?(this.nC(),Bt.notifyIsReadyForTracking()):Y.warn(`bridge version ${this.Wa} is not supported`)}rC(){let t={message:csJSON.stringify(this.f),errorCode:"TAG_CONFIGURATION",level:Et.critical};Bt.sendLog(t)}nC(){this.gt.emitStopAnalytics()}}return s})(),db=(()=>{class s{constructor(){this.Ir=null}getRecordingContext(){return this.Ir===null?{isRecording:!1}:this.Ir}setRecordingContext(t){this.Ir=t}}return s})();var pb=(()=>{class s{constructor(){this.Ka={started:!1,useAnonymization:!0}}getSensitiveStatus(){return this.Ka}setSensitiveStatus(t){this.Ka=t}getElementSensitiveStatus(t){return this.Ka.started?W.isMaskedElement(t)||W.isMaskedElementChild(t)?fe.MASKED:fu.shouldEncrypt(t)?fe.ENCRYPTED:Ps.isEditableNode(t)?fe.ANONYMIZED:this.Ka.useAnonymization?cs.isWhitelistedElement(t)?fe.CAPTURED:fe.ANONYMIZED:fe.CAPTURED:fe.ANONYMIZED}}return s})(),fb=(()=>{class s{constructor(t,e,i){this.f=t,this.mt=e,this.O=i}init(){wi.isSupported()&&wi.setDigestSalt(this.f.projectId.toString());let t,e,i,n,o,c,u,d,S;this.O.schedule(()=>{t=new Zd(this.O),e=new fw,i=new db,n=new pb;let f=[Jn.UXA];this.mt.isInWebViewContext()?(window.cs_wvt=window.cs_wvt||[],csArray.prototype.push.call(f,Jn.WVT),o=new ub(e,this.f)):o=new vw(this.f,t,i,n,e),c=new Lc(f)}),this.O.schedule(()=>{u=new mw(c,o),d=new gw(u)}),this.O.schedule(()=>{d.init()}),this.O.schedule(()=>{this.f.implementations&&(S=new Jd(this.f.implementations,c,this.O),S.init(),t.addListener(S))}),this.O.schedule(()=>{}),this.O.schedule(()=>{t.addListener(d)}),this.O.schedule(()=>{t.emitInitTracking()}),this.O.schedule(()=>{new cb(e,t,this.f,o,i,c,this.mt,this.O,n).start()})}}return s})(),gb=(()=>{class s{constructor(t,e,i){this.f=t,this.mt=e,this.us=i}start(){var t,e,i,n,o;if(window.UXAnalytics)return;window.UXAnalytics={};let c=new cu(!!(!((t=this.f.taskSchedulerOptions)===null||t===void 0)&&t.enabled),(e=this.f.taskSchedulerOptions)===null||e===void 0?void 0:e.maxProcessingTime,(i=this.f.taskSchedulerOptions)===null||i===void 0?void 0:i.waitDuration),u=new sg(this.mt,this.f);u.init();let d=new rg(this.f,u);if(this.mt.isTopWindowTracker()&&d.canTrack()){if(!((n=window.CSProtectnativeFunctionsLogs)===null||n===void 0)&&n.Warning&&Y.warn(`protectNativeFunctions failed: ${window.CSProtectnativeFunctionsLogs.Warning}`),!((o=window.CSProtectnativeFunctionsLogs)===null||o===void 0)&&o.Critical){Y.error(`protectNativeFunctions failed: ${window.CSProtectnativeFunctionsLogs.Critical}`);return}tg();let f=new Zd(c),_=new ow(this.f,u,this.us,c,f);this.f.isQuotaEnabled()?_.initWithQuota():_.init()}else!this.mt.isTopWindowTracker()&&d.canTrackInChild()&&new fb(this.f,this.mt,c).init();let S=csString.prototype.indexOf.call(window.location.href,"csDebug=1")>-1;window.UXAnalytics={Sensitive:{isNodeSensitive(f){return W.isMaskedElement(f)||W.isMaskedElementChild(f)},isAttributeSensitive(f,_){return W.isMaskedAttribute(f,_)},getSensitiveAttributes(f){return zn(f.attributes,_=>W.isMaskedAttribute(f,_.name))}},Console:{warn(f){S&&console.warn("cs.tracking.warning",f)},error(f){S&&console.error("cs.tracking.error",f)}},Version:oc},window.CSFrameCommunication||(window.CSFrameCommunication=Nn,Nn.isActivable()&&Nn.waitForConnection(),this.f.isCsCrosswritingHeap()&&Nn.waitForHeapVisualLabeler(this.f.getHeapWebAppUri()))}}return st([se("main.start"),G("main.start")],s.prototype,"start",null),s})(),mb=(()=>{class s{constructor(){}send(t,e,i=Et.warn){let n={message:t,errorCode:e,level:i};Bt.sendLog(n)}}return s})(),yb=(()=>{class s{constructor(t,e,i){this.oC=t,this.xu=e,this.Ja=i,this.Vu=!1,this.Uu=!1,this.ju=[],this.push=n=>{try{if(!this.Vu)return csArray.prototype.push.call(this.ju,n),this.aC();this.co&&this.Hu&&(this.co.setLevel(n.level),this.Hu.captureException(n.error,void 0,this.co))}catch{}},this.cC=()=>{var n;try{this.Vu=!0,this.Qa(),this.co=this.xu(),this.Hu=(n=this.co)===null||n===void 0?void 0:n.getClient(),this.Tl()}catch{}},this.qo=()=>{try{this.Qa(),this.Ja&&this.Ja()}catch{}},this.Qa=()=>{try{this.Uu=!1,this.Ps&&(this.Ps.removeEventListener("abort",this.Qa),this.Ps.removeEventListener("error",this.Qa))}catch{}},this.Tl=()=>{var n;for(let o=0;o{var n;this.Vu||this.Uu||(this.Uu=!0,this.Ps=document.createElement("script"),this.Ps.src=this.oC,this.Ps.crossOrigin="anonymous",this.Ps.addEventListener("load",this.cC,{once:!0,passive:!0}),this.Ps.addEventListener("abort",this.qo),this.Ps.addEventListener("error",this.qo),(n=document.getElementsByTagName("head")[0])===null||n===void 0||n.appendChild(this.Ps))}}}return s})(),Eb={[Et.debug]:"debug",[Et.warn]:"warning",[Et.implementation]:"log",[Et.error]:"error",[Et.critical]:"fatal"},Sb=5,vb=(()=>{class s{constructor(t,e,i){this.f=t,this.us=e,this.Bu=i,this.N=new ai,this.Vm=0,this.xu=()=>{if(window.UXAnalytics.Sentry)try{let n=this.f.environment,o=window.UXAnalytics.Sentry.init({dsn:this.f.getSentryDSNUri(),environment:n,sampleRate:1,release:`csq-lite-tag-${oc}${n==="production"?"":`-${n}`}`,dist:n,beforeSend:u=>({...u,message:this.N.anonymizePII(u.message||"")})}),c=this.Or();return o.setContext("Session Data",this.Or()),o.setTags({projectId:c.projectId}),o.setUser({id:c.projectId}),o}catch(n){this.Bu.send(`Error initializing Sentry: ${n}`,"",Et.error);return}},this.Ja=()=>{this.Bu.send("Sentry failed to load","",Et.error)},this.lC=new yb(this.f.getSentryFileUri(),this.xu,this.Ja)}Or(){let t=this.us.getVisitorService(),e=t==null?void 0:t.getVisitor(),i=this.us.getSessionService(),n=i==null?void 0:i.getSession();return{projectId:this.f.projectId,sessionNumber:e==null?void 0:e.visitsCount,pageNumber:n==null?void 0:n.pageNumber}}hC(t){return this.Vm-1}send(t,e="",i=Et.warn){if(this.hC(i))return this.Vm++,this.lC.push({error:typeof t=="string"?new Error(t):t,level:Eb[i],code:e});this.Bu.send(t,e,i)}}return s})(),_b=(()=>{class s{constructor(t,e,i){this.B=t,this.N=e,this.uC=i,this.Ct=[],this.Ie=null,this.dC=ac().v}Um(){this.Ct.length!==0&&(this.B.send({m:csArray.prototype.map.call(this.Ct,t=>({n:t.name,p:t.parameter,v:t.value})),p:this.N.anonymizePII(window.location.pathname),pid:this.uC,v:this.dC}),this.Ct=[])}push(t){if(csArray.prototype.push.call(this.Ct,...t),this.Ie&&(csClearTimeout(this.Ie),this.Ie=null),this.Ct.length>=s.MAX_QUEUE_SIZE){this.Um();return}this.Ie=window.csSetTimeout(()=>{this.Um(),this.Ie=null},s.DEBOUNCE_INTERVAL)}}return s.DEBOUNCE_INTERVAL=5e3,s.MAX_QUEUE_SIZE=100,s})();function wb(s,r){let t=s.validationRate/10,e=us.boolean(t);if((s.environment==="staging"||!1||e)&&!r.isInWebViewContext())try{let o=Ed.create(Y.warn,r.isTopWindowTracker()),u=new jh(o).create(s.getMetricsUri(),!0),d=new ai,S=new _b(u,d,s.projectId);bt.setService(S)}catch(o){Y.warn(`Error initializing metrics: ${o.message}`)}}function bb(){var s;let r=new Tf(window.CS_CONF);window._uxa=window._uxa||[],r.processOptionOverrides(window._uxa);let t=new Rf(window,r);t.init();let e=new Kf;if(Jp(Y),Y.computeIsActive(r.validationRate),t.isTopWindowTracker()){let n=new qf(r,e),o=r.useSentry?new vb(r,e,n):n;Y.setStrategy(o)}else if(t.isInIframeContext()){let n=new Xf(r);Y.setStrategy(n)}else if(t.isInWebViewContext()){let n=new mb;Y.setStrategy(n)}!((s=r==null?void 0:r.experimental)===null||s===void 0)&&s.disableMutationObserverProtection&&window.csMutationObserver&&(window.csMutationObserver=ni(window,"MutationObserver")),Zp(),wb(r,t),new gb(r,t,e).start()}window.CSCurrentScript=document.currentScript;csSetTimeout(()=>{try{Jf(bb)}catch{}});})(); // signature-6208fbc9fbd172bd6755f3582e4c8a7d45c35b8bdcf1eafd2455f4e60a1cce7a