Socket
Socket
Sign inDemoInstall

@datadog/browser-logs

Package Overview
Dependencies
Maintainers
1
Versions
253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datadog/browser-logs - npm Package Compare versions

Comparing version 5.24.0 to 5.25.0

2

bundle/datadog-logs.js

@@ -1,1 +0,1 @@

!function(){"use strict";var e={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},t=console,n={};Object.keys(e).forEach((function(e){n[e]=t[e]}));var r="Datadog Browser SDK:",o={debug:n.debug.bind(t,r),log:n.log.bind(t,r),info:n.info.bind(t,r),warn:n.warn.bind(t,r),error:n.error.bind(t,r)},i="https://docs.datadoghq.com",a="".concat(i,"/real_user_monitoring/browser/troubleshooting"),s="More details:";function c(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return e.apply(void 0,n)}catch(e){o.error(t,e)}}}var u,f=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},l=!1;function d(e){l=e}function v(e,t,n){var r=n.value;n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(u?p(r):r).apply(this,e)}}function p(e){return function(){return g(e,this,arguments)}}function g(e,t,n){try{return e.apply(t,n)}catch(e){if(m(e),u)try{u(e)}catch(e){m(e)}}}function m(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];l&&o.error.apply(o,f(["[MONITOR]"],e,!1))}function y(e,t){return-1!==e.indexOf(t)}function h(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach((function(e){return t.push(e)}));else for(var n=0;n<e.length;n++)t.push(e[n]);return t}function b(e){return Object.keys(e).map((function(t){return e[t]}))}function S(e,t){return e.slice(0,t.length)===t}function w(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function C(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}var k=1024,x=1024*k,E=/[^\u0000-\u007F]/;function _(e){return E.test(e)?void 0!==window.TextEncoder?(new TextEncoder).encode(e).length:new Blob([e]).size:e.length}function T(e,t){var n,r=C();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}function O(e,t){return T(C(),"setTimeout")(p(e),t)}function R(e){T(C(),"clearTimeout")(e)}function L(e,t){return T(C(),"setInterval")(p(e),t)}function A(e){T(C(),"clearInterval")(e)}function I(e,t,n){var r,o,i=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];s?r=n:(i?e.apply(void 0,n):r=n,s=!0,o=O((function(){a&&r&&e.apply(void 0,r),s=!1,r=void 0}),t))},cancel:function(){R(o),s=!1,r=void 0}}}function P(){}function D(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);var r=M(Object.prototype),o=M(Array.prototype),i=M(Object.getPrototypeOf(e)),a=M(e);try{return JSON.stringify(e,t,n)}catch(e){return"<error: unable to serialize object>"}finally{r(),o(),i(),a()}}function M(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):P}function N(e,t){return Object.keys(e).some((function(n){return e[n]===t}))}function U(e){return 0===Object.keys(e).length}var B=3*k,q=16*k,j=200;function G(e){void 0===e&&(e=2);var t=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==e){var i=2===e?B:q,c=r;t.forEach((function(e){c+=e.getBytesCount()})),c>i&&(!function(e){o.warn("Customer data exceeds the recommended ".concat(e/k,"KiB threshold. ").concat(s," ").concat(a,"/#customer-data-exceeds-the-recommended-threshold-warning"))}(i),n=!0)}}return{createDetachedTracker:function(){var e=F((function(){return r(e.getBytesCount())}));return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,F(r)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,r())},getCompressionStatus:function(){return e},stop:function(){t.forEach((function(e){return e.stop()})),t.clear()}}}function F(e){var t=0,n=I((function(n){t=_(D(n)),e()}),j),r=n.throttled,o=n.cancel,i=function(){o(),t=0};return{updateCustomerData:function(e){U(e)?i():r(e)},resetCustomerData:i,getBytesCount:function(){return t},stop:function(){o()}}}function H(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function z(e,t,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;return n||t.push(e),n}}}()),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){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var o=Array.isArray(e)?e:[],i=0;i<t.length;++i)o[i]=z(o[i],t[i],n);return o}var a="object"===H(e)?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=z(a[s],t[s],n));return a}}function J(e){return z(void 0,e)}function W(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];null!=i&&(e=z(e,i))}return e}var V=220*k,$="$",K=3;function X(e,t){void 0===t&&(t=V);var n=M(Object.prototype),r=M(Array.prototype),o=[],i=new WeakMap,a=Z(e,$,void 0,o,i),s=JSON.stringify(a),c=s?s.length:0;if(!(c>t)){for(;o.length>0&&c<t;){var u=o.shift(),f=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(c+=void 0!==(d=Z(u.source[l],u.path,l,o,i))?JSON.stringify(d).length:4,c+=f,f=1,c>t){Y(t,"truncated",e);break}u.target[l]=d}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var d;if(void 0!==(d=Z(u.source[l],u.path,l,o,i))&&(c+=JSON.stringify(d).length+f+l.length+K,f=1),c>t){Y(t,"truncated",e);break}u.target[l]=d}}return n(),r(),a}Y(t,"discarded",e)}function Z(e,t,n,r,o){var i=function(e){var t=e;if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(e){}return e}(e);if(!i||"object"!=typeof i)return function(e){if("bigint"==typeof e)return"[BigInt] ".concat(e.toString());if("function"==typeof e)return"[Function] ".concat(e.name||"unknown");if("symbol"==typeof e)return"[Symbol] ".concat(e.description||e.toString());return e}(i);var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=e;if(o.has(s))return"[Reference seen at ".concat(o.get(s),"]");var c=void 0!==n?"".concat(t,".").concat(n):t,u=Array.isArray(i)?[]:{};return o.set(s,c),r.push({source:i,target:u,path:c}),u}function Y(e,t,n){o.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var Q=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){t.observers=t.observers.filter((function(t){return e!==t})),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach((function(t){return t(e)}))},e}();function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Q((function(t){var n=e.map((function(e){return e.subscribe((function(e){return t.notify(e)}))}));return function(){return n.forEach((function(e){return e.unsubscribe()}))}}))}function te(e){var t={},n=new Q,r={getContext:function(){return J(t)},setContext:function(o){"object"===H(o)?(t=X(o),e.updateCustomerData(t)):r.clearContext(),n.notify()},setContextProperty:function(r,o){t[r]=X(o),e.updateCustomerData(t),n.notify()},removeContextProperty:function(r){delete t[r],e.updateCustomerData(t),n.notify()},clearContext:function(){t={},e.resetCustomerData(),n.notify()},changeObservable:n};return r}var ne={GRANTED:"granted",NOT_GRANTED:"not-granted"};function re(e,t,n,r,o){return oe(e,t,[n],r,o)}function oe(e,t,n,r,o){var i=void 0===o?{}:o,a=i.once,s=i.capture,c=i.passive,u=p((function(t){(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(a&&d(),r(t))})),f=c?{capture:s,passive:c}:s,l=T(t,"addEventListener");function d(){var e=T(t,"removeEventListener");n.forEach((function(n){return e.call(t,n,u,f)}))}return n.forEach((function(e){return l.call(t,e,u,f)})),{stop:d}}var ie="_dd_c",ae=[];function se(e,t,n,r){var o=function(e,t){return"".concat(ie,"_").concat(e,"_").concat(t)}(n,r);function i(){var e=localStorage.getItem(o);return null!==e?JSON.parse(e):{}}ae.push(re(e,window,"storage",(function(e){var n=e.key;o===n&&t.setContext(i())}))),t.changeObservable.subscribe((function(){localStorage.setItem(o,JSON.stringify(t.getContext()))})),t.setContext(W(i(),t.getContext()))}var ce="?";function ue(e){var t=[],n=he(e,"stack"),r=String(e);return n&&S(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(e){var n=function(e){var t=de.exec(e);if(!t)return;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=ve.exec(t[2]);r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]);return{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||ce,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){var t=pe.exec(e);if(!t)return;return{args:[],column:t[3]?+t[3]:void 0,func:ce,line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=ge.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||ce,line:+t[3],url:t[2]}}(e)||function(e){var t=me.exec(e);if(!t)return;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=ye.exec(t[3]);n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0);return{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||ce,line:t[4]?+t[4]:void 0,url:t[3]}}(e);n&&(!n.func&&n.line&&(n.func=ce),t.push(n))})),{message:he(e,"message"),name:he(e,"name"),stack:t}}var fe="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",le="(?::(\\d+))",de=new RegExp("^\\s*at (.*?) ?\\(".concat(fe).concat(le,"?").concat(le,"?\\)?\\s*$"),"i"),ve=new RegExp("\\((\\S*)".concat(le).concat(le,"\\)"));var pe=new RegExp("^\\s*at ?".concat(fe).concat(le,"?").concat(le,"??\\s*$"),"i");var ge=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var me=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ye=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function he(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}function be(e,t,n,r){var o=[{url:t,column:r,line:n}],i=function(e){var t,n,r;"[object String]"==={}.toString.call(e)&&(n=(t=Se.exec(e))[1],r=t[2]);return{name:n,message:r}}(e);return{name:i.name,message:i.message,stack:o}}var Se=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function we(){var e,t=new Error;if(!t.stack)try{throw t}catch(e){}return g((function(){var n=ue(t);n.stack=n.stack.slice(2),e=Ce(n)})),e}function Ce(e){var t=ke(e);return e.stack.forEach((function(e){var n="?"===e.func?"<anonymous>":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",o=e.line?":".concat(e.line):"",i=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(o).concat(i)})),t}function ke(e){return"".concat(e.name||"Error",": ").concat(e.message)}var xe,Ee="No stack, consider using an instance of Error";function _e(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,o=e.startClocks,i=e.nonErrorPrefix,a=e.source,s=e.handling,c=n instanceof Error,u=function(e,t,n,r){return(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:t?"Empty message":"".concat(n," ").concat(D(X(r)))}(t,c,i,n),f=function(e,t){if(void 0===t)return!1;if(e)return!0;return t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url)}(c,t)?Ce(t):Ee,l=c?Oe(n,a):void 0;return{startClocks:o,source:a,handling:s,handlingStack:r,originalError:n,type:t?t.name:void 0,message:u,stack:f,causes:l,fingerprint:Te(n)}}function Te(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function Oe(e,t){for(var n=e,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var o=ue(n.cause);r.push({message:n.cause.message,source:t,type:null==o?void 0:o.name,stack:o&&Ce(o)}),n=n.cause}return r.length?r:void 0}!function(e){e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.CUSTOM_VITALS="custom_vitals",e.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings",e.REMOTE_CONFIGURATION="remote_configuration",e.UPDATE_VIEW_NAME="update_view_name",e.NULL_INP_TELEMETRY="null_inp_telemetry",e.LONG_ANIMATION_FRAME="long_animation_frame"}(xe||(xe={}));var Re=new Set;function Le(e){Array.isArray(e)&&e.filter((function(e){return N(xe,e)})).forEach((function(e){Re.add(e)}))}function Ae(){return Re}var Ie,Pe="datad0g.com",De="dd0g-gov.com",Me="datadoghq.com",Ne="pci.browser-intake-datadoghq.com",Ue=1e3,Be=60*Ue,qe=60*Be;function je(){return(new Date).getTime()}function Ge(){return je()}function Fe(){return performance.now()}function He(){return{relative:Fe(),timeStamp:Ge()}}function ze(e,t){return e+t}function Je(e){return e-We()}function We(){return void 0===Ie&&(Ie=performance.timing.navigationStart),Ie}function Ve(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function $e(e){return 0!==e&&100*Math.random()<=e}function Ke(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null===(e=t.connection)||void 0===e?void 0:e.effectiveType}}function Xe(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var Ze=500;function Ye(){var e=[];return{add:function(t){e.push(t)>Ze&&e.splice(0,1)},remove:function(t){Xe(e,t)},drain:function(t){e.forEach((function(e){return e(t)})),e.length=0}}}var Qe={log:"log",configuration:"configuration",usage:"usage"},et=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],tt=["ddog-gov.com"],nt=Ye(),rt=function(e){nt.add((function(){return rt(e)}))};function ot(e,t){var n,r,o=new Q,i=new Set,a=!y(tt,t.site)&&$e(t.telemetrySampleRate),s=((n={})[Qe.log]=a,n[Qe.configuration]=a&&$e(t.telemetryConfigurationSampleRate),n[Qe.usage]=a&&$e(t.telemetryUsageSampleRate),n),c={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return rt=function(n){var a=D(n);if(s[n.type]&&i.size<t.maxTelemetryEventsPerPage&&!i.has(a)){var u=function(e,t,n){return W({type:"telemetry",date:Ge(),service:e,version:"5.24.0",source:"browser",_dd:{format_version:2},telemetry:W(t,{runtime_env:n,connectivity:Ke()}),experimental_features:h(Ae())},void 0!==r?r():{})}(e,n,c);o.notify(u),Ve("telemetry",u),i.add(a)}},u=at,{setContextProvider:function(e){r=e},observable:o,enabled:a}}function it(t,n){m(e.debug,t,n),rt(w({type:Qe.log,message:t,status:"debug"},n))}function at(e,t){rt(w({type:Qe.log,status:"error"},function(e){if(e instanceof Error){var t=ue(e);return{error:{kind:t.name,stack:Ce(st(t))},message:t.message}}return{error:{stack:Ee},message:"".concat("Uncaught"," ").concat(D(e))}}(e),t))}function st(e){return e.stack=e.stack.filter((function(e){return!e.url||et.some((function(t){return S(e.url,t)}))})),e}function ct(e){var t=w({},e);return["id","name","email"].forEach((function(e){e in t&&(t[e]=String(t[e]))})),t}function ut(e,t){t.silentMultipleInit||o.error("".concat(e," is already initialized."))}var ft,lt={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function dt(e,t,n){var r=n.getHandler(),o=Array.isArray(r)?r:[r];return pt[e]>=pt[n.getLevel()]&&y(o,t)}var vt={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},pt=((ft={})[vt.ok]=0,ft[vt.debug]=1,ft[vt.info]=2,ft[vt.notice]=4,ft[vt.warn]=5,ft[vt.error]=6,ft[vt.critical]=7,ft[vt.alert]=8,ft[vt.emerg]=9,ft);function gt(e,t){var n=(void 0===t?{}:t).includeMessage,r=void 0!==n&&n;return{stack:e.stack,kind:e.type,message:r?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var mt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yt={console:"console",http:"http",silent:"silent"},ht=Object.keys(vt),bt=function(){function e(e,t,n,r,o,i){void 0===r&&(r=yt.http),void 0===o&&(o=vt.debug),void 0===i&&(i={}),this.handleLogStrategy=e,this.handlerType=r,this.level=o,this.contextManager=te(t),this.contextManager.setContext(i),n&&this.contextManager.setContextProperty("logger",{name:n})}return e.prototype.logImplementation=function(e,t,n,r,o){void 0===n&&(n=vt.info);var i,a=X(t);null!=r?i=W({error:gt(_e({stackTrace:r instanceof Error?ue(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:lt.LOGGER,handling:"handled",startClocks:He()}),{includeMessage:!0})},a):i=a;this.handleLogStrategy({message:X(e),context:i,status:n},this,o)},e.prototype.log=function(e,t,n,r){var o;void 0===n&&(n=vt.info),dt(n,yt.http,this)&&(o=we()),this.logImplementation(e,t,n,r,o)},e.prototype.setContext=function(e){this.contextManager.setContext(e)},e.prototype.getContext=function(){return this.contextManager.getContext()},e.prototype.setContextProperty=function(e,t){this.contextManager.setContextProperty(e,t)},e.prototype.removeContextProperty=function(e){this.contextManager.removeContextProperty(e)},e.prototype.clearContext=function(){this.contextManager.clearContext()},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},mt([v],e.prototype,"logImplementation",null),e}();function St(e){return function(t,n,r){var o;dt(e,yt.http,this)&&(o=we()),this.logImplementation(t,n,e,r,o)}}function wt(){var e=C().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null===(t=e.getPrivacyLevel)||void 0===t?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n,r){var o=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:o}))}}}function Ct(e){var t;void 0===e&&(e=null===(t=C().location)||void 0===t?void 0:t.hostname);var n=wt();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r);var n,r}))}function kt(e,t,n,r){var o=(void 0===r?{}:r).computeHandlingStack,i=e[t];if("function"!=typeof i){if(!(t in e)||!S(t,"on"))return{stop:P};i=P}var a=!1,s=function(){if(a)return i.apply(this,arguments);var e,t=h(arguments);g(n,null,[{target:this,parameters:t,onPostCall:function(t){e=t},handlingStack:o?we():void 0}]);var r=i.apply(this,t);return e&&g(e,null,[r]),r};return e[t]=s,{stop:function(){a=!0,e[t]===s&&(e[t]=i)}}}function xt(e){return Et(e,location.href).href}function Et(e,t){var n=function(){if(void 0===_t)try{var e=new Ot("http://test/path");_t="http://test/path"===e.href}catch(e){_t=!1}return _t?Ot:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw new Error("Failed to construct URL: ".concat(String(n)," ").concat(D({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var r=document,o=r.createElement("a");if(void 0!==t){var i=(r=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,r.head.appendChild(i),r.body.appendChild(o)}return o.href=e,o}bt.prototype.ok=St(vt.ok),bt.prototype.debug=St(vt.debug),bt.prototype.info=St(vt.info),bt.prototype.notice=St(vt.notice),bt.prototype.warn=St(vt.warn),bt.prototype.error=St(vt.error),bt.prototype.critical=St(vt.critical),bt.prototype.alert=St(vt.alert),bt.prototype.emerg=St(vt.emerg);var _t,Tt,Ot=URL;function Rt(){return Tt||(Tt=new Q((function(e){if(window.fetch){var t=kt(window,"fetch",(function(t){return function(e,t){var n=e.parameters,r=e.onPostCall,o=e.handlingStack,i=n[0],a=n[1],s=a&&a.method;void 0===s&&i instanceof Request&&(s=i.method);var c=void 0!==s?String(s).toUpperCase():"GET",u=i instanceof Request?i.url:xt(String(i)),f=He(),l={state:"start",init:a,input:i,method:c,startClocks:f,url:u,handlingStack:o};t.notify(l),n[0]=l.input,n[1]=l.init,r((function(e){return function(e,t,n){var r=n;function o(t){r.state="resolve",w(r,t),e.notify(r)}t.then(p((function(e){o({response:e,responseType:e.type,status:e.status,isAborted:!1})})),p((function(e){var t,n;o({status:0,isAborted:(null===(n=null===(t=r.init)||void 0===t?void 0:t.signal)||void 0===n?void 0:n.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})})))}(t,e,l)}))}(t,e)}),{computeHandlingStack:!0}).stop;return t}}))),Tt}function Lt(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,Lt)}var At,It,Pt,Dt=/([\w-]+)\s*=\s*([^;]+)/g;function Mt(e,t,n){void 0===n&&(n="");var r=e.charCodeAt(t-1),o=r>=55296&&r<=56319?t+1:t;return e.length<=o?e:"".concat(e.slice(0,o)).concat(n)}function Nt(){return null!=At?At:At=function(e){var t;void 0===e&&(e=window);var n=e.navigator.userAgent;if(e.chrome||/HeadlessChrome/.test(n))return 1;if(0===(null===(t=e.navigator.vendor)||void 0===t?void 0:t.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return 2;if(e.document.documentMode)return 0;return 3}()}function Ut(e,t,n,r){var o=new Date;o.setTime(o.getTime()+n);var i="expires=".concat(o.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",c=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(i,";path=/;samesite=").concat(a).concat(s).concat(c).concat(u)}function Bt(e){return function(e,t){for(Dt.lastIndex=0;;){var n=Dt.exec(e);if(!n)break;if(n[1]===t)return n[2]}}(document.cookie,e)}function qt(e){return It||(It=function(e){var t=new Map;for(Dt.lastIndex=0;;){var n=Dt.exec(e);if(!n)break;t.set(n[1],n[2])}return t}(document.cookie)),It.get(e)}function jt(e,t){Ut(e,"",0,t)}var Gt="_dd_s",Ft=4*qe,Ht=15*Be,zt=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Jt="&",Wt="1";function Vt(){return{isExpired:Wt}}function $t(e){return U(e)}function Kt(e){return!$t(e)}function Xt(e){return void 0!==e.isExpired||!((void 0===(t=e).created||je()-Number(t.created)<Ft)&&(void 0===t.expire||je()<Number(t.expire)));var t}function Zt(e){e.expire=String(je()+Ht)}function Yt(e){return(t=e,Object.keys(t).map((function(e){return[e,t[e]]}))).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join(Jt);var t}function Qt(e){var t={};return function(e){return!!e&&(-1!==e.indexOf(Jt)||zt.test(e))}(e)&&e.split(Jt).forEach((function(e){var n=zt.exec(e);if(null!==n){var r=n[1],o=n[2];t[r]=o}})),t}var en="_dd",tn="_dd_r",nn="_dd_l",rn="rum",on="logs";function an(e){var t=function(e){var t={};t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===Pt){for(var e="dd_site_test_".concat(Lt()),t=window.location.hostname.split("."),n=t.pop();t.length&&!Bt(e);)n="".concat(t.pop(),".").concat(n),Ut(e,"test",Ue,{domain:n});jt(e,{domain:n}),Pt=n}return Pt}());return t}(e);return function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(Lt()),n="test";Ut(t,n,Be,e);var r=Bt(t)===n;return jt(t,e),r}catch(e){return o.error(e),!1}}(t)?{type:"Cookie",cookieOptions:t}:void 0}function sn(e){var t,n={isLockEnabled:1===Nt(),persistSession:(t=e,function(e){Ut(Gt,Yt(e),Ht,t)}),retrieveSession:cn,expireSession:function(){return function(e){Ut(Gt,Yt(Vt()),Ft,e)}(e)}};return function(e){if(!qt(Gt)){var t=qt(en),n=qt(tn),r=qt(nn),o={};t&&(o.id=t),r&&/^[01]$/.test(r)&&(o[on]=r),n&&/^[012]$/.test(n)&&(o[rn]=n),Kt(o)&&(Zt(o),e.persistSession(o))}}(n),n}function cn(){return Qt(Bt(Gt))}var un="_dd_test_";function fn(e){localStorage.setItem(Gt,Yt(e))}function ln(){return Qt(localStorage.getItem(Gt))}function dn(){fn(Vt())}var vn,pn=10,gn=100,mn=[];function yn(e,t,n){var r;void 0===n&&(n=0);var o=t.isLockEnabled,i=t.persistSession,a=t.expireSession,s=function(e){return i(w({},e,{lock:u}))},c=function(){var e=t.retrieveSession(),n=e.lock;return e.lock&&delete e.lock,{session:e,lock:n}};if(vn||(vn=e),e===vn)if(o&&n>=gn)bn(t);else{var u,f=c();if(o){if(f.lock)return void hn(e,t,n);if(u=Lt(),s(f.session),(f=c()).lock!==u)return void hn(e,t,n)}var l=e.process(f.session);if(o&&(f=c()).lock!==u)hn(e,t,n);else{if(l&&(Xt(l)?a():(Zt(l),o?s(l):i(l))),o&&(!l||!Xt(l))){if((f=c()).lock!==u)return void hn(e,t,n);i(f.session),l=f.session}null===(r=e.after)||void 0===r||r.call(e,l||f.session),bn(t)}}else mn.push(e)}function hn(e,t,n){O((function(){yn(e,t,n+1)}),pn)}function bn(e){vn=void 0;var t=mn.shift();t&&yn(t,e)}var Sn=Ue;function wn(e){var t=an(e);return!t&&e.allowFallbackToLocalStorage&&(t=function(){try{var e=Lt(),t="".concat(un).concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch(e){return}}()),t}function Cn(e,t,n){var r,o=new Q,i=new Q,a=new Q,s="Cookie"===e.type?sn(e.cookieOptions):{isLockEnabled:!1,persistSession:fn,retrieveSession:ln,expireSession:dn},c=s.expireSession,u=L((function(){yn({process:function(e){return Xt(e)?Vt():void 0},after:v},s)}),Sn);p();var f=I((function(){yn({process:function(e){if(!$t(e)){var r=v(e);return function(e){if($t(e))return!1;var r=n(e[t]),o=r.trackingType,i=r.isTracked;e[t]=o,delete e.isExpired,i&&!e.id&&(e.id=Lt(),e.created=String(je()))}(r),r}},after:function(e){Kt(e)&&!g()&&function(e){r=e,o.notify()}(e),r=e}},s)}),Sn),l=f.throttled,d=f.cancel;function v(e){return Xt(e)&&(e=Vt()),g()&&(!function(e){return r.id!==e.id||r[t]!==e[t]}(e)?(a.notify({previousState:r,newState:e}),r=e):(r=Vt(),i.notify())),e}function p(){yn({process:function(e){if($t(e))return Vt()},after:function(e){r=e}},s)}function g(){return void 0!==r[t]}return{expandOrRenewSession:l,expandSession:function(){yn({process:function(e){return g()?v(e):void 0}},s)},getSession:function(){return r},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a,restartSession:p,expire:function(){d(),c(),v(Vt())},stop:function(){A(u)},updateSessionState:function(e){yn({process:function(t){return w({},t,e)},after:v},s)}}}function kn(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var o=xt(r);return function(e){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}if("function"==typeof r)return function(e){return r({path:n,parameters:e})};var i=function(e,t){var n=t.site,r=void 0===n?Me:n,o=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&r===Me)return Ne;if(o&&r===Me)return"".concat(o,".").concat(Me);if(r===De)return"http-intake.logs.".concat(r);var i=r.split("."),a=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(a)}(t,e);return function(e){return"https://".concat(i).concat(n,"?").concat(e)}}(e,t);return{build:function(o,i){var a=function(e,t,n,r,o){var i=e.clientToken,a=e.internalAnalyticsSubdomain,s=o.retry,c=o.encoding,u=["sdk_version:".concat("5.24.0"),"api:".concat(r)].concat(n);s&&u.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var f=["ddsource=browser","ddtags=".concat(encodeURIComponent(u.join(","))),"dd-api-key=".concat(i),"dd-evp-origin-version=".concat(encodeURIComponent("5.24.0")),"dd-evp-origin=browser","dd-request-id=".concat(Lt())];c&&f.push("dd-evp-encoding=".concat(c));"rum"===t&&f.push("batch_time=".concat(Ge()));a&&f.reverse();return f.join("&")}(e,t,n,o,i);return r(a)},urlPrefix:r(""),trackType:t}}var xn=200;var En=/[^a-z0-9_:./-]/;function _n(e,t){var n=xn-e.length-1;(t.length>n||En.test(t))&&o.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(s," ").concat(i,"/getting_started/tagging/#defining-tags"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function Tn(e){var t=e.site||Me,n=function(e){var t=e.env,n=e.service,r=e.version,o=e.datacenter,i=[];return t&&i.push(_n("env",t)),n&&i.push(_n("service",n)),r&&i.push(_n("version",r)),o&&i.push(_n("datacenter",o)),i}(e),r=function(e,t){return{logsEndpointBuilder:kn(e,"logs",t),rumEndpointBuilder:kn(e,"rum",t),sessionReplayEndpointBuilder:kn(e,"replay",t)}}(e,n),o=function(e,t){var n=b(e).map((function(e){return e.urlPrefix}));t===Me&&n.push("https://".concat(Ne,"/"));return n}(r,t),i=function(e,t,n){if(!e.replica)return;var r=w({},e,{site:Me,clientToken:e.replica.clientToken}),o={logsEndpointBuilder:kn(r,"logs",n),rumEndpointBuilder:kn(r,"rum",n)};return t.push.apply(t,b(o).map((function(e){return e.urlPrefix}))),w({applicationId:e.replica.applicationId},o)}(e,o,n);return w({isIntakeUrl:function(e){return o.some((function(t){return 0===e.indexOf(t)}))},replica:i,site:t},r)}function On(e,t){return null==e||"string"==typeof e||(o.error("".concat(t," must be defined as a string")),!1)}function Rn(e,t){return!!(void 0===e||(n=e,function(e){return"number"==typeof e}(n)&&n>=0&&n<=100))||(o.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1);var n}function Ln(e){var t,n,r,a,u;if(e&&e.clientToken){if((!(f=e.site)||"string"!=typeof f||/(datadog|ddog|datad0g|dd0g)/.test(f)||(o.error("Site should be a valid Datadog site. ".concat(s," ").concat(i,"/getting_started/site/.")),0))&&Rn(e.sessionSampleRate,"Session")&&Rn(e.telemetrySampleRate,"Telemetry")&&Rn(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&Rn(e.telemetryUsageSampleRate,"Telemetry Usage")&&On(e.version,"Version")&&On(e.env,"Env")&&On(e.service,"Service")){var f;if(void 0===e.trackingConsent||N(ne,e.trackingConsent))return w({beforeSend:e.beforeSend&&c(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:wn(e),sessionSampleRate:null!==(t=e.sessionSampleRate)&&void 0!==t?t:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(a=e.telemetryUsageSampleRate)&&void 0!==a?a:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!==(u=e.trackingConsent)&&void 0!==u?u:ne.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*k,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*Ue,batchMessagesLimit:50,messageBytesLimit:256*k},Tn(e));o.error('Tracking Consent should be either "granted" or "not-granted"')}}else o.error("Client Token is not configured, we will not send any data.")}var An={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function In(e,t){var n=[];y(t,An.cspViolation)&&n.push(function(e){return new Q((function(t){return re(e,document,"securitypolicyviolation",(function(e){t.notify(function(e){var t="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return Pn({type:e.effectiveDirective,message:"".concat(An.cspViolation,": ").concat(t),originalError:e,csp:{disposition:e.disposition},stack:Dn(e.effectiveDirective,e.originalPolicy?"".concat(t,' of the policy "').concat(Mt(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(e))})).stop}))}(e));var r=t.filter((function(e){return e!==An.cspViolation}));return r.length&&n.push(function(e){return new Q((function(t){if(window.ReportingObserver){var n=p((function(e,n){return e.forEach((function(e){return t.notify(function(e){var t=e.type,n=e.body;return Pn({type:n.id,message:"".concat(t,": ").concat(n.message),originalError:e,stack:Dn(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}(e))}))})),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),ee.apply(void 0,n)}function Pn(e){return w({startClocks:He(),source:lt.REPORT,handling:"unhandled"},e)}function Dn(e,t,n,r,o){return n?Ce({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}var Mn=32*k;function Nn(e,t,n){return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every((function(e){return y(t,e)}))?"all"===e?t:(r=e,i=new Set,r.forEach((function(e){return i.add(e)})),h(i)):void o.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'));var r,i}function Un(t,n,r){var i,a,s=Ye(),c=n.observable.subscribe(u);function u(){if(a&&i&&n.isGranted()){c.unsubscribe();var e=r(i,a);s.drain(e)}}return{init:function(t){if(t)if(Le(t.enableExperimentalFeatures),Ct()&&(t=function(e){return w({},e,{clientToken:"empty"})}(t)),i=t,a)ut("DD_LOGS",t);else{var r=function(t){!0===t.usePciIntake&&t.site&&"datadoghq.com"!==t.site&&o.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");var n=Ln(t),r=Nn(t.forwardConsoleLogs,b(e),"Forward Console Logs"),i=Nn(t.forwardReports,b(An),"Forward Reports");if(n&&r&&i)return t.forwardErrorsToLogs&&!y(r,e.error)&&r.push(e.error),w({forwardErrorsToLogs:!1!==t.forwardErrorsToLogs,forwardConsoleLogs:r,forwardReports:i,requestErrorResponseLengthLimit:Mn,sendLogsAfterSessionExpiration:!!t.sendLogsAfterSessionExpiration},n)}(t);r&&(a=r,Rt().subscribe(P),n.tryToInit(r.trackingConsent),u())}else o.error("Missing configuration")},get initConfiguration(){return i},getInternalContext:P,handleLog:function(e,n,r,o,i){void 0===o&&(o=t()),void 0===i&&(i=Ge()),s.add((function(t){return t.handleLog(e,n,r,o,i)}))}}}var Bn="logs";var qn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};var jn="datadog-synthetics-public-id",Gn="datadog-synthetics-result-id",Fn="datadog-synthetics-injects-rum";function Hn(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||qt(Fn))}function zn(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||qt(Gn);return"string"==typeof e?e:void 0}var Jn=1/0,Wn=Be;function Vn(e){var t=e.expireDelay,n=e.maxEntries,r=[],o=L((function(){return function(){var e=Fe()-t;for(;r.length>0&&r[r.length-1].endTime<e;)r.pop()}()}),Wn);return{add:function(e,t){var o={value:e,startTime:t,endTime:Jn,remove:function(){Xe(r,o)},close:function(e){o.endTime=e}};return n&&r.length>=n&&r.pop(),r.unshift(o),o},find:function(e,t){void 0===e&&(e=Jn),void 0===t&&(t={returnInactive:!1});for(var n=0,o=r;n<o.length;n++){var i=o[n];if(i.startTime<=e){if(t.returnInactive||e<=i.endTime)return i.value;break}}},closeActive:function(e){var t=r[0];t&&t.endTime===Jn&&t.close(e)},findAll:function(e,t){void 0===e&&(e=Jn),void 0===t&&(t=0);var n=ze(e,t);return r.filter((function(t){return t.startTime<=n&&e<=t.endTime})).map((function(e){return e.value}))},reset:function(){r=[]},stop:function(){A(o)}}}var $n=Be,Kn=Ft,Xn=[];function Zn(e,t,n,r){var o=new Q,i=new Q,a=Cn(e.sessionStoreStrategyType,t,n);Xn.push((function(){return a.stop()}));var s=Vn({expireDelay:Kn});function c(){return{id:a.getSession().id,trackingType:a.getSession()[t],isReplayForced:!!a.getSession().forcedReplay}}return Xn.push((function(){return s.stop()})),a.renewObservable.subscribe((function(){s.add(c(),Fe()),o.notify()})),a.expireObservable.subscribe((function(){i.notify(),s.closeActive(Fe())})),a.expandOrRenewSession(),s.add(c(),[0,We()][0]),r.observable.subscribe((function(){r.isGranted()?a.expandOrRenewSession():a.expire()})),function(e,t){var n=oe(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0}).stop;Xn.push(n)}(e,(function(){r.isGranted()&&a.expandOrRenewSession()})),function(e,t){var n=function(){"visible"===document.visibilityState&&t()},r=re(e,document,"visibilitychange",n).stop;Xn.push(r);var o=L(n,$n);Xn.push((function(){A(o)}))}(e,(function(){return a.expandSession()})),function(e,t){var n=re(e,window,"resume",t,{capture:!0}).stop;Xn.push(n)}(e,(function(){return a.restartSession()})),{findSession:function(e,t){return s.find(e,t)},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}var Yn="logs";function Qn(e,t){var n=Zn(e,Yn,(function(t){return function(e,t){var n=function(e){return"0"===e||"1"===e}(t)?t:er(e);return{trackingType:n,isTracked:"1"===n}}(e,t)}),t);return{findTrackedSession:function(e,t){void 0===t&&(t={returnInactive:!1});var r=n.findSession(e,t);return r&&"1"===r.trackingType?{id:r.id}:void 0},expireObservable:n.expireObservable}}function er(e){return $e(e.sessionSampleRate)?"1":"0"}var tr=!1;function nr(e){var t,n=window;if(Hn()){var r=o(n.DD_RUM_SYNTHETICS);return r||tr||(tr=!0,it("Logs sent before RUM is injected by the synthetics worker",{testId:(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||qt(jn),"string"==typeof t?t:void 0),resultId:zn()})),r}return o(n.DD_RUM);function o(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}function rr(e,t,n,r,o){var i=ht.concat(["custom"]),a={};i.forEach((function(e){var n,r,i,s,c;a[e]=(n=e,r=t.eventRateLimiterThreshold,i=o,s=0,c=!1,{isLimitReached:function(){if(0===s&&O((function(){s=0}),Be),(s+=1)<=r||c)return c=!1,!1;if(s===r+1){c=!0;try{i({message:"Reached max number of ".concat(n,"s by minute: ").concat(r),source:lt.AGENT,startClocks:He()})}finally{c=!1}}return!0}})})),n.subscribe(0,(function(o){var i,s,c=o.rawLogsEvent,u=o.messageContext,f=void 0===u?void 0:u,l=o.savedCommonContext,d=void 0===l?void 0:l,v=o.domainContext,p=Je(c.date),g=e.findTrackedSession(p);if(g||t.sendLogsAfterSessionExpiration&&e.findTrackedSession(p,{returnInactive:!0})){var m=d||r(),y=W({service:t.service,session_id:g?g.id:void 0,usr:U(m.user)?void 0:m.user,view:m.view},m.context,nr(p),c,f);!1===(null===(i=t.beforeSend)||void 0===i?void 0:i.call(t,y,v))||y.origin!==lt.AGENT&&(null!==(s=a[y.status])&&void 0!==s?s:a.custom).isLimitReached()||n.notify(1,y)}}))}var or,ir={};function ar(n){var r=n.map((function(n){return ir[n]||(ir[n]=function(n){return new Q((function(r){var o=t[n];return t[n]=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];o.apply(console,t);var a=we();g((function(){r.notify(function(t,n,r){var o,i=t.map((function(e){return function(e){if("string"==typeof e)return X(e);if(e instanceof Error)return ke(ue(e));return D(X(e),void 0,2)}(e)})).join(" ");if(n===e.error){var a=function(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(t(r,n))return r}}(t,(function(e){return e instanceof Error}));o={stack:a?Ce(ue(a)):void 0,fingerprint:Te(a),causes:a?Oe(a,"console"):void 0,startClocks:He(),message:i,source:lt.CONSOLE,handling:"handled",handlingStack:r}}return{api:n,message:i,error:o,handlingStack:r}}(t,n,a))}))},function(){t[n]=o}}))}(n)),ir[n]}));return ee.apply(void 0,r)}var sr,cr=((or={})[e.log]=vt.info,or[e.debug]=vt.debug,or[e.info]=vt.info,or[e.warn]=vt.warn,or[e.error]=vt.error,or);var ur=new WeakMap;function fr(e){return sr||(sr=function(e){return new Q((function(t){var n=kt(XMLHttpRequest.prototype,"open",lr).stop,r=kt(XMLHttpRequest.prototype,"send",(function(n){!function(e,t,n){var r=e.target,o=e.handlingStack,i=ur.get(r);if(!i)return;var a=i;a.state="start",a.startClocks=He(),a.isAborted=!1,a.xhr=r,a.handlingStack=o;var s=!1,c=kt(r,"onreadystatechange",(function(){r.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(f(),c(),!s){s=!0;var e,t=i;t.state="complete",t.duration=(e=a.startClocks.timeStamp,Ge()-e),t.status=r.status,n.notify(w({},t))}},f=re(t,r,"loadend",u).stop;n.notify(a)}(n,e,t)}),{computeHandlingStack:!0}).stop,o=kt(XMLHttpRequest.prototype,"abort",dr).stop;return function(){n(),r(),o()}}))}(e)),sr}function lr(e){var t=e.target,n=e.parameters,r=n[0],o=n[1];ur.set(t,{state:"open",method:String(r).toUpperCase(),url:xt(String(o))})}function dr(e){var t=e.target,n=ur.get(t);n&&(n.isAborted=!0)}function vr(e){return e>=500}function pr(e,t){if(!e.forwardErrorsToLogs)return{stop:P};var n=fr(e).subscribe((function(e){"complete"===e.state&&o("xhr",e)})),r=Rt().subscribe((function(e){"resolve"===e.state&&o("fetch",e)}));function o(n,r){function o(e){var o={isAborted:r.isAborted,handlingStack:r.handlingStack};t.notify(0,{rawLogsEvent:{message:"".concat(mr(n)," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{stack:e||"Failed to load",handling:void 0},http:{method:r.method,status_code:r.status,url:r.url},status:vt.error,origin:lt.NETWORK},domainContext:o})}e.isIntakeUrl(r.url)||!function(e){return 0===e.status&&"opaque"!==e.responseType}(r)&&!vr(r.status)||("xhr"in r?function(e,t,n){"string"==typeof e.response?n(gr(e.response,t)):n(e.response)}(r.xhr,e,o):r.response?function(e,t,n){var r=function(e){try{return e.clone()}catch(e){return}}(e);r&&r.body?window.TextDecoder?function(e,t,n){!function(e,t,n){var r=e.getReader(),o=[],i=0;function a(){var e,a;if(r.cancel().catch(P),n.collectStreamBody){var s;if(1===o.length)s=o[0];else{s=new Uint8Array(i);var c=0;o.forEach((function(e){s.set(e,c),c+=e.length}))}e=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}t(void 0,e,a)}!function e(){r.read().then(p((function(t){t.done?a():(n.collectStreamBody&&o.push(t.value),(i+=t.value.length)>n.bytesLimit?a():e())})),p((function(e){return t(e)})))}()}(e,(function(e,t,r){if(e)n(e);else{var o=(new TextDecoder).decode(t);r&&(o+="..."),n(void 0,o)}}),{bytesLimit:t,collectStreamBody:!0})}(r.body,t.requestErrorResponseLengthLimit,(function(e,t){n(e?"Unable to retrieve response: ".concat(e):t)})):r.text().then(p((function(e){return n(gr(e,t))})),p((function(e){return n("Unable to retrieve response: ".concat(e))}))):n()}(r.response,e,o):r.error&&function(e,t,n){n(gr(Ce(ue(e)),t))}(r.error,e,o))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function gr(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}function mr(e){return"xhr"===e?"XHR":"Fetch"}function yr(e){var t,n=function(t,n){var r=_e({stackTrace:t,originalError:n,startClocks:He(),nonErrorPrefix:"Uncaught",source:lt.SOURCE,handling:"unhandled"});e.notify(r)},r=(t=n,kt(window,"onerror",(function(e){var n,r=e.parameters,o=r[0],i=r[1],a=r[2],s=r[3],c=r[4];n=c instanceof Error?ue(c):be(o,i,a,s),t(n,null!=c?c:o)}))).stop,o=function(e){return kt(window,"onunhandledrejection",(function(t){var n=t.parameters[0].reason||"Empty reason",r=ue(n);e(r,n)}))}(n).stop;return{stop:function(){r(),o()}}}var hr,br=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach((function(e){return e(t)}))},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter((function(e){return t!==e}))}}},e}();function Sr(e){return{handleLog:function(r,o,i,a,s){var c=W(o.getContext(),r.context);if(dt(r.status,yt.console,o)&&function(e,r){var o=e.status,i=e.message;n[wr[o]].call(t,i,r)}(r,c),dt(r.status,yt.http,o)){var u={rawLogsEvent:{date:s||Ge(),message:r.message,status:r.status,origin:lt.LOGGER},messageContext:c,savedCommonContext:a};i&&(u.domainContext={handlingStack:i}),e.notify(0,u)}}}}var wr=((hr={})[vt.ok]=e.debug,hr[vt.debug]=e.debug,hr[vt.info]=e.info,hr[vt.notice]=e.info,hr[vt.warn]=e.warn,hr[vt.error]=e.error,hr[vt.critical]=e.error,hr[vt.alert]=e.error,hr[vt.emerg]=e.error,hr);function Cr(e){var t=e.encoder,n=e.request,r=e.flushController,i=e.messageBytesLimit,c={},u=r.flushObservable.subscribe((function(e){return function(e){var r=b(c).join("\n");c={};var o=(a=e.reason,y(b(qn),a)),i=o?n.sendOnExit:n.send;var a;if(o&&t.isAsync){var s=t.finishSync();s.outputBytesCount&&i(kr(s));var u=[s.pendingData,r].filter(Boolean).join("\n");u&&i({data:u,bytesCount:_(u)})}else r&&t.write(t.isEmpty?r:"\n".concat(r)),t.finish((function(e){i(kr(e))}))}(e)}));function f(e,n){var u=D(e),f=t.estimateEncodedBytesCount(u);f>=i?o.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(s," ").concat(a,"/#technical-limitations")):(function(e){return void 0!==e&&void 0!==c[e]}(n)&&function(e){var n=c[e];delete c[e];var o=t.estimateEncodedBytesCount(n);r.notifyAfterRemoveMessage(o)}(n),function(e,n,o){r.notifyBeforeAddMessage(n),void 0!==o?(c[o]=e,r.notifyAfterAddMessage()):t.write(t.isEmpty?e:"\n".concat(e),(function(e){r.notifyAfterAddMessage(e-n)}))}(u,f,n))}return{flushController:r,add:f,upsert:f,stop:u.unsubscribe}}function kr(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var xr=80*k,Er=32,_r=3*x,Tr=Be,Or=Ue;function Rr(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?Ar(e,t,n,{onSuccess:function(){return Ir(0,t,n,r,o)},onFailure:function(){t.queuedPayloads.enqueue(e),Lr(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function Lr(e,t,n,r){2===e.transportStatus&&O((function(){Ar(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=Or,Ir(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(Tr,2*e.currentBackoffTime),Lr(e,t,n,r)}})}),e.currentBackoffTime)}function Ar(e,t,n,r){var o=r.onSuccess,i=r.onFailure;t.bandwidthMonitor.add(e),n(e,(function(n){t.bandwidthMonitor.remove(e),!function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||vr(e.status))}(n)?(t.transportStatus=0,o()):(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},i())}))}function Ir(e,t,n,r,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(_r/x,"MiB"),source:lt.AGENT,startClocks:He()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=Pr();i.size()>0;)Rr(i.dequeue(),t,n,r,o)}function Pr(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=_r}}}function Dr(e,t,n,r){var o={transportStatus:0,currentBackoffTime:Or,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=xr&&this.ongoingRequestCount<Er},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:Pr(),queueFullReported:!1},i=function(r,o){return function(e,t,n,r,o){var i=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&r.bytesCount<n;if(i){var a=t.build("fetch",r);fetch(a,{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(p((function(e){return null==o?void 0:o({status:e.status,type:e.type})})),p((function(){var n=t.build("xhr",r);Nr(e,n,r.data,o)})))}else{var s=t.build("xhr",r);Nr(e,s,r.data,o)}}(e,t,n,r,o)};return{send:function(e){Rr(e,o,i,t.trackType,r)},sendOnExit:function(r){!function(e,t,n,r){var o=!!navigator.sendBeacon&&r.bytesCount<n;if(o)try{var i=t.build("beacon",r);if(navigator.sendBeacon(i,r.data))return}catch(e){!function(e){Mr||(Mr=!0,at(e))}(e)}var a=t.build("xhr",r);Nr(e,a,r.data)}(e,t,n,r)}}}var Mr=!1;function Nr(e,t,n,r){var o=new XMLHttpRequest;o.open("POST",t,!0),n instanceof Blob&&o.setRequestHeader("Content-Type",n.type),re(e,o,"loadend",(function(){null==r||r({status:o.status})}),{once:!0}),o.send(n)}function Ur(e){var t,n=e.messagesLimit,r=e.bytesLimit,o=e.durationLimit,i=e.pageExitObservable,a=e.sessionExpireObservable,s=i.subscribe((function(e){return d(e.reason)})),c=a.subscribe((function(){return d("session_expire")})),u=new Q((function(){return function(){s.unsubscribe(),c.unsubscribe()}})),f=0,l=0;function d(e){if(0!==l){var t=l,n=f;l=0,f=0,v(),u.notify({reason:e,messagesCount:t,bytesCount:n})}}function v(){R(t),t=void 0}return{flushObservable:u,get messagesCount(){return l},notifyBeforeAddMessage:function(e){f+e>=r&&d("bytes_limit"),l+=1,f+=e,void 0===t&&(t=O((function(){d("duration_limit")}),o))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),f+=e,l>=n?d("messages_limit"):f>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(e){f-=e,0===(l-=1)&&v()}}}function Br(e,t,n,r,o,i,a){void 0===a&&(a=Cr);var s=u(e,t),c=n&&u(e,n);function u(e,t){var n=t.endpoint,s=t.encoder;return a({encoder:s,request:Dr(e,n,e.batchBytesLimit,r),flushController:Ur({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:o,sessionExpireObservable:i}),messageBytesLimit:e.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),s.add(e),c&&t&&c.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){s.upsert(e,t),c&&c.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){s.stop(),c&&c.stop()}}}function qr(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var o=_(n);t+=o,e+=n,r&&r(o)},finish:function(e){e(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(e){return e.length}}}function jr(e,t,n,r,o){var i=ot("browser-logs-sdk",t);i.setContextProvider((function(){var e,t,n,r,i,a;return{application:{id:null===(e=nr())||void 0===e?void 0:e.application_id},session:{id:null===(t=o.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(r=null===(n=nr())||void 0===n?void 0:n.view)||void 0===r?void 0:r.id},action:{id:null===(a=null===(i=nr())||void 0===i?void 0:i.user_action)||void 0===a?void 0:a.id}}}));var a=[];if(Ct()){var s=wt(),c=i.observable.subscribe((function(e){return s.send("internal_telemetry",e)}));a.push((function(){return c.unsubscribe()}))}else{var u=Br(t,{endpoint:t.rumEndpointBuilder,encoder:qr()},t.replica&&{endpoint:t.replica.rumEndpointBuilder,encoder:qr()},n,r,o.expireObservable);a.push((function(){return u.stop()}));var f=i.observable.subscribe((function(e){return u.add(e,function(e){return e.site===Pe}(t))}));a.push((function(){return f.unsubscribe()}))}return nt.drain(),function(e){rt({type:Qe.configuration,configuration:e})}(function(e){var t,n={session_sample_rate:(t=e).sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:t.telemetryUsageSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:t.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents,tracking_consent:t.trackingConsent};return w({forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,send_logs_after_session_expiration:e.sendLogsAfterSessionExpiration},n)}(e)),{telemetry:i,stop:function(){a.forEach((function(e){return e()}))}}}var Gr,Fr,Hr,zr,Jr=function(e){var t,n,r=G(),i=te(r.getOrCreateTracker(2)),a=te(r.getOrCreateTracker(1)),s={tryToInit:function(e){t||(t=e)},update:function(e){t=e,n.notify()},isGranted:function(){return t===ne.GRANTED},observable:n=new Q};function c(){return function(e,t){return{view:{referrer:document.referrer,url:window.location.href},context:e.getContext(),user:t.getContext()}}(i,a)}var u,f,l=Un(c,s,(function(t,n){t.storeContextsAcrossPages&&(se(n,i,Bn,2),se(n,a,Bn,1));var r=e(t,n,c,s);return l=function(e,t){return w({init:function(e){ut("DD_LOGS",e)},initConfiguration:e},t)}(t,r),r})),v={},g=new bt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)}),r.createDetachedTracker());return u={logger:g,init:p((function(e){return l.init(e)})),setTrackingConsent:p((function(e){var t;s.update(e),t={feature:"set-tracking-consent",tracking_consent:e},rt({type:Qe.usage,usage:t})})),getGlobalContext:p((function(){return i.getContext()})),setGlobalContext:p((function(e){return i.setContext(e)})),setGlobalContextProperty:p((function(e,t){return i.setContextProperty(e,t)})),removeGlobalContextProperty:p((function(e){return i.removeContextProperty(e)})),clearGlobalContext:p((function(){return i.clearContext()})),createLogger:p((function(e,t){return void 0===t&&(t={}),v[e]=new bt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)}),r.createDetachedTracker(),X(e),t.handler,t.level,X(t.context)),v[e]})),getLogger:p((function(e){return v[e]})),getInitConfiguration:p((function(){return J(l.initConfiguration)})),getInternalContext:p((function(e){return l.getInternalContext(e)})),setUser:p((function(e){(function(e){var t="object"===H(e);return t||o.error("Unsupported user:",e),t})(e)&&a.setContext(ct(e))})),getUser:p((function(){return a.getContext()})),setUserProperty:p((function(e,t){var n,r=ct((n={},n[e]=t,n))[e];a.setContextProperty(e,r)})),removeUserProperty:p((function(e){return a.removeContextProperty(e)})),clearUser:p((function(){return a.clearContext()}))},f=w({version:"5.24.0",onReady:function(e){e()}},u),Object.defineProperty(f,"_setDebug",{get:function(){return d},enumerable:!1}),f}((function(e,t,n,r){var o=new br,i=[];o.subscribe(1,(function(e){return Ve("logs",e)}));var a=function(e){return function(t){e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:lt.AGENT,status:vt.error}}),it("Error reported to customer",{"error.message":t.message})}}(o),s=function(e){return new Q((function(t){var n=oe(e,window,["visibilitychange","freeze"],(function(e){"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:qn.HIDDEN}):"freeze"===e.type&&t.notify({reason:qn.FROZEN})}),{capture:!0}).stop,r=re(e,window,"beforeunload",(function(){t.notify({reason:qn.UNLOADING})})).stop;return function(){n(),r()}}))}(t),c=!t.sessionStoreStrategyType||Ct()||Hn()?function(e){var t="1"===er(e)?{}:void 0;return{findTrackedSession:function(){return t},expireObservable:new Q}}(t):Qn(t,r),u=jr(e,t,a,s,c).stop;i.push((function(){return u()})),pr(t,o),function(e,t){if(!e.forwardErrorsToLogs)return{stop:P};var n=new Q,r=yr(n).stop,o=n.subscribe((function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:gt(e),origin:lt.SOURCE,status:vt.error}})}))}(t,o),function(e,t){var n=ar(e.forwardConsoleLogs).subscribe((function(e){var n={rawLogsEvent:{date:Ge(),message:e.message,origin:lt.CONSOLE,error:e.error&&gt(e.error),status:cr[e.api]},domainContext:{handlingStack:e.handlingStack}};t.notify(0,n)}))}(t,o),function(e,t){var n=In(e,e.forwardReports).subscribe((function(e){var n,r=e.message,o="deprecation"===e.originalError.type?vt.warn:vt.error;o===vt.error?n=gt(e):e.stack&&(r+=" Found in ".concat(function(e){var t;return null===(t=/@ (.+)/.exec(e))||void 0===t?void 0:t[1]}(e.stack))),t.notify(0,{rawLogsEvent:{date:Ge(),message:r,origin:lt.REPORT,error:n,status:o}})}))}(t,o);var f,l=Sr(o).handleLog;if(rr(c,t,o,n,a),Ct())!function(e){var t=wt();e.subscribe(1,(function(e){t.send("log",e)}))}(o);else{var d=function(e,t,n,r,o){var i=Br(e,{endpoint:e.logsEndpointBuilder,encoder:qr()},e.replica&&{endpoint:e.replica.logsEndpointBuilder,encoder:qr()},n,r,o.expireObservable);return t.subscribe(1,(function(e){i.add(e)})),i}(t,o,a,s,c).stop;i.push((function(){return d()}))}return{handleLog:l,getInternalContext:(f=c,{get:function(e){var t=f.findTrackedSession(e);if(t)return{session_id:t.id}}}).get,stop:function(){i.forEach((function(e){return e()}))}}}));Gr=C(),Hr=Jr,(zr=Gr[Fr="DD_LOGS"])&&!zr.q&&zr.version&&o.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),Gr[Fr]=Hr,zr&&zr.q&&zr.q.forEach((function(e){return c(e,"onReady callback threw an error:")()}))}();
!function(){"use strict";var e={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},t=console,n={};Object.keys(e).forEach((function(e){n[e]=t[e]}));var r="Datadog Browser SDK:",o={debug:n.debug.bind(t,r),log:n.log.bind(t,r),info:n.info.bind(t,r),warn:n.warn.bind(t,r),error:n.error.bind(t,r)},i="https://docs.datadoghq.com",a="".concat(i,"/real_user_monitoring/browser/troubleshooting"),s="More details:";function c(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return e.apply(void 0,n)}catch(e){o.error(t,e)}}}var u,f=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},l=!1;function d(e){l=e}function v(e,t,n){var r=n.value;n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(u?p(r):r).apply(this,e)}}function p(e){return function(){return g(e,this,arguments)}}function g(e,t,n){try{return e.apply(t,n)}catch(e){if(m(e),u)try{u(e)}catch(e){m(e)}}}function m(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];l&&o.error.apply(o,f(["[MONITOR]"],e,!1))}function y(e,t){return-1!==e.indexOf(t)}function h(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach((function(e){return t.push(e)}));else for(var n=0;n<e.length;n++)t.push(e[n]);return t}function b(e){return Object.keys(e).map((function(t){return e[t]}))}function S(e,t){return e.slice(0,t.length)===t}function w(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function k(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}var C=1024,x=1024*C,E=/[^\u0000-\u007F]/;function _(e){return E.test(e)?void 0!==window.TextEncoder?(new TextEncoder).encode(e).length:new Blob([e]).size:e.length}function T(e,t){var n,r=k();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}function O(e,t){return T(k(),"setTimeout")(p(e),t)}function R(e){T(k(),"clearTimeout")(e)}function L(e,t){return T(k(),"setInterval")(p(e),t)}function A(e){T(k(),"clearInterval")(e)}function I(e,t,n){var r,o,i=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];s?r=n:(i?e.apply(void 0,n):r=n,s=!0,o=O((function(){a&&r&&e.apply(void 0,r),s=!1,r=void 0}),t))},cancel:function(){R(o),s=!1,r=void 0}}}function P(){}function D(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);var r=M(Object.prototype),o=M(Array.prototype),i=M(Object.getPrototypeOf(e)),a=M(e);try{return JSON.stringify(e,t,n)}catch(e){return"<error: unable to serialize object>"}finally{r(),o(),i(),a()}}function M(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):P}function N(e,t){return Object.keys(e).some((function(n){return e[n]===t}))}function B(e){return 0===Object.keys(e).length}var U=3*C,q=16*C,j=200;function G(e){void 0===e&&(e=2);var t=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==e){var i=2===e?U:q,c=r;t.forEach((function(e){c+=e.getBytesCount()})),c>i&&(!function(e){o.warn("Customer data exceeds the recommended ".concat(e/C,"KiB threshold. ").concat(s," ").concat(a,"/#customer-data-exceeds-the-recommended-threshold-warning"))}(i),n=!0)}}return{createDetachedTracker:function(){var e=F((function(){return r(e.getBytesCount())}));return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,F(r)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,r())},getCompressionStatus:function(){return e},stop:function(){t.forEach((function(e){return e.stop()})),t.clear()}}}function F(e){var t=0,n=I((function(n){t=_(D(n)),e()}),j),r=n.throttled,o=n.cancel,i=function(){o(),t=0};return{updateCustomerData:function(e){B(e)?i():r(e)},resetCustomerData:i,getBytesCount:function(){return t},stop:function(){o()}}}function H(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function z(e,t,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;return n||t.push(e),n}}}()),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){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var o=Array.isArray(e)?e:[],i=0;i<t.length;++i)o[i]=z(o[i],t[i],n);return o}var a="object"===H(e)?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=z(a[s],t[s],n));return a}}function J(e){return z(void 0,e)}function W(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];null!=i&&(e=z(e,i))}return e}var V=220*C,$="$",K=3;function X(e,t){void 0===t&&(t=V);var n=M(Object.prototype),r=M(Array.prototype),o=[],i=new WeakMap,a=Z(e,$,void 0,o,i),s=JSON.stringify(a),c=s?s.length:0;if(!(c>t)){for(;o.length>0&&c<t;){var u=o.shift(),f=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(c+=void 0!==(d=Z(u.source[l],u.path,l,o,i))?JSON.stringify(d).length:4,c+=f,f=1,c>t){Y(t,"truncated",e);break}u.target[l]=d}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var d;if(void 0!==(d=Z(u.source[l],u.path,l,o,i))&&(c+=JSON.stringify(d).length+f+l.length+K,f=1),c>t){Y(t,"truncated",e);break}u.target[l]=d}}return n(),r(),a}Y(t,"discarded",e)}function Z(e,t,n,r,o){var i=function(e){var t=e;if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(e){}return e}(e);if(!i||"object"!=typeof i)return function(e){if("bigint"==typeof e)return"[BigInt] ".concat(e.toString());if("function"==typeof e)return"[Function] ".concat(e.name||"unknown");if("symbol"==typeof e)return"[Symbol] ".concat(e.description||e.toString());return e}(i);var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=e;if(o.has(s))return"[Reference seen at ".concat(o.get(s),"]");var c=void 0!==n?"".concat(t,".").concat(n):t,u=Array.isArray(i)?[]:{};return o.set(s,c),r.push({source:i,target:u,path:c}),u}function Y(e,t,n){o.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var Q=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){t.observers=t.observers.filter((function(t){return e!==t})),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach((function(t){return t(e)}))},e}();function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Q((function(t){var n=e.map((function(e){return e.subscribe((function(e){return t.notify(e)}))}));return function(){return n.forEach((function(e){return e.unsubscribe()}))}}))}function te(e){var t={},n=new Q,r={getContext:function(){return J(t)},setContext:function(o){"object"===H(o)?(t=X(o),e.updateCustomerData(t)):r.clearContext(),n.notify()},setContextProperty:function(r,o){t[r]=X(o),e.updateCustomerData(t),n.notify()},removeContextProperty:function(r){delete t[r],e.updateCustomerData(t),n.notify()},clearContext:function(){t={},e.resetCustomerData(),n.notify()},changeObservable:n};return r}var ne={GRANTED:"granted",NOT_GRANTED:"not-granted"};function re(e,t,n,r,o){return oe(e,t,[n],r,o)}function oe(e,t,n,r,o){var i=void 0===o?{}:o,a=i.once,s=i.capture,c=i.passive,u=p((function(t){(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(a&&d(),r(t))})),f=c?{capture:s,passive:c}:s,l=T(t,"addEventListener");function d(){var e=T(t,"removeEventListener");n.forEach((function(n){return e.call(t,n,u,f)}))}return n.forEach((function(e){return l.call(t,e,u,f)})),{stop:d}}var ie="_dd_c",ae=[];function se(e,t,n,r){var o=function(e,t){return"".concat(ie,"_").concat(e,"_").concat(t)}(n,r);function i(){var e=localStorage.getItem(o);return null!==e?JSON.parse(e):{}}ae.push(re(e,window,"storage",(function(e){var n=e.key;o===n&&t.setContext(i())}))),t.changeObservable.subscribe((function(){localStorage.setItem(o,JSON.stringify(t.getContext()))})),t.setContext(W(i(),t.getContext()))}var ce="?";function ue(e){var t=[],n=he(e,"stack"),r=String(e);return n&&S(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(e){var n=function(e){var t=de.exec(e);if(!t)return;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=ve.exec(t[2]);r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]);return{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||ce,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){var t=pe.exec(e);if(!t)return;return{args:[],column:t[3]?+t[3]:void 0,func:ce,line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=ge.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||ce,line:+t[3],url:t[2]}}(e)||function(e){var t=me.exec(e);if(!t)return;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=ye.exec(t[3]);n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0);return{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||ce,line:t[4]?+t[4]:void 0,url:t[3]}}(e);n&&(!n.func&&n.line&&(n.func=ce),t.push(n))})),{message:he(e,"message"),name:he(e,"name"),stack:t}}var fe="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",le="(?::(\\d+))",de=new RegExp("^\\s*at (.*?) ?\\(".concat(fe).concat(le,"?").concat(le,"?\\)?\\s*$"),"i"),ve=new RegExp("\\((\\S*)".concat(le).concat(le,"\\)"));var pe=new RegExp("^\\s*at ?".concat(fe).concat(le,"?").concat(le,"??\\s*$"),"i");var ge=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var me=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ye=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function he(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}function be(e,t,n,r){var o=[{url:t,column:r,line:n}],i=function(e){var t,n,r;"[object String]"==={}.toString.call(e)&&(n=(t=Se.exec(e))[1],r=t[2]);return{name:n,message:r}}(e);return{name:i.name,message:i.message,stack:o}}var Se=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function we(){var e,t=new Error;if(!t.stack)try{throw t}catch(e){}return g((function(){var n=ue(t);n.stack=n.stack.slice(2),e=ke(n)})),e}function ke(e){var t=Ce(e);return e.stack.forEach((function(e){var n="?"===e.func?"<anonymous>":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",o=e.line?":".concat(e.line):"",i=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(o).concat(i)})),t}function Ce(e){return"".concat(e.name||"Error",": ").concat(e.message)}var xe,Ee="No stack, consider using an instance of Error";function _e(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,o=e.startClocks,i=e.nonErrorPrefix,a=e.source,s=e.handling,c=n instanceof Error,u=function(e,t,n,r){return(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:t?"Empty message":"".concat(n," ").concat(D(X(r)))}(t,c,i,n),f=function(e,t){if(void 0===t)return!1;if(e)return!0;return t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url)}(c,t)?ke(t):Ee,l=c?Oe(n,a):void 0;return{startClocks:o,source:a,handling:s,handlingStack:r,originalError:n,type:t?t.name:void 0,message:u,stack:f,causes:l,fingerprint:Te(n)}}function Te(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function Oe(e,t){for(var n=e,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var o=ue(n.cause);r.push({message:n.cause.message,source:t,type:null==o?void 0:o.name,stack:o&&ke(o)}),n=n.cause}return r.length?r:void 0}!function(e){e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings",e.REMOTE_CONFIGURATION="remote_configuration",e.UPDATE_VIEW_NAME="update_view_name",e.NULL_INP_TELEMETRY="null_inp_telemetry",e.LONG_ANIMATION_FRAME="long_animation_frame"}(xe||(xe={}));var Re=new Set;function Le(e){Array.isArray(e)&&e.filter((function(e){return N(xe,e)})).forEach((function(e){Re.add(e)}))}function Ae(){return Re}var Ie,Pe="datad0g.com",De="dd0g-gov.com",Me="datadoghq.com",Ne="pci.browser-intake-datadoghq.com",Be=1e3,Ue=60*Be,qe=60*Ue;function je(){return(new Date).getTime()}function Ge(){return je()}function Fe(){return performance.now()}function He(){return{relative:Fe(),timeStamp:Ge()}}function ze(e,t){return e+t}function Je(e){return e-We()}function We(){return void 0===Ie&&(Ie=performance.timing.navigationStart),Ie}function Ve(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function $e(e){return 0!==e&&100*Math.random()<=e}function Ke(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null===(e=t.connection)||void 0===e?void 0:e.effectiveType}}function Xe(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var Ze=500;function Ye(){var e=[];return{add:function(t){e.push(t)>Ze&&e.splice(0,1)},remove:function(t){Xe(e,t)},drain:function(t){e.forEach((function(e){return e(t)})),e.length=0}}}var Qe={log:"log",configuration:"configuration",usage:"usage"},et=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],tt=["ddog-gov.com"],nt=Ye(),rt=function(e){nt.add((function(){return rt(e)}))};function ot(e,t){var n,r,o=new Q,i=new Set,a=!y(tt,t.site)&&$e(t.telemetrySampleRate),s=((n={})[Qe.log]=a,n[Qe.configuration]=a&&$e(t.telemetryConfigurationSampleRate),n[Qe.usage]=a&&$e(t.telemetryUsageSampleRate),n),c={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return rt=function(n){var a=D(n);if(s[n.type]&&i.size<t.maxTelemetryEventsPerPage&&!i.has(a)){var u=function(e,t,n){return W({type:"telemetry",date:Ge(),service:e,version:"5.25.0",source:"browser",_dd:{format_version:2},telemetry:W(t,{runtime_env:n,connectivity:Ke()}),experimental_features:h(Ae())},void 0!==r?r():{})}(e,n,c);o.notify(u),Ve("telemetry",u),i.add(a)}},u=at,{setContextProvider:function(e){r=e},observable:o,enabled:a}}function it(t,n){m(e.debug,t,n),rt(w({type:Qe.log,message:t,status:"debug"},n))}function at(e,t){rt(w({type:Qe.log,status:"error"},function(e){if(e instanceof Error){var t=ue(e);return{error:{kind:t.name,stack:ke(st(t))},message:t.message}}return{error:{stack:Ee},message:"".concat("Uncaught"," ").concat(D(e))}}(e),t))}function st(e){return e.stack=e.stack.filter((function(e){return!e.url||et.some((function(t){return S(e.url,t)}))})),e}function ct(e){var t=w({},e);return["id","name","email"].forEach((function(e){e in t&&(t[e]=String(t[e]))})),t}function ut(e,t){t.silentMultipleInit||o.error("".concat(e," is already initialized."))}var ft,lt={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function dt(e,t,n){var r=n.getHandler(),o=Array.isArray(r)?r:[r];return pt[e]>=pt[n.getLevel()]&&y(o,t)}var vt={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},pt=((ft={})[vt.ok]=0,ft[vt.debug]=1,ft[vt.info]=2,ft[vt.notice]=4,ft[vt.warn]=5,ft[vt.error]=6,ft[vt.critical]=7,ft[vt.alert]=8,ft[vt.emerg]=9,ft);function gt(e,t){var n=(void 0===t?{}:t).includeMessage,r=void 0!==n&&n;return{stack:e.stack,kind:e.type,message:r?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var mt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yt={console:"console",http:"http",silent:"silent"},ht=Object.keys(vt),bt=function(){function e(e,t,n,r,o,i){void 0===r&&(r=yt.http),void 0===o&&(o=vt.debug),void 0===i&&(i={}),this.handleLogStrategy=e,this.handlerType=r,this.level=o,this.contextManager=te(t),this.contextManager.setContext(i),n&&this.contextManager.setContextProperty("logger",{name:n})}return e.prototype.logImplementation=function(e,t,n,r,o){void 0===n&&(n=vt.info);var i,a=X(t);null!=r?i=W({error:gt(_e({stackTrace:r instanceof Error?ue(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:lt.LOGGER,handling:"handled",startClocks:He()}),{includeMessage:!0})},a):i=a;this.handleLogStrategy({message:X(e),context:i,status:n},this,o)},e.prototype.log=function(e,t,n,r){var o;void 0===n&&(n=vt.info),dt(n,yt.http,this)&&(o=we()),this.logImplementation(e,t,n,r,o)},e.prototype.setContext=function(e){this.contextManager.setContext(e)},e.prototype.getContext=function(){return this.contextManager.getContext()},e.prototype.setContextProperty=function(e,t){this.contextManager.setContextProperty(e,t)},e.prototype.removeContextProperty=function(e){this.contextManager.removeContextProperty(e)},e.prototype.clearContext=function(){this.contextManager.clearContext()},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},mt([v],e.prototype,"logImplementation",null),e}();function St(e){return function(t,n,r){var o;dt(e,yt.http,this)&&(o=we()),this.logImplementation(t,n,e,r,o)}}function wt(){var e=k().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null===(t=e.getPrivacyLevel)||void 0===t?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n,r){var o=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:o}))}}}function kt(e){var t;void 0===e&&(e=null===(t=k().location)||void 0===t?void 0:t.hostname);var n=wt();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r);var n,r}))}function Ct(e,t,n,r){var o=(void 0===r?{}:r).computeHandlingStack,i=e[t];if("function"!=typeof i){if(!(t in e)||!S(t,"on"))return{stop:P};i=P}var a=!1,s=function(){if(a)return i.apply(this,arguments);var e,t=h(arguments);g(n,null,[{target:this,parameters:t,onPostCall:function(t){e=t},handlingStack:o?we():void 0}]);var r=i.apply(this,t);return e&&g(e,null,[r]),r};return e[t]=s,{stop:function(){a=!0,e[t]===s&&(e[t]=i)}}}function xt(e){return Et(e,location.href).href}function Et(e,t){var n=function(){if(void 0===_t)try{var e=new Ot("http://test/path");_t="http://test/path"===e.href}catch(e){_t=!1}return _t?Ot:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw new Error("Failed to construct URL: ".concat(String(n)," ").concat(D({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var r=document,o=r.createElement("a");if(void 0!==t){var i=(r=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,r.head.appendChild(i),r.body.appendChild(o)}return o.href=e,o}bt.prototype.ok=St(vt.ok),bt.prototype.debug=St(vt.debug),bt.prototype.info=St(vt.info),bt.prototype.notice=St(vt.notice),bt.prototype.warn=St(vt.warn),bt.prototype.error=St(vt.error),bt.prototype.critical=St(vt.critical),bt.prototype.alert=St(vt.alert),bt.prototype.emerg=St(vt.emerg);var _t,Tt,Ot=URL;function Rt(){return Tt||(Tt=new Q((function(e){if(window.fetch){var t=Ct(window,"fetch",(function(t){return function(e,t){var n=e.parameters,r=e.onPostCall,o=e.handlingStack,i=n[0],a=n[1],s=a&&a.method;void 0===s&&i instanceof Request&&(s=i.method);var c=void 0!==s?String(s).toUpperCase():"GET",u=i instanceof Request?i.url:xt(String(i)),f=He(),l={state:"start",init:a,input:i,method:c,startClocks:f,url:u,handlingStack:o};t.notify(l),n[0]=l.input,n[1]=l.init,r((function(e){return function(e,t,n){var r=n;function o(t){r.state="resolve",w(r,t),e.notify(r)}t.then(p((function(e){o({response:e,responseType:e.type,status:e.status,isAborted:!1})})),p((function(e){var t,n;o({status:0,isAborted:(null===(n=null===(t=r.init)||void 0===t?void 0:t.signal)||void 0===n?void 0:n.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})})))}(t,e,l)}))}(t,e)}),{computeHandlingStack:!0}).stop;return t}}))),Tt}function Lt(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,Lt)}var At,It,Pt,Dt=/([\w-]+)\s*=\s*([^;]+)/g;function Mt(e,t,n){void 0===n&&(n="");var r=e.charCodeAt(t-1),o=r>=55296&&r<=56319?t+1:t;return e.length<=o?e:"".concat(e.slice(0,o)).concat(n)}function Nt(){return null!=At?At:At=function(e){var t;void 0===e&&(e=window);var n=e.navigator.userAgent;if(e.chrome||/HeadlessChrome/.test(n))return 1;if(0===(null===(t=e.navigator.vendor)||void 0===t?void 0:t.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return 2;if(e.document.documentMode)return 0;return 3}()}function Bt(e,t,n,r){var o=new Date;o.setTime(o.getTime()+n);var i="expires=".concat(o.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",c=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(i,";path=/;samesite=").concat(a).concat(s).concat(c).concat(u)}function Ut(e){return function(e,t){for(Dt.lastIndex=0;;){var n=Dt.exec(e);if(!n)break;if(n[1]===t)return n[2]}}(document.cookie,e)}function qt(e){return It||(It=function(e){var t=new Map;for(Dt.lastIndex=0;;){var n=Dt.exec(e);if(!n)break;t.set(n[1],n[2])}return t}(document.cookie)),It.get(e)}function jt(e,t){Bt(e,"",0,t)}var Gt="_dd_s",Ft=4*qe,Ht=15*Ue,zt=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Jt="&",Wt="1";function Vt(){return{isExpired:Wt}}function $t(e){return B(e)}function Kt(e){return!$t(e)}function Xt(e){return void 0!==e.isExpired||!((void 0===(t=e).created||je()-Number(t.created)<Ft)&&(void 0===t.expire||je()<Number(t.expire)));var t}function Zt(e){e.expire=String(je()+Ht)}function Yt(e){return(t=e,Object.keys(t).map((function(e){return[e,t[e]]}))).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join(Jt);var t}function Qt(e){var t={};return function(e){return!!e&&(-1!==e.indexOf(Jt)||zt.test(e))}(e)&&e.split(Jt).forEach((function(e){var n=zt.exec(e);if(null!==n){var r=n[1],o=n[2];t[r]=o}})),t}var en="_dd",tn="_dd_r",nn="_dd_l",rn="rum",on="logs";function an(e){var t=function(e){var t={};t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===Pt){for(var e="dd_site_test_".concat(Lt()),t=window.location.hostname.split("."),n=t.pop();t.length&&!Ut(e);)n="".concat(t.pop(),".").concat(n),Bt(e,"test",Be,{domain:n});jt(e,{domain:n}),Pt=n}return Pt}());return t}(e);return function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(Lt()),n="test";Bt(t,n,Ue,e);var r=Ut(t)===n;return jt(t,e),r}catch(e){return o.error(e),!1}}(t)?{type:"Cookie",cookieOptions:t}:void 0}function sn(e){var t,n={isLockEnabled:1===Nt(),persistSession:(t=e,function(e){Bt(Gt,Yt(e),Ht,t)}),retrieveSession:cn,expireSession:function(){return function(e){Bt(Gt,Yt(Vt()),Ft,e)}(e)}};return function(e){if(!qt(Gt)){var t=qt(en),n=qt(tn),r=qt(nn),o={};t&&(o.id=t),r&&/^[01]$/.test(r)&&(o[on]=r),n&&/^[012]$/.test(n)&&(o[rn]=n),Kt(o)&&(Zt(o),e.persistSession(o))}}(n),n}function cn(){return Qt(Ut(Gt))}var un="_dd_test_";function fn(e){localStorage.setItem(Gt,Yt(e))}function ln(){return Qt(localStorage.getItem(Gt))}function dn(){fn(Vt())}var vn,pn=10,gn=100,mn=[];function yn(e,t,n){var r;void 0===n&&(n=0);var o=t.isLockEnabled,i=t.persistSession,a=t.expireSession,s=function(e){return i(w({},e,{lock:u}))},c=function(){var e=t.retrieveSession(),n=e.lock;return e.lock&&delete e.lock,{session:e,lock:n}};if(vn||(vn=e),e===vn)if(o&&n>=gn)bn(t);else{var u,f=c();if(o){if(f.lock)return void hn(e,t,n);if(u=Lt(),s(f.session),(f=c()).lock!==u)return void hn(e,t,n)}var l=e.process(f.session);if(o&&(f=c()).lock!==u)hn(e,t,n);else{if(l&&(Xt(l)?a():(Zt(l),o?s(l):i(l))),o&&(!l||!Xt(l))){if((f=c()).lock!==u)return void hn(e,t,n);i(f.session),l=f.session}null===(r=e.after)||void 0===r||r.call(e,l||f.session),bn(t)}}else mn.push(e)}function hn(e,t,n){O((function(){yn(e,t,n+1)}),pn)}function bn(e){vn=void 0;var t=mn.shift();t&&yn(t,e)}var Sn=Be;function wn(e){var t=an(e);return!t&&e.allowFallbackToLocalStorage&&(t=function(){try{var e=Lt(),t="".concat(un).concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch(e){return}}()),t}function kn(e,t,n){var r,o=new Q,i=new Q,a=new Q,s="Cookie"===e.type?sn(e.cookieOptions):{isLockEnabled:!1,persistSession:fn,retrieveSession:ln,expireSession:dn},c=s.expireSession,u=L((function(){yn({process:function(e){return Xt(e)?Vt():void 0},after:v},s)}),Sn);p();var f=I((function(){yn({process:function(e){if(!$t(e)){var r=v(e);return function(e){if($t(e))return!1;var r=n(e[t]),o=r.trackingType,i=r.isTracked;e[t]=o,delete e.isExpired,i&&!e.id&&(e.id=Lt(),e.created=String(je()))}(r),r}},after:function(e){Kt(e)&&!g()&&function(e){r=e,o.notify()}(e),r=e}},s)}),Sn),l=f.throttled,d=f.cancel;function v(e){return Xt(e)&&(e=Vt()),g()&&(!function(e){return r.id!==e.id||r[t]!==e[t]}(e)?(a.notify({previousState:r,newState:e}),r=e):(r=Vt(),i.notify())),e}function p(){yn({process:function(e){if($t(e))return Vt()},after:function(e){r=e}},s)}function g(){return void 0!==r[t]}return{expandOrRenewSession:l,expandSession:function(){yn({process:function(e){return g()?v(e):void 0}},s)},getSession:function(){return r},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a,restartSession:p,expire:function(){d(),c(),v(Vt())},stop:function(){A(u)},updateSessionState:function(e){yn({process:function(t){return w({},t,e)},after:v},s)}}}function Cn(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var o=xt(r);return function(e){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}if("function"==typeof r)return function(e){return r({path:n,parameters:e})};var i=function(e,t){var n=t.site,r=void 0===n?Me:n,o=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&r===Me)return Ne;if(o&&r===Me)return"".concat(o,".").concat(Me);if(r===De)return"http-intake.logs.".concat(r);var i=r.split("."),a=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(a)}(t,e);return function(e){return"https://".concat(i).concat(n,"?").concat(e)}}(e,t);return{build:function(o,i){var a=function(e,t,n,r,o){var i=e.clientToken,a=e.internalAnalyticsSubdomain,s=o.retry,c=o.encoding,u=["sdk_version:".concat("5.25.0"),"api:".concat(r)].concat(n);s&&u.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var f=["ddsource=browser","ddtags=".concat(encodeURIComponent(u.join(","))),"dd-api-key=".concat(i),"dd-evp-origin-version=".concat(encodeURIComponent("5.25.0")),"dd-evp-origin=browser","dd-request-id=".concat(Lt())];c&&f.push("dd-evp-encoding=".concat(c));"rum"===t&&f.push("batch_time=".concat(Ge()));a&&f.reverse();return f.join("&")}(e,t,n,o,i);return r(a)},urlPrefix:r(""),trackType:t}}var xn=200;var En=/[^a-z0-9_:./-]/;function _n(e,t){var n=xn-e.length-1;(t.length>n||En.test(t))&&o.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(s," ").concat(i,"/getting_started/tagging/#defining-tags"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function Tn(e){var t=e.site||Me,n=function(e){var t=e.env,n=e.service,r=e.version,o=e.datacenter,i=[];return t&&i.push(_n("env",t)),n&&i.push(_n("service",n)),r&&i.push(_n("version",r)),o&&i.push(_n("datacenter",o)),i}(e),r=function(e,t){return{logsEndpointBuilder:Cn(e,"logs",t),rumEndpointBuilder:Cn(e,"rum",t),sessionReplayEndpointBuilder:Cn(e,"replay",t)}}(e,n),o=function(e,t){var n=b(e).map((function(e){return e.urlPrefix}));t===Me&&n.push("https://".concat(Ne,"/"));return n}(r,t),i=function(e,t,n){if(!e.replica)return;var r=w({},e,{site:Me,clientToken:e.replica.clientToken}),o={logsEndpointBuilder:Cn(r,"logs",n),rumEndpointBuilder:Cn(r,"rum",n)};return t.push.apply(t,b(o).map((function(e){return e.urlPrefix}))),w({applicationId:e.replica.applicationId},o)}(e,o,n);return w({isIntakeUrl:function(e){return o.some((function(t){return 0===e.indexOf(t)}))},replica:i,site:t},r)}function On(e,t){return null==e||"string"==typeof e||(o.error("".concat(t," must be defined as a string")),!1)}function Rn(e,t){return!!(void 0===e||(n=e,function(e){return"number"==typeof e}(n)&&n>=0&&n<=100))||(o.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1);var n}function Ln(e){var t,n,r,a,u;if(e&&e.clientToken){if((!(f=e.site)||"string"!=typeof f||/(datadog|ddog|datad0g|dd0g)/.test(f)||(o.error("Site should be a valid Datadog site. ".concat(s," ").concat(i,"/getting_started/site/.")),0))&&Rn(e.sessionSampleRate,"Session")&&Rn(e.telemetrySampleRate,"Telemetry")&&Rn(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&Rn(e.telemetryUsageSampleRate,"Telemetry Usage")&&On(e.version,"Version")&&On(e.env,"Env")&&On(e.service,"Service")){var f;if(void 0===e.trackingConsent||N(ne,e.trackingConsent))return w({beforeSend:e.beforeSend&&c(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:wn(e),sessionSampleRate:null!==(t=e.sessionSampleRate)&&void 0!==t?t:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(a=e.telemetryUsageSampleRate)&&void 0!==a?a:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!==(u=e.trackingConsent)&&void 0!==u?u:ne.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*C,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*Be,batchMessagesLimit:50,messageBytesLimit:256*C},Tn(e));o.error('Tracking Consent should be either "granted" or "not-granted"')}}else o.error("Client Token is not configured, we will not send any data.")}var An={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function In(e,t){var n=[];y(t,An.cspViolation)&&n.push(function(e){return new Q((function(t){return re(e,document,"securitypolicyviolation",(function(e){t.notify(function(e){var t="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return Pn({type:e.effectiveDirective,message:"".concat(An.cspViolation,": ").concat(t),originalError:e,csp:{disposition:e.disposition},stack:Dn(e.effectiveDirective,e.originalPolicy?"".concat(t,' of the policy "').concat(Mt(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(e))})).stop}))}(e));var r=t.filter((function(e){return e!==An.cspViolation}));return r.length&&n.push(function(e){return new Q((function(t){if(window.ReportingObserver){var n=p((function(e,n){return e.forEach((function(e){return t.notify(function(e){var t=e.type,n=e.body;return Pn({type:n.id,message:"".concat(t,": ").concat(n.message),originalError:e,stack:Dn(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}(e))}))})),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),ee.apply(void 0,n)}function Pn(e){return w({startClocks:He(),source:lt.REPORT,handling:"unhandled"},e)}function Dn(e,t,n,r,o){return n?ke({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}var Mn=32*C;function Nn(e,t,n){return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every((function(e){return y(t,e)}))?"all"===e?t:(r=e,i=new Set,r.forEach((function(e){return i.add(e)})),h(i)):void o.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'));var r,i}function Bn(t,n,r){var i,a,s=Ye(),c=n.observable.subscribe(u);function u(){if(a&&i&&n.isGranted()){c.unsubscribe();var e=r(i,a);s.drain(e)}}return{init:function(t){if(t)if(Le(t.enableExperimentalFeatures),kt()&&(t=function(e){return w({},e,{clientToken:"empty"})}(t)),i=t,a)ut("DD_LOGS",t);else{var r=function(t){!0===t.usePciIntake&&t.site&&"datadoghq.com"!==t.site&&o.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");var n=Ln(t),r=Nn(t.forwardConsoleLogs,b(e),"Forward Console Logs"),i=Nn(t.forwardReports,b(An),"Forward Reports");if(n&&r&&i)return t.forwardErrorsToLogs&&!y(r,e.error)&&r.push(e.error),w({forwardErrorsToLogs:!1!==t.forwardErrorsToLogs,forwardConsoleLogs:r,forwardReports:i,requestErrorResponseLengthLimit:Mn,sendLogsAfterSessionExpiration:!!t.sendLogsAfterSessionExpiration},n)}(t);r&&(a=r,Rt().subscribe(P),n.tryToInit(r.trackingConsent),u())}else o.error("Missing configuration")},get initConfiguration(){return i},getInternalContext:P,handleLog:function(e,n,r,o,i){void 0===o&&(o=t()),void 0===i&&(i=Ge()),s.add((function(t){return t.handleLog(e,n,r,o,i)}))}}}var Un="logs";var qn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};var jn="datadog-synthetics-public-id",Gn="datadog-synthetics-result-id",Fn="datadog-synthetics-injects-rum";function Hn(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||qt(Fn))}function zn(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||qt(Gn);return"string"==typeof e?e:void 0}var Jn=1/0,Wn=Ue;function Vn(e){var t=e.expireDelay,n=e.maxEntries,r=[],o=L((function(){return function(){var e=Fe()-t;for(;r.length>0&&r[r.length-1].endTime<e;)r.pop()}()}),Wn);return{add:function(e,t){var o={value:e,startTime:t,endTime:Jn,remove:function(){Xe(r,o)},close:function(e){o.endTime=e}};return n&&r.length>=n&&r.pop(),r.unshift(o),o},find:function(e,t){void 0===e&&(e=Jn),void 0===t&&(t={returnInactive:!1});for(var n=0,o=r;n<o.length;n++){var i=o[n];if(i.startTime<=e){if(t.returnInactive||e<=i.endTime)return i.value;break}}},closeActive:function(e){var t=r[0];t&&t.endTime===Jn&&t.close(e)},findAll:function(e,t){void 0===e&&(e=Jn),void 0===t&&(t=0);var n=ze(e,t);return r.filter((function(t){return t.startTime<=n&&e<=t.endTime})).map((function(e){return e.value}))},reset:function(){r=[]},stop:function(){A(o)}}}var $n=Ue,Kn=Ft,Xn=[];function Zn(e,t,n,r){var o=new Q,i=new Q,a=kn(e.sessionStoreStrategyType,t,n);Xn.push((function(){return a.stop()}));var s=Vn({expireDelay:Kn});function c(){return{id:a.getSession().id,trackingType:a.getSession()[t],isReplayForced:!!a.getSession().forcedReplay}}return Xn.push((function(){return s.stop()})),a.renewObservable.subscribe((function(){s.add(c(),Fe()),o.notify()})),a.expireObservable.subscribe((function(){i.notify(),s.closeActive(Fe())})),a.expandOrRenewSession(),s.add(c(),[0,We()][0]),r.observable.subscribe((function(){r.isGranted()?a.expandOrRenewSession():a.expire()})),function(e,t){var n=oe(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0}).stop;Xn.push(n)}(e,(function(){r.isGranted()&&a.expandOrRenewSession()})),function(e,t){var n=function(){"visible"===document.visibilityState&&t()},r=re(e,document,"visibilitychange",n).stop;Xn.push(r);var o=L(n,$n);Xn.push((function(){A(o)}))}(e,(function(){return a.expandSession()})),function(e,t){var n=re(e,window,"resume",t,{capture:!0}).stop;Xn.push(n)}(e,(function(){return a.restartSession()})),{findSession:function(e,t){return s.find(e,t)},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}var Yn="logs";function Qn(e,t){var n=Zn(e,Yn,(function(t){return function(e,t){var n=function(e){return"0"===e||"1"===e}(t)?t:er(e);return{trackingType:n,isTracked:"1"===n}}(e,t)}),t);return{findTrackedSession:function(e,t){void 0===t&&(t={returnInactive:!1});var r=n.findSession(e,t);return r&&"1"===r.trackingType?{id:r.id}:void 0},expireObservable:n.expireObservable}}function er(e){return $e(e.sessionSampleRate)?"1":"0"}var tr=!1;function nr(e){var t,n=window;if(Hn()){var r=o(n.DD_RUM_SYNTHETICS);return r||tr||(tr=!0,it("Logs sent before RUM is injected by the synthetics worker",{testId:(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||qt(jn),"string"==typeof t?t:void 0),resultId:zn()})),r}return o(n.DD_RUM);function o(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}function rr(e,t,n,r,o){var i=ht.concat(["custom"]),a={};i.forEach((function(e){var n,r,i,s,c;a[e]=(n=e,r=t.eventRateLimiterThreshold,i=o,s=0,c=!1,{isLimitReached:function(){if(0===s&&O((function(){s=0}),Ue),(s+=1)<=r||c)return c=!1,!1;if(s===r+1){c=!0;try{i({message:"Reached max number of ".concat(n,"s by minute: ").concat(r),source:lt.AGENT,startClocks:He()})}finally{c=!1}}return!0}})})),n.subscribe(0,(function(o){var i,s,c=o.rawLogsEvent,u=o.messageContext,f=void 0===u?void 0:u,l=o.savedCommonContext,d=void 0===l?void 0:l,v=o.domainContext,p=Je(c.date),g=e.findTrackedSession(p);if(g||t.sendLogsAfterSessionExpiration&&e.findTrackedSession(p,{returnInactive:!0})){var m=d||r(),y=W({service:t.service,session_id:g?g.id:void 0,usr:B(m.user)?void 0:m.user,view:m.view},m.context,nr(p),c,f);!1===(null===(i=t.beforeSend)||void 0===i?void 0:i.call(t,y,v))||y.origin!==lt.AGENT&&(null!==(s=a[y.status])&&void 0!==s?s:a.custom).isLimitReached()||n.notify(1,y)}}))}var or,ir={};function ar(n){var r=n.map((function(n){return ir[n]||(ir[n]=function(n){return new Q((function(r){var o=t[n];return t[n]=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];o.apply(console,t);var a=we();g((function(){r.notify(function(t,n,r){var o,i=t.map((function(e){return function(e){if("string"==typeof e)return X(e);if(e instanceof Error)return Ce(ue(e));return D(X(e),void 0,2)}(e)})).join(" ");if(n===e.error){var a=function(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(t(r,n))return r}}(t,(function(e){return e instanceof Error}));o={stack:a?ke(ue(a)):void 0,fingerprint:Te(a),causes:a?Oe(a,"console"):void 0,startClocks:He(),message:i,source:lt.CONSOLE,handling:"handled",handlingStack:r}}return{api:n,message:i,error:o,handlingStack:r}}(t,n,a))}))},function(){t[n]=o}}))}(n)),ir[n]}));return ee.apply(void 0,r)}var sr,cr=((or={})[e.log]=vt.info,or[e.debug]=vt.debug,or[e.info]=vt.info,or[e.warn]=vt.warn,or[e.error]=vt.error,or);var ur=new WeakMap;function fr(e){return sr||(sr=function(e){return new Q((function(t){var n=Ct(XMLHttpRequest.prototype,"open",lr).stop,r=Ct(XMLHttpRequest.prototype,"send",(function(n){!function(e,t,n){var r=e.target,o=e.handlingStack,i=ur.get(r);if(!i)return;var a=i;a.state="start",a.startClocks=He(),a.isAborted=!1,a.xhr=r,a.handlingStack=o;var s=!1,c=Ct(r,"onreadystatechange",(function(){r.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(f(),c(),!s){s=!0;var e,t=i;t.state="complete",t.duration=(e=a.startClocks.timeStamp,Ge()-e),t.status=r.status,n.notify(w({},t))}},f=re(t,r,"loadend",u).stop;n.notify(a)}(n,e,t)}),{computeHandlingStack:!0}).stop,o=Ct(XMLHttpRequest.prototype,"abort",dr).stop;return function(){n(),r(),o()}}))}(e)),sr}function lr(e){var t=e.target,n=e.parameters,r=n[0],o=n[1];ur.set(t,{state:"open",method:String(r).toUpperCase(),url:xt(String(o))})}function dr(e){var t=e.target,n=ur.get(t);n&&(n.isAborted=!0)}function vr(e){return e>=500}function pr(e,t){if(!e.forwardErrorsToLogs)return{stop:P};var n=fr(e).subscribe((function(e){"complete"===e.state&&o("xhr",e)})),r=Rt().subscribe((function(e){"resolve"===e.state&&o("fetch",e)}));function o(n,r){function o(e){var o={isAborted:r.isAborted,handlingStack:r.handlingStack};t.notify(0,{rawLogsEvent:{message:"".concat(mr(n)," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{stack:e||"Failed to load",handling:void 0},http:{method:r.method,status_code:r.status,url:r.url},status:vt.error,origin:lt.NETWORK},domainContext:o})}e.isIntakeUrl(r.url)||!function(e){return 0===e.status&&"opaque"!==e.responseType}(r)&&!vr(r.status)||("xhr"in r?function(e,t,n){"string"==typeof e.response?n(gr(e.response,t)):n(e.response)}(r.xhr,e,o):r.response?function(e,t,n){var r=function(e){try{return e.clone()}catch(e){return}}(e);r&&r.body?window.TextDecoder?function(e,t,n){!function(e,t,n){var r=e.getReader(),o=[],i=0;function a(){var e,a;if(r.cancel().catch(P),n.collectStreamBody){var s;if(1===o.length)s=o[0];else{s=new Uint8Array(i);var c=0;o.forEach((function(e){s.set(e,c),c+=e.length}))}e=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}t(void 0,e,a)}!function e(){r.read().then(p((function(t){t.done?a():(n.collectStreamBody&&o.push(t.value),(i+=t.value.length)>n.bytesLimit?a():e())})),p((function(e){return t(e)})))}()}(e,(function(e,t,r){if(e)n(e);else{var o=(new TextDecoder).decode(t);r&&(o+="..."),n(void 0,o)}}),{bytesLimit:t,collectStreamBody:!0})}(r.body,t.requestErrorResponseLengthLimit,(function(e,t){n(e?"Unable to retrieve response: ".concat(e):t)})):r.text().then(p((function(e){return n(gr(e,t))})),p((function(e){return n("Unable to retrieve response: ".concat(e))}))):n()}(r.response,e,o):r.error&&function(e,t,n){n(gr(ke(ue(e)),t))}(r.error,e,o))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function gr(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}function mr(e){return"xhr"===e?"XHR":"Fetch"}function yr(e){var t,n=function(t,n){var r=_e({stackTrace:t,originalError:n,startClocks:He(),nonErrorPrefix:"Uncaught",source:lt.SOURCE,handling:"unhandled"});e.notify(r)},r=(t=n,Ct(window,"onerror",(function(e){var n,r=e.parameters,o=r[0],i=r[1],a=r[2],s=r[3],c=r[4];n=c instanceof Error?ue(c):be(o,i,a,s),t(n,null!=c?c:o)}))).stop,o=function(e){return Ct(window,"onunhandledrejection",(function(t){var n=t.parameters[0].reason||"Empty reason",r=ue(n);e(r,n)}))}(n).stop;return{stop:function(){r(),o()}}}var hr,br=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach((function(e){return e(t)}))},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter((function(e){return t!==e}))}}},e}();function Sr(e){return{handleLog:function(r,o,i,a,s){var c=W(o.getContext(),r.context);if(dt(r.status,yt.console,o)&&function(e,r){var o=e.status,i=e.message;n[wr[o]].call(t,i,r)}(r,c),dt(r.status,yt.http,o)){var u={rawLogsEvent:{date:s||Ge(),message:r.message,status:r.status,origin:lt.LOGGER},messageContext:c,savedCommonContext:a};i&&(u.domainContext={handlingStack:i}),e.notify(0,u)}}}}var wr=((hr={})[vt.ok]=e.debug,hr[vt.debug]=e.debug,hr[vt.info]=e.info,hr[vt.notice]=e.info,hr[vt.warn]=e.warn,hr[vt.error]=e.error,hr[vt.critical]=e.error,hr[vt.alert]=e.error,hr[vt.emerg]=e.error,hr);function kr(e){var t=e.encoder,n=e.request,r=e.flushController,i=e.messageBytesLimit,c={},u=r.flushObservable.subscribe((function(e){return function(e){var r=b(c).join("\n");c={};var o=(a=e.reason,y(b(qn),a)),i=o?n.sendOnExit:n.send;var a;if(o&&t.isAsync){var s=t.finishSync();s.outputBytesCount&&i(Cr(s));var u=[s.pendingData,r].filter(Boolean).join("\n");u&&i({data:u,bytesCount:_(u)})}else r&&t.write(t.isEmpty?r:"\n".concat(r)),t.finish((function(e){i(Cr(e))}))}(e)}));function f(e,n){var u=D(e),f=t.estimateEncodedBytesCount(u);f>=i?o.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(s," ").concat(a,"/#technical-limitations")):(function(e){return void 0!==e&&void 0!==c[e]}(n)&&function(e){var n=c[e];delete c[e];var o=t.estimateEncodedBytesCount(n);r.notifyAfterRemoveMessage(o)}(n),function(e,n,o){r.notifyBeforeAddMessage(n),void 0!==o?(c[o]=e,r.notifyAfterAddMessage()):t.write(t.isEmpty?e:"\n".concat(e),(function(e){r.notifyAfterAddMessage(e-n)}))}(u,f,n))}return{flushController:r,add:f,upsert:f,stop:u.unsubscribe}}function Cr(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var xr=80*C,Er=32,_r=3*x,Tr=Ue,Or=Be;function Rr(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?Ar(e,t,n,{onSuccess:function(){return Ir(0,t,n,r,o)},onFailure:function(){t.queuedPayloads.enqueue(e),Lr(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function Lr(e,t,n,r){2===e.transportStatus&&O((function(){Ar(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=Or,Ir(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(Tr,2*e.currentBackoffTime),Lr(e,t,n,r)}})}),e.currentBackoffTime)}function Ar(e,t,n,r){var o=r.onSuccess,i=r.onFailure;t.bandwidthMonitor.add(e),n(e,(function(n){t.bandwidthMonitor.remove(e),!function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||vr(e.status))}(n)?(t.transportStatus=0,o()):(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},i())}))}function Ir(e,t,n,r,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(_r/x,"MiB"),source:lt.AGENT,startClocks:He()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=Pr();i.size()>0;)Rr(i.dequeue(),t,n,r,o)}function Pr(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=_r}}}function Dr(e,t,n,r){var o={transportStatus:0,currentBackoffTime:Or,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=xr&&this.ongoingRequestCount<Er},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:Pr(),queueFullReported:!1},i=function(r,o){return function(e,t,n,r,o){var i=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&r.bytesCount<n;if(i){var a=t.build("fetch",r);fetch(a,{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(p((function(e){return null==o?void 0:o({status:e.status,type:e.type})})),p((function(){var n=t.build("xhr",r);Nr(e,n,r.data,o)})))}else{var s=t.build("xhr",r);Nr(e,s,r.data,o)}}(e,t,n,r,o)};return{send:function(e){Rr(e,o,i,t.trackType,r)},sendOnExit:function(r){!function(e,t,n,r){var o=!!navigator.sendBeacon&&r.bytesCount<n;if(o)try{var i=t.build("beacon",r);if(navigator.sendBeacon(i,r.data))return}catch(e){!function(e){Mr||(Mr=!0,at(e))}(e)}var a=t.build("xhr",r);Nr(e,a,r.data)}(e,t,n,r)}}}var Mr=!1;function Nr(e,t,n,r){var o=new XMLHttpRequest;o.open("POST",t,!0),n instanceof Blob&&o.setRequestHeader("Content-Type",n.type),re(e,o,"loadend",(function(){null==r||r({status:o.status})}),{once:!0}),o.send(n)}function Br(e){var t,n=e.messagesLimit,r=e.bytesLimit,o=e.durationLimit,i=e.pageExitObservable,a=e.sessionExpireObservable,s=i.subscribe((function(e){return d(e.reason)})),c=a.subscribe((function(){return d("session_expire")})),u=new Q((function(){return function(){s.unsubscribe(),c.unsubscribe()}})),f=0,l=0;function d(e){if(0!==l){var t=l,n=f;l=0,f=0,v(),u.notify({reason:e,messagesCount:t,bytesCount:n})}}function v(){R(t),t=void 0}return{flushObservable:u,get messagesCount(){return l},notifyBeforeAddMessage:function(e){f+e>=r&&d("bytes_limit"),l+=1,f+=e,void 0===t&&(t=O((function(){d("duration_limit")}),o))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),f+=e,l>=n?d("messages_limit"):f>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(e){f-=e,0===(l-=1)&&v()}}}function Ur(e,t,n,r,o,i,a){void 0===a&&(a=kr);var s=u(e,t),c=n&&u(e,n);function u(e,t){var n=t.endpoint,s=t.encoder;return a({encoder:s,request:Dr(e,n,e.batchBytesLimit,r),flushController:Br({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:o,sessionExpireObservable:i}),messageBytesLimit:e.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),s.add(e),c&&t&&c.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){s.upsert(e,t),c&&c.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){s.stop(),c&&c.stop()}}}function qr(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var o=_(n);t+=o,e+=n,r&&r(o)},finish:function(e){e(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(e){return e.length}}}function jr(e,t,n,r,o){var i=ot("browser-logs-sdk",t);i.setContextProvider((function(){var e,t,n,r,i,a;return{application:{id:null===(e=nr())||void 0===e?void 0:e.application_id},session:{id:null===(t=o.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(r=null===(n=nr())||void 0===n?void 0:n.view)||void 0===r?void 0:r.id},action:{id:null===(a=null===(i=nr())||void 0===i?void 0:i.user_action)||void 0===a?void 0:a.id}}}));var a=[];if(kt()){var s=wt(),c=i.observable.subscribe((function(e){return s.send("internal_telemetry",e)}));a.push((function(){return c.unsubscribe()}))}else{var u=Ur(t,{endpoint:t.rumEndpointBuilder,encoder:qr()},t.replica&&{endpoint:t.replica.rumEndpointBuilder,encoder:qr()},n,r,o.expireObservable);a.push((function(){return u.stop()}));var f=i.observable.subscribe((function(e){return u.add(e,function(e){return e.site===Pe}(t))}));a.push((function(){return f.unsubscribe()}))}return nt.drain(),function(e){rt({type:Qe.configuration,configuration:e})}(function(e){var t,n={session_sample_rate:(t=e).sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:t.telemetryUsageSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:t.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents,tracking_consent:t.trackingConsent};return w({forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,send_logs_after_session_expiration:e.sendLogsAfterSessionExpiration},n)}(e)),{telemetry:i,stop:function(){a.forEach((function(e){return e()}))}}}var Gr,Fr,Hr,zr,Jr=function(e){var t,n,r=G(),i=te(r.getOrCreateTracker(2)),a=te(r.getOrCreateTracker(1)),s={tryToInit:function(e){t||(t=e)},update:function(e){t=e,n.notify()},isGranted:function(){return t===ne.GRANTED},observable:n=new Q};function c(){return function(e,t){return{view:{referrer:document.referrer,url:window.location.href},context:e.getContext(),user:t.getContext()}}(i,a)}var u,f,l=Bn(c,s,(function(t,n){t.storeContextsAcrossPages&&(se(n,i,Un,2),se(n,a,Un,1));var r=e(t,n,c,s);return l=function(e,t){return w({init:function(e){ut("DD_LOGS",e)},initConfiguration:e},t)}(t,r),r})),v={},g=new bt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)}),r.createDetachedTracker());return u={logger:g,init:p((function(e){return l.init(e)})),setTrackingConsent:p((function(e){var t;s.update(e),t={feature:"set-tracking-consent",tracking_consent:e},rt({type:Qe.usage,usage:t})})),getGlobalContext:p((function(){return i.getContext()})),setGlobalContext:p((function(e){return i.setContext(e)})),setGlobalContextProperty:p((function(e,t){return i.setContextProperty(e,t)})),removeGlobalContextProperty:p((function(e){return i.removeContextProperty(e)})),clearGlobalContext:p((function(){return i.clearContext()})),createLogger:p((function(e,t){return void 0===t&&(t={}),v[e]=new bt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)}),r.createDetachedTracker(),X(e),t.handler,t.level,X(t.context)),v[e]})),getLogger:p((function(e){return v[e]})),getInitConfiguration:p((function(){return J(l.initConfiguration)})),getInternalContext:p((function(e){return l.getInternalContext(e)})),setUser:p((function(e){(function(e){var t="object"===H(e);return t||o.error("Unsupported user:",e),t})(e)&&a.setContext(ct(e))})),getUser:p((function(){return a.getContext()})),setUserProperty:p((function(e,t){var n,r=ct((n={},n[e]=t,n))[e];a.setContextProperty(e,r)})),removeUserProperty:p((function(e){return a.removeContextProperty(e)})),clearUser:p((function(){return a.clearContext()}))},f=w({version:"5.25.0",onReady:function(e){e()}},u),Object.defineProperty(f,"_setDebug",{get:function(){return d},enumerable:!1}),f}((function(e,t,n,r){var o=new br,i=[];o.subscribe(1,(function(e){return Ve("logs",e)}));var a=function(e){return function(t){e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:lt.AGENT,status:vt.error}}),it("Error reported to customer",{"error.message":t.message})}}(o),s=function(e){return new Q((function(t){var n=oe(e,window,["visibilitychange","freeze"],(function(e){"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:qn.HIDDEN}):"freeze"===e.type&&t.notify({reason:qn.FROZEN})}),{capture:!0}).stop,r=re(e,window,"beforeunload",(function(){t.notify({reason:qn.UNLOADING})})).stop;return function(){n(),r()}}))}(t),c=!t.sessionStoreStrategyType||kt()||Hn()?function(e){var t="1"===er(e)?{}:void 0;return{findTrackedSession:function(){return t},expireObservable:new Q}}(t):Qn(t,r),u=jr(e,t,a,s,c).stop;i.push((function(){return u()})),pr(t,o),function(e,t){if(!e.forwardErrorsToLogs)return{stop:P};var n=new Q,r=yr(n).stop,o=n.subscribe((function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:gt(e),origin:lt.SOURCE,status:vt.error}})}))}(t,o),function(e,t){var n=ar(e.forwardConsoleLogs).subscribe((function(e){var n={rawLogsEvent:{date:Ge(),message:e.message,origin:lt.CONSOLE,error:e.error&&gt(e.error),status:cr[e.api]},domainContext:{handlingStack:e.handlingStack}};t.notify(0,n)}))}(t,o),function(e,t){var n=In(e,e.forwardReports).subscribe((function(e){var n,r=e.message,o="deprecation"===e.originalError.type?vt.warn:vt.error;o===vt.error?n=gt(e):e.stack&&(r+=" Found in ".concat(function(e){var t;return null===(t=/@ (.+)/.exec(e))||void 0===t?void 0:t[1]}(e.stack))),t.notify(0,{rawLogsEvent:{date:Ge(),message:r,origin:lt.REPORT,error:n,status:o}})}))}(t,o);var f,l=Sr(o).handleLog;if(rr(c,t,o,n,a),kt())!function(e){var t=wt();e.subscribe(1,(function(e){t.send("log",e)}))}(o);else{var d=function(e,t,n,r,o){var i=Ur(e,{endpoint:e.logsEndpointBuilder,encoder:qr()},e.replica&&{endpoint:e.replica.logsEndpointBuilder,encoder:qr()},n,r,o.expireObservable);return t.subscribe(1,(function(e){i.add(e)})),i}(t,o,a,s,c).stop;i.push((function(){return d()}))}return{handleLog:l,getInternalContext:(f=c,{get:function(e){var t=f.findTrackedSession(e);if(t)return{session_id:t.id}}}).get,stop:function(){i.forEach((function(e){return e()}))}}}));Gr=k(),Hr=Jr,(zr=Gr[Fr="DD_LOGS"])&&!zr.q&&zr.version&&o.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),Gr[Fr]=Hr,zr&&zr.q&&zr.q.forEach((function(e){return c(e,"onReady callback threw an error:")()}))}();
{
"name": "@datadog/browser-logs",
"version": "5.24.0",
"version": "5.25.0",
"license": "Apache-2.0",

@@ -16,6 +16,6 @@ "main": "cjs/entries/main.js",

"dependencies": {
"@datadog/browser-core": "5.24.0"
"@datadog/browser-core": "5.25.0"
},
"peerDependencies": {
"@datadog/browser-rum": "5.24.0"
"@datadog/browser-rum": "5.25.0"
},

@@ -38,3 +38,3 @@ "peerDependenciesMeta": {

},
"gitHead": "441d8a387ad930c2c4dcbc73ea26facce303db13"
"gitHead": "58708747ce8a3e06267f0ec8667306135efe027f"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc