@dash0/sdk-web 0.21.0 → 0.22.0

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.
package/README.md CHANGED
@@ -60,6 +60,18 @@ init({
60
60
  });
61
61
  ```
62
62
 
63
+ #### Session Sampling
64
+
65
+ You can control the percentage of user sessions that produce telemetry by setting `sessionSamplingRate` (0–100, default 100):
66
+
67
+ ```ts
68
+ init({
69
+ serviceName: "my-website",
70
+ endpoint: { url: "{OTLP via HTTP endpoint}", authToken: "{authToken}" },
71
+ sessionSamplingRate: 50, // Only 50% of sessions will be recorded
72
+ });
73
+ ```
74
+
63
75
  For more detailed instructions, refer to [`INSTALL.md`](./INSTALL.md).
64
76
 
65
77
  ## Development
@@ -1,2 +1,2 @@
1
- !function(){"use strict";function e(){}function n(e){return e}var t={debug:0,info:1,warn:2,error:3},r=t.warn;var o=l("info"),i=l("warn"),a=l("error"),u=l("debug");function l(n){if("undefined"!=typeof console&&console[n]&&"function"==typeof console[n].apply){var o=t[n];return function(){o>=r&&console[n].apply(console,arguments)}}return e}var s=Object.prototype.hasOwnProperty;function c(e,n){return s.call(e,n)}var v="undefined"!=typeof window?window:void 0,d=null==v?void 0:v.document,f=null==v?void 0:v.navigator,p="undefined"!=typeof location?location:void 0,h=(null==v?void 0:v.performance)||(null==v?void 0:v.webkitPerformance)||(null==v?void 0:v.msPerformance)||(null==v?void 0:v.mozPerformance);null==v||v.encodeURIComponent;var m=null==v?void 0:v.fetch,E=function(){try{var e;return null!==(e=null==v?void 0:v.localStorage)&&void 0!==e?e:null}catch(e){return null}}(),y=function(){try{var e;return null!==(e=null==v?void 0:v.sessionStorage)&&void 0!==e?e:null}catch(e){return null}}(),g=Array(32);function _(e){for(var n=0;n<2*e;n++)g[n]=Math.floor(16*Math.random())+48,g[n]>=58&&(g[n]+=39);return String.fromCharCode.apply(null,g.slice(0,2*e))}function T(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on"+n,t)}var b=null!=E&&"function"==typeof E.getItem&&"function"==typeof E.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 R(e,n,t,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void t(e)}u.done?n(l):Promise.resolve(l).then(r,o)}function S(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){R(i,r,o,a,u,"next",e)}function u(e){R(i,r,o,a,u,"throw",e)}a(void 0)}))}}function O(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function C(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,U(r.key),r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=M(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,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw i}}}}function A(e,n,t){return(n=U(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function L(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 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",u=i.asyncIterator||"@@asyncIterator",l=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 E?n:E,a=Object.create(i.prototype),u=new L(r||[]);return o(a,"_invoke",{value:O(e,t,u)}),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",h="completed",m={};function E(){}function y(){}function g(){}var _={};s(_,a,(function(){return this}));var T=Object.getPrototypeOf,b=T&&T(T(P([])));b&&b!==t&&r.call(b,a)&&(_=b);var I=g.prototype=E.prototype=Object.create(_);function R(e){["next","throw","return"].forEach((function(n){s(e,n,(function(e){return this._invoke(n,e)}))}))}function S(e,n){function t(o,i,a,u){var l=v(e[o],e,i);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?n.resolve(c.__await).then((function(e){t("next",e,a,u)}),(function(e){t("throw",e,a,u)})):n.resolve(c).then((function(e){s.value=e,a(s)}),(function(e){return t("throw",e,a,u)}))}u(l.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 O(n,t,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var l=C(u,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,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?h:f,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function C(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,C(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=v(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;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,m):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function N(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 L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(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 y.prototype=g,o(I,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=s(g,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,l,"GeneratorFunction")),e.prototype=Object.create(I),e},n.awrap=function(e){return{__await:e}},R(S.prototype),s(S.prototype,u,(function(){return this})),n.AsyncIterator=S,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new S(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},R(I),s(I,l,"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=P,L.prototype={constructor:L,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 u.type="throw",u.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],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){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,m):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),m},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),m}},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:P(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),m}},n}function P(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,u=[],l=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(l=(r=i.call(t)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,n)||M(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 V(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)||M(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 U(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 D(e){return D="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},D(e)}function M(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 x(){return(new Date).getTime()}function G(){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"===D(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==v?void 0:v.setTimeout,clearTimeout:null==v?void 0:v.clearTimeout,setInterval:null==v?void 0:v.setInterval,clearInterval:null==v?void 0:v.clearInterval},B=null!=v&&null!=v.Zone&&null!=v.Zone.root&&"function"==typeof v.Zone.root.run;function H(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return q.apply("setTimeout",arguments)}function W(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return q.apply("clearTimeout",arguments)}function Y(){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(B)try{var t=Array.prototype.slice.apply(arguments);return v.Zone.root.run(j[n],v,t)}catch(e){i("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(v,arguments)}B&&u("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");h&&h.getEntriesByType;var X=h&&"function"==typeof v.PerformanceObserver&&"function"==typeof h.now,z=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 Q(n){if(!X)return function(n){var t=0;return{start:function(){t=x()},end:function(){return n({duration:x()-t})},cancel:e}}(n.onEnd);var t,r,o,i,a,u=[];return{start:function(){t=h.now();try{var e,n=null==v?void 0:v.PerformanceObserver;if(n)null===(e=o=new n(s))||void 0===e||e.observe({type:"resource"})}catch(e){}a=H(f,6e5)},end:function(e){if(r)return;if(r=null!=e?e:h.now(),p(),!Z())return l();H((function(){return l()}),Math.min(300,n.maxWaitForResourceMillis)),T(d,"visibilitychange",c),i=H(l,n.maxWaitForResourceMillis)},cancel:f};function l(){f();var e=function(){if(!u.length)return;var e,o,i=u.filter((function(e){return e.responseEnd<=r+n.maxToleranceForResourceTimingsMillis&&!K.has(e)}));if(!i.length)return;1===i.length&&(e=i[0]);if(!e){var a,l=N(i);try{for(l.s();!(a=l.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,e=s)}}catch(e){l.e(e)}finally{l.f()}}if(!e)return;return K.add(e),e}();null!=e&&e.duration&&e.duration<864e5?n.onEnd({resource:e,duration:e.duration}):n.onEnd({resource:e,duration:r-t})}function s(e){e.getEntriesByType("resource").filter((function(e){var r=e;return r.startTime>=t&&n.resourceMatcher(r)})).forEach((function(e){u.length>=100&&u.shift(),u.push(e)}))}function c(){Z()||l()}function f(){!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(!d)return;e=d,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 Z(){return"visible"===(null==d?void 0:d.visibilityState)||"prerender"===(null==d?void 0:d.visibilityState)}var $="undefined";function J(e){return Math.round(100*e)/100}function ee(e){var n;return"string"!=typeof e?e:new URL(e,null!==(n=null==d?void 0:d.baseURI)&&void 0!==n?n:null==p?void 0:p.href)}function ne(e){try{return ee(e).origin===("undefined"!=typeof location?location.origin:void 0)}catch(e){return!1}}var te=/['"<>{};\x00-\x1F\x7F]/;var re=Symbol.for("INSTRUMENTED_BY_DASH0");function oe(e,n,t){var r=e[n];r?!0!==r[re]?(!function(e){e[re]=!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"))}var ie={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.21.0",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:n,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},enableTransportCompression:!1};function ae(e,n){for(var t=0,r=e.length;t<r;t++)if(e[t].test(n))return!0;return!1}var ue="data:";function le(e){return!e||(!(e=String(e))||(null==e.substring||e.substring(0,5).toLowerCase()===ue||(!!function(e){for(var n=e.toLowerCase(),t=0,r=ie.endpoints.length;t<r;t++){var o=ie.endpoints[t];if(n.startsWith(o.url))return!0}return!1}(e)||ae(ie.ignoreUrls,e))))}var se=!1;function ce(e){var n,t,r=[];return t=o,se&&t(),d&&v&&(T(d,"visibilitychange",(function(){"visible"!==d.visibilityState&&t()})),T(v,"pagehide",(function(){se=!0,t()})),T(v,"beforeunload",(function(){se=!0,t()}))),{send:function(t){"visible"===(null==d?void 0:d.visibilityState)?(r.push(t),r.length>=15?o():null==n&&(n=H(o,1e3))):e([t])}};function o(){null!=n&&(clearTimeout(n),n=null),r.length>0&&(e(r.slice()),r.length=0)}}var ve=0,de=0;function fe(e,n){return pe.apply(this,arguments)}function pe(){return pe=S(w().mark((function n(t,r){var o,a,l,s;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(u("Transmitting telemetry to endpoints",r),o=JSON.stringify(r),a=o,l=new Blob([o]).size,s=!1,"undefined"==typeof CompressionStream||!ie.enableTransportCompression){n.next=11;break}return n.next=8,he(o);case 8:a=n.sent,l=a.byteLength,s=!0;case 11:return n.next=13,Promise.all(ie.endpoints.map(function(){var n=S(w().mark((function n(r){var o,u,c;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.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"),m){n.next=9;break}return i("Unable to send telemetry, fetch is not defined"),n.abrupt("return");case 9:return ve+=l,de++,n.next=13,m(o,{method:"POST",headers:u,body:a,keepalive:ve<=6e4&&de<=15});case 13:(c=n.sent).text().catch(e),c.ok||i("Failed to send telemetry to ".concat(o,": ").concat(c.status," ").concat(c.statusText)),n.next=21;break;case 18:n.prev=18,n.t0=n.catch(0),i("Error sending telemetry to ".concat(r.url).concat(t,":"),n.t0);case 21:return n.prev=21,ve-=l,de--,n.finish(21);case 25:case"end":return n.stop()}}),n,null,[[0,18,21,25]])})));return function(e){return n.apply(this,arguments)}}()));case 13:case"end":return n.stop()}}),n)}))),pe.apply(this,arguments)}function he(e){return me.apply(this,arguments)}function me(){return(me=S(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 Ee,ye=ce((function(e){fe("/v1/logs",{resourceLogs:[{resource:ie.resource,scopeLogs:[{scope:ie.scope,logRecords:e}]}]}).catch((function(e){a("Failed to transmit logs",e)}))})),ge=ce((function(e){fe("/v1/traces",{resourceSpans:[{resource:ie.resource,scopeSpans:[{scope:ie.scope,spans:e}]}]}).catch((function(e){a("Failed to transmit spans",e)}))}));function _e(){var e,n,t,r,o;return Ee||(n=(e={maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}).maxCallsPerTenMinutes,t=e.maxCallsPerTenSeconds,r=0,o=0,Y((function(){r=0}),6e5),Y((function(){o=0}),1e4),Ee=function(){return++r>n||++o>t}),Ee()}function Te(e){_e()?u("Transport rate limit. Will not send item.",e):ye.send(e)}function be(e){e&&(_e()?u("Transport rate limit. Will not send item.",e):ge.send(e))}var Ie="service.name",Re="service.namespace",Se="service.version",Oe="deployment.environment.name",Ce="deployment.name",Ne="deployment.id",Ae="event.name",Le="dash0.web.event.id",we="page.load.id",Pe="user_agent.original",Ve="user.id",Ue="user.name",De="user.full_name",Me="user.email",xe="user.hash",Ge="user.roles",ke="exception.message",Fe="exception.type",je="exception.stacktrace",Be="url.full",He={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},Ye=0,qe=1,Xe="pushState",ze="replaceState",Ke=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function Qe(e){if(null!=e){var n={};return Array.isArray(e)?n.arrayValue={values:e.map((function(e){return Qe(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"!==D(e))return!1;var n=Object.keys(e);return 1===n.length&&Ke.includes(n[0])}(e)?"object"===D(e)&&(n.kvlistValue={values:Object.entries(e).map((function(e){var n=P(e,2);return Ze(n[0],n[1])}))}):n=e,n}}function Ze(e,n){return{key:e,value:Qe(n)}}function $e(e,n,t){n&&e.push(Ze(n,t))}function Je(e,n){n&&Object.entries(n).forEach((function(n){var t=P(n,2),r=t[0],o=t[1];return $e(e,r,o)}))}function en(e,n){var t=e.findIndex((function(e){return e.key===n}));-1!==t&&e.splice(t,1)}var nn="traceparent",tn=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function rn(){var e,n,t=((null===(e=Array.from(null!==(n=null==d?void 0:d.getElementsByTagName("meta"))&&void 0!==n?n:[]).find((function(e){var n;return(null===(n=e.getAttribute("name"))||void 0===n?void 0:n.toLowerCase())===nn})))||void 0===e?void 0:e.content.trim())||"").match(tn)||function(){var e=h.getEntriesByType("navigation")[0];if(!e)return"";if(!e.serverTiming)return"";return function(e){var n,t=N(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name===nn)return r.description.trim()}}catch(e){t.e(e)}finally{t.f()}return""}(e.serverTiming)}().match(tn);if(t)return{traceId:t[1],spanId:t[2]}}function on(e,n,t){e.call(n,"traceparent","00-".concat(t.traceId,"-").concat(t.spanId,"-01"))}function an(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)),u="Root=".concat(a,";Parent=").concat(t.spanId,";Sampled=1");e.call(n,"X-Amzn-Trace-Id",u)}var un=1;function ln(){var e,n;return"".concat((e={ephemeralSession:!b},n=0,e.ephemeralSession&&(n|=un),n.toString(16).padStart(2,"0"))).concat(_(7))}var sn="d0_session",cn="#",vn=864e5,dn=null;function fn(e,n){if(!b)return u("Storage API is not available and session tracking is therefore not supported."),void(dn=ln());e||(e=108e5),n||(n=216e5),e=Math.min(e,vn),n=Math.min(n,vn);try{var t=function(e){return b&&E?E.getItem(e):null}(sn),r=function(e){if(!e)return null;var n=e.split(cn);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:ln(),startTime:x(),lastActivityTime:x()},function(e,n){b&&E&&E.setItem(e,n)}(sn,function(e){return e.id+cn+e.startTime+cn+e.lastActivityTime}(r)),dn=r.id}catch(e){i("Failed to record session information",e)}}var pn="d042",hn=1;function mn(e){var n=0;return e.withoutSession&&(n|=hn),n.toString(16).padStart(2,"0")}for(var En=new Uint32Array(256),yn=0;yn<256;yn++){for(var gn=yn,_n=0;_n<8;_n++)gn=1&gn?3988292384^gn>>>1:gn>>>1;En[yn]=gn>>>0}function Tn(e){var n=function(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^En[255&(r^i)]}return(4294967295^r)>>>0}(e).toString(16).padStart(8,"0");return"".concat(n).concat(_(4))}function bn(e){var n=function(e){return e?"".concat(pn).concat(mn({withoutSession:!1})).concat(e).concat(_(5)):"".concat(pn).concat(mn({withoutSession:!0})).concat(_(13))}(dn),t=Tn(n),r=[];return $e(r,Le,t),{traceId:n,spanId:t,name:e,kind:3,startTimeUnixNano:G(),attributes:r,events:[],links:[],status:{code:0}}}function In(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)):G(),r;u("Attempting to end already ended span. Dropping...",r)}function Rn(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:G(),attributes:null!=i?i:[]})}function Sn(e,t,r){var o=function(e){return e?Array.isArray(e)?function(n){return[].concat(V(e),[n]).join(".")}:function(n){return"".concat(e,".").concat(n)}:function(e){return e}}(r);try{var i=ee(t);i.username&&(i.username="REDACTED"),i.password&&(i.password="REDACTED");var a=ie.urlAttributeScrubber(A(A(A(A(A(A({},Be,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=P(n,2),r=t[0],i=t[1];void 0!==i&&$e(e,o(r),i)}))}catch(r){ie.urlAttributeScrubber===n&&$e(e,o(Be),String(t))}}var On=null!=y&&"function"==typeof y.getItem&&"function"==typeof y.setItem;var Cn="d0_tab",Nn=null;function An(){if(On)try{var e=function(e){return On&&y?y.getItem(e):null}(Cn);if(e)return void(Nn=e);Nn=_(8),function(e,n){On&&y&&y.setItem(e,n)}(Cn,Nn)}catch(e){i("Failed to record tab ID information",e)}else u("Storage API is not available and tab tracking is therefore not supported.")}function Ln(e,n){var t,r,o,i,a;void 0===e.find((function(e){return e.key===Le}))&&$e(e,Le,_(8));for(var u=0;u<ie.signalAttributes.length;u++)e.push(ie.signalAttributes[u]);Sn(e,null!==(t=null!==(r=null==n?void 0:n.url)&&void 0!==r?r:null==v?void 0:v.location.href)&&void 0!==t?t:$,"page"),dn&&$e(e,"session.id",dn),Nn&&$e(e,"browser.tab.id",Nn),$e(e,"browser.window.width",null!==(o=null==v?void 0:v.innerWidth)&&void 0!==o?o:$),$e(e,"browser.window.height",null!==(i=null==v?void 0:v.innerHeight)&&void 0!==i?i:$);var l=null==f||null===(a=f.connection)||void 0===a?void 0:a.effectiveType;l&&$e(e,"network.connection.subtype",l)}var wn,Pn=0,Vn=0,Un={},Dn=!1;function Mn(){Dn=!0}function xn(e,n){e&&Gn("string"==typeof e?{message:e,opts:n}:{message:e.message,type:e.name,stack:e.stack,opts:n})}function Gn(e){var n=e.message,t=e.type,r=e.stack,o=e.opts;if(n&&!(Pn>100)&&!function(e){return!e||ae(ie.ignoreErrorMessages,e)}(n)){Vn>=20&&(Un={},Vn=0);var i=(n=String(n).substring(0,300))+(r=function(e){return String(e||"").split("\n").slice(0,30).join("\n")}(r))+(null==v?void 0:v.location.href),a=Un[i];if(a)a.seenCount++;else{var u=[];Ln(u),$e(u,Ae,He.ERROR),$e(u,ke,n),t&&$e(u,Fe,t),r&&$e(u,je,r),null!=o&&o.componentStack&&$e(u,"exception.component_stack",null==o?void 0:o.componentStack.substring(0,2048)),Je(u,null==o?void 0:o.attributes),a={seenCount:1,transmittedCount:0,log:{timeUnixNano:G(),attributes:u,severityNumber:We.ERROR,severityText:"ERROR",body:{stringValue:n}}},Un[i]=a,Vn++}!function(){if(wn)return;wn=setTimeout(kn,1e3)}()}}function kn(){for(var e in wn&&(clearTimeout(wn),wn=null),Un)if(c(Un,e)){var n=Un[e];n.seenCount>n.transmittedCount&&(Te(n.log),Pn++)}Un={},Vn=0}var Fn=-1,jn=function(e){addEventListener("pageshow",(function(n){n.persisted&&(Fn=n.timeStamp,e(n))}),!0)},Bn=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)))}},Hn=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Wn=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Yn=function(){var e,n=Wn();return null!==(e=null==n?void 0:n.activationStart)&&void 0!==e?e:0},qn=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,t=Wn(),r="navigate";return Fn>=0?r="back-forward-cache":t&&(document.prerendering||Yn()>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}},Xn=new WeakMap;function zn(e,n){return Xn.get(e)||Xn.set(e,new n),Xn.get(e)}var Kn,Qn=function(){return C((function e(){O(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)}}}])}(),Zn=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?L(Object(t),!0).forEach((function(n){A(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({type:e,buffered:!0},t)),r}}catch(e){}},$n=function(e){var n=!1;return function(){n||(e(),n=!0)}},Jn=-1,et=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},nt=function(e){"hidden"===document.visibilityState&&Jn>-1&&(Jn="visibilitychange"===e.type?e.timeStamp:0,rt())},tt=function(){addEventListener("visibilitychange",nt,!0),addEventListener("prerenderingchange",nt,!0)},rt=function(){removeEventListener("visibilitychange",nt,!0),removeEventListener("prerenderingchange",nt,!0)},ot=function(){if(Jn<0){var e,n=Yn(),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;Jn=null!=t?t:et(),tt(),jn((function(){setTimeout((function(){Jn=et(),tt()}))}))}return{get firstHiddenTime(){return Jn}}},it=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},at=[1800,3e3],ut=[.1,.25],lt=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]:{};it((function(){var t,r=ot(),o=qn("FCP"),i=Zn("paint",(function(e){var n,a=N(e);try{for(a.s();!(n=a.n()).done;){var u=n.value;"first-contentful-paint"===u.name&&(i.disconnect(),u.startTime<r.firstHiddenTime&&(o.value=Math.max(u.startTime-Yn(),0),o.entries.push(u),t(!0)))}}catch(e){a.e(e)}finally{a.f()}}));i&&(t=Bn(e,o,at,n.reportAllChanges),jn((function(r){o=qn("FCP"),t=Bn(e,o,at,n.reportAllChanges),Hn((function(){o.value=performance.now()-r.timeStamp,t(!0)}))})))}))}($n((function(){var t,r=qn("CLS",0),o=zn(n,Qn),i=function(e){var n,i=N(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=Zn("layout-shift",i);a&&(t=Bn(e,r,ut,n.reportAllChanges),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(i(a.takeRecords()),t(!0))})),jn((function(){o.i=0,r=qn("CLS",0),t=Bn(e,r,ut,n.reportAllChanges),Hn((function(){return t()}))})),setTimeout(t))})))},st=0,ct=1/0,vt=0,dt=function(e){var n,t=N(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;r.interactionId&&(ct=Math.min(ct,r.interactionId),vt=Math.max(vt,r.interactionId),st=vt?(vt-ct)/7+1:0)}}catch(e){t.e(e)}finally{t.f()}},ft=function(){var e;return Kn?st:null!==(e=performance.interactionCount)&&void 0!==e?e:0},pt=0,ht=function(){return C((function e(){O(this,e),A(this,"u",[]),A(this,"l",new Map),A(this,"m",void 0),A(this,"v",void 0)}),[{key:"p",value:function(){pt=ft(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((ft()-pt)/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=N(this.u.splice(10));try{for(a.s();!(i=a.n()).done;){var u=i.value;this.l.delete(u.id)}}catch(e){a.e(e)}finally{a.f()}}null===(o=this.v)||void 0===o||o.call(this,r)}}}}])}(),mt=function(e){var n=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=$n(e),document.addEventListener("visibilitychange",e,{once:!0}),n((function(){e(),document.removeEventListener("visibilitychange",e)})))},Et=[200,500],yt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&it((function(){var t;"interactionCount"in performance||Kn||(Kn=Zn("event",dt,{type:"event",buffered:!0,durationThreshold:0}));var r,o=qn("INP"),i=zn(n,ht),a=function(e){mt((function(){var n,t=N(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 u=i.P();u&&u.T!==o.value&&(o.value=u.T,o.entries=u.entries,r())}))},u=Zn("event",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=Bn(e,o,Et,n.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(a(u.takeRecords()),r(!0))})),jn((function(){i.p(),o=qn("INP"),r=Bn(e,o,Et,n.reportAllChanges)})))}))},gt=function(){return C((function e(){O(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)}}])}(),_t=[2500,4e3];function Tt(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};it((function(){var t,r=ot(),o=qn("LCP"),i=zn(n,gt),a=function(e){n.reportAllChanges||(e=e.slice(-1));var a,u=N(e);try{for(u.s();!(a=u.n()).done;){var l=a.value;i.h(l),l.startTime<r.firstHiddenTime&&(o.value=Math.max(l.startTime-Yn(),0),o.entries=[l],t())}}catch(e){u.e(e)}finally{u.f()}},u=Zn("largest-contentful-paint",a);if(u){t=Bn(e,o,_t,n.reportAllChanges);for(var l=$n((function(){a(u.takeRecords()),u.disconnect(),t(!0)})),s=0,c=["keydown","click","visibilitychange"];s<c.length;s++)addEventListener(c[s],(function(){return mt(l)}),{capture:!0,once:!0});jn((function(r){o=qn("LCP"),t=Bn(e,o,_t,n.reportAllChanges),Hn((function(){o.value=performance.now()-r.timeStamp,t(!0)}))}))}}))}(bt,{reportAllChanges:!0}),yt(bt,{reportAllChanges:!0}),lt(bt,{reportAllChanges:!0})}function bt(e){var n=[];$e(n,Ae,He.WEB_VITAL);var t=[];$e(t,"name",e.name),$e(t,"value",J(e.value)),$e(t,"delta",J(e.delta));var r={timeUnixNano:G(),attributes:n,severityNumber:We.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};Ln(r.attributes),Te(r)}var It="Unhandled promise rejection: ",Rt="<unavailable because Promise wasn't rejected with an Error object>";function St(e){null==e.reason?xn({message:It+"<no reason defined>",stack:Rt}):"string"==typeof e.reason.message?xn({message:It+e.reason.message,stack:"string"==typeof e.reason.stack?e.reason.stack:Rt}):"object"!==D(e.reason)&&xn({message:It+e.reason,stack:Rt})}var Ot="__dash0OriginalFunctions";function Ct(e,n){for(var t=e[Ot],r=0;r<t.length;r++){if(Nt(t[r].valuesForEqualityCheck,n))return r}return-1}function Nt(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[Ot]=e[Ot]||[],o=Ct(e,t);return-1!==o?r[o].wrappedFunction:(r.push({wrappedFunction:n,valuesForEqualityCheck:t}),n)}(e,n,Lt(t,r,o))}function Lt(e,n,t){return[e,n,wt(t)]}function wt(e){return null!=e&&("object"===D(e)?Boolean(e.capture):Boolean(e))}function Pt(e,n,t,r,o){return function(e,n,t){var r=null==e?void 0:e[Ot];if(null==r)return t;var o=Ct(e,n);if(-1===o)return t;var i=r[o];return r.splice(o,1),i.wrappedFunction}(e,Lt(n,t,r),o)}function Vt(){ie.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 xn(e),Mn(),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]=Pt(this,e,n,r,n),t.apply(this,o)}}(null==v?void 0:v.EventTarget)}function Ut(e){var n=null==v?void 0:v[e];"function"==typeof n&&(v[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),Mn(),e}}}(e),n.apply(this,t)})}function Dt(){!function(){if(v){var e=v.onerror;v.onerror=function(n,t,r,o,i){if(Dn)return Dn=!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)),Gn({message:String(n),stack:a}),"function"==typeof e?e.apply(this,arguments):void 0}}}(),"function"==typeof(null==v?void 0:v.addEventListener)&&v.addEventListener("unhandledrejection",St),Vt(),function(){if(ie.wrapTimers){if(B)return void i("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");Ut("setTimeout"),Ut("setInterval")}}()}var Mt=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"];function xt(e){return Mt.includes(e)}function Gt(e,n){var t=0!==n.startTime;kt(e,z.FETCH_START,n,t),kt(e,z.DOMAIN_LOOKUP_START,n,t),kt(e,z.DOMAIN_LOOKUP_END,n,t),kt(e,z.CONNECT_START,n,t),kt(e,z.SECURE_CONNECTION_START,n,t),kt(e,z.CONNECT_END,n,t),kt(e,z.REQUEST_START,n,t),kt(e,z.RESPONSE_START,n,t),kt(e,z.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]||Rn(e,n,(r=t[n],String(Math.round(1e6*(r+F())))))}function Ft(e,n){var t=n.encodedBodySize;null!=t&&$e(e.attributes,"http.response.body.size",t)}function jt(e){return function(){var n=S(w().mark((function n(t,r){var o,i,a,l,s,c,v,d,f,p,h,m,E,y,g,_;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),!le(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",Ln((h=bn("HTTP ".concat(p))).attributes),Sn(h.attributes,c),Bt(t,r),$e(h.attributes,"http.request.method",p),d||$e(h.attributes,"http.request.method_original",v),m=zt(c),m.length>0&&(null!==(E=a)&&void 0!==E&&E.headers?(a.headers=new Headers(a.headers),Kt(a.headers.append,a.headers,h,m)):t instanceof Request?Kt(s.headers.append,s.headers,h,m):(a||(a={}),a.headers=new Headers,Kt(a.headers.append,a.headers,h,m))),Ht(s.headers,h,(function(e){return n=e,"".concat("http.request.header",".").concat(n.toLowerCase());var n})),(y=Q({resourceMatcher:function(e){var n=e.initiatorType,t=e.name;return("fetch"===n||"xmlhttprequest"===n)&&t===ee(c).href},maxWaitForResourceMillis:ie.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:ie.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,t=e.resource;t&&(Gt(h,t),Ft(h,t)),be(In(h,void 0,1e6*n))}})).start(),n.prev=25,n.next=28,e(t instanceof Request?s:t,a);case 28:return g=n.sent,Wt(h,g),n.abrupt("return",Yt(g,ie.maxToleranceForResourceTimingsMillis,(function(){return y.end()}),(function(e){var n;y.cancel(),null!==(n=s.signal)&&void 0!==n&&n.aborted?Xt(h):qt(h,e)})));case 33:throw n.prev=33,n.t0=n.catch(25),y.cancel(),null!==(_=s.signal)&&void 0!==_&&_.aborted?Xt(h):qt(h,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 Bt(e,n,t){try{return void 0}catch(t){u("failed to analyze request for GraphQL insights",t,e,n)}}function Ht(e,n,t){try{if(!ie.headersToCapture.length)return;e.forEach((function(e,r){ie.headersToCapture.some((function(e){return e.test(r)}))&&$e(n.attributes,t(r),e)}))}catch(e){u("unable to capture http headers due to CORS policy")}}function Wt(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&&$e(e.attributes,"error.type",n.type),$e(e.attributes,"http.response.status_code",String(t)),Ht(n.headers,e,(function(e){return n=e,"".concat("http.response.header",".").concat(n.toLowerCase());var n}))}function Yt(e,n,t,r){var o,i,a=h.now(),u=e.body;if(!(u&&(o=e,i=o.status,i>=200&&204!=i&&205!=i&&304!=i)))return t(),e;var l=!1,s=function(e){l||(t(e),l=!0)},c=function(e){l||(r(e),l=!0)},v=H((function(){return s(a)}),n),d=u.getReader(),f=new ReadableStream({pull:function(e){return S(w().mark((function t(){var r,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,W(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=H((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 W(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?$e(t,ke,n):n&&(n.code?$e(t,Fe,n.code.toString()):n.name&&$e(t,Fe,n.name),n.message&&$e(t,ke,n.message),n.stack&&$e(t,je,n.stack),Rn(e,"exception",t))}(e,n),be(In(e,function(e){return{code:2,message:e&&"object"===D(e)&&"message"in e?e.message:String(e)}}(n),void 0))}function Xt(e){$e(e.attributes,"dash0.web.request.cancelled",!0),be(In(e,void 0,void 0))}function zt(e){var n=[];if(ne(e)){if(n.push("traceparent"),ie.propagators){var t,r=N(ie.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(ie.propagators){var i,a=N(ie.propagators);try{for(a.s();!(i=a.n()).done;){var u=i.value;ae(u.match,e)&&(n.includes(u.type)||n.push(u.type))}}catch(e){a.e(e)}finally{a.f()}return n}return[]}function Kt(e,n,t,r){var o,i=N(r);try{for(i.s();!(o=i.n()).done;){"xray"===o.value?an(e,n,t):on(e,n,t)}}catch(e){i.e(e)}finally{i.f()}}function Qt(e,n,t,r){var o,i,a=function(e){var n,t,r;return e&&null!==(n=null===(t=(r=ie.pageViewInstrumentation).generateMetadata)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:{}}(n),u=[];$e(u,Ae,He.PAGE_VIEW),a.attributes&&Object.entries(a.attributes).forEach((function(e){var n=P(e,2),t=n[0],r=n[1];return $e(u,t,r)})),Ln(u,{url:n});var l=[];$e(l,"title",null!==(o=null!==(i=a.title)&&void 0!==i?i:null==d?void 0:d.title)&&void 0!==o?o:$),null!=d&&d.referrer&&$e(l,"referrer",d.referrer),$e(l,"type",t?qe:Ye),$e(l,"change_state",r?ze:Xe);var s={timeUnixNano:e,attributes:u,severityNumber:We.INFO,severityText:"INFO",body:{kvlistValue:{values:l}}},c=rn();c&&(s.traceId=c.traceId,s.spanId=c.spanId),Te(s)}function Zt(){var e=null==v?void 0:v.performance.getEntriesByType("navigation")[0];if(e){var n=[];$e(n,Ae,He.NAVIGATION_TIMING);var t=[];$e(t,"name",e.name),$t(t,e,"responseStatus"),$t(t,e,"fetchStart"),$t(t,e,"requestStart"),$t(t,e,"responseStart"),$t(t,e,"domInteractive"),$t(t,e,"domContentLoadedEventEnd"),$t(t,e,"domComplete"),$t(t,e,"loadEventEnd"),$t(t,e,"transferSize"),$t(t,e,"encodedBodySize"),$t(t,e,"decodedBodySize");var r={timeUnixNano:Jt(),attributes:n,severityNumber:We.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};Ln(r.attributes);var o=rn();o&&(r.traceId=o.traceId,r.spanId=o.spanId),Te(r)}else u("Navigation timings not available. Cannot emit navigation timing log")}function $t(e,n,t){var r=n[t];"number"!=typeof r||isNaN(r)||$e(e,t,Number.isInteger(r)?r:J(r))}function Jt(){return k(Math.round(F()))}var er={},nr=!1,tr=!1;function rr(){ir(null==v?void 0:v.location.href)}function or(e){ir(e.newURL)}function ir(e,n){var t;if(e)try{var r=new URL(e,null==v?void 0:v.location.href);((t=r).pathname!==er.path||tr&&t.search!==er.search||nr&&t.hash!==er.hash)&&(ar(r),Qt(G(),r,!0,Boolean(n)))}catch(e){u("Failed to handle url change",e)}}function ar(e){er.path=e.pathname,er.search=e.search,er.hash=e.hash}function ur(){!function(){try{Qt(Jt(),null!=v&&v.location.href?new URL(null==v?void 0:v.location.href):void 0)}catch(e){a("Failed to transmit initial page view event",e)}if("complete"===(null==d?void 0:d.readyState))return Zt();v&&T(v,"load",(function(){setTimeout(Zt,0)}))}(),function(){var e,n,t,r;if(v&&v.history){if(ie.pageViewInstrumentation.trackVirtualPageViews){tr=null!==(e=null===(n=ie.pageViewInstrumentation.includeParts)||void 0===n?void 0:n.includes("SEARCH"))&&void 0!==e&&e,nr=null!==(t=null===(r=ie.pageViewInstrumentation.includeParts)||void 0===r?void 0:r.includes("HASH"))&&void 0!==t&&t,oe(v.history,"replaceState",(function(e){return function(n,t,r){return ir(r?String(r):void 0,!0),e.apply(this,[n,t,r])}})),oe(v.history,"pushState",(function(e){return function(n,t,r){return ir(r?String(r):void 0),e.apply(this,[n,t,r])}})),v.addEventListener("hashchange",or),v.addEventListener("popstate",rr);try{ar(new URL(v.location.href))}catch(e){}}}else u("Browser does not support history API, skipping instrumentation")}()}var lr=function(e){if("object"===D(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},sr=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]=sr.options.mergeArrays?sr.options.uniqueArrayItems?Array.from(new Set(e[t].concat(n[t]))):[].concat(V(e[t]),V(n[t])):n[t]:lr(e[t])&&lr(n[t])?e[t]=sr(e[t],n[t]):!lr(e[t])&&lr(n[t])?e[t]=sr(n[t],void 0):e[t]=void 0===n[t]?sr.options.allowUndefinedOverrides?n[t]:e[t]:n[t])})),e}),{})},cr={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};sr.options=cr,sr.withOptions=function(e){sr.options=Object.assign(Object.assign({},cr),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=sr.apply(void 0,t);return sr.options=cr,o};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,u,l,s,c,v,d,f,p,h,m=null!==(n=e.vcs)&&void 0!==n?n:{};if(e.disableVcsDetection)return m;var E=function(){var e,n,t,r,o,i;try{var a,u,l,s,c,v,d,f,p,h,m,E,y,g,_,T,b,I,R,S,O,C,N,A,L,w,P,V,U,D,M,x,G,k,F,j,B,H,W,Y,q,X,z,K,Q,Z,$,J,ee,ne,te,re,oe,ie;e=fr(null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NEXT_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===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.REACT_APP_VERCEL_GIT_PROVIDER,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.GATSBY_VERCEL_GIT_PROVIDER,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.VITE_VERCEL_GIT_PROVIDER,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.PUBLIC_VERCEL_GIT_PROVIDER,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.VUE_APP_VERCEL_GIT_PROVIDER,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.REDWOOD_ENV_VERCEL_GIT_PROVIDER,null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.SANITY_STUDIO_VERCEL_GIT_PROVIDER),n=fr(null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.NEXT_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===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.REACT_APP_VERCEL_GIT_REPO_OWNER,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.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===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.PUBLIC_VERCEL_GIT_REPO_OWNER,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.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===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.SANITY_STUDIO_VERCEL_GIT_REPO_OWNER),t=fr(null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.NEXT_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===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.GATSBY_VERCEL_GIT_REPO_SLUG,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.VITE_VERCEL_GIT_REPO_SLUG,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.PUBLIC_VERCEL_GIT_REPO_SLUG,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.VUE_APP_VERCEL_GIT_REPO_SLUG,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.REDWOOD_ENV_VERCEL_GIT_REPO_SLUG,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.SANITY_STUDIO_VERCEL_GIT_REPO_SLUG),r=fr(null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(U=process)||void 0===U||null===(U=U.env)||void 0===U?void 0:U.NUXT_ENV_VERCEL_GIT_COMMIT_REF,null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.REACT_APP_VERCEL_GIT_COMMIT_REF,null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.GATSBY_VERCEL_GIT_COMMIT_REF,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.VITE_VERCEL_GIT_COMMIT_REF,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.PUBLIC_VERCEL_GIT_COMMIT_REF,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.VUE_APP_VERCEL_GIT_COMMIT_REF,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.REDWOOD_ENV_VERCEL_GIT_COMMIT_REF,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.SANITY_STUDIO_VERCEL_GIT_COMMIT_REF),o=fr(null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.NUXT_ENV_VERCEL_GIT_COMMIT_SHA,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.REACT_APP_VERCEL_GIT_COMMIT_SHA,null===(Y=process)||void 0===Y||null===(Y=Y.env)||void 0===Y?void 0:Y.GATSBY_VERCEL_GIT_COMMIT_SHA,null===(q=process)||void 0===q||null===(q=q.env)||void 0===q?void 0:q.VITE_VERCEL_GIT_COMMIT_SHA,null===(X=process)||void 0===X||null===(X=X.env)||void 0===X?void 0:X.PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(z=process)||void 0===z||null===(z=z.env)||void 0===z?void 0:z.VUE_APP_VERCEL_GIT_COMMIT_SHA,null===(K=process)||void 0===K||null===(K=K.env)||void 0===K?void 0:K.REDWOOD_ENV_VERCEL_GIT_COMMIT_SHA,null===(Q=process)||void 0===Q||null===(Q=Q.env)||void 0===Q?void 0:Q.SANITY_STUDIO_VERCEL_GIT_COMMIT_SHA),i=fr(null===(Z=process)||void 0===Z||null===(Z=Z.env)||void 0===Z?void 0:Z.NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===($=process)||void 0===$||null===($=$.env)||void 0===$?void 0:$.NUXT_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(J=process)||void 0===J||null===(J=J.env)||void 0===J?void 0:J.REACT_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ee=process)||void 0===ee||null===(ee=ee.env)||void 0===ee?void 0:ee.GATSBY_VERCEL_GIT_PULL_REQUEST_ID,null===(ne=process)||void 0===ne||null===(ne=ne.env)||void 0===ne?void 0:ne.VITE_VERCEL_GIT_PULL_REQUEST_ID,null===(te=process)||void 0===te||null===(te=te.env)||void 0===te?void 0:te.PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(re=process)||void 0===re||null===(re=re.env)||void 0===re?void 0:re.VUE_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(oe=process)||void 0===oe||null===(oe=oe.env)||void 0===oe?void 0:oe.REDWOOD_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(ie=process)||void 0===ie||null===(ie=ie.env)||void 0===ie?void 0:ie.SANITY_STUDIO_VERCEL_GIT_PULL_REQUEST_ID)}catch(e){}return{providerName:e,ownerName:n,repositoryName:t,repositoryUrlFull:pr(e,n,t),refHeadName:r,refHeadRevision:o,changeId:i}}(),y=function(){var e,n,t,r;try{var o,i,a,u,l,s,c,v,d,f,p,h,m,E,y,g,_,T,b,I,R,S,O,C,N,A,L,w,V,U,D,M,x,G,k,F;e=fr(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_ENV_REPOSITORY_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.REACT_APP_REPOSITORY_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.GATSBY_REPOSITORY_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.VITE_REPOSITORY_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.PUBLIC_REPOSITORY_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.VUE_APP_REPOSITORY_URL,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.REDWOOD_ENV_REPOSITORY_URL,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.SANITY_STUDIO_REPOSITORY_URL),n=fr(null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.NEXT_PUBLIC_BRANCH,null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.NUXT_ENV_BRANCH,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.REACT_APP_BRANCH,null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.GATSBY_BRANCH,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.VITE_BRANCH,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.PUBLIC_BRANCH,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.VUE_APP_BRANCH,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.REDWOOD_ENV_BRANCH,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.SANITY_STUDIO_BRANCH),t=fr(null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.NEXT_PUBLIC_COMMIT_REF,null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.NUXT_ENV_COMMIT_REF,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.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===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.PUBLIC_COMMIT_REF,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.VUE_APP_COMMIT_REF,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.REDWOOD_ENV_COMMIT_REF,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.SANITY_STUDIO_COMMIT_REF),r=fr(null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.NEXT_PUBLIC_REVIEW_ID,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.NUXT_ENV_REVIEW_ID,null===(U=process)||void 0===U||null===(U=U.env)||void 0===U?void 0:U.REACT_APP_REVIEW_ID,null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.GATSBY_REVIEW_ID,null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.VITE_REVIEW_ID,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.PUBLIC_REVIEW_ID,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.VUE_APP_REVIEW_ID,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.REDWOOD_ENV_REVIEW_ID,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.SANITY_STUDIO_REVIEW_ID)}catch(e){}var j=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=P(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],u=i[i.length-1];return a&&u?{providerName:o,ownerName:a,repositoryName:u}:void 0}(e);return{providerName:null==j?void 0:j.providerName,ownerName:null==j?void 0:j.ownerName,repositoryName:null==j?void 0:j.repositoryName,repositoryUrlFull:e,refHeadName:n,refHeadRevision:t,changeId:r}}();return{providerName:null!==(t=null!==(r=m.providerName)&&void 0!==r?r:E.providerName)&&void 0!==t?t:y.providerName,ownerName:null!==(o=null!==(i=m.ownerName)&&void 0!==i?i:E.ownerName)&&void 0!==o?o:y.ownerName,repositoryName:null!==(a=null!==(u=m.repositoryName)&&void 0!==u?u:E.repositoryName)&&void 0!==a?a:y.repositoryName,repositoryUrlFull:null!==(l=null!==(s=m.repositoryUrlFull)&&void 0!==s?s:E.repositoryUrlFull)&&void 0!==l?l:y.repositoryUrlFull,refHeadName:null!==(c=null!==(v=m.refHeadName)&&void 0!==v?v:E.refHeadName)&&void 0!==c?c:y.refHeadName,refHeadRevision:null!==(d=null!==(f=m.refHeadRevision)&&void 0!==f?f:E.refHeadRevision)&&void 0!==d?d:y.refHeadRevision,changeId:null!==(p=null!==(h=m.changeId)&&void 0!==h?h:E.changeId)&&void 0!==p?p:y.changeId}}(e),t=0,r=Object.keys(vr);t<r.length;t++){var o=r[t],i=n[o];i&&$e(ie.resource.attributes,vr[o],i)}}function fr(){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}}function pr(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 mr=!1;function Er(e,n){var t=n.enabledInstrumentations;return!t||t.includes(e)}var yr={init:function(e){if(mr)u("Dash0 SDK is being reinitialized, skipping ...");else if(null!=v)if("function"==typeof m&&h&&h.getEntriesByType){var n,t,r=e.serviceName.trim();if(r){if(!1!==e.rejectSuspiciousServiceName&&(t=r,te.test(t))){var o;u("serviceName contains disallowed characters. Falling back to location.hostname."),e.serviceName=null!==(o=null==p?void 0:p.hostname)&&void 0!==o?o:"unknown"}}else u("Missing or empty serviceName value. Falling back to location.hostname."),e.serviceName=null!==(n=null==p?void 0:p.hostname)&&void 0!==n?n:"unknown";ie.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],0!==ie.endpoints.length?(Object.assign(ie,sr(ie,function(e,n){var t,r={},o=N(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&&i("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),ie.propagators=e.propagators):e.propagateTraceHeadersCorsURLs&&e.propagateTraceHeadersCorsURLs.length>0?(i("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),ie.propagators=[{type:"traceparent",match:V(e.propagateTraceHeadersCorsURLs)}]):ie.propagators=[{type:"traceparent",match:[]}]}(e),function(e){$e(ie.resource.attributes,Ie,e.serviceName),e.serviceNamespace&&$e(ie.resource.attributes,Re,e.serviceNamespace);e.serviceVersion&&$e(ie.resource.attributes,Se,e.serviceVersion);var n=function(e){if(e.environment)return e.environment;try{var n;return null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_ENV}catch(e){return}}(e);n&&$e(ie.resource.attributes,Oe,n);var t=function(e){if(e.deploymentName)return e.deploymentName;try{var n;return null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_TARGET_ENV}catch(e){return}}(e);t&&$e(ie.resource.attributes,Ce,t);var r=function(e){if(e.deploymentId)return e.deploymentId;try{var n;return null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_BRANCH_URL}catch(e){return}}(e);r&&$e(ie.resource.attributes,Ne,r);dr(e)}(e),function(e){var n;$e(ie.signalAttributes,we,_(16)),$e(ie.signalAttributes,Pe,null!==(n=null==f?void 0:f.userAgent)&&void 0!==n?n:$),e.additionalSignalAttributes&&Object.entries(e.additionalSignalAttributes).forEach((function(e){var n=P(e,2),t=n[0],r=n[1];$e(ie.signalAttributes,t,r)}))}(e),An(),fn(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),Er("@dash0/navigation",e)&&ur(),Er("@dash0/web-vitals",e)&&Tt(),Er("@dash0/error",e)&&Dt(),Er("@dash0/fetch",e)&&(v&&v.fetch&&v.Request?oe(v,"fetch",jt):u("Browser does not support the Fetch API, skipping instrumentation")),mr=!0):i("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.")},debug:function(){u("Dash0 Web SDK configuration state:",ie)},identify:function(e,n){en(ie.signalAttributes,Ve),null!=e&&$e(ie.signalAttributes,Ve,e),en(ie.signalAttributes,Ue),null!=(null==n?void 0:n.name)&&$e(ie.signalAttributes,Ue,n.name),en(ie.signalAttributes,De),null!=(null==n?void 0:n.fullName)&&$e(ie.signalAttributes,De,n.fullName),en(ie.signalAttributes,Me),null!=(null==n?void 0:n.email)&&$e(ie.signalAttributes,Me,n.email),en(ie.signalAttributes,xe),null!=(null==n?void 0:n.hash)&&$e(ie.signalAttributes,xe,n.hash),en(ie.signalAttributes,Ge),null!=(null==n?void 0:n.roles)&&$e(ie.signalAttributes,Ge,n.roles)},terminateSession:function(){if(b)try{!function(e){b&&E&&E.removeItem(e)}(sn)}catch(e){o("Failed to terminate session",e)}},reportError:function(e,n){xn(e,n)},addSignalAttribute:function(e,n){$e(ie.signalAttributes,e,n)},removeSignalAttribute:function(e){en(ie.signalAttributes,e)},setActiveLogLevel:function(e){var n;r=null!==(n=t[e])&&void 0!==n?n:t.warn},sendEvent:function(e,n){if(Object.values(He).includes(e))i("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=[];Ln(t),$e(t,Ae,e),null!=n&&n.title&&$e(t,"dash0.web.event.title",n.title),Je(t,null==n?void 0:n.attributes),Te({timeUnixNano:null!=(null==n?void 0:n.timestamp)?k(n.timestamp):G(),attributes:t,body:Qe(null==n?void 0:n.data),severityText:null==n?void 0:n.severity,severityNumber:null!=n&&n.severity?We[n.severity]:void 0})}}};function gr(e){var n=e[0],t=yr[n];if(t){for(var r=[],o=1;o<e.length;o++)r.push(e[o]);t.apply(null,r)}else i("Unsupported Dash0 Web SDK api: ",e[0])}!function(){u("".concat("Initializing Dash0 Web SDK"," (via Script)"));var e=v.dash0;if(!e)return void i("global 'dash0' not found. Did you use the correct Dash0 Web SDK initializer?");if(!e._q)return void i("Dash0 Web SDK command queue not defined. Did you add the script tag multiple times to your website?");(function(e){for(var n=0,t=e.length;n<t;n++)gr(e[n])})(e._q),v.dash0=function(){return gr(arguments)}}()}();
1
+ !function(){"use strict";function e(){}function n(e){return e}var t={debug:0,info:1,warn:2,error:3},r=t.warn;var o=u("info"),i=u("warn"),a=u("error"),l=u("debug");function u(n){if("undefined"!=typeof console&&console[n]&&"function"==typeof console[n].apply){var o=t[n];return function(){o>=r&&console[n].apply(console,arguments)}}return e}var s=Object.prototype.hasOwnProperty;function c(e,n){return s.call(e,n)}var v="undefined"!=typeof window?window:void 0,d=null==v?void 0:v.document,f=null==v?void 0:v.navigator,p="undefined"!=typeof location?location:void 0,h=(null==v?void 0:v.performance)||(null==v?void 0:v.webkitPerformance)||(null==v?void 0:v.msPerformance)||(null==v?void 0:v.mozPerformance);null==v||v.encodeURIComponent;var E=null==v?void 0:v.fetch,_=function(){try{var e;return null!==(e=null==v?void 0:v.localStorage)&&void 0!==e?e:null}catch(e){return null}}(),m=function(){try{var e;return null!==(e=null==v?void 0:v.sessionStorage)&&void 0!==e?e:null}catch(e){return null}}(),y=Array(32);function T(e){for(var n=0;n<2*e;n++)y[n]=Math.floor(16*Math.random())+48,y[n]>=58&&(y[n]+=39);return String.fromCharCode.apply(null,y.slice(0,2*e))}function g(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on"+n,t)}var R=null!=_&&"function"==typeof _.getItem&&"function"==typeof _.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 I(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 C(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){I(i,r,o,a,l,"next",e)}function l(e){I(i,r,o,a,l,"throw",e)}a(void 0)}))}}function L(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function N(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,U(r.key),r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=M(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=U(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function A(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 V(){V=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",h="completed",E={};function _(){}function m(){}function y(){}var T={};s(T,a,(function(){return this}));var g=Object.getPrototypeOf,R=g&&g(g(P([])));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===h){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===E)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,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?h:f,s.arg===E)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,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")),E;var i=v(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,E;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,E):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,E)}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 P(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=P,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,E):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),E},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),E}},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:P(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),E}},n}function P(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)||M(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 w(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)||M(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 U(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 D(e){return D="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},D(e)}function M(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 G(){return(new Date).getTime()}function B(){var e=k(),n=new Date;if(e){var t=h.now()+e,r=n.getTime();if(Math.abs(t-r)<6e4)return String(1e6*t)}return x(n)}function x(e){return"object"===D(e)?x(e.getTime()):String(e)+"000000"}function k(){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 F={setTimeout:null==v?void 0:v.setTimeout,clearTimeout:null==v?void 0:v.clearTimeout,setInterval:null==v?void 0:v.setInterval,clearInterval:null==v?void 0:v.clearInterval},j=null!=v&&null!=v.Zone&&null!=v.Zone.root&&"function"==typeof v.Zone.root.run;function H(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return X.apply("setTimeout",arguments)}function W(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return X.apply("clearTimeout",arguments)}function Y(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return X.apply("setInterval",arguments)}function X(){var e,n=this;if(j)try{var t=Array.prototype.slice.apply(arguments);return v.Zone.root.run(F[n],v,t)}catch(e){i("Failed to execute %s inside of zone (via Zone.js). Falling back to execution inside currently active zone.",n,e)}return null===(e=F[n])||void 0===e?void 0:e.apply(v,arguments)}j&&l("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");h&&h.getEntriesByType;var q=h&&"function"==typeof v.PerformanceObserver&&"function"==typeof h.now,z=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 Q(n){if(!q)return function(n){var t=0;return{start:function(){t=G()},end:function(){return n({duration:G()-t})},cancel:e}}(n.onEnd);var t,r,o,i,a,l=[];return{start:function(){t=h.now();try{var e,n=null==v?void 0:v.PerformanceObserver;if(n)null===(e=o=new n(s))||void 0===e||e.observe({type:"resource"})}catch(e){}a=H(f,6e5)},end:function(e){if(r)return;if(r=null!=e?e:h.now(),p(),!Z())return u();H((function(){return u()}),Math.min(300,n.maxWaitForResourceMillis)),g(d,"visibilitychange",c),i=H(u,n.maxWaitForResourceMillis)},cancel:f};function u(){f();var e=function(){if(!l.length)return;var e,o,i=l.filter((function(e){return e.responseEnd<=r+n.maxToleranceForResourceTimingsMillis&&!K.has(e)}));if(!i.length)return;1===i.length&&(e=i[0]);if(!e){var a,u=S(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,e=s)}}catch(e){u.e(e)}finally{u.f()}}if(!e)return;return K.add(e),e}();null!=e&&e.duration&&e.duration<864e5?n.onEnd({resource:e,duration:e.duration}):n.onEnd({resource:e,duration:r-t})}function s(e){e.getEntriesByType("resource").filter((function(e){var r=e;return r.startTime>=t&&n.resourceMatcher(r)})).forEach((function(e){l.length>=100&&l.shift(),l.push(e)}))}function c(){Z()||u()}function f(){!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(!d)return;e=d,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 Z(){return"visible"===(null==d?void 0:d.visibilityState)||"prerender"===(null==d?void 0:d.visibilityState)}var $="undefined";function J(e){return Math.round(100*e)/100}function ee(e){var n;return"string"!=typeof e?e:new URL(e,null!==(n=null==d?void 0:d.baseURI)&&void 0!==n?n:null==p?void 0:p.href)}function ne(e){try{return ee(e).origin===("undefined"!=typeof location?location.origin:void 0)}catch(e){return!1}}var te=/['"<>{};\x00-\x1F\x7F]/;var re=Symbol.for("INSTRUMENTED_BY_DASH0");function oe(e,n,t){var r=e[n];r?!0!==r[re]?(!function(e){e[re]=!0}(r),e[n]=t(r)):l("".concat(String(n)," has already been instrumented, skipping")):l("".concat(String(n)," is not defined, unable to instrument"))}for(var ie=new Uint32Array(256),ae=0;ae<256;ae++){for(var le=ae,ue=0;ue<8;ue++)le=1&le?3988292384^le>>>1:le>>>1;ie[ae]=le>>>0}function se(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^ie[255&(r^i)]}return(4294967295^r)>>>0}var ce={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:n,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},enableTransportCompression:!1,isSessionSampled:!0};function ve(e,n){for(var t=0,r=e.length;t<r;t++)if(e[t].test(n))return!0;return!1}var de="data:";function fe(e){return!e||(!(e=String(e))||(null==e.substring||e.substring(0,5).toLowerCase()===de||(!!function(e){for(var n=e.toLowerCase(),t=0,r=ce.endpoints.length;t<r;t++){var o=ce.endpoints[t];if(n.startsWith(o.url))return!0}return!1}(e)||ve(ce.ignoreUrls,e))))}var pe=!1;function he(e){var n,t,r=[];return t=o,pe&&t(),d&&v&&(g(d,"visibilitychange",(function(){"visible"!==d.visibilityState&&t()})),g(v,"pagehide",(function(){pe=!0,t()})),g(v,"beforeunload",(function(){pe=!0,t()}))),{send:function(t){"visible"===(null==d?void 0:d.visibilityState)?(r.push(t),r.length>=15?o():null==n&&(n=H(o,1e3))):e([t])}};function o(){null!=n&&(clearTimeout(n),n=null),r.length>0&&(e(r.slice()),r.length=0)}}var Ee=0,_e=0;function me(e,n){return ye.apply(this,arguments)}function ye(){return ye=C(V().mark((function n(t,r){var o,a,u,s;return V().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l("Transmitting telemetry to endpoints",r),o=JSON.stringify(r),a=o,u=new Blob([o]).size,s=!1,"undefined"==typeof CompressionStream||!ce.enableTransportCompression){n.next=11;break}return n.next=8,Te(o);case 8:a=n.sent,u=a.byteLength,s=!0;case 11:return n.next=13,Promise.all(ce.endpoints.map(function(){var n=C(V().mark((function n(r){var o,l,c;return V().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,(o=new URL(r.url)).pathname=o.pathname+(o.pathname.endsWith("/")?t.substring(1):t),l={"Content-Type":"application/json",Authorization:"Bearer ".concat(r.authToken)},r.dataset&&(l["Dash0-Dataset"]=r.dataset),s&&(l["Content-Encoding"]="gzip"),E){n.next=9;break}return i("Unable to send telemetry, fetch is not defined"),n.abrupt("return");case 9:return Ee+=u,_e++,n.next=13,E(o,{method:"POST",headers:l,body:a,keepalive:Ee<=6e4&&_e<=15});case 13:(c=n.sent).text().catch(e),c.ok||i("Failed to send telemetry to ".concat(o,": ").concat(c.status," ").concat(c.statusText)),n.next=21;break;case 18:n.prev=18,n.t0=n.catch(0),i("Error sending telemetry to ".concat(r.url).concat(t,":"),n.t0);case 21:return n.prev=21,Ee-=u,_e--,n.finish(21);case 25:case"end":return n.stop()}}),n,null,[[0,18,21,25]])})));return function(e){return n.apply(this,arguments)}}()));case 13:case"end":return n.stop()}}),n)}))),ye.apply(this,arguments)}function Te(e){return ge.apply(this,arguments)}function ge(){return(ge=C(V().mark((function e(n){var t,r,o;return V().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 Re,be=he((function(e){me("/v1/logs",{resourceLogs:[{resource:ce.resource,scopeLogs:[{scope:ce.scope,logRecords:e}]}]}).catch((function(e){a("Failed to transmit logs",e)}))})),Ie=he((function(e){me("/v1/traces",{resourceSpans:[{resource:ce.resource,scopeSpans:[{scope:ce.scope,spans:e}]}]}).catch((function(e){a("Failed to transmit spans",e)}))}));function Ce(){var e,n,t,r,o;return Re||(n=(e={maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}).maxCallsPerTenMinutes,t=e.maxCallsPerTenSeconds,r=0,o=0,Y((function(){r=0}),6e5),Y((function(){o=0}),1e4),Re=function(){return++r>n||++o>t}),Re()}function Le(e){ce.isSessionSampled&&(Ce()?l("Transport rate limit. Will not send item.",e):be.send(e))}function Ne(e){e&&ce.isSessionSampled&&(Ce()?l("Transport rate limit. Will not send item.",e):Ie.send(e))}var Se="service.name",Oe="service.namespace",Ae="service.version",Ve="deployment.environment.name",Pe="deployment.name",we="deployment.id",Ue="event.name",De="dash0.web.event.id",Me="page.load.id",Ge="user_agent.original",Be="user.id",xe="user.name",ke="user.full_name",Fe="user.email",je="user.hash",He="user.roles",We="exception.message",Ye="exception.type",Xe="exception.stacktrace",qe="url.full",ze={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error"},Ke={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},Qe=0,Ze=1,$e="pushState",Je="replaceState",en=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function nn(e){if(null!=e){var n={};return Array.isArray(e)?n.arrayValue={values:e.map((function(e){return nn(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"!==D(e))return!1;var n=Object.keys(e);return 1===n.length&&en.includes(n[0])}(e)?"object"===D(e)&&(n.kvlistValue={values:Object.entries(e).map((function(e){var n=P(e,2);return tn(n[0],n[1])}))}):n=e,n}}function tn(e,n){return{key:e,value:nn(n)}}function rn(e,n,t){n&&e.push(tn(n,t))}function on(e,n){n&&Object.entries(n).forEach((function(n){var t=P(n,2),r=t[0],o=t[1];return rn(e,r,o)}))}function an(e,n){var t=e.findIndex((function(e){return e.key===n}));-1!==t&&e.splice(t,1)}var ln="traceparent",un=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function sn(){var e,n,t=((null===(e=Array.from(null!==(n=null==d?void 0:d.getElementsByTagName("meta"))&&void 0!==n?n:[]).find((function(e){var n;return(null===(n=e.getAttribute("name"))||void 0===n?void 0:n.toLowerCase())===ln})))||void 0===e?void 0:e.content.trim())||"").match(un)||function(){var e=h.getEntriesByType("navigation")[0];if(!e)return"";if(!e.serverTiming)return"";return function(e){var n,t=S(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name===ln)return r.description.trim()}}catch(e){t.e(e)}finally{t.f()}return""}(e.serverTiming)}().match(un);if(t)return{traceId:t[1],spanId:t[2]}}function cn(e,n,t){e.call(n,"traceparent","00-".concat(t.traceId,"-").concat(t.spanId,"-01"))}function vn(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 dn=1;function fn(){var e,n;return"".concat((e={ephemeralSession:!R},n=0,e.ephemeralSession&&(n|=dn),n.toString(16).padStart(2,"0"))).concat(T(7))}var pn="d0_session",hn="#",En=864e5,_n=null;function mn(e,n){if(!R)return l("Storage API is not available and session tracking is therefore not supported."),void(_n=fn());e||(e=108e5),n||(n=216e5),e=Math.min(e,En),n=Math.min(n,En);try{var t=function(e){return R&&_?_.getItem(e):null}(pn),r=function(e){if(!e)return null;var n=e.split(hn);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=G()-n;if(e.lastActivityTime<r)return!1;var o=G()-t;return e.startTime>=o}(r,e,n)&&(r=null),r?r.lastActivityTime=G():r={id:fn(),startTime:G(),lastActivityTime:G()},function(e,n){R&&_&&_.setItem(e,n)}(pn,function(e){return e.id+hn+e.startTime+hn+e.lastActivityTime}(r)),_n=r.id}catch(e){i("Failed to record session information",e)}}var yn="d042",Tn=1;function gn(e){var n=0;return e.withoutSession&&(n|=Tn),n.toString(16).padStart(2,"0")}function Rn(e){var n=function(e){return e?"".concat(yn).concat(gn({withoutSession:!1})).concat(e).concat(T(5)):"".concat(yn).concat(gn({withoutSession:!0})).concat(T(13))}(_n),t=function(e){var n=se(e).toString(16).padStart(8,"0");return"".concat(n).concat(T(4))}(n),r=[];return rn(r,De,t),{traceId:n,spanId:t,name:e,kind:3,startTimeUnixNano:B(),attributes:r,events:[],links:[],status:{code:0}}}function bn(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)):B(),r;l("Attempting to end already ended span. Dropping...",r)}function In(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:B(),attributes:null!=i?i:[]})}function Cn(e,t,r){var o=function(e){return e?Array.isArray(e)?function(n){return[].concat(w(e),[n]).join(".")}:function(n){return"".concat(e,".").concat(n)}:function(e){return e}}(r);try{var i=ee(t);i.username&&(i.username="REDACTED"),i.password&&(i.password="REDACTED");var a=ce.urlAttributeScrubber(O(O(O(O(O(O({},qe,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=P(n,2),r=t[0],i=t[1];void 0!==i&&rn(e,o(r),i)}))}catch(r){ce.urlAttributeScrubber===n&&rn(e,o(qe),String(t))}}var Ln=null!=m&&"function"==typeof m.getItem&&"function"==typeof m.setItem;var Nn="d0_tab",Sn=null;function On(){if(Ln)try{var e=function(e){return Ln&&m?m.getItem(e):null}(Nn);if(e)return void(Sn=e);Sn=T(8),function(e,n){Ln&&m&&m.setItem(e,n)}(Nn,Sn)}catch(e){i("Failed to record tab ID information",e)}else l("Storage API is not available and tab tracking is therefore not supported.")}function An(e,n){var t,r,o,i,a;void 0===e.find((function(e){return e.key===De}))&&rn(e,De,T(8));for(var l=0;l<ce.signalAttributes.length;l++)e.push(ce.signalAttributes[l]);Cn(e,null!==(t=null!==(r=null==n?void 0:n.url)&&void 0!==r?r:null==v?void 0:v.location.href)&&void 0!==t?t:$,"page"),_n&&rn(e,"session.id",_n),Sn&&rn(e,"browser.tab.id",Sn),rn(e,"browser.window.width",null!==(o=null==v?void 0:v.innerWidth)&&void 0!==o?o:$),rn(e,"browser.window.height",null!==(i=null==v?void 0:v.innerHeight)&&void 0!==i?i:$);var u=null==f||null===(a=f.connection)||void 0===a?void 0:a.effectiveType;u&&rn(e,"network.connection.subtype",u)}var Vn,Pn=0,wn=0,Un={},Dn=!1;function Mn(){Dn=!0}function Gn(e,n){e&&Bn("string"==typeof e?{message:e,opts:n}:{message:e.message,type:e.name,stack:e.stack,opts:n})}function Bn(e){var n=e.message,t=e.type,r=e.stack,o=e.opts;if(n&&!(Pn>100)&&!function(e){return!e||ve(ce.ignoreErrorMessages,e)}(n)){wn>=20&&(Un={},wn=0);var i=(n=String(n).substring(0,300))+(r=function(e){return String(e||"").split("\n").slice(0,30).join("\n")}(r))+(null==v?void 0:v.location.href),a=Un[i];if(a)a.seenCount++;else{var l=[];An(l),rn(l,Ue,ze.ERROR),rn(l,We,n),t&&rn(l,Ye,t),r&&rn(l,Xe,r),null!=o&&o.componentStack&&rn(l,"exception.component_stack",null==o?void 0:o.componentStack.substring(0,2048)),on(l,null==o?void 0:o.attributes),a={seenCount:1,transmittedCount:0,log:{timeUnixNano:B(),attributes:l,severityNumber:Ke.ERROR,severityText:"ERROR",body:{stringValue:n}}},Un[i]=a,wn++}!function(){if(Vn)return;Vn=setTimeout(xn,1e3)}()}}function xn(){for(var e in Vn&&(clearTimeout(Vn),Vn=null),Un)if(c(Un,e)){var n=Un[e];n.seenCount>n.transmittedCount&&(Le(n.log),Pn++)}Un={},wn=0}var kn=-1,Fn=function(e){addEventListener("pageshow",(function(n){n.persisted&&(kn=n.timeStamp,e(n))}),!0)},jn=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)))}},Hn=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Wn=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Yn=function(){var e,n=Wn();return null!==(e=null==n?void 0:n.activationStart)&&void 0!==e?e:0},Xn=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,t=Wn(),r="navigate";return kn>=0?r="back-forward-cache":t&&(document.prerendering||Yn()>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}},qn=new WeakMap;function zn(e,n){return qn.get(e)||qn.set(e,new n),qn.get(e)}var Kn,Qn=function(){return N((function e(){L(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)}}}])}(),Zn=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?A(Object(t),!0).forEach((function(n){O(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({type:e,buffered:!0},t)),r}}catch(e){}},$n=function(e){var n=!1;return function(){n||(e(),n=!0)}},Jn=-1,et=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},nt=function(e){"hidden"===document.visibilityState&&Jn>-1&&(Jn="visibilitychange"===e.type?e.timeStamp:0,rt())},tt=function(){addEventListener("visibilitychange",nt,!0),addEventListener("prerenderingchange",nt,!0)},rt=function(){removeEventListener("visibilitychange",nt,!0),removeEventListener("prerenderingchange",nt,!0)},ot=function(){if(Jn<0){var e,n=Yn(),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;Jn=null!=t?t:et(),tt(),Fn((function(){setTimeout((function(){Jn=et(),tt()}))}))}return{get firstHiddenTime(){return Jn}}},it=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},at=[1800,3e3],lt=[.1,.25],ut=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]:{};it((function(){var t,r=ot(),o=Xn("FCP"),i=Zn("paint",(function(e){var n,a=S(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-Yn(),0),o.entries.push(l),t(!0)))}}catch(e){a.e(e)}finally{a.f()}}));i&&(t=jn(e,o,at,n.reportAllChanges),Fn((function(r){o=Xn("FCP"),t=jn(e,o,at,n.reportAllChanges),Hn((function(){o.value=performance.now()-r.timeStamp,t(!0)}))})))}))}($n((function(){var t,r=Xn("CLS",0),o=zn(n,Qn),i=function(e){var n,i=S(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=Zn("layout-shift",i);a&&(t=jn(e,r,lt,n.reportAllChanges),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(i(a.takeRecords()),t(!0))})),Fn((function(){o.i=0,r=Xn("CLS",0),t=jn(e,r,lt,n.reportAllChanges),Hn((function(){return t()}))})),setTimeout(t))})))},st=0,ct=1/0,vt=0,dt=function(e){var n,t=S(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;r.interactionId&&(ct=Math.min(ct,r.interactionId),vt=Math.max(vt,r.interactionId),st=vt?(vt-ct)/7+1:0)}}catch(e){t.e(e)}finally{t.f()}},ft=function(){var e;return Kn?st:null!==(e=performance.interactionCount)&&void 0!==e?e:0},pt=0,ht=function(){return N((function e(){L(this,e),O(this,"u",[]),O(this,"l",new Map),O(this,"m",void 0),O(this,"v",void 0)}),[{key:"p",value:function(){pt=ft(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((ft()-pt)/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=S(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)}}}}])}(),Et=function(e){var n=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=$n(e),document.addEventListener("visibilitychange",e,{once:!0}),n((function(){e(),document.removeEventListener("visibilitychange",e)})))},_t=[200,500],mt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&it((function(){var t;"interactionCount"in performance||Kn||(Kn=Zn("event",dt,{type:"event",buffered:!0,durationThreshold:0}));var r,o=Xn("INP"),i=zn(n,ht),a=function(e){Et((function(){var n,t=S(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=Zn("event",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=jn(e,o,_t,n.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(a(l.takeRecords()),r(!0))})),Fn((function(){i.p(),o=Xn("INP"),r=jn(e,o,_t,n.reportAllChanges)})))}))},yt=function(){return N((function e(){L(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)}}])}(),Tt=[2500,4e3];function gt(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};it((function(){var t,r=ot(),o=Xn("LCP"),i=zn(n,yt),a=function(e){n.reportAllChanges||(e=e.slice(-1));var a,l=S(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-Yn(),0),o.entries=[u],t())}}catch(e){l.e(e)}finally{l.f()}},l=Zn("largest-contentful-paint",a);if(l){t=jn(e,o,Tt,n.reportAllChanges);for(var u=$n((function(){a(l.takeRecords()),l.disconnect(),t(!0)})),s=0,c=["keydown","click","visibilitychange"];s<c.length;s++)addEventListener(c[s],(function(){return Et(u)}),{capture:!0,once:!0});Fn((function(r){o=Xn("LCP"),t=jn(e,o,Tt,n.reportAllChanges),Hn((function(){o.value=performance.now()-r.timeStamp,t(!0)}))}))}}))}(Rt,{reportAllChanges:!0}),mt(Rt,{reportAllChanges:!0}),ut(Rt,{reportAllChanges:!0})}function Rt(e){var n=[];rn(n,Ue,ze.WEB_VITAL);var t=[];rn(t,"name",e.name),rn(t,"value",J(e.value)),rn(t,"delta",J(e.delta));var r={timeUnixNano:B(),attributes:n,severityNumber:Ke.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};An(r.attributes),Le(r)}var bt="Unhandled promise rejection: ",It="<unavailable because Promise wasn't rejected with an Error object>";function Ct(e){null==e.reason?Gn({message:bt+"<no reason defined>",stack:It}):"string"==typeof e.reason.message?Gn({message:bt+e.reason.message,stack:"string"==typeof e.reason.stack?e.reason.stack:It}):"object"!==D(e.reason)&&Gn({message:bt+e.reason,stack:It})}var Lt="__dash0OriginalFunctions";function Nt(e,n){for(var t=e[Lt],r=0;r<t.length;r++){if(St(t[r].valuesForEqualityCheck,n))return r}return-1}function St(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 Ot(e,n,t,r,o){return function(e,n,t){if(!e)return n;var r=e[Lt]=e[Lt]||[],o=Nt(e,t);return-1!==o?r[o].wrappedFunction:(r.push({wrappedFunction:n,valuesForEqualityCheck:t}),n)}(e,n,At(t,r,o))}function At(e,n,t){return[e,n,Vt(t)]}function Vt(e){return null!=e&&("object"===D(e)?Boolean(e.capture):Boolean(e))}function Pt(e,n,t,r,o){return function(e,n,t){var r=null==e?void 0:e[Lt];if(null==r)return t;var o=Nt(e,n);if(-1===o)return t;var i=r[o];return r.splice(o,1),i.wrappedFunction}(e,At(n,t,r),o)}function wt(){ce.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 Gn(e),Mn(),e}},o[1]=Ot(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]=Pt(this,e,n,r,n),t.apply(this,o)}}(null==v?void 0:v.EventTarget)}function Ut(e){var n=null==v?void 0:v[e];"function"==typeof n&&(v[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),Mn(),e}}}(e),n.apply(this,t)})}function Dt(){!function(){if(v){var e=v.onerror;v.onerror=function(n,t,r,o,i){if(Dn)return Dn=!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)),Bn({message:String(n),stack:a}),"function"==typeof e?e.apply(this,arguments):void 0}}}(),"function"==typeof(null==v?void 0:v.addEventListener)&&v.addEventListener("unhandledrejection",Ct),wt(),function(){if(ce.wrapTimers){if(j)return void i("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");Ut("setTimeout"),Ut("setInterval")}}()}var Mt=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"];function Gt(e){return Mt.includes(e)}function Bt(e,n){var t=0!==n.startTime;xt(e,z.FETCH_START,n,t),xt(e,z.DOMAIN_LOOKUP_START,n,t),xt(e,z.DOMAIN_LOOKUP_END,n,t),xt(e,z.CONNECT_START,n,t),xt(e,z.SECURE_CONNECTION_START,n,t),xt(e,z.CONNECT_END,n,t),xt(e,z.REQUEST_START,n,t),xt(e,z.RESPONSE_START,n,t),xt(e,z.RESPONSE_END,n,t)}function xt(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]||In(e,n,(r=t[n],String(Math.round(1e6*(r+k())))))}function kt(e,n){var t=n.encodedBodySize;null!=t&&rn(e.attributes,"http.response.body.size",t)}function Ft(e){return function(){var n=C(V().mark((function n(t,r){var o,i,a,u,s,c,v,d,f,p,h,E,_,m,y,T;return V().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=r?Object.assign({},r):r,u=null,null!==(o=a)&&void 0!==o&&o.body&&(u=a.body,a.body=void 0),s=new Request(t,a),u&&a&&(a.body=u),!fe(c=s.url)){n.next=9;break}return l("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=Gt(v),f=Gt(v.toUpperCase()),p=f?v.toUpperCase():"_OTHER",An((h=Rn("HTTP ".concat(p))).attributes),Cn(h.attributes,c),jt(t,r),rn(h.attributes,"http.request.method",p),d||rn(h.attributes,"http.request.method_original",v),E=zt(c),E.length>0&&(null!==(_=a)&&void 0!==_&&_.headers?(a.headers=new Headers(a.headers),Kt(a.headers.append,a.headers,h,E)):t instanceof Request?Kt(s.headers.append,s.headers,h,E):(a||(a={}),a.headers=new Headers,Kt(a.headers.append,a.headers,h,E))),Ht(s.headers,h,(function(e){return n=e,"".concat("http.request.header",".").concat(n.toLowerCase());var n})),(m=Q({resourceMatcher:function(e){var n=e.initiatorType,t=e.name;return("fetch"===n||"xmlhttprequest"===n)&&t===ee(c).href},maxWaitForResourceMillis:ce.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:ce.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,t=e.resource;t&&(Bt(h,t),kt(h,t)),Ne(bn(h,void 0,1e6*n))}})).start(),n.prev=25,n.next=28,e(t instanceof Request?s:t,a);case 28:return y=n.sent,Wt(h,y),n.abrupt("return",Yt(y,ce.maxToleranceForResourceTimingsMillis,(function(){return m.end()}),(function(e){var n;m.cancel(),null!==(n=s.signal)&&void 0!==n&&n.aborted?qt(h):Xt(h,e)})));case 33:throw n.prev=33,n.t0=n.catch(25),m.cancel(),null!==(T=s.signal)&&void 0!==T&&T.aborted?qt(h):Xt(h,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 jt(e,n,t){try{return void 0}catch(t){l("failed to analyze request for GraphQL insights",t,e,n)}}function Ht(e,n,t){try{if(!ce.headersToCapture.length)return;e.forEach((function(e,r){ce.headersToCapture.some((function(e){return e.test(r)}))&&rn(n.attributes,t(r),e)}))}catch(e){l("unable to capture http headers due to CORS policy")}}function Wt(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&&rn(e.attributes,"error.type",n.type),rn(e.attributes,"http.response.status_code",String(t)),Ht(n.headers,e,(function(e){return n=e,"".concat("http.response.header",".").concat(n.toLowerCase());var n}))}function Yt(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=H((function(){return s(a)}),n),d=l.getReader(),f=new ReadableStream({pull:function(e){return C(V().mark((function t(){var r,o;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,W(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=H((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 W(v),s(),d.cancel(e)}});return new Response(f,{status:e.status,statusText:e.statusText,headers:e.headers})}function Xt(e,n){!function(e,n){var t=[];"string"==typeof n?rn(t,We,n):n&&(n.code?rn(t,Ye,n.code.toString()):n.name&&rn(t,Ye,n.name),n.message&&rn(t,We,n.message),n.stack&&rn(t,Xe,n.stack),In(e,"exception",t))}(e,n),Ne(bn(e,function(e){return{code:2,message:e&&"object"===D(e)&&"message"in e?e.message:String(e)}}(n),void 0))}function qt(e){rn(e.attributes,"dash0.web.request.cancelled",!0),Ne(bn(e,void 0,void 0))}function zt(e){var n=[];if(ne(e)){if(n.push("traceparent"),ce.propagators){var t,r=S(ce.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(ce.propagators){var i,a=S(ce.propagators);try{for(a.s();!(i=a.n()).done;){var l=i.value;ve(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=S(r);try{for(i.s();!(o=i.n()).done;){"xray"===o.value?vn(e,n,t):cn(e,n,t)}}catch(e){i.e(e)}finally{i.f()}}function Qt(e,n,t,r){var o,i,a=function(e){var n,t,r;return e&&null!==(n=null===(t=(r=ce.pageViewInstrumentation).generateMetadata)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:{}}(n),l=[];rn(l,Ue,ze.PAGE_VIEW),a.attributes&&Object.entries(a.attributes).forEach((function(e){var n=P(e,2),t=n[0],r=n[1];return rn(l,t,r)})),An(l,{url:n});var u=[];rn(u,"title",null!==(o=null!==(i=a.title)&&void 0!==i?i:null==d?void 0:d.title)&&void 0!==o?o:$),null!=d&&d.referrer&&rn(u,"referrer",d.referrer),rn(u,"type",t?Ze:Qe),rn(u,"change_state",r?Je:$e);var s={timeUnixNano:e,attributes:l,severityNumber:Ke.INFO,severityText:"INFO",body:{kvlistValue:{values:u}}},c=sn();c&&(s.traceId=c.traceId,s.spanId=c.spanId),Le(s)}function Zt(){var e=null==v?void 0:v.performance.getEntriesByType("navigation")[0];if(e){var n=[];rn(n,Ue,ze.NAVIGATION_TIMING);var t=[];rn(t,"name",e.name),$t(t,e,"responseStatus"),$t(t,e,"fetchStart"),$t(t,e,"requestStart"),$t(t,e,"responseStart"),$t(t,e,"domInteractive"),$t(t,e,"domContentLoadedEventEnd"),$t(t,e,"domComplete"),$t(t,e,"loadEventEnd"),$t(t,e,"transferSize"),$t(t,e,"encodedBodySize"),$t(t,e,"decodedBodySize");var r={timeUnixNano:Jt(),attributes:n,severityNumber:Ke.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};An(r.attributes);var o=sn();o&&(r.traceId=o.traceId,r.spanId=o.spanId),Le(r)}else l("Navigation timings not available. Cannot emit navigation timing log")}function $t(e,n,t){var r=n[t];"number"!=typeof r||isNaN(r)||rn(e,t,Number.isInteger(r)?r:J(r))}function Jt(){return x(Math.round(k()))}var er={},nr=!1,tr=!1;function rr(){ir(null==v?void 0:v.location.href)}function or(e){ir(e.newURL)}function ir(e,n){var t;if(e)try{var r=new URL(e,null==v?void 0:v.location.href);((t=r).pathname!==er.path||tr&&t.search!==er.search||nr&&t.hash!==er.hash)&&(ar(r),Qt(B(),r,!0,Boolean(n)))}catch(e){l("Failed to handle url change",e)}}function ar(e){er.path=e.pathname,er.search=e.search,er.hash=e.hash}function lr(){!function(){try{Qt(Jt(),null!=v&&v.location.href?new URL(null==v?void 0:v.location.href):void 0)}catch(e){a("Failed to transmit initial page view event",e)}if("complete"===(null==d?void 0:d.readyState))return Zt();v&&g(v,"load",(function(){setTimeout(Zt,0)}))}(),function(){var e,n,t,r;if(v&&v.history){if(ce.pageViewInstrumentation.trackVirtualPageViews){tr=null!==(e=null===(n=ce.pageViewInstrumentation.includeParts)||void 0===n?void 0:n.includes("SEARCH"))&&void 0!==e&&e,nr=null!==(t=null===(r=ce.pageViewInstrumentation.includeParts)||void 0===r?void 0:r.includes("HASH"))&&void 0!==t&&t,oe(v.history,"replaceState",(function(e){return function(n,t,r){return ir(r?String(r):void 0,!0),e.apply(this,[n,t,r])}})),oe(v.history,"pushState",(function(e){return function(n,t,r){return ir(r?String(r):void 0),e.apply(this,[n,t,r])}})),v.addEventListener("hashchange",or),v.addEventListener("popstate",rr);try{ar(new URL(v.location.href))}catch(e){}}}else l("Browser does not support history API, skipping instrumentation")}()}var ur=function(e){if("object"===D(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},sr=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]=sr.options.mergeArrays?sr.options.uniqueArrayItems?Array.from(new Set(e[t].concat(n[t]))):[].concat(w(e[t]),w(n[t])):n[t]:ur(e[t])&&ur(n[t])?e[t]=sr(e[t],n[t]):!ur(e[t])&&ur(n[t])?e[t]=sr(n[t],void 0):e[t]=void 0===n[t]?sr.options.allowUndefinedOverrides?n[t]:e[t]:n[t])})),e}),{})},cr={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};function vr(){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}}sr.options=cr,sr.withOptions=function(e){sr.options=Object.assign(Object.assign({},cr),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=sr.apply(void 0,t);return sr.options=cr,o};var dr={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 fr(e){for(var n=function(e){var n,t,r,o,i,a,l,u,s,c,v,d,f,p,h,E=null!==(n=e.vcs)&&void 0!==n?n:{};if(e.disableVcsDetection)return E;var _=function(){var e,n,t,r,o,i;try{var a,l,u,s,c,v,d,f,p,h,E,_,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,K,Q,Z,$,J,ee,ne,te,re,oe,ie,ae,le,ue,se,ce,ve;e=vr(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===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.SANITY_STUDIO_VERCEL_GIT_PROVIDER),n=vr(null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.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=vr(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=vr(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=vr(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===(K=process)||void 0===K||null===(K=K.env)||void 0===K?void 0:K.REACT_APP_VERCEL_GIT_COMMIT_SHA,null===(Q=process)||void 0===Q||null===(Q=Q.env)||void 0===Q?void 0:Q.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=vr(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:pr(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,h,E,_,m,y,T,g,R,b,I,C,L,N,S,O,A,V,w,U,D,M,G,B,x,k,F,j,H,W;e=vr(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=vr(null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.NEXT_PUBLIC_BRANCH,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.NUXT_PUBLIC_BRANCH,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.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=vr(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===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.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=vr(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=P(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=E.providerName)&&void 0!==r?r:_.providerName)&&void 0!==t?t:m.providerName,ownerName:null!==(o=null!==(i=E.ownerName)&&void 0!==i?i:_.ownerName)&&void 0!==o?o:m.ownerName,repositoryName:null!==(a=null!==(l=E.repositoryName)&&void 0!==l?l:_.repositoryName)&&void 0!==a?a:m.repositoryName,repositoryUrlFull:null!==(u=null!==(s=E.repositoryUrlFull)&&void 0!==s?s:_.repositoryUrlFull)&&void 0!==u?u:m.repositoryUrlFull,refHeadName:null!==(c=null!==(v=E.refHeadName)&&void 0!==v?v:_.refHeadName)&&void 0!==c?c:m.refHeadName,refHeadRevision:null!==(d=null!==(f=E.refHeadRevision)&&void 0!==f?f:_.refHeadRevision)&&void 0!==d?d:m.refHeadRevision,changeId:null!==(p=null!==(h=E.changeId)&&void 0!==h?h:_.changeId)&&void 0!==p?p:m.changeId}}(e),t=0,r=Object.keys(dr);t<r.length;t++){var o=r[t],i=n[o];i&&rn(ce.resource.attributes,dr[o],i)}}function pr(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 Er=!1;function _r(e,n){var t=n.enabledInstrumentations;return!t||t.includes(e)}var mr={init:function(e){if(Er)l("Dash0 SDK is being reinitialized, skipping ...");else if(null!=v)if("function"==typeof E&&h&&h.getEntriesByType){var n,t,r=e.serviceName.trim();if(r){if(!1!==e.rejectSuspiciousServiceName&&(t=r,te.test(t))){var o;l("serviceName contains disallowed characters. Falling back to location.hostname."),e.serviceName=null!==(o=null==p?void 0:p.hostname)&&void 0!==o?o:"unknown"}}else l("Missing or empty serviceName value. Falling back to location.hostname."),e.serviceName=null!==(n=null==p?void 0:p.hostname)&&void 0!==n?n:"unknown";if(ce.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],0!==ce.endpoints.length){if(Object.assign(ce,sr(ce,function(e,n){var t,r={},o=S(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&&i("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),ce.propagators=e.propagators):e.propagateTraceHeadersCorsURLs&&e.propagateTraceHeadersCorsURLs.length>0?(i("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),ce.propagators=[{type:"traceparent",match:w(e.propagateTraceHeadersCorsURLs)}]):ce.propagators=[{type:"traceparent",match:[]}]}(e),function(e){rn(ce.resource.attributes,Se,e.serviceName),e.serviceNamespace&&rn(ce.resource.attributes,Oe,e.serviceNamespace);e.serviceVersion&&rn(ce.resource.attributes,Ae,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 vr(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&&rn(ce.resource.attributes,Ve,n);var t=function(e){if(e.deploymentName)return e.deploymentName;try{var n,t,r,o,i,a,l,u,s,c;return vr(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&&rn(ce.resource.attributes,Pe,t);var r=function(e){if(e.deploymentId)return e.deploymentId;try{var n,t,r,o,i,a,l,u,s,c;return vr(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&&rn(ce.resource.attributes,we,r);fr(e)}(e),function(e){var n;rn(ce.signalAttributes,Me,T(16)),rn(ce.signalAttributes,Ge,null!==(n=null==f?void 0:f.userAgent)&&void 0!==n?n:$),e.additionalSignalAttributes&&Object.entries(e.additionalSignalAttributes).forEach((function(e){var n=P(e,2),t=n[0],r=n[1];rn(ce.signalAttributes,t,r)}))}(e),On(),mn(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),null!=e.sessionSamplingRate){var a=Math.max(0,Math.min(100,e.sessionSamplingRate));ce.isSessionSampled=null!=_n?function(e,n){return!(n<=0)&&(n>=100||se(e)%100<n)}(_n,a):a>0}if(!ce.isSessionSampled)return l("Session is not sampled. No telemetry will be transmitted for this session."),void(Er=!0);_r("@dash0/navigation",e)&&lr(),_r("@dash0/web-vitals",e)&&gt(),_r("@dash0/error",e)&&Dt(),_r("@dash0/fetch",e)&&(v&&v.fetch&&v.Request?oe(v,"fetch",Ft):l("Browser does not support the Fetch API, skipping instrumentation")),Er=!0}else i("No telemetry endpoint configured. Aborting Dash0 Web SDK initialization process.")}else l("Stopping Dash0 Web SDK initialization. This browser does not support the necessary APIs.");else l("Looks like we are not running in a browser context. Stopping Dash0 Web SDK initialization.")},debug:function(){l("Dash0 Web SDK configuration state:",ce)},identify:function(e,n){an(ce.signalAttributes,Be),null!=e&&rn(ce.signalAttributes,Be,e),an(ce.signalAttributes,xe),null!=(null==n?void 0:n.name)&&rn(ce.signalAttributes,xe,n.name),an(ce.signalAttributes,ke),null!=(null==n?void 0:n.fullName)&&rn(ce.signalAttributes,ke,n.fullName),an(ce.signalAttributes,Fe),null!=(null==n?void 0:n.email)&&rn(ce.signalAttributes,Fe,n.email),an(ce.signalAttributes,je),null!=(null==n?void 0:n.hash)&&rn(ce.signalAttributes,je,n.hash),an(ce.signalAttributes,He),null!=(null==n?void 0:n.roles)&&rn(ce.signalAttributes,He,n.roles)},terminateSession:function(){if(R)try{!function(e){R&&_&&_.removeItem(e)}(pn)}catch(e){o("Failed to terminate session",e)}},reportError:function(e,n){Gn(e,n)},addSignalAttribute:function(e,n){rn(ce.signalAttributes,e,n)},removeSignalAttribute:function(e){an(ce.signalAttributes,e)},setActiveLogLevel:function(e){var n;r=null!==(n=t[e])&&void 0!==n?n:t.warn},sendEvent:function(e,n){if(Object.values(ze).includes(e))i("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=[];An(t),rn(t,Ue,e),null!=n&&n.title&&rn(t,"dash0.web.event.title",n.title),on(t,null==n?void 0:n.attributes),Le({timeUnixNano:null!=(null==n?void 0:n.timestamp)?x(n.timestamp):B(),attributes:t,body:nn(null==n?void 0:n.data),severityText:null==n?void 0:n.severity,severityNumber:null!=n&&n.severity?Ke[n.severity]:void 0})}}};function yr(e){var n=e[0],t=mr[n];if(t){for(var r=[],o=1;o<e.length;o++)r.push(e[o]);t.apply(null,r)}else i("Unsupported Dash0 Web SDK api: ",e[0])}!function(){l("".concat("Initializing Dash0 Web SDK"," (via Script)"));var e=v.dash0;if(!e)return void i("global 'dash0' not found. Did you use the correct Dash0 Web SDK initializer?");if(!e._q)return void i("Dash0 Web SDK command queue not defined. Did you add the script tag multiple times to your website?");(function(e){for(var n=0,t=e.length;n<t;n++)yr(e[n])})(e._q),v.dash0=function(){return yr(arguments)}}()}();
2
2
  //# sourceMappingURL=dash0.iife.js.map