"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4573],{1634:(e,t,n)=>{n.d(t,{Rr:()=>R,A2:()=>A,VJ:()=>x,Q6:()=>k,a5:()=>E});var r=n(54995),i=n(24743),o=n(88170),a=n(81010),s=n(19308),u=n(62466),c=n(40993),l=n(14391),d=n(71845),f=n(12881),p=n(73408),m=n(83323),g=n(39069),v=n(93795),y=n(63606),b=n(40918),h=n(25235);let S={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},w=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],_=[s.R8],T=(0,y.O)(),C=e=>{T.add(()=>C(e))};function E(e,t,n,r,i){let o=new u.c,{stop:g}=function(e,t,n,r,i){let o=[];if((0,b.d0)()){let e=(0,b.Y9)(),t=i.subscribe(t=>e.send("internal_telemetry",t));o.push(()=>t.unsubscribe())}else{let a=(0,h.Z)(e,{endpoint:e.rumEndpointBuilder,encoder:r(4)},e.replica&&{endpoint:e.replica.rumEndpointBuilder,encoder:r(5)},t,n,new u.c);o.push(()=>a.stop());let c=i.subscribe(t=>a.add(t,e.site===s.Bb));o.push(()=>c.unsubscribe())}return{stop:()=>o.forEach(e=>e())}}(t,n,r,i,o),{enabled:y,setContextProvider:w}=function(e,t,n){let r=new Set,i=new Map,o=!_.includes(t.site)&&(0,f.ic)(t.telemetrySampleRate),s={[S.LOG]:o,[S.CONFIGURATION]:o&&(0,f.ic)(t.telemetryConfigurationSampleRate),[S.USAGE]:o&&(0,f.ic)(t.telemetryUsageSampleRate)},u={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return C=o=>{let l=(0,p.s)(o);if(s[o.type]&&r.sizei.set(e,t),enabled:o}}(e,t,o);return{setContextProvider:w,stop:g,enabled:y}}function A(e,t){(0,l.oO)(r.bP.debug,e,t),C({type:S.LOG,message:e,status:"debug",...t})}function x(e,t){C({type:S.LOG,status:"error",...function(e){if((0,i.bJ)(e)){var t;let n=(0,g.T)(e);return{error:{kind:n.name,stack:(0,o.Yn)(((t=n).stack=t.stack.filter(e=>!e.url||w.some(t=>e.url.startsWith(t))),t))},message:n.message}}return{error:{stack:i.e6},message:`Uncaught ${(0,p.s)(e)}`}}(e),...t})}function R(e){C({type:S.CONFIGURATION,configuration:e})}function k(e){C({type:S.USAGE,usage:e})}},5227:(e,t,n)=>{n.d(t,{$O:()=>o,XP:()=>a,ug:()=>i});var r=n(83323);let i="DISCARDED",o="SKIPPED";function a(){let e={};return{register:(t,n)=>(e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(e=>e!==n)}}),triggerHook(t,n){let a=e[t]||[],s=[];for(let e of a){let t=e(n);if(t===i)return i;t!==o&&s.push(t)}return(0,r.kg)(...s)}}}},11484:(e,t,n)=>{n.d(t,{W:()=>i});var r=n(28765);function i(e,t){let n,i=(0,r.V)();return i.Zone&&"function"==typeof i.Zone.__symbol__&&(n=e[i.Zone.__symbol__(t)]),n||(n=e[t]),n}},12881:(e,t,n)=>{function r(e){return 0!==e&&100*Math.random()<=e}function i(e,t){return+e.toFixed(t)}function o(e){return a(e)&&e>=0&&e<=100}function a(e){return"number"==typeof e}n.d(t,{Et:()=>a,LI:()=>i,fp:()=>o,ic:()=>r})},14391:(e,t,n)=>{let r;n.d(t,{Bd:()=>a,Dx:()=>l,dm:()=>u,oO:()=>d,pM:()=>s,um:()=>c});var i=n(54995);let o=!1;function a(e){r=e}function s(e){o=e}function u(e){return function(){return c(e,this,arguments)}}function c(e,t,n){try{return e.apply(t,n)}catch(e){l(e)}}function l(e){if(d(e),r)try{r(e)}catch(e){d(e)}}function d(...e){o&&i.Vy.error("[MONITOR]",...e)}},14573:(e,t,n)=>{let r,i,o,a,s,u,c,l,d,f,p;n.d(t,{X2:()=>M,eT:()=>t0,o:()=>tQ,$m:()=>tz,NT:()=>tY,Wd:()=>tX,bb:()=>O,do:()=>m,yF:()=>nc,wI:()=>tB,W3:()=>ta,PJ:()=>t3,dT:()=>t2,$4:()=>tG,Gn:()=>n8,zL:()=>n5,dx:()=>rA,rf:()=>t5,pB:()=>n7,wR:()=>tq,g1:()=>n6,XS:()=>tj,p_:()=>tF,$5:()=>e2,AB:()=>tn,jR:()=>t4,ei:()=>tO,Ie:()=>t9,rJ:()=>rE,s5:()=>tU});var m,g=n(62466);let v={GRANTED:"granted",NOT_GRANTED:"not-granted"};var y=n(73504);function b(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){let i=(0,y.WW)(n);t+=i,e+=n,r&&r(i)},finish(e){e(this.finishSync())},finishSync(){let n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:e=>e.length}}var h=n(14391),S=n(1634),w=n(59282),_=n(83323),T=n(88170),C=n(58970),E=n(40993);function A(e,t,n,r){return(0,h.dm)((...i)=>(r&&(0,S.Q6)({feature:r}),e()[t][n](...i)))}let x={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},R={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};var k=n(54995);function I(e,t){t.silentMultipleInit||k.Vy.error(`${e} is already initialized.`)}let O={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},N={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},L={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},M={CLICK:"click",CUSTOM:"custom"},$={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},P={DURATION:"duration"};function U(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,U)}let V=/([\w-]+)\s*=\s*([^;]+)/g;function D(e,t){for(V.lastIndex=0;;){let n=V.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function j(e,t,n=""){let r=e.charCodeAt(t-1),i=r>=55296&&r<=56319?t+1:t;return e.length<=i?e:`${e.slice(0,i)}${n}`}function F({vitalsByName:e,vitalsByReference:t},n,r={}){let i={name:n,startClocks:(0,E.M8)(),context:r.context,description:r.description},o={__dd_vital_reference:!0};return e.set(n,i),t.set(o,i),o}function q(e,{vitalsByName:t,vitalsByReference:n},r,i={}){var o,a,s,u,c;let l="string"==typeof r?t.get(r):n.get(r);l&&(e((o=l,a=l.startClocks,s=i,u=(0,E.M8)(),{name:o.name,type:P.DURATION,startClocks:a,duration:(0,E.vk)(a.timeStamp,u.timeStamp),context:(0,_.kg)(o.context,s.context),description:null!=(c=s.description)?c:o.description})),"string"==typeof r?t.delete(r):n.delete(r))}function B(e,t,n){if(e)for(let r of e){let e=r[t];e&&e(n)}}var G=n(63606),H=n(93439),W=n(68995);let K=[];function Z(e,t,n,r){var i,o;let a=(i=n,o=r,`_dd_c_${i}_${o}`);K.push((0,H.q)(e,window,"storage",({key:e})=>{a===e&&t.setContext(u())})),t.changeObservable.subscribe(function(){localStorage.setItem(a,JSON.stringify(t.getContext()))});let s=(0,_.kg)(u(),t.getContext());function u(){let e=localStorage.getItem(a);return e?JSON.parse(e):{}}(0,W.RI)(s)||t.setContext(s)}var J=n(99806);function z(e,t,n){let r={...e};for(let[e,{required:i,type:o}]of Object.entries(t))"string"!==o||Y(r[e])||(r[e]=String(r[e])),i&&Y(r[e])&&k.Vy.warn(`The property ${e} of ${n} is required; context will not be sent to the intake.`);return r}function Y(e){return null==e||""===e}function X(e="",{propertiesConfig:t={}}={}){let n={},r=new g.c,i={getContext:()=>(0,_.Go)(n),setContext:o=>{!function(e){let t="object"===(0,J.P)(e);return t||k.Vy.error("Unsupported context:",e),t}(o)?i.clearContext():n=(0,C.a)(z(o,t,e)),r.notify()},setContextProperty:(i,o)=>{n=(0,C.a)(z({...n,[i]:o},t,e)),r.notify()},removeContextProperty:i=>{delete n[i],z(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return i}function Q(){return X("global context")}var ee=n(5227);function et(){return X("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function en(){return X("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}var er=n(40918),ei=n(34280),eo=n(94950),ea=n(18479),es=n(39489);function eu(){return r||(r=new g.c(e=>{if(!window.fetch)return;let{stop:t}=(0,ea.H)(window,"fetch",t=>(function({parameters:e,onPostCall:t,handlingStack:n},r){let[i,o]=e,a=o&&o.method;void 0===a&&i instanceof Request&&(a=i.method);let s=void 0!==a?String(a).toUpperCase():"GET",u=i instanceof Request?i.url:(0,es.l2)(String(i)),c={state:"start",init:o,input:i,method:s,startClocks:(0,E.M8)(),url:u,handlingStack:n};r.notify(c),e[0]=c.input,e[1]=c.init,t(e=>(function(e,t,n){function r(t){n.state="resolve",Object.assign(n,t),e.notify(n)}t.then((0,h.dm)(e=>{r({response:e,responseType:e.type,status:e.status,isAborted:!1})}),(0,h.dm)(e=>{var t,i;r({status:0,isAborted:(null==(i=null==(t=n.init)?void 0:t.signal)?void 0:i.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})}))})(r,e,c))})(t,e),{computeHandlingStack:!0});return t})),r}var ec=n(81010);function el(e,t,n=0,r){let i=new Date;i.setTime(i.getTime()+n);let o=`expires=${i.toUTCString()}`,a=r&&r.crossSite?"none":"strict",s=r&&r.domain?`;domain=${r.domain}`:"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie=`${e}=${t};${o};path=/;samesite=${a}${s}${u}${c}`}function ed(e){return D(document.cookie,e)}function ef(e){return i||(i=function(e){let t=new Map;for(V.lastIndex=0;;){let n=V.exec(e);if(n)t.set(n[1],n[2]);else break}return t}(document.cookie)),i.get(e)}function ep(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||ef("datadog-synthetics-injects-rum"))}function em(){let e=window._DATADOG_SYNTHETICS_PUBLIC_ID||ef("datadog-synthetics-public-id");return"string"==typeof e?e:void 0}function eg(){let e=window._DATADOG_SYNTHETICS_RESULT_ID||ef("datadog-synthetics-result-id");return"string"==typeof e?e:void 0}function ev(){return!!(em()&&eg())}var ey=n(70110),eb=n(12881),eh=n(53634);let eS="_dd_s";var ew=n(74475);let e_=4*E.MA,eT=15*E.iW,eC=E.$H,eE={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},eA=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function ex(e,t){let n={isExpired:"1"};return t.trackAnonymousUser&&((null==e?void 0:e.anonymousId)?n.anonymousId=null==e?void 0:e.anonymousId:n.anonymousId=U()),n}function eR(e){return(0,W.RI)(e)}function ek(e){var t;return void 0!==e.isExpired||!((void 0===(t=e).created||(0,E.x3)()-Number(t.created)"anonymousId"===e?`aid=${t}`:`${e}=${t}`).join("&")}function eN(e){let t={};return e&&(-1!==e.indexOf("&")||eA.test(e))&&e.split("&").forEach(e=>{let n=eA.exec(e);if(null!==n){let[,e,r]=n;"aid"===e?t.anonymousId=r:t[e]=r}}),t}function eL(e){let t=function(e){let t={};return t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===o){let e=`dd_site_test_${U()}`,t=window.location.hostname.split("."),n=t.pop();for(;t.length&&!ed(e);)n=`${t.pop()}.${n}`,el(e,"test",E.OY,{domain:n});el(e,"",0,{domain:n}),o=n}return o}()),t}(e);return!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{let t=`dd_cookie_test_${U()}`,n="test";el(t,n,E.iW,e);let r=ed(t)===n;return el(t,"",0,e),r}catch(e){return k.Vy.error(e),!1}}(t)?void 0:{type:eE.COOKIE,cookieOptions:t}}function eM(e,t,n,r){el(eS,eO(n),t.trackAnonymousUser?eC:r,e)}function e$(){return eN(ed(eS))}function eP(){try{let e=U(),t=`_dd_test_${e}`;localStorage.setItem(t,e);let n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:eE.LOCAL_STORAGE}:void 0}catch(e){return}}function eU(e){localStorage.setItem(eS,eO(e))}function eV(){return eN(localStorage.getItem(eS))}let eD=E.OY,ej=[];function eF(e,t,n=0){var r;let i,{isLockEnabled:o,persistSession:s,expireSession:u}=t,c=e=>s({...e,lock:i}),l=()=>{let{lock:e,...n}=t.retrieveSession();return{session:n,lock:e&&!function(e){let[,t]=e.split("--");return!t||(0,E.vk)(Number(t),(0,E.nx)())>eD}(e)?e:void 0}};if(a||(a=e),e!==a)return void ej.push(e);if(o&&n>=100){(0,S.A2)("Aborted session operation after max lock retries",{currentStore:l()}),eB(t);return}let d=l();if(o&&(d.lock||(i=U()+"--"+(0,E.nx)(),c(d.session),(d=l()).lock!==i)))return void eq(e,t,n);let f=e.process(d.session);if(o&&(d=l()).lock!==i)return void eq(e,t,n);if(f&&(ek(f)?u(f):(eI(f),o?c(f):s(f))),o&&!(f&&ek(f))){if((d=l()).lock!==i)return void eq(e,t,n);s(d.session),f=d.session}null==(r=e.after)||r.call(e,f||d.session),eB(t)}function eq(e,t,n){(0,ei.wg)(()=>{eF(e,t,n+1)},10)}function eB(e){a=void 0;let t=ej.shift();t&&eF(t,e)}let eG=E.OY;function eH(e){let t=(0,J.P)(e);return"string"===t||"function"===t||e instanceof RegExp}function eW(e,t,n=!1){return e.some(e=>{try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.test(t);if("string"==typeof e)return n?t.startsWith(e):e===t}catch(e){k.Vy.error(e)}return!1})}let eK=["chrome-extension://","moz-extension://"];function eZ(e){return eK.some(t=>e.includes(t))}var eJ=n(19308);function ez(e,t,n){let r=function(e,t){let n=`/api/v2/${t}`,r=e.proxy;if("string"==typeof r){let e=(0,es.l2)(r);return t=>`${e}?ddforward=${encodeURIComponent(`${n}?${t}`)}`}if("function"==typeof r)return e=>r({path:n,parameters:e});let i=eY(t,e);return e=>`https://${i}${n}?${e}`}(e,t);return{build:(i,o)=>r(function({clientToken:e,internalAnalyticsSubdomain:t},n,r,i,{retry:o,encoding:a}){let s=["sdk_version:6.13.0",`api:${i}`].concat(r);o&&s.push(`retry_count:${o.count}`,`retry_after:${o.lastFailureStatus}`);let u=["ddsource=browser",`ddtags=${encodeURIComponent(s.join(","))}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.13.0")}`,"dd-evp-origin=browser",`dd-request-id=${U()}`];return a&&u.push(`dd-evp-encoding=${a}`),"rum"===n&&u.push(`batch_time=${(0,E.nx)()}`),t&&u.reverse(),u.join("&")}(e,t,n,i,o)),tags:n,urlPrefix:r(""),trackType:t}}function eY(e,t){let{site:n=eJ.NW,internalAnalyticsSubdomain:r}=t;if("logs"===e&&t.usePciIntake&&n===eJ.NW)return eJ.$A;if(r&&n===eJ.NW)return`${r}.${eJ.NW}`;if(n===eJ.TC)return`http-intake.logs.${n}`;let i=n.split("."),o=i.pop();return`browser-intake-${i.join("-")}.${o}`}function eX(e,t){var n;let r=200-e.length-1;(t.length>r||(n=t,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(n)))&&k.Vy.warn(`${e} value doesn't meet tag requirements and will be sanitized. ${k.xG} ${k.fH}/getting_started/tagging/#defining-tags`);let i=t.replace(/,/g,"_");return`${e}:${i}`}let eQ={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},e0={ALL:"all",SAMPLED:"sampled"};function e1(e,t){return null==e||"string"==typeof e||(k.Vy.error(`${t} must be defined as a string`),!1)}function e3(e,t){return void 0===e||!!(0,eb.fp)(e)||(k.Vy.error(`${t} Sample Rate should be a number between 0 and 100`),!1)}let e4=new Map;function e2(e,t){let n;if(100===t)return!0;if(0===t)return!1;let r=e4.get(t);return r&&e===r.sessionId?r.decision:(n=window.BigInt?function(e,t){let n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(e*n%r)<=t/100*Number(r)}(BigInt(`0x${e.split("-")[4]}`),t):(0,eb.ic)(t),e4.set(t,{sessionId:e,decision:n}),n)}function e9(e){let t=crypto.getRandomValues(new Uint32Array(2));return 63===e&&(t[t.length-1]>>>=1),{toString(e=10){let n=t[1],r=t[0],i="";do{let t=n%e*0x100000000+r;n=Math.floor(n/e),r=Math.floor(t/e),i=(t%e).toString(e)+i}while(n||r);return i}}}function e8(e){return e.toString(16).padStart(16,"0")}function e5(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function e6(e,t,n,r,i,o){let a=n.findTrackedSession();if(!a)return;let s=e.allowedTracingUrls.find(e=>eW([e.match],t.url,!0));if(!s)return;let u=e2(a.id,e.traceSampleRate);(u||e.traceContextInjection===e0.ALL)&&(t.traceSampled=u,t.traceId=e9(64),t.spanId=e9(63),o(function(e,t,n,r,i,o,a,s){let u={};if(i.forEach(r=>{switch(r){case"datadog":Object.assign(u,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toString()});break;case"tracecontext":Object.assign(u,{traceparent:`00-0000000000000000${e8(e)}-${e8(t)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break;case"b3":Object.assign(u,{b3:`${e8(e)}-${e8(t)}-${n?"1":"0"}`});break;case"b3multi":Object.assign(u,{"X-B3-TraceId":e8(e),"X-B3-SpanId":e8(t),"X-B3-Sampled":n?"1":"0"})}}),s.propagateTraceBaggage){let e={"session.id":r},t=o.getContext().id;"string"==typeof t&&(e["user.id"]=t);let n=a.getContext().id;"string"==typeof n&&(e["account.id"]=n);let i=Object.entries(e).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(",");i&&(u.baggage=i)}return u}(t.traceId,t.spanId,t.traceSampled,a.id,s.propagatorTypes,r,i,e)))}let e7=["tracecontext","datadog"];function te(){k.Vy.error("Error fetching the remote configuration.")}function tt(e,t,n){e.changeObservable.subscribe(()=>{let r=e.getContext();n.add(e=>e[t].setContext(r))})}function tn(e,t,n,r={}){let i=function(e){let t=new g.c;return{tryToInit(t){e||(e=t)},update(n){e=n,t.notify()},isGranted:()=>e===v.GRANTED,observable:t}}(),o={vitalsByName:new Map,vitalsByReference:new WeakMap},a=function({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},n,r,i){let o,a,s,u,c=(0,G.O)(),l=Q();tt(l,x.globalContext,c);let d=et();tt(d,x.userContext,c);let f=en();tt(f,x.accountContext,c);let p=n.observable.subscribe(g),m={};function g(){let e;if(!s||!u||!n.isGranted())return;if(p.unsubscribe(),u.trackViewsManually){if(!o)return;c.remove(o.callback),e=o.options}let t=i(u,a,e);c.drain(t)}function b(e){var r,i,o;let c=(0,er.d0)();if(c&&(e={...r=e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!=(i=r.defaultPrivacyLevel)?i:null==(o=(0,er.Y9)())?void 0:o.getPrivacyLevel()}),s=e,(0,ei.wg)(()=>{(0,S.Rr)(function(e){var t;let n={session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins)};return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0,selected_tracing_propagators:function(e){let t=new Set;return Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0&&e.allowedTracingUrls.forEach(e=>{eH(e)?e7.forEach(e=>t.add(e)):"object"===(0,J.P)(e)&&Array.isArray(e.propagatorTypes)&&e.propagatorTypes.forEach(e=>t.add(e))}),Array.from(t)}(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(e.excludedActivityUrls)&&e.excludedActivityUrls.length>0,use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,track_bfcache_views:e.trackBfcacheViews,plugins:null==(t=e.plugins)?void 0:t.map(e=>{var t;return{name:e.name,...null==(t=e.getConfigurationTelemetry)?void 0:t.call(e)}}),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,...n}}(e))}),u)return void I("DD_RUM",e);let l=function(e){var t,n,r,i,o,a,s,u,c,l,d,f,p,m,g;if(void 0===e.trackFeatureFlagsForEvents||Array.isArray(e.trackFeatureFlagsForEvents)||k.Vy.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId)return void k.Vy.error("Application ID is not configured, no RUM data will be collected.");if(!e3(e.sessionReplaySampleRate,"Session Replay")||!e3(e.traceSampleRate,"Trace"))return;if(void 0!==e.excludedActivityUrls&&!Array.isArray(e.excludedActivityUrls))return void k.Vy.error("Excluded Activity Urls should be an array");let b=function(e){if(void 0===e.allowedTracingUrls)return[];if(!Array.isArray(e.allowedTracingUrls))return void k.Vy.error("Allowed Tracing URLs should be an array");if(0!==e.allowedTracingUrls.length&&void 0===e.service)return void k.Vy.error("Service needs to be configured when tracing is enabled");let t=[];return e.allowedTracingUrls.forEach(e=>{if(eH(e))t.push({match:e,propagatorTypes:e7});else"object"===(0,J.P)(e)&&eH(e.match)&&Array.isArray(e.propagatorTypes)?t.push(e):k.Vy.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)}),t}(e);if(!b)return;let h=(u=e)&&u.clientToken?void 0===u.allowedTrackingOrigins||Array.isArray(u.allowedTrackingOrigins)?(!(g=u.site)||"string"!=typeof g||/(datadog|ddog|datad0g|dd0g)/.test(g)||(k.Vy.error(`Site should be a valid Datadog site. ${k.xG} ${k.fH}/getting_started/site/.`),0))&&e3(u.sessionSampleRate,"Session")&&e3(u.telemetrySampleRate,"Telemetry")&&e3(u.telemetryConfigurationSampleRate,"Telemetry Configuration")&&e3(u.telemetryUsageSampleRate,"Telemetry Usage")&&e1(u.version,"Version")&&e1(u.env,"Env")&&e1(u.service,"Service")&&function(e,t="undefined"!=typeof location?location.origin:"",n){let r=e.allowedTrackingOrigins;if(!r)return function(e,t=Error().stack){return!eZ(e)&&eZ(t||"")}(t,void 0)&&k.Vy.warn("Running the Browser SDK in a Web extension content script is discouraged and will be forbidden in a future major release unless the `allowedTrackingOrigins` option is provided."),!0;let i=eW(r,t);return i||k.Vy.error("SDK initialized on a non-allowed domain."),i}(u)?void 0===u.trackingConsent||(0,W.Rj)(v,u.trackingConsent)?{beforeSend:u.beforeSend&&(0,ey.y)(u.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:function(e){switch(e.sessionPersistence){case eE.COOKIE:return eL(e);case eE.LOCAL_STORAGE:return eP();case void 0:{let t=eL(e);return!t&&e.allowFallbackToLocalStorage&&(t=eP()),t}default:k.Vy.error(`Invalid session persistence '${String(e.sessionPersistence)}'`)}}(u),sessionSampleRate:null!=(c=u.sessionSampleRate)?c:100,telemetrySampleRate:null!=(l=u.telemetrySampleRate)?l:20,telemetryConfigurationSampleRate:null!=(d=u.telemetryConfigurationSampleRate)?d:5,telemetryUsageSampleRate:null!=(f=u.telemetryUsageSampleRate)?f:5,service:u.service||void 0,silentMultipleInit:!!u.silentMultipleInit,allowUntrustedEvents:!!u.allowUntrustedEvents,trackingConsent:null!=(p=u.trackingConsent)?p:v.GRANTED,trackAnonymousUser:null==(m=u.trackAnonymousUser)||m,storeContextsAcrossPages:!!u.storeContextsAcrossPages,batchBytesLimit:16*y._m,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*E.OY,batchMessagesLimit:50,messageBytesLimit:256*y._m,...function(e){var t,n;let r=e.site||eJ.NW,i=function(e){let{env:t,service:n,version:r,datacenter:i}=e,o=[];return t&&o.push(eX("env",t)),n&&o.push(eX("service",n)),r&&o.push(eX("version",r)),i&&o.push(eX("datacenter",i)),o}(e),o={logsEndpointBuilder:ez(t=e,"logs",n=i),rumEndpointBuilder:ez(t,"rum",n),profilingEndpointBuilder:ez(t,"profile",n),sessionReplayEndpointBuilder:ez(t,"replay",n)};return{replica:function(e,t){if(!e.replica)return;let n={...e,site:eJ.NW,clientToken:e.replica.clientToken},r={logsEndpointBuilder:ez(n,"logs",t),rumEndpointBuilder:ez(n,"rum",t)};return{applicationId:e.replica.applicationId,...r}}(e,i),site:r,...o}}(u)}:void k.Vy.error('Tracking Consent should be either "granted" or "not-granted"'):void 0:void k.Vy.error("Allowed Tracking Origins must be an array"):void k.Vy.error("Client Token is not configured, we will not send any data.");if(!h)return;let S=null!=(t=e.sessionReplaySampleRate)?t:0;return{applicationId:e.applicationId,version:e.version||void 0,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:S,startSessionReplayRecordingManually:void 0!==e.startSessionReplayRecordingManually?!!e.startSessionReplayRecordingManually:0===S,traceSampleRate:null!=(n=e.traceSampleRate)?n:100,rulePsr:(0,eb.Et)(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:b,excludedActivityUrls:null!=(r=e.excludedActivityUrls)?r:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(null==(i=e.trackUserInteractions)||i),trackViewsManually:!!e.trackViewsManually,trackResources:!!(null==(o=e.trackResources)||o),trackLongTasks:!!(null==(a=e.trackLongTasks)||a),trackBfcacheViews:!!e.trackBfcacheViews,subdomain:e.subdomain,defaultPrivacyLevel:(0,W.Rj)(eQ,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:eQ.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:(0,W.Rj)(e0,e.traceContextInjection)?e.traceContextInjection:e0.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:null!=(s=e.profilingSampleRate)?s:0,propagateTraceBaggage:!!e.propagateTraceBaggage,...h}}(e);if(l){if(!c&&!l.sessionStoreStrategyType)return void k.Vy.warn("No storage available for session. We will not send any data.");if(l.compressIntakeRequests&&!c&&t&&!(a=t(l,"Datadog RUM",eo.l)))return;u=l,eu().subscribe(eo.l),n.tryToInit(l.trackingConsent),g()}}let h=e=>{c.add(t=>t.addDurationVital(e))};return{init(t,n){if(!t)return void k.Vy.error("Missing configuration");if((0,ec.Aq)(t.enableExperimentalFeatures),s=t,!(e&&ep()))if(B(t.plugins,"onInit",{initConfiguration:t,publicApi:n}),t.remoteConfigurationId){var r,i=t,o=e=>{var n,r;b((n=t,r=e,{...n,...r}))};let e=new XMLHttpRequest;(0,H.q)(i,e,"load",function(){200===e.status?o(JSON.parse(e.responseText).rum):te()}),(0,H.q)(i,e,"error",function(){te()}),e.open("GET",(r=i,`https://sdk-configuration.${eY("rum",r)}/v1/${encodeURIComponent(r.remoteConfigurationId)}.json`)),e.send()}else b(t)},get initConfiguration(){return s},getInternalContext:eo.l,stopSession:eo.l,addTiming(e,t=(0,E.nx)()){c.add(n=>n.addTiming(e,t))},startView(e,t=(0,E.M8)()){let n=n=>{n.startView(e,t)};c.add(n),o||(o={options:e,callback:n},g())},setViewName(e){c.add(t=>t.setViewName(e))},setViewContext(e){c.add(t=>t.setViewContext(e))},setViewContextProperty(e,t){c.add(n=>n.setViewContextProperty(e,t))},getViewContext:()=>m,globalContext:l,userContext:d,accountContext:f,addAction(e){c.add(t=>t.addAction(e))},addError(e){c.add(t=>t.addError(e))},addFeatureFlagEvaluation(e,t){c.add(n=>n.addFeatureFlagEvaluation(e,t))},startDurationVital:(e,t)=>F(r,e,t),stopDurationVital(e,t){q(h,r,e,t)},addDurationVital:h}}(r,i,o,(s,u,c)=>{var l,d;let f=e(s,t,n,c,u&&r.createDeflateEncoder?e=>r.createDeflateEncoder(s,u,e):b,i,o,r.sdkName);return t.onRumStart(f.lifeCycle,s,f.session,f.viewHistory,u),n.onRumStart(f.lifeCycle,f.hooks,s,f.session,f.viewHistory),l=a,d=f,a={init:e=>{I("DD_RUM",e)},initConfiguration:l.initConfiguration,...d},B(s.plugins,"onRumStart",{strategy:a,addEvent:f.addEvent}),f}),s=()=>a,u=(0,h.dm)(e=>{a.startView("object"==typeof e?e:{name:e}),(0,S.Q6)({feature:"start-view"})}),c=(0,w.m)({init:(0,h.dm)(e=>{a.init(e,c)}),setTrackingConsent:(0,h.dm)(e=>{i.update(e),(0,S.Q6)({feature:"set-tracking-consent",tracking_consent:e})}),setViewName:(0,h.dm)(e=>{a.setViewName(e),(0,S.Q6)({feature:"set-view-name"})}),setViewContext:(0,h.dm)(e=>{a.setViewContext(e),(0,S.Q6)({feature:"set-view-context"})}),setViewContextProperty:(0,h.dm)((e,t)=>{a.setViewContextProperty(e,t),(0,S.Q6)({feature:"set-view-context-property"})}),getViewContext:(0,h.dm)(()=>((0,S.Q6)({feature:"set-view-context-property"}),a.getViewContext())),getInternalContext:(0,h.dm)(e=>a.getInternalContext(e)),getInitConfiguration:(0,h.dm)(()=>(0,_.Go)(a.initConfiguration)),addAction:(e,t)=>{let n=(0,T.uC)("action");(0,h.um)(()=>{a.addAction({name:(0,C.a)(e),context:(0,C.a)(t),startClocks:(0,E.M8)(),type:M.CUSTOM,handlingStack:n}),(0,S.Q6)({feature:"add-action"})})},addError:(e,t)=>{let n=(0,T.uC)("error");(0,h.um)(()=>{a.addError({error:e,handlingStack:n,context:(0,C.a)(t),startClocks:(0,E.M8)()}),(0,S.Q6)({feature:"add-error"})})},addTiming:(0,h.dm)((e,t)=>{a.addTiming((0,C.a)(e),t)}),setGlobalContext:A(s,x.globalContext,R.setContext,"set-global-context"),getGlobalContext:A(s,x.globalContext,R.getContext,"get-global-context"),setGlobalContextProperty:A(s,x.globalContext,R.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:A(s,x.globalContext,R.removeContextProperty,"remove-global-context-property"),clearGlobalContext:A(s,x.globalContext,R.clearContext,"clear-global-context"),setUser:A(s,x.userContext,R.setContext,"set-user"),getUser:A(s,x.userContext,R.getContext,"get-user"),setUserProperty:A(s,x.userContext,R.setContextProperty,"set-user-property"),removeUserProperty:A(s,x.userContext,R.removeContextProperty,"remove-user-property"),clearUser:A(s,x.userContext,R.clearContext,"clear-user"),setAccount:A(s,x.accountContext,R.setContext,"set-account"),getAccount:A(s,x.accountContext,R.getContext,"get-account"),setAccountProperty:A(s,x.accountContext,R.setContextProperty,"set-account-property"),removeAccountProperty:A(s,x.accountContext,R.removeContextProperty,"remove-account-property"),clearAccount:A(s,x.accountContext,R.clearContext,"clear-account"),startView:u,stopSession:(0,h.dm)(()=>{a.stopSession(),(0,S.Q6)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,h.dm)((e,t)=>{a.addFeatureFlagEvaluation((0,C.a)(e),(0,C.a)(t)),(0,S.Q6)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,h.dm)(()=>t.getSessionReplayLink()),startSessionReplayRecording:(0,h.dm)(e=>{t.start(e),(0,S.Q6)({feature:"start-session-replay-recording",force:e&&e.force})}),stopSessionReplayRecording:(0,h.dm)(()=>t.stop()),addDurationVital:(0,h.dm)((e,t)=>{(0,S.Q6)({feature:"add-duration-vital"}),a.addDurationVital({name:(0,C.a)(e),type:P.DURATION,startClocks:(0,E.jR)(t.startTime),duration:t.duration,context:(0,C.a)(t&&t.context),description:(0,C.a)(t&&t.description)})}),startDurationVital:(0,h.dm)((e,t)=>((0,S.Q6)({feature:"start-duration-vital"}),a.startDurationVital((0,C.a)(e),{context:(0,C.a)(t&&t.context),description:(0,C.a)(t&&t.description)}))),stopDurationVital:(0,h.dm)((e,t)=>{(0,S.Q6)({feature:"stop-duration-vital"}),a.stopDurationVital("string"==typeof e?(0,C.a)(e):e,{context:(0,C.a)(t&&t.context),description:(0,C.a)(t&&t.description)})})});return c}var tr=n(71845),ti=n(21571),to=n(11484);function ta(){let e,t=window;if(t.Zone&&(e=(0,to.W)(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){let n=new t.MutationObserver(eo.l),r=(0,to.W)(n,"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}class ts{constructor(){this.callbacks={}}notify(e,t){let n=this.callbacks[e];n&&n.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)}}}}var tu=n(47875);let tc=1/0,tl=E.iW,td=null,tf=new Set;function tp({expireDelay:e,maxEntries:t}){let n=[];td||(td=(0,ei.yb)(()=>void tf.forEach(e=>e()),tl));let r=()=>{let t=(0,E.$S)()-e;for(;n.length>0&&n[n.length-1].endTime{(0,tu.A)(n,i)},close:e=>{i.endTime=e}};return t&&n.length>=t&&n.pop(),n.unshift(i),i},find:function(e=tc,t={returnInactive:!1}){for(let r of n)if(r.startTime<=e){if(t.returnInactive||e<=r.endTime)return r.value;break}},closeActive:function(e){let t=n[0];t&&t.endTime===tc&&t.close(e)},findAll:function(e=tc,t=0){let r=(0,E.Gw)(e,t);return n.filter(t=>t.startTime<=r&&e<=t.endTime).map(e=>e.value)},reset:function(){n=[]},stop:function(){tf.delete(r),0===tf.size&&td&&((0,ei.vG)(td),td=null)}}}let tm=new WeakMap;function tg({target:e,parameters:[t,n]}){tm.set(e,{state:"open",method:String(t).toUpperCase(),url:(0,es.l2)(String(n))})}function tv({target:e}){let t=tm.get(e);t&&(t.isAborted=!0)}let ty={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},tb={FETCH:ty.FETCH,XHR:ty.XHR};var th=n(69715);let tS="initial_document",tw=[[ty.DOCUMENT,e=>tS===e],[ty.XHR,e=>"xmlhttprequest"===e],[ty.FETCH,e=>"fetch"===e],[ty.BEACON,e=>"beacon"===e],[ty.CSS,(e,t)=>/\.css$/i.test(t)],[ty.JS,(e,t)=>/\.js$/i.test(t)],[ty.IMAGE,(e,t)=>["image","img","icon"].includes(e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)],[ty.FONT,(e,t)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)],[ty.MEDIA,(e,t)=>["audio","video"].includes(e)||null!==/\.(mp3|mp4)$/i.exec(t)]];function t_(...e){for(let t=1;te[t])return!1;return!0}function tT(e){let{duration:t,startTime:n,responseEnd:r}=e;return 0===t&&n=0}function tE(e){var t;let n=t_(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),r=!((t=e).redirectEnd>t.startTime)||t_(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart);return n&&r}function tA(e,t,n){if(e<=t&&t<=n)return{duration:(0,E.Zj)((0,E.vk)(t,n)),start:(0,E.Zj)((0,E.vk)(e,t))}}function tx(e){return""===e.nextHopProtocol?void 0:e.nextHopProtocol}function tR(e){return""===e.deliveryType?"other":e.deliveryType}function tk(e){return e&&(!eJ.Ih.every(t=>e.includes(t))||(0,ec.sr)(ec.R9.TRACK_INTAKE_REQUESTS))}let tI=/data:(.+)?(;base64)?,/g;function tO(e,t=24e3){if(e.length<=t||!e.startsWith("data:"))return e;let n=e.substring(0,100).match(tI);return n?`${n[0]}[...]`:e}let tN=1;function tL(){let e=tN;return tN+=1,e}function tM(e){return(0,eb.Et)(e)&&e<0?void 0:e}function t$({lifeCycle:e,isChildEvent:t,onChange:n=eo.l}){let r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=e.subscribe(13,e=>{var i;if("view"!==e.type&&"vital"!==e.type&&t(e))switch(e.type){case O.ERROR:r.errorCount+=1,n();break;case O.ACTION:r.actionCount+=1,e.action.frustration&&(r.frustrationCount+=e.action.frustration.type.length),n();break;case O.LONG_TASK:r.longTaskCount+=1,n();break;case O.RESOURCE:(null==(i=e._dd)?void 0:i.discarded)||(r.resourceCount+=1,n())}});return{stop:()=>{i.unsubscribe()},eventCounts:r}}function tP(e,t){return new g.c(n=>{var r;let i,o;if(!window.PerformanceObserver)return;let a=e=>{let t=e.filter(e=>{var t;return!((t=e).entryType===m.RESOURCE&&(!tk(t.name)||!tC(t)))});t.length>0&&n.notify(t)},s=!0,c=new PerformanceObserver((0,h.dm)(e=>{s?i=(0,ei.wg)(()=>a(e.getEntries())):a(e.getEntries())}));try{c.observe(t)}catch(e){if([m.RESOURCE,m.NAVIGATION,m.LONG_TASK,m.PAINT].includes(t.type)){t.buffered&&(i=(0,ei.wg)(()=>a(performance.getEntriesByType(t.type))));try{c.observe({entryTypes:[t.type]})}catch(e){return}}}return s=!1,r=e,!u&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(u=(0,H.q)(r,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),tU(m.FIRST_INPUT)||t.type!==m.FIRST_INPUT||({stop:o}=function(e,t){let n=(0,E.x3)(),r=!1,{stop:i}=(0,H.l)(e,window,["click","mousedown","keydown","touchstart","pointerdown"],t=>{var n,r;if(!t.cancelable)return;let i={entryType:"first-input",processingStart:(0,E.$S)(),processingEnd:(0,E.$S)(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};"pointerdown"===t.type?(n=e,r=i,(0,H.l)(n,window,["pointerup","pointercancel"],e=>{"pointerup"===e.type&&o(r)},{once:!0})):o(i)},{passive:!0,capture:!0});return{stop:i};function o(e){if(!r){r=!0,i();let o=e.processingStart-e.startTime;o>=0&&o<(0,E.x3)()-n&&t(e)}}}(e,e=>{a([e])})),()=>{c.disconnect(),o&&o(),(0,ei.DJ)(i)}})}function tU(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(e)}function tV(e){return e.nodeType===Node.TEXT_NODE}function tD(e){return e.nodeType===Node.ELEMENT_NODE}function tj(e){return tD(e)&&!!e.shadowRoot}function tF(e){return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&tD(e.host)}function tq(e){return e.childNodes.length>0||tj(e)}function tB(e,t){let n=e.firstChild;for(;n;)t(n),n=n.nextSibling;tj(e)&&t(e.shadowRoot)}function tG(e){return tF(e)?e.host:e.parentNode}!function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource",e.VISIBILITY_STATE="visibility-state"}(m||(m={}));let tH="data-dd-excluded-activity-mutations";function tW(e,t,n){let r,i=!1,o=(0,ei.wg)((0,h.dm)(()=>c({hadActivity:!1})),100),a=void 0!==n?(0,ei.wg)((0,h.dm)(()=>c({hadActivity:!0,end:(0,E.nx)()})),n):void 0,s=e.subscribe(({isBusy:e})=>{(0,ei.DJ)(o),(0,ei.DJ)(r);let t=(0,E.nx)();e||(r=(0,ei.wg)((0,h.dm)(()=>c({hadActivity:!0,end:t})),100))}),u=()=>{i=!0,(0,ei.DJ)(o),(0,ei.DJ)(r),(0,ei.DJ)(a),s.unsubscribe()};function c(e){i||(u(),t(e))}return{stop:u}}function tK(e,t,n,r){return new g.c(i=>{let o,a=[],s=0;return a.push(t.subscribe(e=>{e.every(tJ)||u()}),n.subscribe(u),tP(r,{type:m.RESOURCE}).subscribe(e=>{e.some(e=>!tZ(r,e.name))&&u()}),e.subscribe(7,e=>{tZ(r,e.url)||(void 0===o&&(o=e.requestIndex),s+=1,u())}),e.subscribe(8,e=>{tZ(r,e.url)||void 0===o||e.requestIndex{a.forEach(e=>e.unsubscribe())};function u(){i.notify({isBusy:s>0})}})}function tZ(e,t){return eW(e.excludedActivityUrls,t)}function tJ(e){let t="characterData"===e.type?e.target.parentElement:e.target;return!!(t&&tD(t)&&t.matches(`[${tH}], [${tH}] *`))}let tz={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:eQ.ALLOW,MASK:eQ.MASK,MASK_USER_INPUT:eQ.MASK_USER_INPUT},tY="data-dd-privacy",tX="hidden",tQ="***",t0="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",t1={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function t3(e,t,n){if(n&&n.has(e))return n.get(e);let r=tG(e),i=r?t3(r,t,n):t,o=t4(t2(e),i);return n&&n.set(e,o),o}function t4(e,t){switch(t){case tz.HIDDEN:case tz.IGNORE:return t}switch(e){case tz.ALLOW:case tz.MASK:case tz.MASK_USER_INPUT:case tz.HIDDEN:case tz.IGNORE:return e;default:return t}}function t2(e){if(tD(e)){if("BASE"===e.tagName)return tz.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return tz.MASK;let t=e.getAttribute("autocomplete");if(t&&(t.startsWith("cc-")||t.endsWith("-password")))return tz.MASK}if(e.matches(t6(tz.HIDDEN)))return tz.HIDDEN;if(e.matches(t6(tz.MASK)))return tz.MASK;if(e.matches(t6(tz.MASK_USER_INPUT)))return tz.MASK_USER_INPUT;if(e.matches(t6(tz.ALLOW)))return tz.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 n=t("name"),r=t("rel"),i=t("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===r||"apple-touch-icon"===r||"shortcut icon"===r||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||e.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function t(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}(e))return tz.IGNORE}}function t9(e,t){switch(t){case tz.MASK:case tz.HIDDEN:case tz.IGNORE:return!0;case tz.MASK_USER_INPUT:return tV(e)?t8(e.parentNode):t8(e);default:return!1}}function t8(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!!t1[e.tagName]}function t5(e,t,n){var r;let i=null==(r=e.parentElement)?void 0:r.tagName,o=e.textContent||"";if(!t||o.trim()){if("SCRIPT"===i)o=tQ;else if(n===tz.HIDDEN)o=tQ;else if(t9(e,n))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?tQ:o.replace(/\S/g,"x");return o}}function t6(e){return`[${tY}="${e}"], .dd-privacy-${e}`}let t7="data-dd-action-name";function ne(e,t){let n=e.closest(`[${t}]`);if(n)return no(ni(n.getAttribute(t).trim()))}let nt=[(e,t)=>{if("labels"in e&&e.labels&&e.labels.length>0)return ns(e.labels[0],t)},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,n)=>{if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return ns(e,t,n)},e=>na(e,"aria-label"),(e,t,n)=>{let r=e.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(t=>(function(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null})(e,t)).filter(e=>!!e).map(e=>nu(e,t,n)).join(" "),nameSource:"text_content"}},e=>na(e,"alt"),e=>na(e,"name"),e=>na(e,"title"),e=>na(e,"placeholder"),(e,t)=>{if("options"in e&&e.options.length>0)return ns(e.options[0],t)}],nn=[(e,t,n)=>ns(e,t,n)];function nr(e,t,n,r){let i=e,o=0;for(;o<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(let e of n){let n=e(i,t,r);if(n){let{name:e,nameSource:t}=n,r=e&&e.trim();if(r)return{name:no(ni(r)),nameSource:t}}}if("FORM"===i.nodeName)break;i=i.parentElement,o+=1}}function ni(e){return e.replace(/\s+/g," ")}function no(e){return e.length>100?`${j(e,100)} [...]`:e}function na(e,t){return{name:e.getAttribute(t)||"",nameSource:"standard_attribute"}}function ns(e,t,n){return{name:nu(e,t,n)||"",nameSource:"text_content"}}function nu(e,t,n){if(!e.isContentEditable){if("innerText"in e){let r=e.innerText,i=t=>{let n=e.querySelectorAll(t);for(let e=0;e0&&(r=r.replace(e,""))}}};return i(`[${t7}]`),t&&i(`[${t}]`),n&&i(`${t6(tz.HIDDEN)}, ${t6(tz.MASK)}`),r}return e.textContent}}let nc=[t7,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],nl=[nm,function(e){if(e.id&&!np(e.id))return`#${CSS.escape(e.id)}`}],nd=[nm,function(e){if("BODY"===e.tagName)return;let t=e.classList;for(let n=0;ne.matches(t);else{let e=nb(`${t}:scope`,n);r=t=>null!==t.querySelector(e)}let i=e.parentElement.firstElementChild;for(;i;){if(i!==e&&r(i))return!1;i=i.nextElementSibling}return!0}function nb(e,t){return t?`${e}>${t}`:e}let nh=E.OY;function nS(){let e=window.getSelection();return!e||e.isCollapsed}function nw(e){return e.target instanceof Element&&!1!==e.isPrimary}function n_(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||!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 nT=10*E.OY,nC=new Map;function nE(e,t){nC.set(e,t),nC.forEach((e,t)=>{(0,E.vk)(t,(0,E.$S)())>nT&&nC.delete(t)})}let nA=5*E.iW;function nx(e){let t=nR(e)?{action:{id:e.id,loading_time:tM((0,E.Zj)(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position,name_source:e.nameSource}}}:void 0,n=(0,_.kg)({action:{id:U(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:O.ACTION},t),r=nR(e)?e.duration:void 0,i=nR(e)?void 0:e.context,o=nR(e)?{events:e.events}:{handlingStack:e.handlingStack};return{customerContext:i,rawRumEvent:n,duration:r,startTime:e.startClocks.relative,domainContext:o}}function nR(e){return e.type!==M.CUSTOM}var nk=n(39069),nI=n(24743),nO=n(32328),nN=n(73408);let nL={},nM={intervention:"intervention",cspViolation:"csp_violation"};function n$(e){return{startClocks:(0,E.M8)(),source:nO.g.REPORT,handling:"unhandled",...e}}function nP(e,t,n,r,i){return n?(0,T.Yn)({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=i?i:void 0}]}):void 0}var nU=n(42513);let nV=E.OY,nD=new WeakSet;function nj(e){return(0,E.Gw)(e.startTime,e.duration)}var nF=n(99054);let nq=2*E.iW;function nB(e,t){let n=t&&Number(t);if(e&&n)return{traceId:e,traceTime:n}}function nG(e){if(e&&e.nodeType===Node.COMMENT_NODE){let t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function nH(){if(tU(m.NAVIGATION)){let e=performance.getEntriesByType(m.NAVIGATION)[0];if(e)return e}let e=function(){let e={},t=performance.timing;for(let n in t)if((0,eb.Et)(t[n])){let r=t[n];e[n]=0===r?0:(0,E.gs)(r)}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 nW(e,t){var n;let r=(0,E.FR)(e.startTime),i=function(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:e9(63).toString(),rule_psr:t.rulePsr}}}(e,t);if(!t.trackResources&&!i)return;let o=function(e){let t=e.name;if(!(0,es.AY)(t))return(0,S.A2)(`Failed to construct URL for "${e.name}"`),ty.OTHER;let n=(0,es.L2)(t);for(let[t,r]of tw)if(r(e.initiatorType,n))return t;return ty.OTHER}(e),a=nK(e),s=tT(e),u=(0,_.kg)({date:r.timeStamp,resource:{id:U(),type:o,duration:(0,E.Zj)(s),url:e.name,status_code:0===(n=e.responseStatus)?void 0:n,protocol:tx(e),delivery_type:tR(e)},type:O.RESOURCE,_dd:{discarded:!t.trackResources}},i,a);return{startTime:r.relative,duration:s,rawRumEvent:u,domainContext:{performanceEntry:e}}}function nK(e){let{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...function(e){if(e.startTime"hidden"===e.name).find(e=>e.startTime>=t.relative);if(e)return{timeStamp:e.startTime,stop:eo.l}}let r=1/0,{stop:i}=(0,H.l)(e,n,["pagehide","visibilitychange"],e=>{("pagehide"===e.type||"hidden"===document.visibilityState)&&(r=e.timeStamp,i())},{capture:!0});return{get timeStamp(){return r},stop:i}}let nY=e=>{let t=e.previousRect.width*e.previousRect.height;return t+e.currentRect.width*e.currentRect.height-((e,t)=>{let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom);return n>=i||r>=o?0:(i-n)*(o-r)})(e.previousRect,e.currentRect)};function nX({x:e,y:t,width:n,height:r}){return{x:e,y:t,width:n,height:r}}let nQ=5*E.OY,n0=E.OY,n1=0,n3=1/0,n4=0,n2=()=>c?n1:window.performance.interactionCount||0,n9=+E.iW;function n8(){let e=window.visualViewport;return Math.round(e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function n5(){let e=window.visualViewport;return Math.round(e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function n6(e){var t;return l||(t=e,l=new g.c(e=>{let{throttled:n}=(0,eo.n)(()=>{e.notify(n7())},200);return(0,H.q)(t,window,"resize",n,{capture:!0,passive:!0}).stop})),l}function n7(){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)}}let re=E.OY,rt=5*E.iW,rn=5*E.iW;function rr(e){let t=e.indexOf("?");return t<0?e:e.slice(0,t)}let ri=E.iW,ro=[];var ra=n(25235);function rs(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}let ru=10*E.OY;function rc(){0!==d.batchCount&&((0,S.A2)("Customer data measures",d),rf())}function rl(){return{min:1/0,max:0,sum:0}}function rd(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function rf(){d={batchCount:0,batchBytesCount:rl(),batchMessagesCount:rl()}}function rp(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}let rm=E.OY;function rg(e,t){let n=D(document.cookie,e),r=(0,ei.yb)(()=>{let r=D(document.cookie,e);r!==n&&t(r)},rm);return()=>{(0,ei.vG)(r)}}let rv="datadog-ci-visibility-test-execution-id";function ry(e,t,n){let r=0,i=!1;return{isLimitReached(){if(0===r&&(0,ei.wg)(()=>{r=0},E.iW),(r+=1)<=t||i)return i=!1,!1;if(r===t+1){i=!0;try{n({message:`Reached max number of ${e}s by minute: ${t}`,source:nO.g.AGENT,startClocks:(0,E.M8)()})}finally{i=!1}}return!0}}}function rb(e){return"object"===(0,J.P)(e)}let rh={"view.name":"string","view.url":"string","view.referrer":"string"},rS={context:"object"},rw={service:"string",version:"string"};var r_=n(93795);let rT=ee.XP,rC=[O.ACTION,O.ERROR,O.LONG_TASK,O.RESOURCE,O.VITAL];function rE(e,t,n,r,i,o,a,u){var l,v,y,b,w,A;let x,R=[],I=new ts,P=rT();I.subscribe(13,e=>(0,tr.b)("rum",e));let V=e=>{I.notify(14,{error:e}),(0,S.A2)("Error reported to customer",{"error.message":e.message})},B=(0,ti._T)(e),G=B.subscribe(e=>{I.notify(11,e)});R.push(()=>G.unsubscribe());let K=(0,S.a5)("browser-rum-sdk",e,V,B,i);R.push(K.stop),K.setContextProvider("application.id",()=>e.applicationId);let z=(0,er.d0)()?function(){let e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:+!!(0,er.Ww)("records")};return{findTrackedSession:()=>e,expire:eo.l,expireObservable:new g.c,setForcedReplay:eo.l}}():function(e,t,n){let r=function(e,t,n,r){let i=new g.c,o=new g.c,a=function(e,t,n,r){let i,o=new g.c,a=new g.c,s=new g.c,u=e.type===eE.COOKIE?function(e,t){let n={isLockEnabled:(0,eh.F2)(),persistSession:n=>eM(t,e,n,eT),retrieveSession:e$,expireSession:n=>eM(t,e,ex(n,e),e_)};if(!ef(eS)){let e=ef("_dd"),t=ef("_dd_r"),r=ef("_dd_l"),i={};e&&(i.id=e),r&&/^[01]$/.test(r)&&(i.logs=r),t&&/^[012]$/.test(t)&&(i.rum=t),eR(i)||(eI(i),n.persistSession(i))}return n}(t,e.cookieOptions):{isLockEnabled:!1,persistSession:eU,retrieveSession:eV,expireSession:e=>{eU(ex(e,t))}},{expireSession:c}=u,l=(0,ei.yb)(function(){eF({process:e=>ek(e)?ex(e,t):void 0,after:p},u)},eG);m();let{throttled:d,cancel:f}=(0,eo.n)(()=>{eF({process:e=>{if(eR(e))return;let t=p(e);return function(e){if(eR(e))return;let t=r(e.rum);e[n]=t,delete e.isExpired,"0"===t||e.id||(e.id=U(),e.created=String((0,E.x3)()))}(t),t},after:e=>{eR(e)||v()||(i=e,o.notify()),i=e}},u)},eG);function p(e){var r;return ek(e)&&(e=ex(e,t)),v()&&((r=e,i.id!==r.id||i[n]!==r[n])?(i=ex(i,t),a.notify()):(s.notify({previousState:i,newState:e}),i=e)),e}function m(){eF({process:e=>{if(eR(e))return ex(e,t)},after:e=>{i=e}},u)}function v(){return(null==i?void 0:i[n])!==void 0}return{expandOrRenewSession:d,expandSession:function(){eF({process:e=>v()?p(e):void 0},u)},getSession:()=>i,renewObservable:o,expireObservable:a,sessionStateUpdateObservable:s,restartSession:m,expire:()=>{f(),c(i),p(ex(i,t))},stop:()=>{(0,ei.vG)(l)},updateSessionState:function(e){eF({process:t=>({...t,...e}),after:p},u)}}}(e.sessionStoreStrategyType,e,"rum",n);ro.push(()=>a.stop());let s=tp({expireDelay:e_});function u(){let e=a.getSession();if(!e){let e=e$(),t=document.cookie.split(/\s*;\s*/).filter(e=>e.startsWith("_dd_s"));return(0,S.A2)("Unexpected session state",{session:e,isSyntheticsTest:ev(),createdTimestamp:null==e?void 0:e.created,expireTimestamp:null==e?void 0:e.expire,cookie:{count:t.length,...t}}),{id:"invalid",trackingType:"0",isReplayForced:!1,anonymousId:void 0}}return{id:e.id,trackingType:e.rum,isReplayForced:!!e.forcedReplay,anonymousId:e.anonymousId}}return ro.push(()=>s.stop()),a.renewObservable.subscribe(()=>{s.add(u(),(0,E.$S)()),i.notify()}),a.expireObservable.subscribe(()=>{o.notify(),s.closeActive((0,E.$S)())}),a.expandOrRenewSession(),s.add(u(),(0,E.Oc)().relative),r.observable.subscribe(()=>{r.isGranted()?a.expandOrRenewSession():a.expire()}),function(e,t){let{stop:n}=(0,H.l)(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});ro.push(n)}(e,()=>{r.isGranted()&&a.expandOrRenewSession()}),function(e,t){let n=()=>{"visible"===document.visibilityState&&t()},{stop:r}=(0,H.q)(e,document,"visibilitychange",n);ro.push(r);let i=(0,ei.yb)(n,ri);ro.push(()=>{(0,ei.vG)(i)})}(e,()=>a.expandSession()),function(e,t){let{stop:n}=(0,H.q)(e,window,"resume",t,{capture:!0});ro.push(n)}(e,()=>a.restartSession()),{findSession:(e,t)=>s.find(e,t),renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}(e,"rum",t=>{var n,r,i;return n=e,"0"===(i=r=t)||"1"===i||"2"===i?r:(0,eb.ic)(n.sessionSampleRate)?(0,eb.ic)(n.sessionReplaySampleRate)?"1":"2":"0"},n);return r.expireObservable.subscribe(()=>{t.notify(9)}),r.renewObservable.subscribe(()=>{t.notify(10)}),r.sessionStateUpdateObservable.subscribe(({previousState:e,newState:t})=>{if(!e.forcedReplay&&t.forcedReplay){let e=r.findSession();e&&(e.isReplayForced=!0)}}),{findTrackedSession:e=>{let t=r.findSession(e);if(t&&"0"!==t.trackingType)return{id:t.id,sessionReplay:"1"===t.trackingType?1:2*!!t.isReplayForced,anonymousId:t.anonymousId}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:()=>r.updateSessionState({forcedReplay:"1"})}}(e,I,o);if(K.setContextProvider("session.id",()=>{var e;return null==(e=z.findTrackedSession())?void 0:e.id}),K.setContextProvider("usr.anonymous_id",()=>{var e;return null==(e=z.findTrackedSession())?void 0:e.anonymousId}),(0,er.d0)()){let e=(0,er.Y9)();I.subscribe(13,t=>{e.send("rum",t)})}else{let t=function(e,t,n,r,i,o){let a=e.replica,s=(0,ra.Z)(e,{endpoint:e.rumEndpointBuilder,encoder:o(2)},a&&{endpoint:a.rumEndpointBuilder,transformMessage:e=>(0,_.kg)(e,{application:{id:a.applicationId}}),encoder:o(3)},n,r,i);return t.subscribe(13,e=>{e.type===O.VIEW?s.upsert(e,e.view.id):s.add(e)}),s}(e,I,V,B,z.expireObservable,i);R.push(()=>t.stop()),l=t.flushObservable,K.enabled&&(0,eb.ic)(e.customerDataTelemetrySampleRate)&&(rf(),f=!1,I.subscribe(13,()=>{f=!0}),l.subscribe(({bytesCount:e,messagesCount:t})=>{f&&(d.batchCount+=1,rd(d.batchBytesCount,e),rd(d.batchMessagesCount,t))}),(0,ei.yb)(rc,ru))}let Y=function(){let e=ta();return new g.c(t=>{if(!e)return;let n=new e((0,h.dm)(e=>t.notify(e)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}(),es=(v=location,x=(0,W.yG)(v),new g.c(t=>{var n,r;let{stop:i}=function(e,t){let{stop:n}=(0,ea.H)(rs("pushState"),"pushState",({onPostCall:e})=>{e(t)}),{stop:r}=(0,ea.H)(rs("replaceState"),"replaceState",({onPostCall:e})=>{e(t)}),{stop:i}=(0,H.q)(e,window,"popstate",t);return{stop:()=>{n(),r(),i()}}}(e,a),{stop:o}=(n=e,r=a,(0,H.q)(n,window,"hashchange",r));function a(){if(x.href===v.href)return;let e=(0,W.yG)(v);t.notify({newLocation:e,oldLocation:x}),x=e}return()=>{i(),o()}})),{observable:el,stop:ed}=function(){let e=new g.c,{stop:t}=(0,ea.H)(window,"open",()=>e.notify());return{observable:e,stop:t}}();R.push(ed),P.register(0,({eventType:t})=>({type:t,_dd:{format_version:2,drift:(0,E.TP)(),configuration:{session_sample_rate:(0,eb.LI)(e.sessionSampleRate,3),session_replay_sample_rate:(0,eb.LI)(e.sessionReplaySampleRate,3),profiling_sample_rate:(0,eb.LI)(e.profilingSampleRate,3)},browser_sdk_version:(0,er.d0)()?"6.13.0":void 0,sdk_name:u},application:{id:e.applicationId},date:(0,E.nx)(),source:"browser"}));let ey=function(e,t,n=500){let r,i=tp({expireDelay:e_,maxEntries:4e3});tU(m.VISIBILITY_STATE)&&performance.getEntriesByType(m.VISIBILITY_STATE).forEach(e=>{a("hidden"===e.name?"hidden":"active",e.startTime)}),a(rp(),(0,E.$S)());let{stop:o}=(0,H.l)(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],e=>{var t;a("freeze"===(t=e).type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":rp(),e.timeStamp)},{capture:!0});function a(e,t=(0,E.$S)()){e!==r&&(r=e,i.closeActive(t),i.add({state:r,startTime:t},t))}function s(e,t,n){return i.findAll(t,n).some(t=>t.state===e)}return e.register(0,({startTime:e,duration:t=0,eventType:r})=>r===O.VIEW?{type:r,_dd:{page_states:function(e,t,n){if(0!==e.length)return e.slice(-n).reverse().map(({state:e,startTime:n})=>({state:e,start:(0,E.Zj)((0,E.vk)(t,n))}))}(i.findAll(e,t),e,n)}}:r===O.ACTION||r===O.ERROR?{type:r,view:{in_foreground:s("active",e,0)}}:ee.$O),{wasInPageStateDuringPeriod:s,addPageState:a,stop:()=>{o(),i.stop()}}}(P,e),eC=function(e){let t=tp({expireDelay:e_});return e.subscribe(1,e=>{var n;t.add({service:(n=e).service,version:n.version,context:n.context,id:n.id,name:n.name,startClocks:n.startClocks},e.startClocks.relative)}),e.subscribe(6,({endClocks:e})=>{t.closeActive(e.relative)}),e.subscribe(3,e=>{let n=t.find(e.startClocks.relative);n&&(e.name&&(n.name=e.name),e.context&&(n.context=e.context),n.sessionIsActive=e.sessionIsActive)}),e.subscribe(10,()=>{t.reset()}),{findView:e=>t.find(e),stop:()=>{t.stop()}}}(I);R.push(()=>eC.stop()),K.setContextProvider("view.id",()=>{var e;return null==(e=eC.findView())?void 0:e.id});let eA=function(e,t,n,r){let i,o=tp({expireDelay:e_});e.subscribe(1,({startClocks:e})=>{let t=r.href;o.add(s({url:t,referrer:i||document.referrer}),e.relative),i=t}),e.subscribe(6,({endClocks:e})=>{o.closeActive(e.relative)});let a=n.subscribe(({newLocation:e})=>{let t=o.find();if(t){let n=(0,E.$S)();o.closeActive(n),o.add(s({url:e.href,referrer:t.referrer}),n)}});function s({url:e,referrer:t}){return{url:e,referrer:t}}return t.register(0,({startTime:e,eventType:t})=>{let n=o.find(e);return n?{type:t,view:{url:n.url,referrer:n.referrer}}:ee.ug}),{findUrl:e=>o.find(e),stop:()=>{a.unsubscribe(),o.stop()}}}(I,P,es,location);R.push(()=>eA.stop());let eO=function(e,t,n){let r=tp({expireDelay:e_});return e.subscribe(1,({startClocks:e})=>{r.add({},e.relative)}),e.subscribe(6,({endClocks:e})=>{r.closeActive(e.relative)}),t.register(0,({startTime:e,eventType:t})=>{if(!n.trackFeatureFlagsForEvents.concat([O.VIEW,O.ERROR]).includes(t))return ee.$O;let i=r.find(e);return!i||(0,W.RI)(i)?ee.$O:{type:t,feature_flags:i}}),{addFeatureFlagEvaluation:(e,t)=>{let n=r.find();n&&(n[e]=t)}}}(I,P,e);P.register(0,({eventType:e,startTime:n})=>{let r,i,o,a=z.findTrackedSession(n),s=eC.findView(n);return a&&s?(e===O.VIEW?(r=!!t.getReplayStats(s.id)||void 0,i=1===a.sessionReplay,o=!!s.sessionIsActive&&void 0):r=!!t.isRecording()||void 0,{type:e,session:{id:a.id,type:"user",has_replay:r,sampled_for_replay:i,is_active:o}}):ee.ug}),P.register(0,({eventType:e})=>({type:e,connectivity:(0,r_.q)()}));let eN=function(e,t,n,r){let i=Q();return t.storeContextsAcrossPages&&Z(t,i,"rum",2),e.register(0,()=>{let e=i.getContext();return r?{context:e}:e}),i}(P,e,0,!0),eL=function(e,t,n,r){let i=et();return t.storeContextsAcrossPages&&Z(t,i,"rum",1),e.register(0,({eventType:e,startTime:r})=>{let o=i.getContext(),a=n.findTrackedSession(r);return(a&&a.anonymousId&&!o.anonymous_id&&t.trackAnonymousUser&&(o.anonymous_id=a.anonymousId),(0,W.RI)(o))?ee.$O:{type:e,usr:o}}),i}(P,e,z,0),eP=function(e,t,n){let r=en();return t.storeContextsAcrossPages&&Z(t,r,"rum",4),e.register(0,()=>{let e=r.getContext();return(0,W.RI)(e)||!e.id?ee.$O:{account:e}}),r}(P,e,0),{actionContexts:eD,addAction:ej,addEvent:eq,stop:eB}=function(e,t,n,r,i,o,a){let s,u,c=(e.subscribe(0,t=>e.notify(12,nx(t))),t.register(0,({startTime:e,eventType:t})=>{if(t!==O.ERROR&&t!==O.RESOURCE&&t!==O.LONG_TASK)return ee.$O;let n=s.findActionId(e);return n?{type:t,action:{id:n}}:ee.$O}),s={findActionId:eo.l},u=eo.l,n.trackUserInteractions&&({actionContexts:s,stop:u}=function(e,t,n,r){let i,o=tp({expireDelay:nA}),a=new g.c;e.subscribe(10,()=>{o.reset()}),e.subscribe(5,c),e.subscribe(11,e=>{e.reason===ti.y5.UNLOADING&&c()});let{stop:s}=function(e,{onPointerDown:t,onPointerUp:n}){let r,i,o={selection:!1,input:!1,scroll:!1},a=[(0,H.q)(e,window,"pointerdown",e=>{nw(e)&&(r=nS(),o={selection:!1,input:!1,scroll:!1},i=t(e))},{capture:!0}),(0,H.q)(e,window,"selectionchange",()=>{r&&nS()||(o.selection=!0)},{capture:!0}),(0,H.q)(e,window,"scroll",()=>{o.scroll=!0},{capture:!0,passive:!0}),(0,H.q)(e,window,"pointerup",e=>{if(nw(e)&&i){let t=o;n(i,e,()=>t),i=void 0}},{capture:!0}),(0,H.q)(e,window,"input",()=>{o.input=!0},{capture:!0})];return{stop:()=>{a.forEach(e=>e.stop())}}}(r,{onPointerDown:i=>(function(e,t,n,r,i){var o;let a=e.enablePrivacyForActionName?t3(r.target,e.defaultPrivacyLevel):tz.ALLOW;if(a===tz.HIDDEN)return;let s=function(e,t,n){let r=e.target.getBoundingClientRect(),i=nf(e.target,n.actionNameAttribute);i&&nE(e.timeStamp,i);let o=function(e,{enablePrivacyForActionName:t,actionNameAttribute:n},r){let i=ne(e,t7)||n&&ne(e,n);return i?{name:i,nameSource:"custom_attribute"}:r===tz.MASK?{name:"Masked Element",nameSource:"mask_placeholder"}:nr(e,n,nt,t)||nr(e,n,nn,t)||{name:"",nameSource:"blank"}}(e.target,n,t);return{type:M.CLICK,target:{width:Math.round(r.width),height:Math.round(r.height),selector:i},position:{x:Math.round(e.clientX-r.left),y:Math.round(e.clientY-r.top)},name:o.name,nameSource:o.nameSource}}(r,a,e),u=!1;return o=e=>{u=e.hadActivity},tW(tK(t,n,i,e),o,100),{clickActionBase:s,hadActivityOnPointerDown:()=>u}})(r,e,t,i,n),onPointerUp:({clickActionBase:i,hadActivityOnPointerDown:s},c,l)=>{!function(e,t,n,r,i,o,a,s,u,c,l){var d,f;let p=function e(t,n,r,i,o){let a,s=U(),u=(0,E.M8)(),c=n.add(s,u.relative),l=t$({lifeCycle:t,isChildEvent:e=>void 0!==e.action&&(Array.isArray(e.action.id)?e.action.id.includes(s):e.action.id===s)}),d=0,f=[],p=new g.c;function m(e){0===d&&(d=1,(a=e)?c.close((0,E.gs)(a)):c.remove(),l.stop(),p.notify())}return{event:o,stop:m,stopObservable:p,get hasError(){return l.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==a},getUserActivity:r,addFrustration:e=>{f.push(e)},startClocks:u,isStopped:()=>1===d||2===d,clone:()=>e(t,n,r,i,o),validate:e=>{if(m(),1!==d)return;let{resourceCount:n,errorCount:r,longTaskCount:c}=l.eventCounts,p={duration:a&&(0,E.vk)(u.timeStamp,a),startClocks:u,id:s,frustrationTypes:f,counts:{resourceCount:n,errorCount:r,longTaskCount:c},events:null!=e?e:[o],event:o,...i};t.notify(0,p),d=2},discard:()=>{m(),d=2}}}(t,i,c,s,u);a(p);let m=null==(d=null==s?void 0:s.target)?void 0:d.selector;m&&nE(u.timeStamp,m);let{stop:v}=(f=e=>{e.hadActivity&&e.end{p.stop(e.timeStamp)}),b=o.subscribe(()=>{p.stop()});p.stopObservable.subscribe(()=>{y.unsubscribe(),v(),b.unsubscribe()})}(r,e,t,n,o,a,u,i,c,l,s)}});return{stop:()=>{c(),a.notify(),s()},actionContexts:{findActionId:e=>o.findAll(e)}};function u(e){if(!i||!i.tryAppend(e)){let t=e.clone();i=function(e,t){let n,r=[],i=0;function o(e){e.stopObservable.subscribe(a),r.push(e),(0,ei.DJ)(n),n=(0,ei.wg)(s,nh)}function a(){1===i&&r.every(e=>e.isStopped())&&(i=2,t(r))}function s(){(0,ei.DJ)(n),0===i&&(i=1,a())}return o(e),{tryAppend:e=>{var t,n,a,u;return 0===i&&(!(r.length>0)||(t=r[r.length-1].event,n=e.event,t.target===n.target&&100>=(a=t,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2)))&&t.timeStamp-n.timeStamp<=nh)?(o(e),!0):(s(),!1))},stop:()=>{s()}}}(e,e=>{var n=e,r=t;let{isRage:i}=function(e,t){if(function(e){if(e.some(e=>e.getUserActivity().selection||e.getUserActivity().scroll))return!1;for(let t=0;te.getUserActivity().selection);return e.forEach(e=>{e.hasError&&e.addFrustration($.ERROR_CLICK),n_(e)&&!n&&e.addFrustration($.DEAD_CLICK)}),{isRage:!1}}(n,r);i?(n.forEach(e=>e.discard()),r.stop((0,E.nx)()),r.validate(n.map(e=>e.event))):(r.discard(),n.forEach(e=>e.validate()))})}}function c(){i&&i.stop()}}(e,i,o,n)),{addAction:t=>{e.notify(12,nx(t))},actionContexts:s,stop:u}),l={addEvent:(t,n,r,i)=>{rC.includes(n.type)&&e.notify(12,{startTime:t,rawRumEvent:n,domainContext:r,duration:i})}},d=function(e,t){let n,r=requestAnimationFrame((0,h.dm)(()=>{n=n7()})),i=n6(t).subscribe(e=>{n=e}).unsubscribe;return e.register(0,({eventType:e})=>({type:e,display:n?{viewport:n}:void 0})),{stop:()=>{i(),r&&cancelAnimationFrame(r)}}}(t,n),f=function(e,t,n=function(e,t){let n=window.cookieStore?function(e){return(t,n)=>(0,H.q)(e,window.cookieStore,"change",e=>{let r=e.changed.find(e=>e.name===t)||e.deleted.find(e=>e.name===t);r&&n(r.value)}).stop}(e):rg;return new g.c(e=>n(t,t=>e.notify(t)))}(e,rv)){var r;let i=ef(rv)||(null==(r=window.Cypress)?void 0:r.env("traceId")),o=n.subscribe(e=>{i=e});return t.register(0,({eventType:e})=>"string"!=typeof i?ee.$O:{type:e,session:{type:"ci_test"},ci_test:{test_execution_id:i}}),{stop:()=>{o.unsubscribe()}}}(n,t);t.register(0,({eventType:e})=>ev()?{type:e,session:{type:"synthetics"},synthetics:{test_id:em(),result_id:eg(),injected:ep()}}:ee.$O),p={[O.VIEW]:{"view.performance.lcp.resource_url":"string",...rS,...rh,...rw},[O.ERROR]:{"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string",...rS,...rh,...rw},[O.RESOURCE]:{"resource.url":"string",...(0,ec.sr)(ec.R9.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},...rS,...rh,...rw},[O.ACTION]:{"action.target.name":"string",...rS,...rh,...rw},[O.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...rS,...rh},[O.VITAL]:{...rS,...rh}};let m={[O.ERROR]:ry(O.ERROR,n.eventRateLimiterThreshold,a),[O.ACTION]:ry(O.ACTION,n.eventRateLimiterThreshold,a),[O.VITAL]:ry(O.VITAL,n.eventRateLimiterThreshold,a)};return e.subscribe(12,({startTime:r,duration:i,rawRumEvent:o,domainContext:a,customerContext:s})=>{let u=t.triggerHook(0,{eventType:o.type,startTime:r,duration:i});if(u===ee.ug)return;let c=(0,_.kg)(u,{context:s},o);(function(e,t,n,r){var i;if(t){let r=function(e,t,n){let r=(0,_.Go)(e),i=n(r);return(0,ew.WP)(t).forEach(([t,n])=>(function e(t,n,r,i){let[o,...a]=r;if("[]"===o){Array.isArray(t)&&Array.isArray(n)&&t.forEach((t,r)=>e(t,n[r],a,i));return}if(rb(t)&&rb(n)){if(a.length>0)return e(t[o],n[o],a,i);var s=t,u=o,c=n[o],l=i;let r=(0,J.P)(c);r===l?s[u]=(0,C.a)(c):"object"===l&&("undefined"===r||"null"===r)&&(s[u]={})}})(e,r,t.split(/\.|(?=\[\])/),n)),i}(e,p[e.type],e=>t(e,n));if(!1===r&&e.type!==O.VIEW)return!1;!1===r&&k.Vy.warn("Can't dismiss view events using beforeSend!")}return!(null==(i=r[e.type])?void 0:i.isLimitReached())})(c,n.beforeSend,a,m)&&((0,W.RI)(c.context)&&delete c.context,e.notify(13,c))}),{pageStateHistory:r,addAction:c.addAction,addEvent:l.addEvent,actionContexts:c.actionContexts,stop:()=>{c.stop(),f.stop(),d.stop(),r.stop()}}}(I,P,e,ey,Y,el,V);R.push(eB),K.setContextProvider("action.id",()=>eD.findActionId());let{addTiming:eH,startView:eW,setViewName:eK,setViewContext:eZ,setViewContextProperty:eJ,getViewContext:ez,stop:eY}=(y=location,I.subscribe(4,n=>I.notify(12,function(e,t,n){var r,i,o,a,s,u,c,l,d,f,p,m,g,v,y,b,h,S;let w=n.getReplayStats(e.id),_=null==(i=null==(r=e.commonViewMetrics)?void 0:r.cumulativeLayoutShift)?void 0:i.devicePixelRatio,T={_dd:{document_version:e.documentVersion,replay_stats:w,cls:_?{device_pixel_ratio:_}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:O.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:null==(o=e.commonViewMetrics.cumulativeLayoutShift)?void 0:o.value,cumulative_layout_shift_time:(0,E.Zj)(null==(a=e.commonViewMetrics.cumulativeLayoutShift)?void 0:a.time),cumulative_layout_shift_target_selector:null==(s=e.commonViewMetrics.cumulativeLayoutShift)?void 0:s.targetSelector,first_byte:(0,E.Zj)(null==(u=e.initialViewMetrics.navigationTimings)?void 0:u.firstByte),dom_complete:(0,E.Zj)(null==(c=e.initialViewMetrics.navigationTimings)?void 0:c.domComplete),dom_content_loaded:(0,E.Zj)(null==(l=e.initialViewMetrics.navigationTimings)?void 0:l.domContentLoaded),dom_interactive:(0,E.Zj)(null==(d=e.initialViewMetrics.navigationTimings)?void 0:d.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:(0,E.Zj)(e.initialViewMetrics.firstContentfulPaint),first_input_delay:(0,E.Zj)(null==(f=e.initialViewMetrics.firstInput)?void 0:f.delay),first_input_time:(0,E.Zj)(null==(p=e.initialViewMetrics.firstInput)?void 0:p.time),first_input_target_selector:null==(m=e.initialViewMetrics.firstInput)?void 0:m.targetSelector,interaction_to_next_paint:(0,E.Zj)(null==(g=e.commonViewMetrics.interactionToNextPaint)?void 0:g.value),interaction_to_next_paint_time:(0,E.Zj)(null==(v=e.commonViewMetrics.interactionToNextPaint)?void 0:v.time),interaction_to_next_paint_target_selector:null==(y=e.commonViewMetrics.interactionToNextPaint)?void 0:y.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:(0,E.Zj)(null==(b=e.initialViewMetrics.largestContentfulPaint)?void 0:b.value),largest_contentful_paint_target_selector:null==(h=e.initialViewMetrics.largestContentfulPaint)?void 0:h.targetSelector,load_event:(0,E.Zj)(null==(S=e.initialViewMetrics.navigationTimings)?void 0:S.loadEvent),loading_time:tM((0,E.Zj)(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:n,firstInput:r,largestContentfulPaint:i}){return{cls:e&&{score:e.value,timestamp:(0,E.Zj)(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:n&&{timestamp:(0,E.Zj)(n)},fid:r&&{duration:(0,E.Zj)(r.delay),timestamp:(0,E.Zj)(r.time),target_selector:r.targetSelector},inp:t&&{duration:(0,E.Zj)(t.value),timestamp:(0,E.Zj)(t.time),target_selector:t.targetSelector},lcp:i&&{timestamp:(0,E.Zj)(i.value),target_selector:i.targetSelector,resource_url:i.resourceUrl}}}(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:(0,E.Zj)(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,E.Zj)(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:t.defaultPrivacyLevel}};return(0,W.RI)(e.customTimings)||(T.view.custom_timings=(0,W.LG)(e.customTimings,E.Zj)),{rawRumEvent:T,startTime:e.startClocks.relative,duration:e.duration,domainContext:{location:e.location}}}(n,e,t))),P.register(0,({startTime:e,eventType:t})=>{let n=eC.findView(e);return n?{type:t,service:n.service,version:n.version,context:n.context,view:{id:n.id,name:n.name}}:ee.ug}),function(e,t,n,r,i,o,a,s){let u,l,d=new Set,f=p(L.INITIAL_LOAD,(0,E.Oc)(),s);function p(o,a,s){let u=function(e,t,n,r,i,o,a=(0,E.M8)(),s){var u;let l,d=U(),f=new g.c,p={},v=0,y=(0,W.yG)(i),b=X(),S=!0,w=null==s?void 0:s.name,_=(null==s?void 0:s.service)||r.service,T=(null==s?void 0:s.version)||r.version,C=null==s?void 0:s.context;C&&b.setContext(C);let A={id:d,name:w,startClocks:a,service:_,version:T,context:C};e.notify(1,A),e.notify(2,A);let{throttled:x,cancel:R}=(0,eo.n)(K,3e3,{leading:!1}),{setLoadEvent:I,setViewEnd:O,stop:N,stopINPTracking:M,getCommonViewMetrics:$}=function(e,t,n,r,i,o,a){let s={},{stop:u,setLoadEvent:l}=function(e,t,n,r,i,o,a){var s;let u=i===L.INITIAL_LOAD,c=!0,l=[],d=nz(r,o);function f(){if(!c&&!u&&l.length>0){let e=Math.max(...l);e{c&&(c=!1,e.hadActivity&&l.push((0,E.vk)(o.timeStamp,e.end)),f())},tW(tK(e,t,n,r),s,void 0));return{stop:()=>{p(),d.stop()},setLoadEvent:e=>{u&&(u=!1,l.push(e),f())}}}(e,t,n,r,o,a,e=>{s.loadingTime=e,i()}),{stop:d}=function(e,t,n,r=function(e,t=re){return new g.c(n=>{if(window.ResizeObserver){let r=(0,eo.n)(function(){n.notify(function(){let e=n5(),{height:t}=n7();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(t+e),scrollTop:e}}())},t,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver((0,h.dm)(r.throttled));i&&o.observe(i);let a=(0,H.q)(e,window,"scroll",r.throttled,{passive:!0});return()=>{r.cancel(),o.disconnect(),a.stop()}}})}(e)){let i=0,o=0,a=0,s=r.subscribe(({scrollDepth:e,scrollTop:r,scrollHeight:s})=>{let u=!1;if(e>i&&(i=e,u=!0),s>o){o=s;let e=(0,E.$S)();a=(0,E.vk)(t.relative,e),u=!0}u&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:r,maxScrollHeight:o,maxScrollHeightTime:a})});return{stop:()=>s.unsubscribe()}}(r,a,e=>{s.scroll=e}),{stop:f}=function(e,t,n){let r,i,o,a,s;if(!(tU(m.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:eo.l};let u=0;n({value:0});let c=(a=0,s=0,{update:e=>{let t;return void 0===i||e.startTime-o>=n0||e.startTime-i>=nQ?(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}}}),l=tP(e,{type:m.LAYOUT_SHIFT,buffered:!0}).subscribe(i=>{var o;for(let a of i){if(a.hadRecentInput||a.startTimeu){u=i;let t=null==(o=null==r?void 0:r.target)?void 0:o.deref();n({value:(0,eb.LI)(u,4),targetSelector:t&&nf(t,e.actionNameAttribute),time:null==r?void 0:r.time,previousRect:(null==r?void 0:r.previousRect)?nX(r.previousRect):void 0,currentRect:(null==r?void 0:r.currentRect)?nX(r.currentRect):void 0,devicePixelRatio:null==r?void 0:r.devicePixelRatio})}}});return{stop:()=>{l.unsubscribe()}}}(r,a.relative,e=>{s.cumulativeLayoutShift=e,i()}),{stop:p,getInteractionToNextPaint:v,setViewEnd:y}=function(e,t,n){let r,i;if(!(tU(m.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>void 0,setViewEnd:eo.l,stop:eo.l};let{getViewInteractionCount:o,stopViewInteractionCount:a}=function(e){"interactionCount"in performance||c||(c=new window.PerformanceObserver((0,h.dm)(e=>{e.getEntries().forEach(e=>{e.interactionId&&(n3=Math.min(n3,e.interactionId),n1=((n4=Math.max(n4,e.interactionId))-n3)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0});let t=e===L.INITIAL_LOAD?0:n2(),n={stopped:!1};return{getViewInteractionCount:()=>n.stopped?n.interactionCount:n2()-t,stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:n2()-t}}}}(n),s=1/0,u=function(e){let t=[];function n(){t.sort((e,t)=>t.duration-e.duration).splice(10)}return{process(e){let r=t.findIndex(t=>e.interactionId===t.interactionId),i=t[t.length-1];-1!==r?e.duration>t[r].duration&&(t[r]=e,n()):(t.length<10||e.duration>i.duration)&&(t.push(e),n())},estimateP98Interaction(){let n=Math.min(t.length-1,Math.floor(e()/50));return t[n]}}}(o),l=-1;function d(n){for(let e of n)e.interactionId&&e.startTime>=t&&e.startTime<=s&&u.process(e);let o=u.estimateP98Interaction();o&&o.duration!==l&&(l=o.duration,i=(0,E.vk)(t,o.startTime),!(r=function(e){let t=nC.get(e);return nC.delete(e),t}(o.startTime))&&o.target&&tD(o.target)&&(r=nf(o.target,e.actionNameAttribute)))}let f=tP(e,{type:m.FIRST_INPUT,buffered:!0}).subscribe(d),p=tP(e,{type:m.EVENT,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:()=>l>=0?{value:Math.min(l,n9),targetSelector:r,time:i}:o()?{value:0}:void 0,setViewEnd:e=>{s=e,a()},stop:()=>{p.unsubscribe(),f.unsubscribe()}}}(r,a.relative,o);return{stop:()=>{u(),f(),d()},stopINPTracking:p,setLoadEvent:l,setViewEnd:y,getCommonViewMetrics:()=>(s.interactionToNextPaint=v(),s)}}(e,t,n,r,G,o,a),{stop:P,initialViewMetrics:V}=o===L.INITIAL_LOAD?function(e,t,n,r){var i;let o={},{stop:a}=function(e,t,n=nH){let r;var i=e,o=()=>{var e;let r=n();r.loadEventEnd<=0||t({domComplete:(e=r).domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=(0,E.$S)()?e.responseStart:void 0})};let{stop:a}=(0,nF.H)(i,"complete",()=>{r=(0,ei.wg)(()=>o())});return{stop:()=>{a(),(0,ei.DJ)(r)}}}(e,e=>{n(e.loadEvent),o.navigationTimings=e,r()}),s=nz(e,t),{stop:u}=(i=e=>{o.firstContentfulPaint=e,r()},{stop:tP(e,{type:m.PAINT,buffered:!0}).subscribe(e=>{let t=e.find(e=>"first-contentful-paint"===e.name&&e.startTime{i=e.timeStamp},{capture:!0,once:!0}),a=0,s=tP(e,{type:m.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(n=>{let o=(0,ew.Uk)(n,e=>e.entryType===m.LARGEST_CONTENTFUL_PAINT&&e.startTimea);if(o){var s;let t;o.element&&(t=nf(o.element,e.actionNameAttribute)),r({value:o.startTime,targetSelector:t,resourceUrl:""===(s=o).url?void 0:s.url}),a=o.size}});return{stop:()=>{o(),s.unsubscribe()}}}(e,s,window,e=>{o.largestContentfulPaint=e,r()}),{stop:l}=function(e,t,n){let r=tP(e,{type:m.FIRST_INPUT,buffered:!0}).subscribe(r=>{let i=r.find(e=>e.startTime=0?r:0,time:i.startTime,targetSelector:t})}});return{stop:()=>{r.unsubscribe()}}}(e,s,e=>{o.firstInput=e,r()});return{stop:function(){a(),u(),c(),l(),s.stop()},initialViewMetrics:o}}(r,a,I,G):{stop:eo.l,initialViewMetrics:{}};o===L.BF_CACHE&&(u=a.relative,requestAnimationFrame(()=>{requestAnimationFrame(()=>{(e=>{V.firstContentfulPaint=e,V.largestContentfulPaint={value:e},G()})((0,E.vk)(u,(0,E.$S)()))})}));let{stop:D,eventCounts:j}=function(e,t,n){let{stop:r,eventCounts:i}=t$({lifeCycle:e,isChildEvent:e=>e.view.id===t,onChange:n});return{stop:r,eventCounts:i}}(e,d,G),F=(0,ei.yb)(K,rt),q=e.subscribe(11,e=>{e.reason===ti.y5.UNLOADING&&K()});function B(){e.notify(3,{id:d,name:w,context:b.getContext(),startClocks:a,sessionIsActive:S})}function G(){B(),x()}function K(){R(),B(),v+=1;let t=void 0===l?(0,E.nx)():l.timeStamp;e.notify(4,{customTimings:p,documentVersion:v,id:d,name:w,service:_,version:T,context:b.getContext(),loadingType:o,location:y,startClocks:a,commonViewMetrics:$(),initialViewMetrics:V,duration:(0,E.vk)(a.timeStamp,t),isActive:void 0===l,sessionIsActive:S,eventCounts:j})}return K(),b.changeObservable.subscribe(G),{get name(){return w},service:_,version:T,contextManager:b,stopObservable:f,end(t={}){var n,r;l||(l=null!=(n=t.endClocks)?n:(0,E.M8)(),S=null==(r=t.sessionIsActive)||r,e.notify(5,{endClocks:l}),e.notify(6,{endClocks:l}),(0,ei.vG)(F),O(l.relative),N(),q.unsubscribe(),K(),(0,ei.wg)(()=>{this.stop()},rn))},stop(){P(),D(),M(),f.notify()},addTiming(e,t){if(l)return;let n=(0,E.pu)(t)?t:(0,E.vk)(a.timeStamp,t);p[function(e){let t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&k.Vy.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}(e)]=n,G()},setViewName(e){w=e,K()}}}(t,n,r,i,e,o,a,s);return d.add(u),u.stopObservable.subscribe(()=>{d.delete(u)}),u}return t.subscribe(10,()=>{f=p(L.ROUTE_CHANGE,void 0,{name:f.name,service:f.service,version:f.version,context:f.contextManager.getContext()})}),t.subscribe(9,()=>{f.end({sessionIsActive:!1})}),a&&(l=o.subscribe(({oldLocation:e,newLocation:t})=>{var n,r;n=e,r=t,(n.pathname!==r.pathname||!function(e){let t=e.substring(1);return""!==t&&!!document.getElementById(t)}(r.hash)&&rr(r.hash)!==rr(n.hash))&&(f.end(),f=p(L.ROUTE_CHANGE))}),i.trackBfcacheViews&&(u=function(e,t){let{stop:n}=(0,H.q)(e,window,"pageshow",e=>{e.persisted&&t(e)},{capture:!0});return n}(i,e=>{f.end();let t=(0,E.FR)(e.timeStamp);f=p(L.BF_CACHE,t,void 0)}))),{addTiming:(e,t=(0,E.nx)())=>{f.addTiming(e,t)},startView:(e,t)=>{f.end({endClocks:t}),f=p(L.ROUTE_CHANGE,t,e)},setViewContext:e=>{f.contextManager.setContext(e)},setViewContextProperty:(e,t)=>{f.contextManager.setContextProperty(e,t)},setViewName:e=>{f.setViewName(e)},getViewContext:()=>f.contextManager.getContext(),stop:()=>{l&&l.unsubscribe(),u&&u(),f.end(),d.forEach(e=>e.stop())}}}(y,I,Y,el,e,es,!e.trackViewsManually,r));R.push(eY);let{stop:eX}=function(e,t,n,r=function(){let e=[];function t(t){let r;if(t.didTimeout){let e=performance.now();r=()=>30-(performance.now()-e)}else r=t.timeRemaining.bind(t);for(;r()>0&&e.length;)e.shift()();e.length&&n()}function n(){(0,nU.BB)(t,{timeout:nV})}return{push(t){1===e.push(t)&&n()}}}(),i=function(e,t,n=nH){(0,nF.H)(e,"interactive",()=>{let e=n(),r=Object.assign(e.toJSON(),{entryType:m.RESOURCE,initiatorType:tS,duration:e.responseEnd,traceId:function(e){let t=function(e){let t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return nB(t&&t.content,n&&n.content)}(e)||function(e){let t=function(e){for(let t=0;t=0;t-=1){let n=e.body.childNodes[t],r=nG(n);if(r)return r;if(!tV(n))break}}(e);if(t)return nB(D(t,"trace-id"),D(t,"trace-time"))}(e);if(!(!t||t.traceTime<=(0,E.x3)()-nq))return t.traceId}(document),toJSON:()=>({...r,toJSON:void 0})});t(r)})}){e.subscribe(8,e=>{a(()=>(function(e,t,n){var r,i,o;let a=function(e){if(!performance||!("getEntriesByName"in performance))return;let t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;let n=t.filter(e=>!nD.has(e)).filter(e=>tC(e)&&tE(e)).filter(t=>{var n,r,i;return n=t,r=e.startClocks.relative,i=nj({startTime:e.startClocks.relative,duration:e.duration}),n.startTime>=r-1&&nj(n)<=(0,E.Gw)(i,1)});if(1===n.length)return nD.add(n[0]),n[0].toJSON()}(e),s=a?(0,E.FR)(a.startTime):e.startClocks,u=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}}}(e,t);if(!t.trackResources&&!u)return;let c=e.type===tb.XHR?ty.XHR:ty.FETCH,l=a?nK(a):void 0,d=a?tT(a):(r=n,i=s,o=e.duration,r.wasInPageStateDuringPeriod("frozen",i.relative,o)?void 0:o),f=(0,_.kg)({date:s.timeStamp,resource:{id:U(),type:c,duration:(0,E.Zj)(d),method:e.method,status_code:e.status,protocol:a&&tx(a),url:tO(e.url),delivery_type:a&&tR(a)},type:O.RESOURCE,_dd:{discarded:!t.trackResources}},u,l);return{startTime:s.relative,duration:d,rawRumEvent:f,domainContext:{performanceEntry:a,xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error,isAborted:e.isAborted,handlingStack:e.handlingStack}}})(e,t,n))});let o=tP(t,{type:m.RESOURCE,buffered:!0}).subscribe(e=>{for(let n of e)"xmlhttprequest"!==n.initiatorType&&"fetch"!==n.initiatorType&&a(()=>nW(n,t))});function a(t){r.push(()=>{let n=t();n&&e.notify(12,n)})}return i(t,e=>{a(()=>nW(e,t))}),{stop:()=>{o.unsubscribe()}}}(I,e,ey);if(R.push(eX),e.trackLongTasks)if(tU(m.LONG_ANIMATION_FRAME)){let{stop:t}=function(e,t){let n=tP(t,{type:m.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(t=>{for(let n of t){let t=(0,E.FR)(n.startTime),r={date:t.timeStamp,long_task:{id:U(),entry_type:N.LONG_ANIMATION_FRAME,duration:(0,E.Zj)(n.duration),blocking_duration:(0,E.Zj)(n.blockingDuration),first_ui_event_timestamp:(0,E.Zj)(n.firstUIEventTimestamp),render_start:(0,E.Zj)(n.renderStart),style_and_layout_start:(0,E.Zj)(n.styleAndLayoutStart),start_time:(0,E.Zj)(n.startTime),scripts:n.scripts.map(e=>({duration:(0,E.Zj)(e.duration),pause_duration:(0,E.Zj)(e.pauseDuration),forced_style_and_layout_duration:(0,E.Zj)(e.forcedStyleAndLayoutDuration),start_time:(0,E.Zj)(e.startTime),execution_start:(0,E.Zj)(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}))},type:O.LONG_TASK,_dd:{discarded:!1}};e.notify(12,{rawRumEvent:r,startTime:t.relative,duration:n.duration,domainContext:{performanceEntry:n}})}});return{stop:()=>n.unsubscribe()}}(I,e);R.push(t)}else{w=I,tP(A=e,{type:m.LONG_TASK,buffered:!0}).subscribe(e=>{for(let t of e){if(t.entryType!==m.LONG_TASK||!A.trackLongTasks)break;let e=(0,E.FR)(t.startTime),n={date:e.timeStamp,long_task:{id:U(),entry_type:N.LONG_TASK,duration:(0,E.Zj)(t.duration)},type:O.LONG_TASK,_dd:{discarded:!1}};w.notify(12,{rawRumEvent:n,startTime:e.relative,duration:t.duration,domainContext:{performanceEntry:t}})}})}let{addError:eQ}=function(e,t){var n,r,i,o;let a=new g.c;return n=a,(function(e){let t=e.map(e=>{var t;return nL[e]||(nL[e]=(t=e,new g.c(e=>{let n=k.JZ[t];return k.JZ[t]=(...r)=>{n.apply(console,r);let i=(0,T.uC)("console error");(0,h.um)(()=>{e.notify(function(e,t,n){let r=e.map(e=>{var t;return"string"==typeof(t=e)?(0,C.a)(t):(0,nI.bJ)(t)?(0,T.NR)((0,nk.T)(t)):(0,nN.s)((0,C.a)(t),void 0,2)}).join(" ");if(t===k.bP.error){let i=e.find(nI.bJ),o=(0,nI.As)({originalError:i,handlingStack:n,startClocks:(0,E.M8)(),source:nO.g.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=r,{api:t,message:r,handlingStack:n,error:o}}return{api:t,message:r,error:void 0,handlingStack:n}}(r,t,i))})},()=>{k.JZ[t]=n}}))),nL[e]});return(0,g.F)(...t)})([k.bP.error]).subscribe(e=>n.notify(e.error)),!function(e){var t,n;let r=(t,n)=>{let r=(0,nI.As)({stackTrace:n,originalError:t,startClocks:(0,E.M8)(),nonErrorPrefix:"Uncaught",source:nO.g.SOURCE,handling:"unhandled"});e.notify(r)},{stop:i}=(t=r,(0,ea.H)(window,"onerror",({parameters:[e,n,r,i,o]})=>{let a;(0,nI.bJ)(o)||(a=(0,nk.h)(e,n,r,i)),t(null!=o?o:e,a)})),{stop:o}=(n=r,(0,ea.H)(window,"onunhandledrejection",({parameters:[e]})=>{n(e.reason||"Empty reason")}))}(a),r=t,i=a,(function(e,t){var n,r;let i=[];t.includes(nM.cspViolation)&&i.push((n=e,new g.c(e=>{let{stop:t}=(0,H.q)(n,document,"securitypolicyviolation",t=>{e.notify(function(e){let t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return n$({type:e.effectiveDirective,message:`${nM.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:nP(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${j(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(t))});return t})));let o=t.filter(e=>e!==nM.cspViolation);return o.length&&i.push((r=o,new g.c(e=>{if(!window.ReportingObserver)return;let t=(0,h.dm)((t,n)=>t.forEach(t=>e.notify(function(e){let{type:t,body:n}=e;return n$({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:nP(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}(t)))),n=new window.ReportingObserver(t,{types:r,buffered:!0});return n.observe(),()=>{n.disconnect()}}))),(0,g.F)(...i)})(r,[nM.cspViolation,nM.intervention]).subscribe(e=>i.notify(e)),a.subscribe(t=>e.notify(14,{error:t})),(o=e).subscribe(14,({error:e,customerContext:t})=>{t=(0,_.kg)(e.context,t),o.notify(12,{customerContext:t,...function(e){let t={date:e.startClocks.timeStamp,error:{id:U(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:O.ERROR},n={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startTime:e.startClocks.relative,domainContext:n}}(e)})}),{addError:({error:e,handlingStack:t,componentStack:n,startClocks:r,context:i})=>{let a=(0,nI.As)({originalError:e,handlingStack:t,componentStack:n,startClocks:r,nonErrorPrefix:"Provided",source:nO.g.CUSTOM,handling:"handled"});o.notify(14,{customerContext:i,error:a})}}}(I,e);!function(e,t,n,r,i){var o,a;let u={clearTracingIfNeeded:e5,traceFetch:e=>e6(t,e,n,r,i,t=>{var n;if(e.input instanceof Request&&!(null==(n=e.init)?void 0:n.headers))e.input=new Request(e.input),Object.keys(t).forEach(n=>{e.input.headers.append(n,t[n])});else{e.init=(0,W.yG)(e.init);let n=[];e.init.headers instanceof Headers?e.init.headers.forEach((e,t)=>{n.push([t,e])}):Array.isArray(e.init.headers)?e.init.headers.forEach(e=>{n.push(e)}):e.init.headers&&Object.keys(e.init.headers).forEach(t=>{n.push([t,e.init.headers[t]])}),e.init.headers=n.concat((0,ew.WP)(t))}}),traceXhr:(e,o)=>e6(t,e,n,r,i,e=>{Object.keys(e).forEach(t=>{o.setRequestHeader(t,e[t])})})};(function(e,t,n){var r;(!s&&(r=t,s=new g.c(e=>{let{stop:t}=(0,ea.H)(XMLHttpRequest.prototype,"open",tg),{stop:n}=(0,ea.H)(XMLHttpRequest.prototype,"send",t=>{!function({target:e,handlingStack:t},n,r){let i=tm.get(e);if(!i)return;i.state="start",i.startClocks=(0,E.M8)(),i.isAborted=!1,i.xhr=e,i.handlingStack=t;let o=!1,{stop:a}=(0,ea.H)(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&s()}),s=()=>{u(),a(),o||(o=!0,i.state="complete",i.duration=(0,E.vk)(i.startClocks.timeStamp,(0,E.nx)()),i.status=e.status,r.notify((0,W.yG)(i)))},{stop:u}=(0,H.q)(n,e,"loadend",s);r.notify(i)}(t,r,e)},{computeHandlingStack:!0}),{stop:i}=(0,ea.H)(XMLHttpRequest.prototype,"abort",tv);return()=>{t(),n(),i()}})),s).subscribe(t=>{if(tk(t.url))switch(t.state){case"start":n.traceXhr(t,t.xhr),t.requestIndex=tL(),e.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"complete":n.clearTracingIfNeeded(t),e.notify(8,{duration:t.duration,method:t.method,requestIndex:t.requestIndex,spanId:t.spanId,startClocks:t.startClocks,status:t.status,traceId:t.traceId,traceSampled:t.traceSampled,type:tb.XHR,url:t.url,xhr:t.xhr,isAborted:t.isAborted,handlingStack:t.handlingStack})}})})(e,t,u),o=e,a=u,eu().subscribe(e=>{if(tk(e.url))switch(e.state){case"start":a.traceFetch(e),e.requestIndex=tL(),o.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":var t=e,n=t=>{a.clearTracingIfNeeded(e),o.notify(8,{duration:t,method:e.method,requestIndex:e.requestIndex,responseType:e.responseType,spanId:e.spanId,startClocks:e.startClocks,status:e.status,traceId:e.traceId,traceSampled:e.traceSampled,type:tb.FETCH,url:e.url,response:e.response,init:e.init,input:e.input,isAborted:e.isAborted,handlingStack:e.handlingStack})};let r=t.response&&(0,th.i)(t.response);r&&r.body?function(e,t,n){let r=e.getReader(),i=[],o=0;function a(){let e,a;if(r.cancel().catch(eo.l),n.collectStreamBody){let t;if(1===i.length)t=i[0];else{t=new Uint8Array(o);let e=0;i.forEach(n=>{t.set(n,e),e+=n.length})}e=t.slice(0,n.bytesLimit),a=t.length>n.bytesLimit}t(void 0,e,a)}!function e(){r.read().then((0,h.dm)(t=>{if(t.done)return void a();n.collectStreamBody&&i.push(t.value),(o+=t.value.length)>n.bytesLimit?a():e()}),(0,h.dm)(e=>t(e)))}()}(r.body,()=>{n((0,E.vk)(t.startClocks.timeStamp,(0,E.nx)()))},{bytesLimit:1/0,collectStreamBody:!1}):n((0,E.vk)(t.startClocks.timeStamp,(0,E.nx)()))}})}(I,e,z,eL,eP);let e0=function(e,t,n){function r(n){t.wasInPageStateDuringPeriod("frozen",n.startClocks.relative,n.duration)||e.notify(12,function(e,t){let n={date:e.startClocks.timeStamp,vital:{id:U(),type:e.type,name:e.name,duration:(0,E.Zj)(e.duration),description:e.description},type:O.VITAL};return t&&(n._dd={vital:{computed_value:!0}}),{rawRumEvent:n,startTime:e.startClocks.relative,duration:e.duration,customerContext:e.context,domainContext:{}}}(n,!0))}return{addDurationVital:r,startDurationVital:(e,t={})=>F(n,e,t),stopDurationVital:(e,t={})=>{q(r,n,e,t)}}}(I,ey,a),e1=(b=e.applicationId,{get:e=>{let t=eC.findView(e),n=eA.findUrl(e),r=z.findTrackedSession(e);if(r&&t&&n){let i=eD.findActionId(e);return{application_id:b,session_id:r.id,user_action:i?{id:i}:void 0,view:{id:t.id,name:t.name,referrer:n.referrer,url:n.url}}}}});return R.push(()=>n.stop()),{addAction:ej,addEvent:eq,addError:eQ,addTiming:eH,addFeatureFlagEvaluation:eO.addFeatureFlagEvaluation,startView:eW,setViewContext:eZ,setViewContextProperty:eJ,getViewContext:ez,setViewName:eK,lifeCycle:I,viewHistory:eC,session:z,stopSession:()=>z.expire(),getInternalContext:e1.get,startDurationVital:e0.startDurationVital,stopDurationVital:e0.stopDurationVital,addDurationVital:e0.addDurationVital,globalContext:eN,userContext:eL,accountContext:eP,stop:()=>{R.forEach(e=>e())},hooks:P}}function rA(e,{session:t,viewContext:n,errorType:r}){let i=t?t.id:"no-session-id",o=[];void 0!==r&&o.push(`error-type=${r}`),n&&(o.push(`seed=${n.id}`),o.push(`from=${n.startClocks.timeStamp}`));let a=function(e){let t=e.site,n=e.subdomain||function(e){switch(e.site){case eJ.NW:case eJ.dV:return"app";case eJ.Bb:return"dd";default:return}}(e);return`https://${n?`${n}.`:""}${t}`}(e),s=`/rum/replay/sessions/${i}`;return`${a}${s}?${o.join("&")}`}},18479:(e,t,n)=>{n.d(t,{H:()=>s,t:()=>u});var r=n(34280),i=n(14391),o=n(94950),a=n(88170);function s(e,t,n,{computeHandlingStack:r}={}){let u=e[t];if("function"!=typeof u)if(!(t in e&&t.startsWith("on")))return{stop:o.l};else u=o.l;let c=!1,l=function(){let e;if(c)return u.apply(this,arguments);let t=Array.from(arguments);(0,i.um)(n,null,[{target:this,parameters:t,onPostCall:t=>{e=t},handlingStack:r?(0,a.uC)("instrumented method"):void 0}]);let o=u.apply(this,t);return e&&(0,i.um)(e,null,[o]),o};return e[t]=l,{stop:()=>{c=!0,e[t]===l&&(e[t]=u)}}}function u(e,t,n){let i=Object.getOwnPropertyDescriptor(e,t);if(!i||!i.set||!i.configurable)return{stop:o.l};let a=o.l,s=(e,t)=>{(0,r.wg)(()=>{s!==a&&n(e,t)},0)},u=function(e){i.set.call(this,e),s(this,e)};return Object.defineProperty(e,t,{set:u}),{stop:()=>{var n;(null==(n=Object.getOwnPropertyDescriptor(e,t))?void 0:n.set)===u&&Object.defineProperty(e,t,i),s=a}}}},19308:(e,t,n)=>{n.d(t,{$A:()=>u,Bb:()=>r,Ih:()=>c,NW:()=>o,R8:()=>s,TC:()=>i,dV:()=>a});let r="datad0g.com",i="dd0g-gov.com",o="datadoghq.com",a="datadoghq.eu",s="ddog-gov.com",u="pci.browser-intake-datadoghq.com",c=["ddsource","ddtags"]},21571:(e,t,n)=>{n.d(t,{Kp:()=>u,_T:()=>s,y5:()=>a});var r=n(62466),i=n(74475),o=n(93439);let a={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function s(e){return new r.c(t=>{let{stop:n}=(0,o.l)(e,window,["visibilitychange","freeze"],e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:a.HIDDEN}):"freeze"===e.type&&t.notify({reason:a.FROZEN})},{capture:!0}),r=(0,o.q)(e,window,"beforeunload",()=>{t.notify({reason:a.UNLOADING})}).stop;return()=>{n(),r()}})}function u(e){return(0,i.KQ)(a).includes(e)}},24743:(e,t,n)=>{n.d(t,{As:()=>u,bJ:()=>c,e6:()=>s});var r=n(58970),i=n(73408),o=n(39069),a=n(88170);let s="No stack, consider using an instance of Error";function u({stackTrace:e,originalError:t,handlingStack:n,componentStack:u,startClocks:l,nonErrorPrefix:d,useFallbackStack:f=!0,source:p,handling:m}){var g,v,y,b,h;let S=c(t);return!e&&S&&(e=(0,o.T)(t)),{startClocks:l,source:p,handling:m,handlingStack:n,componentStack:u,originalError:t,type:e?e.name:void 0,message:(g=e,v=S,y=d,b=t,(null==g?void 0:g.message)&&(null==g?void 0:g.name)?g.message:v?"Empty message":`${y} ${(0,i.s)((0,r.a)(b))}`),stack:e?(0,a.Yn)(e):f?s:void 0,causes:S?function(e,t){let n=e,r=[];for(;c(null==n?void 0:n.cause)&&r.length<10;){let e=(0,o.T)(n.cause);r.push({message:n.cause.message,source:t,type:null==e?void 0:e.name,stack:e&&(0,a.Yn)(e)}),n=n.cause}return r.length?r:void 0}(t,p):void 0,fingerprint:c(h=t)&&"dd_fingerprint"in h?String(h.dd_fingerprint):void 0,context:function(e){if(null!==e&&"object"==typeof e&&"dd_context"in e)return e.dd_context}(t)}}function c(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}},25235:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(54995),i=n(74475),o=n(21571),a=n(73408),s=n(73504);function u({encoder:e,request:t,flushController:n,messageBytesLimit:u}){let l={},d=n.flushObservable.subscribe(n=>(function(n){let r=(0,i.KQ)(l).join("\n");l={};let a=(0,o.Kp)(n.reason),u=a?t.sendOnExit:t.send;if(a&&e.isAsync){let t=e.finishSync();t.outputBytesCount&&u(c(t));let n=[t.pendingData,r].filter(Boolean).join("\n");n&&u({data:n,bytesCount:(0,s.WW)(n)})}else r&&e.write(e.isEmpty?r:`
${r}`),e.finish(e=>{u(c(e))})})(n));function f(t,i){let o=(0,a.s)(t),s=e.estimateEncodedBytesCount(o);if(s>=u)return void r.Vy.warn(`Discarded a message whose size was bigger than the maximum allowed size ${u}KB. ${r.xG} ${r.Xs}/#technical-limitations`);void 0!==i&&void 0!==l[i]&&function(t){let r=l[t];delete l[t];let i=e.estimateEncodedBytesCount(r);n.notifyAfterRemoveMessage(i)}(i),n.notifyBeforeAddMessage(s),void 0!==i?(l[i]=o,n.notifyAfterAddMessage()):e.write(e.isEmpty?o:`
${o}`,e=>{n.notifyAfterAddMessage(e-s)})}return{flushController:n,add:f,upsert:f,stop:d.unsubscribe}}function c(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var l=n(71478),d=n(62466),f=n(34280);function p(e,t,n,r,i,o,a=u){let s=m(e,t),c=n&&m(e,n);function m(e,{endpoint:t,encoder:n}){return a({encoder:n,request:(0,l.sA)(t,e.batchBytesLimit,r),flushController:function({messagesLimit:e,bytesLimit:t,durationLimit:n,pageMayExitObservable:r,sessionExpireObservable:i}){let o,a=r.subscribe(e=>p(e.reason)),s=i.subscribe(()=>p("session_expire")),u=new d.c(()=>()=>{a.unsubscribe(),s.unsubscribe()}),c=0,l=0;function p(e){if(0===l)return;let t=l,n=c;l=0,c=0,m(),u.notify({reason:e,messagesCount:t,bytesCount:n})}function m(){(0,f.DJ)(o),o=void 0}return{flushObservable:u,get messagesCount(){return l},notifyBeforeAddMessage(e){c+e>=t&&p("bytes_limit"),l+=1,c+=e,void 0===o&&(o=(0,f.wg)(()=>{p("duration_limit")},n))},notifyAfterAddMessage(n=0){c+=n,l>=e?p("messages_limit"):c>=t&&p("bytes_limit")},notifyAfterRemoveMessage(e){c-=e,0==(l-=1)&&m()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:i,sessionExpireObservable:o}),messageBytesLimit:e.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add(e,t=!0){s.add(e),c&&t&&c.add(n.transformMessage?n.transformMessage(e):e)},upsert:(e,t)=>{s.upsert(e,t),c&&c.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:()=>{s.stop(),c&&c.stop()}}}},28765:(e,t,n)=>{n.d(t,{V:()=>r});function r(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}},32328:(e,t,n)=>{n.d(t,{g:()=>r});let r={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"}},34280:(e,t,n)=>{n.d(t,{DJ:()=>s,vG:()=>c,wg:()=>a,yb:()=>u});var r=n(11484),i=n(14391),o=n(28765);function a(e,t){return(0,r.W)((0,o.V)(),"setTimeout")((0,i.dm)(e),t)}function s(e){(0,r.W)((0,o.V)(),"clearTimeout")(e)}function u(e,t){return(0,r.W)((0,o.V)(),"setInterval")((0,i.dm)(e),t)}function c(e){(0,r.W)((0,o.V)(),"clearInterval")(e)}},39069:(e,t,n)=>{let r;function i(e){var t,n;let i=[],o=p(e,"stack"),a=String(e);if(o&&o.startsWith(a)&&(o=o.slice(a.length)),o&&o.split("\n").forEach(e=>{let t=function(e){let t=s.exec(e);if(!t)return;let n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),i=u.exec(t[2]);return r&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){let t=c.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:"?",line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){let t=l.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=d.exec(e);if(!t)return;let n=t[3]&&t[3].indexOf(" > eval")>-1,r=f.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[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="?"),i.push(t))}),i.length>0&&function(){if(void 0!==r)return r;class e extends Error{constructor(){super(),this.name="Error"}}let[t,n]=[e,Error].map(e=>new e);return r=v(Object.getPrototypeOf(t))&&n.stack!==t.stack}()&&e instanceof Error){let r=[],o=e;for(;(o=Object.getPrototypeOf(o))&&v(o);){let e=(null==(t=o.constructor)?void 0:t.name)||"?";r.push(e)}for(let e=r.length-1;e>=0&&(null==(n=i[0])?void 0:n.func)===r[e];e--)i.shift()}return{message:p(e,"message"),name:p(e,"name"),stack:i}}n.d(t,{T:()=>i,h:()=>m});let o="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",a="(?::(\\d+))",s=RegExp(`^\\s*at (.*?) ?\\(${o}${a}?${a}?\\)?\\s*$`,"i"),u=RegExp(`\\((\\S*)${a}${a}\\)`),c=RegExp(`^\\s*at ?${o}${a}?${a}??\\s*$`,"i"),l=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,d=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,f=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function p(e,t){if("object"!=typeof e||!e||!(t in e))return;let n=e[t];return"string"==typeof n?n:void 0}function m(e,t,n,r){var i;let o,a;if(void 0===t)return;let{name:s,message:u}=(i=e,"[object String]"===({}).toString.call(i)&&([,o,a]=g.exec(i)),{name:o,message:a});return{name:s,message:u,stack:[{url:t,column:r,line:n}]}}let g=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function v(e){return String(e.constructor).startsWith("class ")}},39489:(e,t,n)=>{let r;n.d(t,{AY:()=>a,L2:()=>s,c$:()=>u,l2:()=>o});var i=n(73408);function o(e){return u(e,location.href).href}function a(e){try{return!!u(e)}catch(e){return!1}}function s(e){let t=u(e).pathname;return"/"===t[0]?t:`/${t}`}function u(e,t){let n=function(){if(void 0===r)try{let e=new c("http://test/path");r="http://test/path"===e.href}catch(e){r=!1}return r?c:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw Error(`Failed to construct URL: ${String(n)} ${(0,i.s)({url:e,base:t})}`)}if(void 0===t&&!/:/.test(e))throw Error(`Invalid URL: '${e}'`);let o=document,a=o.createElement("a");if(void 0!==t){let e=(o=document.implementation.createHTMLDocument("")).createElement("base");e.href=t,o.head.appendChild(e),o.body.appendChild(a)}return a.href=e,a}let c=URL},40918:(e,t,n)=>{n.d(t,{Ww:()=>o,Y9:()=>i,d0:()=>a});var r=n(28765);function i(){let e=(0,r.V)().DatadogEventBridge;if(e)return{getCapabilities(){var t;return JSON.parse((null==(t=e.getCapabilities)?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return null==(t=e.getPrivacyLevel)?void 0:t.call(e)},getAllowedWebViewHosts:()=>JSON.parse(e.getAllowedWebViewHosts()),send(t,n,r){e.send(JSON.stringify({eventType:t,event:n,view:r?{id:r}:void 0}))}}}function o(e){let t=i();return!!t&&t.getCapabilities().includes(e)}function a(e){var t;void 0===e&&(e=null==(t=(0,r.V)().location)?void 0:t.hostname);let n=i();return!!n&&n.getAllowedWebViewHosts().some(t=>e===t||e.endsWith(`.${t}`))}},40993:(e,t,n)=>{let r;n.d(t,{$H:()=>u,$S:()=>g,FR:()=>c,Gw:()=>h,M8:()=>v,MA:()=>s,OY:()=>o,Oc:()=>y,TP:()=>d,Zj:()=>f,gs:()=>S,iW:()=>a,jR:()=>l,nx:()=>m,pu:()=>w,vk:()=>b,x3:()=>p});var i=n(12881);let o=1e3,a=6e4,s=36e5,u=31536e6;function c(e){return{relative:e,timeStamp:function(e){var t;let n=p()-performance.now();return n>_()?Math.round(function(e,t){return e+t}(n,e)):(t=e,Math.round(_()+t))}(e)}}function l(e){return{relative:S(e),timeStamp:e}}function d(){var e;return Math.round(p()-(e=_(),e+performance.now()))}function f(e){return(0,i.Et)(e)?(0,i.LI)(1e6*e,0):e}function p(){return new Date().getTime()}function m(){return p()}function g(){return performance.now()}function v(){return{relative:g(),timeStamp:m()}}function y(){return{relative:0,timeStamp:_()}}function b(e,t){return t-e}function h(e,t){return e+t}function S(e){return e-_()}function w(e){return e{n.d(t,{BB:()=>a});var r=n(34280),i=n(14391),o=n(40993);function a(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){let n=window.requestIdleCallback((0,i.dm)(e),t);return()=>window.cancelIdleCallback(n)}var n=e;let a=(0,o.x3)(),s=(0,r.wg)(()=>{n({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,o.x3)()-a))})},0);return()=>(0,r.DJ)(s)}},47875:(e,t,n)=>{n.d(t,{A:()=>r});function r(e,t){let n=e.indexOf(t);n>=0&&e.splice(n,1)}},53634:(e,t,n)=>{let r;function i(){return 0===a()}function o(){return 1===a()}function a(){return null!=r?r:r=function(e=window){var t;let n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?0:(null==(t=e.navigator.vendor)?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}()}n.d(t,{F2:()=>i,nr:()=>o})},54995:(e,t,n)=>{n.d(t,{JZ:()=>i,Vy:()=>s,Xs:()=>c,bP:()=>r,fH:()=>u,xG:()=>l});let r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},i=console,o={};Object.keys(r).forEach(e=>{o[e]=i[e]});let a="Datadog Browser SDK:",s={debug:o.debug.bind(i,a),log:o.log.bind(i,a),info:o.info.bind(i,a),warn:o.warn.bind(i,a),error:o.error.bind(i,a)},u="https://docs.datadoghq.com",c=`${u}/real_user_monitoring/browser/troubleshooting`,l="More details:"},58970:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(54995),i=n(73504),o=n(73408);let a=220*i._m;function s(e,t=a){let n=(0,o.M)(Object.prototype),r=(0,o.M)(Array.prototype),i=[],l=new WeakMap,d=u(e,"$",void 0,i,l),f=JSON.stringify(d),p=f?f.length:0;if(p>t)return void c(t,"discarded",e);for(;i.length>0&&pt){c(t,"truncated",e);break}n.target[o]=a}else for(let o in n.source)if(Object.prototype.hasOwnProperty.call(n.source,o)){let a=u(n.source[o],n.path,o,i,l);if(void 0!==a&&(p+=JSON.stringify(a).length+r+o.length+3,r=1),p>t){c(t,"truncated",e);break}n.target[o]=a}}return n(),r(),d}function u(e,t,n,r,i){let o=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}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 n;return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?e(n.currentTarget):null,target:n.target?e(n.target):null}}if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;let r=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(r&&r[1])return`[${r[1]}]`}catch(e){}return"[Unserializable]"}(o);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(i.has(e))return`[Reference seen at ${i.get(e)}]`;let u=void 0!==n?`${t}.${n}`:t,c=Array.isArray(o)?[]:{};return i.set(e,u),r.push({source:o,target:c,path:u}),c}function c(e,t,n){r.Vy.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}},59282:(e,t,n)=>{n.d(t,{Z:()=>s,m:()=>a});var r=n(70110),i=n(14391),o=n(54995);function a(e){let t={version:"6.13.0",onReady(e){e()},...e};return Object.defineProperty(t,"_setDebug",{get:()=>i.pM,enumerable:!1}),t}function s(e,t,n){let i=e[t];i&&!i.q&&i.version&&o.Vy.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,i&&i.q&&i.q.forEach(e=>(0,r.y)(e,"onReady callback threw an error:")())}},62466:(e,t,n)=>{n.d(t,{F:()=>i,c:()=>r});class r{constructor(e){this.onFirstSubscribe=e,this.observers=[]}subscribe(e){return this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:()=>{this.observers=this.observers.filter(t=>e!==t),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}}notify(e){this.observers.forEach(t=>t(e))}}function i(...e){return new r(t=>{let n=e.map(e=>e.subscribe(e=>t.notify(e)));return()=>n.forEach(e=>e.unsubscribe())})}},63606:(e,t,n)=>{n.d(t,{O:()=>i});var r=n(47875);function i(){let e=[];return{add:t=>{e.push(t)>500&&e.splice(0,1)},remove:t=>{(0,r.A)(e,t)},drain:t=>{e.forEach(e=>e(t)),e.length=0}}}},68995:(e,t,n)=>{function r(e){return{...e}}function i(e,t){return Object.keys(e).some(n=>e[n]===t)}function o(e){return 0===Object.keys(e).length}function a(e,t){let n={};for(let r of Object.keys(e))n[r]=t(e[r]);return n}n.d(t,{LG:()=>a,RI:()=>o,Rj:()=>i,yG:()=>r})},69715:(e,t,n)=>{function r(e){return e>=500}function i(e){try{return e.clone()}catch(e){return}}n.d(t,{G:()=>r,i:()=>i})},70110:(e,t,n)=>{n.d(t,{y:()=>i});var r=n(54995);function i(e,t){return(...n)=>{try{return e(...n)}catch(e){r.Vy.error(t,e)}}}},71478:(e,t,n)=>{n.d(t,{sA:()=>y});var r=n(14391),i=n(34280),o=n(40993),a=n(73504),s=n(69715),u=n(32328);let c=80*a._m,l=3*a.iH,d=o.iW,f=o.OY;function p(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?m(e,t,n,{onSuccess:()=>g(0,t,n,r,o),onFailure:()=>{t.queuedPayloads.enqueue(e),function e(t,n,r,o){2===t.transportStatus&&(0,i.wg)(()=>{m(t.queuedPayloads.first(),t,n,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=f,g(1,t,n,r,o)},onFailure:()=>{t.currentBackoffTime=Math.min(d,2*t.currentBackoffTime),e(t,n,r,o)}})},t.currentBackoffTime)}(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function m(e,t,n,{onSuccess:r,onFailure:i}){t.bandwidthMonitor.add(e),n(e,n=>{var o;t.bandwidthMonitor.remove(e),"opaque"!==(o=n).type&&(0===o.status&&!navigator.onLine||408===o.status||429===o.status||(0,s.G)(o.status))?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},i()):(t.transportStatus=0,r())})}function g(e,t,n,r,i){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:`Reached max ${r} events size queued for upload: ${l/a.iH}MiB`,source:u.g.AGENT,startClocks:(0,o.M8)()}),t.queueFullReported=!0);let s=t.queuedPayloads;for(t.queuedPayloads=v();s.size()>0;)p(s.dequeue(),t,n,r,i)}function v(){let e=[];return{bytesCount:0,enqueue(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:()=>e[0],dequeue(){let t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:()=>e.length,isFull(){return this.bytesCount>=l}}}function y(e,t,n){let i={transportStatus:0,currentBackoffTime:f,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=c&&this.ongoingRequestCount<32},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:v(),queueFullReported:!1},o=(n,i)=>{var o,a,s,u;return o=e,a=t,s=n,u=i,void(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&s.bytesCountnull==u?void 0:u({status:e.status,type:e.type}))).catch((0,r.dm)(()=>h(o,s,u))):h(o,s,u))};return{send:t=>{p(t,i,o,e.trackType,n)},sendOnExit:n=>{!function(e,t,n){if(navigator.sendBeacon&&n.bytesCountnull==n?void 0:n({status:e.status,type:e.type}))).catch((0,r.dm)(()=>null==n?void 0:n({status:0})))}},71845:(e,t,n)=>{n.d(t,{b:()=>r});function r(e,t){let n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}},73408:(e,t,n)=>{n.d(t,{M:()=>o,s:()=>i});var r=n(94950);function i(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);let r=o(Object.prototype),i=o(Array.prototype),a=o(Object.getPrototypeOf(e)),s=o(e);try{return JSON.stringify(e,t,n)}catch(e){return""}finally{r(),i(),a(),s()}}function o(e){let t=e.toJSON;return t?(delete e.toJSON,()=>{e.toJSON=t}):r.l}},73504:(e,t,n)=>{n.d(t,{WW:()=>a,_m:()=>r,iH:()=>i,wh:()=>s});let r=1024,i=1048576,o=/[^\u0000-\u007F]/;function a(e){return o.test(e)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function s(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}},74475:(e,t,n)=>{function r(e,t){for(let n=e.length-1;n>=0;n-=1){let r=e[n];if(t(r,n,e))return r}}function i(e){return Object.values(e)}function o(e){return Object.entries(e)}n.d(t,{KQ:()=>i,Uk:()=>r,WP:()=>o})},81010:(e,t,n)=>{n.d(t,{Aq:()=>a,R9:()=>r,q7:()=>u,sr:()=>s});var r,i=n(68995);!function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql"}(r||(r={}));let o=new Set;function a(e){Array.isArray(e)&&e.filter(e=>(0,i.Rj)(r,e)).forEach(e=>{o.add(e)})}function s(e){return o.has(e)}function u(){return o}},83323:(e,t,n)=>{n.d(t,{Go:()=>o,kg:()=>a});var r=n(99806);function i(e,t,n=function(){if("undefined"!=typeof WeakSet){let e=new WeakSet;return{hasAlreadyBeenSeen(t){let n=e.has(t);return n||e.add(t),n}}}let e=[];return{hasAlreadyBeenSeen(t){let n=e.indexOf(t)>=0;return n||e.push(t),n}}}()){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){let e=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,e)}if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){let r=Array.isArray(e)?e:[];for(let e=0;e{n.d(t,{NR:()=>s,Yn:()=>a,uC:()=>o});var r=n(14391),i=n(39069);function o(e){let t,n=Error(e);return n.name="HandlingStack",(0,r.um)(()=>{let e=(0,i.T)(n);e.stack=e.stack.slice(2),t=a(e)}),t}function a(e){let t=s(e);return e.stack.forEach(e=>{let n="?"===e.func?"":e.func,r=e.args&&e.args.length>0?`(${e.args.join(", ")})`:"",i=e.line?`:${e.line}`:"",o=e.line&&e.column?`:${e.column}`:"";t+=`
at ${n}${r} @ ${e.url}${i}${o}`}),t}function s(e){return`${e.name||"Error"}: ${e.message}`}},93439:(e,t,n)=>{n.d(t,{l:()=>a,q:()=>o});var r=n(14391),i=n(11484);function o(e,t,n,r,i){return a(e,t,[n],r,i)}function a(e,t,n,o,{once:s,capture:u,passive:c}={}){let l=(0,r.dm)(t=>{(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(s&&m(),o(t))}),d=c?{capture:u,passive:c}:u,f=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,p=(0,i.W)(f,"addEventListener");function m(){let e=(0,i.W)(f,"removeEventListener");n.forEach(n=>e.call(t,n,l,d))}return n.forEach(e=>p.call(t,e,l,d)),{stop:m}}},93795:(e,t,n)=>{n.d(t,{q:()=>r});function r(){var e;let t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null==(e=t.connection)?void 0:e.effectiveType}}},94950:(e,t,n)=>{n.d(t,{l:()=>o,n:()=>i});var r=n(34280);function i(e,t,n){let i,o,a=!n||void 0===n.leading||n.leading,s=!n||void 0===n.trailing||n.trailing,u=!1;return{throttled:(...n)=>{if(u){i=n;return}a?e(...n):i=n,u=!0,o=(0,r.wg)(()=>{s&&i&&e(...i),u=!1,i=void 0},t)},cancel:()=>{(0,r.DJ)(o),u=!1,i=void 0}}}function o(){}},99054:(e,t,n)=>{n.d(t,{H:()=>o,N:()=>a});var r=n(94950),i=n(93439);function o(e,t,n){return document.readyState===t||"complete"===document.readyState?(n(),{stop:r.l}):(0,i.q)(e,window,"complete"===t?"load":"DOMContentLoaded",n,{once:!0})}function a(e,t){return new Promise(n=>{o(e,t,n)})}},99806:(e,t,n)=>{n.d(t,{P:()=>r});function r(e){return null===e?"null":Array.isArray(e)?"array":typeof e}}}]);
//# sourceMappingURL=4573-720e63b6e0f6f477.js.map