@datadog/browser-logs
Advanced tools
Comparing version 5.33.0 to 5.34.0
@@ -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 w(e,t){return e.slice(0,t.length)===t}function S(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 B(e,t){return Object.keys(e).some((function(n){return e[n]===t}))}function N(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){N(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 $=220*C,V="$",K=3;function X(e,t){void 0===t&&(t=$);var n=M(Object.prototype),r=M(Array.prototype),o=[],i=new WeakMap,a=Z(e,V,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&&e.updateCustomerData(t)):r.clearContext(),n.notify()},setContextProperty:function(r,o){t[r]=X(o),e&&e.updateCustomerData(t),n.notify()},removeContextProperty:function(r){delete t[r],e&&e.updateCustomerData(t),n.notify()},clearContext:function(){t={},e&&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&&v(),r(t))})),f=c?{capture:s,passive:c}:s,l=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,d=T(l,"addEventListener");function v(){var e=T(l,"removeEventListener");n.forEach((function(n){return e.call(t,n,u,f)}))}return n.forEach((function(e){return d.call(t,e,u,f)})),{stop:v}}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&&w(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=we.exec(e))[1],r=t[2]);return{name:n,message:r}}(e);return{name:i.name,message:i.message,stack:o}}var we=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Se(){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=Oe(n),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?Re(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 Oe(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function Oe(e){return"[object Error]"===Object.prototype.toString.call(e)}function Re(e,t){for(var n=e,r=[];Oe(null==n?void 0:n.cause)&&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.REMOTE_CONFIGURATION="remote_configuration",e.LONG_ANIMATION_FRAME="long_animation_frame",e.ACTION_NAME_MASKING="action_name_masking"}(xe||(xe={}));var Le=new Set;function Ae(e){Array.isArray(e)&&e.filter((function(e){return B(xe,e)})).forEach((function(e){Le.add(e)}))}function Ie(){return Le}var Pe,De="datad0g.com",Me="dd0g-gov.com",Be="datadoghq.com",Ne="pci.browser-intake-datadoghq.com",Ue=["ddsource","ddtags"],qe=1e3,je=60*qe,Ge=60*je;function Fe(){return(new Date).getTime()}function He(){return Fe()}function ze(){return performance.now()}function Je(){return{relative:ze(),timeStamp:He()}}function We(e,t){return e+t}function $e(e){return e-Ve()}function Ve(){return void 0===Pe&&(Pe=performance.timing.navigationStart),Pe}function Ke(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function Xe(e){return 0!==e&&100*Math.random()<=e}function Ze(){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 Ye(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var Qe=500;function et(){var e=[];return{add:function(t){e.push(t)>Qe&&e.splice(0,1)},remove:function(t){Ye(e,t)},drain:function(t){e.forEach((function(e){return e(t)})),e.length=0}}}var tt={log:"log",configuration:"configuration",usage:"usage"},nt=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],rt=["ddog-gov.com"],ot=et(),it=function(e){ot.add((function(){return it(e)}))};function at(e,t){var n,r,o=new Q,i=new Set,a=!y(rt,t.site)&&Xe(t.telemetrySampleRate),s=((n={})[tt.log]=a,n[tt.configuration]=a&&Xe(t.telemetryConfigurationSampleRate),n[tt.usage]=a&&Xe(t.telemetryUsageSampleRate),n),c={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return it=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:He(),service:e,version:"5.33.0",source:"browser",_dd:{format_version:2},telemetry:W(t,{runtime_env:n,connectivity:Ze(),sdk_setup:"cdn"}),experimental_features:h(Ie())},void 0!==r?r():{})}(e,n,c);o.notify(u),Ke("telemetry",u),i.add(a)}},u=ct,{setContextProvider:function(e){r=e},observable:o,enabled:a}}function st(t,n){m(e.debug,t,n),it(S({type:tt.log,message:t,status:"debug"},n))}function ct(e,t){it(S({type:tt.log,status:"error"},function(e){if(Oe(e)){var t=ue(e);return{error:{kind:t.name,stack:ke(ut(t))},message:t.message}}return{error:{stack:Ee},message:"".concat("Uncaught"," ").concat(D(e))}}(e),t))}function ut(e){return e.stack=e.stack.filter((function(e){return!e.url||nt.some((function(t){return w(e.url,t)}))})),e}function ft(e){var t=S({},e);return["id","name","email"].forEach((function(e){e in t&&(t[e]=String(t[e]))})),t}function lt(e,t){t.silentMultipleInit||o.error("".concat(e," is already initialized."))}var dt,vt={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function pt(e,t,n){var r=n.getHandler(),o=Array.isArray(r)?r:[r];return mt[e]>=mt[n.getLevel()]&&y(o,t)}var gt={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},mt=((dt={})[gt.ok]=0,dt[gt.debug]=1,dt[gt.info]=2,dt[gt.notice]=4,dt[gt.warn]=5,dt[gt.error]=6,dt[gt.critical]=7,dt[gt.alert]=8,dt[gt.emerg]=9,dt);function yt(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 ht=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},bt={console:"console",http:"http",silent:"silent"},wt=Object.keys(gt),St=function(){function e(e,t,n,r,o,i){void 0===r&&(r=bt.http),void 0===o&&(o=gt.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=gt.info);var i,a=X(t);null!=r?i=W({error:yt(_e({stackTrace:Oe(r)?ue(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:vt.LOGGER,handling:"handled",startClocks:Je()}),{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=gt.info),pt(n,bt.http,this)&&(o=Se()),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},ht([v],e.prototype,"logImplementation",null),e}();function kt(e){return function(t,n,r){var o;pt(e,bt.http,this)&&(o=Se()),this.logImplementation(t,n,e,r,o)}}function Ct(){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 xt(e){var t;void 0===e&&(e=null===(t=k().location)||void 0===t?void 0:t.hostname);var n=Ct();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r);var n,r}))}function Et(e,t,n,r){var o=(void 0===r?{}:r).computeHandlingStack,i=e[t];if("function"!=typeof i){if(!(t in e)||!w(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?Se():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 _t(e){return Tt(e,location.href).href}function Tt(e,t){var n=function(){if(void 0===Ot)try{var e=new Lt("http://test/path");Ot="http://test/path"===e.href}catch(e){Ot=!1}return Ot?Lt: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}St.prototype.ok=kt(gt.ok),St.prototype.debug=kt(gt.debug),St.prototype.info=kt(gt.info),St.prototype.notice=kt(gt.notice),St.prototype.warn=kt(gt.warn),St.prototype.error=kt(gt.error),St.prototype.critical=kt(gt.critical),St.prototype.alert=kt(gt.alert),St.prototype.emerg=kt(gt.emerg);var Ot,Rt,Lt=URL;function At(){return Rt||(Rt=new Q((function(e){if(window.fetch){var t=Et(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:_t(String(i)),f=Je(),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",S(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}}))),Rt}function It(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,It)}var Pt,Dt,Mt,Bt=/([\w-]+)\s*=\s*([^;]+)/g;function Nt(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 Ut(){return null!=Pt?Pt:Pt=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 qt(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 jt(e){return function(e,t){for(Bt.lastIndex=0;;){var n=Bt.exec(e);if(!n)break;if(n[1]===t)return n[2]}}(document.cookie,e)}function Gt(e){return Dt||(Dt=function(e){var t=new Map;for(Bt.lastIndex=0;;){var n=Bt.exec(e);if(!n)break;t.set(n[1],n[2])}return t}(document.cookie)),Dt.get(e)}function Ft(e,t){qt(e,"",0,t)}var Ht="_dd_s",zt=4*Ge,Jt=15*je,Wt=/^([a-zA-Z]+)=([a-z0-9-]+)$/,$t="&",Vt="1";function Kt(){return{isExpired:Vt}}function Xt(e){return N(e)}function Zt(e){return!Xt(e)}function Yt(e){return void 0!==e.isExpired||!((void 0===(t=e).created||Fe()-Number(t.created)<zt)&&(void 0===t.expire||Fe()<Number(t.expire)));var t}function Qt(e){e.expire=String(Fe()+Jt)}function en(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($t);var t}function tn(e){var t={};return function(e){return!!e&&(-1!==e.indexOf($t)||Wt.test(e))}(e)&&e.split($t).forEach((function(e){var n=Wt.exec(e);if(null!==n){var r=n[1],o=n[2];t[r]=o}})),t}var nn="_dd",rn="_dd_r",on="_dd_l",an="rum",sn="logs";function cn(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===Mt){for(var e="dd_site_test_".concat(It()),t=window.location.hostname.split("."),n=t.pop();t.length&&!jt(e);)n="".concat(t.pop(),".").concat(n),qt(e,"test",qe,{domain:n});Ft(e,{domain:n}),Mt=n}return Mt}());return t}(e);return function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(It()),n="test";qt(t,n,je,e);var r=jt(t)===n;return Ft(t,e),r}catch(e){return o.error(e),!1}}(t)?{type:"Cookie",cookieOptions:t}:void 0}function un(e){var t,n={isLockEnabled:1===Ut(),persistSession:(t=e,function(e){qt(Ht,en(e),Jt,t)}),retrieveSession:fn,expireSession:function(){return function(e){qt(Ht,en(Kt()),zt,e)}(e)}};return function(e){if(!Gt(Ht)){var t=Gt(nn),n=Gt(rn),r=Gt(on),o={};t&&(o.id=t),r&&/^[01]$/.test(r)&&(o[sn]=r),n&&/^[012]$/.test(n)&&(o[an]=n),Zt(o)&&(Qt(o),e.persistSession(o))}}(n),n}function fn(){return tn(jt(Ht))}var ln="_dd_test_";function dn(e){localStorage.setItem(Ht,en(e))}function vn(){return tn(localStorage.getItem(Ht))}function pn(){dn(Kt())}var gn,mn=10,yn=100,hn=[];function bn(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(S({},e,{lock:u}))},c=function(){var e=t.retrieveSession(),n=e.lock;return e.lock&&delete e.lock,{session:e,lock:n}};if(gn||(gn=e),e===gn)if(o&&n>=yn)Sn(t);else{var u,f=c();if(o){if(f.lock)return void wn(e,t,n);if(u=It(),s(f.session),(f=c()).lock!==u)return void wn(e,t,n)}var l=e.process(f.session);if(o&&(f=c()).lock!==u)wn(e,t,n);else{if(l&&(Yt(l)?a():(Qt(l),o?s(l):i(l))),o&&(!l||!Yt(l))){if((f=c()).lock!==u)return void wn(e,t,n);i(f.session),l=f.session}null===(r=e.after)||void 0===r||r.call(e,l||f.session),Sn(t)}}else hn.push(e)}function wn(e,t,n){O((function(){bn(e,t,n+1)}),mn)}function Sn(e){gn=void 0;var t=hn.shift();t&&bn(t,e)}var kn=qe;function Cn(e){var t=cn(e);return!t&&e.allowFallbackToLocalStorage&&(t=function(){try{var e=It(),t="".concat(ln).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 xn(e,t,n){var r,o=new Q,i=new Q,a=new Q,s="Cookie"===e.type?un(e.cookieOptions):{isLockEnabled:!1,persistSession:dn,retrieveSession:vn,expireSession:pn},c=s.expireSession,u=L((function(){bn({process:function(e){return Yt(e)?Kt():void 0},after:v},s)}),kn);p();var f=I((function(){bn({process:function(e){if(!Xt(e)){var r=v(e);return function(e){if(Xt(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=It(),e.created=String(Fe()))}(r),r}},after:function(e){Zt(e)&&!g()&&function(e){r=e,o.notify()}(e),r=e}},s)}),kn),l=f.throttled,d=f.cancel;function v(e){return Yt(e)&&(e=Kt()),g()&&(!function(e){return r.id!==e.id||r[t]!==e[t]}(e)?(a.notify({previousState:r,newState:e}),r=e):(r=Kt(),i.notify())),e}function p(){bn({process:function(e){if(Xt(e))return Kt()},after:function(e){r=e}},s)}function g(){return void 0!==r[t]}return{expandOrRenewSession:l,expandSession:function(){bn({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(Kt())},stop:function(){A(u)},updateSessionState:function(e){bn({process:function(t){return S({},t,e)},after:v},s)}}}function En(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var o=_t(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?Be:n,o=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&r===Be)return Ne;if(o&&r===Be)return"".concat(o,".").concat(Be);if(r===Me)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.33.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.33.0")),"dd-evp-origin=browser","dd-request-id=".concat(It())];c&&f.push("dd-evp-encoding=".concat(c));"rum"===t&&f.push("batch_time=".concat(He()));a&&f.reverse();return f.join("&")}(e,t,n,o,i);return r(a)},urlPrefix:r(""),trackType:t}}var _n=200;function Tn(e,t){var n=_n-e.length-1;(t.length>n||function(e){if(!function(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}())return!1;return new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e)}(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 On(e){var t=e.site||Be,n=function(e){var t=e.env,n=e.service,r=e.version,o=e.datacenter,i=[];return t&&i.push(Tn("env",t)),n&&i.push(Tn("service",n)),r&&i.push(Tn("version",r)),o&&i.push(Tn("datacenter",o)),i}(e),r=function(e,t){return{logsEndpointBuilder:En(e,"logs",t),rumEndpointBuilder:En(e,"rum",t),sessionReplayEndpointBuilder:En(e,"replay",t)}}(e,n),o=function(e,t){if(!e.replica)return;var n=S({},e,{site:Be,clientToken:e.replica.clientToken}),r={logsEndpointBuilder:En(n,"logs",t),rumEndpointBuilder:En(n,"rum",t)};return S({applicationId:e.replica.applicationId},r)}(e,n);return S({replica:o,site:t},r)}function Rn(e,t){return null==e||"string"==typeof e||(o.error("".concat(t," must be defined as a string")),!1)}function Ln(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 An(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))&&Ln(e.sessionSampleRate,"Session")&&Ln(e.telemetrySampleRate,"Telemetry")&&Ln(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&Ln(e.telemetryUsageSampleRate,"Telemetry Usage")&&Rn(e.version,"Version")&&Rn(e.env,"Env")&&Rn(e.service,"Service")){var f;if(void 0===e.trackingConsent||B(ne,e.trackingConsent))return S({beforeSend:e.beforeSend&&c(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Cn(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*qe,batchMessagesLimit:50,messageBytesLimit:256*C},On(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 In={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function Pn(e,t){var n=[];y(t,In.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 Dn({type:e.effectiveDirective,message:"".concat(In.cspViolation,": ").concat(t),originalError:e,csp:{disposition:e.disposition},stack:Mn(e.effectiveDirective,e.originalPolicy?"".concat(t,' of the policy "').concat(Nt(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(e))})).stop}))}(e));var r=t.filter((function(e){return e!==In.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 Dn({type:n.id,message:"".concat(t,": ").concat(n.message),originalError:e,stack:Mn(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 Dn(e){return S({startClocks:Je(),source:vt.REPORT,handling:"unhandled"},e)}function Mn(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 Bn=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 Un(t,n,r){var i,a,s=et(),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(Ae(t.enableExperimentalFeatures),xt()&&(t=function(e){return S({},e,{clientToken:"empty"})}(t)),i=t,a)lt("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=An(t),r=Nn(t.forwardConsoleLogs,b(e),"Forward Console Logs"),i=Nn(t.forwardReports,b(In),"Forward Reports");if(n&&r&&i)return t.forwardErrorsToLogs&&!y(r,e.error)&&r.push(e.error),S({forwardErrorsToLogs:!1!==t.forwardErrorsToLogs,forwardConsoleLogs:r,forwardReports:i,requestErrorResponseLengthLimit:Bn,sendLogsAfterSessionExpiration:!!t.sendLogsAfterSessionExpiration},n)}(t);r&&(a=r,At().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=He()),s.add((function(t){return t.handleLog(e,n,r,o,i)}))}}}var qn="logs";var jn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};var Gn="datadog-synthetics-public-id",Fn="datadog-synthetics-result-id",Hn="datadog-synthetics-injects-rum";function zn(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||Gt(Hn))}function Jn(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||Gt(Fn);return"string"==typeof e?e:void 0}var Wn=1/0,$n=je;function Vn(e){var t=e.expireDelay,n=e.maxEntries,r=[],o=L((function(){return function(){var e=ze()-t;for(;r.length>0&&r[r.length-1].endTime<e;)r.pop()}()}),$n);return{add:function(e,t){var o={value:e,startTime:t,endTime:Wn,remove:function(){Ye(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=Wn),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===Wn&&t.close(e)},findAll:function(e,t){void 0===e&&(e=Wn),void 0===t&&(t=0);var n=We(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 Kn=je,Xn=zt,Zn=[];function Yn(e,t,n,r){var o=new Q,i=new Q,a=xn(e.sessionStoreStrategyType,t,n);Zn.push((function(){return a.stop()}));var s=Vn({expireDelay:Xn});function c(){return{id:a.getSession().id,trackingType:a.getSession()[t],isReplayForced:!!a.getSession().forcedReplay}}return Zn.push((function(){return s.stop()})),a.renewObservable.subscribe((function(){s.add(c(),ze()),o.notify()})),a.expireObservable.subscribe((function(){i.notify(),s.closeActive(ze())})),a.expandOrRenewSession(),s.add(c(),[0,Ve()][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;Zn.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;Zn.push(r);var o=L(n,Kn);Zn.push((function(){A(o)}))}(e,(function(){return a.expandSession()})),function(e,t){var n=re(e,window,"resume",t,{capture:!0}).stop;Zn.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 Qn="logs";function er(e,t){var n=Yn(e,Qn,(function(t){return function(e,t){var n=function(e){return"0"===e||"1"===e}(t)?t:tr(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 tr(e){return Xe(e.sessionSampleRate)?"1":"0"}var nr=!1;function rr(e){var t,n=window;if(zn()){var r=o(n.DD_RUM_SYNTHETICS);return r||nr||(nr=!0,st("Logs sent before RUM is injected by the synthetics worker",{testId:(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||Gt(Gn),"string"==typeof t?t:void 0),resultId:Jn()})),r}return o(n.DD_RUM);function o(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}function or(e,t,n,r,o){var i=wt.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}),je),(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:vt.AGENT,startClocks:Je()})}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=$e(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,session:g?{id:g.id}:void 0,usr:N(m.user)?void 0:m.user,view:m.view},m.context,rr(p),c,f);!1===(null===(i=t.beforeSend)||void 0===i?void 0:i.call(t,y,v))||y.origin!==vt.AGENT&&(null!==(s=a[y.status])&&void 0!==s?s:a.custom).isLimitReached()||n.notify(1,y)}}))}var ir,ar={};function sr(n){var r=n.map((function(n){return ar[n]||(ar[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=Se();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(Oe(e))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,Oe);o={stack:a?ke(ue(a)):void 0,fingerprint:Te(a),causes:a?Re(a,"console"):void 0,startClocks:Je(),message:i,source:vt.CONSOLE,handling:"handled",handlingStack:r}}return{api:n,message:i,error:o,handlingStack:r}}(t,n,a))}))},function(){t[n]=o}}))}(n)),ar[n]}));return ee.apply(void 0,r)}var cr,ur=((ir={})[e.log]=gt.info,ir[e.debug]=gt.debug,ir[e.info]=gt.info,ir[e.warn]=gt.warn,ir[e.error]=gt.error,ir);var fr=new WeakMap;function lr(e){return cr||(cr=function(e){return new Q((function(t){var n=Et(XMLHttpRequest.prototype,"open",dr).stop,r=Et(XMLHttpRequest.prototype,"send",(function(n){!function(e,t,n){var r=e.target,o=e.handlingStack,i=fr.get(r);if(!i)return;var a=i;a.state="start",a.startClocks=Je(),a.isAborted=!1,a.xhr=r,a.handlingStack=o;var s=!1,c=Et(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,He()-e),t.status=r.status,n.notify(S({},t))}},f=re(t,r,"loadend",u).stop;n.notify(a)}(n,e,t)}),{computeHandlingStack:!0}).stop,o=Et(XMLHttpRequest.prototype,"abort",vr).stop;return function(){n(),r(),o()}}))}(e)),cr}function dr(e){var t=e.target,n=e.parameters,r=n[0],o=n[1];fr.set(t,{state:"open",method:String(r).toUpperCase(),url:_t(String(o))})}function vr(e){var t=e.target,n=fr.get(t);n&&(n.isAborted=!0)}function pr(e){return e>=500}function gr(e,t){if(!e.forwardErrorsToLogs)return{stop:P};var n=lr(e).subscribe((function(e){"complete"===e.state&&o("xhr",e)})),r=At().subscribe((function(e){"resolve"===e.state&&o("fetch",e)}));function o(n,r){var o;function i(e){var o={isAborted:r.isAborted,handlingStack:r.handlingStack};t.notify(0,{rawLogsEvent:{message:"".concat(yr(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:gt.error,origin:vt.NETWORK},domainContext:o})}o=r.url,Ue.every((function(e){return y(o,e)}))||!function(e){return 0===e.status&&"opaque"!==e.responseType}(r)&&!pr(r.status)||("xhr"in r?function(e,t,n){"string"==typeof e.response?n(mr(e.response,t)):n(e.response)}(r.xhr,e,i):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(mr(e,t))})),p((function(e){return n("Unable to retrieve response: ".concat(e))}))):n()}(r.response,e,i):r.error&&function(e,t,n){n(mr(ke(ue(e)),t))}(r.error,e,i))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function mr(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}function yr(e){return"xhr"===e?"XHR":"Fetch"}function hr(e){var t,n=function(t,n){var r=_e({stackTrace:t,originalError:n,startClocks:Je(),nonErrorPrefix:"Uncaught",source:vt.SOURCE,handling:"unhandled"});e.notify(r)},r=(t=n,Et(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=Oe(c)?ue(c):be(o,i,a,s),t(n,null!=c?c:o)}))).stop,o=function(e){return Et(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 br,wr=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(pt(r.status,bt.console,o)&&function(e,r){var o=e.status,i=e.message;n[kr[o]].call(t,i,r)}(r,c),pt(r.status,bt.http,o)){var u={rawLogsEvent:{date:s||He(),message:r.message,status:r.status,origin:vt.LOGGER},messageContext:c,savedCommonContext:a};i&&(u.domainContext={handlingStack:i}),e.notify(0,u)}}}}var kr=((br={})[gt.ok]=e.debug,br[gt.debug]=e.debug,br[gt.info]=e.info,br[gt.notice]=e.info,br[gt.warn]=e.warn,br[gt.error]=e.error,br[gt.critical]=e.error,br[gt.alert]=e.error,br[gt.emerg]=e.error,br);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(jn),a)),i=o?n.sendOnExit:n.send;var a;if(o&&t.isAsync){var s=t.finishSync();s.outputBytesCount&&i(xr(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(xr(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 xr(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var Er=80*C,_r=32,Tr=3*x,Or=je,Rr=qe;function Lr(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?Ir(e,t,n,{onSuccess:function(){return Pr(0,t,n,r,o)},onFailure:function(){t.queuedPayloads.enqueue(e),Ar(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function Ar(e,t,n,r){2===e.transportStatus&&O((function(){Ir(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=Rr,Pr(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(Or,2*e.currentBackoffTime),Ar(e,t,n,r)}})}),e.currentBackoffTime)}function Ir(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||pr(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 Pr(e,t,n,r,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(Tr/x,"MiB"),source:vt.AGENT,startClocks:Je()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=Dr();i.size()>0;)Lr(i.dequeue(),t,n,r,o)}function Dr(){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>=Tr}}}function Mr(e,t,n){var r={transportStatus:0,currentBackoffTime:Rr,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=Er&&this.ongoingRequestCount<_r},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:Dr(),queueFullReported:!1},o=function(n,r){return function(e,t,n,r){var o=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&n.bytesCount<t;if(o){var i=e.build("fetch",n);fetch(i,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then(p((function(e){return null==r?void 0:r({status:e.status,type:e.type})})),p((function(){Nr(e.build("xhr",n),n.data,r)})))}else{Nr(e.build("xhr",n),n.data,r)}}(e,t,n,r)};return{send:function(t){Lr(t,r,o,e.trackType,n)},sendOnExit:function(n){!function(e,t,n){var r=!!navigator.sendBeacon&&n.bytesCount<t;if(r)try{var o=e.build("beacon",n);if(navigator.sendBeacon(o,n.data))return}catch(e){!function(e){Br||(Br=!0,ct(e))}(e)}var i=e.build("xhr",n);Nr(i,n.data)}(e,t,n)}}}var Br=!1;function Nr(e,t,n){var r=new XMLHttpRequest;r.open("POST",e,!0),t instanceof Blob&&r.setRequestHeader("Content-Type",t.type),re({allowUntrustedEvents:!0},r,"loadend",(function(){null==n||n({status:r.status})}),{once:!0}),r.send(t)}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 qr(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:Mr(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 jr(){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 Gr(e,t,n,r,o){var i=at("browser-logs-sdk",t);i.setContextProvider((function(){var e,t,n,r,i,a;return{application:{id:null===(e=rr())||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=rr())||void 0===n?void 0:n.view)||void 0===r?void 0:r.id},action:{id:null===(a=null===(i=rr())||void 0===i?void 0:i.user_action)||void 0===a?void 0:a.id}}}));var a=[];if(xt()){var s=Ct(),c=i.observable.subscribe((function(e){return s.send("internal_telemetry",e)}));a.push((function(){return c.unsubscribe()}))}else{var u=qr(t,{endpoint:t.rumEndpointBuilder,encoder:jr()},t.replica&&{endpoint:t.replica.rumEndpointBuilder,encoder:jr()},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===De}(t))}));a.push((function(){return f.unsubscribe()}))}return ot.drain(),function(e){it({type:tt.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 S({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 Fr,Hr,zr,Jr,Wr=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,qn,2),se(n,a,qn,1));var r=e(t,n,c,s);return l=function(e,t){return S({init:function(e){lt("DD_LOGS",e)},initConfiguration:e},t)}(t,r),r})),v={},g=new St((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},it({type:tt.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 St((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(ft(e))})),getUser:p((function(){return a.getContext()})),setUserProperty:p((function(e,t){var n,r=ft((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=S({version:"5.33.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 wr,i=[];o.subscribe(1,(function(e){return Ke("logs",e)}));var a=function(e){return function(t){e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:vt.AGENT,status:gt.error}}),st("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:jn.HIDDEN}):"freeze"===e.type&&t.notify({reason:jn.FROZEN})}),{capture:!0}).stop,r=re(e,window,"beforeunload",(function(){t.notify({reason:jn.UNLOADING})})).stop;return function(){n(),r()}}))}(t),c=!t.sessionStoreStrategyType||xt()||zn()?function(e){var t="1"===tr(e)?{}:void 0;return{findTrackedSession:function(){return t},expireObservable:new Q}}(t):er(t,r),u=Gr(e,t,a,s,c).stop;i.push((function(){return u()})),gr(t,o),function(e,t){if(!e.forwardErrorsToLogs)return{stop:P};var n=new Q,r=hr(n).stop,o=n.subscribe((function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:yt(e),origin:vt.SOURCE,status:gt.error}})}))}(t,o),function(e,t){var n=sr(e.forwardConsoleLogs).subscribe((function(e){var n={rawLogsEvent:{date:He(),message:e.message,origin:vt.CONSOLE,error:e.error&&yt(e.error),status:ur[e.api]},domainContext:{handlingStack:e.handlingStack}};t.notify(0,n)}))}(t,o),function(e,t){var n=Pn(e,e.forwardReports).subscribe((function(e){var n,r=e.message,o="deprecation"===e.originalError.type?gt.warn:gt.error;o===gt.error?n=yt(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:He(),message:r,origin:vt.REPORT,error:n,status:o}})}))}(t,o);var f,l=Sr(o).handleLog;if(or(c,t,o,n,a),xt())!function(e){var t=Ct();e.subscribe(1,(function(e){t.send("log",e)}))}(o);else{var d=function(e,t,n,r,o){var i=qr(e,{endpoint:e.logsEndpointBuilder,encoder:jr()},e.replica&&{endpoint:e.replica.logsEndpointBuilder,encoder:jr()},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()}))}}}));Fr=k(),zr=Wr,(Jr=Fr[Hr="DD_LOGS"])&&!Jr.q&&Jr.version&&o.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),Fr[Hr]=zr,Jr&&Jr.q&&Jr.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 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,_=/[^\u0000-\u007F]/;function E(e){return _.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 N(){}function P(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}):N}function D(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=E(P(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 K=220*k,$="$",V=3;function Y(e,t){void 0===t&&(t=K);var n=M(Object.prototype),r=M(Array.prototype),o=[],i=new WeakMap,a=X(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=X(u.source[l],u.path,l,o,i))?JSON.stringify(d).length:4,c+=f,f=1,c>t){Z(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=X(u.source[l],u.path,l,o,i))&&(c+=JSON.stringify(d).length+f+l.length+V,f=1),c>t){Z(t,"truncated",e);break}u.target[l]=d}}return n(),r(),a}Z(t,"discarded",e)}function X(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 Z(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=Y(o),e&&e.updateCustomerData(t)):r.clearContext(),n.notify()},setContextProperty:function(r,o){t[r]=Y(o),e&&e.updateCustomerData(t),n.notify()},removeContextProperty:function(r){delete t[r],e&&e.updateCustomerData(t),n.notify()},clearContext:function(){t={},e&&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&&v(),r(t))})),f=c?{capture:s,passive:c}:s,l=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,d=T(l,"addEventListener");function v(){var e=T(l,"removeEventListener");n.forEach((function(n){return e.call(t,n,u,f)}))}return n.forEach((function(e){return d.call(t,e,u,f)})),{stop:v}}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,_e="No stack, consider using an instance of Error";function Ee(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,o=e.startClocks,i=e.nonErrorPrefix,a=e.source,s=e.handling,c=Oe(n),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(P(Y(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):_e,l=c?Re(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 Oe(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function Oe(e){return"[object Error]"===Object.prototype.toString.call(e)}function Re(e,t){for(var n=e,r=[];Oe(null==n?void 0:n.cause)&&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.REMOTE_CONFIGURATION="remote_configuration",e.LONG_ANIMATION_FRAME="long_animation_frame",e.ANONYMOUS_USER_TRACKING="anonymous_user_tracking",e.ACTION_NAME_MASKING="action_name_masking",e.CONSISTENT_TRACE_SAMPLING="consistent_trace_sampling"}(xe||(xe={}));var Le=new Set;function Ae(e){Array.isArray(e)&&e.filter((function(e){return D(xe,e)})).forEach((function(e){Le.add(e)}))}function Ie(e){return Le.has(e)}function Ne(){return Le}var Pe,Me="datad0g.com",De="dd0g-gov.com",Ue="datadoghq.com",Be="pci.browser-intake-datadoghq.com",qe=["ddsource","ddtags"],je=1e3,Ge=60*je,Fe=60*Ge,He=365*(24*Fe);function ze(){return(new Date).getTime()}function Je(){return ze()}function We(){return performance.now()}function Ke(){return{relative:We(),timeStamp:Je()}}function $e(e,t){return e+t}function Ve(e){return e-Ye()}function Ye(){return void 0===Pe&&(Pe=performance.timing.navigationStart),Pe}function Xe(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function Ze(e){return 0!==e&&100*Math.random()<=e}function Qe(){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 et(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var tt=500;function nt(){var e=[];return{add:function(t){e.push(t)>tt&&e.splice(0,1)},remove:function(t){et(e,t)},drain:function(t){e.forEach((function(e){return e(t)})),e.length=0}}}var rt={log:"log",configuration:"configuration",usage:"usage"},ot=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],it=["ddog-gov.com"],at=nt(),st=function(e){at.add((function(){return st(e)}))};function ct(e,t){var n,r,o=new Q,i=new Set,a=!y(it,t.site)&&Ze(t.telemetrySampleRate),s=((n={})[rt.log]=a,n[rt.configuration]=a&&Ze(t.telemetryConfigurationSampleRate),n[rt.usage]=a&&Ze(t.telemetryUsageSampleRate),n),c={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return st=function(n){var a=P(n);if(s[n.type]&&i.size<t.maxTelemetryEventsPerPage&&!i.has(a)){var u=function(e,t,n){return W({type:"telemetry",date:Je(),service:e,version:"5.34.0",source:"browser",_dd:{format_version:2},telemetry:W(t,{runtime_env:n,connectivity:Qe(),sdk_setup:"cdn"}),experimental_features:h(Ne())},void 0!==r?r():{})}(e,n,c);o.notify(u),Xe("telemetry",u),i.add(a)}},u=ft,{setContextProvider:function(e){r=e},observable:o,enabled:a}}function ut(t,n){m(e.debug,t,n),st(w({type:rt.log,message:t,status:"debug"},n))}function ft(e,t){st(w({type:rt.log,status:"error"},function(e){if(Oe(e)){var t=ue(e);return{error:{kind:t.name,stack:Ce(lt(t))},message:t.message}}return{error:{stack:_e},message:"".concat("Uncaught"," ").concat(P(e))}}(e),t))}function lt(e){return e.stack=e.stack.filter((function(e){return!e.url||ot.some((function(t){return S(e.url,t)}))})),e}function dt(e){var t=w({},e);return["id","name","email"].forEach((function(e){e in t&&(t[e]=String(t[e]))})),t}function vt(e,t){t.silentMultipleInit||o.error("".concat(e," is already initialized."))}var pt,gt={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function mt(e,t,n){var r=n.getHandler(),o=Array.isArray(r)?r:[r];return ht[e]>=ht[n.getLevel()]&&y(o,t)}var yt={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},ht=((pt={})[yt.ok]=0,pt[yt.debug]=1,pt[yt.info]=2,pt[yt.notice]=4,pt[yt.warn]=5,pt[yt.error]=6,pt[yt.critical]=7,pt[yt.alert]=8,pt[yt.emerg]=9,pt);function bt(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 St=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},wt={console:"console",http:"http",silent:"silent"},Ct=Object.keys(yt),kt=function(){function e(e,t,n,r,o,i){void 0===r&&(r=wt.http),void 0===o&&(o=yt.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=yt.info);var i,a=Y(t);null!=r?i=W({error:bt(Ee({stackTrace:Oe(r)?ue(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:gt.LOGGER,handling:"handled",startClocks:Ke()}),{includeMessage:!0})},a):i=a;this.handleLogStrategy({message:Y(e),context:i,status:n},this,o)},e.prototype.log=function(e,t,n,r){var o;void 0===n&&(n=yt.info),mt(n,wt.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},St([v],e.prototype,"logImplementation",null),e}();function xt(e){return function(t,n,r){var o;mt(e,wt.http,this)&&(o=we()),this.logImplementation(t,n,e,r,o)}}function _t(){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 Et(e){var t;void 0===e&&(e=null===(t=C().location)||void 0===t?void 0:t.hostname);var n=_t();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r);var n,r}))}function Tt(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:N};i=N}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 Ot(e){return Rt(e,location.href).href}function Rt(e,t){var n=function(){if(void 0===Lt)try{var e=new It("http://test/path");Lt="http://test/path"===e.href}catch(e){Lt=!1}return Lt?It: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(P({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}kt.prototype.ok=xt(yt.ok),kt.prototype.debug=xt(yt.debug),kt.prototype.info=xt(yt.info),kt.prototype.notice=xt(yt.notice),kt.prototype.warn=xt(yt.warn),kt.prototype.error=xt(yt.error),kt.prototype.critical=xt(yt.critical),kt.prototype.alert=xt(yt.alert),kt.prototype.emerg=xt(yt.emerg);var Lt,At,It=URL;function Nt(){return At||(At=new Q((function(e){if(window.fetch){var t=Tt(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:Ot(String(i)),f=Ke(),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}}))),At}function Pt(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,Pt)}var Mt,Dt,Ut,Bt=/([\w-]+)\s*=\s*([^;]+)/g;function qt(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 jt(){return null!=Mt?Mt:Mt=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 Gt(e,t,n,r){void 0===n&&(n=0);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 Ft(e){return function(e,t){for(Bt.lastIndex=0;;){var n=Bt.exec(e);if(!n)break;if(n[1]===t)return n[2]}}(document.cookie,e)}function Ht(e){return Dt||(Dt=function(e){var t=new Map;for(Bt.lastIndex=0;;){var n=Bt.exec(e);if(!n)break;t.set(n[1],n[2])}return t}(document.cookie)),Dt.get(e)}function zt(e,t){Gt(e,"",0,t)}var Jt="_dd_s",Wt=4*Fe,Kt=15*Ge,$t=He,Vt=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Yt="&";var Xt="1";function Zt(e){var t={isExpired:Xt};return Ie(xe.ANONYMOUS_USER_TRACKING)&&((null==e?void 0:e.anonymousId)?t.anonymousId=null==e?void 0:e.anonymousId:t.anonymousId=Math.floor(Math.random()*Math.pow(2,53)).toString(36)),t}function Qt(e){return U(e)}function en(e){return!Qt(e)}function tn(e){return void 0!==e.isExpired||!((void 0===(t=e).created||ze()-Number(t.created)<Wt)&&(void 0===t.expire||ze()<Number(t.expire)));var t}function nn(e){e.expire=String(ze()+Kt)}function rn(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"anonymousId"===t?"aid=".concat(n):"".concat(t,"=").concat(n)})).join(Yt);var t}function on(e){var t={};return function(e){return!!e&&(-1!==e.indexOf(Yt)||Vt.test(e))}(e)&&e.split(Yt).forEach((function(e){var n=Vt.exec(e);if(null!==n){var r=n[1],o=n[2];"aid"===r?t.anonymousId=o:t[r]=o}})),t}var an="_dd",sn="_dd_r",cn="_dd_l",un="rum",fn="logs";function ln(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===Ut){for(var e="dd_site_test_".concat(Pt()),t=window.location.hostname.split("."),n=t.pop();t.length&&!Ft(e);)n="".concat(t.pop(),".").concat(n),Gt(e,"test",je,{domain:n});zt(e,{domain:n}),Ut=n}return Ut}());return t}(e);return function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(Pt()),n="test";Gt(t,n,Ge,e);var r=Ft(t)===n;return zt(t,e),r}catch(e){return o.error(e),!1}}(t)?{type:"Cookie",cookieOptions:t}:void 0}function dn(e){var t,n={isLockEnabled:1===jt(),persistSession:(t=e,function(e){Gt(Jt,rn(e),Kt,t)}),retrieveSession:vn,expireSession:function(t){return function(e,t){var n=Zt(t);Gt(Jt,rn(n),Ie(xe.ANONYMOUS_USER_TRACKING)?$t:Wt,e)}(e,t)}};return function(e){if(!Ht(Jt)){var t=Ht(an),n=Ht(sn),r=Ht(cn),o={};t&&(o.id=t),r&&/^[01]$/.test(r)&&(o[fn]=r),n&&/^[012]$/.test(n)&&(o[un]=n),en(o)&&(nn(o),e.persistSession(o))}}(n),n}function vn(){return on(Ft(Jt))}var pn="_dd_test_";function gn(e){localStorage.setItem(Jt,rn(e))}function mn(){return on(localStorage.getItem(Jt))}function yn(e){gn(Zt(e))}var hn,bn=10,Sn=100,wn=[];function Cn(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(hn||(hn=e),e===hn)if(o&&n>=Sn)xn(t);else{var u,f=c();if(o){if(f.lock)return void kn(e,t,n);if(u=Pt(),s(f.session),(f=c()).lock!==u)return void kn(e,t,n)}var l=e.process(f.session);if(o&&(f=c()).lock!==u)kn(e,t,n);else{if(l&&(tn(l)?a(l):(nn(l),o?s(l):i(l))),o&&(!l||!tn(l))){if((f=c()).lock!==u)return void kn(e,t,n);i(f.session),l=f.session}null===(r=e.after)||void 0===r||r.call(e,l||f.session),xn(t)}}else wn.push(e)}function kn(e,t,n){O((function(){Cn(e,t,n+1)}),bn)}function xn(e){hn=void 0;var t=wn.shift();t&&Cn(t,e)}var _n=je;function En(e){var t=ln(e);return!t&&e.allowFallbackToLocalStorage&&(t=function(){try{var e=Pt(),t="".concat(pn).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 Tn(e,t,n){var r,o=new Q,i=new Q,a=new Q,s="Cookie"===e.type?dn(e.cookieOptions):{isLockEnabled:!1,persistSession:gn,retrieveSession:mn,expireSession:yn},c=s.expireSession,u=L((function(){Cn({process:function(e){return tn(e)?Zt(e):void 0},after:v},s)}),_n);p();var f=I((function(){Cn({process:function(e){if(!Qt(e)){var r=v(e);return function(e){if(Qt(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=Pt(),e.created=String(ze()))}(r),r}},after:function(e){en(e)&&!g()&&function(e){r=e,o.notify()}(e),r=e}},s)}),_n),l=f.throttled,d=f.cancel;function v(e){return tn(e)&&(e=Zt(e)),g()&&(!function(e){return r.id!==e.id||r[t]!==e[t]}(e)?(a.notify({previousState:r,newState:e}),r=e):(r=Zt(r),i.notify())),e}function p(){Cn({process:function(e){if(Qt(e))return Zt(e)},after:function(e){r=e}},s)}function g(){return void 0!==r[t]}return{expandOrRenewSession:l,expandSession:function(){Cn({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(r),v(Zt(r))},stop:function(){A(u)},updateSessionState:function(e){Cn({process:function(t){return w({},t,e)},after:v},s)}}}function On(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var o=Ot(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?Ue:n,o=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&r===Ue)return Be;if(o&&r===Ue)return"".concat(o,".").concat(Ue);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.34.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.34.0")),"dd-evp-origin=browser","dd-request-id=".concat(Pt())];c&&f.push("dd-evp-encoding=".concat(c));"rum"===t&&f.push("batch_time=".concat(Je()));a&&f.reverse();return f.join("&")}(e,t,n,o,i);return r(a)},urlPrefix:r(""),trackType:t}}var Rn=200;function Ln(e,t){var n=Rn-e.length-1;(t.length>n||function(e){if(!function(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}())return!1;return new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e)}(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 An(e){var t=e.site||Ue,n=function(e){var t=e.env,n=e.service,r=e.version,o=e.datacenter,i=[];return t&&i.push(Ln("env",t)),n&&i.push(Ln("service",n)),r&&i.push(Ln("version",r)),o&&i.push(Ln("datacenter",o)),i}(e),r=function(e,t){return{logsEndpointBuilder:On(e,"logs",t),rumEndpointBuilder:On(e,"rum",t),sessionReplayEndpointBuilder:On(e,"replay",t)}}(e,n),o=function(e,t){if(!e.replica)return;var n=w({},e,{site:Ue,clientToken:e.replica.clientToken}),r={logsEndpointBuilder:On(n,"logs",t),rumEndpointBuilder:On(n,"rum",t)};return w({applicationId:e.replica.applicationId},r)}(e,n);return w({replica:o,site:t},r)}function In(e,t){return null==e||"string"==typeof e||(o.error("".concat(t," must be defined as a string")),!1)}function Nn(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 Pn(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))&&Nn(e.sessionSampleRate,"Session")&&Nn(e.telemetrySampleRate,"Telemetry")&&Nn(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&Nn(e.telemetryUsageSampleRate,"Telemetry Usage")&&In(e.version,"Version")&&In(e.env,"Env")&&In(e.service,"Service")){var f;if(void 0===e.trackingConsent||D(ne,e.trackingConsent))return w({beforeSend:e.beforeSend&&c(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:En(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*je,batchMessagesLimit:50,messageBytesLimit:256*k},An(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 Mn={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function Dn(e,t){var n=[];y(t,Mn.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 Un({type:e.effectiveDirective,message:"".concat(Mn.cspViolation,": ").concat(t),originalError:e,csp:{disposition:e.disposition},stack:Bn(e.effectiveDirective,e.originalPolicy?"".concat(t,' of the policy "').concat(qt(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(e))})).stop}))}(e));var r=t.filter((function(e){return e!==Mn.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 Un({type:n.id,message:"".concat(t,": ").concat(n.message),originalError:e,stack:Bn(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 Un(e){return w({startClocks:Ke(),source:gt.REPORT,handling:"unhandled"},e)}function Bn(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 qn=32*k;function jn(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 Gn(t,n,r){var i,a,s=nt(),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(Ae(t.enableExperimentalFeatures),Et()&&(t=function(e){return w({},e,{clientToken:"empty"})}(t)),i=t,a)vt("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=Pn(t),r=jn(t.forwardConsoleLogs,b(e),"Forward Console Logs"),i=jn(t.forwardReports,b(Mn),"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:qn,sendLogsAfterSessionExpiration:!!t.sendLogsAfterSessionExpiration},n)}(t);r&&(a=r,Nt().subscribe(N),n.tryToInit(r.trackingConsent),u())}else o.error("Missing configuration")},get initConfiguration(){return i},getInternalContext:N,handleLog:function(e,n,r,o,i){void 0===o&&(o=t()),void 0===i&&(i=Je()),s.add((function(t){return t.handleLog(e,n,r,o,i)}))}}}var Fn="logs";var Hn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};var zn="datadog-synthetics-public-id",Jn="datadog-synthetics-result-id",Wn="datadog-synthetics-injects-rum";function Kn(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||Ht(Wn))}function $n(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||Ht(Jn);return"string"==typeof e?e:void 0}var Vn=1/0,Yn=Ge;function Xn(e){var t=e.expireDelay,n=e.maxEntries,r=[],o=L((function(){return function(){var e=We()-t;for(;r.length>0&&r[r.length-1].endTime<e;)r.pop()}()}),Yn);return{add:function(e,t){var o={value:e,startTime:t,endTime:Vn,remove:function(){et(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=Vn),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===Vn&&t.close(e)},findAll:function(e,t){void 0===e&&(e=Vn),void 0===t&&(t=0);var n=$e(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 Zn=Ge,Qn=Wt,er=[];function tr(e,t,n,r){var o=new Q,i=new Q,a=Tn(e.sessionStoreStrategyType,t,n);er.push((function(){return a.stop()}));var s=Xn({expireDelay:Qn});function c(){return{id:a.getSession().id,trackingType:a.getSession()[t],isReplayForced:!!a.getSession().forcedReplay,anonymousId:a.getSession().anonymousId}}return er.push((function(){return s.stop()})),a.renewObservable.subscribe((function(){s.add(c(),We()),o.notify()})),a.expireObservable.subscribe((function(){i.notify(),s.closeActive(We())})),a.expandOrRenewSession(),s.add(c(),[0,Ye()][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;er.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;er.push(r);var o=L(n,Zn);er.push((function(){A(o)}))}(e,(function(){return a.expandSession()})),function(e,t){var n=re(e,window,"resume",t,{capture:!0}).stop;er.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 nr="logs";function rr(e,t){var n=tr(e,nr,(function(t){return function(e,t){var n=function(e){return"0"===e||"1"===e}(t)?t:or(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 or(e){return Ze(e.sessionSampleRate)?"1":"0"}var ir=!1;function ar(e){var t,n=window;if(Kn()){var r=o(n.DD_RUM_SYNTHETICS);return r||ir||(ir=!0,ut("Logs sent before RUM is injected by the synthetics worker",{testId:(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||Ht(zn),"string"==typeof t?t:void 0),resultId:$n()})),r}return o(n.DD_RUM);function o(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}function sr(e,t,n,r,o){var i=Ct.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}),Ge),(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:gt.AGENT,startClocks:Ke()})}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=Ve(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,session:g?{id:g.id}:void 0,usr:U(m.user)?void 0:m.user,view:m.view},m.context,ar(p),c,f);!1===(null===(i=t.beforeSend)||void 0===i?void 0:i.call(t,y,v))||y.origin!==gt.AGENT&&(null!==(s=a[y.status])&&void 0!==s?s:a.custom).isLimitReached()||n.notify(1,y)}}))}var cr,ur={};function fr(n){var r=n.map((function(n){return ur[n]||(ur[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 Y(e);if(Oe(e))return ke(ue(e));return P(Y(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,Oe);o={stack:a?Ce(ue(a)):void 0,fingerprint:Te(a),causes:a?Re(a,"console"):void 0,startClocks:Ke(),message:i,source:gt.CONSOLE,handling:"handled",handlingStack:r}}return{api:n,message:i,error:o,handlingStack:r}}(t,n,a))}))},function(){t[n]=o}}))}(n)),ur[n]}));return ee.apply(void 0,r)}var lr,dr=((cr={})[e.log]=yt.info,cr[e.debug]=yt.debug,cr[e.info]=yt.info,cr[e.warn]=yt.warn,cr[e.error]=yt.error,cr);var vr=new WeakMap;function pr(e){return lr||(lr=function(e){return new Q((function(t){var n=Tt(XMLHttpRequest.prototype,"open",gr).stop,r=Tt(XMLHttpRequest.prototype,"send",(function(n){!function(e,t,n){var r=e.target,o=e.handlingStack,i=vr.get(r);if(!i)return;var a=i;a.state="start",a.startClocks=Ke(),a.isAborted=!1,a.xhr=r,a.handlingStack=o;var s=!1,c=Tt(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,Je()-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=Tt(XMLHttpRequest.prototype,"abort",mr).stop;return function(){n(),r(),o()}}))}(e)),lr}function gr(e){var t=e.target,n=e.parameters,r=n[0],o=n[1];vr.set(t,{state:"open",method:String(r).toUpperCase(),url:Ot(String(o))})}function mr(e){var t=e.target,n=vr.get(t);n&&(n.isAborted=!0)}function yr(e){return e>=500}function hr(e,t){if(!e.forwardErrorsToLogs)return{stop:N};var n=pr(e).subscribe((function(e){"complete"===e.state&&o("xhr",e)})),r=Nt().subscribe((function(e){"resolve"===e.state&&o("fetch",e)}));function o(n,r){var o;function i(e){var o={isAborted:r.isAborted,handlingStack:r.handlingStack};t.notify(0,{rawLogsEvent:{message:"".concat(Sr(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:yt.error,origin:gt.NETWORK},domainContext:o})}o=r.url,qe.every((function(e){return y(o,e)}))||!function(e){return 0===e.status&&"opaque"!==e.responseType}(r)&&!yr(r.status)||("xhr"in r?function(e,t,n){"string"==typeof e.response?n(br(e.response,t)):n(e.response)}(r.xhr,e,i):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(N),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(br(e,t))})),p((function(e){return n("Unable to retrieve response: ".concat(e))}))):n()}(r.response,e,i):r.error&&function(e,t,n){n(br(Ce(ue(e)),t))}(r.error,e,i))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function br(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}function Sr(e){return"xhr"===e?"XHR":"Fetch"}function wr(e){var t,n=function(t,n){var r=Ee({stackTrace:t,originalError:n,startClocks:Ke(),nonErrorPrefix:"Uncaught",source:gt.SOURCE,handling:"unhandled"});e.notify(r)},r=(t=n,Tt(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=Oe(c)?ue(c):be(o,i,a,s),t(n,null!=c?c:o)}))).stop,o=function(e){return Tt(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 Cr,kr=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 xr(e){return{handleLog:function(r,o,i,a,s){var c=W(o.getContext(),r.context);if(mt(r.status,wt.console,o)&&function(e,r){var o=e.status,i=e.message;n[_r[o]].call(t,i,r)}(r,c),mt(r.status,wt.http,o)){var u={rawLogsEvent:{date:s||Je(),message:r.message,status:r.status,origin:gt.LOGGER},messageContext:c,savedCommonContext:a};i&&(u.domainContext={handlingStack:i}),e.notify(0,u)}}}}var _r=((Cr={})[yt.ok]=e.debug,Cr[yt.debug]=e.debug,Cr[yt.info]=e.info,Cr[yt.notice]=e.info,Cr[yt.warn]=e.warn,Cr[yt.error]=e.error,Cr[yt.critical]=e.error,Cr[yt.alert]=e.error,Cr[yt.emerg]=e.error,Cr);function Er(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(Hn),a)),i=o?n.sendOnExit:n.send;var a;if(o&&t.isAsync){var s=t.finishSync();s.outputBytesCount&&i(Tr(s));var u=[s.pendingData,r].filter(Boolean).join("\n");u&&i({data:u,bytesCount:E(u)})}else r&&t.write(t.isEmpty?r:"\n".concat(r)),t.finish((function(e){i(Tr(e))}))}(e)}));function f(e,n){var u=P(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 Tr(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var Or=80*k,Rr=32,Lr=3*x,Ar=Ge,Ir=je;function Nr(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?Mr(e,t,n,{onSuccess:function(){return Dr(0,t,n,r,o)},onFailure:function(){t.queuedPayloads.enqueue(e),Pr(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function Pr(e,t,n,r){2===e.transportStatus&&O((function(){Mr(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=Ir,Dr(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(Ar,2*e.currentBackoffTime),Pr(e,t,n,r)}})}),e.currentBackoffTime)}function Mr(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||yr(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 Dr(e,t,n,r,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(Lr/x,"MiB"),source:gt.AGENT,startClocks:Ke()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=Ur();i.size()>0;)Nr(i.dequeue(),t,n,r,o)}function Ur(){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>=Lr}}}function Br(e,t,n){var r={transportStatus:0,currentBackoffTime:Ir,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=Or&&this.ongoingRequestCount<Rr},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:Ur(),queueFullReported:!1},o=function(n,r){return function(e,t,n,r){var o=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&n.bytesCount<t;if(o){var i=e.build("fetch",n);fetch(i,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then(p((function(e){return null==r?void 0:r({status:e.status,type:e.type})})),p((function(){jr(e.build("xhr",n),n.data,r)})))}else{jr(e.build("xhr",n),n.data,r)}}(e,t,n,r)};return{send:function(t){Nr(t,r,o,e.trackType,n)},sendOnExit:function(n){!function(e,t,n){var r=!!navigator.sendBeacon&&n.bytesCount<t;if(r)try{var o=e.build("beacon",n);if(navigator.sendBeacon(o,n.data))return}catch(e){!function(e){qr||(qr=!0,ft(e))}(e)}var i=e.build("xhr",n);jr(i,n.data)}(e,t,n)}}}var qr=!1;function jr(e,t,n){var r=new XMLHttpRequest;r.open("POST",e,!0),t instanceof Blob&&r.setRequestHeader("Content-Type",t.type),re({allowUntrustedEvents:!0},r,"loadend",(function(){null==n||n({status:r.status})}),{once:!0}),r.send(t)}function Gr(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 Fr(e,t,n,r,o,i,a){void 0===a&&(a=Er);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:Br(n,e.batchBytesLimit,r),flushController:Gr({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 Hr(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var o=E(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 zr(e,t,n,r,o){var i=ct("browser-logs-sdk",t);i.setContextProvider((function(){var e,t,n,r,i,a;return{application:{id:null===(e=ar())||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=ar())||void 0===n?void 0:n.view)||void 0===r?void 0:r.id},action:{id:null===(a=null===(i=ar())||void 0===i?void 0:i.user_action)||void 0===a?void 0:a.id}}}));var a=[];if(Et()){var s=_t(),c=i.observable.subscribe((function(e){return s.send("internal_telemetry",e)}));a.push((function(){return c.unsubscribe()}))}else{var u=Fr(t,{endpoint:t.rumEndpointBuilder,encoder:Hr()},t.replica&&{endpoint:t.replica.rumEndpointBuilder,encoder:Hr()},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===Me}(t))}));a.push((function(){return f.unsubscribe()}))}return at.drain(),function(e){st({type:rt.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 Jr,Wr,Kr,$r,Vr=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=Gn(c,s,(function(t,n){t.storeContextsAcrossPages&&(se(n,i,Fn,2),se(n,a,Fn,1));var r=e(t,n,c,s);return l=function(e,t){return w({init:function(e){vt("DD_LOGS",e)},initConfiguration:e},t)}(t,r),r})),v={},g=new kt((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},st({type:rt.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 kt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)}),r.createDetachedTracker(),Y(e),t.handler,t.level,Y(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(dt(e))})),getUser:p((function(){return a.getContext()})),setUserProperty:p((function(e,t){var n,r=dt((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.34.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 kr,i=[];o.subscribe(1,(function(e){return Xe("logs",e)}));var a=function(e){return function(t){e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:gt.AGENT,status:yt.error}}),ut("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:Hn.HIDDEN}):"freeze"===e.type&&t.notify({reason:Hn.FROZEN})}),{capture:!0}).stop,r=re(e,window,"beforeunload",(function(){t.notify({reason:Hn.UNLOADING})})).stop;return function(){n(),r()}}))}(t),c=!t.sessionStoreStrategyType||Et()||Kn()?function(e){var t="1"===or(e)?{}:void 0;return{findTrackedSession:function(){return t},expireObservable:new Q}}(t):rr(t,r),u=zr(e,t,a,s,c).stop;i.push((function(){return u()})),hr(t,o),function(e,t){if(!e.forwardErrorsToLogs)return{stop:N};var n=new Q,r=wr(n).stop,o=n.subscribe((function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:bt(e),origin:gt.SOURCE,status:yt.error}})}))}(t,o),function(e,t){var n=fr(e.forwardConsoleLogs).subscribe((function(e){var n={rawLogsEvent:{date:Je(),message:e.message,origin:gt.CONSOLE,error:e.error&&bt(e.error),status:dr[e.api]},domainContext:{handlingStack:e.handlingStack}};t.notify(0,n)}))}(t,o),function(e,t){var n=Dn(e,e.forwardReports).subscribe((function(e){var n,r=e.message,o="deprecation"===e.originalError.type?yt.warn:yt.error;o===yt.error?n=bt(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:Je(),message:r,origin:gt.REPORT,error:n,status:o}})}))}(t,o);var f,l=xr(o).handleLog;if(sr(c,t,o,n,a),Et())!function(e){var t=_t();e.subscribe(1,(function(e){t.send("log",e)}))}(o);else{var d=function(e,t,n,r,o){var i=Fr(e,{endpoint:e.logsEndpointBuilder,encoder:Hr()},e.replica&&{endpoint:e.replica.logsEndpointBuilder,encoder:Hr()},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()}))}}}));Jr=C(),Kr=Vr,($r=Jr[Wr="DD_LOGS"])&&!$r.q&&$r.version&&o.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),Jr[Wr]=Kr,$r&&$r.q&&$r.q.forEach((function(e){return c(e,"onReady callback threw an error:")()}))}(); |
{ | ||
"name": "@datadog/browser-logs", | ||
"version": "5.33.0", | ||
"version": "5.34.0", | ||
"license": "Apache-2.0", | ||
@@ -16,6 +16,6 @@ "main": "cjs/entries/main.js", | ||
"dependencies": { | ||
"@datadog/browser-core": "5.33.0" | ||
"@datadog/browser-core": "5.34.0" | ||
}, | ||
"peerDependencies": { | ||
"@datadog/browser-rum": "5.33.0" | ||
"@datadog/browser-rum": "5.34.0" | ||
}, | ||
@@ -38,3 +38,3 @@ "peerDependenciesMeta": { | ||
}, | ||
"gitHead": "4ba909fd0850f23e2d9ee3cbf520720e434912dc" | ||
"gitHead": "c6a795a260477e7272fa244f9dcdd751d0048970" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
351313
+ Added@datadog/browser-core@5.34.0(transitive)
+ Added@datadog/browser-rum@5.34.0(transitive)
+ Added@datadog/browser-rum-core@5.34.0(transitive)
- Removed@datadog/browser-core@5.33.0(transitive)
- Removed@datadog/browser-rum@5.33.0(transitive)
- Removed@datadog/browser-rum-core@5.33.0(transitive)
Updated@datadog/browser-core@5.34.0