@dash0/sdk-web 0.25.0 → 0.26.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.
@@ -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=s("info"),i=s("warn"),a=s("error"),l=s("debug");function s(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 u=Object.prototype.hasOwnProperty;function c(e,n){return u.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}}(),_=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 y(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)}function R(e,n,t){e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent&&e.detachEvent("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 C(e,n,t,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).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){C(i,r,o,a,l,"next",e)}function l(e){C(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,M(r.key),r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=k(e))||n){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw i}}}}function A(e,n,t){return(n=M(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function V(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?V(Object(t),!0).forEach((function(n){A(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function P(){P=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,n,t){e[n]=t.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{u({},"")}catch(e){u=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),l=new A(r||[]);return o(a,"_invoke",{value:S(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",m={};function E(){}function _(){}function g(){}var y={};u(y,a,(function(){return this}));var T=Object.getPrototypeOf,R=T&&T(T(V([])));R&&R!==t&&r.call(R,a)&&(y=R);var b=g.prototype=E.prototype=Object.create(y);function I(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function C(e,n){function t(o,i,a,l){var s=v(e[o],e,i);if("throw"!==s.type){var u=s.arg,c=u.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){u.value=e,a(u)}),(function(e){return t("throw",e,a,l)}))}l(s.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 S(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 s=L(l,r);if(s){if(s===m)continue;return s}}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 u=v(n,t,r);if("normal"===u.type){if(o=r.done?h:f,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function L(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,L(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 O(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function V(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(typeof n+" is not iterable")}return _.prototype=g,o(b,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:_,configurable:!0}),_.displayName=u(g,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===_||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},I(C.prototype),u(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),u(b,s,"Generator"),u(b,a,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=V,A.prototype={constructor:A,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return l.type="throw",l.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)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),O(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;O(t)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:V(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),m}},n}function U(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(s=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,n)||k(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}function x(e){return x="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},x(e)}function k(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 G(){return(new Date).getTime()}function B(){var e=H(),n=new Date;if(e){var t=h.now()+e,r=n.getTime();if(Math.abs(t-r)<6e4)return String(1e6*t)}return F(n)}function F(e){return"object"===x(e)?F(e.getTime()):String(e)+"000000"}function H(){var e,n=null==h?void 0:h.timeOrigin;"number"!=typeof n&&(n=null==h||null===(e=h.timing)||void 0===e?void 0:e.fetchStart);return n}var j={setTimeout:null==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},W=null!=v&&null!=v.Zone&&null!=v.Zone.root&&"function"==typeof v.Zone.root.run;function X(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("setTimeout",arguments)}function q(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("clearTimeout",arguments)}function Y(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("setInterval",arguments)}function z(){var e,n=this;if(W)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)}W&&l("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");h&&h.getEntriesByType;var K=h&&"function"==typeof v.PerformanceObserver&&"function"==typeof h.now,Q=Object.freeze({CONNECT_END:"connectEnd",CONNECT_START:"connectStart",DECODED_BODY_SIZE:"decodedBodySize",DOM_COMPLETE:"domComplete",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_INTERACTIVE:"domInteractive",DOMAIN_LOOKUP_END:"domainLookupEnd",DOMAIN_LOOKUP_START:"domainLookupStart",ENCODED_BODY_SIZE:"encodedBodySize",FETCH_START:"fetchStart",LOAD_EVENT_END:"loadEventEnd",LOAD_EVENT_START:"loadEventStart",NAVIGATION_START:"navigationStart",REDIRECT_END:"redirectEnd",REDIRECT_START:"redirectStart",REQUEST_START:"requestStart",RESPONSE_END:"responseEnd",RESPONSE_START:"responseStart",SECURE_CONNECTION_START:"secureConnectionStart",START_TIME:"startTime",UNLOAD_EVENT_END:"unloadEventEnd",UNLOAD_EVENT_START:"unloadEventStart"}),Z=new WeakSet;function $(n){if(!K)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(u))||void 0===e||e.observe({type:"resource"})}catch(e){}a=X(f,6e5)},end:function(e){if(r)return;if(r=null!=e?e:h.now(),p(),!J())return s();X((function(){return s()}),Math.min(300,n.maxWaitForResourceMillis)),T(d,"visibilitychange",c),i=X(s,n.maxWaitForResourceMillis)},cancel:f};function s(){f();var e=function(){if(!l.length)return;var e,o,i=l.filter((function(e){return e.responseEnd<=r+n.maxToleranceForResourceTimingsMillis&&!Z.has(e)}));if(!i.length)return;1===i.length&&(e=i[0]);if(!e){var a,s=O(i);try{for(s.s();!(a=s.n()).done;){var u=a.value,c=Math.abs(r-t-u.duration)+Math.abs(u.responseEnd-r);(void 0===o||c<o)&&(o=c,e=u)}}catch(e){s.e(e)}finally{s.f()}}if(!e)return;return Z.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 u(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(){J()||s()}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;R(d,"visibilitychange",c)}()}function p(){a&&(clearTimeout(a),a=void 0)}}function J(){return"visible"===(null==d?void 0:d.visibilityState)||"prerender"===(null==d?void 0:d.visibilityState)}var ee="undefined";function ne(e){return Math.round(100*e)/100}function te(e){var n;return"string"!=typeof e?e:new URL(e,null!==(n=null==d?void 0:d.baseURI)&&void 0!==n?n:null==p?void 0:p.href)}function re(e){try{return te(e).origin===("undefined"!=typeof location?location.origin:void 0)}catch(e){return!1}}var oe=/['"<>{};\x00-\x1F\x7F]/;var ie=Symbol.for("INSTRUMENTED_BY_DASH0");function ae(e){e[ie]=!0}function le(e,n,t){var r=e[n];if(r)if(!0!==r[ie])try{var o=t(r);ae(r),o&&ae(o),e[n]=o}catch(e){i("failed to instrument ".concat(String(n),", the page may have locked the property"),e)}else l("".concat(String(n)," has already been instrumented, skipping"));else l("".concat(String(n)," is not defined, unable to instrument"))}for(var se=new Uint32Array(256),ue=0;ue<256;ue++){for(var ce=ue,ve=0;ve<8;ve++)ce=1&ce?3988292384^ce>>>1:ce>>>1;se[ue]=ce>>>0}function de(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^se[255&(r^i)]}return(4294967295^r)>>>0}function fe(e,n){return!(n<=0)&&(n>=100||de(e)%100<n)}var pe={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.25.0",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:n,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},sessionRecording:{samplingRate:100,maskAllInputs:!0,maskTextClass:"dash0-mask",blockClass:"dash0-block",recordCanvas:!1,collectFonts:!1,chunkMaxBytes:48e3,chunkMaxMillis:5e3,checkoutEveryNms:3e5},enableTransportCompression:!1,isSessionSampled:!0};function he(e,n){for(var t=0,r=e.length;t<r;t++)if(e[t].test(n))return!0;return!1}var me="data:";function Ee(e){return!e||(!(e=String(e))||(null==e.substring||e.substring(0,5).toLowerCase()===me||(!!function(e){for(var n=e.toLowerCase(),t=0,r=pe.endpoints.length;t<r;t++){var o=pe.endpoints[t];if(n.startsWith(o.url))return!0}return!1}(e)||he(pe.ignoreUrls,e))))}var _e=!1;function ge(e){_e&&e(),d&&v&&(T(d,"visibilitychange",(function(){"visible"!==d.visibilityState&&e()})),T(v,"pagehide",(function(){_e=!0,e()})),T(v,"beforeunload",(function(){_e=!0,e()})))}function ye(e){var n,t=[];return ge(r),{send:function(o){"visible"===(null==d?void 0:d.visibilityState)?(t.push(o),t.length>=15?r():null==n&&(n=X(r,1e3))):e([o])}};function r(){null!=n&&(clearTimeout(n),n=null),t.length>0&&(e(t.slice()),t.length=0)}}var Te=0,Re=0;function be(e,n,t){return Ie.apply(this,arguments)}function Ie(){return Ie=S(P().mark((function n(t,r,o){var a,s,u,c;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l("Transmitting telemetry to endpoints",r),a=JSON.stringify(r),s=a,u=new Blob([a]).size,c=!1,"undefined"==typeof CompressionStream||!(pe.enableTransportCompression||null!=o&&o.compress)){n.next=11;break}return n.next=8,Ce(a);case 8:s=n.sent,u=s.byteLength,c=!0;case 11:return n.next=13,Promise.all(pe.endpoints.map(function(){var n=S(P().mark((function n(r){var o,a,l;return P().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),a={"Content-Type":"application/json",Authorization:"Bearer ".concat(r.authToken)},r.dataset&&(a["Dash0-Dataset"]=r.dataset),c&&(a["Content-Encoding"]="gzip"),m){n.next=9;break}return i("Unable to send telemetry, fetch is not defined"),n.abrupt("return");case 9:return Te+=u,Re++,n.next=13,m(o,{method:"POST",headers:a,body:s,keepalive:Te<=6e4&&Re<=15});case 13:(l=n.sent).text().catch(e),l.ok||i("Failed to send telemetry to ".concat(o,": ").concat(l.status," ").concat(l.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,Te-=u,Re--,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)}))),Ie.apply(this,arguments)}function Ce(e){return Se.apply(this,arguments)}function Se(){return(Se=S(P().mark((function e(n){var t,r,o;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Blob([n]),r=t.stream(),o=r.pipeThrough(new CompressionStream("gzip")),e.abrupt("return",new Response(o).arrayBuffer());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Le=ye(Pe),Ne=ye((function(e){be("/v1/traces",{resourceSpans:[{resource:pe.resource,scopeSpans:[{scope:pe.scope,spans:e}]}]}).catch((function(e){a("Failed to transmit spans",e)}))}));function Oe(e){var n;return function(){return n||(n=function(e){var n=e.maxCallsPerTenMinutes||128,t=e.maxCallsPerTenSeconds||32,r=0,o=0;return Y((function(){r=0}),6e5),Y((function(){o=0}),1e4),function(){return++r>n||++o>t}}(e)),n()}}var Ae=Oe({maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}),Ve=Oe({maxCallsPerTenMinutes:512,maxCallsPerTenSeconds:64});function we(e){pe.isSessionSampled&&(Ae()?l("Transport rate limit. Will not send item.",e):Le.send(e))}function Pe(e,n){be("/v1/logs",{resourceLogs:[{resource:pe.resource,scopeLogs:[{scope:pe.scope,logRecords:e}]}]},n).catch((function(e){a("Failed to transmit logs",e)}))}function Ue(e){e&&pe.isSessionSampled&&(Ae()?l("Transport rate limit. Will not send item.",e):Ne.send(e))}var De="service.name",Me="service.namespace",xe="service.version",ke="deployment.environment.name",Ge="deployment.name",Be="deployment.id",Fe="event.name",He="dash0.web.event.id",je="page.load.id",We="user_agent.original",Xe="user.id",qe="user.name",Ye="user.full_name",ze="user.email",Ke="user.hash",Qe="user.roles",Ze="exception.message",$e="exception.type",Je="exception.stacktrace",en="error.type",nn="url.full",tn="http.request.method",rn="http.request.method_original",on="http.response.status_code",an={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error",SESSION_RECORDING:"browser.session_recording"},ln={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},sn=0,un=1,cn="pushState",vn="replaceState",dn=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function fn(e){if(null!=e){var n={};return Array.isArray(e)?n.arrayValue={values:e.map((function(e){return fn(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"!==x(e))return!1;var n=Object.keys(e);return 1===n.length&&dn.includes(n[0])}(e)?"object"===x(e)&&(n.kvlistValue={values:Object.entries(e).map((function(e){var n=U(e,2);return pn(n[0],n[1])}))}):n=e,n}}function pn(e,n){return{key:e,value:fn(n)}}function hn(e,n,t){n&&e.push(pn(n,t))}function mn(e,n){n&&Object.entries(n).forEach((function(n){var t=U(n,2),r=t[0],o=t[1];return hn(e,r,o)}))}function En(e,n){var t=e.findIndex((function(e){return e.key===n}));-1!==t&&e.splice(t,1)}var _n="traceparent",gn=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function yn(){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())===_n})))||void 0===e?void 0:e.content.trim())||"").match(gn)||function(){var e=h.getEntriesByType("navigation")[0];if(!e)return"";if(!e.serverTiming)return"";return function(e){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name===_n)return r.description.trim()}}catch(e){t.e(e)}finally{t.f()}return""}(e.serverTiming)}().match(gn);if(t)return{traceId:t[1],spanId:t[2]}}function Tn(e,n,t){e.call(n,"traceparent","00-".concat(t.traceId,"-").concat(t.spanId,"-01"))}function Rn(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 bn=1;function In(){var e,n;return"".concat((e={ephemeralSession:!b},n=0,e.ephemeralSession&&(n|=bn),n.toString(16).padStart(2,"0"))).concat(y(7))}var Cn="d0_session",Sn="#",Ln=864e5,Nn=null;function On(e,n){if(!b)return l("Storage API is not available and session tracking is therefore not supported."),void(Nn=In());e||(e=108e5),n||(n=216e5),e=Math.min(e,Ln),n=Math.min(n,Ln);try{var t=function(e){return b&&E?E.getItem(e):null}(Cn),r=function(e){if(!e)return null;var n=e.split(Sn);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:In(),startTime:G(),lastActivityTime:G()},function(e,n){b&&E&&E.setItem(e,n)}(Cn,function(e){return e.id+Sn+e.startTime+Sn+e.lastActivityTime}(r)),Nn=r.id}catch(e){i("Failed to record session information",e)}}var An="d042",Vn=1;function wn(e){var n=0;return e.withoutSession&&(n|=Vn),n.toString(16).padStart(2,"0")}function Pn(e){return e?"".concat(An).concat(wn({withoutSession:!1})).concat(e).concat(y(5)):"".concat(An).concat(wn({withoutSession:!0})).concat(y(13))}function Un(e){var n=de(e).toString(16).padStart(8,"0");return"".concat(n).concat(y(4))}function Dn(e){var n=Pn(Nn),t=Un(n),r=[];return hn(r,He,t),{traceId:n,spanId:t,name:e,kind:3,startTimeUnixNano:B(),attributes:r,events:[],links:[],status:{code:0}}}function Mn(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 xn(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 kn(e,n,t){e.status={code:n,message:t}}function Gn(e,n){var t=[];"string"==typeof n?hn(t,Ze,n):n&&(n.code?hn(t,$e,n.code.toString()):n.name&&hn(t,$e,n.name),n.message&&hn(t,Ze,n.message),n.stack&&hn(t,Je,n.stack),xn(e,"exception",t))}function Bn(e,t,r){var o=function(e){return e?Array.isArray(e)?function(n){return[].concat(D(e),[n]).join(".")}:function(n){return"".concat(e,".").concat(n)}:function(e){return e}}(r);try{var i=te(t);i.username&&(i.username="REDACTED"),i.password&&(i.password="REDACTED");var a=pe.urlAttributeScrubber(A(A(A(A(A(A({},nn,i.href),"url.path",i.pathname),"url.domain",i.hostname),"url.scheme",i.protocol.replace(":","")),"url.fragment",i.hash?i.hash.replace("#",""):void 0),"url.query",i.search?i.search.replace("?",""):void 0));Object.entries(a).forEach((function(n){var t=U(n,2),r=t[0],i=t[1];void 0!==i&&hn(e,o(r),i)}))}catch(r){pe.urlAttributeScrubber===n&&hn(e,o(nn),String(t))}}var Fn=null!=_&&"function"==typeof _.getItem&&"function"==typeof _.setItem;var Hn="d0_tab",jn=null;function Wn(){if(Fn)try{var e=function(e){return Fn&&_?_.getItem(e):null}(Hn);if(e)return void(jn=e);jn=y(8),function(e,n){Fn&&_&&_.setItem(e,n)}(Hn,jn)}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 Xn(e,n){var t,r,o,i,a;void 0===e.find((function(e){return e.key===He}))&&hn(e,He,y(8));for(var l=0;l<pe.signalAttributes.length;l++)e.push(pe.signalAttributes[l]);Bn(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:ee,"page"),Nn&&hn(e,"session.id",Nn),jn&&hn(e,"browser.tab.id",jn),hn(e,"browser.window.width",null!==(o=null==v?void 0:v.innerWidth)&&void 0!==o?o:ee),hn(e,"browser.window.height",null!==(i=null==v?void 0:v.innerHeight)&&void 0!==i?i:ee);var s=null==f||null===(a=f.connection)||void 0===a?void 0:a.effectiveType;s&&hn(e,"network.connection.subtype",s)}var qn,Yn=0,zn=0,Kn={},Qn=!1;function Zn(){Qn=!0}function $n(e,n){e&&Jn("string"==typeof e?{message:e,opts:n}:{message:e.message,type:e.name,stack:e.stack,opts:n})}function Jn(e){var n=e.message,t=e.type,r=e.stack,o=e.opts;if(n&&!(Yn>100)&&!function(e){return!e||he(pe.ignoreErrorMessages,e)}(n)){zn>=20&&(Kn={},zn=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=Kn[i];if(a)a.seenCount++;else{var l=[];Xn(l),hn(l,Fe,an.ERROR),hn(l,Ze,n),t&&hn(l,$e,t),r&&hn(l,Je,r),null!=o&&o.componentStack&&hn(l,"exception.component_stack",null==o?void 0:o.componentStack.substring(0,2048)),mn(l,null==o?void 0:o.attributes),a={seenCount:1,transmittedCount:0,log:{timeUnixNano:B(),attributes:l,severityNumber:ln.ERROR,severityText:"ERROR",body:{stringValue:n}}},Kn[i]=a,zn++}!function(){if(qn)return;qn=setTimeout(et,1e3)}()}}function et(){for(var e in qn&&(clearTimeout(qn),qn=null),Kn)if(c(Kn,e)){var n=Kn[e];n.seenCount>n.transmittedCount&&(we(n.log),Yn++)}Kn={},zn=0}var nt=-1,tt=function(e){addEventListener("pageshow",(function(n){n.persisted&&(nt=n.timeStamp,e(n))}),!0)},rt=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)))}},ot=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},it=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},at=function(){var e,n=it();return null!==(e=null==n?void 0:n.activationStart)&&void 0!==e?e:0},lt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,t=it(),r="navigate";return nt>=0?r="back-forward-cache":t&&(document.prerendering||at()>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}},st=new WeakMap;function ut(e,n){return st.get(e)||st.set(e,new n),st.get(e)}var ct,vt=function(){return N((function e(){L(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)}}}])}(),dt=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(w({type:e,buffered:!0},t)),r}}catch(e){}},ft=function(e){var n=!1;return function(){n||(e(),n=!0)}},pt=-1,ht=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},mt=function(e){"hidden"===document.visibilityState&&pt>-1&&(pt="visibilitychange"===e.type?e.timeStamp:0,_t())},Et=function(){addEventListener("visibilitychange",mt,!0),addEventListener("prerenderingchange",mt,!0)},_t=function(){removeEventListener("visibilitychange",mt,!0),removeEventListener("prerenderingchange",mt,!0)},gt=function(){if(pt<0){var e,n=at(),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;pt=null!=t?t:ht(),Et(),tt((function(){setTimeout((function(){pt=ht(),Et()}))}))}return{get firstHiddenTime(){return pt}}},yt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Tt=[1800,3e3],Rt=[.1,.25],bt=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]:{};yt((function(){var t,r=gt(),o=lt("FCP"),i=dt("paint",(function(e){var n,a=O(e);try{for(a.s();!(n=a.n()).done;){var l=n.value;"first-contentful-paint"===l.name&&(i.disconnect(),l.startTime<r.firstHiddenTime&&(o.value=Math.max(l.startTime-at(),0),o.entries.push(l),t(!0)))}}catch(e){a.e(e)}finally{a.f()}}));i&&(t=rt(e,o,Tt,n.reportAllChanges),tt((function(r){o=lt("FCP"),t=rt(e,o,Tt,n.reportAllChanges),ot((function(){o.value=performance.now()-r.timeStamp,t(!0)}))})))}))}(ft((function(){var t,r=lt("CLS",0),o=ut(n,vt),i=function(e){var n,i=O(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.h(a)}}catch(e){i.e(e)}finally{i.f()}o.i>r.value&&(r.value=o.i,r.entries=o.o,t())},a=dt("layout-shift",i);a&&(t=rt(e,r,Rt,n.reportAllChanges),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(i(a.takeRecords()),t(!0))})),tt((function(){o.i=0,r=lt("CLS",0),t=rt(e,r,Rt,n.reportAllChanges),ot((function(){return t()}))})),setTimeout(t))})))},It=0,Ct=1/0,St=0,Lt=function(e){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;r.interactionId&&(Ct=Math.min(Ct,r.interactionId),St=Math.max(St,r.interactionId),It=St?(St-Ct)/7+1:0)}}catch(e){t.e(e)}finally{t.f()}},Nt=function(){var e;return ct?It:null!==(e=performance.interactionCount)&&void 0!==e?e:0},Ot=0,At=function(){return N((function e(){L(this,e),A(this,"u",[]),A(this,"l",new Map),A(this,"m",void 0),A(this,"v",void 0)}),[{key:"p",value:function(){Ot=Nt(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((Nt()-Ot)/50));return this.u[e]}},{key:"h",value:function(e){var n;if(null!==(n=this.m)&&void 0!==n&&n.call(this,e),e.interactionId||"first-input"===e.entryType){var t=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>t.T){var o;if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort((function(e,n){return n.T-e.T})),this.u.length>10){var i,a=O(this.u.splice(10));try{for(a.s();!(i=a.n()).done;){var l=i.value;this.l.delete(l.id)}}catch(e){a.e(e)}finally{a.f()}}null===(o=this.v)||void 0===o||o.call(this,r)}}}}])}(),Vt=function(e){var n=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=ft(e),document.addEventListener("visibilitychange",e,{once:!0}),n((function(){e(),document.removeEventListener("visibilitychange",e)})))},wt=[200,500],Pt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&yt((function(){var t;"interactionCount"in performance||ct||(ct=dt("event",Lt,{type:"event",buffered:!0,durationThreshold:0}));var r,o=lt("INP"),i=ut(n,At),a=function(e){Vt((function(){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var a=n.value;i.h(a)}}catch(e){t.e(e)}finally{t.f()}var l=i.P();l&&l.T!==o.value&&(o.value=l.T,o.entries=l.entries,r())}))},l=dt("event",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=rt(e,o,wt,n.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(a(l.takeRecords()),r(!0))})),tt((function(){i.p(),o=lt("INP"),r=rt(e,o,wt,n.reportAllChanges)})))}))},Ut=function(){return N((function e(){L(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)}}])}(),Dt=[2500,4e3];function Mt(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};yt((function(){var t,r=gt(),o=lt("LCP"),i=ut(n,Ut),a=function(e){n.reportAllChanges||(e=e.slice(-1));var a,l=O(e);try{for(l.s();!(a=l.n()).done;){var s=a.value;i.h(s),s.startTime<r.firstHiddenTime&&(o.value=Math.max(s.startTime-at(),0),o.entries=[s],t())}}catch(e){l.e(e)}finally{l.f()}},l=dt("largest-contentful-paint",a);if(l){t=rt(e,o,Dt,n.reportAllChanges);for(var s=ft((function(){a(l.takeRecords()),l.disconnect(),t(!0)})),u=0,c=["keydown","click","visibilitychange"];u<c.length;u++)addEventListener(c[u],(function(){return Vt(s)}),{capture:!0,once:!0});tt((function(r){o=lt("LCP"),t=rt(e,o,Dt,n.reportAllChanges),ot((function(){o.value=performance.now()-r.timeStamp,t(!0)}))}))}}))}(xt,{reportAllChanges:!0}),Pt(xt,{reportAllChanges:!0}),bt(xt,{reportAllChanges:!0})}function xt(e){var n=[];hn(n,Fe,an.WEB_VITAL);var t=[];hn(t,"name",e.name),hn(t,"value",ne(e.value)),hn(t,"delta",ne(e.delta));var r={timeUnixNano:B(),attributes:n,severityNumber:ln.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};Xn(r.attributes),we(r)}var kt="Unhandled promise rejection: ",Gt="<unavailable because Promise wasn't rejected with an Error object>";function Bt(e){null==e.reason?$n({message:kt+"<no reason defined>",stack:Gt}):"string"==typeof e.reason.message?$n({message:kt+e.reason.message,stack:"string"==typeof e.reason.stack?e.reason.stack:Gt}):"object"!==x(e.reason)&&$n({message:kt+e.reason,stack:Gt})}var Ft="__dash0OriginalFunctions";function Ht(e,n){for(var t=e[Ft],r=0;r<t.length;r++){if(jt(t[r].valuesForEqualityCheck,n))return r}return-1}function jt(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 Wt(e,n,t,r,o){return function(e,n,t){if(!e)return n;var r=e[Ft]=e[Ft]||[],o=Ht(e,t);return-1!==o?r[o].wrappedFunction:(r.push({wrappedFunction:n,valuesForEqualityCheck:t}),n)}(e,n,Xt(t,r,o))}function Xt(e,n,t){return[e,n,qt(t)]}function qt(e){return null!=e&&("object"===x(e)?Boolean(e.capture):Boolean(e))}function Yt(e,n,t,r,o){return function(e,n,t){var r=null==e?void 0:e[Ft];if(null==r)return t;var o=Ht(e,n);if(-1===o)return t;var i=r[o];return r.splice(o,1),i.wrappedFunction}(e,Xt(n,t,r),o)}function zt(){pe.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 $n(e),Zn(),e}},o[1]=Wt(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]=Yt(this,e,n,r,n),t.apply(this,o)}}(null==v?void 0:v.EventTarget)}function Kt(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),Zn(),e}}}(e),n.apply(this,t)})}function Qt(){!function(){if(v){var e=v.onerror;v.onerror=function(n,t,r,o,i){if(Qn)return Qn=!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)),Jn({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",Bt),zt(),function(){if(pe.wrapTimers){if(W)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.");Kt("setTimeout"),Kt("setInterval")}}()}function Zt(e){return"".concat("http.request.header",".").concat(e.toLowerCase())}function $t(e){return"".concat("http.response.header",".").concat(e.toLowerCase())}var Jt=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"],er="_OTHER";function nr(e){return Jt.includes(e)}function tr(e,n){var t=0!==n.startTime;rr(e,Q.FETCH_START,n,t),rr(e,Q.DOMAIN_LOOKUP_START,n,t),rr(e,Q.DOMAIN_LOOKUP_END,n,t),rr(e,Q.CONNECT_START,n,t),rr(e,Q.SECURE_CONNECTION_START,n,t),rr(e,Q.CONNECT_END,n,t),rr(e,Q.REQUEST_START,n,t),rr(e,Q.RESPONSE_START,n,t),rr(e,Q.RESPONSE_END,n,t)}function rr(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]||xn(e,n,(r=t[n],String(Math.round(1e6*(r+H())))))}function or(e,n){var t=n.encodedBodySize;null!=t&&hn(e.attributes,"http.response.body.size",t)}function ir(e,n){var t;Gn(e,n);var r="object"===x(n)&&n?null!==(t=n.name)&&void 0!==t?t:null!=n.code?String(n.code):"error":"error";hn(e.attributes,en,r),Ue(Mn(e,function(e){return{code:2,message:e&&"object"===x(e)&&"message"in e?e.message:String(e)}}(n),void 0))}function ar(e){hn(e.attributes,"dash0.web.request.cancelled",!0),Ue(Mn(e,void 0,void 0))}function lr(e){var n=[];if(re(e)){if(n.push("traceparent"),pe.propagators){var t,r=O(pe.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(pe.propagators){var i,a=O(pe.propagators);try{for(a.s();!(i=a.n()).done;){var l=i.value;he(l.match,e)&&(n.includes(l.type)||n.push(l.type))}}catch(e){a.e(e)}finally{a.f()}return n}return[]}function sr(e,n,t,r){var o,i=O(r);try{for(i.s();!(o=i.n()).done;){"xray"===o.value?Rn(e,n,t):Tn(e,n,t)}}catch(e){i.e(e)}finally{i.f()}}function ur(e){return function(){var n=S(P().mark((function n(t,r){var o,i,a,s,u,c,v,d,f,p,h;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=t,n.prev=1,s=r?Object.assign({},r):r,u=null,null!=s&&s.body&&(u=s.body,s.body=void 0),i=new Request(t,s),u&&s&&(s.body=u),o=t instanceof Request?i:t,!Ee(i.url)){n.next=11;break}return l("Not creating span for fetch call because the url is ignored, URL: ".concat(i.url)),n.abrupt("return",e(o,r));case 11:a=cr(t,r,i,s),n.next=18;break;case 14:return n.prev=14,n.t0=n.catch(1),l("failed to instrument fetch call",n.t0),n.abrupt("return",e(o,r));case 18:return v=(c=a).copyOfInit,d=c.span,f=c.performanceObserver,n.prev=19,n.next=22,e(o,v);case 22:return p=n.sent,dr(d,p),n.abrupt("return",fr(p,pe.maxToleranceForResourceTimingsMillis,(function(){return f.end()}),(function(e){var n;f.cancel(),null!==(n=i)&&void 0!==n&&null!==(n=n.signal)&&void 0!==n&&n.aborted?ar(d):ir(d,e)})));case 27:throw n.prev=27,n.t1=n.catch(19),f.cancel(),null!==(h=i)&&void 0!==h&&null!==(h=h.signal)&&void 0!==h&&h.aborted?ar(d):ir(d,n.t1),n.t1;case 32:case"end":return n.stop()}}),n,null,[[1,14],[19,27]])})));return function(e,t){return n.apply(this,arguments)}}()}function cr(e,n,t,r){var o,i=t.url,a=null!==(o=t.method)&&void 0!==o?o:"GET",s=nr(a),u=nr(a.toUpperCase())?a.toUpperCase():er,c=Dn("HTTP ".concat(u));Xn(c.attributes),Bn(c.attributes,i),function(e,n){try{return void 0}catch(t){l("failed to analyze request for GraphQL insights",t,e,n)}}(e,n),hn(c.attributes,tn,u),s||hn(c.attributes,rn,a);var v,d=lr(i);d.length>0&&(null!==(v=r)&&void 0!==v&&v.headers?(r.headers=new Headers(r.headers),sr(r.headers.append,r.headers,c,d)):e instanceof Request?sr(t.headers.append,t.headers,c,d):(r||(r={}),r.headers=new Headers,sr(r.headers.append,r.headers,c,d)));vr(t.headers,c,(function(e){return Zt(e)}));var f=$({resourceMatcher:function(e){var n=e.initiatorType,t=e.name;return("fetch"===n||"xmlhttprequest"===n)&&t===te(i).href},maxWaitForResourceMillis:pe.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:pe.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,t=e.resource;t&&(tr(c,t),or(c,t)),Ue(Mn(c,void 0,1e6*n))}});return f.start(),{copyOfInit:r,span:c,performanceObserver:f}}function vr(e,n,t){try{if(!pe.headersToCapture.length)return;e.forEach((function(e,r){pe.headersToCapture.some((function(e){return e.test(r)}))&&hn(n.attributes,t(r),e)}))}catch(e){l("unable to capture http headers",e)}}function dr(e,n){var t=n.status;kn(e,t>=200&&t<400?0:2),0===t&&hn(e.attributes,en,n.type),hn(e.attributes,on,String(t)),vr(n.headers,e,(function(e){return $t(e)}))}function fr(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 s=!1,u=function(e){s||(t(e),s=!0)},c=function(e){s||(r(e),s=!0)},v=X((function(){return u(a)}),n),d=l.getReader(),f=new ReadableStream({pull:function(e){return S(P().mark((function t(){var r,o;return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,q(v),t.next=4,d.read();case 4:r=t.sent,o=r.value,r.done?(d.releaseLock(),e.close(),u()):(a=h.now(),v=X((function(){return u(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 q(v),u(),d.cancel(e)}});return new Response(f,{status:e.status,statusText:e.statusText,headers:e.headers})}var pr,hr=Symbol("dash0XhrState");function mr(e){return function(n,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a=[n,t].concat(o);try{a=[n,Er(this,n,t)].concat(o)}catch(e){this[hr]=void 0,l("failed to instrument XMLHttpRequest.open",e)}return e.apply(this,a)}}function Er(e,n,t){var r=e[hr];null!=r&&r.span&&!r.completed&&function(e,n){n.completed=!0;try{var t,r,o,i=O(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(i.s();!(o=i.n()).done;){var a=U(o.value,2);R(e,a[0],a[1])}}catch(e){i.e(e)}finally{i.f()}null===(t=n.performanceObserver)||void 0===t||t.cancel(),n.span&&ar(n.span)}catch(e){}}(e,r);var o=String(t),i=te(o).href,a=String(null!=n?n:"GET"),l=nr(a.toUpperCase())?a.toUpperCase():er;return e[hr]={method:l,originalMethod:a,isWellKnownMethod:nr(a),url:i,ignored:Ee(i),propagatorTypes:lr(i),completed:!1},o}function _r(e){return pr=e,function(n,t){e.call(this,n,t);try{!function(e,n,t){var r,o=e[hr];if(!o||o.ignored)return;var i=n.toLowerCase();"traceparent"!==i&&"x-amzn-trace-id"!==i||(o.alreadyTraced=!0);if(0===pe.headersToCapture.length)return;if(!pe.headersToCapture.some((function(e){return e.test(i)})))return;var a=null!==(r=o.capturedRequestHeaders)&&void 0!==r?r:o.capturedRequestHeaders={};a[i]=i in a?"".concat(a[i],", ").concat(t):t}(this,n,t)}catch(e){l("failed to instrument XMLHttpRequest.setRequestHeader",e)}}}function gr(e){return function(n){var t=this[hr];if(!t||t.ignored)return null!=t&&t.ignored&&l("Not creating span for XMLHttpRequest because the url is ignored, URL: ".concat(t.url)),e.call(this,n);if(t.alreadyTraced)return l("Not creating span for XMLHttpRequest because a trace correlation header is already present, URL: ".concat(t.url)),e.call(this,n);if(t.span&&!t.completed)return e.call(this,n);try{!function(e,n){var t=Dn("HTTP ".concat(n.method));Xn(t.attributes),Bn(t.attributes,n.url),hn(t.attributes,tn,n.method),n.isWellKnownMethod||hn(t.attributes,rn,n.originalMethod);if(n.span=t,n.propagatorTypes.length>0)try{sr((function(n,t){return(null!=pr?pr:e.setRequestHeader).call(e,n,t)}),e,t,n.propagatorTypes)}catch(e){l("failed to inject trace context headers on XMLHttpRequest",e)}if(n.capturedRequestHeaders)for(var r=0,o=Object.entries(n.capturedRequestHeaders);r<o.length;r++){var i=U(o[r],2),a=i[0],s=i[1];hn(t.attributes,Zt(a),s)}var u=$({resourceMatcher:function(e){var t=e.initiatorType,r=e.name;return"xmlhttprequest"===t&&r===n.url},maxWaitForResourceMillis:pe.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:pe.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,r=e.resource;r&&(tr(t,r),or(t,r)),Ue(Mn(t,void 0,1e6*n))}});n.performanceObserver=u,u.start(),n.listeners=[["error",function(){n.failureKind="error"}],["timeout",function(){n.failureKind="timeout"}],["abort",function(){n.failureKind="abort"}],["loadend",function(){return function(e,n){var t;if(n.completed)return;n.completed=!0;var r,o=O(null!==(t=n.listeners)&&void 0!==t?t:[]);try{for(o.s();!(r=o.n()).done;){var i=U(r.value,2);R(e,i[0],i[1])}}catch(e){o.e(e)}finally{o.f()}var a=n.span;if(!a)return;var s=n.performanceObserver;if("abort"===n.failureKind)return null==s||s.cancel(),void ar(a);var u=0;try{u=e.status}catch(e){u=0}if("error"===n.failureKind||"timeout"===n.failureKind||0===u){var c;return null==s||s.cancel(),void ir(a,{name:null!==(c=n.failureKind)&&void 0!==c?c:"error",message:"XMLHttpRequest failed: ".concat(n.url)})}kn(a,u>=200&&u<400?0:2),hn(a.attributes,on,String(u)),function(e,n){try{if(!pe.headersToCapture.length)return;var t=e.getAllResponseHeaders();if(!t)return;t.split(/\r?\n/).filter((function(e){return e.length>0})).forEach((function(e){var t=e.indexOf(":");if(-1!==t){var r=e.substring(0,t).trim(),o=e.substring(t+1).trim();pe.headersToCapture.some((function(e){return e.test(r)}))&&hn(n.attributes,$t(r),o)}}))}catch(e){l("unable to capture http response headers",e)}}(e,a),null==s||s.end()}(e,n)}]];var c,v=O(n.listeners);try{for(v.s();!(c=v.n()).done;){var d=U(c.value,2),f=d[0],p=d[1];T(e,f,p)}}catch(e){v.e(e)}finally{v.f()}}(this,t)}catch(e){!function(e,n){try{var t,r;null===(t=n.performanceObserver)||void 0===t||t.cancel();var o,i=O(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(i.s();!(o=i.n()).done;){var a=U(o.value,2);R(e,a[0],a[1])}}catch(e){i.e(e)}finally{i.f()}}catch(e){}n.span=void 0}(this,t),l("failed to instrument XMLHttpRequest.send",e)}try{return e.call(this,n)}catch(e){throw function(e,n,t){if(n.completed)return;n.completed=!0;try{var r,o,i,a,l=O(null!==(i=n.listeners)&&void 0!==i?i:[]);try{for(l.s();!(a=l.n()).done;){var s=U(a.value,2);R(e,s[0],s[1])}}catch(e){l.e(e)}finally{l.f()}null===(r=n.performanceObserver)||void 0===r||r.cancel();var u=n.span;if(!u)return;var c=null!==(o=n.failureKind)&&void 0!==o?o:"TimeoutError"===(null==t?void 0:t.name)?"timeout":"error";Gn(u,null!=t?t:{name:c,message:"XMLHttpRequest failed: ".concat(n.url)}),hn(u.attributes,en,c),Ue(Mn(u,{code:2,message:"XMLHttpRequest failed: ".concat(n.url)},void 0))}catch(e){}}(this,t,e),e}}}function yr(e){var n,t,r=[];hn(r,Fe,an.PAGE_VIEW),e.metaAttributes&&Object.entries(e.metaAttributes).forEach((function(e){var n=U(e,2),t=n[0],o=n[1];return hn(r,t,o)})),Xn(r,{url:e.url}),mn(r,e.customAttributes);var o=[];hn(o,"title",null!==(n=null!==(t=e.title)&&void 0!==t?t:null==d?void 0:d.title)&&void 0!==n?n:ee),null!=d&&d.referrer&&hn(o,"referrer",d.referrer),hn(o,"type",e.pageViewType),e.changeState&&hn(o,"change_state",e.changeState);var i={timeUnixNano:e.timeUnixNano,attributes:r,severityNumber:ln.INFO,severityText:"INFO",body:{kvlistValue:{values:o}}},a=yn();a&&(i.traceId=a.traceId,i.spanId=a.spanId),we(i)}function Tr(e,n,t,r){var o=function(e){var n,t,r;return e&&null!==(n=null===(t=(r=pe.pageViewInstrumentation).generateMetadata)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:{}}(n);yr({timeUnixNano:e,url:n,title:o.title,metaAttributes:o.attributes,pageViewType:t?un:sn,changeState:r?vn:cn})}function Rr(){var e=null==v?void 0:v.performance.getEntriesByType("navigation")[0];if(e){var n=[];hn(n,Fe,an.NAVIGATION_TIMING);var t=[];hn(t,"name",e.name),br(t,e,"responseStatus"),br(t,e,"fetchStart"),br(t,e,"requestStart"),br(t,e,"responseStart"),br(t,e,"domInteractive"),br(t,e,"domContentLoadedEventEnd"),br(t,e,"domComplete"),br(t,e,"loadEventEnd"),br(t,e,"transferSize"),br(t,e,"encodedBodySize"),br(t,e,"decodedBodySize");var r={timeUnixNano:Ir(),attributes:n,severityNumber:ln.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};Xn(r.attributes);var o=yn();o&&(r.traceId=o.traceId,r.spanId=o.spanId),we(r)}else l("Navigation timings not available. Cannot emit navigation timing log")}function br(e,n,t){var r=n[t];"number"!=typeof r||isNaN(r)||hn(e,t,Number.isInteger(r)?r:ne(r))}function Ir(){return F(Math.round(H()))}var Cr={},Sr=!1,Lr=!1;function Nr(){Ar(null==v?void 0:v.location.href)}function Or(e){Ar(e.newURL)}function Ar(e,n){var t;if(e)try{var r=new URL(e,null==v?void 0:v.location.href);((t=r).pathname!==Cr.path||Lr&&t.search!==Cr.search||Sr&&t.hash!==Cr.hash)&&(Vr(r),Tr(B(),r,!0,Boolean(n)))}catch(e){l("Failed to handle url change",e)}}function Vr(e){Cr.path=e.pathname,Cr.search=e.search,Cr.hash=e.hash}function wr(){!function(){try{Tr(Ir(),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 Rr();v&&T(v,"load",(function(){setTimeout(Rr,0)}))}(),function(){var e,n,t,r;if(v&&v.history){if(pe.pageViewInstrumentation.trackVirtualPageViews){Lr=null!==(e=null===(n=pe.pageViewInstrumentation.includeParts)||void 0===n?void 0:n.includes("SEARCH"))&&void 0!==e&&e,Sr=null!==(t=null===(r=pe.pageViewInstrumentation.includeParts)||void 0===r?void 0:r.includes("HASH"))&&void 0!==t&&t,le(v.history,"replaceState",(function(e){return function(n,t,r){return Ar(r?String(r):void 0,!0),e.apply(this,[n,t,r])}})),le(v.history,"pushState",(function(e){return function(n,t,r){return Ar(r?String(r):void 0),e.apply(this,[n,t,r])}})),v.addEventListener("hashchange",Or),v.addEventListener("popstate",Nr);try{Vr(new URL(v.location.href))}catch(e){}}}else l("Browser does not support history API, skipping instrumentation")}()}function Pr(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];for(var r=0,o=n;r<o.length;r++){var i=o[r];if(i)return i}}var Ur={providerName:"vcs.provider.name",ownerName:"vcs.owner.name",repositoryName:"vcs.repository.name",repositoryUrlFull:"vcs.repository.url.full",refHeadName:"vcs.ref.head.name",refHeadRevision:"vcs.ref.head.revision",changeId:"vcs.change.id"};function Dr(e){for(var n=function(e){var n,t,r,o,i,a,l,s,u,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,l,s,u,c,v,d,f,p,h,m,E,_,g,y,T,R,b,I,C,S,L,N,O,A,V,w,P,U,D,M,x,k,G,B,F,H,j,W,X,q,Y,z,K,Q,Z,$,J,ee,ne,te,re,oe,ie,ae,le,se,ue,ce,ve;e=Pr(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===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.NUXT_ENV_VERCEL_GIT_PROVIDER,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.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=Pr(null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.NUXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.NUXT_ENV_VERCEL_GIT_REPO_OWNER,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.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===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.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=Pr(null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NUXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.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===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.PUBLIC_VERCEL_GIT_REPO_SLUG,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.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=Pr(null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.NUXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.NUXT_ENV_VERCEL_GIT_COMMIT_REF,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.REACT_APP_VERCEL_GIT_COMMIT_REF,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.GATSBY_VERCEL_GIT_COMMIT_REF,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.VITE_VERCEL_GIT_COMMIT_REF,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.PUBLIC_VERCEL_GIT_COMMIT_REF,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.VUE_APP_VERCEL_GIT_COMMIT_REF,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.REDWOOD_ENV_VERCEL_GIT_COMMIT_REF,null===(X=process)||void 0===X||null===(X=X.env)||void 0===X?void 0:X.SANITY_STUDIO_VERCEL_GIT_COMMIT_REF),o=Pr(null===(q=process)||void 0===q||null===(q=q.env)||void 0===q?void 0:q.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(Y=process)||void 0===Y||null===(Y=Y.env)||void 0===Y?void 0:Y.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=Pr(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===(se=process)||void 0===se||null===(se=se.env)||void 0===se?void 0:se.PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(ue=process)||void 0===ue||null===(ue=ue.env)||void 0===ue?void 0:ue.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:Mr(e,n,t),refHeadName:r,refHeadRevision:o,changeId:i}}(),_=function(){var e,n,t,r;try{var o,i,a,l,s,u,c,v,d,f,p,h,m,E,_,g,y,T,R,b,I,C,S,L,N,O,A,V,w,P,D,M,x,k,G,B,F,H,j,W;e=Pr(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===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.GATSBY_REPOSITORY_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.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=Pr(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===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NUXT_ENV_BRANCH,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.REACT_APP_BRANCH,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.GATSBY_BRANCH,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.VITE_BRANCH,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.PUBLIC_BRANCH,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.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=Pr(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===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NUXT_ENV_COMMIT_REF,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.REACT_APP_COMMIT_REF,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.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===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.SANITY_STUDIO_COMMIT_REF),r=Pr(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===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.NUXT_ENV_REVIEW_ID,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.REACT_APP_REVIEW_ID,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.GATSBY_REVIEW_ID,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.VITE_REVIEW_ID,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.PUBLIC_REVIEW_ID,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.VUE_APP_REVIEW_ID,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.REDWOOD_ENV_REVIEW_ID,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.SANITY_STUDIO_REVIEW_ID)}catch(e){}var X=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(xr);n<t.length;n++){var r=U(t[n],2),o=r[0];if(r[1].includes(e))return o}return}(n);if(!o)return;var i=t.replace(/^\/+/,"").replace(/\.git$/,"").split("/");if(i.length<2)return;var a=i[0],l=i[i.length-1];return a&&l?{providerName:o,ownerName:a,repositoryName:l}:void 0}(e);return{providerName:null==X?void 0:X.providerName,ownerName:null==X?void 0:X.ownerName,repositoryName:null==X?void 0:X.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:_.providerName,ownerName:null!==(o=null!==(i=m.ownerName)&&void 0!==i?i:E.ownerName)&&void 0!==o?o:_.ownerName,repositoryName:null!==(a=null!==(l=m.repositoryName)&&void 0!==l?l:E.repositoryName)&&void 0!==a?a:_.repositoryName,repositoryUrlFull:null!==(s=null!==(u=m.repositoryUrlFull)&&void 0!==u?u:E.repositoryUrlFull)&&void 0!==s?s:_.repositoryUrlFull,refHeadName:null!==(c=null!==(v=m.refHeadName)&&void 0!==v?v:E.refHeadName)&&void 0!==c?c:_.refHeadName,refHeadRevision:null!==(d=null!==(f=m.refHeadRevision)&&void 0!==f?f:E.refHeadRevision)&&void 0!==d?d:_.refHeadRevision,changeId:null!==(p=null!==(h=m.changeId)&&void 0!==h?h:E.changeId)&&void 0!==p?p:_.changeId}}(e),t=0,r=Object.keys(Ur);t<r.length;t++){var o=r[t],i=n[o];i&&hn(pe.resource.attributes,Ur[o],i)}}function Mr(e,n,t){if(e&&n&&t){var r=function(e){var n;return null===(n=xr[e])||void 0===n?void 0:n[0]}(e);if(r)return"https://".concat(r,"/").concat(n,"/").concat(t)}}var xr={github:["github.com","gist.github.com"],gitlab:["gitlab.com"],bitbucket:["bitbucket.org"]};var kr,Gr,Br,Fr="dash0Recorder",Hr=!1,jr=!1,Wr=!1;function Xr(e){kr=e,Hr&&qr()}function qr(){var e,n,t;if(Gr)l("Session recording already running. Ignoring start.");else if(kr&&v){var r=pe.sessionRecording;if(pe.isSessionSampled)if(fe(null!=Nn?Nn:"",null!==(e=r.samplingRate)&&void 0!==e?e:100))if(Ee(v.location.href))l("Page URL is ignored. Session recording will not start.");else{var o=Pn(Nn),a={recordingId:y(16),traceId:o,spanId:Un(o)},s=function(e){var n=[],t=0,r=!1,o=0,i=0,a=0,l=null;return{add:function(a){4===a.type&&n.length>0&&u();var s=JSON.stringify(a);null!=s&&(0===n.length&&(o=a.timestamp,l=X(u,e.maxMillis)),n.push(s),t+=s.length,i=a.timestamp,2===a.type&&(r=!0),t>=e.maxBytes&&u())},flush:u,discard:function(){s(),n=[],t=0,r=!1}};function s(){null!=l&&(q(l),l=null)}function u(){if(s(),0!==n.length){var l={seq:a++,body:"["+n.join(",")+"]",eventCount:n.length,hasSnapshot:r,startTime:o,endTime:i};n=[],t=0,r=!1,e.onChunk(l)}}}({maxBytes:null!==(n=r.chunkMaxBytes)&&void 0!==n?n:48e3,maxMillis:null!==(t=r.chunkMaxMillis)&&void 0!==t?t:5e3,onChunk:function(e){try{n=function(e,n){var t=[];return hn(t,Fe,an.SESSION_RECORDING),Xn(t),hn(t,"dash0.session_recording.id",e.recordingId),hn(t,"dash0.session_recording.seq",{intValue:String(n.seq)}),hn(t,"dash0.session_recording.event_count",{intValue:String(n.eventCount)}),hn(t,"dash0.session_recording.has_snapshot",n.hasSnapshot),hn(t,"dash0.session_recording.end_time_unix_nano",{intValue:F(n.endTime)}),{timeUnixNano:F(n.startTime),severityNumber:ln.INFO,severityText:"INFO",body:{stringValue:n.body},attributes:t,traceId:e.traceId,spanId:e.spanId}}(a,e),t={compress:!Wr},pe.isSessionSampled&&(Ve()?l("Session recording rate limit. Will not send chunk.",n):Pe([n],{compress:null===(r=null==t?void 0:t.compress)||void 0===r||r}))}catch(e){i("Failed to transmit session recording chunk",e)}var n,t,r}});Br=s;try{Gr=kr({emit:function(e){Br===s&&s.add(e)},checkoutEveryNms:r.checkoutEveryNms,maskAllInputs:r.maskAllInputs,maskTextClass:r.maskTextClass,maskTextSelector:r.maskTextSelector,maskInputFn:r.maskInputFn,maskTextFn:r.maskTextFn,blockClass:r.blockClass,blockSelector:r.blockSelector,recordCanvas:r.recordCanvas,collectFonts:r.collectFonts})}catch(e){return i("Failed to start session recorder",e),void Yr(s)}if(!Gr)return i("Session recorder did not start."),void Yr(s);jr||(jr=!0,ge((function(){Wr=!0;try{var e;null===(e=Br)||void 0===e||e.flush()}finally{Wr=!1}}))),l("Session recording started",a)}else l("Session is not sampled for recording. Session recording will not start.");else l("Session is not sampled. Session recording will not start.")}}function Yr(e){e.discard(),Br=void 0}var zr=!1;function Kr(e,n){var t=n.enabledInstrumentations;return!t||t.includes(e)}function Qr(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var o=r[t];void 0!==e[o]&&(n[o]=e[o])}return n}var Zr={init:function(e){if(zr)l("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,oe.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(pe.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],0!==pe.endpoints.length){if(Object.assign(pe,function(e,n){for(var t=w({},e),r=0,o=Object.keys(n);r<o.length;r++){var i=o[r],a=n[i],l=e[i];void 0!==a&&(null===a||"object"!==x(a)||Array.isArray(a)||"object"!==x(l)||null===l||Array.isArray(l)?t[i]=a:t[i]=w(w({},l),Qr(a)))}return t}(pe,function(e,n){var t,r={},o=O(n);try{for(o.s();!(t=o.n()).done;){var i=t.value;i in e&&(r[i]=e[i])}}catch(e){o.e(e)}finally{o.f()}return r}(e,["ignoreUrls","ignoreErrorMessages","wrapEventHandlers","wrapTimers","propagateTraceHeadersCorsURLs","maxWaitForResourceTimingsMillis","maxToleranceForResourceTimingsMillis","headersToCapture","urlAttributeScrubber","pageViewInstrumentation","sessionRecording","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."),pe.propagators=e.propagators):e.propagateTraceHeadersCorsURLs&&e.propagateTraceHeadersCorsURLs.length>0?(i("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),pe.propagators=[{type:"traceparent",match:D(e.propagateTraceHeadersCorsURLs)}]):pe.propagators=[{type:"traceparent",match:[]}]}(e),function(e){hn(pe.resource.attributes,De,e.serviceName),e.serviceNamespace&&hn(pe.resource.attributes,Me,e.serviceNamespace);e.serviceVersion&&hn(pe.resource.attributes,xe,e.serviceVersion);var n=function(e){if(e.environment)return e.environment;try{var n,t,r,o,i,a,l,s,u,c;return Pr(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===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.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&&hn(pe.resource.attributes,ke,n);var t=function(e){if(e.deploymentName)return e.deploymentName;try{var n,t,r,o,i,a,l,s,u,c;return Pr(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===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_TARGET_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.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&&hn(pe.resource.attributes,Ge,t);var r=function(e){if(e.deploymentId)return e.deploymentId;try{var n,t,r,o,i,a,l,s,u,c;return Pr(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===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_BRANCH_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.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&&hn(pe.resource.attributes,Be,r);Dr(e)}(e),function(e){var n;hn(pe.signalAttributes,je,y(16)),hn(pe.signalAttributes,We,null!==(n=null==f?void 0:f.userAgent)&&void 0!==n?n:ee),e.additionalSignalAttributes&&Object.entries(e.additionalSignalAttributes).forEach((function(e){var n=U(e,2),t=n[0],r=n[1];hn(pe.signalAttributes,t,r)}))}(e),Wn(),On(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),null!=e.sessionSamplingRate){var a=Math.max(0,Math.min(100,e.sessionSamplingRate));pe.isSessionSampled=null!=Nn?fe(Nn,a):a>0}if(!pe.isSessionSampled)return l("Session is not sampled. No telemetry will be transmitted for this session."),void(zr=!0);Kr("@dash0/navigation",e)&&wr(),Kr("@dash0/web-vitals",e)&&Mt(),Kr("@dash0/error",e)&&Qt(),Kr("@dash0/fetch",e)&&(v&&v.fetch&&v.Request?le(v,"fetch",ur):l("Browser does not support the Fetch API, skipping instrumentation")),Kr("@dash0/xhr",e)&&function(){if(v&&v.XMLHttpRequest){var e=v.XMLHttpRequest.prototype;le(e,"open",mr),le(e,"setRequestHeader",_r),le(e,"send",gr)}else l("Browser does not support XMLHttpRequest, skipping instrumentation")}(),Kr("@dash0/session-recording",e)&&function(){if(Hr=!0,pe.sessionRecording.recorder)kr=pe.sessionRecording.recorder;else if(!kr){var e=null==v?void 0:v[Fr];"function"==typeof e&&(kr=e)}kr&&qr()}(),zr=!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:",pe)},identify:function(e,n){En(pe.signalAttributes,Xe),null!=e&&hn(pe.signalAttributes,Xe,e),En(pe.signalAttributes,qe),null!=(null==n?void 0:n.name)&&hn(pe.signalAttributes,qe,n.name),En(pe.signalAttributes,Ye),null!=(null==n?void 0:n.fullName)&&hn(pe.signalAttributes,Ye,n.fullName),En(pe.signalAttributes,ze),null!=(null==n?void 0:n.email)&&hn(pe.signalAttributes,ze,n.email),En(pe.signalAttributes,Ke),null!=(null==n?void 0:n.hash)&&hn(pe.signalAttributes,Ke,n.hash),En(pe.signalAttributes,Qe),null!=(null==n?void 0:n.roles)&&hn(pe.signalAttributes,Qe,n.roles)},terminateSession:function(){if(b)try{!function(e){b&&E&&E.removeItem(e)}(Cn)}catch(e){o("Failed to terminate session",e)}},reportError:function(e,n){$n(e,n)},addSignalAttribute:function(e,n){hn(pe.signalAttributes,e,n)},removeSignalAttribute:function(e){En(pe.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(an).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=[];Xn(t),hn(t,Fe,e),null!=n&&n.title&&hn(t,"dash0.web.event.title",n.title),mn(t,null==n?void 0:n.attributes),we({timeUnixNano:null!=(null==n?void 0:n.timestamp)?F(n.timestamp):B(),attributes:t,body:fn(null==n?void 0:n.data),severityText:null==n?void 0:n.severity,severityNumber:null!=n&&n.severity?ln[n.severity]:void 0})}},startView:function(e,n){if(0!==pe.endpoints.length)if("string"==typeof e&&0!==e.length){var t;if(null!=(null==n?void 0:n.url))try{t=new URL(n.url,null==v?void 0:v.location.href)}catch(e){l("Failed to parse startView url option. Falling back to the current location.",e)}!function(e){yr({timeUnixNano:e.timeUnixNano,url:e.url,title:e.title,customAttributes:e.attributes,pageViewType:un})}({timeUnixNano:B(),title:e,url:t,attributes:null==n?void 0:n.attributes})}else l("startView requires a non-empty view name. Ignoring startView call.");else l("Dash0 SDK has not been initialized. Ignoring startView call.")},startSessionRecording:function(e){var n=null!=e?e:null==v?void 0:v[Fr];"function"==typeof n?Xr(n):l("startSessionRecording requires a recorder. Import `recorder` from `@dash0/sdk-web/session-recording` or load dash0-session-recording.iife.js. Ignoring call.")},stopSessionRecording:function(){!function(){var e;if(Gr){try{Gr()}catch(e){l("Failed to stop session recorder",e)}Gr=void 0}null===(e=Br)||void 0===e||e.flush(),Br=void 0}()}};function $r(e){var n=e[0],t=Zr[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++)$r(e[n])})(e._q),v.dash0=function(){return $r(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 i=s("info"),o=s("warn"),a=s("error"),l=s("debug");function s(n){if("undefined"!=typeof console&&console[n]&&"function"==typeof console[n].apply){var i=t[n];return function(){i>=r&&console[n].apply(console,arguments)}}return e}var u=Object.prototype.hasOwnProperty;function c(e,n){return u.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}}(),_=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 y(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)}function R(e,n,t){e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent&&e.detachEvent("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 C(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(r,i)}function S(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){C(o,r,i,a,l,"next",e)}function l(e){C(o,r,i,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,M(r.key),r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=k(e))||n){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,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,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}function A(e,n,t){return(n=M(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function V(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?V(Object(t),!0).forEach((function(n){A(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function P(){P=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{u({},"")}catch(e){u=function(e,n,t){return e[n]=t}}function c(e,n,t,r){var o=n&&n.prototype instanceof E?n:E,a=Object.create(o.prototype),l=new A(r||[]);return i(a,"_invoke",{value:S(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",m={};function E(){}function _(){}function g(){}var y={};u(y,a,(function(){return this}));var T=Object.getPrototypeOf,R=T&&T(T(V([])));R&&R!==t&&r.call(R,a)&&(y=R);var b=g.prototype=E.prototype=Object.create(y);function I(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function C(e,n){function t(i,o,a,l){var s=v(e[i],e,o);if("throw"!==s.type){var u=s.arg,c=u.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){u.value=e,a(u)}),(function(e){return t("throw",e,a,l)}))}l(s.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new n((function(n,i){t(e,r,n,i)}))}return o=o?o.then(i,i):i()}})}function S(n,t,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var s=L(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=v(n,t,r);if("normal"===u.type){if(i=r.done?h:f,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=h,r.method="throw",r.arg=u.arg)}}}function L(n,t){var r=t.method,i=n.iterator[r];if(i===e)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=e,L(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=v(i,n.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var a=o.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 O(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function V(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,o=function t(){for(;++i<n.length;)if(r.call(n,i))return t.value=n[i],t.done=!1,t;return t.value=e,t.done=!0,t};return o.next=o}}throw new TypeError(typeof n+" is not iterable")}return _.prototype=g,i(b,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:_,configurable:!0}),_.displayName=u(g,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===_||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},I(C.prototype),u(C.prototype,l,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new C(c(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(b),u(b,s,"Generator"),u(b,a,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=V,A.prototype={constructor:A,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function i(r,i){return l.type="throw",l.arg=n,t.next=r,i&&(t.method="next",t.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=n,o?(this.method="next",this.next=o.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),O(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 i=r.arg;O(t)}return i}}throw Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:V(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),m}},n}function U(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n);else for(;!(s=(r=o.call(t)).done)&&(l.push(r.value),l.length!==n);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,n)||k(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}function x(e){return x="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},x(e)}function k(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 G(){return(new Date).getTime()}function B(){var e=H(),n=new Date;if(e){var t=h.now()+e,r=n.getTime();if(Math.abs(t-r)<6e4)return String(1e6*t)}return F(n)}function F(e){return"object"===x(e)?F(e.getTime()):String(e)+"000000"}function H(){var e,n=null==h?void 0:h.timeOrigin;"number"!=typeof n&&(n=null==h||null===(e=h.timing)||void 0===e?void 0:e.fetchStart);return n}var j={setTimeout:null==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},W=null!=v&&null!=v.Zone&&null!=v.Zone.root&&"function"==typeof v.Zone.root.run;function X(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("setTimeout",arguments)}function q(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("clearTimeout",arguments)}function Y(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("setInterval",arguments)}function z(){var e,n=this;if(W)try{var t=Array.prototype.slice.apply(arguments);return v.Zone.root.run(j[n],v,t)}catch(e){o("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)}W&&l("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");h&&h.getEntriesByType;var K=h&&"function"==typeof v.PerformanceObserver&&"function"==typeof h.now,Q=Object.freeze({CONNECT_END:"connectEnd",CONNECT_START:"connectStart",DECODED_BODY_SIZE:"decodedBodySize",DOM_COMPLETE:"domComplete",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_INTERACTIVE:"domInteractive",DOMAIN_LOOKUP_END:"domainLookupEnd",DOMAIN_LOOKUP_START:"domainLookupStart",ENCODED_BODY_SIZE:"encodedBodySize",FETCH_START:"fetchStart",LOAD_EVENT_END:"loadEventEnd",LOAD_EVENT_START:"loadEventStart",NAVIGATION_START:"navigationStart",REDIRECT_END:"redirectEnd",REDIRECT_START:"redirectStart",REQUEST_START:"requestStart",RESPONSE_END:"responseEnd",RESPONSE_START:"responseStart",SECURE_CONNECTION_START:"secureConnectionStart",START_TIME:"startTime",UNLOAD_EVENT_END:"unloadEventEnd",UNLOAD_EVENT_START:"unloadEventStart"}),Z=new WeakSet;function $(n){if(!K)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,i,o,a,l=[];return{start:function(){t=h.now();try{var e,n=null==v?void 0:v.PerformanceObserver;if(n)null===(e=i=new n(u))||void 0===e||e.observe({type:"resource"})}catch(e){}a=X(f,6e5)},end:function(e){if(r)return;if(r=null!=e?e:h.now(),p(),!J())return s();X((function(){return s()}),Math.min(300,n.maxWaitForResourceMillis)),T(d,"visibilitychange",c),o=X(s,n.maxWaitForResourceMillis)},cancel:f};function s(){f();var e=function(){if(!l.length)return;var e,i,o=l.filter((function(e){return e.responseEnd<=r+n.maxToleranceForResourceTimingsMillis&&!Z.has(e)}));if(!o.length)return;1===o.length&&(e=o[0]);if(!e){var a,s=O(o);try{for(s.s();!(a=s.n()).done;){var u=a.value,c=Math.abs(r-t-u.duration)+Math.abs(u.responseEnd-r);(void 0===i||c<i)&&(i=c,e=u)}}catch(e){s.e(e)}finally{s.f()}}if(!e)return;return Z.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 u(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(){J()||s()}function f(){!function(){if(i){try{var e;null===(e=i)||void 0===e||e.disconnect()}catch(e){}i=void 0}}(),o&&(clearTimeout(o),o=void 0),p(),function(){if(!d)return;R(d,"visibilitychange",c)}()}function p(){a&&(clearTimeout(a),a=void 0)}}function J(){return"visible"===(null==d?void 0:d.visibilityState)||"prerender"===(null==d?void 0:d.visibilityState)}var ee="undefined";function ne(e){return Math.round(100*e)/100}function te(e){var n;return"string"!=typeof e?e:new URL(e,null!==(n=null==d?void 0:d.baseURI)&&void 0!==n?n:null==p?void 0:p.href)}function re(e){try{return te(e).origin===("undefined"!=typeof location?location.origin:void 0)}catch(e){return!1}}var ie=/['"<>{};\x00-\x1F\x7F]/;var oe=Symbol.for("INSTRUMENTED_BY_DASH0");function ae(e){e[oe]=!0}function le(e,n,t){var r=e[n];if(r)if(!0!==r[oe])try{var i=t(r);ae(r),i&&ae(i),e[n]=i}catch(e){o("failed to instrument ".concat(String(n),", the page may have locked the property"),e)}else l("".concat(String(n)," has already been instrumented, skipping"));else l("".concat(String(n)," is not defined, unable to instrument"))}for(var se=new Uint32Array(256),ue=0;ue<256;ue++){for(var ce=ue,ve=0;ve<8;ve++)ce=1&ce?3988292384^ce>>>1:ce>>>1;se[ue]=ce>>>0}function de(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,i=0;i<n.length;i++){var o=n[i];r=r>>>8^se[255&(r^o)]}return(4294967295^r)>>>0}function fe(e,n){return!(n<=0)&&(n>=100||de(e)%100<n)}var pe={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.26.0",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:n,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},sessionRecording:{samplingRate:100,maskAllInputs:!0,maskTextClass:"dash0-mask",blockClass:"dash0-block",recordCanvas:!1,collectFonts:!1,chunkMaxBytes:48e3,chunkMaxMillis:5e3,checkoutEveryNms:3e5},enableTransportCompression:!1,isSessionSampled:!0};function he(e,n){for(var t=0,r=e.length;t<r;t++)if(e[t].test(n))return!0;return!1}var me="data:";function Ee(e){return!e||(!(e=String(e))||(null==e.substring||e.substring(0,5).toLowerCase()===me||(!!function(e){for(var n=e.toLowerCase(),t=0,r=pe.endpoints.length;t<r;t++){var i=pe.endpoints[t];if(n.startsWith(i.url))return!0}return!1}(e)||he(pe.ignoreUrls,e))))}var _e=!1;function ge(e){_e&&e(),d&&v&&(T(d,"visibilitychange",(function(){"visible"!==d.visibilityState&&e()})),T(v,"pagehide",(function(){_e=!0,e()})),T(v,"beforeunload",(function(){_e=!0,e()})))}function ye(e){var n,t=[];return ge(r),{send:function(i){"visible"===(null==d?void 0:d.visibilityState)?(t.push(i),t.length>=15?r():null==n&&(n=X(r,1e3))):e([i])}};function r(){null!=n&&(clearTimeout(n),n=null),t.length>0&&(e(t.slice()),t.length=0)}}var Te=0,Re=0;function be(e,n,t){return Ie.apply(this,arguments)}function Ie(){return Ie=S(P().mark((function n(t,r,i){var a,s,u,c;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l("Transmitting telemetry to endpoints",r),a=JSON.stringify(r),s=a,u=new Blob([a]).size,c=!1,"undefined"==typeof CompressionStream||!(pe.enableTransportCompression||null!=i&&i.compress)){n.next=11;break}return n.next=8,Ce(a);case 8:s=n.sent,u=s.byteLength,c=!0;case 11:return n.next=13,Promise.all(pe.endpoints.map(function(){var n=S(P().mark((function n(r){var i,a,l;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,(i=new URL(r.url)).pathname=i.pathname+(i.pathname.endsWith("/")?t.substring(1):t),a={"Content-Type":"application/json",Authorization:"Bearer ".concat(r.authToken)},r.dataset&&(a["Dash0-Dataset"]=r.dataset),c&&(a["Content-Encoding"]="gzip"),m){n.next=9;break}return o("Unable to send telemetry, fetch is not defined"),n.abrupt("return");case 9:return Te+=u,Re++,n.next=13,m(i,{method:"POST",headers:a,body:s,keepalive:Te<=6e4&&Re<=15});case 13:(l=n.sent).text().catch(e),l.ok||o("Failed to send telemetry to ".concat(i,": ").concat(l.status," ").concat(l.statusText)),n.next=21;break;case 18:n.prev=18,n.t0=n.catch(0),o("Error sending telemetry to ".concat(r.url).concat(t,":"),n.t0);case 21:return n.prev=21,Te-=u,Re--,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)}))),Ie.apply(this,arguments)}function Ce(e){return Se.apply(this,arguments)}function Se(){return(Se=S(P().mark((function e(n){var t,r,i;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Blob([n]),r=t.stream(),i=r.pipeThrough(new CompressionStream("gzip")),e.abrupt("return",new Response(i).arrayBuffer());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Le=ye(Pe),Ne=ye((function(e){be("/v1/traces",{resourceSpans:[{resource:pe.resource,scopeSpans:[{scope:pe.scope,spans:e}]}]}).catch((function(e){a("Failed to transmit spans",e)}))}));function Oe(e){var n;return function(){return n||(n=function(e){var n=e.maxCallsPerTenMinutes||128,t=e.maxCallsPerTenSeconds||32,r=0,i=0;return Y((function(){r=0}),6e5),Y((function(){i=0}),1e4),function(){return++r>n||++i>t}}(e)),n()}}var Ae=Oe({maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}),Ve=Oe({maxCallsPerTenMinutes:512,maxCallsPerTenSeconds:64});function we(e){pe.isSessionSampled&&(Ae()?l("Transport rate limit. Will not send item.",e):Le.send(e))}function Pe(e,n){be("/v1/logs",{resourceLogs:[{resource:pe.resource,scopeLogs:[{scope:pe.scope,logRecords:e}]}]},n).catch((function(e){a("Failed to transmit logs",e)}))}function Ue(e){e&&pe.isSessionSampled&&(Ae()?l("Transport rate limit. Will not send item.",e):Ne.send(e))}var De="service.name",Me="service.namespace",xe="service.version",ke="deployment.environment.name",Ge="deployment.name",Be="deployment.id",Fe="event.name",He="dash0.web.event.id",je="page.load.id",We="user_agent.original",Xe="user.id",qe="user.name",Ye="user.full_name",ze="user.email",Ke="user.hash",Qe="user.roles",Ze="exception.message",$e="exception.type",Je="exception.stacktrace",en="error.type",nn="url.full",tn="http.request.method",rn="http.request.method_original",on="http.response.status_code",an={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error",SESSION_RECORDING:"browser.session_recording"},ln={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},sn=0,un=1,cn="pushState",vn="replaceState",dn=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function fn(e){if(null!=e){var n={};return Array.isArray(e)?n.arrayValue={values:e.map((function(e){return fn(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"!==x(e))return!1;var n=Object.keys(e);return 1===n.length&&dn.includes(n[0])}(e)?"object"===x(e)&&(n.kvlistValue={values:Object.entries(e).map((function(e){var n=U(e,2);return pn(n[0],n[1])}))}):n=e,n}}function pn(e,n){return{key:e,value:fn(n)}}function hn(e,n,t){n&&e.push(pn(n,t))}function mn(e,n){n&&Object.entries(n).forEach((function(n){var t=U(n,2),r=t[0],i=t[1];return hn(e,r,i)}))}function En(e,n){var t=e.findIndex((function(e){return e.key===n}));-1!==t&&e.splice(t,1)}var _n="traceparent",gn=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function yn(){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())===_n})))||void 0===e?void 0:e.content.trim())||"").match(gn)||function(){var e=h.getEntriesByType("navigation")[0];if(!e)return"";if(!e.serverTiming)return"";return function(e){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name===_n)return r.description.trim()}}catch(e){t.e(e)}finally{t.f()}return""}(e.serverTiming)}().match(gn);if(t)return{traceId:t[1],spanId:t[2]}}function Tn(e,n,t){e.call(n,"traceparent","00-".concat(t.traceId,"-").concat(t.spanId,"-01"))}function Rn(e,n,t){var r,i,o,a=(r=t.traceId,i=r.substring(0,8),o=r.substring(8,32),"1-".concat(i,"-").concat(o)),l="Root=".concat(a,";Parent=").concat(t.spanId,";Sampled=1");e.call(n,"X-Amzn-Trace-Id",l)}var bn=1;function In(){var e,n;return"".concat((e={ephemeralSession:!b},n=0,e.ephemeralSession&&(n|=bn),n.toString(16).padStart(2,"0"))).concat(y(7))}var Cn="d0_session",Sn="#",Ln=864e5,Nn=null;function On(e,n){if(!b)return l("Storage API is not available and session tracking is therefore not supported."),void(Nn=In());e||(e=108e5),n||(n=216e5),e=Math.min(e,Ln),n=Math.min(n,Ln);try{var t=function(e){return b&&E?E.getItem(e):null}(Cn),r=function(e){if(!e)return null;var n=e.split(Sn);if(n.length<3)return null;var t=n[0],r=parseInt(n[1],10),i=parseInt(n[2],10);if(!t||isNaN(r)||isNaN(i))return null;return{id:t,startTime:r,lastActivityTime:i}}(t);r&&!function(e,n,t){var r=G()-n;if(e.lastActivityTime<r)return!1;var i=G()-t;return e.startTime>=i}(r,e,n)&&(r=null),r?r.lastActivityTime=G():r={id:In(),startTime:G(),lastActivityTime:G()},function(e,n){b&&E&&E.setItem(e,n)}(Cn,function(e){return e.id+Sn+e.startTime+Sn+e.lastActivityTime}(r)),Nn=r.id}catch(e){o("Failed to record session information",e)}}var An="d042",Vn=1;function wn(e){var n=0;return e.withoutSession&&(n|=Vn),n.toString(16).padStart(2,"0")}function Pn(e){return e?"".concat(An).concat(wn({withoutSession:!1})).concat(e).concat(y(5)):"".concat(An).concat(wn({withoutSession:!0})).concat(y(13))}function Un(e){var n=de(e).toString(16).padStart(8,"0");return"".concat(n).concat(y(4))}function Dn(e){var n=Pn(Nn),t=Un(n),r=[];return hn(r,He,t),{traceId:n,spanId:t,name:e,kind:3,startTimeUnixNano:B(),attributes:r,events:[],links:[],status:{code:0}}}function Mn(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 xn(e,n,t,r){var i=void 0,o=void 0;"string"==typeof t?i=t:Array.isArray(t)&&(o=t),e.events.push({name:n,timeUnixNano:null!=i?i:B(),attributes:null!=o?o:[]})}function kn(e,n,t){e.status={code:n,message:t}}function Gn(e,n){var t=[];"string"==typeof n?hn(t,Ze,n):n&&(n.code?hn(t,$e,n.code.toString()):n.name&&hn(t,$e,n.name),n.message&&hn(t,Ze,n.message),n.stack&&hn(t,Je,n.stack),xn(e,"exception",t))}function Bn(e,t,r){var i=function(e){return e?Array.isArray(e)?function(n){return[].concat(D(e),[n]).join(".")}:function(n){return"".concat(e,".").concat(n)}:function(e){return e}}(r);try{var o=te(t);o.username&&(o.username="REDACTED"),o.password&&(o.password="REDACTED");var a=pe.urlAttributeScrubber(A(A(A(A(A(A({},nn,o.href),"url.path",o.pathname),"url.domain",o.hostname),"url.scheme",o.protocol.replace(":","")),"url.fragment",o.hash?o.hash.replace("#",""):void 0),"url.query",o.search?o.search.replace("?",""):void 0));Object.entries(a).forEach((function(n){var t=U(n,2),r=t[0],o=t[1];void 0!==o&&hn(e,i(r),o)}))}catch(r){pe.urlAttributeScrubber===n&&hn(e,i(nn),String(t))}}var Fn=null!=_&&"function"==typeof _.getItem&&"function"==typeof _.setItem;var Hn="d0_tab",jn=null;function Wn(){if(Fn)try{var e=function(e){return Fn&&_?_.getItem(e):null}(Hn);if(e)return void(jn=e);jn=y(8),function(e,n){Fn&&_&&_.setItem(e,n)}(Hn,jn)}catch(e){o("Failed to record tab ID information",e)}else l("Storage API is not available and tab tracking is therefore not supported.")}function Xn(e,n){var t,r,i,o,a;void 0===e.find((function(e){return e.key===He}))&&hn(e,He,y(8));for(var l=0;l<pe.signalAttributes.length;l++)e.push(pe.signalAttributes[l]);Bn(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:ee,"page"),Nn&&hn(e,"session.id",Nn),jn&&hn(e,"browser.tab.id",jn),hn(e,"browser.window.width",null!==(i=null==v?void 0:v.innerWidth)&&void 0!==i?i:ee),hn(e,"browser.window.height",null!==(o=null==v?void 0:v.innerHeight)&&void 0!==o?o:ee);var s=null==f||null===(a=f.connection)||void 0===a?void 0:a.effectiveType;s&&hn(e,"network.connection.subtype",s)}var qn,Yn=0,zn=0,Kn={},Qn=!1;function Zn(){Qn=!0}function $n(e,n){e&&Jn("string"==typeof e?{message:e,opts:n}:{message:e.message,type:e.name,stack:e.stack,opts:n})}function Jn(e){var n=e.message,t=e.type,r=e.stack,i=e.opts;if(n&&!(Yn>100)&&!function(e){return!e||he(pe.ignoreErrorMessages,e)}(n)){zn>=20&&(Kn={},zn=0);var o=(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=Kn[o];if(a)a.seenCount++;else{var l=[];Xn(l),hn(l,Fe,an.ERROR),hn(l,Ze,n),t&&hn(l,$e,t),r&&hn(l,Je,r),null!=i&&i.componentStack&&hn(l,"exception.component_stack",null==i?void 0:i.componentStack.substring(0,2048)),mn(l,null==i?void 0:i.attributes),a={seenCount:1,transmittedCount:0,log:{timeUnixNano:B(),attributes:l,severityNumber:ln.ERROR,severityText:"ERROR",body:{stringValue:n}}},Kn[o]=a,zn++}!function(){if(qn)return;qn=setTimeout(et,1e3)}()}}function et(){for(var e in qn&&(clearTimeout(qn),qn=null),Kn)if(c(Kn,e)){var n=Kn[e];n.seenCount>n.transmittedCount&&(we(n.log),Yn++)}Kn={},zn=0}var nt=-1,tt=function(e){addEventListener("pageshow",(function(n){n.persisted&&(nt=n.timeStamp,e(n))}),!0)},rt=function(e,n,t,r){var i,o;return function(a){n.value>=0&&(a||r)&&(((o=n.value-(null!=i?i:0))||void 0===i)&&(i=n.value,n.delta=o,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n)))}},it=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},ot=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},at=function(){var e,n=ot();return null!==(e=null==n?void 0:n.activationStart)&&void 0!==e?e:0},lt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,t=ot(),r="navigate";return nt>=0?r="back-forward-cache":t&&(document.prerendering||at()>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}},st=new WeakMap;function ut(e,n){return st.get(e)||st.set(e,new n),st.get(e)}var ct,vt=function(){return N((function e(){L(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)}}}])}(),dt=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(w({type:e,buffered:!0},t)),r}}catch(e){}},ft=function(e){var n=!1;return function(){n||(e(),n=!0)}},pt=-1,ht=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},mt=function(e){"hidden"===document.visibilityState&&pt>-1&&(pt="visibilitychange"===e.type?e.timeStamp:0,_t())},Et=function(){addEventListener("visibilitychange",mt,!0),addEventListener("prerenderingchange",mt,!0)},_t=function(){removeEventListener("visibilitychange",mt,!0),removeEventListener("prerenderingchange",mt,!0)},gt=function(){if(pt<0){var e,n=at(),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;pt=null!=t?t:ht(),Et(),tt((function(){setTimeout((function(){pt=ht(),Et()}))}))}return{get firstHiddenTime(){return pt}}},yt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Tt=[1800,3e3],Rt=[.1,.25],bt=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]:{};yt((function(){var t,r=gt(),i=lt("FCP"),o=dt("paint",(function(e){var n,a=O(e);try{for(a.s();!(n=a.n()).done;){var l=n.value;"first-contentful-paint"===l.name&&(o.disconnect(),l.startTime<r.firstHiddenTime&&(i.value=Math.max(l.startTime-at(),0),i.entries.push(l),t(!0)))}}catch(e){a.e(e)}finally{a.f()}}));o&&(t=rt(e,i,Tt,n.reportAllChanges),tt((function(r){i=lt("FCP"),t=rt(e,i,Tt,n.reportAllChanges),it((function(){i.value=performance.now()-r.timeStamp,t(!0)}))})))}))}(ft((function(){var t,r=lt("CLS",0),i=ut(n,vt),o=function(e){var n,o=O(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;i.h(a)}}catch(e){o.e(e)}finally{o.f()}i.i>r.value&&(r.value=i.i,r.entries=i.o,t())},a=dt("layout-shift",o);a&&(t=rt(e,r,Rt,n.reportAllChanges),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(o(a.takeRecords()),t(!0))})),tt((function(){i.i=0,r=lt("CLS",0),t=rt(e,r,Rt,n.reportAllChanges),it((function(){return t()}))})),setTimeout(t))})))},It=0,Ct=1/0,St=0,Lt=function(e){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;r.interactionId&&(Ct=Math.min(Ct,r.interactionId),St=Math.max(St,r.interactionId),It=St?(St-Ct)/7+1:0)}}catch(e){t.e(e)}finally{t.f()}},Nt=function(){var e;return ct?It:null!==(e=performance.interactionCount)&&void 0!==e?e:0},Ot=0,At=function(){return N((function e(){L(this,e),A(this,"u",[]),A(this,"l",new Map),A(this,"m",void 0),A(this,"v",void 0)}),[{key:"p",value:function(){Ot=Nt(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((Nt()-Ot)/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 i;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 o,a=O(this.u.splice(10));try{for(a.s();!(o=a.n()).done;){var l=o.value;this.l.delete(l.id)}}catch(e){a.e(e)}finally{a.f()}}null===(i=this.v)||void 0===i||i.call(this,r)}}}}])}(),Vt=function(e){var n=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=ft(e),document.addEventListener("visibilitychange",e,{once:!0}),n((function(){e(),document.removeEventListener("visibilitychange",e)})))},wt=[200,500],Pt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&yt((function(){var t;"interactionCount"in performance||ct||(ct=dt("event",Lt,{type:"event",buffered:!0,durationThreshold:0}));var r,i=lt("INP"),o=ut(n,At),a=function(e){Vt((function(){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var a=n.value;o.h(a)}}catch(e){t.e(e)}finally{t.f()}var l=o.P();l&&l.T!==i.value&&(i.value=l.T,i.entries=l.entries,r())}))},l=dt("event",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=rt(e,i,wt,n.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(a(l.takeRecords()),r(!0))})),tt((function(){o.p(),i=lt("INP"),r=rt(e,i,wt,n.reportAllChanges)})))}))},Ut=function(){return N((function e(){L(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)}}])}(),Dt=[2500,4e3];function Mt(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};yt((function(){var t,r=gt(),i=lt("LCP"),o=ut(n,Ut),a=function(e){n.reportAllChanges||(e=e.slice(-1));var a,l=O(e);try{for(l.s();!(a=l.n()).done;){var s=a.value;o.h(s),s.startTime<r.firstHiddenTime&&(i.value=Math.max(s.startTime-at(),0),i.entries=[s],t())}}catch(e){l.e(e)}finally{l.f()}},l=dt("largest-contentful-paint",a);if(l){t=rt(e,i,Dt,n.reportAllChanges);for(var s=ft((function(){a(l.takeRecords()),l.disconnect(),t(!0)})),u=0,c=["keydown","click","visibilitychange"];u<c.length;u++)addEventListener(c[u],(function(){return Vt(s)}),{capture:!0,once:!0});tt((function(r){i=lt("LCP"),t=rt(e,i,Dt,n.reportAllChanges),it((function(){i.value=performance.now()-r.timeStamp,t(!0)}))}))}}))}(xt,{reportAllChanges:!0}),Pt(xt,{reportAllChanges:!0}),bt(xt,{reportAllChanges:!0})}function xt(e){var n=[];hn(n,Fe,an.WEB_VITAL);var t=[];hn(t,"name",e.name),hn(t,"value",ne(e.value)),hn(t,"delta",ne(e.delta));var r={timeUnixNano:B(),attributes:n,severityNumber:ln.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};Xn(r.attributes),we(r)}var kt="Unhandled promise rejection: ",Gt="<unavailable because Promise wasn't rejected with an Error object>";function Bt(e){null==e.reason?$n({message:kt+"<no reason defined>",stack:Gt}):"string"==typeof e.reason.message?$n({message:kt+e.reason.message,stack:"string"==typeof e.reason.stack?e.reason.stack:Gt}):"object"!==x(e.reason)&&$n({message:kt+e.reason,stack:Gt})}var Ft="__dash0OriginalFunctions";function Ht(e,n){for(var t=e[Ft],r=0;r<t.length;r++){if(jt(t[r].valuesForEqualityCheck,n))return r}return-1}function jt(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 Wt(e,n,t,r,i){return function(e,n,t){if(!e)return n;var r=e[Ft]=e[Ft]||[],i=Ht(e,t);return-1!==i?r[i].wrappedFunction:(r.push({wrappedFunction:n,valuesForEqualityCheck:t}),n)}(e,n,Xt(t,r,i))}function Xt(e,n,t){return[e,n,qt(t)]}function qt(e){return null!=e&&("object"===x(e)?Boolean(e.capture):Boolean(e))}function Yt(e,n,t,r,i){return function(e,n,t){var r=null==e?void 0:e[Ft];if(null==r)return t;var i=Ht(e,n);if(-1===i)return t;var o=r[i];return r.splice(i,1),o.wrappedFunction}(e,Xt(n,t,r),i)}function zt(){pe.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 i=new Array(arguments.length),o=0;o<arguments.length;o++)i[o]=arguments[o];return i[1]=function(){try{return t.apply(this,arguments)}catch(e){throw $n(e),Zn(),e}},i[1]=Wt(this,i[1],e,t,r),n.apply(this,i)},e.prototype.removeEventListener=function(e,n,r){if("function"!=typeof n)return t.apply(this,arguments);for(var i=new Array(arguments.length),o=0;o<arguments.length;o++)i[o]=arguments[o];return i[1]=Yt(this,e,n,r,n),t.apply(this,i)}}(null==v?void 0:v.EventTarget)}function Kt(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),Zn(),e}}}(e),n.apply(this,t)})}function Qt(){!function(){if(v){var e=v.onerror;v.onerror=function(n,t,r,i,o){if(Qn)return Qn=!1,"function"==typeof e?e.apply(this,arguments):void 0;var a=o&&o.stack;return a||(a="at "+t+" "+r,null!=i&&(a+=":"+i)),Jn({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",Bt),zt(),function(){if(pe.wrapTimers){if(W)return void o("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");Kt("setTimeout"),Kt("setInterval")}}()}function Zt(e){return"".concat("http.request.header",".").concat(e.toLowerCase())}function $t(e){return"".concat("http.response.header",".").concat(e.toLowerCase())}var Jt=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"],er="_OTHER";function nr(e){return Jt.includes(e)}function tr(e,n){var t=0!==n.startTime;rr(e,Q.FETCH_START,n,t),rr(e,Q.DOMAIN_LOOKUP_START,n,t),rr(e,Q.DOMAIN_LOOKUP_END,n,t),rr(e,Q.CONNECT_START,n,t),rr(e,Q.SECURE_CONNECTION_START,n,t),rr(e,Q.CONNECT_END,n,t),rr(e,Q.REQUEST_START,n,t),rr(e,Q.RESPONSE_START,n,t),rr(e,Q.RESPONSE_END,n,t)}function rr(e,n,t){var r,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];!(n in t)||"number"!=typeof t[n]||i&&0===t[n]||xn(e,n,(r=t[n],String(Math.round(1e6*(r+H())))))}function ir(e,n){var t=n.encodedBodySize;null!=t&&hn(e.attributes,"http.response.body.size",t)}function or(e,n){var t;Gn(e,n);var r="object"===x(n)&&n?null!==(t=n.name)&&void 0!==t?t:null!=n.code?String(n.code):"error":"error";hn(e.attributes,en,r),Ue(Mn(e,function(e){return{code:2,message:e&&"object"===x(e)&&"message"in e?e.message:String(e)}}(n),void 0))}function ar(e){hn(e.attributes,"dash0.web.request.cancelled",!0),Ue(Mn(e,void 0,void 0))}function lr(e){var n=[];if(re(e)){if(n.push("traceparent"),pe.propagators){var t,r=O(pe.propagators);try{for(r.s();!(t=r.n()).done;){var i=t.value;"traceparent"===i.type||n.includes(i.type)||n.push(i.type)}}catch(e){r.e(e)}finally{r.f()}}return n}if(pe.propagators){var o,a=O(pe.propagators);try{for(a.s();!(o=a.n()).done;){var l=o.value;he(l.match,e)&&(n.includes(l.type)||n.push(l.type))}}catch(e){a.e(e)}finally{a.f()}return n}return[]}function sr(e,n,t,r){var i,o=O(r);try{for(o.s();!(i=o.n()).done;){"xray"===i.value?Rn(e,n,t):Tn(e,n,t)}}catch(e){o.e(e)}finally{o.f()}}function ur(e){return function(){var n=S(P().mark((function n(t,r){var i,o,a,s,u,c,v,d,f,p,h;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t,n.prev=1,s=r?Object.assign({},r):r,u=null,null!=s&&s.body&&(u=s.body,s.body=void 0),o=new Request(t,s),u&&s&&(s.body=u),i=t instanceof Request?o:t,!Ee(o.url)){n.next=11;break}return l("Not creating span for fetch call because the url is ignored, URL: ".concat(o.url)),n.abrupt("return",e(i,r));case 11:a=cr(t,r,o,s),n.next=18;break;case 14:return n.prev=14,n.t0=n.catch(1),l("failed to instrument fetch call",n.t0),n.abrupt("return",e(i,r));case 18:return v=(c=a).copyOfInit,d=c.span,f=c.performanceObserver,n.prev=19,n.next=22,e(i,v);case 22:return p=n.sent,dr(d,p),n.abrupt("return",fr(p,pe.maxToleranceForResourceTimingsMillis,(function(){return f.end()}),(function(e){var n;f.cancel(),null!==(n=o)&&void 0!==n&&null!==(n=n.signal)&&void 0!==n&&n.aborted?ar(d):or(d,e)})));case 27:throw n.prev=27,n.t1=n.catch(19),f.cancel(),null!==(h=o)&&void 0!==h&&null!==(h=h.signal)&&void 0!==h&&h.aborted?ar(d):or(d,n.t1),n.t1;case 32:case"end":return n.stop()}}),n,null,[[1,14],[19,27]])})));return function(e,t){return n.apply(this,arguments)}}()}function cr(e,n,t,r){var i,o=t.url,a=null!==(i=t.method)&&void 0!==i?i:"GET",s=nr(a),u=nr(a.toUpperCase())?a.toUpperCase():er,c=Dn("HTTP ".concat(u));Xn(c.attributes),Bn(c.attributes,o),function(e,n){try{return void 0}catch(t){l("failed to analyze request for GraphQL insights",t,e,n)}}(e,n),hn(c.attributes,tn,u),s||hn(c.attributes,rn,a);var v,d=lr(o);d.length>0&&(null!==(v=r)&&void 0!==v&&v.headers?(r.headers=new Headers(r.headers),sr(r.headers.append,r.headers,c,d)):e instanceof Request?sr(t.headers.append,t.headers,c,d):(r||(r={}),r.headers=new Headers,sr(r.headers.append,r.headers,c,d)));vr(t.headers,c,(function(e){return Zt(e)}));var f=$({resourceMatcher:function(e){var n=e.initiatorType,t=e.name;return("fetch"===n||"xmlhttprequest"===n)&&t===te(o).href},maxWaitForResourceMillis:pe.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:pe.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,t=e.resource;t&&(tr(c,t),ir(c,t)),Ue(Mn(c,void 0,1e6*n))}});return f.start(),{copyOfInit:r,span:c,performanceObserver:f}}function vr(e,n,t){try{if(!pe.headersToCapture.length)return;e.forEach((function(e,r){pe.headersToCapture.some((function(e){return e.test(r)}))&&hn(n.attributes,t(r),e)}))}catch(e){l("unable to capture http headers",e)}}function dr(e,n){var t=n.status;kn(e,t>=200&&t<400?0:2),0===t&&hn(e.attributes,en,n.type),hn(e.attributes,on,String(t)),vr(n.headers,e,(function(e){return $t(e)}))}function fr(e,n,t,r){var i,o,a=h.now(),l=e.body;if(!(l&&(i=e,o=i.status,o>=200&&204!=o&&205!=o&&304!=o)))return t(),e;var s=!1,u=function(e){s||(t(e),s=!0)},c=function(e){s||(r(e),s=!0)},v=X((function(){return u(a)}),n),d=l.getReader(),f=new ReadableStream({pull:function(e){return S(P().mark((function t(){var r,i;return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,q(v),t.next=4,d.read();case 4:r=t.sent,i=r.value,r.done?(d.releaseLock(),e.close(),u()):(a=h.now(),v=X((function(){return u(a)}),n),e.enqueue(i)),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 q(v),u(),d.cancel(e)}});return new Response(f,{status:e.status,statusText:e.statusText,headers:e.headers})}var pr,hr=Symbol("dash0XhrState");function mr(e){return function(n,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=[n,t].concat(i);try{a=[n,Er(this,n,t)].concat(i)}catch(e){this[hr]=void 0,l("failed to instrument XMLHttpRequest.open",e)}return e.apply(this,a)}}function Er(e,n,t){var r=e[hr];null!=r&&r.span&&!r.completed&&function(e,n){n.completed=!0;try{var t,r,i,o=O(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(o.s();!(i=o.n()).done;){var a=U(i.value,2);R(e,a[0],a[1])}}catch(e){o.e(e)}finally{o.f()}null===(t=n.performanceObserver)||void 0===t||t.cancel(),n.span&&ar(n.span)}catch(e){}}(e,r);var i=String(t),o=te(i).href,a=String(null!=n?n:"GET"),l=nr(a.toUpperCase())?a.toUpperCase():er;return e[hr]={method:l,originalMethod:a,isWellKnownMethod:nr(a),url:o,ignored:Ee(o),propagatorTypes:lr(o),completed:!1},i}function _r(e){return pr=e,function(n,t){e.call(this,n,t);try{!function(e,n,t){var r,i=e[hr];if(!i||i.ignored)return;var o=n.toLowerCase();"traceparent"!==o&&"x-amzn-trace-id"!==o||(i.alreadyTraced=!0);if(0===pe.headersToCapture.length)return;if(!pe.headersToCapture.some((function(e){return e.test(o)})))return;var a=null!==(r=i.capturedRequestHeaders)&&void 0!==r?r:i.capturedRequestHeaders={};a[o]=o in a?"".concat(a[o],", ").concat(t):t}(this,n,t)}catch(e){l("failed to instrument XMLHttpRequest.setRequestHeader",e)}}}function gr(e){return function(n){var t=this[hr];if(!t||t.ignored)return null!=t&&t.ignored&&l("Not creating span for XMLHttpRequest because the url is ignored, URL: ".concat(t.url)),e.call(this,n);if(t.alreadyTraced)return l("Not creating span for XMLHttpRequest because a trace correlation header is already present, URL: ".concat(t.url)),e.call(this,n);if(t.span&&!t.completed)return e.call(this,n);try{!function(e,n){var t=Dn("HTTP ".concat(n.method));Xn(t.attributes),Bn(t.attributes,n.url),hn(t.attributes,tn,n.method),n.isWellKnownMethod||hn(t.attributes,rn,n.originalMethod);if(n.span=t,n.propagatorTypes.length>0)try{sr((function(n,t){return(null!=pr?pr:e.setRequestHeader).call(e,n,t)}),e,t,n.propagatorTypes)}catch(e){l("failed to inject trace context headers on XMLHttpRequest",e)}if(n.capturedRequestHeaders)for(var r=0,i=Object.entries(n.capturedRequestHeaders);r<i.length;r++){var o=U(i[r],2),a=o[0],s=o[1];hn(t.attributes,Zt(a),s)}var u=$({resourceMatcher:function(e){var t=e.initiatorType,r=e.name;return"xmlhttprequest"===t&&r===n.url},maxWaitForResourceMillis:pe.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:pe.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,r=e.resource;r&&(tr(t,r),ir(t,r)),Ue(Mn(t,void 0,1e6*n))}});n.performanceObserver=u,u.start(),n.listeners=[["error",function(){n.failureKind="error"}],["timeout",function(){n.failureKind="timeout"}],["abort",function(){n.failureKind="abort"}],["loadend",function(){return function(e,n){var t;if(n.completed)return;n.completed=!0;var r,i=O(null!==(t=n.listeners)&&void 0!==t?t:[]);try{for(i.s();!(r=i.n()).done;){var o=U(r.value,2);R(e,o[0],o[1])}}catch(e){i.e(e)}finally{i.f()}var a=n.span;if(!a)return;var s=n.performanceObserver;if("abort"===n.failureKind)return null==s||s.cancel(),void ar(a);var u=0;try{u=e.status}catch(e){u=0}if("error"===n.failureKind||"timeout"===n.failureKind||0===u){var c;return null==s||s.cancel(),void or(a,{name:null!==(c=n.failureKind)&&void 0!==c?c:"error",message:"XMLHttpRequest failed: ".concat(n.url)})}kn(a,u>=200&&u<400?0:2),hn(a.attributes,on,String(u)),function(e,n){try{if(!pe.headersToCapture.length)return;var t=e.getAllResponseHeaders();if(!t)return;t.split(/\r?\n/).filter((function(e){return e.length>0})).forEach((function(e){var t=e.indexOf(":");if(-1!==t){var r=e.substring(0,t).trim(),i=e.substring(t+1).trim();pe.headersToCapture.some((function(e){return e.test(r)}))&&hn(n.attributes,$t(r),i)}}))}catch(e){l("unable to capture http response headers",e)}}(e,a),null==s||s.end()}(e,n)}]];var c,v=O(n.listeners);try{for(v.s();!(c=v.n()).done;){var d=U(c.value,2),f=d[0],p=d[1];T(e,f,p)}}catch(e){v.e(e)}finally{v.f()}}(this,t)}catch(e){!function(e,n){try{var t,r;null===(t=n.performanceObserver)||void 0===t||t.cancel();var i,o=O(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(o.s();!(i=o.n()).done;){var a=U(i.value,2);R(e,a[0],a[1])}}catch(e){o.e(e)}finally{o.f()}}catch(e){}n.span=void 0}(this,t),l("failed to instrument XMLHttpRequest.send",e)}try{return e.call(this,n)}catch(e){throw function(e,n,t){if(n.completed)return;n.completed=!0;try{var r,i,o,a,l=O(null!==(o=n.listeners)&&void 0!==o?o:[]);try{for(l.s();!(a=l.n()).done;){var s=U(a.value,2);R(e,s[0],s[1])}}catch(e){l.e(e)}finally{l.f()}null===(r=n.performanceObserver)||void 0===r||r.cancel();var u=n.span;if(!u)return;var c=null!==(i=n.failureKind)&&void 0!==i?i:"TimeoutError"===(null==t?void 0:t.name)?"timeout":"error";Gn(u,null!=t?t:{name:c,message:"XMLHttpRequest failed: ".concat(n.url)}),hn(u.attributes,en,c),Ue(Mn(u,{code:2,message:"XMLHttpRequest failed: ".concat(n.url)},void 0))}catch(e){}}(this,t,e),e}}}function yr(e){var n,t,r=[];hn(r,Fe,an.PAGE_VIEW),e.metaAttributes&&Object.entries(e.metaAttributes).forEach((function(e){var n=U(e,2),t=n[0],i=n[1];return hn(r,t,i)})),Xn(r,{url:e.url}),mn(r,e.customAttributes);var i=[];hn(i,"title",null!==(n=null!==(t=e.title)&&void 0!==t?t:null==d?void 0:d.title)&&void 0!==n?n:ee),null!=d&&d.referrer&&hn(i,"referrer",d.referrer),hn(i,"type",e.pageViewType),e.changeState&&hn(i,"change_state",e.changeState);var o={timeUnixNano:e.timeUnixNano,attributes:r,severityNumber:ln.INFO,severityText:"INFO",body:{kvlistValue:{values:i}}},a=yn();a&&(o.traceId=a.traceId,o.spanId=a.spanId),we(o)}function Tr(e,n,t,r){var i=function(e){var n,t,r;return e&&null!==(n=null===(t=(r=pe.pageViewInstrumentation).generateMetadata)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:{}}(n);yr({timeUnixNano:e,url:n,title:i.title,metaAttributes:i.attributes,pageViewType:t?un:sn,changeState:r?vn:cn})}function Rr(){var e=null==v?void 0:v.performance.getEntriesByType("navigation")[0];if(e){var n=[];hn(n,Fe,an.NAVIGATION_TIMING);var t=[];hn(t,"name",e.name),br(t,e,"responseStatus"),br(t,e,"fetchStart"),br(t,e,"requestStart"),br(t,e,"responseStart"),br(t,e,"domInteractive"),br(t,e,"domContentLoadedEventEnd"),br(t,e,"domComplete"),br(t,e,"loadEventEnd"),br(t,e,"transferSize"),br(t,e,"encodedBodySize"),br(t,e,"decodedBodySize");var r={timeUnixNano:Ir(),attributes:n,severityNumber:ln.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};Xn(r.attributes);var i=yn();i&&(r.traceId=i.traceId,r.spanId=i.spanId),we(r)}else l("Navigation timings not available. Cannot emit navigation timing log")}function br(e,n,t){var r=n[t];"number"!=typeof r||isNaN(r)||hn(e,t,Number.isInteger(r)?r:ne(r))}function Ir(){return F(Math.round(H()))}var Cr={},Sr=!1,Lr=!1;function Nr(){Ar(null==v?void 0:v.location.href)}function Or(e){Ar(e.newURL)}function Ar(e,n){var t;if(e)try{var r=new URL(e,null==v?void 0:v.location.href);((t=r).pathname!==Cr.path||Lr&&t.search!==Cr.search||Sr&&t.hash!==Cr.hash)&&(Vr(r),Tr(B(),r,!0,Boolean(n)))}catch(e){l("Failed to handle url change",e)}}function Vr(e){Cr.path=e.pathname,Cr.search=e.search,Cr.hash=e.hash}function wr(){!function(){try{Tr(Ir(),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 Rr();v&&T(v,"load",(function(){setTimeout(Rr,0)}))}(),function(){var e,n,t,r;if(v&&v.history){if(pe.pageViewInstrumentation.trackVirtualPageViews){Lr=null!==(e=null===(n=pe.pageViewInstrumentation.includeParts)||void 0===n?void 0:n.includes("SEARCH"))&&void 0!==e&&e,Sr=null!==(t=null===(r=pe.pageViewInstrumentation.includeParts)||void 0===r?void 0:r.includes("HASH"))&&void 0!==t&&t,le(v.history,"replaceState",(function(e){return function(n,t,r){return Ar(r?String(r):void 0,!0),e.apply(this,[n,t,r])}})),le(v.history,"pushState",(function(e){return function(n,t,r){return Ar(r?String(r):void 0),e.apply(this,[n,t,r])}})),v.addEventListener("hashchange",Or),v.addEventListener("popstate",Nr);try{Vr(new URL(v.location.href))}catch(e){}}}else l("Browser does not support history API, skipping instrumentation")}()}function Pr(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];for(var r=0,i=n;r<i.length;r++){var o=i[r];if(o)return o}}var Ur={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,i,o,a,l,s,u,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,i,o;try{var a,l,s,u,c,v,d,f,p,h,m,E,_,g,y,T,R,b,I,C,S,L,N,O,A,V,w,P,U,D,M,x,k,G,B,F,H,j,W,X,q,Y,z,K,Q,Z,$,J,ee,ne,te,re,ie,oe,ae,le,se,ue,ce,ve;e=Pr(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===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.NUXT_ENV_VERCEL_GIT_PROVIDER,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.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=Pr(null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.NUXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.NUXT_ENV_VERCEL_GIT_REPO_OWNER,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.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===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.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=Pr(null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NUXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.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===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.PUBLIC_VERCEL_GIT_REPO_SLUG,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.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=Pr(null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.NUXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.NUXT_ENV_VERCEL_GIT_COMMIT_REF,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.REACT_APP_VERCEL_GIT_COMMIT_REF,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.GATSBY_VERCEL_GIT_COMMIT_REF,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.VITE_VERCEL_GIT_COMMIT_REF,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.PUBLIC_VERCEL_GIT_COMMIT_REF,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.VUE_APP_VERCEL_GIT_COMMIT_REF,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.REDWOOD_ENV_VERCEL_GIT_COMMIT_REF,null===(X=process)||void 0===X||null===(X=X.env)||void 0===X?void 0:X.SANITY_STUDIO_VERCEL_GIT_COMMIT_REF),i=Pr(null===(q=process)||void 0===q||null===(q=q.env)||void 0===q?void 0:q.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(Y=process)||void 0===Y||null===(Y=Y.env)||void 0===Y?void 0:Y.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),o=Pr(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===(ie=process)||void 0===ie||null===(ie=ie.env)||void 0===ie?void 0:ie.NUXT_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(oe=process)||void 0===oe||null===(oe=oe.env)||void 0===oe?void 0:oe.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===(se=process)||void 0===se||null===(se=se.env)||void 0===se?void 0:se.PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(ue=process)||void 0===ue||null===(ue=ue.env)||void 0===ue?void 0:ue.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:Mr(e,n,t),refHeadName:r,refHeadRevision:i,changeId:o}}(),_=function(){var e,n,t,r;try{var i,o,a,l,s,u,c,v,d,f,p,h,m,E,_,g,y,T,R,b,I,C,S,L,N,O,A,V,w,P,D,M,x,k,G,B,F,H,j,W;e=Pr(null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.NEXT_PUBLIC_REPOSITORY_URL,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.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===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.GATSBY_REPOSITORY_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.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=Pr(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===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NUXT_ENV_BRANCH,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.REACT_APP_BRANCH,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.GATSBY_BRANCH,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.VITE_BRANCH,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.PUBLIC_BRANCH,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.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=Pr(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===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NUXT_ENV_COMMIT_REF,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.REACT_APP_COMMIT_REF,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.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===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.SANITY_STUDIO_COMMIT_REF),r=Pr(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===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.NUXT_ENV_REVIEW_ID,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.REACT_APP_REVIEW_ID,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.GATSBY_REVIEW_ID,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.VITE_REVIEW_ID,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.PUBLIC_REVIEW_ID,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.VUE_APP_REVIEW_ID,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.REDWOOD_ENV_REVIEW_ID,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.SANITY_STUDIO_REVIEW_ID)}catch(e){}var X=function(e){if(!e)return;var n,t;try{var r=new URL(e);n=r.host,t=r.pathname}catch(e){return}var i=function(e){for(var n=0,t=Object.entries(xr);n<t.length;n++){var r=U(t[n],2),i=r[0];if(r[1].includes(e))return i}return}(n);if(!i)return;var o=t.replace(/^\/+/,"").replace(/\.git$/,"").split("/");if(o.length<2)return;var a=o[0],l=o[o.length-1];return a&&l?{providerName:i,ownerName:a,repositoryName:l}:void 0}(e);return{providerName:null==X?void 0:X.providerName,ownerName:null==X?void 0:X.ownerName,repositoryName:null==X?void 0:X.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:_.providerName,ownerName:null!==(i=null!==(o=m.ownerName)&&void 0!==o?o:E.ownerName)&&void 0!==i?i:_.ownerName,repositoryName:null!==(a=null!==(l=m.repositoryName)&&void 0!==l?l:E.repositoryName)&&void 0!==a?a:_.repositoryName,repositoryUrlFull:null!==(s=null!==(u=m.repositoryUrlFull)&&void 0!==u?u:E.repositoryUrlFull)&&void 0!==s?s:_.repositoryUrlFull,refHeadName:null!==(c=null!==(v=m.refHeadName)&&void 0!==v?v:E.refHeadName)&&void 0!==c?c:_.refHeadName,refHeadRevision:null!==(d=null!==(f=m.refHeadRevision)&&void 0!==f?f:E.refHeadRevision)&&void 0!==d?d:_.refHeadRevision,changeId:null!==(p=null!==(h=m.changeId)&&void 0!==h?h:E.changeId)&&void 0!==p?p:_.changeId}}(e),t=0,r=Object.keys(Ur);t<r.length;t++){var i=r[t],o=n[i];o&&hn(pe.resource.attributes,Ur[i],o)}}function Mr(e,n,t){if(e&&n&&t){var r=function(e){var n;return null===(n=xr[e])||void 0===n?void 0:n[0]}(e);if(r)return"https://".concat(r,"/").concat(n,"/").concat(t)}}var xr={github:["github.com","gist.github.com"],gitlab:["gitlab.com"],bitbucket:["bitbucket.org"]};var kr,Gr,Br,Fr="dash0Recorder",Hr=!1,jr=!1,Wr=!1,Xr=!1,qr=!1;function Yr(e){kr=e,Xr=!1,Hr&&Qr()}function zr(){var e;if(Gr){try{Gr()}catch(e){l("Failed to stop session recorder",e)}Gr=void 0}null===(e=Br)||void 0===e||e.flush(),Br=void 0}function Kr(){var e=null==d?void 0:d.visibilityState;return null!=e&&"visible"!==e}function Qr(){var e,n,t;if(Gr)l("Session recording already running. Ignoring start.");else if(kr&&v){var r=pe.sessionRecording;if(pe.isSessionSampled)if(fe(null!=Nn?Nn:"",null!==(e=r.samplingRate)&&void 0!==e?e:100))if(Ee(v.location.href))l("Page URL is ignored. Session recording will not start.");else if(!Wr&&d&&(Wr=!0,T(d,"visibilitychange",(function(){if(Kr()){qr=!0;try{zr()}finally{qr=!1}}else Xr||Qr()}))),Kr())l("Document is hidden. Session recording will start once it becomes visible.");else{var i=Pn(Nn),a={recordingId:y(16),traceId:i,spanId:Un(i)},s=function(e){var n=[],t=0,r=!1,i=0,o=0,a=0,l=null;return{add:function(a){4===a.type&&n.length>0&&u();var s=JSON.stringify(a);null!=s&&(0===n.length&&(i=a.timestamp,l=X(u,e.maxMillis)),n.push(s),t+=s.length,o=a.timestamp,2===a.type&&(r=!0),t>=e.maxBytes&&u())},flush:u,discard:function(){s(),n=[],t=0,r=!1}};function s(){null!=l&&(q(l),l=null)}function u(){if(s(),0!==n.length){var l={seq:a++,body:"["+n.join(",")+"]",eventCount:n.length,hasSnapshot:r,startTime:i,endTime:o};n=[],t=0,r=!1,e.onChunk(l)}}}({maxBytes:null!==(n=r.chunkMaxBytes)&&void 0!==n?n:48e3,maxMillis:null!==(t=r.chunkMaxMillis)&&void 0!==t?t:5e3,onChunk:function(e){try{n=function(e,n){var t=[];return hn(t,Fe,an.SESSION_RECORDING),Xn(t),hn(t,"dash0.session_recording.id",e.recordingId),hn(t,"dash0.session_recording.seq",{intValue:String(n.seq)}),hn(t,"dash0.session_recording.event_count",{intValue:String(n.eventCount)}),hn(t,"dash0.session_recording.has_snapshot",n.hasSnapshot),hn(t,"dash0.session_recording.end_time_unix_nano",{intValue:F(n.endTime)}),{timeUnixNano:F(n.startTime),severityNumber:ln.INFO,severityText:"INFO",body:{stringValue:n.body},attributes:t,traceId:e.traceId,spanId:e.spanId}}(a,e),t={compress:!qr},pe.isSessionSampled&&(Ve()?l("Session recording rate limit. Will not send chunk.",n):Pe([n],{compress:null===(r=null==t?void 0:t.compress)||void 0===r||r}))}catch(e){o("Failed to transmit session recording chunk",e)}var n,t,r}});Br=s;try{Gr=kr({emit:function(e){Br===s&&s.add(e)},checkoutEveryNms:r.checkoutEveryNms,maskAllInputs:r.maskAllInputs,maskTextClass:r.maskTextClass,maskTextSelector:r.maskTextSelector,maskInputFn:r.maskInputFn,maskTextFn:r.maskTextFn,blockClass:r.blockClass,blockSelector:r.blockSelector,recordCanvas:r.recordCanvas,collectFonts:r.collectFonts})}catch(e){return o("Failed to start session recorder",e),void Zr(s)}if(!Gr)return o("Session recorder did not start."),void Zr(s);jr||(jr=!0,ge((function(){qr=!0;try{var e;null===(e=Br)||void 0===e||e.flush()}finally{qr=!1}}))),l("Session recording started",a)}else l("Session is not sampled for recording. Session recording will not start.");else l("Session is not sampled. Session recording will not start.")}}function Zr(e){e.discard(),Br=void 0}var $r=!1;function Jr(e,n){var t=n.enabledInstrumentations;return!t||t.includes(e)}function ei(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var i=r[t];void 0!==e[i]&&(n[i]=e[i])}return n}var ni={init:function(e){if($r)l("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,ie.test(t))){var i;l("serviceName contains disallowed characters. Falling back to location.hostname."),e.serviceName=null!==(i=null==p?void 0:p.hostname)&&void 0!==i?i:"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(pe.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],0!==pe.endpoints.length){if(Object.assign(pe,function(e,n){for(var t=w({},e),r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=n[o],l=e[o];void 0!==a&&(null===a||"object"!==x(a)||Array.isArray(a)||"object"!==x(l)||null===l||Array.isArray(l)?t[o]=a:t[o]=w(w({},l),ei(a)))}return t}(pe,function(e,n){var t,r={},i=O(n);try{for(i.s();!(t=i.n()).done;){var o=t.value;o in e&&(r[o]=e[o])}}catch(e){i.e(e)}finally{i.f()}return r}(e,["ignoreUrls","ignoreErrorMessages","wrapEventHandlers","wrapTimers","propagateTraceHeadersCorsURLs","maxWaitForResourceTimingsMillis","maxToleranceForResourceTimingsMillis","headersToCapture","urlAttributeScrubber","pageViewInstrumentation","sessionRecording","enableTransportCompression"]))),function(e){e.propagators?(e.propagateTraceHeadersCorsURLs&&o("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),pe.propagators=e.propagators):e.propagateTraceHeadersCorsURLs&&e.propagateTraceHeadersCorsURLs.length>0?(o("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),pe.propagators=[{type:"traceparent",match:D(e.propagateTraceHeadersCorsURLs)}]):pe.propagators=[{type:"traceparent",match:[]}]}(e),function(e){hn(pe.resource.attributes,De,e.serviceName),e.serviceNamespace&&hn(pe.resource.attributes,Me,e.serviceNamespace);e.serviceVersion&&hn(pe.resource.attributes,xe,e.serviceVersion);var n=function(e){if(e.environment)return e.environment;try{var n,t,r,i,o,a,l,s,u,c;return Pr(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===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.REACT_APP_VERCEL_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.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===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.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&&hn(pe.resource.attributes,ke,n);var t=function(e){if(e.deploymentName)return e.deploymentName;try{var n,t,r,i,o,a,l,s,u,c;return Pr(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===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.REACT_APP_VERCEL_TARGET_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.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===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_TARGET_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.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&&hn(pe.resource.attributes,Ge,t);var r=function(e){if(e.deploymentId)return e.deploymentId;try{var n,t,r,i,o,a,l,s,u,c;return Pr(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===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.REACT_APP_VERCEL_BRANCH_URL,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.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===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_BRANCH_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.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&&hn(pe.resource.attributes,Be,r);Dr(e)}(e),function(e){var n;hn(pe.signalAttributes,je,y(16)),hn(pe.signalAttributes,We,null!==(n=null==f?void 0:f.userAgent)&&void 0!==n?n:ee),e.additionalSignalAttributes&&Object.entries(e.additionalSignalAttributes).forEach((function(e){var n=U(e,2),t=n[0],r=n[1];hn(pe.signalAttributes,t,r)}))}(e),Wn(),On(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),null!=e.sessionSamplingRate){var a=Math.max(0,Math.min(100,e.sessionSamplingRate));pe.isSessionSampled=null!=Nn?fe(Nn,a):a>0}if(!pe.isSessionSampled)return l("Session is not sampled. No telemetry will be transmitted for this session."),void($r=!0);Jr("@dash0/navigation",e)&&wr(),Jr("@dash0/web-vitals",e)&&Mt(),Jr("@dash0/error",e)&&Qt(),Jr("@dash0/fetch",e)&&(v&&v.fetch&&v.Request?le(v,"fetch",ur):l("Browser does not support the Fetch API, skipping instrumentation")),Jr("@dash0/xhr",e)&&function(){if(v&&v.XMLHttpRequest){var e=v.XMLHttpRequest.prototype;le(e,"open",mr),le(e,"setRequestHeader",_r),le(e,"send",gr)}else l("Browser does not support XMLHttpRequest, skipping instrumentation")}(),Jr("@dash0/session-recording",e)&&function(){if(Hr=!0,Xr=!1,pe.sessionRecording.recorder)kr=pe.sessionRecording.recorder;else if(!kr){var e=null==v?void 0:v[Fr];"function"==typeof e&&(kr=e)}kr&&Qr()}(),$r=!0}else o("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:",pe)},identify:function(e,n){En(pe.signalAttributes,Xe),null!=e&&hn(pe.signalAttributes,Xe,e),En(pe.signalAttributes,qe),null!=(null==n?void 0:n.name)&&hn(pe.signalAttributes,qe,n.name),En(pe.signalAttributes,Ye),null!=(null==n?void 0:n.fullName)&&hn(pe.signalAttributes,Ye,n.fullName),En(pe.signalAttributes,ze),null!=(null==n?void 0:n.email)&&hn(pe.signalAttributes,ze,n.email),En(pe.signalAttributes,Ke),null!=(null==n?void 0:n.hash)&&hn(pe.signalAttributes,Ke,n.hash),En(pe.signalAttributes,Qe),null!=(null==n?void 0:n.roles)&&hn(pe.signalAttributes,Qe,n.roles)},terminateSession:function(){if(b)try{!function(e){b&&E&&E.removeItem(e)}(Cn)}catch(e){i("Failed to terminate session",e)}},reportError:function(e,n){$n(e,n)},addSignalAttribute:function(e,n){hn(pe.signalAttributes,e,n)},removeSignalAttribute:function(e){En(pe.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(an).includes(e))o("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=[];Xn(t),hn(t,Fe,e),null!=n&&n.title&&hn(t,"dash0.web.event.title",n.title),mn(t,null==n?void 0:n.attributes),we({timeUnixNano:null!=(null==n?void 0:n.timestamp)?F(n.timestamp):B(),attributes:t,body:fn(null==n?void 0:n.data),severityText:null==n?void 0:n.severity,severityNumber:null!=n&&n.severity?ln[n.severity]:void 0})}},startView:function(e,n){if(0!==pe.endpoints.length)if("string"==typeof e&&0!==e.length){var t;if(null!=(null==n?void 0:n.url))try{t=new URL(n.url,null==v?void 0:v.location.href)}catch(e){l("Failed to parse startView url option. Falling back to the current location.",e)}!function(e){yr({timeUnixNano:e.timeUnixNano,url:e.url,title:e.title,customAttributes:e.attributes,pageViewType:un})}({timeUnixNano:B(),title:e,url:t,attributes:null==n?void 0:n.attributes})}else l("startView requires a non-empty view name. Ignoring startView call.");else l("Dash0 SDK has not been initialized. Ignoring startView call.")},startSessionRecording:function(e){var n=null!=e?e:null==v?void 0:v[Fr];"function"==typeof n?Yr(n):l("startSessionRecording requires a recorder. Import `recorder` from `@dash0/sdk-web/session-recording` or load dash0-session-recording.iife.js. Ignoring call.")},stopSessionRecording:function(){Xr=!0,zr()}};function ti(e){var n=e[0],t=ni[n];if(t){for(var r=[],i=1;i<e.length;i++)r.push(e[i]);t.apply(null,r)}else o("Unsupported Dash0 Web SDK api: ",e[0])}!function(){l("".concat("Initializing Dash0 Web SDK"," (via Script)"));var e=v.dash0;if(!e)return void o("global 'dash0' not found. Did you use the correct Dash0 Web SDK initializer?");if(!e._q)return void o("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++)ti(e[n])})(e._q),v.dash0=function(){return ti(arguments)}}()}();
2
2
  //# sourceMappingURL=dash0.iife.js.map