@dash0/sdk-web 0.22.0 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).dash0={})}(this,(function(e){"use strict";function n(){}function t(e){return e}var r={debug:0,info:1,warn:2,error:3},o=r.warn;var i=s("info"),a=s("warn"),l=s("error"),u=s("debug");function s(e){if("undefined"!=typeof console&&console[e]&&"function"==typeof console[e].apply){var t=r[e];return function(){t>=o&&console[e].apply(console,arguments)}}return n}var c=Object.prototype.hasOwnProperty;function v(e,n){return c.call(e,n)}var d="undefined"!=typeof window?window:void 0,f=null==d?void 0:d.document,p=null==d?void 0:d.navigator,E="undefined"!=typeof location?location:void 0,h=(null==d?void 0:d.performance)||(null==d?void 0:d.webkitPerformance)||(null==d?void 0:d.msPerformance)||(null==d?void 0:d.mozPerformance);null==d||d.encodeURIComponent;var _=null==d?void 0:d.fetch,m=function(){try{var e;return null!==(e=null==d?void 0:d.localStorage)&&void 0!==e?e:null}catch(e){return null}}(),y=function(){try{var e;return null!==(e=null==d?void 0:d.sessionStorage)&&void 0!==e?e:null}catch(e){return null}}(),T=Array(32);function g(e){for(var n=0;n<2*e;n++)T[n]=Math.floor(16*Math.random())+48,T[n]>=58&&(T[n]+=39);return String.fromCharCode.apply(null,T.slice(0,2*e))}function R(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on"+n,t)}var b=null!=m&&"function"==typeof m.getItem&&"function"==typeof m.setItem;function I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function C(e,n,t,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void t(e)}l.done?n(u):Promise.resolve(u).then(r,o)}function L(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){C(i,r,o,a,l,"next",e)}function l(e){C(i,r,o,a,l,"throw",e)}a(void 0)}))}}function N(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function S(e,n,t){return n&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D(r.key),r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=G(e))||n){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw i}}}}function A(e,n,t){return(n=D(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function V(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(){P=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,n,t){e[n]=t.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{s({},"")}catch(e){s=function(e,n,t){return e[n]=t}}function c(e,n,t,r){var i=n&&n.prototype instanceof _?n:_,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:L(e,t,l)}),a}function v(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",E="completed",h={};function _(){}function m(){}function y(){}var T={};s(T,a,(function(){return this}));var g=Object.getPrototypeOf,R=g&&g(g(V([])));R&&R!==t&&r.call(R,a)&&(T=R);var b=y.prototype=_.prototype=Object.create(T);function I(e){["next","throw","return"].forEach((function(n){s(e,n,(function(e){return this._invoke(n,e)}))}))}function C(e,n){function t(o,i,a,l){var u=v(e[o],e,i);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?n.resolve(c.__await).then((function(e){t("next",e,a,l)}),(function(e){t("throw",e,a,l)})):n.resolve(c).then((function(e){s.value=e,a(s)}),(function(e){return t("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new n((function(n,o){t(e,r,n,o)}))}return i=i?i.then(o,o):o()}})}function L(n,t,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===E){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var u=N(l,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=v(n,t,r);if("normal"===s.type){if(o=r.done?E:f,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=E,r.method="throw",r.arg=s.arg)}}}function N(n,t){var r=t.method,o=n.iterator[r];if(o===e)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=e,N(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=v(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function S(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function O(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function V(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(typeof n+" is not iterable")}return m.prototype=y,o(b,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:m,configurable:!0}),m.displayName=s(y,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},I(C.prototype),s(C.prototype,l,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new C(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(b),s(b,u,"Generator"),s(b,a,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=V,A.prototype={constructor:A,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return l.type="throw",l.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),h},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),O(t),h}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;O(t)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:V(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),h}},n}function w(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(u=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,n)||G(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function G(e,n){if(e){if("string"==typeof e)return I(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,n):void 0}}function B(){return(new Date).getTime()}function x(){var e=F(),n=new Date;if(e){var t=h.now()+e,r=n.getTime();if(Math.abs(t-r)<6e4)return String(1e6*t)}return k(n)}function k(e){return"object"===M(e)?k(e.getTime()):String(e)+"000000"}function F(){var e,n=null==h?void 0:h.timeOrigin;"number"!=typeof n&&(n=null==h||null===(e=h.timing)||void 0===e?void 0:e.fetchStart);return n}var j={setTimeout:null==d?void 0:d.setTimeout,clearTimeout:null==d?void 0:d.clearTimeout,setInterval:null==d?void 0:d.setInterval,clearInterval:null==d?void 0:d.clearInterval},H=null!=d&&null!=d.Zone&&null!=d.Zone.root&&"function"==typeof d.Zone.root.run;function W(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return q.apply("setTimeout",arguments)}function Y(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return q.apply("clearTimeout",arguments)}function X(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return q.apply("setInterval",arguments)}function q(){var e,n=this;if(H)try{var t=Array.prototype.slice.apply(arguments);return d.Zone.root.run(j[n],d,t)}catch(e){a("Failed to execute %s inside of zone (via Zone.js). Falling back to execution inside currently active zone.",n,e)}return null===(e=j[n])||void 0===e?void 0:e.apply(d,arguments)}H&&u("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");h&&h.getEntriesByType;var z=h&&"function"==typeof d.PerformanceObserver&&"function"==typeof h.now,Q=Object.freeze({CONNECT_END:"connectEnd",CONNECT_START:"connectStart",DECODED_BODY_SIZE:"decodedBodySize",DOM_COMPLETE:"domComplete",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_INTERACTIVE:"domInteractive",DOMAIN_LOOKUP_END:"domainLookupEnd",DOMAIN_LOOKUP_START:"domainLookupStart",ENCODED_BODY_SIZE:"encodedBodySize",FETCH_START:"fetchStart",LOAD_EVENT_END:"loadEventEnd",LOAD_EVENT_START:"loadEventStart",NAVIGATION_START:"navigationStart",REDIRECT_END:"redirectEnd",REDIRECT_START:"redirectStart",REQUEST_START:"requestStart",RESPONSE_END:"responseEnd",RESPONSE_START:"responseStart",SECURE_CONNECTION_START:"secureConnectionStart",START_TIME:"startTime",UNLOAD_EVENT_END:"unloadEventEnd",UNLOAD_EVENT_START:"unloadEventStart"}),K=new WeakSet;function Z(e){if(!z)return function(e){var t=0;return{start:function(){t=B()},end:function(){return e({duration:B()-t})},cancel:n}}(e.onEnd);var t,r,o,i,a,l=[];return{start:function(){t=h.now();try{var e,n=null==d?void 0:d.PerformanceObserver;if(n)null===(e=o=new n(s))||void 0===e||e.observe({type:"resource"})}catch(e){}a=W(v,6e5)},end:function(n){if(r)return;if(r=null!=n?n:h.now(),p(),!$())return u();W((function(){return u()}),Math.min(300,e.maxWaitForResourceMillis)),R(f,"visibilitychange",c),i=W(u,e.maxWaitForResourceMillis)},cancel:v};function u(){v();var n=function(){if(!l.length)return;var n,o,i=l.filter((function(n){return n.responseEnd<=r+e.maxToleranceForResourceTimingsMillis&&!K.has(n)}));if(!i.length)return;1===i.length&&(n=i[0]);if(!n){var a,u=O(i);try{for(u.s();!(a=u.n()).done;){var s=a.value,c=Math.abs(r-t-s.duration)+Math.abs(s.responseEnd-r);(void 0===o||c<o)&&(o=c,n=s)}}catch(e){u.e(e)}finally{u.f()}}if(!n)return;return K.add(n),n}();null!=n&&n.duration&&n.duration<864e5?e.onEnd({resource:n,duration:n.duration}):e.onEnd({resource:n,duration:r-t})}function s(n){n.getEntriesByType("resource").filter((function(n){var r=n;return r.startTime>=t&&e.resourceMatcher(r)})).forEach((function(e){l.length>=100&&l.shift(),l.push(e)}))}function c(){$()||u()}function v(){!function(){if(o){try{var e;null===(e=o)||void 0===e||e.disconnect()}catch(e){}o=void 0}}(),i&&(clearTimeout(i),i=void 0),p(),function(){if(!f)return;e=f,n="visibilitychange",t=c,e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent&&e.detachEvent("on"+n,t);var e,n,t}()}function p(){a&&(clearTimeout(a),a=void 0)}}function $(){return"visible"===(null==f?void 0:f.visibilityState)||"prerender"===(null==f?void 0:f.visibilityState)}var J="undefined";function ee(e){return Math.round(100*e)/100}function ne(e){var n;return"string"!=typeof e?e:new URL(e,null!==(n=null==f?void 0:f.baseURI)&&void 0!==n?n:null==E?void 0:E.href)}function te(e){try{return ne(e).origin===("undefined"!=typeof location?location.origin:void 0)}catch(e){return!1}}var re=/['"<>{};\x00-\x1F\x7F]/;var oe=Symbol.for("INSTRUMENTED_BY_DASH0");function ie(e,n,t){var r=e[n];r?!0!==r[oe]?(!function(e){e[oe]=!0}(r),e[n]=t(r)):u("".concat(String(n)," has already been instrumented, skipping")):u("".concat(String(n)," is not defined, unable to instrument"))}for(var ae=new Uint32Array(256),le=0;le<256;le++){for(var ue=le,se=0;se<8;se++)ue=1&ue?3988292384^ue>>>1:ue>>>1;ae[le]=ue>>>0}function ce(e){for(var n=new Uint8Array(e.length/2),t=0;t<e.length;t+=2)n[t/2]=parseInt(e.substring(t,t+2),16);for(var r=4294967295,o=0;o<n.length;o++){var i=n[o];r=r>>>8^ae[255&(r^i)]}return(4294967295^r)>>>0}var ve={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.22.0",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:t,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},enableTransportCompression:!1,isSessionSampled:!0},de="service.name",fe="service.namespace",pe="service.version",Ee="deployment.environment.name",he="deployment.name",_e="deployment.id",me="event.name",ye="dash0.web.event.id",Te="page.load.id",ge="user_agent.original",Re="user.id",be="user.name",Ie="user.full_name",Ce="user.email",Le="user.hash",Ne="user.roles",Se="exception.message",Oe="exception.type",Ae="exception.stacktrace",Ve="url.full",Pe={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error"},we={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},Ue=0,De=1,Me="pushState",Ge="replaceState",Be=1;function xe(){var e,n;return"".concat((e={ephemeralSession:!b},n=0,e.ephemeralSession&&(n|=Be),n.toString(16).padStart(2,"0"))).concat(g(7))}var ke="d0_session",Fe="#",je=864e5,He=null;function We(e,n){if(!b)return u("Storage API is not available and session tracking is therefore not supported."),void(He=xe());e||(e=108e5),n||(n=216e5),e=Math.min(e,je),n=Math.min(n,je);try{var t=function(e){return b&&m?m.getItem(e):null}(ke),r=function(e){if(!e)return null;var n=e.split(Fe);if(n.length<3)return null;var t=n[0],r=parseInt(n[1],10),o=parseInt(n[2],10);if(!t||isNaN(r)||isNaN(o))return null;return{id:t,startTime:r,lastActivityTime:o}}(t);r&&!function(e,n,t){var r=B()-n;if(e.lastActivityTime<r)return!1;var o=B()-t;return e.startTime>=o}(r,e,n)&&(r=null),r?r.lastActivityTime=B():r={id:xe(),startTime:B(),lastActivityTime:B()},function(e,n){b&&m&&m.setItem(e,n)}(ke,function(e){return e.id+Fe+e.startTime+Fe+e.lastActivityTime}(r)),He=r.id}catch(e){a("Failed to record session information",e)}}var Ye=-1,Xe=function(e){addEventListener("pageshow",(function(n){n.persisted&&(Ye=n.timeStamp,e(n))}),!0)},qe=function(e,n,t,r){var o,i;return function(a){n.value>=0&&(a||r)&&(((i=n.value-(null!=o?o:0))||void 0===o)&&(o=n.value,n.delta=i,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n)))}},ze=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Qe=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Ke=function(){var e,n=Qe();return null!==(e=null==n?void 0:n.activationStart)&&void 0!==e?e:0},Ze=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,t=Qe(),r="navigate";return Ye>=0?r="back-forward-cache":t&&(document.prerendering||Ke()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},$e=new WeakMap;function Je(e,n){return $e.get(e)||$e.set(e,new n),$e.get(e)}var en,nn=function(){return S((function e(){N(this,e),A(this,"t",void 0),A(this,"i",0),A(this,"o",[])}),[{key:"h",value:function(e){var n;if(!e.hadRecentInput){var t=this.o[0],r=this.o.at(-1);this.i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),null===(n=this.t)||void 0===n||n.call(this,e)}}}])}(),tn=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?V(Object(t),!0).forEach((function(n){A(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({type:e,buffered:!0},t)),r}}catch(e){}},rn=function(e){var n=!1;return function(){n||(e(),n=!0)}},on=-1,an=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},ln=function(e){"hidden"===document.visibilityState&&on>-1&&(on="visibilitychange"===e.type?e.timeStamp:0,sn())},un=function(){addEventListener("visibilitychange",ln,!0),addEventListener("prerenderingchange",ln,!0)},sn=function(){removeEventListener("visibilitychange",ln,!0),removeEventListener("prerenderingchange",ln,!0)},cn=function(){if(on<0){var e,n=Ke(),t=document.prerendering||null===(e=globalThis.performance.getEntriesByType("visibility-state").filter((function(e){return"hidden"===e.name&&e.startTime>n}))[0])||void 0===e?void 0:e.startTime;on=null!=t?t:an(),un(),Xe((function(){setTimeout((function(){on=an(),un()}))}))}return{get firstHiddenTime(){return on}}},vn=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},dn=[1800,3e3],fn=[.1,.25],pn=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};vn((function(){var t,r=cn(),o=Ze("FCP"),i=tn("paint",(function(e){var n,a=O(e);try{for(a.s();!(n=a.n()).done;){var l=n.value;"first-contentful-paint"===l.name&&(i.disconnect(),l.startTime<r.firstHiddenTime&&(o.value=Math.max(l.startTime-Ke(),0),o.entries.push(l),t(!0)))}}catch(e){a.e(e)}finally{a.f()}}));i&&(t=qe(e,o,dn,n.reportAllChanges),Xe((function(r){o=Ze("FCP"),t=qe(e,o,dn,n.reportAllChanges),ze((function(){o.value=performance.now()-r.timeStamp,t(!0)}))})))}))}(rn((function(){var t,r=Ze("CLS",0),o=Je(n,nn),i=function(e){var n,i=O(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.h(a)}}catch(e){i.e(e)}finally{i.f()}o.i>r.value&&(r.value=o.i,r.entries=o.o,t())},a=tn("layout-shift",i);a&&(t=qe(e,r,fn,n.reportAllChanges),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(i(a.takeRecords()),t(!0))})),Xe((function(){o.i=0,r=Ze("CLS",0),t=qe(e,r,fn,n.reportAllChanges),ze((function(){return t()}))})),setTimeout(t))})))},En=0,hn=1/0,_n=0,mn=function(e){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;r.interactionId&&(hn=Math.min(hn,r.interactionId),_n=Math.max(_n,r.interactionId),En=_n?(_n-hn)/7+1:0)}}catch(e){t.e(e)}finally{t.f()}},yn=function(){var e;return en?En:null!==(e=performance.interactionCount)&&void 0!==e?e:0},Tn=0,gn=function(){return S((function e(){N(this,e),A(this,"u",[]),A(this,"l",new Map),A(this,"m",void 0),A(this,"v",void 0)}),[{key:"p",value:function(){Tn=yn(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((yn()-Tn)/50));return this.u[e]}},{key:"h",value:function(e){var n;if(null!==(n=this.m)&&void 0!==n&&n.call(this,e),e.interactionId||"first-input"===e.entryType){var t=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>t.T){var o;if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort((function(e,n){return n.T-e.T})),this.u.length>10){var i,a=O(this.u.splice(10));try{for(a.s();!(i=a.n()).done;){var l=i.value;this.l.delete(l.id)}}catch(e){a.e(e)}finally{a.f()}}null===(o=this.v)||void 0===o||o.call(this,r)}}}}])}(),Rn=function(e){var n=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=rn(e),document.addEventListener("visibilitychange",e,{once:!0}),n((function(){e(),document.removeEventListener("visibilitychange",e)})))},bn=[200,500],In=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&vn((function(){var t;"interactionCount"in performance||en||(en=tn("event",mn,{type:"event",buffered:!0,durationThreshold:0}));var r,o=Ze("INP"),i=Je(n,gn),a=function(e){Rn((function(){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var a=n.value;i.h(a)}}catch(e){t.e(e)}finally{t.f()}var l=i.P();l&&l.T!==o.value&&(o.value=l.T,o.entries=l.entries,r())}))},l=tn("event",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=qe(e,o,bn,n.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(a(l.takeRecords()),r(!0))})),Xe((function(){i.p(),o=Ze("INP"),r=qe(e,o,bn,n.reportAllChanges)})))}))},Cn=function(){return S((function e(){N(this,e),A(this,"m",void 0)}),[{key:"h",value:function(e){var n;null===(n=this.m)||void 0===n||n.call(this,e)}}])}(),Ln=[2500,4e3],Nn=!1;function Sn(e){var n,t,r=[];return t=o,Nn&&t(),f&&d&&(R(f,"visibilitychange",(function(){"visible"!==f.visibilityState&&t()})),R(d,"pagehide",(function(){Nn=!0,t()})),R(d,"beforeunload",(function(){Nn=!0,t()}))),{send:function(t){"visible"===(null==f?void 0:f.visibilityState)?(r.push(t),r.length>=15?o():null==n&&(n=W(o,1e3))):e([t])}};function o(){null!=n&&(clearTimeout(n),n=null),r.length>0&&(e(r.slice()),r.length=0)}}var On=0,An=0;function Vn(e,n){return Pn.apply(this,arguments)}function Pn(){return Pn=L(P().mark((function e(t,r){var o,i,l,s;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u("Transmitting telemetry to endpoints",r),o=JSON.stringify(r),i=o,l=new Blob([o]).size,s=!1,"undefined"==typeof CompressionStream||!ve.enableTransportCompression){e.next=11;break}return e.next=8,wn(o);case 8:i=e.sent,l=i.byteLength,s=!0;case 11:return e.next=13,Promise.all(ve.endpoints.map(function(){var e=L(P().mark((function e(r){var o,u,c;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(o=new URL(r.url)).pathname=o.pathname+(o.pathname.endsWith("/")?t.substring(1):t),u={"Content-Type":"application/json",Authorization:"Bearer ".concat(r.authToken)},r.dataset&&(u["Dash0-Dataset"]=r.dataset),s&&(u["Content-Encoding"]="gzip"),_){e.next=9;break}return a("Unable to send telemetry, fetch is not defined"),e.abrupt("return");case 9:return On+=l,An++,e.next=13,_(o,{method:"POST",headers:u,body:i,keepalive:On<=6e4&&An<=15});case 13:(c=e.sent).text().catch(n),c.ok||a("Failed to send telemetry to ".concat(o,": ").concat(c.status," ").concat(c.statusText)),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),a("Error sending telemetry to ".concat(r.url).concat(t,":"),e.t0);case 21:return e.prev=21,On-=l,An--,e.finish(21);case 25:case"end":return e.stop()}}),e,null,[[0,18,21,25]])})));return function(n){return e.apply(this,arguments)}}()));case 13:case"end":return e.stop()}}),e)}))),Pn.apply(this,arguments)}function wn(e){return Un.apply(this,arguments)}function Un(){return(Un=L(P().mark((function e(n){var t,r,o;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Blob([n]),r=t.stream(),o=r.pipeThrough(new CompressionStream("gzip")),e.abrupt("return",new Response(o).arrayBuffer());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Dn,Mn=Sn((function(e){Vn("/v1/logs",{resourceLogs:[{resource:ve.resource,scopeLogs:[{scope:ve.scope,logRecords:e}]}]}).catch((function(e){l("Failed to transmit logs",e)}))})),Gn=Sn((function(e){Vn("/v1/traces",{resourceSpans:[{resource:ve.resource,scopeSpans:[{scope:ve.scope,spans:e}]}]}).catch((function(e){l("Failed to transmit spans",e)}))}));function Bn(){var e,n,t,r,o;return Dn||(n=(e={maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}).maxCallsPerTenMinutes,t=e.maxCallsPerTenSeconds,r=0,o=0,X((function(){r=0}),6e5),X((function(){o=0}),1e4),Dn=function(){return++r>n||++o>t}),Dn()}function xn(e){ve.isSessionSampled&&(Bn()?u("Transport rate limit. Will not send item.",e):Mn.send(e))}function kn(e){e&&ve.isSessionSampled&&(Bn()?u("Transport rate limit. Will not send item.",e):Gn.send(e))}var Fn=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function jn(e){if(null!=e){var n={};return Array.isArray(e)?n.arrayValue={values:e.map((function(e){return jn(e)}))}:"string"==typeof e?n.stringValue=e:"number"==typeof e?n.doubleValue=e:"boolean"==typeof e?n.boolValue=e:!function(e){if(null==e||"object"!==M(e))return!1;var n=Object.keys(e);return 1===n.length&&Fn.includes(n[0])}(e)?"object"===M(e)&&(n.kvlistValue={values:Object.entries(e).map((function(e){var n=w(e,2);return Hn(n[0],n[1])}))}):n=e,n}}function Hn(e,n){return{key:e,value:jn(n)}}function Wn(e,n,t){n&&e.push(Hn(n,t))}function Yn(e,n){n&&Object.entries(n).forEach((function(n){var t=w(n,2),r=t[0],o=t[1];return Wn(e,r,o)}))}function Xn(e,n){var t=e.findIndex((function(e){return e.key===n}));-1!==t&&e.splice(t,1)}var qn="traceparent",zn=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function Qn(){var e,n,t=((null===(e=Array.from(null!==(n=null==f?void 0:f.getElementsByTagName("meta"))&&void 0!==n?n:[]).find((function(e){var n;return(null===(n=e.getAttribute("name"))||void 0===n?void 0:n.toLowerCase())===qn})))||void 0===e?void 0:e.content.trim())||"").match(zn)||function(){var e=h.getEntriesByType("navigation")[0];if(!e)return"";if(!e.serverTiming)return"";return function(e){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name===qn)return r.description.trim()}}catch(e){t.e(e)}finally{t.f()}return""}(e.serverTiming)}().match(zn);if(t)return{traceId:t[1],spanId:t[2]}}function Kn(e,n,t){e.call(n,"traceparent","00-".concat(t.traceId,"-").concat(t.spanId,"-01"))}function Zn(e,n,t){var r,o,i,a=(r=t.traceId,o=r.substring(0,8),i=r.substring(8,32),"1-".concat(o,"-").concat(i)),l="Root=".concat(a,";Parent=").concat(t.spanId,";Sampled=1");e.call(n,"X-Amzn-Trace-Id",l)}var $n="d042",Jn=1;function et(e){var n=0;return e.withoutSession&&(n|=Jn),n.toString(16).padStart(2,"0")}function nt(e){var n=function(e){return e?"".concat($n).concat(et({withoutSession:!1})).concat(e).concat(g(5)):"".concat($n).concat(et({withoutSession:!0})).concat(g(13))}(He),t=function(e){var n=ce(e).toString(16).padStart(8,"0");return"".concat(n).concat(g(4))}(n),r=[];return Wn(r,ye,t),{traceId:n,spanId:t,name:e,kind:3,startTimeUnixNano:x(),attributes:r,events:[],links:[],status:{code:0}}}function tt(e,n,t){var r=e;if(!r.endTimeUnixNano)return n&&(r.status=n),r.endTimeUnixNano=null!=t?String(Math.round(parseInt(r.startTimeUnixNano)+t)):x(),r;u("Attempting to end already ended span. Dropping...",r)}function rt(e,n,t,r){var o=void 0,i=void 0;"string"==typeof t?o=t:Array.isArray(t)&&(i=t),e.events.push({name:n,timeUnixNano:null!=o?o:x(),attributes:null!=i?i:[]})}function ot(e,n,r){var o=function(e){return e?Array.isArray(e)?function(n){return[].concat(U(e),[n]).join(".")}:function(n){return"".concat(e,".").concat(n)}:function(e){return e}}(r);try{var i=ne(n);i.username&&(i.username="REDACTED"),i.password&&(i.password="REDACTED");var a=ve.urlAttributeScrubber(A(A(A(A(A(A({},Ve,i.href),"url.path",i.pathname),"url.domain",i.hostname),"url.scheme",i.protocol.replace(":","")),"url.fragment",i.hash?i.hash.replace("#",""):void 0),"url.query",i.search?i.search.replace("?",""):void 0));Object.entries(a).forEach((function(n){var t=w(n,2),r=t[0],i=t[1];void 0!==i&&Wn(e,o(r),i)}))}catch(r){ve.urlAttributeScrubber===t&&Wn(e,o(Ve),String(n))}}var it=null!=y&&"function"==typeof y.getItem&&"function"==typeof y.setItem;var at="d0_tab",lt=null;function ut(){if(it)try{var e=function(e){return it&&y?y.getItem(e):null}(at);if(e)return void(lt=e);lt=g(8),function(e,n){it&&y&&y.setItem(e,n)}(at,lt)}catch(e){a("Failed to record tab ID information",e)}else u("Storage API is not available and tab tracking is therefore not supported.")}function st(e,n){var t,r,o,i,a;void 0===e.find((function(e){return e.key===ye}))&&Wn(e,ye,g(8));for(var l=0;l<ve.signalAttributes.length;l++)e.push(ve.signalAttributes[l]);ot(e,null!==(t=null!==(r=null==n?void 0:n.url)&&void 0!==r?r:null==d?void 0:d.location.href)&&void 0!==t?t:J,"page"),He&&Wn(e,"session.id",He),lt&&Wn(e,"browser.tab.id",lt),Wn(e,"browser.window.width",null!==(o=null==d?void 0:d.innerWidth)&&void 0!==o?o:J),Wn(e,"browser.window.height",null!==(i=null==d?void 0:d.innerHeight)&&void 0!==i?i:J);var u=null==p||null===(a=p.connection)||void 0===a?void 0:a.effectiveType;u&&Wn(e,"network.connection.subtype",u)}function ct(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};vn((function(){var t,r=cn(),o=Ze("LCP"),i=Je(n,Cn),a=function(e){n.reportAllChanges||(e=e.slice(-1));var a,l=O(e);try{for(l.s();!(a=l.n()).done;){var u=a.value;i.h(u),u.startTime<r.firstHiddenTime&&(o.value=Math.max(u.startTime-Ke(),0),o.entries=[u],t())}}catch(e){l.e(e)}finally{l.f()}},l=tn("largest-contentful-paint",a);if(l){t=qe(e,o,Ln,n.reportAllChanges);for(var u=rn((function(){a(l.takeRecords()),l.disconnect(),t(!0)})),s=0,c=["keydown","click","visibilitychange"];s<c.length;s++)addEventListener(c[s],(function(){return Rn(u)}),{capture:!0,once:!0});Xe((function(r){o=Ze("LCP"),t=qe(e,o,Ln,n.reportAllChanges),ze((function(){o.value=performance.now()-r.timeStamp,t(!0)}))}))}}))}(vt,{reportAllChanges:!0}),In(vt,{reportAllChanges:!0}),pn(vt,{reportAllChanges:!0})}function vt(e){var n=[];Wn(n,me,Pe.WEB_VITAL);var t=[];Wn(t,"name",e.name),Wn(t,"value",ee(e.value)),Wn(t,"delta",ee(e.delta));var r={timeUnixNano:x(),attributes:n,severityNumber:we.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};st(r.attributes),xn(r)}function dt(e,n){for(var t=0,r=e.length;t<r;t++)if(e[t].test(n))return!0;return!1}var ft="data:";function pt(e){return!e||(!(e=String(e))||(null==e.substring||e.substring(0,5).toLowerCase()===ft||(!!function(e){for(var n=e.toLowerCase(),t=0,r=ve.endpoints.length;t<r;t++){var o=ve.endpoints[t];if(n.startsWith(o.url))return!0}return!1}(e)||dt(ve.ignoreUrls,e))))}var Et,ht=0,_t=0,mt={},yt=!1;function Tt(){yt=!0}function gt(e,n){e&&Rt("string"==typeof e?{message:e,opts:n}:{message:e.message,type:e.name,stack:e.stack,opts:n})}function Rt(e){var n=e.message,t=e.type,r=e.stack,o=e.opts;if(n&&!(ht>100)&&!function(e){return!e||dt(ve.ignoreErrorMessages,e)}(n)){_t>=20&&(mt={},_t=0);var i=(n=String(n).substring(0,300))+(r=function(e){return String(e||"").split("\n").slice(0,30).join("\n")}(r))+(null==d?void 0:d.location.href),a=mt[i];if(a)a.seenCount++;else{var l=[];st(l),Wn(l,me,Pe.ERROR),Wn(l,Se,n),t&&Wn(l,Oe,t),r&&Wn(l,Ae,r),null!=o&&o.componentStack&&Wn(l,"exception.component_stack",null==o?void 0:o.componentStack.substring(0,2048)),Yn(l,null==o?void 0:o.attributes),a={seenCount:1,transmittedCount:0,log:{timeUnixNano:x(),attributes:l,severityNumber:we.ERROR,severityText:"ERROR",body:{stringValue:n}}},mt[i]=a,_t++}!function(){if(Et)return;Et=setTimeout(bt,1e3)}()}}function bt(){for(var e in Et&&(clearTimeout(Et),Et=null),mt)if(v(mt,e)){var n=mt[e];n.seenCount>n.transmittedCount&&(xn(n.log),ht++)}mt={},_t=0}var It="Unhandled promise rejection: ",Ct="<unavailable because Promise wasn't rejected with an Error object>";function Lt(e){null==e.reason?gt({message:It+"<no reason defined>",stack:Ct}):"string"==typeof e.reason.message?gt({message:It+e.reason.message,stack:"string"==typeof e.reason.stack?e.reason.stack:Ct}):"object"!==M(e.reason)&&gt({message:It+e.reason,stack:Ct})}var Nt="__dash0OriginalFunctions";function St(e,n){for(var t=e[Nt],r=0;r<t.length;r++){if(Ot(t[r].valuesForEqualityCheck,n))return r}return-1}function Ot(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function At(e,n,t,r,o){return function(e,n,t){if(!e)return n;var r=e[Nt]=e[Nt]||[],o=St(e,t);return-1!==o?r[o].wrappedFunction:(r.push({wrappedFunction:n,valuesForEqualityCheck:t}),n)}(e,n,Vt(t,r,o))}function Vt(e,n,t){return[e,n,Pt(t)]}function Pt(e){return null!=e&&("object"===M(e)?Boolean(e.capture):Boolean(e))}function wt(e,n,t,r,o){return function(e,n,t){var r=null==e?void 0:e[Nt];if(null==r)return t;var o=St(e,n);if(-1===o)return t;var i=r[o];return r.splice(o,1),i.wrappedFunction}(e,Vt(n,t,r),o)}function Ut(){ve.wrapEventHandlers&&function(e){if(!e||"function"!=typeof e.prototype.addEventListener||"function"!=typeof e.prototype.removeEventListener)return;var n=e.prototype.addEventListener,t=e.prototype.removeEventListener;e.prototype.addEventListener=function(e,t,r){if("function"!=typeof t)return n.apply(this,arguments);for(var o=new Array(arguments.length),i=0;i<arguments.length;i++)o[i]=arguments[i];return o[1]=function(){try{return t.apply(this,arguments)}catch(e){throw gt(e),Tt(),e}},o[1]=At(this,o[1],e,t,r),n.apply(this,o)},e.prototype.removeEventListener=function(e,n,r){if("function"!=typeof n)return t.apply(this,arguments);for(var o=new Array(arguments.length),i=0;i<arguments.length;i++)o[i]=arguments[i];return o[1]=wt(this,e,n,r,n),t.apply(this,o)}}(null==d?void 0:d.EventTarget)}function Dt(e){var n=null==d?void 0:d[e];"function"==typeof n&&(d[e]=function(e){for(var t=new Array(arguments.length),r=0;r<arguments.length;r++)t[r]=arguments[r];return t[0]=function(e){if("function"!=typeof e)return e;return function(){try{return e.apply(this,arguments)}catch(e){throw reportError(e),Tt(),e}}}(e),n.apply(this,t)})}function Mt(){!function(){if(d){var e=d.onerror;d.onerror=function(n,t,r,o,i){if(yt)return yt=!1,"function"==typeof e?e.apply(this,arguments):void 0;var a=i&&i.stack;return a||(a="at "+t+" "+r,null!=o&&(a+=":"+o)),Rt({message:String(n),stack:a}),"function"==typeof e?e.apply(this,arguments):void 0}}}(),"function"==typeof(null==d?void 0:d.addEventListener)&&d.addEventListener("unhandledrejection",Lt),Ut(),function(){if(ve.wrapTimers){if(H)return void a("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");Dt("setTimeout"),Dt("setInterval")}}()}var Gt=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"];function Bt(e){return Gt.includes(e)}function xt(e,n){var t=0!==n.startTime;kt(e,Q.FETCH_START,n,t),kt(e,Q.DOMAIN_LOOKUP_START,n,t),kt(e,Q.DOMAIN_LOOKUP_END,n,t),kt(e,Q.CONNECT_START,n,t),kt(e,Q.SECURE_CONNECTION_START,n,t),kt(e,Q.CONNECT_END,n,t),kt(e,Q.REQUEST_START,n,t),kt(e,Q.RESPONSE_START,n,t),kt(e,Q.RESPONSE_END,n,t)}function kt(e,n,t){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];!(n in t)||"number"!=typeof t[n]||o&&0===t[n]||rt(e,n,(r=t[n],String(Math.round(1e6*(r+F())))))}function Ft(e,n){var t=n.encodedBodySize;null!=t&&Wn(e.attributes,"http.response.body.size",t)}function jt(e){return function(){var n=L(P().mark((function n(t,r){var o,i,a,l,s,c,v,d,f,p,E,h,_,m,y,T;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=r?Object.assign({},r):r,l=null,null!==(o=a)&&void 0!==o&&o.body&&(l=a.body,a.body=void 0),s=new Request(t,a),l&&a&&(a.body=l),!pt(c=s.url)){n.next=9;break}return u("Not creating span for fetch call because the url is ignored, URL: ".concat(c)),n.abrupt("return",e(t instanceof Request?s:t,r));case 9:return v=null!==(i=s.method)&&void 0!==i?i:"GET",d=Bt(v),f=Bt(v.toUpperCase()),p=f?v.toUpperCase():"_OTHER",st((E=nt("HTTP ".concat(p))).attributes),ot(E.attributes,c),Ht(t,r),Wn(E.attributes,"http.request.method",p),d||Wn(E.attributes,"http.request.method_original",v),h=Qt(c),h.length>0&&(null!==(_=a)&&void 0!==_&&_.headers?(a.headers=new Headers(a.headers),Kt(a.headers.append,a.headers,E,h)):t instanceof Request?Kt(s.headers.append,s.headers,E,h):(a||(a={}),a.headers=new Headers,Kt(a.headers.append,a.headers,E,h))),Wt(s.headers,E,(function(e){return n=e,"".concat("http.request.header",".").concat(n.toLowerCase());var n})),(m=Z({resourceMatcher:function(e){var n=e.initiatorType,t=e.name;return("fetch"===n||"xmlhttprequest"===n)&&t===ne(c).href},maxWaitForResourceMillis:ve.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:ve.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,t=e.resource;t&&(xt(E,t),Ft(E,t)),kn(tt(E,void 0,1e6*n))}})).start(),n.prev=25,n.next=28,e(t instanceof Request?s:t,a);case 28:return y=n.sent,Yt(E,y),n.abrupt("return",Xt(y,ve.maxToleranceForResourceTimingsMillis,(function(){return m.end()}),(function(e){var n;m.cancel(),null!==(n=s.signal)&&void 0!==n&&n.aborted?zt(E):qt(E,e)})));case 33:throw n.prev=33,n.t0=n.catch(25),m.cancel(),null!==(T=s.signal)&&void 0!==T&&T.aborted?zt(E):qt(E,n.t0),n.t0;case 38:case"end":return n.stop()}}),n,null,[[25,33]])})));return function(e,t){return n.apply(this,arguments)}}()}function Ht(e,n,t){try{return void 0}catch(t){u("failed to analyze request for GraphQL insights",t,e,n)}}function Wt(e,n,t){try{if(!ve.headersToCapture.length)return;e.forEach((function(e,r){ve.headersToCapture.some((function(e){return e.test(r)}))&&Wn(n.attributes,t(r),e)}))}catch(e){u("unable to capture http headers due to CORS policy")}}function Yt(e,n){var t=n.status;!function(e,n,t){e.status={code:n,message:t}}(e,t>=200&&t<400?0:2),0===t&&Wn(e.attributes,"error.type",n.type),Wn(e.attributes,"http.response.status_code",String(t)),Wt(n.headers,e,(function(e){return n=e,"".concat("http.response.header",".").concat(n.toLowerCase());var n}))}function Xt(e,n,t,r){var o,i,a=h.now(),l=e.body;if(!(l&&(o=e,i=o.status,i>=200&&204!=i&&205!=i&&304!=i)))return t(),e;var u=!1,s=function(e){u||(t(e),u=!0)},c=function(e){u||(r(e),u=!0)},v=W((function(){return s(a)}),n),d=l.getReader(),f=new ReadableStream({pull:function(e){return L(P().mark((function t(){var r,o;return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,Y(v),t.next=4,d.read();case 4:r=t.sent,o=r.value,r.done?(d.releaseLock(),e.close(),s()):(a=h.now(),v=W((function(){return s(a)}),n),e.enqueue(o)),t.next=15;break;case 10:t.prev=10,t.t0=t.catch(0),c(t.t0),e.error(t.t0);try{d.releaseLock()}catch(e){}case 15:case"end":return t.stop()}}),t,null,[[0,10]])})))()},cancel:function(e){return Y(v),s(),d.cancel(e)}});return new Response(f,{status:e.status,statusText:e.statusText,headers:e.headers})}function qt(e,n){!function(e,n){var t=[];"string"==typeof n?Wn(t,Se,n):n&&(n.code?Wn(t,Oe,n.code.toString()):n.name&&Wn(t,Oe,n.name),n.message&&Wn(t,Se,n.message),n.stack&&Wn(t,Ae,n.stack),rt(e,"exception",t))}(e,n),kn(tt(e,function(e){return{code:2,message:e&&"object"===M(e)&&"message"in e?e.message:String(e)}}(n),void 0))}function zt(e){Wn(e.attributes,"dash0.web.request.cancelled",!0),kn(tt(e,void 0,void 0))}function Qt(e){var n=[];if(te(e)){if(n.push("traceparent"),ve.propagators){var t,r=O(ve.propagators);try{for(r.s();!(t=r.n()).done;){var o=t.value;"traceparent"===o.type||n.includes(o.type)||n.push(o.type)}}catch(e){r.e(e)}finally{r.f()}}return n}if(ve.propagators){var i,a=O(ve.propagators);try{for(a.s();!(i=a.n()).done;){var l=i.value;dt(l.match,e)&&(n.includes(l.type)||n.push(l.type))}}catch(e){a.e(e)}finally{a.f()}return n}return[]}function Kt(e,n,t,r){var o,i=O(r);try{for(i.s();!(o=i.n()).done;){"xray"===o.value?Zn(e,n,t):Kn(e,n,t)}}catch(e){i.e(e)}finally{i.f()}}function Zt(e,n,t,r){var o,i,a=function(e){var n,t,r;return e&&null!==(n=null===(t=(r=ve.pageViewInstrumentation).generateMetadata)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:{}}(n),l=[];Wn(l,me,Pe.PAGE_VIEW),a.attributes&&Object.entries(a.attributes).forEach((function(e){var n=w(e,2),t=n[0],r=n[1];return Wn(l,t,r)})),st(l,{url:n});var u=[];Wn(u,"title",null!==(o=null!==(i=a.title)&&void 0!==i?i:null==f?void 0:f.title)&&void 0!==o?o:J),null!=f&&f.referrer&&Wn(u,"referrer",f.referrer),Wn(u,"type",t?De:Ue),Wn(u,"change_state",r?Ge:Me);var s={timeUnixNano:e,attributes:l,severityNumber:we.INFO,severityText:"INFO",body:{kvlistValue:{values:u}}},c=Qn();c&&(s.traceId=c.traceId,s.spanId=c.spanId),xn(s)}function $t(){var e=null==d?void 0:d.performance.getEntriesByType("navigation")[0];if(e){var n=[];Wn(n,me,Pe.NAVIGATION_TIMING);var t=[];Wn(t,"name",e.name),Jt(t,e,"responseStatus"),Jt(t,e,"fetchStart"),Jt(t,e,"requestStart"),Jt(t,e,"responseStart"),Jt(t,e,"domInteractive"),Jt(t,e,"domContentLoadedEventEnd"),Jt(t,e,"domComplete"),Jt(t,e,"loadEventEnd"),Jt(t,e,"transferSize"),Jt(t,e,"encodedBodySize"),Jt(t,e,"decodedBodySize");var r={timeUnixNano:er(),attributes:n,severityNumber:we.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};st(r.attributes);var o=Qn();o&&(r.traceId=o.traceId,r.spanId=o.spanId),xn(r)}else u("Navigation timings not available. Cannot emit navigation timing log")}function Jt(e,n,t){var r=n[t];"number"!=typeof r||isNaN(r)||Wn(e,t,Number.isInteger(r)?r:ee(r))}function er(){return k(Math.round(F()))}var nr={},tr=!1,rr=!1;function or(){ar(null==d?void 0:d.location.href)}function ir(e){ar(e.newURL)}function ar(e,n){var t;if(e)try{var r=new URL(e,null==d?void 0:d.location.href);((t=r).pathname!==nr.path||rr&&t.search!==nr.search||tr&&t.hash!==nr.hash)&&(lr(r),Zt(x(),r,!0,Boolean(n)))}catch(e){u("Failed to handle url change",e)}}function lr(e){nr.path=e.pathname,nr.search=e.search,nr.hash=e.hash}function ur(){!function(){try{Zt(er(),null!=d&&d.location.href?new URL(null==d?void 0:d.location.href):void 0)}catch(e){l("Failed to transmit initial page view event",e)}if("complete"===(null==f?void 0:f.readyState))return $t();d&&R(d,"load",(function(){setTimeout($t,0)}))}(),function(){var e,n,t,r;if(d&&d.history){if(ve.pageViewInstrumentation.trackVirtualPageViews){rr=null!==(e=null===(n=ve.pageViewInstrumentation.includeParts)||void 0===n?void 0:n.includes("SEARCH"))&&void 0!==e&&e,tr=null!==(t=null===(r=ve.pageViewInstrumentation.includeParts)||void 0===r?void 0:r.includes("HASH"))&&void 0!==t&&t,ie(d.history,"replaceState",(function(e){return function(n,t,r){return ar(r?String(r):void 0,!0),e.apply(this,[n,t,r])}})),ie(d.history,"pushState",(function(e){return function(n,t,r){return ar(r?String(r):void 0),e.apply(this,[n,t,r])}})),d.addEventListener("hashchange",ir),d.addEventListener("popstate",or);try{lr(new URL(d.location.href))}catch(e){}}}else u("Browser does not support history API, skipping instrumentation")}()}var sr=function(e){if("object"===M(e)&&null!==e){if("function"==typeof Object.getPrototypeOf){var n=Object.getPrototypeOf(e);return n===Object.prototype||null===n}return"[object Object]"===Object.prototype.toString.call(e)}return!1},cr=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.reduce((function(e,n){if(void 0===n)return e;if(Array.isArray(n))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(n).forEach((function(t){["__proto__","constructor","prototype"].includes(t)||(Array.isArray(e[t])&&Array.isArray(n[t])?e[t]=cr.options.mergeArrays?cr.options.uniqueArrayItems?Array.from(new Set(e[t].concat(n[t]))):[].concat(U(e[t]),U(n[t])):n[t]:sr(e[t])&&sr(n[t])?e[t]=cr(e[t],n[t]):!sr(e[t])&&sr(n[t])?e[t]=cr(n[t],void 0):e[t]=void 0===n[t]?cr.options.allowUndefinedOverrides?n[t]:e[t]:n[t])})),e}),{})},vr={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};function dr(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];for(var r=0,o=n;r<o.length;r++){var i=o[r];if(i)return i}}cr.options=vr,cr.withOptions=function(e){cr.options=Object.assign(Object.assign({},vr),e);for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o=cr.apply(void 0,t);return cr.options=vr,o};var fr={providerName:"vcs.provider.name",ownerName:"vcs.owner.name",repositoryName:"vcs.repository.name",repositoryUrlFull:"vcs.repository.url.full",refHeadName:"vcs.ref.head.name",refHeadRevision:"vcs.ref.head.revision",changeId:"vcs.change.id"};function pr(e){for(var n=function(e){var n,t,r,o,i,a,l,u,s,c,v,d,f,p,E,h=null!==(n=e.vcs)&&void 0!==n?n:{};if(e.disableVcsDetection)return h;var _=function(){var e,n,t,r,o,i;try{var a,l,u,s,c,v,d,f,p,E,h,_,m,y,T,g,R,b,I,C,L,N,S,O,A,V,P,w,U,D,M,G,B,x,k,F,j,H,W,Y,X,q,z,Q,K,Z,$,J,ee,ne,te,re,oe,ie,ae,le,ue,se,ce,ve;e=dr(null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NEXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.NUXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.NUXT_ENV_VERCEL_GIT_PROVIDER,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REACT_APP_VERCEL_GIT_PROVIDER,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.GATSBY_VERCEL_GIT_PROVIDER,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VITE_VERCEL_GIT_PROVIDER,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.PUBLIC_VERCEL_GIT_PROVIDER,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.VUE_APP_VERCEL_GIT_PROVIDER,null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.REDWOOD_ENV_VERCEL_GIT_PROVIDER,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.SANITY_STUDIO_VERCEL_GIT_PROVIDER),n=dr(null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.NUXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NUXT_ENV_VERCEL_GIT_REPO_OWNER,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.REACT_APP_VERCEL_GIT_REPO_OWNER,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.GATSBY_VERCEL_GIT_REPO_OWNER,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.VITE_VERCEL_GIT_REPO_OWNER,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.PUBLIC_VERCEL_GIT_REPO_OWNER,null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.VUE_APP_VERCEL_GIT_REPO_OWNER,null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.REDWOOD_ENV_VERCEL_GIT_REPO_OWNER,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.SANITY_STUDIO_VERCEL_GIT_REPO_OWNER),t=dr(null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.NUXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NUXT_ENV_VERCEL_GIT_REPO_SLUG,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.REACT_APP_VERCEL_GIT_REPO_SLUG,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.GATSBY_VERCEL_GIT_REPO_SLUG,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VITE_VERCEL_GIT_REPO_SLUG,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.PUBLIC_VERCEL_GIT_REPO_SLUG,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.VUE_APP_VERCEL_GIT_REPO_SLUG,null===(U=process)||void 0===U||null===(U=U.env)||void 0===U?void 0:U.REDWOOD_ENV_VERCEL_GIT_REPO_SLUG,null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.SANITY_STUDIO_VERCEL_GIT_REPO_SLUG),r=dr(null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.NUXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.NUXT_ENV_VERCEL_GIT_COMMIT_REF,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.REACT_APP_VERCEL_GIT_COMMIT_REF,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.GATSBY_VERCEL_GIT_COMMIT_REF,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.VITE_VERCEL_GIT_COMMIT_REF,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.PUBLIC_VERCEL_GIT_COMMIT_REF,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.VUE_APP_VERCEL_GIT_COMMIT_REF,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.REDWOOD_ENV_VERCEL_GIT_COMMIT_REF,null===(Y=process)||void 0===Y||null===(Y=Y.env)||void 0===Y?void 0:Y.SANITY_STUDIO_VERCEL_GIT_COMMIT_REF),o=dr(null===(X=process)||void 0===X||null===(X=X.env)||void 0===X?void 0:X.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(q=process)||void 0===q||null===(q=q.env)||void 0===q?void 0:q.NUXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(z=process)||void 0===z||null===(z=z.env)||void 0===z?void 0:z.NUXT_ENV_VERCEL_GIT_COMMIT_SHA,null===(Q=process)||void 0===Q||null===(Q=Q.env)||void 0===Q?void 0:Q.REACT_APP_VERCEL_GIT_COMMIT_SHA,null===(K=process)||void 0===K||null===(K=K.env)||void 0===K?void 0:K.GATSBY_VERCEL_GIT_COMMIT_SHA,null===(Z=process)||void 0===Z||null===(Z=Z.env)||void 0===Z?void 0:Z.VITE_VERCEL_GIT_COMMIT_SHA,null===($=process)||void 0===$||null===($=$.env)||void 0===$?void 0:$.PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(J=process)||void 0===J||null===(J=J.env)||void 0===J?void 0:J.VUE_APP_VERCEL_GIT_COMMIT_SHA,null===(ee=process)||void 0===ee||null===(ee=ee.env)||void 0===ee?void 0:ee.REDWOOD_ENV_VERCEL_GIT_COMMIT_SHA,null===(ne=process)||void 0===ne||null===(ne=ne.env)||void 0===ne?void 0:ne.SANITY_STUDIO_VERCEL_GIT_COMMIT_SHA),i=dr(null===(te=process)||void 0===te||null===(te=te.env)||void 0===te?void 0:te.NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(re=process)||void 0===re||null===(re=re.env)||void 0===re?void 0:re.NUXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(oe=process)||void 0===oe||null===(oe=oe.env)||void 0===oe?void 0:oe.NUXT_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(ie=process)||void 0===ie||null===(ie=ie.env)||void 0===ie?void 0:ie.REACT_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ae=process)||void 0===ae||null===(ae=ae.env)||void 0===ae?void 0:ae.GATSBY_VERCEL_GIT_PULL_REQUEST_ID,null===(le=process)||void 0===le||null===(le=le.env)||void 0===le?void 0:le.VITE_VERCEL_GIT_PULL_REQUEST_ID,null===(ue=process)||void 0===ue||null===(ue=ue.env)||void 0===ue?void 0:ue.PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(se=process)||void 0===se||null===(se=se.env)||void 0===se?void 0:se.VUE_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ce=process)||void 0===ce||null===(ce=ce.env)||void 0===ce?void 0:ce.REDWOOD_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(ve=process)||void 0===ve||null===(ve=ve.env)||void 0===ve?void 0:ve.SANITY_STUDIO_VERCEL_GIT_PULL_REQUEST_ID)}catch(e){}return{providerName:e,ownerName:n,repositoryName:t,repositoryUrlFull:Er(e,n,t),refHeadName:r,refHeadRevision:o,changeId:i}}(),m=function(){var e,n,t,r;try{var o,i,a,l,u,s,c,v,d,f,p,E,h,_,m,y,T,g,R,b,I,C,L,N,S,O,A,V,P,U,D,M,G,B,x,k,F,j,H,W;e=dr(null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.NEXT_PUBLIC_REPOSITORY_URL,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.NUXT_PUBLIC_REPOSITORY_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NUXT_ENV_REPOSITORY_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.REACT_APP_REPOSITORY_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.GATSBY_REPOSITORY_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VITE_REPOSITORY_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.PUBLIC_REPOSITORY_URL,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VUE_APP_REPOSITORY_URL,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.REDWOOD_ENV_REPOSITORY_URL,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.SANITY_STUDIO_REPOSITORY_URL),n=dr(null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.NEXT_PUBLIC_BRANCH,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.NUXT_PUBLIC_BRANCH,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.NUXT_ENV_BRANCH,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.REACT_APP_BRANCH,null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.GATSBY_BRANCH,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.VITE_BRANCH,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.PUBLIC_BRANCH,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.VUE_APP_BRANCH,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.REDWOOD_ENV_BRANCH,null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.SANITY_STUDIO_BRANCH),t=dr(null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.NEXT_PUBLIC_COMMIT_REF,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.NUXT_PUBLIC_COMMIT_REF,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NUXT_ENV_COMMIT_REF,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.REACT_APP_COMMIT_REF,null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.GATSBY_COMMIT_REF,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.VITE_COMMIT_REF,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.PUBLIC_COMMIT_REF,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VUE_APP_COMMIT_REF,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.REDWOOD_ENV_COMMIT_REF,null===(U=process)||void 0===U||null===(U=U.env)||void 0===U?void 0:U.SANITY_STUDIO_COMMIT_REF),r=dr(null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.NEXT_PUBLIC_REVIEW_ID,null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.NUXT_PUBLIC_REVIEW_ID,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.NUXT_ENV_REVIEW_ID,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.REACT_APP_REVIEW_ID,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.GATSBY_REVIEW_ID,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.VITE_REVIEW_ID,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.PUBLIC_REVIEW_ID,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.VUE_APP_REVIEW_ID,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.REDWOOD_ENV_REVIEW_ID,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.SANITY_STUDIO_REVIEW_ID)}catch(e){}var Y=function(e){if(!e)return;var n,t;try{var r=new URL(e);n=r.host,t=r.pathname}catch(e){return}var o=function(e){for(var n=0,t=Object.entries(hr);n<t.length;n++){var r=w(t[n],2),o=r[0];if(r[1].includes(e))return o}return}(n);if(!o)return;var i=t.replace(/^\/+/,"").replace(/\.git$/,"").split("/");if(i.length<2)return;var a=i[0],l=i[i.length-1];return a&&l?{providerName:o,ownerName:a,repositoryName:l}:void 0}(e);return{providerName:null==Y?void 0:Y.providerName,ownerName:null==Y?void 0:Y.ownerName,repositoryName:null==Y?void 0:Y.repositoryName,repositoryUrlFull:e,refHeadName:n,refHeadRevision:t,changeId:r}}();return{providerName:null!==(t=null!==(r=h.providerName)&&void 0!==r?r:_.providerName)&&void 0!==t?t:m.providerName,ownerName:null!==(o=null!==(i=h.ownerName)&&void 0!==i?i:_.ownerName)&&void 0!==o?o:m.ownerName,repositoryName:null!==(a=null!==(l=h.repositoryName)&&void 0!==l?l:_.repositoryName)&&void 0!==a?a:m.repositoryName,repositoryUrlFull:null!==(u=null!==(s=h.repositoryUrlFull)&&void 0!==s?s:_.repositoryUrlFull)&&void 0!==u?u:m.repositoryUrlFull,refHeadName:null!==(c=null!==(v=h.refHeadName)&&void 0!==v?v:_.refHeadName)&&void 0!==c?c:m.refHeadName,refHeadRevision:null!==(d=null!==(f=h.refHeadRevision)&&void 0!==f?f:_.refHeadRevision)&&void 0!==d?d:m.refHeadRevision,changeId:null!==(p=null!==(E=h.changeId)&&void 0!==E?E:_.changeId)&&void 0!==p?p:m.changeId}}(e),t=0,r=Object.keys(fr);t<r.length;t++){var o=r[t],i=n[o];i&&Wn(ve.resource.attributes,fr[o],i)}}function Er(e,n,t){if(e&&n&&t){var r=function(e){var n;return null===(n=hr[e])||void 0===n?void 0:n[0]}(e);if(r)return"https://".concat(r,"/").concat(n,"/").concat(t)}}var hr={github:["github.com","gist.github.com"],gitlab:["gitlab.com"],bitbucket:["bitbucket.org"]};var _r=!1;function mr(e){if(_r)u("Dash0 SDK is being reinitialized, skipping ...");else if(null!=d)if("function"==typeof _&&h&&h.getEntriesByType){var n,t,r=e.serviceName.trim();if(r){if(!1!==e.rejectSuspiciousServiceName&&(t=r,re.test(t))){var o;u("serviceName contains disallowed characters. Falling back to location.hostname."),e.serviceName=null!==(o=null==E?void 0:E.hostname)&&void 0!==o?o:"unknown"}}else u("Missing or empty serviceName value. Falling back to location.hostname."),e.serviceName=null!==(n=null==E?void 0:E.hostname)&&void 0!==n?n:"unknown";if(ve.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],0!==ve.endpoints.length){if(Object.assign(ve,cr(ve,function(e,n){var t,r={},o=O(n);try{for(o.s();!(t=o.n()).done;){var i=t.value;i in e&&(r[i]=e[i])}}catch(e){o.e(e)}finally{o.f()}return r}(e,["ignoreUrls","ignoreErrorMessages","wrapEventHandlers","wrapTimers","propagateTraceHeadersCorsURLs","maxWaitForResourceTimingsMillis","maxToleranceForResourceTimingsMillis","headersToCapture","urlAttributeScrubber","pageViewInstrumentation","enableTransportCompression"]))),function(e){e.propagators?(e.propagateTraceHeadersCorsURLs&&a("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),ve.propagators=e.propagators):e.propagateTraceHeadersCorsURLs&&e.propagateTraceHeadersCorsURLs.length>0?(a("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),ve.propagators=[{type:"traceparent",match:U(e.propagateTraceHeadersCorsURLs)}]):ve.propagators=[{type:"traceparent",match:[]}]}(e),function(e){Wn(ve.resource.attributes,de,e.serviceName),e.serviceNamespace&&Wn(ve.resource.attributes,fe,e.serviceNamespace);e.serviceVersion&&Wn(ve.resource.attributes,pe,e.serviceVersion);var n=function(e){if(e.environment)return e.environment;try{var n,t,r,o,i,a,l,u,s,c;return dr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_ENV)}catch(e){return}}(e);n&&Wn(ve.resource.attributes,Ee,n);var t=function(e){if(e.deploymentName)return e.deploymentName;try{var n,t,r,o,i,a,l,u,s,c;return dr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_TARGET_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_TARGET_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_TARGET_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_TARGET_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_TARGET_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_TARGET_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_TARGET_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_TARGET_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_TARGET_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_TARGET_ENV)}catch(e){return}}(e);t&&Wn(ve.resource.attributes,he,t);var r=function(e){if(e.deploymentId)return e.deploymentId;try{var n,t,r,o,i,a,l,u,s,c;return dr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_BRANCH_URL,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_BRANCH_URL,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_BRANCH_URL,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_BRANCH_URL,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_BRANCH_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_BRANCH_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_BRANCH_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_BRANCH_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_BRANCH_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_BRANCH_URL)}catch(e){return}}(e);r&&Wn(ve.resource.attributes,_e,r);pr(e)}(e),function(e){var n;Wn(ve.signalAttributes,Te,g(16)),Wn(ve.signalAttributes,ge,null!==(n=null==p?void 0:p.userAgent)&&void 0!==n?n:J),e.additionalSignalAttributes&&Object.entries(e.additionalSignalAttributes).forEach((function(e){var n=w(e,2),t=n[0],r=n[1];Wn(ve.signalAttributes,t,r)}))}(e),ut(),We(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),null!=e.sessionSamplingRate){var i=Math.max(0,Math.min(100,e.sessionSamplingRate));ve.isSessionSampled=null!=He?function(e,n){return!(n<=0)&&(n>=100||ce(e)%100<n)}(He,i):i>0}if(!ve.isSessionSampled)return u("Session is not sampled. No telemetry will be transmitted for this session."),void(_r=!0);yr("@dash0/navigation",e)&&ur(),yr("@dash0/web-vitals",e)&&ct(),yr("@dash0/error",e)&&Mt(),yr("@dash0/fetch",e)&&(d&&d.fetch&&d.Request?ie(d,"fetch",jt):u("Browser does not support the Fetch API, skipping instrumentation")),_r=!0}else a("No telemetry endpoint configured. Aborting Dash0 Web SDK initialization process.")}else u("Stopping Dash0 Web SDK initialization. This browser does not support the necessary APIs.");else u("Looks like we are not running in a browser context. Stopping Dash0 Web SDK initialization.")}function yr(e,n){var t=n.enabledInstrumentations;return!t||t.includes(e)}e.addSignalAttribute=function(e,n){Wn(ve.signalAttributes,e,n)},e.debug=function(){u("Dash0 Web SDK configuration state:",ve)},e.identify=function(e,n){Xn(ve.signalAttributes,Re),null!=e&&Wn(ve.signalAttributes,Re,e),Xn(ve.signalAttributes,be),null!=(null==n?void 0:n.name)&&Wn(ve.signalAttributes,be,n.name),Xn(ve.signalAttributes,Ie),null!=(null==n?void 0:n.fullName)&&Wn(ve.signalAttributes,Ie,n.fullName),Xn(ve.signalAttributes,Ce),null!=(null==n?void 0:n.email)&&Wn(ve.signalAttributes,Ce,n.email),Xn(ve.signalAttributes,Le),null!=(null==n?void 0:n.hash)&&Wn(ve.signalAttributes,Le,n.hash),Xn(ve.signalAttributes,Ne),null!=(null==n?void 0:n.roles)&&Wn(ve.signalAttributes,Ne,n.roles)},e.init=function(e){u("".concat("Initializing Dash0 Web SDK"," (via package)")),mr(e)},e.removeSignalAttribute=function(e){Xn(ve.signalAttributes,e)},e.reportError=function(e,n){gt(e,n)},e.sendEvent=function(e,n){if(Object.values(Pe).includes(e))a("Unable to send custom event ".concat(e,". You are not allowed to use an internal event name while sending a custom event. Dropping event..."));else{var t=[];st(t),Wn(t,me,e),null!=n&&n.title&&Wn(t,"dash0.web.event.title",n.title),Yn(t,null==n?void 0:n.attributes),xn({timeUnixNano:null!=(null==n?void 0:n.timestamp)?k(n.timestamp):x(),attributes:t,body:jn(null==n?void 0:n.data),severityText:null==n?void 0:n.severity,severityNumber:null!=n&&n.severity?we[n.severity]:void 0})}},e.setActiveLogLevel=function(e){var n;o=null!==(n=r[e])&&void 0!==n?n:r.warn},e.terminateSession=function(){if(b)try{!function(e){b&&m&&m.removeItem(e)}(ke)}catch(e){i("Failed to terminate session",e)}}}));
1
+ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).dash0={})}(this,(function(e){"use strict";function n(){}function t(e){return e}var r={debug:0,info:1,warn:2,error:3},o=r.warn;var i=s("info"),a=s("warn"),l=s("error"),u=s("debug");function s(e){if("undefined"!=typeof console&&console[e]&&"function"==typeof console[e].apply){var t=r[e];return function(){t>=o&&console[e].apply(console,arguments)}}return n}var c=Object.prototype.hasOwnProperty;function v(e,n){return c.call(e,n)}var d="undefined"!=typeof window?window:void 0,f=null==d?void 0:d.document,p=null==d?void 0:d.navigator,E="undefined"!=typeof location?location:void 0,h=(null==d?void 0:d.performance)||(null==d?void 0:d.webkitPerformance)||(null==d?void 0:d.msPerformance)||(null==d?void 0:d.mozPerformance);null==d||d.encodeURIComponent;var _=null==d?void 0:d.fetch,m=function(){try{var e;return null!==(e=null==d?void 0:d.localStorage)&&void 0!==e?e:null}catch(e){return null}}(),y=function(){try{var e;return null!==(e=null==d?void 0:d.sessionStorage)&&void 0!==e?e:null}catch(e){return null}}(),T=Array(32);function g(e){for(var n=0;n<2*e;n++)T[n]=Math.floor(16*Math.random())+48,T[n]>=58&&(T[n]+=39);return String.fromCharCode.apply(null,T.slice(0,2*e))}function R(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on"+n,t)}var I=null!=m&&"function"==typeof m.getItem&&"function"==typeof m.setItem;function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function C(e,n,t,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void t(e)}l.done?n(u):Promise.resolve(u).then(r,o)}function L(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){C(i,r,o,a,l,"next",e)}function l(e){C(i,r,o,a,l,"throw",e)}a(void 0)}))}}function N(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function S(e,n,t){return n&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function A(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=B(e))||n){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw i}}}}function O(e,n,t){return(n=M(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function V(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?V(Object(t),!0).forEach((function(n){O(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function w(){w=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,n,t){e[n]=t.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{s({},"")}catch(e){s=function(e,n,t){return e[n]=t}}function c(e,n,t,r){var i=n&&n.prototype instanceof _?n:_,a=Object.create(i.prototype),l=new O(r||[]);return o(a,"_invoke",{value:L(e,t,l)}),a}function v(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",E="completed",h={};function _(){}function m(){}function y(){}var T={};s(T,a,(function(){return this}));var g=Object.getPrototypeOf,R=g&&g(g(V([])));R&&R!==t&&r.call(R,a)&&(T=R);var I=y.prototype=_.prototype=Object.create(T);function b(e){["next","throw","return"].forEach((function(n){s(e,n,(function(e){return this._invoke(n,e)}))}))}function C(e,n){function t(o,i,a,l){var u=v(e[o],e,i);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?n.resolve(c.__await).then((function(e){t("next",e,a,l)}),(function(e){t("throw",e,a,l)})):n.resolve(c).then((function(e){s.value=e,a(s)}),(function(e){return t("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new n((function(n,o){t(e,r,n,o)}))}return i=i?i.then(o,o):o()}})}function L(n,t,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===E){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var u=N(l,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=v(n,t,r);if("normal"===s.type){if(o=r.done?E:f,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=E,r.method="throw",r.arg=s.arg)}}}function N(n,t){var r=t.method,o=n.iterator[r];if(o===e)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=e,N(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=v(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function S(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function A(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function V(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(typeof n+" is not iterable")}return m.prototype=y,o(I,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:m,configurable:!0}),m.displayName=s(y,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,u,"GeneratorFunction")),e.prototype=Object.create(I),e},n.awrap=function(e){return{__await:e}},b(C.prototype),s(C.prototype,l,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new C(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(I),s(I,u,"Generator"),s(I,a,(function(){return this})),s(I,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=V,O.prototype={constructor:O,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return l.type="throw",l.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),h},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),A(t),h}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;A(t)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:V(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),h}},n}function U(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(u=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,n)||B(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function B(e,n){if(e){if("string"==typeof e)return b(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,n):void 0}}function x(){return(new Date).getTime()}function k(){var e=H(),n=new Date;if(e){var t=h.now()+e,r=n.getTime();if(Math.abs(t-r)<6e4)return String(1e6*t)}return F(n)}function F(e){return"object"===G(e)?F(e.getTime()):String(e)+"000000"}function H(){var e,n=null==h?void 0:h.timeOrigin;"number"!=typeof n&&(n=null==h||null===(e=h.timing)||void 0===e?void 0:e.fetchStart);return n}var j={setTimeout:null==d?void 0:d.setTimeout,clearTimeout:null==d?void 0:d.clearTimeout,setInterval:null==d?void 0:d.setInterval,clearInterval:null==d?void 0:d.clearInterval},W=null!=d&&null!=d.Zone&&null!=d.Zone.root&&"function"==typeof d.Zone.root.run;function Y(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return q.apply("setTimeout",arguments)}function X(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return q.apply("clearTimeout",arguments)}function z(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return q.apply("setInterval",arguments)}function q(){var e,n=this;if(W)try{var t=Array.prototype.slice.apply(arguments);return d.Zone.root.run(j[n],d,t)}catch(e){a("Failed to execute %s inside of zone (via Zone.js). Falling back to execution inside currently active zone.",n,e)}return null===(e=j[n])||void 0===e?void 0:e.apply(d,arguments)}W&&u("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");h&&h.getEntriesByType;var Q=h&&"function"==typeof d.PerformanceObserver&&"function"==typeof h.now,K=Object.freeze({CONNECT_END:"connectEnd",CONNECT_START:"connectStart",DECODED_BODY_SIZE:"decodedBodySize",DOM_COMPLETE:"domComplete",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_INTERACTIVE:"domInteractive",DOMAIN_LOOKUP_END:"domainLookupEnd",DOMAIN_LOOKUP_START:"domainLookupStart",ENCODED_BODY_SIZE:"encodedBodySize",FETCH_START:"fetchStart",LOAD_EVENT_END:"loadEventEnd",LOAD_EVENT_START:"loadEventStart",NAVIGATION_START:"navigationStart",REDIRECT_END:"redirectEnd",REDIRECT_START:"redirectStart",REQUEST_START:"requestStart",RESPONSE_END:"responseEnd",RESPONSE_START:"responseStart",SECURE_CONNECTION_START:"secureConnectionStart",START_TIME:"startTime",UNLOAD_EVENT_END:"unloadEventEnd",UNLOAD_EVENT_START:"unloadEventStart"}),Z=new WeakSet;function $(e){if(!Q)return function(e){var t=0;return{start:function(){t=x()},end:function(){return e({duration:x()-t})},cancel:n}}(e.onEnd);var t,r,o,i,a,l=[];return{start:function(){t=h.now();try{var e,n=null==d?void 0:d.PerformanceObserver;if(n)null===(e=o=new n(s))||void 0===e||e.observe({type:"resource"})}catch(e){}a=Y(v,6e5)},end:function(n){if(r)return;if(r=null!=n?n:h.now(),p(),!J())return u();Y((function(){return u()}),Math.min(300,e.maxWaitForResourceMillis)),R(f,"visibilitychange",c),i=Y(u,e.maxWaitForResourceMillis)},cancel:v};function u(){v();var n=function(){if(!l.length)return;var n,o,i=l.filter((function(n){return n.responseEnd<=r+e.maxToleranceForResourceTimingsMillis&&!Z.has(n)}));if(!i.length)return;1===i.length&&(n=i[0]);if(!n){var a,u=A(i);try{for(u.s();!(a=u.n()).done;){var s=a.value,c=Math.abs(r-t-s.duration)+Math.abs(s.responseEnd-r);(void 0===o||c<o)&&(o=c,n=s)}}catch(e){u.e(e)}finally{u.f()}}if(!n)return;return Z.add(n),n}();null!=n&&n.duration&&n.duration<864e5?e.onEnd({resource:n,duration:n.duration}):e.onEnd({resource:n,duration:r-t})}function s(n){n.getEntriesByType("resource").filter((function(n){var r=n;return r.startTime>=t&&e.resourceMatcher(r)})).forEach((function(e){l.length>=100&&l.shift(),l.push(e)}))}function c(){J()||u()}function v(){!function(){if(o){try{var e;null===(e=o)||void 0===e||e.disconnect()}catch(e){}o=void 0}}(),i&&(clearTimeout(i),i=void 0),p(),function(){if(!f)return;e=f,n="visibilitychange",t=c,e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent&&e.detachEvent("on"+n,t);var e,n,t}()}function p(){a&&(clearTimeout(a),a=void 0)}}function J(){return"visible"===(null==f?void 0:f.visibilityState)||"prerender"===(null==f?void 0:f.visibilityState)}var ee="undefined";function ne(e){return Math.round(100*e)/100}function te(e){var n;return"string"!=typeof e?e:new URL(e,null!==(n=null==f?void 0:f.baseURI)&&void 0!==n?n:null==E?void 0:E.href)}function re(e){try{return te(e).origin===("undefined"!=typeof location?location.origin:void 0)}catch(e){return!1}}var oe=/['"<>{};\x00-\x1F\x7F]/;var ie=Symbol.for("INSTRUMENTED_BY_DASH0");function ae(e,n,t){var r=e[n];r?!0!==r[ie]?(!function(e){e[ie]=!0}(r),e[n]=t(r)):u("".concat(String(n)," has already been instrumented, skipping")):u("".concat(String(n)," is not defined, unable to instrument"))}for(var le=new Uint32Array(256),ue=0;ue<256;ue++){for(var se=ue,ce=0;ce<8;ce++)se=1&se?3988292384^se>>>1:se>>>1;le[ue]=se>>>0}function ve(e){for(var n=new Uint8Array(e.length/2),t=0;t<e.length;t+=2)n[t/2]=parseInt(e.substring(t,t+2),16);for(var r=4294967295,o=0;o<n.length;o++){var i=n[o];r=r>>>8^le[255&(r^i)]}return(4294967295^r)>>>0}var de={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.22.1",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:t,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},enableTransportCompression:!1,isSessionSampled:!0},fe="service.name",pe="service.namespace",Ee="service.version",he="deployment.environment.name",_e="deployment.name",me="deployment.id",ye="event.name",Te="dash0.web.event.id",ge="page.load.id",Re="user_agent.original",Ie="user.id",be="user.name",Ce="user.full_name",Le="user.email",Ne="user.hash",Se="user.roles",Ae="exception.message",Oe="exception.type",Ve="exception.stacktrace",Pe="url.full",we={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error"},Ue={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},De=0,Me=1,Ge="pushState",Be="replaceState",xe=1;function ke(){var e,n;return"".concat((e={ephemeralSession:!I},n=0,e.ephemeralSession&&(n|=xe),n.toString(16).padStart(2,"0"))).concat(g(7))}var Fe="d0_session",He="#",je=864e5,We=null;function Ye(e,n){if(!I)return u("Storage API is not available and session tracking is therefore not supported."),void(We=ke());e||(e=108e5),n||(n=216e5),e=Math.min(e,je),n=Math.min(n,je);try{var t=function(e){return I&&m?m.getItem(e):null}(Fe),r=function(e){if(!e)return null;var n=e.split(He);if(n.length<3)return null;var t=n[0],r=parseInt(n[1],10),o=parseInt(n[2],10);if(!t||isNaN(r)||isNaN(o))return null;return{id:t,startTime:r,lastActivityTime:o}}(t);r&&!function(e,n,t){var r=x()-n;if(e.lastActivityTime<r)return!1;var o=x()-t;return e.startTime>=o}(r,e,n)&&(r=null),r?r.lastActivityTime=x():r={id:ke(),startTime:x(),lastActivityTime:x()},function(e,n){I&&m&&m.setItem(e,n)}(Fe,function(e){return e.id+He+e.startTime+He+e.lastActivityTime}(r)),We=r.id}catch(e){a("Failed to record session information",e)}}var Xe=-1,ze=function(e){addEventListener("pageshow",(function(n){n.persisted&&(Xe=n.timeStamp,e(n))}),!0)},qe=function(e,n,t,r){var o,i;return function(a){n.value>=0&&(a||r)&&(((i=n.value-(null!=o?o:0))||void 0===o)&&(o=n.value,n.delta=i,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n)))}},Qe=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Ke=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Ze=function(){var e,n=Ke();return null!==(e=null==n?void 0:n.activationStart)&&void 0!==e?e:0},$e=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,t=Ke(),r="navigate";return Xe>=0?r="back-forward-cache":t&&(document.prerendering||Ze()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},Je=new WeakMap;function en(e,n){return Je.get(e)||Je.set(e,new n),Je.get(e)}var nn,tn=function(){return S((function e(){N(this,e),O(this,"t",void 0),O(this,"i",0),O(this,"o",[])}),[{key:"h",value:function(e){var n;if(!e.hadRecentInput){var t=this.o[0],r=this.o.at(-1);this.i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),null===(n=this.t)||void 0===n||n.call(this,e)}}}])}(),rn=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(P({type:e,buffered:!0},t)),r}}catch(e){}},on=function(e){var n=!1;return function(){n||(e(),n=!0)}},an=-1,ln=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},un=function(e){"hidden"===document.visibilityState&&an>-1&&(an="visibilitychange"===e.type?e.timeStamp:0,cn())},sn=function(){addEventListener("visibilitychange",un,!0),addEventListener("prerenderingchange",un,!0)},cn=function(){removeEventListener("visibilitychange",un,!0),removeEventListener("prerenderingchange",un,!0)},vn=function(){if(an<0){var e,n=Ze(),t=document.prerendering||null===(e=globalThis.performance.getEntriesByType("visibility-state").filter((function(e){return"hidden"===e.name&&e.startTime>n}))[0])||void 0===e?void 0:e.startTime;an=null!=t?t:ln(),sn(),ze((function(){setTimeout((function(){an=ln(),sn()}))}))}return{get firstHiddenTime(){return an}}},dn=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},fn=[1800,3e3],pn=[.1,.25],En=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dn((function(){var t,r=vn(),o=$e("FCP"),i=rn("paint",(function(e){var n,a=A(e);try{for(a.s();!(n=a.n()).done;){var l=n.value;"first-contentful-paint"===l.name&&(i.disconnect(),l.startTime<r.firstHiddenTime&&(o.value=Math.max(l.startTime-Ze(),0),o.entries.push(l),t(!0)))}}catch(e){a.e(e)}finally{a.f()}}));i&&(t=qe(e,o,fn,n.reportAllChanges),ze((function(r){o=$e("FCP"),t=qe(e,o,fn,n.reportAllChanges),Qe((function(){o.value=performance.now()-r.timeStamp,t(!0)}))})))}))}(on((function(){var t,r=$e("CLS",0),o=en(n,tn),i=function(e){var n,i=A(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.h(a)}}catch(e){i.e(e)}finally{i.f()}o.i>r.value&&(r.value=o.i,r.entries=o.o,t())},a=rn("layout-shift",i);a&&(t=qe(e,r,pn,n.reportAllChanges),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(i(a.takeRecords()),t(!0))})),ze((function(){o.i=0,r=$e("CLS",0),t=qe(e,r,pn,n.reportAllChanges),Qe((function(){return t()}))})),setTimeout(t))})))},hn=0,_n=1/0,mn=0,yn=function(e){var n,t=A(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;r.interactionId&&(_n=Math.min(_n,r.interactionId),mn=Math.max(mn,r.interactionId),hn=mn?(mn-_n)/7+1:0)}}catch(e){t.e(e)}finally{t.f()}},Tn=function(){var e;return nn?hn:null!==(e=performance.interactionCount)&&void 0!==e?e:0},gn=0,Rn=function(){return S((function e(){N(this,e),O(this,"u",[]),O(this,"l",new Map),O(this,"m",void 0),O(this,"v",void 0)}),[{key:"p",value:function(){gn=Tn(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((Tn()-gn)/50));return this.u[e]}},{key:"h",value:function(e){var n;if(null!==(n=this.m)&&void 0!==n&&n.call(this,e),e.interactionId||"first-input"===e.entryType){var t=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>t.T){var o;if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort((function(e,n){return n.T-e.T})),this.u.length>10){var i,a=A(this.u.splice(10));try{for(a.s();!(i=a.n()).done;){var l=i.value;this.l.delete(l.id)}}catch(e){a.e(e)}finally{a.f()}}null===(o=this.v)||void 0===o||o.call(this,r)}}}}])}(),In=function(e){var n=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=on(e),document.addEventListener("visibilitychange",e,{once:!0}),n((function(){e(),document.removeEventListener("visibilitychange",e)})))},bn=[200,500],Cn=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&dn((function(){var t;"interactionCount"in performance||nn||(nn=rn("event",yn,{type:"event",buffered:!0,durationThreshold:0}));var r,o=$e("INP"),i=en(n,Rn),a=function(e){In((function(){var n,t=A(e);try{for(t.s();!(n=t.n()).done;){var a=n.value;i.h(a)}}catch(e){t.e(e)}finally{t.f()}var l=i.P();l&&l.T!==o.value&&(o.value=l.T,o.entries=l.entries,r())}))},l=rn("event",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=qe(e,o,bn,n.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(a(l.takeRecords()),r(!0))})),ze((function(){i.p(),o=$e("INP"),r=qe(e,o,bn,n.reportAllChanges)})))}))},Ln=function(){return S((function e(){N(this,e),O(this,"m",void 0)}),[{key:"h",value:function(e){var n;null===(n=this.m)||void 0===n||n.call(this,e)}}])}(),Nn=[2500,4e3],Sn=!1;function An(e){var n,t,r=[];return t=o,Sn&&t(),f&&d&&(R(f,"visibilitychange",(function(){"visible"!==f.visibilityState&&t()})),R(d,"pagehide",(function(){Sn=!0,t()})),R(d,"beforeunload",(function(){Sn=!0,t()}))),{send:function(t){"visible"===(null==f?void 0:f.visibilityState)?(r.push(t),r.length>=15?o():null==n&&(n=Y(o,1e3))):e([t])}};function o(){null!=n&&(clearTimeout(n),n=null),r.length>0&&(e(r.slice()),r.length=0)}}var On=0,Vn=0;function Pn(e,n){return wn.apply(this,arguments)}function wn(){return wn=L(w().mark((function e(t,r){var o,i,l,s;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u("Transmitting telemetry to endpoints",r),o=JSON.stringify(r),i=o,l=new Blob([o]).size,s=!1,"undefined"==typeof CompressionStream||!de.enableTransportCompression){e.next=11;break}return e.next=8,Un(o);case 8:i=e.sent,l=i.byteLength,s=!0;case 11:return e.next=13,Promise.all(de.endpoints.map(function(){var e=L(w().mark((function e(r){var o,u,c;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(o=new URL(r.url)).pathname=o.pathname+(o.pathname.endsWith("/")?t.substring(1):t),u={"Content-Type":"application/json",Authorization:"Bearer ".concat(r.authToken)},r.dataset&&(u["Dash0-Dataset"]=r.dataset),s&&(u["Content-Encoding"]="gzip"),_){e.next=9;break}return a("Unable to send telemetry, fetch is not defined"),e.abrupt("return");case 9:return On+=l,Vn++,e.next=13,_(o,{method:"POST",headers:u,body:i,keepalive:On<=6e4&&Vn<=15});case 13:(c=e.sent).text().catch(n),c.ok||a("Failed to send telemetry to ".concat(o,": ").concat(c.status," ").concat(c.statusText)),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),a("Error sending telemetry to ".concat(r.url).concat(t,":"),e.t0);case 21:return e.prev=21,On-=l,Vn--,e.finish(21);case 25:case"end":return e.stop()}}),e,null,[[0,18,21,25]])})));return function(n){return e.apply(this,arguments)}}()));case 13:case"end":return e.stop()}}),e)}))),wn.apply(this,arguments)}function Un(e){return Dn.apply(this,arguments)}function Dn(){return(Dn=L(w().mark((function e(n){var t,r,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Blob([n]),r=t.stream(),o=r.pipeThrough(new CompressionStream("gzip")),e.abrupt("return",new Response(o).arrayBuffer());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Mn,Gn=An((function(e){Pn("/v1/logs",{resourceLogs:[{resource:de.resource,scopeLogs:[{scope:de.scope,logRecords:e}]}]}).catch((function(e){l("Failed to transmit logs",e)}))})),Bn=An((function(e){Pn("/v1/traces",{resourceSpans:[{resource:de.resource,scopeSpans:[{scope:de.scope,spans:e}]}]}).catch((function(e){l("Failed to transmit spans",e)}))}));function xn(){var e,n,t,r,o;return Mn||(n=(e={maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}).maxCallsPerTenMinutes,t=e.maxCallsPerTenSeconds,r=0,o=0,z((function(){r=0}),6e5),z((function(){o=0}),1e4),Mn=function(){return++r>n||++o>t}),Mn()}function kn(e){de.isSessionSampled&&(xn()?u("Transport rate limit. Will not send item.",e):Gn.send(e))}function Fn(e){e&&de.isSessionSampled&&(xn()?u("Transport rate limit. Will not send item.",e):Bn.send(e))}var Hn=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function jn(e){if(null!=e){var n={};return Array.isArray(e)?n.arrayValue={values:e.map((function(e){return jn(e)}))}:"string"==typeof e?n.stringValue=e:"number"==typeof e?n.doubleValue=e:"boolean"==typeof e?n.boolValue=e:!function(e){if(null==e||"object"!==G(e))return!1;var n=Object.keys(e);return 1===n.length&&Hn.includes(n[0])}(e)?"object"===G(e)&&(n.kvlistValue={values:Object.entries(e).map((function(e){var n=U(e,2);return Wn(n[0],n[1])}))}):n=e,n}}function Wn(e,n){return{key:e,value:jn(n)}}function Yn(e,n,t){n&&e.push(Wn(n,t))}function Xn(e,n){n&&Object.entries(n).forEach((function(n){var t=U(n,2),r=t[0],o=t[1];return Yn(e,r,o)}))}function zn(e,n){var t=e.findIndex((function(e){return e.key===n}));-1!==t&&e.splice(t,1)}var qn="traceparent",Qn=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function Kn(){var e,n,t=((null===(e=Array.from(null!==(n=null==f?void 0:f.getElementsByTagName("meta"))&&void 0!==n?n:[]).find((function(e){var n;return(null===(n=e.getAttribute("name"))||void 0===n?void 0:n.toLowerCase())===qn})))||void 0===e?void 0:e.content.trim())||"").match(Qn)||function(){var e=h.getEntriesByType("navigation")[0];if(!e)return"";if(!e.serverTiming)return"";return function(e){var n,t=A(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name===qn)return r.description.trim()}}catch(e){t.e(e)}finally{t.f()}return""}(e.serverTiming)}().match(Qn);if(t)return{traceId:t[1],spanId:t[2]}}function Zn(e,n,t){e.call(n,"traceparent","00-".concat(t.traceId,"-").concat(t.spanId,"-01"))}function $n(e,n,t){var r,o,i,a=(r=t.traceId,o=r.substring(0,8),i=r.substring(8,32),"1-".concat(o,"-").concat(i)),l="Root=".concat(a,";Parent=").concat(t.spanId,";Sampled=1");e.call(n,"X-Amzn-Trace-Id",l)}var Jn="d042",et=1;function nt(e){var n=0;return e.withoutSession&&(n|=et),n.toString(16).padStart(2,"0")}function tt(e){var n=function(e){return e?"".concat(Jn).concat(nt({withoutSession:!1})).concat(e).concat(g(5)):"".concat(Jn).concat(nt({withoutSession:!0})).concat(g(13))}(We),t=function(e){var n=ve(e).toString(16).padStart(8,"0");return"".concat(n).concat(g(4))}(n),r=[];return Yn(r,Te,t),{traceId:n,spanId:t,name:e,kind:3,startTimeUnixNano:k(),attributes:r,events:[],links:[],status:{code:0}}}function rt(e,n,t){var r=e;if(!r.endTimeUnixNano)return n&&(r.status=n),r.endTimeUnixNano=null!=t?String(Math.round(parseInt(r.startTimeUnixNano)+t)):k(),r;u("Attempting to end already ended span. Dropping...",r)}function ot(e,n,t,r){var o=void 0,i=void 0;"string"==typeof t?o=t:Array.isArray(t)&&(i=t),e.events.push({name:n,timeUnixNano:null!=o?o:k(),attributes:null!=i?i:[]})}function it(e,n,r){var o=function(e){return e?Array.isArray(e)?function(n){return[].concat(D(e),[n]).join(".")}:function(n){return"".concat(e,".").concat(n)}:function(e){return e}}(r);try{var i=te(n);i.username&&(i.username="REDACTED"),i.password&&(i.password="REDACTED");var a=de.urlAttributeScrubber(O(O(O(O(O(O({},Pe,i.href),"url.path",i.pathname),"url.domain",i.hostname),"url.scheme",i.protocol.replace(":","")),"url.fragment",i.hash?i.hash.replace("#",""):void 0),"url.query",i.search?i.search.replace("?",""):void 0));Object.entries(a).forEach((function(n){var t=U(n,2),r=t[0],i=t[1];void 0!==i&&Yn(e,o(r),i)}))}catch(r){de.urlAttributeScrubber===t&&Yn(e,o(Pe),String(n))}}var at=null!=y&&"function"==typeof y.getItem&&"function"==typeof y.setItem;var lt="d0_tab",ut=null;function st(){if(at)try{var e=function(e){return at&&y?y.getItem(e):null}(lt);if(e)return void(ut=e);ut=g(8),function(e,n){at&&y&&y.setItem(e,n)}(lt,ut)}catch(e){a("Failed to record tab ID information",e)}else u("Storage API is not available and tab tracking is therefore not supported.")}function ct(e,n){var t,r,o,i,a;void 0===e.find((function(e){return e.key===Te}))&&Yn(e,Te,g(8));for(var l=0;l<de.signalAttributes.length;l++)e.push(de.signalAttributes[l]);it(e,null!==(t=null!==(r=null==n?void 0:n.url)&&void 0!==r?r:null==d?void 0:d.location.href)&&void 0!==t?t:ee,"page"),We&&Yn(e,"session.id",We),ut&&Yn(e,"browser.tab.id",ut),Yn(e,"browser.window.width",null!==(o=null==d?void 0:d.innerWidth)&&void 0!==o?o:ee),Yn(e,"browser.window.height",null!==(i=null==d?void 0:d.innerHeight)&&void 0!==i?i:ee);var u=null==p||null===(a=p.connection)||void 0===a?void 0:a.effectiveType;u&&Yn(e,"network.connection.subtype",u)}function vt(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dn((function(){var t,r=vn(),o=$e("LCP"),i=en(n,Ln),a=function(e){n.reportAllChanges||(e=e.slice(-1));var a,l=A(e);try{for(l.s();!(a=l.n()).done;){var u=a.value;i.h(u),u.startTime<r.firstHiddenTime&&(o.value=Math.max(u.startTime-Ze(),0),o.entries=[u],t())}}catch(e){l.e(e)}finally{l.f()}},l=rn("largest-contentful-paint",a);if(l){t=qe(e,o,Nn,n.reportAllChanges);for(var u=on((function(){a(l.takeRecords()),l.disconnect(),t(!0)})),s=0,c=["keydown","click","visibilitychange"];s<c.length;s++)addEventListener(c[s],(function(){return In(u)}),{capture:!0,once:!0});ze((function(r){o=$e("LCP"),t=qe(e,o,Nn,n.reportAllChanges),Qe((function(){o.value=performance.now()-r.timeStamp,t(!0)}))}))}}))}(dt,{reportAllChanges:!0}),Cn(dt,{reportAllChanges:!0}),En(dt,{reportAllChanges:!0})}function dt(e){var n=[];Yn(n,ye,we.WEB_VITAL);var t=[];Yn(t,"name",e.name),Yn(t,"value",ne(e.value)),Yn(t,"delta",ne(e.delta));var r={timeUnixNano:k(),attributes:n,severityNumber:Ue.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};ct(r.attributes),kn(r)}function ft(e,n){for(var t=0,r=e.length;t<r;t++)if(e[t].test(n))return!0;return!1}var pt="data:";function Et(e){return!e||(!(e=String(e))||(null==e.substring||e.substring(0,5).toLowerCase()===pt||(!!function(e){for(var n=e.toLowerCase(),t=0,r=de.endpoints.length;t<r;t++){var o=de.endpoints[t];if(n.startsWith(o.url))return!0}return!1}(e)||ft(de.ignoreUrls,e))))}var ht,_t=0,mt=0,yt={},Tt=!1;function gt(){Tt=!0}function Rt(e,n){e&&It("string"==typeof e?{message:e,opts:n}:{message:e.message,type:e.name,stack:e.stack,opts:n})}function It(e){var n=e.message,t=e.type,r=e.stack,o=e.opts;if(n&&!(_t>100)&&!function(e){return!e||ft(de.ignoreErrorMessages,e)}(n)){mt>=20&&(yt={},mt=0);var i=(n=String(n).substring(0,300))+(r=function(e){return String(e||"").split("\n").slice(0,30).join("\n")}(r))+(null==d?void 0:d.location.href),a=yt[i];if(a)a.seenCount++;else{var l=[];ct(l),Yn(l,ye,we.ERROR),Yn(l,Ae,n),t&&Yn(l,Oe,t),r&&Yn(l,Ve,r),null!=o&&o.componentStack&&Yn(l,"exception.component_stack",null==o?void 0:o.componentStack.substring(0,2048)),Xn(l,null==o?void 0:o.attributes),a={seenCount:1,transmittedCount:0,log:{timeUnixNano:k(),attributes:l,severityNumber:Ue.ERROR,severityText:"ERROR",body:{stringValue:n}}},yt[i]=a,mt++}!function(){if(ht)return;ht=setTimeout(bt,1e3)}()}}function bt(){for(var e in ht&&(clearTimeout(ht),ht=null),yt)if(v(yt,e)){var n=yt[e];n.seenCount>n.transmittedCount&&(kn(n.log),_t++)}yt={},mt=0}var Ct="Unhandled promise rejection: ",Lt="<unavailable because Promise wasn't rejected with an Error object>";function Nt(e){null==e.reason?Rt({message:Ct+"<no reason defined>",stack:Lt}):"string"==typeof e.reason.message?Rt({message:Ct+e.reason.message,stack:"string"==typeof e.reason.stack?e.reason.stack:Lt}):"object"!==G(e.reason)&&Rt({message:Ct+e.reason,stack:Lt})}var St="__dash0OriginalFunctions";function At(e,n){for(var t=e[St],r=0;r<t.length;r++){if(Ot(t[r].valuesForEqualityCheck,n))return r}return-1}function Ot(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function Vt(e,n,t,r,o){return function(e,n,t){if(!e)return n;var r=e[St]=e[St]||[],o=At(e,t);return-1!==o?r[o].wrappedFunction:(r.push({wrappedFunction:n,valuesForEqualityCheck:t}),n)}(e,n,Pt(t,r,o))}function Pt(e,n,t){return[e,n,wt(t)]}function wt(e){return null!=e&&("object"===G(e)?Boolean(e.capture):Boolean(e))}function Ut(e,n,t,r,o){return function(e,n,t){var r=null==e?void 0:e[St];if(null==r)return t;var o=At(e,n);if(-1===o)return t;var i=r[o];return r.splice(o,1),i.wrappedFunction}(e,Pt(n,t,r),o)}function Dt(){de.wrapEventHandlers&&function(e){if(!e||"function"!=typeof e.prototype.addEventListener||"function"!=typeof e.prototype.removeEventListener)return;var n=e.prototype.addEventListener,t=e.prototype.removeEventListener;e.prototype.addEventListener=function(e,t,r){if("function"!=typeof t)return n.apply(this,arguments);for(var o=new Array(arguments.length),i=0;i<arguments.length;i++)o[i]=arguments[i];return o[1]=function(){try{return t.apply(this,arguments)}catch(e){throw Rt(e),gt(),e}},o[1]=Vt(this,o[1],e,t,r),n.apply(this,o)},e.prototype.removeEventListener=function(e,n,r){if("function"!=typeof n)return t.apply(this,arguments);for(var o=new Array(arguments.length),i=0;i<arguments.length;i++)o[i]=arguments[i];return o[1]=Ut(this,e,n,r,n),t.apply(this,o)}}(null==d?void 0:d.EventTarget)}function Mt(e){var n=null==d?void 0:d[e];"function"==typeof n&&(d[e]=function(e){for(var t=new Array(arguments.length),r=0;r<arguments.length;r++)t[r]=arguments[r];return t[0]=function(e){if("function"!=typeof e)return e;return function(){try{return e.apply(this,arguments)}catch(e){throw reportError(e),gt(),e}}}(e),n.apply(this,t)})}function Gt(){!function(){if(d){var e=d.onerror;d.onerror=function(n,t,r,o,i){if(Tt)return Tt=!1,"function"==typeof e?e.apply(this,arguments):void 0;var a=i&&i.stack;return a||(a="at "+t+" "+r,null!=o&&(a+=":"+o)),It({message:String(n),stack:a}),"function"==typeof e?e.apply(this,arguments):void 0}}}(),"function"==typeof(null==d?void 0:d.addEventListener)&&d.addEventListener("unhandledrejection",Nt),Dt(),function(){if(de.wrapTimers){if(W)return void a("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");Mt("setTimeout"),Mt("setInterval")}}()}var Bt=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"];function xt(e){return Bt.includes(e)}function kt(e,n){var t=0!==n.startTime;Ft(e,K.FETCH_START,n,t),Ft(e,K.DOMAIN_LOOKUP_START,n,t),Ft(e,K.DOMAIN_LOOKUP_END,n,t),Ft(e,K.CONNECT_START,n,t),Ft(e,K.SECURE_CONNECTION_START,n,t),Ft(e,K.CONNECT_END,n,t),Ft(e,K.REQUEST_START,n,t),Ft(e,K.RESPONSE_START,n,t),Ft(e,K.RESPONSE_END,n,t)}function Ft(e,n,t){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];!(n in t)||"number"!=typeof t[n]||o&&0===t[n]||ot(e,n,(r=t[n],String(Math.round(1e6*(r+H())))))}function Ht(e,n){var t=n.encodedBodySize;null!=t&&Yn(e.attributes,"http.response.body.size",t)}function jt(e){return function(){var n=L(w().mark((function n(t,r){var o,i,a,l,s,c,v,d,f,p,E,h,_,m,y,T;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=r?Object.assign({},r):r,l=null,null!==(o=a)&&void 0!==o&&o.body&&(l=a.body,a.body=void 0),s=new Request(t,a),l&&a&&(a.body=l),!Et(c=s.url)){n.next=9;break}return u("Not creating span for fetch call because the url is ignored, URL: ".concat(c)),n.abrupt("return",e(t instanceof Request?s:t,r));case 9:return v=null!==(i=s.method)&&void 0!==i?i:"GET",d=xt(v),f=xt(v.toUpperCase()),p=f?v.toUpperCase():"_OTHER",ct((E=tt("HTTP ".concat(p))).attributes),it(E.attributes,c),Wt(t,r),Yn(E.attributes,"http.request.method",p),d||Yn(E.attributes,"http.request.method_original",v),h=Kt(c),h.length>0&&(null!==(_=a)&&void 0!==_&&_.headers?(a.headers=new Headers(a.headers),Zt(a.headers.append,a.headers,E,h)):t instanceof Request?Zt(s.headers.append,s.headers,E,h):(a||(a={}),a.headers=new Headers,Zt(a.headers.append,a.headers,E,h))),Yt(s.headers,E,(function(e){return n=e,"".concat("http.request.header",".").concat(n.toLowerCase());var n})),(m=$({resourceMatcher:function(e){var n=e.initiatorType,t=e.name;return("fetch"===n||"xmlhttprequest"===n)&&t===te(c).href},maxWaitForResourceMillis:de.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:de.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,t=e.resource;t&&(kt(E,t),Ht(E,t)),Fn(rt(E,void 0,1e6*n))}})).start(),n.prev=25,n.next=28,e(t instanceof Request?s:t,a);case 28:return y=n.sent,Xt(E,y),n.abrupt("return",zt(y,de.maxToleranceForResourceTimingsMillis,(function(){return m.end()}),(function(e){var n;m.cancel(),null!==(n=s.signal)&&void 0!==n&&n.aborted?Qt(E):qt(E,e)})));case 33:throw n.prev=33,n.t0=n.catch(25),m.cancel(),null!==(T=s.signal)&&void 0!==T&&T.aborted?Qt(E):qt(E,n.t0),n.t0;case 38:case"end":return n.stop()}}),n,null,[[25,33]])})));return function(e,t){return n.apply(this,arguments)}}()}function Wt(e,n,t){try{return void 0}catch(t){u("failed to analyze request for GraphQL insights",t,e,n)}}function Yt(e,n,t){try{if(!de.headersToCapture.length)return;e.forEach((function(e,r){de.headersToCapture.some((function(e){return e.test(r)}))&&Yn(n.attributes,t(r),e)}))}catch(e){u("unable to capture http headers due to CORS policy")}}function Xt(e,n){var t=n.status;!function(e,n,t){e.status={code:n,message:t}}(e,t>=200&&t<400?0:2),0===t&&Yn(e.attributes,"error.type",n.type),Yn(e.attributes,"http.response.status_code",String(t)),Yt(n.headers,e,(function(e){return n=e,"".concat("http.response.header",".").concat(n.toLowerCase());var n}))}function zt(e,n,t,r){var o,i,a=h.now(),l=e.body;if(!(l&&(o=e,i=o.status,i>=200&&204!=i&&205!=i&&304!=i)))return t(),e;var u=!1,s=function(e){u||(t(e),u=!0)},c=function(e){u||(r(e),u=!0)},v=Y((function(){return s(a)}),n),d=l.getReader(),f=new ReadableStream({pull:function(e){return L(w().mark((function t(){var r,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,X(v),t.next=4,d.read();case 4:r=t.sent,o=r.value,r.done?(d.releaseLock(),e.close(),s()):(a=h.now(),v=Y((function(){return s(a)}),n),e.enqueue(o)),t.next=15;break;case 10:t.prev=10,t.t0=t.catch(0),c(t.t0),e.error(t.t0);try{d.releaseLock()}catch(e){}case 15:case"end":return t.stop()}}),t,null,[[0,10]])})))()},cancel:function(e){return X(v),s(),d.cancel(e)}});return new Response(f,{status:e.status,statusText:e.statusText,headers:e.headers})}function qt(e,n){!function(e,n){var t=[];"string"==typeof n?Yn(t,Ae,n):n&&(n.code?Yn(t,Oe,n.code.toString()):n.name&&Yn(t,Oe,n.name),n.message&&Yn(t,Ae,n.message),n.stack&&Yn(t,Ve,n.stack),ot(e,"exception",t))}(e,n),Fn(rt(e,function(e){return{code:2,message:e&&"object"===G(e)&&"message"in e?e.message:String(e)}}(n),void 0))}function Qt(e){Yn(e.attributes,"dash0.web.request.cancelled",!0),Fn(rt(e,void 0,void 0))}function Kt(e){var n=[];if(re(e)){if(n.push("traceparent"),de.propagators){var t,r=A(de.propagators);try{for(r.s();!(t=r.n()).done;){var o=t.value;"traceparent"===o.type||n.includes(o.type)||n.push(o.type)}}catch(e){r.e(e)}finally{r.f()}}return n}if(de.propagators){var i,a=A(de.propagators);try{for(a.s();!(i=a.n()).done;){var l=i.value;ft(l.match,e)&&(n.includes(l.type)||n.push(l.type))}}catch(e){a.e(e)}finally{a.f()}return n}return[]}function Zt(e,n,t,r){var o,i=A(r);try{for(i.s();!(o=i.n()).done;){"xray"===o.value?$n(e,n,t):Zn(e,n,t)}}catch(e){i.e(e)}finally{i.f()}}function $t(e,n,t,r){var o,i,a=function(e){var n,t,r;return e&&null!==(n=null===(t=(r=de.pageViewInstrumentation).generateMetadata)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:{}}(n),l=[];Yn(l,ye,we.PAGE_VIEW),a.attributes&&Object.entries(a.attributes).forEach((function(e){var n=U(e,2),t=n[0],r=n[1];return Yn(l,t,r)})),ct(l,{url:n});var u=[];Yn(u,"title",null!==(o=null!==(i=a.title)&&void 0!==i?i:null==f?void 0:f.title)&&void 0!==o?o:ee),null!=f&&f.referrer&&Yn(u,"referrer",f.referrer),Yn(u,"type",t?Me:De),Yn(u,"change_state",r?Be:Ge);var s={timeUnixNano:e,attributes:l,severityNumber:Ue.INFO,severityText:"INFO",body:{kvlistValue:{values:u}}},c=Kn();c&&(s.traceId=c.traceId,s.spanId=c.spanId),kn(s)}function Jt(){var e=null==d?void 0:d.performance.getEntriesByType("navigation")[0];if(e){var n=[];Yn(n,ye,we.NAVIGATION_TIMING);var t=[];Yn(t,"name",e.name),er(t,e,"responseStatus"),er(t,e,"fetchStart"),er(t,e,"requestStart"),er(t,e,"responseStart"),er(t,e,"domInteractive"),er(t,e,"domContentLoadedEventEnd"),er(t,e,"domComplete"),er(t,e,"loadEventEnd"),er(t,e,"transferSize"),er(t,e,"encodedBodySize"),er(t,e,"decodedBodySize");var r={timeUnixNano:nr(),attributes:n,severityNumber:Ue.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};ct(r.attributes);var o=Kn();o&&(r.traceId=o.traceId,r.spanId=o.spanId),kn(r)}else u("Navigation timings not available. Cannot emit navigation timing log")}function er(e,n,t){var r=n[t];"number"!=typeof r||isNaN(r)||Yn(e,t,Number.isInteger(r)?r:ne(r))}function nr(){return F(Math.round(H()))}var tr={},rr=!1,or=!1;function ir(){lr(null==d?void 0:d.location.href)}function ar(e){lr(e.newURL)}function lr(e,n){var t;if(e)try{var r=new URL(e,null==d?void 0:d.location.href);((t=r).pathname!==tr.path||or&&t.search!==tr.search||rr&&t.hash!==tr.hash)&&(ur(r),$t(k(),r,!0,Boolean(n)))}catch(e){u("Failed to handle url change",e)}}function ur(e){tr.path=e.pathname,tr.search=e.search,tr.hash=e.hash}function sr(){!function(){try{$t(nr(),null!=d&&d.location.href?new URL(null==d?void 0:d.location.href):void 0)}catch(e){l("Failed to transmit initial page view event",e)}if("complete"===(null==f?void 0:f.readyState))return Jt();d&&R(d,"load",(function(){setTimeout(Jt,0)}))}(),function(){var e,n,t,r;if(d&&d.history){if(de.pageViewInstrumentation.trackVirtualPageViews){or=null!==(e=null===(n=de.pageViewInstrumentation.includeParts)||void 0===n?void 0:n.includes("SEARCH"))&&void 0!==e&&e,rr=null!==(t=null===(r=de.pageViewInstrumentation.includeParts)||void 0===r?void 0:r.includes("HASH"))&&void 0!==t&&t,ae(d.history,"replaceState",(function(e){return function(n,t,r){return lr(r?String(r):void 0,!0),e.apply(this,[n,t,r])}})),ae(d.history,"pushState",(function(e){return function(n,t,r){return lr(r?String(r):void 0),e.apply(this,[n,t,r])}})),d.addEventListener("hashchange",ar),d.addEventListener("popstate",ir);try{ur(new URL(d.location.href))}catch(e){}}}else u("Browser does not support history API, skipping instrumentation")}()}function cr(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];for(var r=0,o=n;r<o.length;r++){var i=o[r];if(i)return i}}var vr={providerName:"vcs.provider.name",ownerName:"vcs.owner.name",repositoryName:"vcs.repository.name",repositoryUrlFull:"vcs.repository.url.full",refHeadName:"vcs.ref.head.name",refHeadRevision:"vcs.ref.head.revision",changeId:"vcs.change.id"};function dr(e){for(var n=function(e){var n,t,r,o,i,a,l,u,s,c,v,d,f,p,E,h=null!==(n=e.vcs)&&void 0!==n?n:{};if(e.disableVcsDetection)return h;var _=function(){var e,n,t,r,o,i;try{var a,l,u,s,c,v,d,f,p,E,h,_,m,y,T,g,R,I,b,C,L,N,S,A,O,V,P,w,U,D,M,G,B,x,k,F,H,j,W,Y,X,z,q,Q,K,Z,$,J,ee,ne,te,re,oe,ie,ae,le,ue,se,ce,ve;e=cr(null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NEXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.NUXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.NUXT_ENV_VERCEL_GIT_PROVIDER,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REACT_APP_VERCEL_GIT_PROVIDER,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.GATSBY_VERCEL_GIT_PROVIDER,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VITE_VERCEL_GIT_PROVIDER,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.PUBLIC_VERCEL_GIT_PROVIDER,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.VUE_APP_VERCEL_GIT_PROVIDER,null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.REDWOOD_ENV_VERCEL_GIT_PROVIDER,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.SANITY_STUDIO_VERCEL_GIT_PROVIDER),n=cr(null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.NUXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NUXT_ENV_VERCEL_GIT_REPO_OWNER,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.REACT_APP_VERCEL_GIT_REPO_OWNER,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.GATSBY_VERCEL_GIT_REPO_OWNER,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.VITE_VERCEL_GIT_REPO_OWNER,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.PUBLIC_VERCEL_GIT_REPO_OWNER,null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.VUE_APP_VERCEL_GIT_REPO_OWNER,null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.REDWOOD_ENV_VERCEL_GIT_REPO_OWNER,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.SANITY_STUDIO_VERCEL_GIT_REPO_OWNER),t=cr(null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.NUXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NUXT_ENV_VERCEL_GIT_REPO_SLUG,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.REACT_APP_VERCEL_GIT_REPO_SLUG,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.GATSBY_VERCEL_GIT_REPO_SLUG,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VITE_VERCEL_GIT_REPO_SLUG,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.PUBLIC_VERCEL_GIT_REPO_SLUG,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.VUE_APP_VERCEL_GIT_REPO_SLUG,null===(U=process)||void 0===U||null===(U=U.env)||void 0===U?void 0:U.REDWOOD_ENV_VERCEL_GIT_REPO_SLUG,null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.SANITY_STUDIO_VERCEL_GIT_REPO_SLUG),r=cr(null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.NUXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.NUXT_ENV_VERCEL_GIT_COMMIT_REF,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.REACT_APP_VERCEL_GIT_COMMIT_REF,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.GATSBY_VERCEL_GIT_COMMIT_REF,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.VITE_VERCEL_GIT_COMMIT_REF,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.PUBLIC_VERCEL_GIT_COMMIT_REF,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.VUE_APP_VERCEL_GIT_COMMIT_REF,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.REDWOOD_ENV_VERCEL_GIT_COMMIT_REF,null===(Y=process)||void 0===Y||null===(Y=Y.env)||void 0===Y?void 0:Y.SANITY_STUDIO_VERCEL_GIT_COMMIT_REF),o=cr(null===(X=process)||void 0===X||null===(X=X.env)||void 0===X?void 0:X.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(z=process)||void 0===z||null===(z=z.env)||void 0===z?void 0:z.NUXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(q=process)||void 0===q||null===(q=q.env)||void 0===q?void 0:q.NUXT_ENV_VERCEL_GIT_COMMIT_SHA,null===(Q=process)||void 0===Q||null===(Q=Q.env)||void 0===Q?void 0:Q.REACT_APP_VERCEL_GIT_COMMIT_SHA,null===(K=process)||void 0===K||null===(K=K.env)||void 0===K?void 0:K.GATSBY_VERCEL_GIT_COMMIT_SHA,null===(Z=process)||void 0===Z||null===(Z=Z.env)||void 0===Z?void 0:Z.VITE_VERCEL_GIT_COMMIT_SHA,null===($=process)||void 0===$||null===($=$.env)||void 0===$?void 0:$.PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(J=process)||void 0===J||null===(J=J.env)||void 0===J?void 0:J.VUE_APP_VERCEL_GIT_COMMIT_SHA,null===(ee=process)||void 0===ee||null===(ee=ee.env)||void 0===ee?void 0:ee.REDWOOD_ENV_VERCEL_GIT_COMMIT_SHA,null===(ne=process)||void 0===ne||null===(ne=ne.env)||void 0===ne?void 0:ne.SANITY_STUDIO_VERCEL_GIT_COMMIT_SHA),i=cr(null===(te=process)||void 0===te||null===(te=te.env)||void 0===te?void 0:te.NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(re=process)||void 0===re||null===(re=re.env)||void 0===re?void 0:re.NUXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(oe=process)||void 0===oe||null===(oe=oe.env)||void 0===oe?void 0:oe.NUXT_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(ie=process)||void 0===ie||null===(ie=ie.env)||void 0===ie?void 0:ie.REACT_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ae=process)||void 0===ae||null===(ae=ae.env)||void 0===ae?void 0:ae.GATSBY_VERCEL_GIT_PULL_REQUEST_ID,null===(le=process)||void 0===le||null===(le=le.env)||void 0===le?void 0:le.VITE_VERCEL_GIT_PULL_REQUEST_ID,null===(ue=process)||void 0===ue||null===(ue=ue.env)||void 0===ue?void 0:ue.PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(se=process)||void 0===se||null===(se=se.env)||void 0===se?void 0:se.VUE_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ce=process)||void 0===ce||null===(ce=ce.env)||void 0===ce?void 0:ce.REDWOOD_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(ve=process)||void 0===ve||null===(ve=ve.env)||void 0===ve?void 0:ve.SANITY_STUDIO_VERCEL_GIT_PULL_REQUEST_ID)}catch(e){}return{providerName:e,ownerName:n,repositoryName:t,repositoryUrlFull:fr(e,n,t),refHeadName:r,refHeadRevision:o,changeId:i}}(),m=function(){var e,n,t,r;try{var o,i,a,l,u,s,c,v,d,f,p,E,h,_,m,y,T,g,R,I,b,C,L,N,S,A,O,V,P,w,D,M,G,B,x,k,F,H,j,W;e=cr(null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.NEXT_PUBLIC_REPOSITORY_URL,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.NUXT_PUBLIC_REPOSITORY_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NUXT_ENV_REPOSITORY_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.REACT_APP_REPOSITORY_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.GATSBY_REPOSITORY_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VITE_REPOSITORY_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.PUBLIC_REPOSITORY_URL,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VUE_APP_REPOSITORY_URL,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.REDWOOD_ENV_REPOSITORY_URL,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.SANITY_STUDIO_REPOSITORY_URL),n=cr(null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.NEXT_PUBLIC_BRANCH,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.NUXT_PUBLIC_BRANCH,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.NUXT_ENV_BRANCH,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.REACT_APP_BRANCH,null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.GATSBY_BRANCH,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.VITE_BRANCH,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.PUBLIC_BRANCH,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.VUE_APP_BRANCH,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.REDWOOD_ENV_BRANCH,null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.SANITY_STUDIO_BRANCH),t=cr(null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.NEXT_PUBLIC_COMMIT_REF,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.NUXT_PUBLIC_COMMIT_REF,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NUXT_ENV_COMMIT_REF,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.REACT_APP_COMMIT_REF,null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.GATSBY_COMMIT_REF,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.VITE_COMMIT_REF,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.PUBLIC_COMMIT_REF,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VUE_APP_COMMIT_REF,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.REDWOOD_ENV_COMMIT_REF,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.SANITY_STUDIO_COMMIT_REF),r=cr(null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.NEXT_PUBLIC_REVIEW_ID,null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.NUXT_PUBLIC_REVIEW_ID,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.NUXT_ENV_REVIEW_ID,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.REACT_APP_REVIEW_ID,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.GATSBY_REVIEW_ID,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.VITE_REVIEW_ID,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.PUBLIC_REVIEW_ID,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.VUE_APP_REVIEW_ID,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.REDWOOD_ENV_REVIEW_ID,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.SANITY_STUDIO_REVIEW_ID)}catch(e){}var Y=function(e){if(!e)return;var n,t;try{var r=new URL(e);n=r.host,t=r.pathname}catch(e){return}var o=function(e){for(var n=0,t=Object.entries(pr);n<t.length;n++){var r=U(t[n],2),o=r[0];if(r[1].includes(e))return o}return}(n);if(!o)return;var i=t.replace(/^\/+/,"").replace(/\.git$/,"").split("/");if(i.length<2)return;var a=i[0],l=i[i.length-1];return a&&l?{providerName:o,ownerName:a,repositoryName:l}:void 0}(e);return{providerName:null==Y?void 0:Y.providerName,ownerName:null==Y?void 0:Y.ownerName,repositoryName:null==Y?void 0:Y.repositoryName,repositoryUrlFull:e,refHeadName:n,refHeadRevision:t,changeId:r}}();return{providerName:null!==(t=null!==(r=h.providerName)&&void 0!==r?r:_.providerName)&&void 0!==t?t:m.providerName,ownerName:null!==(o=null!==(i=h.ownerName)&&void 0!==i?i:_.ownerName)&&void 0!==o?o:m.ownerName,repositoryName:null!==(a=null!==(l=h.repositoryName)&&void 0!==l?l:_.repositoryName)&&void 0!==a?a:m.repositoryName,repositoryUrlFull:null!==(u=null!==(s=h.repositoryUrlFull)&&void 0!==s?s:_.repositoryUrlFull)&&void 0!==u?u:m.repositoryUrlFull,refHeadName:null!==(c=null!==(v=h.refHeadName)&&void 0!==v?v:_.refHeadName)&&void 0!==c?c:m.refHeadName,refHeadRevision:null!==(d=null!==(f=h.refHeadRevision)&&void 0!==f?f:_.refHeadRevision)&&void 0!==d?d:m.refHeadRevision,changeId:null!==(p=null!==(E=h.changeId)&&void 0!==E?E:_.changeId)&&void 0!==p?p:m.changeId}}(e),t=0,r=Object.keys(vr);t<r.length;t++){var o=r[t],i=n[o];i&&Yn(de.resource.attributes,vr[o],i)}}function fr(e,n,t){if(e&&n&&t){var r=function(e){var n;return null===(n=pr[e])||void 0===n?void 0:n[0]}(e);if(r)return"https://".concat(r,"/").concat(n,"/").concat(t)}}var pr={github:["github.com","gist.github.com"],gitlab:["gitlab.com"],bitbucket:["bitbucket.org"]};var Er=!1;function hr(e){if(Er)u("Dash0 SDK is being reinitialized, skipping ...");else if(null!=d)if("function"==typeof _&&h&&h.getEntriesByType){var n,t,r=e.serviceName.trim();if(r){if(!1!==e.rejectSuspiciousServiceName&&(t=r,oe.test(t))){var o;u("serviceName contains disallowed characters. Falling back to location.hostname."),e.serviceName=null!==(o=null==E?void 0:E.hostname)&&void 0!==o?o:"unknown"}}else u("Missing or empty serviceName value. Falling back to location.hostname."),e.serviceName=null!==(n=null==E?void 0:E.hostname)&&void 0!==n?n:"unknown";if(de.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],0!==de.endpoints.length){if(Object.assign(de,function(e,n){for(var t=P({},e),r=0,o=Object.keys(n);r<o.length;r++){var i=o[r],a=n[i],l=e[i];void 0!==a&&(null===a||"object"!==G(a)||Array.isArray(a)||"object"!==G(l)||null===l||Array.isArray(l)?t[i]=a:t[i]=P(P({},l),a))}return t}(de,function(e,n){var t,r={},o=A(n);try{for(o.s();!(t=o.n()).done;){var i=t.value;i in e&&(r[i]=e[i])}}catch(e){o.e(e)}finally{o.f()}return r}(e,["ignoreUrls","ignoreErrorMessages","wrapEventHandlers","wrapTimers","propagateTraceHeadersCorsURLs","maxWaitForResourceTimingsMillis","maxToleranceForResourceTimingsMillis","headersToCapture","urlAttributeScrubber","pageViewInstrumentation","enableTransportCompression"]))),function(e){e.propagators?(e.propagateTraceHeadersCorsURLs&&a("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),de.propagators=e.propagators):e.propagateTraceHeadersCorsURLs&&e.propagateTraceHeadersCorsURLs.length>0?(a("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),de.propagators=[{type:"traceparent",match:D(e.propagateTraceHeadersCorsURLs)}]):de.propagators=[{type:"traceparent",match:[]}]}(e),function(e){Yn(de.resource.attributes,fe,e.serviceName),e.serviceNamespace&&Yn(de.resource.attributes,pe,e.serviceNamespace);e.serviceVersion&&Yn(de.resource.attributes,Ee,e.serviceVersion);var n=function(e){if(e.environment)return e.environment;try{var n,t,r,o,i,a,l,u,s,c;return cr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_ENV)}catch(e){return}}(e);n&&Yn(de.resource.attributes,he,n);var t=function(e){if(e.deploymentName)return e.deploymentName;try{var n,t,r,o,i,a,l,u,s,c;return cr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_TARGET_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_TARGET_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_TARGET_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_TARGET_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_TARGET_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_TARGET_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_TARGET_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_TARGET_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_TARGET_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_TARGET_ENV)}catch(e){return}}(e);t&&Yn(de.resource.attributes,_e,t);var r=function(e){if(e.deploymentId)return e.deploymentId;try{var n,t,r,o,i,a,l,u,s,c;return cr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_BRANCH_URL,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_BRANCH_URL,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_BRANCH_URL,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_BRANCH_URL,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_BRANCH_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_BRANCH_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_BRANCH_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_BRANCH_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_BRANCH_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_BRANCH_URL)}catch(e){return}}(e);r&&Yn(de.resource.attributes,me,r);dr(e)}(e),function(e){var n;Yn(de.signalAttributes,ge,g(16)),Yn(de.signalAttributes,Re,null!==(n=null==p?void 0:p.userAgent)&&void 0!==n?n:ee),e.additionalSignalAttributes&&Object.entries(e.additionalSignalAttributes).forEach((function(e){var n=U(e,2),t=n[0],r=n[1];Yn(de.signalAttributes,t,r)}))}(e),st(),Ye(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),null!=e.sessionSamplingRate){var i=Math.max(0,Math.min(100,e.sessionSamplingRate));de.isSessionSampled=null!=We?function(e,n){return!(n<=0)&&(n>=100||ve(e)%100<n)}(We,i):i>0}if(!de.isSessionSampled)return u("Session is not sampled. No telemetry will be transmitted for this session."),void(Er=!0);_r("@dash0/navigation",e)&&sr(),_r("@dash0/web-vitals",e)&&vt(),_r("@dash0/error",e)&&Gt(),_r("@dash0/fetch",e)&&(d&&d.fetch&&d.Request?ae(d,"fetch",jt):u("Browser does not support the Fetch API, skipping instrumentation")),Er=!0}else a("No telemetry endpoint configured. Aborting Dash0 Web SDK initialization process.")}else u("Stopping Dash0 Web SDK initialization. This browser does not support the necessary APIs.");else u("Looks like we are not running in a browser context. Stopping Dash0 Web SDK initialization.")}function _r(e,n){var t=n.enabledInstrumentations;return!t||t.includes(e)}e.addSignalAttribute=function(e,n){Yn(de.signalAttributes,e,n)},e.debug=function(){u("Dash0 Web SDK configuration state:",de)},e.identify=function(e,n){zn(de.signalAttributes,Ie),null!=e&&Yn(de.signalAttributes,Ie,e),zn(de.signalAttributes,be),null!=(null==n?void 0:n.name)&&Yn(de.signalAttributes,be,n.name),zn(de.signalAttributes,Ce),null!=(null==n?void 0:n.fullName)&&Yn(de.signalAttributes,Ce,n.fullName),zn(de.signalAttributes,Le),null!=(null==n?void 0:n.email)&&Yn(de.signalAttributes,Le,n.email),zn(de.signalAttributes,Ne),null!=(null==n?void 0:n.hash)&&Yn(de.signalAttributes,Ne,n.hash),zn(de.signalAttributes,Se),null!=(null==n?void 0:n.roles)&&Yn(de.signalAttributes,Se,n.roles)},e.init=function(e){u("".concat("Initializing Dash0 Web SDK"," (via package)")),hr(e)},e.removeSignalAttribute=function(e){zn(de.signalAttributes,e)},e.reportError=function(e,n){Rt(e,n)},e.sendEvent=function(e,n){if(Object.values(we).includes(e))a("Unable to send custom event ".concat(e,". You are not allowed to use an internal event name while sending a custom event. Dropping event..."));else{var t=[];ct(t),Yn(t,ye,e),null!=n&&n.title&&Yn(t,"dash0.web.event.title",n.title),Xn(t,null==n?void 0:n.attributes),kn({timeUnixNano:null!=(null==n?void 0:n.timestamp)?F(n.timestamp):k(),attributes:t,body:jn(null==n?void 0:n.data),severityText:null==n?void 0:n.severity,severityNumber:null!=n&&n.severity?Ue[n.severity]:void 0})}},e.setActiveLogLevel=function(e){var n;o=null!==(n=r[e])&&void 0!==n?n:r.warn},e.terminateSession=function(){if(I)try{!function(e){I&&m&&m.removeItem(e)}(Fe)}catch(e){i("Failed to terminate session",e)}}}));
2
2
  //# sourceMappingURL=dash0.umd.cjs.map