1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3216],{2395:(e,t,r)=>{"use strict";r.d(t,{M:()=>p});var n,i,s=r(98829);class o{_transport;constructor(e){this._transport=e}retry(e,t,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(e,t).then(n,i)},r)})}async send(e,t){let r=5,n=1e3,i=Date.now()+t,o=await this._transport.send(e,t);for(;"retryable"===o.status&&r>0;){r--;let t=Math.max(Math.min(n*(1+(.4*Math.random()-.2)),5e3),0);n*=1.5;let a=o.retryInMillis??t,l=i-Date.now();if(a>l)return s.s.info(`Export retry time ${Math.round(a)}ms exceeds remaining timeout ${Math.round(l)}ms, not retrying further.`),o;s.s.verbose(`Scheduling export retry in ${Math.round(a)}ms`),o=await this.retry(e,l,a)}return"success"===o.status?s.s.verbose(`Export succeeded after ${5-r} retry attempts.`):"retryable"===o.status?s.s.info("Export failed after maximum retry attempts (5)."):s.s.info(`Export failed with non-retryable error: ${o.error}`),o}shutdown(){return this._transport.shutdown()}}class a{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw Error("Concurrency Limit reached");this._sendingPromises.push(e);let t=()=>{let t=this._sendingPromises.indexOf(e);this._sendingPromises.splice(t,1)};e.then(t,t)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}(n=i||(i={}))[n.SUCCESS=0]="SUCCESS",n[n.FAILED=1]="FAILED";class l extends Error{code;name="OTLPExporterError";data;constructor(e,t,r){super(e),this.data=r,this.code=t}}class c{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(e,t,r,n,i){this._transport=e,this._serializer=t,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=s.s.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,t){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit())return void t({code:i.FAILED,error:Error("Concurrent export limit reached")});let r=this._serializer.serializeRequest(e);null==r?t({code:i.FAILED,error:Error("Nothing to send")}):this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(e=>{if("success"===e.status){if(null!=e.data)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(e.data))}catch(t){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,e.data)}t({code:i.SUCCESS});return}"failure"===e.status&&e.error?t({code:i.FAILED,error:e.error}):"retryable"===e.status?t({code:i.FAILED,error:e.error??new l("Export failed with retryable status")}):t({code:i.FAILED,error:new l("Export failed with unknown error")})},e=>t({code:i.FAILED,error:e})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}let u=0,h=0;class d{_parameters;constructor(e){this._parameters=e}async send(e,t){var r,n;let i=new AbortController,o=setTimeout(()=>i.abort(),t),a=globalThis.fetch;"function"==typeof a.__original&&(a=a.__original);let l=e.byteLength,c=u+l>61440,d=h>=9,p=!c&&!d;p?(u+=l,h++):s.s.debug(`keepalive disabled: ${(l/1024).toFixed(1)}KB payload, ${h} pending (${c?"size limit":"count limit"})`);try{let t=new URL(this._parameters.url),n=await a(t.href,{method:"POST",headers:await this._parameters.headers(),body:e,signal:i.signal,keepalive:p,mode:globalThis.location?globalThis.location.origin===t.origin?"same-origin":"cors":"no-cors"});if(n.status>=200&&n.status<=299)return s.s.debug(`export response success (status: ${n.status})`),{status:"success"};if(r=n.status,429===r||502===r||503===r||504===r){s.s.warn(`export response retryable (status: ${n.status})`);let e=n.headers.get("Retry-After"),t=function(e){if(null==e)return;let t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;let r=new Date(e).getTime()-Date.now();return r>=0?r:0}(e);return{status:"retryable",retryInMillis:t}}return s.s.error(`export response failure (status: ${n.status})`),{status:"failure",error:Error(`Fetch request failed with non-retryable status ${n.status}`)}}catch(e){if((n=e)instanceof TypeError&&!n.cause)return s.s.warn(`export request retryable (network error: ${e})`),{status:"retryable",error:Error("Fetch request encountered a network error",{cause:e})};return s.s.error(`export request failure (error: ${e})`),{status:"failure",error:Error("Fetch request errored",{cause:e})}}finally{clearTimeout(o),p&&(u-=l,h--)}}shutdown(){}}function p(e,t,r,n){var i,l,u,h,p,_,m,g,f,T;return m=(i={url:e.url,timeoutMillis:e.timeoutMillis,headers:function(e){if("function"==typeof e.headers)return e.headers;var t=e.headers;return null!=t?async()=>t:void 0}(e),concurrencyLimit:e.concurrencyLimit},{...(l={},u={timeoutMillis:1e4,concurrencyLimit:30,compression:"none",headers:async()=>n,url:"http://localhost:4318/"+r},{timeoutMillis:function(e){if(Number.isFinite(e)&&e>0)return e;
1throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}(i.timeoutMillis??l.timeoutMillis??u.timeoutMillis),concurrencyLimit:i.concurrencyLimit??l.concurrencyLimit??u.concurrencyLimit,compression:i.compression??l.compression??u.compression}),headers:(h=i.headers,p=l.headers,_=u.headers,async()=>{var e;let t,r={...await _()},n={};return null!=p&&Object.assign(n,await p()),null!=h&&Object.assign(n,(e=await h(),t={},Object.entries(e??{}).forEach(([e,r])=>{void 0!==r?t[e]=String(r):s.s.warn(`Header "${e}" has invalid value (${r}) and will be ignored`)}),t)),Object.assign(n,r)}),url:function(e){if(null!=e)try{let t=globalThis.location?.href;return new URL(e,t).href}catch{throw Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}(i.url)??l.url??u.url}),g=t,f={transport:new o({transport:new d(m)}.transport),serializer:g,promiseHandler:new a(m.concurrencyLimit)},T={timeout:m.timeoutMillis},new c(f.transport,f.serializer,{handleResponse(e){null!=e&&Object.prototype.hasOwnProperty.call(e,"partialSuccess")&&null!=e.partialSuccess&&0!==Object.keys(e.partialSuccess).length&&s.s.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}},f.promiseHandler,T.timeout)}},3730:(e,t,r)=>{"use strict";r.d(t,{V:()=>s});var n=r(32834),i=r(82576);class s{export(e,t){return this._sendSpans(e,t)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationScope,traceId:e.spanContext().traceId,parentSpanContext:e.parentSpanContext,traceState:e.spanContext().traceState?.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,n.w_)(e.startTime),duration:(0,n.w_)(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,t){for(let t of e)console.dir(this._exportInfo(t),{depth:3});if(t)return t({code:i.V.SUCCESS})}}},4610:(e,t,r)=>{"use strict";var n,i;r.d(t,{h:()=>n}),(i=n||(n={}))[i.DELTA=0]="DELTA",i[i.CUMULATIVE=1]="CUMULATIVE"},5591:e=>{e.exports={style:{fontFamily:"'Poppins', 'Poppins Fallback'",fontStyle:"normal"},className:"__className_7ef47d",variable:"__variable_7ef47d"}},6988:(e,t,r)=>{"use strict";function n(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function i(e){return 1e6*e[0]+e[1]/1e3}r.d(t,{lg:()=>n,w_:()=>i})},7848:(e,t,r)=>{"use strict";r.d(t,{A2:()=>h,E$:()=>_,HZ:()=>p,Mb:()=>s,OR:()=>c,UX:()=>d,WQ:()=>T,aJ:()=>f,aO:()=>g,d6:()=>o,kS:()=>u,n4:()=>a,nW:()=>l,oJ:()=>n,qV:()=>m,wL:()=>i});let n="error.type",i="exception.message",s="exception.stacktrace",o="exception.type",a="http.request.method",l="http.request.method_original",c="http.response.status_code",u="server.address",h="server.port",d="service.name",p="service.version",_="telemetry.sdk.language",m="webjs",g="telemetry.sdk.name",f="telemetry.sdk.version",T="url.full"},8025:(e,t,r)=>{"use strict";var n,i;r.d(t,{e:()=>n}),(i=n||(n={}))[i.INT=0]="INT",i[i.DOUBLE=1]="DOUBLE"},10375:(e,t,r)=>{"use strict";r.d(t,{KJ:()=>o,_5:()=>s,lg:()=>i,u5:()=>a});var n=r(13891);function i(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function s(e){var t,r;let s;return t=i(n.ug.timeOrigin),r=i("number"==typeof e?e:n.ug.now()),(s=[t[0]+r[0],t[1]+r[1]])[1]>=1e9&&(s[1]-=1e9,s[0]+=1),s}function o(e){var t;if(Array.isArray(t=e)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1])return e;if("number"==typeof e)if(e<n.ug.timeOrigin)return s(e);else return i(e);if(e instanceof Date)return i(e.getTime());throw TypeError("Invalid input type")}function a(e){return 1e9*e[0]+e[1]}},12931:(e,t,r)=>{"use strict";function n(e,t,r){let n,i;try{i=e()}catch(e){n=e}finally{if(t(n,i),n&&!r)throw n;return i}}r.d(t,{m3:()=>n})},13891:(e,t,r)=>{"use strict";r.d(t,{ug:()=>n});let n=performance},16896:(e,t,r)=>{"use strict";r.d(t,{Q:()=>u});var n=r(40701),i=r(65297);function s(e,t){let r=255&e|256;return t&&(r|=512),r}var o=r(55657),a=r(98829);let l={serializeRequest:e=>{let t={resourceSpans:function(e,t){let r=function(e){let t=new Map;for(let r of e){let e=t.get(r.resource);e||(e=new Map,t.set(r.resource,e));let n=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`,i=e.get(n);i||(i=[],e.set(n,i)),i.push(r)}return t}(e),n=[],o=r.entries(),a=o.next();for(;!a.done;){let[e,r]=a.value,l=[],c=r.values(),u=c.next();for(;!u.done;){let e=u.value;if(e.length>0){let r=e.map(e=>(function(e,t){let r=e.spanContext(),n=e.status,o=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:o,traceState:r.traceState?.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:(0,i.Zs)(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>{var r,n;return r=e,n=t,{attributes:r.attributes?(0,i.Zs)(r.attributes,n):[],name:r.name,timeUnixNano:n.encodeHrTime(r.time),droppedAttributesCount:r.droppedAttributesCount||0}}),droppedEventsCount:e.droppedEventsCount,status:{code:n.code,message:n.message},links:e.links.map(e=>{var r,n;return r=e,n=t,{attributes:r.attributes?(0,i.Zs)(r.attributes,n):[],spanId:n.encodeSpanContext(r.context.spanId),traceId:n.encodeSpanContext(r.context.traceId),traceState:r.context.traceState?.serialize(),droppedAttributesCount:r.droppedAttributesCount||0,flags:s(r.context.traceFlags,r.context.
1isRemote)}}),droppedLinksCount:e.droppedLinksCount,flags:s(r.traceFlags,e.parentSpanContext?.isRemote)}})(e,t));l.push({scope:(0,i.d1)(e[0].instrumentationScope),spans:r,schemaUrl:e[0].instrumentationScope.schemaUrl})}u=c.next()}let h=(0,i.Zg)(e,t),d={resource:h,scopeSpans:l,schemaUrl:h.schemaUrl};n.push(d),a=o.next()}return n}(e,o.w9)};return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(0===e.length)return{};let t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(e){return a.s.warn(`Failed to parse trace export response: ${e.message}. Returning empty response`),{}}}};var c=r(2395);class u extends n.S{constructor(e={}){super((0,c.M)(e,l,"v1/traces",{"Content-Type":"application/json"}))}}},21956:(e,t,r)=>{"use strict";r.d(t,{n:()=>i});var n=r(98829);class i{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[];const t=new Set;for(const e of this._propagators)for(const r of"function"==typeof e.fields?e.fields():[])t.add(r);this._fields=Array.from(t)}inject(e,t,r){for(let i of this._propagators)try{i.inject(e,t,r)}catch(e){n.s.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}}extract(e,t,r){return this._propagators.reduce((e,i)=>{try{return i.extract(e,t,r)}catch(e){n.s.warn(`Failed to extract with ${i.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}},24008:(e,t,r)=>{"use strict";var n,i;r.d(t,{v:()=>n}),(i=n||(n={}))[i.INTERNAL=0]="INTERNAL",i[i.SERVER=1]="SERVER",i[i.CLIENT=2]="CLIENT",i[i.PRODUCER=3]="PRODUCER",i[i.CONSUMER=4]="CONSUMER"},24963:(e,t,r)=>{"use strict";var n,i;r.d(t,{s:()=>n}),(i=n||(n={}))[i.UNSET=0]="UNSET",i[i.OK=1]="OK",i[i.ERROR=2]="ERROR"},25861:e=>{"use strict";function t(e){return"function"==typeof e}var r=console.error.bind(console);function n(e,t,r){var n=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}function i(e){e&&e.logger&&(t(e.logger)?r=e.logger:r("new logger isn't a function, not replacing"))}function s(e,i,s){if(!e||!e[i])return void r("no original function "+i+" to wrap");if(!s){r("no wrapper function"),r(Error().stack);return}if(!t(e[i])||!t(s))return void r("original object and wrapper must be functions");var o=e[i],a=s(o,i);return n(a,"__original",o),n(a,"__unwrap",function(){e[i]===a&&n(e,i,o)}),n(a,"__wrapped",!0),n(e,i,a),a}function o(e,t){if(!e||!e[t]){r("no function to unwrap."),r(Error().stack);return}if(e[t].__unwrap)return e[t].__unwrap();r("no original to unwrap to -- has "+t+" already been unwrapped?")}i.wrap=s,i.massWrap=function(e,t,n){if(e)Array.isArray(e)||(e=[e]);else{r("must provide one or more modules to patch"),r(Error().stack);return}t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){s(e,t,n)})}):r("must provide one or more functions to wrap on modules")},i.unwrap=o,i.massUnwrap=function(e,t){if(e)Array.isArray(e)||(e=[e]);else{r("must provide one or more modules to patch"),r(Error().stack);return}t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){o(e,t)})}):r("must provide one or more functions to unwrap on modules")},e.exports=i},32834:(e,t,r)=>{"use strict";r.d(t,{Ir:()=>c,VL:()=>l,W5:()=>o,_5:()=>s,lg:()=>i,mw:()=>u,w_:()=>a});var n=r(87440);function i(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function s(e){return u(i(n.ug.timeOrigin),i("number"==typeof e?e:n.ug.now()))}function o(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=1e9),[r,n]}function a(e){return 1e6*e[0]+e[1]/1e3}function l(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function c(e){return l(e)||"number"==typeof e||e instanceof Date}function u(e,t){let r=[e[0]+t[0],e[1]+t[1]];return r[1]>=1e9&&(r[1]-=1e9,r[0]+=1),r}},34865:(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var n=r(56493),i=r(93394),s=r.n(i),o=function(e){var t=e.apiKey,r=void 0===t?null:t,i=e.iabVersion,s=void 0===i?2:i,o=e.noticeId,a=void 0===o?null:o,l=e.platform,c=void 0===l?null:l,u=e.config,h=void 0===u?{}:u,d=e.gdprAppliesGlobally,p=void 0===d||d,_=e.onReady,m=e.onConsentChanged,g=e.onNoticeShown,f=e.onNoticeHidden,T=e.onNoticeBackdropclick,E=e.onNoticeClickAgree,v=e.onNoticeClickMoreInfo,S=e.onPreferencesClickAgreeToAll,b=e.onPreferencesClickDisagreeToAll,y=e.onPreferencesClickPurposeAgree,w=e.onPreferencesClickPurposeDisagree,A=e.onPreferencesClickViewVendors,C=e.onPreferencesClickSaveChoices,O=e.onPreferencesClickVendorAgree,k=e.onPreferencesClickVendorDisagree,L=e.onPreferencesClickVendorSaveChoices,P=e.sdkPath,R=void 0===P?"https://sdk.privacy-center.org/":P,N=e.embedTCFStub,M=void 0===N||N,D=function(){_&&(window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(_)),window.didomiEventListeners=window.didomiEventListeners||[],m&&window.didomiEventListeners.push({event:"consent.changed",listener:function(e){m(e.consentToken)}}),g&&window.didomiEventListeners.push({event:"notice.shown",listener:function(){return g()}}),f&&window.didomiEventListeners.push({event:"notice.hidden",listener:function(){return f()}}),T&&window.didomiEventListeners.push({event:"notice.backdropclick",listener:function(){return T()}}),E&&window.didomiEventListeners.push({event:"notice.clickagree",listener:function(){return E()}}),v&&window.didomiEventListeners.push({event:"notice.clickmoreinfo",listener:function(){return v()}}),S&&window.didomiEventListeners.push({event:"preferences.clickagreetoall",listener:function(){return S()}}),b&&window.didomiEventListeners.push({event:"preferences.clickdisagreetoall",listener:function(){return b()}}),y&&window.didomiEventListeners.push({event:"preferences.clickpurposeagree",listener:function(){return y()}}),w&&window.didomiEventListeners.push({event:"preferences.clickpurposedisagree",listener:function(){return w()}}),A&&window.didomiEventListeners.push({event:"preferences.clickviewvendors",listener:function(){return A()}}),C&&window.didomiEventListeners.push({event:"preferences.clicksavechoices",listener:function(){return C()}}),O&&window.didomiEventListeners.push({event:"preferences.clickvendoragree",listener:function(){return O()}}),k&&window.didomiEventListeners.push({event:"preferences.clickvendordisagree",listener:function(){return k()}}),L&&window.didomiEventListeners.push({event:"preferences.clickvendorsavechoices",listener:function(){return L()}})},x=function(){var e;return h.app&&h.app.apiKey&&(e=h.app.apiKey),r||e},I=function(){var e,t=x();if(window.didomiConfig=h||{},window.didomiConfig.sdkPath=R,window.gdprAppliesGlobally=!1!==p,a?(e="target_type=notice&target="+a,c&&(e="platform="+c+"&"+e)):e="target="+document.location.hostname,M)if(2===s)!function(){var e="__tcfapi",t="__tcfapiBuffer",r="__tcfapiCall";function n(e,r,n,i){if("function"==typeof n){window[t]||(window[t]=[]);window[t].push({command:e,parameter:r,callback:n,version:i})}}function i(t){if(window[e]&&!0===window[e].stub&&t.data){var n,i="string"==typeof t.data;try{n=i?JSON.parse(t.data):t.data}catch(e){return}if(n[r]){var s=n[r];window[e](s.command,s.parameter,function(e,r){var n={};n.__tcfapiReturn={returnValue:e,success:r,callId:s.callId},t.source.postMessage(i?JSON.stringify(n):n,"*")},s.version)}}}n.stub=!0,"function"!=typeof window[e]&&(window[e]=n,window.addEventListener?window.addEventListener("message",i,!1):window.attachEvent("onmessage",i)),function e(t){if(!window.frames[t])if(document.body&&document.body.firstChild){var r=document.body,n=document.createElement("iframe");n.style.display="none",n.name=t,n.title=t,r.insertBefore(n,r.firstChild)}else setTimeout(function(){e(t)},5)}("__tcfapiLocator")}();else{function r(e,t,r){"function"==typeof r&&(window.__cmpBuffer||(window.__cmpBuffer=[]),"ping"===e?r({gd
1prAppliesGlobally:window.gdprAppliesGlobally,cmpLoaded:!1},!0):window.__cmpBuffer.push({command:e,parameter:t,callback:r}))}function n(e){if(window.__cmp&&!0===window.__cmp.stub&&e.data){var t,r="string"==typeof e.data;try{t=r?JSON.parse(e.data):e.data}catch(e){return}if(t.__cmpCall){var n=t.__cmpCall;window.__cmp(n.command,n.parameter,function(t,i){var s={__cmpReturn:{returnValue:t,success:i,callId:n.callId}};e.source.postMessage(r?JSON.stringify(s):s,"*")})}}}r.stub=!0,"function"!=typeof window.__cmp&&(window.__cmp=r,window.addEventListener?window.addEventListener("message",n,!1):window.attachEvent("onmessage",n)),function e(){if(!window.frames.__cmpLocator)if(document.body&&document.body.firstChild){var t=document.body,r=document.createElement("iframe");r.style.display="none",r.name="__cmpLocator",r.title="cmpLocator",t.insertBefore(r,t.firstChild)}else setTimeout(e,5)}()}var i="spcloader";if(document.getElementById(i))return null;var o=document.createElement("script");o.id=i,o.type="text/javascript",o.async=!0,o.src=R+t+"/loader.js?"+e,o.charset="utf-8";var l=document.getElementsByTagName("script")[0];l.parentNode.insertBefore(o,l)};return n.useEffect(function(){D(),I()},[]),null};o.propTypes={apiKey:s().string,iabVersion:s().number,noticeId:s().string,platform:s().string,config:s().object,gdprAppliesGlobally:s().bool,onReady:s().func,onConsentChanged:s().func,onNoticeShown:s().func,onNoticeHidden:s().func,onNoticeBackdropclick:s().func,onNoticeClickAgree:s().func,onNoticeClickMoreInfo:s().func,onPreferencesClickAgreeToAll:s().func,onPreferencesClickDisagreeToAll:s().func,onPreferencesClickPurposeAgree:s().func,onPreferencesClickPurposeDisagree:s().func,onPreferencesClickViewVendors:s().func,onPreferencesClickSaveChoices:s().func,onPreferencesClickVendorAgree:s().func,onPreferencesClickVendorDisagree:s().func,onPreferencesClickVendorSaveChoices:s().func,sdkPath:s().string,embedTCFStub:s().bool}},36029:(e,t,r)=>{"use strict";r.d(t,{M1:()=>i,Zf:()=>s});let n=(0,r(21434).n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function i(e){return e.setValue(n,!0)}function s(e){return!0===e.getValue(n)}},36360:(e,t,r)=>{"use strict";r.d(t,{Z:()=>eT});let n=Function.prototype.toString,i=n.call(Object),s=Object.getPrototypeOf,o=Object.prototype,a=o.hasOwnProperty,l=Symbol?Symbol.toStringTag:void 0,c=o.toString;function u(e){var t,r,o;if(null==(t=e)||"object"!=typeof t||"[object Object]"!==(null==(r=e)?void 0===r?"[object Undefined]":"[object Null]":l&&l in Object(r)?function(e){let t=a.call(e,l),r=e[l],n=!1;try{e[l]=void 0,n=!0}catch{}let i=c.call(e);return n&&(t?e[l]=r:delete e[l]),i}(r):(o=r,c.call(o))))return!1;let u=s(e);if(null===u)return!0;let h=a.call(u,"constructor")&&u.constructor;return"function"==typeof h&&h instanceof h&&n.call(h)===i}function h(e){return p(e)?e.slice():e}function d(e,t,r){let n=r.get(e[t])||[];for(let r=0,i=n.length;r<i;r++){let i=n[r];if(i.key===t&&i.obj===e)return!0}return!1}function p(e){return Array.isArray(e)}function _(e){return"function"==typeof e}function m(e){return!g(e)&&!p(e)&&!_(e)&&"object"==typeof e}function g(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}var f,T,E,v,S,b,y,w,A=r(98829),C=r(60077);(f=S||(S={}))[f.NOT_RECORD=0]="NOT_RECORD",f[f.RECORD=1]="RECORD",f[f.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";class O{shouldSample(){return{decision:S.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class k{shouldSample(){return{decision:S.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}var L=r(99014),P=r(67408),R=r(50558),N=r(57362);class M{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||((0,N.s)(Error("ParentBasedSampler must have a root sampler configured")),this._root=new O),this._remoteParentSampled=e.remoteParentSampled??new O,this._remoteParentNotSampled=e.remoteParentNotSampled??new k,this._localParentSampled=e.localParentSampled??new O,this._localParentNotSampled=e.localParentNotSampled??new k}shouldSample(e,t,r,n,i,s){let o=L.u.getSpanContext(e);return o&&(0,P.YA)(o)?o.isRemote?o.traceFlags&R.X.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,n,i,s):this._remoteParentNotSampled.shouldSample(e,t,r,n,i,s):o.traceFlags&R.X.SAMPLED?this._localParentSampled.shouldSample(e,t,r,n,i,s):this._localParentNotSampled.shouldSample(e,t,r,n,i,s):this._root.shouldSample(e,t,r,n,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class D{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=1===this._ratio?0x100000000:Math.floor(0xffffffff*this._ratio)}
1shouldSample(e,t){return{decision:(0,P.hX)(t)&&this._accumulate(t)<this._upperBound?S.RECORD_AND_SAMPLED:S.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let r=0;r<32;r+=8){let n=0;for(let t=0;t<8;t++){let i=e.charCodeAt(r+t);n=n<<4|(i<58?i-48:i<71?i-55:i-87)}t=(t^n)>>>0}return t}}function x(){let e=(0,C.Jk)("OTEL_TRACES_SAMPLER_ARG");return null==e?(A.s.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1):e<0||e>1?(A.s.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to 1.`),1):e}(T=b||(b={})).AlwaysOff="always_off",T.AlwaysOn="always_on",T.ParentBasedAlwaysOff="parentbased_always_off",T.ParentBasedAlwaysOn="parentbased_always_on",T.ParentBasedTraceIdRatio="parentbased_traceidratio",T.TraceIdRatio="traceidratio";let I=1/0;var U=r(62854),B=r(43479),z=r(59359),F=r(89727),V=r(24008);(E=y||(y={}))[E.NOT_RECORD=0]="NOT_RECORD",E[E.RECORD=1]="RECORD",E[E.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";var $=r(36029);function H(e){let t={};if("object"!=typeof e||null==e)return t;for(let n in e){var r;if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("string"!=typeof(r=n)||""===r){A.s.warn(`Invalid attribute key: ${n}`);continue}let i=e[n];if(!j(i)){A.s.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(i)?t[n]=i.slice():t[n]=i}return t}function j(e){return null==e||(Array.isArray(e)?function(e){let t;for(let r of e){if(null==r)continue;let e=typeof r;if(e!==t){if(!t&&G(e)){t=e;continue}return!1}}return!0}(e):G(typeof e))}function G(e){switch(e){case"number":case"boolean":case"string":return!0}return!1}var Z=r(24963),q=r(87440),W=r(32834),X=r(7848);let J=Symbol.for("nodejs.util.inspect.custom");function K(e){let t={};for(let[r,n]of e.getRawAttributes())"function"!=typeof n?.then&&null!=n&&(t[r]??=n);return t}function Y(e,t,r,n,i){if("number"==typeof r&&r<0){let t=`[${e}]`;return n?.stylize?n.stylize(t,"special"):t}if("function"!=typeof i||!n)return t;let s={...n,depth:null==n.depth?n.depth:n.depth-1};return`${e} ${i(t,s)}`}class Q{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:Z.s.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){const t=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=q.ug.now(),this._performanceOffset=t-(this._performanceStartTime+q.ug.timeOrigin),this._startTimeProvided=null!=e.startTime,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(const t of e.links)this.addLink(t);this.startTime=this._getTime(e.startTime??t),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,null!=e.attributes&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(null==t||this._isSpanEnded())return this;if(0===e.length)return A.s.warn(`Invalid attribute key: ${e}`),this;if(!j(t))return A.s.warn(`Invalid attribute value set for key: ${e}`),this;let{attributeCountLimit:r}=this._spanLimits,n=!Object.prototype.hasOwnProperty.call(this.attributes,e);return void 0!==r&&this._attributesCount>=r&&n?this._droppedAttributesCount++:(this.attributes[e]=this._truncateToSize(t),n&&this._attributesCount++),this}setAttributes(e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setAttribute(t,e[t]);return this}addEvent(e,t,r){if(this._isSpanEnded())return this;let{eventCountLimit:n}=this._spanLimits;if(0===n)return A.s.warn("No events allowed."),this._droppedEventsCount++,this;void 0!==n&&this.events.length>=n&&(0===this._droppedEventsCount&&A.s.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,W.Ir)(t)&&((0,W.Ir)(r)||(r=t),t=void 0);let i=H(t),{attributePerEventCountLimit:s}=this._spanLimits,o={},a=0,l=0;for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e];if(void 0!==s&&l>=s){a++;continue}o[e]=this._truncateToSize(t),l++}return this.events.push({name:e,attributes:o,time:this._getTime(r),droppedAttributesCount:a}),this}addLink(e){if(this._isSpanEnded())return this;let{linkCountLimit:t}=this._spanLimits;if(0===t)return this._droppedLinksCount++,this;void 0!==t&&this.links.length>=t&&(0===this._droppedLinksCount&&A.s.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);let{attributePerLinkCountLimit:r}=this._spanLimits,n=H(e.attributes),i={},s=0,o=0;for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let t=n[e];if(void 0!==r&&o>=r){s++;continue}i[e]=this._truncateToSize(t),o++}let a={context:e.context};return o>0&&(a.attributes=i),s>0&&(a.droppedAttributesCount=s),this.links.push(a),this}addLinks(e){for(let t of e)this.addLink(t);return this}setStatus(e){if(this._isSpanEnded()||e.code===Z.s.UNSET||this.status.code===Z.s.OK)return this;let t={code:e.code};return e.code===Z.s.ERROR&&("string"==typeof e.message?t.message=e.message:null!=e.message&&A.s.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=t,this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){this._isSpanEnded()?A.s.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`):(this.endTime=this._getTime(e),this._duration=(0,W.W5)(this.startTime,this.endTime),this._duration[0]<0&&(A.s.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&A.s.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&A.s.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this))}_getTime(e){if("number"==typeof e&&e<=q.ug.now())return(0,W._5)(e+this._performanceOffset);if("number"==typeof e)return(0,W.lg)(e);if(e instanceof Date)return(0,W.lg)(e.getTime());if((0,W.VL)(e))return e;if(this._startTimeProvided)return(0,W.lg)(Date.now());let t=q.ug.now()-this._performanceStartTime;return(0,W.mw)(this.startTime,(0,W.lg)(t))}isRecording(){return!1===this._ended}recordException(e,t){let r={};"string"==typeof e?r[X.wL]=e:e&&(e.code?r[X.d6]=e.code.toString():e.name&&(r[X.d6]=e.name),e.message&&(r[X.wL]=e.message),e.stack&&(r[X.Mb]=e.stack)),r[X.d6]||r[X.wL]?this.addEvent("exception",r,t):A.s.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let e=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);A.s.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(A.s.warn(`Attribute value limit must be positive, got ${t}`),e):"string"==typeof e?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>"string"==typeof e?this._truncateToLimitUtil(e,t):e):e}[J](e,t,r){return Y("SpanImpl",{name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:K(this.resource)}},e,t,r)}}var ee=r(37040);class et{startedSpans;liveSpans;constructor(e){this.startedSpans=e.createCounter(ee.ij,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=e.createUpDownCounter(ee.x3,{unit:"{span}",description:"The number of currently live spans."})}startSpan(e,t){var r;let n=function(e){switch(e){case S.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case S.RECORD:return"RECORD_ONLY";case S.NOT_RECORD:return"DROP"}}(t);if(this.startedSpans.add(1,{[ee.Cr]:(r=e)?r.isRemote?"remote":"local":"none",[ee.ku]:n}),t===S.NOT_RECORD)return()=>{};let i={[ee.ku]:n};return this.liveSpans.add(1,i),()=>{this.liveSpans.add(-1,i)}}}class er{_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(e,t){this.instrumentationScope=e,this._sampler=t.sampler,this._spanLimits=t.spanLimits,this._resource=t.resource,this._idGenerator=t.idGenerator,this._spanProcessor=t.spanProcessor;const r=t.meterProvider.getMeter("@opentelemetry/sdk-trace","2.10.0");this._tracerMetrics=new et(r)}startSpan(e,t={},r=z._.active()){let n,i,s;t.root&&(r=L.u.deleteSpan(r));let o=L.u.getSpan(r);
1if((0,$.Zf)(r))return A.s.debug("Instrumentation suppressed, returning Noop Span"),L.u.wrapSpanContext(F.dM);let a=o?.spanContext(),l=this._idGenerator.generateSpanId();a&&L.u.isSpanContextValid(a)?(i=a.traceId,s=a.traceState,n=a):i=this._idGenerator.generateTraceId();let c=t.kind??V.v.INTERNAL,u=(t.links??[]).map(e=>({context:e.context,attributes:H(e.attributes)})),h=H(t.attributes),d=this._sampler.shouldSample(r,i,e,c,h,u),p=this._tracerMetrics.startSpan(a,d.decision);s=d.traceState??s;let _={traceId:i,spanId:l,traceFlags:d.decision===y.RECORD_AND_SAMPLED?R.X.SAMPLED:R.X.NONE,traceState:s};if(d.decision===y.NOT_RECORD)return A.s.debug("Recording is off, propagating context in a non-recording span"),L.u.wrapSpanContext(_);let m=H(Object.assign(h,d.attributes));return new Q({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:_,name:e,kind:c,links:u,parentSpanContext:n,attributes:m,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:p})}startActiveSpan(e,t,r,n){let i,s,o;if(arguments.length<2)return;2==arguments.length?o=t:3==arguments.length?(i=t,o=r):(i=t,s=r,o=n);let a=s??z._.active(),l=this.startSpan(e,i,a),c=L.u.setSpan(a,l);return z._.with(c,o,void 0,l)}[J](e,t,r){return Y("Tracer",{instrumentationScope:this.instrumentationScope,resource:{attributes:K(this._resource)},spanLimits:this._spanLimits},e,t,r)}}class en{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{(0,N.s)(e||Error("MultiSpanProcessor: forceFlush failed")),t()})})}onStart(e,t){for(let r of this._spanProcessors)r.onStart(e,t)}onEnding(e){for(let t of this._spanProcessors)t.onEnding&&t.onEnding(e)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,r)=>{Promise.all(e).then(()=>{t()},r)})}}let ei=new Uint8Array(16),es=new Uint8Array(8),eo=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ea(e){for(let t=0;t<e.length;t++)e[t]=256*Math.random()>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function el(e){let t="";for(let r=0;r<e.length;r++)t+=eo[e[r]];return t}class ec{generateTraceId(){return ea(ei),el(ei)}generateSpanId(){return ea(es),el(es)}}(v=w||(w={}))[v.resolved=0]="resolved",v[v.timeout=1]="timeout",v[v.error=2]="error",v[v.unresolved=3]="unresolved";class eu{_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(e={}){this._forceFlushTimeoutMillis=e.forceFlushTimeoutMillis??3e4,this._resource=e.resource??(0,B.gk)();const t=e.spanProcessors??[];this._activeSpanProcessor=new en(t),this._tracerOptions={resource:this._resource,sampler:e.sampler??new M({root:new O}),spanLimits:{attributeCountLimit:e.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:e.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:e.spanLimits?.eventCountLimit??128,linkCountLimit:e.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:e.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:e.spanLimits?.attributePerLinkCountLimit??128},idGenerator:e.idGenerator||new ec,spanProcessor:this._activeSpanProcessor,meterProvider:e.meterProvider??{getMeter:()=>(0,U.Ac)()}}}getTracer(e,t,r){let n=`${e}@${t||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new er({name:e,version:t,schemaUrl:r?.schemaUrl},this._tracerOptions)),this._tracers.get(n)}forceFlush(){let e=this._forceFlushTimeoutMillis,t=this._activeSpanProcessor._spanProcessors.map(t=>new Promise(r=>{let n,i=setTimeout(()=>{r(Error(`Span processor did not completed within timeout period of ${e} ms`)),n=w.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),n!==w.timeout&&r(n=w.resolved)}).catch(e=>{clearTimeout(i),n=w.error,r(e)})}));return new Promise((e,r)=>{Promise.all(t).then(t=>{let n=t.filter(e=>e!==w.resolved);n.length>0?r(n):e()}).catch(e=>r([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[J](e,t,r){let n=this._activeSpanProcessor._spanProcessors;return Y("TracerProvider",{resource:{attributes:K(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:n.map(e=>e.constructor?.name??"SpanProcessor")},e,t,r)}}class eh extends eu{constructor(e={}){const t=function(...e){let t=e.shift(),r=new WeakMap;for(;e.length>0;)t=function e(t,r,n=0,i){let s;if(!(n>20)){if(n++,g(t)||g(r)||_(r))s=h(r);else if(p(t)){if(s=t.slice(),p(r))for(let e=0,t=r.length;e<t;e++)s.push(h(r[e]));else if(m(r)){let e=Object.keys(r);for(let t=0,n=e.length;t<n;t++){let n=e[t];"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(s[n]=h(r[n]))}}}else if(m(t))if(m(r)){var o,a;
1if(o=t,a=r,!(u(o)&&u(a)))return r;s=Object.assign({},t);let l=Object.keys(r);for(let o=0,a=l.length;o<a;o++){let a=l[o];if("__proto__"===a||"constructor"===a||"prototype"===a)continue;let c=r[a];if(g(c))void 0===c?delete s[a]:s[a]=c;else{let o=s[a];if(d(t,a,i)||d(r,a,i))delete s[a];else{if(m(o)&&m(c)){let e=i.get(o)||[],n=i.get(c)||[];e.push({obj:t,key:a}),n.push({obj:r,key:a}),i.set(o,e),i.set(c,n)}s[a]=e(s[a],c,n,i)}}}}else s=r;return s}}(t,e.shift(),0,r);return t}({},{sampler:function(){let e=(0,C.HF)("OTEL_TRACES_SAMPLER")??b.ParentBasedAlwaysOn;switch(e){case b.AlwaysOn:return new O;case b.AlwaysOff:return new k;case b.ParentBasedAlwaysOn:return new M({root:new O});case b.ParentBasedAlwaysOff:return new M({root:new k});case b.TraceIdRatio:return new D(x());case b.ParentBasedTraceIdRatio:return new M({root:new D(x())});default:return A.s.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${b.ParentBasedAlwaysOn}".`),new M({root:new O})}}(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,C.Jk)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,C.Jk)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,C.Jk)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,C.Jk)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}},function(e){let t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,C.Jk)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,C.Jk)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??I,Object.assign({},e,{spanLimits:t})}(e));delete t.generalLimits,super(t)}}var ed=r(21434);class ep{_enabled=!1;_currentContext=ed.l;_bindFunction(e=ed.l,t){let r=this,n=function(...n){return r.with(e,()=>t.apply(this,n))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),n}active(){return this._currentContext}bind(e,t){return(void 0===e&&(e=this.active()),"function"==typeof t)?this._bindFunction(e,t):t}disable(){return this._currentContext=ed.l,this._enabled=!1,this}enable(){return this._enabled||(this._enabled=!0,this._currentContext=ed.l),this}with(e,t,r,...n){let i=this._currentContext;this._currentContext=e||ed.l;try{return t.call(r,...n)}finally{this._currentContext=i}}}var e_=r(79859),em=r(21956),eg=r(42869),ef=r(56483);class eT extends eh{constructor(e={}){super(e)}register(e={}){L.u.setGlobalTracerProvider(this),function(e){if(null!==e){if(void 0===e)return e_.$.setGlobalPropagator(new em.n({propagators:[new eg.lm,new ef.t]}));e_.$.setGlobalPropagator(e)}}(e.propagator),function(e){if(null!==e){if(void 0===e){let e=new ep;e.enable(),z._.setGlobalContextManager(e);return}e.enable(),z._.setGlobalContextManager(e)}}(e.contextManager)}}},37040:(e,t,r)=>{"use strict";r.d(t,{C1:()=>a,Cr:()=>s,O1:()=>l,V8:()=>n,VH:()=>d,ij:()=>h,ku:()=>o,lB:()=>c,wU:()=>i,x3:()=>u});let n="otel.component.name",i="otel.component.type",s="otel.span.parent.origin",o="otel.span.sampling_result",a="otel.sdk.processor.span.processed",l="otel.sdk.processor.span.queue.capacity",c="otel.sdk.processor.span.queue.size",u="otel.sdk.span.live",h="otel.sdk.span.started",d="batching_span_processor"},37674:(e,t,r)=>{"use strict";r.d(t,{CL:()=>s,v4:()=>o,Qd:()=>function e(t,r){if(t.nodeType===Node.DOCUMENT_NODE)return"/";let n=function(e,t){let r,n=e.nodeType,i=function(e){if(!e.parentNode)return 0;let t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let r=Array.from(e.parentNode.childNodes);return(r=r.filter(r=>{let n=r.localName;return t.indexOf(r.nodeType)>=0&&n===e.localName})).length>=1?r.indexOf(e)+1:0}(e);if(n===Node.ELEMENT_NODE){let n=e.getAttribute("id");if(t&&n)return`//*[@id="${n}"]`;r=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)r="text()";else{if(n!==Node.COMMENT_NODE)return"";r="comment()"}return r&&i>1?`/${r}[${i}]`:`/${r}`}(t,r);if(r&&n.indexOf("@id")>0)return n;let i="";return t.parentNode&&(i+=e(t.parentNode,r)),i+=n},CJ:()=>i});var n=r(43720);function i(e,t){return t in e}function s(e,t,r,n=!0){if(t in r&&"number"==typeof r[t]&&!(n&&0===r[t]))return e.addEvent(t,r[t])}function o(e,t,r=!1,i,a){if(void 0===i&&(i=0!==t[n.D.START_TIME]),r||(s(e,n.D.FETCH_START,t,i),s(e,n.D.DOMAIN_LOOKUP_START,t,i),s(e,n.D.DOMAIN_LOOKUP_END,t,i),s(e,n.D.CONNECT_START,t,i),s(e,n.D.SECURE_CONNECTION_START,t,i),s(e,n.D.CONNECT_END,t,i),s(e,n.D.REQUEST_START,t,i),s(e,n.D.RESPONSE_START,t,i),s(e,n.D.RESPONSE_END,t,i)),!a){let r=t[n.D.ENCODED_BODY_SIZE];void 0!==r&&e.setAttribute("http.response_content_length",r);let i=t[n.D.DECODED_BODY_SIZE];void 0!==i&&r!==i&&e.setAttribute("http.response_content_length_uncompressed",i)}}},40701:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});
1class n{_delegate;constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}},41397:(e,t,r)=>{"use strict";r.d(t,{P:()=>s,u:()=>o});var n=r(4610),i=r(90871);let s=e=>({type:i.D.DEFAULT}),o=e=>n.h.CUMULATIVE},42869:(e,t,r)=>{"use strict";r.d(t,{ZS:()=>m,lm:()=>T});var n=r(99014),i=r(67408),s=r(50558),o=r(36029);let a="[_0-9a-z-*/]",l=`[a-z]${a}{0,255}`,c=`[a-z0-9]${a}{0,240}@[a-z]${a}{0,13}`,u=RegExp(`^(?:${l}|${c})$`),h=/^[ -~]{0,255}[!-~]$/,d=/,|=/;function p(e){return h.test(e)&&!d.test(e)}class _{_length;_rawTraceState;_internalState;constructor(e){this._rawTraceState="string"==typeof e?e:"",this._length=this._rawTraceState.length}set(e,t){if(!u.test(e)||!p(t))return this;let r=this._getState(),n=r.get(e),i=this._length;if("string"==typeof n?i+=t.length-n.length:i+=e.length+t.length+(r.size>0?2:1),i>512)return this;let s=new Map(r);return s.delete(e),s.set(e,t),this._fromState(s,i)}unset(e){let t=this._getState(),r=t.get(e);if("string"!=typeof r)return this;let n=this._length-(e.length+r.length+1);t.size>1&&(n-=1);let i=new Map(t);return i.delete(e),this._fromState(i,n)}get(e){return this._getState().get(e)}serialize(){let e="",t=0;for(let r of this._getState())t>0&&(e=","+e),e=`${r[0]}=${r[1]}`+e,t++;return e}_getState(){if(this._internalState)return this._internalState;let e=this._rawTraceState.split(","),t=new Map,r=0;for(let n of e){let e=n.trim(),i=e.indexOf("=");if(-1===i)continue;let s=e.slice(0,i),o=e.slice(i+1);if(!u.test(s)||!p(o))continue;let a=r+e.length+ +(t.size>0);if(!(a>512)&&(t.set(s,o),r=a,t.size>=32))break}return this._length=r,this._internalState=new Map(Array.from(t.entries()).reverse()),this._internalState}_fromState(e,t){let r=Object.create(_.prototype);return r._internalState=e,r._length=t,r}}let m="traceparent",g="tracestate",f=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");class T{inject(e,t,r){let a=n.u.getSpanContext(e);if(!a||(0,o.Zf)(e)||!(0,i.YA)(a))return;let l=`00-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||s.X.NONE).toString(16)}`;r.set(t,m,l),a.traceState&&r.set(t,g,a.traceState.serialize())}extract(e,t,r){let i,s=r.get(t,m);if(!s)return e;let o=Array.isArray(s)?s[0]:s;if("string"!=typeof o)return e;let a=(i=f.exec(o))&&("00"!==i[1]||!i[5])?{traceId:i[2],spanId:i[3],traceFlags:parseInt(i[4],16)}:null;if(!a)return e;a.isRemote=!0;let l=r.get(t,g);if(l){let e=Array.isArray(l)?l.join(","):l;a.traceState=new _("string"==typeof e?e:void 0)}return n.u.setSpanContext(e,a)}fields(){return[m,g]}}},43479:(e,t,r)=>{"use strict";let n;r.d(t,{gk:()=>d,sq:()=>h,QZ:()=>c,Lm:()=>u});var i=r(98829),s=r(7848);let o={[s.aO]:"opentelemetry","process.runtime.name":"browser",[s.E$]:s.qV,[s.aJ]:"2.10.0"},a=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then;class l{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,t){let r=new l({},t);return r._rawAttributes=p(e),r._asyncAttributesPending=e.filter(([e,t])=>a(t)).length>0,r}constructor(e,t){const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([e,t])=>(a(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=p(this._rawAttributes),this._schemaUrl=function(e){if("string"==typeof e||void 0===e)return e;i.s.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,r]=this._rawAttributes[e];this._rawAttributes[e]=[t,a(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&i.s.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,r]of this._rawAttributes){if(a(r)){i.s.debug(`Unsettled resource attribute ${t} skipped`);continue}null!=r&&(e[t]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){var t,r;let n,s,o;if(null==e)return this;let a=(t=this,r=e,n=t?.schemaUrl,o=void 0===(s=r?.schemaUrl)||""===s,void 0===n||""===n?s:o||n===s?n:void i.s.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,s));return l.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],a?{schemaUrl:a}:void 0)}}function c(e,t){return l.FromAttributeList(Object.entries(e),t)}function u(e,t){return new l(e,t)}function h(){return c({})}
1function d(){return c({[s.UX]:function(){if(void 0===n)try{let e=globalThis.process.argv0;n=e?`unknown_service:${e}`:"unknown_service"}catch{n="unknown_service"}return n}(),[s.E$]:o[s.E$],[s.aO]:o[s.aO],[s.aJ]:o[s.aJ]})}function p(e){return e.map(([e,t])=>a(t)?[e,t.catch(t=>{i.s.debug("promise rejection for resource attribute: %s - %s",e,t)})]:[e,t])}},43720:(e,t,r)=>{"use strict";var n,i;r.d(t,{D:()=>n}),(i=n||(n={})).CONNECT_END="connectEnd",i.CONNECT_START="connectStart",i.DECODED_BODY_SIZE="decodedBodySize",i.DOM_COMPLETE="domComplete",i.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",i.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",i.DOM_INTERACTIVE="domInteractive",i.DOMAIN_LOOKUP_END="domainLookupEnd",i.DOMAIN_LOOKUP_START="domainLookupStart",i.ENCODED_BODY_SIZE="encodedBodySize",i.FETCH_START="fetchStart",i.LOAD_EVENT_END="loadEventEnd",i.LOAD_EVENT_START="loadEventStart",i.NAVIGATION_START="navigationStart",i.REDIRECT_END="redirectEnd",i.REDIRECT_START="redirectStart",i.REQUEST_START="requestStart",i.RESPONSE_END="responseEnd",i.RESPONSE_START="responseStart",i.SECURE_CONNECTION_START="secureConnectionStart",i.START_TIME="startTime",i.UNLOAD_EVENT_END="unloadEventEnd",i.UNLOAD_EVENT_START="unloadEventStart"},45836:(e,t,r)=>{"use strict";r.d(t,{g:()=>M});var n,i,s,o,a=r(59359),l=r(79859),c=r(21434),u=r(99014),h=r(87440),d=r(42869),p=r(43720),_=r(37674),m=r(98829),g=r(72262);let f="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},T=Symbol.for("io.opentelemetry.js.api.logs");class E{emit(e){}}let v=new E;class S{getLogger(e,t,r){return new E}}let b=new S;class y{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):v}}class w{getLogger(e,t,r){var n;return null!=(n=this.getDelegateLogger(e,t,r))?n:new y(this,e,t,r)}getDelegate(){var e;return null!=(e=this._delegate)?e:b}setDelegate(e){this._delegate=e}getDelegateLogger(e,t,r){var n;return null==(n=this._delegate)?void 0:n.getLogger(e,t,r)}}class A{constructor(){this._proxyLoggerProvider=new w}static getInstance(){return this._instance||(this._instance=new A),this._instance}setGlobalLoggerProvider(e){return f[T]?this.getLoggerProvider():(f[T]=t=>1===t?e:b,this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,t;return null!=(t=null==(e=f[T])?void 0:e.call(f,1))?t:this._proxyLoggerProvider}getLogger(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)}disable(){delete f[T],this._proxyLoggerProvider=new w}}let C=A.getInstance();var O=r(25861);class k{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,t,r){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(r),this._diag=m.s.createComponentLogger({namespace:e}),this._tracer=u.u.getTracer(e,t),this._meter=g.q.getMeter(e,t),this._logger=C.getLogger(e,t),this._updateMetricInstruments()}_wrap=O.wrap;_unwrap=O.unwrap;_massWrap=O.massWrap;_massUnwrap=O.massUnwrap;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,r,n){if(e)try{e(r,n)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}}}class L extends k{constructor(e,t,r){super(e,t,r),this._config.enabled&&this.enable()}}function P(e,t,r){let n,i;try{i=e()}catch(e){n=e}finally{if(t(n,i),n&&!r)throw n;return i}}(n=s||(s={})).DOCUMENT_LOAD="documentLoad",n.DOCUMENT_FETCH="documentFetch",n.RESOURCE_FETCH="resourceFetch";let R="http.url";(i=o||(o={})).FIRST_PAINT="firstPaint",i.FIRST_CONTENTFUL_PAINT="firstContentfulPaint";let N={"first-paint":o.FIRST_PAINT,"first-contentful-paint":o.FIRST_CONTENTFUL_PAINT};class M extends L{component="document-load";version="1";moduleName=this.component;constructor(e={}){super("@opentelemetry/instrumentation-document-load","0.46.0",e)}init(){}_onDocumentLoaded(){window.setTimeout(()=>{this._collectPerformance()})}_addResourcesSpans(e){let t=h.ug.getEntriesByType?.("resource");t&&t.forEach(t=>{this._initResourceSpan(t,e)})}_collectPerformance(){let e=Array.from(document.getElementsByTagName("meta")).find(e=>e.getAttribute("name")===d.ZS),t=(()=>{let e={},t=h.ug.getEntriesByType?.("navigation")[0];
1if(t)Object.values(p.D).forEach(r=>{if((0,_.CJ)(t,r)){let n=t[r];"number"==typeof n&&(e[r]=n)}});else{let t=h.ug.timing;t&&Object.values(p.D).forEach(r=>{if((0,_.CJ)(t,r)){let n=t[r];"number"==typeof n&&(e[r]=n)}})}return e})(),r=e&&e.content||"";a._.with(l.$.extract(c.l,{traceparent:r}),()=>{let e=this._startSpan(s.DOCUMENT_LOAD,p.D.FETCH_START,t);if(e){let r;a._.with(u.u.setSpan(a._.active(),e),()=>{let e=this._startSpan(s.DOCUMENT_FETCH,p.D.FETCH_START,t);e&&(e.setAttribute(R,location.href),a._.with(u.u.setSpan(a._.active(),e),()=>{this.getConfig().ignoreNetworkEvents||(0,_.v4)(e,t),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentFetch),this._endSpan(e,p.D.RESPONSE_END,t)}))}),e.setAttribute(R,location.href),e.setAttribute("http.user_agent",navigator.userAgent),this._addResourcesSpans(e),this.getConfig().ignoreNetworkEvents||((0,_.CL)(e,p.D.FETCH_START,t),(0,_.CL)(e,p.D.UNLOAD_EVENT_START,t),(0,_.CL)(e,p.D.UNLOAD_EVENT_END,t),(0,_.CL)(e,p.D.DOM_INTERACTIVE,t),(0,_.CL)(e,p.D.DOM_CONTENT_LOADED_EVENT_START,t),(0,_.CL)(e,p.D.DOM_CONTENT_LOADED_EVENT_END,t),(0,_.CL)(e,p.D.DOM_COMPLETE,t),(0,_.CL)(e,p.D.LOAD_EVENT_START,t),(0,_.CL)(e,p.D.LOAD_EVENT_END,t)),!this.getConfig().ignorePerformancePaintEvents&&(r=h.ug.getEntriesByType?.("paint"))&&r.forEach(({name:t,startTime:r})=>{(0,_.CJ)(N,t)&&e.addEvent(N[t],r)}),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentLoad),this._endSpan(e,p.D.LOAD_EVENT_END,t)}})}_endSpan(e,t,r){e&&((0,_.CJ)(r,t)?e.end(r[t]):e.end())}_initResourceSpan(e,t){let r=this._startSpan(s.RESOURCE_FETCH,p.D.FETCH_START,e,t);r&&(r.setAttribute(R,e.name),this.getConfig().ignoreNetworkEvents||(0,_.v4)(r,e),this._addCustomAttributesOnResourceSpan(r,e,this.getConfig().applyCustomAttributesOnSpan?.resourceFetch),this._endSpan(r,p.D.RESPONSE_END,e))}_startSpan(e,t,r,n){if((0,_.CJ)(r,t)&&"number"==typeof r[t])return this.tracer.startSpan(e,{startTime:r[t]},n?u.u.setSpan(a._.active(),n):void 0)}_waitForPageLoad(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))}_addCustomAttributesOnSpan(e,t){t&&P(()=>t(e),e=>{e&&this._diag.error("addCustomAttributesOnSpan",e)},!0)}_addCustomAttributesOnResourceSpan(e,t,r){r&&P(()=>r(e,t),e=>{e&&this._diag.error("addCustomAttributesOnResourceSpan",e)},!0)}enable(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()}disable(){window.removeEventListener("load",this._onDocumentLoaded)}}},48130:(e,t,r)=>{"use strict";function n(e){}function i(e){}r.d(t,{HF:()=>n,f7:()=>i})},48872:(e,t,r)=>{"use strict";r.d(t,{X:()=>h});var n=r(98829);let i=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then;class s{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,t){let r=new s({},t);return r._rawAttributes=a(e),r._asyncAttributesPending=e.filter(([e,t])=>i(t)).length>0,r}constructor(e,t){const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([e,t])=>(i(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=a(this._rawAttributes),this._schemaUrl=function(e){if("string"==typeof e||void 0===e)return e;n.s.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,r]=this._rawAttributes[e];this._rawAttributes[e]=[t,i(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&n.s.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,r]of this._rawAttributes){if(i(r)){n.s.debug(`Unsettled resource attribute ${t} skipped`);continue}null!=r&&(e[t]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){var t,r;let i,o,a;if(null==e)return this;let l=(t=this,r=e,i=t?.schemaUrl,a=void 0===(o=r?.schemaUrl)||""===o,void 0===i||""===i?o:a||i===o?i:void n.s.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',i,o));return s.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],l?{schemaUrl:l}:void 0)}}function o(){var e;return e={},s.FromAttributeList(Object.entries(e),void 0)}function a(e){return e.map(([e,t])=>i(t)?[e,t.catch(t=>{n.s.debug("promise rejection for resource attribute: %s - %s",e,t)})]:[e,t])}let l="browser.platform",c="browser.user_agent";class u{detect(e){let t,r;if(!("u">typeof window&&"u">typeof document))return o();let n=(t={},(r=navigator.userAgentData)?(t[l]=r.platform,t["browser.brands"]=r.brands.map(e=>`${e.brand}
1 ${e.version}`),t["browser.mobile"]=r.mobile):t[c]=navigator.userAgent,t["browser.language"]=navigator.language,t);return this._getResourceAttributes(n,e)}_getResourceAttributes(e,t){return e[c]||e[l]?{attributes:e}:(n.s.debug("BrowserDetector failed: Unable to find required browser resources. "),o())}}let h=new u},50937:()=>{"use strict";var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,o=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,a=(e,t)=>{for(var r in t||(t={}))i.call(t,r)&&o(e,r,t[r]);if(n)for(var r of n(t))s.call(t,r)&&o(e,r,t[r]);return e},l=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),c=globalThis;function u(e){return(c.__Zone_symbol_prefix||"__zone_symbol__")+e}var h=Object.getOwnPropertyDescriptor,d=Object.defineProperty,p=Object.getPrototypeOf,_=Object.create,m=Array.prototype.slice,g="addEventListener",f="removeEventListener",T=u(g),E=u(f),v="true",S="false",b=u("");function y(e,t){return Zone.current.wrap(e,t)}function w(e,t,r,n,i){return Zone.current.scheduleMacroTask(e,t,r,n,i)}var A="u">typeof window,C=A?window:void 0,O=A&&C||globalThis;function k(e,t){for(let r=e.length-1;r>=0;r--)"function"==typeof e[r]&&(e[r]=y(e[r],t+"_"+r));return e}function L(e){return!e||!1!==e.writable&&("function"!=typeof e.get||void 0!==e.set)}var P="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,R=!("nw"in O)&&void 0!==O.process&&"[object process]"===O.process.toString(),N=!R&&!P&&!!(A&&C.HTMLElement),M=void 0!==O.process&&"[object process]"===O.process.toString()&&!P&&!!(A&&C.HTMLElement),D={},x=u("enable_beforeunload"),I=function(e){let t;if(!(e=e||O.event))return;let r=D[e.type];r||(r=D[e.type]=u("ON_PROPERTY"+e.type));let n=this||e.target||O,i=n[r];if(N&&n===C&&"error"===e.type){let r=e;!0===(t=i&&i.call(this,r.message,r.filename,r.lineno,r.colno,r.error))&&e.preventDefault()}else t=i&&i.apply(this,arguments),"beforeunload"===e.type&&O[x]&&"string"==typeof t?e.returnValue=t:void 0==t||t||e.preventDefault();return t};function U(e,t,r){let n=h(e,t);if(!n&&r&&h(r,t)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let i=u("on"+t+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete n.writable,delete n.value;let s=n.get,o=n.set,a=t.slice(2),l=D[a];l||(l=D[a]=u("ON_PROPERTY"+a)),n.set=function(t){let r=this;r||e!==O||(r=O),r&&("function"==typeof r[l]&&r.removeEventListener(a,I),null==o||o.call(r,null),r[l]=t,"function"==typeof t&&r.addEventListener(a,I,!1))},n.get=function(){let r=this;if(r||e!==O||(r=O),!r)return null;let i=r[l];if(i)return i;if(s){let e=s.call(this);if(e)return n.set.call(this,e),"function"==typeof r.removeAttribute&&r.removeAttribute(t),e}return null},d(e,t,n),e[i]=!0}function B(e,t,r){if(t)for(let n=0;n<t.length;n++)U(e,"on"+t[n],r);else{let t=[];for(let r in e)"on"==r.slice(0,2)&&t.push(r);for(let n=0;n<t.length;n++)U(e,t[n],r)}}var z=u("originalInstance");function F(e){let t,r=O[e];if(!r)return;O[u(e)]=r,O[e]=function(){let t=k(arguments,e);switch(t.length){case 0:this[z]=new r;break;case 1:this[z]=new r(t[0]);break;case 2:this[z]=new r(t[0],t[1]);break;case 3:this[z]=new r(t[0],t[1],t[2]);break;case 4:this[z]=new r(t[0],t[1],t[2],t[3]);break;default:throw Error("Arg list too long.")}},H(O[e],r);let n=new r(function(){});for(t in n)("XMLHttpRequest"!==e||"responseBlob"!==t)&&function(t){"function"==typeof n[t]?O[e].prototype[t]=function(){return this[z][t].apply(this[z],arguments)}
1:d(O[e].prototype,t,{set:function(r){"function"==typeof r?(this[z][t]=y(r,e+"."+t),H(this[z][t],r)):this[z][t]=r},get:function(){return this[z][t]}})}(t);for(t in r)"prototype"!==t&&r.hasOwnProperty(t)&&(O[e][t]=r[t])}function V(e,t,r){let n=e;for(;n&&!n.hasOwnProperty(t);)n=p(n);!n&&e[t]&&(n=e);let i=u(t),s=null;if(n&&(!(s=n[i])||!n.hasOwnProperty(i))&&(s=n[i]=n[t],L(n&&h(n,t)))){let e=r(s,i,t);n[t]=function(){return e(this,arguments)},H(n[t],s)}return s}function $(e,t,r){let n=null;function i(e){let t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},n.apply(t.target,t.args),e}n=V(e,t,e=>function(t,n){let s=r(t,n);return s.cbIdx>=0&&"function"==typeof n[s.cbIdx]?w(s.name,n[s.cbIdx],s,i):e.apply(t,n)})}function H(e,t){e[u("OriginalDelegate")]=t}function j(e){return"function"==typeof e}function G(e){return"number"==typeof e}var Z={useG:!0},q={},W={},X=RegExp("^"+b+"(\\w+)(true|false)$"),J=u("propagationStopped");function K(e,t){let r=(t?t(e):e)+S,n=(t?t(e):e)+v;q[e]={},q[e][S]=b+r,q[e][v]=b+n}function Y(e,n,i,s){let o=s&&s.add||g,l=s&&s.rm||f,c=s&&s.listeners||"eventListeners",h=s&&s.rmAll||"removeAllListeners",d=u(o),_="."+o+":",m="prependListener",T="."+m+":",E=function(e,t,r){let n;if(e.isRemoved)return;let i=e.callback;"object"==typeof i&&i.handleEvent&&(e.callback=e=>i.handleEvent(e),e.originalDelegate=i);try{e.invoke(e,t,[r])}catch(e){n=e}let s=e.options;if(s&&"object"==typeof s&&s.once){let n=e.originalDelegate?e.originalDelegate:e.callback;t[l].call(t,r.type,n,s)}return n};function y(t,r,i){if(!(r=r||e.event))return;let s=t||r.target||e,o=s[q[r.type][i?v:S]];if(o){let e=[];
1if(1===o.length){let t=E(o[0],s,r);t&&e.push(t)}else{let t=o.slice();for(let n=0;n<t.length&&(!r||!0!==r[J]);n++){let i=E(t[n],s,r);i&&e.push(i)}}if(1===e.length)throw e[0];for(let t=0;t<e.length;t++){let r=e[t];n.nativeScheduleMicroTask(()=>{throw r})}}}let w=function(e){return y(this,e,!1)},A=function(e){return y(this,e,!0)},C=[];for(let n=0;n<i.length;n++)C[n]=function(n,i){let s;if(!n)return!1;let g=!0;i&&void 0!==i.useG&&(g=i.useG);let f=i&&i.vh,E=!0;i&&void 0!==i.chkDup&&(E=i.chkDup);let y=!1;i&&void 0!==i.rt&&(y=i.rt);let C=n;for(;C&&!C.hasOwnProperty(o);)C=p(C);if(!C&&n[o]&&(C=n),!C||C[d])return!1;let O=i&&i.eventNameToString,k={},L=C[d]=C[o],P=C[u(l)]=C[l],N=C[u(c)]=C[c],M=C[u(h)]=C[h];i&&i.prepend&&(s=C[u(i.prepend)]=C[i.prepend]);let D=g?function(e){if(!k.isExisting)return L.call(k.target,k.eventName,k.capture?A:w,k.options)}:function(e){return L.call(k.target,k.eventName,e.invoke,k.options)},x=g?function(e){if(!e.isRemoved){let t,r=q[e.eventName];r&&(t=r[e.capture?v:S]);let n=t&&e.target[t];if(n){for(let r=0;r<n.length;r++)if(n[r]===e){n.splice(r,1),e.isRemoved=!0,e.removeAbortListener&&(e.removeAbortListener(),e.removeAbortListener=null),0===n.length&&(e.allRemoved=!0,e.target[t]=null);break}}}if(e.allRemoved)return P.call(e.target,e.eventName,e.capture?A:w,e.options)}:function(e){return P.call(e.target,e.eventName,e.invoke,e.options)},I=(null==i?void 0:i.diff)||function(e,t){let r=typeof t;return"function"===r&&e.callback===t||"object"===r&&e.originalDelegate===t},U=Zone[u("UNPATCHED_EVENTS")],B=e[u("PASSIVE_EVENTS")],z=function(n,s,o,l,c=!1,u=!1){return function(){let h,d=this||e,p=arguments[0];i&&i.transferEventName&&(p=i.transferEventName(p));let _=arguments[1];if(!_||R&&"uncaughtException"===p)return n.apply(this,arguments);let m=!1;if("function"!=typeof _){if(!_.handleEvent)return n.apply(this,arguments);m=!0}if(f&&!f(n,_,d,arguments))return;let T=!!B&&-1!==B.indexOf(p),b=function(e){if("object"==typeof e&&null!==e){let t=a({},e);return e.signal&&(t.signal=e.signal),t}return e}(function(e,n){if(!n)return e;if("boolean"==typeof e)return{capture:e,passive:!0};if(!e)return{passive:!0};if("object"==typeof e&&!1!==e.passive)return t(a({},e),r({passive:!0}));return e}(arguments[2],T)),y=null==b?void 0:b.signal;if(null==y?void 0:y.aborted)return;if(U){for(let e=0;e<U.length;e++)if(p===U[e])if(T)return n.call(d,p,_,b);else return n.apply(this,arguments)}let w=!!b&&("boolean"==typeof b||b.capture),A=!!b&&"object"==typeof b&&b.once,C=Zone.current,L=q[p];L||(K(p,O),L=q[p]);let P=L[w?v:S],N=d[P],M=!1;if(N){if(M=!0,E){for(let e=0;e<N.length;e++)if(I(N[e],_))return}}else N=d[P]=[];let D=d.constructor.name,x=W[D];x&&(h=x[p]),h||(h=D+s+(O?O(p):p)),k.options=b,A&&(k.options.once=!1),k.target=d,k.capture=w,k.eventName=p,k.isExisting=M;let z=g?Z:void 0;z&&(z.taskData=k),y&&(k.options.signal=void 0);let F=C.scheduleEventTask(h,_,z,o,l);if(y){k.options.signal=y;let e=()=>F.zone.cancelTask(F);n.call(y,"abort",e,{once:!0}),F.removeAbortListener=()=>y.removeEventListener("abort",e)}if(k.target=null,z&&(z.taskData=null),A&&(k.options.once=!0),"boolean"!=typeof F.options&&(F.options=b),F.target=d,F.capture=w,F.eventName=p,m&&(F.originalDelegate=_),u?N.unshift(F):N.push(F),c)return d}};return C[o]=z(L,_,D,x,y),s&&(C[m]=z(s,T,function(e){return s.call(k.target,k.eventName,e.invoke,k.options)},x,y,!0)),C[l]=function(){let t,r=this||e,n=arguments[0];i&&i.transferEventName&&(n=i.transferEventName(n));let s=arguments[2],o=!!s&&("boolean"==typeof s||s.capture),a=arguments[1];if(!a)return P.apply(this,arguments);if(f&&!f(P,a,r,arguments))return;let l=q[n];l&&(t=l[o?v:S]);let c=t&&r[t];if(c)for(let e=0;e<c.length;e++){let i=c[e];if(I(i,a)){if(c.splice(e,1),i.isRemoved=!0,0===c.length&&(i.allRemoved=!0,r[t]=null,o||"string"!=typeof n||(r[b+"ON_PROPERTY"+n]=null)),i.zone.cancelTask(i),y)return r;return}}return P.apply(this,arguments)},C[c]=function(){let t=this||e,r=arguments[0];i&&i.transferEventName&&(r=i.transferEventName(r));let n=[],s=Q(t,O?O(r):r);for(let e=0;e<s.length;e++){let t=s[e],r=t.originalDelegate?t.originalDelegate:t.callback;n.push(r)}return n},C[h]=function(){let t=this||e,r=arguments[0];if(r){i&&i.transferEventName&&(r=i.transferEventName(r));let e=q[r];if(e){let n=e[S],i=e[v],s=t[n],o=t[i];if(s){let e=s.slice();for(let t=0;t<e.length;t++){let n=e[t],i=n.originalDelegate?n.originalDelegate:n.callback;this[l].call(this,r,i,n.options)}}if(o){let e=o.slice();for(let t=0;t<e.length;t++){let n=e[t],i=n.originalDelegate?n.originalDelegate:n.callback;this[l].call(this,r,i,n.options)}}}}else{let e=Object.keys(t);for(let t=0;t<e.length;t++){let r=e[t],n=X.exec(r),i=n&&n[1];i&&"removeListener"!==i&&this[h].call(this,i)}this[h].call(this,"removeListener")}if(y)return this},H(C[o],L),H(C[l],P),M&&H(C[h],M),N&&H(C[c],N),!0}(i[n],s);return C}function Q(e,t){if(!t){let r=[];for(let n in e){let i=X.exec(n),s=i&&i[1];if(s&&(!t||s===t)){let t=e[n];if(t)for(let e=0;e<t.length;e++)r.push(t[e])}}return r}let r=q[t];r||(K(t),r=q[t]);let n=e[r[S]],i=e[r[v]];return n?i?n.concat(i):n.slice():i?i.slice():[]}function ee(e,t){let r=e.Event;r&&r.prototype&&t.patchMethod(r.prototype,"stopImmediatePropagation",e=>function(t,r){t[J]=!0,e&&e.apply(t,r)}
1)}var et=u("zoneTask");function er(e,t,r,n){let i=null,s=null;t+=n,r+=n;let o={};function a(t){let r=t.data;r.args[0]=function(){return t.invoke.apply(this,arguments)};let n=i.apply(e,r.args);return G(n)?r.handleId=n:(r.handle=n,r.isRefreshable=j(n.refresh)),t}function l(t){let{handle:r,handleId:n}=t.data;return s.call(e,null!=r?r:n)}i=V(e,t,r=>function(i,s){var c;if(!j(s[0]))return r.apply(e,s);{let e={isRefreshable:!1,isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?s[1]||0:void 0,args:s},r=s[0];s[0]=function(){try{return r.apply(this,arguments)}finally{let{handle:t,handleId:r,isPeriodic:n,isRefreshable:i}=e;n||i||(r?delete o[r]:t&&(t[et]=null))}};let i=w(t,s[0],e,a,l);if(!i)return i;let{handleId:u,handle:h,isRefreshable:d,isPeriodic:p}=i.data;if(u)o[u]=i;else if(h&&(h[et]=i,d&&!p)){let e=h.refresh;h.refresh=function(){let{zone:t,state:r}=i;return"notScheduled"===r?(i._state="scheduled",t._updateTaskCount(i,1)):"running"===r&&(i._state="scheduling"),e.call(this)}}return null!=(c=null!=h?h:u)?c:i}}),s=V(e,r,t=>function(r,n){let i,s=n[0];G(s)?(i=o[s],delete o[s]):(i=null==s?void 0:s[et])?s[et]=null:i=s,(null==i?void 0:i.type)?i.cancelFn&&i.zone.cancelTask(i):t.apply(e,n)})}function en(e,t,r){if(!r||0===r.length)return t;let n=r.filter(t=>t.target===e);if(0===n.length)return t;let i=n[0].ignoreProperties;return t.filter(e=>-1===i.indexOf(e))}function ei(e,t,r,n){if(!e)return;let i=en(e,t,r);B(e,i,n)}function es(e){return Object.getOwnPropertyNames(e).filter(e=>e.startsWith("on")&&e.length>2).map(e=>e.substring(2))}function eo(e,t,r,n,i){let s=Zone.__symbol__(n);if(t[s])return;let o=t[s]=t[n];t[n]=function(s,a,l){return a&&a.prototype&&i.forEach(function(t){let i=`${r}.${n}::`+t,s=a.prototype;try{if(s.hasOwnProperty(t)){let r=e.ObjectGetOwnPropertyDescriptor(s,t);r&&r.value?(r.value=e.wrapWithCurrentZone(r.value,i),e._redefineProperty(a.prototype,t,r)):s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],i))}else s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],i))}catch(e){}}),o.call(t,s,a,l)},e.attachOriginToPatched(t[n],o)}var ea=function(){let e=globalThis,t=!0===e[u("forceDuplicateZoneCheck")];if(e.Zone&&(t||"function"!=typeof e.Zone.__symbol__))throw Error("Zone already loaded.");return null!=e.Zone||(e.Zone=function(){let e,t=c.performance;function r(e){t&&t.mark&&t.mark(e)}function n(e,r){t&&t.measure&&t.measure(e,r)}r("Zone");let i=class e{constructor(e,t){l(this,"_parent"),l(this,"_name"),l(this,"_properties"),l(this,"_zoneDelegate"),this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new o(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(c.Promise!==L.ZoneAwarePromise)throw Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=e.current;for(;t.parent;)t=t.parent;return t}static get current(){return R.zone}static get currentTask(){return N}static __load_patch(t,i,s=!1){if(L.hasOwnProperty(t)){let e=!0===c[u("forceDuplicateZoneCheck")];if(!s&&e)throw Error("Already loaded patch: "+t)}else if(!c["__Zone_disable_"+t]){let s="Zone:"+t;r(s),L[t]=i(c,e,P),n(s,s)}}get parent(){return this._parent}get name(){return this._name}get(e){let t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw Error("Expecting function got: "+e);let r=this._zoneDelegate.intercept(this,e,t),n=this;return function(){return n.runGuarded(r,this,arguments,t)}}run(e,t,r,n){R={parent:R,zone:this};try{return this._zoneDelegate.invoke(this,e,t,r,n)}finally{R=R.parent}}runGuarded(e,t=null,r,n){R={parent:R,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,r,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{R=R.parent}}runTask(e,t,r){if(e.zone!=this)throw Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||E).name+"; Execution: "+this.name+")");let{type:n,data:{isPeriodic:i=!1,isRefreshable:s=!1}={}}=e;if(e.state===v&&(n===k||n===O))return;let o=e.state!=y;o&&e._transitionTo(y,b);let a=N;N=e,R={parent:R,zone:this};try{n!=O||!e.data||i||s||(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,r)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{let t=e.state;if(t!==v&&t!==A)if(n==k||i||s&&t===S)o&&e._transitionTo(b,y,S);else{let t=e._zoneDelegates;this._updateTaskCount(e,-1),o&&e._transitionTo(v,y,v),s&&(e._zoneDelegates=t)}
1R=R.parent,N=a}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(S,v);let t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(A,S,v),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==S&&e._transitionTo(b,S),e}scheduleMicroTask(e,t,r,n){return this.scheduleTask(new a(C,e,t,r,n,void 0))}scheduleMacroTask(e,t,r,n,i){return this.scheduleTask(new a(O,e,t,r,n,i))}scheduleEventTask(e,t,r,n,i){return this.scheduleTask(new a(k,e,t,r,n,i))}cancelTask(e){if(e.zone!=this)throw Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||E).name+"; Execution: "+this.name+")");if(e.state===b||e.state===y){e._transitionTo(w,b,y);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(A,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(v,w),e.runCount=-1,e}}_updateTaskCount(e,t){let r=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let n=0;n<r.length;n++)r[n]._updateTaskCount(e.type,t)}};l(i,"__symbol__",u);let s={name:"",onHasTask:(e,t,r,n)=>e.hasTask(r,n),onScheduleTask:(e,t,r,n)=>e.scheduleTask(r,n),onInvokeTask:(e,t,r,n,i,s)=>e.invokeTask(r,n,i,s),onCancelTask:(e,t,r,n)=>e.cancelTask(r,n)};class o{constructor(e,t,r){l(this,"_zone"),l(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),l(this,"_parentDelegate"),l(this,"_forkDlgt"),l(this,"_forkZS"),l(this,"_forkCurrZone"),l(this,"_interceptDlgt"),l(this,"_interceptZS"),l(this,"_interceptCurrZone"),l(this,"_invokeDlgt"),l(this,"_invokeZS"),l(this,"_invokeCurrZone"),l(this,"_handleErrorDlgt"),l(this,"_handleErrorZS"),l(this,"_handleErrorCurrZone"),l(this,"_scheduleTaskDlgt"),l(this,"_scheduleTaskZS"),l(this,"_scheduleTaskCurrZone"),l(this,"_invokeTaskDlgt"),l(this,"_invokeTaskZS"),l(this,"_invokeTaskCurrZone"),l(this,"_cancelTaskDlgt"),l(this,"_cancelTaskZS"),l(this,"_cancelTaskCurrZone"),l(this,"_hasTaskDlgt"),l(this,"_hasTaskDlgtOwner"),l(this,"_hasTaskZS"),l(this,"_hasTaskCurrZone"),this._zone=e,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this._zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this._zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this._zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this._zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this._zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this._zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this._zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const n=r&&r.onHasTask,i=t&&t._hasTaskZS;(n||i)&&(this._hasTaskZS=n?r:s,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,r.onScheduleTask||(this._scheduleTaskZS=s,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this._zone),r.onInvokeTask||(this._invokeTaskZS=s,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this._zone),r.onCancelTask||(this._cancelTaskZS=s,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this._zone))}get zone(){return this._zone}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)}intercept(e,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,r):t}invoke(e,t,r,n,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,r,n,i):t.apply(r,n)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),(r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else if(t.type==C)f(t);else throw Error("Task is missing scheduleFn.");return r}invokeTask(e,t,r,n){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,r,n):t.callback.apply(r,n)}cancelTask(e,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(t){this.handleError(e,t)}}_updateTaskCount(e,t){let r=this._taskCounts,n=r[e],i=r[e]=n+t;if(i<0)throw Error("More tasks executed then were scheduled.");
1if(0==n||0==i){let t={microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:e};this.hasTask(this._zone,t)}}}class a{constructor(e,t,r,n,i,s){if(l(this,"type"),l(this,"source"),l(this,"invoke"),l(this,"callback"),l(this,"data"),l(this,"scheduleFn"),l(this,"cancelFn"),l(this,"_zone",null),l(this,"runCount",0),l(this,"_zoneDelegates",null),l(this,"_state","notScheduled"),this.type=e,this.source=t,this.data=n,this.scheduleFn=i,this.cancelFn=s,!r)throw Error("callback is not defined");this.callback=r;const o=this;e===k&&n&&n.useG?this.invoke=a.invokeTask:this.invoke=function(){return a.invokeTask.call(c,o,this,arguments)}}static invokeTask(e,t,r){e||(e=this),M++;try{return e.runCount++,e.zone.runTask(e,t,r)}finally{1==M&&T(),M--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(v,S)}_transitionTo(e,t,r){if(this._state===t||this._state===r)this._state=e,e==v&&(this._zoneDelegates=null);else throw Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let h=u("setTimeout"),d=u("Promise"),p=u("then"),_=[],m=!1;function g(t){if(!e&&c[d]&&(e=c[d].resolve(0)),e){let r=e[p];r||(r=e.then),r.call(e,t)}else c[h](t,0)}function f(e){0===M&&0===_.length&&g(T),e&&_.push(e)}function T(){if(!m){for(m=!0;_.length;){let e=_;_=[];for(let t=0;t<e.length;t++){let r=e[t];try{r.zone.runTask(r,null,null)}catch(e){P.onUnhandledError(e)}}}P.microtaskDrainDone(),m=!1}}let E={name:"NO ZONE"},v="notScheduled",S="scheduling",b="scheduled",y="running",w="canceling",A="unknown",C="microTask",O="macroTask",k="eventTask",L={},P={symbol:u,currentZoneFrame:()=>R,onUnhandledError:D,microtaskDrainDone:D,scheduleMicroTask:f,showUncaughtError:()=>!i[u("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:D,patchMethod:()=>D,bindArguments:()=>[],patchThen:()=>D,patchMacroTask:()=>D,patchEventPrototype:()=>D,getGlobalObjects:()=>void 0,ObjectDefineProperty:()=>D,ObjectGetOwnPropertyDescriptor:()=>void 0,ObjectCreate:()=>void 0,ArraySlice:()=>[],patchClass:()=>D,wrapWithCurrentZone:()=>D,filterProperties:()=>[],attachOriginToPatched:()=>D,_redefineProperty:()=>D,patchCallbacks:()=>D,nativeScheduleMicroTask:g},R={parent:null,zone:new i(null,null)},N=null,M=0;function D(){}return n("Zone","Zone"),i}()),e.Zone}();ea.__load_patch("ZoneAwarePromise",(e,t,r)=>{let n=Object.getOwnPropertyDescriptor,i=Object.defineProperty,s=r.symbol,o=[],a=!1!==e[s("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],l=s("Promise"),c=s("then");r.onUnhandledError=e=>{if(r.showUncaughtError()){let t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},r.microtaskDrainDone=()=>{for(;o.length;){let e=o.shift();try{e.zone.runGuarded(()=>{if(e.throwOriginal)throw e.rejection;throw e})}catch(e){!function(e){r.onUnhandledError(e);try{let r=t[u];"function"==typeof r&&r.call(this,e)}catch(e){}}(e)}}};let u=s("unhandledPromiseRejectionHandler");function h(e){return e&&"function"==typeof e.then}function d(e){return e}function p(e){return k.reject(e)}let _=s("state"),m=s("value"),g=s("finally"),f=s("parentPromiseValue"),T=s("parentPromiseState");function E(e,t){return r=>{try{b(e,t,r)}catch(t){b(e,!1,t)}}}let v=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},S=s("currentTaskTrace");function b(e,n,s){let l=v();if(e===s)throw TypeError("Promise resolved with itself");if(null===e[_]){let u=null;try{("object"==typeof s||"function"==typeof s)&&(u=s&&s.then)}catch(t){return l(()=>{b(e,!1,t)})(),e}if(!1!==n&&s instanceof k&&s.hasOwnProperty(_)&&s.hasOwnProperty(m)&&null!==s[_])w(s),b(e,s[_],s[m]);else if(!1!==n&&"function"==typeof u)try{u.call(s,l(E(e,n)),l(E(e,!1)))}catch(t){l(()=>{b(e,!1,t)})()}else{e[_]=n;let l=e[m];if(e[m]=s,e[g]===g&&!0===n&&(e[_]=e[T],e[m]=e[f]),!1===n&&s instanceof Error){let e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&i(s,S,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t<l.length;)A(e,l[t++],l[t++],l[t++],l[t++]);if(0==l.length&&!1==n){e[_]=0;let n=s;try{var c;throw Error("Uncaught (in promise): "+((c=s)&&c.toString===Object.prototype.toString?(c.constructor&&c.constructor.name||"")+": "+JSON.stringify(c):c?c.toString():Object.prototype.toString.call(c))+(s&&s.stack?"\n"+s.stack:""))}catch(e){n=e}a&&(n.throwOriginal=!0),n.rejection=s,n.promise=e,n.zone=t.current,n.task=t.currentTask,o.push(n),r.scheduleMicroTask()}}}return e}let y=s("rejectionHandledHandler");function w(e){if(0===e[_]){try{let r=t[y];r&&"function"==typeof r&&r.call(this,{rejection:e[m],promise:e})}catch(e){}e[_]=!1;for(let t=0;t<o.length;t++)e===o[t].promise&&o.splice(t,1)}}function A(e,t,r,n,i){w(e);let s=e[_],o=s?"function"==typeof n?n:d:"function"==typeof i?i:p;t.scheduleMicroTask("Promise.then",()=>{try{let n=e[m],i=!!r&&g===r[g];i&&(r[f]=n,r[T]=s);let a=t.run(o,void 0,i&&o!==p&&o!==d?[]:[n]);b(r,!0,a)}catch(e){b(r,!1,e)}},r)}let C=function(){},O=e.AggregateError;class k{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return e instanceof k?e:b(new this(null),!0,e)}static reject(e){return b(new this(null),!1,e)}static withResolvers(){let e={};return e.promise=new k((t,r)=>{e.resolve=t,e.reject=r}),e}static any(e){if(!e||"function"!=typeof e[Symbol.iterator])return Promise.reject(new O([],"All promises were rejected"));let t=[],r=0;
1try{for(let n of e)r++,t.push(k.resolve(n))}catch(e){return Promise.reject(new O([],"All promises were rejected"))}if(0===r)return Promise.reject(new O([],"All promises were rejected"));let n=!1,i=[];return new k((e,s)=>{for(let o=0;o<t.length;o++)t[o].then(t=>{n||(n=!0,e(t))},e=>{i.push(e),0==--r&&(n=!0,s(new O(i,"All promises were rejected")))})})}static race(e){let t,r,n=new this((e,n)=>{t=e,r=n});function i(e){t(e)}function s(e){r(e)}for(let t of e)h(t)||(t=this.resolve(t)),t.then(i,s);return n}static all(e){return k.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof k?this:k).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let r,n,i=new this((e,t)=>{r=e,n=t}),s=2,o=0,a=[];for(let i of e){h(i)||(i=this.resolve(i));let e=o;try{i.then(n=>{a[e]=t?t.thenCallback(n):n,s--,0===s&&r(a)},i=>{t?(a[e]=t.errorCallback(i),s--,0===s&&r(a)):n(i)})}catch(e){n(e)}s++,o++}return 0==(s-=2)&&r(a),i}constructor(e){if(!(this instanceof k))throw Error("Must be an instanceof Promise.");this[_]=null,this[m]=[];try{const t=v();e&&e(t(E(this,!0)),t(E(this,!1)))}catch(e){b(this,!1,e)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return k}then(e,r){var n;let i=null==(n=this.constructor)?void 0:n[Symbol.species];i&&"function"==typeof i||(i=this.constructor||k);let s=new i(C),o=t.current;return null==this[_]?this[m].push(o,s,e,r):A(this,o,s,e,r),s}catch(e){return this.then(null,e)}finally(e){var r;let n=null==(r=this.constructor)?void 0:r[Symbol.species];n&&"function"==typeof n||(n=k);let i=new n(C);i[g]=g;let s=t.current;return null==this[_]?this[m].push(s,i,e,e):A(this,s,i,e,e),i}}k.resolve=k.resolve,k.reject=k.reject,k.race=k.race,k.all=k.all;let L=e[l]=e.Promise;e.Promise=k;let P=s("thenPatched");function R(e){let t=e.prototype,r=n(t,"then");if(r&&(!1===r.writable||!r.configurable))return;let i=t.then;t[c]=i,e.prototype.then=function(e,t){return new k((e,t)=>{i.call(this,e,t)}).then(e,t)},e[P]=!0}if(r.patchThen=R,L){R(L);let t=L.try;t&&"function"==typeof t&&(k.try=t),V(e,"fetch",e=>function(t,r){let n=e.apply(t,r);if(n instanceof k)return n;let i=n.constructor;return i[P]||R(i),n})}return Promise[t.__symbol__("uncaughtPromiseErrors")]=o,k}),ea.__load_patch("toString",e=>{let t=Function.prototype.toString,r=u("OriginalDelegate"),n=u("Promise"),i=u("Error"),s=function(){if("function"==typeof this){let s=this[r];if(s)if("function"==typeof s)return t.call(s);else return Object.prototype.toString.call(s);if(this===Promise){let r=e[n];if(r)return t.call(r)}if(this===Error){let r=e[i];if(r)return t.call(r)}}return t.call(this)};s[r]=t,Function.prototype.toString=s;let o=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":o.call(this)}}),ea.__load_patch("util",(e,t,r)=>{let n=es(e);r.patchOnProperties=B,r.patchMethod=V,r.bindArguments=k,r.patchMacroTask=$;let i=t.__symbol__("BLACK_LISTED_EVENTS"),s=t.__symbol__("UNPATCHED_EVENTS");e[s]&&(e[i]=e[s]),e[i]&&(t[i]=t[s]=e[i]),r.patchEventPrototype=ee,r.patchEventTarget=Y,r.ObjectDefineProperty=d,r.ObjectGetOwnPropertyDescriptor=h,r.ObjectCreate=_,r.ArraySlice=m,r.patchClass=F,r.wrapWithCurrentZone=y,r.filterProperties=en,r.attachOriginToPatched=H,r._redefineProperty=Object.defineProperty,r.patchCallbacks=eo,r.getGlobalObjects=()=>({globalSources:W,zoneSymbolEventNames:q,eventNames:n,isBrowser:N,isMix:M,isNode:R,TRUE_STR:v,FALSE_STR:S,ZONE_SYMBOL_PREFIX:b,ADD_EVENT_LISTENER_STR:g,REMOVE_EVENT_LISTENER_STR:f})}),ea.__load_patch("timers",e=>{let t="clear";er(e,"set",t,"Timeout"),er(e,"set",t,"Interval"),er(e,"set",t,"Immediate")}),ea.__load_patch("requestAnimationFrame",e=>{er(e,"request","cancel","AnimationFrame"),er(e,"mozRequest","mozCancel","AnimationFrame"),er(e,"webkitRequest","webkitCancel","AnimationFrame")}),ea.__load_patch("blocking",(e,t)=>{let r=["alert","prompt","confirm"];for(let n=0;n<r.length;n++)V(e,r[n],(r,n,i)=>function(n,s){return t.current.run(r,e,s,i)})}),ea.__load_patch("EventTarget",(e,t,r)=>{r.patchEventPrototype(e,r),function(e,t){if(Zone[t.symbol("patchEventTarget")])return;let{eventNames:r,zoneSymbolEventNames:n,TRUE_STR:i,FALSE_STR:s,ZONE_SYMBOL_PREFIX:o}=t.getGlobalObjects();for(let e=0;e<r.length;e++){let t=r[e],a=o+(t+s),l=o+(t+i);n[t]={},n[t][s]=a,n[t][i]=l}let a=e.EventTarget;a&&a.prototype&&t.patchEventTarget(e,t,[a&&a.prototype])}(e,r);let n=e.XMLHttpRequestEventTarget;n&&n.prototype&&r.patchEventTarget(e,r,[n.prototype])}),ea.__load_patch("MutationObserver",(e,t,r)=>{F("MutationObserver"),F("WebKitMutationObserver")}),ea.__load_patch("IntersectionObserver",(e,t,r)=>{F("IntersectionObserver")}),ea.__load_patch("FileReader",(e,t,r)=>{F("FileReader")}),ea.__load_patch("on_property",(e,t,r)=>{!function(e,t){if(R&&!M||Zone[e.symbol("patchEvents")])return;let r=t.__Zone_ignore_on_properties,n=[];if(N){let e=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),ei(e,es(e),r,p(e))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let e=0;e<n.length;e++){let i=t[n[e]];(null==i?void 0:i.prototype)&&ei(i.prototype,es(i.prototype),r)}}(r,e)}),ea.__load_patch("customElements",(e,t,r)=>{!function(e,t){let{isBrowser:r,isMix:n}=t.getGlobalObjects();(r||n)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(e,r)}),ea.__load_patch("XHR",(e,t)=>{!function(e){let l=e.XMLHttpRequest;if(!l)return;let c=l.prototype,h=c[T],d=c[E];if(!h){let t=e.XMLHttpRequestEventTarget;if(t){let e=t.prototype;h=e[T],d=e[E]}}let p="readystatechange",_="scheduled";function m(e){let n=e.data,o=n.target;o[s]=!1,o[a]=!1;let l=o[i];h||(h=o[T],d=o[E]),l&&d.call(o,p,l);let c=o[i]=()=>
1{if(o.readyState===o.DONE)if(!n.aborted&&o[s]&&e.state===_){let r=o[t.__symbol__("loadfalse")];if(0!==o.status&&r&&r.length>0){let i=e.invoke;e.invoke=function(){let r=o[t.__symbol__("loadfalse")];for(let t=0;t<r.length;t++)r[t]===e&&r.splice(t,1);n.aborted||e.state!==_||i.call(e)},r.push(e)}else e.invoke()}else n.aborted||!1!==o[s]||(o[a]=!0)};return h.call(o,p,c),o[r]||(o[r]=e),y.apply(o,n.args),o[s]=!0,e}function g(){}function f(e){let t=e.data;return t.aborted=!0,A.apply(t.target,t.args)}let v=V(c,"open",()=>function(e,t){return e[n]=!1==t[2],e[o]=t[1],v.apply(e,t)}),S=u("fetchTaskAborting"),b=u("fetchTaskScheduling"),y=V(c,"send",()=>function(e,r){if(!0===t.current[b]||e[n])return y.apply(e,r);{let t={target:e,url:e[o],isPeriodic:!1,args:r,aborted:!1},n=w("XMLHttpRequest.send",g,t,m,f);e&&!0===e[a]&&!t.aborted&&n.state===_&&n.invoke()}}),A=V(c,"abort",()=>function(e,n){let i=e[r];if(i&&"string"==typeof i.type){if(null==i.cancelFn||i.data&&i.data.aborted)return;i.zone.cancelTask(i)}else if(!0===t.current[S])return A.apply(e,n)})}(e);let r=u("xhrTask"),n=u("xhrSync"),i=u("xhrListener"),s=u("xhrScheduled"),o=u("xhrURL"),a=u("xhrErrorBeforeScheduled")}),ea.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function(e,t){let r=e.constructor.name;for(let n=0;n<t.length;n++){let i=t[n],s=e[i];if(s){if(!L(h(e,i)))continue;e[i]=(e=>{let t=function(){return e.apply(this,k(arguments,r+"."+i))};return H(t,e),t})(s)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),ea.__load_patch("PromiseRejectionEvent",(e,t)=>{function r(t){return function(r){Q(e,t).forEach(n=>{let i=e.PromiseRejectionEvent;if(i){let e=new i(t,{promise:r.promise,reason:r.rejection});n.invoke(e)}})}}e.PromiseRejectionEvent&&(t[u("unhandledPromiseRejectionHandler")]=r("unhandledrejection"),t[u("rejectionHandledHandler")]=r("rejectionhandled"))}),ea.__load_patch("queueMicrotask",(e,t,r)=>{r.patchMethod(e,"queueMicrotask",e=>function(e,t){Zone.current.scheduleMicroTask("queueMicrotask",t[0])})})},54998:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});var n=r(81402),i=r(41397);class s{_shutdown=!1;_temporalitySelector;constructor(e){this._temporalitySelector=e?.temporalitySelector??i.u}export(e,t){return this._shutdown?void t({code:n.V.FAILED}):s._sendMetrics(e,t)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(e){return this._temporalitySelector(e)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(e,t){for(let t of e.scopeMetrics)for(let e of t.metrics)console.dir({descriptor:e.descriptor,dataPointType:e.dataPointType,dataPoints:e.dataPoints},{depth:null});t({code:n.V.SUCCESS})}}},55657:(e,t,r)=>{"use strict";r.d(t,{w9:()=>o});var n=r(10375),i=r(32808).Buffer;function s(e){return e}let o={encodeHrTime:"u">typeof BigInt?function(e){let t;return(t=BigInt(1e9),BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))).toString()}:n.u5,encodeSpanContext:s,encodeOptionalSpanContext:s,encodeUint8Array:e=>{if(void 0!==i)return i.from(e).toString("base64");let t=Array(e.length);for(let r=0;r<e.length;r++)t[r]=String.fromCharCode(e[r]);return btoa(t.join(""))}}},56138:(e,t,r)=>{"use strict";var n,i;function s(e,t){let r=n.OLD;for(let i of t?.split(",").map(e=>e.trim()).filter(e=>""!==e)??[])if(i.toLowerCase()===e+"/dup"){r=n.DUPLICATE;break}else i.toLowerCase()===e&&(r=n.STABLE);return r}r.d(t,{G:()=>s,n:()=>n}),(i=n||(n={}))[i.STABLE=1]="STABLE",i[i.OLD=2]="OLD",i[i.DUPLICATE=3]="DUPLICATE"},56344:(e,t,r)=>{"use strict";r.d(t,{J:()=>E});var n=r(60077),i=r(98829),s=r(62854),o=r(50558),a=r(59359);class l{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class c{_isCalled=!1;_deferred=new l;_callback;_that;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}var u=r(36029),h=r(82576),d=r(57362),p=r(7848),_=r(37040);let m=new Map;class g{processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(e,t,r){const n=m.get(e)??0;if(m.set(e,n+1),this.standardAttrs={[_.wU]:e,[_.V8]:`${e}/${n}`},this.droppedAttrs={...this.standardAttrs,[p.oJ]:"queue_full"},this.processedSpans=t.createCounter(_.C1,{unit:"{span}",description:"The number of spans for which the processing has finished, either successful or failed."}),r){const{capacity:e,getQueueSize:n}=r;t.createUpDownCounter(_.O1,{unit:"{span}",description:"The maximum number of spans the queue of a given instance of an SDK span processor can hold."}).add(e,this.standardAttrs),this.queueSize=t.createObservableUpDownCounter(_.lB,{unit:"{span}",description:"The number of spans in the queue of a given instance of an SDK span processor."}),this.queueSizeCallback=e=>e.observe(n(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(e){this.processedSpans.add(e,this.droppedAttrs)}finishSpans(e,t){if(!t)return void this.processedSpans.add(e,this.standardAttrs);let r={...this.standardAttrs,[p.oJ]:t.name};this.processedSpans.add(e,r)}shutdown(){this.queueSize&&this.queueSizeCallback&&this.queueSize.removeCallback(this.queueSizeCallback)}}class f{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e){this._exporter=e.exporter,this._maxExportBatchSize=e.maxExportBatchSize??512,this._maxQueueSize=e.maxQueueSize??2048,this._scheduledDelayMillis=e.scheduledDelayMillis??5e3,this._exportTimeoutMillis=e.exportTimeoutMillis??3e4,this._shutdownOnce=new c(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(i.s.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize);const t=e.selfObsMeterProvider?e.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):(0,s.Ac)();this._metrics=new g(_.VH,t,{capacity:this._maxQueueSize,getQueueSize:()=>this._finishedSpans.length})}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&o.X.SAMPLED)!=0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>(this._metrics.shutdown(),this._exporter.shutdown()))}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){0===this._droppedSpansCount&&i.s.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++,this._metrics.dropSpans(1);return}this._droppedSpansCount>0&&(i.s.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>
1{let r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0;e<n;e++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{e()}).catch(t)})}_flushOneBatch(){return(this._clearTimer(),0===this._finishedSpans.length)?Promise.resolve():new Promise((e,t)=>{let r=setTimeout(()=>{t(Error("Timeout"))},this._exportTimeoutMillis);a._.with((0,u.M1)(a._.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(n,i=>{clearTimeout(r),this._metrics.finishSpans(n.length,i.error),i.code===h.V.SUCCESS?e():t(i.error??Error("BatchSpanProcessor: span export failed"))}),s=null;for(let e=0,t=n.length;e<t;e++){let t=n[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(s??=[]).push(t.resource.waitForAsyncAttributes())}null===s?i():Promise.all(s).then(i,e=>{(0,d.s)(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,d.s)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();void 0===this._timer&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),"number"!=typeof this._timer&&this._timer.unref())}_clearTimer(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)}}class T extends f{_visibilityChangeListener;_pageHideListener;constructor(e){super(e),this.onInit(e)}onInit(e){!0!==e.disableAutoFlushOnDocumentHide&&"u">typeof document&&(this._visibilityChangeListener=()=>{"hidden"===document.visibilityState&&this.forceFlush().catch(e=>{(0,d.s)(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{(0,d.s)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){"u">typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}class E extends T{constructor(e,t){for(const[e,r]of(t||(t={}),[["maxExportBatchSize","OTEL_BSP_MAX_EXPORT_BATCH_SIZE"],["maxQueueSize","OTEL_BSP_MAX_QUEUE_SIZE"],["scheduledDelayMillis","OTEL_BSP_SCHEDULE_DELAY"],["exportTimeoutMillis","OTEL_BSP_EXPORT_TIMEOUT"]]))if(void 0===t[e]){const i=(0,n.Jk)(r);void 0!==i&&(t[e]=i)}super({exporter:e,...t})}}},56483:(e,t,r)=>{"use strict";r.d(t,{t:()=>l});var n=r(79859),i=r(36029);let s="baggage";var o=r(87794);function a(e,t,r,n){let i=0;for(;i<e.length&&r<180;){let s=e.indexOf(",",i),a=-1===s?e.length:s,l=a-i;if(l<=4096){let s=function(e){let t,r,n;if(!e)return;let i=e.indexOf(";"),s=-1===i?e:e.substring(0,i),a=s.indexOf("=");if(a<=0)return;let l=s.substring(0,a).trim(),c=s.substring(a+1).trim();if(l&&c){try{t=decodeURIComponent(l),r=decodeURIComponent(c)}catch{return}if(-1!==i&&i<e.length-1){let t=e.substring(i+1);n=(0,o.B)(t)}return{key:t,value:r,metadata:n}}}(e.substring(i,a));if(s){let e=+(0!==r)+l;if(n+e>8192)break;t[s.key]=s.metadata?{value:s.value,metadata:s.metadata}:{value:s.value},r++,n+=e}}if(-1===s)break;i=s+1}return[r,n]}class l{inject(e,t,r){let o=n.$.getBaggage(e);if(!o||(0,i.Zf)(e))return;let a=o.getAllEntries().map(([e,t])=>{let r=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return void 0!==t.metadata&&(r+=";"+t.metadata.toString()),r}).filter(e=>e.length<=4096).slice(0,180).reduce((e,t)=>{let r=`${e}${""!==e?",":""}${t}`;return r.length>8192?e:r},"");a.length>0&&r.set(t,s,a)}extract(e,t,r){let i=r.get(t,s);if(!i)return e;let o={},l=0,c=0;if(Array.isArray(i))for(let e=0;e<i.length;e++)[l,c]=a(i[e],o,l,c);else[l]=a(i,o,l,c);return 0===l?e:n.$.setBaggage(e,n.$.createBaggage(o))}fields(){return[s]}}},57362:(e,t,r)=>{"use strict";r.d(t,{s:()=>i});var n=r(98829);function i(e){try{var t;n.s.error((t=e,"string"==typeof t?t:JSON.stringify(function(e){let t={},r=e;for(;null!==r;
1)Object.getOwnPropertyNames(r).forEach(e=>{if(t[e])return;let n=r[e];n&&(t[e]=String(n))}),r=Object.getPrototypeOf(r);return t}(t))))}catch{}}},57775:(e,t,r)=>{"use strict";r.d(t,{w:()=>D});var n,i,s=r(98829),o=r(99014),a=r(72262);let l="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},c=Symbol.for("io.opentelemetry.js.api.logs");class u{emit(e){}}let h=new u;class d{getLogger(e,t,r){return new u}}let p=new d;class _{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):h}}class m{getLogger(e,t,r){var n;return null!=(n=this._getDelegateLogger(e,t,r))?n:new _(this,e,t,r)}_getDelegate(){var e;return null!=(e=this._delegate)?e:p}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,r){var n;return null==(n=this._delegate)?void 0:n.getLogger(e,t,r)}}class g{constructor(){this._proxyLoggerProvider=new m}static getInstance(){return this._instance||(this._instance=new g),this._instance}setGlobalLoggerProvider(e){return l[c]?this.getLoggerProvider():(l[c]=t=>1===t?e:p,this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,t;return null!=(t=null==(e=l[c])?void 0:e.call(l,1))?t:this._proxyLoggerProvider}getLogger(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)}disable(){delete l[c],this._proxyLoggerProvider=new m}}let f=g.getInstance(),T=console.error.bind(console);function E(e,t,r){let n=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}let v=(e,t,r)=>{if(!e||!e[t])return void T("no original function "+String(t)+" to wrap");if(!r){T("no wrapper function"),T(Error().stack);return}let n=e[t];if("function"!=typeof n||"function"!=typeof r)return void T("original object and wrapper must be functions");let i=r(n,t);return E(i,"__original",n),E(i,"__unwrap",()=>{e[t]===i&&E(e,t,n)}),E(i,"__wrapped",!0),E(e,t,i),i},S=(e,t,r)=>{if(e)Array.isArray(e)||(e=[e]);else{T("must provide one or more modules to patch"),T(Error().stack);return}t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{v(e,t,r)})}):T("must provide one or more functions to wrap on modules")},b=(e,t)=>{if(!e||!e[t]){T("no function to unwrap."),T(Error().stack);return}let r=e[t];r.__unwrap?r.__unwrap():T("no original to unwrap to -- has "+String(t)+" already been unwrapped?")},y=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{T("must provide one or more modules to patch"),T(Error().stack);return}t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{b(e,t)})}):T("must provide one or more functions to unwrap on modules")};function w(e){e&&e.logger&&("function"!=typeof e.logger?T("new logger isn't a function, not replacing"):T=e.logger)}w.wrap=v,w.massWrap=S,w.unwrap=b,w.massUnwrap=y;class A{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,t,r){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(r),this._diag=s.s.createComponentLogger({namespace:e}),this._tracer=o.u.getTracer(e,t),this._meter=a.q.getMeter(e,t),this._logger=f.getLogger(e,t),this._updateMetricInstruments()}_wrap=v;_unwrap=b;_massWrap=S;_massUnwrap=y;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,r,n){if(e)try{e(r,n)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}}}class C extends A{constructor(e,t,r){super(e,t,r),this._config.enabled&&this.enable()}}function O(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}var k=r(59359),L=r(32834),P=r(37674);(n=i||(i={})).EVENT_TYPE="event_type",n.TARGET_ELEMENT="target_element",n.TARGET_XPATH="target_xpath",n.HTTP_URL="http.url";let R="0.53.0",N=["click"];function M(){return!1}class D extends C{version=R;moduleName="user-interaction";_spansData=new WeakMap;_wrappedListeners=new WeakMap;_eventsSpanMap=new WeakMap;_eventNames;_shouldPreventSpanCreation;constructor(e={}){super("@opentelemetry/instrumentation-user-interaction",R,e),this._eventNames=new Set(e?.eventNames??N),this._shouldPreventSpanCreation="function"==typeof e?.shouldPreventSpanCreation?e.shouldPreventSpanCreation:M}init(){}_checkForTimeout(e,t){let r=this._spansData.get(t);r&&("setTimeout"===e.source?r.hrTimeLastTimeout=(0,L._5)():"Promise.then"!==e.source&&"setTimeout"!==e.source&&(r.hrTimeLastTimeout=void 0))}_allowEventName(e){return this._eventNames.has(e)}_createSpan(e,t,r){if(!(e instanceof HTMLElement)||!e.getAttribute||e.hasAttribute("disabled")||!this._allowEventName(t))return;let n=(0,P.Qd)(e,!0);try{let s=this.tracer.startSpan(t,{attributes:{[i.EVENT_TYPE]:t,[i.TARGET_ELEMENT]:e.tagName,[i.TARGET_XPATH]:n,[i.HTTP_URL]:window.location.href}},r?o.u.setSpan(k._.active(),r):void 0);if(!0===this._shouldPreventSpanCreation(t,e,s))return;return this._spansData.set(s,{taskCount:0}),s}catch(e){this._diag.error("failed to start create new user interaction span",e)}}_decrementTask(e){let t=this._spansData.get(e);t&&(t.taskCount--,0===t.taskCount&&this._tryToEndSpan(e,t.hrTimeLastTimeout))}_getCurrentSpan(e){let t=e.get("OT_ZONE_CONTEXT");return t?o.u.getSpan(t):t}_incrementTask(e){let t=this._spansData.get(e);t&&t.taskCount++}addPatchedListener(e,t,r,n){let i=this._wrappedListeners.get(r);i||(i=new Map,this._wrappedListeners.set(r,i));let s=i.get(t);return s||(s=new Map,i.set(t,s)),!s.has(e)&&(s.set(e,n),!0)}removePatchedListener(e,t,r){let n=this._wrappedListeners.get(r);if(!n)return;let i=n.get(t);if(!i)return;let s=i.get(e);return s&&(i.delete(e),0===i.size&&(n.delete(t),0===n.size&&this._wrappedListeners.delete(r))),s}_invokeListener(e,t,r){return"function"==typeof e?e.apply(t,r):e.handleEvent(r[0])}_patchAddEventListener(){let e=this;return t=>function(r,n,i){if(!n)return t.call(this,r,n,i);let s=i&&"object"==typeof i&&i.once,a=function(...t){let i,a=t[0],l=a?.target;a&&(i=e._eventsSpanMap.get(a)),s&&e.removePatchedListener(this,r,n);let c=e._createSpan(l,r,i);return c?(a&&e._eventsSpanMap.set(a,c),k._.with(o.u.setSpan(k._.active(),c),(
1)=>{let r=e._invokeListener(n,this,t);return c.end(),r})):e._invokeListener(n,this,t)};if(e.addPatchedListener(this,r,n,a))return t.call(this,r,a,i)}}_patchRemoveEventListener(){let e=this;return t=>function(r,n,i){let s=e.removePatchedListener(this,r,n);return s?t.call(this,r,s,i):t.call(this,r,n,i)}}_getPatchableEventTargets(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]}_patchHistoryApi(){this._unpatchHistoryApi(),this._wrap(history,"replaceState",this._patchHistoryMethod()),this._wrap(history,"pushState",this._patchHistoryMethod()),this._wrap(history,"back",this._patchHistoryMethod()),this._wrap(history,"forward",this._patchHistoryMethod()),this._wrap(history,"go",this._patchHistoryMethod())}_patchHistoryMethod(){let e=this;return t=>function(...r){let n=`${location.pathname}${location.hash}${location.search}`,i=t.apply(this,r),s=`${location.pathname}${location.hash}${location.search}`;return n!==s&&e._updateInteractionName(s),i}}_unpatchHistoryApi(){O(history.replaceState)&&this._unwrap(history,"replaceState"),O(history.pushState)&&this._unwrap(history,"pushState"),O(history.back)&&this._unwrap(history,"back"),O(history.forward)&&this._unwrap(history,"forward"),O(history.go)&&this._unwrap(history,"go")}_updateInteractionName(e){let t=o.u.getSpan(k._.active());t&&"function"==typeof t.updateName&&t.updateName(`Navigation: ${e}`)}_patchZoneCancelTask(){let e=this;return t=>function(r){let n=Zone.current,i=e._getCurrentSpan(n);return i&&e._shouldCountTask(r,n)&&e._decrementTask(i),t.call(this,r)}}_patchZoneScheduleTask(){let e=this;return t=>function(r){let n=Zone.current,i=e._getCurrentSpan(n);return i&&e._shouldCountTask(r,n)&&(e._incrementTask(i),e._checkForTimeout(r,i)),t.call(this,r)}}_patchZoneRunTask(){let e=this;return t=>function(r,n,i){let s,a=Array.isArray(i)&&i[0]instanceof Event?i[0]:void 0,l=a?.target;if(l){if(s=e._createSpan(l,r.eventName))return e._incrementTask(s),this.run(()=>{try{return k._.with(o.u.setSpan(k._.active(),s),()=>{let e=Zone.current;return r._zone=e,t.call(e,r,n,i)})}finally{e._decrementTask(s)}})}else s=e._getCurrentSpan(this);try{return t.call(this,r,n,i)}finally{s&&e._shouldCountTask(r,this)&&e._decrementTask(s)}}}_shouldCountTask(e,t){if(e._zone&&(t=e._zone),!t||!e.data||e.data.isPeriodic)return!1;let r=this._getCurrentSpan(t);return!!r&&!!this._spansData.get(r)&&("macroTask"===e.type||"microTask"===e.type)}_tryToEndSpan(e,t){e&&this._spansData.get(e)&&(e.end(t),this._spansData.delete(e))}enable(){let e=this._getZoneWithPrototype();this._diag.debug("applying patch to",this.moduleName,this.version,"zone:",!!e),e?(O(e.prototype.runTask)&&(this._unwrap(e.prototype,"runTask"),this._diag.debug("removing previous patch from method runTask")),O(e.prototype.scheduleTask)&&(this._unwrap(e.prototype,"scheduleTask"),this._diag.debug("removing previous patch from method scheduleTask")),O(e.prototype.cancelTask)&&(this._unwrap(e.prototype,"cancelTask"),this._diag.debug("removing previous patch from method cancelTask")),this._zonePatched=!0,this._wrap(e.prototype,"runTask",this._patchZoneRunTask()),this._wrap(e.prototype,"scheduleTask",this._patchZoneScheduleTask()),this._wrap(e.prototype,"cancelTask",this._patchZoneCancelTask())):(this._zonePatched=!1,this._getPatchableEventTargets().forEach(e=>{O(e.addEventListener)&&(this._unwrap(e,"addEventListener"),this._diag.debug("removing previous patch from method addEventListener")),O(e.removeEventListener)&&(this._unwrap(e,"removeEventListener"),this._diag.debug("removing previous patch from method removeEventListener")),this._wrap(e,"addEventListener",this._patchAddEventListener()),this._wrap(e,"removeEventListener",this._patchRemoveEventListener())})),this._patchHistoryApi()}disable(){let e=this._getZoneWithPrototype();this._diag.debug("removing patch from",this.moduleName,this.version,"zone:",!!e),e&&this._zonePatched?(O(e.prototype.runTask)&&this._unwrap(e.prototype,"runTask"),O(e.prototype.scheduleTask)&&this._unwrap(e.prototype,"scheduleTask"),O(e.prototype.cancelTask)&&this._unwrap(e.prototype,"cancelTask")):this._getPatchableEventTargets().forEac
1h(e=>{O(e.addEventListener)&&this._unwrap(e,"addEventListener"),O(e.removeEventListener)&&this._unwrap(e,"removeEventListener")}),this._unpatchHistoryApi()}_getZoneWithPrototype(){return window.Zone}}},59359:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n=r(74271)._.getInstance()},60077:(e,t,r)=>{"use strict";function n(e){}function i(e){}r.d(t,{HF:()=>n,Jk:()=>i})},65297:(e,t,r)=>{"use strict";function n(e,t){let r={attributes:s(e.attributes,t),droppedAttributesCount:0},n=e.schemaUrl;return n&&""!==n&&(r.schemaUrl=n),r}function i(e){return{name:e.name,version:e.version}}function s(e,t){return Object.keys(e).map(r=>{var n,i;return n=r,i=e[r],{key:n,value:function e(t,r){let n=typeof t;if("string"===n)return{stringValue:t};if("number"===n)return Number.isInteger(t)?{intValue:t}:{doubleValue:t};if("boolean"===n)return{boolValue:t};if(t instanceof Uint8Array)return{bytesValue:r.encodeUint8Array(t)};if(Array.isArray(t)){let n=Array(t.length);for(let i=0;i<t.length;i++)n[i]=e(t[i],r);return{arrayValue:{values:n}}}if("object"===n&&null!=t){let n=Object.keys(t),i=Array(n.length);for(let s=0;s<n.length;s++)i[s]={key:n[s],value:e(t[n[s]],r)};return{kvlistValue:{values:i}}}return{}}(i,t)}})}r.d(t,{Zg:()=>n,Zs:()=>s,d1:()=>i})},69625:(e,t,r)=>{"use strict";let n;r.d(t,{X:()=>k});var i,s,o=r(99014),a=r(59359),l=r(79859),c=r(24008),u=r(24963),h=r(77253),d=r(56138),p=r(12931),_=r(98931),m=r(10375),g=r(96105),f=r(72423);(i=s||(s={})).COMPONENT="component",i.HTTP_STATUS_TEXT="http.status_text";var T=r(7848),E=r(98829),v=r(48130);let S=E.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"}),b=new TextEncoder;function y(e){return b.encode(e).byteLength}let w={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0},A={"https:":"443","http:":"80"},C="0.217.0",O="u">typeof PerformanceObserver;class k extends h.O{component="fetch";version=C;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(e={}){super("@opentelemetry/instrumentation-fetch",C,e),this._semconvStability=(0,d.G)("http",e?.semconvStabilityOptIn)}init(){}_addChildSpan(e,t){let r=this.tracer.startSpan("CORS Preflight",{startTime:t[g.D.FETCH_START]},o.u.setSpan(a._.active(),e)),n=!(this._semconvStability&d.n.OLD);f.v4(r,t,this.getConfig().ignoreNetworkEvents,void 0,n),r.end(t[g.D.RESPONSE_END])}_addFinalSpanAttributes(e,t){let r=f.Dl(t.url);if(this._semconvStability&d.n.OLD&&(e.setAttribute("http.status_code",t.status),null!=t.statusText&&e.setAttribute(s.HTTP_STATUS_TEXT,t.statusText),e.setAttribute("http.host",r.host),e.setAttribute("http.scheme",r.protocol.replace(":","")),"u">typeof navigator&&e.setAttribute("http.user_agent",navigator.userAgent)),this._semconvStability&d.n.STABLE){let n;e.setAttribute(T.OR,t.status),e.setAttribute(T.kS,r.hostname);let i=(n=Number(r.port||A[r.protocol]))&&!isNaN(n)?n:void 0;i&&e.setAttribute(T.A2,i)}}_addHeaders(e,t){if(!f.wF(t,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};l.$.inject(a._.active(),e),Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(e instanceof Request)l.$.inject(a._.active(),e.headers,{set:(e,t,r)=>e.set(t,"string"==typeof r?r:String(r))});else{let t=new Headers(e.headers);l.$.inject(a._.active(),t,{set:(e,t,r)=>e.set(t,"string"==typeof r?r:String(r))}),e.headers=t}}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(e,t={}){if(_.K(e,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let r="",i={};if(this._semconvStability&d.n.OLD){let n=(t.method||"GET").toUpperCase();r=`HTTP ${n}`,i[s.COMPONENT]=this.moduleName,i["http.method"]=n,i["http.url"]=e}if(this._semconvStability&d.n.STABLE){var o;let s,a,l=t.method,c=(o=t.method||"GET",s=function(){if(void 0===n){let e=(0,v.f7)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(n={},e.forEach(e=>{n[e]=!0})):n=w}return n}(),(a=o.toUpperCase())in s?a:"_OTHER");r||(r=c),i[T.n4]=c,c!==l&&(i[T.nW]=l),i[T.WQ]=e}return this.tracer.startSpan(r,{kind:c.v.CLIENT,attributes:i})}_findResourceAndAddNetworkEvents(e,t,r){let n=t.entries;if(!n.length){if(!performance.getEntriesByType)return;n=performance.getEntriesByType("resource")}let i=f.hZ(t.spanUrl,t.startTime,r,n,this._usedResources,"fetch");if(i.mainRequest){let t=i.mainRequest;this._markResourceAsUsed(t);let r=i.corsPreFlightRequest;r&&(this._addChildSpan(e,r),this._markResourceAsUsed(r));let n=!(this._semconvStability&d.n.OLD);f.v4(e,t,this.getConfig().ignoreNetworkEvents,void 0,n)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,r){let n=m.lg(Date.now()),i=m._5();this._addFinalSpanAttributes(e,r),this._semconvStability&d.n.STABLE&&r.status>=400&&(e.setStatus({code:u.s.ERROR}),e.setAttribute(T.oJ,String(r.status))),setTimeout(()=>{t.observer?.disconnect(),this._findResourceAndAddNetworkEvents(e,t,i),this._tasksCount--,this._clearResources(),e.end(n)},300)}_patchConstructor(){return e=>{let t=this;return function(...r){let n;if(!t._isEnabled)return e.apply(this,r);let i=this,s=f.Dl(r[0]instanceof Request?r[0].url:String(r[0])).href;
1n=r[0]instanceof Request?null!=r[1]?new Request(r[0],r[1]):r[0]:r[1]||{};let l=t._createSpan(s,n);if(!l)return e.apply(this,r);let c=t._prepareSpanData(s);function u(e,r){t._applyAttributesAfterFetch(e,n,r),t._endSpan(e,c,{status:r.status||0,statusText:r.message,url:s})}function h(e,r){t._applyAttributesAfterFetch(e,n,r),r.status>=200&&r.status<400?t._endSpan(e,c,r):t._endSpan(e,c,{status:r.status,statusText:r.statusText,url:s})}function p(e,r){try{let t=r.clone().body;if(t){let n=t.getReader(),i=()=>{n.read().then(({done:t})=>{t?h(e,r):i()},t=>{u(e,t)})};i()}else h(e,r)}catch(r){t._diag.error("Failed to read fetch response body",r),t._endSpan(e,c,{status:0,url:s})}return r}function _(e,r){try{u(e,r)}catch(n){t._diag.error("Failed to end span on fetch error",n),t._endSpan(e,c,{status:r.status||0,url:s})}throw r}return t.getConfig().measureRequestSize&&(function(...e){if(e[0]instanceof URL||"string"==typeof e[0]){let t=e[1];if(!t?.body)return Promise.resolve();if(!(t.body instanceof ReadableStream))return Promise.resolve(function(e){return"u">typeof Document&&e instanceof Document?new XMLSerializer().serializeToString(document).length:"string"==typeof e?y(e):e instanceof Blob?e.size:e instanceof FormData?function(e){let t=0;for(let[r,n]of e.entries())t+=r.length,n instanceof Blob?t+=n.size:t+=n.length;return t}(e):e instanceof URLSearchParams?y(e.toString()):void 0!==e.byteLength?e.byteLength:void S.warn("unknown body type")}(t.body));{let{body:e,length:r}=function(e){let t;if(!e.pipeThrough)return S.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let r=0,n=new Promise(e=>{t=e}),i=new TransformStream({start(){},async transform(e,t){let n=await e;r+=n.byteLength,t.enqueue(e)},flush(){t(r)}});return{body:e.pipeThrough(i),length:n}}(t.body);return t.body=e,r}}{let t=e[0];return t?.body?t.clone().text().then(e=>y(e)):Promise.resolve()}})(...r).then(e=>{e&&(t._semconvStability&d.n.OLD&&l.setAttribute("http.request_content_length_uncompressed",e),t._semconvStability&d.n.STABLE&&l.setAttribute("http.request.body.size",e))}).catch(e=>{t._diag.warn("getFetchBodyLength",e)}),a._.with(o.u.setSpan(a._.active(),l),()=>(t._callRequestHook(l,n),t._addHeaders(n,s),t._tasksCount++,e.apply(i,n instanceof Request?[n]:[s,n]).then(p.bind(i,l),_.bind(i,l))))}}}_applyAttributesAfterFetch(e,t,r){let n=this.getConfig().applyCustomAttributesOnSpan;n&&(0,p.m3)(()=>n(e,t,r),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_callRequestHook(e,t){let r=this.getConfig().requestHook;r&&(0,p.m3)(()=>r(e,t),e=>{e&&this._diag.error("requestHook",e)},!0)}_prepareSpanData(e){let t=m._5(),r=[];if("function"!=typeof PerformanceObserver)return{entries:r,startTime:t,spanUrl:e};let n=new PerformanceObserver(t=>{t.getEntries().forEach(t=>{"fetch"===t.initiatorType&&t.name===e&&r.push(t)})});return n.observe({entryTypes:["resource"]}),{entries:r,observer:n,startTime:t,spanUrl:e}}enable(){if(!O)return void this._diag.warn("this instrumentation is intended for web usage only, it does not instrument server-side fetch()");if(!this._isEnabled){if(this._isFetchPatched){this._diag.debug("fetch constructor already patched"),this._isEnabled=!0;return}try{this._wrap(globalThis,"fetch",this._patchConstructor()),this._isFetchPatched=!0,this._isEnabled=!0}catch(e){this._diag.warn("Failed to patch globalThis.fetch; instrumentation will not be enabled. Another script may have locked globalThis.fetch via Object.defineProperty.",e)}}}disable(){!O||this._isEnabled&&(this._isEnabled=!1,this._usedResources=new WeakSet)}}},71535:(e,t,r)=>{"use strict";r.d(t,{T:()=>s});var n=r(21434);let i="OT_ZONE_CONTEXT";class s{_enabled=!1;_bindFunction(e,t){let r=this,n=function(...n){return r.with(e,()=>t.apply(this,n))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),n}_bindListener(e,t){return void 0!==t.__ot_listeners||(t.__ot_listeners={},"function"==typeof t.addEventListener&&(t.addEventListener=this._patchAddEventListener(t,t.addEventListener,e)),"function"==typeof t.removeEventListener&&(t.removeEventListener=this._patchRemoveEventListener(t,t.removeEventListener))),t}_createZone(e,t){return Zone.current.fork({name:e,properties:{[i]:t},onCancelTask:(e,t,r,n)=>"notScheduled"===n.state||"running"===n.state?n:e.cancelTask(r,n)})}_patchAddEventListener(e,t,r){let n=this;return function(i,s,o){void 0===e.__ot_listeners&&(e.__ot_listeners={});let a=e.__ot_listeners[i];void 0===a&&(a=new WeakMap,e.__ot_listeners[i]=a);let l=n.bind(r,s);return a.set(s,l),t.call(this,i,l,o)}}_patchRemoveEventListener(e,t){return function(r,n){if(void 0===e.__ot_listeners||void 0===e.__ot_listeners[r])return t.call(this,r,n);let i=e.__ot_listeners[r],s=i.get(n);return i.delete(n),t.call(this,r,s||n)}}active(){return this._enabled&&Zone.current&&Zone.current.get(i)||n.l}bind(e,t){return"function"==typeof t?this._bindFunction(e,t):("object"==typeof t&&null!==t&&"addEventListener"in t&&"function"==typeof t.addEventListener&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&this._bindListener(e,t),t)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(e,t,r,...n){let i="otel:with";return t.name&&(i+=`:${t.name}`),this._createZone(i,e).run(t,r,n)}}r(50937)},72423:(e,t,r)=>{"use strict";let n;r.d(t,{v4:()=>l,hZ:()=>u,Dl:()=>h,wF:()=>d});var i=r(96105),s=r(10375),o=r(98931);function a(e,t,r,n=!0){if(t in r&&"number"==typeof r[t]&&!(n&&0===r[t]))return e.addEvent(t,r[t])}function l(e,t,r=!1,n,s){if(void 0===n&&(n=0!==t[i.D.START_TIME]),r||(a(e,i.D.FETCH_START,t,n
1),a(e,i.D.DOMAIN_LOOKUP_START,t,n),a(e,i.D.DOMAIN_LOOKUP_END,t,n),a(e,i.D.CONNECT_START,t,n),a(e,i.D.SECURE_CONNECTION_START,t,n),a(e,i.D.CONNECT_END,t,n),a(e,i.D.REQUEST_START,t,n),a(e,i.D.RESPONSE_START,t,n),a(e,i.D.RESPONSE_END,t,n)),!s){let r=t[i.D.ENCODED_BODY_SIZE];void 0!==r&&e.setAttribute("http.response_content_length",r);let n=t[i.D.DECODED_BODY_SIZE];void 0!==n&&r!==n&&e.setAttribute("http.response_content_length_uncompressed",n)}}function c(){return"u">typeof location?location.origin:void 0}function u(e,t,r,n,o=new WeakSet,a){var l,d,p,_,m,g;let f,T,E,v=h(e),S=(l=e=v.toString(),d=t,p=r,_=n,m=o,g=a,f=(0,s.u5)(d),T=(0,s.u5)(p),(E=_.filter(e=>{let t=(0,s.u5)((0,s.KJ)(e[i.D.FETCH_START])),r=(0,s.u5)((0,s.KJ)(e[i.D.RESPONSE_END]));return e.initiatorType.toLowerCase()===(g||"xmlhttprequest")&&e.name===l&&t>=f&&r<=T})).length>0&&(E=E.filter(e=>!m.has(e))),E);if(0===S.length)return{mainRequest:void 0};if(1===S.length)return{mainRequest:S[0]};let b=S.slice().sort((e,t)=>{let r=e[i.D.FETCH_START],n=t[i.D.FETCH_START];return r>n?1:r<n?-1:0});if(v.origin===c()||!(b.length>1))return{mainRequest:S[0]};{let e=b[0],t=function(e,t,r){let n,o=(0,s.u5)(r),a=(0,s.u5)((0,s.KJ)(t)),l=e[1],c=e.length;for(let t=1;t<c;t++){let r=e[t],c=(0,s.u5)((0,s.KJ)(r[i.D.FETCH_START])),u=o-(0,s.u5)((0,s.KJ)(r[i.D.RESPONSE_END]));c>=a&&(!n||u<n)&&(n=u,l=r)}return l}(b,e[i.D.RESPONSE_END],r),n=e[i.D.RESPONSE_END];return t[i.D.FETCH_START]<n&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}}function h(e){if("function"==typeof URL)return new URL(e,"u">typeof document?document.baseURI:"u">typeof location?location.href:void 0);let t=(n||(n=document.createElement("a")),n);return t.href=e,t}function d(e,t){let r=t||[];return("string"==typeof r||r instanceof RegExp)&&(r=[r]),h(e).origin===c()||r.some(t=>(0,o.f)(e,t))}},73732:(e,t,r)=>{"use strict";function n(e){let t=Object.keys(e);return 0===t.length?"":JSON.stringify((t=t.sort()).map(t=>[t,e[t]]))}function i(e){return`${e.name}:${e.version??""}:${e.schemaUrl??""}`}r.d(t,{Dm:()=>l,MU:()=>s,Pz:()=>c,UY:()=>i,eM:()=>n,od:()=>o,yZ:()=>a});class s extends Error{constructor(e){super(e),Object.setPrototypeOf(this,s.prototype)}}function o(e,t){let r;return Promise.race([e,new Promise(function(e,n){r=setTimeout(function(){n(new s("Operation timed out."))},t)})]).then(e=>(clearTimeout(r),e),e=>{throw clearTimeout(r),e})}function a(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function l(e,t){let r=0,n=e.length-1,i=e.length;for(;n>=r;){let s=r+Math.trunc((n-r)/2);e[s]<t?r=s+1:(i=s,n=s-1)}return i}function c(e,t){return e.toLowerCase()===t.toLowerCase()}},75087:(e,t,r)=>{"use strict";r.d(t,{D:()=>h});var n=r(98829);function i(e){try{var t;n.s.error((t=e,"string"==typeof t?t:JSON.stringify(function(e){let t={},r=e;for(;null!==r;)Object.getOwnPropertyNames(r).forEach(e=>{if(t[e])return;let n=r[e];n&&(t[e]=String(n))}),r=Object.getPrototypeOf(r);return t}(t))))}catch{}}var s=r(59359);let o=(0,r(21434).n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");var a=r(81402),l=r(73732),c=r(41397);class u{_shutdown=!1;_metricProducers;_sdkMetricProducer;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;constructor(e){this._aggregationSelector=e?.aggregationSelector??c.P,this._aggregationTemporalitySelector=e?.aggregationTemporalitySelector??c.u,this._metricProducers=e?.metricProducers??[],this._cardinalitySelector=e?.cardinalitySelector}setMetricProducer(e){if(this._sdkMetricProducer)throw Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}selectCardinalityLimit(e){return this._cardinalitySelector?this._cardinalitySelector(e):2e3}onInitialized(){}async collect(e){if(void 0===this._sdkMetricProducer)throw Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw Error("MetricReader is shutdown");let[t,...r]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis}),...this._metricProducers.map(t=>t.collect({timeoutMillis:e?.timeoutMillis}))]),n=t.errors.concat(r.flatMap(e=>e.errors));return{resourceMetrics:{resource:t.resourceMetrics.resource,scopeMetrics:t.resourceMetrics.scopeMetrics.concat(r.flatMap(e=>e.resourceMetrics.scopeMetrics))},errors:n}}async shutdown(e){this._shutdown?n.s.error("Cannot call shutdown twice."):(e?.timeoutMillis==null?await this.onShutdown():await (0,l.od)(this.onShutdown(),e.timeoutMillis),this._shutdown=!0)}async forceFlush(e){this._shutdown?n.s.warn("Cannot forceFlush on already shutdown MetricReader."):e?.timeoutMillis==null?await this.onForceFlush():await (0,l.od)(this.onForceFlush(),e.timeoutMillis)}}class h extends u{_interval;_exporter;_exportInterval;_exportTimeout;constructor(e){const{exporter:t,exportIntervalMillis:r=6e4,metricProducers:i}=e;let{exportTimeoutMillis:s=3e4}=e;if(super({aggregationSelector:t.selectAggregation?.bind(t),aggregationTemporalitySelector:t.selectAggregationTemporality?.bind(t),metricProducers:i}),r<=0)throw Error("exportIntervalMillis must be greater than 0");if(s<=0)throw Error("exportTimeoutMillis must be greater than 0");if(r<s)if("exportIntervalMillis"in e&&"exportTimeoutMillis"in e)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");else n.s.info(`Timeout of ${s} exceeds the interval of ${r}. Clamping timeout to interval duration.`),s=r;this._exportInterval=r,this._exportTimeout=s,this._exporter=t}async _runOnce(){try{await (0,l.od)(this._doRun(),this._exportTimeout)}catch(e){if(e instanceof l.MU)return void n.s.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);i(e)}}async _doRun(){var e,t;let{resourceMetrics:r,errors:l}=await this.collect({timeoutMillis:this._exportTimeout});if(l.length>0&&n.s.error("PeriodicExportingMetricReader: metrics collection errors",...l),r.resource.asyncAttributesPending)try{await r.resource.waitForAsyncAttributes?.()}catch(e){n.s.debug("Error while resolving async portion of resource: ",e),i(e)}
1if(0===r.scopeMetrics.length)return;let c=await (e=this._exporter,t=r,new Promise(r=>{s._.with(s._.active().setValue(o,!0),()=>{e.export(t,r)})}));if(c.code!==a.V.SUCCESS)throw Error(`PeriodicExportingMetricReader: metrics export failed (error ${c.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),"number"!=typeof this._interval&&this._interval.unref()}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}}},77253:(e,t,r)=>{"use strict";r.d(t,{O:()=>m});var n=r(98829),i=r(99014),s=r(72262),o=r(95396);let a=console.error.bind(console);function l(e,t,r){let n=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}let c=(e,t,r)=>{if(!e||!e[t])return void a("no original function "+String(t)+" to wrap");if(!r){a("no wrapper function"),a(Error().stack);return}let n=e[t];if("function"!=typeof n||"function"!=typeof r)return void a("original object and wrapper must be functions");let i=r(n,t);return l(i,"__original",n),l(i,"__unwrap",()=>{e[t]===i&&l(e,t,n)}),l(i,"__wrapped",!0),l(e,t,i),i},u=(e,t,r)=>{if(e)Array.isArray(e)||(e=[e]);else{a("must provide one or more modules to patch"),a(Error().stack);return}t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{c(e,t,r)})}):a("must provide one or more functions to wrap on modules")},h=(e,t)=>{if(!e||!e[t]){a("no function to unwrap."),a(Error().stack);return}let r=e[t];r.__unwrap?r.__unwrap():a("no original to unwrap to -- has "+String(t)+" already been unwrapped?")},d=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{a("must provide one or more modules to patch"),a(Error().stack);return}t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{h(e,t)})}):a("must provide one or more functions to unwrap on modules")};function p(e){e&&e.logger&&("function"!=typeof e.logger?a("new logger isn't a function, not replacing"):a=e.logger)}p.wrap=c,p.massWrap=u,p.unwrap=h,p.massUnwrap=d;class _{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(e,t,r){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(r),this._diag=n.s.createComponentLogger({namespace:e}),this._tracer=i.u.getTracer(e,t),this._meter=s.q.getMeter(e,t),this._logger=o.K9.getLogger(e,t),this._updateMetricInstruments()}_wrap=c;_unwrap=h;_massWrap=u;_massUnwrap=d;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,r,n){if(e)try{e(r,n)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}}}class m extends _{constructor(e,t,r){super(e,t,r),this._config.enabled&&this.enable()}}},79791:(e,t,r)=>{"use strict";let n;r.d(t,{r:()=>ei});var i=r(98829),s=r(62854),o=r(7848);let a={[o.aO]:"opentelemetry","process.runtime.name":"browser",[o.E$]:o.qV,[o.aJ]:"2.6.1"},l=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then;class c{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,t){let r=new c({},t);return r._rawAttributes=u(e),r._asyncAttributesPending=e.filter(([e,t])=>l(t)).length>0,r}constructor(e,t){const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([e,t])=>(l(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=u(this._rawAttributes),this._schemaUrl=function(e){if("string"==typeof e||void 0===e)return e;i.s.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,r]=this._rawAttributes[e];this._rawAttributes[e]=[t,l(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&i.s.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};
1for(let[t,r]of this._rawAttributes){if(l(r)){i.s.debug(`Unsettled resource attribute ${t} skipped`);continue}null!=r&&(e[t]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){var t,r;let n,s,o;if(null==e)return this;let a=(t=this,r=e,n=t?.schemaUrl,o=void 0===(s=r?.schemaUrl)||""===s,void 0===n||""===n?s:o||n===s?n:void i.s.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,s));return c.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],a?{schemaUrl:a}:void 0)}}function u(e){return e.map(([e,t])=>l(t)?[e,t.catch(t=>{i.s.debug("promise rejection for resource attribute: %s - %s",e,t)})]:[e,t])}var h=r(73732);class d{_registeredViews=[];addView(e){this._registeredViews.push(e)}findViews(e,t){return this._registeredViews.filter(r=>this._matchInstrument(r.instrumentSelector,e)&&this._matchMeter(r.meterSelector,t))}_matchInstrument(e,t){return(void 0===e.getType()||t.type===e.getType())&&e.getNameFilter().match(t.name)&&e.getUnitFilter().match(t.unit)}_matchMeter(e,t){return e.getNameFilter().match(t.name)&&(void 0===t.version||e.getVersionFilter().match(t.version))&&(void 0===t.schemaUrl||e.getSchemaUrlFilter().match(t.schemaUrl))}}var p=r(8025);function _(e,t,r){return m.test(e)||i.s.warn(`Invalid metric name: "${e}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:e,type:t,description:r?.description??"",unit:r?.unit??"",valueType:r?.valueType??p.e.DOUBLE,advice:r?.advice??{}}}let m=/^[a-z][a-z0-9_.\-/]{0,254}$/i;var g=r(59359),f=r(6988);class T{_writableMetricStorage;_descriptor;constructor(e,t){this._writableMetricStorage=e,this._descriptor=t}_record(e,t={},r=g._.active()){"number"!=typeof e?i.s.warn(`non-number value provided to metric ${this._descriptor.name}: ${e}`):(this._descriptor.valueType!==p.e.INT||Number.isInteger(e)||(i.s.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),Number.isInteger(e=Math.trunc(e))))&&this._writableMetricStorage.record(e,t,r,(0,f.lg)(Date.now()))}}class E extends T{add(e,t,r){this._record(e,t,r)}}class v extends T{add(e,t,r){e<0?i.s.warn(`negative value provided to counter ${this._descriptor.name}: ${e}`):this._record(e,t,r)}}class S extends T{record(e,t,r){this._record(e,t,r)}}class b extends T{record(e,t,r){e<0?i.s.warn(`negative value provided to histogram ${this._descriptor.name}: ${e}`):this._record(e,t,r)}}class y{_metricStorages;_descriptor;_observableRegistry;constructor(e,t,r){this._descriptor=e,this._metricStorages=t,this._observableRegistry=r}addCallback(e){this._observableRegistry.addCallback(e,this)}removeCallback(e){this._observableRegistry.removeCallback(e,this)}}class w extends y{}class A extends y{}class C extends y{}function O(e){return e instanceof y}var k=r(93010);class L{_meterSharedState;constructor(e){this._meterSharedState=e}createGauge(e,t){let r=_(e,k.O.GAUGE,t);return new S(this._meterSharedState.registerMetricStorage(r),r)}createHistogram(e,t){let r=_(e,k.O.HISTOGRAM,t);return new b(this._meterSharedState.registerMetricStorage(r),r)}createCounter(e,t){let r=_(e,k.O.COUNTER,t);return new v(this._meterSharedState.registerMetricStorage(r),r)}createUpDownCounter(e,t){let r=_(e,k.O.UP_DOWN_COUNTER,t);return new E(this._meterSharedState.registerMetricStorage(r),r)}createObservableGauge(e,t){let r=_(e,k.O.OBSERVABLE_GAUGE,t),n=this._meterSharedState.registerAsyncMetricStorage(r);return new A(r,n,this._meterSharedState.observableRegistry)}createObservableCounter(e,t){let r=_(e,k.O.OBSERVABLE_COUNTER,t),n=this._meterSharedState.registerAsyncMetricStorage(r);return new w(r,n,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(e,t){let r=_(e,k.O.OBSERVABLE_UP_DOWN_COUNTER,t),n=this._meterSharedState.registerAsyncMetricStorage(r);return new C(r,n,this._meterSharedState.observableRegistry)}addBatchObservableCallback(e,t){this._meterSharedState.observableRegistry.addBatchCallback(e,t)}removeBatchObservableCallback(e,t){this._meterSharedState.observableRegistry.removeBatchCallback(e,t)}}class P{_instrumentDescriptor;constructor(e){this._instrumentDescriptor=e}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(e){this._instrumentDescriptor=_(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}}class R{_valueMap=new Map;_keyMap=new Map;_hash;constructor(e){this._hash=e}get(e,t){return t??=this._hash(e),this._valueMap.get(t)}getOrDefault(e,t){let r=this._hash(e);if(this._valueMap.has(r))return this._valueMap.get(r);let n=t();return this._keyMap.has(r)||this._keyMap.set(r,e),this._valueMap.set(r,n),n}set(e,t,r){r??=this._hash(e),this._keyMap.has(r)||this._keyMap.set(r,e),this._valueMap.set(r,t)}has(e,t){return t??=this._hash(e),this._valueMap.has(t)}*keys(){let e=this._keyMap.entries(),t=e.next();for(;!0!==t.done;)yield[t.value[1],t.value[0]],t=e.next()}*entries(){let e=this._valueMap.entries(),t=e.next();for(;!0!==t.done;)yield[this._keyMap.get(t.value[0]),t.value[1],t.value[0]],t=e.next()}get size(){return this._valueMap.size}}class N extends R{constructor(){super(h.eM)}}class M{_activeCollectionStorage=new N;_cumulativeMemoStorage=new N;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;_aggregator;constructor(e,t){this._aggregator=e,this._cardinalityLimit=(t??2e3)-1,this._overflowHashCode=(0,h.eM)(this._overflowAttributes)}record(e,t,r,n){let i=this._activeCollectionStorage.get(t);if(!i){if(this._activeCollectionStorage.size>=this._cardinalityLimit){let t=this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(n));t?.record(e);return}i=this._aggregator.createAccumulation(n),this._activeCollectionStorage.set(t,i)}i?.record(e)}
1batchCumulate(e,t){Array.from(e.entries()).forEach(([e,r,n])=>{let i=this._aggregator.createAccumulation(t);i?.record(r);let s=i;if(this._cumulativeMemoStorage.has(e,n)){let t=this._cumulativeMemoStorage.get(e,n);s=this._aggregator.diff(t,i)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(e=this._overflowAttributes,n=this._overflowHashCode,this._cumulativeMemoStorage.has(e,n))){let t=this._cumulativeMemoStorage.get(e,n);s=this._aggregator.diff(t,i)}if(this._activeCollectionStorage.has(e,n)){let t=this._activeCollectionStorage.get(e,n);s=this._aggregator.merge(t,s)}this._cumulativeMemoStorage.set(e,i,n),this._activeCollectionStorage.set(e,s,n)})}collect(){let e=this._activeCollectionStorage;return this._activeCollectionStorage=new N,e}}var D=r(4610);class x{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(e,t){this._aggregator=e,t.forEach(e=>{this._unreportedAccumulations.set(e,[])})}buildMetrics(e,t,r,n){let i;this._stashAccumulations(r);let s=this._getMergedUnreportedAccumulations(e),o=s;if(this._reportHistory.has(e)){let t=this._reportHistory.get(e),r=t.collectionTime;o=(i=t.aggregationTemporality)===D.h.CUMULATIVE?x.merge(t.accumulations,s,this._aggregator):x.calibrateStartTime(t.accumulations,s,r)}else i=e.selectAggregationTemporality(t.type);this._reportHistory.set(e,{accumulations:o,collectionTime:n,aggregationTemporality:i});let a=Array.from(o.entries());if(0!==a.length)return this._aggregator.toMetricData(t,i,a,n)}_stashAccumulations(e){for(let t of this._unreportedAccumulations.keys()){let r=this._unreportedAccumulations.get(t);void 0===r&&(r=[],this._unreportedAccumulations.set(t,r)),r.push(e)}}_getMergedUnreportedAccumulations(e){let t=new N,r=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),void 0===r)return t;for(let e of r)t=x.merge(t,e,this._aggregator);return t}static merge(e,t,r){let n=t.entries(),i=n.next();for(;!0!==i.done;){let[t,s,o]=i.value;if(e.has(t,o)){let n=e.get(t,o),i=r.merge(n,s);e.set(t,i,o)}else e.set(t,s,o);i=n.next()}return e}static calibrateStartTime(e,t,r){for(let[n,i]of e.keys()){let e=t.get(n,i);e?.setStartTime(r)}return t}}class I extends P{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(e,t,r,n,i){super(e),this._aggregationCardinalityLimit=i,this._deltaMetricStorage=new M(t,this._aggregationCardinalityLimit),this._temporalMetricStorage=new x(t,n),this._attributesProcessor=r}record(e,t){let r=new N;Array.from(e.entries()).forEach(([e,t])=>{r.set(this._attributesProcessor.process(e),t)}),this._deltaMetricStorage.batchCumulate(r,t)}collect(e,t){let r=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,r,t)}}function U(e,t){let r="";return e.unit!==t.unit&&(r+=` - Unit '${e.unit}' does not match '${t.unit}' 2`),e.type!==t.type&&(r+=` - Type '${e.type}' does not match '${t.type}' 3`),e.valueType!==t.valueType&&(r+=` - Value Type '${e.valueType}' does not match '${t.valueType}' 4`),e.description!==t.description&&(r+=` - Description '${e.description}' does not match '${t.description}' 5`),r}function B(e,t){if(e.valueType!==t.valueType)return` - use valueType '${e.valueType}' on instrument creation or use an instrument name other than '${t.name}'`;if(e.unit!==t.unit)return` - use unit '${e.unit}' on instrument creation or use an instrument name other than '${t.name}'`;if(e.type!==t.type){let r;return r=JSON.stringify({name:t.name,type:t.type,unit:t.unit}),` - create a new view with a name other than '${e.name}' and InstrumentSelector '${r}'`}if(e.description!==t.description){let r;return r=JSON.stringify({name:t.name,type:t.type,unit:t.unit}),` - create a new view with a name other than '${e.name}' and InstrumentSelector '${r}' 6 - OR - create a new view with the name ${e.name} and description '${e.description}' and InstrumentSelector ${r} 7 - OR - create a new view with the name ${t.name} and description '${e.description}' and InstrumentSelector ${r}`}return""}class z{_sharedRegistry=new Map;_perCollectorRegistry=new Map;static create(){return new z}getStorages(e){let t=[];for(let e of this._sharedRegistry.values())t=t.concat(e);let r=this._perCollectorRegistry.get(e);if(null!=r)for(let e of r.values())t=t.concat(e);return t}register(e){this._registerStorage(e,this._sharedRegistry)}registerForCollector(e,t){let r=this._perCollectorRegistry.get(e);null==r&&(r=new Map,this._perCollectorRegistry.set(e,r)),this._registerStorage(t,r)}findOrUpdateCompatibleStorage(e){let t=this._sharedRegistry.get(e.name);return void 0===t?null:this._findOrUpdateCompatibleStorage(e,t)}findOrUpdateCompatibleCollectorStorage(e,t){let r=this._perCollectorRegistry.get(e);if(void 0===r)return null;let n=r.get(t.name);return void 0===n?null:this._findOrUpdateCompatibleStorage(t,n)}_registerStorage(e,t){let r=e.getInstrumentDescriptor(),n=t.get(r.name);void 0===n?t.set(r.name,[e]):n.push(e)}_findOrUpdateCompatibleStorage(e,t){let r=null;for(let n of t){let t=n.getInstrumentDescriptor();(0,h.Pz)(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType?(t.description!==e.description&&(e.description.length>t.description.length&&n.updateDescription(e.description),i.s.warn("A view or instrument with the name ",e.name," has already been registered, but has a different description and is incompatible with another registered view.\n","Details:\n",U(t,e),"The longer description will be used.\nTo resolve the conflict:",B(t,e))),r
7=n):i.s.warn("A view or instrument with the name ",e.name," has already been registered and is incompatible with another registered view.\n","Details:\n",U(t,e),"To resolve the conflict:\n",B(t,e))}return r}}class F{_backingStorages;constructor(e){this._backingStorages=e}record(e,t,r,n){this._backingStorages.forEach(i=>{i.record(e,t,r,n)})}}class V{_buffer=new N;_instrumentName;_valueType;constructor(e,t){this._instrumentName=e,this._valueType=t}observe(e,t={}){"number"!=typeof e?i.s.warn(`non-number value provided to metric ${this._instrumentName}: ${e}`):(this._valueType!==p.e.INT||Number.isInteger(e)||(i.s.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),Number.isInteger(e=Math.trunc(e))))&&this._buffer.set(t,e)}}class ${_buffer=new Map;observe(e,t,r={}){if(!O(e))return;let n=this._buffer.get(e);(null==n&&(n=new N,this._buffer.set(e,n)),"number"!=typeof t)?i.s.warn(`non-number value provided to metric ${e._descriptor.name}: ${t}`):(e._descriptor.valueType!==p.e.INT||Number.isInteger(t)||(i.s.warn(`INT value type cannot accept a floating-point value for ${e._descriptor.name}, ignoring the fractional digits.`),Number.isInteger(t=Math.trunc(t))))&&n.set(r,t)}}class H{_callbacks=[];_batchCallbacks=[];addCallback(e,t){this._findCallback(e,t)>=0||this._callbacks.push({callback:e,instrument:t})}removeCallback(e,t){let r=this._findCallback(e,t);r<0||this._callbacks.splice(r,1)}addBatchCallback(e,t){let r=new Set(t.filter(O));0===r.size?i.s.error("BatchObservableCallback is not associated with valid instruments",t):this._findBatchCallback(e,r)>=0||this._batchCallbacks.push({callback:e,instruments:r})}removeBatchCallback(e,t){let r=new Set(t.filter(O)),n=this._findBatchCallback(e,r);n<0||this._batchCallbacks.splice(n,1)}async observe(e,t){let r=this._observeCallbacks(e,t),n=this._observeBatchCallbacks(e,t);return(await Promise.allSettled([...r,...n])).filter(e=>"rejected"===e.status).map(e=>e.reason)}_observeCallbacks(e,t){return this._callbacks.map(async({callback:r,instrument:n})=>{let i=new V(n._descriptor.name,n._descriptor.valueType),s=Promise.resolve(r(i));
7null!=t&&(s=(0,h.od)(s,t)),await s,n._metricStorages.forEach(t=>{t.record(i._buffer,e)})})}_observeBatchCallbacks(e,t){return this._batchCallbacks.map(async({callback:r,instruments:n})=>{let i=new $,s=Promise.resolve(r(i));null!=t&&(s=(0,h.od)(s,t)),await s,n.forEach(t=>{let r=i._buffer.get(t);null!=r&&t._metricStorages.forEach(t=>{t.record(r,e)})})})}_findCallback(e,t){return this._callbacks.findIndex(r=>r.callback===e&&r.instrument===t)}_findBatchCallback(e,t){return this._batchCallbacks.findIndex(r=>r.callback===e&&(0,h.yZ)(r.instruments,t))}}class j extends P{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(e,t,r,n,i){super(e),this._aggregationCardinalityLimit=i,this._deltaMetricStorage=new M(t,this._aggregationCardinalityLimit),this._temporalMetricStorage=new x(t,n),this._attributesProcessor=r}record(e,t,r,n){t=this._attributesProcessor.process(t,r),this._deltaMetricStorage.record(e,t,r,n)}collect(e,t){let r=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,r,t)}}class G{process(e,t){return e}}class Z{_processors;constructor(e){this._processors=e}process(e,t){let r=e;for(let e of this._processors)r=e.process(r,t);return r}}let q=new G;class W{metricStorageRegistry=new z;observableRegistry=new H;meter;_meterProviderSharedState;_instrumentationScope;constructor(e,t){this.meter=new L(this),this._meterProviderSharedState=e,this._instrumentationScope=t}registerMetricStorage(e){let t=this._registerMetricStorage(e,j);return 1===t.length?t[0]:new F(t)}registerAsyncMetricStorage(e){return this._registerMetricStorage(e,I)}async collect(e,t,r){let n=await this.observableRegistry.observe(t,r?.timeoutMillis),i=this.metricStorageRegistry.getStorages(e);if(0===i.length)return null;let s=[];return(i.forEach(r=>{let n=r.collect(e,t);null!=n&&s.push(n)}),0===s.length)?{errors:n}:{scopeMetrics:{scope:this._instrumentationScope,metrics:s},errors:n}}_registerMetricStorage(e,t){let r=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope).map(r=>{let n={name:r.name??e.name,description:r.description??e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice},i=this.metricStorageRegistry.findOrUpdateCompatibleStorage(n);if(null!=i)return i;let s=r.aggregation.createAggregator(n),o=new t(n,s,r.attributesProcessor,this._meterProviderSharedState.metricCollectors,r.aggregationCardinalityLimit);return this.metricStorageRegistry.register(o),o});if(0===r.length){let n=this._meterProviderSharedState.selectAggregations(e.type).map(([r,n])=>{let i=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(r,e);if(null!=i)return i;let s=n.createAggregator(e),o=r.selectCardinalityLimit(e.type),a=new t(e,s,q,[r],o);return this.metricStorageRegistry.registerForCollector(r,a),a});r=r.concat(n)}return r}}var X=r(90871);class J{viewRegistry=new d;metricCollectors=[];meterSharedStates=new Map;resource;constructor(e){this.resource=e}getMeterSharedState(e){let t=(0,h.UY)(e),r=this.meterSharedStates.get(t);return null==r&&(r=new W(this,e),this.meterSharedStates.set(t,r)),r}selectAggregations(e){let t=[];for(let r of this.metricCollectors)t.push([r,(0,X.E)(r.selectAggregation(e))]);return t}}class K{_sharedState;_metricReader;constructor(e,t){this._sharedState=e,this._metricReader=t}async collect(e){let t=(0,f.lg)(Date.now()),r=[],n=[],i=Array.from(this._sharedState.meterSharedStates.values()).map(async i=>{let s=await i.collect(this,t,e);s?.scopeMetrics!=null&&r.push(s.scopeMetrics),s?.errors!=null&&n.push(...s.errors)});return await Promise.all(i),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:r},errors:n}}async forceFlush(e){await this._metricReader.forceFlush(e)}async shutdown(e){await this._metricReader.shutdown(e)}selectAggregationTemporality(e){return this._metricReader.selectAggregationTemporality(e)}selectAggregation(e){return this._metricReader.selectAggregation(e)}selectCardinalityLimit(e){return this._metricReader.selectCardinalityLimit?.(e)??2e3}}let Y=/[\^$\\.+?()[\]{}|]/g;class Q{_matchAll;_regexp;constructor(e){"*"===e?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(Q.escapePattern(e)))}match(e){return!!this._matchAll||this._regexp.test(e)}static escapePattern(e){return`^${e.replace(Y,"\\$&").replace("*",".*")}$`}static hasWildcard(e){return e.includes("*")}}class ee{_matchAll;_pattern;constructor(e){this._matchAll=void 0===e,this._pattern=e}match(e){return!!this._matchAll||e===this._pattern}}class et{_nameFilter;_type;_unitFilter;constructor(e){this._nameFilter=new Q(e?.name??"*"),this._type=e?.type,this._unitFilter=new ee(e?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}
7getUnitFilter(){return this._unitFilter}}class er{_nameFilter;_versionFilter;_schemaUrlFilter;constructor(e){this._nameFilter=new ee(e?.name),this._versionFilter=new ee(e?.version),this._schemaUrlFilter=new ee(e?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}}class en{name;description;aggregation;attributesProcessor;instrumentSelector;meterSelector;aggregationCardinalityLimit;constructor(e){!function(e){if(null==e.instrumentName&&null==e.instrumentType&&null==e.instrumentUnit&&null==e.meterName&&null==e.meterVersion&&null==e.meterSchemaUrl)throw Error("Cannot create view with no selector arguments supplied");if(null!=e.name&&(e?.instrumentName==null||Q.hasWildcard(e.instrumentName)))throw Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.")}(e),null!=e.attributesProcessors?this.attributesProcessor=function(e){return new Z(e)}(e.attributesProcessors):this.attributesProcessor=q,this.name=e.name,this.description=e.description,this.aggregation=(0,X.E)(e.aggregation??{type:X.D.DEFAULT}),this.instrumentSelector=new et({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new er({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl}),this.aggregationCardinalityLimit=e.aggregationCardinalityLimit}}class ei{_sharedState;_shutdown=!1;constructor(e){if(this._sharedState=new J(e?.resource??function(){var e;return e={[o.UX]:function(){if(void 0===n)try{let e=globalThis.process.argv0;n=e?`unknown_service:${e}`:"unknown_service"}catch{n="unknown_service"}return n}(),[o.E$]:a[o.E$],[o.aO]:a[o.aO],[o.aJ]:a[o.aJ]},c.FromAttributeList(Object.entries(e),void 0)}()),e?.views!=null&&e.views.length>0)for(const t of e.views)this._sharedState.viewRegistry.addView(new en(t));if(e?.readers!=null&&e.readers.length>0)for(const t of e.readers){const e=new K(this._sharedState,t);t.setMetricProducer(e),this._sharedState.metricCollectors.push(e)}}getMeter(e,t="",r={}){return this._shutdown?(i.s.warn("A shutdown MeterProvider cannot provide a Meter"),(0,s.Ac)()):this._sharedState.getMeterSharedState({name:e,version:t,schemaUrl:r.schemaUrl}).meter}async shutdown(e){this._shutdown?i.s.warn("shutdown may only be called once per MeterProvider"):(this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(t=>t.shutdown(e))))}async forceFlush(e){this._shutdown?i.s.warn("invalid attempt to force flush after MeterProvider shutdown"):await Promise.all(this._sharedState.metricCollectors.map(t=>t.forceFlush(e)))}}},79859:(e,t,r)=>{"use strict";r.d(t,{$:()=>T});var n=r(55808);class i{inject(e,t){}extract(e,t){return e}fields(){return[]}}let s={get(e,t){if(null!=e)return e[t]},keys:e=>null==e?[]:Object.keys(e)},o={set(e,t,r){null!=e&&(e[t]=r)}};var a=r(74271);let l=(0,r(21434).n)("OpenTelemetry Baggage Key");function c(e){return e.getValue(l)||void 0}function u(){return c(a._.getInstance().active())}function h(e,t){return e.setValue(l,t)}function d(e){return e.deleteValue(l)}var p=r(87794),_=r(11091);let m="propagation",g=new i;class f{constructor(){this.createBaggage=p.L,this.getBaggage=c,this.getActiveBaggage=u,this.setBaggage=h,this.deleteBaggage=d}static getInstance(){return this._instance||(this._instance=new f),this._instance}setGlobalPropagator(e){return(0,n.$G)(m,e,_.K.instance())}inject(e,t,r=o){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=s){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,n.kv)(m,_.K.instance())}_getGlobalPropagator(){return(0,n.mS)(m)||g}}let T=f.getInstance()},80136:(e,t,r)=>{"use strict";r.d(t,{$:()=>s});var n=r(98829),i=r(43479);let s=(e={})=>(e.detectors||[]).map(t=>{try{let r=(0,i.Lm)(t.detect(e));return n.s.debug(`${t.constructor.name} found resource.`,r),r}catch(e){return n.s.debug(`${t.constructor.name} failed: ${e.message}`),(0,i.sq)()}}).reduce((e,t)=>e.merge(t),(0,i.sq)())},81402:(e,t,r)=>{"use strict";var n,i;r.d(t,{V:()=>n}),(i=n||(n={}))[i.SUCCESS=0]="SUCCESS",i[i.FAILED=1]="FAILED"},82576:(e,t,r)=>{"use strict";var n,i;r.d(t,{V:()=>n}),(i=n||(n={}))[i.SUCCESS=0]="SUCCESS",i[i.FAILED=1]="FAILED"},83324:(e,t,r)=>{"use strict";let n;r.d(t,{D:()=>L});var i,s,o,a=r(79859),l=r(59359),c=r(99014),u=r(24008),h=r(24963),d=r
7(77253),p=r(56138),_=r(12931),m=r(13891),g=r(98931),f=r(10375),T=r(72423),E=r(96105),v=r(7848);(i=s||(s={})).METHOD_OPEN="open",i.METHOD_SEND="send",i.EVENT_ABORT="abort",i.EVENT_ERROR="error",i.EVENT_LOAD="loaded",i.EVENT_TIMEOUT="timeout";var S=r(98829),b=r(48130);let y=S.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"}),w=new TextEncoder;function A(e){return w.encode(e).byteLength}let C={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0},O={"https:":"443","http:":"80"},k="0.217.0";(o||(o={})).HTTP_STATUS_TEXT="http.status_text";class L extends d.O{component="xml-http-request";version=k;moduleName=this.component;_tasksCount=0;_xhrMem=new WeakMap;_usedResources=new WeakSet;_semconvStability;constructor(e={}){super("@opentelemetry/instrumentation-xml-http-request",k,e),this._semconvStability=(0,p.G)("http",e?.semconvStabilityOptIn)}init(){}_addHeaders(e,t){let r=(0,T.Dl)(t).href;if(!(0,T.wF)(r,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};a.$.inject(l._.active(),e),Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}let n={};a.$.inject(l._.active(),n),Object.keys(n).forEach(t=>{e.setRequestHeader(t,String(n[t]))})}_addChildSpan(e,t){l._.with(c.u.setSpan(l._.active(),e),()=>{let e=this.tracer.startSpan("CORS Preflight",{startTime:t[E.D.FETCH_START]}),r=!(this._semconvStability&p.n.OLD);(0,T.v4)(e,t,this.getConfig().ignoreNetworkEvents,void 0,r),e.end(t[E.D.RESPONSE_END])})}_addFinalSpanAttributes(e,t,r){if(this._semconvStability&p.n.OLD){if(void 0!==t.status&&e.setAttribute("http.status_code",t.status),void 0!==t.statusText&&e.setAttribute(o.HTTP_STATUS_TEXT,t.statusText),"string"==typeof r){let t=(0,T.Dl)(r);e.setAttribute("http.host",t.host),e.setAttribute("http.scheme",t.protocol.replace(":",""))}e.setAttribute("http.user_agent",navigator.userAgent)}this._semconvStability&p.n.STABLE&&t.status&&e.setAttribute(v.OR,t.status)}_applyAttributesAfterXHR(e,t){let r=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof r&&(0,_.m3)(()=>r(e,t),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_addResourceObserver(e,t){let r=this._xhrMem.get(e);r&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(r.createdResources={observer:new PerformanceObserver(e=>{let n=e.getEntries(),i=(0,T.Dl)(t);n.forEach(e=>{"xmlhttprequest"===e.initiatorType&&e.name===i.href&&r.createdResources&&r.createdResources.entries.push(e)})}),entries:[]},r.createdResources.observer.observe({entryTypes:["resource"]}))}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(m.ug.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}_findResourceAndAddNetworkEvents(e,t,r,n,i){if(!r||!n||!i||!e.createdResources)return;let s=e.createdResources.entries;s&&s.length||(s=m.ug.getEntriesByType("resource"));let o=(0,T.hZ)((0,T.Dl)(r).href,n,i,s,this._usedResources);if(o.mainRequest){let e=o.mainRequest;this._markResourceAsUsed(e);let r=o.corsPreFlightRequest;r&&(this._addChildSpan(t,r),this._markResourceAsUsed(r));let n=!(this._semconvStability&p.n.OLD);(0,T.v4)(t,e,this.getConfig().ignoreNetworkEvents,void 0,n)}}_cleanPreviousSpanInformation(e){let t=this._xhrMem.get(e);if(t){let r=t.callbackToRemoveEvents;r&&r(),this._xhrMem.delete(e)}}_createSpan(e,t,r){let i=(0,T.Dl)(t);if((0,g.K)(i.href,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let o="",a={};if(this._semconvStability&p.n.OLD&&(o=r.toUpperCase(),a["http.method"]=r,a["http.url"]=i.toString()),this._semconvStability&p.n.STABLE){let e,t,s,l=(e=function(){if(void 0===n){let e=(0,b.f7)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(n={},e.forEach(e=>{n[e]=!0})):n=C}return n}(),(t=r.toUpperCase())in e?t:"_OTHER");o||(o=l),a[v.n4]=l,l!==r&&(a[v.nW]=r),a[v.WQ]=i.toString(),a[v.kS]=i.hostname;let c=(s=Number(i.port||O[i.protocol]))&&!isNaN(s)?s:void 0;c&&(a[v.A2]=c)}let l=this.tracer.startSpan(o,{kind:u.v.CLIENT,attributes:a});return l.addEvent(s.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:l,spanUrl:t}),l}_markResourceAsUsed(e){this._usedResources.add(e)}_patchOpen(){return e=>{let t=this;return function(...r){if(!t._isEnabled)return e.apply(this,r);let n=r[0],i=r[1];return t._createSpan(this,i,n),e.apply(this,r)}}}_patchSend(){let e=this;function t(t,r,n,i){let s=e._xhrMem.get(r);if(!s)return;if(s.status=r.status,s.statusText=r.statusText,e._xhrMem.delete(r),s.span){let t=s.span;e._applyAttributesAfterXHR(t,r),e._semconvStability&p.n.STABLE&&(n?i&&(t.setStatus({code:h.s.ERROR,message:i}),t.setAttribute(v.oJ,i)):s.status&&s.status>=400&&(t.setStatus({code:h.s.ERROR}),t.setAttribute(v.oJ,String(s.status))))}let o=(0,f._5)(),a=Date.now();setTimeout(()=>{!function(t,r,n,i){let s=r.callbackToRemoveEvents;"function"==typeof s&&s();let{span:o,spanUrl:a,sendStartTime:l}=r;o&&(e._findResourceAndAddNetworkEvents(r,o,a,l,n),o.addEvent(t,i),e._addFinalSpanAttributes(o,r,a),o.end(i),e._tasksCount--),e._clearResources()}(t,s,o,a)},300)}function r(){t(s.EVENT_ERROR,this,!0,"error")}function n(){t(s.EVENT_ABORT,this,!1)}function i(){t(s.EVENT_TIMEOUT,this,!0,"timeout")}function o(){this.status<299?t(s.EVENT_LOAD,this,!1):t(s.EVENT_ERROR,this,!1)}return t=>function(...a){if(!e._isEnabled)return t.apply(this,a);let u=e._xhrMem.get(this);if(!u)return t.apply(this,a);let h=u.span,d=u.spanUrl;if(h&&d){if(e.getConfig().measureRequestSize&&a?.[0]){var _,m;let t=(m=_=a[0],"u">typeof Document&&m instanceof Document)?new XMLSerializer().serializeToString(document).length:"string"==typeof _?A(_):_ instanceof Blob?_.size:_ instanceof FormData?function(e){let t=0;for(let[r,n]of e.entries())t+=r.length,n instanceof Blob?t+=n.size:t+=n.length;return t}(_):_ instanceof URLSearchParams?A(_.toString()):void 0!==_.byteLength?_.byteLength:void y.warn("unknown body type");void 0!==t&&(e._semconvStability&p.n.OLD&&h.setAttribute("http.request_content_length_uncompressed",t),e._semconvStability&p.n.STABLE&&h.setAttribute("http.request.body.size",t))}l._.with(c.u.setSpan(l._.active(),h),()=>{e._tasksCount++,u.sendStartTime=(0,f._5)(),h.addEvent(s.METHOD_SEND),this.addEventListener("abort",n),this.addEventListener("error",r),this.addEventListener("load",o),this.addEventListener("timeout",i),u.callbackToRemoveEvents=()=>{let t;this.removeEventListener("abort",n),this.removeEventListener("error",r),this.removeEventListener("load",o),this.removeEventListener("timeout",i),(t=e._xhrMem.get(this))&&(t.callbackToRemoveEvents=void 0),u.createdResources&&u.createdResources.observer.disconnect()},e._addHeaders(this,d),e._addResourceObserver(this,d)})}return t.apply(this,a)}}enable(){if(!this._isEnabled){if(this._isXhrPatched){this._diag.debug("reactivating existing patch on",this.moduleName,this.version),this._isEnabled=!0;return}try{this._diag.debug("applying patch to",this.moduleName,this.version),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend()),this._isXhrPatched=!0,this._isEnabled=!0}catch(e){this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.warn("Failed to patch globalThis.XMLHttpRequest; instrumentation will not be enabled. Another script may have locked globalThis.XMLHttpRequest via Object.defineProperty.",e)}}}disable(){this._isEnabled&&(this._isEnabled=!1,this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}}},87440:(e,t,r)=>{"use strict";r.d(t,{ug:()=>n});let n=performance},87673:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var n=r(99014),i=r(72262),s=r(95396);function o(e){let t=e.tracerProvider||n.u.getTracerProvider(),r=e.meterProvider||i.q.getMeterProvider(),o=e.loggerProvider||s.K9.getLoggerProvider(),a=e.instrumentations?.flat()??[];for(let e=0,n=a.length;e<n;e++){let n=a[e];t&&n.setTracerProvider(t),r&&n.setMeterProvider(r),o&&n.setLoggerProvider&&n.setLoggerProvider(o),n.getConfig().enabled||n.enable()}return()=>
7{a.forEach(e=>e.disable())}}},87794:(e,t,r)=>{"use strict";r.d(t,{B:()=>l,L:()=>a});var n=r(11091);class i{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,t){let r=new i(this._entries);return r._entries.set(e,t),r}removeEntry(e){let t=new i(this._entries);return t._entries.delete(e),t}removeEntries(...e){let t=new i(this._entries);for(let r of e)t._entries.delete(r);return t}clear(){return new i}}let s=Symbol("BaggageEntryMetadata"),o=n.K.instance();function a(e={}){return new i(new Map(Object.entries(e)))}function l(e){return"string"!=typeof e&&(o.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:s,toString:()=>e}}},90871:(e,t,r)=>{"use strict";r.d(t,{D:()=>o,E:()=>H});var n,i,s,o,a=r(98829);(n=s||(s={}))[n.DROP=0]="DROP",n[n.SUM=1]="SUM",n[n.LAST_VALUE=2]="LAST_VALUE",n[n.HISTOGRAM=3]="HISTOGRAM",n[n.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM";class l{kind=s.DROP;createAccumulation(){}merge(e,t){}diff(e,t){}toMetricData(e,t,r,n){}}var c=r(93010);class u{startTime;monotonic;_current;reset;constructor(e,t,r=0,n=!1){this.startTime=e,this.monotonic=t,this._current=r,this.reset=n}record(e){this.monotonic&&e<0||(this._current+=e)}setStartTime(e){this.startTime=e}toPointValue(){return this._current}}class h{kind=s.SUM;monotonic;constructor(e){this.monotonic=e}createAccumulation(e){return new u(e,this.monotonic)}merge(e,t){let r=e.toPointValue(),n=t.toPointValue();return t.reset?new u(t.startTime,this.monotonic,n,t.reset):new u(e.startTime,this.monotonic,r+n)}diff(e,t){let r=e.toPointValue(),n=t.toPointValue();return this.monotonic&&r>n?new u(t.startTime,this.monotonic,n,!0):new u(t.startTime,this.monotonic,n-r)}toMetricData(e,t,r,n){return{descriptor:e,aggregationTemporality:t,dataPointType:c.n.SUM,dataPoints:r.map(([e,t])=>({attributes:e,startTime:t.startTime,endTime:n,value:t.toPointValue()})),isMonotonic:this.monotonic}}}var d=r(6988);class p{startTime;_current;sampleTime;constructor(e,t=0,r=[0,0]){this.startTime=e,this._current=t,this.sampleTime=r}record(e){this._current=e,this.sampleTime=(0,d.lg)(Date.now())}setStartTime(e){this.startTime=e}toPointValue(){return this._current}}class _{kind=s.LAST_VALUE;createAccumulation(e){return new p(e)}merge(e,t){let r=(0,d.w_)(t.sampleTime)>=(0,d.w_)(e.sampleTime)?t:e;return new p(e.startTime,r.toPointValue(),r.sampleTime)}diff(e,t){let r=(0,d.w_)(t.sampleTime)>=(0,d.w_)(e.sampleTime)?t:e;return new p(t.startTime,r.toPointValue(),r.sampleTime)}toMetricData(e,t,r,n){return{descriptor:e,aggregationTemporality:t,dataPointType:c.n.GAUGE,dataPoints:r.map(([e,t])=>({attributes:e,startTime:t.startTime,endTime:n,value:t.toPointValue()}))}}}var m=r(73732);class g{startTime;_boundaries;_recordMinMax;_current;constructor(e,t,r=!0,n=function(e){let t=e.map(()=>0);return t.push(0),{buckets:{boundaries:e,counts:t},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}(t)){this.startTime=e,this._boundaries=t,this._recordMinMax=r,this._current=n}record(e){if(Number.isNaN(e))return;this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);let t=(0,m.Dm)(this._boundaries,e);this._current.buckets.counts[t]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}}class f{kind=s.HISTOGRAM;_boundaries;_recordMinMax;constructor(e,t){this._boundaries=e,this._recordMinMax=t}createAccumulation(e){return new g(e,this._boundaries,this._recordMinMax)}merge(e,t){let r=e.toPointValue(),n=t.toPointValue(),i=r.buckets.counts,s=n.buckets.counts,o=Array(i.length);for(let e=0;e<i.length;e++)o[e]=i[e]+s[e];let a=1/0,l=-1/0;return this._recordMinMax&&(r.hasMinMax&&n.hasMinMax?(a=Math.min(r.min,n.min),l=Math.max(r.max,n.max)):r.hasMinMax?(a=r.min,l=r.max):n.hasMinMax&&(a=n.min,l=n.max)),new g(e.startTime,r.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:r.buckets.boundaries,counts:o},count:r.count+n.count,sum:r.sum+n.sum,hasMinMax:this._recordMinMax&&(r.hasMinMax||n.hasMinMax),min:a,max:l})}diff(e,t){let r=e.toPointValue(),n=t.toPointValue(),i=r.buckets.counts,s=n.buckets.counts,o=Array(i.length);for(let e=0;e<i.length;e++)o[e]=s[e]-i[e];return new g(t.startTime,r.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:r.buckets.boundaries,counts:o},count:n.count-r.count,sum:n.sum-r.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(e,t,r,n){return{descriptor:e,aggregationTemporality:t,dataPointType:c.n.HISTOGRAM,dataPoints:r.map(([t,r])=>{let i=r.toPointValue(),s=e.type===c.O.GAUGE||e.type===c.O.UP_DOWN_COUNTER||e.type===c.O.OBSERVABLE_GAUGE||e.type===c.O.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:t,startTime:r.startTime,endTime:n,value:{min:i.hasMinMax?i.min:void 0,max:i.hasMinMax?i.max:void 0,sum:s?void 0:i.sum,buckets:i.buckets,count:i.count}}})}}}class T{backing;indexBase;indexStart;indexEnd;constructor(e=new E,t=0,r=0,n=0){this.backing=e,this.indexBase=t,this.indexStart=r,this.indexEnd=n}get offset(){return this.indexStart}get length(){return 0===this.backing.length||this.indexEnd===this.indexStart&&0===this.at(0)?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(e,t)=>this.at(t))}at(e){let t=this.indexBase-this.indexStart;return e<t&&(e+=this.backing.length),e-=t,this.backing.countAt(e)}incrementBucket(e,t){this.backing.increment(e,t)}
7decrementBucket(e,t){this.backing.decrement(e,t)}trim(){for(let e=0;e<this.length;e++)if(0!==this.at(e)){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let e=this.length-1;e>=0;e--)if(0!==this.at(e)){this.indexEnd-=this.length-e-1;break}this._rotate()}downscale(e){this._rotate();let t=1+this.indexEnd-this.indexStart,r=1<<e,n=0,i=0;for(let e=this.indexStart;e<=this.indexEnd;){let s=e%r;s<0&&(s+=r);for(let o=s;o<r&&n<t;o++)this._relocateBucket(i,n),n++,e++;i++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart}clone(){return new T(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let e=this.indexBase-this.indexStart;0!==e&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)}_relocateBucket(e,t){e!==t&&this.incrementBucket(e,this.backing.emptyBucket(t))}}class E{_counts;constructor(e=[0]){this._counts=e}get length(){return this._counts.length}countAt(e){return this._counts[e]}growTo(e,t,r){let n=Array(e).fill(0);n.splice(r,this._counts.length-t,...this._counts.slice(t)),n.splice(0,t,...this._counts.slice(0,t)),this._counts=n}reverse(e,t){let r=Math.floor((e+t)/2)-e;for(let n=0;n<r;n++){let r=this._counts[e+n];this._counts[e+n]=this._counts[t-n-1],this._counts[t-n-1]=r}}emptyBucket(e){let t=this._counts[e];return this._counts[e]=0,t}increment(e,t){this._counts[e]+=t}decrement(e,t){this._counts[e]>=t?this._counts[e]-=t:this._counts[e]=0}clone(){return new E([...this._counts])}}function v(e){let t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,e),((0x7ff00000&t.getUint32(0))>>20)-1023}function S(e){let t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,e),(1048575&t.getUint32(0))*0x100000000+t.getUint32(4)}function b(e,t){return 0===e||e===1/0||e===-1/0||Number.isNaN(e)?e:e*Math.pow(2,t)}class y extends Error{}class w{_shift;constructor(e){this._shift=-e}mapToIndex(e){return e<22250738585072014e-324?this._minNormalLowerBoundaryIndex():v(e)+this._rightShift(S(e)-1,52)>>this._shift}lowerBoundary(e){let t=this._minNormalLowerBoundaryIndex();if(e<t)throw new y(`underflow: ${e} is < minimum lower boundary: ${t}`);let r=this._maxNormalLowerBoundaryIndex();if(e>r)throw new y(`overflow: ${e} is > maximum lower boundary: ${r}`);return b(1,e<<this._shift)}get scale(){return 0===this._shift?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=-1022>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return 1023>>this._shift}_rightShift(e,t){return Math.floor(e*Math.pow(2,-t))}}class A{_scale;_scaleFactor;_inverseFactor;constructor(e){this._scale=e,this._scaleFactor=b(Math.LOG2E,e),this._inverseFactor=b(Math.LN2,-e)}mapToIndex(e){if(e<=22250738585072014e-324)return this._minNormalLowerBoundaryIndex()-1;if(0===S(e))return(v(e)<<this._scale)-1;let t=Math.floor(Math.log(e)*this._scaleFactor),r=this._maxNormalLowerBoundaryIndex();return t>=r?r:t}lowerBoundary(e){let t=this._maxNormalLowerBoundaryIndex();if(e>=t){if(e===t)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new y(`overflow: ${e} is > maximum lower boundary: ${t}`)}let r=this._minNormalLowerBoundaryIndex();if(e<=r){if(e===r)return 22250738585072014e-324;if(e===r-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new y(`overflow: ${e} is < minimum lower boundary: ${r}`)}return Math.exp(e*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return -1022<<this._scale}_maxNormalLowerBoundaryIndex(){return(1024<<this._scale)-1}}let C=Array.from({length:31},(e,t)=>t>10?new A(t-10):new w(t-10));function O(e){if(e>20||e<-10)throw new y(`expected scale >= -10 && <= 20, got: ${e}`);return C[e+10]}class k{static combine(e,t){return new k(Math.min(e.low,t.low),Math.max(e.high,t.high))}low;high;constructor(e,t){this.low=e,this.high=t}}class L{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(e,t=160,r=!0,n=0,i=0,s=0,o=1/0,l=-1/0,c=new T,u=new T,h=O(20)){this.startTime=e,this._maxSize=t,this._recordMinMax=r,this._sum=n,this._count=i,this._zeroCount=s,this._min=o,this._max=l,this._positive=c,this._negative=u,this._mapping=h,this._maxSize<2&&(a.s.warn(`Exponential Histogram Max Size set to ${this._maxSize}, \ 8 changing to the minimum size of: 2`),this._maxSize=2)}record(e){this.updateByIncrement(e,1)}setStartTime(e){this.startTime=e}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}
8get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(e,t){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=t,0===e){this._zeroCount+=t;return}this._sum+=e*t,e>0?this._updateBuckets(this._positive,e,t):this._updateBuckets(this._negative,-e,t)}}merge(e){0===this._count?(this._min=e.min,this._max=e.max):0!==e.count&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;let t=this._minScale(e);this._downscale(this.scale-t),this._mergeBuckets(this.positive,e,e.positive,t),this._mergeBuckets(this.negative,e,e.negative,t)}diff(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;let t=this._minScale(e);this._downscale(this.scale-t),this._diffBuckets(this.positive,e,e.positive,t),this._diffBuckets(this.negative,e,e.negative,t)}clone(){return new L(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(e,t,r){let n=this._mapping.mapToIndex(t),i=!1,s=0,o=0;if(0===e.length?(e.indexStart=n,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):n<e.indexStart&&e.indexEnd-n>=this._maxSize?(i=!0,o=n,s=e.indexEnd):n>e.indexEnd&&n-e.indexStart>=this._maxSize&&(i=!0,o=e.indexStart,s=n),i){let e=this._changeScale(s,o);this._downscale(e),n=this._mapping.mapToIndex(t)}this._incrementIndexBy(e,n,r)}_incrementIndexBy(e,t,r){if(0===r)return;if(0===e.length&&(e.indexStart=e.indexEnd=e.indexBase=t),t<e.indexStart){let r=e.indexEnd-t;r>=e.backing.length&&this._grow(e,r+1),e.indexStart=t}else if(t>e.indexEnd){let r=t-e.indexStart;r>=e.backing.length&&this._grow(e,r+1),e.indexEnd=t}let n=t-e.indexBase;n<0&&(n+=e.backing.length),e.incrementBucket(n,r)}_grow(e,t){var r;let n=e.backing.length,i=e.indexBase-e.indexStart,s=(r=t,r--,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r|=r>>16,++r);s>this._maxSize&&(s=this._maxSize);let o=s-i;e.backing.growTo(s,n-i,o)}_changeScale(e,t){let r=0;for(;e-t>=this._maxSize;)e>>=1,t>>=1,r++;return r}_downscale(e){if(0===e)return;if(e<0)throw Error(`impossible change of scale: ${this.scale}`);let t=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=O(t)}_minScale(e){let t=Math.min(this.scale,e.scale),r=k.combine(this._highLowAtScale(this.positive,this.scale,t),this._highLowAtScale(e.positive,e.scale,t)),n=k.combine(this._highLowAtScale(this.negative,this.scale,t),this._highLowAtScale(e.negative,e.scale,t));return Math.min(t-this._changeScale(r.high,r.low),t-this._changeScale(n.high,n.low))}_highLowAtScale(e,t,r){if(0===e.length)return new k(0,-1);let n=t-r;return new k(e.indexStart>>n,e.indexEnd>>n)}_mergeBuckets(e,t,r,n){let i=r.offset,s=t.scale-n;for(let t=0;t<r.length;t++)this._incrementIndexBy(e,i+t>>s,r.at(t))}_diffBuckets(e,t,r,n){let i=r.offset,s=t.scale-n;for(let t=0;t<r.length;t++){let n=(i+t>>s)-e.indexBase;n<0&&(n+=e.backing.length),e.decrementBucket(n,r.at(t))}e.trim()}}class P{kind=s.EXPONENTIAL_HISTOGRAM;_maxSize;_recordMinMax;constructor(e,t){this._maxSize=e,this._recordMinMax=t}createAccumulation(e){return new L(e,this._maxSize,this._recordMinMax)}merge(e,t){let r=t.clone();return r.merge(e),r}diff(e,t){let r=t.clone();return r.diff(e),r}toMetricData(e,t,r,n){return{descriptor:e,aggregationTemporality:t,dataPointType:c.n.EXPONENTIAL_HISTOGRAM,dataPoints:r.map(([t,r])=>{let i=r.toPointValue(),s=e.type===c.O.GAUGE||e.type===c.O.UP_DOWN_COUNTER||e.type===c.O.OBSERVABLE_GAUGE||e.type===c.O.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:t,startTime:r.startTime,endTime:n,value:{min:i.hasMinMax?i.min:void 0,max:i.hasMinMax?i.max:void 0,sum:s?void 0:i.sum,positive:{offset:i.positive.offset,bucketCounts:i.positive.bucketCounts}
8,negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},count:i.count,scale:i.scale,zeroCount:i.zeroCount}}})}}}class R{static DEFAULT_INSTANCE=new l;createAggregator(e){return R.DEFAULT_INSTANCE}}class N{static MONOTONIC_INSTANCE=new h(!0);static NON_MONOTONIC_INSTANCE=new h(!1);createAggregator(e){switch(e.type){case c.O.COUNTER:case c.O.OBSERVABLE_COUNTER:case c.O.HISTOGRAM:return N.MONOTONIC_INSTANCE;default:return N.NON_MONOTONIC_INSTANCE}}}class M{static DEFAULT_INSTANCE=new _;createAggregator(e){return M.DEFAULT_INSTANCE}}class D{static DEFAULT_INSTANCE=new f([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(e){return D.DEFAULT_INSTANCE}}class x{_boundaries;_recordMinMax;constructor(e,t=!0){if(null==e)throw Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");const r=(e=(e=e.concat()).sort((e,t)=>e-t)).lastIndexOf(-1/0);let n=e.indexOf(1/0);-1===n&&(n=void 0),this._boundaries=e.slice(r+1,n),this._recordMinMax=t}createAggregator(e){return new f(this._boundaries,this._recordMinMax)}}class I{_maxSize;_recordMinMax;constructor(e=160,t=!0){this._maxSize=e,this._recordMinMax=t}createAggregator(e){return new P(this._maxSize,this._recordMinMax)}}class U{_resolve(e){switch(e.type){case c.O.COUNTER:case c.O.UP_DOWN_COUNTER:case c.O.OBSERVABLE_COUNTER:case c.O.OBSERVABLE_UP_DOWN_COUNTER:return z;case c.O.GAUGE:case c.O.OBSERVABLE_GAUGE:return F;case c.O.HISTOGRAM:if(e.advice.explicitBucketBoundaries)return new x(e.advice.explicitBucketBoundaries);return V}return a.s.warn(`Unable to recognize instrument type: ${e.type}`),B}createAggregator(e){return this._resolve(e).createAggregator(e)}}let B=new R,z=new N,F=new M,V=new D;new I;let $=new U;function H(e){switch(e.type){case o.DEFAULT:return $;case o.DROP:return B;case o.SUM:return z;case o.LAST_VALUE:return F;case o.EXPONENTIAL_HISTOGRAM:return new I(e.options?.maxSize,e.options?.recordMinMax);case o.EXPLICIT_BUCKET_HISTOGRAM:if(null==e.options)return V;return new x(e.options?.boundaries,e.options?.recordMinMax);default:throw Error("Unsupported Aggregation")}}(i=o||(o={}))[i.DEFAULT=0]="DEFAULT",i[i.DROP=1]="DROP",i[i.SUM=2]="SUM",i[i.LAST_VALUE=3]="LAST_VALUE",i[i.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",i[i.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"},93010:(e,t,r)=>{"use strict";var n,i,s,o;r.d(t,{O:()=>n,n:()=>i}),(s=n||(n={})).COUNTER="COUNTER",s.GAUGE="GAUGE",s.HISTOGRAM="HISTOGRAM",s.UP_DOWN_COUNTER="UP_DOWN_COUNTER",s.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",s.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",s.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER",(o=i||(i={}))[o.HISTOGRAM=0]="HISTOGRAM",o[o.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",o[o.GAUGE=2]="GAUGE",o[o.SUM=3]="SUM"},95396:(e,t,r)=>{"use strict";r.d(t,{K9:()=>d});let n=Symbol.for("io.opentelemetry.js.api.logs"),i=globalThis;class s{emit(e){}enabled(){return!1}}let o=new s;class a{getLogger(e,t,r){return new s}}let l=new a;class c{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}emit(e){this._getLogger().emit(e)}enabled(e){return this._getLogger().enabled(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):o}}class u{getLogger(e,t,r){var n;return null!=(n=this._getDelegateLogger(e,t,r))?n:new c(this,e,t,r)}_getDelegate(){var e;return null!=(e=this._delegate)?e:l}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,r){var n;return null==(n=this._delegate)?void 0:n.getLogger(e,t,r)}}class h{constructor(){this._proxyLoggerProvider=new u}static getInstance(){return this._instance||(this._instance=new h),this._instance}setGlobalLoggerProvider(e){return i[n]?this.getLoggerProvider():(i[n]=t=>1===t?e:l,this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,t;return null!=(t=null==(e=i[n])?void 0:e.call(i,1))?t:this._proxyLoggerProvider}getLogger(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)}disable(){delete i[n],this._proxyLoggerProvider=new u}}let d=h.getInstance()},96105:(e,t,r)=>{"use strict";var n,i;r.d(t,{D:()=>n}),(i=n||(n={})).CONNECT_END="connectEnd",i.CONNECT_START="connectStart",i.DECODED_BODY_SIZE="decodedBodySize",i.DOM_COMPLETE="domComplete",i.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",i.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",i.DOM_INTERACTIVE="domInteractive",i.DOMAIN_LOOKUP_END="domainLookupEnd",i.DOMAIN_LOOKUP_START="domainLookupStart",i.ENCODED_BODY_SIZE="encodedBodySize",i.FETCH_START="fetchStart",i.LOAD_
8EVENT_END="loadEventEnd",i.LOAD_EVENT_START="loadEventStart",i.NAVIGATION_START="navigationStart",i.REDIRECT_END="redirectEnd",i.REDIRECT_START="redirectStart",i.REQUEST_START="requestStart",i.RESPONSE_END="responseEnd",i.RESPONSE_START="responseStart",i.SECURE_CONNECTION_START="secureConnectionStart",i.START_TIME="startTime",i.UNLOAD_EVENT_END="unloadEventEnd",i.UNLOAD_EVENT_START="unloadEventStart"},97442:(e,t,r)=>{"use strict";r.d(t,{r:()=>L});var n,i,s,o,a,l,c,u,h,d,p,_,m=r(48130);(n=c||(c={}))[n.DELTA=0]="DELTA",n[n.CUMULATIVE=1]="CUMULATIVE",(i=u||(u={})).COUNTER="COUNTER",i.GAUGE="GAUGE",i.HISTOGRAM="HISTOGRAM",i.UP_DOWN_COUNTER="UP_DOWN_COUNTER",i.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",i.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",i.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER",(s=h||(h={}))[s.HISTOGRAM=0]="HISTOGRAM",s[s.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",s[s.GAUGE=2]="GAUGE",s[s.SUM=3]="SUM",(o=d||(d={}))[o.DEFAULT=0]="DEFAULT",o[o.DROP=1]="DROP",o[o.SUM=2]="SUM",o[o.LAST_VALUE=3]="LAST_VALUE",o[o.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",o[o.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM",(a=p||(p={}))[a.DELTA=0]="DELTA",a[a.CUMULATIVE=1]="CUMULATIVE",a[a.LOWMEMORY=2]="LOWMEMORY";var g=r(40701),f=r(98829);let T=()=>c.CUMULATIVE,E=e=>{switch(e){case u.COUNTER:case u.OBSERVABLE_COUNTER:case u.GAUGE:case u.HISTOGRAM:case u.OBSERVABLE_GAUGE:return c.DELTA;case u.UP_DOWN_COUNTER:case u.OBSERVABLE_UP_DOWN_COUNTER:return c.CUMULATIVE}},v=e=>{switch(e){case u.COUNTER:case u.HISTOGRAM:return c.DELTA;case u.GAUGE:case u.UP_DOWN_COUNTER:case u.OBSERVABLE_UP_DOWN_COUNTER:case u.OBSERVABLE_COUNTER:case u.OBSERVABLE_GAUGE:return c.CUMULATIVE}},S=Object.freeze({type:d.DEFAULT});class b extends g.S{_aggregationTemporalitySelector;_aggregationSelector;constructor(e,t){super(e),this._aggregationSelector=function(e){return e?.aggregationPreference??(()=>S)}(t),this._aggregationTemporalitySelector=function(e){let t;return null!=e?e===p.DELTA?E:e===p.LOWMEMORY?v:T:"cumulative"===(t=((0,m.HF)("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE")??"cumulative").toLowerCase())?T:"delta"===t?E:"lowmemory"===t?v:(f.s.warn(`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '${t}', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead.`),T)}(t?.temporalityPreference)}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}}var y=r(8025);(l=_||(_={}))[l.AGGREGATION_TEMPORALITY_UNSPECIFIED=0]="AGGREGATION_TEMPORALITY_UNSPECIFIED",l[l.AGGREGATION_TEMPORALITY_DELTA=1]="AGGREGATION_TEMPORALITY_DELTA",l[l.AGGREGATION_TEMPORALITY_CUMULATIVE=2]="AGGREGATION_TEMPORALITY_CUMULATIVE";var w=r(65297);function A(e,t){return e.dataPoints.map(r=>(function(e,t,r){let n={attributes:(0,w.Zs)(e.attributes,r),startTimeUnixNano:r.encodeHrTime(e.startTime),timeUnixNano:r.encodeHrTime(e.endTime)};switch(t){case y.e.INT:n.asInt=e.value;break;case y.e.DOUBLE:n.asDouble=e.value}return n})(r,e.descriptor.valueType,t))}var C=r(55657);let O={serializeRequest:e=>{var t,r;let n=(t=[e],r=C.w9,{resourceMetrics:t.map(e=>{var t,n;let i;return{resource:i=(0,w.Zg)(e.resource,r),schemaUrl:i.schemaUrl,scopeMetrics:(t=e.scopeMetrics,n=r,Array.from(t.map(e=>({scope:(0,w.d1)(e.scope),metrics:e.metrics.map(e=>(function(e,t){var r,n,i,s;let o={name:e.descriptor.name,description:e.descriptor.description,unit:e.descriptor.unit},a=function(e){switch(e){case c.DELTA:return _.AGGREGATION_TEMPORALITY_DELTA;case c.CUMULATIVE:return _.AGGREGATION_TEMPORALITY_CUMULATIVE}}(e.aggregationTemporality);switch(e.dataPointType){case h.SUM:o.sum={aggregationTemporality:a,isMonotonic:e.isMonotonic,dataPoints:A(e,t)};break;case h.GAUGE:o.gauge={dataPoints:A(e,t)};break;case h.HISTOGRAM:o.histogram={aggregationTemporality:a,dataPoints:(r=e,n=t,r.dataPoints.map(e=>{let t=e.value;return{attributes:(0,w.Zs)(e.attributes,n),bucketCounts:t.buckets.counts,explicitBounds:t.buckets.boundaries,count:t.count,sum:t.sum,min:t.min,max:t.max,startTimeUnixNano:n.encodeHrTime(e.startTime),timeUnixNano:n.encodeHrTime(e.endTime)}}))};break;case h.EXPONENTIAL_HISTOGRAM:o.exponentialHistogram={aggregationTemporality:a,dataPoints:(i=e,s=t,i.dataPoints.map(e=>{let t=e.value;return{attributes:(0,w.Zs)(e.attributes,s),count:t.count,min:t.min,max:t.max,sum:t.sum,positive:{offset:t.positive.offset,bucketCounts:t.positive.bu
8cketCounts},negative:{offset:t.negative.offset,bucketCounts:t.negative.bucketCounts},scale:t.scale,zeroCount:t.zeroCount,startTimeUnixNano:s.encodeHrTime(e.startTime),timeUnixNano:s.encodeHrTime(e.endTime)}}))}}return o})(e,n)),schemaUrl:e.scope.schemaUrl}))))}})});return new TextEncoder().encode(JSON.stringify(n))},deserializeResponse:e=>{if(0===e.length)return{};let t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(e){return f.s.warn(`Failed to parse metrics export response: ${e.message}. Returning empty response`),{}}}};var k=r(2395);class L extends b{constructor(e){super((0,k.M)(e??{},O,"v1/metrics",{"Content-Type":"application/json"}),e)}}},98829:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n=r(11091).K.instance()},98931:(e,t,r)=>{"use strict";function n(e,t){return"string"==typeof t?e===t:!!e.match(t)}function i(e,t){if(!t)return!1;for(let r of t)if(n(e,r))return!0;return!1}r.d(t,{K:()=>i,f:()=>n})}}]);
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.