1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1334],{1669:(e,t,r)=>{var n=r(70859),i=r(23355);e.exports=function(e,t,r,s,o){return new i(n().w(e,t,r,s),o||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},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,c=i-Date.now();if(a>c)return s.s.info(`Export retry time ${Math.round(a)}ms exceeds remaining timeout ${Math.round(c)}ms, not retrying further.`),o;s.s.verbose(`Scheduling export retry in ${Math.round(a)}ms`),o=await this.retry(e,c,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 c extends Error{code;name="OTLPExporterError";data;constructor(e,t,r){super(e),this.data=r,this.code=t}}class u{_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 c("Export failed with retryable status")}):t({code:i.FAILED,error:new c("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 l=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 c=e.byteLength,u=l+c>61440,d=h>=9,p=!u&&!d;p?(l+=c,h++):s.s.debug(`keepalive disabled: ${(c/1024).toFixed(1)}KB payload, ${h} pending (${u?"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&&(l-=c,h--)}}shutdown(){}}function p(e,t,r,n){var i,c,l,h,p,f,g,m,_,v;return g=(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},{...(c={},l={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??c.timeoutMillis??l.timeoutMillis),concurrencyLimit:i.concurrencyLimit??c.concurrencyLimit??l.concurrencyLimit,compression:i.compression??c.compression??l.compression}),headers:(h=i.headers,p=c.headers,f=l.headers,async()=>{var e;let t,r={...await f()},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)??c.url??l.url}),m=t,_={transport:new o({transport:new d(g)}.transport),serializer:m,promiseHandler:new a(g.concurrencyLimit)},v={timeout:g.timeoutMillis},new u(_.transport,_.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))}},_.promiseHandler,v.timeout)}},3533:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),c=0;c<s.length;c++){var u=s[c];if(!a(u))return!1;var l=e[u],h=t[u];if(!1===(i=r?r.call(n,l,h,u):void 0)||void 0===i&&l!==h)return!1}return!0}},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"},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})},7745:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{A:()=>n})},7848:(e,t,r)=>{"use strict";r.d(t,{A2:()=>h,E$:()=>f,HZ:()=>p,Mb:()=>s,OR:()=>u,UX:()=>d,WQ:()=>v,aJ:()=>_,aO:()=>m,d6:()=>o,kS:()=>l,n4:()=>a,nW:()=>c,oJ:()=>n,qV:()=>g,wL:()=>i});let n="error.type",i="exception.message",s="exception.stacktrace",o="exception.type",a="http.request.method",c="http.request.method_original",u="http.response.status_code",l="server.address",h="server.port",d="service.name",p="service.version",f="telemetry.sdk.language",g="webjs",m="telemetry.sdk.name",_="telemetry.sdk.version",v="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]}},11091:(e,t,r)=>{"use strict";r.d(t,{K:()=>c});var n,i,s=r(55808);class o{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return a("debug",this._namespace,e)}error(...e){return a("error",this._namespace,e)}info(...e){return a("info",this._namespace,e)}warn(...e){return a("warn",this._namespace,e)}verbose(...e){return a("verbose",this._namespace,e)}}function a(e,t,r){let n=(0,s.mS)("diag");if(n)return n[e](t,...r)}(n=i||(i={}
1))[n.NONE=0]="NONE",n[n.ERROR=30]="ERROR",n[n.WARN=50]="WARN",n[n.INFO=60]="INFO",n[n.DEBUG=70]="DEBUG",n[n.VERBOSE=80]="VERBOSE",n[n.ALL=9999]="ALL";class c{static instance(){return this._instance||(this._instance=new c),this._instance}constructor(){function e(e){return function(...t){let r=(0,s.mS)("diag");if(r)return r[e](...t)}}const t=this;t.setLogger=(e,r={logLevel:i.INFO})=>{var n,o,a;if(e===t){let e=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!=(n=e.stack)?n:e.message),!1}"number"==typeof r&&(r={logLevel:r});let c=(0,s.mS)("diag"),u=function(e,t){function r(r,n){let i=t[r];return"function"==typeof i&&e>=n?i.bind(t):function(){}}return e<i.NONE?e=i.NONE:e>i.ALL&&(e=i.ALL),t=t||{},{error:r("error",i.ERROR),warn:r("warn",i.WARN),info:r("info",i.INFO),debug:r("debug",i.DEBUG),verbose:r("verbose",i.VERBOSE)}}(null!=(o=r.logLevel)?o:i.INFO,e);if(c&&!r.suppressOverrideMessage){let e=null!=(a=Error().stack)?a:"<failed to generate stacktrace>";c.warn(`Current logger will be overwritten from ${e}
1`),u.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,s.$G)("diag",u,t,!0)},t.disable=()=>{(0,s.kv)("diag",t)},t.createComponentLogger=e=>new o(e),t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}}},11541:(e,t,r)=>{var n=r(24630),i=r(70859),s=r(70817),o=r(1669),a=r(23355),c=r(29771),u=r(76725);function l(){"use strict";var t=i(),r=t.m(l),h=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function f(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,p[e],t)},delegateYield:function(e,i,s){return t.resultName=i,r(n.d,u(e),s)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,r,n,i){return t.w(f(e),r,n,i&&i.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:a,async:function(e,t,r,n,i){return(d(t)?o:s)(f(e),t,r,n,i)},keys:c,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},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:()=>l});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 c={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,c=[],u=r.values(),l=u.next();for(;!l.done;){let e=l.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));c.push({scope:(0,i.d1)(e[0].instrumentationScope),spans:r,schemaUrl:e[0].instrumentationScope.schemaUrl})}l=u.next()}let h=(0,i.Zg)(e,t),d={resource:h,scopeSpans:c,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 u=r(2395);class l extends n.S{constructor(e={}){super((0,u.M)(e,c,"v1/traces",{"Content-Type":"application/json"}))}}},19434:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},21434:(e,t,r)=>{"use strict";function n(e){return Symbol.for(e)}r.d(t,{l:()=>s,n:()=>n});class i{constructor(e){const t=this;t._currentContext=e?new Map(e):new Map,t.getValue=e=>t._currentContext.get(e),t.setValue=(e,r)=>{let n=new i(t._currentContext);return n._currentContext.set(e,r),n},t.deleteValue=e=>{let r=new i(t._currentContext);return r._currentContext.delete(e),r}}}let s=new i},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()}}},22774:(e,t,r)=>{"use strict";function n(e,t,r,n,i,s,o){try{var a=e[s](o),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,c,"next",e)}function c(e){n(o,i,s,a,c,"throw",e)}a(void 0)})}}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function u(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,{A:()=>L});var d=r(55602),p=r.n(d),f=r(56493),g=r(7745),m=r(62852),_=r(42423);let v=function(e){return e.reduce(function(e,t){return e.concat(t.prebid.map(function(e){return{code:t.id,mediaTypes:e.mediaTypes,bids:e.bids}}))},[])};function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?b(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=a(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var S={marginPercent:0,mobileScaling:1},E=function(){return{aps:!1,prebid:!1}},T=function(){var e,t;function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};s(this,r),this.config=e,this.slots={},this.outOfPageSlots={},this.plugins=t,this.onError=n,this.gptSizeMappings={},this.customEventCallbacks={},this.customEventHandlers={},this.queue=[],this.setDefaultConfig()}return u(r,[{key:"setup",value:(e=i(p().mark(function e(){var t,n,i,s,o,a,c,u,l,h,d,f=this;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isPrebidUsed=void 0===this.config.usePrebid?void 0!==window.pbjs:this.config.usePrebid,this.isAPSUsed=void 0===this.config.useAPS?void 0!==window.apstag:this.config.useAPS,this.executePlugins("setup"),t=this.slots,n=this.outOfPageSlots,i=this.queue,s=this.isPrebidUsed,o=this.isAPSUsed,this.setupCustomEvents(),a=[r.queueForGPT(this.setupGpt.bind(this),this.onError)],o)try{window.apstag.init(y(y({},this.config.aps),{},{adServer:"googletag"}))}catch(e){this.onError(e)}return s&&a.push(r.queueForPrebid(this.setupPrebid.bind(this),this.onError)),e.next=10,Promise.all(a);case 10:if(0!==i.length){e.next=12;break}return e.abrupt("return");case 12:for(c=function(e){var t=i[e],r=t.id,n=t.customEventHandlers;Object.keys(n).forEach(function(e){return f.customEventCallbacks[e]||(f.customEventCallbacks[e]={}),f.customEventCallbacks[e][r]=n[e]})},u=0;u<i.length;u++)c(u);if(l=i.map(function(e){return e.id}),h=i.map(function(e){var r=e.id;return t[r].gpt||n[r]}),d=E(),s&&r.queueForPrebid(function(){return window.pbjs.requestBids({adUnitCodes:l,bidsBackHandler:function(){window.pbjs.setTargetingForGPTAsync(l),d.prebid=!0,f.refreshSlots(h,d)}})},this.onError),this.isAPSUsed)try{window.apstag.fetchBids({slots:i.map(function(e){return t[e.id].aps})},function(){r.queueForGPT(function(){window.apstag.setDisplayBids(),d.aps=!0,f.refreshSlots(h,d)},f.onError)})}catch(e){this.onError(e)}s||o||r.queueForGPT(function(){return window.googletag.pubads().refresh(h)},this.onError);case 20:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"teardown",value:(t=i(p().mark(function e(){var t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.teardownCustomEvents(),t=[r.queueForGPT(this.teardownGpt.bind(this),this.onError)],this.isPrebidUsed&&t.push(r.queueForPrebid(this.teardownPrebid.bind(this),this.onError)),e.next=5,Promise.all(t);case 5:this.slots={},this.gptSizeMappings={},this.queue=[];case 8:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"activate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.slots,s=this.isPrebidUsed;if(0===Object.values(i).length)return void this.queue.push({id:e,customEventHandlers:n});Object.keys(n).forEach(function(r){return t.customEventCallbacks[r]||(t.customEventCallbacks[r]={}),t.customEventCallbacks[r][e]=n[r]});var o=E();if(s&&r.queueForPrebid(function(){return window.pbjs.requestBids({adUnitCodes:[e],bidsBackHandler:function(){window.pbjs.setTargetingForGPTAsync([e]),o.prebid=!0,t.refreshSlots([i[e].gpt],o)}})},this.onError),this.isAPSUsed)try{window.apstag.fetchBids({slots:[i[e].aps]},function(){r.queueForGPT(function(){window.apstag.setDisplayBids(),o.aps=!0,t.refreshSlots([i[e].gpt],o)},t.onError)})}catch(e){this.onError(e)}this.isPrebidUsed||this.isAPSUsed||r.queueForGPT(function(){return window.googletag.pubads().refresh([i[e].gpt])},this.onError)}},{key:"isConfigReady",value:function(){return!!this.config}},{key:"setConfig",value:function(e){this.config=e,this.setDefaultConfig()}},{key:"setupCustomEvents",value:function(){var e=this;this.config.customEvents&&Object.keys(this.config.customEvents).forEac
1h(function(t){return e.setupCustomEvent(t,e.config.customEvents[t])})}},{key:"setupCustomEvent",value:function(e,t){var r=t.eventMessagePrefix,n=t.divIdPrefix,i=this.customEventCallbacks;this.customEventHandlers[e]=function(t){var s=t.data;if("string"==typeof s&&s.startsWith("".concat(r))){var o="".concat(n||"").concat(s.substr(r.length)),a=i[e];if(a){var c=a[o];c&&c()}}},window.addEventListener("message",this.customEventHandlers[e])}},{key:"teardownCustomEvents",value:function(){var e=this;this.config.customEvents&&Object.keys(this.config.customEvents).forEach(function(t){return window.removeEventListener("message",e.customEventHandlers[t])})}},{key:"defineGptSizeMappings",value:function(){if(this.config.sizeMappings)for(var e=Object.entries(this.config.sizeMappings),t=0;t<e.length;t++){for(var r=(0,_.A)(e[t],2),n=r[0],i=r[1],s=window.googletag.sizeMapping(),o=0;o<i.length;o++){var a=i[o],c=a.viewPortSize,u=a.sizes;s.addSize(c,u)}this.gptSizeMappings[n]=s.build()}}},{key:"getGptSizeMapping",value:function(e){return e&&this.gptSizeMappings[e]?this.gptSizeMappings[e]:null}},{key:"defineSlots",value:function(){var e=this;this.config.slots&&this.config.slots.forEach(function(t){var r=t.id,n=t.path,i=t.collapseEmptyDiv,s=t.targeting,a=t.sizes,c=t.sizeMappingName,u=window.googletag.defineSlot(n||e.config.path,a,r),l=e.getGptSizeMapping(c);l&&u.defineSizeMapping(l),i&&i.length&&i.length>0&&u.setCollapseEmptyDiv.apply(u,function(e){if(Array.isArray(e))return(0,g.A)(e)}(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||(0,m.A)(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());for(var h=Object.entries(void 0===s?{}:s),d=0;d<h.length;d++){var p=(0,_.A)(h[d],2),f=p[0],v=p[1];u.setTargeting(f,v)}u.addService(window.googletag.pubads());var b={slotID:r,slotName:n,sizes:a.filter(function(e){return"object"===o(e)&&"number"==typeof e[0]&&"number"==typeof e[1]})};e.slots[r]={gpt:u,aps:b}})}},{key:"defineOutOfPageSlots",value:function(){var e=this;this.config.outOfPageSlots&&this.config.outOfPageSlots.forEach(function(t){var r=t.id,n=t.path,i=window.googletag.defineOutOfPageSlot(n||e.config.path,r);i.addService(window.googletag.pubads()),e.outOfPageSlots[r]=i})}},{key:"defineInterstitialSlot",value:function(){if(this.config.interstitialSlot){var e=this.config.interstitialSlot,t=e.path,r=e.targeting,n=window.googletag.defineOutOfPageSlot(t||this.config.path,window.googletag.enums.OutOfPageFormat.INTERSTITIAL);if(n){for(var i=Object.entries(r||[]),s=0;s<i.length;s++){var o=(0,_.A)(i[s],2),a=o[0],c=o[1];n.setTargeting(a,c)}n.addService(window.googletag.pubads()),this.interstitialSlot=n}}}},{key:"displaySlots",value:function(){this.executePlugins("displaySlots"),this.config.slots.forEach(function(e){var t=e.id;window.googletag.display(t)})}},{key:"displayOutOfPageSlots",value:function(){this.executePlugins("displayOutOfPageSlot"),this.config.outOfPageSlots&&this.config.outOfPageSlots.forEach(function(e){var t=e.id;window.googletag.display(t)})}},{key:"refreshInterstitialSlot",value:function(){this.executePlugins("refreshInterstitialSlot"),this.interstitialSlot&&window.googletag.pubads().refresh([this.interstitialSlot])}},{key:"setupPrebid",value:function(){this.executePlugins("setupPrebid");var e=v(this.config.slots);window.pbjs.addAdUnits(e),window.pbjs.setConfig(this.config.prebid)}},{key:"teardownPrebid",value:function(){this.executePlugins("teardownPrebid"),v(this.config.slots).forEach(function(e){var t=e.code;return window.pbjs.removeAdUnit(t)})}},{key:"setupGpt",value:function(){this.executePlugins("setupGpt");var e=window.googletag.pubads(),t=this.config.targeting;this.defineGptSizeMappings(),this.defineSlots(),this.defineOutOfPageSlots(),this.defineInterstitialSlot();var r=Object.entries(t);e.clearTargeting();for(var n=0;n<r.length;n++){var i=(0,_.A)(r[n],2),s=i[0],o=i[1];e.setTargeting(s,o)}e.disableInitialLoad(),e.enableSingleRequest(),window.googletag.enableServices(),this.displaySlots(),this.displayOutOfPageSlots(),this.refreshInterstitialSlot(
1)}},{key:"teardownGpt",value:function(){this.executePlugins("teardownGpt"),window.googletag.destroySlots()}},{key:"setDefaultConfig",value:function(){this.config&&(this.config.prebid||(this.config.prebid={}),this.config.metaData||(this.config.metaData={}),this.config.targeting||(this.config.targeting={}),!0===this.config.enableLazyLoad&&(this.config.enableLazyLoad=S),this.config.slots&&(this.config.slots=this.config.slots.map(function(e){return!0===e.enableLazyLoad?y(y({},e),{},{enableLazyLoad:S}):e})))}},{key:"executePlugins",value:function(e){for(var t=0;t<this.plugins.length;t++){var r=this.plugins[t][e];r&&r.call(this)}}},{key:"refreshSlots",value:function(e,t){this.isAPSUsed===t.aps&&this.isPrebidUsed===t.prebid&&r.queueForGPT(function(){window.googletag.pubads().refresh(e)},this.onError)}}],[{key:"queueForGPT",value:function(e,t){return r.withQueue(window.googletag.cmd,e,t)}},{key:"queueForPrebid",value:function(e,t){return r.withQueue(window.pbjs.que,e,t)}},{key:"withQueue",value:function(e,t,r){return new Promise(function(n){return e.push(function(){try{t(),n()}catch(e){r(e)}})})}}]),r}(),w=r(93394),A=r.n(w);let O=A().shape({id:A().string.isRequired,path:A().string,collapseEmptyDiv:A().arrayOf(A().bool),targeting:A().object,sizes:A().oneOfType([A().oneOfType([A().string,A().arrayOf(A().number)]),A().arrayOf(A().oneOfType([A().string,A().arrayOf(A().number)]))]),sizeMappingName:A().string,prebid:A().arrayOf(A().shape({mediaTypes:A().objectOf(A().shape({sizes:A().arrayOf(A().arrayOf(A().number))})).isRequired,bids:A().arrayOf(A().shape({bidder:A().string.isRequired,params:A().object,labelAny:A().arrayOf(A().string),labelAll:A().arrayOf(A().string)})).isRequired})),enableLazyLoad:A().oneOfType([A().bool,A().shape({marginPercent:A().number,mobileScaling:A().number})])}),C=A().shape({path:A().string,targeting:A().object,usePrebid:A().bool,prebid:A().shape({debug:A().bool,bidderTimeout:A().number,enableSendAllBids:A().bool,bidderSequence:A().oneOf(["random","fixed"]),publisherDomain:A().string,cookieSyncDelay:A().number,priceGranularity:A().oneOfType([A().oneOf(["low","medium","high","auto","dense"]),A().shape({buckets:A().arrayOf(A().shape({precision:A().number,max:A().number.isRequired,increment:A().number.isRequired})).isRequired})]),mediaTypePriceGranularity:A().shape({video:A().oneOfType([A().oneOf(["low","medium","high","auto","dense"]),A().shape({buckets:A().arrayOf(A().shape({precision:A().number,max:A().number.isRequired,increment:A().number.isRequired})).isRequired})]),banner:A().oneOfType([A().oneOf(["low","medium","high","auto","dense"]),A().shape({buckets:A().arrayOf(A().shape({precision:A().number,max:A().number.isRequired,increment:A().number.isRequired})).isRequired})]),native:A().oneOfType([A().oneOf(["low","medium","high","auto","dense"]),A().shape({buckets:A().arrayOf(A().shape({precision:A().number,max:A().number.isRequired,increment:A().number.isRequired})).isRequired})])}),sizeConfig:A().arrayOf(A().shape({mediaQuery:A().string.isRequired,sizesSupported:A().arrayOf(A().oneOfType([A().string,A().arrayOf(A().number)])),labels:A().arrayOf(A().string)}))}),useAPS:A().bool,aps:A().shape({pubID:A().string,bidTimeout:A().number,deals:A().bool}),sizeMappings:A().objectOf(A().arrayOf(A().shape({viewPortSize:A().arrayOf(A().number).isRequired,sizes:A().arrayOf(A().oneOfType([A().string,A().arrayOf(A().number)])).isRequired}))),slots:A().arrayOf(O),outOfPageSlots:A().arrayOf(A().shape({id:A().string})),interstitialSlot:A().shape({path:A().string.isRequired,targeting:A().object}),customEvents:A().objectOf(A().shape({eventMessagePrefix:A().string.isRequired,divIdPrefix:A().string})),enableLazyLoad:A().oneOfType([A().bool,A().shape({marginPercent:A().number,mobileScaling:A().number})])});var k=r(75157),P=r(65308),x=r.n(P),L=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");g.prototype=Object.create(e&&e.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),e&&l(g,e);var t,r,n,a,c,d=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(g);e=t?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments);if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function g(e){var t;return s(this,g),(t=d.call(this,e)).initialize(),t.state={activate:t.advertising.activate.bind(t.advertising),config:t.props.config,isInitialSetupComplete:!1},t}
1return u(g,[{key:"componentDidMount",value:(r=i(p().mark(function e(){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.advertising.isConfigReady()&&this.props.active)){e.next=4;break}return e.next=3,this.advertising.setup();case 3:this.setState({isInitialSetupComplete:!0});case 4:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(n=i(p().mark(function e(t){var r,n,i,s;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.advertising){e.next=2;break}return e.abrupt("return");case 2:if(n=(r=this.props).config,i=r.active,!(!(s=this.advertising.isConfigReady())&&n&&i)){e.next=11;break}return this.advertising.setConfig(n),e.next=8,this.advertising.setup();case 8:this.advertising&&this.setState({activate:this.advertising.activate.bind(this.advertising),config:this.advertising.config}),e.next=20;break;case 11:if(!(s&&!x()(t.config,n))){e.next=20;break}return e.next=14,this.teardown();case 14:if(!i){e.next=20;break}if(this.initialize(),!this.advertising.isConfigReady()){e.next=19;break}return e.next=19,this.advertising.setup();case 19:this.setState({activate:this.advertising.activate.bind(this.advertising),config:this.advertising.config});case 20:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"componentWillUnmount",value:(a=i(p().mark(function e(){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.props.config&&this.state.isInitialSetupComplete)){e.next=3;break}return e.next=3,this.teardown();case 3:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"teardown",value:(c=i(p().mark(function e(){var t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({activate:function(){},config:null}),e.next=3,null==(t=this.advertising)?void 0:t.teardown();case 3:this.advertising=null;case 4:case"end":return e.stop()}},e,this)})),function(){return c.apply(this,arguments)})},{key:"initialize",value:function(){var e=this.props,t=e.config,r=e.plugins,n=e.onError;this.advertising=new T(t,r,n)}},{key:"render",value:function(){var e=this.state,t=e.activate,r=e.config;return f.createElement(k.A.Provider,{value:{activate:t,config:r}},this.props.children)}}]),g}(f.Component);L.propTypes={active:A().bool,config:C,children:A().node,onError:A().func,plugins:A().arrayOf(A().shape({setupPrebid:A().func,setupGpt:A().func,teardownPrebid:A().func,teardownGpt:A().func}))},L.defaultProps={active:!0}},23355:(e,t,r)=>{var n=r(24630),i=r(61104);e.exports=function e(t,r){var s;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,i,o){function a(){return new r(function(i,s){!function e(i,s,o,a){try{var c=t[i](s),u=c.value;return u instanceof n?r.resolve(u.v).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):r.resolve(u).then(function(e){c.value=e,o(c)},function(t){return e("throw",t,o,a)})}catch(e){a(e)}}(e,o,i,s)})}return s=s?s.then(a,a):a()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},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"},24630:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},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},26521:(e,t,r)=>{"use strict";var n=r(57991),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return n.isMemo(e)?o:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var u=Object.defineProperty,l=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=p(r);i&&i!==f&&e(t,i,n)}var o=l(r);
1h&&(o=o.concat(h(r)));for(var a=c(t),g=c(r),m=0;m<o.length;++m){var _=o[m];if(!s[_]&&!(n&&n[_])&&!(g&&g[_])&&!(a&&a[_])){var v=d(r,_);try{u(t,_,v)}catch(e){}}}}return t}},29771:e=>{e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},32834:(e,t,r)=>{"use strict";r.d(t,{Ir:()=>u,VL:()=>c,W5:()=>o,_5:()=>s,lg:()=>i,mw:()=>l,w_:()=>a});var n=r(87440);function i(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function s(e){return l(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 c(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function u(e){return c(e)||"number"==typeof e||e instanceof Date}function l(e,t){let r=[e[0]+t[0],e[1]+t[1]];return r[1]>=1e9&&(r[1]-=1e9,r[0]+=1),r}},33963:(e,t,r)=>{"use strict";r.d(t,{J:()=>b});var n=r(60077),i=r(98829),s=r(62854),o=r(50558),a=r(59359);class c{_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 u{_isCalled=!1;_deferred=new c;_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 l=r(36029),h=r(82576),d=r(57362),p=r(7848),f=r(37040);let g=new Map;class m{processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(e,t,r){const n=g.get(e)??0;if(g.set(e,n+1),this.standardAttrs={[f.wU]:e,[f.V8]:`${e}/${n}`},this.droppedAttrs={...this.standardAttrs,[p.oJ]:"queue_full"},this.processedSpans=t.createCounter(f.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(f.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(f.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 _{_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 u(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 m(f.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,l.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 v extends _{_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 b extends v{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})}}},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:()=>ev});let n=Function.prototype.toString,i=n.call(Object),s=Object.getPrototypeOf,o=Object.prototype,a=o.hasOwnProperty,c=Symbol?Symbol.toStringTag:void 0,u=o.toString;function l(e){var t,r,o;if(null==(t=e)||"object"!=typeof t||"[object Object]"!==(null==(r=e)?void 0===r?"[object Undefined]":"[object Null]":c&&c in Object(r)?function(e){let t=a.call(e,c),r=e[c],n=!1;try{e[c]=void 0,n=!0}catch{}let i=u.call(e);return n&&(t?e[c]=r:delete e[c]),i}(r):(o=r,u.call(o))))return!1;let l=s(e);if(null===l)return!0;let h=a.call(l,"constructor")&&l.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 f(e){return"function"==typeof e}function g(e){return!m(e)&&!p(e)&&!f(e)&&"object"==typeof e}function m(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}var _,v,b,y,S,E,T,w,A=r(98829),O=r(60077);(_=S||(S={}))[_.NOT_RECORD=0]="NOT_RECORD",_[_.RECORD=1]="RECORD",_[_.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";class C{shouldSample(){return{decision:S.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class k{shouldSample(){return{decision:S.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}
1var P=r(99014),x=r(67408),L=r(50558),R=r(57362);class M{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||((0,R.s)(Error("ParentBasedSampler must have a root sampler configured")),this._root=new C),this._remoteParentSampled=e.remoteParentSampled??new C,this._remoteParentNotSampled=e.remoteParentNotSampled??new k,this._localParentSampled=e.localParentSampled??new C,this._localParentNotSampled=e.localParentNotSampled??new k}shouldSample(e,t,r,n,i,s){let o=P.u.getSpanContext(e);return o&&(0,x.YA)(o)?o.isRemote?o.traceFlags&L.X.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,n,i,s):this._remoteParentNotSampled.shouldSample(e,t,r,n,i,s):o.traceFlags&L.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 N{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=1===this._ratio?0x100000000:Math.floor(0xffffffff*this._ratio)}shouldSample(e,t){return{decision:(0,x.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 D(){let e=(0,O.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}(v=E||(E={})).AlwaysOff="always_off",v.AlwaysOn="always_on",v.ParentBasedAlwaysOff="parentbased_always_off",v.ParentBasedAlwaysOn="parentbased_always_on",v.ParentBasedTraceIdRatio="parentbased_traceidratio",v.TraceIdRatio="traceidratio";let I=1/0;var U=r(62854),j=r(43479),z=r(59359),B=r(89727),F=r(24008);(b=T||(T={}))[b.NOT_RECORD=0]="NOT_RECORD",b[b.RECORD=1]="RECORD",b[b.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";var $=r(36029);function G(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(!H(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 H(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&&V(e)){t=e;continue}return!1}}return!0}(e):V(typeof e))}function V(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;
1if(0===e.length)return A.s.warn(`Invalid attribute key: ${e}`),this;if(!H(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=G(t),{attributePerEventCountLimit:s}=this._spanLimits,o={},a=0,c=0;for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e];if(void 0!==s&&c>=s){a++;continue}o[e]=this._truncateToSize(t),c++}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=G(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=P.u.deleteSpan(r));let o=P.u.getSpan(r);
1if((0,$.Zf)(r))return A.s.debug("Instrumentation suppressed, returning Noop Span"),P.u.wrapSpanContext(B.dM);let a=o?.spanContext(),c=this._idGenerator.generateSpanId();a&&P.u.isSpanContextValid(a)?(i=a.traceId,s=a.traceState,n=a):i=this._idGenerator.generateTraceId();let u=t.kind??F.v.INTERNAL,l=(t.links??[]).map(e=>({context:e.context,attributes:G(e.attributes)})),h=G(t.attributes),d=this._sampler.shouldSample(r,i,e,u,h,l),p=this._tracerMetrics.startSpan(a,d.decision);s=d.traceState??s;let f={traceId:i,spanId:c,traceFlags:d.decision===T.RECORD_AND_SAMPLED?L.X.SAMPLED:L.X.NONE,traceState:s};if(d.decision===T.NOT_RECORD)return A.s.debug("Recording is off, propagating context in a non-recording span"),P.u.wrapSpanContext(f);let g=G(Object.assign(h,d.attributes));return new Q({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:f,name:e,kind:u,links:l,parentSpanContext:n,attributes:g,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(),c=this.startSpan(e,i,a),u=P.u.setSpan(a,c);return z._.with(u,o,void 0,c)}[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,R.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 ec(e){let t="";for(let r=0;r<e.length;r++)t+=eo[e[r]];return t}class eu{generateTraceId(){return ea(ei),ec(ei)}generateSpanId(){return ea(es),ec(es)}}(y=w||(w={}))[y.resolved=0]="resolved",y[y.timeout=1]="timeout",y[y.error=2]="error",y[y.unresolved=3]="unresolved";class el{_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(e={}){this._forceFlushTimeoutMillis=e.forceFlushTimeoutMillis??3e4,this._resource=e.resource??(0,j.gk)();const t=e.spanProcessors??[];this._activeSpanProcessor=new en(t),this._tracerOptions={resource:this._resource,sampler:e.sampler??new M({root:new C}),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 eu,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 el{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++,m(t)||m(r)||f(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(g(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(g(t))if(g(r)){var o,a;if(o=t,a=r,!(l(o)&&l(a)))return r;s=Object.assign({},t);let c=Object.keys(r);for(let o=0,a=c.length;o<a;o++){let a=c[o];if("__proto__"===a||"constructor"===a||"prototype"===a)continue;let u=r[a];if(m(u))void 0===u?delete s[a]:s[a]=u;else{let o=s[a];if(d(t,a,i)||d(r,a,i))delete s[a];else{if(g(o)&&g(u)){let e=i.get(o)||[],n=i.get(u)||[];e.push({obj:t,key:a}),n.push({obj:r,key:a}),i.set(o,e),i.set(u,n)}
1s[a]=e(s[a],u,n,i)}}}}else s=r;return s}}(t,e.shift(),0,r);return t}({},{sampler:function(){let e=(0,O.HF)("OTEL_TRACES_SAMPLER")??E.ParentBasedAlwaysOn;switch(e){case E.AlwaysOn:return new C;case E.AlwaysOff:return new k;case E.ParentBasedAlwaysOn:return new M({root:new C});case E.ParentBasedAlwaysOff:return new M({root:new k});case E.TraceIdRatio:return new N(D());case E.ParentBasedTraceIdRatio:return new M({root:new N(D())});default:return A.s.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${E.ParentBasedAlwaysOn}".`),new M({root:new C})}}(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,O.Jk)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,O.Jk)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,O.Jk)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,O.Jk)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,O.Jk)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,O.Jk)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,O.Jk)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,O.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,O.Jk)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,O.Jk)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??(0,O.Jk)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,O.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 ef=r(79859),eg=r(21956),em=r(42869),e_=r(56483);class ev extends eh{constructor(e={}){super(e)}register(e={}){P.u.setGlobalTracerProvider(this),function(e){if(null!==e){if(void 0===e)return ef.$.setGlobalPropagator(new eg.n({propagators:[new em.lm,new e_.t]}));ef.$.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:()=>c,V8:()=>n,VH:()=>d,ij:()=>h,ku:()=>o,lB:()=>u,wU:()=>i,x3:()=>l});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",c="otel.sdk.processor.span.queue.capacity",u="otel.sdk.processor.span.queue.size",l="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},42423:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(62852);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,s,o,a=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=s.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}(e,t)||(0,n.A)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},42869:(e,t,r)=>{"use strict";r.d(t,{ZS:()=>g,lm:()=>v});var n=r(99014),i=r(67408),s=r(50558),o=r(36029);let a="[_0-9a-z-*/]",c=`[a-z]${a}{0,255}`,u=`[a-z0-9]${a}{0,240}@[a-z]${a}{0,13}`,l=RegExp(`^(?:${c}|${u})$`),h=/^[ -~]{0,255}[!-~]$/,d=/,|=/;function p(e){return h.test(e)&&!d.test(e)}class f{_length;_rawTraceState;_internalState;constructor(e){this._rawTraceState="string"==typeof e?e:"",this._length=this._rawTraceState.length}set(e,t){if(!l.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(!l.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(f.prototype);return r._internalState=e,r._length=t,r}}let g="traceparent",m="tracestate",_=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");class v{inject(e,t,r){let a=n.u.getSpanContext(e);if(!a||(0,o.Zf)(e)||!(0,i.YA)(a))return;let c=`00-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||s.X.NONE).toString(16)}`;r.set(t,g,c),a.traceState&&r.set(t,m,a.traceState.serialize())}extract(e,t,r){let i,s=r.get(t,g);if(!s)return e;let o=Array.isArray(s)?s[0]:s;if("string"!=typeof o)return e;let a=(i=_.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 c=r.get(t,m);if(c){let e=Array.isArray(c)?c.join(","):c;a.traceState=new f("string"==typeof e?e:void 0)}return n.u.setSpanContext(e,a)}fields(){return[g,m]}}},43479:(e,t,r)=>{"use strict";let n;r.d(t,{gk:()=>d,sq:()=>h,QZ:()=>u,Lm:()=>l});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 c{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,t){let r=new c({},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={};
1for(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 c.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],a?{schemaUrl:a}:void 0)}}function u(e,t){return c.FromAttributeList(Object.entries(e),t)}function l(e,t){return new c(e,t)}function h(){return u({})}function d(){return u({[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),c=r(79859),u=r(21434),l=r(99014),h=r(87440),d=r(42869),p=r(43720),f=r(37674),g=r(98829),m=r(72262);let _="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},v=Symbol.for("io.opentelemetry.js.api.logs");class b{emit(e){}}let y=new b;class S{getLogger(e,t,r){return new b}}let E=new S;class T{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):y}}class w{getLogger(e,t,r){var n;return null!=(n=this.getDelegateLogger(e,t,r))?n:new T(this,e,t,r)}getDelegate(){var e;return null!=(e=this._delegate)?e:E}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 _[v]?this.getLoggerProvider():(_[v]=t=>1===t?e:E,this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,t;return null!=(t=null==(e=_[v])?void 0:e.call(_,1))?t:this._proxyLoggerProvider}getLogger(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)}disable(){delete _[v],this._proxyLoggerProvider=new w}}let O=A.getInstance();var C=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=g.s.createComponentLogger({namespace:e}),this._tracer=l.u.getTracer(e,t),this._meter=m.q.getMeter(e,t),this._logger=O.getLogger(e,t),this._updateMetricInstruments()}_wrap=C.wrap;_unwrap=C.unwrap;_massWrap=C.massWrap;_massUnwrap=C.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 P extends k{constructor(e,t,r){super(e,t,r),this._config.enabled&&this.enable()}}function x(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 L="http.url";(i=o||(o={})).FIRST_PAINT="firstPaint",i.FIRST_CONTENTFUL_PAINT="firstContentfulPaint";let R={"first-paint":o.FIRST_PAINT,"first-contentful-paint":o.FIRST_CONTENTFUL_PAINT};class M extends P{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,f.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,f.CJ)(t,r)){let n=t[r];"number"==typeof n&&(e[r]=n)}})}return e})(),r=e&&e.content||"";a._.with(c.$.extract(u.l,{traceparent:r}),()=>{let e=this._startSpan(s.DOCUMENT_LOAD,p.D.FETCH_START,t);if(e){let r;a._.with(l.u.setSpan(a._.active(),e),()=>{let e=this._startSpan(s.DOCUMENT_FETCH,p.D.FETCH_START,t);e&&(e.setAttribute(L,location.href),a._.with(l.u.setSpan(a._.active(),e),()=>{this.getConfig().ignoreNetworkEvents||(0,f.v4)(e,t),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentFetch),this._endSpan(e,p.D.RESPONSE_END,t)}))}),e.setAttribute(L,location.href),e.setAttribute("http.user_agent",navigator.userAgent),this._addResourcesSpans(e),this.getConfig().ignoreNetworkEvents||((0,f.CL)(e,p.D.FETCH_START,t),(0,f.CL)(e,p.D.UNLOAD_EVENT_START,t),(0,f.CL)(e,p.D.UNLOAD_EVENT_END,t),(0,f.CL)(e,p.D.DOM_INTERACTIVE,t),(0,f.CL)(e,p.D.DOM_CONTENT_LOADED_EVENT_START,t),(0,f.CL)(e,p.D.DOM_CONTENT_LOADED_EVENT_END,t),(0,f.CL)(e,p.D.DOM_COMPLETE,t),(0,f.CL)(e,p.D.LOAD_EVENT_START,t),(0,f.CL)(e,p.D.LOAD_EVENT_END,t)),!this.getConfig().ignorePerformancePaintEvents&&(r=h.ug.getEntriesByType?.("paint"))&&r.forEach(({name:t,startTime:r})=>{(0,f.CJ)(R,t)&&e.addEvent(R[t],r)}),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentLoad),this._endSpan(e,p.D.LOAD_EVENT_END,t)}})}_endSpan(e,t,r){e&&((0,f.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(L,e.name),this.getConfig().ignoreNetworkEvents||(0,f.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,f.CJ)(r,t)&&"number"==typeof r[t])return this.tracer.startSpan(e,{startTime:r[t]},n?l.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&&x(()=>t(e),e=>{e&&this._diag.error("addCustomAttributesOnSpan",e)},!0)}_addCustomAttributesOnResourceSpan(e,t,r){r&&x(()=>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 c=(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()],c?{schemaUrl:c}: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 c="browser.platform",u="browser.user_agent";class l{detect(e){let t,r;if(!("u">typeof window&&"u">typeof document))return o();let n=(t={},(r=navigator.userAgentData)?(t[c]=r.platform,t["browser.brands"]=r.brands.map(e=>`${e.brand}
1 ${e.version}`),t["browser.mobile"]=r.mobile):t[u]=navigator.userAgent,t["browser.language"]=navigator.language,t);return this._getResourceAttributes(n,e)}_getResourceAttributes(e,t){return e[u]||e[c]?{attributes:e}:(n.s.debug("BrowserDetector failed: Unable to find required browser resources. "),o())}}let h=new l},50558:(e,t,r)=>{"use strict";var n,i;r.d(t,{X:()=>n}),(i=n||(n={}))[i.NONE=0]="NONE",i[i.SAMPLED=1]="SAMPLED"},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},c=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),u=globalThis;function l(e){return(u.__Zone_symbol_prefix||"__zone_symbol__")+e}var h=Object.getOwnPropertyDescriptor,d=Object.defineProperty,p=Object.getPrototypeOf,f=Object.create,g=Array.prototype.slice,m="addEventListener",_="removeEventListener",v=l(m),b=l(_),y="true",S="false",E=l("");function T(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,O=A?window:void 0,C=A&&O||globalThis;function k(e,t){for(let r=e.length-1;r>=0;r--)"function"==typeof e[r]&&(e[r]=T(e[r],t+"_"+r));return e}function P(e){return!e||!1!==e.writable&&("function"!=typeof e.get||void 0!==e.set)}var x="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,L=!("nw"in C)&&void 0!==C.process&&"[object process]"===C.process.toString(),R=!L&&!x&&!!(A&&O.HTMLElement),M=void 0!==C.process&&"[object process]"===C.process.toString()&&!x&&!!(A&&O.HTMLElement),N={},D=l("enable_beforeunload"),I=function(e){let t;if(!(e=e||C.event))return;let r=N[e.type];r||(r=N[e.type]=l("ON_PROPERTY"+e.type));let n=this||e.target||C,i=n[r];if(R&&n===O&&"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&&C[D]&&"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=l("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),c=N[a];c||(c=N[a]=l("ON_PROPERTY"+a)),n.set=function(t){let r=this;r||e!==C||(r=C),r&&("function"==typeof r[c]&&r.removeEventListener(a,I),null==o||o.call(r,null),r[c]=t,"function"==typeof t&&r.addEventListener(a,I,!1))},n.get=function(){let r=this;if(r||e!==C||(r=C),!r)return null;let i=r[c];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 j(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=l("originalInstance");function B(e){let t,r=C[e];if(!r)return;C[l(e)]=r,C[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.")}},G(C[e],r);let n=new r(function(){});for(t in n)("XMLHttpRequest"!==e||"responseBlob"!==t)&&function(t){"function"==typeof n[t]?C[e].prototype[t]=function(){return this[z][t].apply(this[z],arguments)}
1:d(C[e].prototype,t,{set:function(r){"function"==typeof r?(this[z][t]=T(r,e+"."+t),G(this[z][t],r)):this[z][t]=r},get:function(){return this[z][t]}})}(t);for(t in r)"prototype"!==t&&r.hasOwnProperty(t)&&(C[e][t]=r[t])}function F(e,t,r){let n=e;for(;n&&!n.hasOwnProperty(t);)n=p(n);!n&&e[t]&&(n=e);let i=l(t),s=null;if(n&&(!(s=n[i])||!n.hasOwnProperty(i))&&(s=n[i]=n[t],P(n&&h(n,t)))){let e=r(s,i,t);n[t]=function(){return e(this,arguments)},G(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=F(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 G(e,t){e[l("OriginalDelegate")]=t}function H(e){return"function"==typeof e}function V(e){return"number"==typeof e}var Z={useG:!0},q={},W={},X=RegExp("^"+E+"(\\w+)(true|false)$"),J=l("propagationStopped");function K(e,t){let r=(t?t(e):e)+S,n=(t?t(e):e)+y;q[e]={},q[e][S]=E+r,q[e][y]=E+n}function Y(e,n,i,s){let o=s&&s.add||m,c=s&&s.rm||_,u=s&&s.listeners||"eventListeners",h=s&&s.rmAll||"removeAllListeners",d=l(o),f="."+o+":",g="prependListener",v="."+g+":",b=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[c].call(t,r.type,n,s)}return n};function T(t,r,i){if(!(r=r||e.event))return;let s=t||r.target||e,o=s[q[r.type][i?y:S]];if(o){let e=[];
1if(1===o.length){let t=b(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=b(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 T(this,e,!1)},A=function(e){return T(this,e,!0)},O=[];for(let n=0;n<i.length;n++)O[n]=function(n,i){let s;if(!n)return!1;let m=!0;i&&void 0!==i.useG&&(m=i.useG);let _=i&&i.vh,b=!0;i&&void 0!==i.chkDup&&(b=i.chkDup);let T=!1;i&&void 0!==i.rt&&(T=i.rt);let O=n;for(;O&&!O.hasOwnProperty(o);)O=p(O);if(!O&&n[o]&&(O=n),!O||O[d])return!1;let C=i&&i.eventNameToString,k={},P=O[d]=O[o],x=O[l(c)]=O[c],R=O[l(u)]=O[u],M=O[l(h)]=O[h];i&&i.prepend&&(s=O[l(i.prepend)]=O[i.prepend]);let N=m?function(e){if(!k.isExisting)return P.call(k.target,k.eventName,k.capture?A:w,k.options)}:function(e){return P.call(k.target,k.eventName,e.invoke,k.options)},D=m?function(e){if(!e.isRemoved){let t,r=q[e.eventName];r&&(t=r[e.capture?y: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 x.call(e.target,e.eventName,e.capture?A:w,e.options)}:function(e){return x.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[l("UNPATCHED_EVENTS")],j=e[l("PASSIVE_EVENTS")],z=function(n,s,o,c,u=!1,l=!1){return function(){let h,d=this||e,p=arguments[0];i&&i.transferEventName&&(p=i.transferEventName(p));let f=arguments[1];if(!f||L&&"uncaughtException"===p)return n.apply(this,arguments);let g=!1;if("function"!=typeof f){if(!f.handleEvent)return n.apply(this,arguments);g=!0}if(_&&!_(n,f,d,arguments))return;let v=!!j&&-1!==j.indexOf(p),E=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],v)),T=null==E?void 0:E.signal;if(null==T?void 0:T.aborted)return;if(U){for(let e=0;e<U.length;e++)if(p===U[e])if(v)return n.call(d,p,f,E);else return n.apply(this,arguments)}let w=!!E&&("boolean"==typeof E||E.capture),A=!!E&&"object"==typeof E&&E.once,O=Zone.current,P=q[p];P||(K(p,C),P=q[p]);let x=P[w?y:S],R=d[x],M=!1;if(R){if(M=!0,b){for(let e=0;e<R.length;e++)if(I(R[e],f))return}}else R=d[x]=[];let N=d.constructor.name,D=W[N];D&&(h=D[p]),h||(h=N+s+(C?C(p):p)),k.options=E,A&&(k.options.once=!1),k.target=d,k.capture=w,k.eventName=p,k.isExisting=M;let z=m?Z:void 0;z&&(z.taskData=k),T&&(k.options.signal=void 0);let B=O.scheduleEventTask(h,f,z,o,c);if(T){k.options.signal=T;let e=()=>B.zone.cancelTask(B);n.call(T,"abort",e,{once:!0}),B.removeAbortListener=()=>T.removeEventListener("abort",e)}if(k.target=null,z&&(z.taskData=null),A&&(k.options.once=!0),"boolean"!=typeof B.options&&(B.options=E),B.target=d,B.capture=w,B.eventName=p,g&&(B.originalDelegate=f),l?R.unshift(B):R.push(B),u)return d}};return O[o]=z(P,f,N,D,T),s&&(O[g]=z(s,v,function(e){return s.call(k.target,k.eventName,e.invoke,k.options)},D,T,!0)),O[c]=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 x.apply(this,arguments);if(_&&!_(x,a,r,arguments))return;let c=q[n];c&&(t=c[o?y:S]);let u=t&&r[t];if(u)for(let e=0;e<u.length;e++){let i=u[e];if(I(i,a)){if(u.splice(e,1),i.isRemoved=!0,0===u.length&&(i.allRemoved=!0,r[t]=null,o||"string"!=typeof n||(r[E+"ON_PROPERTY"+n]=null)),i.zone.cancelTask(i),T)return r;return}}return x.apply(this,arguments)},O[u]=function(){let t=this||e,r=arguments[0];i&&i.transferEventName&&(r=i.transferEventName(r));let n=[],s=Q(t,C?C(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},O[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[y],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[c].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[c].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(T)return this},G(O[o],P),G(O[c],x),M&&G(O[h],M),R&&G(O[u],R),!0}(i[n],s);return O}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[y]];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=l("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 V(n)?r.handleId=n:(r.handle=n,r.isRefreshable=H(n.refresh)),t}function c(t){let{handle:r,handleId:n}=t.data;return s.call(e,null!=r?r:n)}i=F(e,t,r=>function(i,s){var u;if(!H(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,c);if(!i)return i;let{handleId:l,handle:h,isRefreshable:d,isPeriodic:p}=i.data;if(l)o[l]=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!=(u=null!=h?h:l)?u:i}}),s=F(e,r,t=>function(r,n){let i,s=n[0];V(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);j(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,c){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,c)},e.attachOriginToPatched(t[n],o)}var ea=function(){let e=globalThis,t=!0===e[l("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=u.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){c(this,"_parent"),c(this,"_name"),c(this,"_properties"),c(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(u.Promise!==P.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 L.zone}static get currentTask(){return R}static __load_patch(t,i,s=!1){if(P.hasOwnProperty(t)){let e=!0===u[l("forceDuplicateZoneCheck")];if(!s&&e)throw Error("Already loaded patch: "+t)}else if(!u["__Zone_disable_"+t]){let s="Zone:"+t;r(s),P[t]=i(u,e,x),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){L={parent:L,zone:this};try{return this._zoneDelegate.invoke(this,e,t,r,n)}finally{L=L.parent}}runGuarded(e,t=null,r,n){L={parent:L,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,r,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{L=L.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||b).name+"; Execution: "+this.name+")");let{type:n,data:{isPeriodic:i=!1,isRefreshable:s=!1}={}}=e;if(e.state===y&&(n===k||n===C))return;let o=e.state!=T;o&&e._transitionTo(T,E);let a=R;R=e,L={parent:L,zone:this};try{n!=C||!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;
1if(t!==y&&t!==A)if(n==k||i||s&&t===S)o&&e._transitionTo(E,T,S);else{let t=e._zoneDelegates;this._updateTaskCount(e,-1),o&&e._transitionTo(y,T,y),s&&(e._zoneDelegates=t)}L=L.parent,R=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,y);let t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(A,S,y),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==S&&e._transitionTo(E,S),e}scheduleMicroTask(e,t,r,n){return this.scheduleTask(new a(O,e,t,r,n,void 0))}scheduleMacroTask(e,t,r,n,i){return this.scheduleTask(new a(C,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||b).name+"; Execution: "+this.name+")");if(e.state===E||e.state===T){e._transitionTo(w,E,T);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(y,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)}};c(i,"__symbol__",l);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){c(this,"_zone"),c(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),c(this,"_parentDelegate"),c(this,"_forkDlgt"),c(this,"_forkZS"),c(this,"_forkCurrZone"),c(this,"_interceptDlgt"),c(this,"_interceptZS"),c(this,"_interceptCurrZone"),c(this,"_invokeDlgt"),c(this,"_invokeZS"),c(this,"_invokeCurrZone"),c(this,"_handleErrorDlgt"),c(this,"_handleErrorZS"),c(this,"_handleErrorCurrZone"),c(this,"_scheduleTaskDlgt"),c(this,"_scheduleTaskZS"),
1c(this,"_scheduleTaskCurrZone"),c(this,"_invokeTaskDlgt"),c(this,"_invokeTaskZS"),c(this,"_invokeTaskCurrZone"),c(this,"_cancelTaskDlgt"),c(this,"_cancelTaskZS"),c(this,"_cancelTaskCurrZone"),c(this,"_hasTaskDlgt"),c(this,"_hasTaskDlgtOwner"),c(this,"_hasTaskZS"),c(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==O)_(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.");if(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(c(this,"type"),c(this,"source"),c(this,"invoke"),c(this,"callback"),
1c(this,"data"),c(this,"scheduleFn"),c(this,"cancelFn"),c(this,"_zone",null),c(this,"runCount",0),c(this,"_zoneDelegates",null),c(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(u,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&&v(),M--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(y,S)}_transitionTo(e,t,r){if(this._state===t||this._state===r)this._state=e,e==y&&(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=l("setTimeout"),d=l("Promise"),p=l("then"),f=[],g=!1;function m(t){if(!e&&u[d]&&(e=u[d].resolve(0)),e){let r=e[p];r||(r=e.then),r.call(e,t)}else u[h](t,0)}function _(e){0===M&&0===f.length&&m(v),e&&f.push(e)}function v(){if(!g){for(g=!0;f.length;){let e=f;f=[];for(let t=0;t<e.length;t++){let r=e[t];try{r.zone.runTask(r,null,null)}catch(e){x.onUnhandledError(e)}}}x.microtaskDrainDone(),g=!1}}let b={name:"NO ZONE"},y="notScheduled",S="scheduling",E="scheduled",T="running",w="canceling",A="unknown",O="microTask",C="macroTask",k="eventTask",P={},x={symbol:l,currentZoneFrame:()=>L,onUnhandledError:N,microtaskDrainDone:N,scheduleMicroTask:_,showUncaughtError:()=>!i[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:N,patchMethod:()=>N,bindArguments:()=>[],patchThen:()=>N,patchMacroTask:()=>N,patchEventPrototype:()=>N,getGlobalObjects:()=>void 0,ObjectDefineProperty:()=>N,ObjectGetOwnPropertyDescriptor:()=>void 0,ObjectCreate:()=>void 0,ArraySlice:()=>[],patchClass:()=>N,wrapWithCurrentZone:()=>N,filterProperties:()=>[],attachOriginToPatched:()=>N,_redefineProperty:()=>N,patchCallbacks:()=>N,nativeScheduleMicroTask:m},L={parent:null,zone:new i(null,null)},R=null,M=0;function N(){}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")],c=s("Promise"),u=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[l];"function"==typeof r&&r.call(this,e)}catch(e){}}(e)}}};let l=s("unhandledPromiseRejectionHandler");function h(e){return e&&"function"==typeof e.then}function d(e){return e}function p(e){return k.reject(e)}let f=s("state"),g=s("value"),m=s("finally"),_=s("parentPromiseValue"),v=s("parentPromiseState");function b(e,t){return r=>{try{E(e,t,r)}catch(t){E(e,!1,t)}}}let y=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},S=s("currentTaskTrace");function E(e,n,s){let c=y();if(e===s)throw TypeError("Promise resolved with itself");if(null===e[f]){let l=null;try{("object"==typeof s||"function"==typeof s)&&(l=s&&s.then)}catch(t){return c(()=>{E(e,!1,t)})(),e}if(!1!==n&&s instanceof k&&s.hasOwnProperty(f)&&s.hasOwnProperty(g)&&null!==s[f])w(s),E(e,s[f],s[g]);else if(!1!==n&&"function"==typeof l)try{l.call(s,c(b(e,n)),c(b(e,!1)))}catch(t){c(()=>{E(e,!1,t)})()}else{e[f]=n;let c=e[g];if(e[g]=s,e[m]===m&&!0===n&&(e[f]=e[v],e[g]=e[_]),!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<c.length;)A(e,c[t++],c[t++],c[t++],c[t++]);if(0==c.length&&!1==n){e[f]=0;let n=s;try{var u;throw Error("Uncaught (in promise): "+((u=s)&&u.toString===Object.prototype.toString?(u.constructor&&u.constructor.name||"")+": "+JSON.stringify(u):u?u.toString():Object.prototype.toString.call(u))+(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 T=s("rejectionHandledHandler");function w(e){if(0===e[f]){try{let r=t[T];r&&"function"==typeof r&&r.call(this,{rejection:e[g],promise:e})}catch(e){}e[f]=!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[f],o=s?"function"==typeof n?n:d:"function"==typeof i?i:p;t.scheduleMicroTask("Promise.then",()=>{try{let n=e[g],i=!!r&&m===r[m];
1i&&(r[_]=n,r[v]=s);let a=t.run(o,void 0,i&&o!==p&&o!==d?[]:[n]);E(r,!0,a)}catch(e){E(r,!1,e)}},r)}let O=function(){},C=e.AggregateError;class k{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return e instanceof k?e:E(new this(null),!0,e)}static reject(e){return E(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 C([],"All promises were rejected"));let t=[],r=0;try{for(let n of e)r++,t.push(k.resolve(n))}catch(e){return Promise.reject(new C([],"All promises were rejected"))}if(0===r)return Promise.reject(new C([],"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 C(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[f]=null,this[g]=[];try{const t=y();e&&e(t(b(this,!0)),t(b(this,!1)))}catch(e){E(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(O),o=t.current;return null==this[f]?this[g].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(O);i[m]=m;let s=t.current;return null==this[f]?this[g].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 P=e[c]=e.Promise;e.Promise=k;let x=s("thenPatched");function L(e){let t=e.prototype,r=n(t,"then");if(r&&(!1===r.writable||!r.configurable))return;let i=t.then;t[u]=i,e.prototype.then=function(e,t){return new k((e,t)=>{i.call(this,e,t)}).then(e,t)},e[x]=!0}if(r.patchThen=L,P){L(P);let t=P.try;t&&"function"==typeof t&&(k.try=t),F(e,"fetch",e=>function(t,r){let n=e.apply(t,r);if(n instanceof k)return n;let i=n.constructor;return i[x]||L(i),n})}return Promise[t.__symbol__("uncaughtPromiseErrors")]=o,k}),ea.__load_patch("toString",e=>{let t=Function.prototype.toString,r=l("OriginalDelegate"),n=l("Promise"),i=l("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=j,r.patchMethod=F,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=f,r.ArraySlice=g,r.patchClass=B,r.wrapWithCurrentZone=T,r.filterProperties=en,r.attachOriginToPatched=G,r._redefineProperty=Object.defineProperty,r.patchCallbacks=eo,r.getGlobalObjects=()=>({globalSources:W,zoneSymbolEventNames:q,eventNames:n,isBrowser:R,isMix:M,isNode:L,TRUE_STR:y,FALSE_STR:S,ZONE_SYMBOL_PREFIX:E,ADD_EVENT_LISTENER_STR:m,REMOVE_
1EVENT_LISTENER_STR:_})}),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++)F(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),c=o+(t+i);n[t]={},n[t][s]=a,n[t][i]=c}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)=>{B("MutationObserver"),B("WebKitMutationObserver")}),ea.__load_patch("IntersectionObserver",(e,t,r)=>{B("IntersectionObserver")}),ea.__load_patch("FileReader",(e,t,r)=>{B("FileReader")}),ea.__load_patch("on_property",(e,t,r)=>{!function(e,t){if(L&&!M||Zone[e.symbol("patchEvents")])return;let r=t.__Zone_ignore_on_properties,n=[];if(R){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 c=e.XMLHttpRequest;if(!c)return;let u=c.prototype,h=u[v],d=u[b];if(!h){let t=e.XMLHttpRequestEventTarget;if(t){let e=t.prototype;h=e[v],d=e[b]}}let p="readystatechange",f="scheduled";function g(e){let n=e.data,o=n.target;o[s]=!1,o[a]=!1;let c=o[i];h||(h=o[v],d=o[b]),c&&d.call(o,p,c);let u=o[i]=()=>
1{if(o.readyState===o.DONE)if(!n.aborted&&o[s]&&e.state===f){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!==f||i.call(e)},r.push(e)}else e.invoke()}else n.aborted||!1!==o[s]||(o[a]=!0)};return h.call(o,p,u),o[r]||(o[r]=e),T.apply(o,n.args),o[s]=!0,e}function m(){}function _(e){let t=e.data;return t.aborted=!0,A.apply(t.target,t.args)}let y=F(u,"open",()=>function(e,t){return e[n]=!1==t[2],e[o]=t[1],y.apply(e,t)}),S=l("fetchTaskAborting"),E=l("fetchTaskScheduling"),T=F(u,"send",()=>function(e,r){if(!0===t.current[E]||e[n])return T.apply(e,r);{let t={target:e,url:e[o],isPeriodic:!1,args:r,aborted:!1},n=w("XMLHttpRequest.send",m,t,g,_);e&&!0===e[a]&&!t.aborted&&n.state===f&&n.invoke()}}),A=F(u,"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=l("xhrTask"),n=l("xhrSync"),i=l("xhrListener"),s=l("xhrScheduled"),o=l("xhrURL"),a=l("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(!P(h(e,i)))continue;e[i]=(e=>{let t=function(){return e.apply(this,k(arguments,r+"."+i))};return G(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[l("unhandledPromiseRejectionHandler")]=r("unhandledrejection"),t[l("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})}}},55375:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");t.Hy=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===o||e===s||e===l||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===u||e.$$typeof===g||void 0!==e.getModuleId)||!1},t.QP=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case o:case s:case l:case h:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case d:case a:return e;default:return t}}case n:return t}}}},55602:(e,t,r)=>{var n=r(11541)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},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(""))}}},55808:(e,t,r)=>{"use strict";r.d(t,{mS:()=>l,$G:()=>u,kv:()=>h});let n="1.9.1",i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,s=function(e){let t=new Set([e]),r=new Set,n=e.match(i);if(!n)return()=>!1;let s={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=s.prerelease)return function(t){return t===e};function o(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;
1if(r.has(e))return!1;let n=e.match(i);if(!n)return o(e);let a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=a.prerelease||s.major!==a.major)return o(e);if(0===s.major)return s.minor===a.minor&&s.patch<=a.patch?(t.add(e),!0):o(e);return s.minor<=a.minor?(t.add(e),!0):o(e)}}(n),o=n.split(".")[0],a=Symbol.for(`opentelemetry.js.api.${o}`),c="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{};function u(e,t,r,i=!1){var s;let o=c[a]=null!=(s=c[a])?s:{version:n};if(!i&&o[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(o.version!==n){let t=Error(`@opentelemetry/api: Registration of version v${o.version} for ${e} does not match previously registered API v${n}`);return r.error(t.stack||t.message),!1}return o[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${n}.`),!0}function l(e){var t,r;let n=null==(t=c[a])?void 0:t.version;if(n&&s(n))return null==(r=c[a])?void 0:r[e]}function h(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${n}.`);let r=c[a];r&&delete r[e]}},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"},56483:(e,t,r)=>{"use strict";r.d(t,{t:()=>c});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,c=a-i;if(c<=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 c=s.substring(0,a).trim(),u=s.substring(a+1).trim();if(c&&u){try{t=decodeURIComponent(c),r=decodeURIComponent(u)}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)+c;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 c{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={},c=0,u=0;if(Array.isArray(i))for(let e=0;e<i.length;e++)[c,u]=a(i[e],o,c,u);else[c]=a(i,o,c,u);return 0===c?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;)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:()=>N});var n,i,s=r(98829),o=r(99014),a=r(72262);let c="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},u=Symbol.for("io.opentelemetry.js.api.logs");class l{emit(e){}}let h=new l;class d{getLogger(e,t,r){return new l}}let p=new d;class f{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 g{getLogger(e,t,r){var n;return null!=(n=this._getDelegateLogger(e,t,r))?n:new f(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 m{constructor(){this._proxyLoggerProvider=new g}static getInstance(){return this._instance||(this._instance=new m),this._instance}setGlobalLoggerProvider(e){return c[u]?this.getLoggerProvider():(c[u]=t=>1===t?e:p,this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,t;return null!=(t=null==(e=c[u])?void 0:e.call(c,1))?t:this._proxyLoggerProvider}getLogger(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)}disable(){delete c[u],this._proxyLoggerProvider=new g}}let _=m.getInstance(),v=console.error.bind(console);function b(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 y=(e,t,r)=>{if(!e||!e[t])return void v("no original function "+String(t)+" to wrap");if(!r){v("no wrapper function"),v(Error().stack);return}let n=e[t];if("function"!=typeof n||"function"!=typeof r)return void v("original object and wrapper must be functions");let i=r(n,t);return b(i,"__original",n),b(i,"__unwrap",()=>{e[t]===i&&b(e,t,n)}),b(i,"__wrapped",!0),b(e,t,i),i},S=(e,t,r)=>{if(e)Array.isArray(e)||(e=[e]);else{v("must provide one or more modules to patch"),v(Error().stack);return}
1t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{y(e,t,r)})}):v("must provide one or more functions to wrap on modules")},E=(e,t)=>{if(!e||!e[t]){v("no function to unwrap."),v(Error().stack);return}let r=e[t];r.__unwrap?r.__unwrap():v("no original to unwrap to -- has "+String(t)+" already been unwrapped?")},T=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{v("must provide one or more modules to patch"),v(Error().stack);return}t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{E(e,t)})}):v("must provide one or more functions to unwrap on modules")};function w(e){e&&e.logger&&("function"!=typeof e.logger?v("new logger isn't a function, not replacing"):v=e.logger)}w.wrap=y,w.massWrap=S,w.unwrap=E,w.massUnwrap=T;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=_.getLogger(e,t),this._updateMetricInstruments()}_wrap=y;_unwrap=E;_massWrap=S;_massUnwrap=T;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 O extends A{constructor(e,t,r){super(e,t,r),this._config.enabled&&this.enable()}}function C(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}var k=r(59359),P=r(32834),x=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 L="0.53.0",R=["click"];function M(){return!1}class N extends O{version=L;moduleName="user-interaction";_spansData=new WeakMap;_wrappedListeners=new WeakMap;_eventsSpanMap=new WeakMap;_eventNames;_shouldPreventSpanCreation;constructor(e={}){super("@opentelemetry/instrumentation-user-interaction",L,e),this._eventNames=new Set(e?.eventNames??R),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,P._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,x.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],c=a?.target;a&&(i=e._eventsSpanMap.get(a)),s&&e.removePatchedListener(this,r,n);let u=e._createSpan(c,r,i);return u?(a&&e._eventsSpanMap.set(a,u),k._.with(o.u.setSpan(k._.active(),u),()=>{let r=e._invokeListener(n,this,t);return u.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(){C(history.replaceState)&&this._unwrap(history,"replaceState"),C(history.pushState)&&this._unwrap(history,"pushState"),C(history.back)&&this._unwrap(history,"back"),C(history.forward)&&this._unwrap(history,"forward"),C(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)}}
1_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,c=a?.target;if(c){if(s=e._createSpan(c,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?(C(e.prototype.runTask)&&(this._unwrap(e.prototype,"runTask"),this._diag.debug("removing previous patch from method runTask")),C(e.prototype.scheduleTask)&&(this._unwrap(e.prototype,"scheduleTask"),this._diag.debug("removing previous patch from method scheduleTask")),C(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=>{C(e.addEventListener)&&(this._unwrap(e,"addEventListener"),this._diag.debug("removing previous patch from method addEventListener")),C(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?(C(e.prototype.runTask)&&this._unwrap(e.prototype,"runTask"),C(e.prototype.scheduleTask)&&this._unwrap(e.prototype,"scheduleTask"),C(e.prototype.cancelTask)&&this._unwrap(e.prototype,"cancelTask")):this._getPatchableEventTargets().forEach(e=>{C(e.addEventListener)&&this._unwrap(e,"addEventListener"),C(e.removeEventListener)&&this._unwrap(e,"removeEventListener")}),this._unpatchHistoryApi()}_getZoneWithPrototype(){return window.Zone}}},57991:(e,t,r)=>{"use strict";e.exports=r(68963)},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})},61104:e=>{function t(r,n,i,s){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}e.exports=t=function(e,r,n,i){function s(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?o?o(e,r,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[r]=n:(s("next",0),s("throw",1),s("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,i,s)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},62852:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(7745);function i(e,t){if(e){if("string"==typeof e)return(0,n.A)(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.A)(e,t):void 0}}},62854:(e,t,r)=>{"use strict";r.d(t,{Ac:()=>S,Dq:()=>p});class n{createGauge(e,t){return g}createHistogram(e,t){return m}createCounter(e,t){return f}createUpDownCounter(e,t){return _}createObservableGauge(e,t){return b}createObservableCounter(e,t){return v}createObservableUpDownCounter(e,t){return y}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}}class i{}class s extends i{add(e,t){}}class o extends i{add(e,t){}}class a extends i{record(e,t){}}class c extends i{record(e,t){}}class u{addCallback(e){}removeCallback(e){}}class l extends u{}class h extends u{}class d extends u{}let p=new n,f=new s,g=new a,m=new c,_=new o,v=new l,b=new h,y=new d;function S(){return p}},63600:(e,t,r)=>{"use strict";r.d(t,{E:()=>eD,ID:()=>el,NP:()=>eP,DU:()=>eM,AH:()=>ey,Ay:()=>eU,i7:()=>eN,DP:()=>eI});var n,i,s=r(55375),o=r(56493),a=r(3533),c=r.n(a);let u=function(e){function t(e,t,n){var i=t.trim().split(f);t=i;var s=i.length,o=e.length;switch(o){case 0:case 1:var a=0;for(e=0===o?"":e[0]+" ";a<s;++a)t[a]=r(e,t[a],n).trim();break;default:var c=a=0;for(t=[];a<s;++a)for(var u=0;u<o;++u)t[c++]=r(e[u]+" ",i[a],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>
vendor: 4,184 bytes, line 1
1n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<+r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,s){var o=e+";",a=2*t+3*r+4*s;if(944===a){e=o.indexOf(":",9)+1;var c=o.substring(e,o.length-1).trim();return c=o.substring(0,e).trim()+c+";",1===P||2===P&&i(c,1)?"-webkit-"+c+c:c}if(0===P||2===P&&!i(o,1))return o;switch(a){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(A,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(c=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+c+o;case 1005:return d.test(o)?o.replace(h,":-webkit-")+o.replace(h,":-moz-")+o:o;case 1e3:switch(t=(c=o.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=o.replace(b,"tb");break;case 232:c=o.replace(b,"tb-rl");break;case 220:c=o.replace(b,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+c+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,a=(c=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:o=o.replace(c,"-webkit-"+c)+";"+o;break;case 207:case 102:o=o.replace(c,"-webkit-"+(102<a?"inline-":"")+"box")+";"+o.replace(c,"-webkit-"+c)+";"+o.replace(c,"-ms-"+c+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return c=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+c+"-ms-flex-"+c+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(E,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(E,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===w.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,s).replace(":fill-available",":stretch"):o.replace(c,"-webkit-"+c)+o.replace(c,"-moz-"+c.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===r+s&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+o}return o}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),M(2!==t?n:n.replace(T,"$1"),r,t)}function s(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(S," or ($1)").substring(4):"("+t+")"}function o(e,t,r,n,i,s,o,a,u,l){for(var h,d=0,p=t;d<R;++d)switch(h=L[d].call(c,e,p,r,n,i,s,o,a,u,l)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==t)return p}function a(e){return void 0!==(e=e.prefix)&&(M=null,e?"function"!=typeof e?P=1:(P=2,M=e):P=0),a}function c(e,r){var a=e;if(33>a.charCodeAt(0)&&(a=a.trim()),a=[a],0<R){var c=o(-1,r,a,a,C,O,0,0,0,0);void 0!==c&&"string"==typeof c&&(r=c)}var h=function e(r,a,c,h,d){for(var p,f,g,b,S,E=0,T=0,w=0,A=0,L=0,M=0,D=g=p=0,I=0,U=0,j=0,z=0,B=c.length,F=B-1,$="",G="",H="",V="";I<B;){if(f=c.charCodeAt(I),I===F&&0!==T+A+w+E&&(0!==T&&(f=47===T?10:47),A=w=E=0,B++,F++),0===T+A+w+E){if(I===F&&(0<U&&($=$.replace(l,"")),0<$.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:$+=c.charAt(I)}f=59}
vendor: 5,306 bytes, line 1
1switch(f){case 123:for(p=($=$.trim()).charCodeAt(0),g=1,z=++I;I<B;){switch(f=c.charCodeAt(I)){case 123:g++;break;case 125:g--;break;case 47:switch(f=c.charCodeAt(I+1)){case 42:case 47:e:{for(D=I+1;D<F;++D)switch(c.charCodeAt(D)){case 47:if(42===f&&42===c.charCodeAt(D-1)&&I+2!==D){I=D+1;break e}break;case 10:if(47===f){I=D+1;break e}}I=D}}break;case 91:f++;case 40:f++;case 34:case 39:for(;I++<F&&c.charCodeAt(I)!==f;);}if(0===g)break;I++}if(g=c.substring(z,I),0===p&&(p=($=$.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<U&&($=$.replace(l,"")),f=$.charCodeAt(1)){case 100:case 109:case 115:case 45:U=a;break;default:U=x}if(z=(g=e(a,U,g,f,d+1)).length,0<R&&(S=o(3,g,U=t(x,$,j),a,C,O,z,f,d,h),$=U.join(""),void 0!==S&&0===(z=(g=S.trim()).length)&&(f=0,g="")),0<z)switch(f){case 115:$=$.replace(y,s);case 100:case 109:case 45:g=$+"{"+g+"}";break;case 107:g=($=$.replace(m,"$1 $2"))+"{"+g+"}",g=1===P||2===P&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=$+g,112===h&&(G+=g,g="")}else g=""}else g=e(a,t(a,$,j),g,h,d+1);H+=g,g=j=U=D=p=0,$="",f=c.charCodeAt(++I);break;case 125:case 59:if(1<(z=($=(0<U?$.replace(l,""):$).trim()).length))switch(0===D&&(45===(p=$.charCodeAt(0))||96<p&&123>p)&&(z=($=$.replace(" ",":")).length),0<R&&void 0!==(S=o(1,$,a,r,C,O,G.length,h,d,h))&&0===(z=($=S.trim()).length)&&($="\0\0"),p=$.charCodeAt(0),f=$.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){V+=$+c.charAt(I);break}default:58!==$.charCodeAt(z-1)&&(G+=n($,p,f,$.charCodeAt(2)))}j=U=D=p=0,$="",f=c.charCodeAt(++I)}}switch(f){case 13:case 10:47===T?T=0:0===1+p&&107!==h&&0<$.length&&(U=1,$+="\0"),0<R*N&&o(0,$,a,r,C,O,G.length,h,d,h),O=1,C++;break;case 59:case 125:if(0===T+A+w+E){O++;break}default:switch(O++,b=c.charAt(I),f){case 9:case 32:if(0===A+E+T)switch(L){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===A+T+E&&(U=j=1,b="\f"+b);break;case 108:if(0===A+T+E+k&&0<D)switch(I-D){case 2:112===L&&58===c.charCodeAt(I-3)&&(k=L);case 8:111===M&&(k=M)}break;case 58:0===A+T+E&&(D=I);break;case 44:0===T+w+A+E&&(U=1,b+="\r");break;case 34:case 39:0===T&&(A=A===f?0:0===A?f:A);break;case 91:0===A+T+w&&E++;break;case 93:0===A+T+w&&E--;break;case 41:0===A+T+E&&w--;break;case 40:0===A+T+E&&(0===p&&(2*L+3*M==533||(p=1)),w++);break;case 64:0===T+w+A+E+D+g&&(g=1);break;case 42:case 47:if(!(0<A+E+w))switch(T){case 0:switch(2*f+3*c.charCodeAt(I+1)){case 235:T=47;break;case 220:z=I,T=42}break;case 42:47===f&&42===L&&z+2!==I&&(33===c.charCodeAt(z+2)&&(G+=c.substring(z,I+1)),b="",T=0)}}0===T&&($+=b)}M=L,L=f,I++}if(0<(z=G.length)){if(U=a,0<R&&void 0!==(S=o(2,G,U,r,C,O,z,h,d,h))&&0===(G=S).length)return V+G+H;if(G=U.join(",")+"{"+G+"}",0!=P*k){switch(2!==P||i(G,2)||(k=0),k){case 111:G=G.replace(v,":-moz-$1")+G;break;case 112:G=G.replace(_,"::-webkit-input-$1")+G.replace(_,"::-moz-$1")+G.replace(_,":-ms-input-$1")+G}k=0}}return V+G+H}(x,a,r,0,0);return 0<R&&void 0!==(c=o(-2,h,a,a,C,O,h.length,0,0,0))&&(h=c),k=0,O=C=1,h}var u=/^\0+/g,l=/[\0\r\f]/g,h=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,f=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,_=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,y=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,E=/-self|flex-/g,T=/[^]*?(:[rp][el]a[\w-]+)[^]*/,w=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,O=1,C=1,k=0,P=1,x=[],L=[],R=0,M=null,N=0;return c.use=function e(t){switch(t){case void 0:case null:R=L.length=0;break;default:if("function"==typeof t)L[R++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else N=0|!!t}return e},c.set=a,void 0!==e&&a(e),c},l={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var h=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
1ine|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d=(n=function(e){return h.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)},i=Object.create(null),function(e){return void 0===i[e]&&(i[e]=n(e)),i[e]}),p=r(26521),f=r.n(p),g=r(37811);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var _=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},v=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,s.QP)(e)},b=Object.freeze([]),y=Object.freeze({});function S(e){return"function"==typeof e}function E(e){return e.displayName||e.name||"Component"}function T(e){return e&&"string"==typeof e.styledComponentId}var w=void 0!==g&&void 0!==g.env&&(g.env.REACT_APP_SC_ATTR||g.env.SC_ATTR)||"data-styled",A="u">typeof window&&"HTMLElement"in window,O=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==g&&void 0!==g.env&&(void 0!==g.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==g.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==g.env.REACT_APP_SC_DISABLE_SPEEDY&&g.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==g.env.SC_DISABLE_SPEEDY&&""!==g.env.SC_DISABLE_SPEEDY&&"false"!==g.env.SC_DISABLE_SPEEDY&&g.env.SC_DISABLE_SPEEDY)),C={};function k(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var P=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&k(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=n;s<i;s++)this.groupSizes[s]=0}for(var o=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(o,t[a])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,s=n;s<i;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),x=new Map,L=new Map,R=1,M=function(e){if(x.has(e))return x.get(e);for(;L.has(R);)R++;var t=R++;return x.set(e,t),L.set(t,e),t},N=function(e,t){t>=R&&(R=t+1),x.set(e,t),L.set(t,e)},D="style["+w+'][data-styled-version="5.3.11"]',I=RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),U=function(e,t,r){for(var n,i=r.split(","),s=0,o=i.length;s<o;s++)(n=i[s])&&e.registerName(t,n)},j=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],i=0,s=r.length;i<s;i++){var o=r[i].trim();if(o){var a=o.match(I);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(N(u,c),U(e,u,a[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(o)}}},z=function(){return r.nc},B=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];
1if(n&&1===n.nodeType&&n.hasAttribute(w))return n}}(r),s=void 0!==i?i.nextSibling:null;n.setAttribute(w,"active"),n.setAttribute("data-styled-version","5.3.11");var o=z();return o&&n.setAttribute("nonce",o),r.insertBefore(n,s),n},F=function(){function e(e){var t=this.element=B(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}k(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=B(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),G=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),H=A,V={isServer:!A,useCSSOMInjection:!O},Z=function(){function e(e,t,r){void 0===e&&(e=y),void 0===t&&(t={}),this.options=m({},V,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&A&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(D),r=0,n=t.length;r<n;r++){var i=t[r];i&&"active"!==i.getAttribute(w)&&(j(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return M(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(m({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(t=(e=this.options).isServer,r=e.useCSSOMInjection,n=e.target,new P(t?new G(n):r?new F(n):new $(n))))},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(M(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(M(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(M(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var s,o=(s=i,L.get(s));if(void 0!==o){var a=e.names.get(o),c=t.getGroup(i);if(a&&c&&a.size){var u=w+".g"+i+'[id="'+o+'"]',l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+=e+",")}),n+=""+c+u+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},e}(),q=/(a)(d)/gi,W=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=W(t%52)+r;return(W(t%52)+r).replace(q,"$1-$2")}var J=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},K=function(e){return J(5381,e)};function Y(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(S(r)&&!T(r))return!1}return!0}var Q=K("5.3.11"),ee=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Y(e),this.componentId=t,this.baseHash=J(Q,t),this.baseStyle=r,Z.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var s=ev(this.rules,e,t,r).join(""),o=X(J(this.baseHash,s)>>>0);if(!t.hasNameForId(n,o)){var a=r(s,"."+o,void 0,n);t.insertRules(n,o,a)}i.push(o),this.staticRulesId=o}else{for(var c=this.rules.length,u=J(this.baseHash,r.hash),l="",h=0;h<c;h++){var d=this.rules[h];if("string"==typeof d)l+=d;else if(d){var p=ev(d,e,t,r),f=Array.isArray(p)?p.join(""):p;u=J(u,f+h),l+=f}}if(l){var g=X(u>>>0);if(!t.hasNameForId(n,g)){var m=r(l,"."+g,void 0,n);t.insertRules(n,g,m)}i.push(g)}}return i.join(" ")},e}(),et=/^\s*\/\/.*$/gm,er=[":","[",".","#"];function en(e){var t,r,n,i,s=void 0===e?y:e,o=s.options,a=void 0===o?y:o,c=s.plugins,l=void 0===c?b:c,h=new u(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,s,o,a,c,u,l,h){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+n),"";default:return n+(0===h?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){d.push(e)}),f=function(e,n,s){return 0===n&&-1!==er.indexOf(s[r.length])||s.match(i)?e:"."+t};function g(e,s,o,a){void 0===a&&(a="&");var c=e.replace(et,""),u=s&&o?o+" "+s+" { "+c+" }":c;return t=a,n=RegExp("\\"+(r=s)+"\\b","g"),i=RegExp("(\\"+r+"\\b){2,}"),h(o||!s?"":s,u)}return h.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),g.hash=l.length?l.reduce(function(e,t){return t.name||k(15),J(e,t.name)},5381).toString():"",g}var ei=o.createContext(),es=(ei.Consumer,o.createContext()),eo=(es.Consumer,new Z),ea=en();function ec(){return(0,o.useContext)(ei)||eo}function eu(){return(0,o.useContext)(es)||ea}function el(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=ec(),s=(0,o.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,o.useMemo)(function(){return en({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,o.useEffect)(function(){c()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),o.createElement(ei.Provider,{value:s},o.createElement(es.Provider,{value:a},e.children))}var eh=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ea);var n=r.name+t.hash;
1e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return k(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ea),this.name+e.hash},e}(),ed=/([A-Z])/,ep=/([A-Z])/g,ef=/^ms-/,eg=function(e){return"-"+e.toLowerCase()};function em(e){return ed.test(e)?e.replace(ep,eg).replace(ef,"-ms-"):e}var e_=function(e){return null==e||!1===e||""===e};function ev(e,t,r,n){if(Array.isArray(e)){for(var i,s=[],o=0,a=e.length;o<a;o+=1)""!==(i=ev(e[o],t,r,n))&&(Array.isArray(i)?s.push.apply(s,i):s.push(i));return s}return e_(e)?"":T(e)?"."+e.styledComponentId:S(e)?"function"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t?e:ev(e(t),t,r,n):e instanceof eh?r?(e.inject(r,n),e.getName(n)):e:v(e)?function e(t,r){var n,i=[];for(var s in t)t.hasOwnProperty(s)&&!e_(t[s])&&(Array.isArray(t[s])&&t[s].isCss||S(t[s])?i.push(em(s)+":",t[s],";"):v(t[s])?i.push.apply(i,e(t[s],s)):i.push(em(s)+": "+(null==(n=t[s])||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||s in l||s.startsWith("--")?String(n).trim():n+"px")+";"));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString()}var eb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ey(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return S(e)||v(e)?eb(ev(_(b,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:eb(ev(_(e,r)))}var eS=function(e,t,r){return void 0===r&&(r=y),e.theme!==r.theme&&e.theme||t||r.theme},eE=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eT=/(^-|-$)/g;function ew(e){return e.replace(eE,"-").replace(eT,"")}var eA=function(e){return X(K(e)>>>0)};function eO(e){return"string"==typeof e}var eC=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ek=o.createContext();function eP(e){var t=(0,o.useContext)(ek),r=(0,o.useMemo)(function(){var r;return r=e.theme,r?S(r)?r(t):Array.isArray(r)||"object"!=typeof r?k(8):t?m({},t,{},r):r:k(14)},[e.theme,t]);return e.children?o.createElement(ek.Provider,{value:r},e.children):null}ek.Consumer;var ex={},eL=function(e){return function e(t,r,n){if(void 0===n&&(n=y),!(0,s.Hy)(r))return k(1,String(r));var i=function(){return t(r,n,ey.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,m({},n,{},i))},i.attrs=function(i){return e(t,r,m({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(function e(t,r,n){var i=T(t),s=!eO(t),a=r.attrs,c=void 0===a?b:a,u=r.componentId,l=void 0===u?(w=r.displayName,A=r.parentComponentId,ex[O="string"!=typeof w?"sc":ew(w)]=(ex[O]||0)+1,C=O+"-"+eA("5.3.11"+O+ex[O]),A?A+"-"+C:C):u,h=r.displayName,p=void 0===h?eO(t)?"styled."+t:"Styled("+E(t)+")":h,g=r.displayName&&r.componentId?ew(r.displayName)+"-"+r.componentId:r.componentId||l,_=i&&t.attrs?Array.prototype.concat(t.attrs,c).filter(Boolean):c,v=r.shouldForwardProp;i&&t.shouldForwardProp&&(v=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var w,A,O,C,k,P=new ee(n,g,i?t.componentStyle:void 0),x=P.isStatic&&0===c.length,L=function(e,t){return function(e,t,r,n){var i,s,a,c,u,l=e.attrs,h=e.componentStyle,p=e.defaultProps,f=e.foldedComponentIds,g=e.shouldForwardProp,_=e.styledComponentId,v=e.target,b=(i=eS(t,(0,o.useContext)(ek),p)||y,void 0===i&&(i=y),s=m({},t,{theme:i}),a={},l.forEach(function(e){var t,r,n,i=e;for(t in S(i)&&(i=i(s)),i)s[t]=a[t]="className"===t?(r=a[t],n=i[t],r&&n?r+" "+n:r||n):i[t]}),[s,a]),E=b[0],T=b[1],w=(c=ec(),u=eu(),n?h.generateAndInjectStyles(y,c,u):h.generateAndInjectStyles(E,c,u)),A=T.$as||t.$as||T.as||t.as||v,O=eO(A),C=T!==t?m({},t,{},T):t,k={};for(var P in C)"$"!==P[0]&&"as"!==P&&("forwardedAs"===P?k.as=C[P]:(g?g(P,d,A):!O||d(P))&&(k[P]=C[P]));return t.style&&T.style!==t.style&&(k.style=m({},t.style,{},T.style)),k.className=Array.prototype.concat(f,_,w!==_?w:null,t.className,T.className).filter(Boolean).join(" "),k.ref=r,(0,o.createElement)(A,k)}(k,e,t,x)};return L.displayName=p,(k=o.forwardRef(L)).attrs=_,k.componentStyle=P,k.displayName=p,k.shouldForwardProp=v,k.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):b,k.styledComponentId=g,k.target=i?t.target:t,k.withComponent=function(t){var i=r.componentId,s=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)t.indexOf(r=s[n])>=0||(i[r]=e[r]);return i}(r,["componentId"]),o=i&&i+"-"+(eO(t)?t:ew(E(t)));return e(t,m({},s,{attrs:_,componentId:o}),n)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var s=0;s<n.length;s++){var o=n[s];if(eC(o))for(var a in o)"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&function(t,r,n){var i=t[n];
1eC(r)&&eC(i)?e(i,r):t[n]=r}(t,o[a],a)}return t}({},t.defaultProps,e):e}}),Object.defineProperty(k,"toString",{value:function(){return"."+k.styledComponentId}}),s&&f()(k,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k},e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){eL[e]=eL(e)});var eR=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Y(e),Z.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(ev(this.rules,t,r,n).join(""),""),s=this.componentId+e;r.insertRules(s,s,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&Z.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function eM(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=ey.apply(void 0,[e].concat(r)),s="sc-global-"+eA(JSON.stringify(i)),a=new eR(i,s);function c(e){var t=ec(),r=eu(),n=(0,o.useContext)(ek),i=(0,o.useRef)(t.allocateGSInstance(s)).current;return t.server&&u(i,e,t,n,r),(0,o.useLayoutEffect)(function(){if(!t.server)return u(i,e,t,n,r),function(){return a.removeStyles(i,t)}},[i,e,t,n,r]),null}function u(e,t,r,n,i){if(a.isStatic)a.renderStyles(e,C,r,i);else{var s=m({},t,{theme:eS(t,n,c.defaultProps)});a.renderStyles(e,s,r,i)}}return o.memo(c)}function eN(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=ey.apply(void 0,[e].concat(r)).join("");return new eh(eA(i),i)}var eD=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=z();return"<style "+[r&&'nonce="'+r+'"',w+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?k(2):e._emitSheetCSS()}
1,this.getStyleElement=function(){if(e.sealed)return k(2);var t,r=((t={})[w]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=z();return n&&(r.nonce=n),[o.createElement("style",m({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Z({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?k(2):o.createElement(el,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return k(3)},e}(),eI=function(){return(0,o.useContext)(ek)};let eU=eL},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})},65308:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(s=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;0!=i--;){var n,i,s,o=s[i];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},67408:(e,t,r)=>{"use strict";r.d(t,{IP:()=>u,YA:()=>c,hX:()=>a});var n=r(89727),i=r(96467);let s=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function o(e,t){if("string"!=typeof e||e.length!==t)return!1;let r=0;for(let t=0;t<e.length;t+=4)r+=(0|s[e.charCodeAt(t)])+(0|s[e.charCodeAt(t+1)])+(0|s[e.charCodeAt(t+2)])+(0|s[e.charCodeAt(t+3)]);return r===t}function a(e){return o(e,32)&&e!==n.RH}function c(e){var t;return a(e.traceId)&&o(t=e.spanId,16)&&t!==n.w9}function u(e){return new i.d(e)}},68963:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,y=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case h:case s:case a:case o:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case g:case c:return e;default:return t}}case i:return t}}}function E(e){return S(e)===h}t.AsyncMode=l,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=s,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||S(e)===l},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===d},t.isFragment=function(e){return S(e)===s},t.isLazy=function(e){return S(e)===m},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===a},t.isStrictMode=function(e){return S(e)===o},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===h||e===a||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===y||e.$$typeof===_)},t.typeOf=S},69625:(e,t,r)=>{"use strict";let n;r.d(t,{X:()=>k}
1);var i,s,o=r(99014),a=r(59359),c=r(79859),u=r(24008),l=r(24963),h=r(77253),d=r(56138),p=r(12931),f=r(98931),g=r(10375),m=r(96105),_=r(72423);(i=s||(s={})).COMPONENT="component",i.HTTP_STATUS_TEXT="http.status_text";var v=r(7848),b=r(98829),y=r(48130);let S=b.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"}),E=new TextEncoder;function T(e){return E.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"},O="0.217.0",C="u">typeof PerformanceObserver;class k extends h.O{component="fetch";version=O;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(e={}){super("@opentelemetry/instrumentation-fetch",O,e),this._semconvStability=(0,d.G)("http",e?.semconvStabilityOptIn)}init(){}_addChildSpan(e,t){let r=this.tracer.startSpan("CORS Preflight",{startTime:t[m.D.FETCH_START]},o.u.setSpan(a._.active(),e)),n=!(this._semconvStability&d.n.OLD);_.v4(r,t,this.getConfig().ignoreNetworkEvents,void 0,n),r.end(t[m.D.RESPONSE_END])}_addFinalSpanAttributes(e,t){let r=_.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(v.OR,t.status),e.setAttribute(v.kS,r.hostname);let i=(n=Number(r.port||A[r.protocol]))&&!isNaN(n)?n:void 0;i&&e.setAttribute(v.A2,i)}}_addHeaders(e,t){if(!_.wF(t,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};c.$.inject(a._.active(),e),Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(e instanceof Request)c.$.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);c.$.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(f.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,c=t.method,u=(o=t.method||"GET",s=function(){if(void 0===n){let e=(0,y.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=u),i[v.n4]=u,u!==c&&(i[v.nW]=c),i[v.WQ]=e}return this.tracer.startSpan(r,{kind:u.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=_.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);_.v4(e,t,this.getConfig().ignoreNetworkEvents,void 0,n)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,r){let n=g.lg(Date.now()),i=g._5();this._addFinalSpanAttributes(e,r),this._semconvStability&d.n.STABLE&&r.status>=400&&(e.setStatus({code:l.s.ERROR}),e.setAttribute(v.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=_.Dl(r[0]instanceof Request?r[0].url:String(r[0])).href;n=r[0]instanceof Request?null!=r[1]?new Request(r[0],r[1]):r[0]:r[1]||{};let c=t._createSpan(s,n);if(!c)return e.apply(this,r);let u=t._prepareSpanData(s);function l(e,r){t._applyAttributesAfterFetch(e,n,r),t._endSpan(e,u,{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,u,r):t._endSpan(e,u,{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=>{l(e,t)})};i()}else h(e,r)}catch(r){t._diag.error("Failed to read fetch response body",r),t._endSpan(e,u,{status:0,url:s})}return r}function f(e,r){try{l(e,r)}catch(n){t._diag.error("Failed to end span on fetch error",n),t._endSpan(e,u,{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?T(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?T(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=>T(e)):Promise.resolve()}})(...r).then(e=>{e&&(t._semconvStability&d.n.OLD&&c.setAttribute("http.request_content_length_uncompressed",e),t._semconvStability&d.n.STABLE&&c.setAttribute("http.request.body.size",e))}).catch(e=>{t._diag.warn("getFetchBodyLength",e)}
1),a._.with(o.u.setSpan(a._.active(),c),()=>(t._callRequestHook(c,n),t._addHeaders(n,s),t._tasksCount++,e.apply(i,n instanceof Request?[n]:[s,n]).then(p.bind(i,c),f.bind(i,c))))}}}_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=g._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(!C)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(){!C||this._isEnabled&&(this._isEnabled=!1,this._usedResources=new WeakSet)}}},70817:(e,t,r)=>{var n=r(1669);e.exports=function(e,t,r,i,s){var o=n(e,t,r,i,s);return o.next().then(function(e){return e.done?e.value:o.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},70859:(e,t,r)=>{var n=r(61104);function i(){var t,r,s="function"==typeof Symbol?Symbol:{},o=s.iterator||"@@iterator",a=s.toStringTag||"@@toStringTag";function c(e,i,s,o){var a=Object.create((i&&i.prototype instanceof l?i:l).prototype);return n(a,"_invoke",function(e,n,i){var s,o,a,c=0,l=i||[],h=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return s=e,o=0,a=t,d.n=r,u}};function p(e,n){for(o=e,a=n,r=0;!h&&c&&!i&&r<l.length;r++){var i,s=l[r],p=d.p,f=s[2];e>3?(i=f===n)&&(a=s[(o=s[4])?5:(o=3,3)],s[4]=s[5]=t):s[0]<=p&&((i=e<2&&p<s[1])?(o=0,d.v=n,d.n=s[1]):p<f&&(i=e<3||s[0]>n||n>f)&&(s[4]=e,s[5]=n,d.n=f,o=0))}if(i||e>1)return u;throw h=!0,n}return function(i,l,f){if(c>1)throw TypeError("Generator is already running");for(h&&1===l&&p(l,f),o=l,a=f;(r=o<2?t:a)||!h;){s||(o?o<3?(o>1&&(d.n=-1),p(o,a)):d.n=a:d.v=a);try{if(c=2,s){if(o||(i="next"),r=s[i]){if(!(r=r.call(s,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,o<2&&(o=0)}else 1===o&&(r=s.return)&&r.call(s),o<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),o=1);s=t}else if((r=(h=d.n<0)?a:e.call(n,d))!==u)break}catch(e){s=t,o=1,a=e}finally{c=1}}return{value:r,done:h}}}(e,s,o),!0),a}var u={};function l(){}function h(){}function d(){}r=Object.getPrototypeOf;var p=d.prototype=l.prototype=Object.create([][o]?r(r([][o]())):(n(r={},o,function(){return this}),r));function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,n(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return h.prototype=d,n(p,"constructor",d),n(d,"constructor",h),h.displayName="GeneratorFunction",n(d,a,"GeneratorFunction"),n(p),n(p,a,"Generator"),n(p,o,function(){return this}),n(p,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:c,m:f}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},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 c=n.bind(r,s);return a.set(s,c),t.call(this,i,c,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)},72262:(e,t,r)=>{"use strict";r.d(t,{q:()=>l});var n=r(62854);class i{getMeter(e,t,r){return n.Dq}}let s=new i;var o=r(55808),a=r(11091);let c="metrics";class u{static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalMeterProvider(e){return(0,o.$G)(c,e,a.K.instance())}getMeterProvider(){return(0,o.mS)(c)||s}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,o.kv)(c,a.K.instance())}}let l=u.getInstance()},72423:(e,t,r)=>{"use strict";let n;r.d(t,{v4:()=>c,hZ:()=>l,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 c(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 u(){return"u">typeof location?location.origin:void 0}function l(e,t,r,n,o=new WeakSet,a){var c,d,p,f,g,m;let _,v,b,y=h(e),S=(c=e=y.toString(),d=t,p=r,f=n,g=o,m=a,_=(0,s.u5)(d),v=(0,s.u5)(p),(b=f.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()===(m||"xmlhttprequest")&&e.name===c&&t>=_&&r<=v})).length>0&&(b=b.filter(e=>!g.has(e))),b);if(0===S.length)return{mainRequest:void 0};if(1===S.length)return{mainRequest:S[0]};let E=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(y.origin===u()||!(E.length>1))return{mainRequest:S[0]};{let e=E[0],t=function(e,t,r){let n,o=(0,s.u5)(r),a=(0,s.u5)((0,s.KJ)(t)),c=e[1],u=e.length;for(let t=1;t<u;t++){let r=e[t],u=(0,s.u5)((0,s.KJ)(r[i.D.FETCH_START])),l=o-(0,s.u5)((0,s.KJ)(r[i.D.RESPONSE_END]));u>=a&&(!n||l<n)&&(n=l,c=r)}return c}(E,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===u()||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:()=>c,MU:()=>s,Pz:()=>u,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 c(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 u(e,t){return e.toLowerCase()===t.toLowerCase()}},74271:(e,t,r)=>{"use strict";r.d(t,{_:()=>u});var n=r(21434);class i{active(){return n.l}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}var s=r(55808),o=r(11091);let a="context",c=new i;class u{static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalContextManager(e){return(0,s.$G)(a,e,o.K.instance())}active(){return this._getContextManager().active()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,s.mS)(a)||c}disable(){this._getContextManager().disable(),(0,s.kv)(a,o.K.instance())}}},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),c=r(73732),u=r(41397);class l{_shutdown=!1;_metricProducers;_sdkMetricProducer;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;constructor(e){this._aggregationSelector=e?.aggregationSelector??u.P,this._aggregationTemporalitySelector=e?.aggregationTemporalitySelector??u.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,c.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,c.od)(this.onForceFlush(),e.timeoutMillis)}}class h extends l{_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,c.od)(this._doRun(),this._exportTimeout)}catch(e){if(e instanceof c.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:c}=await this.collect({timeoutMillis:this._exportTimeout});if(c.length>0&&n.s.error("PeriodicExportingMetricReader: metrics collection errors",...c),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 u=await (e=this._exporter,t=r,new Promise(r=>{s._.with(s._.active().setValue(o,!0),()=>{e.export(t,r)})}));if(u.code!==a.V.SUCCESS)throw Error(`PeriodicExportingMetricReader: metrics export failed (error ${u.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()}}},75157:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(56493).createContext(function(){})},76725:(e,t,r)=>{var n=r(19434).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},77253:(e,t,r)=>{"use strict";r.d(t,{O:()=>g});var n=r(98829),i=r(99014),s=r(72262),o=r(95396);let a=console.error.bind(console);function c(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 u=(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 c(i,"__original",n),c(i,"__unwrap",()=>{e[t]===i&&c(e,t,n)}),c(i,"__wrapped",!0),c(e,t,i),i},l=(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=>{u(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=u,p.massWrap=l,p.unwrap=h,p.massUnwrap=d;class f{_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=u;_unwrap=h;_massWrap=l;_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 g extends f{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"},c=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then;class u{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,t){let r=new u({},t);return r._rawAttributes=l(e),r._asyncAttributesPending=e.filter(([e,t])=>c(t)).length>0,r}constructor(e,t){const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([e,t])=>(c(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=l(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,c(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(c(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 u.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],a?{schemaUrl:a}:void 0)}}function l(e){return e.map(([e,t])=>c(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 f(e,t,r){return g.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 g=/^[a-z][a-z0-9_.\-/]{0,254}$/i;var m=r(59359),_=r(6988);class v{_writableMetricStorage;_descriptor;constructor(e,t){this._writableMetricStorage=e,this._descriptor=t}_record(e,t={},r=m._.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,_.lg)(Date.now()))}}class b extends v{add(e,t,r){this._record(e,t,r)}}class y extends v{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 v{record(e,t,r){this._record(e,t,r)}}class E extends v{record(e,t,r){e<0?i.s.warn(`negative value provided to histogram ${this._descriptor.name}: ${e}`):this._record(e,t,r)}}class T{_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 T{}class A extends T{}class O extends T{}function C(e){return e instanceof T}var k=r(93010);class P{_meterSharedState;constructor(e){this._meterSharedState=e}createGauge(e,t){let r=f(e,k.O.GAUGE,t);return new S(this._meterSharedState.registerMetricStorage(r),r)}createHistogram(e,t){let r=f(e,k.O.HISTOGRAM,t);return new E(this._meterSharedState.registerMetricStorage(r),r)}createCounter(e,t){let r=f(e,k.O.COUNTER,t);return new y(this._meterSharedState.registerMetricStorage(r),r)}createUpDownCounter(e,t){let r=f(e,k.O.UP_DOWN_COUNTER,t);return new b(this._meterSharedState.registerMetricStorage(r),r)}createObservableGauge(e,t){let r=f(e,k.O.OBSERVABLE_GAUGE,t),n=this._meterSharedState.registerAsyncMetricStorage(r);return new A(r,n,this._meterSharedState.observableRegistry)}createObservableCounter(e,t){let r=f(e,k.O.OBSERVABLE_COUNTER,t),n=this._meterSharedState.registerAsyncMetricStorage(r);return new w(r,n,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(e,t){let r=f(e,k.O.OBSERVABLE_UP_DOWN_COUNTER,t),n=this._meterSharedState.registerAsyncMetricStorage(r);return new O(r,n,this._meterSharedState.observableRegistry)}addBatchObservableCallback(e,t){this._meterSharedState.observableRegistry.addBatchCallback(e,t)}removeBatchObservableCallback(e,t){this._meterSharedState.observableRegistry.removeBatchCallback(e,t)}}class x{_instrumentDescriptor;constructor(e){this._instrumentDescriptor=e}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(e){this._instrumentDescriptor=f(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}}class L{_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 R extends L{constructor(){super(h.eM)}}class M{_activeCollectionStorage=new R;_cumulativeMemoStorage=new R;_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 R,e}}var N=r(4610);class D{_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)===N.h.CUMULATIVE?D.merge(t.accumulations,s,this._aggregator):D.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 R,r=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),void 0===r)return t;for(let e of r)t=D.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 x{_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 D(t,n),this._attributesProcessor=r}record(e,t){let r=new R;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 j(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:",j(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",j(t,e))}return r}}class B{_backingStorages;constructor(e){this._backingStorages=e}record(e,t,r,n){this._backingStorages.forEach(i=>{i.record(e,t,r,n)})}}class F{_buffer=new R;_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(!C(e))return;let n=this._buffer.get(e);(null==n&&(n=new R,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 G{_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(C));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(C)),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 F(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 H extends x{_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 D(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 V{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 V;class W{metricStorageRegistry=new z;observableRegistry=new G;meter;_meterProviderSharedState;_instrumentationScope;constructor(e,t){this.meter=new P(this),this._meterProviderSharedState=e,this._instrumentationScope=t}registerMetricStorage(e){let t=this._registerMetricStorage(e,H);return 1===t.length?t[0]:new B(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,_.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]},u.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,{$:()=>v});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 c=(0,r(21434).n)("OpenTelemetry Baggage Key");function u(e){return e.getValue(c)||void 0}function l(){return u(a._.getInstance().active())}function h(e,t){return e.setValue(c,t)}function d(e){return e.deleteValue(c)}var p=r(87794),f=r(11091);let g="propagation",m=new i;class _{constructor(){this.createBaggage=p.L,this.getBaggage=u,this.getActiveBaggage=l,this.setBaggage=h,this.deleteBaggage=d}static getInstance(){return this._instance||(this._instance=new _),this._instance}setGlobalPropagator(e){return(0,n.$G)(g,e,f.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)(g,f.K.instance())}_getGlobalPropagator(){return(0,n.mS)(g)||m}}let v=_.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:()=>P});var i,s,o,a=r(79859),c=r(59359),u=r(99014),l=r(24008),h=r(24963),d=r
7(77253),p=r(56138),f=r(12931),g=r(13891),m=r(98931),_=r(10375),v=r(72423),b=r(96105),y=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),E=r(48130);let T=S.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"}),w=new TextEncoder;function A(e){return w.encode(e).byteLength}let O={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0},C={"https:":"443","http:":"80"},k="0.217.0";(o||(o={})).HTTP_STATUS_TEXT="http.status_text";class P 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,v.Dl)(t).href;if(!(0,v.wF)(r,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};a.$.inject(c._.active(),e),Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}let n={};a.$.inject(c._.active(),n),Object.keys(n).forEach(t=>{e.setRequestHeader(t,String(n[t]))})}_addChildSpan(e,t){c._.with(u.u.setSpan(c._.active(),e),()=>{let e=this.tracer.startSpan("CORS Preflight",{startTime:t[b.D.FETCH_START]}),r=!(this._semconvStability&p.n.OLD);(0,v.v4)(e,t,this.getConfig().ignoreNetworkEvents,void 0,r),e.end(t[b.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,v.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(y.OR,t.status)}_applyAttributesAfterXHR(e,t){let r=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof r&&(0,f.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,v.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&&(g.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=g.ug.getEntriesByType("resource"));let o=(0,v.hZ)((0,v.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,v.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,v.Dl)(t);if((0,m.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,c=(e=function(){if(void 0===n){let e=(0,E.f7)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(n={},e.forEach(e=>{n[e]=!0})):n=O}return n}(),(t=r.toUpperCase())in e?t:"_OTHER");o||(o=c),a[y.n4]=c,c!==r&&(a[y.nW]=r),a[y.WQ]=i.toString(),a[y.kS]=i.hostname;let u=(s=Number(i.port||C[i.protocol]))&&!isNaN(s)?s:void 0;u&&(a[y.A2]=u)}let c=this.tracer.startSpan(o,{kind:l.v.CLIENT,attributes:a});return c.addEvent(s.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:c,spanUrl:t}),c}_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(y.oJ,i)):s.status&&s.status>=400&&(t.setStatus({code:h.s.ERROR}),t.setAttribute(y.oJ,String(s.status))))}let o=(0,_._5)(),a=Date.now();setTimeout(()=>{!function(t,r,n,i){let s=r.callbackToRemoveEvents;"function"==typeof s&&s();let{span:o,spanUrl:a,sendStartTime:c}=r;o&&(e._findResourceAndAddNetworkEvents(r,o,a,c,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 l=e._xhrMem.get(this);if(!l)return t.apply(this,a);let h=l.span,d=l.spanUrl;if(h&&d){if(e.getConfig().measureRequestSize&&a?.[0]){var f,g;let t=(g=f=a[0],"u">typeof Document&&g instanceof Document)?new XMLSerializer().serializeToString(document).length:"string"==typeof f?A(f):f instanceof Blob?f.size:f 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}(f):f instanceof URLSearchParams?A(f.toString()):void 0!==f.byteLength?f.byteLength:void T.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))}c._.with(u.u.setSpan(c._.active(),h),()=>{e._tasksCount++,l.sendStartTime=(0,_._5)(),h.addEvent(s.METHOD_SEND),this.addEventListener("abort",n),this.addEventListener("error",r),this.addEventListener("load",o),this.addEventListener("timeout",i),l.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),l.createdResources&&l.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:()=>c,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 c(e){return"string"!=typeof e&&(o.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:s,toString:()=>e}}},89727:(e,t,r)=>{"use strict";r.d(t,{RH:()=>s,dM:()=>o,w9:()=>i});var n=r(50558);let i="0000000000000000",s="00000000000000000000000000000000",o={traceId:s,spanId:i,traceFlags:n.X.NONE}},90871:(e,t,r)=>{"use strict";r.d(t,{D:()=>o,E:()=>G});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 c{kind=s.DROP;createAccumulation(){}merge(e,t){}diff(e,t){}toMetricData(e,t,r,n){}}var u=r(93010);class l{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 l(e,this.monotonic)}merge(e,t){let r=e.toPointValue(),n=t.toPointValue();return t.reset?new l(t.startTime,this.monotonic,n,t.reset):new l(e.startTime,this.monotonic,r+n)}diff(e,t){let r=e.toPointValue(),n=t.toPointValue();return this.monotonic&&r>n?new l(t.startTime,this.monotonic,n,!0):new l(t.startTime,this.monotonic,n-r)}toMetricData(e,t,r,n){return{descriptor:e,aggregationTemporality:t,dataPointType:u.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 f{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:u.n.GAUGE,dataPoints:r.map(([e,t])=>({attributes:e,startTime:t.startTime,endTime:n,value:t.toPointValue()}))}}}var g=r(73732);class m{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,g.Dm)(this._boundaries,e);this._current.buckets.counts[t]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}}class _{kind=s.HISTOGRAM;_boundaries;_recordMinMax;constructor(e,t){this._boundaries=e,this._recordMinMax=t}createAccumulation(e){return new m(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,c=-1/0;return this._recordMinMax&&(r.hasMinMax&&n.hasMinMax?(a=Math.min(r.min,n.min),c=Math.max(r.max,n.max)):r.hasMinMax?(a=r.min,c=r.max):n.hasMinMax&&(a=n.min,c=n.max)),new m(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:c}
7)}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 m(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:u.n.HISTOGRAM,dataPoints:r.map(([t,r])=>{let i=r.toPointValue(),s=e.type===u.O.GAUGE||e.type===u.O.UP_DOWN_COUNTER||e.type===u.O.OBSERVABLE_GAUGE||e.type===u.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 v{backing;indexBase;indexStart;indexEnd;constructor(e=new b,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)}decrementBucket(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 v(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 b{_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 b([...this._counts])}}function y(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 E(e,t){return 0===e||e===1/0||e===-1/0||Number.isNaN(e)?e:e*Math.pow(2,t)}class T extends Error{}class w{_shift;constructor(e){this._shift=-e}mapToIndex(e){return e<22250738585072014e-324?this._minNormalLowerBoundaryIndex():y(e)+this._rightShift(S(e)-1,52)>>this._shift}lowerBoundary(e){let t=this._minNormalLowerBoundaryIndex();if(e<t)throw new T(`underflow: ${e} is < minimum lower boundary: ${t}`);let r=this._maxNormalLowerBoundaryIndex();if(e>r)throw new T(`overflow: ${e} is > maximum lower boundary: ${r}`);return E(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=E(Math.LOG2E,e),this._inverseFactor=E(Math.LN2,-e)}mapToIndex(e){if(e<=22250738585072014e-324)return this._minNormalLowerBoundaryIndex()-1;if(0===S(e))return(y(e)<<this._scale)-1;let t=Math.floor(Math.log(e)*this._scaleFactor),r=this._maxNormalLowerBoundaryIndex();return t>
7=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 T(`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 T(`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 O=Array.from({length:31},(e,t)=>t>10?new A(t-10):new w(t-10));function C(e){if(e>20||e<-10)throw new T(`expected scale >= -10 && <= 20, got: ${e}`);return O[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 P{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,c=-1/0,u=new v,l=new v,h=C(20)){this.startTime=e,this._maxSize=t,this._recordMinMax=r,this._sum=n,this._count=i,this._zeroCount=s,this._min=o,this._max=c,this._positive=u,this._negative=l,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}}get 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 P(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=C(t)}
8_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 x{kind=s.EXPONENTIAL_HISTOGRAM;_maxSize;_recordMinMax;constructor(e,t){this._maxSize=e,this._recordMinMax=t}createAccumulation(e){return new P(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:u.n.EXPONENTIAL_HISTOGRAM,dataPoints:r.map(([t,r])=>{let i=r.toPointValue(),s=e.type===u.O.GAUGE||e.type===u.O.UP_DOWN_COUNTER||e.type===u.O.OBSERVABLE_GAUGE||e.type===u.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},negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},count:i.count,scale:i.scale,zeroCount:i.zeroCount}}})}}}class L{static DEFAULT_INSTANCE=new c;createAggregator(e){return L.DEFAULT_INSTANCE}}class R{static MONOTONIC_INSTANCE=new h(!0);static NON_MONOTONIC_INSTANCE=new h(!1);createAggregator(e){switch(e.type){case u.O.COUNTER:case u.O.OBSERVABLE_COUNTER:case u.O.HISTOGRAM:return R.MONOTONIC_INSTANCE;default:return R.NON_MONOTONIC_INSTANCE}}}class M{static DEFAULT_INSTANCE=new f;createAggregator(e){return M.DEFAULT_INSTANCE}}class N{static DEFAULT_INSTANCE=new _([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(e){return N.DEFAULT_INSTANCE}}class D{_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 _(this._boundaries,this._recordMinMax)}}class I{_maxSize;_recordMinMax;constructor(e=160,t=!0){this._maxSize=e,this._recordMinMax=t}createAggregator(e){return new x(this._maxSize,this._recordMinMax)}}class U{_resolve(e){switch(e.type){case u.O.COUNTER:case u.O.UP_DOWN_COUNTER:case u.O.OBSERVABLE_COUNTER:case u.O.OBSERVABLE_UP_DOWN_COUNTER:return z;case u.O.GAUGE:case u.O.OBSERVABLE_GAUGE:return B;case u.O.HISTOGRAM:if(e.advice.explicitBucketBoundaries)return new D(e.advice.explicitBucketBoundaries);return F}return a.s.warn(`Unable to recognize instrument type: ${e.type}`),j}createAggregator(e){return this._resolve(e).createAggregator(e)}}let j=new L,z=new R,B=new M,F=new N;new I;let $=new U;function G(e){switch(e.type){case o.DEFAULT:return $;case o.DROP:return j;case o.SUM:return z;case o.LAST_VALUE:return B;case o.EXPONENTIAL_HISTOGRAM:return new I(e.options?.maxSize,e.options?.recordMinMax);case o.EXPLICIT_BUCKET_HISTOGRAM:if(null==e.options)return F;return new D(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 c=new a;class u{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}}
8class l{getLogger(e,t,r){var n;return null!=(n=this._getDelegateLogger(e,t,r))?n:new u(this,e,t,r)}_getDelegate(){var e;return null!=(e=this._delegate)?e:c}_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 l}static getInstance(){return this._instance||(this._instance=new h),this._instance}setGlobalLoggerProvider(e){return i[n]?this.getLoggerProvider():(i[n]=t=>1===t?e:c,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 l}}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_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"},96467:(e,t,r)=>{"use strict";r.d(t,{d:()=>i});var n=r(89727);class i{constructor(e=n.dM){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}},97442:(e,t,r)=>{"use strict";r.d(t,{r:()=>P});var n,i,s,o,a,c,u,l,h,d,p,f,g=r(48130);(n=u||(u={}))[n.DELTA=0]="DELTA",n[n.CUMULATIVE=1]="CUMULATIVE",(i=l||(l={})).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 m=r(40701),_=r(98829);let v=()=>u.CUMULATIVE,b=e=>{switch(e){case l.COUNTER:case l.OBSERVABLE_COUNTER:case l.GAUGE:case l.HISTOGRAM:case l.OBSERVABLE_GAUGE:return u.DELTA;case l.UP_DOWN_COUNTER:case l.OBSERVABLE_UP_DOWN_COUNTER:return u.CUMULATIVE}},y=e=>{switch(e){case l.COUNTER:case l.HISTOGRAM:return u.DELTA;case l.GAUGE:case l.UP_DOWN_COUNTER:case l.OBSERVABLE_UP_DOWN_COUNTER:case l.OBSERVABLE_COUNTER:case l.OBSERVABLE_GAUGE:return u.CUMULATIVE}},S=Object.freeze({type:d.DEFAULT});class E extends m.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?b:e===p.LOWMEMORY?y:v:"cumulative"===(t=((0,g.HF)("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE")??"cumulative").toLowerCase())?v:"delta"===t?b:"lowmemory"===t?y:(_.s.warn(`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '${t}', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead.`),v)}(t?.temporalityPreference)}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}}var T=r(8025);(c=f||(f={}))[c.AGGREGATION_TEMPORALITY_UNSPECIFIED=0]="AGGREGATION_TEMPORALITY_UNSPECIFIED",c[c.AGGREGATION_TEMPORALITY_DELTA=1]="AGGREGATION_TEMPORALITY_DELTA",c[c.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 T.e.INT:n.asInt=e.value;break;case T.e.DOUBLE:n.asDouble=e.value}return n})(r,e.descriptor.valueType,t))}var O=r(55657);let C={serializeRequest:e=>{var t,r;let n=(t=[e],r=O.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;
8let o={name:e.descriptor.name,description:e.descriptor.description,unit:e.descriptor.unit},a=function(e){switch(e){case u.DELTA:return f.AGGREGATION_TEMPORALITY_DELTA;case u.CUMULATIVE:return f.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.bucketCounts},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 _.s.warn(`Failed to parse metrics export response: ${e.message}. Returning empty response`),{}}}};var k=r(2395);class P extends E{constructor(e){super((0,k.M)(e??{},C,"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})},99014:(e,t,r)=>{"use strict";r.d(t,{u:()=>A});var n=r(55808),i=r(74271),s=r(21434),o=r(96467);let a=(0,s.n)("OpenTelemetry Context Key SPAN");function c(e){return e.getValue(a)||void 0}function u(){return c(i._.getInstance().active())}function l(e,t){return e.setValue(a,t)}function h(e){return e.deleteValue(a)}function d(e,t){return l(e,new o.d(t))}function p(e){var t;return null==(t=c(e))?void 0:t.spanContext()}var f=r(67408);let g=i._.getInstance();class m{startSpan(e,t,r=g.active()){var n;if(null==t?void 0:t.root)return new o.d;let i=r&&p(r);return null!==(n=i)&&"object"==typeof n&&"spanId"in n&&"string"==typeof n.spanId&&"traceId"in n&&"string"==typeof n.traceId&&"traceFlags"in n&&"number"==typeof n.traceFlags&&(0,f.YA)(i)?new o.d(i):new o.d}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=null!=s?s:g.active(),c=this.startSpan(e,i,a),u=l(a,c);return g.with(u,o,void 0,c)}}let _=new m;class v{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,n){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):_}}class b{getTracer(e,t,r){return new m}}let y=new b;class S{getTracer(e,t,r){var n;return null!=(n=this.getDelegateTracer(e,t,r))?n:new v(this,e,t,r)}getDelegate(){var e;return null!=(e=this._delegate)?e:y}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var n;return null==(n=this._delegate)?void 0:n.getTracer(e,t,r)}}var E=r(11091);let T="trace";class w{constructor(){this._proxyTracerProvider=new S,this.wrapSpanContext=f.IP,this.isSpanContextValid=f.YA,this.deleteSpan=h,this.getSpan=c,this.getActiveSpan=u,this.getSpanContext=p,this.setSpan=l,this.setSpanContext=d}static getInstance(){return this._instance||(this._instance=new w),this._instance}setGlobalTracerProvider(e){let t=(0,n.$G)(T,this._proxyTracerProvider,E.K.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,n.mS)(T)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,n.kv)(T,E.K.instance()),this._proxyTracerProvider=new S}}let A=w.getInstance()}}]);
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.