PageSourceSearch

https://app.wamp.com/_next/static/chunks/4150-966bdffee797a543.js

js wamp.com collected 2026-09-30 21:53:24 UTC 57,311 bytes, 4 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4150],{54150:(e,t,n)=>{var r;let o,i,s,a,u,l,c,d,f,p,g,y;n.d(t,{yf:()=>nT});let m={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},h=console,v={};Object.keys(m).forEach(e=>{v[e]=h[e]});let b="Datadog Browser SDK:",S={debug:v.debug.bind(h,b),log:v.log.bind(h,b),info:v.info.bind(h,b),warn:v.warn.bind(h,b),error:v.error.bind(h,b)},w="https://docs.datadoghq.com",C=`${w}/real_user_monitoring/browser/troubleshooting`,_="More details:";function x(e,t){return(...n)=>{try{return e(...n)}catch(e){S.error(t,e)}}}let E=!1;function k(e){E=e}function O(e){return function(...t){return T(e,this,t)}}function T(e,t,n){try{return e.apply(t,n)}catch(e){R(e)}}function R(e){if(A(e),o)try{o(e)}catch(e){A(e)}}function A(...e){E&&S.error("[MONITOR]",...e)}function $(){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}let I=$(),L="WorkerGlobalScope"in I;function N(e){let t=I.queueMicrotask;"function"==typeof t?t(O(e)):Promise.resolve().then(O(e))}class P{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 U(...e){return new P(t=>{let n=e.map(e=>e.subscribe(e=>t.notify(e)));return()=>n.forEach(e=>e.unsubscribe())})}class D extends P{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 N(()=>{for(let n of this.buffer){if(t)return;e(n)}t||this.addObserver(e)}),{unsubscribe:()=>{t=!0,this.removeObserver(e)}}}unbuffer(){N(()=>{this.maxBufferSize=this.buffer.length=0})}}let M={GRANTED:"granted",NOT_GRANTED:"not-granted"};function B(e,t){let n,r=$();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}function q(e,t){return B($(),"setTimeout")(O(e),t)}function G(e){B($(),"clearTimeout")(e)}function j(e,t){return B($(),"setInterval")(O(e),t)}function F(e){B($(),"clearInterval")(e)}function H(){}function z(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function W(e){return"object"===z(e)}function K(e){var t,n;let r=[],o=en(e,"stack"),s=String(e);if(o&&o.startsWith(s)&&(o=o.slice(s.length)),o&&o.split("\n").forEach(e=>{let t=function(e){let t=X.exec(e);if(!t)return;let n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=Y.exec(t[2]);return r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){let t=Z.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=Q.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=ee.exec(e);if(!t)return;let n=t[3]&&t[3].indexOf(" > eval")>-1,r=et.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}(e);t&&(!t.func&&t.line&&(t.func="?"),r.push(t))}),r.length>0&&function(){if(void 0!==i)return i;class e extends Error{constructor(){super(),this.name="Error"}}let[t,n]=[e,Error].map(e=>new e);return i=eo(Object.getPrototypeOf(t))&&n.stack!==t.stack}()&&e instanceof Error){let o=[],i=e;for(;(i=Object.getPrototypeOf(i))&&eo(i);){let e=(null==(t=i.constructor)?void 0:t.name)||"?";o.push(e)}for(let e=o.length-1;e>=0&&(null==(n=r[0])?void 0:n.func)===o[e];e--)r.shift()}return{message:en(e,"message"),name:en(e,"name"),stack:r}}let J="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",V="(?::(\\d+))",X=RegExp(`^\\s*at (.*?) ?\\(${J}${V}?${V}?\\)?\\s*$`,"i"),Y=RegExp(`\\((\\S*)${V}${V}\\)`),Z=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${J}${V}?${V}??\\s*$`,"i"),Q=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ee=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?
1:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,et=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function en(e,t){return W(e)&&"string"==typeof e[t]?e[t]:void 0}let er=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function eo(e){return String(e.constructor).startsWith("class ")}function ei(e){let t,n=Error(e);return n.name="HandlingStack",T(()=>{let e=K(n);e.stack=e.stack.slice(2),t=es(e)}),t}function es(e){let t=ea(e);return e.stack.forEach(e=>{let n="?"===e.func?"<anonymous>":e.func,r=e.args&&e.args.length>0?`(${e.args.join(", ")})`:"",o=e.line?`:${e.line}`:"",i=e.line&&e.column?`:${e.column}`:"";t+=`
2  at ${n}${r} @ ${e.url}${o}${i}`}),t}function ea(e){return`${e.name||"Error"}: ${e.message}`}function eu(e,t,n,{computeHandlingStack:r}={}){let o=e[t];if("function"!=typeof o)if(!(t in e&&"string"==typeof t&&t.startsWith("on")))return{stop:H};else o=H;let i=!1,s=function(){let e;if(i)return o.apply(this,arguments);let t=Array.from(arguments);T(n,null,[{target:this,parameters:t,onPostCall:t=>{e=t},handlingStack:r?ei("instrumented method"):void 0}]);let s=o.apply(this,t);return e&&T(e,null,[s]),s};return e[t]=s,{stop:()=>{i=!0,e[t]===s&&(e[t]=o)}}}function el(){return new Date().getTime()}function ec(){return performance.now()}function ed(){return{relative:ec(),timeStamp:el()}}function ef(){var e,t;return void 0===s&&(s=null!=(t=null==(e=performance.timing)?void 0:e.navigationStart)?t:performance.timeOrigin),s}let ep=/[^\u0000-\u007F]/;function eg(e){return ep.test(e)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function ey(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);let r=em(Object.prototype),o=em(Array.prototype),i=em(Object.getPrototypeOf(e)),s=em(e);try{return JSON.stringify(e,t,n)}catch(e){return"<error: unable to serialize object>"}finally{r(),o(),i(),s()}}function em(e){let t=e.toJSON;return t?(delete e.toJSON,()=>{e.toJSON=t}):H}function eh(e,t=225280){let n=em(Object.prototype),r=em(Array.prototype),o=[],i=new WeakMap,s=ev(e,"$",void 0,o,i),a=JSON.stringify(s),u=a?a.length:0;if(u>t)return void eb(t,"discarded",e);for(;o.length>0&&u<t;){let n=o.shift(),r=0;if(Array.isArray(n.source))for(let s=0;s<n.source.length;s++){let a=ev(n.source[s],n.path,s,o,i);if(void 0!==a?u+=JSON.stringify(a).length:u+=4,u+=r,r=1,u>t){eb(t,"truncated",e);break}n.target[s]=a}else for(let s in n.source)if(Object.prototype.hasOwnProperty.call(n.source,s)){let a=ev(n.source[s],n.path,s,o,i);if(void 0!==a&&(u+=JSON.stringify(a).length+r+s.length+3,r=1),u>t){eb(t,"truncated",e);break}n.target[s]=a}}return n(),r(),s}function ev(e,t,n,r,o){let i=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}return e}(e);if(!i||"object"!=typeof i){var s;return"bigint"==typeof(s=i)?`[BigInt] ${s.toString()}`:"function"==typeof s?`[Function] ${s.name||"unknown"}`:"symbol"==typeof s?`[Symbol] ${s.description||s.toString()}`:s}let a=function e(t){try{if(t instanceof Event){var n;return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?e(n.currentTarget):null,target:n.target?e(n.target):null}}if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;let r=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(r&&r[1])return`[${r[1]}]`}catch(e){}return"[Unserializable]"}(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(o.has(e))return`[Reference seen at ${o.get(e)}]`;let u=void 0!==n?`${t}.${n}`:t,l=Array.isArray(i)?[]:{};return o.set(e,u),r.push({source:i,target:l,path:u}),l}function eb(e,t,n){S.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}let eS="No stack, consider using an instance of Error";function ew({originalError:e,stackTrace:t,source:n,useFallbackStack:r=!0,nonErrorPrefix:o}){var i,s,a,u;let l=e_(e);return!t&&l&&(t=K(e)),{source:n,type:t?t.name:void 0,message:(i=t,s=l,a=o,u=e,(null==i?void 0:i.message)&&(null==i?void 0:i.name)?i.message:s?"Empty message":a?`${a} ${ey(eh(u))}`:ey(eh(u))),stack:t?es(t):r?eS:void 0}}function eC({stackTrace:e,originalError:t,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:i,useFallbackStack:s=!0,source:a,handling:u}){var l;let c=ew({originalError:t,stackTrace:e,source:a,useFallbackStack:s,nonErrorPrefix:i});return{startClocks:o,handling:u,handlingStack:n,componentStack:r,originalError:t,...c,causes:e_(t)?function(e,t){let n=[],r=e.cause;for(;null!=r&&n.length<10;){let e=ew({originalError:r,source:t,useFallbackStack:!1});n.push(e),r=e_(r)?r.cause:void 0}return n.length?n:void 0}(t,a):void 0,fingerprint:e_(l=t)&&"dd_fingerprint"in l?String(l.dd_fingerprint):void 0,context:function(e){if(W(e))return e.dd_context}(t)}}function e_(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}let ex={AGENT:"agent",CONSOLE:"console",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function eE(e,t){return Object.keys(e).some(n=>e[n]===t)}function ek(e){return 0===Object.keys(e).length}!function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.SHORT_SESSION_INVESTIGATION="short_session_investigation",e.START_STOP_ACTION="start_stop_action",e.START_STOP_RESOURCE="start_stop_resource",e.USE_CHANGE_RECORDS="use_change_records",e.USE_INCREMENTAL_CHANGE_RECORDS="use_incremental_change_records",e.LCP_SUBPARTS="lcp_subparts",e.INP_SUBPARTS="inp_subparts",e.TOO_MANY_REQUESTS_INVESTIGATION="too_many_requests_investigation"}(r||(r={}));let eO=new Set;function eT(e){let{env:t,service:n,version:r,datacenter:o,sdkVersion:i,variant:s}=e,a=[eR("sdk_version",null!=i?i:"6.31.0")];return t&&a.push(eR("env",t)),n&&a.push(eR("service",n)),r&&a.push(eR("version",r)),o&&a.push(eR("datacenter",o)),s&&a.push(eR("variant",s)),a}function eR(e,t){var n;let r=t?`${e}:${t}`:e;return(r.length>200||(n=r,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(n)))&&S.warn(`Tag ${r} doesn't meet tag requirements and will be sanitized. ${_} ${w}/getting_started/tagging/#defining-tags`),eA(r)}function eA(e){return e.replace(/,/g,"_")}let e$="datadoghq.com",eI=["ddsource","dd-api-key","dd-request-id"];function eL(e,t){let n=I.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function eN(e){return 0!==e&&100*Math.random()<=e}function eP(e,t,n=function(){if("undefined"!=typeof WeakSet){let e=new WeakSet;return{hasAlreadyBeenSeen(t){let n=e.has(t);return n||e.add(t),n}}}let e=[];return{hasAlreadyBeenSeen(t){let n=e.indexOf(t)>=0;return n||e.push(t),n}}}()){if(void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,e)}if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){let r=Array.isArray(e)?e:[];for(let e=0;e<t.length;++e)r[e]=eP(r[e],t[e],n);return r}let r="object"===z(e)?e:{};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=eP(r[e],t[e],n));return r}function eU(...e){let t;for(let n of e)null!=n&&(t=eP(t,n));return t}function eD(){let e=$().DatadogEventBridge;if(e)return{getCapabilities(){var t;return JSON.parse((null==(t=e.getCapabilities)?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return null==(t=e.getPrivacyLevel)?void 0:t.call(e)},getAllowedWebViewHosts:()=>JSON.parse(e.getAllowedWebViewHosts()),send(t,n,r){e.send(JSON.stringify({eventType:t,event:n,view:r?{id:r}:void 0}))}}}function eM(e){var t;void 0===e&&(e=null==(t=$().location)?void 0:t.hostname);let n=eD();return!!n&&n.getAllowedWebViewHosts().some(t=>e===t||e.endsWith(`.${t}`))}function eB(e){return Object.values(e)}function eq(e,t,n,r,{once:o,capture:i,passive:s}={}){let a=O(t=>{(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(o&&d(),r(t))}),u=s?{capture:i,passive:s}:i,l=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,c=B(l,"addEventListener");function d(){let e=B(l,"removeEventListener");
2n.forEach(n=>e.call(t,n,a,u))}return n.forEach(e=>c.call(t,e,a,u)),{stop:d}}let eG={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function ej(e){return new P(t=>{if(L)return;let{stop:n}=eq(e,window,["visibilitychange","freeze"],e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:eG.HIDDEN}):"freeze"===e.type&&t.notify({reason:eG.FROZEN})},{capture:!0}),r=eq(e,window,["beforeunload"],()=>{t.notify({reason:eG.UNLOADING})},void 0).stop;return()=>{n(),r()}})}function eF({encoder:e,request:t,flushController:n}){let r={},o=n.flushObservable.subscribe(n=>(function(n){var o;let i=eB(r).join("\n");r={};let s=(o=n.reason,eB(eG).includes(o)),a=s?t.sendOnExit:t.send;if(s&&e.isAsync){let t=e.finishSync();t.outputBytesCount&&a(eH(t));let n=[t.pendingData,i].filter(Boolean).join("\n");n&&a({data:n,bytesCount:eg(n)})}else i&&e.write(e.isEmpty?i:`
3${i}`),e.finish(e=>{a(eH(e))})})(n));function i(t,o){let i=ey(t),s=e.estimateEncodedBytesCount(i);if(s>
3=262144)return void S.warn(`Discarded a message whose size was bigger than the maximum allowed size ${256}KiB. ${_} ${C}/#technical-limitations`);void 0!==o&&void 0!==r[o]&&function(t){let o=r[t];delete r[t];let i=e.estimateEncodedBytesCount(o);n.notifyAfterRemoveMessage(i)}(o),n.notifyBeforeAddMessage(s),void 0!==o?(r[o]=i,n.notifyAfterAddMessage()):e.write(e.isEmpty?i:`
4${i}`,e=>{n.notifyAfterAddMessage(e-s)})}return{flushController:n,add:i,upsert:i,stop:o.unsubscribe}}function eH(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}let ez=0x1400000;function eW(e,t,n,r,o,i){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?eK(e,t,n,i,{onSuccess:()=>eJ(0,t,n,r,o,i),onFailure:()=>{t.queuedPayloads.enqueue(e)||i.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),function e(t,n,r,o,i){2===t.transportStatus&&q(()=>{eK(t.queuedPayloads.first(),t,n,i,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,eJ(1,t,n,r,o,i)},onFailure:()=>{t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),e(t,n,r,o,i)}})},t.currentBackoffTime)}(t,n,r,o,i)}}):t.queuedPayloads.enqueue(e)||i.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function eK(e,t,n,r,{onSuccess:o,onFailure:i}){t.bandwidthMonitor.add(e),n(e,n=>{var s;t.bandwidthMonitor.remove(e),"opaque"!==(s=n).type&&(0===s.status&&!navigator.onLine||408===s.status||429===s.status||s.status>=500)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},r.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),i()):(t.transportStatus=0,r.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o())})}function eJ(e,t,n,r,o,i){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:`Reached max ${r} events size queued for upload: ${ez/1048576}MiB`,source:ex.AGENT,startClocks:ed()}),t.queueFullReported=!0);let s=t.queuedPayloads;for(t.queuedPayloads=eV();s.size()>0;)eW(s.dequeue(),t,n,r,o,i)}function eV(){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>=ez}}}function eX(e,t,n=16384){let r=new P,o={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&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:eV(),queueFullReported:!1};return{observable:r,send:n=>{for(let i of e)eW(n,o,(e,t)=>{eZ(i,e,t)},i.trackType,t,r)},sendOnExit:t=>{for(let r of e)!function(e,t,n){if(navigator.sendBeacon&&n.bytesCount<t)try{let t=e.build("beacon",n);if(navigator.sendBeacon(t,n.data))return}catch(e){var r;r=e,eY||(eY=!0,R(r))}eZ(e,n)}(r,n,t)}}}let eY=!1;function eZ(e,t,n){var r,o;(r=e.build("fetch",t),o={method:"POST",body:t.data,mode:"cors"},B($(),"fetch")(r,o)).then(O(e=>null==n?void 0:n({status:e.status,type:e.type}))).catch(O(()=>null==n?void 0:n({status:0})))}let eQ=L?1:50;function e0({pageMayExitObservable:e,sessionExpireObservable:t}){let n,r=e.subscribe(e=>u(e.reason)),o=t.subscribe(()=>u("session_expire")),i=new P(()=>()=>{r.unsubscribe(),o.unsubscribe()}),s=0,a=0;function u(e){if(0===a)return;let t=a,n=s;a=0,s=0,l(),i.notify({reason:e,messagesCount:t,bytesCount:n})}function l(){G(n),n=void 0}return{flushObservable:i,get messagesCount(){return a},notifyBeforeAddMessage(e){s+e>=16384&&u("bytes_limit"),a+=1,s+=e,void 0===n&&(n=q(()=>{u("duration_limit")},3e4))},notifyAfterAddMessage(e=0){s+=e,a>=eQ?u("messages_limit"):s>=16384&&u("bytes_limit")},notifyAfterRemoveMessage(e){s-=e,0==(a-=1)&&l()}}}function e1(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){let o=eg(n);t+=o,e+=n,r&&r(o)},finish(e){e(this.finishSync())},finishSync(){let n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:e=>e.length}}let e2="DISCARDED",e3="SKIPPED",e4={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},e6=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],e5=["ddog-gov.com"];function e8(){return a||(a=new D(100)),a}function e9(e,t){A(m.debug,e,t),e8().notify({rawEvent:{type:e4.LOG,message:e,status:"debug",...t}})}function e7(e,t){e8().notify({rawEvent:{type:e4.LOG,status:"error",...function(e){if(e_(e)){var t;let n=K(e);return{error:{kind:n.name,stack:es(((t=n).stack=t.stack.filter(e=>!e.url||e6.some(t=>e.url.startsWith(t))),t))},message:n.message}}return{error:{stack:eS},message:`Uncaught ${ey(e)}`}}(e),...t}})}function te(e){e8().notify({rawEvent:{type:e4.USAGE,usage:e}})}function tt(e,t,n,r){return O((...o)=>(r&&te({feature:r}),e()[t][n](...o)))}function tn(e,t,n){e.changeObservable.subscribe(()=>{let r=e.getContext();n.add(e=>e[t].setContext(r))})}let tr={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},to={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function ti(e,t){t.silentMultipleInit||S.error(`${e} is already initialized.`)}function ts(e,t,n){let r={...e};for(let[e,{required:o,type:i}]of Object.entries(t))"string"!==i||ta(r[e])||(r[e]=String(r[e])),o&&ta(r[e])&&S.warn(`The property ${e} of ${n} is required; context will not be sent to the intake.`);return r}function ta(e){return null==e||""===e}function tu(e="",{propertiesConfig:t={}}={}){let n={},r=new P,o={getContext:()=>eP(void 0,n),setContext:i=>{!function(e){let t="object"===z(e);return t||S.error("Unsupported context:",e),t}
4(i)?o.clearContext():n=eh(ts(i,t,e)),r.notify()},setContextProperty:(o,i)=>{n=eh(ts({...n,[o]:i},t,e)),r.notify()},removeContextProperty:o=>{delete n[o],ts(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return o}function tl(e,t,n){let r=n.getHandler(),o=Array.isArray(r)?r:[r];return td[e]>=td[n.getLevel()]&&o.includes(t)}let tc={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},td={[tc.ok]:0,[tc.debug]:1,[tc.info]:2,[tc.notice]:4,[tc.warn]:5,[tc.error]:6,[tc.critical]:7,[tc.alert]:8,[tc.emerg]:9};function tf(e,{includeMessage:t=!1}={}){return{stack:e.stack,kind:e.type,message:t?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}let tp={console:"console",http:"http"},tg=Object.keys(tc);class ty{constructor(e,t,n=tp.http,r=tc.debug,o={}){this.handleLogStrategy=e,this.handlerType=n,this.level=r,this.contextManager=tu("logger"),this.tags=[],this.contextManager.setContext(o),t&&this.contextManager.setContextProperty("logger",{name:t})}logImplementation(e,t,n=tc.info,r,o){let i,s=eh(t);
4if(null!=r){let e=eC({originalError:r,nonErrorPrefix:"Provided",source:ex.LOGGER,handling:"handled",startClocks:ed()});i=eU({error:tf(e,{includeMessage:!0})},e.context,s)}else i=s;this.handleLogStrategy({message:eh(e),context:i,status:n},this,o)}log(e,t,n=tc.info,r){let o;tl(n,tp.http,this)&&(o=ei("log")),this.logImplementation(e,t,n,r,o)}setContext(e){this.contextManager.setContext(e)}getContext(){return this.contextManager.getContext()}setContextProperty(e,t){this.contextManager.setContextProperty(e,t)}removeContextProperty(e){this.contextManager.removeContextProperty(e)}clearContext(){this.contextManager.clearContext()}addTag(e,t){this.tags.push(eR(e,t))}removeTagsWithKey(e){let t=eA(e);this.tags=this.tags.filter(e=>e!==t&&!e.startsWith(`${t}:`))}getTags(){return this.tags.slice()}setHandler(e){this.handlerType=e}getHandler(){return this.handlerType}setLevel(e){this.level=e}getLevel(){return this.level}}function tm(e){return function(t,n,r){let o;tl(e,tp.http,this)&&(o=ei("log")),this.logImplementation(t,n,e,r,o)}}function th(){return L?{}:{view:{referrer:document.referrer,url:window.location.href}}}function tv(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,tv)}!function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([function(e,t,n){let r=n.value;n.value=function(...e){return(o?O(r):r).apply(this,e)}}],ty.prototype,"logImplementation",null),ty.prototype.ok=tm(tc.ok),ty.prototype.debug=tm(tc.debug),ty.prototype.info=tm(tc.info),ty.prototype.notice=tm(tc.notice),ty.prototype.warn=tm(tc.warn),ty.prototype.error=tm(tc.error),ty.prototype.critical=tm(tc.critical),ty.prototype.alert=tm(tc.alert),ty.prototype.emerg=tm(tc.emerg);let tb=/(\S+?)\s*=\s*(.+?)(?:;|$)/g;function tS(e,t,n=""){let r=e.charCodeAt(t-1),o=r>=55296&&r<=56319?t+1:t;return e.length<=o?e:`${e.slice(0,o)}${n}`}function tw(e){return tC(e,location.href).href}function tC(e,t){let{URL:n}=function(){if(!u){let e,t;try{(e=document.createElement("iframe")).style.display="none",document.body.appendChild(e),t=e.contentWindow}catch(e){t=I}u={URL:t.URL},null==e||e.remove()}return u}();try{return void 0!==t?new n(e,t):new n(e)}catch(e){throw Error(`Failed to construct URL: ${String(e)}`)}}function t_(e,t,n=0,r){let o=new Date;o.setTime(o.getTime()+n);let i=`expires=${o.toUTCString()}`,s=r&&r.crossSite?"none":"strict",a=r&&r.domain?`;domain=${r.domain}`:"",u=r&&r.secure?";secure":"",l=r&&r.partitioned?";partitioned":"";document.cookie=`${e}=${t};${i};path=/;samesite=${s}${a}${u}${l}`}function tx(e){var t=document.cookie;for(tb.lastIndex=0;;){let n=tb.exec(t);if(n){if(n[1]===e)return n[2]}else break}}function tE(e){return l||(l=function(e){let t=new Map;for(tb.lastIndex=0;;){let n=tb.exec(e);if(n)t.set(n[1],n[2]);else break}return t}(document.cookie)),l.get(e)}function tk(e=location.hostname,t=document.referrer){if(void 0===c){let n=function(e,t){try{return e||tC(t).hostname}catch(e){}}(e,t);if(n){let e=`dd_site_test_${tv()}`,t=n.split("."),r=t.pop();for(;t.length&&!tx(e);)t_(e,"test",1e3,{domain:r=`${t.pop()}.${r}`});t_(e,"",0,{domain:r}),c=r}}return c}let tO="datadog-synthetics-",tT=`${tO}public-id`,tR=`${tO}result-id`,tA=`${tO}injects-rum`,t$=`${tO}rum-context`;function tI(){return!L&&!!(I._DATADOG_SYNTHETICS_INJECTS_RUM||tE(tA))}let tL=[];function tN(e,t,n,r){var o,i;let s=(o=n,i=r,`_dd_c_${o}_${i}`);tL.push(eq(e,window,["storage"],({key:e})=>{s===e&&t.setContext(u())},void 0)),t.changeObservable.subscribe(function(){localStorage.setItem(s,JSON.stringify(t.getContext()))});let a=eU(u(),t.getContext());function u(){let e=localStorage.getItem(s);return e?JSON.parse(e):{}}ek(a)||t.setContext(a)}function tP(){return tu("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function tU(){return tu("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function tD(){return tu("global context")}function tM(e,t){let n=e.indexOf(t);n>=0&&e.splice(n,1)}let tB=1/0,tq=new Set,tG=144e5,tj=9e5,tF=31536e6,tH={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"},tz="_dd_s",tW=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function tK(e,t){let n={isExpired:"1"};
4return t.trackAnonymousUser&&(null==e?void 0:e.anonymousId)&&(n.anonymousId=null==e?void 0:e.anonymousId),n}function tJ(e){var t;return void 0!==e.isExpired||!((void 0===(t=e).created||el()-Number(t.created)<tG)&&(void 0===t.expire||el()<Number(t.expire)))}function tV(e){e.expire=String(el()+tj)}function tX(e){return Object.entries(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 n=tW.exec(e);if(null!==n){let[,e,r]=n;"aid"===e?t.anonymousId=r:t[e]=r}}),t}function tZ(e,t,n,r){let o=tX(n);t.betaEncodeCookieOptions&&(o=tX({...n,...!ek(n)?{c:t0(e)}:{}})),t_(tz,o,t.trackAnonymousUser?tF:r,e)}function tQ(e,t){return t.betaEncodeCookieOptions?function(e){let t,n=(function(e){let t=new Map;for(tb.lastIndex=0;;){let n=tb.exec(e);if(n){let e=n[1],r=n[2];t.has(e)?t.get(e).push(r):t.set(e,[r])}else break}return t})(document.cookie).get(tz)||[],r=t0(e);for(let e of n.reverse())if((t=tY(e)).c===r)break;return null==t||delete t.c,null!=t?t:{}}(e):tY(tx(tz))}function t0(e){return((e.domain?e.domain.split(".").length-1:0)<<1|!!e.crossSite).toString(16)}function t1(e){localStorage.setItem(tz,tX(e))}function t2(){return tY(localStorage.getItem(tz))}let t3=[];function t4(e,t,n=0){var r;let o,{isLockEnabled:i,persistSession:s,expireSession:a}=t,u=e=>s({...e,lock:o}),l=()=>{let{lock:e,...n}=t.retrieveSession();return{session:n,lock:e&&!function(e){var t;let[,n]=e.split("--");return!n||(t=Number(n),el()-t>1e3)}(e)?e:void 0}};if(p||(p=e),e!==p)return void t3.push(e);if(i&&n>=100)return void t5(t);let c=l();if(i&&(c.lock||(o=tv()+"--"+el(),u(c.session),(c=l()).lock!==o)))return void t6(e,t,n);let d=e.process(c.session);if(i&&(c=l()).lock!==o)return void t6(e,t,n);if(d&&(tJ(d)?a(d):(tV(d),i?u(d):s(d))),i&&!(d&&tJ(d))){if((c=l()).lock!==o)return void t6(e,t,n);s(c.session),d=c.session}null==(r=e.after)||r.call(e,d||c.session),t5(t)}function t6(e,t,n){q(()=>{t4(e,t,n+1)},10)}function t5(e){p=void 0;let t=t3.shift();t&&t4(t,e)}let t8="_DD_SESSION";function t9(){let e=$();return e[t8]||(e[t8]={}),{...e[t8]}}function t7(e){$()[t8]={...e}}let ne=[];async function nt(e){let t,n,r=e.sessionStoreStrategyType;r&&(r.type===tH.COOKIE?(t=tQ(r.cookieOptions,e),n={cookie:await nn(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):t=t2(),e9("Unexpected session state",{sessionStoreStrategyType:r.type,session:t,isSyntheticsTest:!!function(){var e;let t=function(){let e=I._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;let t=tE(t$);if(t){var n=decodeURIComponent(t);try{return JSON.parse(n)}catch(e){}return}return{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||tE(tT),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||tE(tR)}}();return"object"==typeof(e=t)&&null!==e&&"string"==typeof e.test_id&&"string"==typeof e.result_id?t:void 0}(),createdTimestamp:null==t?void 0:t.created,expireTimestamp:null==t?void 0:t.expire,...n}))}async function nn(){let e;return{count:(e="cookieStore"in window?await window.cookieStore.getAll(tz):document.cookie.split(/\s*;\s*/).filter(e=>e.startsWith(tz))).length,domain:tk()||"undefined",...e}}function nr(e,t){var n;return"0"===(n=t)||"1"===n?t:eN(e.sessionSampleRate)?"1":"0"}let no={},ni={[m.log]:tc.info,[m.debug]:tc.debug,[m.info]:tc.info,[m.warn]:tc.warn,[m.error]:tc.error},ns={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function na(e){return{startClocks:ed(),source:ex.REPORT,handling:"unhandled",...e}}function nu(e,t,n,r,o){return n?es({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}let nl=new WeakMap;function nc({target:e,parameters:[t,n]}){nl.set(e,{state:"open",method:String(t).toUpperCase(),url:tw(String(n))})}function nd({target:e}){let t=nl.get(e);t&&(t.isAborted=!0)}let nf={XHR:"xhr",FETCH:"fetch"},np={FETCH:nf.FETCH,XHR:nf.XHR};async function ng(e,t){let n=e.getReader(),r=[];for(;;){let e=await n.read();if(e.done)break;t.collectStreamBody&&r.push(e.value)}return n.cancel().catch(H),t.collectStreamBody?function(e){if(1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>
4e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r):void 0}let ny=[];function nm({responseBodyAction:e}={}){return e&&ny.push(e),y||(y=new P(e=>{if(!I.fetch)return;let{stop:t}=eu(I,"fetch",t=>(function({parameters:e,onPostCall:t,handlingStack:n},r){var o,i;let[s,a]=e,u=a&&a.method;void 0===u&&s instanceof Request&&(u=s.method);let l=void 0!==u?String(u).toUpperCase():"GET",c=s instanceof Request?s.url:tw(String(s)),d={state:"start",init:a,input:s,method:l,startClocks:ed(),url:c,handlingStack:n,isAbortedOnStart:s instanceof Request&&(null==(o=s.signal)?void 0:o.aborted)||(null==(i=null==a?void 0:a.signal)?void 0:i.aborted)||!1};r.notify(d),e[0]=d.input,e[1]=d.init,t(e=>{nh(r,e,d).catch(R)})})(t,e),{computeHandlingStack:!0});return t})),y}async function nh(e,t,n){var r,o;let i;n.state="resolve";try{i=await t}catch(t){n.status=0,n.isAborted=(null==(o=null==(r=n.init)?void 0:r.signal)?void 0:o.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,n.error=t,e.notify(n);return}n.response=i,n.status=i.status,n.responseType=i.type,n.isAborted=!1;let s=ny.reduce((e,t)=>Math.max(e,t(n)),0);if(0!==s){let e=function(e){try{return e.clone()}catch(e){return}}(i);if(e&&e.body)try{let t=await ng(e.body,{collectStreamBody:2===s});n.responseBody=t&&new TextDecoder().decode(t)}catch(e){}}e.notify(n)}function nv(e,t,n){let r=function(e,t){let n=`/api/v2/${t}`,r=e.proxy;if("string"==typeof r){let e=tw(r);return t=>`${e}?ddforward=${encodeURIComponent(`${n}?${t}`)}`}if("function"==typeof r)return e=>r({path:n,parameters:e});let o=function(e,t){let{site:n=e$,internalAnalyticsSubdomain:r}=t;if("logs"===e&&t.usePciIntake&&n===e$)return"pci.browser-intake-datadoghq.com";if(r&&n===e$)return`${r}.${e$}`;if("dd0g-gov.com"===n)return`http-intake.logs.${n}`;let o=n.split("."),i=o.pop();return`browser-intake-${o.join("-")}.${i}`}(t,e);return e=>`https://${o}${n}?${e}`}(e,t);return{build:(o,i)=>r(function({clientToken:e,internalAnalyticsSubdomain:t,source:n="browser"},r,o,{retry:i,encoding:s},a=[]){let u=[`ddsource=${n}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.31.0")}`,"dd-evp-origin=browser",`dd-request-id=${tv()}`].concat(a);return s&&u.push(`dd-evp-encoding=${s}`),"rum"===r&&(u.push(`batch_time=${el()}`,`_dd.api=${o}`),i&&u.push(`_dd.retry_count=${i.count}`,`_dd.retry_after=${i.lastFailureStatus}`)),t&&u.reverse(),u.join("&")}(e,t,o,i,n)),trackType:t}}class nb{constructor(){this.callbacks={}}notify(e,t){let n=this.callbacks[e];n&&n.forEach(e=>e(t))}subscribe(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:()=>{this.callbacks[e]=this.callbacks[e].filter(e=>t!==e)}}}}let nS={[tc.ok]:m.debug,[tc.debug]:m.debug,[tc.info]:m.info,[tc.notice]:m.info,[tc.warn]:m.warn,[tc.error]:m.error,[tc.critical]:m.error,[tc.alert]:m.error,[tc.emerg]:m.error},nw="logs",nC=function(){let e={};return{register:(t,n)=>(e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(e=>e!==n)}}),triggerHook(t,n){let r=e[t]||[],o=[];for(let e of r){let t=e(n);if(t===e2)return e2;t!==e3&&o.push(t)}return eU(...o)}}},n_=["chrome-extension://","moz-extension://"];function nx(e){return n_.some(t=>e.includes(t))}function nE(e,t){return null==e||"string"==typeof e||(S.error(`${t} must be defined as a string`),!1)}function nk(e,t){return void 0===e||!!("number"==typeof e&&e>=0&&e<=100)||(S.error(`${t} Sample Rate should be a number between 0 and 100`),!1)}function nO(e,t,n){return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every(e=>t.includes(e))?"all"===e?t:function(e){let t=new Set;return e.forEach(e=>t.add(e)),Array.from(t)}(e):void S.error(`${n} should be "all" or an array with allowed values "${t.join('", "')}"`)}let nT=function(){let e=function(e){let t=new P;return{tryToInit(t){e||(e=t)},update(n){e=n,t.notify()},isGranted:()=>e===M.GRANTED,observable:t}}(),t=function(){let e=new D(500),t=new P(e=>{var t,n;let r=(t,n)=>{let r=eC({stackTrace:n,originalError:t,startClocks:ed(),nonErrorPrefix:"Uncaught",source:ex.SOURCE,handling:"unhandled"});e.notify(r)},{stop:o}=(t=r,eu($(),"onerror",({parameters:[e,n,r,o,i]})=>{let s;e_(i)||(s=function(e,t,n,r){var o;let i,s;if(void 0===t)return;let{name:a,message:u}=(o=e,"[object String]"===({}).toString.call(o)&&([,i,s]=er.exec(o)),{name:i,message:s});return{name:a,message:u,stack:[{url:t,column:r,line:n}
4]}}(e,n,r,o)),t(null!=i?i:e,s)})),{stop:i}=(n=r,eu($(),"onunhandledrejection",({parameters:[e]})=>{n(e.reason||"Empty reason")}));return()=>{o(),i()}}).subscribe(t=>{e.notify({type:0,error:t})});return{observable:e,stop:()=>{t.unsubscribe()}}}().observable,n=function(e,t,n){let i,s,a=function(){let e=[];return{add:t=>{e.push(t)>500&&e.splice(0,1)},remove:t=>{tM(e,t)},drain:t=>{e.forEach(e=>e(t)),e.length=0}}}(),u=tD();tn(u,tr.globalContext,a);let l=tP();tn(l,tr.accountContext,a);let c=tU();tn(c,tr.userContext,a);let d=nC(),f=t.observable.subscribe(p);function p(){if(!s||!i||!t.isGranted())return;(function(e,t,n){let r=new P,{enabled:i,metricsEnabled:s}=function(e,t,n,r,i=1,s=15){var a;let u={},l=!e5.includes(t.site)&&eN(t.telemetrySampleRate),c={[e4.LOG]:l,[e4.CONFIGURATION]:l&&eN(t.telemetryConfigurationSampleRate),[e4.USAGE]:l&&eN(t.telemetryUsageSampleRate),metric:l&&eN(i)},d={is_local_file:(null==(a=I.location)?void 0:a.protocol)==="file:",is_worker:L},f=e8();return f.subscribe(({rawEvent:o,metricName:i})=>{if(i&&!c.metric||!c[o.type])return;let a=i||o.status||o.type,l=u[a];if(l||(l=u[a]=new Set),l.size>=s)return;let f=ey(o);if(l.has(f))return;let p=n.triggerHook(1,{startTime:ed().relative});if(p===e2)return;let g=function(e,n,r,o){let i={type:"telemetry",date:ed().timeStamp,service:n,version:"6.31.0",source:"browser",_dd:{format_version:2},telemetry:eU(r,{runtime_env:o,connectivity:function(){var e;let t=I.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}}(),sdk_setup:"npm"}),ddtags:eT(t).join(","),experimental_features:Array.from(eO)};return eU(i,e)}(p,e,o,d);r.notify(g),eL("telemetry",g),l.add(f)}),f.unbuffer(),o=e7,{enabled:l,metricsEnabled:c.metric}}(e,t,n,r),{stop:a}=function(e,t){let n=[];if(eM()){let e=eD(),r=t.subscribe(t=>e.send("internal_telemetry",t));n.push(r.unsubscribe)}else{let r=[e.rumEndpointBuilder];e.replica&&"datad0g.com"===e.site&&r.push(e.replica.rumEndpointBuilder);let o=eF({encoder:e1(),request:eX(r,H),flushController:e0({pageMayExitObservable:ej(e),sessionExpireObservable:new P})});n.push(o.stop);let i=t.subscribe(o.add);n.push(i.unsubscribe)}return{stop:()=>n.forEach(e=>e())}}(t,r);})("browser-logs-sdk",s,d),f.unsubscribe();let e=n(i,s,d);a.drain(e)}return{init(e,n){var o,a;if(!e)return void S.error("Missing configuration");if(Array.isArray(o=e.enableExperimentalFeatures)&&o.filter(e=>eE(r,e)).forEach(e=>{eO.add(e)}),eM()&&(e={...e,clientToken:"empty"}),i=e,a=function(e){let t={session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:Array.isArray(e.sessionPersistence)?e.sessionPersistence[0]:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),beta_encode_cookie_options:e.betaEncodeCookieOptions,source:e.source,sdk_version:e.sdkVersion,variant:e.variant};return{forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,...t}}(e),e8().notify({rawEvent:{type:e4.CONFIGURATION,configuration:a}}),s)return void ti("DD_LOGS",e);let u=function(e,t){var n,r,o,i,s,a,u,l,c,d,f,p,g;!0===e.usePciIntake&&e.site&&"datadoghq.com"!==e.site&&S.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");let y=(n=e,r=t,n&&n.clientToken?void 0===n.allowedTrackingOrigins||Array.isArray(n.allowedTrackingOrigins)?(!(g=n.site)||"string"!=typeof g||/(datadog|ddog|datad0g|dd0g)/.test(g)||(S.error(`Site should be a valid Datadog site. ${_} ${w}/getting_started/site/.`),0))&&nk(n.sessionSampleRate,"Session")&&nk(n.telemetrySampleRate,"Telemetry")&&nk(n.telemetryConfigurationSampleRate,"Telemetry Configuration")&&nk(n.telemetryUsageSampleRate,"Telemetry Usage")&&nE(n.version,"Version")&&nE(n.env,"Env")&&nE(n.service,"Service")&&function(e,t){let n=$().location,r=n?n.origin:"",o=e.allowedTrackingOrigins;if(!o)return!function(e,t=""){return!nx(e)&&nx(t.split("\n").filter(e=>{let t=e.trim();return t.length&&/^at\s+|@/.test(t)})[1]||"")}(r,t)||(S.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let i=function(e,t,n=!1){return e.some(e=>{try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.test(t);if("string"==typeof e)return n?t.startsWith(e):e===t}catch(e){S.error(e)}return!1})}(o,r);return i||S.error("SDK initialized on a non-allowed domain."),i}(n,null!=r?r:"")?void 0===n.trackingConsent||eE(M,n.trackingConsent)?{beforeSend:n.beforeSend&&x(n.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:L?void 0:function(e){var t,n;let{sessionPersistence:r}=e;
4for(let o of(t=r,n=e,Array.isArray(t)?t:void 0!==t?[t]:n.allowFallbackToLocalStorage?[tH.COOKIE,tH.LOCAL_STORAGE]:[tH.COOKIE])){let t=function(e,t){switch(e){case tH.COOKIE:let n=function(e){let t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){let e=tk();if(!e)return;t.domain=e}return t}(t);return n&&function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{let t=`dd_cookie_test_${tv()}`,n="test";t_(t,n,6e4,e);let r=tx(t)===n;return t_(t,"",0,e),r}catch(e){return S.error(e),!1}}(n)?{type:tH.COOKIE,cookieOptions:n}:void 0;case tH.LOCAL_STORAGE:try{let e=tv(),t=`_dd_test_${e}`;localStorage.setItem(t,e);let n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:tH.LOCAL_STORAGE}:void 0}catch(e){return}case tH.MEMORY:return{type:tH.MEMORY};default:S.error(`Invalid session persistence '${String(e)}'`);return}}(o,e);if(void 0!==t)return t}}(n),sessionSampleRate:null!=(o=n.sessionSampleRate)?o:100,telemetrySampleRate:null!=(i=n.telemetrySampleRate)?i:20,telemetryConfigurationSampleRate:null!=(s=n.telemetryConfigurationSampleRate)?s:5,telemetryUsageSampleRate:null!=(a=n.telemetryUsageSampleRate)?a:5,service:null!=(u=n.service)?u:void 0,env:null!=(l=n.env)?l:void 0,version:null!=(c=n.version)?c:void 0,datacenter:null!=(d=n.datacenter)?d:void 0,silentMultipleInit:!!n.silentMultipleInit,allowUntrustedEvents:!!n.allowUntrustedEvents,trackingConsent:null!=(f=n.trackingConsent)?f:M.GRANTED,trackAnonymousUser:null==(p=n.trackAnonymousUser)||p,storeContextsAcrossPages:!!n.storeContextsAcrossPages,betaEncodeCookieOptions:!!n.betaEncodeCookieOptions,variant:n.variant,sdkVersion:n.sdkVersion,...function(e){var t,n;let r=e.site||e$,o="flutter"===(t=e.source)||"unity"===t?t:"browser",i={logsEndpointBuilder:nv(n={...e,site:r,source:o},"logs"),rumEndpointBuilder:nv(n,"rum"),profilingEndpointBuilder:nv(n,"profile"),sessionReplayEndpointBuilder:nv(n,"replay"),exposuresEndpointBuilder:nv(n,"exposures"),flagEvaluationEndpointBuilder:nv(n,"flagevaluation")};return{replica:function(e){if(!e.replica)return;let t={...e,site:e$,clientToken:e.replica.clientToken};return{logsEndpointBuilder:nv(t,"logs"),rumEndpointBuilder:nv(t,"rum",[`application.id=${e.replica.applicationId}`])}}({...e,site:r,source:o}),site:r,source:o,...i}}(n)}:void S.error('Tracking Consent should be either "granted" or "not-granted"'):void 0:void S.error("Allowed Tracking Origins must be an array"):void S.error("Client Token is not configured, we will not send any data.")),h=nO(e.forwardConsoleLogs,eB(m),"Forward Console Logs"),v=nO(e.forwardReports,eB(ns),"Forward Reports");if(y&&h&&v)return e.forwardErrorsToLogs&&!h.includes(m.error)&&h.push(m.error),{forwardErrorsToLogs:!1!==e.forwardErrorsToLogs,forwardConsoleLogs:h,forwardReports:v,requestErrorResponseLengthLimit:32768,...y}}(e,n);u&&(s=u,nm().subscribe(H),t.tryToInit(u.trackingConsent),p())},get initConfiguration(){return i},globalContext:u,accountContext:l,userContext:c,getInternalContext:H,handleLog(t,n,r,o=e(),i=el()){a.add(e=>e.handleLog(t,n,r,o,i))}}}(th,e,(o,i,s)=>{let a=function(e,t,n,o,i){var s,a,u,l;let c=new nb,p=[];c.subscribe(1,e=>eL("logs",e));let y=e=>{c.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,origin:ex.AGENT,status:tc.error}}),e9("Error reported to customer",{"error.message":e.message})},b=ej(e),S=!e.sessionStoreStrategyType||eM()||tI()?function(e){let t="1"===nr(e)?{}:void 0;return{findTrackedSession:()=>t,expireObservable:new P}}(e):function(e,t){let n=function(e,t,n,o){var i;let s=new P,a=new P,u=function(e,t,n,r,o=function(e,t){return e.type===tH.COOKIE?function(e,t){let n={isLockEnabled:0===(null!=f?f:f=function(e=window){var t;let n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?0:(null==(t=e.navigator.vendor)?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}()),persistSession:n=>tZ(t,e,n,tj),retrieveSession:()=>tQ(t,e),expireSession:n=>tZ(t,e,tK(n,e),tG)};if(!tE(tz)){let e=tE("_dd"),t=tE("_dd_r"),r=tE("_dd_l"),o={};e&&(o.id=e),r&&/^[01]$/.test(r)&&(o.logs=r),t&&/^[012]$/.test(t)&&(o.rum=t),ek(o)||(tV(o),n.persistSession(o))}return n}(t,e.cookieOptions):e.type===tH.LOCAL_STORAGE?{isLockEnabled:!1,persistSession:t1,retrieveSession:t2,expireSession:e=>(function(e,t){t1(tK(e,t))})(e,t)}:{expireSession:e=>(function(e,t){t7(tK(e,t))})(e,t),isLockEnabled:!1,persistSession:t7,retrieveSession:t9}}(e,t)){let i,s=new P,a=new P,u=new P,l=j(function(){let e=o.retrieveSession();tJ(e)?t4({process:e=>tJ(e)?tK(e,t):void 0,after:p},o):p(e)},1e3);g();let{throttled:c,cancel:d}=function(e,t,n){let r,o,i=true,s=!1;return{throttled:(...t)=>{if(s){r=t;return}e(...t),s=!0,o=q(()=>{i&&r&&e(...r),s=!1,r=void 0},1e3)},cancel:()=>{G(o),s=!1,r=void 0}}}(()=>{t4({process:e=>{if(ek(e))return;let o=p(e);return function(e){if(ek(e))return;
4let o=r(e[n]);e[n]=o,delete e.isExpired,"0"===o||e.id||(e.id=tv(),e.created=String(el())),t.trackAnonymousUser&&!e.anonymousId&&(e.anonymousId=tv())}(o),o},after:e=>{ek(e)||y()||(i=e,s.notify()),i=e}},o)},0);function p(e){var r;return tJ(e)&&(e=tK(e,t)),y()&&((r=e,i.id!==r.id||i[n]!==r[n])?(i=tK(i,t),a.notify()):(u.notify({previousState:i,newState:e}),i=e)),e}function g(){t4({process:e=>{if(ek(e))return e.anonymousId=tv(),tK(e,t)},after:e=>{i=e}},o)}function y(){return(null==i?void 0:i[n])!==void 0}return{expandOrRenewSession:c,expandSession:function(){t4({process:e=>y()?p(e):void 0},o)},getSession:()=>i,renewObservable:s,expireObservable:a,sessionStateUpdateObservable:u,restartSession:g,expire:e=>{d(),!1===e&&i&&delete i.anonymousId,o.expireSession(i),p(tK(i,t))},stop:()=>{F(l)},updateSessionState:function(e){t4({process:t=>({...t,...e}),after:p},o)}}}(e.sessionStoreStrategyType,e,t,n);ne.push(()=>u.stop());let l=function({expireDelay:e,maxEntries:t}){let n=[];d||(d=j(()=>void tq.forEach(e=>e()),6e4));let r=()=>{let t=ec()-e;for(;n.length>0&&n[n.length-1].endTime<t;)n.pop()};return tq.add(r),{add:function(e,r){let o={value:e,startTime:r,endTime:tB,remove:()=>{tM(n,o)},close:e=>{o.endTime=e}};return t&&n.length>=t&&n.pop(),n.unshift(o),o},find:function(e=tB,t={returnInactive:!1}){for(let r of n)if(r.startTime<=e){if(t.returnInactive||e<=r.endTime)return r.value;break}},closeActive:function(e){let t=n[0];t&&t.endTime===tB&&t.close(e)},findAll:function(e=tB,t=0){let r=e+t;return n.filter(t=>t.startTime<=r&&e<=t.endTime).map(e=>e.value)},getEntries:function(e){return n.filter(t=>t.startTime===e)},reset:function(){n=[]},stop:function(){tq.delete(r),0===tq.size&&d&&(F(d),d=void 0)}}}({expireDelay:tG});if(ne.push(()=>l.stop()),u.renewObservable.subscribe(()=>{l.add(c(),ec()),s.notify()}),u.expireObservable.subscribe(()=>{a.notify(),l.closeActive(ec())}),u.expandOrRenewSession(),l.add(c(),{relative:0,timeStamp:ef()}.relative),i=r.SHORT_SESSION_INVESTIGATION,eO.has(i)){let t=u.getSession();t&&function(e,t){if(!window.cookieStore||!t.created)return;let n=Number(t.created),r=el(),{stop:o}=eq(e,cookieStore,["change"],function(e){let i=function(e,t){for(let n=e.length-1;n>=0;n-=1){let r=e[n];if(t(r,n,e))return r}}(e.changed,e=>e.name===tz);if(!i)return;let s=el()-n;if(s>84e4)o();else{let e=tY(i.value);if(e.id&&e.id!==t.id){o();let n=el()-r;nn().then(r=>{e9("Session cookie changed",{time:n,session_age:s,old:t,new:e,cookie:r})}).catch(R)}}},void 0);ne.push(o)}(e,t)}function c(){let n=u.getSession();return n?{id:n.id,trackingType:n[t],isReplayForced:!!n.forcedReplay,anonymousId:n.anonymousId}:(nt(e).catch(()=>void 0),{id:"invalid",trackingType:"0",isReplayForced:!1,anonymousId:void 0})}return o.observable.subscribe(()=>{o.isGranted()?u.expandOrRenewSession():u.expire(!1)}),function(e,t){let{stop:n}=eq(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});ne.push(n)}(e,()=>{o.isGranted()&&u.expandOrRenewSession()}),function(e,t){let n=()=>{"visible"===document.visibilityState&&t()},{stop:r}=eq(e,document,["visibilitychange"],n,void 0);ne.push(r);let o=j(n,6e4);ne.push(()=>{F(o)})}(e,()=>u.expandSession()),function(e,t){let{stop:n}=eq(e,window,["resume"],t,{capture:!0});ne.push(n)}(e,()=>u.restartSession()),{findSession:(e,t)=>l.find(e,t),renewObservable:s,expireObservable:a,sessionStateUpdateObservable:u.sessionStateUpdateObservable,expire:u.expire,updateSessionState:u.updateSessionState}}(e,"logs",t=>nr(e,t),t);return{findTrackedSession:(e,t={returnInactive:!1})=>{let r=n.findSession(e,t);return r&&"1"===r.trackingType?{id:r.id,anonymousId:r.anonymousId}:void 0},expireObservable:n.expireObservable}}(e,n);function w(){return n.isGranted()?e3:e2}i.register(0,w),i.register(1,w),i.register(0,({startTime:t})=>{let n=S.findTrackedSession(t);return S.findTrackedSession(t,{returnInactive:!0})?{service:e.service,session_id:n?n.id:void 0,session:n?{id:n.id}:void 0}:e2}),i.register(1,({startTime:e})=>{let t=S.findTrackedSession(e);return t&&t.id?{session:{id:t.id}}:e3});let C=function(e,t,n){let r=tP();return t.storeContextsAcrossPages&&tN(t,r,n,4),e.register(0,()=>{let e=r.getContext();return ek(e)||!e.id?e3:{account:e}}),r}(i,e,nw),_=function(e,t,n,r){let o=tU();return t.storeContextsAcrossPages&&tN(t,o,r,1),e.register(0,({eventType:e,startTime:r})=>{let i=o.getContext(),s=n.findTrackedSession(r);
4return(s&&s.anonymousId&&!i.anonymous_id&&t.trackAnonymousUser&&(i.anonymous_id=s.anonymousId),ek(i))?e3:{type:e,usr:i}}),e.register(1,({startTime:e})=>{var t;return{anonymous_id:null==(t=n.findTrackedSession(e))?void 0:t.anonymousId}}),o}(i,e,S,nw),x=function(e,t,n,r){let o=tD();return t.storeContextsAcrossPages&&tN(t,o,n,2),e.register(0,()=>{let e=o.getContext();return r?{context:e}:e}),o}(i,e,nw,!1);function E(e){let t=function(e,t){if(t&&t.getInternalContext)return t.getInternalContext(e)}(e,tI()?I.DD_RUM_SYNTHETICS:I.DD_RUM);if(t)return t}i.register(0,({startTime:e})=>{let t=E(e);return t||e3}),i.register(1,({startTime:e})=>{var t,n;let r=E(e);return r?{application:{id:r.application_id},view:{id:null==(t=r.view)?void 0:t.id},action:{id:null==(n=r.user_action)?void 0:n.id}}:e3}),function(e,t){var n;if(e.forwardErrorsToLogs)(L?new P:(!g&&(n=e,g=new P(e=>{let{stop:t}=eu(XMLHttpRequest.prototype,"open",nc),{stop:r}=eu(XMLHttpRequest.prototype,"send",t=>{!function({target:e,parameters:[t],handlingStack:n},r,o){let i=nl.get(e);if(!i)return;i.state="start",i.startClocks=ed(),i.isAborted=!1,i.xhr=e,i.handlingStack=n,i.requestBody=t;let s=!1,{stop:a}=eu(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&u()}),u=()=>{var t;l(),a(),s||(s=!0,i.state="complete",t=i.startClocks.timeStamp,i.duration=el()-t,i.status=e.status,"string"==typeof e.response&&(i.responseBody=e.response),o.notify({...i}))},{stop:l}=eq(r,e,["loadend"],u,void 0);o.notify(i)}(t,n,e)},{computeHandlingStack:!0}),{stop:o}=eu(XMLHttpRequest.prototype,"abort",nd);return()=>{t(),r(),o()}})),g)).subscribe(e=>{"complete"===e.state&&o(np.XHR,e)}),nm({responseBodyAction:e=>2*!!r(e)}).subscribe(e=>{"resolve"===e.state&&o(np.FETCH,e)});function r(e){var t,n;return t=e.url,!eI.every(e=>t.includes(e))&&(0===(n=e).status&&"opaque"!==n.responseType||e.status>=500)}function o(n,o){var i;if(!r(o))return;let s="error"in o&&o.error?es(K(o.error)):o.responseBody||"Failed to load",a={isAborted:o.isAborted,handlingStack:o.handlingStack};t.notify(0,{rawLogsEvent:{message:`${(i=n,np.XHR===i?"XHR":"Fetch")} error ${o.method} ${o.url}`,date:o.startClocks.timeStamp,error:{stack:tS(s,e.requestErrorResponseLengthLimit,"..."),handling:void 0},http:{method:o.method,status_code:o.status,url:o.url},status:tc.error,origin:ex.NETWORK},domainContext:a})}}(e,c),function(e,t,n){if(e.forwardErrorsToLogs)n.subscribe(e=>{if(0===e.type){let n=e.error;t.notify(0,{rawLogsEvent:{message:n.message,date:n.startClocks.timeStamp,error:tf(n),origin:ex.SOURCE,status:tc.error},messageContext:n.context})}})}(e,c,o),o.unbuffer(),s=e,a=c,U(...s.forwardConsoleLogs.map(e=>{var t;return no[e]||(no[e]=(t=e,new P(e=>{let n=h[t];return h[t]=(...r)=>{n.apply(console,r);let o=ei("console error");T(()=>{e.notify(function(e,t,n){let r=e.map(e=>{var t;return"string"==typeof(t=e)?eh(t):e_(t)?ea(K(t)):ey(eh(t),void 0,2)}).join(" ");if(t===m.error){let o=eC({originalError:e.find(e_),handlingStack:n,startClocks:ed(),source:ex.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=r,{api:t,message:r,handlingStack:n,error:o}}return{api:t,message:r,error:void 0,handlingStack:n}}(r,t,o))})},()=>{h[t]=n}}))),no[e]})).subscribe(e=>{var t;let n={rawLogsEvent:{date:el(),message:e.message,origin:ex.CONSOLE,error:e.error&&tf(e.error),status:ni[e.api]},messageContext:null==(t=e.error)?void 0:t.context,domainContext:{handlingStack:e.handlingStack}};a.notify(0,n)}),u=e,l=c,(function(e,t){var n,r;let o=[];t.includes(ns.cspViolation)&&o.push((n=e,new P(e=>{let{stop:t}=eq(n,document,["securitypolicyviolation"],t=>{e.notify(function(e){let t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return na({type:e.effectiveDirective,message:`${ns.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:nu(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${tS(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(t))},void 0);return t})));let i=t.filter(e=>e!==ns.cspViolation);return i.length&&o.push((r=i,new P(e=>{if(!window.ReportingObserver)return;let t=O((t,n)=>t.forEach(t=>e.notify(function(e){let{type:t,body:n}=e;return na({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:nu(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}(t)))),n=new window.ReportingObserver(t,{types:r,buffered:!0});return n.observe(),()=>{n.disconnect()}}))),U(...o)})(u,u.forwardReports).subscribe(e=>{let t,n=e.message,r="deprecation"===e.originalError.type?tc.warn:tc.error;if(r===tc.error)t=tf(e);else{var o,i;e.stack&&(n+=` Found in ${o=e.stack,null==(i=/@ (.+)/.exec(o))?void 0:i[1]}`)}l.notify(0,{rawLogsEvent:{date:el(),message:n,origin:ex.REPORT,error:t,status:r}})});let{handleLog:k}={handleLog:function(e,t,n,r,o){let i=eU(t.getContext(),e.context);if(tl(e.status,tp.console,t)&&function({status:e,message:t},n){v[nS[e]].call(h,t,n)}(e,i),tl(e.status,tp.http,t)){let s={rawLogsEvent:{date:o||el(),message:e.message,status:e.status,origin:ex.LOGGER},messageContext:i,savedCommonContext:r,ddtags:t.getTags()};n&&(s.domainContext={handlingStack:n}),c.notify(0,s)}}},A=tg.concat(["custom"]),$={};
4if(A.forEach(e=>{$[e]=function(e,t,n=3e3){let r=0,o=!1;return{isLimitReached(){if(0===r&&q(()=>{r=0},6e4),(r+=1)<=n||o)return o=!1,!1;if(r===n+1){o=!0;try{t({message:`Reached max number of ${e}s by minute: ${n}`,source:ex.AGENT,startClocks:ed()})}finally{o=!1}}return!0}}}(e,y,void 0)}),c.subscribe(0,({rawLogsEvent:n,messageContext:r,savedCommonContext:o,domainContext:s,ddtags:a=[]})=>{var u,l;let d=n.date-ef(),f=o||t(),p=i.triggerHook(0,{startTime:d});if(p===e2)return;let g=eT(e),y=eU({view:f.view},p,n,r,{ddtags:g.concat(a).join(",")});(null==(u=e.beforeSend)?void 0:u.call(e,y,s))===!1||y.origin!==ex.AGENT&&(null!=(l=$[y.status])?l:$.custom).isLimitReached()||c.notify(1,y)}),eM()){let e=eD();c.subscribe(1,t=>{e.send("log",t)})}else{let{stop:t}=function(e,t,n,r,o){let i=[e.logsEndpointBuilder];e.replica&&i.push(e.replica.logsEndpointBuilder);let s=eF({encoder:e1(),request:eX(i,n),flushController:e0({pageMayExitObservable:r,sessionExpireObservable:o.expireObservable})});return t.subscribe(1,e=>{s.add(e)}),s}(e,c,y,b,S);p.push(()=>t())}return{handleLog:k,getInternalContext:({get:e=>{let t=S.findTrackedSession(e);if(t)return{session_id:t.id}}}).get,accountContext:C,globalContext:x,userContext:_,stop:()=>{p.forEach(e=>e())}}}(i,th,e,t,s);return n={init:e=>{ti("DD_LOGS",e)},initConfiguration:o,...a},a}),i=()=>n,s={},a={version:"6.31.0",onReady(e){e()},...{logger:new ty((...e)=>n.handleLog(...e)),init:e=>{let t=Error().stack;T(()=>n.init(e,t))},setTrackingConsent:O(t=>{e.update(t),te({feature:"set-tracking-consent",tracking_consent:t})}),getGlobalContext:tt(i,tr.globalContext,to.getContext),setGlobalContext:tt(i,tr.globalContext,to.setContext),setGlobalContextProperty:tt(i,tr.globalContext,to.setContextProperty),removeGlobalContextProperty:tt(i,tr.globalContext,to.removeContextProperty),clearGlobalContext:tt(i,tr.globalContext,to.clearContext),createLogger:O((e,t={})=>(s[e]=new ty((...e)=>n.handleLog(...e),eh(e),t.handler,t.level,eh(t.context)),s[e])),getLogger:O(e=>s[e]),getInitConfiguration:O(()=>eP(void 0,n.initConfiguration)),getInternalContext:O(e=>n.getInternalContext(e)),setUser:tt(i,tr.userContext,to.setContext),getUser:tt(i,tr.userContext,to.getContext),setUserProperty:tt(i,tr.userContext,to.setContextProperty),removeUserProperty:tt(i,tr.userContext,to.removeContextProperty),clearUser:tt(i,tr.userContext,to.clearContext),setAccount:tt(i,tr.accountContext,to.setContext),getAccount:tt(i,tr.accountContext,to.getContext),setAccountProperty:tt(i,tr.accountContext,to.setContextProperty),removeAccountProperty:tt(i,tr.accountContext,to.removeContextProperty),clearAccount:tt(i,tr.accountContext,to.clearContext)}};return Object.defineProperty(a,"_setDebug",{get:()=>k,enumerable:!1}),a}();!function(e,t,n){let r=e[t];r&&!r.q&&r.version&&S.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,r&&r.q&&r.q.forEach(e=>x(e,"onReady callback threw an error:")())}($(),"DD_LOGS",nT)}}]);

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.