1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,418452,61555,345355,e=>{"use strict";var t=e.i(449305);e.s(["displayAlreadyInitializedError",0,function(e,r){r.silentMultipleInit||t.display.error(`${e} is already initialized.`)}],418452);var r=e.i(628872);let n={GRANTED:"granted",NOT_GRANTED:"not-granted"};e.s(["TrackingConsent",0,n,"createTrackingConsentState",0,function(e){let t=new r.Observable;function i(){return e===n.GRANTED}return{tryToInit(t){e||(e=t)},onGrantedOnce(e){if(i())e();else{let r=t.subscribe(()=>{i()&&(e(),r.unsubscribe())})}},update(r){e=r,t.notify()},isGranted:i,observable:t}}],61555);var i=e.i(793018),o=e.i(38464);e.s(["bufferContextCalls",0,function(e,t,r){e.changeObservable.subscribe(()=>{let n=e.getContext();r.notify(e=>e[t].setContext(n))})},"defineContextMethod",0,function(e,t,r,n){return(0,o.monitor)((...o)=>(n&&(0,i.addTelemetryUsage)({feature:n}),e()[t][r](...o)))}],345355)},918420,e=>{"use strict";var t=e.i(12379),r=e.i(38464),n=e.i(449305);e.s(["defineGlobal",0,function(e,r,i){let o=e[r];o&&!o.q&&o.version&&n.display.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[r]=i,o?.q&&o.q.forEach(e=>(0,t.catchUserErrors)(e,"onReady callback threw an error:")())},"makePublicApi",0,function(e){let t={version:"7.3.0",onReady(e){e()},...e};return Object.defineProperty(t,"_setDebug",{get:()=>r.setDebugMode,enumerable:!1}),t}])},124385,e=>{"use strict";let t;var r=e.i(38464),n=e.i(917701),i=e.i(563746);function o(e,t,r,n){return a(e,[t],r,n)}function a(e,i,o,{once:s,capture:c,passive:l}={}){let u=(0,r.monitor)(e=>{(e.isTrusted||e.__ddIsTrusted||!1!==t)&&(s&&m(),o(e))}),d=l?{capture:c,passive:l}:c,f=window.EventTarget&&e instanceof EventTarget?window.EventTarget.prototype:e,p=(0,n.getZoneJsOriginalValue)(f,"addEventListener");function m(){let t=(0,n.getZoneJsOriginalValue)(f,"removeEventListener");i.forEach(r=>t.call(e,r,u,d))}return i.forEach(t=>p.call(e,t,u,d)),{stop:m}}e.s(["addEventListener",0,o,"addEventListeners",0,a,"isEventSupported",0,function(e,t){if(!e)return!1;try{return o(e,t,i.noop).stop(),!0}catch{return!1}},"setAllowUntrustedEvents",0,function(e){!0!==t&&(t=e??!1)}])},572528,e=>{"use strict";var t=e.i(917701),r=e.i(326856);e.s(["fetch",0,function(e,n){return(0,t.getZoneJsOriginalValue)(r.globalObject,"fetch")(e,n)}])},327117,e=>{"use strict";e.s(["ContextManagerMethod",0,{getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"},"CustomerContextKey",0,{userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"}])},797719,271019,287555,57329,256721,931675,568432,191819,901721,328861,93258,279710,337165,e=>{"use strict";let t,r;var n,i,o=e.i(449305),a=e.i(548544),s=e.i(563746);function c(e,t,r){if("object"!=typeof e||null===e)return JSON.stringify(e);let n=l(Object.prototype),i=l(Array.prototype),o=l(Object.getPrototypeOf(e)),a=l(e);try{return JSON.stringify(e,t,r)}catch{return"<error: unable to serialize object>"}finally{n(),i(),o(),a()}}function l(e){let t=e.toJSON;return t?(delete e.toJSON,()=>{e.toJSON=t}):s.noop}e.s(["detachToJsonMethod",0,l,"jsonStringify",0,c],271019);let u=220*a.ONE_KIBI_BYTE;function d(e,t=u){let r=l(Object.prototype),n=l(Array.prototype);try{let r=[],n=new WeakMap,i=f(e,"$",void 0,r,n),o=JSON.stringify(i),a=o?o.length:0;if(a>t)return void p(t,"discarded",e);for(;r.length>0&&a<t;){let i=r.shift(),o=0;if(Array.isArray(i.source))for(let s=0;s<i.source.length;s++){let c=f(i.source[s],i.path,s,r,n);if(void 0!==c?a+=JSON.stringify(c).length:a+=4,a+=o,o=1,a>t){p(t,"truncated",e);break}i.target[s]=c}else for(let s in i.source)if(Object.prototype.hasOwnProperty.call(i.source,s)){let c=f(i.source[s],i.path,s,r,n);if(void 0!==c&&(a+=JSON.stringify(c).length+o+s.length+3,o=1),a>t){p(t,"truncated",e);break}i.target[s]=c}}return i}finally{r(),n()}}function f(e,t,r,n,i){let o=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch{}return e}(e);if(!o||"object"!=typeof o){var a;return"bigint"==typeof(a=o)?`[BigInt] ${a.toString()}`:"function"==typeof a?`[Function] ${a.name||"unknown"}`:"symbol"==typeof a?`[Symbol] ${a.description||a.toString()}`:a}let s=function e(t){try{if(t instanceof Event){var r;return{type:(r=t).type,isTrusted:r.isTrusted,currentTarget:r.currentTarget?e(r.currentTarget):null,target:r.target?e(r.target):null}}if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;let n=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(n?.[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}(o);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(i.has(e))return`[Reference seen at ${i.get(e)}]`;let c=void 0!==r?`${t}.${r}`:t,l=Array.isArray(o)?[]:{};return i.set(e,c),n.push({source:o,target:l,path:c}),l}function p(e,t,r){o.display.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,r)}function m(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function g(e){return"object"===m(e)}function y(e){let r=[],n=w(e,"stack"),i=String(e);if(n?.startsWith(i)&&(n=n.slice(i.length)),n&&n.split("\n").forEach(e
1=>{let t=function(e){let t=h.exec(e);if(!t)return;let r=t[2]?.indexOf("native")===0,n=t[2]?.indexOf("eval")===0,i=E.exec(t[2]);return n&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}(e)||function(e){let t=S.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:t[2]}}(e)||function(e){let t=T.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){let t=_.exec(e);if(!t)return;let r=t[3]&&t[3].indexOf(" > eval")>-1,n=C.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}(e);t&&(!t.func&&t.line&&(t.func="?"),r.push(t))}),r.length>0&&function(){if(void 0!==t)return t;let[e,r]=[class extends Error{constructor(){super(),this.name="Error"}},Error].map(e=>new e);return t=A(Object.getPrototypeOf(e))&&r.stack!==e.stack}()&&e instanceof Error){let t=[],n=e;for(;(n=Object.getPrototypeOf(n))&&A(n);){let e=n.constructor?.name||"?";t.push(e)}for(let e=t.length-1;e>=0&&r[0]?.func===t[e];e--)r.shift()}return{message:w(e,"message"),name:w(e,"name"),stack:r}}e.s(["sanitize",0,d],287555),e.s(["getType",0,m,"isIndexableObject",0,g],57329);let v="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",b="(?::(\\d+))",h=RegExp(`^\\s*at (.*?) ?\\(${v}${b}?${b}?\\)?\\s*$`,"i"),E=RegExp(`\\((\\S*)${b}${b}\\)`),S=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${v}${b}?${b}??\\s*$`,"i"),T=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,_=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,C=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function w(e,t){return g(e)&&"string"==typeof e[t]?e[t]:void 0}let O=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function A(e){return String(e.constructor).startsWith("class ")}e.s(["computeStackTrace",0,y,"computeStackTraceFromOnErrorMessage",0,function(e,t,r,n){var i;let o,a;if(void 0===t)return;let{name:s,message:c}=(i=e,"[object String]"===({}).toString.call(i)&&([,o,a]=O.exec(i)),{name:o,message:a});return{name:s,message:c,stack:[{url:t,column:n,line:r}]}}],256721);var I=e.i(38464);function x(e){let t=k(e);return e.stack.forEach(e=>{let r="?"===e.func?"<anonymous>":e.func,n=e.args&&e.args.length>0?`(${e.args.join(", ")})`:"",i=e.line?`:${e.line}`:"",o=e.line&&e.column?`:${e.column}`:"";t+=` 2 at ${r}${n} @ ${e.url}${i}${o}`}),t}function k(e){return`${e.name||"Error"}: ${e.message}`}e.s(["createHandlingStack",0,function(e){let t,r=Error(e);return r.name="HandlingStack",(0,I.callMonitored)(()=>{let e=y(r);e.stack=e.stack.slice(2),t=x(e)}),t},"formatErrorMessage",0,k,"toStackTraceString",0,x],931675);let R="No stack, consider using an instance of Error";function N({originalError:e,stackTrace:t,source:r,useFallbackStack:n=!0,nonErrorPrefix:i}){var o,a,s,l;let u=D(e);return!t&&u&&(t=y(e)),{source:r,type:t?t.name:void 0,message:(o=t,a=u,s=i,l=e,o?.message&&o?.name?o.message:a?"Empty message":s?`${s} ${c(d(l))}`:c(d(l))),stack:t?x(t):n?R:void 0}}function D(e){try{return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}catch{return!1}}function M(e,t){return Object.keys(e).some(r=>e[r]===t)}e.s(["NO_ERROR_STACK_PRESENT_MESSAGE",0,R,"computeRawError",0,function({stackTrace:e,originalError:t,handlingStack:r,componentStack:n,startClocks:i,nonErrorPrefix:o,useFallbackStack:a=!0,source:s,handling:c}){var l;let u=N({originalError:t,stackTrace:e,source:s,useFallbackStack:a,nonErrorPrefix:o});return{startClocks:i,handling:c,handlingStack:r,componentStack:n,originalError:t,...u,causes:D(t)?function(e,t){let r=[],n=e.cause;for(;null!=n&&r.length<10;){let e=N({originalError:n,source:t,useFallbackStack:!1});r.push(e),n=D(n)?n.cause:void 0}return r.length?r:void 0}(t,s):void 0,fingerprint:D(l=t)&&"dd_fingerprint"in l?String(l.dd_fingerprint):void 0,context:function(e){if(g(e))return e.dd_context}(t)}},"isError",0,D],797719),e.s(["isEmptyObject",0,function(e){return 0===Object.keys(e).length},"mapValues",0,function(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n]);return r},"objectHasValue",0,M,"shallowClone",0,function(e){return{...e}},"tryJsonParse",0,function(e){try{return JSON.parse(e)}catch{}}],568432),(n=i||(i={})).TRACK_INTAKE_REQUESTS="track_intake_requests",n.PARTIAL_VIEW_UPDATES="partial_view_updates";let U=new Set;e.s(["ExperimentalFeature",0,i,"getExperimentalFeatures",0,function(){return U},"initFeatureFlags",0,function(e){Array.isArray(e)&&e.filter(e=>
2M(i,e)).forEach(e=>{U.add(e)})},"isExperimentalFeatureEnabled",0,function(e){return U.has(e)}],191819);var L=e.i(901069),P=e.i(326856);function $(e){return V(e,P.globalObject.location?.href).href}function V(e,t){let{URL:n}=function(){if(!r){let e,t;try{(e=document.createElement("iframe")).style.display="none",document.body.appendChild(e),t=e.contentWindow??P.globalObject}catch{t=P.globalObject}r={URL:t.URL},e?.remove()}return r}();try{return void 0!==t?new n(e,t):new n(e)}catch(e){throw Error(`Failed to construct URL: ${String(e)}`)}}function j(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,j)}e.s(["buildUrl",0,V,"getPathName",0,function(e){let t=V(e).pathname;return"/"===t[0]?t:`/${t}`},"isValidUrl",0,function(e){try{return!!V(e)}catch{return!1}},"normalizeUrl",0,$],901721);let K=/(\S+?)\s*=\s*(.*?)(?:;|$)/g;e.s(["findAllCommaSeparatedValues",0,function(e){let t=new Map;for(K.lastIndex=0;;){let r=K.exec(e);if(r){let e=r[1],n=r[2];t.has(e)?t.get(e).push(n):t.set(e,[n])}else break}return t},"findCommaSeparatedValue",0,function(e,t){for(K.lastIndex=0;;){let r=K.exec(e);if(r){if(r[1]===t)return r[2]}else break}},"findCommaSeparatedValues",0,function(e){let t=new Map;for(K.lastIndex=0;;){let r=K.exec(e);if(r)t.set(r[1],r[2]);else break}return t},"generateUUID",0,j,"safeTruncate",0,function(e,t,r=""){let n=e.charCodeAt(t-1),i=n>=55296&&n<=56319?t+1:t;return e.length<=i?e:`${e.slice(0,i)}${r}`}],328861);let B="datadoghq.com",F=["ddsource","dd-api-key","dd-request-id"];function q(e,t,r){return{build:(n,i)=>z({proxy:e.proxy,site:e.site,path:`/api/v2/${t}`,parameters:function({clientToken:e,source:t="browser"},r,n,{retry:i,encoding:o},a=[]){let s=[`ddsource=${t}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("7.3.0")}`,"dd-evp-origin=browser",`dd-request-id=${j()}`].concat(a);return o&&s.push(`dd-evp-encoding=${o}`),"rum"===r&&(s.push(`batch_time=${(0,L.timeStampNow)()}`,`_dd.api=${n}`),i&&s.push(`_dd.retry_count=${i.count}`,`_dd.retry_after=${i.lastFailureStatus}`)),s.join("&")}(e,t,n,i,r)}),trackType:t}}function z({proxy:e,site:t=B,path:r,parameters:n="",subdomain:i}){let o=r;if(n&&(o+=`?${n}`),"string"==typeof e){let t=`${$(e)}?ddforward=${encodeURIComponent(o)}`;return i&&(t+=`&ddforwardSubdomain=${i}`),t}if("function"==typeof e)return e({path:r,parameters:n,subdomain:i});let a=t.split("."),s=a.pop(),c=`browser-intake-${a.join("-")}.${s}`;return i&&(c=`${i}.${c}`),`https://${c}${o}`}function G(e,t){var r;let n=t?`${e}:${t}`:e;return(n.length>200||(r=n,RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(r)))&&o.display.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${o.MORE_DETAILS} ${o.DOCS_ORIGIN}/getting_started/tagging/#defining-tags`),n.replace(/,/g,"_")}e.s(["INTAKE_SITE_EU1",0,"datadoghq.eu","INTAKE_SITE_STAGING",0,"datad0g.com","INTAKE_SITE_US1",0,B,"INTAKE_SITE_US1_FED",0,"ddog-gov.com","INTAKE_SITE_US2_FED",0,"us2.ddog-gov.com","isIntakeUrl",0,function(e){return F.every(t=>e.includes(t))}],93258),e.s(["buildEndpointUrl",0,z,"createEndpointBuilder",0,q,"createReplicaEndpointBuilder",0,function({replica:e,proxy:t,source:r},n){if(e)return q({clientToken:e.clientToken,proxy:t,source:r,site:B},n,"rum"===n?[`application.id=${e.applicationId}`]:void 0)}],279710),e.s(["buildTags",0,function(e){let{env:t,service:r,version:n,datacenter:i,sdkVersion:o,variant:a}=e,s=[G("sdk_version",o??"7.3.0")];return t&&s.push(G("env",t)),r&&s.push(G("service",r)),n&&s.push(G("version",n)),i&&s.push(G("datacenter",i)),a&&s.push(G("variant",a)),s}],337165)},793018,590336,753084,250066,401017,e=>{"use strict";let t;var r=e.i(901069),n=e.i(449305),i=e.i(797719),o=e.i(931675),a=e.i(191819),s=e.i(279710),c=e.i(337165),l=e.i(93258),u=e.i(628872),d=e.i(38464),f=e.i(253265),p=e.i(982067),m=e.i(271019),g=e.i(328275),y=e.i(256721),v=e.i(575599),b=e.i(841259),h=e.i(581028),E=e.i(299561),S=e.i(103067),T=e.i(326856),_=e.i(124385);let C={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function w(){return new u.Observable(e=>{if(T.isWorkerEnvironment)return;let{stop:t}=(0,_.addEventListeners)(window,["visibilitychange","freeze"],t=>{"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:C.HIDDEN}):"freeze"===t.type&&e.notify({reason:C.FROZEN})},{capture:!0}),r=(0,_.addEventListener)(window,"beforeunload",()=>{e.notify({reason:C.UNLOADING})}).stop;return()=>{t(),r()}})}function O(e){return(0,S.objectValues)(C).includes(e)}e.s(["PageExitReason",0,C,"createPageMayExitObservable",0,w,"isPageExitReason",0,O],590336);var A=e.i(548544);let I=256*A.ONE_KIBI_BYTE;function x({encoder:e,request:t,flushController:r}){let i={},o=r.flushObservable.subscribe(r=>(function(r){let n=(0,S.objectValues)(i).join("\n");i={};let o=O(r.reason),a=o?t.sendOnExit:t.send;if(o&&e.isAsync){let t=e.finishSync();t.outputBytesCount&&a(k(t));
2let r=[t.pendingData,n].filter(Boolean).join("\n");r&&a({data:r,bytesCount:(0,A.computeBytesCount)(r)})}else n&&e.write(e.isEmpty?n:` 3${n}`),e.finish(e=>{a(k(e))})})(r));function a(t,o){let a=(0,m.jsonStringify)(t),s=e.estimateEncodedBytesCount(a);if(s>=I)return void n.display.warn(`Discarded a message whose size was bigger than the maximum allowed size ${I/A.ONE_KIBI_BYTE}KiB. ${n.MORE_DETAILS} ${n.DOCS_TROUBLESHOOTING}/#technical-limitations`);if(void 0!==o){let t;void 0!==i[o]?t=s-e.estimateEncodedBytesCount(i[o]):(r.notifyBeforeAddMessage(s),t=0),i[o]=a,r.notifyAfterAddMessage(t)}else r.notifyBeforeAddMessage(s),e.write(e.isEmpty?a:` 4${a}`,e=>{r.notifyAfterAddMessage(e-s)})}return{flushController:r,add:a,upsert:a,stop:o.unsubscribe}}function k(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}function R(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(r,n){let i=(0,A.computeBytesCount)(r);t+=i,e+=r,n&&n(i)},finish(e){e(this.finishSync())},finishSync(){let r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount:e=>e.length}}e.s(["createBatch",0,x],753084),e.s(["createIdentityEncoder",0,R],250066);let N="DISCARDED",D="SKIPPED";e.s(["DISCARDED",0,N,"SKIPPED",0,D,"createHook",0,function(){let e=[];return{register:t=>(e.push(t),{unregister(){e=e.filter(e=>e!==t)}}),trigger(t){let r=[];for(let n of e){let e=n(t);if(e===N)return N;e!==D&&r.push(e)}return(0,g.combine)(...r)}}}],401017);var M=e.i(563746);let U="configuration",L="usage",P=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],$=[l.INTAKE_SITE_US1_FED,l.INTAKE_SITE_US2_FED];function V(){return t||(t=new u.BufferedObservable(100)),t}function j(e,t){V().notify({rawEvent:{type:"log",status:"error",...function(e){if((0,i.isError)(e)){var t;let r=(0,y.computeStackTrace)(e);return{error:{kind:r.name,stack:(0,o.toStackTraceString)(((t=r).stack=t.stack.filter(e=>!e.url||P.some(t=>e.url.startsWith(t))),t))},message:r.message}}return{error:{stack:i.NO_ERROR_STACK_PRESENT_MESSAGE},message:`Uncaught ${(0,m.jsonStringify)(e)}`}}(e),...t}})}e.s(["addTelemetryConfiguration",0,function(e){V().notify({rawEvent:{type:U,configuration:e}})},"addTelemetryDebug",0,function(e,t){(0,d.displayIfDebugEnabled)(n.ConsoleApiName.debug,e,t),V().notify({rawEvent:{type:"log",message:e,status:"debug",...t}})},"addTelemetryError",0,j,"addTelemetryMetrics",0,function(e,t){V().notify({rawEvent:{type:"log",message:e,status:"debug",...t},metricName:e})},"addTelemetryUsage",0,function(e){V().notify({rawEvent:{type:L,usage:e}})},"startTelemetry",0,function(e,t,n){let i=new u.Observable,{enabled:o,metricsEnabled:y}=function(e,t,n,i,o=1,s=15){let l={},u=!$.includes(t.site)&&(0,p.performDraw)(t.telemetrySampleRate),y={log:u,[U]:u&&(0,p.performDraw)(t.telemetryConfigurationSampleRate),[L]:u&&(0,p.performDraw)(t.telemetryUsageSampleRate),metric:u&&(0,p.performDraw)(o)},b={is_local_file:T.globalObject.location?.protocol==="file:",is_worker:T.isWorkerEnvironment},h=V();return h.subscribe(({rawEvent:o,metricName:u})=>{var d,p,h,E;let S;if(u&&!y.metric||!y[o.type])return;let T=u||o.status||o.type,_=l[T];if(_||(_=l[T]=new Set),_.size>=s)return;let C=(0,m.jsonStringify)(o);if(_.has(C))return;let w=n.trigger({startTime:(0,r.clocksNow)().relative});if(w===N)return;let O=(d=w,p=e,h=o,E=b,S={type:"telemetry",date:(0,r.clocksNow)().timeStamp,service:p,version:"7.3.0",source:"browser",_dd:{format_version:2},telemetry:(0,g.combine)(h,{runtime_env:E,connectivity:(0,v.getConnectivity)(),sdk_setup:"npm"}),ddtags:(0,c.buildTags)(t).join(","),experimental_features:Array.from((0,a.getExperimentalFeatures)())},(0,g.combine)(S,d));i.notify(O),(0,f.sendToExtension)("telemetry",O),_.add(C)}),h.unbuffer(),(0,d.startMonitorErrorCollection)(j),{enabled:u,metricsEnabled:y.metric}}(e,t,n,i),{stop:S}=function(e,t){let r=[];if((0,b.canUseEventBridge)()){let e=(0,b.getEventBridge)(),n=t.subscribe(t=>e.send("internal_telemetry",t));r.push(n.unsubscribe)}else{let n=[(0,s.createEndpointBuilder)(e,"rum")],i=(0,s.createReplicaEndpointBuilder)(e,"rum");i&&e.site===l.INTAKE_SITE_STAGING&&n.push(i);let o=x({encoder:R(),request:(0,E.createHttpRequest)(n,M.noop),flushController:(0,h.createFlushController)({pageMayExitObservable:w(),sessionExpireOb
4servable:new u.Observable})});r.push(o.stop);let a=t.subscribe(o.add);r.push(a.unsubscribe)}return{stop:()=>r.forEach(e=>e())}}(t,i);return{stop:S,enabled:o,metricsEnabled:y}}],793018)},12379,e=>{"use strict";var t=e.i(449305);e.s(["catchUserErrors",0,function(e,r){return(...n)=>{try{return e(...n)}catch(e){t.display.error(r,e)}}}])},449305,e=>{"use strict";var t;let r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},n=console,i={};Object.keys(r).forEach(e=>{i[e]=n[e]});let o=(t="Datadog Browser SDK:",{debug:i.debug.bind(n,t),log:i.log.bind(n,t),info:i.info.bind(n,t),warn:i.warn.bind(n,t),error:i.error.bind(n,t)}),a="https://docs.datadoghq.com",s=`${a}/real_user_monitoring/browser/troubleshooting`;e.s(["ConsoleApiName",0,r,"DOCS_ORIGIN",0,a,"DOCS_TROUBLESHOOTING",0,s,"MORE_DETAILS",0,"More details:","display",0,o,"globalConsole",0,n])},917701,e=>{"use strict";var t=e.i(326856);e.s(["getZoneJsOriginalValue",0,function(e,r){let n,i=t.globalObject;return i.Zone&&"function"==typeof i.Zone.__symbol__&&(n=e[i.Zone.__symbol__(r)]),n||(n=e[r]),n}])},326856,e=>{"use strict";let t=globalThis;e.s(["globalObject",0,t,"isWorkerEnvironment",0,"WorkerGlobalScope"in t])},636215,e=>{"use strict";e.s(["mockable",0,function(e){return e}])},38464,e=>{"use strict";let t;var r=e.i(449305);let n=!1;function i(e,t,r){try{return e.apply(t,r)}catch(e){o(e)}}function o(e){if(a(e),t)try{t(e)}catch(e){a(e)}}function a(...e){n&&r.display.error("[MONITOR]",...e)}e.s(["callMonitored",0,i,"displayIfDebugEnabled",0,a,"monitor",0,function(e){return function(...t){return i(e,this,t)}},"monitorError",0,o,"setDebugMode",0,function(e){n=e},"startMonitorErrorCollection",0,function(e){t=e}])},628872,e=>{"use strict";var t=e.i(38464),r=e.i(326856);function n(e){let n=r.globalObject.queueMicrotask;"function"==typeof n?n((0,t.monitor)(e)):Promise.resolve().then((0,t.monitor)(e))}class i{constructor(e){this.onFirstSubscribe=e,this.observers=[]}subscribe(e){return this.addObserver(e),{unsubscribe:()=>this.removeObserver(e)}}notify(e){this.observers.forEach(t=>t(e))}addObserver(e){this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(e){this.observers=this.observers.filter(t=>e!==t),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}e.s(["BufferedObservable",0,class extends i{constructor(e,t){super(),this.maxBufferSize=e,this.onDrop=t,this.buffer=[],this.droppedCount=0}notify(e){this.buffer.push(e),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(e)}subscribe(e){let t=!1;return n(()=>{for(let r of this.buffer){if(t)return;e(r)}t||this.addObserver(e)}),{unsubscribe:()=>{t=!0,this.removeObserver(e)}}}unbuffer(){n(()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0})}},"Observable",0,i,"mergeObservables",0,function(...e){return new i(t=>{let r=e.map(e=>e.subscribe(e=>t.notify(e)));return()=>r.forEach(e=>e.unsubscribe())})}],628872)},253265,982067,328275,575599,841259,e=>{"use strict";var t=e.i(326856);function r(e){return"number"==typeof e}e.s(["sendToExtension",0,function(e,r){let n=t.globalObject.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:r})}],253265),e.s(["isNumber",0,r,"isPercentage",0,function(e){return r(e)&&e>=0&&e<=100},"performDraw",0,function(e){return 0!==e&&100*Math.random()<=e},"round",0,function(e,t){return+e.toFixed(t)}],982067);var n=e.i(57329);function i(e,t,r=function(){let e=new WeakSet;return{hasAlreadyBeenSeen(t){let r=e.has(t);return r||e.add(t),r}}}()){if(void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t.source,t.flags);if(r.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){let n=Array.isArray(e)?e:[];for(let e=0;e<t.length;++e)n[e]=i(n[e],t[e],r);return n}let o="object"===(0,n.getType)(e)?e:{};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=i(o[e],t[e],r));return o}
4e.s(["combine",0,function(...e){let t;for(let r of e)null!=r&&(t=i(t,r));return t},"deepClone",0,function(e){return i(void 0,e)}],328275),e.s(["getConnectivity",0,function(){let e=t.globalObject.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection?.type?[e.connection.type]:void 0,effective_type:e.connection?.effectiveType}}],575599);var o=e.i(449305);function a(){let e=t.globalObject.DatadogEventBridge;if(e)return{getCapabilities:()=>JSON.parse(e.getCapabilities?.()||"[]"),getPrivacyLevel:()=>e.getPrivacyLevel?.(),getIsTraceSampled:()=>JSON.parse(e.getIsTraceSampled?.()||"null"),getAllowedWebViewHosts:()=>JSON.parse(e.getAllowedWebViewHosts()),send(t,r,n){e.send(JSON.stringify({eventType:t,event:r,view:n?{id:n}:void 0}))}}}e.s(["bridgeSupports",0,function(e){let t=a();return!!t&&t.getCapabilities().includes(e)},"canUseEventBridge",0,function(e=t.globalObject.location?.hostname){let r=a();return r?.getAllowedWebViewHosts().some(t=>(function(e,t){if(!t.includes("*"))return e===t||e.endsWith(`.${t}`);let r=t.split("*");if(2!==r.length)return o.display.error(`Invalid WebView host pattern "${t}": only one wildcard (*) is supported.`),!1;let[n,i]=r;return e.length>=n.length+i.length&&e.startsWith(n)&&e.endsWith(i)})(e,t))??!1},"getEventBridge",0,a],841259)},442504,e=>{"use strict";var t=e.i(917701),r=e.i(38464),n=e.i(326856);e.s(["clearInterval",0,function(e){(0,t.getZoneJsOriginalValue)(n.globalObject,"clearInterval")(e)},"clearTimeout",0,function(e){(0,t.getZoneJsOriginalValue)(n.globalObject,"clearTimeout")(e)},"setInterval",0,function(e,i){return(0,t.getZoneJsOriginalValue)(n.globalObject,"setInterval")((0,r.monitor)(e),i)},"setTimeout",0,function(e,i){return(0,t.getZoneJsOriginalValue)(n.globalObject,"setTimeout")((0,r.monitor)(e),i)}])},548544,e=>{"use strict";let t=/[^\u0000-\u007F]/;e.s(["ONE_KIBI_BYTE",0,1024,"ONE_MEBI_BYTE",0,1048576,"computeBytesCount",0,function(e){return t.test(e)?new TextEncoder().encode(e).length:e.length},"concatBuffers",0,function(e){if(1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}])},563746,e=>{"use strict";var t=e.i(442504);e.s(["noop",0,function(){},"throttle",0,function(e,r,n){let i,o,a=n?.leading===void 0||n.leading,s=n?.trailing===void 0||n.trailing,c=!1;return{throttled:(...n)=>{if(c){i=n;return}a?e(...n):i=n,c=!0,o=(0,t.setTimeout)(()=>{s&&i&&e(...i),c=!1,i=void 0},r)},cancel:()=>{(0,t.clearTimeout)(o),c=!1,i=void 0}}}])},581028,103067,e=>{"use strict";var t=e.i(901069),r=e.i(326856),n=e.i(628872),i=e.i(442504),o=e.i(299561);let a=30*t.ONE_SECOND,s=r.isWorkerEnvironment?1:50;e.s(["createFlushController",0,function({pageMayExitObservable:e,sessionExpireObservable:t}){let r,c,l=new n.Observable,u=e.subscribe(e=>{r=e.reason;try{l.notify(e.reason)}finally{r=void 0}g(e.reason)}),d=t.subscribe(()=>g("session_expire")),f=new n.Observable(()=>()=>{u.unsubscribe(),d.unsubscribe()}),p=0,m=0;function g(e){if(0===m)return;let t=m,r=p;m=0,p=0,(0,i.clearTimeout)(c),c=void 0,f.notify({reason:e,messagesCount:t,bytesCount:r})}return{flushObservable:f,preparePageExitFlushObservable:l,get messagesCount(){return m},notifyBeforeAddMessage(e){p+e>=o.RECOMMENDED_REQUEST_BYTES_LIMIT&&g(r??"bytes_limit"),m+=1,p+=e,void 0===c&&(c=(0,i.setTimeout)(()=>{g("duration_limit")},a))},notifyAfterAddMessage(e=0){p+=e,m>=s?g(r??"messages_limit"):p>=o.RECOMMENDED_REQUEST_BYTES_LIMIT&&g(r??"bytes_limit")}}}],581028),e.s(["findLast",0,function(e,t){for(let r=e.length-1;r>=0;r-=1){let n=e[r];if(t(n,r,e))return n}},"objectEntries",0,function(e){return Object.entries(e)},"objectValues",0,function(e){return Object.values(e)}],103067)},299561,470252,592568,e=>{"use strict";var t=e.i(572528),r=e.i(38464),n=e.i(628872),i=e.i(548544),o=e.i(901069),a=e.i(442504);function s(e){return e>=500}e.s(["isServerError",0,s,"tryToClone",0,function(e){try{return e.clone()}catch{return}}],470252);let c={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};e.s(["ErrorSource",0,c],592568);
4let l=80*i.ONE_KIBI_BYTE,u=20*i.ONE_MEBI_BYTE,d=o.ONE_MINUTE,f=o.ONE_SECOND;function p(e,t,r,n,i,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?m(e,t,r,o,{onSuccess:()=>g(0,t,r,n,i,o),onFailure:()=>{t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),function e(t,r,n,i,o){2===t.transportStatus&&(0,a.setTimeout)(()=>{m(t.queuedPayloads.first(),t,r,o,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=f,g(1,t,r,n,i,o)},onFailure:()=>{t.currentBackoffTime=Math.min(d,2*t.currentBackoffTime),e(t,r,n,i,o)}})},t.currentBackoffTime)}(t,r,n,i,o)}}):t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function m(e,t,r,n,{onSuccess:i,onFailure:o}){t.bandwidthMonitor.add(e),r(e,r=>{var a;t.bandwidthMonitor.remove(e),"opaque"!==(a=r).type&&(0===a.status&&!navigator.onLine||408===a.status||429===a.status||s(a.status))?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:r.status},n.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o()):(t.transportStatus=0,n.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),i())})}function g(e,t,r,n,a,s){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(a({message:`Reached max ${n} events size queued for upload: ${u/i.ONE_MEBI_BYTE}MiB`,source:c.AGENT,startClocks:(0,o.clocksNow)()}),t.queueFullReported=!0);let l=t.queuedPayloads;for(t.queuedPayloads=y();l.size()>0;)p(l.dequeue(),t,r,n,a,s)}function y(){let e=[];return{bytesCount:0,enqueue(t){return!this.isFull()&&(e.push(t),this.bytesCount+=t.bytesCount,!0)},first:()=>e[0],dequeue(){let t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:()=>e.length,isFull(){return this.bytesCount>=u}}}let v=16*i.ONE_KIBI_BYTE,b=!1;function h(e,n,i){let o=e.build("fetch",n);(0,t.fetch)(o,{method:"POST",body:n.data,mode:"cors"}).then((0,r.monitor)(e=>i?.({status:e.status,type:e.type}))).catch((0,r.monitor)(()=>i?.({status:0})))}e.s(["RECOMMENDED_REQUEST_BYTES_LIMIT",0,v,"createHttpRequest",0,function(e,t,i=v){let o=new n.Observable,a={transportStatus:0,currentBackoffTime:f,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=l&&this.ongoingRequestCount<32},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:y(),queueFullReported:!1};return{observable:o,send:r=>{for(let n of e)p(r,a,(e,t)=>{h(n,e,t)},n.trackType,t,o)},sendOnExit:t=>{for(let n of e)!function(e,t,n){if(n.bytesCount<t)try{let t=e.build("beacon",n);if(navigator.sendBeacon(t,n.data))return}catch(e){var i;i=e,b||(b=!0,(0,r.monitorError)(i))}h(e,n)}(n,i,t)}}}],299561)},393713,291495,450653,619623,75733,543757,534984,438137,158239,66272,278487,942637,380466,796411,748407,384641,444799,666824,e=>{"use strict";let t,r,n,i,o,a,s,c,l,u,d,f;var p,m,g=e.i(901069),y=e.i(327117),v=e.i(793018),b=e.i(328275),h=e.i(918420),E=e.i(38464),S=e.i(931675),T=e.i(287555),_=e.i(250066),C=e.i(418452),w=e.i(61555),O=e.i(345355),A=e.i(628872),I=e.i(636215),x=e.i(442504),k=e.i(563746);function R(e,t,r,{computeHandlingStack:n}={}){var i,o,a,s;let c=e[t];if("function"!=typeof c)if(!(t in e&&"string"==typeof t&&t.startsWith("on")))return{stop:k.noop};else c=k.noop;let l=!1,{stop:u}=(i=e,o=t,a=c,s=function(){var e,t,i;let o,a;if(l)return c.apply(this,arguments);let s=Array.from(arguments);return e=r,t={target:this,parameters:s,handlingStack:n?(0,S.createHandlingStack)("instrumented method"):void 0},i=()=>c.apply(this,s),(0,E.callMonitored)(e,null,[{...t,onPostCall:e=>{o=e}}]),a=i(),o&&(0,E.callMonitored)(o,null,[a]),a},i[o]=s,{stop:()=>{i[o]===s&&(i[o]=a)}});return{stop:()=>{l=!0,u()}}}e.s(["instrumentMethod",0,R,"instrumentSetter",0,function(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t);if(!n?.set||!n.configurable)return{stop:k.noop};let i=k.noop,o=(e,t)=>{(0,x.setTimeout)(()=>{o!==i&&r(e,t)},0)},a=function(e){n.set.call(this,e),o(this,e)};
4return Object.defineProperty(e,t,{set:a}),{stop:()=>{Object.getOwnPropertyDescriptor(e,t)?.set===a&&Object.defineProperty(e,t,n),o=i}}}],291495);var N=e.i(901721),D=e.i(326856),M=e.i(548544);async function U(e){let t=e.getReader(),r=[];for(;;){let e=await t.read();if(e.done)break;r.push(e.value)}return t.cancel().catch(k.noop),(0,M.concatBuffers)(r)}var L=e.i(470252);let P=[];function $({responseBodyAction:e}={}){return e&&P.push(e),t||(t=new A.Observable(e=>{if(!D.globalObject.fetch)return;let{stop:t}=R(D.globalObject,"fetch",t=>(function({parameters:e,onPostCall:t,handlingStack:r},n){let[i,o]=e,a=o?.method;void 0===a&&i instanceof Request&&(a=i.method);let s=void 0!==a?String(a).toUpperCase():"GET",c=i instanceof Request?i.url:(0,N.normalizeUrl)(String(i)),l={state:"start",init:o,input:i,method:s,startClocks:(0,g.clocksNow)(),url:c,handlingStack:r,isAbortedOnStart:i instanceof Request&&i.signal?.aborted||o?.signal?.aborted||!1};n.notify(l),e[0]=l.input,e[1]=l.init,t(e=>{V(n,e,l).catch(E.monitorError)})})(t,e),{computeHandlingStack:!0});return t})),t}async function V(e,t,r){let n;try{n=await t}catch(t){e.notify({...r,state:"resolve",status:0,isAborted:r.init?.signal?.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t});return}if(r.response=n,r.status=n.status,r.responseType=n.type,r.isAborted=!1,1===P.reduce((e,t)=>Math.max(e,t(r)),0)){let e=(0,L.tryToClone)(n);if(e?.body)try{let t=await U(e.body);r.responseBody=new TextDecoder().decode(t)}catch{}}e.notify({...r,state:"resolve"})}var j=e.i(124385);let K=new WeakMap;function B(){return r||(r="XMLHttpRequest"in D.globalObject?new A.Observable(e=>{let{stop:t}=R(XMLHttpRequest.prototype,"open",F),{stop:r}=R(XMLHttpRequest.prototype,"send",t=>{!function({target:e,parameters:[t],handlingStack:r},n){let i=K.get(e);if(!i)return;i.state="start",i.startClocks=(0,g.clocksNow)(),i.isAborted=!1,i.xhr=e,i.handlingStack=r,i.requestBody=t;let o=!1,{stop:a}=R(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&s()}),s=()=>{c(),a(),o||(o=!0,i.duration=(0,g.elapsed)(i.startClocks.timeStamp,(0,g.timeStampNow)()),i.status=e.status,"string"==typeof e.response&&(i.responseBody=e.response),n.notify({...i,state:"complete"}))},{stop:c}=(0,j.addEventListener)(e,"loadend",s);n.notify(i)}(t,e)},{computeHandlingStack:!0}),{stop:n}=R(XMLHttpRequest.prototype,"abort",q);return()=>{t(),r(),n()}}):new A.Observable),r}function F({target:e,parameters:[t,r]}){K.set(e,{state:"open",method:String(t).toUpperCase(),url:(0,N.normalizeUrl)(String(r))})}function q({target:e}){let t=K.get(e);t&&(t.isAborted=!0)}var z=e.i(449305),G=e.i(256721),H=e.i(797719),W=e.i(592568);function Y(){return new A.Observable(e=>{var t,r;let n=(t,r)=>{let n=(0,H.computeRawError)({stackTrace:r,originalError:t,startClocks:(0,g.clocksNow)(),nonErrorPrefix:"Uncaught",source:W.ErrorSource.SOURCE,handling:"unhandled"});e.notify(n)},{stop:i}=(t=n,R(D.globalObject,"onerror",({parameters:[e,r,n,i,o]})=>{let a;(0,H.isError)(o)||(a=(0,G.computeStackTraceFromOnErrorMessage)(e,r,n,i)),t(o??e,a)})),{stop:o}=(r=n,(0,j.isEventSupported)(D.globalObject.window,"unhandledrejection")?R(D.globalObject,"onunhandledrejection",({parameters:[e]})=>{r(e.reason||"Empty reason")}):{stop:k.noop});return()=>{i(),o()}})}var J=e.i(271019);let X={};var Z=e.i(328861);let Q={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",VIEW_UPDATE:"view_update",RESOURCE:"resource",VITAL:"vital"},ee={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},et={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",SESSION_RENEWAL:"session_renewal",BF_CACHE:"bf_cache"},er={CLICK:"click",CUSTOM:"custom",TAP:"tap",SCROLL:"scroll",SWIPE:"swipe",APPLICATION_START:"application_start",BACK:"back"},en={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},ei={DURATION:"duration",OPERATION_STEP:"operation_step"};e.s(["ActionType",0,er,"FrustrationType",0,en,"RumEventType",0,Q,"RumLongTaskEntryType",0,ee,"ViewLoadingType",0,et,"VitalType",0,ei],450653);var eo=e.i(57329);function ea(e){let t=(0,eo.getType)(e);return"string"===t||"function"===t||e instanceof RegExp}function es(e,t,r=!1){return e.some(e=>{try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.lastIndex=0,e.test(t);if("string"==typeof e)return r?t.startsWith(e):e===t}catch(e){z.display.error(e)}return!1})}var ec=e.i(12379),el=e.i(982067),eu=e.i(568432);function ed(e,t,r=0,n){let i=new Date;i.setTime(i.getTime()+r);let o=`expires=${i.toUTCString()}`,a=n?.crossSite?"none":"strict",s=n?.domain?`;domain=${n.domain}`:"",c=n?.secure?";secure":"",l=n?.partitioned?";partitioned":"";document.cookie=`${e}=${t};${o};path=/;samesite=${a}${s}${c}${l}`}function ef(e){let t=(0,Z.findCommaSeparatedValue)(document.cookie,e);if(""!==t)return t}function ep(e){return(0,Z.findAllCommaSeparatedValues)(document.cookie).get(e)||[]}function em(e){return n||(n=(0,Z.findCommaSeparatedValues)(document.cookie)),n.get(e)}let eg=["chrome-extension://","moz-extension://"];function ey(e){return eg.some(t=>e.includes(t))}var ev=e.i(93258);let eb={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},eh={ALL:"all",SAMPLED:"sampled"};function eE(e,t){return null==e||"string"==typeof e||(z.display.error(`${t} must be defined as a string`),!1)}function eS(e,t){return void 0===e||!!(0,el.isPercentage)(e)||(z.display.error(`${t} Sample Rate should be a number between 0 and 100`),!1)}function eT(e){return Array.isArray(e)&&e.length>0}var e_=e.i(572528),eC=e.i(279710);function ew(e,t){t.lastIndex=0;let r=t.exec(e);if(!r)return;let[n,i]=r;return i||n}let eO=/[a-zA-Z_$]/,eA=/[a-zA-Z0-9_$]/,eI=/[0-9]/,ex=/[a-fA-F0-9]/,ek={0:()=>
4!1,1:()=>!1,2:e=>eO.test(e),3:e=>eA.test(e),4:e=>"."===e,5:e=>"["===e,6:e=>"]"===e,7:e=>eI.test(e),8:e=>"'\"".includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>"\\"===e,12:(e,t)=>void 0===t.escapeSequence?`${t.quote}/\\bfnrtu`.includes(e):!!t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5&&ex.test(e)},eR={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},eN=[2,3,7,10],eD=[4,5,6],eM={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},eU={hit:"success",miss:"missing",error:"failure"},eL=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function eP(e,t){let r,n=eV(),i=await eK(e);return i.ok?(n.increment("fetch","success"),r=e$(e,i.value,t,n)):(n.increment("fetch","failure"),z.display.error(i.error)),(0,v.addTelemetryMetrics)("remote configuration metrics",{metrics:n.get()}),r}function e$(e,t,r,n){let i={...e};return eL.forEach(e=>{e in t&&(i[e]=o(t[e]))}),Object.keys(r).forEach(e=>{var n;void 0!==t[e]&&(n=r[e],t[e].forEach(({key:e,value:t})=>{n.setContextProperty(e,o(t))}))}),i;function o(e){if(Array.isArray(e))return e.map(o);if((0,eo.isIndexableObject)(e)){if("rcSerializedType"in e){let r=e.rcSerializedType;switch(r){case"string":return e.value;case"regex":return ej(e.value);case"dynamic":var t=e;let i,o=t.strategy;switch(o){case"cookie":i=function({name:e}){let t=ef(e);return n.increment("cookie",void 0!==t?"success":"missing"),t}(t);break;case"dom":i=function({selector:e,attribute:t}){var r,i;let o;try{o=document.querySelector(e)}catch{z.display.error(`Invalid selector in the remote configuration: '${e}'`),n.increment("dom","failure");return}if(!o)return void n.increment("dom","missing");if(r=o,i=t,"password"===r.getAttribute("type")&&"value"===i){z.display.error(`Forbidden element selected by the remote configuration: '${e}'`),n.increment("dom","failure");return}let a=void 0!==t?o.getAttribute(t):o.textContent;return null===a?void n.increment("dom","missing"):(n.increment("dom","success"),a)}(t);break;case"js":i=function({path:e}){let t=window,r=function(e){let t,r=[],n=0,i={quote:void 0,escapeSequence:void 0},o="";for(let c of e){if(!(t=eR[n].find(e=>ek[e](c,i))))return[];if(void 0!==i.escapeSequence&&12!==t){var a,s;if(a=i.escapeSequence,!("\"'/\\bfnrt".includes(a)||a.startsWith("u")&&5===a.length))return[];o+=(s=i.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(s.slice(1),16)):eM[s],i.escapeSequence=void 0}eN.includes(t)?o+=c:eD.includes(t)&&""!==o?(r.push(o),o=""):12===t?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${c}`:c:8===t?i.quote=c:9===t&&(i.quote=void 0),n=t}return eR[n].includes(1)?(""!==o&&r.push(o),r):[]}(e);if(0===r.length){z.display.error(`Invalid JSON path in the remote configuration: '${e}'`),n.increment("js","failure");return}for(let i of r){if(!(i in t))return void n.increment("js","missing");try{t=t[i]}catch(t){z.display.error(`Error accessing: '${e}'`,t),n.increment("js","failure");return}}return n.increment("js","success"),t}(t);break;case"localStorage":i=function({key:e}){let t;try{t=localStorage.getItem(e)}catch{n.increment("localStorage","failure");return}return n.increment("localStorage",null!==t?"success":"missing"),t??void 0}(t);break;default:z.display.error(`Unsupported remote configuration: "strategy": "${o}"`);return}let a=t.extractor;return void 0!==a&&"string"==typeof i?function(e,t){let r=ej(e.value);if(void 0!==r)return ew(t,r)}(a,i):i;default:z.display.error(`Unsupported remote configuration: "rcSerializedType": "${r}"`);return}}return(0,eu.mapValues)(e,o)}return e}}function eV(){let e={fetch:{}};return{get:()=>e,increment:(t,r)=>{e[t]||(e[t]={}),e[t][r]||(e[t][r]=0),e[t][r]=e[t][r]+1}}}function ej(e){try{return new RegExp(e)}catch{z.display.error(`Invalid regex in the remote configuration: '${e}'`)}}async function eK(e){let t;try{t=await (0,e_.fetch)(function(e){if(e.remoteConfigurationProxy)return e.remoteConfigurationProxy;let t=eB(e);return(0,eC.buildEndpointUrl)({site:e.site,path:`/v1/${encodeURIComponent(t)}.json`,subdomain:"sdk-configuration"})}(e))}catch{t=void 0}if(!t?.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let r=await t.json();return r.rum?{ok:!0,value:r.rum}:{ok:!1,error:Error("No remote configuration for RUM.")}}function eB(e){return e.remoteConfiguration?.id??e.remoteConfigurationId}let eF=["tracecontext","datadog"],eq=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache"];function ez(e){return ea(e)?{match:e,propagatorTypes:eF}:(0,eo.isIndexableObject)(e)&&ea(e.match)&&(null===e.propagatorTypes||void 0===e.propagatorTypes||Array.isArray(e.propagatorTypes))?{match:e.match,propagatorTypes:e.propagatorTypes||eF}:void 0}let eG=["request","response","any"];function eH(e,t,r){if(e)for(let n of e){let e=n[t];e&&e(r)}}var eW=e.i(841259);let eY="datadog-synthetics-",eJ=`${eY}public-id`,eX=`${eY}result-id`,eZ=`${eY}injects-rum`,eQ=`${eY}rum-context`;function e0(){return!D.isWorkerEnvironment&&!!(D.globalObject._DATADOG_SYNTHETICS_INJECTS_RUM||em(eZ))}function e1(){var e;let t=function(){let e=D.globalObject._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;let t=em(eQ);return t?(0,eu.tryJsonParse)(decodeURIComponent(t)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||em(eJ),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||em(eX)}}();return"object"==typeof(e=t)&&null!==e&&"string"==typeof e.test_id&&"string"==typeof e.result_id?t:void 0}var e2=e.i(191819);let e5=[];function e3(e,t,r){var n,i;if("u"<typeof window||"u"<typeof localStorage)return;let o=(n=t,i=r,`_dd_c_${n}_${i}`);e5.push((0,j.addEventListener)(window,"storage",({key:t})=>{o===t&&e.setContext(s())})),e.changeObservable.subscribe(function(){localStorage.setItem(o,JSON.stringify(e.getContext()))});let a=(0,b.combine)(s(),e.getContext());function s(){let e=localStorage.getItem(o);return e?JSON.parse(e):{}}(0,eu.isEmptyObject)(a)||e.setContext(a)}var e4=e.i(401017);function e6(e,t,r){let n={...e};for(let[e,{required:i,type:o}]of Object.entries(t))"string"!==o||e7(n[e])||(n[e]=String(n[e])),i&&e7(n[e])&&z.display.warn(`The property ${e} of ${r} is required; context will not be sent to the intake.`);return n}function e7(e){return null==e||""===e}function e9(e="",{propertiesConfig:t={}}={}){let r={},n=new A.Observable,i={getContext:()=>(0,b.deepClone)(r),setContext:o=>{let a;((a="object"===(0,eo.getType)(o))||z.display.error("Unsupported context:",o),a)?r=(0,T.sanitize)(e6(o,t,e)):i.clearContext(),n.notify()},setContextProperty:(i,o)=>{r=(0,T.sanitize)(e6({...r,[i]:o},t,e)),n.notify()},removeContextProperty:i=>{delete r[i],e6(r,t,e),n.notify()},clearContext:()=>{r={},n.notify()},changeObservable:n};return i}function e8(){return e9("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function te(){return e9("global context")}function tt(){return e9("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}let tr=1/0,tn=g.ONE_MINUTE,ti=new Set;function to({expireDelay:e,maxEntries:t}){let r=[];o||(o=(0,x.setInterval)(()=>
4void ti.forEach(e=>e()),tn));let n=()=>{let t=(0,g.relativeNow)()-e;for(;r.length>0&&r[r.length-1].endTime<t;)r.pop()};return ti.add(n),{add:function(e,n){let i={value:e,startTime:n,endTime:tr,remove:()=>{var e;let t;(t=(e=r).indexOf(i))>=0&&e.splice(t,1)},close:e=>{i.endTime=e}};return t&&r.length>=t&&r.pop(),r.unshift(i),i},find:function(e=tr,t={returnInactive:!1}){for(let n of r)if(n.startTime<=e){if(t.returnInactive||e<=n.endTime)return n.value;break}},closeActive:function(e){let t=r[0];t?.endTime===tr&&t.close(e)},findAll:function(e=tr,t=0){let n=(0,g.addDuration)(e,t);return r.filter(t=>t.startTime<=n&&e<=t.endTime).map(e=>e.value)},findAllEntries:function(e=tr,t=0){let n=(0,g.addDuration)(e,t);return r.filter(t=>t.startTime<=n&&e<=t.endTime)},getEntries:function(e){return r.filter(t=>t.startTime===e)},reset:function(){r=[]},stop:function(){ti.delete(n),0===ti.size&&o&&((0,x.clearInterval)(o),o=void 0)}}}function ta(e,t){return e*t/100}e.s(["createValueHistory",0,to],619623);let ts=new Map;function tc(e,t){var r,n;let i;if(100===t)return!0;if(0===t)return!1;let o=ts.get(t);if(e===o?.sessionId)return o.decision;let a=(r=BigInt(`0x${e.split("-")[4]}`),n=t,Number(0xf6b75ab2bc471c7n*r%(i=2n**64n))<=n/100*Number(i));return ts.set(t,{sessionId:e,decision:a}),a}e.s(["correctedChildSampleRate",0,ta,"isSampled",0,tc],75733);
4let tl=4*g.ONE_HOUR,tu=15*g.ONE_MINUTE,td=g.ONE_YEAR,tf={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"};e.s(["SESSION_COOKIE_EXPIRATION_DELAY",0,td,"SESSION_EXPIRATION_DELAY",0,tu,"SESSION_TIME_OUT_DELAY",0,tl,"SessionPersistence",0,tf],543757);var tp=e.i(103067);let tm=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function tg(e){return e.created?Number(e.created):void 0}function ty(e){let t=e.expire&&Number(e.expire),r=tg(e);if(t&&r)return Math.min(t,r+tl)}function tv(e,t){let r={isExpired:"1"};return t.trackAnonymousUser&&e?.anonymousId&&(r.anonymousId=e?.anonymousId),r}function tb(e){return(0,eu.isEmptyObject)(e)}function th(e){let t;return void 0!==e.isExpired||!((t=ty(e))&&(0,g.dateNow)()<t)}function tE(e){e.expire=String((0,g.dateNow)()+tu)}function tS(e){return(0,tp.objectEntries)(e).map(([e,t])=>"anonymousId"===e?`aid=${t}`:`${e}=${t}`).join("&")}function tT(e){let t={};return e&&(-1!==e.indexOf("&")||tm.test(e))&&e.split("&").forEach(e=>{let r=tm.exec(e);if(null!==r){let[,e,n]=r;"aid"===e?t.anonymousId=n:t[e]=n}}),t}function t_(e,t){return tb(e)?(t.trackAnonymousUser&&(e.anonymousId=(0,Z.generateUUID)()),tv(e,t)):e}function tC(e,t){if(tb(e))return e;let r=e;return th(e)&&(r=tv(e,t)),r.id||(r.id=(0,Z.generateUUID)(),r.created=String((0,g.dateNow)())),t.trackAnonymousUser&&!r.anonymousId&&(r.anonymousId=(0,Z.generateUUID)()),delete r.isExpired,tE(r),r}async function tw(e,t){let r=`dd_cookie_test_${(0,Z.generateUUID)()}`,n="test",i=e(r,t);try{return await i.getAllAndSet(()=>({value:n,expireDelay:g.ONE_MINUTE})),(await i.getAll()).includes(n)}catch(e){return z.display.error(e),!1}finally{try{await i.getAllAndSet(()=>({value:"",expireDelay:0}))}catch{}}}function tO(e,t){let r=(0,I.mockable)(D.globalObject.cookieStore),n=new A.Observable(()=>(0,j.addEventListener)(r,"change",t=>{(t.changed.some(t=>t.name===e)||t.deleted.some(t=>t.name===e))&&n.notify()}).stop);return{getAll:async()=>(await r.getAll(e)).map(e=>e.value),async getAllAndSet(n){let i=await r.getAll(e),{value:o,expireDelay:a}=n(i.map(e=>e.value));try{await r.set({name:e,value:o,expires:(0,g.dateNow)()+a,path:"/",sameSite:t.crossSite?"none":"strict",domain:t.domain,secure:t.secure,partitioned:t.partitioned})}catch(n){let r=ep(e);(0,v.addTelemetryDebug)("Failed to set cookie using Cookie Store API",{"error.message":n.message,newValue:o,cookieOptions:{...t},cookies:i.map(e=>({...e})),cookieCount:i.length,documentCookies:r})}},observable:n}}let tA=g.ONE_SECOND;function tI(e,t){let r=ep(e),n=new A.Observable(()=>{let t=(0,x.setInterval)(()=>{i(ep(e))},tA);return()=>{(0,x.clearInterval)(t)}});function i(e){String(e)!==String(r)&&(r=e,n.notify())}return{getAll:()=>Promise.resolve(ep(e)),async getAllAndSet(r){let{value:n,expireDelay:o}=r(ep(e));ed(e,n,o,t),await Promise.resolve(),i([n])},observable:n}}function tx(){let e=(0,I.mockable)(D.globalObject.cookieStore);return!!(e&&(0,j.isEventSupported)(e,"change"))}let tk="_dd_s_v2",tR="_dd_s";async function tN(e){let{cookieOptions:t}=e;if(t){if(tx()&&await tw(tO,t))return{type:tf.COOKIE,cookieOptions:t,cookieApi:1};if(await tw(tI,t))return{type:tf.COOKIE,cookieOptions:t,cookieApi:0}}}function tD(e,t){return 1===e?tO(tk,t):tI(tk,t)}function tM(e,t){let r;for(let n of e.slice().reverse())if((r=tT(n)).c===t)break;return delete r?.c,r??{}}function tU(e){return((e.domain?e.domain.split(".").length-1:0)<<1|!!e.crossSite).toString(16)}let tL="_DD_SESSION";async function tP(e){var t;for(let r of Array.isArray(t=e.sessionPersistence)?t:void 0!==t?[t]:D.isWorkerEnvironment?[tf.MEMORY]:[tf.COOKIE]){let t=await function(e,t){switch(e){case tf.COOKIE:return tN(t);case tf.LOCAL_STORAGE:try{let e=(0,Z.generateUUID)(),t=`_dd_test_${e}`;localStorage.setItem(t,e);let r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:tf.LOCAL_STORAGE}:void 0}catch{return}case tf.MEMORY:return{type:tf.MEMORY};default:z.display.error(`Invalid session persistence '${String(e)}'`);return}}(r,e);if(void 0!==t)return t}}function t$(e,t){switch(e.type){case tf.COOKIE:return function(e,t){let{cookieOptions:r,cookieApi:n}=e,i=new A.Observable,o=!!t.trackAnonymousUser,s=tU(r),c=(0,I.mockable)(tD)(n,r),l=!0;function u(e){return c.getAllAndSet(t=>{var n,i;let a=tM(t,s);return l&&(0,eu.isEmptyObject)(a)&&(a=tM(ep(tR),s)),l=!1,{value:(n=e(a),i=r,tS((0,eu.isEmptyObject)(n)?n:{...n,c:tU(i)})),expireDelay:o?td:tl}})}return c.observable.subscribe(()=>{c.getAll().then(e=>{i.notify(tM(e,s))}).catch(e=>(0,E.monitorError)(Error(`Error while reading session cookies on change: ${e}`)))}),{async setSessionState(e,t){"u">typeof navigator&&navigator.locks?await navigator.locks.request(tk,()=>u(e)).catch(e=>{var t;if(!((t=e)instanceof Error&&("AbortError"===t.name||t.message.includes("no longer runnable"))))throw e}):(a=(a??Promise.resolve()).then(()=>u(e)),await a)},sessionObservable:i}}(e,t);case tf.LOCAL_STORAGE:let r,n;return r=new A.Observable(e=>(0,j.addEventListener)(window,"storage",t=>{t.key===tk&&t.storageArea===localStorage&&e.notify(tT(t.newValue))}).stop),n=!0,{async setSessionState(e,t){let i=tT(localStorage.getItem(tk));n&&tb(i)&&(i=tT(localStorage.getItem(tR))),n=!1;let o=e(i);localStorage.setItem(tk,tS(o)),await Promise.resolve(),r.notify(o)},sessionObservable:r};case tf.MEMORY:let i,o,s,c;return(i=D.globalObject)[tL]||(i[tL]={}),o=i[tL],s=new A.Observable,c=o.onChange,o.onChange=e=>{c?.(e),s.notify(e)},{async setSessionState(e,t){let r=o.state??{},n=(0,eu.shallowClone)(e(r));o.state=n,await Promise.resolve(),o.onChange?.(n)},sessionObservable:s}}}let tV=g.ONE_MINUTE,tj=12*g.ONE_HOUR,tK=[];async function tB(e,t){let r,n=(0,g.relativeNow)(),i=new A.Observable,o=new A.Observable,a=await (0,I.mockable)(tP)(e);if(!a)return void z.display.warn("No storage available for session. We will not send any data.");let s=(0,I.mockable)(t$)(a,e),c=to({expireDelay:tl});tK.push(()=>c.stop());let l=!1,{throttled:u,cancel:d}=(0,k.throttle)(()=>{l=!1,s.setSessionState(t=>tC(t,e),"expandOrRenewOnActivity").catch(E.monitorError)},g.ONE_SECOND);tK.push(d),tK.push(()=>(0,x.clearTimeout)(r));let f=!1;tK.push(()=>{f=!0});let p=await m().catch(e=>(0,E.monitorError)(Error(`Error while resolving initial session state: ${e}`)));if(p&&!f){let r;for(;!t.isGranted();)if(h(),await new Promise(e=>t.onGrantedOnce(e)),f||!(p=await m().catch(E.monitorError))||f)return;return c.add(S(p),(0,g.clocksOrigin)().relative),y(p),r=s.sessionObservable.subscribe(e=>{y(e),b(e)}
4),tK.push(()=>r.unsubscribe()),t.observable.subscribe(()=>{t.isGranted()?(l=!1,s.setSessionState(t=>tC(t,e),"expandOrRenewOnConsent").catch(E.monitorError)):h()}),D.isWorkerEnvironment||(function(e){let{stop:t}=(0,j.addEventListeners)(window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0});tK.push(t)}(()=>{t.isGranted()&&u()}),function(e){let t=()=>{"visible"===document.visibilityState&&e()},{stop:r}=(0,j.addEventListener)(document,"visibilitychange",t);tK.push(r);let n=(0,x.setInterval)(t,tV);tK.push(()=>{(0,x.clearInterval)(n)})}(()=>{l||s.setSessionState(e=>(th(e)||tb(e)||!e.id||tE(e),e),"expandOnVisibility").catch(E.monitorError)}),function(e){let{stop:t}=(0,j.addEventListener)(window,"resume",e,{capture:!0});tK.push(t)}(()=>{s.setSessionState(t=>t_(t,e),"initializeOnResume").catch(E.monitorError)})),(0,v.addTelemetryMetrics)("Session manager init metrics",{metrics:{duration:(0,g.elapsed)(n,(0,g.relativeNow)())}}),{findSession:(e,t)=>c.find(e,t),findTrackedSession:(t,r)=>{let n=c.find(t,r);if(n&&"invalid"!==n.id&&tc(n.id,e.sessionSampleRate)&&!((0,g.dateNow)()-n.createdAt>tj))return n},renewObservable:i,expireObservable:o,expire:h,updateSessionState:e=>{s.setSessionState(t=>({...t,...e}),"updateState").catch(E.monitorError)}}}async function m(){let t={};return await s.setSessionState(r=>t=tC(t_(r,e),e),"initialize"),t}function y(n){(0,x.clearTimeout)(r);let i=ty(n);if(i){let n=i-(0,g.dateNow)();r=(0,x.setTimeout)(()=>{s.setSessionState(r=>th(r)?(t.isGranted()||delete r.anonymousId,tv(r,e)):r,"expireOnTimeout").catch(E.monitorError)},n)}}function b(e){let t=c.find(),r=t?.id!==void 0,n=void 0!==e.id,a=r&&n&&t.id!==e.id;if(r&&(!n||a)&&(l=!0,o.notify(),c.closeActive((0,g.relativeNow)())),n&&(!r||a)){if(l)return;c.add(S(e),(0,g.relativeNow)()),i.notify()}else r&&n&&!a&&(t.isReplayForced=!!e.forcedReplay)}function h(){d();let r=tv(c.find(),e);t.isGranted()||delete r.anonymousId,b(r),s.setSessionState(r=>(t.isGranted()||delete r.anonymousId,tv(r,e)),"expire").catch(E.monitorError)}function S(e){let t=tg(e)??(0,g.timeStampNow)();return e.id?{id:e.id,isReplayForced:!!e.forcedReplay,anonymousId:e.anonymousId,createdAt:t}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:t}}}var tF=e.i(253265),tq=e.i(590336);let tz="_dd_tab_id";var tG=e.i(917701);function tH(){let e=tW();return new A.Observable(t=>{let r=new e((0,E.monitor)(e=>t.notify(e)));return r.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>r.disconnect()})}function tW(){let e,t=window;if(t.Zone&&(e=(0,tG.getZoneJsOriginalValue)(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){let r=new t.MutationObserver(k.noop),n=(0,tG.getZoneJsOriginalValue)(r,"originalInstance");e=n?.constructor}return e||(e=t.MutationObserver),e}e.s(["createDOMMutationObservable",0,tH,"getMutationObserverConstructor",0,tW],534984);let tY=class{constructor(){this.callbacks={}}notify(e,t){let r=this.callbacks[e];r&&r.forEach(e=>e(t))}subscribe(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:()=>{this.callbacks[e]=this.callbacks[e].filter(e=>t!==e)}}}},tJ="fetch",tX="other",tZ=[["document",e=>"navigation"===e],["xhr",e=>"xmlhttprequest"===e],[tJ,e=>"fetch"===e],["beacon",e=>"beacon"===e],["css",(e,t)=>/\.css$/i.test(t)],["js",(e,t)=>/\.js$/i.test(t)],["image",(e,t)=>["image","img","icon"].includes(e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)],["font",(e,t)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)],["media",(e,t)=>["audio","video"].includes(e)||null!==/\.(mp3|mp4)$/i.exec(t)]];function tQ(e){let t=e.name;if(!(0,N.isValidUrl)(t))return tX;let r=(0,N.getPathName)(t);for(let[t,n]of tZ)if(n(e.initiatorType,r))return t;return tX}function t0(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function t1(e){return"xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType}function t2(e){let{duration:t,startTime:r,responseEnd:n}=e;return"navigation"===e.initiatorType||0===t&&r<n?(0,g.elapsed)(r,n):t}function t5(e){var t,r;let n,i;if(n=t0((t=e).startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),i=!((r=t).redirectEnd>r.startTime)||t0(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart),!n||!i)return;let{startTime:o,fetchStart:a,workerStart:s,redirectStart:c,redirectEnd:l,domainLookupStart:u,domainLookupEnd:d,connectStart:f,secureConnectionStart:p,connectEnd:m,requestStart:g,responseStart:y,responseEnd:v}=e,b={download:t4(o,y,v),first_byte:t4(o,g,y)};return 0<s&&s<a&&(b.worker=t4(o,s,a)),a<m&&(b.connect=t4(o,f,m),f<=p&&p<=m&&(b.ssl=t4(o,p,m))),a<d&&(b.dns=t4(o,u,d)),o<l&&(b.redirect=t4(o,c,l)),b}function t3(e){return e.duration>=0}function t4(e,t,r){if(e<=t&&t<=r)return{duration:(0,g.toServerDuration)((0,g.elapsed)(t,r)),start:(0,g.toServerDuration)((0,g.elapsed)(e,t))}}function t6(e){return""===e.nextHopProtocol?void 0:e.nextHopProtocol}function t7(e){return""===e.deliveryType?"other":e.deliveryType}function t9(e){if(e.startTime<e.responseStart){let{encodedBodySize:t,decodedBodySize:r,transferSize:n}=e;return{size:r,encoded_body_size:t,decoded_body_size:r,transfer_size:n}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}
4function t8(e){return e&&(!(0,ev.isIntakeUrl)(e)||(0,e2.isExperimentalFeatureEnabled)(e2.ExperimentalFeature.TRACK_INTAKE_REQUESTS))}let re=/data:(.+)?(;base64)?,/g;function rt(e,t=24e3){if(e.length<=t||!e.startsWith("data:"))return e;let r=e.substring(0,100).match(re);return r?`${r[0]}[...]`:e}e.s(["computeResourceEntryDeliveryType",0,t7,"computeResourceEntryDetails",0,t5,"computeResourceEntryDuration",0,t2,"computeResourceEntryProtocol",0,t6,"computeResourceEntrySize",0,t9,"computeResourceEntryType",0,tQ,"hasValidResourceEntryDuration",0,t3,"isAllowedRequestUrl",0,t8,"isResourceEntryRequestType",0,t1,"sanitizeIfLongDataUrl",0,rt],438137);function rr(e){let t=crypto.getRandomValues(new Uint32Array(2)),r=BigInt(t[0])+(BigInt(t[1])<<32n);return 63===e&&(r&=0x7fffffffffffffffn),r}function rn(e){return e.toString(16).padStart(16,"0")}function ri(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function ro(e,t,r,n,i,o){let a=r.findTrackedSession();if(!a)return;let s=e.allowedTracingUrls.find(e=>es([e.match],t.url,!0));if(!s)return;let c=tc(a.id,ta(e.sessionSampleRate,e.traceSampleRate)),l=(0,eW.canUseEventBridge)()?(0,eW.getEventBridge)()?.getIsTraceSampled()??c:c;(l||e.traceContextInjection===eh.ALL)&&(t.traceSampled=l,t.traceId=rr(64),t.spanId=rr(63),o(function(e,t,r,n,i,o,a,s){let c={};if(i.forEach(n=>{switch(n){case"datadog":Object.assign(c,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":e.toString()});break;case"tracecontext":Object.assign(c,{traceparent:`00-0000000000000000${rn(e)}-${rn(t)}-0${r?"1":"0"}`,tracestate:`dd=s:${r?"1":"0"};o:rum`});break;case"b3":Object.assign(c,{b3:`${rn(e)}-${rn(t)}-${r?"1":"0"}`});break;case"b3multi":Object.assign(c,{"X-B3-TraceId":rn(e),"X-B3-SpanId":rn(t),"X-B3-Sampled":r?"1":"0"})}}),s.propagateTraceBaggage){let e={"session.id":n},t=o.getContext().id;"string"==typeof t&&(e["user.id"]=t);let r=a.getContext().id;"string"==typeof r&&(e["account.id"]=r);let i=Object.entries(e).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(",");i&&(c.baggage=i)}return c}(t.traceId,t.spanId,t.traceSampled,a.id,s.propagatorTypes,n,i,e)))}let ra=32*M.ONE_KIBI_BYTE;function rs(e,t){return t.allowedGraphQlUrls.find(t=>es([t.match],e))}let rc=1;function rl(e){e.requestIndex||(e.requestIndex=rc++)}function ru(e){return(0,el.isNumber)(e)&&e<0?void 0:e}function rd(e){return e.nodeType===Node.TEXT_NODE}function rf(e){return e.nodeType===Node.COMMENT_NODE}function rp(e){return e.nodeType===Node.ELEMENT_NODE}function rm(e){return rp(e)&&!!e.shadowRoot}function rg(e){return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&rp(e.host)}function ry(e){return rg(e)?e.host:e.parentNode}function rv(e){if(e.parentElement)return e.parentElement;let t=e.parentNode;return t&&rg(t)?t.host:null}function rb(e){return new A.Observable(t=>{let r,n=e=>{let r=e.filter(e=>{var t;return!((t=e).entryType===m.RESOURCE&&(!t8(t.name)||!t3(t)))});r.length>0&&t.notify(r)},i=!0,o=new PerformanceObserver((0,E.monitor)(e=>{i?r=(0,x.setTimeout)(()=>n(e.getEntries())):n(e.getEntries())}));return o.observe(e),i=!1,!c&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(c=(0,j.addEventListener)(performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{o.disconnect(),(0,x.clearTimeout)(r)}})}function rh(e){return PerformanceObserver.supportedEntryTypes.includes(e)}e.s(["forEachChildNodes",0,function(e,t){let r=e.firstChild;for(;r;)t(r),r=r.nextSibling;rm(e)&&t(e.shadowRoot)},"getParentElement",0,rv,"getParentNode",0,ry,"isCommentNode",0,rf,"isElementNode",0,rp,"isNodeShadowHost",0,rm,"isNodeShadowRoot",0,rg,"isTextNode",0,rd],158239),(p=m||(m={})).EVENT="event",p.FIRST_INPUT="first-input",p.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",p.LAYOUT_SHIFT="layout-shift",p.LONG_TASK="longtask",p.LONG_ANIMATION_FRAME="long-animation-frame",p.NAVIGATION="navigation",p.PAINT="paint",p.RESOURCE="resource",p.VISIBILITY_STATE="visibility-state",e.s(["RumPerformanceEntryType",0,m,"createPerformanceObservable",0,rb,"supportPerformanceTimingEvent",0,rh],66272);let rE="data-dd-excluded-activity-mutations";function rS(e,t,r,n,i,o){let a,s=(0,I.mockable)(rT)(e,t,r,n),c=!1,l=(0,x.setTimeout)((0,E.monitor)(()=>p({hadActivity:!1})),100),u=void 0!==o?(0,x.setTimeout)((0,E.monitor)(()=>p({hadActivity:!0,end:(0,g.timeStampNow)()})),o):void 0,d=s.subscribe(({isBusy:e})=>{(0,x.clearTimeout)(l),(0,x.clearTimeout)(a);let t=(0,g.timeStampNow)();e||(a=(0,x.setTimeout)((0,E.monitor)(()=>p({hadActivity:!0,end:t})),100))}),f=()=>{c=!0,(0,x.clearTimeout)(l),(0,x.clearTimeout)(a),(0,x.clearTimeout)(u),d.unsubscribe()};function p(e){c||(f(),i(e))}return{stop:f}}function rT(e,t,r,n){return new A.Observable(i=>{let o,a=[],s=0;return a.push(t.subscribe(e=>{e.every(rC)||c()}),r.subscribe(c),rb({type:m.RESOURCE}).subscribe(e=>{e.some(e=>!r_(n,e.name))&&c()}),e.subscribe(7,e=>{r_(n,e.url)||(void 0===o&&(o=e.requestIndex),s+=1,c())}),e.subscribe(8,e=>{r_(n,e.url)||void 0===o||e.requestIndex<o||(s-=1,c())})),()=>
4{a.forEach(e=>e.unsubscribe())};function c(){i.notify({isBusy:s>0})}})}function r_(e,t){return es(e.excludedActivityUrls,t)}function rC(e){let t="characterData"===e.type?e.target.parentElement:e.target;return!!(t&&rp(t)&&t.matches(`[${rE}], [${rE}] *`))}let rw="data-dd-action-name",rO="Masked Element",rA=[rw,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],rI=[rM,rN],rx=[rM,function(e){if("BODY"===e.tagName)return;let t=e.classList;for(let r=0;r<t.length;r+=1){let n=t[r];if(!rR(n))return`${CSS.escape(e.tagName)}.${CSS.escape(n)}`}},rD];function rk(e,t){if(!e.isConnected)return;let r=function(e){let t=[],r=e;for(;r;){let e=r.getRootNode();if(t.push({rootNode:e,target:r}),rg(e))r=e.host;else break}return t.reverse()}(e),n=[];for(let{rootNode:e,target:i}of r){let r=function(e,t,r){let n,i=e;for(;i&&"HTML"!==i.nodeName;){let e=rP(i,t,rI,r$,r,n);if(e)return rj(e,n);n=rj(rP(i,t,rx,rV,r,n)||function(e){let t=rL(e);return`${CSS.escape(e.tagName)}:nth-of-type(${t})`}(i),n),i=i.parentElement}return n}(i,e,t);if(!r)return;n.push(r)}return n.join("::shadow ")}function rR(e){return/[0-9]/.test(e)}function rN(e){if(e.id&&!rR(e.id))return`#${CSS.escape(e.id)}`}function rD(e){return CSS.escape(e.tagName)}function rM(e,t){if(t){let e=r(t);if(e)return e}for(let e of rA){let t=r(e);if(t)return t}function r(t){if(e.hasAttribute(t))return`${CSS.escape(e.tagName)}${rU(t,e.getAttribute(t))}`}}function rU(e,t){return`[${e}="${CSS.escape(t)}"]`}function rL(e){let t=e.parentNode.firstElementChild,r=1;for(;t&&t!==e;)t.tagName===e.tagName&&(r+=1),t=t.nextElementSibling;return r}function rP(e,t,r,n,i,o){for(let a of r){let r=a(e,i);if(r&&n(e,t,r,o))return r}}function r$(e,t,r,n){return 1===t.querySelectorAll(rj(r,n)).length}function rV(e,t,r,n){let i;if(void 0===n)i=e=>e.matches(r);else{let e=rj(`${r}:scope`,n);i=t=>null!==t.querySelector(e)}let o=e.previousElementSibling;for(;o;){if(i(o))return!1;o=o.previousElementSibling}for(o=e.nextElementSibling;o;){if(i(o))return!1;o=o.nextElementSibling}return!0}function rj(e,t){return t?`${e}>${t}`:e}let rK={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:eb.ALLOW,MASK:eb.MASK,MASK_USER_INPUT:eb.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:eb.MASK_UNLESS_ALLOWLISTED},rB="data-dd-privacy",rF={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function rq(e){return`[${rB}="${e}"], .dd-privacy-${e}`}function rz(e,t,r){if(r?.has(e))return r.get(e);let n=ry(e),i=n?rz(n,t,r):t,o=rG(rH(e),i);return r&&r.set(e,o),o}function rG(e,t){switch(t){case rK.HIDDEN:case rK.IGNORE:return t}switch(e){case rK.ALLOW:case rK.MASK:case rK.MASK_USER_INPUT:case rK.MASK_UNLESS_ALLOWLISTED:case rK.HIDDEN:case rK.IGNORE:return e;default:return t}}function rH(e){if(rp(e)){if("BASE"===e.tagName)return rK.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return rK.MASK;let t=e.getAttribute("autocomplete");if(t&&(t.startsWith("cc-")||t.endsWith("-password")))return rK.MASK}if(e.matches(rq(rK.HIDDEN)))return rK.HIDDEN;if(e.matches(rq(rK.MASK)))return rK.MASK;if(e.matches(rq(rK.MASK_UNLESS_ALLOWLISTED)))return rK.MASK_UNLESS_ALLOWLISTED;if(e.matches(rq(rK.MASK_USER_INPUT)))return rK.MASK_USER_INPUT;if(e.matches(rq(rK.ALLOW)))return rK.ALLOW;if(function(e){if("SCRIPT"===e.nodeName)return!0;if("LINK"===e.nodeName){let e=t("rel");return/preload|prefetch/i.test(e)&&"script"===t("as")||"shortcut icon"===e||"icon"===e}if("META"===e.nodeName){let r=t("name"),n=t("rel"),i=t("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===n||"apple-touch-icon"===n||"shortcut icon"===n||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"b
4ingbot"===r||e.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function t(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}(e))return rK.IGNORE}}function rW(e,t){switch(t){case rK.MASK:case rK.HIDDEN:case rK.IGNORE:return!0;case rK.MASK_UNLESS_ALLOWLISTED:if(rd(e))return!!rJ(e.parentNode)||!rZ(e.textContent||"");return rJ(e);case rK.MASK_USER_INPUT:return rd(e)?rJ(e.parentNode):rJ(e);default:return!1}}function rY(e,t,r,n,i){if(n!==rK.MASK&&n!==rK.MASK_UNLESS_ALLOWLISTED||t===rB||rA.includes(t)||t===i.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!("A"===e&&"href"===t||"IFRAME"===e&&"srcdoc"===t||r&&t.startsWith("data-"))||("IMG"===e||"SOURCE"===e)&&("src"===t||"srcset"===t)}function rJ(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!rF[e.tagName]}function rX(e){return e.replace(/\S/g,"x")}function rZ(e){return!e?.trim()||window.$DD_ALLOW?.has(e.toLocaleLowerCase())||!1}function rQ(e,t){return rZ(e)?e:t||rX(e)}function r0({lifeCycle:e,isChildEvent:t,onChange:r=k.noop}){let n={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=e.subscribe(13,e=>{if("view"!==e.type&&"vital"!==e.type&&t(e))switch(e.type){case Q.ERROR:n.errorCount+=1,r();break;case Q.ACTION:n.actionCount+=1,e.action.frustration&&(n.frustrationCount+=e.action.frustration.type.length),r();break;case Q.LONG_TASK:n.longTaskCount+=1,r();break;case Q.RESOURCE:e._dd?.discarded||(n.resourceCount+=1,r())}});return{stop:()=>{i.unsubscribe()},eventCounts:n}}e.s(["CENSORED_IMG_MARK",0,"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==","CENSORED_STRING_MARK",0,"***","FORM_PRIVATE_TAG_NAMES",0,rF,"NodePrivacyLevel",0,rK,"PRIVACY_ATTR_NAME",0,rB,"PRIVACY_ATTR_VALUE_HIDDEN",0,"hidden","TEXT_MASKING_CHAR",0,"x","getPrivacySelector",0,rq],278487),e.s(["getNodePrivacyLevel",0,rz,"getNodeSelfPrivacyLevel",0,rH,"getTextContent",0,function(e,t){let r=e.parentElement?.tagName,n=e.textContent||"";return("SCRIPT"===r||t===rK.HIDDEN?n="***":rW(e,t)&&("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r||(n="OPTION"===r?"***":rX(n))),"HEAD"!==r||n.trim())?n:""},"maskDisallowedTextContent",0,rQ,"reducePrivacyLevel",0,rG,"shouldMaskAttribute",0,rY,"shouldMaskNode",0,rW],942637);let r1=5*g.ONE_MINUTE;function r2(e){let t=to({expireDelay:r1}),r=new Map;function n(e){r.delete(e.key),e.eventCounts?.stop()}function i(){r.forEach(e=>{n(e)}),t.reset()}let o=e.subscribe(10,i);return{start:function(i,o,a,s){let c=(0,Z.generateUUID)(),l=t.add(c,o.relative),u=r.get(i);u&&n(u);let d=s?.isChildEvent?r0({lifeCycle:e,isChildEvent:s.isChildEvent(c)}):void 0,f={id:c,key:i,startClocks:o,data:a,historyEntry:l,eventCounts:d};return r.set(i,f),f},stop:function(e,t,i){let o=r.get(e);if(!o)return;let a=i?(0,b.combine)(o.data,i):o.data;o.historyEntry.close(t.relative);let s=(0,g.elapsed)(o.startClocks.timeStamp,t.timeStamp),c=o.eventCounts?.eventCounts;return n(o),{...a,id:o.id,startClocks:o.startClocks,duration:s,counts:c}},discard:function(e){let t=r.get(e);if(!t)return;let i=t.eventCounts?.eventCounts;return n(t),t.historyEntry.remove(),{...t.data,id:t.id,startClocks:t.startClocks,counts:i}},getCounts:function(e){return r.get(e)?.eventCounts?.eventCounts},findId:function(e){return t.findAll(e)},stopAll:function(){o.unsubscribe(),i(),t.stop()}}}let r5=["HTML","BODY"],r3=2*M.ONE_KIBI_BYTE,r4=rA.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]),r6=g.ONE_SECOND;function r7(e,t){let r=function(e,t){let r=e;for(;r;){if(r.matches(t))return r;r=rv(r)}return null}(e,`[${t}]`);if(r)return nr(nt(r.getAttribute(t).trim()))}let r9=[(e,t,r)=>{if("labels"in e&&e.labels&&e.labels.length>0)return ni(e.labels[0],t,r)},e=>{if("INPUT"===e.nodeName){let t=e.getAttribute("type");if("button"===t||"submit"===t||"reset"===t)return{name:e.value,nameSource:"text_content"}}},(e,t,r)=>
4{if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return ni(e,t,r)},(e,t,r)=>nn(e,"aria-label",t,r),(e,t,r)=>{let n=e.getAttribute("aria-labelledby");if(n)return{name:n.split(/\s+/).map(t=>(function(e,t){let r=e.getRootNode();if(r instanceof ShadowRoot){let e=r.getElementById(t);if(e)return e}return e.ownerDocument?e.ownerDocument.getElementById(t):null})(e,t)).filter(e=>!!e).map(e=>no(e,t,r)).join(" "),nameSource:"text_content"}},(e,t,r)=>nn(e,"alt",t,r),(e,t,r)=>nn(e,"name",t,r),(e,t,r)=>nn(e,"title",t,r),(e,t,r)=>nn(e,"placeholder",t,r),(e,t,r)=>{if("options"in e&&e.options.length>0)return ni(e.options[0],t,r)}],r8=[(e,t,r)=>ni(e,t,r)];function ne(e,t,r,n){let i=e,o=0;for(;o<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(let e of t){let t=e(i,r,n);if(t){let{name:e,nameSource:r}=t,n=e?.trim();if(n)return{name:nr(nt(n)),nameSource:r}}}if("FORM"===i.nodeName)break;i=rv(i),o+=1}}function nt(e){return e.replace(/\s+/g," ")}function nr(e){return e.length>100?`${(0,Z.safeTruncate)(e,100)} [...]`:e}function nn(e,t,r,n){let{enablePrivacyForActionName:i,defaultPrivacyLevel:o}=r,a=e.getAttribute(t);if(a&&i){let i=rz(e,o,n);rY(e.tagName,t,a,i,r)&&(a=rQ(a,rO))}else a||(a="");return{name:a,nameSource:"standard_attribute"}}function ni(e,t,r){return{name:no(e,t,r)||"",nameSource:"text_content"}}function no(e,t,r){if(e.isContentEditable)return;let{enablePrivacyForActionName:n,actionNameAttribute:i,defaultPrivacyLevel:o}=t,a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(e){let t=rz(e,o,r);if(n&&t&&rW(e,t))return NodeFilter.FILTER_REJECT;if(rp(e)){if(e.hasAttribute(rw)||i&&e.hasAttribute(i))return NodeFilter.FILTER_REJECT;let t=getComputedStyle(e);if("visible"!==t.visibility||"none"===t.display||t.contentVisibility&&"visible"!==t.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),s="";for(;a.nextNode();){let e=a.currentNode;if(rp(e)){("BR"===e.nodeName||"P"===e.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(e).display))&&(s+=" ");continue}s+=e.textContent||""}return s.replace(/\s+/g," ").trim()}function na(){let e=window.getSelection();return!e||e.isCollapsed}function ns(e){return e.target instanceof Element&&!1!==e.isPrimary}function nc(e){if(e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return"LABEL"===t.tagName&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t?.matches('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}let nl=10*g.ONE_SECOND,nu=new Map;function nd(e,t){nu.set(e,t),nu.forEach((e,t)=>{(0,g.elapsed)(t,(0,g.relativeNow)())>nl&&nu.delete(t)})}function nf(e){return t=>t.action?.id?.includes(e)??!1}function np(e){if(e.composed&&rm(e.target)&&"function"==typeof e.composedPath){let t=e.composedPath();if(t.length>0&&t[0]instanceof Element)return t[0]}return e.target}function nm(e){let t="events"in e,r=ru((0,g.toServerDuration)(e.duration));return{rawRumEvent:{type:Q.ACTION,date:e.startClocks.timeStamp,action:{id:e.id,target:{name:e.name},type:e.type,...void 0!==r&&{loading_time:r},...e.counts&&{error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},frustration:{type:e.frustrationTypes}},...t?{_dd:{action:{target:{selector:e.target?.selector||void 0,width:e.target?.width||void 0,height:e.target?.height||void 0,composed_path_selector:e.target?.composedPathSelector},position:e.position,name_source:e.nameSource}}}:{context:e.context}},duration:e.duration,startClocks:e.startClocks,domainContext:t?{events:e.events}:{handlingStack:e.handlingStack}}}let ng="csp_violation";function ny(e){return{startClocks:(0,g.clocksNow)(),source:W.ErrorSource.REPORT,handling:"unhandled",...e}}function nv(e,t,r,n,i){return r?(0,S.toStackTraceString)({name:e,message:t,stack:[{func:"?",url:r,line:n??void 0,column:i??void 0}]}):void 0}function nb(e,t){var r;let n,i;if(window.requestIdleCallback&&window.cancelIdleCallback){let r=window.requestIdleCallback((0,E.monitor)(e),t);return()=>window.cancelIdleCallback(r)}return r=e,n=(0,g.dateNow)(),i=(0,x.setTimeout)(()=>{r({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,g.dateNow)()-n))})},0),()=>(0,x.clearTimeout)(i)}e.s(["requestIdleCallback",0,nb],380466);let nh=g.ONE_SECOND;function nE(){let e=[];function t(t){let n;if(!t||t.didTimeout){let e=performance.now();n=()=>30-(performance.now()-e)}else n=t.timeRemaining.bind(t);for(;n()>0&&e.length;)e.shift()();e.length&&r()}function r(){nb(t,{timeout:nh})}return{push(t){1===e.push(t)&&r()},stop(){e.length=0}}}function nS(e,t){return document.readyState===e||"complete"===document.readyState?(t(),{stop:k.noop}):(0,j.addEventListener)(window,"complete"===e?"load":"DOMContentLoaded",t,{once:!0})}e.s(["asyncRunOnReadyState",0,function(e){return new Promise(t=>{nS(e,t)})},"runOnReadyState",0,nS],796411);let nT=2*g.ONE_MINUTE;function n_(e){var t;let r,n,i=(r=(t=e).querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),nC(r?.content,n?.content)||function(e){let t=function(e){for(let t=0;t<e.childNodes.length;t+=1){let r=nw(e.childNodes[t]);if(r)return r}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){let r=e.body.childNodes[t],n=nw(r);if(n)return n;if(!rd(r))break}}(e);if(t)return nC((0,Z.findCommaSeparatedValue)(t,"trace-id"),(0,Z.findCommaSeparatedValue)(t,"trace-time"))}(e));if(!(!i||i.traceTime<=(0,g.getTimeOrigin)()-nT))return i.traceId}function nC(e,t){let r=t&&Number(t);if(e&&r)return{traceId:e,traceTime:r}}function nw(e){if(e&&rf(e)){let t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function nO(){if(rh(m.NAVIGATION)){let e=performance.getEntriesByType(m.NAVIGATION)[0];if(e&&!(e.loadEventEnd>0&&e.domComplete<=0))return e}let e=function(){let e={},t=performance.timing;for(let r in t)if((0,el.isNumber)(t[r])){let n=t[r];e[r]=0===n?0:(0,g.toRelativeTime)(n)}return e}(),t={entryType:m.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function nA(e){return e.responseStart>=0&&e.responseStart<=(0,g.relativeNow)()?e.responseStart:void 0}function nI(e,t,r){var n,i;let o=t?function(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}(t,r):function(e,t){if("navigation"!==e.initiatorType)return;let r=(0,I.mockable)(n_)(document);if(r)return{_dd:{trace_id:r,span_id:rr(63).toString(),rule_psr:t.rulePsr}}}(e,r);if(!r.trackResources&&!o)return;let a=(0,g.relativeToClocks)(e.startTime),s=t2(e),c=function(e,t){let r=t.trackResourceHeaders;if(0===r.length||!e)return;let n=r.filter(t=>void 0===t.url||es([t.url],e.url,!0));if(0===n.length)return;let i=n.filter(e=>void 0===e.location||"any"===e.location||"response"===e.location),o=n.filter(e=>void 0===e.location||"any"===e.location||"request"===e.location),a=i.length>0?function(e,t){if(e.type===tJ&&e.response)return nk(e.response.headers,t);if("xhr"===e.type&&e.xhr){let r=e.xhr.getAllResponseHeaders();if(r)try{return nk(new Headers(function(e){let t=[];for(let r of e.trim().split(/\r\n/)){let e=r.indexOf(":");e>0&&t.push([r.substring(0,e).trim(),r.substring(e+1).trim()])}return t}(r)),t)}catch{}}}(e,i):void 0,s=o.length>0?function(e,t){let r;if(e.type===tJ)return e.init?.headers?r=new Headers(e.init.headers):e.input instanceof Request&&(r=e.input.headers),r?nk(r,t):void 0}(e,o):void 0;if(a||s)return{resource:{request:s?{headers:s}:void 0,response:a?{headers:a}:void 0}}}(t,r),l=(0,b.combine)({date:a.timeStamp,resource:{id:(0,Z.generateUUID)(),duration:(0,g.toServerDuration)(s),type:tQ(e),method:t?.method,status_code:t?t.status:0===(n=e.responseStatus)?void 0:n,url:t?rt(t.url):e.name,protocol:t6(e),delivery_type:t7(e),graphql:t&&function(e,t){let r=rs(e.url,t);if(r){let t=function(e,t=!1){var r;let n,i,o,a;if("POST"===e.method?n=function(e){if(!e||"string"!=typeof e)return;let t=(0,eu.tryJsonParse)(e);if(t)return{query:t.query,operationName:t.operationName,variables:t.variables?JSON.stringify(t.variables):void 0,operationType:t.operationType}}(e.requestBody):"GET"===e.method&&(r=e.url,a=(o=(i=(0,N.buildUrl)(r).searchParams).get("variables"))&&void 0!==(0,eu.tryJsonParse)(o)?o:void 0,n={query:i.get("query")||void 0,operationName:i.get("operationName")||void 0,variables:a,operationType:i.get("operationType")||void 0}),n)return function(e,t){let r,n,i;if(e.query){var o;let i=e.query.trim();o=i,r=o.match(/^\s*(query|mutation|subscription)\b/i)?.[1],t&&(n=(0,Z.safeTruncate)(i,ra,"..."))}if(!r){let t=e.operationType;("query"===t||"mutation"===t||"subscription"===t)&&(r=t)}return e.variables&&(i=e.variables),{operationType:r,operationName:e.operationName,variables:i,payload:n}}(n,t)}(e,r.trackPayload);if(t){if(r.trackResponseErrors&&e.responseBody){let r=function(e){let t=(0,eu.tryJsonParse)(e);if(t&&"object"==typeof t){if(eT(t.errors))return t.errors.map(e=>({message:e.message,path:e.path,locations:e.locations,code:e.extensions?.code}))}}(e.responseBody);r&&(t.error_count=r.length,t.errors=r)}return t}return}}(t,r),render_blocking_status:e.renderBlockingStatus,...t9(e),...t5(e)},type:Q.RESOURCE,_dd:{discarded:!r.trackResources}},o,function(e){let t=e.contentType;if(t)return{resource:{response:{headers:{"content-type":t}}}}}(e),c);return{startClocks:a,duration:s,rawRumEvent:l,domainContext:{performanceEntry:e,isManual:!1,isAborted:!!(i=t)&&i.isAborted,handlingStack:i?.handlingStack,requestInit:i?.init,requestInput:i?.input,response:i?.response,error:i?.error,xhr:i?.xhr}}}let nx=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/;function nk(e,t){let r={},n=0,i=0,o=!1;return e.forEach((e,a)=>{if(i++,n>=100){o||(z.display.warn("Maximum number of headers (100) has been reached. Further headers are dropped."),o=!0);return}let s=a.toLowerCase();if(nx.test(s))return;let c=t.find(e=>es([e.name],s));if(!c)return;let{extractor:l}=c,u=l?ew(e,l):e;void 0!==u&&(u.length>128&&(z.display.warn(`Header "${s}" value was truncated from ${u.length} to 128 characters.`),(0,v.addTelemetryDebug)("Resource header value was truncated",{header_name:s,original_length:u.length,limit:128})),r[s]=(0,Z.safeTruncate)(u,128),n++)}),o&&(0,v.addTelemetryDebug)("Maximum number of resource headers reached",{collectedHeaderCount:n,totalHeaderCount:i}),n>0?r:void 0}var nR=g;let nN=10*g.ONE_MINUTE,nD=10*g.ONE_MINUTE;function nM(e,t=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:k.noop};if(rh(m.VISIBILITY_STATE)){let t=performance.getEntriesByType(m.VISIBILITY_STATE).filter(e=>"hidden"===e.name).find(t=>t.startTime>=e.relative);if(t)return{timeStamp:t.startTime,stop:k.noop}}let r=1/0,{stop:n}=(0,j.addEventListeners)(t,["pagehide","visibilitychange"],e=>{("pagehide"===e.type||"hidden"===document.visibilityState)&&(r=e.timeStamp,n())},{capture:!0});return{get timeStamp(){return r},stop:n}}let nU=e=>{var t,r;let n,i,o,a;return e.previousRect.width*e.previousRect.height+e.currentRect.width*e.currentRect.height-(t=e.previousRect,r=e.currentRect,n=Math.max(t.left,r.left),i=Math.max(t.top,r.top),o=Math.min(t.right,r.right),a=Math.min(t.bottom,r.bottom),n>=o||i>=a?0:(o-n)*(a-i))};function nL({x:e,y:t,width:r,height:n}){return{x:e,y:t,width:r,height:n}}let nP=5*g.ONE_SECOND,n$=g.ONE_SECOND,nV=0,nj=1/0,nK=0,nB=()=>l?nV:window.performance.interactionCount||0,nF=+g.ONE_MINUTE;function nq(e){return Math.min(e,nF)}
4function nz(){let e=window.visualViewport;return Math.round(e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function nG(){return u||(u=new A.Observable(e=>{let{throttled:t}=(0,k.throttle)(()=>{e.notify(nH())},200);return(0,j.addEventListener)(window,"resize",t,{capture:!0,passive:!0}).stop})),u}function nH(){let e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}e.s(["getScrollX",0,function(){let e=window.visualViewport;return Math.round(e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)},"getScrollY",0,nz],748407),e.s(["getViewportDimension",0,nH,"initViewportObservable",0,nG],384641);let nW=g.ONE_SECOND,nY=5*nR.ONE_MINUTE,nJ=5*nR.ONE_MINUTE;function nX(e){let t=e.indexOf("?");return t<0?e:e.slice(0,t)}var nZ=e.i(753084),nQ=e.i(581028),n0=e.i(299561);function n1(e,t){let r=new Set;for(let n of e)n.startsWith(`${t}.`)&&r.add(n.slice(t.length+1));return r}function n2(){return(0,I.mockable)(D.globalObject.location)}function n5(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}let n3=10*g.ONE_SECOND;function n4(){0!==d.batchCount&&((0,v.addTelemetryMetrics)("Customer data measures",d),n9())}function n6(){return{min:1/0,max:0,sum:0}}function n7(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function n9(){d={batchCount:0,batchBytesCount:n6(),batchMessagesCount:n6()}}function n8(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function ie(e){let{startClocks:t,type:r,name:n,description:i,context:o,handlingStack:a}=e,s={id:(e.type===ei.DURATION?e.id:void 0)??(0,Z.generateUUID)(),type:r,name:n,description:i,...r===ei.DURATION?{duration:(0,g.toServerDuration)(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:s,type:Q.VITAL,context:o},startClocks:t,duration:r===ei.DURATION?e.duration:void 0,domainContext:a?{handlingStack:a}:{}}}let it=g.ONE_SECOND;function ir(e,t){let r=ef(e),n=(0,x.setInterval)(()=>{let n=ef(e);n!==r&&(r=n,t(n))},it);return()=>{(0,x.clearInterval)(n)}}let ii="datadog-ci-visibility-test-execution-id";function io(e,t,r=3e3){let n=0,i=!1;return{isLimitReached(){if(0===n&&(0,x.setTimeout)(()=>{n=0},g.ONE_MINUTE),(n+=1)<=r||i)return i=!1,!1;if(n===r+1){i=!0;try{t({message:`Reached max number of ${e}s by minute: ${r}`,source:W.ErrorSource.AGENT,startClocks:(0,g.clocksNow)()})}finally{i=!1}}return!0}}}var ia=e.i(337165);function is(e){return"object"===(0,eo.getType)(e)}let ic={"view.name":"string","view.url":"string","view.referrer":"string",context:"object",service:"string",version:"string"},il={[Q.VIEW]:{...ic,"view.performance.lcp.resource_url":"string"},[Q.ERROR]:{...ic,"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string"},[Q.RESOURCE]:{...ic,"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object"},[Q.ACTION]:{...ic,"action.target.name":"string"},[Q.LONG_TASK]:{...ic,"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string"},[Q.VITAL]:ic};function iu(e,t){return(0,eW.canUseEventBridge)()?+!!(0,eW.bridgeSupports)("records"):tc(e.id,ta(t.sessionSampleRate,t.sessionReplaySampleRate))?1:2*!!e.isReplayForced}e.s(["computeSessionReplayState",0,iu],444799);var id=e.i(575599);let ip=[Q.ACTION,Q.ERROR,Q.LONG_TASK,Q.RESOURCE,Q.VITAL];function im(e,t,r,n,i,o,a,c,u,p){var y,h;let S=[],_=new tY;_.subscribe(13,e=>(0,tF.sendToExtension)("rum",e)),t.expireObservable.subscribe(()=>_.notify(9)),t.renewObservable.subscribe(()=>_.notify(10));let C=e=>{_.notify(14,{error:e}),(0,v.addTelemetryDebug)("Error reported to customer",{"error.message":e.message})},w=(0,tq.createPageMayExitObservable)();if((0,eW.canUseEventBridge)()){let e;e=(0,eW.getEventBridge)(),_.subscribe(13,t=>{e.send("rum",t)});let t=w.subscribe(e=>{_.notify(11,e)});S.push(()=>t.unsubscribe())}else{let r,n,i,a,s,l=(y=t.expireObservable,n=[(0,eC.createEndpointBuilder)(e,"rum")],(i=(0,eC.createReplicaEndpointBuilder)(e,"rum"))&&n.push(i),a=(0,nZ.createBatch)({encoder:o(2),request:(0,n0.createHttpRequest)(n,C),flushController:(0,nQ.createFlushController)({pageMayExitObservable:w,sessionExpireOb
4servable:y})}),s=0,_.subscribe(13,e=>{if(e.type!==Q.VIEW)return void a.add(e);if(!(0,e2.isExperimentalFeatureEnabled)(e2.ExperimentalFeature.PARTIAL_VIEW_UPDATES))return void a.upsert(e,e.view.id);let t=e.view.id;if(!e.view.is_active){r=void 0,s=0,a.upsert(e,t);return}if(t!==r?.view.id){r=e,s=0,a.upsert(e,t);return}if((s+=1)>=100){s=0,r=e,a.upsert(e,t);return}let n=function(e,t){let r=function e(t,r,n){let i={},o=n?.replaceKeys??new Set,a=n?.appendKeys??new Set,s=n?.ignoreKeys??new Set;for(let n of Object.keys(t)){if(s.has(n))continue;let c=t[n],l=r[n];if(!o.has(n)&&(0,eo.isIndexableObject)(c)&&(0,eo.isIndexableObject)(l)){let t=e(c,l,{replaceKeys:n1(o,n),appendKeys:n1(a,n),ignoreKeys:n1(s,n)});t&&(i[n]=t)}else a.has(n)&&Array.isArray(c)&&Array.isArray(l)?c.length>l.length&&(i[n]=c.slice(l.length)):!function e(t,r){if(t===r)return!0;if(null===t||"object"!=typeof t||null===r||"object"!=typeof r)return t===r;if(Array.isArray(t)&&Array.isArray(r))return t.length===r.length&&t.every((t,n)=>e(t,r[n]));if(Array.isArray(t)||Array.isArray(r))return!1;let n=Object.keys(t),i=Object.keys(r);return n.length===i.length&&n.every(n=>i.includes(n)&&e(t[n],r[n]))}(c,l)&&(i[n]=c)}for(let e of Object.keys(r))e in t||(i[e]=null);return Object.keys(i).length>0?i:void 0}(e,t,{replaceKeys:new Set(["view.custom_timings","context","connectivity","usr","device","privacy"]),appendKeys:new Set(["_dd.page_states"]),ignoreKeys:new Set(["date","type","application","session","view.id","view.url","_dd.document_version","_dd.format_version"])});if(r)return(0,b.combine)(r,{type:Q.VIEW_UPDATE,date:e.date,application:e.application,session:e.session,view:{id:e.view.id,url:e.view.url},_dd:{document_version:e._dd.document_version,format_version:e._dd.format_version}})}(e,r);r=e,n&&((0,tF.sendToExtension)("rum",n),a.add(n))}),a),u=l.flushController.preparePageExitFlushObservable.subscribe(e=>{_.notify(11,{reason:e})});S.push(()=>u.unsubscribe()),S.push(()=>l.stop()),h=l.flushController.flushObservable,c.metricsEnabled&&(n9(),f=!1,_.subscribe(13,()=>{f=!0}),h.subscribe(({bytesCount:e,messagesCount:t})=>{f&&(f=!1,d.batchCount+=1,n7(d.batchBytesCount,e),n7(d.batchMessagesCount,t))}),(0,x.setInterval)(n4,n3))}let{stop:O}=function(e,t){if(!t.metricsEnabled)return{stop:k.noop};let{unsubscribe:r}=e.subscribe(4,({initialViewMetrics:e})=>{var t,n;e.largestContentfulPaint&&e.navigationTimings&&((0,v.addTelemetryMetrics)("Initial view metrics",{metrics:(t=e.largestContentfulPaint,n=e.navigationTimings,{lcp:{value:t.value},navigation:{domComplete:n.domComplete,domContentLoaded:n.domContentLoaded,domInteractive:n.domInteractive,firstByte:n.firstByte,loadEvent:n.loadEvent}})}),r())});return{stop:r}}(_,c);S.push(O);let{stop:M,...U}=function(e,t,r,n,i,o,a,c,u){var d,f,p,y,h,S,_,C,w,O,M,U;let L,P,V,K,F,q,Y,J,X,ea,es,ec,ed,ef,ep,eg,ey,ev,eb=[],eh=tH(),eE=(V=(0,eu.shallowClone)(n2()),new A.Observable(e=>{var t;let{stop:r}=function(e){let{stop:t}=R(n5("pushState"),"pushState",({onPostCall:t})=>{t(e)}),{stop:r}=R(n5("replaceState"),"replaceState",({onPostCall:t})=>{t(e)}),{stop:n}=(0,j.addEventListener)(window,"popstate",e);return{stop:()=>{t(),r(),n()}}}(i),{stop:n}=(t=i,(0,j.addEventListener)(window,"hashchange",t));function i(){if(V.href===n2().href)return;let t=(0,eu.shallowClone)(n2());e.notify({newLocation:t,oldLocation:V}),V=t}return()=>{r(),n()}})),{observable:eS,stop:eT}=function(){let e=new A.Observable,{stop:t}=R(window,"open",()=>e.notify());return{observable:e,stop:t}}();eb.push(eT);let{assemble:e_}=t;e_.register(({eventType:e})=>{let t=r.source;return{type:e,_dd:{format_version:2,drift:(0,g.clockDrift)(),configuration:{session_sample_rate:(0,el.round)(r.sessionSampleRate,3),session_replay_sample_rate:(0,el.round)(r.sessionReplaySampleRate,3),profiling_sample_rate:(0,el.round)(r.profilingSampleRate,3),trace_sample_rate:(0,el.round)(r.traceSampleRate,3)},browser_sdk_version:(0,eW.canUseEventBridge)()?"7.3.0":void 0,sdk_name:c},application:{id:r.applicationId},date:(0,g.timeStampNow)(),source:t}});let eC=function(e,t=500){let r,n=to({expireDelay:tl,maxEntries:4e3});rh(m.VISIBILITY_STATE)&&performance.getEntriesByType(m.VISIBILITY_STATE).forEac
4h(e=>{o("hidden"===e.name?"hidden":"active",e.startTime)}),o(n8(),(0,g.relativeNow)());let{stop:i}=(0,j.addEventListeners)(window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],e=>{var t;o("freeze"===(t=e).type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":n8(),e.timeStamp)},{capture:!0});function o(e,t=(0,g.relativeNow)()){e!==r&&(r=e,n.closeActive(t),n.add({state:r,startTime:t},t))}function a(e,t,r){return n.findAll(t,r).some(t=>t.state===e)}return e.register(({startTime:e,duration:r=0,eventType:i})=>i===Q.VIEW?{type:i,_dd:{page_states:function(e,t,r){if(0!==e.length)return e.slice(-r).reverse().map(({state:e,startTime:r})=>({state:e,start:(0,g.toServerDuration)((0,g.elapsed)(t,r))}))}(n.findAll(e,r),e,t)}}:i===Q.ACTION||i===Q.ERROR?{type:i,view:{in_foreground:a("active",e,0)}}:e4.SKIPPED),{wasInPageStateDuringPeriod:a,addPageState:o,stop:()=>{i(),n.stop()}}}(e_);eb.push(()=>eC.stop());let ew=(K=to({expireDelay:tl}),e.subscribe(1,e=>{var t;K.add({service:(t=e).service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks},e.startClocks.relative)}),e.subscribe(6,({endClocks:e})=>{K.closeActive(e.relative)}),e.subscribe(3,e=>{let t=K.find(e.startClocks.relative);t&&(e.name&&(t.name=e.name),e.context&&(t.context=e.context),t.sessionIsActive=e.sessionIsActive)}),e.subscribe(10,()=>{K.reset()}),{findView:e=>K.find(e),stop:()=>{K.stop()}});eb.push(()=>ew.stop());let eO=function(e,t,r){let n,i=to({expireDelay:tl});e.subscribe(1,({startClocks:e,url:t})=>{let r=(0,I.mockable)(D.globalObject.location).href,o=void 0!==t?(0,N.buildUrl)(t,r).href:r;i.add(a({url:o,referrer:n||document.referrer}),e.relative),n=o}),e.subscribe(6,({endClocks:e})=>{i.closeActive(e.relative)});let o=r.subscribe(({newLocation:e})=>{let t=i.find();if(t){let r=(0,g.relativeNow)();i.closeActive(r),i.add(a({url:e.href,referrer:t.referrer}),r)}});function a({url:e,referrer:t}){return{url:e,referrer:t}}return t.register(({startTime:e,eventType:t})=>{let r=i.find(e);return r?{type:t,view:{url:r.url,referrer:r.referrer}}:e4.DISCARDED}),{findUrl:e=>i.find(e),stop:()=>{o.unsubscribe(),i.stop()}}}(e,e_,eE);eb.push(()=>eO.stop());let eA=(F=to({expireDelay:tl}),e.subscribe(1,({startClocks:e})=>{F.add({},e.relative)}),e.subscribe(6,({endClocks:e})=>{F.closeActive(e.relative)}),e_.register(({startTime:e,eventType:t})=>{if(!r.trackFeatureFlagsForEvents.concat([Q.VIEW,Q.ERROR]).includes(t))return e4.SKIPPED;let n=F.find(e);return!n||(0,eu.isEmptyObject)(n)?e4.SKIPPED:{type:t,feature_flags:n}}),{addFeatureFlagEvaluation:(e,t)=>{let r=F.find();r&&(r[e]=t)}});e_.register(({eventType:e,startTime:t})=>{let o,a,s,c=n.findTrackedSession(t),l=ew.findView(t);return c&&l?(e===Q.VIEW?(o=!!i.getReplayStats(l.id)||void 0,a=1===iu(c,r),s=!!l.sessionIsActive&&void 0):o=!!i.isRecording()||void 0,{type:e,session:{id:c.id,type:"user",has_replay:o,sampled_for_replay:a,is_active:s}}):e4.DISCARDED}),e_.register(({eventType:e})=>({type:e,connectivity:(0,id.getConnectivity)()})),s||(s=function(){try{let e=sessionStorage.getItem(tz);if(e)return e;let t=(0,Z.generateUUID)();return sessionStorage.setItem(tz,t),t}catch{return}}()??(0,Z.generateUUID)()),q=s,e_.register(()=>({tab:{id:q}}));let eI=(Y=te(),r.storeContextsAcrossPages&&e3(Y,"rum",2),e_.register(()=>{let e=Y.getContext();return{context:e}}),Y),ex=(J=tt(),r.storeContextsAcrossPages&&e3(J,"rum",1),e_.register(({eventType:e,startTime:t})=>{let i=J.getContext(),o=n.findTrackedSession(t);return(o?.anonymousId&&!i.anonymous_id&&r.trackAnonymousUser&&(i.anonymous_id=o.anonymousId),(0,eu.isEmptyObject)(i))?e4.SKIPPED:{type:e,usr:i}}),J),ek=(X=e8(),r.storeContextsAcrossPages&&e3(X,"rum",4),e_.register(()=>{let e=X.getContext();return(0,eu.isEmptyObject)(e)||!e.id?e4.SKIPPED:{account:e}}),X),eR=function(e,t,r,n,i){var o;let a,s,{unsubscribe:c}=e.subscribe(0,t=>{e.notify(12,nm(t))}),l=k.noop;i.trackUserInteractions&&(a=function(e,t,r,n){let i,o=r2(e),a=new A.Observable;e.subscribe(5,l),e.subscribe(11,l);let{stop:s}=function({onPointerDown:e,onPointerUp:t}){let r,n,i={selection:!1,input:!1,scroll:!1},o=[(0,j.addEventListener)(window,"pointerdown",t=>{ns(t)&&(r=na(),i={selection:!1,input:!1,scroll:!1},n=e(t))},{capture:!0}),(0,j.addEventListener)(window,"selectionchange",()=>{r&&na()||(i.selection=!0)},{capture:!0}),(0,j.addEventListener)(window,"scroll",()=>{i.scroll=!0},{capture:!0,passive:!0}),(0,j.addEventListener)(window,"pointerup",e=>{if(ns(e)&&n){let r=i;t(n,e,()=>r),n=void 0}},{capture:!0}),(0,j.addEventListener)(window,"input",()=>{i.input=!0},{capture:!0})];return{stop:()=>
4{o.forEach(e=>e.stop())}}}({onPointerDown:i=>(function(e,t,r,n,i){let o;if((o=e.enablePrivacyForActionName?rz(np(n),e.defaultPrivacyLevel):rK.ALLOW)===rK.HIDDEN)return;let a=function(e,t,r){let n=np(e),i=n.getBoundingClientRect(),o=rk(n,r.actionNameAttribute),a=function(e,t){let r=e.filter(e=>e instanceof Element&&!r5.includes(e.tagName));if(0===r.length)return"";let n=t?[t].concat(r4):r4,i="";for(let e of r)if((i+=function(e,t){let r=rD(e),n=rN(e),i=Array.from(e.classList).filter(e=>!rR(e)).sort().map(e=>`.${CSS.escape(e)}`).join(""),o=function(e,t){let r=[];for(let n of Array.from(e.attributes))t.includes(n.name)&&r.push(rU(n.name,n.value));return r.sort().join("")}(e,t),a=function(e){let t=Array.from(e.parentNode.children);if(t.length<=1)return"";let r=t.filter(t=>t.tagName===e.tagName),n=t.indexOf(e),i=rL(e);return`:nth-child(${n+1})${r.length>1?`:nth-of-type(${i})`:""}`}(e);return`${r}${n||""}${o}${i}${a};`}(e,n)).length>=r3)return(0,Z.safeTruncate)(i,r3);return i}(e.composedPath(),r.actionNameAttribute);o&&nd(e.timeStamp,o);let{name:s,nameSource:c}=function(e,t,r=rK.ALLOW){let n=new Map,{actionNameAttribute:i}=t,o=r7(e,rw)||i&&r7(e,i);return o?{name:o,nameSource:"custom_attribute"}:r===rK.MASK?{name:rO,nameSource:"mask_placeholder"}:ne(e,r9,t,n)||ne(e,r8,t,n)||{name:"",nameSource:"blank"}}(n,r,t);return{type:er.CLICK,target:{width:Math.round(i.width),height:Math.round(i.height),selector:o,composedPathSelector:a||void 0},position:{x:Math.round(e.clientX-i.left),y:Math.round(e.clientY-i.top)},name:s,nameSource:c}}(n,o,e),s=!1;return rS(t,r,i,e,e=>{s=e.hadActivity},100),{clickActionBase:a,hadActivityOnPointerDown:()=>s}})(n,e,t,i,r),onPointerUp:({clickActionBase:i,hadActivityOnPointerDown:s},l,u)=>{!function(e,t,r,n,i,o,a,s,c,l,u){let d=function e(t,r,n,i,o){let a,s=(0,Z.generateUUID)(),c=(0,g.relativeToClocks)(o.timeStamp),l=r.start(s,c,i,{isChildEvent:nf});t.notify(15,l);let u=0,d=[],f=new A.Observable;function p(e){0===u&&(u=1,a=e?r.stop(s,(0,g.timeStampToClocks)(e)):r.discard(s),f.notify())}return{event:o,stop:p,stopObservable:f,get hasError(){let e=a?.counts??r.getCounts(s);return!!e&&e.errorCount>0},get hasPageActivity(){return a&&"duration"in a},getUserActivity:n,addFrustration:e=>{d.push(e)},get startClocks(){return c},isStopped:()=>1===u||2===u,clone:()=>e(t,r,n,i,o),validate:e=>{if(p(),1!==u||!a)return;let r={frustrationTypes:d,events:e??[o],event:o,...a,counts:a.counts};t.notify(0,r),u=2},discard:()=>{p(),u=2}}}(t,i,l,s,c);a(d);let f=s?.target?.selector;f&&nd(c.timeStamp,f);let{stop:p}=rS(t,r,n,e,e=>{e.hadActivity&&e.end<d.startClocks.timeStamp?d.discard():e.hadActivity?d.stop(e.end):u()?d.stop(d.startClocks.timeStamp):d.stop()},nl),m=t.subscribe(5,({endClocks:e})=>{d.stop(e.timeStamp)}),y=t.subscribe(11,()=>{d.stop((0,g.timeStampNow)())}),v=o.subscribe(()=>{d.stop()});d.stopObservable.subscribe(()=>{y.unsubscribe(),m.unsubscribe(),p(),v.unsubscribe()})}(n,e,t,r,o,a,c,i,l,u,s)}});return{stop:()=>{l(),a.notify(),s(),o.stopAll()},findActionId:o.findId};function c(e){if(!i?.tryAppend(e)){let t=e.clone();i=function(e,t){let r,n=[],i=0;function o(e){e.stopObservable.subscribe(a),n.push(e),(0,x.clearTimeout)(r),r=(0,x.setTimeout)(s,r6)}function a(){1===i&&n.every(e=>e.isStopped())&&(i=2,t(n))}function s(){(0,x.clearTimeout)(r),0===i&&(i=1,a())}return o(e),{tryAppend:e=>{var t,r,a,c;return 0===i&&(!(n.length>0)||(t=n[n.length-1].event,r=e.event,t.target===r.target&&100>=(a=t,c=r,Math.sqrt(Math.pow(a.clientX-c.clientX,2)+Math.pow(a.clientY-c.clientY,2)))&&t.timeStamp-r.timeStamp<=r6)?(o(e),!0):(s(),!1))},stop:()=>{s()}}}(e,e=>{(function(e,t){let{isRage:r}=function(e,t){if(function(e){if(e.some(e=>e.getUserActivity().selection||e.getUserActivity().scroll))return!1;for(let t=0;t<e.length-2;t+=1)if(e[t+3-1].event.timeStamp-e[t].event.timeStamp<=g.ONE_SECOND)return!0;return!1}(e))return t.addFrustration(en.RAGE_CLICK),e.some(nc)&&t.addFrustration(en.DEAD_CLICK),t.hasError&&t.addFrustration(en.ERROR_CLICK),{isRage:!0};let r=e.some(e=>e.getUserActivity().selection);return e.forEach(e=>{e.hasError&&e.addFrustration(en.ERROR_CLICK),nc(e)&&!r&&e.addFrustration(en.DEAD_CLICK)}),{isRage:!1}}(e,t);
4r?(e.forEach(e=>e.discard()),t.stop((0,g.timeStampNow)()),t.validate(e.map(e=>e.event))):(t.discard(),e.forEach(e=>e.validate()))})(e,t),i=void 0})}}function l(){i&&i.stop()}}(e,r,n,i));let u=(o=t=>{e.notify(12,nm(t))},{addAction:function(e){o({id:(0,Z.generateUUID)(),frustrationTypes:[],...e})},startAction:function(t,r={},n=(0,g.clocksNow)()){let i=r.actionKey??t,o=s.start(i,n,{name:t,...r},{isChildEvent:nf});e.notify(15,o)},stopAction:function(e,t={},r=(0,g.clocksNow)()){let n=t.actionKey??e,i=s.stop(n,r,t);if(!i)return;let a=[];i.counts&&i.counts.errorCount>0&&a.push(en.ERROR_CLICK),o({...i,type:i.type||er.CUSTOM,frustrationTypes:a})},findActionId:(s=r2(e)).findId,stop:s.stopAll}),d={findActionId:e=>{let t=u.findActionId(e),r=a?.findActionId(e)??[];return t.concat(r)}};return t.assemble.register(({startTime:e,eventType:t})=>{if(t!==Q.ERROR&&t!==Q.RESOURCE&&t!==Q.LONG_TASK)return e4.SKIPPED;let r=t===Q.LONG_TASK?(0,g.addDuration)(e,1):e,n=d.findActionId(r);return n.length?{type:t,action:{id:n}}:e4.SKIPPED}),t.assembleTelemetry.register(({startTime:e})=>({action:{id:d.findActionId(e)}})),{addAction:u.addAction,startAction:u.startAction,stopAction:u.stopAction,actionContexts:d,stop:()=>{c(),l(),u.stop(),a?.stop()}}}(e,t,eh,eS,r);eb.push(eR.stop);let eN={addEvent:(t,r,n,i)=>{ip.includes(r.type)&&e.notify(12,{startClocks:(0,g.relativeToClocks)(t),rawRumEvent:r,domainContext:n,duration:i})}},eD=(es=requestAnimationFrame((0,E.monitor)(()=>{ea=nH()})),ec=nG().subscribe(e=>{ea=e}).unsubscribe,e_.register(({eventType:e})=>({type:e,display:ea?{viewport:ea}:void 0})),{stop:()=>{ec(),es&&cancelAnimationFrame(es)}});eb.push(eD.stop);let eM=function(e,t=function(e){let t=tx()?(e,t)=>(0,j.addEventListener)(D.globalObject.cookieStore,"change",r=>{let n=r.changed.find(t=>t.name===e)||r.deleted.find(t=>t.name===e);n&&t(n.value)}).stop:ir;return new A.Observable(r=>t(e,e=>r.notify(e)))}(ii)){let r=em(ii)||function(){let e=window.Cypress;if(e)try{return e.env("traceId")}catch{z.display.warn("Failed to read Cypress test execution id via Cypress.env(). Upgrade dd-trace-js to >= 5.88.0 to keep RUM â test correlation working.");return}}(),n=t.subscribe(e=>{r=e});return e.register(({eventType:e})=>"string"!=typeof r?e4.SKIPPED:{type:e,session:{type:"ci_test"},ci_test:{test_execution_id:r}}),{stop:()=>{n.unsubscribe()}}}(e_);eb.push(eM.stop),e_.register(({eventType:e})=>e1()?{type:e,session:{type:"synthetics"},synthetics:{...e1(),injected:e0()}}:e4.SKIPPED),ed={[Q.ERROR]:io(Q.ERROR,u,void 0),[Q.ACTION]:io(Q.ACTION,u,void 0),[Q.VITAL]:io(Q.VITAL,u,void 0)},e.subscribe(12,({startClocks:t,duration:n,rawRumEvent:i,domainContext:o})=>{let a=e_.trigger({eventType:i.type,rawRumEvent:i,domainContext:o,startTime:t.relative,duration:n});if(a===e4.DISCARDED)return;let s=(0,b.combine)(a,i,{ddtags:(0,ia.buildTags)(r).join(",")});(function(e,t,r,n){if(t){var i;let n,o,a=(i=il[e.type],o=(e=>t(e,r))(n=(0,b.deepClone)(e)),(0,tp.objectEntries)(i).forEach(([t,r])=>(function e(t,r,n,i){let[o,...a]=n;if("[]"===o){Array.isArray(t)&&Array.isArray(r)&&t.forEach((t,n)=>e(t,r[n],a,i));return}if(is(t)&&is(r)){if(a.length>0)return e(t[o],r[o],a,i);!function(e,t,r,n){if(e[t]===r)return;let i=(0,eo.getType)(r);i===n?e[t]=(0,T.sanitize)(r):"object"===n&&("undefined"===i||"null"===i)&&(e[t]={})}(t,o,r[o],i)}})(e,n,t.split(/\.|(?=\[\])/),r)),o);if(!1===a&&e.type!==Q.VIEW)return!1;!1===a&&z.display.warn("Can't dismiss view events using beforeSend!")}return!n[e.type]?.isLimitReached()})(s,r.beforeSend,o,ed)&&((0,eu.isEmptyObject)(s.context)&&delete s.context,e.notify(13,s))});let{addTiming:eU,setLoadingTime:eL,startView:eP,setViewName:e$,setViewContext:eV,setViewContextProperty:ej,getViewContext:eK,stop:eB}=(e.subscribe(4,t=>{var n,o;let a,s,c;return e.notify(12,(n=t,o=r,a=i.getReplayStats(n.id),s=n.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,c={_dd:{document_version:n.documentVersion,replay_stats:a,cls:s?{device_pixel_ratio:s}:void 0,configuration:{start_session_replay_recording_manually:o.startSessionReplayRecordingManually}},date:n.startClocks.timeStamp,type:Q.VIEW,view:{action:{count:n.eventCounts.actionCount},frustration:{count:n.eventCounts.frustrationCount},cumulative_layout_shift:n.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:(0,g.toServerDuration)(n.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:n.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:(0,g.toServerDuration)(n.initialViewMetrics.navigationTimings?.firstByte),dom_complete:(0,g.toServerDuration)(n.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:(0,g.toServerDuration)(n.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:(0,g.toServerDuration)(n.initialViewMetrics.navigationTimings?.domInteractive),error:{count:n.eventCounts.errorCount},first_contentful_paint:(0,g.toServerDuration)(n.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:(0,g.toServerDuration)(n.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:(0,g.toServerDuration)(n.commonViewMetrics.interactionToNextPaint?.time),interaction_to_next_paint_target_selector:n.commonViewMetrics.interactionToNextPaint?.targetSelector,is_active:n.isActive,name:n.name,largest_contentful_paint:(0,g.toServerDuration)(n.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:n.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:(0,g.toServerDuration)(n.initialViewMetrics.navigationTimings?.loadEvent),loading_time:ru((0,g.toServerDuration)(n.commonViewMetrics.loadingTime)),loading_type:n.loadingType,long_task:{count:n.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:r,largestContentfulPaint:n}){return{cls:e&&{score:e.value,timestamp:(0,g.toServerDuration)(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:r&&{timestamp:(0,g.toServerDuration)(r)},inp:t&&{duration:(0,g.toServerDuration)(t.value),timestamp:(0,g.toServerDuration)(t.time),target_selector:t.targetSelector,sub_parts:t.subParts?{input_delay:(0,g.toServerDuration)(t.subParts.inputDelay),processing_duration:(0,g.toServerDuration)(t.subParts.processingDuration),presentation_delay:(0,g.toServerDuration)(t.subParts.presentationDelay)}:void 0},lcp:n&&{timestamp:(0,g.toServerDuration)(n.value),target_selector:n.targetSelector,resource_url:n.resourceUrl,sub_parts:n.subParts?{load_delay:(0,g.toServerDuration)(n.subParts.loadDelay),load_time:(0,g.toServerDuration)(n.subParts.loadTime),render_delay:(0,g.toServerDuration)(n.subParts.renderDelay)}:void 0}}}(n.commonViewMetrics,n.initialViewMetrics),resource:{count:n.eventCounts.resourceCount},time_spent:(0,g.toServerDuration)(n.duration)},display:n.commonViewMetrics.scroll?{scroll:{max_depth:n.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:n.
4commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:n.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,g.toServerDuration)(n.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:o.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}()}},(0,eu.isEmptyObject)(n.customTimings)||(c.view.custom_timings=(0,eu.mapValues)(n.customTimings,g.toServerDuration)),{rawRumEvent:c,startClocks:n.startClocks,duration:n.duration,domainContext:{location:n.location,handlingStack:n.handlingStack}}))}),t.assemble.register(({startTime:e,eventType:t})=>{let r=ew.findView(e);return r?{type:t,service:r.service,version:r.version,context:r.context,view:{id:r.id,name:r.name}}:e4.DISCARDED}),t.assembleTelemetry.register(({startTime:e})=>({view:{id:ew.findView(e)?.id}})),function(e,t,r,n,i,o,a){let s,c,u=new Set,d=f(et.INITIAL_LOAD,(0,nR.clocksOrigin)(),a);function f(i,o,a){let s=function(e,t,r,n,i,o=(0,nR.clocksNow)(),a){var s;let c,u=(0,Z.generateUUID)(),d=new A.Observable,f={},p=0,y=(0,eu.shallowClone)((0,I.mockable)(window.location)),v=e9(),b=!0,h=a?.name,S=a?.service||n.service,T=a?.version||n.version,_=a?.context,C=a?.handlingStack;_&&v.setContext(_);let w={id:u,name:h,startClocks:o,service:S,version:T,context:_,url:a?.url};e.notify(1,w),e.notify(2,w);let{throttled:O,cancel:R}=(0,k.throttle)(W,3e3,{leading:!1}),{setLoadEvent:N,setViewEnd:D,stop:M,stopINPTracking:U,getCommonViewMetrics:L,setLoadingTime:P}=function(e,t,r,n,i,o,a){let s={},c=!1,u=!1,{stop:d,setLoadEvent:f}=function(e,t,r,n,i,o,a){let s=i===et.INITIAL_LOAD,c=!0,l=[],u=nM(o);function d(){if(!c&&!s&&l.length>0){let e=Math.max(...l);e<u.timeStamp-o.relative&&a(e)}}let{stop:f}=rS(e,t,r,n,e=>{c&&(c=!1,e.hadActivity&&l.push((0,g.elapsed)(o.timeStamp,e.end)),d())});return{stop:()=>{f(),u.stop()},setLoadEvent:e=>{s&&(s=!1,l.push(e),d())}}}(e,t,r,n,o,a,e=>{c||(s.loadingTime=e,i())}),{stop:p}=function(e,t,r=function(e=nW){return new A.Observable(t=>{let r=(0,k.throttle)(function(){t.notify(function(){let e=nz(),{height:t}=nH();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(t+e),scrollTop:e}}())},e,{leading:!1,trailing:!0}),n=document.scrollingElement||document.documentElement,i=new ResizeObserver((0,E.monitor)(r.throttled));n&&i.observe(n);let o=(0,j.addEventListener)(window,"scroll",r.throttled,{passive:!0});return()=>{r.cancel(),i.disconnect(),o.stop()}})}()){let n=0,i=0,o=0,a=r.subscribe(({scrollDepth:r,scrollTop:a,scrollHeight:s})=>{let c=!1;if(r>n&&(n=r,c=!0),s>i){i=s;let t=(0,g.relativeNow)();o=(0,g.elapsed)(e.relative,t),c=!0}c&&t({maxDepth:Math.min(n,i),maxDepthScrollTop:a,maxScrollHeight:i,maxScrollHeightTime:o})});return{stop:()=>a.unsubscribe()}}(a,e=>{s.scroll=e}),{stop:y}=function(e,t,r){let n,i,o,a,s;if(!(rh(m.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:k.noop};let c=0;r({value:0});let l=(a=0,s=0,{update:e=>{let t;return void 0===i||e.startTime-o>=n$||e.startTime-i>=nP?(i=o=e.startTime,s=a=e.value,t=!0):(a+=e.value,o=e.startTime,(t=e.value>s)&&(s=e.value)),{cumulatedValue:a,isMaxValue:t}}}),u=rb({type:m.LAYOUT_SHIFT,buffered:!0}).subscribe(i=>{for(let o of i){if(o.hadRecentInput||o.startTime<t)continue;let{cumulatedValue:i,isMaxValue:a}=l.update(o);if(a){let e=function(e){let t;for(let r of e)if(r.node&&rp(r.node)){let e=nU(r);(!t||nU(t)<e)&&(t=r)}return t}(o.sources);n={target:e?.node?new WeakRef(e.node):void 0,time:(0,g.elapsed)(t,o.startTime),previousRect:e?.previousRect,currentRect:e?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>c){c=i;let t=n?.target?.deref();r({value:(0,el.round)(c,4),targetSelector:t&&rk(t,e.actionNameAttribute),time:n?.time,previousRect:n?.previousRect?nL(n.previousRect):void 0,currentRect:n?.currentRect?nL(n.currentRect):void 0,devicePixelRatio:n?.devicePixelRatio})}}});return{stop:()=>{u.unsubscribe()}}}(n,a.relative,e=>{s.cumulativeLayoutShift=e,i()}),{stop:v,getInteractionToNextPaint:b,setViewEnd:h}=function(e,t,r){var n;let i,o,a;if(!(rh(m.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>
4void 0,setViewEnd:k.noop,stop:k.noop};let s=1/0,{getViewInteractionCount:c,stopViewInteractionCount:u}=(n=r,"interactionCount"in performance||l||(l=new window.PerformanceObserver((0,E.monitor)(e=>{e.getEntries().forEach(e=>{e.interactionId&&(nj=Math.min(nj,e.interactionId),nV=((nK=Math.max(nK,e.interactionId))-nj)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),o=n===et.INITIAL_LOAD?0:nB(),a={stopped:!1},{getViewInteractionCount:()=>a.stopped?a.interactionCount:nB()-o,stopViewInteractionCount:()=>{a={stopped:!0,interactionCount:nB()-o}}}),d=function(e){let t=[];function r(){t.sort((e,t)=>t.duration-e.duration).splice(10)}return{process(e){let n=t.findIndex(t=>e.interactionId===t.interactionId),i=t[t.length-1];-1!==n?e.duration>t[n].duration&&(t[n]=e,r()):(t.length<10||e.duration>i.duration)&&(t.push(e),r())},estimateP98Interaction(){let r=Math.min(t.length-1,Math.floor(e()/50));return t[r]},isTracked:e=>t.some(t=>t.interactionId===e)}}(c),f=function(e){let t=new Map;function r(e,t){e.startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd)}return{process(e){if(void 0===e.interactionId||!e.processingStart||!e.processingEnd)return;let n=e.startTime+e.duration,i=t.get(e.interactionId);if(i)return void r(i,e);for(let[,i]of t.entries())if(8>=Math.abs(n-i.referenceRenderTime)){r(i,e),t.set(e.interactionId,i);return}t.set(e.interactionId,{startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,referenceRenderTime:n})},pruneUntracked(){for(let[r]of t)e.isTracked(r)||t.delete(r)},computeSubParts(e,r){if(!e.processingStart||!e.processingEnd||void 0===e.interactionId)return;let n=t.get(e.interactionId);if(!n)return;let i=Math.max(n.startTime+r,n.processingStart),o=Math.min(n.processingEnd,i);return{inputDelay:(0,g.elapsed)(n.startTime,n.processingStart),processingDuration:(0,g.elapsed)(n.processingStart,o),presentationDelay:(0,g.elapsed)(o,i)}},stop(){t.clear()}}}(d),p=rb({type:m.FIRST_INPUT,buffered:!0}).subscribe(v),y=rb({type:m.EVENT,durationThreshold:40,buffered:!0}).subscribe(v);function v(r){for(let e of r)e.interactionId&&e.startTime>=t&&e.startTime<=s&&(d.process(e),f.process(e));f.pruneUntracked();let n=d.estimateP98Interaction();n&&function(r){let n=(0,g.elapsed)(t,r.startTime);if(r.duration!==i?.duration||n!==i.startTime){var o;let t,a=(o=r.startTime,t=nu.get(o),nu.delete(o),t);!a&&r.target&&rp(r.target)&&(a=rk(r.target,e.actionNameAttribute)),i={duration:r.duration,startTime:n,targetSelector:a}}i.subParts=f.computeSubParts(r,nq(i.duration))}(n)}return{getInteractionToNextPaint:()=>i?{value:nq(i.duration),targetSelector:i.targetSelector,time:i.startTime,subParts:i.subParts}:c()?{value:0}:void 0,setViewEnd:e=>{s=e,u()},stop:()=>{y.unsubscribe(),p.unsubscribe(),f.stop()}}}(n,a.relative,o);return{stop:()=>{d(),y(),p()},stopINPTracking:v,setLoadEvent:f,setViewEnd:e=>{u=!0,h(e)},getCommonViewMetrics:()=>(s.interactionToNextPaint=b(),s),setLoadingTime:e=>{if(u)return;let t=(0,g.elapsed)(a.timeStamp,e??(0,g.timeStampNow)());c||d(),c=!0,s.loadingTime=t,i()}}}(e,t,r,n,H,i,o),{stop:$,initialViewMetrics:V}=i===et.INITIAL_LOAD?function(e,t,r,n){var i,o;let a={},{stop:s}=(i=e=>{r(e.loadEvent),a.navigationTimings=e,n()},function(e){let t,{stop:r}=nS("complete",()=>{t=(0,x.setTimeout)(()=>e())});return{stop:()=>{r(),(0,x.clearTimeout)(t)}}}(()=>{var e;let t=(0,I.mockable)(nO)();t.loadEventEnd<=0||i({domComplete:(e=t).domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:nA(e)})})),c=nM(t),{stop:l}=(o=e=>{a.firstContentfulPaint=e,n()},{stop:rb({type:m.PAINT,buffered:!0}).subscribe(e=>{let t=e.find(e=>"first-contentful-paint"===e.name&&e.startTime<c.timeStamp&&e.startTime<nN);t&&o(t.startTime)}).unsubscribe}),{stop:u}=function(e,t,r,n){let i=1/0,{stop:o}=(0,j.addEventListeners)(r,["pointerdown","keydown"],e=>{i=e.timeStamp},{capture:!0,once:!0}),a=0,s=rb({type:m.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(r=>{let o=(0,tp.findLast)(r,e=>e.entryType===m.LARGEST_CONTENTFUL_PAINT&&e.startTime<i&&e.startTime<t.timeStamp&&e.startTime<nD&&e.size>a);if(o){var s;let t;o.element&&(t=rk(o.element,e.actionNameAttribute));let r=""===(s=o).url?void 0:s.url,i=o.startTime,c=function(e,t){let r=nA(nO());if(void 0===r)return;let n=e?function(e,t){let r=function(){if(rh(m.RESOURCE))return performance.getEntriesByType(m.RESOURCE)}();if(r)return(0,tp.findLast)(r,r=>r.name===e&&r.startTime<=t)}(e,t):void 0,i=n?Math.max(r,n.requestStart||n.startTime):r,o=Math.min(t,Math.max(i,n?.responseEnd||0));return{loadDelay:i-r,loadTime:o-i,renderDelay:t-o}}(r,i);n({value:i,targetSelector:t,resourceUrl:r,subParts:c}),a=o.size}}
4);return{stop:()=>{o(),s.unsubscribe()}}}(e,c,window,e=>{a.largestContentfulPaint=e,n()});return{stop:function(){s(),l(),u(),c.stop()},initialViewMetrics:a}}(n,o,N,H):{stop:k.noop,initialViewMetrics:{}};i===et.BF_CACHE&&(s=o.relative,requestAnimationFrame(()=>{requestAnimationFrame(()=>{(e=>{V.firstContentfulPaint=e,V.largestContentfulPaint={value:e},H()})((0,g.elapsed)(s,(0,g.relativeNow)()))})}));let{stop:K,eventCounts:B}=function(e,t,r){let{stop:n,eventCounts:i}=r0({lifeCycle:e,isChildEvent:e=>e.view.id===t,onChange:r});return{stop:n,eventCounts:i}}(e,u,H),F=(0,x.setInterval)(W,nY),q=e.subscribe(11,e=>{e.reason===tq.PageExitReason.UNLOADING&&W()});function G(){e.notify(3,{id:u,name:h,context:v.getContext(),startClocks:o,sessionIsActive:b})}function H(){G(),O()}function W(){R(),G(),p+=1;let t=void 0===c?(0,nR.timeStampNow)():c.timeStamp;e.notify(4,{customTimings:f,documentVersion:p,id:u,name:h,service:S,version:T,context:v.getContext(),loadingType:i,location:y,handlingStack:C,startClocks:o,commonViewMetrics:L(),initialViewMetrics:V,duration:(0,nR.elapsed)(o.timeStamp,t),isActive:void 0===c,sessionIsActive:b,eventCounts:B})}return W(),v.changeObservable.subscribe(H),{get name(){return h},service:S,version:T,contextManager:v,stopObservable:d,end(t={}){c||(c=t.endClocks??(0,nR.clocksNow)(),b=t.sessionIsActive??!0,e.notify(5,{endClocks:c}),e.notify(6,{endClocks:c}),(0,x.clearInterval)(F),D(c.relative),M(),q.unsubscribe(),W(),(0,x.setTimeout)(()=>{this.stop()},nJ))},stop(){$(),K(),U(),d.notify()},addTiming(e,t){var r;let n;if(c)return;let i=(0,nR.isRelativeTime)(t)?t:(0,nR.elapsed)(o.timeStamp,t);f[(n=(r=e).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==r&&z.display.warn(`Invalid timing name: ${r}, sanitized to: ${n}`),n]=i,H()},setLoadingTime:P,setViewName(e){h=e,W()}}}(e,t,r,n,i,o,a);return u.add(s),s.stopObservable.subscribe(()=>{u.delete(s)}),s}return e.subscribe(10,()=>{d=f(et.SESSION_RENEWAL,void 0,{name:d.name,service:d.service,version:d.version,context:d.contextManager.getContext()})}),e.subscribe(9,()=>{d.end({sessionIsActive:!1})}),o&&(c=i.subscribe(({oldLocation:e,newLocation:t})=>{var r,n;let i;r=e,n=t,r.pathname===n.pathname&&(""!==(i=n.hash.substring(1))&&document.getElementById(i)||nX(n.hash)===nX(r.hash))||(d.end(),d=f(et.ROUTE_CHANGE))}),s=function(e){let{stop:t}=(0,j.addEventListener)(window,"pageshow",t=>{t.persisted&&e(t)},{capture:!0});return t}(e=>{d.end();let t=(0,nR.relativeToClocks)(e.timeStamp);d=f(et.BF_CACHE,t,void 0)})),{addTiming:(e,t=(0,nR.timeStampNow)())=>{d.addTiming(e,t)},setLoadingTime:e=>d.setLoadingTime(e),startView:(e,t)=>{d.end({endClocks:t}),d=f(et.ROUTE_CHANGE,t,e)},setViewContext:e=>{d.contextManager.setContext(e)},setViewContextProperty:(e,t)=>{d.contextManager.setContextProperty(e,t)},setViewName:e=>{d.setViewName(e)},getViewContext:()=>d.contextManager.getContext(),stop:()=>{c&&c.unsubscribe(),s&&s(),d.end(),u.forEach(e=>e.stop())}}}(e,eh,eS,r,eE,!r.trackViewsManually,o)),eF=window,eq=new Map;function ez(){eF.DD_SOURCE_CODE_CONTEXT&&((0,v.addTelemetryUsage)({feature:"source-code-context"}),(0,tp.objectEntries)(eF.DD_SOURCE_CODE_CONTEXT).forEach(([e,t])=>{let r=(0,G.computeStackTrace)({stack:e}).stack[0];r.url?eq.has(r.url)||eq.set(r.url,t):(0,v.addTelemetryError)("Source code context: missing frame url",{stack:e})}),eF.DD_SOURCE_CODE_CONTEXT={})}ez(),e_.register(({domainContext:e,rawRumEvent:t})=>{if(ez(),0===eq.size)return e4.SKIPPED;let r=function(e,t){let r;if("long_task"===t.type&&"long-animation-frame"===t.long_task.entry_type)return t.long_task.scripts[0]?.source_url;"handlingStack"in e&&(r=e.handlingStack),"error"===t.type&&t.error.stack&&(r=t.error.stack);let n=(0,G.computeStackTrace)({stack:r});return n.stack[0]?.url}(e,t),n=r&&eq.get(r);return n?{type:t.type,service:n.service,version:n.version}:e4.SKIPPED}),eb.push(eB);let eG=function(e,t){let r,n,i=(0,I.mockable)(nE)(),o=(r=new Set,n=e.subscribe(8,e=>{r.add(e),r.size>1e3&&r.delete(r.values().next().value)}),{getMatchingRequest(e){let t,n=1/0;for(let i of r){let r=e.startTime-i.startClocks.relative;0<=r&&r<n&&i.url===e.name&&(n=Math.abs(r),t=i)}return t&&r.delete(t),t},stop(){n.unsubscribe()}}),a=rb({type:m.RESOURCE,buffered:!0}).subscribe(r=>{for(let n of r)t1(n)?(0,x.setTimeout)(()=>{let r=nI(n,o.getMatchingRequest(n),t);r&&e.notify(12,r)},50):c(()=>nI(n,void 0,t))}),{stop:s}=nS("interactive",()=>{c(()=>nI(nO(),void 0,t))});function c(t){i.push(()=>{let r=t();r&&e.notify(12,r)})}let l=r2(e),u={startResource:function(e,t={},r=(0,g.clocksNow)()){let n=t.resourceKey??e;l.start(n,r,{url:e,...t})},stopResource:function(t,r={},n=(0,g.clocksNow)()){let i=r.resourceKey??t,o=l.stop(i,n,{context:r.context,type:r.type});if(!o)return;let a=(0,g.elapsed)(o.startClocks.relative,n.relative),s={date:o.startClocks.timeStamp,type:Q.RESOURCE,resource:{id:o.id,type:o.type||tX,url:rt(o.url),duration:(0,g.toServerDuration)(a),method:o.method,status_code:r.statusCode,size:r.size},_dd:{},context:o.context};e.notify(12,{rawRumEvent:s,startClocks:o.startClocks,duration:a,domainContext:{isManual:!0}})}};return{startResource:u.startResource,stopResource:u.stopResource,stop:()=>{s(),i.stop(),a.unsubscribe(),l.stopAll()}}}(e,r);eb.push(eG.stop);let{stop:eH}=(ef=rb({type:rh(m.LONG_ANIMATION_FRAME)?m.LONG_ANIMATION_FRAME:m.LONG_TASK,buffered:!0}).subscribe(t=>{for(let n of t){if(!r.trackLongTasks)break;let t=(0,g.relativeToClocks)(n.startTime),i=function(e,t){let r=(0,Z.generateUUID)(),n=(0,g.toServerDuration)(e.duration),i={date:t.timeStamp,type:Q.LONG_TASK,_dd:{discarded:!1}};return e.entryType===m.LONG_TASK?{...i,long_task:{id:r,entry_type:ee.LONG_TASK,duration:n}}:{...i,long_task:{id:r,entry_type:ee.LONG_ANIMATION_FRAME,duration:n,blocking_duration:(0,g.toServerDuration)(e.blockingDuration),first_ui_event_timestamp:(0,g.toServerDuration)(e.firstUIEventTimestamp),render_start:(0,g.toServerDuration)(e.renderStart),style_and_layout_start:(0,g.toServerDuration)(e.styleAndLayoutStart),start_time:(0,g.toServerDuration)(e.startTime),scripts:e.scripts.map(e=>({duration:(0,g.toServerDuration)(e.duration),pause_duration:(0,g.toServerDuration)(e.pauseDuration),forced_style_and_layout_duration:(0,g.toServerDuration)(e.forcedStyleAndLayoutDuration),start_time:(0,g.toServerDuration)(e.startTime),execution_start:(0,g.toServerDuration)(e.executionStart),source_url:e.sourceURL,source_function_name:e.sourceFunctionName,source_char_position:e.sourceCharPosition,invoker:e.invoker,invoker_type:e.invokerType,window_attribution:e.windowAttribution}))}}}(n,t);e.notify(12,{rawRumEvent:i,startClocks:t,duration:n.duration,domainContext:{performanceEntry:n}})}}),{stop:()=>ef.unsubscribe()});eb.push(eH);let{addError:eY}=(ep=new A.Observable,a.subscribe(({data:e,type:t})=>{0===t?ep.notify(e):3===t&&e.api===z.ConsoleApiName.error&&ep.notify(e.error)}),(eg=[],(d=[ng,"intervention"]).includes(ng)&&eg.push(new A.Observable(e=>{if(!(0,j.isEventSupported)(document,"securitypolicyviolation"))return;let{stop:t}=(0,j.addEventListener)(document,"securitypolicyviolation",t=>{var r;let n;e.notify((r=t,n=`'${r.blockedURI}' blocked by '${r.effectiveDirective}' directive`,ny({type:r.effectiveDirective,message:`${ng}: ${n}
4`,originalError:r,csp:{disposition:r.disposition},stack:nv(r.effectiveDirective,r.originalPolicy?`${n} of the policy "${(0,Z.safeTruncate)(r.originalPolicy,100,"...")}"`:"no policy",r.sourceFile,r.lineNumber,r.columnNumber)})))});return t})),(ey=d.filter(e=>e!==ng)).length&&eg.push((y=ey,new A.Observable(e=>{if(!window.ReportingObserver)return;let t=(0,E.monitor)((t,r)=>t.forEach(t=>e.notify(function(e){let{type:t,body:r}=e;return ny({type:r.id,message:`${t}: ${r.message}`,originalError:e,stack:nv(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}(t)))),r=new window.ReportingObserver(t,{types:y,buffered:!0});return r.observe(),()=>{r.disconnect()}}))),(0,A.mergeObservables)(...eg)).subscribe(e=>ep.notify(e)),ep.subscribe(t=>e.notify(14,{error:t})),(h=e).subscribe(14,({error:e})=>{var t;let r,n;h.notify(12,(r={date:(t=e).startClocks.timeStamp,error:{id:(0,Z.generateUUID)(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,component_stack:t.componentStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:Q.ERROR,context:t.context},n={error:t.originalError,handlingStack:t.handlingStack},{rawRumEvent:r,startClocks:t.startClocks,domainContext:n}))}),{addError:({error:e,handlingStack:t,componentStack:r,startClocks:n,context:i})=>{let o=(0,H.computeRawError)({originalError:e,handlingStack:t,componentStack:r,startClocks:n,nonErrorPrefix:"Provided",source:W.ErrorSource.CUSTOM,handling:"handled"});o.context=(0,b.combine)(o.context,i),h.notify(14,{error:o})}});ev={clearTracingIfNeeded:ri,traceFetch:e=>ro(r,e,n,ex,ek,t=>{if(e.input instanceof Request&&!e.init?.headers)e.input=new Request(e.input),Object.keys(t).forEach(r=>{e.input.headers.append(r,t[r])});else{e.init=(0,eu.shallowClone)(e.init);let r=[];e.init.headers instanceof Headers?e.init.headers.forEach((e,t)=>{r.push([t,e])}):Array.isArray(e.init.headers)?e.init.headers.forEach(e=>{r.push(e)}):e.init.headers&&Object.keys(e.init.headers).forEach(t=>{r.push([t,e.init.headers[t]])}),e.init.headers=r.concat((0,tp.objectEntries)(t))}}),traceXhr:(e,t)=>ro(r,e,n,ex,ek,e=>{try{Object.keys(e).forEach(r=>{t.setRequestHeader(r,e[r])})}catch{}})},S=e,_=ev,C=a,(L=[]).push(B().subscribe(e=>{"start"===e.state&&t8(e.url)&&(_.traceXhr(e,e.xhr),rl(e))})),L.push(C.subscribe(({data:e,type:t})=>{if(2===t&&t8(e.url))switch(e.state){case"start":rl(e),S.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"complete":_.clearTracingIfNeeded(e),S.notify(8,{...e,type:"xhr",isAbortedOnStart:!1})}})),w=e,O=r,M=ev,U=a,(P=[]).push($({responseBodyAction:e=>+!!rs(e.url,O)?.trackResponseErrors}).subscribe(e=>{"start"===e.state&&t8(e.url)&&(M.traceFetch(e),rl(e))})),P.push(U.subscribe(({data:e,type:t})=>{if(1===t&&t8(e.url))switch(e.state){case"start":rl(e),w.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":M.clearTracingIfNeeded(e),w.notify(8,{...e,duration:(0,g.elapsed)(e.startClocks.timeStamp,(0,g.timeStampNow)()),type:tJ,requestBody:e.init?.body})}}));let eJ=function(e,t){let r=r2(e);function n(r){t.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)||e.notify(12,ie(r))}return{addOperationStepVital:function(t,r,n,i){let{operationKey:o,context:a,description:s,handlingStack:c}=n||{},l={name:t,type:ei.OPERATION_STEP,operationKey:o,failureReason:i,stepType:r,startClocks:(0,g.clocksNow)(),context:(0,T.sanitize)(a),description:s,handlingStack:c};e.notify(12,ie(l))},addDurationVital:n,startDurationVital:function(t,n={},i=(0,g.clocksNow)()){let{id:o}=r.start(n.vitalKey??t,i,{name:t,...n});e.notify(16,{id:o,name:t,startClocks:i,...n})},stopDurationVital:function(e,t={},i=(0,g.clocksNow)()){let o=r.stop(t.vitalKey??e,i,t);o&&n({type:ei.DURATION,...o})}}}(e,eC),eX=(f=r.applicationId,p=eR.actionContexts,{get:e=>{let t=ew.findView(e),r=eO.findUrl(e),i=n.findTrackedSession(e);if(i&&t&&r){let n=p.findActionId(e);return{application_id:f,session_id:i.id,user_action:n?{id:n}:void 0,view:{id:t.id,name:t.name,referrer:r.referrer,url:r.url}}}}});return{addAction:eR.addAction,startAction:eR.startAction,stopAction:eR.stopAction,startResource:eG.startResource,stopResource:eG.stopResource,addEvent:eN.addEvent,addError:eY,addTiming:eU,setLoa
4dingTime:eL,addFeatureFlagEvaluation:eA.addFeatureFlagEvaluation,startView:eP,setViewContext:eV,setViewContextProperty:ej,getViewContext:eK,setViewName:e$,viewHistory:ew,sessionManager:n,stopSession:()=>n.expire(),getInternalContext:eX.get,startDurationVital:eJ.startDurationVital,stopDurationVital:eJ.stopDurationVital,addDurationVital:eJ.addDurationVital,addOperationStepVital:eJ.addOperationStepVital,globalContext:eI,userContext:ex,accountContext:ek,stop:()=>eb.forEach(e=>e())}}(_,u,e,t,r,i,a,p,C);return S.push(M),a.unbuffer(),S.push(()=>n.stop()),{...U,lifeCycle:_,sessionManager:t,stopSession:()=>t.expire(),telemetry:c,stop:()=>{S.forEach(e=>e())},hooks:u}}e.s(["makeRumPublicApi",0,function(e,t,r={}){let n=(0,w.createTrackingConsentState)(),o=function(){let e,t=new A.BufferedObservable(500,e=>{(0,v.addTelemetryDebug)("Early data collection dropped data on unbuffer",{count:e})}),r=[];function n(e,n){r.push(n.subscribe(r=>{t.notify({type:e,data:r})}))}return n(0,(0,I.mockable)(Y)()),n(1,$()),n(2,B()),n(3,(e=Object.values(z.ConsoleApiName).map(e=>{var t;return X[e]||(X[e]=(t=e,new A.Observable(e=>{let r=z.globalConsole[t];return z.globalConsole[t]=(...n)=>{r.apply(console,n);let i=(0,S.createHandlingStack)("console error");(0,E.callMonitored)(()=>{e.notify(function(e,t,r){let n=e.map(e=>{var t;return"string"==typeof(t=e)?(0,T.sanitize)(t):(0,H.isError)(t)?(0,S.formatErrorMessage)((0,G.computeStackTrace)(t)):(0,J.jsonStringify)((0,T.sanitize)(t),void 0,2)}).join(" ");if(t===z.ConsoleApiName.error){let i=e.find(H.isError),o=(0,H.computeRawError)({originalError:i,handlingStack:r,startClocks:(0,g.clocksNow)(),source:W.ErrorSource.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=n,{api:t,message:n,handlingStack:r,error:o}}return{api:t,message:n,error:void 0,handlingStack:r}}(n,t,i))})},()=>{z.globalConsole[t]=r}}))),X[e]}),(0,A.mergeObservables)(...e))),{observable:t,stop:()=>r.forEach(e=>e.unsubscribe())}}(),a=function({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},r,n){let o,a,s,c,l,u,d=new A.BufferedObservable(500,e=>{(0,v.addTelemetryDebug)("preStartRum buffer data lost",{count:e})}),f=te();(0,O.bufferContextCalls)(f,y.CustomerContextKey.globalContext,d);let p=tt();(0,O.bufferContextCalls)(p,y.CustomerContextKey.userContext,d);let m=e8();(0,O.bufferContextCalls)(m,y.CustomerContextKey.accountContext,d);let b={assemble:(0,e4.createHook)(),assembleTelemetry:(0,e4.createHook)()},h=r.observable.subscribe(x),S={},_=!1;function x(){let e;if(_||!s||!c||!l||!u)return;if(h.unsubscribe(),c.trackViewsManually){if(!o)return;e=o.options}let t=c.trackViewsManually?o?.callback:void 0,r=n(c,l,a,e,u,b);_=!0,d.subscribe(e=>{e!==t&&e(r)}),d.unbuffer()}function R(e,n){var o;let d=(0,eW.canUseEventBridge)();if(d&&(e={...o=e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:o.defaultPrivacyLevel??(0,eW.getEventBridge)()?.getPrivacyLevel()}),s=e,c)return void(0,C.displayAlreadyInitializedError)("DD_RUM",e);let f=function(e,t){if(void 0===e.trackFeatureFlagsForEvents||Array.isArray(e.trackFeatureFlagsForEvents)||z.display.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId)return void z.display.error("Application ID is not configured, no RUM data will be collected.");if(!eS(e.sessionReplaySampleRate,"Session Replay")||!eS(e.traceSampleRate,"Trace"))return;if(void 0!==e.excludedActivityUrls&&!Array.isArray(e.excludedActivityUrls))return void z.display.error("Excluded Activity Urls should be an array");let r=function(e){if(void 0===e.allowedTracingUrls)return[];if(!Array.isArray(e.allowedTracingUrls))return void z.display.error("Allowed Tracing URLs should be an array");if(0!==e.allowedTracingUrls.length&&void 0===e.service)return void z.display.error("Service needs to be configured when tracing is enabled");let t=[];return e.allowedTracingUrls.forEach(e=>{let r=ez(e);r?t.push(r):z.display.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)}),t}(e);if(!r)return;let n=function(e,t){var r,n;if(!e?.clientToken)return void z.display.error("Client Token is not configured, we will not send any data.");
4if(void 0!==e.allowedTrackingOrigins&&!Array.isArray(e.allowedTrackingOrigins))return void z.display.error("Allowed Tracking Origins must be an array");if((!(r=e.site)||"string"!=typeof r||/(datadog|ddog|datad0g|dd0g)/.test(r)||(z.display.error(`Site should be a valid Datadog site. ${z.MORE_DETAILS} ${z.DOCS_ORIGIN}/getting_started/site/.`),0))&&eS(e.sessionSampleRate,"Session")&&eS(e.telemetrySampleRate,"Telemetry")&&eS(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&eS(e.telemetryUsageSampleRate,"Telemetry Usage")&&eE(e.version,"Version")&&eE(e.env,"Env")&&eE(e.service,"Service")&&function(e,t){let r=(0,I.mockable)(D.globalObject.location),n=r?r.origin:"",i=e.allowedTrackingOrigins;if(!i)return!function(e,t=""){return!ey(e)&&ey(t.split("\n").filter(e=>{let t=e.trim();return t.length&&/^at\s+|@/.test(t)})[1]||"")}(n,t)||(z.display.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let o=es(i,n);return o||z.display.error("SDK initialized on a non-allowed domain."),o}(e,t??"")){return void 0===e.trackingConsent||(0,eu.objectHasValue)(w.TrackingConsent,e.trackingConsent)?{clientToken:e.clientToken,proxy:e.proxy,site:e.site||ev.INTAKE_SITE_US1,source:"flutter"===(n=e.source)||"unity"===n?n:"browser",beforeSend:e.beforeSend&&(0,ec.catchUserErrors)(e.beforeSend,"beforeSend threw an error:"),cookieOptions:function(e){let t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){let e=function(e=D.globalObject.location?.hostname??"",t="u">typeof document?document.referrer:""){if("u">typeof document){if(void 0===i){let r=function(e,t){try{return e||(0,N.buildUrl)(t).hostname}catch{}}(e,t);if(r){let e=`dd_site_test_${(0,Z.generateUUID)()}`,t=r.split("."),n=t.pop();for(;t.length&&!ef(e);)n=`${t.pop()}.${n}`,ed(e,"test",g.ONE_SECOND,{domain:n});ed(e,"",0,{domain:n}),i=n}}return i}}();if(!e)return;t.domain=e}return t}(e),sessionPersistence:e.sessionPersistence,sessionSampleRate:e.sessionSampleRate??100,telemetrySampleRate:e.telemetrySampleRate??20,telemetryConfigurationSampleRate:e.telemetryConfigurationSampleRate??5,telemetryUsageSampleRate:e.telemetryUsageSampleRate??5,service:e.service??void 0,env:e.env??void 0,version:e.version??void 0,datacenter:e.datacenter??void 0,silentMultipleInit:!!e.silentMultipleInit,trackingConsent:e.trackingConsent??w.TrackingConsent.GRANTED,trackAnonymousUser:e.trackAnonymousUser??!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,variant:e.variant,sdkVersion:e.sdkVersion,replica:e.replica}:void z.display.error('Tracking Consent should be either "granted" or "not-granted"')}}(e,t),o=function(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return z.display.warn("allowedGraphQlUrls should be an array"),[];let t=[];
4return e.allowedGraphQlUrls.forEach(e=>{ea(e)?t.push({match:e,trackPayload:!1,trackResponseErrors:!1}):(0,eo.isIndexableObject)(e)&&ea(e.match)&&t.push({match:e.match,trackPayload:!!e.trackPayload,trackResponseErrors:!!e.trackResponseErrors})}),t}(e);if(!n)return;let a=e.sessionReplaySampleRate??0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:a,startSessionReplayRecordingManually:void 0!==e.startSessionReplayRecordingManually?!!e.startSessionReplayRecordingManually:0===a,traceSampleRate:e.traceSampleRate??100,rulePsr:(0,el.isNumber)(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:r,excludedActivityUrls:e.excludedActivityUrls??[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(e.trackUserInteractions??!0),trackViewsManually:!!e.trackViewsManually,trackResources:!!(e.trackResources??!0),trackResourceHeaders:function(e){let t=e.trackResourceHeaders;if(void 0===t||!1===t)return[];if(!0===t)return eq.map(e=>({name:e}));if(!Array.isArray(t))return z.display.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===t.length)return z.display.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];let r=[];return t.forEach((e,t)=>{(0,eo.isIndexableObject)(e)&&ea(e.name)?void 0===e.url||ea(e.url)?void 0===e.extractor||e.extractor instanceof RegExp?void 0===e.location||eG.includes(e.location)?r.push({...e,name:"string"==typeof e.name?e.name.toLowerCase():e.name}):z.display.warn(`trackResourceHeaders[${t}].location should be 'request', 'response', or 'any'`):z.display.warn(`trackResourceHeaders[${t}].extractor should be a RegExp`):z.display.warn(`trackResourceHeaders[${t}].url should be a MatchOption`):z.display.warn(`trackResourceHeaders[${t}] should be a MatchHeader object with a 'name' property`)}),r}(e),trackLongTasks:!!(e.trackLongTasks??!0),subdomain:e.subdomain,defaultPrivacyLevel:(0,eu.objectHasValue)(eb,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:eb.MASK_USER_INPUT,enablePrivacyForActionName:!1!==e.enablePrivacyForActionName,traceContextInjection:(0,eu.objectHasValue)(eh,e.traceContextInjection)?e.traceContextInjection:eh.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:e.profilingSampleRate??0,propagateTraceBaggage:!1!==e.propagateTraceBaggage,allowedGraphQlUrls:o,...n}}(e,n);if(f){if(f.compressIntakeRequests&&!d&&t&&!(a=t(f,"Datadog RUM",k.noop)))return;c=f,r.tryToInit(f.trackingConsent),r.onGrantedOnce(()=>{let t,{assembleTelemetry:n}=b;(n.register(()=>r.isGranted()?e4.SKIPPED:e4.DISCARDED),u=(0,I.mockable)(v.startTelemetry)("browser-rum-sdk",f,n),D.isWorkerEnvironment)?z.display.warn("The RUM SDK is not supported in a web or service worker environment."):((0,eW.canUseEventBridge)()?(t={id:(0,Z.generateUUID)(),isReplayForced:!1,anonymousId:void 0,createdAt:(0,g.timeStampNow)()},Promise.resolve({findSession:()=>t,findTrackedSession:()=>t,renewObservable:new A.Observable,expireObservable:new A.Observable,expire:k.noop,updateSessionState:e=>{t={...t,...e}}})):(0,I.mockable)(tB)(f,r)).then(t=>{if(t){var r,i,o,a,s,c,u;let d,p;r=l=t,i={application:{id:f.applicationId}},n.register(({startTime:e})=>{let t=r.findTrackedSession(e);return t?{session:{id:t.id},anonymous_id:t.anonymousId,...i}:e4.SKIPPED}),(0,v.addTelemetryConfiguration)((d={session_sample_rate:(a=o=e).sessionSampleRate,telemetry_sample_rate:a.telemetrySampleRate,telemetry_configuration_sample_rate:a.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:a.telemetryUsageSampleRate,use_before_send:!!a.beforeSend,use_partitioned_cross_site_session_cookie:a.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:a.useSecureSessionCookie,use_proxy:!!a.proxy,silent_multiple_init:a.silentMultipleInit,track_session_across_subdomains:a.trackSessionAcrossSubdomains,track_anonymous_user:a.trackAnonymousUser,session_persistence:Array.isArray(a.sessionPersistence)?a.sessionPersistence[0]:a.sessionPersistence,store_contexts_across_pages:!!a.storeContextsAcrossPages,allow_untrusted_events:!!a.allowUntrustedEvents,tracking_consent:a.trackingConsent,use_allowed_tracking_origins:Array.isArray(a.allowedTrackingOrigins),source:a.source,sdk_version:a.sdkVersion,variant:a.variant},{session_replay_sample_rate:o.sessionReplaySampleRate,start_session_replay_recording_manually:o.startSessionReplayRecordingManually,trace_sample_rate:o.traceSampleRate,trace_context_injection:o.traceContextInjection,prop
4agate_trace_baggage:o.propagateTraceBaggage,action_name_attribute:o.actionNameAttribute,use_allowed_tracing_urls:eT(o.allowedTracingUrls),use_allowed_graph_ql_urls:eT(o.allowedGraphQlUrls),use_track_graph_ql_payload:eT(s=o.allowedGraphQlUrls)&&s.some(e=>(0,eo.isIndexableObject)(e)&&e.trackPayload),use_track_graph_ql_response_errors:eT(c=o.allowedGraphQlUrls)&&c.some(e=>(0,eo.isIndexableObject)(e)&&e.trackResponseErrors),selected_tracing_propagators:(p=new Set,eT(o.allowedTracingUrls)&&o.allowedTracingUrls.forEach(e=>{ez(e)?.propagatorTypes.forEach(e=>p.add(e))}),Array.from(p)),default_privacy_level:o.defaultPrivacyLevel,enable_privacy_for_action_name:o.enablePrivacyForActionName,use_excluded_activity_urls:eT(o.excludedActivityUrls),use_worker_url:!!o.workerUrl,compress_intake_requests:o.compressIntakeRequests,track_views_manually:o.trackViewsManually,track_user_interactions:o.trackUserInteractions,track_resources:o.trackResources,track_long_task:o.trackLongTasks,plugins:o.plugins?.map(e=>({name:e.name,...e.getConfigurationTelemetry?.()})),track_feature_flags_for_events:o.trackFeatureFlagsForEvents,remote_configuration_id:eB(o),profiling_sample_rate:o.profilingSampleRate,use_remote_configuration_proxy:!!o.remoteConfigurationProxy,track_resource_headers:!0===(u=o.trackResourceHeaders)?"default_headers":Array.isArray(u)?"custom":void 0,...d})),x()}}).catch(E.monitorError)})}}return{init(t,r,n){if(!t)return void z.display.error("Missing configuration");if((0,e2.initFeatureFlags)(t.enableExperimentalFeatures),(0,j.setAllowUntrustedEvents)(t.allowUntrustedEvents),s=t,!(e&&e0()))if(eH(t.plugins,"onInit",{initConfiguration:t,publicApi:r}),eB(t)){let e={user:p,context:f};if(t.remoteConfigurationId||t.remoteConfiguration?.sync)eP(t,e).then(e=>{e&&R(e,n)}).catch(E.monitorError);else{let r,i,o,a=(r=function({remoteConfigurationId:e}){let t=`dd_rc_${e}`;return{read(){let e,r;try{e=localStorage.getItem(t)}catch{return{status:"error"}}if(null===e)return{status:"miss"};try{r=JSON.parse(e)}catch{return this.remove(),{status:"error"}}return!function(e){if("object"!=typeof e||null===e)return!1;let t="version"in e&&1===e.version,r="config"in e&&"object"==typeof e.config&&null!==e.config;return t&&r}(r)?(this.remove(),{status:"error"}):{status:"hit",config:r.config}},remove(){try{localStorage.removeItem(t)}catch{}},write(e){let r={version:1,config:e,fetchedAt:(0,g.timeStampNow)()};try{localStorage.setItem(t,JSON.stringify(r))}catch{}}}}({remoteConfigurationId:eB(t)}),i=eV(),o=r.read(),(i.increment("cache",eU[o.status]),eK(t).then(e=>{e.ok?(i.increment("fetch","success"),r.write(e.value)):(i.increment("fetch","failure"),z.display.error(e.error))}).catch(E.monitorError).finally(()=>{(0,v.addTelemetryMetrics)("remote configuration metrics",{metrics:i.get()})}),"hit"===o.status)?e$(t,o.config,e,i):t.remoteConfiguration?.required?void 0:t);a&&R(a,n)}}else R(t,n)},get initConfiguration(){return s},getInternalContext:k.noop,stopSession:k.noop,addTiming(e,t=(0,g.timeStampNow)()){d.notify(r=>r.addTiming(e,t))},setLoadingTime:e=>{d.notify(t=>t.setLoadingTime(e))},startView(e,t=(0,g.clocksNow)()){let r=r=>{r.startView(e,t)};d.notify(r),o||(o={options:e,callback:r},x())},setViewName(e){d.notify(t=>t.setViewName(e))},setViewContext(e){d.notify(t=>t.setViewContext(e))},setViewContextProperty(e,t){d.notify(r=>r.setViewContextProperty(e,t))},getViewContext:()=>S,globalContext:f,userContext:p,accountContext:m,addAction(e){d.notify(t=>t.addAction(e))},startAction(e,t){let r=(0,g.clocksNow)();d.notify(n=>n.startAction(e,t,r))},stopAction(e,t){let r=(0,g.clocksNow)();d.notify(n=>n.stopAction(e,t,r))},startResource(e,t){let r=(0,g.clocksNow)();d.notify(n=>n.startResource(e,t,r))},stopResource(e,t){let r=(0,g.clocksNow)();d.notify(n=>n.stopResource(e,t,r))},addError(e){d.notify(t=>t.addError(e))},addFeatureFlagEvaluation(e,t){d.notify(r=>r.addFeatureFlagEvaluation(e,t))},startDurationVital(e,t){let r=(0,g.clocksNow)();d.notify(n=>n.startDurationVital(e,t,r))},stopDurationVital(e,t){let r=(0,g.clocksNow)();d.notify(n=>n.stopDurationVital(e,t,r))},addDurationVital(e){d.notify(t=>t.addDurationVital(e))},addOperationStepVital:(e,t,r,n)=>{d.notify(i=>i.addOperationStepVital((0,T.sanitize)(e),t,(0,T.sanitize)(r),(0,T.sanitize)(n)))}}}(r,n,(n,i,s,c,l,u)=>{var d,f;let p=s&&r.createDeflateEncoder?e=>r.createDeflateEncoder(s,e):_.createIdentityEncoder,m=(0,I.mockable)(im)(n,i,e,t,c,p,o.observable,l,u,r.sdkName);return e.onRumStart(m.lifeCycle,n,i,m.viewHistory,s,m.telemetry),t.onRumStart(m.lifeCycle,m.hooks,n,i,m.viewHistory,p),d=a,f=m,a={...d,init:e=>{(0,C.displayAlreadyInitializedError)("DD_RUM",e)},getInternalContext:f.getInternalContext,stopSession:f.stopSession,getViewContext:f.getViewContext,globalContext:f.globalContext,userContext:f.userContext,accountContext:f.accountContext},eH(n.plugins,"onRumStart",{addEvent:m.addEvent,addError:m.addError}),m}),s=()=>a,c=(0,h.makePublicApi)({init:e=>{let t=Error().stack;(0,E.callMonitored)(()=>a.init(e,c,t))},setTrackingConsent:(0,E.monitor)(e=>{n.update(e),(0,v.addTelemetryUsage)({feature:"set-tracking-consent",tracking_consent:e})}
4),setViewName:(0,E.monitor)(e=>{a.setViewName(e),(0,v.addTelemetryUsage)({feature:"set-view-name"})}),setViewContext:(0,E.monitor)(e=>{a.setViewContext(e),(0,v.addTelemetryUsage)({feature:"set-view-context"})}),setViewContextProperty:(0,E.monitor)((e,t)=>{a.setViewContextProperty(e,t),(0,v.addTelemetryUsage)({feature:"set-view-context-property"})}),getViewContext:(0,E.monitor)(()=>((0,v.addTelemetryUsage)({feature:"set-view-context-property"}),a.getViewContext())),getInternalContext:(0,E.monitor)(e=>a.getInternalContext(e)),getInitConfiguration:(0,E.monitor)(()=>(0,b.deepClone)(a.initConfiguration)),addAction:(e,t)=>{let r=(0,S.createHandlingStack)("action");(0,E.callMonitored)(()=>{a.addAction({name:(0,T.sanitize)(e),context:(0,T.sanitize)(t),startClocks:(0,g.clocksNow)(),type:er.CUSTOM,handlingStack:r}),(0,v.addTelemetryUsage)({feature:"add-action"})})},startAction:(0,E.monitor)((e,t)=>{(0,v.addTelemetryUsage)({feature:"start-action"}),a.startAction((0,T.sanitize)(e),{type:(0,T.sanitize)(t?.type),context:(0,T.sanitize)(t?.context),actionKey:t?.actionKey})}),stopAction:(0,E.monitor)((e,t)=>{(0,v.addTelemetryUsage)({feature:"stop-action"}),a.stopAction((0,T.sanitize)(e),{type:(0,T.sanitize)(t?.type),context:(0,T.sanitize)(t?.context),actionKey:t?.actionKey})}),startResource:(0,E.monitor)((e,t)=>{(0,v.addTelemetryUsage)({feature:"start-resource"}),a.startResource((0,T.sanitize)(e),{type:(0,T.sanitize)(t?.type),method:(0,T.sanitize)(t?.method),context:(0,T.sanitize)(t?.context),resourceKey:t?.resourceKey})}),stopResource:(0,E.monitor)((e,t)=>{(0,v.addTelemetryUsage)({feature:"stop-resource"}),a.stopResource((0,T.sanitize)(e),{type:(0,T.sanitize)(t?.type),statusCode:t?.statusCode,size:t?.size,context:(0,T.sanitize)(t?.context),resourceKey:t?.resourceKey})}),addError:(e,t)=>{let r=(0,S.createHandlingStack)("error");(0,E.callMonitored)(()=>{a.addError({error:e,handlingStack:r,context:(0,T.sanitize)(t),startClocks:(0,g.clocksNow)()}),(0,v.addTelemetryUsage)({feature:"add-error"})})},addTiming:(0,E.monitor)((e,t)=>{a.addTiming((0,T.sanitize)(e),t)}),setViewLoadingTime:(0,E.monitor)(()=>{let e=(0,g.timeStampNow)();a.setLoadingTime(e),(0,v.addTelemetryUsage)({feature:"addViewLoadingTime"})}),setGlobalContext:(0,O.defineContextMethod)(s,y.CustomerContextKey.globalContext,y.ContextManagerMethod.setContext,"set-global-context"),getGlobalContext:(0,O.defineContextMethod)(s,y.CustomerContextKey.globalContext,y.ContextManagerMethod.getContext,"get-global-context"),setGlobalContextProperty:(0,O.defineContextMethod)(s,y.CustomerContextKey.globalContext,y.ContextManagerMethod.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:(0,O.defineContextMethod)(s,y.CustomerContextKey.globalContext,y.ContextManagerMethod.removeContextProperty,"remove-global-context-property"),clearGlobalContext:(0,O.defineContextMethod)(s,y.CustomerContextKey.globalContext,y.ContextManagerMethod.clearContext,"clear-global-context"),setUser:(0,O.defineContextMethod)(s,y.CustomerContextKey.userContext,y.ContextManagerMethod.setContext,"set-user"),getUser:(0,O.defineContextMethod)(s,y.CustomerContextKey.userContext,y.ContextManagerMethod.getContext,"get-user"),setUserProperty:(0,O.defineContextMethod)(s,y.CustomerContextKey.userContext,y.ContextManagerMethod.setContextProperty,"set-user-property"),removeUserProperty:(0,O.defineContextMethod)(s,y.CustomerContextKey.userContext,y.ContextManagerMethod.removeContextProperty,"remove-user-property"),clearUser:(0,O.defineContextMethod)(s,y.CustomerContextKey.userContext,y.ContextManagerMethod.clearContext,"clear-user"),setAccount:(0,O.defineContextMethod)(s,y.CustomerContextKey.accountContext,y.ContextManagerMethod.setContext,"set-account"),getAccount:(0,O.defineContextMethod)(s,y.CustomerContextKey.accountContext,y.ContextManagerMethod.getContext,"get-account"),setAccountProperty:(0,O.defineContextMethod)(s,y.CustomerContextKey.accountContext,y.ContextManagerMethod.setContextProperty,"set-account-property"),removeAccountProperty:(0,O.defineContextMethod)(s,y.CustomerContextKey.accountContext,y.ContextManagerMethod.removeContextProperty,"remove-account-property"),clearAccount:(0,O.defineContextMethod)(s,y.CustomerContextKey.accountContext,y.ContextManagerMethod.clearContext,"clear-account"),startView:e=>{let t=(0,S.createHandlingStack)("view");(0,E.callMonitored)(()=>{a.startView({..."object"==typeof e?e:{name:e},handlingStack:t}),(0,v.addTelemetryUsage)({feature:"start-view"})})},stopSession:(0,E.monitor)(()=>{a.stopSession(),(0,v.addTelemetryUsage)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,E.monitor)((e,t)=>{a.addFeatureFlagEvaluation((0,T.sanitize)(e),(0,T.sanitize)(t)),(0,v.addTelemetryUsage)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,E.monitor)(()=>e.getSessionReplayLink()),startSessionReplayRecording:(0,E.monitor)(t=>
4{e.start(t),(0,v.addTelemetryUsage)({feature:"start-session-replay-recording",force:t?.force})}),stopSessionReplayRecording:(0,E.monitor)(()=>e.stop()),addDurationVital:(e,t)=>{let r=(0,S.createHandlingStack)("vital");(0,E.callMonitored)(()=>{(0,v.addTelemetryUsage)({feature:"add-duration-vital"}),a.addDurationVital({id:(0,Z.generateUUID)(),name:(0,T.sanitize)(e),type:ei.DURATION,startClocks:(0,g.timeStampToClocks)(t.startTime),duration:t.duration,context:(0,T.sanitize)(t?.context),description:(0,T.sanitize)(t?.description),handlingStack:r})})},startDurationVital:(e,t)=>{let r=(0,S.createHandlingStack)("vital");(0,E.callMonitored)(()=>{(0,v.addTelemetryUsage)({feature:"start-duration-vital"}),a.startDurationVital((0,T.sanitize)(e),{vitalKey:t?.vitalKey,context:(0,T.sanitize)(t?.context),description:(0,T.sanitize)(t?.description),handlingStack:r})})},stopDurationVital:(0,E.monitor)((e,t)=>{(0,v.addTelemetryUsage)({feature:"stop-duration-vital"}),a.stopDurationVital((0,T.sanitize)(e),{vitalKey:t?.vitalKey,context:(0,T.sanitize)(t?.context),description:(0,T.sanitize)(t?.description)})}),startFeatureOperation:(e,t)=>{let r=(0,S.createHandlingStack)("vital");(0,E.callMonitored)(()=>{(0,v.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"start"}),a.addOperationStepVital(e,"start",{...t,handlingStack:r})})},succeedFeatureOperation:(0,E.monitor)((e,t)=>{(0,v.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"succeed"}),a.addOperationStepVital(e,"end",t)}),failFeatureOperation:(0,E.monitor)((e,t,r)=>{(0,v.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"fail"}),a.addOperationStepVital(e,"end",r,t)}),DEFAULT_TRACKED_RESOURCE_HEADERS:eq});return c}],666824),e.s([],393713)},901069,e=>{"use strict";let t;function r(){return new Date().getTime()}function n(){return r()}function i(e,t){return e+t}function o(){return performance.now()}function a(e){return e-s()}function s(){return void 0===t&&(t=performance.timing?.navigationStart??performance.timeOrigin),t}e.s(["ONE_HOUR",0,36e5,"ONE_MINUTE",0,6e4,"ONE_SECOND",0,1e3,"ONE_YEAR",0,31536e6,"addDuration",0,i,"clockDrift",0,function(){return Math.round(r()-i(s(),performance.now()))},"clocksNow",0,function(){return{relative:o(),timeStamp:n()}},"clocksOrigin",0,function(){return{relative:0,timeStamp:s()}},"dateNow",0,r,"elapsed",0,function(e,t){return t-e},"getTimeOrigin",0,s,"isRelativeTime",0,function(e){return e<31536e6},"relativeNow",0,o,"relativeToClocks",0,function(e){return{relative:e,timeStamp:function(e){let t=r()-performance.now();return t>s()?Math.round(i(t,e)):Math.round(i(s(),e))}(e)}},"timeStampNow",0,n,"timeStampToClocks",0,function(e){return{relative:a(e),timeStamp:e}},"toRelativeTime",0,a,"toServerDuration",0,function(e){return"number"!=typeof e?e:Math.round(1e6*e)}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.