1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3643],{2877:(e,t,r)=>{r.d(t,{O:()=>o});var n=r(63609);function i(e){return!!e&&!!e&&"startActiveSpan"in e}function o(e){let{moduleId:t}=e,r=function(e){let{moduleId:t}=e}({moduleId:t});return{activeContext:()=>i(r)?n._.active():void 0,withContext:(e,t)=>i(r)&&e?n._.with(e,()=>t()):t(),startActiveTrace:(e,t,n)=>i(r)?t.context?r.startActiveSpan(e,{},t.context,e=>n(e)):r.startActiveSpan(e,e=>n(e)):n(void 0),endTrace(e){e&&e.end()},setTraceAttributes(e,t){e&&e.setAttributes(t)}}}},3149:(e,t,r)=>{r.d(t,{M:()=>o,s:()=>i});var n=r(64163);function i(e,t,r){if("object"!=typeof e||null===e)return JSON.stringify(e);let n=o(Object.prototype),i=o(Array.prototype),a=o(Object.getPrototypeOf(e)),s=o(e);try{return JSON.stringify(e,t,r)}catch(e){return"<error: unable to serialize object>"}finally{n(),i(),a(),s()}}function o(e){let t=e.toJSON;return t?(delete e.toJSON,()=>{e.toJSON=t}):n.l}},8531:(e,t,r)=>{r.d(t,{C:()=>o});var n=r(69061),i=r(13139);let o=(e,t)=>{if((0,i.i)()){let r="string"==typeof e?Error(e):e;n.L2.addError(r,t)}(0,i.i)()||console.error("Error captured:",e,t)}},9660:(e,t,r)=>{r.d(t,{K:()=>a,V:()=>o});var n=r(17790),i=r(53907);function o(e){let t=(0,i.P)(e);return"string"===t||"function"===t||e instanceof RegExp}function a(e,t,r=!1){return e.some(e=>{try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.lastIndex=0,e.test(t);if("string"==typeof e)return r?t.startsWith(e):e===t}catch(e){n.Vy.error(e)}return!1})}},13139:(e,t,r)=>{r.d(t,{i:()=>i});var n=r(69061);function i(){let e=n.L2?.getInternalContext();return!!(e?.application_id&&e?.session_id)}},13510:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(69061),i=r(13139);let o=(e,t)=>{let{validationErrors:r}=t;(0,i.i)()&&n.L2.addError(Error(`Missing Analytics ${e}: ${JSON.stringify(r)}`))}},13658:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(69061),i=r(13139);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t?` with fallback key ${t}`:"";(0,i.i)()&&n.L2.addError(Error(`Missing Label: ${e}${r}`))}},14374:(e,t,r)=>{function n(e){try{return JSON.parse(e)}catch(e){}}function i(e){return{...e}}function o(e,t){return Object.keys(e).some(r=>e[r]===t)}function a(e){return 0===Object.keys(e).length}function s(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n]);return r}r.d(t,{LG:()=>s,RI:()=>a,Rj:()=>o,XU:()=>n,yG:()=>i})},14581:(e,t,r)=>{r.d(t,{G:()=>a});var n=r(23532),i=r(69061),o=r(13139);function a(e){let{name:t,type:r="hook",labels:a}=e,s=(0,n.useRef)(void 0),u=(0,n.useRef)(void 0),l=(0,n.useCallback)(()=>{(0,o.i)()&&(u.current=window?.performance.now(),s.current=a)},[a]),c=(0,n.useCallback)(e=>{(0,o.i)()&&(s.current={...s.current,...e},i.L2.addAction(`${r}::${t}`,{...s.current,transactionDuration:u.current?window?.performance.now()-u.current:void 0}),s.current=void 0,u.current=void 0)},[t,r]),d=(0,n.useCallback)(e=>{e&&(0,o.i)()&&(s.current={...s.current,...e})},[]);return(0,n.useMemo)(()=>({startAction:l,endAction:c,addLabels:d}),[l,c,d])}},17289:(e,t,r)=>{r.d(t,{NR:()=>s,Yn:()=>a,uC:()=>o});var n=r(62186),i=r(66158);function o(e){let t,r=Error(e);return r.name="HandlingStack",(0,n.um)(()=>{let e=(0,i.T)(r);e.stack=e.stack.slice(2),t=a(e)}),t}function a(e){let t=s(e);return e.stack.forEach(e=>{let r="?"===e.func?"<anonymous>":e.func,n=e.args&&e.args.length>0?`(${e.args.join(", ")})`:"",i=e.line?`:${e.line}`:"",o=e.line&&e.column?`:${e.column}`:"";t+=` 2 at ${r}${n} @ ${e.url}${i}${o}`}),t}function s(e){return`${e.name||"Error"}: ${e.message}`}},17344:(e,t,r)=>{let n;r.d(t,{$H:()=>u,$S:()=>g,FR:()=>l,Gw:()=>b,M8:()=>y,MA:()=>s,OY:()=>o,Oc:()=>v,TP:()=>d,Zj:()=>f,gs:()=>S,iW:()=>a,jR:()=>c,nx:()=>m,pu:()=>_,vk:()=>h,x3:()=>p});var i=r(91832);let o=1e3,a=6e4,s=36e5,u=31536e6;function l(e){var t,r;let n;return{relative:e,timeStamp:(t=e,(n=p()-performance.now())>w()?Math.round(function(e,t){return e+t}(n,t)):(r=t,Math.round(w()+r)))}}function c(e){return{relative:S(e),timeStamp:e}}function d(){var e;return Math.round(p()-(e=w(),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 y(){return{relative:g(),timeStamp:m()}}function v(){return{relative:0,timeStamp:w()}}function h(e,t){return t-e}function b(e,t){return e+t}function S(e){return e-w()}function _(e){return e<u}function w(){var e,t;return void 0===n&&(n=null!=(t=null==(e=performance.timing)?void 0:e.navigationStart)?t:performance.timeOrigin),n}},17790:(e,t,r)=>{r.d(t,{JZ:()=>i,Vy:()=>s,Xs:()=>l,bP:()=>n,fH:()=>u,xG:()=>c});let n={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},i=console,o={};
2Object.keys(n).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",l=`${u}/real_user_monitoring/browser/troubleshooting`,c="More details:"},26567:(e,t,r)=>{r.d(t,{g:()=>n});let n={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"}},37613:(e,t,r)=>{r.d(t,{A:()=>C});var n=r(23532),i=r(73967),o=r(69061),a=r(35720),s=r(79320),u=r(81897),l=r(56681),c=r(15713),d=r(67016),f=r(24143),p=r(4991),m=r(48769);let g=["requestid","householdid","partnerid","prnumber","deploymentstage","activeterritory","hometerritory","proposition","provider","territory","cdnprovider","requesthostname","optimizely"],y=new WeakMap,v=Object.freeze({}),h=[/csp_violation/i];function b(e){if(e)try{let t=new URL(e).hostname.split(".");if(t.length<2)return;return t.slice(-2).join(".")}catch{return}}function S(e){if(!e)return!1;let t=function(){let{domains:e}=(0,u.zj)();return[...new Set((Array.isArray(e?.sas)?e.sas:[e?.sas]).map(b).filter(e=>!!e))]}();if(0===t.length)return!1;try{let r=new URL(e).hostname;return t.some(e=>r.endsWith(e))}catch{return!1}}function _(e){if(e)try{return new URL(e).hostname}catch{return}}function w(e,t){return E(e,t,void 0)}function E(e,t,r){let n,i=(0,d.iL)()?.profile_id;if(e.context={...e.context,...i&&{householdId:i}},"resource"===e.type&&"fetch"===e.resource.type){let r,n,i=_(t.response?.url);S(t.response?.url)&&(r=t.response?.headers.get(c.cI.RequestId),n=t.response?.headers.get("via")),e.context={...e.context,...void 0!==r&&{requestId:r},...void 0!==n&&{cdnProvider:n},requestHostname:i}}if("resource"===e.type&&"xhr"===e.resource.type){let r,n,i=_(e.resource.url);if(S(e.resource.url))try{r=t.xhr.getResponseHeader(c.cI.RequestId)??"Unknown";let e=t.xhr.getResponseHeader("via");e&&(n=e)}catch{r="Unknown"}e.context={...e.context,...void 0!==r&&{requestId:r},...void 0!==n&&{cdnProvider:n},requestHostname:i}}return!("error"===e.type&&(n=(0,u.zj)().datadog?.errorMessageBlacklist?.map(e=>RegExp(e,"i")),n?.length&&e.error.message&&n.some(t=>t.test(e.error.message))||h.some(t=>t.test(e.error.message))))&&(!1!==r&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(e){let t=e??v,r=y.get(t);if(r)return r;let n={...e,unredactedKeys:[...g,...e?.unredactedKeys??[]]},i=(0,f.$i)(n);return y.set(t,i),i}(t.pii);try{var n,i,o,a;let t;n=e,i=r,(t=n.view)&&("string"==typeof t.url&&(t.url=(0,p.lu)(t.url,i)),"string"==typeof t.referrer&&(t.referrer=(0,p.lu)(t.referrer,i)),"string"==typeof t.name&&(t.name=(0,p.rN)(t.name,i))),function(e,t){if("resource"!==e.type)return;let r=e.resource;r&&("string"==typeof r.url&&(r.url=(0,p.lu)(r.url,t)),r.graphql&&"object"==typeof r.graphql&&(void 0!==r.graphql.payload&&(r.graphql.payload=(0,m.V)(r.graphql.payload,t)),void 0!==r.graphql.variables&&(r.graphql.variables=(0,m.V)(r.graphql.variables,t))))}(e,r),function(e,t){if("error"!==e.type)return;let r=e.error;if(r&&("string"==typeof r.message&&(r.message=(0,p.rN)(r.message,t)),"string"==typeof r.stack&&(r.stack=(0,p.rN)(r.stack,t)),"string"==typeof r.handling_stack&&(r.handling_stack=(0,p.rN)(r.handling_stack,t)),r.resource&&"string"==typeof r.resource.url&&(r.resource.url=(0,p.lu)(r.resource.url,t)),Array.isArray(r.causes)))for(let e of r.causes)"string"==typeof e.message&&(e.message=(0,p.rN)(e.message,t)),"string"==typeof e.stack&&(e.stack=(0,p.rN)(e.stack,t))}(e,r),function(e,t){if("action"!==e.type)return;let r=e.action?.target;r&&("string"==typeof r.name&&(r.name=(0,p.rN)(r.name,t)),"string"==typeof r.selector&&(r.selector=(0,p.rN)(r.selector,t)))}(e,r),function(e,t){if("long_task"!==e.type)return;let r=e.long_task?.scripts;if(Array.isArray(r))for(let e of r)"string"==typeof e.source_url&&(e.source_url=(0,p.lu)(e.source_url,t)),"string"==typeof e.invoker&&(e.invoker=(0,p.rN)(e.invoker,t))}(e,r),o=e,a=r,o.context&&"object"==typeof o.context&&(o.context=(0,m.V)(o.context,a)),function(e,t){for(let r of["usr","user"]){let n=e[r];n&&"object"==typeof n&&(e[r]=(0,m.V)(n,t))}}(e,r)}catch{var s=e;if(s.view&&(s.view.url="REDACTED",s.view.referrer="REDACTED","string"==typeof s.view.name&&(s.view.name="REDACTED")),s.context={},"resource"===s.type&&(s.resource.url="REDACTED"),"error"===s.type){let e=s.error;e&&(e.message="REDACTED",e.stack=void 0)}}}(e,{pii:r||void 0}),!0)}let k="UNKNOWN_VIEW";var T=r(57098),x=r(59814),A=r(85485);function C(){return!function(){let e=(0,n.useRef)(!1),[{datadog:t}]=(0,x.J)(["datadog"]),r=(0,i.useRouter)(),c=r.locale??(0,T.oo)(r.asPath??"")??"default",d=(0,n.useRef)(!1),f=t&&!e.current;(0,n.useEffect)(()=>{f&&(!function(e){let{appName:t="",env:r,datadog:n,proposition:i="",provider:c="",territory:d="",datadogTracingUrls:f=[]}=(0,u.zj)(),{version:p,trackViewsManually:m=!0,pii:g}=e,y=(0,a._n)(),v=(0,s.nR)(),h=(0,s.oy)(),b=function(){if("u"<typeof document)return;let e=document.querySelector('meta[name="app:env"]');return e?.getAttribute("content")??void 0}(),S=(0,l.QH)(),_=n?.previewCookieName?(0,s.iM)().get(n?.previewCookieName)?.replaceAll("-",""):void 0,k={applicationId:n?.applicationId??"",clientToken:n?.clientToken??"",site:"datadoghq.com",service:n?.service??t,env:r,version:p,sessionSampleRate:n?.sessionSampleRate??100,sessionReplaySampleRate:0,trackResources:!0,trackLongTasks:!0,trackUserInteractions:!0,enablePrivacyF
2orActionName:!0,trackViewsManually:m,beforeSend:void 0===g?w:(e,t)=>E(e,t,g),allowedTracingUrls:[...f.map(e=>({match:e,propagatorTypes:["tracecontext"]}))]};o.L2.init(k),b&&o.L2.setGlobalContextProperty("deploymentStage",b),y&&o.L2.setGlobalContextProperty("partnerId",y),v&&o.L2.setGlobalContextProperty("activeTerritory",v),h&&o.L2.setGlobalContextProperty("homeTerritory",h),_&&"stable-int"===r&&o.L2.setGlobalContextProperty("prNumber",_),S&&o.L2.setGlobalContextProperty("optimizely",S),o.L2.setGlobalContextProperty("proposition",i),o.L2.setGlobalContextProperty("provider",c),o.L2.setGlobalContextProperty("territory",d);let T=(0,a._5)()||crypto.randomUUID();o.L2.setUser({id:T}),(0,a.AA)(T)}({version:"f440386"}),e.current=!0)},[f]),(0,n.useEffect)(()=>{if(e.current&&!d.current){let e=(0,A.PM)(window.location.pathname,k,c);o.L2.startView(e),d.current=!0}let t=t=>{if(!e.current)return;let r=(0,A.PM)(new URL(t,window.location.origin).pathname,k,c);o.L2.startView(r)};return r.events.on("routeChangeComplete",t),()=>{r.events.off("routeChangeComplete",t)}},[r.events,c])}(),null}},40483:(e,t,r)=>{r.d(t,{W:()=>i});var n=r(71120);function i(e,t){let r,i=(0,n.VZ)();return i.Zone&&"function"==typeof i.Zone.__symbol__&&(r=e[i.Zone.__symbol__(t)]),r||(r=e[t]),r}},52581:(e,t,r)=>{r.d(t,{WW:()=>a,_m:()=>n,iH:()=>i,wh:()=>s});let n=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){if(1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}},53907:(e,t,r)=>{function n(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function i(e){return"object"===n(e)}r.d(t,{O:()=>i,P:()=>n})},54875:(e,t,r)=>{r.d(t,{mj:()=>c});var n=r(87704),i=r(76264),o=r(17344),a=r(66158),s=r(71120),u=r(79652),l=r(26567);function c(){return new i.cP(e=>{var t,r;let i=(t,r)=>{let n=(0,u.As)({stackTrace:r,originalError:t,startClocks:(0,o.M8)(),nonErrorPrefix:"Uncaught",source:l.g.SOURCE,handling:"unhandled"});e.notify(n)},{stop:c}=(t=i,(0,n.H)((0,s.VZ)(),"onerror",({parameters:[e,r,n,i,o]})=>{let s;(0,u.bJ)(o)||(s=(0,a.h)(e,r,n,i)),t(null!=o?o:e,s)})),{stop:d}=(r=i,(0,n.H)((0,s.VZ)(),"onunhandledrejection",({parameters:[e]})=>{r(e.reason||"Empty reason")}));return()=>{c(),d()}})}},59770:(e,t,r)=>{r.d(t,{B:()=>n});function n(e){return e}},62186:(e,t,r)=>{let n;r.d(t,{Bd:()=>a,Dx:()=>c,dm:()=>u,oO:()=>d,pM:()=>s,um:()=>l});var i=r(17790);let o=!1;function a(e){n=e}function s(e){o=e}function u(e){return function(...t){return l(e,this,t)}}function l(e,t,r){try{return e.apply(t,r)}catch(e){c(e)}}function c(e){if(d(e),n)try{n(e)}catch(e){d(e)}}function d(...e){o&&i.Vy.error("[MONITOR]",...e)}},64163:(e,t,r)=>{r.d(t,{l:()=>o,n:()=>i});var n=r(84961);function i(e,t,r){let i,o,a=!r||void 0===r.leading||r.leading,s=!r||void 0===r.trailing||r.trailing,u=!1;return{throttled:(...r)=>{if(u){i=r;return}a?e(...r):i=r,u=!0,o=(0,n.wg)(()=>{s&&i&&e(...i),u=!1,i=void 0},t)},cancel:()=>{(0,n.DJ)(o),u=!1,i=void 0}}}function o(){}},66158:(e,t,r)=>{let n;r.d(t,{T:()=>o,h:()=>g});var i=r(53907);function o(e){var t,r;let i=[],o=m(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=u.exec(e);if(!t)return;let r=t[2]&&0===t[2].indexOf("native"),n=t[2]&&0===t[2].indexOf("eval"),i=l.exec(t[2]);return n&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}(e)||function(e){let t=c.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:t[2]}}(e)||function(e){let t=d.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=f.exec(e);if(!t)return;let r=t[3]&&t[3].indexOf(" > eval")>-1,n=p.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}(e);t&&(!t.func&&t.line&&(t.func="?"),i.push(t))}),i.length>0&&function(){if(void 0!==n)return n;
2class e extends Error{constructor(){super(),this.name="Error"}}let[t,r]=[e,Error].map(e=>new e);return n=v(Object.getPrototypeOf(t))&&r.stack!==t.stack}()&&e instanceof Error){let n=[],o=e;for(;(o=Object.getPrototypeOf(o))&&v(o);){let e=(null==(t=o.constructor)?void 0:t.name)||"?";n.push(e)}for(let e=n.length-1;e>=0&&(null==(r=i[0])?void 0:r.func)===n[e];e--)i.shift()}return{message:m(e,"message"),name:m(e,"name"),stack:i}}let a="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",s="(?::(\\d+))",u=RegExp(`^\\s*at (.*?) ?\\(${a}${s}?${s}?\\)?\\s*$`,"i"),l=RegExp(`\\((\\S*)${s}${s}\\)`),c=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${a}${s}?${s}??\\s*$`,"i"),d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function m(e,t){return(0,i.O)(e)&&"string"==typeof e[t]?e[t]:void 0}function g(e,t,r,n){var i;let o,a;if(void 0===t)return;let{name:s,message:u}=(i=e,"[object String]"===({}).toString.call(i)&&([,o,a]=y.exec(i)),{name:o,message:a});return{name:s,message:u,stack:[{url:t,column:n,line:r}]}}let y=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function v(e){return String(e.constructor).startsWith("class ")}},68816:(e,t,r)=>{let n;r.d(t,{AY:()=>a,L2:()=>s,c$:()=>u,l2:()=>o});var i=r(71120);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{URL:r}=function(){var e;if(!n){let t,r;try{(t=document.createElement("iframe")).style.display="none",document.body.appendChild(t),r=null!=(e=t.contentWindow)?e:i.J2}catch(e){r=i.J2}n={URL:r.URL},null==t||t.remove()}return n}();try{return void 0!==t?new r(e,t):new r(e)}catch(e){throw Error(`Failed to construct URL: ${String(e)}`)}}},69061:(e,t,r)=>{let n,i,o,a,s,u,l,c,d,f,p,m,g,y,v,h,b;r.d(t,{L2:()=>iY});var S,_,w,E,k,T,x=r(17790);function A(e,t){return(...r)=>{try{return e(...r)}catch(e){x.Vy.error(t,e)}}}var C=r(62186),R=r(71120),I=r(76264);let O={GRANTED:"granted",NOT_GRANTED:"not-granted"};var N=r(52426),M=r(52581);function P(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(r,n){let i=(0,M.WW)(r);t+=i,e+=r,n&&n(i)},finish(e){e(this.finishSync())},finishSync(){let r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount:e=>e.length}}var $=r(59770),L=r(17289),V=r(79652),D=r(14374);(S=k||(k={})).TRACK_INTAKE_REQUESTS="track_intake_requests",S.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",S.FEATURE_OPERATION_VITAL="feature_operation_vital",S.START_STOP_ACTION="start_stop_action",S.START_STOP_RESOURCE="start_stop_resource",S.USE_CHANGE_RECORDS="use_change_records",S.USE_INCREMENTAL_CHANGE_RECORDS="use_incremental_change_records",S.TOO_MANY_REQUESTS_INVESTIGATION="too_many_requests_investigation",S.TRACK_RESOURCE_HEADERS="track_resource_headers";let U=new Set;function j(e){return U.has(e)}function q(e){let{env:t,service:r,version:n,datacenter:i,sdkVersion:o,variant:a}=e,s=[F("sdk_version",null!=o?o:"6.33.0")];return t&&s.push(F("env",t)),r&&s.push(F("service",r)),n&&s.push(F("version",n)),i&&s.push(F("datacenter",i)),a&&s.push(F("variant",a)),s}function F(e,t){var r;let n=t?`${e}:${t}`:e;return(n.length>200||(r=n,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(r)))&&x.Vy.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${x.xG} ${x.fH}/getting_started/tagging/#defining-tags`),n.replace(/,/g,"_")}let B="datad0g.com",G="datadoghq.com",W=["ddsource","dd-api-key","dd-request-id"];var H=r(17344);function Z(e,t){let r=R.J2.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}var K=r(91832),z=r(3149),J=r(53907);function Y(e,t,r=function(){if("u">typeof WeakSet){let e=new WeakSet;return{hasAlreadyBeenSeen(t){let r=e.has(t);return r||e.add(t),r}}}let e=[];return{hasAlreadyBeenSeen(t){let r=e.indexOf(t)>=0;return r||e.push(t),r}}}()){if(void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){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(r.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){let n=Array.isArray(e)?e:[];for(let e=0;e<t.length;++e)n[e]=Y(n[e],t[e],r);return n}let n="object"===(0,J.P)(e)?e:{};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=Y(n[e],t[e],r));return n}function X(e){return Y(void 0,e)}function Q(...e){let t;for(let r of e)null!=r&&(t=Y(t,r));return t}var ee=r(66158);function et(){var e;let t=R.J2.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}}function er(){let e=(0,R.VZ)().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,r,n){e.send(JSON.stringify({eventType:t,event:r,view:n?{id:n}:void 0}))}}}function en(e){var t;void 0===e&&(e=null==(t=(0,R.VZ)().location)?void 0:t.hostname);let r=er();return!!r&&r.getAllowedWebViewHosts().some(t=>e===t||e.endsWith(`.${t}`))}function ei(e,t){for(let r=e.length-1;r>=0;r-=1){let n=e[r];if(t(n,r,e))return n}}function eo(e){return Object.values(e)}function ea(e){return Object.entries(e)}var es=r(40483);function eu(e,t,r,n,i){return el(e,t,[r],n,i)}function el(e,t,r,n,{once:i,capture:o,passive:a}={}){let s=(0,C.dm)(t=>{(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(i&&d(),n(t))}),u=a?{capture:o,passive:a}:o,l=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,c=(0,es.W)(l,"addEventListener");function d(){let e=(0,es.W)(l,"removeEventListener");r.forEach(r=>e.call(t,r,s,u))}
2return r.forEach(e=>c.call(t,e,s,u)),{stop:d}}let ec={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function ed(e){return new I.cP(t=>{if(R.Wq)return;let{stop:r}=el(e,window,["visibilitychange","freeze"],e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:ec.HIDDEN}):"freeze"===e.type&&t.notify({reason:ec.FROZEN})},{capture:!0}),n=eu(e,window,"beforeunload",()=>{t.notify({reason:ec.UNLOADING})}).stop;return()=>{r(),n()}})}let ef=256*M._m;function ep({encoder:e,request:t,flushController:r}){let n={},i=r.flushObservable.subscribe(r=>(function(r){var i;let o=eo(n).join("\n");n={};let a=(i=r.reason,eo(ec).includes(i)),s=a?t.sendOnExit:t.send;if(a&&e.isAsync){let t=e.finishSync();t.outputBytesCount&&s(em(t));let r=[t.pendingData,o].filter(Boolean).join("\n");r&&s({data:r,bytesCount:(0,M.WW)(r)})}else o&&e.write(e.isEmpty?o:` 3${o}`),e.finish(e=>{s(em(e))})})(r));function o(t,i){let o,a,s=(0,z.s)(t),u=e.estimateEncodedBytesCount(s);u>=ef?x.Vy.warn(`Discarded a message whose size was bigger than the maximum allowed size ${ef/M._m}KiB. ${x.xG} ${x.Xs}/#technical-limitations`):(void 0!==i&&void 0!==n[i]&&(o=n[i],delete n[i],a=e.estimateEncodedBytesCount(o),r.notifyAfterRemoveMessage(a)),r.notifyBeforeAddMessage(u),void 0!==i?(n[i]=s,r.notifyAfterAddMessage()):e.write(e.isEmpty?s:` 4${s}`,e=>{r.notifyAfterAddMessage(e-u)}))}return{flushController:r,add:o,upsert:o,stop:i.unsubscribe}}function em(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}function eg(e,t){return(0,es.W)((0,R.VZ)(),"fetch")(e,t)}var ey=r(84961),ev=r(26567);let eh=80*M._m,eb=20*M.iH,eS=H.iW,e_=H.OY;function ew(e,t,r,n,i,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?eE(e,t,r,o,{onSuccess:()=>ek(0,t,r,n,i,o),onFailure:()=>{t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),function e(t,r,n,i,o){2===t.transportStatus&&(0,ey.wg)(()=>{eE(t.queuedPayloads.first(),t,r,o,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=e_,ek(1,t,r,n,i,o)},onFailure:()=>{t.currentBackoffTime=Math.min(eS,2*t.currentBackoffTime),e(t,r,n,i,o)}})},t.currentBackoffTime)}(t,r,n,i,o)}}):t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function eE(e,t,r,n,{onSuccess:i,onFailure:o}){t.bandwidthMonitor.add(e),r(e,r=>{var a;t.bandwidthMonitor.remove(e),"opaque"!==(a=r).type&&(0===a.status&&!navigator.onLine||408===a.status||429===a.status||a.status>=500)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:r.status},n.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o()):(t.transportStatus=0,n.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),i())})}function ek(e,t,r,n,i,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:`Reached max ${n} events size queued for upload: ${eb/M.iH}MiB`,source:ev.g.AGENT,startClocks:(0,H.M8)()}),t.queueFullReported=!0);let a=t.queuedPayloads;for(t.queuedPayloads=eT();a.size()>0;)ew(a.dequeue(),t,r,n,i,o)}function eT(){let e=[];return{bytesCount:0,enqueue(t){return!this.isFull()&&(e.push(t),this.bytesCount+=t.bytesCount,!0)},first:()=>e[0],dequeue(){let t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:()=>e.length,isFull(){return this.bytesCount>=eb}}}let ex=16*M._m;function eA(e,t,r=ex){let n=new I.cP,i={transportStatus:0,currentBackoffTime:e_,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=eh&&this.ongoingRequestCount<32},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:eT(),queueFullReported:!1};return{observable:n,send:r=>{for(let o of e)ew(r,i,(e,t)=>{eR(o,e,t)},o.trackType,t,n)},sendOnExit:t=>{for(let n of e)!function(e,t,r){if(navigator.sendBeacon&&r.bytesCount<t)try{let t=e.build("beacon",r);if(navigator.sendBeacon(t,r.data))return}catch(e){var n;n=e,eC||(eC=!0,(0,C.Dx)(n))}eR(e,r)}(n,r,t)}}}let eC=!1;function eR(e,t,r){eg(e.build("fetch",t),{method:"POST",body:t.data,mode:"cors"}).then((0,C.dm)(e=>null==r?void 0:r({status:e.status,type:e.type}))).catch((0,C.dm)(()=>null==r?void 0:r({status:0})))}let eI=30*H.OY,eO=R.Wq?1:50;
4function eN({pageMayExitObservable:e,sessionExpireObservable:t}){let r,n,i=new I.cP,o=e.subscribe(e=>{r=e.reason;try{i.notify(e.reason)}finally{r=void 0}c(e.reason)}),a=t.subscribe(()=>c("session_expire")),s=new I.cP(()=>()=>{o.unsubscribe(),a.unsubscribe()}),u=0,l=0;function c(e){if(0===l)return;let t=l,r=u;l=0,u=0,d(),s.notify({reason:e,messagesCount:t,bytesCount:r})}function d(){(0,ey.DJ)(n),n=void 0}return{flushObservable:s,preparePageExitFlushObservable:i,get messagesCount(){return l},notifyBeforeAddMessage(e){u+e>=ex&&c(null!=r?r:"bytes_limit"),l+=1,u+=e,void 0===n&&(n=(0,ey.wg)(()=>{c("duration_limit")},eI))},notifyAfterAddMessage(e=0){u+=e,l>=eO?c(null!=r?r:"messages_limit"):u>=ex&&c(null!=r?r:"bytes_limit")},notifyAfterRemoveMessage(e){u-=e,0==(l-=1)&&d()}}}let eM="DISCARDED",eP="SKIPPED";var e$=r(64163);let eL="configuration",eV="usage",eD=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],eU=["ddog-gov.com","us2.ddog-gov.com"];function ej(){return n||(n=new I.dX(100)),n}function eq(e,t,r){let n=new I.cP,{enabled:i,metricsEnabled:o}=function(e,t,r,n,i=1,o=15){var a;let s={},u=!eU.includes(t.site)&&(0,K.ic)(t.telemetrySampleRate),l={log:u,[eL]:u&&(0,K.ic)(t.telemetryConfigurationSampleRate),[eV]:u&&(0,K.ic)(t.telemetryUsageSampleRate),metric:u&&(0,K.ic)(i)},c={is_local_file:(null==(a=R.J2.location)?void 0:a.protocol)==="file:",is_worker:R.Wq},d=ej();return d.subscribe(({rawEvent:i,metricName:a})=>{var u,d,f,p;let m;if(a&&!l.metric||!l[i.type])return;let g=a||i.status||i.type,y=s[g];if(y||(y=s[g]=new Set),y.size>=o)return;let v=(0,z.s)(i);if(y.has(v))return;let h=r.triggerHook(1,{startTime:(0,H.M8)().relative});if(h===eM)return;let b=(u=h,d=e,f=i,p=c,m={type:"telemetry",date:(0,H.M8)().timeStamp,service:d,version:"6.33.0",source:"browser",_dd:{format_version:2},telemetry:Q(f,{runtime_env:p,connectivity:et(),sdk_setup:"npm"}),ddtags:q(t).join(","),experimental_features:Array.from(U)},Q(m,u));n.notify(b),Z("telemetry",b),y.add(v)}),d.unbuffer(),(0,C.Bd)(eB),{enabled:u,metricsEnabled:l.metric}}(e,t,r,n),{stop:a}=function(e,t){let r=[];if(en()){let e=er(),n=t.subscribe(t=>e.send("internal_telemetry",t));r.push(n.unsubscribe)}else{let n=[e.rumEndpointBuilder];e.replica&&e.site===B&&n.push(e.replica.rumEndpointBuilder);let i=ep({encoder:P(),request:eA(n,e$.l),flushController:eN({pageMayExitObservable:ed(e),sessionExpireObservable:new I.cP})});r.push(i.stop);let o=t.subscribe(i.add);r.push(o.unsubscribe)}return{stop:()=>r.forEach(e=>e())}}(t,n);return{stop:a,enabled:i,metricsEnabled:o}}function eF(e,t){(0,C.oO)(x.bP.debug,e,t),ej().notify({rawEvent:{type:"log",message:e,status:"debug",...t}})}function eB(e,t){ej().notify({rawEvent:{type:"log",status:"error",...function(e){if((0,V.bJ)(e)){var t;let r=(0,ee.T)(e);return{error:{kind:r.name,stack:(0,L.Yn)(((t=r).stack=t.stack.filter(e=>!e.url||eD.some(t=>e.url.startsWith(t))),t))},message:r.message}}return{error:{stack:V.e6},message:`Uncaught ${(0,z.s)(e)}`}}(e),...t}})}function eG(e,t){ej().notify({rawEvent:{type:"log",message:e,status:"debug",...t},metricName:e})}function eW(e){ej().notify({rawEvent:{type:eV,usage:e}})}var eH=r(90921);function eZ(e,t,r,n){return(0,C.dm)((...i)=>(n&&eW({feature:n}),e()[t][r](...i)))}let eK="userContext",ez="globalContext",eJ="accountContext",eY="getContext",eX="setContext",eQ="setContextProperty",e0="removeContextProperty",e1="clearContext";var e2=r(81136);function e3(e,t){t.silentMultipleInit||x.Vy.error(`${e} is already initialized.`)}let e6="action",e8="error",e4="long_task",e9="view",e5="resource",e7="vital",te="initial_load",tt="route_change",tr="bf_cache",tn="custom",ti="error_click",to="dead_click",ta="duration";function ts({vitalsByName:e,vitalsByReference:t},r,n={}){let i={id:(0,e2.lk)(),name:r,startClocks:(0,H.M8)(),...n},o={__dd_vital_reference:!0};return e.set(r,i),t.set(o,i),o}function tu(e,{vitalsByName:t,vitalsByReference:r},n,i={}){var o,a,s,u,l;let c="string"==typeof n?t.get(n):r.get(n);c&&(e((o=c,a=c.startClocks,s=i,u=(0,H.M8)(),{id:o.id,name:o.name,type:ta,startClocks:a,duration:(0,H.vk)(a.timeStamp,u.t
4imeStamp),context:Q(o.context,s.context),description:null!=(l=s.description)?l:o.description,handlingStack:o.handlingStack})),"string"==typeof n?t.delete(n):r.delete(n))}function tl(e){let{startClocks:t,type:r,name:n,description:i,context:o,handlingStack:a}=e,s=e.type===ta?e.id:void 0,u={id:null!=s?s:(0,e2.lk)(),type:r,name:n,description:i,...r===ta?{duration:(0,H.Zj)(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:u,type:e7,context:o},startClocks:t,duration:r===ta?e.duration:void 0,domainContext:a?{handlingStack:a}:{}}}function tc(e,t,r){if(e)for(let n of e){let e=n[t];e&&e(r)}}var td=r(99284);let tf=[];function tp(e,t,r,n){var i,o;let a=(i=r,o=n,`_dd_c_${i}_${o}`);tf.push(eu(e,window,"storage",({key:e})=>{a===e&&t.setContext(u())})),t.changeObservable.subscribe(function(){localStorage.setItem(a,JSON.stringify(t.getContext()))});let s=Q(u(),t.getContext());function u(){let e=localStorage.getItem(a);return e?JSON.parse(e):{}}(0,D.RI)(s)||t.setContext(s)}function tm(e,t,r){let n={...e};for(let[e,{required:i,type:o}]of Object.entries(t))"string"!==o||tg(n[e])||(n[e]=String(n[e])),i&&tg(n[e])&&x.Vy.warn(`The property ${e} of ${r} is required; context will not be sent to the intake.`);return n}function tg(e){return null==e||""===e}function ty(e="",{propertiesConfig:t={}}={}){let r={},n=new I.cP,i={getContext:()=>X(r),setContext:o=>{let a;((a="object"===(0,J.P)(o))||x.Vy.error("Unsupported context:",o),a)?r=(0,eH.a)(tm(o,t,e)):i.clearContext(),n.notify()},setContextProperty:(i,o)=>{r=(0,eH.a)(tm({...r,[i]:o},t,e)),n.notify()},removeContextProperty:i=>{delete r[i],tm(r,t,e),n.notify()},clearContext:()=>{r={},n.notify()},changeObservable:n};return i}function tv(){return ty("global context")}function th(){return ty("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function tb(){return ty("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}var tS=r(87704),t_=r(68816);async function tw(e,t){let r=e.getReader(),n=[];for(;;){let e=await r.read();if(e.done)break;t.collectStreamBody&&n.push(e.value)}return r.cancel().catch(e$.l),t.collectStreamBody?(0,M.wh)(n):void 0}let tE=[];function tk({responseBodyAction:e}={}){return e&&tE.push(e),i||(i=new I.cP(e=>{if(!R.J2.fetch)return;let{stop:t}=(0,tS.H)(R.J2,"fetch",t=>(function({parameters:e,onPostCall:t,handlingStack:r},n){var i,o;let[a,s]=e,u=s&&s.method;void 0===u&&a instanceof Request&&(u=a.method);let l=void 0!==u?String(u).toUpperCase():"GET",c=a instanceof Request?a.url:(0,t_.l2)(String(a)),d={state:"start",init:s,input:a,method:l,startClocks:(0,H.M8)(),url:c,handlingStack:r,isAbortedOnStart:a instanceof Request&&(null==(i=a.signal)?void 0:i.aborted)||(null==(o=null==s?void 0:s.signal)?void 0:o.aborted)||!1};n.notify(d),e[0]=d.input,e[1]=d.init,t(e=>{tT(n,e,d).catch(C.Dx)})})(t,e),{computeHandlingStack:!0});return t})),i}async function tT(e,t,r){var n,i;let o;r.state="resolve";try{o=await t}catch(t){r.status=0,r.isAborted=(null==(i=null==(n=r.init)?void 0:n.signal)?void 0:i.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,r.error=t,e.notify(r);return}r.response=o,r.status=o.status,r.responseType=o.type,r.isAborted=!1;let a=tE.reduce((e,t)=>Math.max(e,t(r)),0);if(0!==a){let e=function(e){try{return e.clone()}catch(e){return}}(o);if(e&&e.body)try{let t=await tw(e.body,{collectStreamBody:2===a});r.responseBody=t&&new TextDecoder().decode(t)}catch(e){}}e.notify(r)}function tx(e,t,r=0,n){let i=new Date;i.setTime(i.getTime()+r);let o=`expires=${i.toUTCString()}`,a=n&&n.crossSite?"none":"strict",s=n&&n.domain?`;domain=${n.domain}`:"",u=n&&n.secure?";secure":"",l=n&&n.partitioned?";partitioned":"";document.cookie=`${e}=${t};${o};path=/;samesite=${a}${s}${u}${l}`}function tA(e){return(0,e2.rx)(document.cookie,e)}function tC(e){return o||(o=(0,e2.it)(document.cookie)),o.get(e)}function tR(e=location.hostname,t=document.referrer){if(void 0===a){let r=function(e,t){try{return e||(0,t_.c$)(t).hostname}catch(e){}}(e,t);if(r){let e=`dd_site_test_${(0,e2.lk)()}`,t=r.split("."),n=t.pop();for(;t.length&&!tA(e);)n=`${t.pop()}.${n}`,tx(e,"test",H.OY,{domain:n});tx(e,"",0,{domain:n}),a=n}}return a}let tI="datadog-synthetics-",tO=`${tI}public-id`,tN=`${tI}result-id`,tM=`${tI}injects-rum`,tP=`${tI}rum-context`;function t$(){return!R.Wq&&!!(R.J2._DATADOG_SYNTHETICS_INJECTS_RUM||tC(tM))}function tL(){var e;let t=function(){let e=R.J2._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;let t=tC(tP);return t?(0,D.XU)(decodeURIComponent(t)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||tC(tO),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||tC(tN)}}();return"object"==typeof(e=t)&&null!==e&&"string"==typeof e.test_id&&"string"==typeof e.result_id?t:void 0}let tV=function(){let e={};return{register:(t,r)=>(e[t]||(e[t]=[]),e[t].push(r),{unregister:()=>{e[t]=e[t].filter(e=>e!==r)}}),triggerHook(t,r){let n=e[t]||[],i=[];for(let e of n){let t=e(r);if(t===eM)return eM;t!==eP&&i.push(t)}return Q(...i)}}},tD="_dd_s",tU=4*H.MA,tj=15*H.iW,tq=H.$H,tF="cookie",tB="memory",tG="local-storage",tW=
4/^([a-zA-Z]+)=([a-z0-9-]+)$/;function tH(e,t){let r={isExpired:"1"};return t.trackAnonymousUser&&(null==e?void 0:e.anonymousId)&&(r.anonymousId=null==e?void 0:e.anonymousId),r}function tZ(e){return(0,D.RI)(e)}function tK(e){var t;return void 0!==e.isExpired||!((void 0===(t=e).created||(0,H.x3)()-Number(t.created)<tU)&&(void 0===t.expire||(0,H.x3)()<Number(t.expire)))}function tz(e){e.expire=String((0,H.x3)()+tj)}function tJ(e){return ea(e).map(([e,t])=>"anonymousId"===e?`aid=${t}`:`${e}=${t}`).join("&")}function tY(e){let t={};return e&&(-1!==e.indexOf("&")||tW.test(e))&&e.split("&").forEach(e=>{let r=tW.exec(e);if(null!==r){let[,e,n]=r;"aid"===e?t.anonymousId=n:t[e]=n}}),t}function tX(e,t,r,n){let i=tJ(r);t.betaEncodeCookieOptions&&(i=tJ({...r,...!(0,D.RI)(r)?{c:t0(e)}:{}})),tx(tD,i,t.trackAnonymousUser?tq:n,e)}function tQ(e,t){return t.betaEncodeCookieOptions?function(e){let t,r=(0,e2.Dh)(document.cookie).get(tD)||[],n=t0(e);for(let e of r.reverse())if((t=tY(e)).c===n)break;return null==t||delete t.c,null!=t?t:{}}(e):tY(tA(tD))}function t0(e){return((e.domain?e.domain.split(".").length-1:0)<<1|!!e.crossSite).toString(16)}function t1(e){localStorage.setItem(tD,tJ(e))}function t2(){return tY(localStorage.getItem(tD))}let t3=H.OY,t6=[];function t8(e,t,r=0){var n;let i,{isLockEnabled:o,persistSession:a,expireSession:s}=t,l=e=>a({...e,lock:i}),c=()=>{let{lock:e,...r}=t.retrieveSession();return{session:r,lock:e&&!function(e){let[,t]=e.split("--");return!t||(0,H.vk)(Number(t),(0,H.nx)())>t3}(e)?e:void 0}};if(u||(u=e),e!==u)return void t6.push(e);if(o&&r>=100)return void t9(t);let d=c();if(o&&(d.lock||(i=(0,e2.lk)()+"--"+(0,H.nx)(),l(d.session),(d=c()).lock!==i)))return void t4(e,t,r);let f=e.process(d.session);if(o&&(d=c()).lock!==i)return void t4(e,t,r);
4if(f&&(tK(f)?s(f):(tz(f),o?l(f):a(f))),o&&!(f&&tK(f))){if((d=c()).lock!==i)return void t4(e,t,r);a(d.session),f=d.session}null==(n=e.after)||n.call(e,f||d.session),t9(t)}function t4(e,t,r){(0,ey.wg)(()=>{t8(e,t,r+1)},10)}function t9(e){u=void 0;let t=t6.shift();t&&t8(t,e)}let t5="_DD_SESSION";function t7(){let e=(0,R.VZ)();return e[t5]||(e[t5]={}),(0,D.yG)(e[t5])}function re(e){(0,R.VZ)()[t5]=(0,D.yG)(e)}let rt=H.OY;var rr=r(9660);let rn=["chrome-extension://","moz-extension://"];function ri(e){return rn.some(t=>e.includes(t))}function ro(e,t,r){let n=function(e,t){let r=`/api/v2/${t}`,n=e.proxy;if("string"==typeof n){let e=(0,t_.l2)(n);return t=>`${e}?ddforward=${encodeURIComponent(`${r}?${t}`)}`}if("function"==typeof n)return e=>n({path:r,parameters:e});let i=ra(t,e);return e=>`https://${i}${r}?${e}`}(e,t);return{build:(i,o)=>n(function({clientToken:e,internalAnalyticsSubdomain:t,source:r="browser"},n,i,{retry:o,encoding:a},s=[]){let u=[`ddsource=${r}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.33.0")}`,"dd-evp-origin=browser",`dd-request-id=${(0,e2.lk)()}`].concat(s);return a&&u.push(`dd-evp-encoding=${a}`),"rum"===n&&(u.push(`batch_time=${(0,H.nx)()}`,`_dd.api=${i}`),o&&u.push(`_dd.retry_count=${o.count}`,`_dd.retry_after=${o.lastFailureStatus}`)),t&&u.reverse(),u.join("&")}(e,t,i,o,r)),trackType:t}}function ra(e,t){let{site:r=G,internalAnalyticsSubdomain:n}=t;if("logs"===e&&t.usePciIntake&&r===G)return"pci.browser-intake-datadoghq.com";if(n&&r===G)return`${n}.${G}`;if("dd0g-gov.com"===r)return`http-intake.logs.${r}`;let i=r.split("."),o=i.pop();return`browser-intake-${i.join("-")}.${o}`}let rs={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},ru={ALL:"all",SAMPLED:"sampled"};function rl(e,t){return null==e||"string"==typeof e||(x.Vy.error(`${t} must be defined as a string`),!1)}function rc(e,t){return void 0===e||!!(0,K.fp)(e)||(x.Vy.error(`${t} Sample Rate should be a number between 0 and 100`),!1)}let rd=["tracecontext","datadog"],rf=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache"];function rp(e){return(0,rr.V)(e)?{match:e,propagatorTypes:rd}:(0,J.O)(e)&&(0,rr.V)(e.match)&&(null===e.propagatorTypes||void 0===e.propagatorTypes||Array.isArray(e.propagatorTypes))?{match:e.match,propagatorTypes:e.propagatorTypes||rd}:void 0}let rm=["request","response","any"];function rg(e,t){t.lastIndex=0;let r=t.exec(e);if(!r)return;let[n,i]=r;return i||n}let ry=/[a-zA-Z_$]/,rv=/[a-zA-Z0-9_$]/,rh=/[0-9]/,rb=/[a-fA-F0-9]/,rS={0:()=>!1,1:()=>!1,2:e=>ry.test(e),3:e=>rv.test(e),4:e=>"."===e,5:e=>"["===e,6:e=>"]"===e,7:e=>rh.test(e),8:e=>"'\"".includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>"\\"===e,12:(e,t)=>void 0===t.escapeSequence?`${t.quote}/\\bfnrtu`.includes(e):!!t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5&&rb.test(e)},r_={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},rw=[2,3,7,10],rE=[4,5,6],rk={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},rT=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function rx(e,t){let r,n,i=(r={fetch:{}},{get:()=>r,increment:(e,t)=>{r[e]||(r[e]={}),r[e][t]||(r[e][t]=0),r[e][t]=r[e][t]+1}}),o=await rC(e);return o.ok?(i.increment("fetch","success"),n=function(e,t,r,n){let i={...e};return rT.forEach(e=>{e in t&&(i[e]=o(t[e]))}),Object.keys(r).forEach(e=>{var n;void 0!==t[e]&&(n=r[e],t[e].forEach(({key:e,value:t})=>{n.setContextProperty(e,o(t))}))}),i;function o(e){if(Array.isArray(e))return e.map(o);if((0,J.O)(e)){if("rcSerializedType"in e){let r=e.rcSerializedType;switch(r){case"string":return e.value;case"regex":return rA(e.value);case"dynamic":var t=e;let i,o=t.strategy;switch(o){case"cookie":i=function({name:e}){let t=tA(e);return n.increment("cookie",void 0!==t?"success":"missing"),t}(t);break;case"dom":i=function({selector:e,attribute:t}){var r,i;let o;try{o=document.querySelector(e)}catch(t){x.Vy.error(`Invalid selector in the remote configuration: '${e}'`),n.increment("dom","failure");return}if(!o)return void n.increment("dom","missing");if(r=o,i=t,"password"===r.getAttribute("type")&&"value"===i){x.Vy.error(`Forbidden element selected by the remote configuration: '${e}'`),n.increment("dom","failure");return}let a=void 0!==t?o.getAttribute(t):o.textContent;return null===a?void n.increment("dom","missing"):(n.increment("dom","success"),a)}(t);break;case"js":i=function({path:e}){let t=window,r=function(e){let t,r=[],n=0,i={quote:void 0,escapeSequence:void 0},o="";for(let u of e){if(!(t=r_[n].find(e=>rS[e](u,i))))return[];if(void 0!==i.escapeSequence&&12!==t){var a,s;if(a=i.escapeSequence,!("\"'/\\bfnrt".includes(a)||a.startsWith("u")&&5===a.length))return[];o+=(s=i.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(s.slice(1),16)):rk[s],i.escapeSequence=void 0}rw.includes(t)?o+=u:rE.includes(t)&&""!==o?(r.push(o),o=""):12===t?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${u}`:u:8===t?i.quote=u:9===t&&(i.quote=void 0),n=t}return r_[n].includes(1)?(""!==o&&r.push(o),r):[]}(e);if(0===r.length){x.Vy.error(`Invalid JSON path in the remote configuration: '${e}'`),n.increment("js","failure");return}for(let i of r){if(!(i in t))return void n.increment("js","missing");try{t=t[i]}catch(t){x.Vy.error(`Error accessing: '${e}'`,t),n.increment("js","failure");return}}return n.increment("js","success"),t}(t);break;case"localStorage":i=function({key:e}){let t;try{t=localStorage.getItem(e)}catch(e){n.increment("localStorage","failure");return}return n.increment("localStorage",null!==t?"success":"missing"),null!=t?t:void 0}(t);break;default:x.Vy.error(`Unsupported remote configuration: "strategy": "${o}"`);return}let a=t.extractor;return void 0!==a&&"string"==typeof i?function(e,t){let r=rA(e.value);if(void 0!==r)return rg(t,r)}(a,i):i;default:x.Vy.error(`Unsupported remote configuration: "rcSerializedType": "${r}"`);return}}return(0,D.LG)(e,o)}return e}}(e,o.value,t,i)):(i.increment("fetch","failure"),x.Vy.error(o.error)),eG("remote configuration metrics",{metrics:i.get()}),n}function rA(e){try{return new RegExp(e)}catch(t){x.Vy.error(`Invalid regex in the remote configuration: '${e}'`)}}async function rC(e){let t;try{var r;t=await eg((r=e).remoteConfigurationProxy?r.remoteConfigurationProxy:`https://sdk-configuration.${ra("rum",r)}/v1/${encodeURIComponent(r.remoteConfigurationId)}.json`)}catch(e){t=void 0}if(!t||!t.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let n=await t.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:Error("No remote configuration for RUM.")}}function rR(e,t,r){e.changeObservable.subscribe(()=>{let n=e.getContext();r.add(e=>e[t].setContext(n))})}let rI="_dd_tab_id";class rO{constructor(){this.callbacks={}}notify(e,t){let r=this.callbacks[e];
4r&&r.forEach(e=>e(t))}subscribe(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:()=>{this.callbacks[e]=this.callbacks[e].filter(e=>t!==e)}}}}let rN=1/0,rM=H.iW,rP=new Set;function r$({expireDelay:e,maxEntries:t}){let r=[];c||(c=(0,ey.yb)(()=>void rP.forEach(e=>e()),rM));let n=()=>{let t=(0,H.$S)()-e;for(;r.length>0&&r[r.length-1].endTime<t;)r.pop()};return rP.add(n),{add:function(e,n){let i={value:e,startTime:n,endTime:rN,remove:()=>{(0,td.Ai)(r,i)},close:e=>{i.endTime=e}};return t&&r.length>=t&&r.pop(),r.unshift(i),i},find:function(e=rN,t={returnInactive:!1}){for(let n of r)if(n.startTime<=e){if(t.returnInactive||e<=n.endTime)return n.value;break}},closeActive:function(e){let t=r[0];t&&t.endTime===rN&&t.close(e)},findAll:function(e=rN,t=0){let n=(0,H.Gw)(e,t);return r.filter(t=>t.startTime<=n&&e<=t.endTime).map(e=>e.value)},getEntries:function(e){return r.filter(t=>t.startTime===e)},reset:function(){r=[]},stop:function(){rP.delete(n),0===rP.size&&c&&((0,ey.vG)(c),c=void 0)}}}let rL=new WeakMap;function rV({target:e,parameters:[t,r]}){rL.set(e,{state:"open",method:String(t).toUpperCase(),url:(0,t_.l2)(String(r))})}function rD({target:e}){let t=rL.get(e);t&&(t.isAborted=!0)}let rU="fetch",rj="other",rq="initial_document",rF=[["document",e=>rq===e],["xhr",e=>"xmlhttprequest"===e],[rU,e=>"fetch"===e],["beacon",e=>"beacon"===e],["css",(e,t)=>/\.css$/i.test(t)],["js",(e,t)=>/\.js$/i.test(t)],["image",(e,t)=>["image","img","icon"].includes(e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)],["font",(e,t)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)],["media",(e,t)=>["audio","video"].includes(e)||null!==/\.(mp3|mp4)$/i.exec(t)]];function rB(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function rG(e){return"xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType}function rW(e){return e.duration>=0}function rH(e){var t;let r=rB(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=!((t=e).redirectEnd>t.startTime)||rB(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart);return r&&n}function rZ(e,t,r){if(e<=t&&t<=r)return{duration:(0,H.Zj)((0,H.vk)(t,r)),start:(0,H.Zj)((0,H.vk)(e,t))}}function rK(e){return e&&(!W.every(t=>e.includes(t))||j(k.TRACK_INTAKE_REQUESTS))}let rz=/data:(.+)?(;base64)?,/g;function rJ(e,t=24e3){if(e.length<=t||!e.startsWith("data:"))return e;let r=e.substring(0,100).match(rz);return r?`${r[0]}[...]`:e}let rY=new Map;function rX(e){let t=crypto.getRandomValues(new Uint32Array(2));return 63===e&&(t[t.length-1]>>>=1),{toString(e=10){let r=t[1],n=t[0],i="";do{let t=r%e*0x100000000+n;r=Math.floor(r/e),n=Math.floor(t/e),i=(t%e).toString(e)+i}while(r||n);return i}}}function rQ(e){return e.toString(16).padStart(16,"0")}function r0(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function r1(e,t,r,n,i,o){let a=r.findTrackedSession();if(!a)return;let s=e.allowedTracingUrls.find(e=>(0,rr.K)([e.match],t.url,!0));if(!s)return;let u=function(e,t){var r,n;let i,o,a;if(100===t)return!0;if(0===t)return!1;let s=rY.get(t);return s&&e===s.sessionId?s.decision:(i=window.BigInt?(r=BigInt(`0x${e.split("-")[4]}`),n=t,o=BigInt("1111111111111111111"),Number(r*o%(a=BigInt("0x10000000000000000")))<=n/100*Number(a)):(0,K.ic)(t),rY.set(t,{sessionId:e,decision:i}),i)}(a.id,e.traceSampleRate);(u||e.traceContextInjection===ru.ALL)&&(t.traceSampled=u,t.traceId=rX(64),t.spanId=rX(63),o(function(e,t,r,n,i,o,a,s){let u={};if(i.forEach(n=>{switch(n){case"datadog":Object.assign(u,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":e.toString()});break;case"tracecontext":Object.assign(u,{traceparent:`00-0000000000000000${rQ(e)}-${rQ(t)}-0${r?"1":"0"}`,tracestate:`dd=s:${r?"1":"0"};o:rum`});break;case"b3":Object.assign(u,{b3:`${rQ(e)}-${rQ(t)}-${r?"1":"0"}`});break;case"b3multi":Object.assign(u,{"X-B3-TraceId":rQ(e),"X-B3-SpanId":rQ(t),"X-B3-Sampled":r?"1":"0"})}}),s.propagateTraceBaggage){let e={"session.id":n},t=o.getContext().id;"string"==typeof t&&(e["user.id"]=t);let r=a.getContext().id;"string"==typeof r&&(e["account.id"]=r);let i=Object.entries(e).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(",");i&&(u.baggage=i)}return u}(t.traceId,t.spanId,t.traceSampled,a.id,s.propagatorTypes,n,i,e)))}var r2=r(87488);let r3=1;function r6(){let e=r3;return r3+=1,e}function r8(e){return(0,K.Et)(e)&&e<0?void 0:e}
4function r4(e){return e.nodeType===Node.TEXT_NODE}function r9(e){return e.nodeType===Node.ELEMENT_NODE}function r5(e){return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r9(e.host)}function r7(e){if(e.parentElement)return e.parentElement;let t=e.parentNode;return t&&r5(t)?t.host:null}function ne(e,t){return new I.cP(r=>{var n;let i,o;if(!window.PerformanceObserver)return;let a=e=>{let t=e.filter(e=>{var t;return!((t=e).entryType===T.RESOURCE&&(!rK(t.name)||!rW(t)))});t.length>0&&r.notify(t)},s=!0,u=new PerformanceObserver((0,C.dm)(e=>{s?i=(0,ey.wg)(()=>a(e.getEntries())):a(e.getEntries())}));try{u.observe(t)}catch(e){if([T.RESOURCE,T.NAVIGATION,T.LONG_TASK,T.PAINT].includes(t.type)){t.buffered&&(i=(0,ey.wg)(()=>a(performance.getEntriesByType(t.type))));try{u.observe({entryTypes:[t.type]})}catch(e){return}}}return s=!1,n=e,!f&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(f=eu(n,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),nt(T.FIRST_INPUT)||t.type!==T.FIRST_INPUT||({stop:o}=function(e,t){let r=(0,H.x3)(),n=!1,{stop:i}=el(e,window,["click","mousedown","keydown","touchstart","pointerdown"],t=>{var r,n;if(!t.cancelable)return;let i={entryType:"first-input",processingStart:(0,H.$S)(),processingEnd:(0,H.$S)(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,interactionId:0,toJSON:()=>({})};"pointerdown"===t.type?(r=e,n=i,el(r,window,["pointerup","pointercancel"],e=>{"pointerup"===e.type&&o(n)},{once:!0})):o(i)},{passive:!0,capture:!0});return{stop:i};function o(e){if(!n){n=!0,i();let o=e.processingStart-e.startTime;o>=0&&o<(0,H.x3)()-r&&t(e)}}}(e,e=>{a([e])})),()=>{u.disconnect(),o&&o(),(0,ey.DJ)(i)}})}function nt(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(e)}(_=T||(T={})).EVENT="event",_.FIRST_INPUT="first-input",_.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",_.LAYOUT_SHIFT="layout-shift",_.LONG_TASK="longtask",_.LONG_ANIMATION_FRAME="long-animation-frame",_.NAVIGATION="navigation",_.PAINT="paint",_.RESOURCE="resource",_.VISIBILITY_STATE="visibility-state";let nr="data-dd-excluded-activity-mutations";function nn(e,t,r,n,i,o){let a,s=(0,$.B)(ni)(e,t,r,n),u=!1,l=(0,ey.wg)((0,C.dm)(()=>p({hadActivity:!1})),100),c=void 0!==o?(0,ey.wg)((0,C.dm)(()=>p({hadActivity:!0,end:(0,H.nx)()})),o):void 0,d=s.subscribe(({isBusy:e})=>{(0,ey.DJ)(l),(0,ey.DJ)(a);let t=(0,H.nx)();e||(a=(0,ey.wg)((0,C.dm)(()=>p({hadActivity:!0,end:t})),100))}),f=()=>{u=!0,(0,ey.DJ)(l),(0,ey.DJ)(a),(0,ey.DJ)(c),d.unsubscribe()};function p(e){u||(f(),i(e))}return{stop:f}}function ni(e,t,r,n){return new I.cP(i=>{let o,a=[],s=0;return a.push(t.subscribe(e=>{e.every(na)||u()}),r.subscribe(u),ne(n,{type:T.RESOURCE}).subscribe(e=>{e.some(e=>!no(n,e.name))&&u()}),e.subscribe(7,e=>{no(n,e.url)||(void 0===o&&(o=e.requestIndex),s+=1,u())}),e.subscribe(8,e=>{no(n,e.url)||void 0===o||e.requestIndex<o||(s-=1,u())})),()=>{a.forEach(e=>e.unsubscribe())};function u(){i.notify({isBusy:s>0})}})}function no(e,t){return(0,rr.K)(e.excludedActivityUrls,t)}function na(e){let t="characterData"===e.type?e.target.parentElement:e.target;return!!(t&&r9(t)&&t.matches(`[${nr}], [${nr}] *`))}let ns="data-dd-action-name",nu="Masked Element",nl=[ns,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],nc=[ny,nm],nd=[ny,function(e){if("BODY"===e.tagName)return;let t=e.classList;for(let r=0;r<t.length;r+=1){let n=t[r];if(!np(n))return`${CSS.escape(e.tagName)}.${CSS.escape(n)}`}},ng];function nf(e,t){if(!e.isConnected)return;let r=function(e){let t=[],r=e;for(;r;){let e=r.getRootNode();if(t.push({rootNode:e,target:r}),r5(e))r=e.host;else break}return t.reverse()}(e),n=[];for(let{rootNode:e,target:i}of r){let r=function(e,t,r){let n,i=e;for(;i&&"HTML"!==i.nodeName;){let e=nb(i,t,nc,nS,r,n);if(e)return nw(e,n);n=nw(nb(i,t,nd,n_,r,n)||function(e){let t=nh(e);return`${CSS.escape(e.tagName)}:nth-of-type(${t})`}(i),n),i=i.parentElement}return n}(i,e,t);if(!r)return;n.push(r)}return n.join("::shadow ")}function np(e){return/[0-9]/.test(e)}function nm(e){if(e.id&&!np(e.id))return`#${CSS.escape(e.id)}`}function ng(e){return CSS.escape(e.tagName)}function ny(e,t){if(t){let e=r(t);if(e)return e}for(let e of nl){let t=r(e);if(t)return t}function r(t){if(e.hasAttribute(t))return`${CSS.escape(e.tagName)}${nv(t,e.getAttribute(t))}`}}function nv(e,t){return`[${e}="${CSS.escape(t)}"]`}function nh(e){let t=e.parentNode.firstElementChild,r=1;for(;t&&t!==e;)t.tagName===e.tagName&&(r+=1),t=t.nextElementSibling;return r}function nb(e,t,r,n,i,o){for(let a of r){let r=a(e,i);if(r&&n(e,t,r,o))return r}}function nS(e,t,r,n){return 1===t.querySelectorAll(nw(r,n)).length}function n_(e,t,r,n){let i;if(void 0===n)i=e=>e.matches(r);else{let e=nw(`${r}:scope`,n);i=t=>null!==t.querySelector(e)}let o=e.previousElementSibling;for(;o;){if(i(o))return!1;o=o.previousElementSibling}for(o=e.nextElementSibling;o;){if(i(o))return!1;o=o.nextElementSibling}return!0}function nw(e,t){return t?`${e}>${t}`:e}let nE={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:rs.ALLOW,MASK:rs.MASK,MASK_USER_INPUT:rs.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:rs.MASK_UNLESS_ALLOWLISTED},nk="data-dd-privacy",nT={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function nx(e){return`[${nk}="${e}"], .dd-privacy-${e}`}function nA(e,t,r){if(r&&r.has(e))return r.get(e);let n=r5(e)?e.host:e.parentNode,i=n?nA(n,t,r):t,o=function(e,t){switch(t){case nE.HIDDEN:case nE.IGNORE:return t}switch(e){case nE.ALLOW:case nE.MASK:case nE.MASK_USER_INPUT:case nE.MASK_UNLESS_ALLOWLISTED:case nE.HIDDEN:case nE.IGNORE:return e;default:return t}}(function(e){if(r9(e)){if("BASE"===e.tagName)return nE.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return nE.MASK;let t=e.getAttribute("autocomplete");if(t&&(t.startsWith("cc-")||t.endsWith("-password")))return nE.MASK}if(e.matches(nx(nE.HIDDEN)))return nE.HIDDEN;if(e.matches(nx(nE.MASK)))return nE.MASK;if(e.matches(nx(nE.MASK_UNLESS_ALLOWLISTED)))return nE.MASK_UNLESS_ALLOWLISTED;if(e.matches(nx(nE.MASK_USER_INPUT)))return nE.MASK_USER_INPUT;if(e.matches(nx(nE.ALLOW)))return nE.ALLOW;if(function(e){if("SCRIPT"===e.nodeName)return!0;
4if("LINK"===e.nodeName){let e=t("rel");return/preload|prefetch/i.test(e)&&"script"===t("as")||"shortcut icon"===e||"icon"===e}if("META"===e.nodeName){let r=t("name"),n=t("rel"),i=t("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===n||"apple-touch-icon"===n||"shortcut icon"===n||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"bingbot"===r||e.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function t(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}(e))return nE.IGNORE}}(e),i);return r&&r.set(e,o),o}function nC(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!!nT[e.tagName]}function nR(e){var t;return!(e&&e.trim())||(null==(t=window.$DD_ALLOW)?void 0:t.has(e.toLocaleLowerCase()))||!1}function nI({lifeCycle:e,isChildEvent:t,onChange:r=e$.l}){let n={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 e8:n.errorCount+=1,r();break;case e6:n.actionCount+=1,e.action.frustration&&(n.frustrationCount+=e.action.frustration.type.length),r();break;case e4:n.longTaskCount+=1,r();break;case e5:(null==(i=e._dd)?void 0:i.discarded)||(n.resourceCount+=1,r())}});return{stop:()=>{i.unsubscribe()},eventCounts:n}}let nO=5*H.iW;function nN(e){let t=r$({expireDelay:nO}),r=new Map;function n(e){var t;r.delete(e.key),null==(t=e.eventCounts)||t.stop()}function i(){r.forEach(e=>{n(e)}),t.reset()}let o=e.subscribe(10,i);return{start:function(i,o,a,s){let u=(0,e2.lk)(),l=t.add(u,o.relative),c=r.get(i);c&&n(c);let d=(null==s?void 0:s.isChildEvent)?nI({lifeCycle:e,isChildEvent:s.isChildEvent(u)}):void 0,f={id:u,key:i,startClocks:o,data:a,historyEntry:l,eventCounts:d};return r.set(i,f),f},stop:function(e,t,i){var o;let a=r.get(e);if(!a)return;let s=i?Q(a.data,i):a.data;a.historyEntry.close(t.relative);let u=(0,H.vk)(a.startClocks.timeStamp,t.timeStamp),l=null==(o=a.eventCounts)?void 0:o.eventCounts;return n(a),{...s,id:a.id,startClocks:a.startClocks,duration:u,counts:l}},discard:function(e){var t;let i=r.get(e);if(!i)return;let o=null==(t=i.eventCounts)?void 0:t.eventCounts;return n(i),i.historyEntry.remove(),{...i.data,id:i.id,startClocks:i.startClocks,counts:o}},getCounts:function(e){var t,n;return null==(n=null==(t=r.get(e))?void 0:t.eventCounts)?void 0:n.eventCounts},findId:function(e){return t.findAll(e)},stopAll:function(){o.unsubscribe(),i(),t.stop()}}}let nM=["HTML","BODY"],nP=2*M._m,n$=nl.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]),nL=H.OY;function nV(e,t){let r=function(e,t){let r=e;for(;r;){if(r.matches(t))return r;r=r7(r)}return null}(e,`[${t}]`);if(r)return nF(nq(r.getAttribute(t).trim()))}let nD=[(e,t,r)=>{if("labels"in e&&e.labels&&e.labels.length>0)return nG(e.labels[0],t,r)},e=>{if("INPUT"===e.nodeName){let t=e.getAttribute("type");if("button"===t||"submit"===t||"reset"===t)return{name:e.value,nameSource:"text_content"}}},(e,t,r)=>{if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return nG(e,t,r)},(e,t,r)=>nB(e,"aria-label",t,r),(e,t,r)=>{let n=e.getAttribute("aria-labelledby");if(n)return{name:n.split(/\s+/).map(t=>(function(e,t){let r=e.getRootNode();if(r instanceof ShadowRoot){let e=r.getElementById(t);if(e)return e}return e.ownerDocument?e.ownerDocument.getElementById(t):null})(e,t)).filter(e=>!!e).map(e=>nW(e,t,r)).join(" "),nameSource:"text_content"}},(e,t,r)=>nB(e,"alt",t,r),(e,t,r)=>nB(e,"name",t,r),(e,t,r)=>nB(e,"title",t,r),(e,t,r)=>nB(e,"placeholder",t,r),(e,t,r)=>{if("options"in e&&e.options.length>0)return nG(e.options[0],t,r)}],nU=[(e,t,r)=>nG(e,t,r)];function nj(e,t,r,n){let i=e,o=0;for(;o<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(let e of t){let t=e(i,r,n);if(t){let{name:e,nameSource:r}=t,n=e&&e.trim();if(n)return{name:nF(nq(n)),nameSource:r}}}if("FORM"===i.nodeName)break;
4i=r7(i),o+=1}}function nq(e){return e.replace(/\s+/g," ")}function nF(e){return e.length>100?`${(0,e2._R)(e,100)} [...]`:e}function nB(e,t,r,n){let{enablePrivacyForActionName:i,defaultPrivacyLevel:o}=r,a=e.getAttribute(t);if(a&&i){var s,u;let i=nA(e,o,n);(function(e,t,r,n,i){if(n!==nE.MASK&&n!==nE.MASK_UNLESS_ALLOWLISTED||t===nk||nl.includes(t)||t===i.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!("A"===e&&"href"===t||"IFRAME"===e&&"srcdoc"===t||r&&t.startsWith("data-"))||("IMG"===e||"SOURCE"===e)&&("src"===t||"srcset"===t)})(e.tagName,t,a,i,r)&&(s=a,u=nu,a=nR(s)?s:u||s.replace(/\S/g,"x"))}else a||(a="");return{name:a,nameSource:"standard_attribute"}}function nG(e,t,r){return{name:nW(e,t,r)||"",nameSource:"text_content"}}function nW(e,t,r){if(e.isContentEditable)return;let{enablePrivacyForActionName:n,actionNameAttribute:i,defaultPrivacyLevel:o}=t;if(j(k.USE_TREE_WALKER_FOR_ACTION_NAME)){var a=e,s=i,u=n,l=o,c=r;let t=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(e){let t=nA(e,l,c);if(u&&t&&function(e,t){switch(t){case nE.MASK:case nE.HIDDEN:case nE.IGNORE:return!0;case nE.MASK_UNLESS_ALLOWLISTED:if(r4(e))return!!nC(e.parentNode)||!nR(e.textContent||"");return nC(e);case nE.MASK_USER_INPUT:return r4(e)?nC(e.parentNode):nC(e);default:return!1}}(e,t))return NodeFilter.FILTER_REJECT;if(r9(e)){if(e.hasAttribute(ns)||s&&e.hasAttribute(s))return NodeFilter.FILTER_REJECT;let t=getComputedStyle(e);if("visible"!==t.visibility||"none"===t.display||t.contentVisibility&&"visible"!==t.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),d="";for(;t.nextNode();){let e=t.currentNode;if(r9(e)){("BR"===e.nodeName||"P"===e.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(e).display))&&(d+=" ");continue}d+=e.textContent||""}return d.replace(/\s+/g," ").trim()}if("innerText"in e){let t=e.innerText,r=r=>{let n=e.querySelectorAll(r);for(let e=0;e<n.length;e+=1){let r=n[e];if("innerText"in r){let e=r.innerText;e&&e.trim().length>0&&(t=t.replace(e,""))}}};return r(`[${ns}]`),i&&r(`[${i}]`),n&&r(`${nx(nE.HIDDEN)}, ${nx(nE.MASK)}`),t}return e.textContent}function nH(){let e=window.getSelection();return!e||e.isCollapsed}function nZ(e){return e.target instanceof Element&&!1!==e.isPrimary}function nK(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 nz=10*H.OY,nJ=new Map;function nY(e,t){nJ.set(e,t),nJ.forEach((e,t)=>{(0,H.vk)(t,(0,H.$S)())>nz&&nJ.delete(t)})}function nX(e){return t=>void 0!==t.action&&void 0!==t.action.id&&t.action.id.includes(e)}function nQ(e){var t;if(e.composed&&r9(t=e.target)&&t.shadowRoot&&"function"==typeof e.composedPath){let t=e.composedPath();if(t.length>0&&t[0]instanceof Element)return t[0]}return e.target}function n0(e){var t,r,n,i;let o="events"in e,a=r8((0,H.Zj)(e.duration));return{rawRumEvent:{type:e6,date:e.startClocks.timeStamp,action:{id:e.id,target:{name:e.name},type:e.type,...void 0!==a&&{loading_time:a},...e.counts&&{error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},frustration:{type:e.frustrationTypes}},...o?{_dd:{action:{target:{selector:(null==(t=e.target)?void 0:t.selector)||void 0,width:(null==(r=e.target)?void 0:r.width)||void 0,height:(null==(n=e.target)?void 0:n.height)||void 0,composed_path_selector:null==(i=e.target)?void 0:i.composedPathSelector},position:e.position,name_source:e.nameSource}}}:{context:e.context}},duration:e.duration,startClocks:e.startClocks,domainContext:o?{events:e.events}:{handlingStack:e.handlingStack}}}let n1={},n2="csp_violation";function n3(e){return{startClocks:(0,H.M8)(),source:ev.g.REPORT,handling:"unhandled",...e}}function n6(e,t,r,n,i){return r?(0,L.Yn)({name:e,message:t,stack:[{func:"?",url:r,line:null!=n?n:void 0,column:null!=i?i:void 0}]}):void 0}let n8=H.OY;function n4(){let e=[];function t(t){let n;if(!t||t.didTimeout){let e=performance.now();n=()=>30-(performance.now()-e)}else n=t.timeRemaining.bind(t);for(;n()>0&&e.length;)e.shift()();e.length&&r()}function r(){!function(e,t){var r;let n,i;if(window.requestIdleCallback&&window.cancelIdleCallback){let r=window.requestIdleCallback((0,C.dm)(e),t);return()=>window.cancelIdleCallback(r)}r=e,n=(0,H.x3)(),i=(0,ey.wg)(()=>{r({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,H.x3)()-n))})},0)}(t,{timeout:n8})}return{push(t){1===e.push(t)&&r()},stop(){e.length=0}}}let n9=new WeakSet;function n5(e){return(0,H.Gw)(e.startTime,e.duration)}function n7(e,t,r){return document.readyState===t||"complete"===document.readyState?(r(),{stop:e$.l}):eu(e,window,"complete"===t?"load":"DOMContentLoaded",r,{once:!0})}let ie=2*H.iW;function it(e,t){let r=t&&Number(t);if(e&&r)return{traceId:e,traceTime:r}}function ir(e){if(e&&e.nodeType===Node.COMMENT_NODE){let t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function ii(){if(nt(T.NAVIGATION)){let e=performance.getEntriesByType(T.NAVIGATION)[0];if(e)return e}let e=function(){let e={},t=performance.timing;for(let r in t)if((0,K.Et)(t[r])){let n=t[r];e[r]=0===n?0:(0,H.gs)(n)}return e}(),t={entryType:T.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 io(e){return e.responseStart>=0&&e.responseStart<=(0,H.$S)()?e.responseStart:void 0}function ia(e,t){n7(e,"interactive",()=>{let e=(0,$.B)(ii)(),r=Object.assign(e.toJSON(),{entryType:T.RESOURCE,initiatorType:rq,duration:e.responseEnd,traceId:function(e){var t;let r,n,i=(r=(t=e).querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),it(r&&r.content,n&&n.content)||function(e){let t=function(e){for(let t=0;t<e.childNodes.length;t+=1){let r=ir(e.childNodes[t]);if(r)return r}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){let r=e.body.childNodes[t],n=ir(r);if(n)return n;if(!r4(r))break}}(e);if(t)return it((0,e2.rx)(t,"trace-id"),(0,e2.rx)(t,"trace-time"))}(e));if(!(!i||i.traceTime<=(0,H.x3)()-ie))return i.traceId}(document),toJSON:()=>({...r,toJSON:void 0})});t(r)})}function is(e,t,r,n){let i=rG(e)&&n?n.getMatchingRequest(e):void 0;return iu(e,i,r,t)}function iu(e,t,r,n){var i,o,a,s;if(!e&&!t)return;let u=t?function(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}(t,n):function(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:rX(63).toString(),rule_psr:t.rulePsr}}}
4(e,n);if(!n.trackResources&&!u)return;let l=e?(0,H.FR)(e.startTime):t.startClocks,c=e?function(e){let{duration:t,startTime:r,responseEnd:n}=e;return 0===t&&r<n?(0,H.vk)(r,n):t}(e):(i=r,o=l,a=t.duration,i.wasInPageStateDuringPeriod("frozen",o.relative,a)?void 0:a),d=j(k.TRACK_RESOURCE_HEADERS)?function(e,t){let r=t.trackResourceHeaders;if(0===r.length||!e)return;let n=r.filter(t=>void 0===t.url||(0,rr.K)([t.url],e.url,!0));if(0===n.length)return;let i=n.filter(e=>void 0===e.location||"any"===e.location||"response"===e.location),o=n.filter(e=>void 0===e.location||"any"===e.location||"request"===e.location),a=i.length>0?function(e,t){if(e.type===rU&&e.response)return ic(e.response.headers,t);if("xhr"===e.type&&e.xhr){let r=e.xhr.getAllResponseHeaders();if(r)try{return ic(new Headers(function(e){let t=[];for(let r of e.trim().split(/\r\n/)){let e=r.indexOf(":");e>0&&t.push([r.substring(0,e).trim(),r.substring(e+1).trim()])}return t}(r)),t)}catch(e){}}}(e,i):void 0,s=o.length>0?function(e,t){var r;let n;if(e.type===rU)return(null==(r=e.init)?void 0:r.headers)?n=new Headers(e.init.headers):e.input instanceof Request&&(n=e.input.headers),n?ic(n,t):void 0}(e,o):void 0;if(a||s)return{resource:{request:s?{headers:s}:void 0,response:a?{headers:a}:void 0}}}(t,n):void 0,f=t&&function(e,t){let r=(0,r2.TW)(e.url,t);if(r)return(0,r2.ON)(e,r)}(t,n),p=e&&function(e){let t=e.contentType;if(t)return{resource:{response:{headers:{"content-type":t}}}}}(e),m=Q({date:l.timeStamp,resource:{id:(0,e2.lk)(),duration:(0,H.Zj)(c),type:t?"xhr"===t.type?"xhr":rU:function(e){let t=e.name;if(!(0,t_.AY)(t))return rj;let r=(0,t_.L2)(t);for(let[t,n]of rF)if(n(e.initiatorType,r))return t;return rj}(e),method:t?t.method:void 0,status_code:t?t.status:0===(s=e.responseStatus)?void 0:s,url:t?rJ(t.url):e.name,protocol:e&&(""===e.nextHopProtocol?void 0:e.nextHopProtocol),delivery_type:e&&(""===e.deliveryType?"other":e.deliveryType),graphql:f},type:e5,_dd:{discarded:!n.trackResources}},u,e&&function(e){let{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...function(e){if(e.startTime<e.responseStart){let{encodedBodySize:t,decodedBodySize:r,transferSize:n}=e;return{size:r,encoded_body_size:t,decoded_body_size:r,transfer_size:n}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(e),...function(e){if(!rH(e))return;let{startTime:t,fetchStart:r,workerStart:n,redirectStart:i,redirectEnd:o,domainLookupStart:a,domainLookupEnd:s,connectStart:u,secureConnectionStart:l,connectEnd:c,requestStart:d,responseStart:f,responseEnd:p}=e,m={download:rZ(t,f,p),first_byte:rZ(t,d,f)};return 0<n&&n<r&&(m.worker=rZ(t,n,r)),r<c&&(m.connect=rZ(t,u,c),u<=l&&l<=c&&(m.ssl=rZ(t,l,c))),r<s&&(m.dns=rZ(t,a,s)),t<o&&(m.redirect=rZ(t,i,o)),m}(e)}}}(e),p,d);return{startClocks:l,duration:c,rawRumEvent:m,domainContext:function(e,t){if(t){let r={performanceEntry:e,isAborted:t.isAborted,handlingStack:t.handlingStack};return"xhr"===t.type?{xhr:t.xhr,...r}:{requestInput:t.input,requestInit:t.init,response:t.response,error:t.error,...r}}return{performanceEntry:e}}(e,t)}}let il=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/;function ic(e,t){let r={},n=0,i=0,o=!1;return e.forEach((e,a)=>{if(i++,n>=100){o||(x.Vy.warn("Maximum number of headers (100) has been reached. Further headers are dropped."),o=!0);return}let s=a.toLowerCase();if(il.test(s))return;let u=t.find(e=>(0,rr.K)([e.name],s));if(!u)return;let{extractor:l}=u,c=l?rg(e,l):e;void 0!==c&&(c.length>128&&(x.Vy.warn(`Header "${s}" value was truncated from ${c.length} to 128 characters.`),eF("Resource header value was truncated",{header_name:s,original_length:c.length,limit:128})),r[s]=(0,e2._R)(c,128),n++)}),o&&eF("Maximum number of resource headers reached",{collectedHeaderCount:n,totalHeaderCount:i}),n>0?r:void 0}let id=10*H.iW,ip=10*H.iW;function im(e,t,r=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:e$.l};if(nt(T.VISIBILITY_STATE)){let e=performance.getEntriesByType(T.VISIBILITY_STATE).filter(e=>"hidden"===e.name).find(e=>e.startTime>=t.relative);if(e)return{timeStamp:e.startTime,stop:e$.l}}let n=1/0,{stop:i}=el(e,r,["pagehide","visibilitychange"],e=>{("pagehide"===e.type||"hidden"===document.visibilityState)&&(n=e.timeStamp,i())},{capture:!0});return{get timeStamp(){return n},stop:i}}let ig=e=>{var t,r;let n,i,o,a;return e.previousRect.width*e.previousRect.height+e.currentRect.width*e.currentRect.height-(t=e.previousRect,r=e.currentRect,n=Math.max(t.left,r.left),i=Math.max(t.top,r.top),o=Math.min(t.right,r.right),a=Math.min(t.bottom,r.bottom),n>=o||i>=a?0:(o-n)*(a-i))};function iy({x:e,y:t,width:r,height:n}){return{x:e,y:t,width:r,height:n}}let iv=5*H.OY,ih=H.OY,ib=0,iS=1/0,i_=0,iw=()=>p?ib:window.performance.interactionCount||0,iE=+H.iW;function ik(e){return Math.min(e,iE)}
4function iT(){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 ix=H.OY,iA=5*H.iW,iC=5*H.iW;function iR(e){let t=e.indexOf("?");return t<0?e:e.slice(0,t)}let iI=H.iW,iO=[];async function iN(e){let t,r,n=e.sessionStoreStrategyType;n&&(n.type===tF?(t=tQ(n.cookieOptions,e),r={cookie:await iM(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):t=t2(),eF("Unexpected session state",{sessionStoreStrategyType:n.type,session:t,isSyntheticsTest:!!tL(),createdTimestamp:null==t?void 0:t.created,expireTimestamp:null==t?void 0:t.expire,...r}))}async function iM(){let e;return{count:(e="cookieStore"in window?await window.cookieStore.getAll(tD):document.cookie.split(/\s*;\s*/).filter(e=>e.startsWith(tD))).length,domain:tR()||"undefined",...e}}function iP(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}let i$=10*H.OY;function iL(){0!==g.batchCount&&(eG("Customer data measures",g),iU())}function iV(){return{min:1/0,max:0,sum:0}}function iD(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function iU(){g={batchCount:0,batchBytesCount:iV(),batchMessagesCount:iV()}}function ij(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}let iq=H.OY;function iF(e,t){let r=(0,e2.rx)(document.cookie,e),n=(0,ey.yb)(()=>{let n=(0,e2.rx)(document.cookie,e);n!==r&&(r=n,t(n))},iq);return()=>{(0,ey.vG)(n)}}let iB="datadog-ci-visibility-test-execution-id";function iG(e,t,r=3e3){let n=0,i=!1;return{isLimitReached(){if(0===n&&(0,ey.wg)(()=>{n=0},H.iW),(n+=1)<=r||i)return i=!1,!1;if(n===r+1){i=!0;try{t({message:`Reached max number of ${e}s by minute: ${r}`,source:ev.g.AGENT,startClocks:(0,H.M8)()})}finally{i=!1}}return!0}}}function iW(e){return"object"===(0,J.P)(e)}let iH={"view.name":"string","view.url":"string","view.referrer":"string"},iZ={context:"object"},iK={service:"string",version:"string"},iz=[e6,e8,e4,e5,e7];function iJ(e,t,r,n,i,o,a,u,c,f,h){var b,S;let _,w,E,A=[],R=new rO;R.subscribe(13,e=>Z("rum",e));let O=e=>{R.notify(14,{error:e}),eF("Error reported to customer",{"error.message":e.message})},N=ed(e),M=en()?(w={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:+!!((_=er())&&_.getCapabilities().includes("records"))},{findTrackedSession:()=>w,expire:e$.l,expireObservable:new I.cP,setForcedReplay:e$.l}):((E=function(e,t,r){let n=new I.cP,i=new I.cP,o=function(e,t,r,n=function(e,t){return e.type===tF?function(e,t){let r={isLockEnabled:0===(null!=s?s:s=function(e=window){var t;let r=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(r)?0:(null==(t=e.navigator.vendor)?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?1:2}()),persistSession:r=>tX(t,e,r,tj),retrieveSession:()=>tQ(t,e),expireSession:r=>tX(t,e,tH(r,e),tU)};if(!tC(tD)){let e=tC("_dd"),t=tC("_dd_r"),n=tC("_dd_l"),i={};e&&(i.id=e),n&&/^[01]$/.test(n)&&(i.logs=n),t&&/^[012]$/.test(t)&&(i.rum=t),tZ(i)||(tz(i),r.persistSession(i))}return r}(t,e.cookieOptions):e.type===tG?{isLockEnabled:!1,persistSession:t1,retrieveSession:t2,expireSession:e=>(function(e,t){t1(tH(e,t))})(e,t)}:{expireSession:e=>(function(e,t){re(tH(e,t))})(e,t),isLockEnabled:!1,persistSession:re,retrieveSession:t7}}(e,t)){let i,o=new I.cP,a=new I.cP,u=new I.cP,l=(0,ey.yb)(function(){let e=n.retrieveSession();tK(e)?t8({process:e=>tK(e)?tH(e,t):void 0,after:f},n):f(e)},rt);p();let{throttled:c,cancel:d}=(0,e$.n)(()=>{t8({process:e=>{if(tZ(e))return;let n=f(e);return function(e){if(tZ(e))return;let n=r(e.rum);e.rum=n,delete e.isExpired,"0"===n||e.id||(e.id=(0,e2.lk)(),e.created=String((0,H.x3)())),t.trackAnonymousUser&&!e.anonymousId&&(e.anonymousId=(0,e2.lk)())}(n),n},after:e=>{tZ(e)||m()||(i=e,o.notify()),i=e}},n)},rt);function f(e){var r;return tK(e)&&(e=tH(e,t)),m()&&((r=e,i.id!==r.id||i.rum!==r.rum)?(i=tH(i,t),a.notify()):(u.notify({previousState:i,newState:e}),i=e)),e}function p(){t8({process:e=>{if(tZ(e))return e.anonymousId=(0,e2.lk)(),tH(e,t)},after:e=>{i=e}},n)}function m(){return(null==i?void 0:i.rum)!==void 0}return{expandOrRenewSession:c,expandSession:function(){t8({process:e=>m()?f(e):void 0},n)},getSession:()=>
4i,renewObservable:o,expireObservable:a,sessionStateUpdateObservable:u,restartSession:p,expire:e=>{d(),!1===e&&i&&delete i.anonymousId,n.expireSession(i),f(tH(i,t))},stop:()=>{(0,ey.vG)(l)},updateSessionState:function(e){t8({process:t=>({...t,...e}),after:f},n)}}}(e.sessionStoreStrategyType,e,t);iO.push(()=>o.stop());let a=r$({expireDelay:tU});function u(){let t=o.getSession();return t?{id:t.id,trackingType:t.rum,isReplayForced:!!t.forcedReplay,anonymousId:t.anonymousId}:(iN(e).catch(()=>void 0),{id:"invalid",trackingType:"0",isReplayForced:!1,anonymousId:void 0})}return iO.push(()=>a.stop()),o.renewObservable.subscribe(()=>{a.add(u(),(0,H.$S)()),n.notify()}),o.expireObservable.subscribe(()=>{i.notify(),a.closeActive((0,H.$S)())}),o.expandOrRenewSession(),a.add(u(),(0,H.Oc)().relative),r.observable.subscribe(()=>{r.isGranted()?o.expandOrRenewSession():o.expire(!1)}),function(e,t){let{stop:r}=el(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});iO.push(r)}(e,()=>{r.isGranted()&&o.expandOrRenewSession()}),function(e,t){let r=()=>{"visible"===document.visibilityState&&t()},{stop:n}=eu(e,document,"visibilitychange",r);iO.push(n);let i=(0,ey.yb)(r,iI);iO.push(()=>{(0,ey.vG)(i)})}(e,()=>o.expandSession()),function(e,t){let{stop:r}=eu(e,window,"resume",t,{capture:!0});iO.push(r)}(e,()=>o.restartSession()),{findSession:(e,t)=>a.find(e,t),renewObservable:n,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}(e,t=>{var r,n,i;return r=e,"0"===(i=n=t)||"1"===i||"2"===i?n:(0,K.ic)(r.sessionSampleRate)?(0,K.ic)(r.sessionReplaySampleRate)?"1":"2":"0"},o)).expireObservable.subscribe(()=>{R.notify(9)}),E.renewObservable.subscribe(()=>{R.notify(10)}),E.sessionStateUpdateObservable.subscribe(({previousState:e,newState:t})=>{if(!e.forcedReplay&&t.forcedReplay){let e=E.findSession();e&&(e.isReplayForced=!0)}}),{findTrackedSession:e=>{let t=E.findSession(e);if(t&&"0"!==t.trackingType)return{id:t.id,sessionReplay:"1"===t.trackingType?1:2*!!t.isReplayForced,anonymousId:t.anonymousId}},expire:E.expire,expireObservable:E.expireObservable,setForcedReplay:()=>E.updateSessionState({forcedReplay:"1"})});if(en()){let e;e=er(),R.subscribe(13,t=>{e.send("rum",t)});let t=N.subscribe(e=>{R.notify(11,e)});A.push(()=>t.unsubscribe())}else{let t,r,n=(b=M.expireObservable,t=[e.rumEndpointBuilder],e.replica&&t.push(e.replica.rumEndpointBuilder),r=ep({encoder:i(2),request:eA(t,O),flushController:eN({pageMayExitObservable:N,sessionExpireObservable:b})}),R.subscribe(13,e=>{e.type===e9?r.upsert(e,e.view.id):r.add(e)}),r),o=n.flushController.preparePageExitFlushObservable.subscribe(e=>{R.notify(11,{reason:e})});A.push(()=>o.unsubscribe()),A.push(()=>n.stop()),S=n.flushController.flushObservable,c.metricsEnabled&&(iU(),y=!1,R.subscribe(13,()=>{y=!0}),S.subscribe(({bytesCount:e,messagesCount:t})=>{y&&(y=!1,g.batchCount+=1,iD(g.batchBytesCount,e),iD(g.batchMessagesCount,t))}),(0,ey.yb)(iL,i$))}f.register(1,()=>o.isGranted()?eP:eM);let{stop:P}=function(e,t){if(!t.metricsEnabled)return{stop:e$.l};let{unsubscribe:r}=e.subscribe(4,({initialViewMetrics:e})=>{var t,n;e.largestContentfulPaint&&e.navigationTimings&&(eG("Initial view metrics",{metrics:(t=e.largestContentfulPaint,n=e.navigationTimings,{lcp:{value:t.value},navigation:{domComplete:n.domComplete,domContentLoaded:n.domContentLoaded,domInteractive:n.domInteractive,firstByte:n.firstByte,loadEvent:n.loadEvent}})}),r())});return{stop:r}}(R,c);A.push(P);let{stop:U,...F}=function(e,t,r,n,i,o,a,s,u,c){var f,g,y,h,b,S,_,w,E,A,R,O;let N,M,P,U,F,B,G,W,Z,Y,er,eo,ed,ef,ep,em,eg,eh,eb=[],eS=(M=function(){let e,t=window;if(t.Zone&&(e=(0,es.W)(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){let r=new t.MutationObserver(e$.l),n=(0,es.W)(r,"originalInstance");e=n&&n.constructor}return e||(e=t.MutationObserver),e}(),new I.cP(e=>{if(!M)return;let t=new M((0,C.dm)(t=>e.notify(t)));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>t.disconnect()})),e_=(P=(0,D.yG)(location),new I.cP(e=>{let{stop:t}=function(e,t){let{stop:r}=(0,tS.H)(iP("pushState"),"pushState",({onPostCall:e})=>{e(t)}),{stop:n}=(0,tS.H)(iP("replaceState"),"replaceState",({onPostCall:e})=>{e(t)}),{stop:i}=eu(e,window,"popstate",t);return{stop:()=>{r(),n(),i()}}}(r,i),{stop:n}
4=eu(r,window,"hashchange",i);function i(){if(P.href===location.href)return;let t=(0,D.yG)(location);e.notify({newLocation:t,oldLocation:P}),P=t}return()=>{t(),n()}})),{observable:ew,stop:eE}=function(){let e=new I.cP,{stop:t}=(0,tS.H)(window,"open",()=>e.notify());return{observable:e,stop:t}}();eb.push(eE),t.register(0,({eventType:e})=>{let t=r.source;return{type:e,_dd:{format_version:2,drift:(0,H.TP)(),configuration:{session_sample_rate:(0,K.LI)(r.sessionSampleRate,3),session_replay_sample_rate:(0,K.LI)(r.sessionReplaySampleRate,3),profiling_sample_rate:(0,K.LI)(r.profilingSampleRate,3),trace_sample_rate:(0,K.LI)(r.traceSampleRate,3),beta_encode_cookie_options:r.betaEncodeCookieOptions},browser_sdk_version:en()?"6.33.0":void 0,sdk_name:u},application:{id:r.applicationId},date:(0,H.nx)(),source:t}}),t.register(1,()=>({application:{id:r.applicationId}}));let ek=function(e,t,r=500){let n,i=r$({expireDelay:tU,maxEntries:4e3});nt(T.VISIBILITY_STATE)&&performance.getEntriesByType(T.VISIBILITY_STATE).forEach(e=>{a("hidden"===e.name?"hidden":"active",e.startTime)}),a(ij(),(0,H.$S)());let{stop:o}=el(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":ij(),e.timeStamp)},{capture:!0});function a(e,t=(0,H.$S)()){e!==n&&(n=e,i.closeActive(t),i.add({state:n,startTime:t},t))}function s(e,t,r){return i.findAll(t,r).some(t=>t.state===e)}return e.register(0,({startTime:e,duration:t=0,eventType:n})=>n===e9?{type:n,_dd:{page_states:function(e,t,r){if(0!==e.length)return e.slice(-r).reverse().map(({state:e,startTime:r})=>({state:e,start:(0,H.Zj)((0,H.vk)(t,r))}))}(i.findAll(e,t),e,r)}}:n===e6||n===e8?{type:n,view:{in_foreground:s("active",e,0)}}:eP),{wasInPageStateDuringPeriod:s,addPageState:a,stop:()=>{o(),i.stop()}}}(t,r);eb.push(()=>ek.stop());let eT=(U=r$({expireDelay:tU}),e.subscribe(1,e=>{var t;U.add({service:(t=e).service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks},e.startClocks.relative)}),e.subscribe(6,({endClocks:e})=>{U.closeActive(e.relative)}),e.subscribe(3,e=>{let t=U.find(e.startClocks.relative);t&&(e.name&&(t.name=e.name),e.context&&(t.context=e.context),t.sessionIsActive=e.sessionIsActive)}),e.subscribe(10,()=>{U.reset()}),{findView:e=>U.find(e),stop:()=>{U.stop()}});eb.push(()=>eT.stop());let ex=function(e,t,r){let n,i=r$({expireDelay:tU});e.subscribe(1,({startClocks:e,url:t})=>{let r=(0,$.B)(location).href,o=void 0!==t?(0,t_.c$)(t,r).href:r;i.add(a({url:o,referrer:n||document.referrer}),e.relative),n=o}),e.subscribe(6,({endClocks:e})=>{i.closeActive(e.relative)});let o=r.subscribe(({newLocation:e})=>{let t=i.find();
4if(t){let r=(0,H.$S)();i.closeActive(r),i.add(a({url:e.href,referrer:t.referrer}),r)}});function a({url:e,referrer:t}){return{url:e,referrer:t}}return t.register(0,({startTime:e,eventType:t})=>{let r=i.find(e);return r?{type:t,view:{url:r.url,referrer:r.referrer}}:eM}),{findUrl:e=>i.find(e),stop:()=>{o.unsubscribe(),i.stop()}}}(e,t,e_);eb.push(()=>ex.stop());let eA=(F=r$({expireDelay:tU}),e.subscribe(1,({startClocks:e})=>{F.add({},e.relative)}),e.subscribe(6,({endClocks:e})=>{F.closeActive(e.relative)}),t.register(0,({startTime:e,eventType:t})=>{if(!r.trackFeatureFlagsForEvents.concat([e9,e8]).includes(t))return eP;let n=F.find(e);return!n||(0,D.RI)(n)?eP:{type:t,feature_flags:n}}),{addFeatureFlagEvaluation:(e,t)=>{let r=F.find();r&&(r[e]=t)}});t.register(0,({eventType:e,startTime:t})=>{let r,o,a,s=n.findTrackedSession(t),u=eT.findView(t);return s&&u?(e===e9?(r=!!i.getReplayStats(u.id)||void 0,o=1===s.sessionReplay,a=!!u.sessionIsActive&&void 0):r=!!i.isRecording()||void 0,{type:e,session:{id:s.id,type:"user",has_replay:r,sampled_for_replay:o,is_active:a}}):eM}),t.register(1,({startTime:e})=>{let t=n.findTrackedSession(e);return t?{session:{id:t.id}}:eP}),t.register(0,({eventType:e})=>({type:e,connectivity:et()})),l||(l=null!=(f=function(){try{let e=sessionStorage.getItem(rI);if(e)return e;let t=(0,e2.lk)();return sessionStorage.setItem(rI,t),t}catch(e){return}}())?f:(0,e2.lk)()),B=l,t.register(0,()=>({tab:{id:B}}));let eC=(G=tv(),r.storeContextsAcrossPages&&tp(r,G,"rum",2),t.register(0,()=>{let e=G.getContext();return{context:e}}),G),eR=(W=th(),r.storeContextsAcrossPages&&tp(r,W,"rum",1),t.register(0,({eventType:e,startTime:t})=>{let i=W.getContext(),o=n.findTrackedSession(t);return(o&&o.anonymousId&&!i.anonymous_id&&r.trackAnonymousUser&&(i.anonymous_id=o.anonymousId),(0,D.RI)(i))?eP:{type:e,usr:i}}),t.register(1,({startTime:e})=>{var t;return{anonymous_id:null==(t=n.findTrackedSession(e))?void 0:t.anonymousId}}),W),eI=(Z=tb(),r.storeContextsAcrossPages&&tp(r,Z,"rum",4),t.register(0,()=>{let e=Z.getContext();return(0,D.RI)(e)||!e.id?eP:{account:e}}),Z),eO=function(e,t,r,n,i){var o;let a,s,{unsubscribe:u}=e.subscribe(0,t=>{e.notify(12,n0(t))}),l=e$.l;i.trackUserInteractions&&(a=function(e,t,r,n){let i,o=nN(e),a=new I.cP;e.subscribe(5,l),e.subscribe(11,l);let{stop:s}=function(e,{onPointerDown:t,onPointerUp:r}){let n,i,o={selection:!1,input:!1,scroll:!1},a=[eu(e,window,"pointerdown",e=>{nZ(e)&&(n=nH(),o={selection:!1,input:!1,scroll:!1},i=t(e))},{capture:!0}),eu(e,window,"selectionchange",()=>{n&&nH()||(o.selection=!0)},{capture:!0}),eu(e,window,"scroll",()=>{o.scroll=!0},{capture:!0,passive:!0}),eu(e,window,"pointerup",e=>{if(nZ(e)&&i){let t=o;r(i,e,()=>t),i=void 0}},{capture:!0}),eu(e,window,"input",()=>{o.input=!0},{capture:!0})];return{stop:()=>{a.forEach(e=>e.stop())}}}(n,{onPointerDown:i=>(function(e,t,r,n,i){let o,a=e.betaTrackActionsInShadowDom?nQ(n):n.target;if((o=e.enablePrivacyForActionName?nA(a,e.defaultPrivacyLevel):nE.ALLOW)===nE.HIDDEN)return;let s=function(e,t,r){let n=r.betaTrackActionsInShadowDom?nQ(e):e.target,i=n.getBoundingClientRect(),o=nf(n,r.actionNameAttribute),a=function(e,t){let r=e.filter(e=>e instanceof Element&&!nM.includes(e.tagName));if(0===r.length)return"";let n=t?[t].concat(n$):n$,i="";for(let e of r)if((i+=function(e,t){let r=ng(e),n=nm(e),i=Array.from(e.classList).filter(e=>!np(e)).sort().map(e=>`.${CSS.escape(e)}`).join(""),o=function(e,t){let r=[];for(let n of Array.from(e.attributes))t.includes(n.name)&&r.push(nv(n.name,n.value));return r.sort().join("")}(e,t),a=function(e){let t=Array.from(e.parentNode.children);if(t.length<=1)return"";let r=t.filter(t=>t.tagName===e.tagName),n=t.indexOf(e),i=nh(e);return`:nth-child(${n+1})${r.length>1?`:nth-of-type(${i})`:""}`}(e);return`${r}${n||""}${o}${i}${a};`}(e,n)).length>=nP)return(0,e2._R)(i,nP);return i}(e.composedPath(),r.actionNameAttribute);o&&nY(e.timeStamp,o);let{name:s,nameSource:u}=function(e,t,r=nE.ALLOW){let n=new Map,{actionNameAttribute:i}=t,o=nV(e,ns)||i&&nV(e,i);return o?{name:o,nameSource:"custom_attribute"}:r===nE.MASK?{name:nu,nameSource:"mask_placeholder"}:nj(e,nD,t,n)||nj(e,nU,t,n)||{name:"",nameSource:"blank"}}(n,r,t);return{type:"click",target:{width:Math.round(i.width),height:Math.round(i.height),selector:o,composedPathSelector:a||void 0},position:{x:Math.round(e.clientX-i.left),y:Math.round(e.clientY-i.top)},name:s,nameSource:u}}(n,o,e),u=!1;return nn(t,r,i,e,e=>{u=e.hadActivity},100),{clickActionBase:s,hadActivityOnPointerDown:()=>u}})(n,e,t,i,r),onPointerUp:({clickActionBase:i,hadActivityOnPointerDown:s},l,c)=>{!function(e,t,r,n,i,o,a,s,u,l,c){var d;let f=function e(t,r,n,i,o){let a,s=(0,e2.lk)(),u=(0,H.FR)(o.timeStamp),l=r.start(s,u,i,{isChildEvent:nX});t.notify(15,l);let c=0,d=[],f=new I.cP;function p(e){0===c&&(c=1,a=e?r.stop(s,(0,H.jR)(e)):r.discard(s),f.notify())}return{event:o,stop:p,stopObservable:f,get hasError(){var m;let e=null!=(m=null==a?void 0:a.counts)?m:r.getCounts(s);return!!e&&e.errorCount>0},get hasPageActivity(){return a&&"duration"in a},getUserActivity:n,addFrustration:e=>{d.push(e)},get startClocks(){return u},isStopped:()=>1===c||2===c,clone:()=>e(t,r,n,i,o),validate:e=>{if(p(),1!==c||!a)return;let r={frustrationTypes:d,events:null!=e?e:[o],event:o,...a,counts:a.counts};t.notify(0,r),c=2},discard:()=>{p(),c=2}}}(t,i,l,s,u);a(f);let p=null==(d=null==s?void 0:s.target)?void 0:d.selector;p&&nY(u.timeStamp,p);let{stop:m}=nn(t,r,n,e,e=>{e.hadActivity&&e.end<f.startClocks.timeStamp?f.discard():e.hadActivity?f.stop(e.end):c()?f.stop(f.startClocks.timeStamp):f.stop()},nz),g=t.subscribe(5,({endClocks:e})=>{f.stop(e.timeStamp)}),y=t.subscribe(11,()=>{f.stop((0,H.nx)())}),v=o.subscribe(()=>{f.stop()});f.stopObservable.subscribe(()=>{y.unsubscribe(),g.unsubscribe(),m(),v.unsubscribe()})}(n,e,t,r,o,a,u,i,l,c,s)}});return{stop:()=>
4{l(),a.notify(),s(),o.stopAll()},findActionId:o.findId};function u(e){if(!i||!i.tryAppend(e)){let t=e.clone();i=function(e,t){let r,n=[],i=0;function o(e){e.stopObservable.subscribe(a),n.push(e),(0,ey.DJ)(r),r=(0,ey.wg)(s,nL)}function a(){1===i&&n.every(e=>e.isStopped())&&(i=2,t(n))}function s(){(0,ey.DJ)(r),0===i&&(i=1,a())}return o(e),{tryAppend:e=>{var t,r,a,u;return 0===i&&(!(n.length>0)||(t=n[n.length-1].event,r=e.event,t.target===r.target&&100>=(a=t,u=r,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2)))&&t.timeStamp-r.timeStamp<=nL)?(o(e),!0):(s(),!1))},stop:()=>{s()}}}(e,e=>{(function(e,t){let{isRage:r}=function(e,t){if(function(e){if(e.some(e=>e.getUserActivity().selection||e.getUserActivity().scroll))return!1;for(let t=0;t<e.length-2;t+=1)if(e[t+3-1].event.timeStamp-e[t].event.timeStamp<=H.OY)return!0;return!1}(e))return t.addFrustration("rage_click"),e.some(nK)&&t.addFrustration(to),t.hasError&&t.addFrustration(ti),{isRage:!0};let r=e.some(e=>e.getUserActivity().selection);return e.forEach(e=>{e.hasError&&e.addFrustration(ti),nK(e)&&!r&&e.addFrustration(to)}),{isRage:!1}}(e,t);r?(e.forEach(e=>e.discard()),t.stop((0,H.nx)()),t.validate(e.map(e=>e.event))):(t.discard(),e.forEach(e=>e.validate()))})(e,t),i=void 0})}}function l(){i&&i.stop()}}(e,r,n,i));let c=(o=t=>{e.notify(12,n0(t))},{addAction:function(e){o({id:(0,e2.lk)(),frustrationTypes:[],...e})},startAction:function(t,r={},n=(0,H.M8)()){var i;let o=null!=(i=r.actionKey)?i:t,a=s.start(o,n,{name:t,...r},{isChildEvent:nX});e.notify(15,a)},stopAction:function(e,t={},r=(0,H.M8)()){var n;let i=null!=(n=t.actionKey)?n:e,a=s.stop(i,r,t);if(!a)return;let u=[];a.counts&&a.counts.errorCount>0&&u.push(ti),o({...a,type:a.type||tn,frustrationTypes:u})},findActionId:(s=nN(e)).findId,stop:s.stopAll}),d={findActionId:e=>{var t;let r=c.findActionId(e),n=null!=(t=null==a?void 0:a.findActionId(e))?t:[];return r.concat(n)}};return t.register(0,({startTime:e,eventType:t})=>{if(t!==e8&&t!==e5&&t!==e4)return eP;let r=t===e4?(0,H.Gw)(e,1):e,n=d.findActionId(r);return n.length?{type:t,action:{id:n}}:eP}),t.register(1,({startTime:e})=>({action:{id:d.findActionId(e)}})),{addAction:c.addAction,startAction:c.startAction,stopAction:c.stopAction,actionContexts:d,stop:()=>{u(),l(),c.stop(),null==a||a.stop()}}}(e,t,eS,ew,r);eb.push(eO.stop);let eN={addEvent:(t,r,n,i)=>{iz.includes(r.type)&&e.notify(12,{startClocks:(0,H.FR)(t),rawRumEvent:r,domainContext:n,duration:i})}},eL=(er=requestAnimationFrame((0,C.dm)(()=>{Y=iT()})),eo=(!m&&(g=r,m=new I.cP(e=>{let{throttled:t}=(0,e$.n)(()=>{e.notify(iT())},200);return eu(g,window,"resize",t,{capture:!0,passive:!0}).stop})),m).subscribe(e=>{Y=e}).unsubscribe,t.register(0,({eventType:e})=>({type:e,display:Y?{viewport:Y}:void 0})),{stop:()=>{eo(),er&&cancelAnimationFrame(er)}});eb.push(eL.stop);let eV=function(e,t,r=function(e,t){let r=window.cookieStore?function(e){return(t,r)=>eu(e,window.cookieStore,"change",e=>{let n=e.changed.find(e=>e.name===t)||e.deleted.find(e=>e.name===t);n&&r(n.value)}).stop}(e):iF;return new I.cP(e=>r(t,t=>e.notify(t)))}(e,iB)){var n;let i=tC(iB)||(null==(n=window.Cypress)?void 0:n.env("traceId")),o=r.subscribe(e=>{i=e});return t.register(0,({eventType:e})=>"string"!=typeof i?eP:{type:e,session:{type:"ci_test"},ci_test:{test_execution_id:i}}),{stop:()=>{o.unsubscribe()}}}(r,t);eb.push(eV.stop),t.register(0,({eventType:e})=>tL()?{type:e,session:{type:"synthetics"},synthetics:{...tL(),injected:t$()}}:eP),v={[e9]:{"view.performance.lcp.resource_url":"string",...iZ,...iH,...iK},[e8]:{"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string",...iZ,...iH,...iK},[e5]:{"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object",...iZ,...iH,...iK},[e6]:{"action.target.name":"string",...iZ,...iH,...iK},[e4]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...iZ,...iH,...iK},[e7]:{...iZ,...iH,...iK}},ed={[e8]:iG(e8,c,void 0),[e6]:iG(e6,c,void 0),[e7]:iG(e7,c,void 0)},e.subscribe(12,({startClocks:n,duration:i,rawRumEvent:o,domainContext:a})=>{let s=t.triggerHook(0,{eventType:o.type,rawRumEvent:o,domainContext:a,startTime:n.relative,duration:i});if(s===eM)return;let u=Q(s,o,{ddtags:q(r).join(",")});(function(e,t,r,n){var i,o;if(t){let n,i,a=(o=v[e.type],i=(e=>
4t(e,r))(n=X(e)),ea(o).forEach(([t,r])=>(function e(t,r,n,i){let[o,...a]=n;if("[]"===o){Array.isArray(t)&&Array.isArray(r)&&t.forEach((t,n)=>e(t,r[n],a,i));return}if(iW(t)&&iW(r)){if(a.length>0)return e(t[o],r[o],a,i);!function(e,t,r,n){if(e[t]===r)return;let i=(0,J.P)(r);i===n?e[t]=(0,eH.a)(r):"object"===n&&("undefined"===i||"null"===i)&&(e[t]={})}(t,o,r[o],i)}})(e,n,t.split(/\.|(?=\[\])/),r)),i);if(!1===a&&e.type!==e9)return!1;!1===a&&x.Vy.warn("Can't dismiss view events using beforeSend!")}return!(null==(i=n[e.type])?void 0:i.isLimitReached())})(u,r.beforeSend,a,ed)&&((0,D.RI)(u.context)&&delete u.context,e.notify(13,u))});let{addTiming:eD,setLoadingTime:eU,startView:ej,setViewName:eq,setViewContext:eG,setViewContextProperty:eW,getViewContext:eZ,stop:eK}=(e.subscribe(4,t=>{var n,o,a,s,u,l,c,d,f,p,m,g,y,v,h,b,S,_,w,E;let k,T,x;return e.notify(12,(n=t,o=r,k=i.getReplayStats(n.id),T=null==(s=null==(a=n.commonViewMetrics)?void 0:a.cumulativeLayoutShift)?void 0:s.devicePixelRatio,x={_dd:{document_version:n.documentVersion,replay_stats:k,cls:T?{device_pixel_ratio:T}:void 0,configuration:{start_session_replay_recording_manually:o.startSessionReplayRecordingManually}},date:n.startClocks.timeStamp,type:e9,view:{action:{count:n.eventCounts.actionCount},frustration:{count:n.eventCounts.frustrationCount},cumulative_layout_shift:null==(u=n.commonViewMetrics.cumulativeLayoutShift)?void 0:u.value,cumulative_layout_shift_time:(0,H.Zj)(null==(l=n.commonViewMetrics.cumulativeLayoutShift)?void 0:l.time),cumulative_layout_shift_target_selector:null==(c=n.commonViewMetrics.cumulativeLayoutShift)?void 0:c.targetSelector,first_byte:(0,H.Zj)(null==(d=n.initialViewMetrics.navigationTimings)?void 0:d.firstByte),dom_complete:(0,H.Zj)(null==(f=n.initialViewMetrics.navigationTimings)?void 0:f.domComplete),dom_content_loaded:(0,H.Zj)(null==(p=n.initialViewMetrics.navigationTimings)?void 0:p.domContentLoaded),dom_interactive:(0,H.Zj)(null==(m=n.initialViewMetrics.navigationTimings)?void 0:m.domInteractive),error:{count:n.eventCounts.errorCount},first_contentful_paint:(0,H.Zj)(n.initialViewMetrics.firstContentfulPaint),first_input_delay:(0,H.Zj)(null==(g=n.initialViewMetrics.firstInput)?void 0:g.delay),first_input_time:(0,H.Zj)(null==(y=n.initialViewMetrics.firstInput)?void 0:y.time),first_input_target_selector:null==(v=n.initialViewMetrics.firstInput)?void 0:v.targetSelector,interaction_to_next_paint:(0,H.Zj)(null==(h=n.commonViewMetrics.interactionToNextPaint)?void 0:h.value),interaction_to_next_paint_time:(0,H.Zj)(null==(b=n.commonViewMetrics.interactionToNextPaint)?void 0:b.time),interaction_to_next_paint_target_selector:null==(S=n.commonViewMetrics.interactionToNextPaint)?void 0:S.targetSelector,is_active:n.isActive,name:n.name,largest_contentful_paint:(0,H.Zj)(null==(_=n.initialViewMetrics.largestContentfulPaint)?void 0:_.value),largest_contentful_paint_target_selector:null==(w=n.initialViewMetrics.largestContentfulPaint)?void 0:w.targetSelector,load_event:(0,H.Zj)(null==(E=n.initialViewMetrics.navigationTimings)?void 0:E.loadEvent),loading_time:r8((0,H.Zj)(n.commonViewMetrics.loadingTime)),loading_type:n.loadingType,long_task:{count:n.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:r,firstInput:n,largestContentfulPaint:i}){return{cls:e&&{score:e.value,timestamp:(0,H.Zj)(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:r&&{timestamp:(0,H.Zj)(r)},fid:n&&{duration:(0,H.Zj)(n.delay),timestamp:(0,H.Zj)(n.time),target_selector:n.targetSelector},inp:t&&{duration:(0,H.Zj)(t.value),timestamp:(0,H.Zj)(t.time),target_selector:t.targetSelector,sub_parts:t.subParts?{input_delay:(0,H.Zj)(t.subParts.inputDelay),processing_duration:(0,H.Zj)(t.subParts.processingDuration),presentation_delay:(0,H.Zj)(t.subParts.presentationDelay)}:void 0},lcp:i&&{timestamp:(0,H.Zj)(i.value),target_selector:i.targetSelector,resource_url:i.resourceUrl,sub_parts:i.subParts?{load_delay:(0,H.Zj)(i.subParts.loadDelay),load_time:(0,H.Zj)(i.subParts.loadTime),render_delay:(0,H.Zj)(i.subParts.renderDelay)}:void 0}}}(n.commonViewMetrics,n.initialViewMetrics),resource:{count:n.eventCounts.resourceCount},time_spent:(0,H.Zj)(n.duration)},display:n.commonViewMetrics.scroll?{scroll:{max_depth:n.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:n.
4commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:n.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,H.Zj)(n.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:o.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}()}},(0,D.RI)(n.customTimings)||(x.view.custom_timings=(0,D.LG)(n.customTimings,H.Zj)),{rawRumEvent:x,startClocks:n.startClocks,duration:n.duration,domainContext:{location:n.location,handlingStack:n.handlingStack}}))}),t.register(0,({startTime:e,eventType:t})=>{let r=eT.findView(e);return r?{type:t,service:r.service,version:r.version,context:r.context,view:{id:r.id,name:r.name}}:eM}),t.register(1,({startTime:e})=>{var t;return{view:{id:null==(t=eT.findView(e))?void 0:t.id}}}),function(e,t,r,n,i,o,a){let s,u,l=new Set,c=d(te,(0,H.Oc)(),a);function d(i,o,a){let s=function(e,t,r,n,i,o=(0,H.M8)(),a){var s;let u,l=(0,e2.lk)(),c=new I.cP,d={},f=0,m=(0,D.yG)((0,$.B)(window.location)),g=ty(),y=!0,v=null==a?void 0:a.name,h=(null==a?void 0:a.service)||n.service,b=(null==a?void 0:a.version)||n.version,S=null==a?void 0:a.context,_=null==a?void 0:a.handlingStack;S&&g.setContext(S);let w={id:l,name:v,startClocks:o,service:h,version:b,context:S,url:null==a?void 0:a.url};e.notify(1,w),e.notify(2,w);let{throttled:E,cancel:k}=(0,e$.n)(W,3e3,{leading:!1}),{setLoadEvent:A,setViewEnd:R,stop:O,stopINPTracking:N,getCommonViewMetrics:M,setLoadingTime:P}=function(e,t,r,n,i,o,a){let s={},u=!1,l=!1,{stop:c,setLoadEvent:d}=function(e,t,r,n,i,o,a){let s=i===te,u=!0,l=[],c=im(n,o);function d(){if(!u&&!s&&l.length>0){let e=Math.max(...l);e<c.timeStamp-o.relative&&a(e)}}let{stop:f}=nn(e,t,r,n,e=>{u&&(u=!1,e.hadActivity&&l.push((0,H.vk)(o.timeStamp,e.end)),d())});return{stop:()=>{f(),c.stop()},setLoadEvent:e=>{s&&(s=!1,l.push(e),d())}}}(e,t,r,n,o,a,e=>{u||(s.loadingTime=e,i())}),{stop:f}=function(e,t,r,n=function(e,t=ix){return new I.cP(r=>{if(window.ResizeObserver){let n=(0,e$.n)(function(){r.notify(function(){let e,t=Math.round((e=window.visualViewport)?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0),{height:r}=iT();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(r+t),scrollTop:t}}())},t,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver((0,C.dm)(n.throttled));i&&o.observe(i);let a=eu(e,window,"scroll",n.throttled,{passive:!0});return()=>{n.cancel(),o.disconnect(),a.stop()}}})}(e)){let i=0,o=0,a=0,s=n.subscribe(({scrollDepth:e,scrollTop:n,scrollHeight:s})=>{let u=!1;if(e>i&&(i=e,u=!0),s>o){o=s;let e=(0,H.$S)();a=(0,H.vk)(t.relative,e),u=!0}u&&r({maxDepth:Math.min(i,o),maxDepthScrollTop:n,maxScrollHeight:o,maxScrollHeightTime:a})});return{stop:()=>s.unsubscribe()}}(n,a,e=>{s.scroll=e}),{stop:m}=function(e,t,r){let n,i,o,a,s;if(!(nt(T.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:e$.l};let u=0;r({value:0});let l=(a=0,s=0,{update:e=>{let t;return void 0===i||e.startTime-o>=ih||e.startTime-i>=iv?(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}}}),c=ne(e,{type:T.LAYOUT_SHIFT,buffered:!0}).subscribe(i=>{var o;for(let a of i){if(a.hadRecentInput||a.startTime<t)continue;let{cumulatedValue:i,isMaxValue:s}=l.update(a);if(s){let e=function(e){let t;for(let r of e)if(r.node&&r9(r.node)){let e=ig(r);(!t||ig(t)<e)&&(t=r)}return t}(a.sources);n={target:(null==e?void 0:e.node)?new WeakRef(e.node):void 0,time:(0,H.vk)(t,a.startTime),previousRect:null==e?void 0:e.previousRect,currentRect:null==e?void 0:e.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>u){u=i;let t=null==(o=null==n?void 0:n.target)?void 0:o.deref();r({value:(0,K.LI)(u,4),targetSelector:t&&nf(t,e.actionNameAttribute),time:null==n?void 0:n.time,previousRect:(null==n?void 0:n.previousRect)?iy(n.previousRect):void 0,currentRect:(null==n?void 0:n.currentRect)?iy(n.currentRect):void 0,devicePixelRatio:null==n?void 0:n.devicePixelRatio})}}});return{stop:()=>{c.unsubscribe()}}}(n,a.relative,e=>{s.cumulativeLayoutShift=e,i()}),{stop:g,getInteractionToNextPaint:y,setViewEnd:v}=function(e,t,r){var n;let i,o,a;if(!(nt(T.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>
4void 0,setViewEnd:e$.l,stop:e$.l};let s=1/0,{getViewInteractionCount:u,stopViewInteractionCount:l}=(n=r,"interactionCount"in performance||p||(p=new window.PerformanceObserver((0,C.dm)(e=>{e.getEntries().forEach(e=>{e.interactionId&&(iS=Math.min(iS,e.interactionId),ib=((i_=Math.max(i_,e.interactionId))-iS)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),o=n===te?0:iw(),a={stopped:!1},{getViewInteractionCount:()=>a.stopped?a.interactionCount:iw()-o,stopViewInteractionCount:()=>{a={stopped:!0,interactionCount:iw()-o}}}),c=function(e){let t=[];function r(){t.sort((e,t)=>t.duration-e.duration).splice(10)}return{process(e){let n=t.findIndex(t=>e.interactionId===t.interactionId),i=t[t.length-1];-1!==n?e.duration>t[n].duration&&(t[n]=e,r()):(t.length<10||e.duration>i.duration)&&(t.push(e),r())},estimateP98Interaction(){let r=Math.min(t.length-1,Math.floor(e()/50));return t[r]},isTracked:e=>t.some(t=>t.interactionId===e)}}(u),d=function(e){let t=new Map;function r(e,t){e.startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd)}return{process(e){if(void 0===e.interactionId||!e.processingStart||!e.processingEnd)return;let n=e.startTime+e.duration,i=t.get(e.interactionId);if(i)return void r(i,e);for(let[,i]of t.entries())if(8>=Math.abs(n-i.referenceRenderTime)){r(i,e),t.set(e.interactionId,i);return}t.set(e.interactionId,{startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,referenceRenderTime:n})},pruneUntracked(){for(let[r]of t)e.isTracked(r)||t.delete(r)},computeSubParts(e,r){if(!e.processingStart||!e.processingEnd||void 0===e.interactionId)return;let n=t.get(e.interactionId);if(!n)return;let i=Math.max(n.startTime+r,n.processingStart),o=Math.min(n.processingEnd,i);return{inputDelay:(0,H.vk)(n.startTime,n.processingStart),processingDuration:(0,H.vk)(n.processingStart,o),presentationDelay:(0,H.vk)(o,i)}},stop(){t.clear()}}}(c),f=ne(e,{type:T.FIRST_INPUT,buffered:!0}).subscribe(g),m=ne(e,{type:T.EVENT,durationThreshold:40,buffered:!0}).subscribe(g);function g(r){for(let e of r)e.interactionId&&e.startTime>=t&&e.startTime<=s&&(c.process(e),d.process(e));d.pruneUntracked();let n=c.estimateP98Interaction();n&&function(r){let n=(0,H.vk)(t,r.startTime);if(!i||r.duration!==i.duration||n!==i.startTime){var o;let t,a=(o=r.startTime,t=nJ.get(o),nJ.delete(o),t);!a&&r.target&&r9(r.target)&&(a=nf(r.target,e.actionNameAttribute)),i={duration:r.duration,startTime:n,targetSelector:a}}i.subParts=d.computeSubParts(r,ik(i.duration))}(n)}return{getInteractionToNextPaint:()=>i?{value:ik(i.duration),targetSelector:i.targetSelector,time:i.startTime,subParts:i.subParts}:u()?{value:0}:void 0,setViewEnd:e=>{s=e,l()},stop:()=>{m.unsubscribe(),f.unsubscribe(),d.stop()}}}(n,a.relative,o);return{stop:()=>{c(),m(),f()},stopINPTracking:g,setLoadEvent:d,setViewEnd:e=>{l=!0,v(e)},getCommonViewMetrics:()=>
4(s.interactionToNextPaint=y(),s),setLoadingTime:e=>{if(l)return;let t=(0,H.vk)(a.timeStamp,null!=e?e:(0,H.nx)());u||c(),u=!0,s.loadingTime=t,i()}}}(e,t,r,n,G,i,o),{stop:L,initialViewMetrics:V}=i===te?function(e,t,r,n){var i,o,a;let s,u={},{stop:l}=(i=e=>{r(e.loadEvent),u.navigationTimings=e,n()},function(e,t){let r,{stop:n}=n7(e,"complete",()=>{r=(0,ey.wg)(()=>t())});return{stop:()=>{n(),(0,ey.DJ)(r)}}}(e,()=>{var e;let t=(0,$.B)(ii)();t.loadEventEnd<=0||i({domComplete:(e=t).domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:io(e)})})),c=im(e,t),{stop:d}=(o=e=>{u.firstContentfulPaint=e,n()},{stop:ne(e,{type:T.PAINT,buffered:!0}).subscribe(e=>{let t=e.find(e=>"first-contentful-paint"===e.name&&e.startTime<c.timeStamp&&e.startTime<id);t&&o(t.startTime)}).unsubscribe}),{stop:f}=function(e,t,r,n){let i=1/0,{stop:o}=el(e,r,["pointerdown","keydown"],e=>{i=e.timeStamp},{capture:!0,once:!0}),a=0,s=ne(e,{type:T.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(r=>{let o=ei(r,e=>e.entryType===T.LARGEST_CONTENTFUL_PAINT&&e.startTime<i&&e.startTime<t.timeStamp&&e.startTime<ip&&e.size>a);if(o){var s;let t;o.element&&(t=nf(o.element,e.actionNameAttribute));let r=""===(s=o).url?void 0:s.url,i=o.startTime,u=function(e,t){let r=io(ii());if(void 0===r)return;let n=e?function(e,t){let r=function(){if(nt(T.RESOURCE))return performance.getEntriesByType(T.RESOURCE)}();if(r)return ei(r,r=>r.name===e&&r.startTime<=t)}(e,t):void 0,i=n?Math.max(r,n.requestStart||n.startTime):r,o=Math.min(t,Math.max(i,(null==n?void 0:n.responseEnd)||0));return{loadDelay:i-r,loadTime:o-i,renderDelay:t-o}}(r,i);n({value:i,targetSelector:t,resourceUrl:r,subParts:u}),a=o.size}});return{stop:()=>{o(),s.unsubscribe()}}}(e,c,window,e=>{u.largestContentfulPaint=e,n()}),{stop:p}=(a=e=>{u.firstInput=e,n()},s=ne(e,{type:T.FIRST_INPUT,buffered:!0}).subscribe(t=>{let r=t.find(e=>e.startTime<c.timeStamp);if(r){let t,n=(0,H.vk)(r.startTime,r.processingStart);r.target&&r9(r.target)&&(t=nf(r.target,e.actionNameAttribute)),a({delay:n>=0?n:0,time:r.startTime,targetSelector:t})}}),{stop:()=>{s.unsubscribe()}});return{stop:function(){l(),d(),f(),p(),c.stop()},initialViewMetrics:u}}(n,o,A,G):{stop:e$.l,initialViewMetrics:{}};i===tr&&(s=o.relative,requestAnimationFrame(()=>{requestAnimationFrame(()=>{(e=>{V.firstContentfulPaint=e,V.largestContentfulPaint={value:e},G()})((0,H.vk)(s,(0,H.$S)()))})}));let{stop:U,eventCounts:j}=function(e,t,r){let{stop:n,eventCounts:i}=nI({lifeCycle:e,isChildEvent:e=>e.view.id===t,onChange:r});return{stop:n,eventCounts:i}}(e,l,G),q=(0,ey.yb)(W,iA),F=e.subscribe(11,e=>{e.reason===ec.UNLOADING&&W()});function B(){e.notify(3,{id:l,name:v,context:g.getContext(),startClocks:o,sessionIsActive:y})}function G(){B(),E()}function W(){k(),B(),f+=1;let t=void 0===u?(0,H.nx)():u.timeStamp;e.notify(4,{customTimings:d,documentVersion:f,id:l,name:v,service:h,version:b,context:g.getContext(),loadingType:i,location:m,handlingStack:_,startClocks:o,commonViewMetrics:M(),initialViewMetrics:V,duration:(0,H.vk)(o.timeStamp,t),isActive:void 0===u,sessionIsActive:y,eventCounts:j})}return W(),g.changeObservable.subscribe(G),{get name(){return v},service:h,version:b,contextManager:g,stopObservable:c,end(t={}){var r,n;u||(u=null!=(r=t.endClocks)?r:(0,H.M8)(),y=null==(n=t.sessionIsActive)||n,e.notify(5,{endClocks:u}),e.notify(6,{endClocks:u}),(0,ey.vG)(q),R(u.relative),O(),F.unsubscribe(),W(),(0,ey.wg)(()=>{this.stop()},iC))},stop(){L(),U(),N(),c.notify()},addTiming(e,t){var r;let n;if(u)return;let i=(0,H.pu)(t)?t:(0,H.vk)(o.timeStamp,t);d[(n=(r=e).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==r&&x.Vy.warn(`Invalid timing name: ${r}, sanitized to: ${n}`),n]=i,G()},setLoadingTime:P,setViewName(e){v=e,W()}}}(e,t,r,n,i,o,a);return l.add(s),s.stopObservable.subscribe(()=>{l.delete(s)}),s}return e.subscribe(10,()=>{c=d(tt,void 0,{name:c.name,service:c.service,version:c.version,context:c.contextManager.getContext()})}),e.subscribe(9,()=>{c.end({sessionIsActive:!1})}),o&&(u=i.subscribe(({oldLocation:e,newLocation:t})=>{var r,n;let i;r=e,n=t,r.pathname===n.pathname&&(""!==(i=n.hash.substring(1))&&document.getElementById(i)||iR(n.hash)===iR(r.hash))||(c.end(),c=d(tt))}),n.trackBfcacheViews&&(s=function(e,t){let{stop:r}=eu(e,window,"pageshow",e=>{e.persisted&&t(e)},{capture:!0});return r}(n,e=>{c.end(),c=d(tr,(0,H.FR)(e.timeStamp),void 0)}))),{addTiming:(e,t=(0,H.nx)())=>{c.addTiming(e,t)}
4,setLoadingTime:e=>c.setLoadingTime(e),startView:(e,t)=>{c.end({endClocks:t}),c=d(tt,t,e)},setViewContext:e=>{c.contextManager.setContext(e)},setViewContextProperty:(e,t)=>{c.contextManager.setContextProperty(e,t)},setViewName:e=>{c.setViewName(e)},getViewContext:()=>c.contextManager.getContext(),stop:()=>{u&&u.unsubscribe(),s&&s(),c.end(),l.forEach(e=>e.stop())}}}(e,eS,ew,r,e_,!r.trackViewsManually,o)),ez=window,eJ=new Map;function eY(){ez.DD_SOURCE_CODE_CONTEXT&&(ea(ez.DD_SOURCE_CODE_CONTEXT).forEach(([e,t])=>{let r=(0,ee.T)({stack:e}).stack[0];r.url?eJ.has(r.url)||eJ.set(r.url,t):eB("Source code context: missing frame url",{stack:e})}),ez.DD_SOURCE_CODE_CONTEXT={})}eY(),t.register(0,({domainContext:e,rawRumEvent:t})=>{var r,n,i,o;let a;if(eY(),0===eJ.size)return eP;let s=(r=e,"long_task"===(n=t).type&&"long-animation-frame"===n.long_task.entry_type?null==(i=n.long_task.scripts[0])?void 0:i.source_url:("handlingStack"in r&&(a=r.handlingStack),"error"===n.type&&n.error.stack&&(a=n.error.stack),null==(o=(0,ee.T)({stack:a}).stack[0])?void 0:o.url)),u=s&&eJ.get(s);return u?{type:t.type,service:u.service,version:u.version}:eP}),eb.push(eK);let eX=function(e,t,r){let n,i=(0,$.B)(n4)(),o=t.trackEarlyRequests;if(o){let t,r,i;t=new Set,r=!1,i=e.subscribe(8,e=>{if(t.add(e),t.size>1e3){let e=t.values().next().value;if(!r){let n;if(r=!0,j(k.TOO_MANY_REQUESTS_INVESTIGATION)){let r=0,i=0,o=0,a=0;for(let e of t)e.isAborted&&r++,e.isAbortedOnStart&&i++,"xhr"===e.type&&o++,!performance.getEntriesByName(e.url,"resource").some(t=>t.startTime>=e.startClocks.relative)&&a++;let s=(0,H.nx)()-e.startClocks.timeStamp;n={abortedCount:r,abortedOnStartCount:i,xhrCount:o,fetchCount:t.size-o,oldestRequestAge:s,oldestRequestEndAge:s-e.duration,withoutMatchingEntryCount:a}}eF("Too many requests",n)}t.delete(e)}}),n={getMatchingRequest(e){let r,n=1/0;for(let i of t){let t=e.startTime-i.startClocks.relative;0<=t&&t<n&&i.url===e.name&&(n=Math.abs(t),r=i)}return r&&t.delete(r),r},stop(){i.unsubscribe()}}}else e.subscribe(8,e=>{s(()=>{var n,i,o;return n=e,i=t,o=r,iu(function(e){if(!performance||!("getEntriesByName"in performance))return;let t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;let r=t.filter(e=>!n9.has(e)).filter(e=>rW(e)&&rH(e)).filter(t=>{var r,n,i;return r=t,n=e.startClocks.relative,i=n5({startTime:e.startClocks.relative,duration:e.duration}),r.startTime>=n-1&&n5(r)<=(0,H.Gw)(i,1)});if(1===r.length)return n9.add(r[0]),r[0].toJSON()}(n),n,o,i)})});let a=ne(t,{type:T.RESOURCE,buffered:!0}).subscribe(e=>{for(let i of e)(o||!rG(i))&&s(()=>is(i,t,r,n))});function s(t){i.push(()=>{let r=t();r&&e.notify(12,r)})}(0,$.B)(ia)(t,e=>{s(()=>is(e,t,r,n))});let u=nN(e),l={startResource:function(e,t={},r=(0,H.M8)()){var n;let i=null!=(n=t.resourceKey)?n:e;u.start(i,r,{url:e,...t})},stopResource:function(t,r={},n=(0,H.M8)()){var i;let o=null!=(i=r.resourceKey)?i:t,a=u.stop(o,n,{context:r.context,type:r.type});if(!a)return;let s=(0,H.vk)(a.startClocks.relative,n.relative),l={date:a.startClocks.timeStamp,type:e5,resource:{id:a.id,type:a.type||rj,url:rJ(a.url),duration:(0,H.Zj)(s),method:a.method,status_code:r.statusCode,size:r.size},_dd:{},context:a.context};e.notify(12,{rawRumEvent:l,startClocks:a.startClocks,duration:s,domainContext:{isManual:!0}})}};return{startResource:l.startResource,stopResource:l.stopResource,stop:()=>{i.stop(),a.unsubscribe(),u.stopAll()}}}(e,r,ek);eb.push(eX.stop);let{stop:eQ}=(ef=ne(r,{type:nt(T.LONG_ANIMATION_FRAME)?T.LONG_ANIMATION_FRAME:T.LONG_TASK,buffered:!0}).subscribe(t=>{for(let n of t){if(!r.trackLongTasks)break;let t=(0,H.FR)(n.startTime),i=function(e,t){let r=(0,e2.lk)(),n=(0,H.Zj)(e.duration),i={date:t.timeStamp,type:e4,_dd:{discarded:!1}};return e.entryType===T.LONG_TASK?{...i,long_task:{id:r,entry_type:"long-task",duration:n}}:{...i,long_task:{id:r,entry_type:"long-animation-frame",duration:n,blocking_duration:(0,H.Zj)(e.blockingDuration),first_ui_event_timestamp:(0,H.Zj)(e.firstUIEventTimestamp),render_start:(0,H.Zj)(e.renderStart),style_and_layout_start:(0,H.Zj)(e.styleAndLayoutStart),start_time:(0,H.Zj)(e.startTime),scripts:e.scripts.map(e=>({duration:(0,H.Zj)(e.duration),pause_duration:(0,H.Zj)(e.pauseDuration),forced_style_and_layout_duration:(0,H.Zj)(e.forcedStyleAndLayoutDuration),start_time:(0,H.Zj)(e.startTime),execution_start:(0,H.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}))}}}(n,t);e.notify(12,{rawRumEvent:i,startClocks:t,duration:n.duration,domainContext:{performanceEntry:n}})}}),{stop:()=>ef.unsubscribe()});eb.push(eQ);let{addError:e0}=(ep=new I.cP,s.subscribe(e=>{0===e.type&&ep.notify(e.error)}),S=ep,(N=[x.bP.error].map(e=>{var t;return n1[e]||(n1[e]=(t=e,new I.cP(e=>{let r=x.JZ[t];return x.JZ[t]=(...n)=>{r.apply(console,n);let i=(0,L.uC)("console error");(0,C.um)(()=>
4{e.notify(function(e,t,r){let n=e.map(e=>{var t;return"string"==typeof(t=e)?(0,eH.a)(t):(0,V.bJ)(t)?(0,L.NR)((0,ee.T)(t)):(0,z.s)((0,eH.a)(t),void 0,2)}).join(" ");if(t===x.bP.error){let i=e.find(V.bJ),o=(0,V.As)({originalError:i,handlingStack:r,startClocks:(0,H.M8)(),source:ev.g.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=n,{api:t,message:n,handlingStack:r,error:o}}return{api:t,message:n,error:void 0,handlingStack:r}}(n,t,i))})},()=>{x.JZ[t]=r}}))),n1[e]}),(0,I.Fx)(...N)).subscribe(e=>S.notify(e.error)),(em=[],(y=[n2,"intervention"]).includes(n2)&&em.push((_=r,new I.cP(e=>{let{stop:t}=eu(_,document,"securitypolicyviolation",t=>{var r;let n;e.notify((r=t,n=`'${r.blockedURI}' blocked by '${r.effectiveDirective}' directive`,n3({type:r.effectiveDirective,message:`${n2}: ${n}`,originalError:r,csp:{disposition:r.disposition},stack:n6(r.effectiveDirective,r.originalPolicy?`${n} of the policy "${(0,e2._R)(r.originalPolicy,100,"...")}"`:"no policy",r.sourceFile,r.lineNumber,r.columnNumber)})))});return t}))),(eg=y.filter(e=>e!==n2)).length&&em.push((w=eg,new I.cP(e=>{if(!window.ReportingObserver)return;let t=(0,C.dm)((t,r)=>t.forEach(t=>e.notify(function(e){let{type:t,body:r}=e;return n3({type:r.id,message:`${t}: ${r.message}`,originalError:e,stack:n6(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}(t)))),r=new window.ReportingObserver(t,{types:w,buffered:!0});return r.observe(),()=>{r.disconnect()}}))),(0,I.Fx)(...em)).subscribe(e=>ep.notify(e)),ep.subscribe(t=>e.notify(14,{error:t})),(E=e).subscribe(14,({error:e})=>{var t;let r,n;E.notify(12,(r={date:(t=e).startClocks.timeStamp,error:{id:(0,e2.lk)(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,component_stack:t.componentStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:e8,context:t.context},n={error:t.originalError,handlingStack:t.handlingStack},{rawRumEvent:r,startClocks:t.startClocks,domainContext:n}))}),{addError:({error:e,handlingStack:t,componentStack:r,startClocks:n,context:i})=>{let o=(0,V.As)({originalError:e,handlingStack:t,componentStack:r,startClocks:n,nonErrorPrefix:"Provided",source:ev.g.CUSTOM,handling:"handled"});o.context=Q(o.context,i),E.notify(14,{error:o})}});eh={clearTracingIfNeeded:r0,traceFetch:e=>r1(r,e,n,eR,eI,t=>{var r;if(e.input instanceof Request&&!(null==(r=e.init)?void 0:r.headers))e.input=new Request(e.input),Object.keys(t).forEach(r=>{e.input.headers.append(r,t[r])});else{e.init=(0,D.yG)(e.init);let r=[];e.init.headers instanceof Headers?e.init.headers.forEach((e,t)=>{r.push([t,e])}):Array.isArray(e.init.headers)?e.init.headers.forEach(e=>{r.push(e)}):e.init.headers&&Object.keys(e.init.headers).forEach(t=>{r.push([t,e.init.headers[t]])}),e.init.headers=r.concat(ea(t))}}),traceXhr:(e,t)=>r1(r,e,n,eR,eI,e=>{Object.keys(e).forEach(r=>{t.setRequestHeader(r,e[r])})})},function(e,t,r){var n;(!d&&(n=t,d=new I.cP(e=>{let{stop:t}=(0,tS.H)(XMLHttpRequest.prototype,"open",rV),{stop:r}=(0,tS.H)(XMLHttpRequest.prototype,"send",t=>{!function({target:e,parameters:[t],handlingStack:r},n,i){let o=rL.get(e);if(!o)return;o.state="start",o.startClocks=(0,H.M8)(),o.isAborted=!1,o.xhr=e,o.handlingStack=r,o.requestBody=t;let a=!1,{stop:s}=(0,tS.H)(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&u()}),u=()=>{l(),s(),a||(a=!0,o.state="complete",o.duration=(0,H.vk)(o.startClocks.timeStamp,(0,H.nx)()),o.status=e.status,"string"==typeof e.response&&(o.responseBody=e.response),i.notify((0,D.yG)(o)))},{stop:l}=eu(n,e,"loadend",u);i.notify(o)}(t,n,e)},{computeHandlingStack:!0}),{stop:i}=(0,tS.H)(XMLHttpRequest.prototype,"abort",rD);return()=>{t(),r(),i()}})),d).subscribe(t=>{if(rK(t.url))switch(t.state){case"start":r.traceXhr(t,t.xhr),t.requestIndex=r6(),e.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"complete":r.clearTracingIfNeeded(t),e.notify(8,{...t,type:"xhr",isAbortedOnStart:!1})}})}(e,r,eh),A=e,R=r,O=eh,tk({responseBodyAction:e=>{var t;return(null==(t=(0,r2.TW)(e.url,R))?void 0:t.trackResponseErrors)?2:1}}).subscribe(e=>{var t;if(rK(e.url))switch(e.state){case"start":O.traceFetch(e),e.requestIndex=r6(),A.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":O.clearTracingIfNeeded(e),A.notify(8,{...e,duration:(0,H.vk)(e.startClocks.timeStamp,(0,H.nx)()),type:rU,requestBody:null==(t=e.init)?void 0:t.body})}});let e1=function(e,t,r){function n(r){t.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)||e.notify(12,tl(r))}return{addOperationStepVital:function(t,r,n,i){if(!j(k.FEATURE_OPERATION_VITAL))return;let{operationKey:o,context:a,description:s,handlingStack:u}=n||{},l={name:t,type:"operation_step",operationKey:o,failureReason:i,stepType:r,startClocks:(0,H.M8)(),context:(0,eH.a)(a),description:s,handlingStack:u};e.notify(12,tl(l))},addDurationVital:n,startDurationVital:(t,n={})=>{let i=ts(r,t,n),o=r.vitalsByReference.get(i);return o&&e.notify(16,o),i},stopDurationVital:(e,t={})=>{tu(n,r,e,t)}}}(e,ek,a),e3=(h=r.applicationId,b=eO.actionContexts,{get:e=>{let t=eT.findView(e),r=ex.findUrl(e),i=n.findTrackedSession(e);if(i&&t&&r){let n=b.findActionId(e);return{application_id:h,session_id:i.id,user_action:n?{id:n}:void 0,view:{id:t.id,name:t.name,referrer:r.referrer,url:r.url}}}}});return{addAction:eO.addAction,startAction:eO.startAction,stopAction:eO.stopAction,startResource:eX.startResource,stopResource:eX.stopResource,addEvent:eN.addEvent,addError:e0,addTiming:eD,setLoadingTime:eU,addFeatureFlagEvaluation:eA.addFeatureFlagEvaluation,startView:ej,setVie
4wContext:eG,setViewContextProperty:eW,getViewContext:eZ,setViewName:eq,viewHistory:eT,getInternalContext:e3.get,startDurationVital:e1.startDurationVital,stopDurationVital:e1.stopDurationVital,addDurationVital:e1.addDurationVital,addOperationStepVital:e1.addOperationStepVital,globalContext:eC,userContext:eR,accountContext:eI,stop:()=>eb.forEach(e=>e())}}(R,f,e,M,t,n,a,u,h,O);return A.push(U),u.unbuffer(),A.push(()=>r.stop()),{...F,lifeCycle:R,session:M,stopSession:()=>M.expire(),telemetry:c,stop:()=>{A.forEach(e=>e())},hooks:f}}let iY=function(e,t,r={}){var n;let i,o,a={tryToInit(e){n||(n=e)},update(e){n=e,i.notify()},isGranted:()=>n===O.GRANTED,observable:i=new I.cP},s={vitalsByName:new Map,vitalsByReference:new WeakMap},u=(0,N.t)().observable,l=function({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},r,n,i){let o,a,s,u,l,c,d=(c=[],{add:e=>{c.push(e)>500&&c.splice(0,1)},remove:e=>{(0,td.Ai)(c,e)},drain:e=>{c.forEach(t=>t(e)),c.length=0}}),f=tv();rR(f,ez,d);let p=th();rR(p,eK,d);let m=tb();rR(m,eJ,d);let g=tV(),y=r.observable.subscribe(h),v={};function h(){let e;if(!s||!u||!r.isGranted())return;if(l||(l=(0,$.B)(eq)("browser-rum-sdk",u,g)),y.unsubscribe(),u.trackViewsManually){if(!o)return;d.remove(o.callback),e=o.options}let t=i(u,a,e,l,g);d.drain(t)}function b(e,n){var i,o,l,c,d,f,p,m,g,y;let v,b,S=en();if(S&&(e={...m=e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!=(g=m.defaultPrivacyLevel)?g:null==(y=er())?void 0:y.getPrivacyLevel()}),s=e,v={session_sample_rate:(l=i=e).sessionSampleRate,telemetry_sample_rate:l.telemetrySampleRate,telemetry_configuration_sample_rate:l.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:l.telemetryUsageSampleRate,use_before_send:!!l.beforeSend,use_partitioned_cross_site_session_cookie:l.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:l.useSecureSessionCookie,use_proxy:!!l.proxy,silent_multiple_init:l.silentMultipleInit,track_session_across_subdomains:l.trackSessionAcrossSubdomains,track_anonymous_user:l.trackAnonymousUser,session_persistence:Array.isArray(l.sessionPersistence)?l.sessionPersistence[0]:l.sessionPersistence,allow_fallback_to_local_storage:!!l.allowFallbackToLocalStorage,store_contexts_across_pages:!!l.storeContextsAcrossPages,allow_untrusted_events:!!l.allowUntrustedEvents,tracking_consent:l.trackingConsent,use_allowed_tracking_origins:Array.isArray(l.allowedTrackingOrigins),beta_encode_cookie_options:l.betaEncodeCookieOptions,source:l.source,sdk_version:l.sdkVersion,variant:l.variant},p={session_replay_sample_rate:i.sessionReplaySampleRate,start_session_replay_recording_manually:i.startSessionReplayRecordingManually,trace_sample_rate:i.traceSampleRate,trace_context_injection:i.traceContextInjection,propagate_trace_baggage:i.propagateTraceBaggage,action_name_attribute:i.actionNameAttribute,use_allowed_tracing_urls:(0,td.EI)(i.allowedTracingUrls),use_allowed_graph_ql_urls:(0,td.EI)(i.allowedGraphQlUrls),use_track_graph_ql_payload:(c=i.allowedGraphQlUrls,(0,td.EI)(c)&&c.some(e=>(0,J.O)(e)&&e.trackPayload)),use_track_graph_ql_response_errors:(d=i.allowedGraphQlUrls,(0,td.EI)(d)&&d.some(e=>(0,J.O)(e)&&e.trackResponseErrors)),selected_tracing_propagators:(b=new Set,(0,td.EI)(i.allowedTracingUrls)&&i.allowedTracingUrls.forEach(e=>{var t;null==(t=rp(e))||t.propagatorTypes.forEach(e=>b.add(e))}),Array.from(b)),default_privacy_level:i.defaultPrivacyLevel,enable_privacy_for_action_name:i.enablePrivacyForActionName,use_excluded_activity_urls:(0,td.EI)(i.excludedActivityUrls),use_worker_url:!!i.workerUrl,compress_intake_requests:i.compressIntakeRequests,track_views_manually:i.trackViewsManually,track_user_interactions:i.trackUserInteractions,track_resources:i.trackResources,track_long_task:i.trackLongTasks,track_bfcache_views:i.trackBfcacheViews,track_early_requests:i.trackEarlyRequests,plugins:null==(o=i.plugins)?void 0:o.map(e=>{var t;return{name:e.name,...null==(t=e.getConfigurationTelemetry)?void 0:t.call(e)}}),track_feature_flags_for_events:i.trackFeatureFlagsForEvents,remote_configuration_id:i.remoteConfigurationId,profiling_sample_rate:i.profilingSampleRate,use_remote_configuration_proxy:!!i.remoteConfigurationProxy,track_resource_headers:!0===(f=i.trackResourceHeaders)?"default_headers":Array.isArray(f)?"custom"
4:void 0,...v},ej().notify({rawEvent:{type:eL,configuration:p}}),u)return void e3("DD_RUM",e);let _=function(e,t){var r,n,i,o,a,s,u;if(void 0===e.trackFeatureFlagsForEvents||Array.isArray(e.trackFeatureFlagsForEvents)||x.Vy.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId)return void x.Vy.error("Application ID is not configured, no RUM data will be collected.");if(!rc(e.sessionReplaySampleRate,"Session Replay")||!rc(e.traceSampleRate,"Trace"))return;if(void 0!==e.excludedActivityUrls&&!Array.isArray(e.excludedActivityUrls))return void x.Vy.error("Excluded Activity Urls should be an array");let l=function(e){if(void 0===e.allowedTracingUrls)return[];if(!Array.isArray(e.allowedTracingUrls))return void x.Vy.error("Allowed Tracing URLs should be an array");if(0!==e.allowedTracingUrls.length&&void 0===e.service)return void x.Vy.error("Service needs to be configured when tracing is enabled");let t=[];return e.allowedTracingUrls.forEach(e=>{let r=rp(e);r?t.push(r):x.Vy.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)}),t}(e);if(!l)return;let c=function(e,t){var r,n,i,o,a,s,u,l,c,d,f,p,m;if(!e||!e.clientToken)return void x.Vy.error("Client Token is not configured, we will not send any data.");if(void 0!==e.allowedTrackingOrigins&&!Array.isArray(e.allowedTrackingOrigins))return void x.Vy.error("Allowed Tracking Origins must be an array");if((!(f=e.site)||"string"!=typeof f||/(datadog|ddog|datad0g|dd0g)/.test(f)||(x.Vy.error(`Site should be a valid Datadog site. ${x.xG} ${x.fH}/getting_started/site/.`),0))&&rc(e.sessionSampleRate,"Session")&&rc(e.telemetrySampleRate,"Telemetry")&&rc(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&rc(e.telemetryUsageSampleRate,"Telemetry Usage")&&rl(e.version,"Version")&&rl(e.env,"Env")&&rl(e.service,"Service")&&function(e,t){let r=(0,$.B)((0,R.VZ)().location),n=r?r.origin:"",i=e.allowedTrackingOrigins;if(!i)return!function(e,t=""){return!ri(e)&&ri(t.split("\n").filter(e=>{let t=e.trim();return t.length&&/^at\s+|@/.test(t)})[1]||"")}(n,t)||(x.Vy.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let o=(0,rr.K)(i,n);return o||x.Vy.error("SDK initialized on a non-allowed domain."),o}(e,null!=t?t:"")){let t,f,g;if(void 0!==e.trackingConsent&&!(0,D.Rj)(O,e.trackingConsent))return void x.Vy.error('Tracking Consent should be either "granted" or "not-granted"');return{beforeSend:e.beforeSend&&A(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:R.Wq?void 0:function(e){var t,r;let{sessionPersistence:n}=e;for(let i of(t=n,r=e,Array.isArray(t)?t:void 0!==t?[t]:r.allowFallbackToLocalStorage?[tF,tG]:[tF])){let t=function(e,t){switch(e){case tF:let r;return(r=function(e){let t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){let e=tR();if(!e)return;t.domain=e}return t}(t))&&function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{let t=`dd_cookie_test_${(0,e2.lk)()}`,r="test";tx(t,r,H.iW,e);let n=tA(t)===r;return tx(t,"",0,e),n}catch(e){return x.Vy.error(e),!1}}(r)?{type:tF,cookieOptions:r}:void 0;case tG:try{let e=(0,e2.lk)(),t=`_dd_test_${e}`;localStorage.setItem(t,e);let r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:tG}:void 0}catch(e){return}case tB:return{type:tB};default:x.Vy.error(`Invalid session persistence '${String(e)}'`);return}}(i,e);if(void 0!==t)return t}}(e),sessionSampleRate:null!=(r=e.sessionSampleRate)?r:100,telemetrySampleRate:null!=(n=e.telemetrySampleRate)?n:20,telemetryConfigurationSampleRate:null!=(i=e.telemetryConfigurationSampleRate)?i:5,telemetryUsageSampleRate:null!=(o=e.telemetryUsageSampleRate)?o:5,service:null!=(a=e.service)?a:void 0,env:null!=(s=e.env)?s:void 0,version:null!=(u=e.version)?u:void 0,datacenter:null!=(l=e.datacenter)?l:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!=(c=e.trackingConsent)?c:O.GRANTED,trackAnonymousUser:null==(d=e.trackA
4nonymousUser)||d,storeContextsAcrossPages:!!e.storeContextsAcrossPages,betaEncodeCookieOptions:!!e.betaEncodeCookieOptions,variant:e.variant,sdkVersion:e.sdkVersion,...(t=e.site||G,f="flutter"===(p=e.source)||"unity"===p?p:"browser",g={logsEndpointBuilder:ro(m={...e,site:t,source:f},"logs"),rumEndpointBuilder:ro(m,"rum"),profilingEndpointBuilder:ro(m,"profile"),sessionReplayEndpointBuilder:ro(m,"replay"),exposuresEndpointBuilder:ro(m,"exposures"),flagEvaluationEndpointBuilder:ro(m,"flagevaluation")},{replica:function(e){if(!e.replica)return;let t={...e,site:G,clientToken:e.replica.clientToken};return{logsEndpointBuilder:ro(t,"logs"),rumEndpointBuilder:ro(t,"rum",[`application.id=${e.replica.applicationId}`])}}({...e,site:t,source:f}),site:t,source:f,...g})}}}(e,t),d=function(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return x.Vy.warn("allowedGraphQlUrls should be an array"),[];let t=[];return e.allowedGraphQlUrls.forEach(e=>{(0,rr.V)(e)?t.push({match:e,trackPayload:!1,trackResponseErrors:!1}):(0,J.O)(e)&&(0,rr.V)(e.match)&&t.push({match:e.match,trackPayload:!!e.trackPayload,trackResponseErrors:!!e.trackResponseErrors})}),t}(e);if(!c)return;let f=null!=(r=e.sessionReplaySampleRate)?r:0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,betaTrackActionsInShadowDom:!!e.betaTrackActionsInShadowDom,sessionReplaySampleRate:f,startSessionReplayRecordingManually:void 0!==e.startSessionReplayRecordingManually?!!e.startSessionReplayRecordingManually:0===f,traceSampleRate:null!=(n=e.traceSampleRate)?n:100,rulePsr:(0,K.Et)(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:l,excludedActivityUrls:null!=(i=e.excludedActivityUrls)?i:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(null==(o=e.trackUserInteractions)||o),trackViewsManually:!!e.trackViewsManually,trackResources:!!(null==(a=e.trackResources)||a),trackResourceHeaders:function(e){let t=e.trackResourceHeaders;if(void 0===t||!1===t)return[];if(!0===t)return rf.map(e=>({name:e}));if(!Array.isArray(t))return x.Vy.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===t.length)return x.Vy.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];let r=[];return t.forEach((e,t)=>{(0,J.O)(e)&&(0,rr.V)(e.name)?void 0===e.url||(0,rr.V)(e.url)?void 0===e.extractor||e.extractor instanceof RegExp?void 0===e.location||rm.includes(e.location)?r.push({...e,name:"string"==typeof e.name?e.name.toLowerCase():e.name}):x.Vy.warn(`trackResourceHeaders[${t}].location should be 'request', 'response', or 'any'`):x.Vy.warn(`trackResourceHeaders[${t}].extractor should be a RegExp`):x.Vy.warn(`trackResourceHeaders[${t}].url should be a MatchOption`):x.Vy.warn(`trackResourceHeaders[${t}] should be a MatchHeader object with a 'name' property`)}),r}(e),trackLongTasks:!!(null==(s=e.trackLongTasks)||s),trackBfcacheViews:!!e.trackBfcacheViews,trackEarlyRequests:!!e.trackEarlyRequests,subdomain:e.subdomain,defaultPrivacyLevel:(0,D.Rj)(rs,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:rs.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,traceContextInjection:(0,D.Rj)(ru,e.traceContextInjection)?e.traceContextInjection:ru.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:null!=(u=e.profilingSampleRate)?u:0,propagateTraceBaggage:!!e.propagateTraceBaggage,allowedGraphQlUrls:d,...c}}(e,n);if(_){if(!S&&!_.sessionStoreStrategyType)return void x.Vy.warn("No storage available for session. We will not send any data.");if(_.compressIntakeRequests&&!S&&t&&!(a=t(_,"Datadog RUM",e$.l)))return;u=_,tk().subscribe(e$.l),r.tryToInit(_.trackingConsent),h()}}let S=e=>{d.add(t=>t.addDurationVital(e))};return{init(t,r,n){var i;if(!t)return void x.Vy.error("Missing configuration");Array.isArray(i=t.enableExperimentalFeatures)&&i.filter(e=>(0,D.Rj)(k,e)).forEach(e=>{U.add(e)}),s=t,e&&t$()||(tc(t.plugins,"onInit",{initConfiguration:t,publicApi:r}),t.remoteConfigurationId?rx(t,{user:p,context:f}).then(e=>{e&&b(e,n)}).catch(C.Dx):b(t,n))},get initConfiguration(){return s},getInternalContext:e$.l,stopSession:e$.l,addTiming(e,t=(0,H.nx)()){d.add(r=>r.addTiming(e,t))}
4,setLoadingTime:e=>{d.add(t=>t.setLoadingTime(e))},startView(e,t=(0,H.M8)()){let r=r=>{r.startView(e,t)};d.add(r),o||(o={options:e,callback:r},h())},setViewName(e){d.add(t=>t.setViewName(e))},setViewContext(e){d.add(t=>t.setViewContext(e))},setViewContextProperty(e,t){d.add(r=>r.setViewContextProperty(e,t))},getViewContext:()=>v,globalContext:f,userContext:p,accountContext:m,addAction(e){d.add(t=>t.addAction(e))},startAction(e,t){let r=(0,H.M8)();d.add(n=>n.startAction(e,t,r))},stopAction(e,t){let r=(0,H.M8)();d.add(n=>n.stopAction(e,t,r))},startResource(e,t){let r=(0,H.M8)();d.add(n=>n.startResource(e,t,r))},stopResource(e,t){let r=(0,H.M8)();d.add(n=>n.stopResource(e,t,r))},addError(e){d.add(t=>t.addError(e))},addFeatureFlagEvaluation(e,t){d.add(r=>r.addFeatureFlagEvaluation(e,t))},startDurationVital:(e,t)=>ts(n,e,t),stopDurationVital(e,t){tu(S,n,e,t)},addDurationVital:S,addOperationStepVital:(e,t,r,n)=>{d.add(i=>i.addOperationStepVital((0,eH.a)(e),t,(0,eH.a)(r),(0,eH.a)(n)))}}}(r,a,s,(n,i,o,c,d)=>{var f,p;let m=i&&r.createDeflateEncoder?e=>r.createDeflateEncoder(n,i,e):P,g=(0,$.B)(iJ)(n,e,t,o,m,a,s,u,c,d,r.sdkName);return e.onRumStart(g.lifeCycle,n,g.session,g.viewHistory,i,g.telemetry),t.onRumStart(g.lifeCycle,g.hooks,n,g.session,g.viewHistory,m),f=l,p=g,l={init:e=>{e3("DD_RUM",e)},initConfiguration:f.initConfiguration,...p},tc(n.plugins,"onRumStart",{strategy:l,addEvent:g.addEvent,addError:g.addError}),g}),c=()=>l,d=(Object.defineProperty(o={version:"6.33.0",onReady(e){e()},...{init:e=>{let t=Error().stack;(0,C.um)(()=>l.init(e,d,t))},setTrackingConsent:(0,C.dm)(e=>{a.update(e),eW({feature:"set-tracking-consent",tracking_consent:e})}),setViewName:(0,C.dm)(e=>{l.setViewName(e),eW({feature:"set-view-name"})}),setViewContext:(0,C.dm)(e=>{l.setViewContext(e),eW({feature:"set-view-context"})}),setViewContextProperty:(0,C.dm)((e,t)=>{l.setViewContextProperty(e,t),eW({feature:"set-view-context-property"})}),getViewContext:(0,C.dm)(()=>(eW({feature:"set-view-context-property"}),l.getViewContext())),getInternalContext:(0,C.dm)(e=>l.getInternalContext(e)),getInitConfiguration:(0,C.dm)(()=>X(l.initConfiguration)),addAction:(e,t)=>{let r=(0,L.uC)("action");(0,C.um)(()=>{l.addAction({name:(0,eH.a)(e),context:(0,eH.a)(t),startClocks:(0,H.M8)(),type:tn,handlingStack:r}),eW({feature:"add-action"})})},startAction:(0,C.dm)((e,t)=>{(!l.initConfiguration||j(k.START_STOP_ACTION))&&l.startAction((0,eH.a)(e),{type:(0,eH.a)(t&&t.type),context:(0,eH.a)(t&&t.context),actionKey:t&&t.actionKey})}),stopAction:(0,C.dm)((e,t)=>{(!l.initConfiguration||j(k.START_STOP_ACTION))&&l.stopAction((0,eH.a)(e),{type:(0,eH.a)(t&&t.type),context:(0,eH.a)(t&&t.context),actionKey:t&&t.actionKey})}),startResource:(0,C.dm)((e,t)=>{(!l.initConfiguration||j(k.START_STOP_RESOURCE))&&l.startResource((0,eH.a)(e),{type:(0,eH.a)(t&&t.type),method:(0,eH.a)(t&&t.method),context:(0,eH.a)(t&&t.context),resourceKey:t&&t.resourceKey})}),stopResource:(0,C.dm)((e,t)=>{(!l.initConfiguration||j(k.START_STOP_RESOURCE))&&l.stopResource((0,eH.a)(e),{type:(0,eH.a)(t&&t.type),statusCode:t&&t.statusCode,size:t&&t.size,context:(0,eH.a)(t&&t.context),resourceKey:t&&t.resourceKey})}),addError:(e,t)=>{let r=(0,L.uC)("error");(0,C.um)(()=>{l.addError({error:e,handlingStack:r,context:(0,eH.a)(t),startClocks:(0,H.M8)()}),eW({feature:"add-error"})})},addTiming:(0,C.dm)((e,t)=>{l.addTiming((0,eH.a)(e),t)}),setViewLoadingTime:(0,C.dm)(()=>{let e=(0,H.nx)();l.setLoadingTime(e),eW({feature:"addViewLoadingTime"})}),setGlobalContext:eZ(c,ez,eX,"set-global-context"),getGlobalContext:eZ(c,ez,eY,"get-global-context"),setGlobalContextProperty:eZ(c,ez,eQ,"set-global-context-property"),removeGlobalContextProperty:eZ(c,ez,e0,"remove-global-context-property"),clearGlobalContext:eZ(c,ez,e1,"clear-global-context"),setUser:eZ(c,eK,eX,"set-user"),getUser:eZ(c,eK,eY,"get-user"),setUserProperty:eZ(c,eK,eQ,"set-user-property"),removeUserProperty:eZ(c,eK,e0,"remove-user-property"),clearUser:eZ(c,eK,e1,"clear-user"),setAccount:eZ(c,eJ,eX,"set-account"),getAccount:eZ(c,eJ,eY,"get-account"),setAccountProperty:eZ(c,eJ,eQ,"set-account-property"),removeAccountProperty:eZ(c,eJ,e0,"remove-account-property"),clearAccount:eZ(c,eJ,e1,"clear-account"),startView:e=>{let t=(0,L.uC)("view");(0,C.um)(()=>{l.startView({..."object"==typeof e?e:{name:e},handlingStack:t}),eW({feature:"start-view"})})},stopSession:(0,C.dm)(()=>{l.stopSession(),eW({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,C.dm)((e,t)=>{l.addFeatureFlagEvaluation((0,eH.a)(e),(0,eH.a)(t)),eW({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,C.dm)(()=>e.getSessionReplayLink()),startSessionReplayRecording:(0,C.dm)(t=>
4{e.start(t),eW({feature:"start-session-replay-recording",force:t&&t.force})}),stopSessionReplayRecording:(0,C.dm)(()=>e.stop()),addDurationVital:(e,t)=>{let r=(0,L.uC)("vital");(0,C.um)(()=>{eW({feature:"add-duration-vital"}),l.addDurationVital({id:(0,e2.lk)(),name:(0,eH.a)(e),type:ta,startClocks:(0,H.jR)(t.startTime),duration:t.duration,context:(0,eH.a)(t&&t.context),description:(0,eH.a)(t&&t.description),handlingStack:r})})},startDurationVital:(e,t)=>{let r=(0,L.uC)("vital");return(0,C.um)(()=>(eW({feature:"start-duration-vital"}),l.startDurationVital((0,eH.a)(e),{context:(0,eH.a)(t&&t.context),description:(0,eH.a)(t&&t.description),handlingStack:r})))},stopDurationVital:(0,C.dm)((e,t)=>{eW({feature:"stop-duration-vital"}),l.stopDurationVital("string"==typeof e?(0,eH.a)(e):e,{context:(0,eH.a)(t&&t.context),description:(0,eH.a)(t&&t.description)})}),startFeatureOperation:(e,t)=>{let r=(0,L.uC)("vital");(0,C.um)(()=>{eW({feature:"add-operation-step-vital",action_type:"start"}),l.addOperationStepVital(e,"start",{...t,handlingStack:r})})},succeedFeatureOperation:(0,C.dm)((e,t)=>{eW({feature:"add-operation-step-vital",action_type:"succeed"}),l.addOperationStepVital(e,"end",t)}),failFeatureOperation:(0,C.dm)((e,t,r)=>{eW({feature:"add-operation-step-vital",action_type:"fail"}),l.addOperationStepVital(e,"end",r,t)})}},"_setDebug",{get:()=>C.pM,enumerable:!1}),o);return d}((h=e$.l,{start:e$.l,stop:e$.l,onRumStart(e,t){h=()=>(function(e,{session:t,viewContext:r,errorType:n}){var i;let o,a,s=t?t.id:"no-session-id",u=[];void 0!==n&&u.push(`error-type=${n}`),r&&(u.push(`seed=${r.id}`),u.push(`from=${r.startClocks.timeStamp}`));let l=(o=(i=e).site,a=i.subdomain||function(e){switch(e.site){case G:case"datadoghq.eu":return"app";case B:return"dd";default:return}}(i),`https://${a?`${a}.`:""}${o}`),c=`/rum/replay/sessions/${s}`;return`${l}${c}?${u.join("&")}`})(t,{errorType:"slim-package"})},isRecording:()=>!1,getReplayStats:()=>void 0,getSessionReplayLink:()=>h()}),{onRumStart:e$.l,stop:e$.l},{sdkName:"rum-slim"});w=(0,R.VZ)(),(b=w[E="DD_RUM"])&&!b.q&&b.version&&x.Vy.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),w[E]=iY,b&&b.q&&b.q.forEach(e=>A(e,"onReady callback threw an error:")())},71120:(e,t,r)=>{function n(){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}r.d(t,{J2:()=>i,VZ:()=>n,Wq:()=>o});let i=n(),o="WorkerGlobalScope"in i},76264:(e,t,r)=>{r.d(t,{dX:()=>u,cP:()=>a,Fx:()=>s});var n=r(62186),i=r(71120);function o(e){let t=i.J2.queueMicrotask;"function"==typeof t?t((0,n.dm)(e)):Promise.resolve().then((0,n.dm)(e))}class a{constructor(e){this.onFirstSubscribe=e,this.observers=[]}subscribe(e){return this.addObserver(e),{unsubscribe:()=>this.removeObserver(e)}}notify(e){this.observers.forEach(t=>t(e))}addObserver(e){this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(e){this.observers=this.observers.filter(t=>e!==t),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function s(...e){return new a(t=>{let r=e.map(e=>e.subscribe(e=>t.notify(e)));return()=>r.forEach(e=>e.unsubscribe())})}class u extends a{constructor(e){super(),this.maxBufferSize=e,this.buffer=[]}notify(e){this.buffer.push(e),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(e)}subscribe(e){let t=!1;return o(()=>{for(let r of this.buffer){if(t)return;e(r)}t||this.addObserver(e)}),{unsubscribe:()=>{t=!0,this.removeObserver(e)}}}unbuffer(){o(()=>{this.maxBufferSize=this.buffer.length=0})}}},79652:(e,t,r)=>{r.d(t,{As:()=>c,bJ:()=>d,e6:()=>u});var n=r(90921),i=r(3149),o=r(66158),a=r(17289),s=r(53907);let u="No stack, consider using an instance of Error";function l({originalError:e,stackTrace:t,source:r,useFallbackStack:s=!0,nonErrorPrefix:c}){var f,p,m,g;let y=d(e);return!t&&y&&(t=(0,o.T)(e)),{source:r,type:t?t.name:void 0,message:(f=t,p=y,m=c,g=e,(null==f?void 0:f.message)&&(null==f?void 0:f.name)?f.message:p?"Empty message":m?`${m} ${(0,i.s)((0,n.a)(g))}`:(0,i.s)((0,n.a)(g))),stack:t?(0,a.Yn)(t):s?u:void 0}}function c({stackTrace:e,originalError:t,handlingStack:r,componentStack:n,startClocks:i,nonErrorPrefix:o,useFallbackStack:a=!0,source:u,handling:f}){var p;let m=l({originalError:t,stackTrace:e,source:u,useFallbackStack:a,nonErrorPrefix:o});return{startClocks:i,handling:f,handlingStack:r,componentStack:n,originalError:t,...m,causes:d(t)?function(e,t){let r=[],n=e.cause;for(;null!=n&&r.length<10;){let e=l({originalError:n,source:t,useFallbackStack:!1});r.push(e),n=d(n)?n.cause:void 0}return r.length?r:void 0}(t,u):void 0,fingerprint:d(p=t)&&"dd_fingerprint"in p?String(p.dd_fingerprint):void 0,context:function(e){if((0,s.O)(e))return e.dd_context}(t)}}function d(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}},81136:(e,t,r)=>{function n(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n)}r.d(t,{Dh:()=>a,_R:()=>u,it:()=>s,lk:()=>n,rx:()=>o});let i=/(\S+?)\s*=\s*(.+?)(?:;|$)/g;function o(e,t){for(i.lastIndex=0;;){let r=i.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function a(e){let t=new Map;for(i.lastIndex=0;;){let r=i.exec(e);if(r){let e=r[1],n=r[2];t.has(e)?t.get(e).push(n):t.set(e,[n])}else break}return t}function s(e){let t=new Map;for(i.lastIndex=0;;){let r=i.exec(e);if(r)t.set(r[1],r[2]);else break}return t}function u(e,t,r=""){let n=e.charCodeAt(t-1),i=n>=55296&&n<=56319?t+1:t;return e.length<=i?e:`${e.slice(0,i)}${r}`}},84961:(e,t,r)=>{r.d(t,{DJ:()=>s,vG:()=>l,wg:()=>a,yb:()=>u});var n=r(40483),i=r(62186),o=r(71120);function a(e,t){return(0,n.W)((0,o.VZ)(),"setTimeout")((0,i.dm)(e),t)}function s(e){(0,n.W)((0,o.VZ)(),"clearTimeout")(e)}function u(e,t){return(0,n.W)((0,o.VZ)(),"setInterval")((0,i.dm)(e),t)}function l(e){(0,n.W)((0,o.VZ)(),"clearInterval")(e)}},87704:(e,t,r)=>{r.d(t,{H:()=>a});var n=r(62186),i=r(64163),o=r(17289);function a(e,t,r,{computeHandlingStack:s}={}){let u=e[t];if("function"!=typeof u)if(!(t in e&&"string"==typeof t&&t.startsWith("on")))return{stop:i.l};else u=i.l;let l=!1,c=function(){let e;if(l)return u.apply(this,arguments);let t=Array.from(arguments);(0,n.um)(r,null,[{target:this,parameters:t,onPostCall:t=>{e=t},handlingStack:s?(0,o.uC)("instrumented method"):void 0}]);let i=u.apply(this,t);return e&&(0,n.um)(e,null,[i]),i};return e[t]=c,{stop:()=>{l=!0,e[t]===c&&(e[t]=u)}}}},90921:(e,t,r)=>{r.d(t,{a:()=>s});var n=r(17790),i=r(52581),o=r(3149);let a=220*i._m;function s(e,t=a){let r=(0,o.M)(Object.prototype),n=(0,o.M)(Array.prototype),i=[],c=new WeakMap,d=u(e,"$",void 0,i,c),f=JSON.stringify(d),p=f?f.length:0;if(p>t)return void l(t,"discarded",e);for(;i.length>0&&p<t;){let r=i.shift(),n=0;if(Array.isArray(r.source))for(let o=0;o<r.source.length;o++){let a=u(r.source[o],r.path,o,i,c);if(void 0!==a?p+=JSON.stringify(a).length:p+=4,p+=n,n=1,p>t){l(t,"truncated",e);break}r.target[o]=a}else for(let o in r.source)if(Object.prototype.hasOwnProperty.call(r.source,o)){let a=u(r.source[o],r.path,o,i,c);if(void 0!==a&&(p+=JSON.stringify(a).length+n+o.length+3,n=1),p>t){l(t,"truncated",e);break}r.target[o]=a}}return r(),n(),d}function u(e,t,r,n,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 r;return{type:(r=t).type,isTrusted:r.isTrusted,currentTarget:r.currentTarget?e(r.currentTarget):null,target:r.target?e(r.target):null}}if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;let n=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[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!==r?`${t}.${r}`:t,l=Array.isArray(o)?[]:{};return i.set(e,u),n.push({source:o,target:l,path:u}),l}function l(e,t,r){n.Vy.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,r)}},91832:(e,t,r)=>{function n(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}r.d(t,{Et:()=>a,LI:()=>i,fp:()=>o,ic:()=>n})},99284:(e,t,r)=>{function n(e,t){let r=e.indexOf(t);r>=0&&e.splice(r,1)}function i(e){return Array.isArray(e)&&e.length>0}r.d(t,{Ai:()=>n,EI:()=>i})}}]); 5//# sourceMappingURL=datadog-3836f41ad93ac370.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.