1function pt(){}function ln(e){return e}var fn={debug:0,info:1,warn:2,error:3},Hn=fn.warn;je("info");var q=je("warn"),ht=je("error"),C=je("debug");function je(e){if(typeof console<"u"&&console[e]&&typeof console[e].apply=="function"){var t=fn[e];return function(){t>=Hn&&console[e].apply(console,arguments)}}return pt}var Wn=Object.prototype.hasOwnProperty;function qn(e,t){return Wn.call(e,t)}var d=typeof window<"u"?window:void 0,N=d==null?void 0:d.document,Re=d==null?void 0:d.navigator,ie=typeof location<"u"?location:void 0,x=(d==null?void 0:d.performance)||(d==null?void 0:d.webkitPerformance)||(d==null?void 0:d.msPerformance)||(d==null?void 0:d.mozPerformance);d==null||d.encodeURIComponent;var rt=d==null?void 0:d.fetch,$=function(){try{var e;return(e=d==null?void 0:d.localStorage)!==null&&e!==void 0?e:null}catch{return null}}(),ee=function(){try{var e;return(e=d==null?void 0:d.sessionStorage)!==null&&e!==void 0?e:null}catch{return null}}(),we=Array(32);function ne(e){for(var t=0;t<2*e;t++)we[t]=Math.floor(16*Math.random())+48,we[t]>=58&&(we[t]+=39);return String.fromCharCode.apply(null,we.slice(0,2*e))}function fe(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}var Ne=$!=null&&typeof $.getItem=="function"&&typeof $.setItem=="function";function it(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _t(e,t,n,r,i,o,a){try{var u=e[o](a),s=u.value}catch(f){return void n(f)}u.done?t(s):Promise.resolve(s).then(r,i)}function he(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(s){_t(o,r,i,a,u,"next",s)}function u(s){_t(o,r,i,a,u,"throw",s)}a(void 0)})}}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t,n){return t&&function(r,i){for(var o=0;o<i.length;o++){var a=i[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,dn(a.key),a)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=yt(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return a=s.done,s},e:function(s){u=!0,o=s},f:function(){try{a||n.return==null||n.return()}finally{if(u)throw o}}}}function j(e,t,n){return(t=dn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function W(){W=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(l,c,v){l[c]=v.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function f(l,c,v){return Object.defineProperty(l,c,{value:v,enumerable:!0,configurable:!0,writable:!0}),l[c]}try{f({},"")}catch{f=function(c,v,w){return c[v]=w}}function p(l,c,v,w){var g=c&&c.prototype instanceof k?c:k,A=Object.create(g.prototype),L=new He(w||[]);return i(A,"_invoke",{value:Vn(l,v,L)}),A}function y(l,c,v){try{return{type:"normal",arg:l.call(c,v)}}catch(w){return{type:"throw",arg:w}}}t.wrap=p;var h="suspendedStart",T="suspendedYield",m="executing",S="completed",I={};function k(){}function O(){}function P(){}var F={};f(F,a,function(){return this});var R=Object.getPrototypeOf,D=R&&R(R(We([])));D&&D!==n&&r.call(D,a)&&(F=D);var _=P.prototype=k.prototype=Object.create(F);function K(l){["next","throw","return"].forEach(function(c){f(l,c,function(v){return this._invoke(c,v)})})}function Ee(l,c){function v(g,A,L,M){var U=y(l[g],l,A);if(U.type!=="throw"){var re=U.arg,ce=re.value;return ce&&typeof ce=="object"&&r.call(ce,"__await")?c.resolve(ce.__await).then(function(J){v("next",J,L,M)},function(J){v("throw",J,L,M)}):c.resolve(ce).then(function(J){re.value=J,L(re)},function(J){return v("throw",J,L,M)})}M(U.arg)}var w;i(this,"_invoke",{value:function(g,A){function L(){return new c(function(M,U){v(g,A,M,U)})}return w=w?w.then(L,L):L()}})}function Vn(l,c,v){var w=h;return function(g,A){if(w===m)throw Error("Generator is already running");if(w===S){if(g==="throw")throw A;return{value:e,done:!0}}for(v.method=g,v.arg=A;;){var L=v.delegate;if(L){var M=Rt(L,v);
vendor: 5,073 bytes, line 2
2if(M){if(M===I)continue;return M}}if(v.method==="next")v.sent=v._sent=v.arg;else if(v.method==="throw"){if(w===h)throw w=S,v.arg;v.dispatchException(v.arg)}else v.method==="return"&&v.abrupt("return",v.arg);w=m;var U=y(l,c,v);if(U.type==="normal"){if(w=v.done?S:T,U.arg===I)continue;return{value:U.arg,done:v.done}}U.type==="throw"&&(w=S,v.method="throw",v.arg=U.arg)}}}function Rt(l,c){var v=c.method,w=l.iterator[v];if(w===e)return c.delegate=null,v==="throw"&&l.iterator.return&&(c.method="return",c.arg=e,Rt(l,c),c.method==="throw")||v!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+v+"' method")),I;var g=y(w,l.iterator,c.arg);if(g.type==="throw")return c.method="throw",c.arg=g.arg,c.delegate=null,I;var A=g.arg;return A?A.done?(c[l.resultName]=A.value,c.next=l.nextLoc,c.method!=="return"&&(c.method="next",c.arg=e),c.delegate=null,I):A:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,I)}function Bn(l){var c={tryLoc:l[0]};1 in l&&(c.catchLoc=l[1]),2 in l&&(c.finallyLoc=l[2],c.afterLoc=l[3]),this.tryEntries.push(c)}function Be(l){var c=l.completion||{};c.type="normal",delete c.arg,l.completion=c}function He(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(Bn,this),this.reset(!0)}function We(l){if(l||l===""){var c=l[a];if(c)return c.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var v=-1,w=function g(){for(;++v<l.length;)if(r.call(l,v))return g.value=l[v],g.done=!1,g;return g.value=e,g.done=!0,g};return w.next=w}}throw new TypeError(typeof l+" is not iterable")}return O.prototype=P,i(_,"constructor",{value:P,configurable:!0}),i(P,"constructor",{value:O,configurable:!0}),O.displayName=f(P,s,"GeneratorFunction"),t.isGeneratorFunction=function(l){var c=typeof l=="function"&&l.constructor;return!!c&&(c===O||(c.displayName||c.name)==="GeneratorFunction")},t.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,P):(l.__proto__=P,f(l,s,"GeneratorFunction")),l.prototype=Object.create(_),l},t.awrap=function(l){return{__await:l}},K(Ee.prototype),f(Ee.prototype,u,function(){return this}),t.AsyncIterator=Ee,t.async=function(l,c,v,w,g){g===void 0&&(g=Promise);var A=new Ee(p(l,c,v,w),g);return t.isGeneratorFunction(c)?A:A.next().then(function(L){return L.done?L.value:A.next()})},K(_),f(_,s,"Generator"),f(_,a,function(){return this}),f(_,"toString",function(){return"[object Generator]"}),t.keys=function(l){var c=Object(l),v=[];for(var w in c)v.push(w);return v.reverse(),function g(){for(;v.length;){var A=v.pop();if(A in c)return g.value=A,g.done=!1,g}return g.done=!0,g}},t.values=We,He.prototype={constructor:He,reset:function(l){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(Be),!l)for(var c in this)c.charAt(0)==="t"&&r.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=e)},stop:function(){this.done=!0;var l=this.tryEntries[0].completion;if(l.type==="throw")throw l.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var c=this;function v(U,re){return A.type="throw",A.arg=l,c.next=U,re&&(c.method="next",c.arg=e),!!re}for(var w=this.tryEntries.length-1;w>=0;--w){var g=this.tryEntries[w],A=g.completion;if(g.tryLoc==="root")return v("end");if(g.tryLoc<=this.prev){var L=r.call(g,"catchLoc"),M=r.call(g,"finallyLoc");if(L&&M){if(this.prev<g.catchLoc)return v(g.catchLoc,!0);if(this.prev<g.finallyLoc)return v(g.finallyLoc)}else if(L){if(this.prev<g.catchLoc)return v(g.catchLoc,!0)}else{if(!M)throw Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return v(g.finallyLoc)}}}},abrupt:function(l,c){for(var v=this.tryEntries.length-1;v>=0;--v){var w=this.tryEntries[v];if(w.tryLoc<=this.prev&&r.call(w,"finallyLoc")&&this.prev<w.finallyLoc){var g=w;break}}g&&(l==="break"||l==="continue")&&g.tryLoc<=c&&c<=g.finallyLoc&&(g=null);var A=g?g.completion:{};return A.type=l,A.arg=c,g?(this.method="next",this.next=g.finallyLoc,I):this.complete(A)},complete:function(l,c){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&c&&(this.next=c),I},finish:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var v=this.tryEntries[c];if(v.finallyLoc===l)return this.complete(v.completion,v.afterLoc),Be(v),I}},catch:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var v=this.tryEntries[c];if(v.tryLoc===l){var w=v.completion;if(w.type==="throw"){var g=w.arg;Be(v)}return g}}throw Error("illegal catch attempt")},delegateYield:function(l,c,v){return this.delegate={iterator:We(l),resultName:c,nextLoc:v},this.method==="next"&&(this.arg=e),I}},t}function be(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var o,a,u,s,f=[],p=!0,y=!1;try{if(u=(i=i.call(n)).next,r!==0)for(;!(p=(o=u.call(i)).done)&&(f.push(o.value),f.length!==r);p=!0);}catch(h){y=!0,a=h}
2finally{try{if(!p&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(y)throw a}}return f}}(e,t)||yt(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _e(e){return function(t){if(Array.isArray(t))return it(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||yt(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 4In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function dn(e){var t=function(n,r){if(typeof n!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,r);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(e,"string");return typeof t=="symbol"?t:t+""}function Z(e){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(e)}function yt(e,t){if(e){if(typeof e=="string")return it(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?it(e,t):void 0}}function Q(){return new Date().getTime()}function se(){var e=Tt(),t=new Date;if(e){var n=x.now()+e,r=t.getTime();if(Math.abs(n-r)<6e4)return String(1e6*n)}return bt(t)}function bt(e){return Z(e)==="object"?bt(e.getTime()):String(e)+"000000"}function Tt(){var e,t=x==null?void 0:x.timeOrigin;return typeof t!="number"&&(t=x==null||(e=x.timing)===null||e===void 0?void 0:e.fetchStart),t}var kt={setTimeout:d==null?void 0:d.setTimeout,clearTimeout:d==null?void 0:d.clearTimeout,setInterval:d==null?void 0:d.setInterval,clearInterval:d==null?void 0:d.clearInterval},Et=d!=null&&d.Zone!=null&&d.Zone.root!=null&&typeof d.Zone.root.run=="function";function ae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wt.apply("setTimeout",arguments)}function Pt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wt.apply("clearTimeout",arguments)}function jt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wt.apply("setInterval",arguments)}function wt(){var e,t=this;if(Et)try{var n=Array.prototype.slice.apply(arguments);return d.Zone.root.run(kt[t],d,n)}catch(r){q("Failed to execute %s inside of zone (via Zone.js). Falling back to execution inside currently active zone.",t,r)}return(e=kt[t])===null||e===void 0?void 0:e.apply(d,arguments)}Et&&C("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");x&&x.getEntriesByType;var zn=x&&typeof d.PerformanceObserver=="function"&&typeof x.now=="function",z=Object.freeze({CONNECT_END:"connectEnd",CONNECT_START:"connectStart",DECODED_BODY_SIZE:"decodedBodySize",DOM_COMPLETE:"domComplete",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_INTERACTIVE:"domInteractive",DOMAIN_LOOKUP_END:"domainLookupEnd",DOMAIN_LOOKUP_START:"domainLookupStart",ENCODED_BODY_SIZE:"encodedBodySize",FETCH_START:"fetchStart",LOAD_EVENT_END:"loadEventEnd",LOAD_EVENT_START:"loadEventStart",NAVIGATION_START:"navigationStart",REDIRECT_END:"redirectEnd",REDIRECT_START:"redirectStart",REQUEST_START:"requestStart",RESPONSE_END:"responseEnd",RESPONSE_START:"responseStart",SECURE_CONNECTION_START:"secureConnectionStart",START_TIME:"startTime",UNLOAD_EVENT_END:"unloadEventEnd",UNLOAD_EVENT_START:"unloadEventStart"}),Dt=new WeakSet;function Gn(e){if(!zn)return function(h){var T=0;return{start:function(){T=Q()},end:function(){return h({duration:Q()-T})},cancel:pt}}(e.onEnd);var t,n,r,i,o,a=[];return{start:function(){t=x.now();try{var h,T=d==null?void 0:d.PerformanceObserver;T&&((h=r=new T(s))===null||h===void 0||h.observe({type:"resource"}))}catch{}o=ae(p,6e5)}
4,end:function(h){if(!n){if(n=h??x.now(),y(),!Mt())return u();ae(function(){return u()},Math.min(300,e.maxWaitForResourceMillis)),fe(N,"visibilitychange",f),i=ae(u,e.maxWaitForResourceMillis)}},cancel:p};function u(){p();var h=function(){if(a.length){var T,m,S=a.filter(function(F){return F.responseEnd<=n+e.maxToleranceForResourceTimingsMillis&&!Dt.has(F)});if(S.length){if(S.length===1&&(T=S[0]),!T){var I,k=V(S);try{for(k.s();!(I=k.n()).done;){var O=I.value,P=Math.abs(n-t-O.duration)+Math.abs(O.responseEnd-n);(m===void 0||P<m)&&(m=P,T=O)}}catch(F){k.e(F)}finally{k.f()}}if(T)return Dt.add(T),T}}}();h!=null&&h.duration&&h.duration<864e5?e.onEnd({resource:h,duration:h.duration}):e.onEnd({resource:h,duration:n-t})}function s(h){h.getEntriesByType("resource").filter(function(T){var m=T;return m.startTime>=t&&e.resourceMatcher(m)}).forEach(function(T){a.length>=100&&a.shift(),a.push(T)})}function f(){Mt()||u()}function p(){(function(){if(r){try{var h;(h=r)===null||h===void 0||h.disconnect()}catch{}r=void 0}})(),i&&(clearTimeout(i),i=void 0),y(),function(){if(N){h=N,T="visibilitychange",m=f,h.removeEventListener?h.removeEventListener(T,m,!1):h.detachEvent&&h.detachEvent("on"+T,m);var h,T,m}}()}function y(){o&&(clearTimeout(o),o=void 0)}}function Mt(){return(N==null?void 0:N.visibilityState)==="visible"||(N==null?void 0:N.visibilityState)==="prerender"}var de="undefined";function ot(e){return Math.round(100*e)/100}function St(e){var t;return typeof e!="string"?e:new URL(e,(t=N==null?void 0:N.baseURI)!==null&&t!==void 0?t:ie==null?void 0:ie.href)}function Zn(e){try{return St(e).origin===(typeof location<"u"?location.origin:void 0)}catch{return!1}}var Kn=/['"<>{};\x00-\x1F\x7F]/,Ut=Symbol.for("INSTRUMENTED_BY_DASH0");function at(e,t,n){var r=e[t];r?r[Ut]!==!0?(function(i){i[Ut]=!0}(r),e[t]=n(r)):C("".concat(String(t)," has already been instrumented, skipping")):C("".concat(String(t)," is not defined, unable to instrument"))}var E={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.20.0",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:ln,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},enableTransportCompression:!1},Yn="service.name",Xn="service.namespace",Jn="service.version",Qn="deployment.environment.name",$n="deployment.name",er="deployment.id",De="event.name",ut="dash0.web.event.id",tr="page.load.id",nr="user_agent.original",st="exception.message",ct="exception.type",vn="exception.stacktrace",Ft="url.full",Me={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error"},Ue={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},rr=0,ir=1,or="pushState",ar="replaceState",ur=1;function Vt(){var e,t;return"".concat((e={ephemeralSession:!Ne},t=0,e.ephemeralSession&&(t|=ur),t.toString(16).padStart(2,"0"))).concat(ne(7))}var Bt="d0_session",qe="#",Ht=864e5,me=null;function sr(e,t){if(!Ne)return C("Storage API is not available and session tracking is therefore not supported."),void(me=Vt());e||(e=108e5),t||(t=216e5),e=Math.min(e,Ht),t=Math.min(t,Ht);try{var n=function(i){return Ne&&$?$.getItem(i):null}(Bt),r=function(i){if(!i)return null;var o=i.split(qe);if(o.length<3)return null;var a=o[0],u=parseInt(o[1],10),s=parseInt(o[2],10);return!a||isNaN(u)||isNaN(s)?null:{id:a,startTime:u,lastActivityTime:s}}(n);r&&!function(i,o,a){var u=Q()-o;if(i.lastActivityTime<u)return!1;var s=Q()-a;return i.startTime>=s}(r,e,t)&&(r=null),r?r.lastActivityTime=Q():r={id:Vt(),startTime:Q(),lastActivityTime:Q()},function(i,o){Ne&&$&&$.setItem(i,o)}(Bt,function(i){return i.id+qe+i.startTime+qe+i.lastActivityTime}(r)),me=r.id}catch(i){q("Failed to record session information",i)}}var pn=-1,ge=function(e){addEventListener("pageshow",function(t){t.persisted&&(pn=t.timeStamp,e(t))},!0)},Y=function(e,t,n,r){var i,o;return function(a){t.value>=0&&(a||r)&&((o=t.value-(i??0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=function(u,s){return u>s[1]?"poor":u>s[0]?"needs-improvement":"good"}(t.value,n),e(t))}},lt=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},hn=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Fe=function(){var e,t=hn();return(e=t==null?void 0:t.activationStart)!==null&&e!==void 0?e:0},X=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,n=hn(),r="navigate";return pn>=0?r="back-forward-cache":n&&(document.prerendering||Fe()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},ze=new WeakMap;function At(e,t){return ze.get(e)||ze.set(e,new t),ze.get(e)}var ft,cr=function(){return gt(function e(){mt(this,e),j(this,"t",void 0),j(this,"i",0),j(this,"o",[])},[{key:"h",value:function(e){var t;if(!e.hadRecentInput){var n=this.o[0],r=this.o.at(-1);this.i&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),(t=this.t)===null||t===void 0||t.call(this,e)}}}])}(),ye=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(i){Promise.resolve().then(function(){t(i.getEntries())})});return r.observe(function(i){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};
4o%2?xt(Object(a),!0).forEach(function(u){j(i,u,a[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):xt(Object(a)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(a,u))})}return i}({type:e,buffered:!0},n)),r}}catch{}},Ot=function(e){var t=!1;return function(){t||(e(),t=!0)}},oe=-1,Wt=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},xe=function(e){document.visibilityState==="hidden"&&oe>-1&&(oe=e.type==="visibilitychange"?e.timeStamp:0,lr())},qt=function(){addEventListener("visibilitychange",xe,!0),addEventListener("prerenderingchange",xe,!0)},lr=function(){removeEventListener("visibilitychange",xe,!0),removeEventListener("prerenderingchange",xe,!0)},mn=function(){if(oe<0){var e,t=Fe(),n=document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(function(r){return r.name==="hidden"&&r.startTime>t})[0])===null||e===void 0?void 0:e.startTime;oe=n??Wt(),qt(),ge(function(){setTimeout(function(){oe=Wt(),qt()})})}return{get firstHiddenTime(){return oe}}},It=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},zt=[1800,3e3],Gt=[.1,.25],fr=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};It(function(){var i,o=mn(),a=X("FCP"),u=ye("paint",function(s){var f,p=V(s);try{for(p.s();!(f=p.n()).done;){var y=f.value;y.name==="first-contentful-paint"&&(u.disconnect(),y.startTime<o.firstHiddenTime&&(a.value=Math.max(y.startTime-Fe(),0),a.entries.push(y),i(!0)))}}catch(h){p.e(h)}finally{p.f()}});u&&(i=Y(n,a,zt,r.reportAllChanges),ge(function(s){a=X("FCP"),i=Y(n,a,zt,r.reportAllChanges),lt(function(){a.value=performance.now()-s.timeStamp,i(!0)})}))})})(Ot(function(){var n,r=X("CLS",0),i=At(t,cr),o=function(u){var s,f=V(u);try{for(f.s();!(s=f.n()).done;){var p=s.value;i.h(p)}}catch(y){f.e(y)}finally{f.f()}i.i>r.value&&(r.value=i.i,r.entries=i.o,n())},a=ye("layout-shift",o);a&&(n=Y(e,r,Gt,t.reportAllChanges),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&(o(a.takeRecords()),n(!0))}),ge(function(){i.i=0,r=X("CLS",0),n=Y(e,r,Gt,t.reportAllChanges),lt(function(){return n()})}),setTimeout(n))}))},gn=0,Ge=1/0,Se=0,dr=function(e){var t,n=V(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.interactionId&&(Ge=Math.min(Ge,r.interactionId),Se=Math.max(Se,r.interactionId),gn=Se?(Se-Ge)/7+1:0)}}catch(i){n.e(i)}finally{n.f()}},Zt=function(){var e;return ft?gn:(e=performance.interactionCount)!==null&&e!==void 0?e:0},Kt=0,vr=function(){return gt(function e(){mt(this,e),j(this,"u",[]),j(this,"l",new Map),j(this,"m",void 0),j(this,"v",void 0)},[{key:"p",value:function(){Kt=Zt(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((Zt()-Kt)/50));return this.u[e]}},{key:"h",value:function(e){var t;if((t=this.m)!==null&&t!==void 0&&t.call(this,e),e.interactionId||e.entryType==="first-input"){var n=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>n.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(s,f){return f.T-s.T}),this.u.length>10){var o,a=V(this.u.splice(10));try{for(a.s();!(o=a.n()).done;){var u=o.value;this.l.delete(u.id)}}catch(s){a.e(s)}finally{a.f()}}(i=this.v)===null||i===void 0||i.call(this,r)}}}}])}(),yn=function(e){var t=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?e():(e=Ot(e),document.addEventListener("visibilitychange",e,{once:!0}),t(function(){e(),document.removeEventListener("visibilitychange",e)}))},Yt=[200,500],pr=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&It(function(){var n;"interactionCount"in performance||ft||(ft=ye("event",dr,{type:"event",buffered:!0,durationThreshold:0}));var r,i=X("INP"),o=At(t,vr),a=function(s){yn(function(){var f,p=V(s);try{for(p.s();!(f=p.n()).done;){var y=f.value;o.h(y)}}catch(T){p.e(T)}finally{p.f()}var h=o.P();
4h&&h.T!==i.value&&(i.value=h.T,i.entries=h.entries,r())})},u=ye("event",a,{durationThreshold:(n=t.durationThreshold)!==null&&n!==void 0?n:40});r=Y(e,i,Yt,t.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&(a(u.takeRecords()),r(!0))}),ge(function(){o.p(),i=X("INP"),r=Y(e,i,Yt,t.reportAllChanges)}))})},hr=function(){return gt(function e(){mt(this,e),j(this,"m",void 0)},[{key:"h",value:function(e){var t;(t=this.m)===null||t===void 0||t.call(this,e)}}])}(),Xt=[2500,4e3],Ze=!1;function bn(e){var t,n,r=[];return n=i,Ze&&n(),N&&d&&(fe(N,"visibilitychange",function(){N.visibilityState!=="visible"&&n()}),fe(d,"pagehide",function(){Ze=!0,n()}),fe(d,"beforeunload",function(){Ze=!0,n()})),{send:function(o){(N==null?void 0:N.visibilityState)==="visible"?(r.push(o),r.length>=15?i():t==null&&(t=ae(i,1e3))):e([o])}};function i(){t!=null&&(clearTimeout(t),t=null),r.length>0&&(e(r.slice()),r.length=0)}}var Ke=0,Ye=0;function Tn(e,t){return dt.apply(this,arguments)}function dt(){return dt=he(W().mark(function e(t,n){var r,i,o,a;return W().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(C("Transmitting telemetry to endpoints",n),r=JSON.stringify(n),i=r,o=new Blob([r]).size,a=!1,typeof CompressionStream>"u"||!E.enableTransportCompression){u.next=11;break}return u.next=8,mr(r);case 8:i=u.sent,o=i.byteLength,a=!0;case 11:return u.next=13,Promise.all(E.endpoints.map(function(){var s=he(W().mark(function f(p){var y,h,T;return W().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(m.prev=0,(y=new URL(p.url)).pathname=y.pathname+(y.pathname.endsWith("/")?t.substring(1):t),h={"Content-Type":"application/json",Authorization:"Bearer ".concat(p.authToken)},p.dataset&&(h["Dash0-Dataset"]=p.dataset),a&&(h["Content-Encoding"]="gzip"),rt){m.next=9;break}return q("Unable to send telemetry, fetch is not defined"),m.abrupt("return");case 9:return Ke+=o,Ye++,m.next=13,rt(y,{method:"POST",headers:h,body:i,keepalive:Ke<=6e4&&Ye<=15});case 13:(T=m.sent).text().catch(pt),T.ok||q("Failed to send telemetry to ".concat(y,": ").concat(T.status," ").concat(T.statusText)),m.next=21;break;case 18:m.prev=18,m.t0=m.catch(0),q("Error sending telemetry to ".concat(p.url).concat(t,":"),m.t0);case 21:return m.prev=21,Ke-=o,Ye--,m.finish(21);case 25:case"end":return m.stop()}},f,null,[[0,18,21,25]])}));return function(f){return s.apply(this,arguments)}}()));case 13:case"end":return u.stop()}},e)})),dt.apply(this,arguments)}function mr(e){return En.apply(this,arguments)}function En(){return(En=he(W().mark(function e(t){var n,r,i;return W().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=new Blob([t]),r=n.stream(),i=r.pipeThrough(new CompressionStream("gzip")),o.abrupt("return",new Response(i).arrayBuffer());case 4:case"end":return o.stop()}},e)}))).apply(this,arguments)}var Xe,gr=bn(function(e){Tn("/v1/logs",{resourceLogs:[{resource:E.resource,scopeLogs:[{scope:E.scope,logRecords:e}]}]}).catch(function(t){ht("Failed to transmit logs",t)})}),yr=bn(function(e){Tn("/v1/traces",{resourceSpans:[{resource:E.resource,scopeSpans:[{scope:E.scope,spans:e}]}]}).catch(function(t){ht("Failed to transmit spans",t)})});function wn(){var e,t,n,r,i;return Xe||(t=(e={maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}).maxCallsPerTenMinutes,n=e.maxCallsPerTenSeconds,r=0,i=0,jt(function(){r=0},6e5),jt(function(){i=0},1e4),Xe=function(){return++r>t||++i>n}),Xe()}function Ve(e){wn()?C("Transport rate limit. Will not send item.",e):gr.send(e)}function Nt(e){e&&(wn()?C("Transport rate limit. Will not send item.",e):yr.send(e))}var br=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function Sn(e){if(e!=null){var t={};return Array.isArray(e)?t.arrayValue={values:e.map(function(n){return Sn(n)})}:typeof e=="string"?t.stringValue=e:typeof e=="number"?t.doubleValue=e:typeof e=="boolean"?t.boolValue=e:function(n){if(n==null||Z(n)!=="object")return!1;var r=Object.keys(n);return r.length===1&&br.includes(r[0])}(e)?t=e:Z(e)==="object"&&(t.kvlistValue={values:Object.entries(e).map(function(n){var r=be(n,2);return An(r[0],r[1])})}),t}}function An(e,t){return{key:e,value:Sn(t)}}function b(e,t,n){t&&e.push(An(t,n))}function Tr(e,t){t&&Object.entries(t).forEach(function(n){var r=be(n,2),i=r[0],o=r[1];return b(e,i,o)})}var Jt="traceparent",Qt=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function On(){var e,t,n=(((e=Array.from((t=N==null?void 0:N.getElementsByTagName("meta"))!==null&&t!==void 0?t:[]).find(function(r){var i;return((i=r.getAttribute("name"))===null||i===void 0?void 0:i.toLowerCase())===Jt}))===null||e===void 0?void 0:e.content.trim())||"").match(Qt)||function(){var r=x.getEntriesByType("navigation")[0];return!r||!r.serverTiming?"":function(i){var o,a=V(i);try{for(a.s();!(o=a.n()).done;){var u=o.value;if(u.name===Jt)return u.description.trim()}}catch(s){a.e(s)}finally{a.f()}return""}(r.serverTiming)}().match(Qt);if(n)return{traceId:n[1],spanId:n[2]}}function Er(e,t,n){e.call(t,"traceparent","00-".concat(n.traceId,"-").concat(n.spanId,"-01"))}function wr(e,t,n){var r,i,o,a=(r=n.traceId,i=r.substring(0,8),o=r.substring(8,32),"1-".concat(i,"-").concat(o)),u="Root=".concat(a,";Parent=").concat(n.spanId,";Sampled=1");e.call(t,"X-Amzn-Trace-Id",u)}var $t="d042",Sr=1;function en(e){var t=0;return e.withoutSession&&(t|=Sr),t.toString(16).padStart(2,"0")}for(var In=new Uint32Array(256),Ae=0;Ae<256;Ae++){for(var le=Ae,tn=0;tn<8;tn++)le=1&le?3988292384^le>>>1:le>>>1;In[Ae]=le>>>0}
4function Ar(e){var t=function(n){for(var r=new Uint8Array(n.length/2),i=0;i<n.length;i+=2)r[i/2]=parseInt(n.substring(i,i+2),16);for(var o=4294967295,a=0;a<r.length;a++){var u=r[a];o=o>>>8^In[255&(o^u)]}return(4294967295^o)>>>0}(e).toString(16).padStart(8,"0");return"".concat(t).concat(ne(4))}function Or(e){var t=function(i){return i?"".concat($t).concat(en({withoutSession:!1})).concat(i).concat(ne(5)):"".concat($t).concat(en({withoutSession:!0})).concat(ne(13))}(me),n=Ar(t),r=[];return b(r,ut,n),{traceId:t,spanId:n,name:e,kind:3,startTimeUnixNano:se(),attributes:r,events:[],links:[],status:{code:0}}}function Ct(e,t,n){var r=e;if(!r.endTimeUnixNano)return t&&(r.status=t),r.endTimeUnixNano=n!=null?String(Math.round(parseInt(r.startTimeUnixNano)+n)):se(),r;C("Attempting to end already ended span. Dropping...",r)}function Nn(e,t,n,r){var i=void 0,o=void 0;typeof n=="string"?i=n:Array.isArray(n)&&(o=n),e.events.push({name:t,timeUnixNano:i??se(),attributes:o??[]})}function Cn(e,t,n){var r=function(a){return a?Array.isArray(a)?function(u){return[].concat(_e(a),[u]).join(".")}:function(u){return"".concat(a,".").concat(u)}:function(u){return u}}(n);try{var i=St(t);i.username&&(i.username="REDACTED"),i.password&&(i.password="REDACTED");var o=E.urlAttributeScrubber(j(j(j(j(j(j({},Ft,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(o).forEach(function(a){var u=be(a,2),s=u[0],f=u[1];f!==void 0&&b(e,r(s),f)})}catch{E.urlAttributeScrubber===ln&&b(e,r(Ft),String(t))}}var Je=ee!=null&&typeof ee.getItem=="function"&&typeof ee.setItem=="function",nn="d0_tab",ve=null;function Ir(){if(Je)try{var e=function(t){return Je&&ee?ee.getItem(t):null}(nn);if(e)return void(ve=e);ve=ne(8),function(t,n){Je&&ee&&ee.setItem(t,n)}(nn,ve)}catch(t){q("Failed to record tab ID information",t)}else C("Storage API is not available and tab tracking is therefore not supported.")}function Te(e,t){var n,r,i,o,a;e.find(function(f){return f.key===ut})===void 0&&b(e,ut,ne(8));for(var u=0;u<E.signalAttributes.length;u++)e.push(E.signalAttributes[u]);Cn(e,(n=(r=t==null?void 0:t.url)!==null&&r!==void 0?r:d==null?void 0:d.location.href)!==null&&n!==void 0?n:de,"page"),me&&b(e,"session.id",me),ve&&b(e,"browser.tab.id",ve),b(e,"browser.window.width",(i=d==null?void 0:d.innerWidth)!==null&&i!==void 0?i:de),b(e,"browser.window.height",(o=d==null?void 0:d.innerHeight)!==null&&o!==void 0?o:de);var s=Re==null||(a=Re.connection)===null||a===void 0?void 0:a.effectiveType;s&&b(e,"network.connection.subtype",s)}function Nr(){(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};It(function(){var n,r=mn(),i=X("LCP"),o=At(t,hr),a=function(y){t.reportAllChanges||(y=y.slice(-1));var h,T=V(y);try{for(T.s();!(h=T.n()).done;){var m=h.value;o.h(m),m.startTime<r.firstHiddenTime&&(i.value=Math.max(m.startTime-Fe(),0),i.entries=[m],n())}}catch(S){T.e(S)}finally{T.f()}},u=ye("largest-contentful-paint",a);if(u){n=Y(e,i,Xt,t.reportAllChanges);for(var s=Ot(function(){a(u.takeRecords()),u.disconnect(),n(!0)}),f=0,p=["keydown","click","visibilitychange"];f<p.length;f++)addEventListener(p[f],function(){return yn(s)},{capture:!0,once:!0});ge(function(y){i=X("LCP"),n=Y(e,i,Xt,t.reportAllChanges),lt(function(){i.value=performance.now()-y.timeStamp,n(!0)})})}})})(Qe,{reportAllChanges:!0}),pr(Qe,{reportAllChanges:!0}),fr(Qe,{reportAllChanges:!0})}function Qe(e){var t=[];b(t,De,Me.WEB_VITAL);var n=[];b(n,"name",e.name),b(n,"value",ot(e.value)),b(n,"delta",ot(e.delta));var r={timeUnixNano:se(),attributes:t,severityNumber:Ue.INFO,severityText:"INFO",body:{kvlistValue:{values:n}}};Te(r.attributes),Ve(r)}function Lt(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n].test(t))return!0;return!1}var Cr="data:";function Lr(e){return!e||!(e=String(e))||e.substring==null||e.substring(0,5).toLowerCase()===Cr||!!function(t){for(var n=t.toLowerCase(),r=0,i=E.endpoints.length;r<i;r++){var o=E.endpoints[r];if(n.startsWith(o.url))return!0}return!1}(e)||Lt(E.ignoreUrls,e)}var pe,Ln=0,Ce=0,te={},vt=!1;function Rn(){vt=!0}function Le(e,t){e&&_n(typeof e=="string"?{message:e,opts:t}:{message:e.message,type:e.name,stack:e.stack,opts:t})}function _n(e){var t=e.message,n=e.type,r=e.stack,i=e.opts;if(t&&!(Ln>
4100)&&!function(s){return!s||Lt(E.ignoreErrorMessages,s)}(t)){Ce>=20&&(te={},Ce=0);var o=(t=String(t).substring(0,300))+(r=function(s){return String(s||"").split(` 5`).slice(0,30).join(` 6`)}(r))+(d==null?void 0:d.location.href),a=te[o];if(a)a.seenCount++;else{var u=[];Te(u),b(u,De,Me.ERROR),b(u,st,t),n&&b(u,ct,n),r&&b(u,vn,r),i!=null&&i.componentStack&&b(u,"exception.component_stack",i==null?void 0:i.componentStack.substring(0,2048)),Tr(u,i==null?void 0:i.attributes),a={seenCount:1,transmittedCount:0,log:{timeUnixNano:se(),attributes:u,severityNumber:Ue.ERROR,severityText:"ERROR",body:{stringValue:t}}},te[o]=a,Ce++}(function(){pe||(pe=setTimeout(Rr,1e3))})()}}function Rr(){for(var e in pe&&(clearTimeout(pe),pe=null),te)if(qn(te,e)){var t=te[e];t.seenCount>t.transmittedCount&&(Ve(t.log),Ln++)}te={},Ce=0}var $e="Unhandled promise rejection: ",et="<unavailable because Promise wasn't rejected with an Error object>";function _r(e){e.reason==null?Le({message:$e+"<no reason defined>",stack:et}):typeof e.reason.message=="string"?Le({message:$e+e.reason.message,stack:typeof e.reason.stack=="string"?e.reason.stack:et}):Z(e.reason)!=="object"&&Le({message:$e+e.reason,stack:et})}var ke="__dash0OriginalFunctions";function xn(e,t){for(var n=e[ke],r=0;r<n.length;r++)if(xr(n[r].valuesForEqualityCheck,t))return r;return-1}function xr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function kr(e,t,n,r,i){return function(o,a,u){if(!o)return a;var s=o[ke]=o[ke]||[],f=xn(o,u);return f!==-1?s[f].wrappedFunction:(s.push({wrappedFunction:a,valuesForEqualityCheck:u}),a)}(e,t,kn(n,r,i))}function kn(e,t,n){return[e,t,Pr(n)]}function Pr(e){return e!=null&&(Z(e)==="object"?!!e.capture:!!e)}function jr(e,t,n,r,i){return function(o,a,u){var s=o==null?void 0:o[ke];if(s==null)return u;var f=xn(o,a);if(f===-1)return u;var p=s[f];return s.splice(f,1),p.wrappedFunction}(e,kn(t,n,r),i)}function Dr(){E.wrapEventHandlers&&function(e){if(!(!e||typeof e.prototype.addEventListener!="function"||typeof e.prototype.removeEventListener!="function")){var t=e.prototype.addEventListener,n=e.prototype.removeEventListener;e.prototype.addEventListener=function(r,i,o){if(typeof i!="function")return t.apply(this,arguments);for(var a=new Array(arguments.length),u=0;u<arguments.length;u++)a[u]=arguments[u];return a[1]=function(){try{return i.apply(this,arguments)}catch(s){throw Le(s),Rn(),s}},a[1]=kr(this,a[1],r,i,o),t.apply(this,a)},e.prototype.removeEventListener=function(r,i,o){if(typeof i!="function")return n.apply(this,arguments);for(var a=new Array(arguments.length),u=0;u<arguments.length;u++)a[u]=arguments[u];return a[1]=jr(this,r,i,o,i),n.apply(this,a)}}}(d==null?void 0:d.EventTarget)}function rn(e){var t=d==null?void 0:d[e];typeof t=="function"&&(d[e]=function(n){for(var r=new Array(arguments.length),i=0;i<arguments.length;i++)r[i]=arguments[i];return r[0]=function(o){return typeof o!="function"?o:function(){try{return o.apply(this,arguments)}catch(a){throw reportError(a),Rn(),a}}}(n),t.apply(this,r)})}function Mr(){(function(){if(d){var e=d.onerror;d.onerror=function(t,n,r,i,o){if(vt)return vt=!1,typeof e=="function"?e.apply(this,arguments):void 0;var a=o&&o.stack;return a||(a="at "+n+" "+r,i!=null&&(a+=":"+i)),_n({message:String(t),stack:a}),typeof e=="function"?e.apply(this,arguments):void 0}}})(),typeof(d==null?void 0:d.addEventListener)=="function"&&d.addEventListener("unhandledrejection",_r),Dr(),function(){if(E.wrapTimers){if(Et)return void q("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");rn("setTimeout"),rn("setInterval")}}()}var Ur=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"];function on(e){return Ur.includes(e)}function Fr(e,t){var n=t.startTime!==0;G(e,z.FETCH_START,t,n),G(e,z.DOMAIN_LOOKUP_START,t,n),G(e,z.DOMAIN_LOOKUP_END,t,n),G(e,z.CONNECT_START,t,n),G(e,z.SECURE_CONNECTION_START,t,n),G(e,z.CONNECT_END,t,n),G(e,z.REQUEST_START,t,n),G(e,z.RESPONSE_START,t,n),G(e,z.RESPONSE_END,t,n)}function G(e,t,n){var r,i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];!(t in n)||typeof n[t]!="number"||i&&n[t]===0||Nn(e,t,(r=n[t],String(Math.round(1e6*(r+Tt())))))}function Vr(e,t){var n=t.encodedBodySize;n!=null&&b(e.attributes,"http.response.body.size",n)}function Br(e){return function(){var t=he(W().mark(function n(r,i){var o,a,u,s,f,p,y,h,T,m,S,I,k,O,P,F;return W().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(u=i&&Object.assign({},i),s=null,(o=u)!==null&&o!==void 0&&o.body&&(s=u.body,u.body=void 0),f=new Request
6(r,u),s&&u&&(u.body=s),!Lr(p=f.url)){R.next=9;break}return C("Not creating span for fetch call because the url is ignored, URL: ".concat(p)),R.abrupt("return",e(r instanceof Request?f:r,i));case 9:return y=(a=f.method)!==null&&a!==void 0?a:"GET",h=on(y),T=on(y.toUpperCase()),m=T?y.toUpperCase():"_OTHER",Te((S=Or("HTTP ".concat(m))).attributes),Cn(S.attributes,p),Hr(r,i),b(S.attributes,"http.request.method",m),h||b(S.attributes,"http.request.method_original",y),I=zr(p),I.length>0&&((k=u)!==null&&k!==void 0&&k.headers?(u.headers=new Headers(u.headers),tt(u.headers.append,u.headers,S,I)):r instanceof Request?tt(f.headers.append,f.headers,S,I):(u||(u={}),u.headers=new Headers,tt(u.headers.append,u.headers,S,I))),Pn(f.headers,S,function(D){return _=D,"".concat("http.request.header",".").concat(_.toLowerCase());var _}),(O=Gn({resourceMatcher:function(D){var _=D.initiatorType,K=D.name;return(_==="fetch"||_==="xmlhttprequest")&&K===St(p).href},maxWaitForResourceMillis:E.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:E.maxToleranceForResourceTimingsMillis,onEnd:function(D){var _=D.duration,K=D.resource;K&&(Fr(S,K),Vr(S,K)),Nt(Ct(S,void 0,1e6*_))}})).start(),R.prev=25,R.next=28,e(r instanceof Request?f:r,u);case 28:return P=R.sent,Wr(S,P),R.abrupt("return",qr(P,E.maxToleranceForResourceTimingsMillis,function(){return O.end()},function(D){var _;O.cancel(),(_=f.signal)!==null&&_!==void 0&&_.aborted?un(S):an(S,D)}));case 33:throw R.prev=33,R.t0=R.catch(25),O.cancel(),(F=f.signal)!==null&&F!==void 0&&F.aborted?un(S):an(S,R.t0),R.t0;case 38:case"end":return R.stop()}},n,null,[[25,33]])}));return function(n,r){return t.apply(this,arguments)}}()}function Hr(e,t,n){try{return}catch(r){C("failed to analyze request for GraphQL insights",r,e,t)}}function Pn(e,t,n){try{if(!E.headersToCapture.length)return;e.forEach(function(r,i){E.headersToCapture.some(function(o){return o.test(i)})&&b(t.attributes,n(i),r)})}catch{C("unable to capture http headers due to CORS policy")}}function Wr(e,t){var n=t.status;(function(r,i,o){r.status={code:i,message:o}})(e,n>=200&&n<400?0:2),n===0&&b(e.attributes,"error.type",t.type),b(e.attributes,"http.response.status_code",String(n)),Pn(t.headers,e,function(r){return i=r,"".concat("http.response.header",".").concat(i.toLowerCase());var i})}function qr(e,t,n,r){var i,o,a=x.now(),u=e.body;if(!(u&&(i=e,o=i.status,o>=200&&o!=204&&o!=205&&o!=304)))return n(),e;var s=!1,f=function(m){s||(n(m),s=!0)},p=function(m){s||(r(m),s=!0)},y=ae(function(){return f(a)},t),h=u.getReader(),T=new ReadableStream({pull:function(m){return he(W().mark(function S(){var I,k;return W().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.prev=0,Pt(y),O.next=4,h.read();case 4:I=O.sent,k=I.value,I.done?(h.releaseLock(),m.close(),f()):(a=x.now(),y=ae(function(){return f(a)},t),m.enqueue(k)),O.next=15;break;case 10:O.prev=10,O.t0=O.catch(0),p(O.t0),m.error(O.t0);try{h.releaseLock()}catch{}case 15:case"end":return O.stop()}},S,null,[[0,10]])}))()},cancel:function(m){return Pt(y),f(),h.cancel(m)}});return new Response(T,{status:e.status,statusText:e.statusText,headers:e.headers})}function an(e,t){(function(n,r){var i=[];typeof r=="string"?b(i,st,r):r&&(r.code?b(i,ct,r.code.toString()):r.name&&b(i,ct,r.name),r.message&&b(i,st,r.message),r.stack&&b(i,vn,r.stack),Nn(n,"exception",i))})(e,t),Nt(Ct(e,function(n){return{code:2,message:n&&Z(n)==="object"&&"message"in n?n.message:String(n)}}(t),void 0))}function un(e){b(e.attributes,"dash0.web.request.cancelled",!0),Nt(Ct(e,void 0,void 0))}function zr(e){var t=[];if(Zn(e)){if(t.push("traceparent"),E.propagators){var n,r=V(E.propagators);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.type==="traceparent"||t.includes(i.type)||t.push(i.type)}}catch(s){r.e(s)}finally{r.f()}}return t}if(E.propagators){var o,a=V(E.propagators);try{for(a.s();!(o=a.n()).done;){var u=o.value;Lt(u.match,e)&&(t.includes(u.type)||t.push(u.type))}}catch(s){a.e(s)}finally{a.f()}return t}return[]}function tt(e,t,n,r){var i,o=V(r);try{for(o.s();!(i=o.n()).done;)i.value==="xray"?wr(e,t,n):Er(e,t,n)}catch(a){o.e(a)}finally{o.f()}}function jn(e,t,n,r){var i,o,a=function(y){var h,T,m;return y&&(h=(T=(m=E.pageViewInstrumentation).generateMetadata)===null||T===void 0?void 0:T.call(m,y))!==null&&h!==void 0?h:{}}(t),u=[];b(u,De,Me.PAGE_VIEW),a.attributes&&Object.entries(a.attributes).forEac
6h(function(y){var h=be(y,2),T=h[0],m=h[1];return b(u,T,m)}),Te(u,{url:t});var s=[];b(s,"title",(i=(o=a.title)!==null&&o!==void 0?o:N==null?void 0:N.title)!==null&&i!==void 0?i:de),N!=null&&N.referrer&&b(s,"referrer",N.referrer),b(s,"type",n?ir:rr),b(s,"change_state",r?ar:or);var f={timeUnixNano:e,attributes:u,severityNumber:Ue.INFO,severityText:"INFO",body:{kvlistValue:{values:s}}},p=On();p&&(f.traceId=p.traceId,f.spanId=p.spanId),Ve(f)}function sn(){var e=d==null?void 0:d.performance.getEntriesByType("navigation")[0];if(e){var t=[];b(t,De,Me.NAVIGATION_TIMING);var n=[];b(n,"name",e.name),B(n,e,"responseStatus"),B(n,e,"fetchStart"),B(n,e,"requestStart"),B(n,e,"responseStart"),B(n,e,"domInteractive"),B(n,e,"domContentLoadedEventEnd"),B(n,e,"domComplete"),B(n,e,"loadEventEnd"),B(n,e,"transferSize"),B(n,e,"encodedBodySize"),B(n,e,"decodedBodySize");var r={timeUnixNano:Dn(),attributes:t,severityNumber:Ue.INFO,severityText:"INFO",body:{kvlistValue:{values:n}}};Te(r.attributes);var i=On();i&&(r.traceId=i.traceId,r.spanId=i.spanId),Ve(r)}else C("Navigation timings not available. Cannot emit navigation timing log")}function B(e,t,n){var r=t[n];typeof r!="number"||isNaN(r)||b(e,n,Number.isInteger(r)?r:ot(r))}function Dn(){return bt(Math.round(Tt()))}var ue={},Mn=!1,Un=!1;function Gr(){Pe(d==null?void 0:d.location.href)}function Zr(e){Pe(e.newURL)}function Pe(e,t){var n;if(e)try{var r=new URL(e,d==null?void 0:d.location.href);((n=r).pathname!==ue.path||Un&&n.search!==ue.search||Mn&&n.hash!==ue.hash)&&(Fn(r),jn(se(),r,!0,!!t))}catch(i){C("Failed to handle url change",i)}}function Fn(e){ue.path=e.pathname,ue.search=e.search,ue.hash=e.hash}function Kr(){(function(){try{jn(Dn(),d!=null&&d.location.href?new URL(d==null?void 0:d.location.href):void 0)}catch(e){ht("Failed to transmit initial page view event",e)}if((N==null?void 0:N.readyState)==="complete")return sn();d&&fe(d,"load",function(){setTimeout(sn,0)})})(),function(){var e,t,n,r;if(d&&d.history){if(E.pageViewInstrumentation.trackVirtualPageViews){Un=(e=(t=E.pageViewInstrumentation.includeParts)===null||t===void 0?void 0:t.includes("SEARCH"))!==null&&e!==void 0&&e,Mn=(n=(r=E.pageViewInstrumentation.includeParts)===null||r===void 0?void 0:r.includes("HASH"))!==null&&n!==void 0&&n,at(d.history,"replaceState",function(i){return function(o,a,u){return Pe(u?String(u):void 0,!0),i.apply(this,[o,a,u])}}),at(d.history,"pushState",function(i){return function(o,a,u){return Pe(u?String(u):void 0),i.apply(this,[o,a,u])}}),d.addEventListener("hashchange",Zr),d.addEventListener("popstate",Gr);try{Fn(new URL(d.location.href))}catch{}}}else C("Browser does not support history API, skipping instrumentation")}()}var Oe=function(e){if(Z(e)==="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){var t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1},H=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(r,i){if(i===void 0)return r;if(Array.isArray(i))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");
6return Object.keys(i).forEach(function(o){["__proto__","constructor","prototype"].includes(o)||(Array.isArray(r[o])&&Array.isArray(i[o])?r[o]=H.options.mergeArrays?H.options.uniqueArrayItems?Array.from(new Set(r[o].concat(i[o]))):[].concat(_e(r[o]),_e(i[o])):i[o]:Oe(r[o])&&Oe(i[o])?r[o]=H(r[o],i[o]):!Oe(r[o])&&Oe(i[o])?r[o]=H(i[o],void 0):r[o]=i[o]===void 0?H.options.allowUndefinedOverrides?i[o]:r[o]:i[o])}),r},{})},nt={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};H.options=nt,H.withOptions=function(e){H.options=Object.assign(Object.assign({},nt),e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=H.apply(void 0,n);return H.options=nt,i};var cn=!1;function Yr(e){if(cn)C("Dash0 SDK is being reinitialized, skipping ...");else if(d!=null)if(typeof rt=="function"&&x&&x.getEntriesByType){var t,n,r=e.serviceName.trim();if(r){if(e.rejectSuspiciousServiceName!==!1&&(n=r,Kn.test(n))){var i;C("serviceName contains disallowed characters. Falling back to location.hostname."),e.serviceName=(i=ie==null?void 0:ie.hostname)!==null&&i!==void 0?i:"unknown"}}else C("Missing or empty serviceName value. Falling back to location.hostname."),e.serviceName=(t=ie==null?void 0:ie.hostname)!==null&&t!==void 0?t:"unknown";E.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],E.endpoints.length!==0?(Object.assign(E,H(E,function(o,a){var u,s={},f=V(a);try{for(f.s();!(u=f.n()).done;){var p=u.value;p in o&&(s[p]=o[p])}}catch(y){f.e(y)}finally{f.f()}return s}(e,["ignoreUrls","ignoreErrorMessages","wrapEventHandlers","wrapTimers","propagateTraceHeadersCorsURLs","maxWaitForResourceTimingsMillis","maxToleranceForResourceTimingsMillis","headersToCapture","urlAttributeScrubber","pageViewInstrumentation","enableTransportCompression"]))),function(o){o.propagators?(o.propagateTraceHeadersCorsURLs&&q("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),E.propagators=o.propagators):o.propagateTraceHeadersCorsURLs&&o.propagateTraceHeadersCorsURLs.length>0?(q("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),E.propagators=[{type:"traceparent",match:_e(o.propagateTraceHeadersCorsURLs)}]):E.propagators=[{type:"traceparent",match:[]}]}(e),function(o){b(E.resource.attributes,Yn,o.serviceName),o.serviceNamespace&&b(E.resource.attributes,Xn,o.serviceNamespace),o.serviceVersion&&b(E.resource.attributes,Jn,o.serviceVersion);var a=function(f){if(f.environment)return f.environment;try{var p;return(p=process)===null||p===void 0||(p=p.env)===null||p===void 0?void 0:p.NEXT_PUBLIC_VERCEL_ENV}catch{return}}(o);a&&b(E.resource.attributes,Qn,a);var u=function(f){if(f.deploymentName)return f.deploymentName;try{var p;return(p=process)===null||p===void 0||(p=p.env)===null||p===void 0?void 0:p.NEXT_PUBLIC_VERCEL_TARGET_ENV}catch{return}}(o);u&&b(E.resource.attributes,$n,u);var s=function(f){if(f.deploymentId)return f.deploymentId;try{var p;return(p=process)===null||p===void 0||(p=p.env)===null||p===void 0?void 0:p.NEXT_PUBLIC_VERCEL_BRANCH_URL}catch{return}}(o);s&&b(E.resource.attributes,er,s)}(e),function(o){var a;b(E.signalAttributes,tr,ne(16)),b(E.signalAttributes,nr,(a=Re==null?void 0:Re.userAgent)!==null&&a!==void 0?a:de),o.additionalSignalAttributes&&Object.entries(o.additionalSignalAttributes).forEach(function(u){var s=be(u,2),f=s[0],p=s[1];b(E.signalAttributes,f,p)})}(e),Ir(),sr(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),Ie("@dash0/navigation",e)&&Kr(),Ie("@dash0/web-vitals",e)&&Nr(),Ie("@dash0/error",e)&&Mr(),Ie("@dash0/fetch",e)&&(d&&d.fetch&&d.Request?at(d,"fetch",Br):C("Browser does not support the Fetch API, skipping instrumentation")),cn=!0):q("No telemetry endpoint configured. Aborting Dash0 Web SDK initialization process.")}else C("Stopping Dash0 Web SDK initialization. This browser does not support the necessary APIs.");else C("Looks like we are not running in a browser context. Stopping Dash0 Web SDK initialization.")}function Ie(e,t){var n=t.enabledInstrumentations;return!n||n.includes(e)}function Xr(e){C("".concat("Initializing Dash0 Web SDK"," (via package)")),Yr(e)}export{Xr as w}; 7//# [email protected]
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.